;(function(angular){'use strict';angular.module('li.directives.common.element-hook',[]).directive('liCommonElementHook',function(){return{restrict:'A',scope:{liCommonElementHook:'='},link:function link($scope,$element){$scope.liCommonElementHook=$element;}};});})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'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('li.services.utils.lodash-utils',[]).factory('$liLodashUtils',['$window',function($window){;(function(){function n(n,r,t){if(r!==r){n:{for(r=n.length,t+=-1;++tr&&(r=-r>u?0:u+r),t=t===Sn||t>u?u:+t||0,0>t&&(t+=u),u=r>t?0:t-r>>>0,r>>>=0,t=Array(u);++ec&&!h||!p||l&&!v&&g||s&&g){f=1;break r;}if(f=a){e=f;break n;}e=t[e],e=f*("asc"===e||true===e?1:-1);break n;}}e=n.b-r.b;}return e;});}function P(n,r,t){if(typeof n!="function")return On;if(r===Sn)return n;switch(t){case 1:return function(t){return n.call(r,t);};case 3:return function(t,e,u){return n.call(r,t,e,u);};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o);};case 5:return function(t,e,u,o,i){return n.call(r,t,e,u,o,i);};}return function(){return n.apply(r,arguments);};}function F(n){var r=new Nr(n.byteLength);return new qr(r).set(new qr(n)),r;}function $(n,r){return function(t,e,u){if(u&&K(t,e,u)&&(e=Sn),e=W(e,u,3),1==e.length){it(t)||(t=null==t?[]:z(t)?i.support.unindexedChars&&gn(t)?t.split(""):hn(t)?t:Object(t):mn(t)),u=t;for(var o=e,a=-1,f=u.length,c=r,l=c;++ae?Dr(u+e,0):e;else if(e){e=0;var o=r?r.length:e;if(typeof t!="number"||t!==t||o>Gr){o=On,e=o(t);for(var i=0,a=r?r.length:0,f=e!==e,c=null===e,l=e===Sn;i>>1,a=r[i];a=Tn)&&Mr&&Fr?new a(void 0):null,s=[],l?(e=f,o=false):(c=false,l=i?[]:s);n:for(;++te(l,h,0)&&((i||c)&&l.push(h),s.push(p));}r=s;}return r;}function un(n,r,t){var e=it(n)?s:d;return r=W(r,t,3),e(n,r);}function on(n,r,t){var e=it(n)?p:E;return r=W(r,t,3),e(n,r);}function an(n,r,t){function e(r,t){t&&clearTimeout(t),f=p=h=Sn,r&&(v=ot(),c=n.apply(s,a),p||f||(a=s=Sn));}function u(){var n=r-(ot()-l);0>=n||n>r?e(h,f):p=setTimeout(u,n);}function o(){e(y,p);}function i(){if(a=arguments,l=ot(),s=this,h=y&&(p||!b),false===g)var t=b&&!p;else{f||b||(v=l);var e=g-(l-v),i=0>=e||e>g;i?(f&&(f=clearTimeout(f)),v=l,c=n.apply(s,a)):f||(f=setTimeout(o,e));}return i&&p?p=clearTimeout(p):p||r===g||(p=setTimeout(u,r)),t&&(i=true,c=n.apply(s,a)),!i||p||f||(a=s=Sn),c;}var a,f,c,l,s,p,h,v=0,g=false,y=true;if(typeof n!="function")throw new TypeError(kn);if(r=0>r?0:+r||0,true===t)var b=true,y=false;else hn(t)&&(b=!!t.leading,g="maxWait"in t&&Dr(+t.maxWait||0,r),y="trailing"in t?!!t.trailing:y);return i.cancel=function(){p&&clearTimeout(p),f&&clearTimeout(f),v=0,f=p=h=Sn;},i;}function fn(n,r){if(typeof n!="function")throw new TypeError(kn);return r=Dr(r===Sn?n.length-1:+r||0,0),function(){for(var t=arguments,e=-1,u=Dr(t.length-r,0),o=Array(u);++er;}function ln(n){return u(n)&&z(n)&&kr.call(n,"callee")&&!Pr.call(n,"callee");}function sn(n,r,t,e){return e=(t=typeof t=="function"?P(t,e,3):Sn)?t(n,r):Sn,e===Sn?w(n,r,t):!!e;}function pn(n){return hn(n)&&_r.call(n)==Fn;}function hn(n){var r=typeof n==='undefined'?'undefined':_typeof(n);return!!n&&("object"==r||"function"==r);}function vn(n){return null==n?false:pn(n)?Cr.test(Tr.call(n)):u(n)&&(wr(n)?Cr:ir).test(n);}function gn(n){return typeof n=="string"||u(n)&&_r.call(n)==Rn;}function yn(n){return u(n)&&J(n.length)&&!!sr[_r.call(n)];}function bn(n,r){return n"'`]/g,Qn=RegExp(Hn.source),Xn=RegExp(Jn.source),nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,rr=/^\w*$/,tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,er=/[\u0300-\u036f\ufe20-\ufe23]/g,ur=/\\(\\)?/g,or=/\w*$/,ir=/^\[object .+?Constructor\]$/,ar=/^\d+$/,fr=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,cr=RegExp("[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?=[A-Z\\xc0-\\xd6\\xd8-\\xde][a-z\\xdf-\\xf6\\xf8-\\xff]+)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+|[A-Z\\xc0-\\xd6\\xd8-\\xde]+|[0-9]+","g"),lr="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),sr={};sr[Bn]=sr[Dn]=sr[Ln]=sr[Zn]=sr[Vn]=sr[Yn]=sr[zn]=sr[Gn]=sr[Kn]=true,sr[_n]=sr[Un]=sr[Wn]=sr[Cn]=sr[Nn]=sr[Pn]=sr[Fn]=sr["[object Map]"]=sr[$n]=sr[qn]=sr[Mn]=sr["[object Set]"]=sr[Rn]=sr["[object WeakMap]"]=false;var pr={};pr[_n]=pr[Un]=pr[Wn]=pr[Cn]=pr[Nn]=pr[Bn]=pr[Dn]=pr[Ln]=pr[Zn]=pr[Vn]=pr[$n]=pr[qn]=pr[Mn]=pr[Rn]=pr[Yn]=pr[zn]=pr[Gn]=pr[Kn]=true,pr[Pn]=pr[Fn]=pr["[object Map]"]=pr["[object Set]"]=pr["[object WeakMap]"]=false;var hr={"\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"},vr={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},gr={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},yr={"function":true,object:true},br=yr[typeof exports==='undefined'?'undefined':_typeof(exports)]&&exports&&!exports.nodeType&&exports,dr=yr[typeof module==='undefined'?'undefined':_typeof(module)]&&module&&!module.nodeType&&module,xr=yr[typeof self==='undefined'?'undefined':_typeof(self)]&&self&&self.Object&&self,mr=yr[typeof window==='undefined'?'undefined':_typeof(window)]&&window&&window.Object&&window,Ar=dr&&dr.exports===br&&br,jr=br&&dr&&(typeof global==='undefined'?'undefined':_typeof(global))=="object"&&global&&global.Object&&global||mr!==(this&&this.window)&&mr||xr||this,wr=function(){try{Object({toString:0}+"");}catch(n){return function(){return false;};}return function(n){return typeof n.toString!="function"&&typeof(n+"")=="string";};}(),Or=Array.prototype,Er=Error.prototype,Ir=Object.prototype,Sr=String.prototype,Tr=Function.prototype.toString,kr=Ir.hasOwnProperty,_r=Ir.toString,Ur=jr._,Cr=RegExp("^"+Tr.call(kr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nr=jr.ArrayBuffer,Pr=Ir.propertyIsEnumerable,Fr=L(jr,"Set"),$r=Or.splice,qr=jr.Uint8Array,Mr=L(Object,"create"),Rr=Math.floor,Wr=L(Array,"isArray"),Br=L(Object,"keys"),Dr=Math.max,Lr=Math.min,Zr=L(Date,"now"),Vr=Number.NEGATIVE_INFINITY,Yr=Number.POSITIVE_INFINITY,zr=4294967294,Gr=2147483647,Kr=9007199254740991,Hr={};Hr[Bn]=jr.Float32Array,Hr[Dn]=jr.Float64Array,Hr[Ln]=jr.Int8Array,Hr[Zn]=jr.Int16Array,Hr[Vn]=jr.Int32Array,Hr[Yn]=qr,Hr[zn]=jr.Uint8ClampedArray,Hr[Gn]=jr.Uint16Array,Hr[Kn]=jr.Uint32Array;var Jr={};Jr[Un]=Jr[Nn]=Jr[$n]={constructor:true,toLocaleString:true,toString:true,valueOf:true},Jr[Cn]=Jr[Rn]={constructor:true,toString:true,valueOf:true},Jr[Pn]=Jr[Fn]=Jr[Mn]={constructor:true,toString:true},Jr[qn]={constructor:true},l(lr,function(n){for(var r in Jr){if(kr.call(Jr,r)){var t=Jr[r];t[n]=kr.call(t,n);}}});var Qr=i.support={};!function(n){function r(){this.x=n;}var t={0:n,length:n},e=[];r.prototype={valueOf:n,y:n};for(var u in new r()){e.push(u);}Qr.enumErrorProps=Pr.call(Er,"message")||Pr.call(Er,"name"),Qr.enumPrototypes=Pr.call(r,"prototype"),Qr.nonEnumShadows=!/valueOf/.test(e),Qr.spliceObjects=($r.call(t,0,1),!t[0]),Qr.unindexedChars="xx"!="x"[0]+Object("x")[0];}(1,0);var Xr=function(n,r){return function(t,e){var u=t?rt(t):0;if(!J(u))return n(t,e);for(var o=r?u:-1,i=X(t);(r?o--:++o=Tn&&Mr&&Fr?new a(e):null,h=e.length;p&&(l=f,s=false,e=p);n:for(;++cl(e,p,0)&&i.push(p);}}e=i;}else e=[];return e;}),et=function(n,r){return function(t,e,u){if(e=W(e,u,3),it(t)){n:{u=t.length;for(var o=r?u:-1;r?o--:++oarguments.length;return typeof e=="function"&&o===Sn&&it(t)?n(t,e,u,i):_(t,W(e,o,4),u,i,r);};}(function(n,r,t,e){var u=-1,o=n.length;for(e&&o&&(t=n[++u]);++u=500&&rejection.config.retry<5){rejection.config.retry++;$log.debug('Retry $http call attempt ['+rejection.config.retry+']',rejection);$timeout(function(){return $injector.get('$http')(rejection.config);},500);}else{return $q.reject(rejection);}}};}]).config(['$httpProvider',function($httpProvider){$httpProvider.interceptors.push('$liRestManagerRetryInterceptor');}]).constant('$liRestManagerConfig',{status:{NOT_FOUND:404,FORBIDDEN:403}}).factory('$liRestManager',['$http','$resource','$q','$liContextManager',function($http,$resource,$q,$liContextManager){$http.defaults.headers.common['Application-Identifier']=$liContextManager.server().device_mode;$http.defaults.headers.common['Application-Version']='2.0.0';$http.defaults.headers.get=!$http.defaults.headers.get?{}:$http.defaults.headers.get;$http.defaults.headers.get['If-Modified-Since']=new Date(0).toUTCString();function request(apiUrl,params,data,method,cache,retry){var queryParams={};angular.forEach(params,function(val,key){if(apiUrl.indexOf(':'+key)!==-1){apiUrl=apiUrl.replace(':'+key,val);}else{queryParams[key]=val;}});return $http({url:getFullyQualifiedUrl(apiUrl),params:queryParams,data:data||null,method:method||'get',cache:cache,retry:retry!==undefined?retry:0,headers:{'Content-Type':'application/json'}}).then(function(response){if(response&&response.data){return response.data;} return $q.reject(response);});} function getFullyQualifiedUrl(apiUrl){return $liContextManager.server().community_prefix+'/api/2.0'+apiUrl;} return{request:request,getFullyQualifiedUrl:getFullyQualifiedUrl};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.services.events.event-manager',['li.services.rest.rest-manager']).factory('$liEventManager',['$liRestManager','$document',function($liRestManager,$document){function stop($event){$event.preventDefault();$event.stopPropagation();} var eventMap={'media-view':{payload:{mediaId:'id',mediaName:'title',mediaType:'type'},context:{messageId:'id'}}};var document=$document[0];function createEventPayload(eventType,eventPayload,eventContext){var eventObj=Object.create(eventMap[eventType].payload||{});for(var eventProp in eventObj){eventObj[eventProp]=eventPayload[eventObj[eventProp]];} if(eventContext!==undefined&&eventContext!==null){var eventObjContext=Object.create(eventMap[eventType].context||{});for(var eventContextProp in eventObjContext){eventObjContext[eventContextProp]=eventContext[eventObjContext[eventContextProp]];} angular.extend(eventObj,eventObjContext);} return eventObj;} function emitNativeEvent(eventName,context,element){var event=document.createEvent('CustomEvent');var triggerElement=element?element:document;event.initCustomEvent(eventName,true,true,context);triggerElement.dispatchEvent(event);} return{sendEvent:function sendEvent(type,data,context){var lsiEvent={analytics_event:{type:type,id:-1,data:createEventPayload(type,data,context),version:'3.0'}};return $liRestManager.request('/internal/analytics',{},lsiEvent,'post',false);},emitNativeEvent:emitNativeEvent,KeyCodes:{TAB:9,ENTER:13,LEFT:37,UP:38,RIGHT:39,DOWN:40,ESC:27,f:102},stop:stop};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.directives.common.trap-focus',['li.services.events.event-manager']).directive('liCommonTrapFocus',['$liEventManager','$timeout',function($liEventManager,$timeout){return{restrict:'A',link:function link($scope,$element,attr){var previousFocusedElement=document.activeElement;$timeout(function(){var focusableQueryElements='a[href], area[href], input:not([disabled]), select:not([disabled]), '+'textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';var focusableElements=$element[0].querySelectorAll(focusableQueryElements);focusableElements=Array.prototype.slice.call(focusableElements);var firstFocusableElement=focusableElements[0];var lastFocusableElement=focusableElements[focusableElements.length-1];var dynamic=attr.liCommonTrapFocus;if(firstFocusableElement){firstFocusableElement.focus();} $element.on('keydown',function(event){var keyCode=event.keyCode||event.which;if(dynamic){focusableElements=$element[0].querySelectorAll(focusableQueryElements);var firstElemIndex=0,lastElemIndex=focusableElements.length-1;firstFocusableElement=focusableElements[firstElemIndex];lastFocusableElement=focusableElements[lastElemIndex];while(firstFocusableElement.clientHeight===0||firstFocusableElement.clientWidth===0){firstFocusableElement=focusableElements[++firstElemIndex];} while(lastFocusableElement.clientHeight===0||lastFocusableElement.clientWidth===0){lastFocusableElement=focusableElements[--lastElemIndex];}} function focusNextElement(currentElement,nextElement){if(document.activeElement===currentElement){event.preventDefault();nextElement.focus();}} if(keyCode===$liEventManager.KeyCodes.TAB){if(!event.shiftKey){focusNextElement(lastFocusableElement,firstFocusableElement);}else{focusNextElement(firstFocusableElement,lastFocusableElement);}}else{return;}});},0);$scope.$on('$destroy',function(){previousFocusedElement.focus();});}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.services.utils.param-utils',['li.services.utils.lodash-utils']).factory('$liParamUtils',['$liLodashUtils','$log',function($liLodashUtils,$log){function validateParams(directiveName,scope,params){var allValid=true;angular.forEach(params,function(param){var paramObj;var method;var reason;var value;paramObj={allowNull:true,allowUndefined:false,allowEmpty:true};if(angular.isObject(param)){paramObj=angular.extend({},paramObj,param);}else{paramObj.paramName=param;} value=scope[paramObj.paramName];if(!paramObj.allowNull&&value===null){reason=' cannot be null.';} if(paramObj.allowUndefined&&angular.isUndefined(value)&¶mObj.hasOwnProperty('defaultValue')){scope[paramObj.paramName]=paramObj.defaultValue;$log.debug('Param ['+paramObj.paramName+'], was set to the default value '+'['+paramObj.defaultValue+'] for directive '+'['+directiveName+'].');value=scope[paramObj.paramName];} if(!paramObj.allowUndefined&&angular.isUndefined(value)){reason=' cannot be undefined.';} if(!paramObj.allowEmpty&&$liLodashUtils.isEmpty(value)){reason=' cannot be empty.';} if(angular.isFunction(paramObj.validate)&&!paramObj.validate(value)){reason=' is not an allowed value.';} if(!reason){method='debug';reason=' is valid.';}else{method='error';allValid=false;} $log[method]('Required param ['+paramObj.paramName+'], with value '+'['+angular.toJson(value)+'], for directive '+'['+directiveName+']'+reason);});return allValid;} function initTypeTemplate($scope,path,type,defaultType){$scope.templateUrl=function(){var templateType=type?type:defaultType;return path+(templateType?'.'+templateType:'')+'.tpl.html';};} return{validateParams:validateParams,typeTemplate:'',initTypeTemplate:initTypeTemplate};}]);})(window.LITHIUM&&LITHIUM.angular||angular); (function(t,p){'use strict';function q(g,h,s){n.directive(g,["$parse","$swipe",function(a,b){return function(c,e,f){function k(a){if(!d)return!1;var b=Math.abs(a.y-d.y);a=(a.x-d.x)*h;return l&&75>b&&0b/a}var m=a(f[g]),d,l,r=["touch"];p.isDefined(f.ngSwipeDisableMouse)||r.push("mouse");b.bind(e,{start:function(a,b){d=a;l=!0},cancel:function(a){l=!1},end:function(a,b){k(a)&&c.$apply(function(){e.triggerHandler(s);m(c,{$event:b})})}},r)}}])}var n=p.module("ngTouch",[]);n.info({angularVersion:"1.8.2"});n.factory("$swipe",[function(){function g(a){a=a.originalEvent||a;var b=a.touches&&a.touches.length?a.touches:[a];a=a.changedTouches&&a.changedTouches[0]||b[0];return{x:a.clientX,y:a.clientY}}function h(a,b){var c=[];p.forEach(a,function(a){(a=n[a][b])&&c.push(a)});return c.join(" ")}var n={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(a,b,c){var e,f,k,m,d=!1;c=c||["mouse","touch","pointer"];a.on(h(c,"start"),function(a){k=g(a);d=!0;f=e=0;m=k;b.start&&b.start(k,a)});var l=h(c,"cancel");if(l)a.on(l,function(a){d=!1;b.cancel&&b.cancel(a)});a.on(h(c,"move"),function(a){if(d&&k){var c=g(a);e+=Math.abs(c.x-m.x);f+=Math.abs(c.y-m.y);m=c;10>e&&10>f||(f>e?(d=!1,b.cancel&&b.cancel(a)):(a.preventDefault(),b.move&&b.move(c,a)))}});a.on(h(c,"end"),function(a){d&&(d=!1,b.end&&b.end(g(a),a))})}}}]);q("ngSwipeLeft",-1,"swipeleft");q("ngSwipeRight",1,"swiperight")})(window,window.angular); ;(function(angular){'use strict';angular.module('li.directives.common.slide-menu',['li.directives.common.element-hook','li.directives.common.trap-focus','li.services.utils.param-utils','li.services.events.event-manager','ngTouch']).constant('liSlideMenuConfig',{directions:['left','top','right','bottom'],events:{scrollTop:'LITHIUM:slide-menu:scroll-top',toggleMenu:'LITHIUM:slide-menu:toggle-menu',onToggle:'LITHIUM:slide-menu:on-toggle'}}).directive('liCommonSlideMenu',['$log','$timeout','$document','$liParamUtils','liSlideMenuConfig','$liEventManager',function($log,$timeout,$document,$liParamUtils,liSlideMenuConfig,$liEventManager){return{restrict:'AE',transclude:true,templateUrl:'common/slide-menu/slide-menu.tpl.html',scope:{direction:'@liDirection',triggerElement:'=',liSlideMenuClass:'=',swipeToClose:'=liSwipeToClose'},link:function link($scope,$element){var navContainer;$element.removeAttr('style');var valParams={paramName:'direction',allowUndefined:true,defaultValue:'left',validate:function validate(val){return liSlideMenuConfig.directions.indexOf(val)>-1;}};if(!$liParamUtils.validateParams('liCommonSlideMenu',$scope,[valParams])){return;} $scope.showMenu=false;$scope.addClass=false;switch($scope.direction){case'top':case'bottom':$scope.orientation='horizontal';break;default:$scope.orientation='vertical';} $scope.$watch('triggerElement',function(){if($scope.triggerElement){$scope.triggerElement.on('click',function($event){$scope.toggleMenu();$scope.$apply();$event.preventDefault();});}});$scope.toggleMenu=function(){var $body=angular.element($document[0].body);if($scope.showMenu){$scope.addClass=false;$timeout(function(){$scope.showMenu=false;},400);$body.removeClass('lia-slide-menu-open');$body.off('keyup',handleEscape);$scope.$broadcast(liSlideMenuConfig.events.onToggle,!$scope.showMenu);}else{$scope.showMenu=true;$timeout(function(){$scope.addClass=true;$scope.$broadcast(liSlideMenuConfig.events.onToggle,$scope.showMenu);});$body.addClass('lia-slide-menu-open');$body.on('keyup',handleEscape);}};$scope.$on(liSlideMenuConfig.events.scrollTop,function(){navContainer=navContainer||$element[0].querySelector('.lia-slide-menu-content');navContainer.scrollTop=0;});$scope.$on(liSlideMenuConfig.events.toggleMenu,function(){$scope.toggleMenu();});$scope.swipeToggleMenu=function(swipeDirection){if($scope.swipeToClose&&swipeDirection===$scope.direction){$scope.toggleMenu();}};function handleEscape($event){var keyCode=$event.keyCode||$event.which;if(keyCode===$liEventManager.KeyCodes.ESC){$scope.toggleMenu();$scope.$apply();}}}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.services.community.navigation-manager',['li.services.community.context-manager','li.services.rest.rest-manager','li.services.utils.lodash-utils']).factory('$liNavigationManager',['$q','$cacheFactory','$liContextManager','$liRestManager','$liLodashUtils',function($q,$cacheFactory,$liContextManager,$liRestManager,$liLodashUtils){var _community;var _topLevelNodeId;var _cache=$cacheFactory('liNavigationCache',{storageMode:'localStorage'});var _communityStructurePromise;function getRootLevelNodeId(){return _topLevelNodeId;} function getCommunityStructure(topLevelNode){var fetchLimit=$liContextManager.config()['navigation.manager.community.structure.limit'];if(isNaN(fetchLimit)){fetchLimit=1000;} var query={nodes:{fields:['id','title','view_href','parent.id','node_type','conversation_style'],constraints:[{hidden:false}],sorts:['position asc'],limit:fetchLimit}};if(topLevelNode.type==='category'&&topLevelNode.id){query.nodes.constraints.push({'ancestors.id':topLevelNode.type+':'+topLevelNode.id});} return $liRestManager.request('/search',{},query,'POST',_cache);} function getStructure(){var currentTopLevelNode=$liContextManager.topLevelNode();var cacheKey=JSON.stringify({ts:$liContextManager.server().node_change_time_stamp,msts:$liContextManager.server().membership_change_time_stamp,uid:$liContextManager.currentUser().id,nid:currentTopLevelNode.id,commid:$liContextManager.community().id,internal:2});cleanupCache();if(_topLevelNodeId===undefined){_topLevelNodeId=currentTopLevelNode.id;} if(currentTopLevelNode.id===_topLevelNodeId&&_community!==undefined){return $q.when(_community);}else if(_cache.get(cacheKey)){return $q.when(_cache.get(cacheKey));}else{var isTlc=currentTopLevelNode.type==='category';if(_communityStructurePromise!==undefined){return _communityStructurePromise;} _communityStructurePromise=getCommunityStructure(currentTopLevelNode).then(function(res){var rootNode=isTlc?currentTopLevelNode:$liContextManager.community();if(!isTlc){rootNode.type='community';} var categoryMap={};categoryMap[rootNode.id]=rootNode;var categories=[];var leafs=[];angular.forEach($liLodashUtils.get(res,'data.items',[]),function(item){var nodeObj={};angular.extend(nodeObj,item,{id:item.id.replace(item.node_type+':',''),type:item.node_type,parent_category:item.parent!==undefined&&item.parent.id!==undefined?{id:item.parent.id.split(':')[1],type:item.parent.id.split(':')[0]}:{}});delete nodeObj.parent;delete nodeObj.node_type;if(nodeObj.type==='category'){categories.push(nodeObj);}else if(nodeObj.type==='board'||nodeObj.type==='grouphub'){leafs.push(nodeObj);}});categories.map(function(c){var category={};angular.extend(category,c);if(!categoryMap[category.id]){categoryMap[category.id]=category;}else{angular.extend(categoryMap[category.id],category);} if(category.parent_category.id===undefined){category.parent_category.id=rootNode.id;} var parentCategory;if(!categoryMap[category.parent_category.id]){parentCategory={id:category.parent_category.id,descendant_categories:{items:[category]}};categoryMap[category.parent_category.id]=parentCategory;}else{parentCategory=categoryMap[category.parent_category.id];if(parentCategory.descendant_categories===undefined){parentCategory.descendant_categories={items:[]};} parentCategory.descendant_categories.items.push(category);}});leafs.map(function(b){if(b.parent_category.id===undefined){b.parent_category.id=rootNode.id;} if(categoryMap[b.parent_category.id]!==undefined){var nodeType=b.type+'s';if(categoryMap[b.parent_category.id][nodeType]===undefined){categoryMap[b.parent_category.id][nodeType]={items:[]};} categoryMap[b.parent_category.id][nodeType].items.push(b);}});_community=[];angular.forEach(categoryMap,function(item){_community.push(item);});_cache.put(cacheKey,_community);return _community;});return _communityStructurePromise;}} function cleanupCache(){angular.forEach(_cache.info().keys,function(key){var keyObj;try{keyObj=JSON.parse(key);}catch(e){_cache.remove(key);} if(keyObj){if(keyObj.commid===undefined){_cache.remove(key);}else if(keyObj.commid===$liContextManager.community().id&&keyObj.uid===$liContextManager.currentUser().id){if(keyObj.ts!==$liContextManager.server().node_change_time_stamp||keyObj.msts!==$liContextManager.server().membership_change_time_stamp){_cache.remove(key);}}}});} return{getStructure:getStructure,getRootLevelNodeId:getRootLevelNodeId};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';localStorageCacheFactory.$inject=['$cacheFactory'];decorateCacheFactory.$inject=['$provide'];function localStorageCacheFactory($cacheFactory){function isQuotaExceeded(e){if(e&&(e.code===22||e.code===1014&&e.name==='NS_ERROR_DOM_QUOTA_REACHED')){return true;} return false;} function safeLocalStorageSet(key,value){try{localStorage.setItem(key,value);}catch(e){if(isQuotaExceeded(e)){localStorage.clear();localStorage.setItem(key,value);}}} function cacheFactory(cacheId,options){function put(key,value){if(angular.isUndefined(value)){return;} var storedValue=cache.put(key,value);setLocalCacheItem(key,value);cleanupLocalCache();return storedValue;} function cleanupLocalCache(checkAll){var cacheKeys=getLocalCacheKeys();if(options&&cacheKeys.length>=options.capacity){for(var i=0;i-1){keys.splice(index,1);setLocalCacheKeys(keys);}} function getLocalCacheItem(key){var storedVal=localStorage.getItem(cacheId+'::key::'+key);var item=angular.fromJson(storedVal);return item&&item.value;} function setLocalCacheItem(key,value){if(!angular.isUndefined(key)){var localKey=cacheId+'::key::'+key;if(value===null){removeLocalCacheItem(key);}else{var storedVal={value:value};safeLocalStorageSet(localKey,angular.toJson(storedVal));addLocalCacheKey(key);}}} function removeLocalCacheItem(key){removeLocalCacheKey(key);localStorage.removeItem(cacheId+'::key::'+key);} function removeAllLocalCacheItem(){var keys=getLocalCacheKeys();angular.forEach(keys,function(key){localStorage.removeItem(cacheId+'::key::'+key);});localStorage.removeItem(cacheId+'::keys');} var cache=$cacheFactory(cacheId,options);if(!supportsLocalStorage()){return cache;} var localCacheKeys=getLocalCacheKeys();angular.forEach(localCacheKeys,function(key){cache.put(key,getLocalCacheItem(key));});cleanupLocalCache(true);return{put:put,get:cache.get,remove:remove,removeAll:removeAll,destroy:cache.destroy,info:info};} return cacheFactory;} function supportsLocalStorage(){try{localStorage.setItem('a','a');localStorage.removeItem('a');return true;}catch(e){return false;}} function decorateCacheFactory($provide){$provide.decorator('$cacheFactory',['$delegate',function($delegate){var cacheFactory=function cacheFactory(cacheId,options){if(options&&options.storageMode==='localStorage'&&supportsLocalStorage()){return localStorageCacheFactory($delegate)(cacheId,options);}else{return $delegate(cacheId,options);}};cacheFactory.get=$delegate.get;cacheFactory.info=$delegate.info;return cacheFactory;}]);} angular.module('li.services.cache.localstorage-cache-manager',[]).factory('$liLocalstorageCacheManager',localStorageCacheFactory).config(decorateCacheFactory);})(window.LITHIUM&&LITHIUM.angular||angular); !function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():e()}(0,function(){function t(e){"use strict";var n=e.storageKey(),a=e.storage(),t=function(){var t=e.preferredLanguage();angular.isString(t)?e.use(t):a.put(n,e.use())};t.displayName="fallbackFromIncorrectStorageValue",a?a.get(n)?e.use(a.get(n)).catch(t):t():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function e(t,r,e,i){"use strict";var z,c,T,x,F,I,_,n,V,R,D,K,U,M,H,G,q={},Y=[],B=t,J=[],Q="translate-cloak",W=!1,X=!1,Z=".",tt=!1,et=!1,nt=0,at=!0,a="default",s={default:function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return 1");return e.text(t),e.html()},i=function(t){if(!n)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return n(t)},s=function(t){if(!a)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return a.trustAsHtml(t)},o=function(t,n,a){if(angular.isDate(t))return t;if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(a){if(-1-1)return rtStr+global+' = '+objStr;return rtStr+['(function (root, G) {',' if (typeof define === "function" && define.amd) { define(G); }',' else if (typeof exports === "object") { module.exports = G; }',' else { '+Compiler.propname(global,'root')+' = G; }','})(this, '+objStr+');'].join('\n');}} return result;} module.exports=MessageFormat;},{"./compiler":1,"./runtime":3,"make-plural/pluralCategories":6,"make-plural/plurals":7}],3:[function(require,module,exports){var Compiler=require('./compiler');function Runtime(mf){this.mf=mf;this.setStrictNumber(mf.strictNumberSign);} module.exports=Runtime;function defaultNumber(value,name,offset){if(!offset)return value;if(isNaN(value))throw new Error('Can\'t apply offset:'+offset+' to argument `'+name+'` with non-numerical value '+JSON.stringify(value)+'.');return value-offset;} function strictNumber(value,name,offset){if(isNaN(value))throw new Error('Argument `'+name+'` has non-numerical value '+JSON.stringify(value)+'.');return value-(offset||0);} Runtime.prototype.setStrictNumber=function(enable){this.number=enable?strictNumber:defaultNumber;} Runtime.prototype.plural=function(value,offset,lcfunc,data,isOrdinal){if({}.hasOwnProperty.call(data,value))return data[value];if(offset)value-=offset;var key=lcfunc(value,isOrdinal);if(key in data)return data[key];return data.other;} Runtime.prototype.select=function(value,data){if({}.hasOwnProperty.call(data,value))return data[value];return data.other;} Runtime.prototype.toString=function(pluralFuncs,compiler){function _stringify(o,level){if(typeof o!='object'){var funcStr=o.toString().replace(/^(function )\w*/,'$1');var indent=/([ \t]*)\S.*$/.exec(funcStr);return indent?funcStr.replace(new RegExp('^'+indent[1],'mg'),''):funcStr;} var s=[];for(var i in o){if(level==0)s.push('var '+i+' = '+_stringify(o[i],level+1)+';\n');else s.push(Compiler.propname(i)+': '+_stringify(o[i],level+1));} if(level==0)return s.join('');if(s.length==0)return'{}';var indent=' ';while(--level)indent+=' ';return'{\n'+s.join(',\n').replace(/^/gm,indent)+'\n}';} var obj={};Object.keys(compiler.locales).forEach(function(lc){obj[Compiler.funcname(lc)]=pluralFuncs[lc];});Object.keys(compiler.runtime).forEach(function(fn){obj[fn]=this[fn];},this);var fmtKeys=Object.keys(compiler.formatters);var fmt=this.mf.fmt;if(fmtKeys.length)obj.fmt=fmtKeys.reduce(function(o,key){o[key]=fmt[key];return o;},{});return _stringify(obj,0);}},{"./compiler":1}],4:[function(require,module,exports){var util=require('util/');var pSlice=Array.prototype.slice;var hasOwn=Object.prototype.hasOwnProperty;var assert=module.exports=ok;assert.AssertionError=function AssertionError(options){this.name='AssertionError';this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;if(options.message){this.message=options.message;this.generatedMessage=false;}else{this.message=getMessage(this);this.generatedMessage=true;} var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction);} else{var err=new Error();if(err.stack){var out=err.stack;var fn_name=stackStartFunction.name;var idx=out.indexOf('\n'+fn_name);if(idx>=0){var next_line=out.indexOf('\n',idx+1);out=out.substring(next_line+1);} this.stack=out;}}};util.inherits(assert.AssertionError,Error);function replacer(key,value){if(util.isUndefined(value)){return''+value;} if(util.isNumber(value)&&!isFinite(value)){return value.toString();} if(util.isFunction(value)||util.isRegExp(value)){return value.toString();} return value;} function truncate(s,n){if(util.isString(s)){return s.length=0;i--){if(ka[i]!=kb[i]) return false;} for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key]))return false;} return true;} assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected)){fail(actual,expected,message,'notDeepEqual',assert.notDeepEqual);}};assert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,'===',assert.strictEqual);}};assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,'!==',assert.notStrictEqual);}};function expectedException(actual,expected){if(!actual||!expected){return false;} if(Object.prototype.toString.call(expected)=='[object RegExp]'){return expected.test(actual);}else if(actual instanceof expected){return true;}else if(expected.call({},actual)===true){return true;} return false;} function _throws(shouldThrow,block,expected,message){var actual;if(util.isString(expected)){message=expected;expected=null;} try{block();}catch(e){actual=e;} message=(expected&&expected.name?' ('+expected.name+').':'.')+ (message?' '+message:'.');if(shouldThrow&&!actual){fail(actual,expected,'Missing expected exception'+message);} if(!shouldThrow&&expectedException(actual,expected)){fail(actual,expected,'Got unwanted exception'+message);} if((shouldThrow&&actual&&expected&&!expectedException(actual,expected))||(!shouldThrow&&actual)){throw actual;}} assert.throws=function(block,error,message){_throws.apply(this,[true].concat(pSlice.call(arguments)));};assert.doesNotThrow=function(block,message){_throws.apply(this,[false].concat(pSlice.call(arguments)));};assert.ifError=function(err){if(err){throw err;}};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){if(hasOwn.call(obj,key))keys.push(key);} return keys;};},{"util/":13}],5:[function(require,module,exports){if(typeof Object.create==='function'){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}});};}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor var TempCtor=function(){} TempCtor.prototype=superCtor.prototype ctor.prototype=new TempCtor() ctor.prototype.constructor=ctor}}},{}],6:[function(require,module,exports){var _cc=[{cardinal:["other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["other"]},{cardinal:["one","other"],ordinal:["one","other"]},{cardinal:["one","two","other"],ordinal:["other"]}];(function(root,pluralCategories){if(typeof define==='function'&&define.amd){define(pluralCategories);}else if(typeof exports==='object'){module.exports=pluralCategories;}else{root.pluralCategories=pluralCategories;}}(this,{af:_cc[1],ak:_cc[1],am:_cc[1],ar:{cardinal:["zero","one","two","few","many","other"],ordinal:["other"]},as:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},asa:_cc[1],ast:_cc[1],az:{cardinal:["one","other"],ordinal:["one","few","many","other"]},be:{cardinal:["one","few","many","other"],ordinal:["few","other"]},bem:_cc[1],bez:_cc[1],bg:_cc[1],bh:_cc[1],bm:_cc[0],bn:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},bo:_cc[0],br:{cardinal:["one","two","few","many","other"],ordinal:["other"]},brx:_cc[1],bs:{cardinal:["one","few","other"],ordinal:["other"]},ca:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ce:_cc[1],cgg:_cc[1],chr:_cc[1],ckb:_cc[1],cs:{cardinal:["one","few","many","other"],ordinal:["other"]},cy:{cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]},da:_cc[1],de:_cc[1],dsb:{cardinal:["one","two","few","other"],ordinal:["other"]},dv:_cc[1],dz:_cc[0],ee:_cc[1],el:_cc[1],en:{cardinal:["one","other"],ordinal:["one","two","few","other"]},eo:_cc[1],es:_cc[1],et:_cc[1],eu:_cc[1],fa:_cc[1],ff:_cc[1],fi:_cc[1],fil:_cc[2],fo:_cc[1],fr:_cc[2],fur:_cc[1],fy:_cc[1],ga:{cardinal:["one","two","few","many","other"],ordinal:["one","other"]},gd:{cardinal:["one","two","few","other"],ordinal:["other"]},gl:_cc[1],gsw:_cc[1],gu:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},guw:_cc[1],gv:{cardinal:["one","two","few","many","other"],ordinal:["other"]},ha:_cc[1],haw:_cc[1],he:{cardinal:["one","two","many","other"],ordinal:["other"]},hi:{cardinal:["one","other"],ordinal:["one","two","few","many","other"]},hr:{cardinal:["one","few","other"],ordinal:["other"]},hsb:{cardinal:["one","two","few","other"],ordinal:["other"]},hu:_cc[2],hy:_cc[2],id:_cc[0],ig:_cc[0],ii:_cc[0],"in":_cc[0],is:_cc[1],it:{cardinal:["one","other"],ordinal:["many","other"]},iu:_cc[3],iw:{cardinal:["one","two","many","other"],ordinal:["other"]},ja:_cc[0],jbo:_cc[0],jgo:_cc[1],ji:_cc[1],jmc:_cc[1],jv:_cc[0],jw:_cc[0],ka:{cardinal:["one","other"],ordinal:["one","many","other"]},kab:_cc[1],kaj:_cc[1],kcg:_cc[1],kde:_cc[0],kea:_cc[0],kk:{cardinal:["one","other"],ordinal:["many","other"]},kkj:_cc[1],kl:_cc[1],km:_cc[0],kn:_cc[1],ko:_cc[0],ks:_cc[1],ksb:_cc[1],ksh:{cardinal:["zero","one","other"],ordinal:["other"]},ku:_cc[1],kw:_cc[3],ky:_cc[1],lag:{cardinal:["zero","one","other"],ordinal:["other"]},lb:_cc[1],lg:_cc[1],lkt:_cc[0],ln:_cc[1],lo:{cardinal:["other"],ordinal:["one","other"]},lt:{cardinal:["one","few","many","other"],ordinal:["other"]},lv:{cardinal:["zero","one","other"],ordinal:["other"]},mas:_cc[1],mg:_cc[1],mgo:_cc[1],mk:{cardinal:["one","other"],ordinal:["one","two","many","other"]},ml:_cc[1],mn:_cc[1],mo:{cardinal:["one","few","other"],ordinal:["one","other"]},mr:{cardinal:["one","other"],ordinal:["one","two","few","other"]},ms:{cardinal:["other"],ordinal:["one","other"]},mt:{cardinal:["one","few","many","other"],ordinal:["other"]},my:_cc[0],nah:_cc[1],naq:_cc[3],nb:_cc[1],nd:_cc[1],ne:_cc[2],nl:_cc[1],nn:_cc[1],nnh:_cc[1],no:_cc[1],nqo:_cc[0],nr:_cc[1],nso:_cc[1],ny:_cc[1],nyn:_cc[1],om:_cc[1],or:_cc[1],os:_cc[1],pa:_cc[1],pap:_cc[1],pl:{cardinal:["one","few","many","other"],ordinal:["other"]},prg:{cardinal:["zero","one","other"],ordinal:["other"]},ps:_cc[1],pt:_cc[1],"pt-PT":_cc[1],rm:_cc[1],ro:{cardinal:["one","few","other"],ordinal:["one","other"]},rof:_cc[1],root:_cc[0],ru:{cardinal:["one","few","many","other"],ordinal:["other"]},rwk:_cc[1],sah:_cc[0],saq:_cc[1],sdh:_cc[1],se:_cc[3],seh:_cc[1],ses:_cc[0],sg:_cc[0],sh:{cardinal:["one","few","other"],ordinal:["other"]},shi:{cardinal:["one","few","other"],ordinal:["other"]},si:_cc[1],sk:{cardinal:["one","few","many","other"],ordinal:["other"]},sl:{cardinal:["one","two","few","other"],ordinal:["other"]},sma:_cc[3],smi:_cc[3],smj:_cc[3],smn:_cc[3],sms:_cc[3],sn:_cc[1],so:_cc[1],sq:{cardinal:["one","other"],ordinal:["one","many","other"]},sr:{cardinal:["one","few","other"],ordinal:["other"]},ss:_cc[1],ssy:_cc[1],st:_cc[1],sv:_cc[2],sw:_cc[1],syr:_cc[1],ta:_cc[1],te:_cc[1],teo:_cc[1],th:_cc[0],ti:_cc[1],tig:_cc[1],tk:_cc[1],tl:_cc[2],tn:_cc[1],to:_cc[0],tr:_cc[1],ts:_cc[1],tzm:_cc[1],ug:_cc[1],uk:{cardinal:["one","few","many","other"],ordinal:["few","other"]},ur:_cc[1],uz:_cc[1],ve:_cc[1],vi:{cardinal:["other"],ordinal:["one","other"]},vo:_cc[1],vun:_cc[1],wa:_cc[1],wae:_cc[1],wo:_cc[0],xh:_cc[1],xog:_cc[1],yi:_cc[1],yo:_cc[0],zh:_cc[0],zu:_cc[1]}));},{}],7:[function(require,module,exports){var _cp=[function(n,ord){if(ord)return'other';return'other';},function(n,ord){if(ord)return'other';return(n==1)?'one':'other';},function(n,ord){if(ord)return'other';return((n==0||n==1))?'one':'other';},function(n,ord){var s=String(n).split('.'),v0=!s[1];if(ord)return'other';return(n==1&&v0)?'one':'other';}];(function(root,plurals){if(typeof define==='function'&&define.amd){define(plurals);}else if(typeof exports==='object'){module.exports=plurals;}else{root.plurals=plurals;}}(this,{af:_cp[1],ak:_cp[2],am:function(n,ord){if(ord)return'other';return(n>=0&&n<=1)?'one':'other';},ar:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n,n100=t0&&s[0].slice(-2);if(ord)return'other';return(n==0)?'zero':(n==1)?'one':(n==2)?'two':((n100>=3&&n100<=10))?'few':((n100>=11&&n100<=99))?'many':'other';},as:function(n,ord){if(ord)return((n==1||n==5||n==7||n==8||n==9||n==10))?'one':((n==2||n==3))?'two':(n==4)?'few':(n==6)?'many':'other';return(n>=0&&n<=1)?'one':'other';},asa:_cp[1],ast:_cp[3],az:function(n,ord){var s=String(n).split('.'),i=s[0],i10=i.slice(-1),i100=i.slice(-2),i1000=i.slice(-3);if(ord)return((i10==1||i10==2||i10==5||i10==7||i10==8)||(i100==20||i100==50||i100==70||i100==80))?'one':((i10==3||i10==4)||(i1000==100||i1000==200||i1000==300||i1000==400||i1000==500||i1000==600||i1000==700||i1000==800||i1000==900))?'few':(i==0||i10==6||(i100==40||i100==60||i100==90))?'many':'other';return(n==1)?'one':'other';},be:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return((n10==2||n10==3)&&n100!=12&&n100!=13)?'few':'other';return(n10==1&&n100!=11)?'one':((n10>=2&&n10<=4)&&(n100<12||n100>14))?'few':(t0&&n10==0||(n10>=5&&n10<=9)||(n100>=11&&n100<=14))?'many':'other';},bem:_cp[1],bez:_cp[1],bg:_cp[1],bh:_cp[2],bm:_cp[0],bn:function(n,ord){if(ord)return((n==1||n==5||n==7||n==8||n==9||n==10))?'one':((n==2||n==3))?'two':(n==4)?'few':(n==6)?'many':'other';return(n>=0&&n<=1)?'one':'other';},bo:_cp[0],br:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2),n1000000=t0&&s[0].slice(-6);if(ord)return'other';return(n10==1&&n100!=11&&n100!=71&&n100!=91)?'one':(n10==2&&n100!=12&&n100!=72&&n100!=92)?'two':(((n10==3||n10==4)||n10==9)&&(n100<10||n100>19)&&(n100<70||n100>79)&&(n100<90||n100>99))?'few':(n!=0&&t0&&n1000000==0)?'many':'other';},brx:_cp[1],bs:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return'other';return(v0&&i10==1&&i100!=11||f10==1&&f100!=11)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)||(f10>=2&&f10<=4)&&(f100<12||f100>14))?'few':'other';},ca:function(n,ord){var s=String(n).split('.'),v0=!s[1];if(ord)return((n==1||n==3))?'one':(n==2)?'two':(n==4)?'few':'other';return(n==1&&v0)?'one':'other';},ce:_cp[1],cgg:_cp[1],chr:_cp[1],ckb:_cp[1],cs:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1];if(ord)return'other';return(n==1&&v0)?'one':((i>=2&&i<=4)&&v0)?'few':(!v0)?'many':'other';},cy:function(n,ord){if(ord)return((n==0||n==7||n==8||n==9))?'zero':(n==1)?'one':(n==2)?'two':((n==3||n==4))?'few':((n==5||n==6))?'many':'other';return(n==0)?'zero':(n==1)?'one':(n==2)?'two':(n==3)?'few':(n==6)?'many':'other';},da:function(n,ord){var s=String(n).split('.'),i=s[0],t0=Number(s[0])==n;if(ord)return'other';return(n==1||!t0&&(i==0||i==1))?'one':'other';},de:_cp[3],dsb:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i100=i.slice(-2),f100=f.slice(-2);if(ord)return'other';return(v0&&i100==1||f100==1)?'one':(v0&&i100==2||f100==2)?'two':(v0&&(i100==3||i100==4)||(f100==3||f100==4))?'few':'other';},dv:_cp[1],dz:_cp[0],ee:_cp[1],el:_cp[1],en:function(n,ord){var s=String(n).split('.'),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return(n10==1&&n100!=11)?'one':(n10==2&&n100!=12)?'two':(n10==3&&n100!=13)?'few':'other';return(n==1&&v0)?'one':'other';},eo:_cp[1],es:_cp[1],et:_cp[3],eu:_cp[1],fa:function(n,ord){if(ord)return'other';return(n>=0&&n<=1)?'one':'other';},ff:function(n,ord){if(ord)return'other';return(n>=0&&n<2)?'one':'other';},fi:_cp[3],fil:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),f10=f.slice(-1);if(ord)return(n==1)?'one':'other';return(v0&&(i==1||i==2||i==3)||v0&&i10!=4&&i10!=6&&i10!=9||!v0&&f10!=4&&f10!=6&&f10!=9)?'one':'other';},fo:_cp[1],fr:function(n,ord){if(ord)return(n==1)?'one':'other';return(n>=0&&n<2)?'one':'other';},fur:_cp[1],fy:_cp[3],ga:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n;if(ord)return(n==1)?'one':'other';return(n==1)?'one':(n==2)?'two':((t0&&n>=3&&n<=6))?'few':((t0&&n>=7&&n<=10))?'many':'other';},gd:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n;if(ord)return'other';return((n==1||n==11))?'one':((n==2||n==12))?'two':(((t0&&n>=3&&n<=10)||(t0&&n>=13&&n<=19)))?'few':'other';},gl:_cp[3],gsw:_cp[1],gu:function(n,ord){if(ord)return(n==1)?'one':((n==2||n==3))?'two':(n==4)?'few':(n==6)?'many':'other';return(n>=0&&n<=1)?'one':'other';},guw:_cp[2],gv:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],i10=i.slice(-1),i100=i.slice(-2);if(ord)return'other';return(v0&&i10==1)?'one':(v0&&i10==2)?'two':(v0&&(i100==0||i100==20||i100==40||i100==60||i100==80))?'few':(!v0)?'many':'other';},ha:_cp[1],haw:_cp[1],he:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1);if(ord)return'other';return(n==1&&v0)?'one':(i==2&&v0)?'two':(v0&&(n<0||n>10)&&t0&&n10==0)?'many':'other';},hi:function(n,ord){if(ord)return(n==1)?'one':((n==2||n==3))?'two':(n==4)?'few':(n==6)?'many':'other';return(n>=0&&n<=1)?'one':'other';},hr:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return'other';return(v0&&i10==1&&i100!=11||f10==1&&f100!=11)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)||(f10>=2&&f10<=4)&&(f100<12||f100>14))?'few':'other';},hsb:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i100=i.slice(-2),f100=f.slice(-2);if(ord)return'other';return(v0&&i100==1||f100==1)?'one':(v0&&i100==2||f100==2)?'two':(v0&&(i100==3||i100==4)||(f100==3||f100==4))?'few':'other';},hu:function(n,ord){if(ord)return((n==1||n==5))?'one':'other';return(n==1)?'one':'other';},hy:function(n,ord){if(ord)return(n==1)?'one':'other';return(n>=0&&n<2)?'one':'other';},id:_cp[0],ig:_cp[0],ii:_cp[0],"in":_cp[0],is:function(n,ord){var s=String(n).split('.'),i=s[0],t0=Number(s[0])==n,i10=i.slice(-1),i100=i.slice(-2);if(ord)return'other';return(t0&&i10==1&&i100!=11||!t0)?'one':'other';},it:function(n,ord){var s=String(n).split('.'),v0=!s[1];if(ord)return((n==11||n==8||n==80||n==800))?'many':'other';return(n==1&&v0)?'one':'other';},iu:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},iw:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1);if(ord)return'other';return(n==1&&v0)?'one':(i==2&&v0)?'two':(v0&&(n<0||n>10)&&t0&&n10==0)?'many':'other';},ja:_cp[0],jbo:_cp[0],jgo:_cp[1],ji:_cp[3],jmc:_cp[1],jv:_cp[0],jw:_cp[0],ka:function(n,ord){var s=String(n).split('.'),i=s[0],i100=i.slice(-2);if(ord)return(i==1)?'one':(i==0||((i100>=2&&i100<=20)||i100==40||i100==60||i100==80))?'many':'other';return(n==1)?'one':'other';},kab:function(n,ord){if(ord)return'other';return(n>=0&&n<2)?'one':'other';},kaj:_cp[1],kcg:_cp[1],kde:_cp[0],kea:_cp[0],kk:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n,n10=t0&&s[0].slice(-1);if(ord)return(n10==6||n10==9||t0&&n10==0&&n!=0)?'many':'other';return(n==1)?'one':'other';},kkj:_cp[1],kl:_cp[1],km:_cp[0],kn:function(n,ord){if(ord)return'other';return(n>=0&&n<=1)?'one':'other';},ko:_cp[0],ks:_cp[1],ksb:_cp[1],ksh:function(n,ord){if(ord)return'other';return(n==0)?'zero':(n==1)?'one':'other';},ku:_cp[1],kw:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},ky:_cp[1],lag:function(n,ord){var s=String(n).split('.'),i=s[0];if(ord)return'other';return(n==0)?'zero':((i==0||i==1)&&n!=0)?'one':'other';},lb:_cp[1],lg:_cp[1],lkt:_cp[0],ln:_cp[2],lo:function(n,ord){if(ord)return(n==1)?'one':'other';return'other';},lt:function(n,ord){var s=String(n).split('.'),f=s[1]||'',t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return'other';return(n10==1&&(n100<11||n100>19))?'one':((n10>=2&&n10<=9)&&(n100<11||n100>19))?'few':(f!=0)?'many':'other';},lv:function(n,ord){var s=String(n).split('.'),f=s[1]||'',v=f.length,t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2),f100=f.slice(-2),f10=f.slice(-1);if(ord)return'other';return(t0&&n10==0||(n100>=11&&n100<=19)||v==2&&(f100>=11&&f100<=19))?'zero':(n10==1&&n100!=11||v==2&&f10==1&&f100!=11||v!=2&&f10==1)?'one':'other';},mas:_cp[1],mg:_cp[2],mgo:_cp[1],mk:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1);if(ord)return(i10==1&&i100!=11)?'one':(i10==2&&i100!=12)?'two':((i10==7||i10==8)&&i100!=17&&i100!=18)?'many':'other';return(v0&&i10==1||f10==1)?'one':'other';},ml:_cp[1],mn:_cp[1],mo:function(n,ord){var s=String(n).split('.'),v0=!s[1],t0=Number(s[0])==n,n100=t0&&s[0].slice(-2);if(ord)return(n==1)?'one':'other';return(n==1&&v0)?'one':(!v0||n==0||n!=1&&(n100>=1&&n100<=19))?'few':'other';},mr:function(n,ord){if(ord)return(n==1)?'one':((n==2||n==3))?'two':(n==4)?'few':'other';return(n>=0&&n<=1)?'one':'other';},ms:function(n,ord){if(ord)return(n==1)?'one':'other';return'other';},mt:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n,n100=t0&&s[0].slice(-2);if(ord)return'other';return(n==1)?'one':(n==0||(n100>=2&&n100<=10))?'few':((n100>=11&&n100<=19))?'many':'other';},my:_cp[0],nah:_cp[1],naq:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},nb:_cp[1],nd:_cp[1],ne:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n;if(ord)return((t0&&n>=1&&n<=4))?'one':'other';return(n==1)?'one':'other';},nl:_cp[3],nn:_cp[1],nnh:_cp[1],no:_cp[1],nqo:_cp[0],nr:_cp[1],nso:_cp[2],ny:_cp[1],nyn:_cp[1],om:_cp[1],or:_cp[1],os:_cp[1],pa:_cp[2],pap:_cp[1],pl:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],i10=i.slice(-1),i100=i.slice(-2);if(ord)return'other';return(n==1&&v0)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14))?'few':(v0&&i!=1&&(i10==0||i10==1)||v0&&(i10>=5&&i10<=9)||v0&&(i100>=12&&i100<=14))?'many':'other';},prg:function(n,ord){var s=String(n).split('.'),f=s[1]||'',v=f.length,t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2),f100=f.slice(-2),f10=f.slice(-1);if(ord)return'other';return(t0&&n10==0||(n100>=11&&n100<=19)||v==2&&(f100>=11&&f100<=19))?'zero':(n10==1&&n100!=11||v==2&&f10==1&&f100!=11||v!=2&&f10==1)?'one':'other';},ps:_cp[1],pt:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n;if(ord)return'other';return((t0&&n>=0&&n<=2)&&n!=2)?'one':'other';},"pt-PT":_cp[3],rm:_cp[1],ro:function(n,ord){var s=String(n).split('.'),v0=!s[1],t0=Number(s[0])==n,n100=t0&&s[0].slice(-2);if(ord)return(n==1)?'one':'other';return(n==1&&v0)?'one':(!v0||n==0||n!=1&&(n100>=1&&n100<=19))?'few':'other';},rof:_cp[1],root:_cp[0],ru:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],i10=i.slice(-1),i100=i.slice(-2);if(ord)return'other';return(v0&&i10==1&&i100!=11)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14))?'few':(v0&&i10==0||v0&&(i10>=5&&i10<=9)||v0&&(i100>=11&&i100<=14))?'many':'other';},rwk:_cp[1],sah:_cp[0],saq:_cp[1],sdh:_cp[1],se:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},seh:_cp[1],ses:_cp[0],sg:_cp[0],sh:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return'other';return(v0&&i10==1&&i100!=11||f10==1&&f100!=11)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)||(f10>=2&&f10<=4)&&(f100<12||f100>14))?'few':'other';},shi:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n;if(ord)return'other';return(n>=0&&n<=1)?'one':((t0&&n>=2&&n<=10))?'few':'other';},si:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'';if(ord)return'other';return((n==0||n==1)||i==0&&f==1)?'one':'other';},sk:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1];if(ord)return'other';return(n==1&&v0)?'one':((i>=2&&i<=4)&&v0)?'few':(!v0)?'many':'other';},sl:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],i100=i.slice(-2);if(ord)return'other';return(v0&&i100==1)?'one':(v0&&i100==2)?'two':(v0&&(i100==3||i100==4)||!v0)?'few':'other';},sma:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},smi:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},smj:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},smn:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},sms:function(n,ord){if(ord)return'other';return(n==1)?'one':(n==2)?'two':'other';},sn:_cp[1],so:_cp[1],sq:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return(n==1)?'one':(n10==4&&n100!=14)?'many':'other';return(n==1)?'one':'other';},sr:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return'other';return(v0&&i10==1&&i100!=11||f10==1&&f100!=11)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)||(f10>=2&&f10<=4)&&(f100<12||f100>14))?'few':'other';},ss:_cp[1],ssy:_cp[1],st:_cp[1],sv:function(n,ord){var s=String(n).split('.'),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return((n10==1||n10==2)&&n100!=11&&n100!=12)?'one':'other';return(n==1&&v0)?'one':'other';},sw:_cp[3],syr:_cp[1],ta:_cp[1],te:_cp[1],teo:_cp[1],th:_cp[0],ti:_cp[2],tig:_cp[1],tk:_cp[1],tl:function(n,ord){var s=String(n).split('.'),i=s[0],f=s[1]||'',v0=!s[1],i10=i.slice(-1),f10=f.slice(-1);if(ord)return(n==1)?'one':'other';return(v0&&(i==1||i==2||i==3)||v0&&i10!=4&&i10!=6&&i10!=9||!v0&&f10!=4&&f10!=6&&f10!=9)?'one':'other';},tn:_cp[1],to:_cp[0],tr:_cp[1],ts:_cp[1],tzm:function(n,ord){var s=String(n).split('.'),t0=Number(s[0])==n;if(ord)return'other';return((n==0||n==1)||(t0&&n>=11&&n<=99))?'one':'other';},ug:_cp[1],uk:function(n,ord){var s=String(n).split('.'),i=s[0],v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2),i10=i.slice(-1),i100=i.slice(-2);if(ord)return(n10==3&&n100!=13)?'few':'other';return(v0&&i10==1&&i100!=11)?'one':(v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14))?'few':(v0&&i10==0||v0&&(i10>=5&&i10<=9)||v0&&(i100>=11&&i100<=14))?'many':'other';},ur:_cp[3],uz:_cp[1],ve:_cp[1],vi:function(n,ord){if(ord)return(n==1)?'one':'other';return'other';},vo:_cp[1],vun:_cp[1],wa:_cp[2],wae:_cp[1],wo:_cp[0],xh:_cp[1],xog:_cp[1],yi:_cp[3],yo:_cp[0],zh:_cp[0],zu:function(n,ord){if(ord)return'other';return(n>=0&&n<=1)?'one':'other';}}));},{}],8:[function(require,module,exports){"use strict";function peg$subclass(child,parent){function ctor(){this.constructor=child;} ctor.prototype=parent.prototype;child.prototype=new ctor();} function peg$SyntaxError(message,expected,found,location){this.message=message;this.expected=expected;this.found=found;this.location=location;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError);}} peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(expected,found){var DESCRIBE_EXPECTATION_FNS={literal:function(expectation){return"\""+literalEscape(expectation.text)+"\"";},"class":function(expectation){var escapedParts="",i;for(i=0;i0){for(i=1,j=1;ipeg$maxFailPos){peg$maxFailPos=peg$currPos;peg$maxFailExpected=[];} peg$maxFailExpected.push(expected);} function peg$buildSimpleError(message,location){return new peg$SyntaxError(message,null,null,location);} function peg$buildStructuredError(expected,found,location){return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected,found),expected,found,location);} function peg$parsestart(){var s0,s1;s0=[];s1=peg$parsetoken();while(s1!==peg$FAILED){s0.push(s1);s1=peg$parsetoken();} return s0;} function peg$parsetoken(){var s0,s1,s2;s0=peg$parseargument();if(s0===peg$FAILED){s0=peg$parseselect();if(s0===peg$FAILED){s0=peg$parseplural();if(s0===peg$FAILED){s0=peg$parsefunction();if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c0;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c1);}} if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c2();} s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=[];s2=peg$parsechar();if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsechar();}}else{s1=peg$FAILED;} if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c3(s1);} s0=s1;}}}}} return s0;} function peg$parseargument(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c4;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c5);}} if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parseid();if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s5=peg$c6;peg$currPos++;}else{s5=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c7);}} if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c8(s3);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parseselect(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c4;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c5);}} if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parseid();if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s5=peg$c9;peg$currPos++;}else{s5=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}} if(s5!==peg$FAILED){s6=peg$parse_();if(s6!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c11){s7=peg$c11;peg$currPos+=6;}else{s7=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c12);}} if(s7!==peg$FAILED){s8=peg$parse_();if(s8!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s9=peg$c9;peg$currPos++;}else{s9=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}} if(s9!==peg$FAILED){s10=peg$parse_();if(s10!==peg$FAILED){s11=[];s12=peg$parseselectCase();if(s12!==peg$FAILED){while(s12!==peg$FAILED){s11.push(s12);s12=peg$parseselectCase();}}else{s11=peg$FAILED;} if(s11!==peg$FAILED){s12=peg$parse_();if(s12!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s13=peg$c6;peg$currPos++;}else{s13=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c7);}} if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c13(s3,s11);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parseplural(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c4;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c5);}} if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parseid();if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s5=peg$c9;peg$currPos++;}else{s5=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}} if(s5!==peg$FAILED){s6=peg$parse_();if(s6!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c14){s7=peg$c14;peg$currPos+=6;}else{s7=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c15);}} if(s7===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c16){s7=peg$c16;peg$currPos+=13;}else{s7=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c17);}}} if(s7!==peg$FAILED){s8=peg$parse_();if(s8!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s9=peg$c9;peg$currPos++;}else{s9=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}} if(s9!==peg$FAILED){s10=peg$parse_();if(s10!==peg$FAILED){s11=peg$parseoffset();if(s11===peg$FAILED){s11=null;} if(s11!==peg$FAILED){s12=[];s13=peg$parsepluralCase();if(s13!==peg$FAILED){while(s13!==peg$FAILED){s12.push(s13);s13=peg$parsepluralCase();}}else{s12=peg$FAILED;} if(s12!==peg$FAILED){s13=peg$parse_();if(s13!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s14=peg$c6;peg$currPos++;}else{s14=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c7);}} if(s14!==peg$FAILED){peg$savedPos=s0;s1=peg$c18(s3,s7,s11,s12);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parsefunction(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c4;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c5);}} if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parseid();if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s5=peg$c9;peg$currPos++;}else{s5=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}} if(s5!==peg$FAILED){s6=peg$parse_();if(s6!==peg$FAILED){s7=peg$parseid();if(s7!==peg$FAILED){s8=peg$parse_();if(s8!==peg$FAILED){s9=[];s10=peg$parsefunctionParams();while(s10!==peg$FAILED){s9.push(s10);s10=peg$parsefunctionParams();} if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s10=peg$c6;peg$currPos++;}else{s10=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c7);}} if(s10!==peg$FAILED){peg$savedPos=s0;s1=peg$c19(s3,s7,s9);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parseid(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$currPos;if(peg$c20.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c21);}} if(s2!==peg$FAILED){s3=[];if(peg$c22.test(input.charAt(peg$currPos))){s4=input.charAt(peg$currPos);peg$currPos++;}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c23);}} while(s4!==peg$FAILED){s3.push(s4);if(peg$c22.test(input.charAt(peg$currPos))){s4=input.charAt(peg$currPos);peg$currPos++;}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c23);}}} if(s3!==peg$FAILED){s2=[s2,s3];s1=s2;}else{peg$currPos=s1;s1=peg$FAILED;}}else{peg$currPos=s1;s1=peg$FAILED;} if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos);}else{s0=s1;} return s0;} function peg$parseselectCase(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$parse_();if(s1!==peg$FAILED){s2=peg$parseid();if(s2!==peg$FAILED){s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parsecaseTokens();if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c24(s2,s4);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parsepluralCase(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$parse_();if(s1!==peg$FAILED){s2=peg$parsepluralKey();if(s2!==peg$FAILED){s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parsecaseTokens();if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c24(s2,s4);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parsecaseTokens(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c4;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c5);}} if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$currPos;peg$silentFails++;if(input.charCodeAt(peg$currPos)===123){s5=peg$c4;peg$currPos++;}else{s5=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c5);}} peg$silentFails--;if(s5!==peg$FAILED){peg$currPos=s4;s4=void 0;}else{s4=peg$FAILED;} if(s4!==peg$FAILED){s3=[s3,s4];s2=s3;}else{peg$currPos=s2;s2=peg$FAILED;}}else{peg$currPos=s2;s2=peg$FAILED;} if(s2===peg$FAILED){s2=null;} if(s2!==peg$FAILED){s3=[];s4=peg$parsetoken();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parsetoken();} if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s5=peg$c6;peg$currPos++;}else{s5=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c7);}} if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c25(s3);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parseoffset(){var s0,s1,s2,s3,s4,s5,s6,s7;s0=peg$currPos;s1=peg$parse_();if(s1!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c26){s2=peg$c26;peg$currPos+=6;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c27);}} if(s2!==peg$FAILED){s3=peg$parse_();if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c28;peg$currPos++;}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c29);}} if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s6=peg$parsedigits();if(s6!==peg$FAILED){s7=peg$parse_();if(s7!==peg$FAILED){peg$savedPos=s0;s1=peg$c30(s6);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parsepluralKey(){var s0,s1,s2;s0=peg$parseid();if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===61){s1=peg$c31;peg$currPos++;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c32);}} if(s1!==peg$FAILED){s2=peg$parsedigits();if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c30(s2);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}} return s0;} function peg$parsefunctionParams(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=peg$parse_();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s2=peg$c9;peg$currPos++;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10);}} if(s2!==peg$FAILED){s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parseid();if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c33(s4);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;} return s0;} function peg$parsechar(){var s0,s1,s2,s3,s4,s5;if(peg$c34.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c35);}} if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c36){s1=peg$c36;peg$currPos+=2;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c37);}} if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c38();} s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c39){s1=peg$c39;peg$currPos+=2;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c40);}} if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c41();} s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c42){s1=peg$c42;peg$currPos+=2;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c43);}} if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c44();} s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c45){s1=peg$c45;peg$currPos+=2;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c46);}} if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c47();} s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c48){s1=peg$c48;peg$currPos+=2;}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c49);}} if(s1!==peg$FAILED){s2=peg$parsehexDigit();if(s2!==peg$FAILED){s3=peg$parsehexDigit();if(s3!==peg$FAILED){s4=peg$parsehexDigit();if(s4!==peg$FAILED){s5=peg$parsehexDigit();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c50(s2,s3,s4,s5);s0=s1;}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}else{peg$currPos=s0;s0=peg$FAILED;}}}}}} return s0;} function peg$parsedigits(){var s0,s1,s2;s0=peg$currPos;s1=[];if(peg$c51.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c52);}} if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);if(peg$c51.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c52);}}}}else{s1=peg$FAILED;} if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos);}else{s0=s1;} return s0;} function peg$parsehexDigit(){var s0;if(peg$c53.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++;}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c54);}} return s0;} function peg$parse_(){var s0,s1,s2;s0=peg$currPos;s1=[];if(peg$c55.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c56);}} while(s2!==peg$FAILED){s1.push(s2);if(peg$c55.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++;}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c56);}}} if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos);}else{s0=s1;} return s0;} peg$result=peg$startRuleFunction();if(peg$result!==peg$FAILED&&peg$currPos===input.length){return peg$result;}else{if(peg$result!==peg$FAILED&&peg$currPos1){for(var i=1;i=5){version+='-strict';} assert(KEYWORDS[version],'Unknown dialect');return KEYWORDS[version][word];};KEYWORDS['3']=_hash('break else new var','case finally return void','catch for switch while','continue function this with','default if throw','delete in try','do instanceof typeof','abstract enum int short','boolean export interface static','byte extends long super','char final native synchronized','class float package throws','const goto private transient','debugger implements protected volatile','double import public','null true false');KEYWORDS['5']=_hash('break do instanceof typeof','case else new var','catch finally return void','continue for switch while','debugger function this with','default if throw','delete in try','class enum extends super','const export import','null true false');KEYWORDS['5-strict']=_hash(KEYWORDS['5'],'implements let private public yield','interface package protected static');KEYWORDS['6']=_hash('break do in typeof','case else instanceof var','catch export new void','class extends return while','const finally super with','continue for switch yield','debugger function this','default if throw','delete import try','enum await','null true false');KEYWORDS['6-strict']=_hash(KEYWORDS['6'],'let static','implements package protected','interface private public');function _hash(){var set=Array.prototype.map.call(arguments,function(v){return typeof v==='string'?v:Object.keys(v).join(' ');}).join(' ');return set.split(/\s+/).reduce(function(res,keyword){res[keyword]=true;return res;},{});}},{"assert":4}],12:[function(require,module,exports){module.exports=function isBuffer(arg){return arg&&typeof arg==='object'&&typeof arg.copy==='function'&&typeof arg.fill==='function'&&typeof arg.readUInt8==='function';}},{}],13:[function(require,module,exports){(function(process,global){var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i=len)return x;switch(x){case'%s':return String(args[i++]);case'%d':return Number(args[i++]);case'%j':try{return JSON.stringify(args[i++]);}catch(_){return'[Circular]';} default:return x;}});for(var x=args[i];i=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){ctx.showHidden=opts;}else if(opts){exports._extend(ctx,opts);} if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth);} exports.inspect=inspect;inspect.colors={'bold':[1,22],'italic':[3,23],'underline':[4,24],'inverse':[7,27],'white':[37,39],'grey':[90,39],'black':[30,39],'blue':[34,39],'cyan':[36,39],'green':[32,39],'magenta':[35,39],'red':[31,39],'yellow':[33,39]};inspect.styles={'special':'cyan','number':'yellow','boolean':'yellow','undefined':'grey','null':'bold','string':'green','date':'magenta','regexp':'red'};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return'\u001b['+inspect.colors[style][0]+'m'+str+'\u001b['+inspect.colors[style][1]+'m';}else{return str;}} function stylizeNoColor(str,styleType){return str;} function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true;});return hash;} function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes);} return ret;} var primitive=formatPrimitive(ctx,value);if(primitive){return primitive;} var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value);} if(isError(value)&&(keys.indexOf('message')>=0||keys.indexOf('description')>=0)){return formatError(value);} if(keys.length===0){if(isFunction(value)){var name=value.name?': '+value.name:'';return ctx.stylize('[Function'+name+']','special');} if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');} if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),'date');} if(isError(value)){return formatError(value);}} var base='',array=false,braces=['{','}'];if(isArray(value)){array=true;braces=['[',']'];} if(isFunction(value)){var n=value.name?': '+value.name:'';base=' [Function'+n+']';} if(isRegExp(value)){base=' '+RegExp.prototype.toString.call(value);} if(isDate(value)){base=' '+Date.prototype.toUTCString.call(value);} if(isError(value)){base=' '+formatError(value);} if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1];} if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}else{return ctx.stylize('[Object]','special');}} ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys);}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array);});} ctx.seen.pop();return reduceToSingleString(output,base,braces);} function formatPrimitive(ctx,value){if(isUndefined(value)) return ctx.stylize('undefined','undefined');if(isString(value)){var simple='\''+JSON.stringify(value).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+'\'';return ctx.stylize(simple,'string');} if(isNumber(value)) return ctx.stylize(''+value,'number');if(isBoolean(value)) return ctx.stylize(''+value,'boolean');if(isNull(value)) return ctx.stylize('null','null');} function formatError(value){return'['+Error.prototype.toString.call(value)+']';} function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i-1){if(array){str=str.split('\n').map(function(line){return' '+line;}).join('\n').substr(2);}else{str='\n'+str.split('\n').map(function(line){return' '+line;}).join('\n');}}}else{str=ctx.stylize('[Circular]','special');}} if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str;} name=JSON.stringify(''+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,'name');}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,'string');}} return name+': '+str;} function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf('\n')>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,'').length+1;},0);if(length>60){return braces[0]+ (base===''?'':base+'\n ')+' '+ output.join(',\n ')+' '+ braces[1];} return braces[0]+base+' '+output.join(', ')+' '+braces[1];} function isArray(ar){return Array.isArray(ar);} exports.isArray=isArray;function isBoolean(arg){return typeof arg==='boolean';} exports.isBoolean=isBoolean;function isNull(arg){return arg===null;} exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null;} exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==='number';} exports.isNumber=isNumber;function isString(arg){return typeof arg==='string';} exports.isString=isString;function isSymbol(arg){return typeof arg==='symbol';} exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0;} exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==='[object RegExp]';} exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==='object'&&arg!==null;} exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==='[object Date]';} exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==='[object Error]'||e instanceof Error);} exports.isError=isError;function isFunction(arg){return typeof arg==='function';} exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==='boolean'||typeof arg==='number'||typeof arg==='string'||typeof arg==='symbol'||typeof arg==='undefined';} exports.isPrimitive=isPrimitive;exports.isBuffer=require('./support/isBuffer');function objectToString(o){return Object.prototype.toString.call(o);} function pad(n){return n<10?'0'+n.toString(10):n.toString(10);} var months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function timestamp(){var d=new Date();var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(':');return[d.getDate(),months[d.getMonth()],time].join(' ');} exports.log=function(){console.log('%s - %s',timestamp(),exports.format.apply(exports,arguments));};exports.inherits=require('inherits');exports._extend=function(origin,add){if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]];} return origin;};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);}}).call(this,require('_process'),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./support/isBuffer":12,"_process":9,"inherits":5}]},{},[2])(2)}); !function(t,e){"function"==typeof define&&define.amd?define(["messageformat"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("messageformat")):e(t.MessageFormat)}(this,function(r){function i(u,t,e,n){"use strict";var a={},c=t.get(e),f=new r("en");return angular.isFunction(n)&&n(f),c||(c=t(e)),c.put("en",f),a.setLocale=function(t){(f=c.get(t))||(f=new r(t),angular.isFunction(n)&&n(f),c.put(t,f))},a.getInterpolationIdentifier=function(){return"messageformat"},a.useSanitizeValueStrategy=function(t){return u.useStrategy(t),this},a.interpolate=function(t,e,n,a){e=e||{},e=u.sanitize(e,"params",a);var r=c.get("mf:"+t);if(!r){for(var i in e)if(e.hasOwnProperty(i)){var o=parseInt(e[i],10);angular.isNumber(o)&&""+o===e[i]&&(e[i]=o)}r=f.compile(t),c.put("mf:"+t,r)}var s=r(e);return u.sanitize(s,"text",a)},a}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").provider("$translateMessageFormatInterpolation",function(){"use strict";var a;this.messageFormatConfigurer=function(t){a=t},this.$get=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE",function(t,e,n){return i(t,e,n,a)}]}),i.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}); ;(function(angular){'use strict';angular.module('li.services.plugins.localization-manager',['li.services.rest.rest-manager','li.services.community.context-manager','li.services.cache.localstorage-cache-manager','pascalprecht.translate']).config(['$translateProvider',function($translateProvider){$translateProvider.useLoader('$liLocalizationManager',{});$translateProvider.preferredLanguage('en');$translateProvider.addInterpolation('$translateMessageFormatInterpolation');$translateProvider.useSanitizeValueStrategy(null);}]).factory('$liLocalizationManager',['$liRestManager','$log','$q','$rootScope','$liContextManager','$timeout','$translate','$liLocalstorageCacheManager',function($liRestManager,$log,$q,$rootScope,$liContextManager,$timeout,$translate,$liLocalstorageCacheManager){var textdata={li:{}};var groups={};var nodeId=$liContextManager.coreNode().id;var nodeType=$liContextManager.coreNode().type;var promises=[];var groupsLoaded=[];var groupLoadedCbs={};var cache=false;if($liContextManager.config().phase==='prod'){var cachekey='$liLocalizationManager'+'::revision::'+$liContextManager.config()['app.revision']+'::lang::'+$liContextManager.currentUserSettings()['profile.language'];cache=$liLocalstorageCacheManager(cachekey,{capacity:30});} function getGroup(group){if(!textdata.li.hasOwnProperty(group)){textdata.li[group]={};var params={group:'ng-'+group};if(nodeId&&nodeType&&nodeType!=='community'){params[nodeType+'.id']=nodeId;} return $liRestManager.request('/ui/lang/:group',params,{},'GET',cache).then(function(response){if(response.data&&response.data.li){angular.extend(textdata.li[group],response.data.li[group]);groupsLoaded.push(group);if(groupLoadedCbs[group]){angular.forEach(groupLoadedCbs[group],function(cb){cb();});}}else{$log.error('Error loading text keys data for group: ['+group+']',response);}}).catch(function(){$log.error('Error while getting text keys data for group: '+group);});}else{return $q.when();}} function service(){angular.forEach(groups,function(val,group){if(!groups[group]){groups[group]=getGroup(group);} promises.push(groups[group]);});if(promises.length>0){return $q.all(promises).then(function(){return textdata;});}else{return $q.when(textdata);}} function addPart(group){if(!groups.hasOwnProperty(group)){groups[group]=false;$translate.refresh();}} function loaded(checkGroups){var isLoaded=true;angular.forEach(checkGroups,function(checkGroup){if(groupsLoaded.indexOf(checkGroup)===-1){isLoaded=false;}});return isLoaded;} function onLoad(loadGroups,cb){loadGroups=angular.isArray(loadGroups)?loadGroups:[loadGroups];angular.forEach(loadGroups,function(loadGroup){if(groupsLoaded.indexOf(loadGroup)===-1){groupLoadedCbs[loadGroup]=groupLoadedCbs[loadGroup]||[];groupLoadedCbs[loadGroup].push(cb);}else{cb();}});} function loadGroupFromKey(key){var group;if(key&&key.length>0){var parts=key.split('.');if(parts.length>1&&parts[0]==='li'){group=parts[1];addPart(group);}} return group;} function translate(translationId,interpolateParams,interpolation){var defer=$q.defer();onLoad(loadGroupFromKey(translationId),function(){$timeout(function(){$translate(translationId,interpolateParams,interpolation).then(defer.resolve);});});return defer.promise;} service.addPart=addPart;service.loaded=loaded;service.onLoad=onLoad;service.loadGroupFromKey=loadGroupFromKey;service.translate=translate;return service;}]).filter('translate',['$parse','$translate','$liLocalizationManager','$liContextManager',function($parse,$translate,$liLocalizationManager,$liContextManager){function translateFilter(translationId,interpolateParams,interpolation){var showTextKeys=$liContextManager.server().show_text_keys;$liLocalizationManager.loadGroupFromKey(translationId);if(!angular.isObject(interpolateParams)){interpolateParams=$parse(interpolateParams)();} return showTextKeys===true?translationId:$translate.instant(translationId,interpolateParams,interpolation);} translateFilter.$stateful=true;return translateFilter;}]);})(window.LITHIUM&&LITHIUM.angular||angular); (function(I,b){'use strict';function z(b,h){var d=[],c=b.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(b,c,h,k){b="?"===k||"*?"===k;k="*"===k||"*?"===k;d.push({name:h,optional:b});c=c||"";return(b?"(?:"+c:c+"(?:")+(k?"(.+?)":"([^/]+)")+(b?"?)?":")")}).replace(/([/$*])/g,"\\$1");h.ignoreTrailingSlashes&&(c=c.replace(/\/+$/,"")+"/*");return{keys:d,regexp:new RegExp("^"+c+"(?:[?#]|$)",h.caseInsensitiveMatch?"i":"")}}function A(b){p&&b.get("$route")}function v(u,h,d){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(c,f,g,l,k){function q(){r&&(d.cancel(r),r=null);m&&(m.$destroy(),m=null);s&&(r=d.leave(s),r.done(function(b){!1!==b&&(r=null)}),s=null)}function C(){var g=u.current&&u.current.locals;if(b.isDefined(g&&g.$template)){var g=c.$new(),l=u.current;s=k(g,function(g){d.enter(g,null,s||f).done(function(d){!1===d||!b.isDefined(w)||w&&!c.$eval(w)||h()});q()});m=l.scope=g;m.$emit("$viewContentLoaded");m.$eval(p)}else q()}var m,s,r,w=g.autoscroll,p=g.onload||"";c.$on("$routeChangeSuccess",C);C()}}}function x(b,h,d){return{restrict:"ECA",priority:-400,link:function(c,f){var g=d.current,l=g.locals;f.html(l.$template);var k=b(f.contents());if(g.controller){l.$scope=c;var q=h(g.controller,l);g.controllerAs&&(c[g.controllerAs]=q);f.data("$ngControllerController",q);f.children().data("$ngControllerController",q)}c[g.resolveAs||"$resolve"]=l;k(c)}}}var D,E,F,G,y=b.module("ngRoute",[]).info({angularVersion:"1.8.2"}).provider("$route",function(){function u(d,c){return b.extend(Object.create(d),c)}D=b.isArray;E=b.isObject;F=b.isDefined;G=b.noop;var h={};this.when=function(d,c){var f;f=void 0;if(D(c)){f=f||[];for(var g=0,l=c.length;g0){seoEscapePattern=new RegExp(pathElementConfig.match);}}}}} function escapeForSeoMarkerCollisionAvoidance(pathElement){if(pathEscapeCharacter!==null&&seoEscapePattern!==null&&pathElement!==undefined&&pathElement!==null){var pathElementToCheck=pathElement+'';if(pathElementToCheck.match(seoEscapePattern)){return pathEscapeCharacter+pathElement;}} return pathElement;} return{forceRedirect:function forceRedirect(url,$routeParams,params){var query=[];for(var key in params){if($routeParams[key]){if($routeParams[key]!==params[key]){url=url.replace(key+'='+$routeParams[key],key+'='+encodeURIComponent(params[key]));}}else{query.push(key+'='+encodeURIComponent(params[key]));}} if(query.length>0){if(url.indexOf('?')>0){url=url+'&'+query.join('&');}else{url=url+'?'+query.join('&');}} $window.location=url;},getHostName:function getHostName(url){var link=document.createElement('a');link.setAttribute('href',url);return link.hostname;},getPath:function getPath(url){var link=document.createElement('a');link.setAttribute('href',url);return link.pathname;},buildUrl:function buildUrl(key,params){var def=$liUrlManagerConfig[key];var pathItems=[];var queryItems=[];var hasError=false;function add(items,keys,params,required){if(keys){for(var i=0;i0?'?'+queryPairs.join('&'):'';return path+query+fragment;}else{$log.error('No URL exists for %s',key);} return null;},adjustUrl:function adjustUrl(url){var path=url.split('?')[0]||url;var query=url.split('?')[1]||'';var queryPairs=query?query.split('&'):[];var fragment='';var urlAdjuster={addPathParam:function addPathParam(pathKey,pathValue){this.removePathParam(pathKey);path+='/'+pathKey+'/'+escapeForSeoMarkerCollisionAvoidance(pathValue);return urlAdjuster;},removePathParam:function removePathParam(pathKey){var prefixPath;var postfixPath;var pathValueEndIndex;var pathItems=path.split('/'+pathKey+'/');if(pathItems.length===1){return urlAdjuster;} if(pathItems.length!==2){throw'Either the url has more than one path key that was specified or the path key specified is not '+'present. url: '+url+'pathkey: '+pathKey;} prefixPath=pathItems[0];pathValueEndIndex=pathItems[1].indexOf('/');if(pathValueEndIndex===-1){pathValueEndIndex=pathItems[1].indexOf('?');} if(pathValueEndIndex===-1){path=prefixPath;}else{postfixPath=pathItems[1].substr(pathValueEndIndex+1);path=prefixPath+'/'+postfixPath;} return urlAdjuster;},addQueryParam:function addQueryParam(key,value){this.removeQueryParam(key);queryPairs.push(key+'='+$window.encodeURIComponent(value));return urlAdjuster;},removeQueryParam:function removeQueryParam(key){queryPairs=queryPairs.filter(function(value){return value.indexOf(key)!==0;});return urlAdjuster;},compileQueryParams:function compileQueryParams(params){var compiledPairs=[];angular.forEach(queryPairs,function(val){var parts=val.split('=');if(parts.length===2){var queryVal=$window.decodeURIComponent(parts[1]);var compiled=$interpolate(queryVal)(params);compiledPairs.push(parts[0]+'='+$window.encodeURIComponent(compiled));}});queryPairs=compiledPairs;return urlAdjuster;},addFragment:function addFragment(val){fragment=val?'#'+val:'';return urlAdjuster;},build:function build(){query=queryPairs.length>0?'?'+queryPairs.join('&'):'';return path+query+fragment;}};return urlAdjuster;},getPathParameter:function getPathParameter(param,url){var path=url?this.getPath(url):$window.location.pathname;var pathParts=path.split('/');var idx=pathParts.indexOf(param);if(idx>-1&&pathParts.length-1>idx){return decodeURI(pathParts[idx+1]);}else{return null;}},validUrl:function validUrl(url){var urlExp=new RegExp('(http|https)://[\\w-]+(\\.[\\w-]+)+([\\w-.,@?^=%&:/~+#-]*[\\w@?^=%&;/~+#-])?');return url.match(urlExp)!==null;},getImageExtension:function getImageExtension(url){var pathIndex,extensionIndex,protocolIndex;if(url.indexOf('http://')!==-1){protocolIndex=url.indexOf('http://');url=url.substring(protocolIndex+8);}else if(url.indexOf('https://')!==-1){protocolIndex=url.indexOf('http://');url=url.substring(protocolIndex+9);} pathIndex=url.lastIndexOf('/');extensionIndex=url.lastIndexOf('.');if(pathIndex===-1||pathIndex>extensionIndex){return'';}else{return url.substring(extensionIndex+1);}},getImageFileName:function getImageFileName(url){if(this.validUrl(url)&&this.getImageExtension(url)){var pathIndex=url.lastIndexOf('/');var extensionIndex=url.lastIndexOf('.');return url.substring(pathIndex+1,extensionIndex);}else{return'';}},redirect:function redirect(url){$window.location.href=url;},getCurrentUrl:function getCurrentUrl(){return $location.absUrl();}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.directives.common.auto-focus',[]).constant('liCommonAutoFocusConfig',{events:{onFocus:'LITHIUM:auto-focus:focus'}}).directive('liCommonAutoFocus',['$timeout','liCommonAutoFocusConfig',function($timeout,liCommonAutoFocusConfig){return{restrict:'A',scope:{liAutoFocusOn:'='},link:function link($scope,$element){$timeout(function(){$element[0].focus();},10);$scope.$on(liCommonAutoFocusConfig.events.onFocus,function(){$timeout(function(){$element[0].focus();},10);});}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.directives.common.text-ready',['li.services.plugins.localization-manager']).directive('liCommonTextReady',['$liLocalizationManager','$timeout',function($liLocalizationManager,$timeout){return{restrict:'A',link:function link($scope,$element,$attrs){var checkGroups=$scope.$eval($attrs.liCommonTextReady);checkGroups=angular.isArray(checkGroups)?checkGroups:[checkGroups];$element.addClass('lia-not-ready');$liLocalizationManager.onLoad(checkGroups,function check(){$element.toggleClass('lia-not-ready',!$liLocalizationManager.loaded(checkGroups));});$timeout(function(){angular.forEach(checkGroups,function(group){$liLocalizationManager.addPart(group);});});}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.directives.community.navigation-leaf-group',['li.services.utils.url-manager','li.directives.common.text-ready','li.directives.common.slide-menu']).directive('liCommunityNavigationLeafGroup',['$liUrlManager','$location','liSlideMenuConfig',function($liUrlManager,$location,liSlideMenuConfig){return{restrict:'AE',templateUrl:'community/navigation-leaf-group/navigation-leaf-group.tpl.html',scope:{liNodes:'=liNodes'},link:function link($scope){$scope.goToPage=function(url){if($location.path()!==$liUrlManager.getPath(url)){$scope.$emit(liSlideMenuConfig.events.toggleMenu);$liUrlManager.forceRedirect(url);}};}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.directives.community.navigation',['li.services.community.navigation-manager','li.services.community.context-manager','li.services.plugins.localization-manager','li.services.utils.url-manager','li.directives.common.auto-focus','li.directives.common.slide-menu','li.directives.common.text-ready','li.directives.community.navigation-leaf-group']).directive('liCommunityNavigation',['$timeout','$liNavigationManager','$liContextManager','$liUrlManager','$location','liSlideMenuConfig',function($timeout,$liNavigationManager,$liContextManager,$liUrlManager,$location,liSlideMenuConfig){return{restrict:'AE',templateUrl:'community/navigation/navigation.tpl.html',link:function link($scope,$element){var parentElements=null;function selectNode(nodeId){$scope.selectedNodeId=nodeId;$scope.$emit(liSlideMenuConfig.events.scrollTop);} $scope.exitedLeft=[];$liNavigationManager.getStructure().then(function(response){$scope.community=response;$scope.selectedNodeId=$liNavigationManager.getRootLevelNodeId();});$scope.hasExited=function(nodeId){return $scope.exitedLeft.indexOf(nodeId)>=0;};$scope.showNode=function(nodeId){return nodeId===$scope.selectedNodeId||nodeId===$scope.visibleChildNodeId||$scope.hasExited(nodeId)||nodeId===$scope.enteringLeftNodeId;};$scope.navHistory=[];$scope.setCurrent=function(nodeId,back,$event){if(back){var elementToFocus=void 0;if($scope.navHistory.length){$scope.navHistory[$scope.navHistory.length-1].focus();elementToFocus=$scope.navHistory.pop();} $scope.enteringLeftNodeId=nodeId;$timeout(function(){$scope.enteringLeftNodeId='';$scope.exitedLeft.pop();selectNode(nodeId);if(elementToFocus){elementToFocus.focus();}},260);}else{$scope.navHistory.push($event.currentTarget);$scope.exitedLeft.push($scope.selectedNodeId);$scope.visibleChildNodeId=nodeId;$timeout(function(){selectNode($scope.visibleChildNodeId);$scope.visibleChildNodeId='';},260);} disableHiddenLists();if($event){$event.preventDefault();}};function disableHiddenLists(){$timeout(function(){[].forEach.call($element[0].childNodes,function(element){if(element.classList){if(element.classList.contains('lia-nav-selected')){element.removeAttribute('aria-hidden');}else{element.setAttribute('aria-hidden',true);}}});},400);} $scope.isEmpty=function(categoryId){var cat;var empty=false;angular.forEach($scope.community,function(node){if(node.id===categoryId){cat=node;}});if(cat.hasOwnProperty('boards')===false&&cat.hasOwnProperty('descendant_categories')===false&&cat.hasOwnProperty('grouphubs')===false){empty=true;} return empty;};$scope.goToPage=function(url){if($location.path()!==$liUrlManager.getPath(url)){$scope.toggleMenu();$liUrlManager.forceRedirect(url);}};function getElementParents(){if(parentElements===null){parentElements=[];var element=$element[0];if(element){while(element.parentNode){parentElements.push(element);element=element.parentNode;}}} return parentElements;} var allQueryElements=document.body.querySelectorAll('*');$scope.$on(liSlideMenuConfig.events.onToggle,function(event,state){if(state){[].forEach.call(allQueryElements,function(element){if(!$element[0].contains(element)&&getElementParents().indexOf(element)===-1){var existingAriaHidden=element.getAttribute('aria-hidden');element.setAttribute('data-lia-previous-aria-hidden',existingAriaHidden!==null?existingAriaHidden:'null');element.setAttribute('aria-hidden',true);}});}else{var allElementsWithPreviousAriaHidden=document.body.querySelectorAll('*[data-lia-previous-aria-hidden]');[].forEach.call(allElementsWithPreviousAriaHidden,function(element){var previousAriaHidden=element.getAttribute('data-lia-previous-aria-hidden');if(previousAriaHidden==='null'){element.removeAttribute('aria-hidden');}else{element.setAttribute('aria-hidden',previousAriaHidden);} element.removeAttribute('data-lia-previous-aria-hidden');});}});$scope.toggleMenu=function(){$scope.$emit(liSlideMenuConfig.events.toggleMenu);};}};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){'use strict';angular.module('li.directives.common.non-bindable',[]).directive('liCommonNonBindable',['$document','$compile','$rootScope',function($document,$compile,$rootScope){return{restrict:'A',compile:function compile($element){var allowedElements=$element[0].querySelectorAll('[li-bindable]:not([li-compiled])');angular.forEach(allowedElements,function(elm){$compile(angular.element(elm))($rootScope);angular.element(elm).attr('li-compiled','true');});},terminal:true,priority:1000};}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){angular.module('li.directives.common.slide-menu').run(['$templateCache',function($templateCache){$templateCache.put('common/slide-menu/slide-menu.tpl.html','
\n'+' \n'+'
\n'+'
\n'+'
\n'+'');}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){angular.module('li.directives.community.navigation-leaf-group').run(['$templateCache',function($templateCache){$templateCache.put('community/navigation-leaf-group/navigation-leaf-group.tpl.html','\n'+'');}]);})(window.LITHIUM&&LITHIUM.angular||angular); ;(function(angular){angular.module('li.directives.community.navigation').run(['$templateCache',function($templateCache){$templateCache.put('community/navigation/navigation.tpl.html','\n'+'');}]);})(window.LITHIUM&&LITHIUM.angular||angular);