function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){var t;if(r)return"string"==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,a=Array(e);t<e;t++)a[t]=r[t];return a}getCache.$inject=["$cacheFactory"],toTemplateCache.$inject=["$templateCacheProvider"];var modules=window.C8Y_APP.modules,templates=[];function toTemplateCache(r){r.$get=getCache}function getCache(r){var t=r("templates");return templates.forEach(function(r){var e=r.path;return t.put(e,r.content)}),t}modules.unshift(toTemplateCache),module.exports={registerNgModule:function(r){return modules.push.apply(modules,_toConsumableArray(r))},registerTemplate:function(r,e){var t,a=/_|-/,o=r.split("/"),r=[r];a.test(o[0])&&(t=[o[0].replace(a,"/")].concat(_toConsumableArray(o.slice(1))),a=[o[0].replace(a,"_")].concat(_toConsumableArray(o.slice(1))),r.push(t.join("/")),r.push(a.join("/")),r.push(["/apps"].concat(_toConsumableArray(t)).join("/"))),r.forEach(function(r){return templates.push({path:r,content:e})})}};