function scrollLockInit(){$(".scroll-lock").each(function(){var n=$(".scroll-lock").index($(this));scrollLockPosition[n]=$(this).offset().top})}function scrollLock(){if($(window).width()<992)return!1;$(".scroll-lock").each(function(){if($(this).hasClass(".scroll-lock-xs")||$(window).width()>=992){var n=$(".scroll-lock").index($(this)),i=$(this).height(),r=$(window).height()-$("#BottomFrameId").height(),t=$(document).scrollTop();i<r?t>scrollLockPosition[n]?($(this).css("position","relative"),$(this).css("top",t-scrollLockPosition[n]+10)):$(this).css("position","static"):t>scrollLockPosition[n]+(i-r)?($(this).css("position","relative"),$(this).css("top",t-scrollLockPosition[n]-(i-r)-10)):$(this).css("position","static")}})}function fbPixelEvents(n,t){var i=JSON.parse(t);fbq("track",n,i)}function ga4Events(n,t,i){var u=JSON.parse(t),r={event:n,ecommerce:u};i&&(r.idPos=parseInt(i));dataLayer.push({ecommerce:null});dataLayer.push(r)}function gtagEvents(n,t){var i=JSON.parse(t);gtag("event",n,i)}var TTI,scrollLockPosition,scrolledLock,resizedLock;TTI||(TTI={});TTI.__namespace=!0;TTI.Global||(TTI.Global={});TTI.Global.uid=1;TTI.Global.timers={};TTI.Core=function(){};TTI.Core.__class=!0;TTI.Core.Using=function(n){$.ajax({url:n,dataType:"script",async:!1})};TTI.Core.TypeOf=function(n){return function(t){return t===n?"global":t==null?"":{}.toString.call(t).match(/\s([a-z|A-Z]+)/)[1]}}(this);TTI.Core.NewGuid=function(){var n=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return(n()+n()+"-"+n()+"-4"+n().substr(0,3)+"-"+n()+"-"+n()+n()+n()).toLowerCase()};TTI.Core.Sleep=function(n){TTI.Core.ArgumentInstanceOf(n,"Function","exitPredicate");var t=undefined;t=function(){n()||setTimeout(t,10)};t()};TTI.Core.IsNull=function(n,t){return n==null?!0:!(t==null)&&typeof t=="String"&&TTI.Core.TypeOf(n)!==t?!0:!1};TTI.Core.Coalesce=function(n,t){return n==null?t:n};TTI.Core.IsInstanceOf=function(n,t){if(n==null)return!1;if(TTI.Core.IsNull(t,"String"))return!0;var i=TTI.Core.TypeOf(n);return i==t};TTI.Core.AsInstanceOf=function(n,t,i){return TTI.Core.IsInstanceOf(n,t)?n:i};TTI.Core.Clone=function(n,t){var i;if(n===undefined)return undefined;if(n===null)return null;var r=TTI.Core.TypeOf(n),u=r==="Array",f=r==="Object";if(f||u){t=t||(u?[]:{});for(i in n)t[i]=n[i];return t}return n};TTI.Core.CloneRec=function(n){var t,i;if(n===undefined)return undefined;if(n===null)return null;var r=TTI.Core.TypeOf(n),u=r==="Array",f=r==="Object";if(f||u){t=u?[]:{};for(i in n)t[i]=TTI.Core.CloneRec(n[i]);return t}return n};TTI.Core.IsNullOrEmpty=function(n){return n==null||n===""};TTI.Core.IsNullOrWhiteSpace=function(n){return n==null||n instanceof String&&n.trim()==""};TTI.Core.GetTrimOrNull=function(n){return n==null||!(TTI.Core.TypeOf(n)=="String")?null:(n=n.trim(),n=="")?null:n};TTI.Core.ArgumentNotNull=function(n,t){if(TTI.Core.IsNull(n))throw new Error("Argument"+(TTI.Core.IsNullOrWhiteSpace(t)?"":' "'+t+'"')+" cannot be null or undefined.");};TTI.Core.ArgumentDefined=function(n,t){if(n===undefined)throw new Error("Argument"+(TTI.Core.IsNullOrWhitespace(t)?"":' "'+t+'"')+" cannot be undefined.");};TTI.Core.ArgumentInstanceOf=function(n,t,i){TTI.Core.ArgumentNotNull(n,"argument");TTI.Core.ArgumentNotNull(t,"typeName");var r=TTI.Core.TypeOf(n);if(r!=t)throw new Error("Argument"+(TTI.Core.IsNullOrWhiteSpace(i)?"":' "'+i+'"')+" is not an instance of "+t);};TTI.Core.ArgumentNullOrInstanceOf=function(n,t,i){if(TTI.Core.ArgumentNotNull(t,"typeName"),!TTI.Core.IsNull(n)){var r=TTI.Core.TypeOf(n);if(r!=t)throw new Error("Argument"+(TTI.Core.IsNullOrWhiteSpace(i)?"":' "'+i+'"')+" is not an instance of "+t);}};TTI.Core.ArgumentIn=function(n,t){var r="",i;if(arguments.length>2)for(i=2;i<arguments.length;i++){if(n==arguments[i])return;r==""?r=arguments[i]:r+=", "+arguments[i]}throw new Error("Argument"+(TTI.Core.IsNullOrWhiteSpace(t)?"":' "'+t+'",')+" "+n+' is not in given values : "'+r+'".');};TTI.Core.CompareObjects=function(n,t,i,r){var f,u,e,o,s;i=i||function(){return!0};r=r||TTI.Core.Compare;f={};for(u in n)f[u]=null,i(u)&&(e=n[u],o=t[u],f[u]=r(e,o));for(u in t)f[u]!==undefined&&i(u)&&(e=n[u],o=t[u],f[u]=r(e,o));s=[];for(u in f)f[u]&&s.push(u);return s};TTI.Core.Compare=function(n,t,i){var f,e,r,u;if(TTI.Core.IsNull(i)&&(i=!1),f=TTI.Core.IsNull(n),e=TTI.Core.IsNull(t),f&&e)return 0;if(f)return-1;if(e)return 1;if(r=TTI.Core.TypeOf(n),u=TTI.Core.TypeOf(t),r!==u)if(r=="Number"){if(t=parseFloat(),t==NaN)throw new Error('Impossible to compare two different types : "'+r+'" and "'+u+'"');}else if(u=="Number"){if(n=parseFloat(),n==NaN)throw new Error('Impossible to compare two different types : "'+r+'" and "'+u+'"');r="Number"}else throw new Error('Impossible to compare two different types : "'+r+'" and "'+u+'"');switch(r){case"Number":return n-t;case"String":if(!isNaN(n)&&!isNaN(t))return parseFloat(n)-parseFloat(t);i===!0&&(n=TTI.Core.IsNull(n)?n:n.toLowerCase(),t=TTI.Core.IsNull(t)?t:t.toLowerCase())}return n<t?-1:n==t?0:1};TTI.Core.ArrayBufferToBase64=function(n){var u;if(TTI.Core.IsNull(n))return n;var o="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(n),l=r.byteLength,c=l%3,s=l-c,f,e,h,a,t;for(u=0;u<s;u=u+3)t=r[u]<<16|r[u+1]<<8|r[u+2],f=(t&16515072)>>18,e=(t&258048)>>12,h=(t&4032)>>6,a=t&63,o+=i[f]+i[e]+i[h]+i[a];return c==1?(t=r[s],f=(t&252)>>2,e=(t&3)<<4,o+=i[f]+i[e]+"=="):c==2&&(t=r[s]<<8|r[s+1],f=(t&64512)>>10,e=(t&1008)>>4,h=(t&15)<<2,o+=i[f]+i[e]+i[h]+"="),o};String.prototype.StartsWith=function(n){return TTI.Core.ArgumentNotNull(n,"String","s"),this.indexOf(n)===0};String.prototype.EndsWith=function(n){return TTI.Core.ArgumentNotNull(n,"String","s"),this.lastIndexOf(n)===this.length-n.length};String.prototype.FirstUpper=function(){return this.length>0?this[0].toString().toUpperCase()+this.substring(1):this};TTI.Object=function(n){if(TTI.Core.IsNull(n))this._fields={};else{var t=TTI.Core.TypeOf(n);t=="String"?(this._fields={},TTI.Core.IsNullOrWhiteSpace(n)||(this._typeName=n)):this._fields=n}};TTI.Object.__class=!0;TTI.Object.prototype.toString=function(){return"{ "+this.GetType()+" }"};TTI.Object.prototype.GetType=function(){return TTI.Core.TypeOf(this)};TTI.Object.prototype.GetHashCode=function(){return TTI.Core.IsNull(this._fields.uid)&&(this._fields.uid=TTI.Global.uid++),this._fields.uid};TTI.EventHandler=function(n){TTI.Core.ArgumentNotNull(n,"owner");TTI.Object.call(this);this._fields.listeners={};this._fields.count=0;this._fields.owner=n};TTI.EventHandler.prototype=new TTI.Object("TTI.EventHandler");TTI.EventHandler.__class=!0;TTI.EventHandler.prototype.Add=function(n,t){TTI.Core.ArgumentInstanceOf(n,"Function","listener");TTI.Core.IsNull(t)&&(t=n);this._fields.listeners[t]===undefined&&this._fields.count++;this._fields.listeners[t]=n};TTI.EventHandler.prototype.Remove=function(n){return(TTI.Core.ArgumentNotNull(n,"keyOrListener"),this._fields.listeners[n]!==undefined)?(delete this._fields.listeners[n],this._fields.count--,!0):!1};TTI.EventHandler.prototype.Fire=function(n){TTI.Core.ArgumentNotNull(n,"eventArgs");for(key in this._fields.listeners){var t=this._fields.listeners[key];t(this._fields.owner,n)}};TTI.EventHandler.prototype.GetListeners=function(){return this._fields.listeners};TTI.EventHandler.prototype.GetCount=function(){return this._fields.count};TTI.EventHandler.prototype.Clear=function(){this._fields.listeners={};this._fields.count=0};Date.prototype.addTime=function(n,t){t||(t=1);var i=this.getTime(),r=parseInt(n*t+(n>=0?.5:-.5));return new Date(i+r)};Date.prototype.addDays=function(n){return this.addTime(n,864e5)};Date.prototype.addHours=function(n){return this.addTime(n,36e5)};Date.prototype.addMinutes=function(n){return this.addTime(n,6e4)};Date.prototype.addSeconds=function(n){return this.addTime(n,1e3)};Date.prototype.addMilliseconds=function(n){return this.addTime(n,1)};Date.getUtcDate=function(){var n=new Date,t=n.getTime()+n.getTimezoneOffset()*6e4;return n.setTime(t),n};Date.prototype.utcFormat=function(n){var t=this.getTimezoneOffset()*6e4,i=new Date(this.getTime()+t);return i.localeFormat(n)};Date.parseUTC=function(n){var t=Date.parseLocale(n,TTI.Global.jDateTimeFormat),i=t.getTimezoneOffset()*6e4;return new Date(t.getTime()-i)};TTI.Enumerator=function(n){TTI.Core.ArgumentNotNull(n,"nextFunc");TTI.Object.call(this);this._fields.nextFunc=n;this._fields.current=null;this._fields.state={};this._fields.index=0};TTI.Enumerator.prototype=new TTI.Object("TTI.Enumerator");TTI.Enumerator.__class=!0;TTI.Enumerator.prototype.MoveNext=function(){if(this._fields.index===-1)return!1;if(this._fields.index++>1e6)throw new Error("TTI.Enumerable is limited to 1`000`000 elements.");var n=this._fields.nextFunc(this._fields.state);return n===undefined?(this._fields.current=null,this._fields.index=-1,!1):(this._fields.current=n,!0)};TTI.Enumerator.prototype.GetCurrent=function(){return this._fields.current};TTI.Enumerator.prototype.Reset=function(){this._fields.current=null;this._fields.index=0;this._fields.state={}};TTI.Enumerable=function(n,t){var i,r,u,f,e;if(TTI.Object.call(this,t),!TTI.Core.IsNull(n))if(i=TTI.Core.TypeOf(n),i=="Function")this._fields.enumeratorNextFunc=n;else if(i=="Array"||i=="String")this._fields.enumeratorNextFunc=function(t){return TTI.Core.IsNull(t.index)&&(t.items=n,t.index=0),t.index<t.items.length?t.items[t.index++]:void 0};else if(i=="Object"){r=n;u=[];for(f in r)u.push(f);e=0;this._fields.enumeratorNextFunc=function(n){if(TTI.Core.IsNull(n.index)&&(n.keys=u,n.index=0),n.index<n.keys.length){var t=n.keys[e++];return r[t]}}}};TTI.Enumerable.prototype=new TTI.Object("TTI.Enumerable");TTI.Enumerable.__class=!0;TTI.Enumerable.GetEnumerable=function(n){if(n instanceof TTI.Enumerable)return n;var t=TTI.Core.TypeOf(n);if(t=="Array"||t=="String"||t=="Object"||t=="Function")return new TTI.Enumerable(n);throw new Error("Impossible to create an enumerable from type "+t+". TTI.Enumerable can only be created from Array, String, Object or Function");};TTI.Enumerable.GetKeyEnumerable=function(n){var t,i;if(n instanceof TTI.Enumerable)return enumerableOrArrayOrObject;if(t=[],n!=null)for(i in n)t.push(i);return new TTI.Enumerable(t)};TTI.Enumerable.prototype.GetEnumerator=function(){var n=this._fields.enumeratorNextFunc;if(n===undefined)throw new Error("TTI.Enumerable.GetEnumerator() method is abstract when enumeratorNextFunc function has not been provided. You are expected to override it in inherited classes.");return new TTI.Enumerator(n)};TTI.Enumerable.prototype.toString=function(n){var r,t,i;n=TTI.Core.IsNull(n)?"\r\n":n;try{for(r=this.GetEnumerator(),t="";r.MoveNext();)i=r.GetCurrent(),t+=(i===undefined?"undefined":i===null?"null":i.toString())+n;return t!=""&&(t=t.substring(0,t.length-n.length)),t}catch(u){return TTI.Object.prototype.toString.call(this)}};TTI.Enumerable.prototype.All=function(n){var t,i,r;for(TTI.Core.ArgumentNotNull(n,"predicate"),t=this.GetEnumerator(),i=0;t.MoveNext();)if(r=t.GetCurrent(),!n(r,i++))return!1;return!0};TTI.Enumerable.prototype.Any=function(n){var t,i;for(TTI.Core.IsNull(n)&&(n=function(){return!0}),t=this.GetEnumerator();t.MoveNext();)if(i=t.GetCurrent(),n(i))return!0;return!1};TTI.Enumerable.prototype.Average=function(n){for(var r=(TTI.Core.IsNull(n,"Function")?this:this.Select(n)).GetEnumerator(),u=0,t=0,i,f;r.MoveNext();)i=r.GetCurrent(),f=TTI.Core.TypeOf(i),f=="Number"&&(u+=i,t++);return t==0?undefined:u/t};TTI.Enumerable.prototype.Concat=function(n){TTI.Core.ArgumentNotNull(n,"enumerableOrArrayOrObject");var t=TTI.Enumerable.GetEnumerable(n),i=this;return new TTI.Enumerable(function(n){return(TTI.Core.IsNull(n.thisEnumerator)&&(n.thisEnumerator=i.GetEnumerator(),n.otherEnumerator=t.GetEnumerator()),n.thisEnumerator.MoveNext())?n.thisEnumerator.GetCurrent():n.otherEnumerator.MoveNext()?n.otherEnumerator.GetCurrent():void 0})};TTI.Enumerable.prototype.Contains=function(n){return this.Any(function(t){return t==n})};TTI.Enumerable.prototype.Count=function(n){for(var i=TTI.Core.IsNull(n,"Function")?this:this.Where(n),r=i.GetEnumerator(),t=0;r.MoveNext();)t++;return t};TTI.Enumerable.prototype.Distinct=function(n){var t={},i=TTI.Core.IsNull(n,"Function");return new TTI.Enumerable(function(r){for(TTI.Core.IsNull(r.enumerator)&&(r.enumerator=this.GetEnumerator());r.enumerator.MoveNext();){var u=r.enumerator.GetCurrent(),f=u;if(i||(f=n(u)),t[f]===undefined)return t[f]=1,u}})};TTI.Enumerable.prototype.ElementAtOrDefault=function(n){if(TTI.Core.ArgumentInstanceOf(n,"Number","index"),n>=0)for(var t=this.GetEnumerator(),i=0;t.MoveNext();)if(i++===n)return t.GetCurrent();return null};TTI.Enumerable.prototype.Except=function(n,t){var o;TTI.Core.ArgumentNotNull(n,"enumerableOrArrayOrObject");for(var u={},f=TTI.Core.IsNull(t,"Function"),e=this.GetEnumerator(),i=null,r=null;e.MoveNext();)i=e.GetCurrent(),r=i,f||(r=t(i)),u[r]={v:i};return o=TTI.Enumerable.GetEnumerable(n),new TTI.Enumerable(function(n){var s,e,h;for(TTI.Core.IsNull(n.hash)&&(n.hash=TTI.Core.Clone(u),n.otherEnumerator=o.GetEnumerator());n.otherEnumerator.MoveNext();){if(i=n.otherEnumerator.GetCurrent(),r=i,f||(r=t(i)),s=n.hash[r],s===undefined)return i;delete n.hash[r]}for(e in n.hash)return h=n.hash[e].v,delete n.hash[e],h})};TTI.Enumerable.prototype.FirstOrDefault=function(n){var i=TTI.Core.IsNull(n,"Function")?this:this.Where(n),t=i.GetEnumerator();return t.MoveNext()?t.GetCurrent():null};TTI.Enumerable.prototype.ForEach=function(n){var t,i,r;for(TTI.Core.ArgumentInstanceOf(n,"Function","func"),t=this.GetEnumerator(),i=0;t.MoveNext();)r=t.GetCurrent(),n(r,i++);return this};TTI.Enumerable.prototype.GroupBy=function(n,t){var r=this.ToLookup(n,t),u=[],i,f;for(i in r)f=r[i],u.push(new TTI.Grouping(i,f));return new TTI.List(u)};TTI.Enumerable.prototype.Intersect=function(n,t){var o;TTI.Core.ArgumentNotNull(n,"enumerableOrArrayOrObject");for(var u={},f=TTI.Core.IsNull(t,"Function"),e=this.GetEnumerator(),r=null,i=null;e.MoveNext();)i=e.GetCurrent(),r=i,f||(r=t(i)),u[r]={v:i};return o=TTI.Enumerable.GetEnumerable(n),new TTI.Enumerable(function(n){for(TTI.Core.IsNull(n.otherEnumerator)&&(n.otherEnumerator=o.GetEnumerator());n.otherEnumerator.MoveNext();){i=n.otherEnumerator.GetCurrent();r=i;f||(r=t(i));var e=u[r];if(e!==undefined)return i}})};TTI.Enumerable.prototype.Join=function(n,t,i,r){var u,f;return TTI.Core.ArgumentNotNull(n,"enumerableOrArrayOrObject"),u=TTI.Enumerable.GetEnumerable(n),t=TTI.Core.IsNull(t,"Function")?function(){return!0}:t,i=TTI.Core.IsNull(i,"Function")?function(n,t){return{LeftItem:n,RightItem:t}}:i,f=this,new TTI.Enumerable(function(n){var h,e,o,s;for(TTI.Core.IsNull(n.thisEnumerator)&&(n.thisEnumerator=f.GetEnumerator(),n.token=null);;){if(n.token===null)if(n.thisEnumerator.MoveNext())h=n.thisEnumerator.GetCurrent(),n.token={left:h,enumerator:u.GetEnumerator(),hasMatch:!1};else return undefined;for(e=n.token.left,o=n.token.enumerator;o.MoveNext();)if(s=o.GetCurrent(),t(e,s))return n.token.hasMatch=!0,i(e,s);if(!n.token.hasMatch&&r)return n.token=null,i(e,null);n.token=null}})};TTI.Enumerable.prototype.LastOrDefault=function(n){for(var r=TTI.Core.IsNull(n,"Function")?this:this.Where(n),t=r.GetEnumerator(),i=null;t.MoveNext();)i=t.GetCurrent();return i};TTI.Enumerable.prototype.Max=function(n){for(var r=(TTI.Core.IsNull(n)?this:this.Select(n)).GetEnumerator(),t=undefined,i;r.MoveNext();)i=r.GetCurrent(),(t===undefined||i>t)&&(t=i);return t};TTI.Enumerable.prototype.Min=function(n){for(var r=(TTI.Core.IsNull(n)?this:this.Select(n)).GetEnumerator(),t=undefined,i;r.MoveNext();)i=r.GetCurrent(),(t===undefined||t>i)&&(t=i);return t};TTI.Enumerable.prototype.OrderBy=function(n,t){var i=this.ToArray(),r=TTI.Core.IsNull(n,"Function");return i.sort(function(i,u){var f=r?i:n(i),e=r?u:n(u);return TTI.Core.Compare(f,e,t)}),new TTI.Enumerable(i,"TTI.Enumerable")};TTI.Enumerable.prototype.OrderByDescending=function(n,t){var i=this.ToArray(),r=TTI.Core.IsNull(n);return i.sort(function(i,u){var f=r?i:n(i),e=r?u:n(u);return-TTI.Core.Compare(f,e,t)}),new TTI.Enumerable(i,"TTI.Enumerable")};TTI.Enumerable.prototype.Reverse=function(){var n=this.ToArray();return n.reverse(),new TTI.Enumerable(n,"TTI.Enumerable")};TTI.Enumerable.prototype.Select=function(n){TTI.Core.ArgumentNotNull(n,"selector");var t=this;return new TTI.Enumerable(function(i){for(TTI.Core.IsNull(i.enumerator)&&(i.enumerator=t.GetEnumerator(),i.index=0);i.enumerator.MoveNext();){var r=i.enumerator.GetCurrent();return n(r,i.index++)}})};TTI.Enumerable.prototype.SelectMany=function(n){TTI.Core.ArgumentInstanceOf(n,"Function","manySelector");var t=this;return new TTI.Enumerable(function(i){for(TTI.Core.IsNull(i.enumerator)&&(i.thisEnumerator=t.GetEnumerator(),i.otherEnumerator=undefined,i.index=0);;){if(i.otherEnumerator===undefined)if(i.thisEnumerator.MoveNext()){var r=i.thisEnumerator.GetCurrent(),u=n(r),f=TTI.Enumerable.GetEnumerable(u);i.otherEnumerator=f.GetEnumerator()}else return undefined;if(i.otherEnumerator.MoveNext())return i.otherEnumerator.GetCurrent();i.otherEnumerator=undefined}})};TTI.Enumerable.prototype.SequenceEqual=function(n,t){var i,e;TTI.Core.ArgumentNotNull(n,"enumerableOrArrayOrObject");for(var r=this.GetEnumerator(),u=this.GetEnumerator(),f=TTI.Core.IsNull(t,"Function");;){if(i=r.MoveNext(),e=u.MoveNext(),i!=e)return!1;if(!i)return!0;var o=r.GetCurrent(),s=u.GetCurrent(),h=f?o:t(o),c=f?s:t(s);if(h!=c)return!1}};TTI.Enumerable.prototype.Skip=function(n){TTI.Core.ArgumentInstanceOf(n,"Number","count");var t=this;return new TTI.Enumerable(function(i){if(n>=0)for(TTI.Core.IsNull(i.enumerator)&&(i.enumerator=t.GetEnumerator(),i.index=0);i.enumerator.MoveNext();){var r=i.enumerator.GetCurrent();if(i.index++>=n)return r}})};TTI.Enumerable.prototype.SkipWhile=function(n){TTI.Core.ArgumentInstanceOf(n,"Function","predicate");var t=this;return new TTI.Enumerable(function(i){for(TTI.Core.IsNull(i.enumerator)&&(i.enumerator=t.GetEnumerator(),i.index=0,i.skip=!1);i.enumerator.MoveNext();){var r=i.enumerator.GetCurrent();if(i.skip=i.skip||n(r,i.index++),!i.skip)return r}})};TTI.Enumerable.prototype.Sum=function(n){for(var r=(TTI.Core.IsNull(n)?this:this.Select(n)).GetEnumerator(),t=undefined,i,u;r.MoveNext();)i=r.GetCurrent(),u=TTI.Core.TypeOf(i),u=="Number"&&(t===undefined?t=i:t+=i);return t};TTI.Enumerable.prototype.Take=function(n){TTI.Core.ArgumentInstanceOf(n,"Number","count");var t=this;return new TTI.Enumerable(function(i){if(n>0)for(TTI.Core.IsNull(i.enumerator)&&(i.enumerator=t.GetEnumerator(),i.index=0);i.enumerator.MoveNext()&&i.index++<n;)return i.enumerator.GetCurrent()})};TTI.Enumerable.prototype.TakeWhile=function(n){TTI.Core.ArgumentInstanceOf(n,"Function","predicate");var t=this;return new TTI.Enumerable(function(i){for(TTI.Core.IsNull(i.enumerator)&&(i.enumerator=t.GetEnumerator(),i.index=0,i.take=!0);i.take&&i.enumerator.MoveNext();){var r=i.enumerator.GetCurrent();if(i.take=i.take&&n(r,i.index++),i.take)return r}})};TTI.Enumerable.prototype.ToArray=function(){for(var n=[],t=this.GetEnumerator();t.MoveNext();)n.push(t.GetCurrent());return n};TTI.Enumerable.prototype.ToList=function(){return new TTI.List(this)};TTI.Enumerable.prototype.ToDictionary=function(n,t){var u,f,i,r;for(TTI.Core.ArgumentInstanceOf(n,"Function","keySelector"),u={},f=this.GetEnumerator();f.MoveNext();)i=f.GetCurrent(),r=i,TTI.Core.IsNull(n)||(r=n(r)),TTI.Core.IsNull(t)||(i=t(i)),u[r]=i;return u};TTI.Enumerable.prototype.ToLookup=function(n,t){var f,e,i,u,r;for(TTI.Core.ArgumentInstanceOf(n,"Function","keySelector"),f={},e=this.GetEnumerator();e.MoveNext();)i=e.GetCurrent(),u=i,TTI.Core.IsNull(n)||(u=n(u)),TTI.Core.IsNull(t)||(i=t(i)),r=f[u],r!=null?r.Add(i):(r=new TTI.List,r.Add(i),f[u]=r);return f};TTI.Enumerable.prototype.Union=function(n,t){TTI.Core.ArgumentNotNull(n,"enumerableOrArrayOrObject");var f=this,e=TTI.Enumerable.GetEnumerable(n),u=TTI.Core.IsNull(t),i=null,r=null;return new TTI.Enumerable(function(n){return(TTI.Core.IsNull(n.thisEnumerator)&&(n.thisEnumerator=f.GetEnumerator(),n.otherEnumerator=e.GetEnumerator(),n.hash={}),n.thisEnumerator.MoveNext())?(i=n.thisEnumerator.GetCurrent(),r=u?i:t(i),n.hash[r]=1,i):n.otherEnumerator.MoveNext()&&(i=n.otherEnumerator.GetCurrent(),r=u?i:t(i),n.hash[r]===undefined)?i:void 0})};TTI.Enumerable.prototype.Where=function(n){TTI.Core.IsNull(n)&&(n=function(){return!0});var t=this.GetEnumerator();return new TTI.Enumerable(function(){while(t.MoveNext()){var i=t.GetCurrent();if(n(i))return i}})};TTI.Grouping=function(n,t){TTI.Core.ArgumentNotNull(n,"key");TTI.Enumerable.call(this,null,"TTI.Grouping");this._fields.enumerable=TTI.Core.IsNull(t)?[]:TTI.Enumerable.GetEnumerable(t);this._fields.key=n};TTI.Grouping.prototype=new TTI.Enumerable;TTI.Grouping.__class=!0;TTI.Grouping.prototype.GetKey=function(){return this._fields.key};TTI.Grouping.prototype.GetEnumerator=function(){var n=this;return new TTI.Enumerator(function(t){return TTI.Core.IsNull(t.enumerator)&&(t.enumerator=n._fields.enumerable.GetEnumerator()),t.enumerator.MoveNext()?t.enumerator.GetCurrent():void 0})};TTI.Grouping.prototype.toString=function(){return this._fields.key+":\r\n\t"+TTI.Enumerable.prototype.toString.call(this,"\r\n\t")};TTI.ReadOnlyCollection=function(n){TTI.Enumerable.call(this,null,"TTI.ReadOnlyCollection");this._fields.items=TTI.Core.IsNull(n)?[]:TTI.Enumerable.GetEnumerable(n).ToArray()};TTI.ReadOnlyCollection.prototype=new TTI.Enumerable;TTI.ReadOnlyCollection.__class=!0;TTI.ReadOnlyCollection.prototype.GetEnumerator=function(){var n=this;return new TTI.Enumerator(function(t){return TTI.Core.IsNull(t.index)&&(t.items=n._fields.items,t.index=0),t.index<t.items.length?t.items[t.index++]:void 0})};TTI.ReadOnlyCollection.prototype.ToArray=function(n,t){var r=this._fields.items,i=r.length;if(i>0){if(TTI.Core.IsNull(n)&&(n=0),TTI.Core.IsNull(t)&&(t=i),n<0||n>=i)throw new Error("Provided index is out of range. It must be between 0 and "+i+" (exclusive)");if(t<0||n>i-t)throw new Error("Provided count is out of range. It must be between 0 and "+(i-t)+" (inclusive)");if(t>0)return r.slice(n,n+t)}return[]};TTI.ReadOnlyCollection.prototype.LastOrDefault=function(n){var t=this._fields.items,i,r;if(t.length==0)return null;if(!TTI.Core.IsNull(n,"Function")){for(i=t.length;i>=0;i--)if(r=t[i],n(r,index))return r;return null}return t[t.length-1]};TTI.ReadOnlyCollection.prototype.ElementAtOrDefault=function(n){TTI.Core.ArgumentInstanceOf(n,"Number","index");var t=this._fields.items;return n>=0&&n<t.length?t[n]:null};TTI.ReadOnlyCollection.prototype.Count=function(n){return TTI.Core.IsNull(n,"Function")?this._fields.items.length:TTI.Enumerable.prototype.Count(n)};TTI.ReadOnlyCollection.prototype.GetCount=function(){return this._fields.items.length};TTI.ReadOnlyCollection.prototype.GetItem=function(n){TTI.Core.ArgumentInstanceOf(n,"Number","index");var t=this._fields.items,i=t.length;if(n<0||n>=i)throw new Error("Provided index is out of range. It must be between 0 and "+i+" (exclusive)");return t[n]};TTI.ReadOnlyCollection.prototype.IndexOf=function(n,t,i){var f=this._fields.items,r=f.length,u;if(TTI.Core.IsNull(t)&&(t=0),TTI.Core.IsNull(i)&&(i=r),t<0||t>=r)throw new Error("Provided index is out of range. It must be between 0 and "+r+" (exclusive)");if(i<0||t>r-i)throw new Error("Provided count is out of range. It must be between 0 and "+(r-i)+" (inclusive)");if(r==0)return-1;for(u=t;u<t+i;u++)if(f[u]===n)return u;return-1};TTI.ReadOnlyCollection.prototype.LastIndexOf=function(n,t,i){var f=this._fields.items,r=f.length,e,u;if(TTI.Core.IsNull(t)&&(t=r-1),TTI.Core.IsNull(i)&&(i=r),r!=0&&t<0)throw new Error("Provided index is out of range. It cannot be negative.");if(r!=0&&i<0)throw new Error("Provided count is out of range. It cannot be negative.");if(r==0)return-1;if(t>=r)throw new Error("Provided index is out of range. It must be between 0 and "+r+" (exclusive)");if(i>t+1)throw new Error("Provided count is out of range. It must be between 0 and "+(r-i)+" (inclusive)");for(e=t-i+1,u=t;u>=e;u--)if(f[u]===n)return u;return-1};TTI.ReadOnlyCollection.prototype.Clone=function(){return new TTI.ReadOnlyCollection(this._fields.items)};TTI.List=function(n){TTI.ReadOnlyCollection.call(this,n);this._fields.version=0;this._typeName="TTI.List"};TTI.List.prototype=new TTI.ReadOnlyCollection;TTI.List.__class=!0;TTI.List.prototype.GetEnumerator=function(){var n=this;return new TTI.Enumerator(function(t){if(TTI.Core.IsNull(t.version)&&(t.version=n._fields.version,t.items=n._fields.items,t.index=0),n._fields.version!=t.version)throw new Error("InvalidOperation: Enumerable was modified after the enumerator was instanciated.");if(t.index<t.items.length)return t.items[t.index++]})};TTI.List.prototype.Reverse=function(){this._fields.version++;this._fields.items.reverse()};TTI.List.prototype.SetItem=function(n,t){TTI.Core.ArgumentInstanceOf(n,"Number","index");var i=this._fields.items,r=i.length;if(n<0||n>=r)throw new Error("Provided index is out of range. It must be between 0 and "+r+" (exclusive)");this._fields.version++;i[n]=t};TTI.List.prototype.GetItems=function(){return this._fields.items};TTI.List.prototype.Add=function(n){this.Insert(this._fields.items.length,n)};TTI.List.prototype.Insert=function(n,t){if(TTI.Core.ArgumentInstanceOf(n,"Number","index"),n<0||n>this._fields.items.length)throw new Error("Provided index is out of range. It cannot be between 0 and "+this._fields.items.length+".");this._fields.version++;n==this._fields.items.length?this._fields.items.push(t):this._fields.items.splice(n,0,t)};TTI.List.prototype.RemoveAt=function(n){TTI.Core.ArgumentInstanceOf(n,"Number","index");var t=this._fields.items,i=t.length;if(n<0||n>=i)throw new Error("Provided index is out of range. It must be between 0 and "+i+" (exclusive)");this._fields.version++;t.splice(n,1)};TTI.List.prototype.Remove=function(n){var t=this.IndexOf(n);return t!=-1?(this.RemoveAt(t),!0):!1};TTI.List.prototype.Clear=function(){this._fields.version++;this._fields.items=[]};TTI.List.prototype.AddRange=function(n){if(!TTI.Core.IsNull(n))for(var i=TTI.Enumerable.GetEnumerable(n),t=i.GetEnumerator();t.MoveNext();)this.Add(t.GetCurrent())};TTI.List.prototype.InsertRange=function(n,t){if(!TTI.Core.IsNull(t))for(var r=TTI.Enumerable.GetEnumerable(t),i=r.GetEnumerator(),u=0;i.MoveNext();)this.Insert(n+u++,i.GetCurrent())};TTI.List.prototype.RemoveRange=function(n,t){var r=this._fields.items,u=r.length,i;if(n<0)throw new Error("Provided index is out of range. It cannot be negative.");if(t<0)throw new Error("Provided count is out of range. It cannot be negative.");if(u-n<t)throw new Error("Index and count do not denote a valid range of elements in the list.");for(i=t;i-->0;)this.RemoveAt(n)};TTI.List.prototype.Clone=function(){return new TTI.List(this._fields.items)};TTI.List.prototype.Sort=function(n){var t=this._fields.items;this._fields.version++;TTI.Core.IsNull(n)?t.sort():t.sort(n)};TTI.DictionaryEntry=function(n,t){TTI.Core.ArgumentNotNull(n,"key");TTI.Object.call(this,"TTI.DictionaryEntry");this._fields.key=n;this._fields.value=t};TTI.DictionaryEntry.prototype=new TTI.Object;TTI.DictionaryEntry.__class=!0;TTI.DictionaryEntry.prototype.GetKey=function(){return this._fields.key};TTI.DictionaryEntry.prototype.GetValue=function(){return this._fields.value};TTI.Date={};TTI.Date.Enums={format:{UTC:"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]",local:"YYYY-MM-DD[T]HH:mm:ss.SSSZ",unspecified:"YYYY-MM-DD[T]HH:mm:ss.SSS"}};TTI.Date.Config={PostDefaultFormat:TTI.Date.Enums.format.unspecified};TTI.Date.Get=function(n){return moment(n)};TTI.Date.Get=function(n,t){return moment(n,t)};TTI.Date.Post=function(n,t){return t||(t=TTI.Date.Config.PostDefaultFormat),moment.parseZone(n).format(t)};TTI.Date.ParsePost=function(n){if(n&&n._isAMomentObject)n=TTI.Date.Post(n);else for(var t in n)console.log(t),TTI.Date.ParsePost(n[t])};scrollLockPosition=[];$(document).ready(function(){scrollLockInit();scrollLock();$(window).scroll(function(){scrollLock()});$(window).resize(function(){scrollLock()})});TTI||(TTI={});TTI.NewGuid=function(){function n(){return((1+Math.random())*65536|0).toString(16).substring(1)}return(n()+n()+"-"+n()+"-4"+n().substr(0,3)+"-"+n()+"-"+n()+n()+n()).toLowerCase()};TTI.Autocomplete={Create:function(){var n=$(this),r=this,t={guid:TTI.NewGuid().toString(),source:n.attr("data-tti-autocomplete-url"),name:n.attr("data-tti-autocomplete-name")?n.attr("data-tti-autocomplete-name"):"filter",callback:function(){return n.attr("data-tti-autocomplete-callback")?eval(n.attr("data-tti-autocomplete-callback")):null},linkedWith:n.attr("data-tti-autocomplete-linkedWith")?JSON.parse(n.attr("data-tti-autocomplete-linkedWith")):null},i={content:'<div id="'+t.guid+'"><\/div>',html:!0,trigger:"focus",placement:"bottom"};n.popover(i);n.keyup(t,function(i){var f=$(this),e=f.val(),u=[],r;u.push({name:i.data.name,value:e});i.data.linkedWith&&i.data.linkedWith.forEach(function(n){$item=$("#"+n);var t=$item.attr("data-tti-autocomplete-name")?$item.attr("data-tti-autocomplete-name"):"filter",i=$item.val();u.push({name:t,value:i})});r="{";u.forEach(function(n,t){r+='"'+n.name+'" : "'+n.value+'"';t<u.length-1&&(r+=",")});r+="}";$.getJSON(i.data.source,JSON.parse(r),function(i){t.callback()!=null&&(n.popover("show"),t.callback()(t,i))})})}};$("input[data-tti-autocomplete-url]").each(TTI.Autocomplete.Create)