1var globalMinDate="";jQuery(document).ready(function(n){function l(n,t){for(var i=moment(n,"HH:mm").set("minute",00).set("second",00),r=30,u='<div class="timeline"><ul>';i.isSameOrBefore(moment(t,"HH:mm"))==!0&&r<=1440||r<600;)u+="<li><span>"+moment(i).format("HH:mm")+"<\/span><\/li>",i=moment(i).add(30,"minutes"),r+=30;return u+"<\/ul><\/div>"}function a(n){var t=moment(n).day(1),i=moment(t).add(6,"days"),r="";for(t>moment(n)&&(t=moment(t.format("YYYY-MM-DD")).subtract(1,"week"),i=moment(i.format("YYYY-MM-DD")).subtract(1,"week")),globalMinDate==""&&(globalMinDate=t.format("YYYY-MM-DD")),r+='<div class="events"><ul>';t<=i;)r+='<li class="events-group"><div class="top-info text-center"><div class="name-week">'+t.format("dddd")+'<\/div><div data-date="'+t.format("DD/MM/YYYY")+'" class="name-day">'+t.format("DD/MM/YYYY")+"<\/div><\/div><ul><\/ul><\/li>",t=moment(t).add(1,"days");return r+"<\/ul><\/div>"}function v(t,i){var u=jQuery.parseHTML(i),r=1,f,e;return n.each(t.items,function(t,i){var o;r>4&&(r=1);var s=moment(i.start.dateTime,["YYYY-MM-DDTHH:mmZZ",moment.ISO_8601]),h=moment(i.end.dateTime,["YYYY-MM-DDTHH:mmZZ",moment.ISO_8601]),c=s.format("YYYY-MM-DDTHH:mm"),l=h.format("YYYY-MM-DDTHH:mm"),f=moment.parseZone(c).local().format(),a=moment.parseZone(l).local().format(),v=moment(f).format("DD/MM/YYYY"),e=n(u).find("[data-date='"+v+"']");e.length>0&&(o='<li class="single-event" data-start="'+moment(f).format("HH:mm")+'" data-end="'+moment(a).format("HH:mm")+'" data-content="'+i.description+'" data-event="event-'+r+'"><a href="javascript:void(0);"><div class="event-name">'+i.summary+"<\/div><\/a><\/li>",n(e).closest(".events-group").find("ul").append(o));r++}),f=u[0].outerHTML,e='<div class="event-modal"><header class="header"><div class="content"><span class="event-date"><\/span><h3 class="event-name"><\/h3><\/div><div class="header-bg"><\/div><\/header><div class="body"><div class="event-info"><\/div><div class="body-bg"><\/div><\/div><a href="javascript:void(0);" class="close">Close<\/a><\/div><div class="cover-layer"><\/div>',f+e}function s(t,i,r){var o,u;if(i==null)return!1;moment.locale("pt-BR");var s=h(i.items,"start"),e=h(i.items,"end"),f=s[1];if(typeof r!="undefined")if(moment(r)<=moment(e[0])&&moment(r).add(6,"days")>=moment(f))f=r,n(t).parent().find(".carousel-nav").find(".nav-item.right").removeClass("disabled"),n(t).parent().find(".carousel-nav").find(".nav-item.left").removeClass("disabled");else return moment(r)>moment(e[0])?n(t).parent().find(".carousel-nav").find(".nav-item.right").addClass("disabled"):moment(r).add(6,"days")<moment(f)&&n(t).parent().find(".carousel-nav").find(".nav-item.left").addClass("disabled"),!1;return o="",u="",o=l(s[3],e[2]),u=a(f),u=v(i,u),t.html(""),t.removeClass("js-full"),t.append(o+u),!0}function y(t,r){var e="",o,u;if(e+='<div class="crsl-nav carousel-nav" ><a class="nav-item left previous" title="Anterior" href="javascript:void(0);"><i class="fa fa-chevron-left"><\/i><\/a><a class="nav-item right next" title="Próximo" href="javascript:void(0);"><i class="fa fa-chevron-right"><\/i><\/a><\/div><div class="cd-schedule"><\/div>',o=jQuery.parseHTML(e),t.append(o),n(t).find(".nav-item").each(function(){n(this).click({parent:t.selector,json:r},p)}),u=n(t).find(".cd-schedule"),s(u,r))u.each(function(){f.push(new i(n(this)))});else return}function p(t){var u=n(t.data.parent).find(".cd-schedule"),r="";if(n(this).hasClass("next")?r=moment(globalMinDate).add(1,"week").format("YYYY-MM-DD"):n(this).hasClass("previous")&&(r=moment(globalMinDate).subtract(1,"week").format("YYYY-MM-DD")),s(u,t.data.json,r))u.each(function(){f.push(new i(n(this)))}),globalMinDate=r;else return}function h(n,t){var i,r,u,f,e;if(t!=null)for(e=0;e<n.length;e++){var c=moment(n[e][t].dateTime,["YYYY-MM-DDTHH:mmZZ",moment.ISO_8601]),l=moment(c).format("YYYY-MM-DDTHH:mm"),h=moment.parseZone(l).local().format(),o=moment(moment(h).format("HH:mm"),"HH:mm"),s=moment(moment(h).format("YYYY-MM-DD"),"YYYY-MM-DD");(!i||s.isAfter(moment(i,"YYYY-MM-DD")))&&(i=s.format("YYYY-MM-DD"));(!r||s.isBefore(moment(r,"YYYY-MM-DD")))&&(r=s.format("YYYY-MM-DD"));(!u||o.isAfter(moment(u,"HH:mm")))&&(u=o.format("HH:mm"));(!f||o.isBefore(moment(f,"HH:mm")))&&(f=o.format("HH:mm"))}return[i,r,u,f]}function i(n){this.element=n;this.timeline=this.element.find(".timeline");this.timelineItems=this.timeline.find("li");this.timelineItemsNumber=this.timelineItems.length;this.timelineStart=u(this.timelineItems.eq(0).text());this.timelineUnitDuration=u(this.timelineItems.eq(1).text())-u(this.timelineItems.eq(0).text());this.eventsWrapper=this.element.find(".events");this.eventsGroup=this.eventsWrapper.find(".events-group");this.singleEvents=this.eventsGroup.find(".single-event");this.eventSlotHeight=this.eventsGroup.eq(0).children(".top-info").outerHeight();this.modal=this.element.find(".event-modal");this.modalHeader=this.modal.find(".header");this.modalHeaderBg=this.modal.find(".header-bg");this.modalBody=this.modal.find(".body");this.modalBodyBg=this.modal.find(".body-bg");this.modalMaxWidth=800;this.modalMaxHeight=480;this.animating=!1;this.initSchedule()}function c(){f.forEach(function(n){n.scheduleReset()});e=!1}function u(n){n=n.replace(/ /g,"");var t=n.split(":");return parseInt(t[0])*60+parseInt(t[1])}function r(n,t){n.css({"-moz-transform":t,"-webkit-transform":t,"-ms-transform":t,"-o-transform":t,transform:t})}var t="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",o=n(".csstransitions").length>0,f,e;o||(t="noTransition");f=[];e=!1;n.fn.TimeTable=function(n){var t=this;if(t.length>0&&n!=null)y(t,n);else return};i.prototype.initSchedule=function(){this.scheduleReset();this.initEvents()};i.prototype.scheduleReset=function(){var n=this.mq();n!="desktop"||this.element.hasClass("js-full")?n=="mobile"&&this.element.hasClass("js-full")?(this.element.removeClass("js-full loading"),this.eventsGroup.children("ul").add(this.singleEvents).removeAttr("style"),this.eventsWrapper.children(".grid-line").remove(),this.element.hasClass("modal-is-open")&&this.checkEventModal()):n=="desktop"&&this.element.hasClass("modal-is-open")?(this.checkEventModal("desktop"),this.element.removeClass("loading")):this.element.removeClass("loading"):(this.eventSlotHeight=this.eventsGroup.eq(0).children(".top-info").outerHeight(),this.element.addClass("js-full"),this.placeMultipleEvents(),this.element.hasClass("modal-is-open")&&this.checkEventModal())};i.prototype.initEvents=function(){var t=this;this.singleEvents.each(function(){var i='<span class="event-date">'+n(this).data("start")+" - "+n(this).data("end")+"<\/span>";n(this).children("a").prepend(n(i));n(this).on("click","a",function(i){i.preventDefault();t.animating||t.openModal(n(this))})});this.modal.on("click",".close",function(n){n.preventDefault();t.animating||t.closeModal(t.eventsGroup.find(".selected-event"))});this.element.on("click",".cover-layer",function(){!t.animating&&t.element.hasClass("modal-is-open")&&t.closeModal(t.eventsGroup.find(".selected-event"))})};i.prototype.placeMultipleEvents=function(){var t=this,i=0,r=n("style").html(),f=this.timeline.find("ul").height();this.eventsGroup.each(function(){var e=1,f=1,o=0,s=[];n(this).find(".single-event").each(function(h){var c=u(n(this).attr("data-start")),y=u(n(this).attr("data-end"))-c,l=u(n(this).attr("data-end")),p=t.eventSlotHeight*(c-t.timelineStart)/t.timelineUnitDuration,w=t.eventSlotHeight*y/t.timelineUnitDuration,v,a;if(e=f,f=1,n.each(s,function(n,t){c==t[0]?f+=1:l==t[1]?f+=1:c>t[0]&&l<t[1]?f+=1:c>t[0]&&c<t[1]?f+=1:l>t[0]&&l<t[1]&&(f+=1)}),n(this).addClass("single-event-"+i),f>1)o=1;else{if(o==1)for(v=0,a=i-e;a<i;a++)v+=100/(e+1),r+="\n.cd-schedule .events .single-event-"+a+" {left:"+v+"%;}";e=1;o=0}n(this).css({top:p-1+"px",height:w+1+"px"});s[h]=[c,l];i++})});r+="@media only screen and (min-width: 800px){\n.cd-schedule .events .events-group > ul {height:"+(f+1)+"px;}\n}";n("head").append("<style>"+r+"<\/style>");this.element.removeClass("loading")};i.prototype.placeEvents=function(){var t=this;this.singleEvents.each(function(){var i=u(n(this).attr("data-start")),r=u(n(this).attr("data-end"))-i,f=t.eventSlotHeight*(i-t.timelineStart)/t.timelineUnitDuration,e=t.eventSlotHeight*r/t.timelineUnitDuration;n(this).css({top:f-1+"px",height:e+1+"px"})});this.element.removeClass("loading")};i.prototype.openModal=function(i){var u=this,p=u.mq();if(this.animating=!0,this.modalHeader.find(".event-name").text(i.find(".event-name").text()),this.modalHeader.find(".event-date").text(i.find(".event-date").text()),this.modal.attr("data-event",i.parent().attr("data-event")),this.modalBody.find(".event-info").html("<div>"+i.parent().attr("data-content")+"<\/div>"),u.element.addClass("content-loaded"),this.element.addClass("modal-is-open"),setTimeout(function(){i.parent("li").addClass("selected-event")},10),p=="mobile")u.modal.one(t,function(){u.modal.off(t);u.animating=!1});else{var a=i.offset().top-n(window).scrollTop(),v=i.offset().left,e=i.innerHeight(),f=i.innerWidth(),s=n(window).width(),h=n(window).height(),c=s*.8>u.modalMaxWidth?u.modalMaxWidth:s*.8,l=h*.8>u.modalMaxHeight?u.modalMaxHeight:h*.8,w=parseInt((s-c)/2-v),b=parseInt((h-l)/2-a),y=l/e,k=c-f;u.modal.css({top:a+"px",left:v+"px",height:l+"px",width:c+"px"});r(u.modal,"translateY("+b+"px) translateX("+w+"px)");u.modalHeader.css({width:f+"px"});u.modalBody.css({marginLeft:f+"px"});u.modalBodyBg.css({height:e+"px",width:"1px"});r(u.modalBodyBg,"scaleY("+y+") scaleX("+k+")");u.modalHeaderBg.css({height:e+"px",width:f+"px"});r(u.modalHeaderBg,"scaleY("+y+")");u.modalHeaderBg.one(t,function(){u.modalHeaderBg.off(t);u.animating=!1;u.element.addClass("animation-completed")})}o||u.modal.add(u.modalHeaderBg).trigger(t)};i.prototype.closeModal=function(i){var u=this,f=u.mq();if(this.animating=!0,f=="mobile"){this.element.removeClass("modal-is-open");this.modal.one(t,function(){u.modal.off(t);u.animating=!1;u.element.removeClass("content-loaded");i.removeClass("selected-event")})}else{var e=i.offset().top-n(window).scrollTop(),s=i.offset().left,h=i.innerHeight(),c=i.innerWidth(),l=Number(u.modal.css("top").replace("px","")),a=Number(u.modal.css("left").replace("px","")),v=s-a,y=e-l;
1u.element.removeClass("animation-completed modal-is-open");this.modal.css({width:c+"px",height:h+"px"});r(u.modal,"translateX("+v+"px) translateY("+y+"px)");r(u.modalBodyBg,"scaleX(0) scaleY(1)");r(u.modalHeaderBg,"scaleY(1)");this.modalHeaderBg.one(t,function(){u.modalHeaderBg.off(t);u.modal.addClass("no-transition");setTimeout(function(){u.modal.add(u.modalHeader).add(u.modalBody).add(u.modalHeaderBg).add(u.modalBodyBg).attr("style","")},10);setTimeout(function(){u.modal.removeClass("no-transition")},20);u.animating=!1;u.element.removeClass("content-loaded");i.removeClass("selected-event")})}o||u.modal.add(u.modalHeaderBg).trigger(t)};i.prototype.mq=function(){var n=this;return window.getComputedStyle(this.element.get(0),"::before").getPropertyValue("content").replace(/["']/g,"")};i.prototype.checkEventModal=function(){var t,e;if(this.animating=!0,t=this,e=this.mq(),e=="mobile")t.modal.add(t.modalHeader).add(t.modalHeaderBg).add(t.modalBody).add(t.modalBodyBg).attr("style",""),t.modal.removeClass("no-transition"),t.animating=!1;else if(e=="desktop"&&t.element.hasClass("modal-is-open")){t.modal.addClass("no-transition");t.element.addClass("animation-completed");var i=t.eventsGroup.find(".selected-event"),v=i.offset().top-n(window).scrollTop(),y=i.offset().left,c=i.innerHeight(),u=i.innerWidth(),o=n(window).width(),s=n(window).height(),h=o*.8>t.modalMaxWidth?t.modalMaxWidth:o*.8,f=s*.8>t.modalMaxHeight?t.modalMaxHeight:s*.8,l=f/c,a=h-u;setTimeout(function(){t.modal.css({width:h+"px",height:f+"px",top:s/2-f/2+"px",left:o/2-h/2+"px"});r(t.modal,"translateY(0) translateX(0)");t.modalBodyBg.css({height:f+"px",width:"1px"});r(t.modalBodyBg,"scaleX("+a+")");t.modalHeader.css({width:u+"px"});t.modalBody.css({marginLeft:u+"px"});t.modalHeaderBg.css({height:c+"px",width:u+"px"});r(t.modalHeaderBg,"scaleY("+l+")")},10);setTimeout(function(){t.modal.removeClass("no-transition");t.animating=!1},20)}};n(window).on("resize",function(){e||(e=!0,window.requestAnimationFrame?window.requestAnimationFrame(c):setTimeout(c))});n(window).keyup(function(n){n.keyCode==27&&f.forEach(function(n){n.closeModal(n.eventsGroup.find(".selected-event"))})})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.