vendor: 5,785 bytes, line 1
1(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[7773],{8029(t,e,n){!function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var o=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var o=t(this),r=o.data("bs.popover"),a="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||o.data("bs.popover",r=new e(this,a)),"string"==typeof n&&r[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(n(4692))},8471(t,e,n){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(e,a){var i=e.nodeName.toLowerCase();if(-1!==t.inArray(i,a))return-1===t.inArray(i,n)||Boolean(e.nodeValue.match(o)||e.nodeValue.match(r));for(var s=t(a).filter(function(t,e){return e instanceof RegExp}),l=0,d=s.length;l<d;l++)if(i.match(s[l]))return!0;return!1}function i(e,n,o){if(0===e.length)return e;if(o&&"function"==typeof o)return o(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=e;for(var i=t.map(n,function(t,e){return e}),s=t(r.body).find("*"),l=0,d=s.length;l<d;l++){var h=s[l],p=h.nodeName.toLowerCase();if(-1!==t.inArray(p,i))for(var c=t.map(h.attributes,function(t){return t}),u=[].concat(n["*"]||[],n[p]||[]),f=0,_=c.length;f<_;f++)a(c[f],u)||h.removeAttribute(c[f].nodeName);else h.parentNode.removeChild(h)}return r.body.innerHTML}var s=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},s.prototype.init=function(e,n,o){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),a=r.length;a--;){var i=r[a];if("click"==i)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=i){var s="hover"==i?"mouseenter":"focusin",l="hover"==i?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(n){var o=this.$element.data();for(var r in o)o.hasOwnProperty(r)&&-1!==t.inArray(r,e)&&delete o[r];return(n=t.extend({},this.getDefaults(),o,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=i(n.template,n.whiteList,n.sanitizeFn)),n},s.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,o){n[t]!=o&&(e[t]=o)}),e},s.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focu
1s":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},s.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},s.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},s.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var o=this,r=this.tip(),a=this.getUID(this.type);this.setContent(),r.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(i);d&&(i=i.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?r.appendTo(t(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),p=r[0].offsetWidth,c=r[0].offsetHeight;if(d){var u=i,f=this.getPosition(this.$viewport);i="bottom"==i&&h.bottom+c>f.bottom?"top":"top"==i&&h.top-c<f.top?"bottom":"right"==i&&h.right+p>f.width?"left":"left"==i&&h.left-p<f.left?"right":i,r.removeClass(u).addClass(i)}var _=this.getCalculatedOffset(i,h,p,c);this.applyPlacement(_,i);var y=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",y).emulateTransitionEnd(s.TRANSITION_DURATION):y()}},s.prototype.applyPlacement=function(e,n){var o=this.tip(),r=o[0].offsetWidth,a=o[0].offsetHeight,i=parseInt(o.css("margin-top"),10),s=parseInt(o.css("margin-left"),10);isNaN(i)&&(i=0),isNaN(s)&&(s=0),e.top+=i,e.left+=s,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,d=o[0].offsetHeight;"top"==n&&d!=a&&(e.top=e.top+a-d);var h=this.getViewportAdjustedDelta(n,e,l,d);h.left?e.left+=h.left:e.top+=h.top;var p=/top|bottom/.test(n),c=p?2*h.left-r+l:2*h.top-a+d,u=p?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][u],p)},s.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=i(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},s.prototype.hide=function(e){var n=this,o=t(this.$tip),r=t.Event("hide.bs."+this.type);function a(){"in"!=n.hoverState&&o.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(s.TRANSITION_DURATION):a(),this.hoverState=null,this},s.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],o="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var a=window.SVGElement&&n instanceof window.SVGElement,i=o?{top:0,left:0}:a?null:e.offset(),s={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,l,i)},s.prototype.getCalculatedOffset=function(t,e,n,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-n}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},s.prototype.getViewportAdjustedDelta=function(t,e,n,o){var r={top:0,left:0};if(!this.$viewport)return r;var a=this.options.viewport&&this.options.viewport.padding||0,i=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-a-i.scroll,l=e.top+a-i.scroll+o;s<i.top?r.top=i.top-s:l>i.top+i.height&&(r.top=i.top+i.height-l)}else{var d=e.left-a,h=e.left+a+n;d<i.left?r.left=i.left-d:h>i.right&&(r.left=i.left+i.width-h)}return r},s.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},s.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},s.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.t
1ype+" `template` option must consist of exactly 1 top-level element!");return this.$tip},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},s.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},s.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var l=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var n=t(this),o=n.data("bs.tooltip"),r="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||n.data("bs.tooltip",o=new s(this,r)),"string"==typeof e&&o[e]())})},t.fn.tooltip.Constructor=s,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=l,this}}(n(4692))},8509(t,e,n){"use strict";n(1517),n(3777),n(4190),n(2359),n(6097),n(7273),n(7415),n(9929),n(7583),n(5122),n(230),n(7268),n(9733);var o=n(8823),r=n.n(o),a=n(8972),i=n(958),s=(n(8471),n(8029),n(4692));const{dh:l}=a.iW,d={init:async function(){this.container=document.body.querySelector(".m-events-list .calendar-filter"),this.direction=s("html").attr("dir"),this.dateFormat="MM/DD/YYYY",this.firstDayOfWeek=parseInt(this.container.querySelector("#calendar-filter-container").getAttribute("data-firstDayOfWeek")),this.showCalendarAfterInit(),await this.buildCalendarDataSource().then(t=>{this.listenToDataSourceUpdates(),this.registerPopoverHelperEvents(),this.createCalendar(),this.addKeyboardNavigationToMonthSelectors()})},createCalendar:function(){this.calendar=new(r())({i18n:l().getAll(),bound:!1,setDefaultDate:!1,field:this.container.querySelector("#calendar-filter-input"),container:this.container.querySelector("#calendar-filter-container"),firstDay:this.firstDayOfWeek,keyboardInput:!1,format:this.dateFormat,onSelect:function(t){const e=d.container.querySelector(`.pika-row td[data-day="${t.getDate()}"].is-event-selected button`);if(e){let n=(0,a.w$)(t);const o=((t,e)=>{const n=e.instance.$d.getTime();return t.filter(t=>t.dates_to_show_in_calendar.some(t=>(t.setHours(0,0,0,0),t.getTime()===n)))})(d.eventsInformation.filter(t=>{const e=d.eventsDatesHelpers.eventStartDate(t),o=d.eventsDatesHelpers.eventEndDate(t),r=d.eventsDatesHelpers.eventStartsThisDay(e,n),a=d.eventsDatesHelpers.eventEndsThisDay(o,n),i=d.eventsDatesHelpers.eventIsBetweenThisDay(n,e,o);return!(t.has_end_date||!t.reccurring.reccurring)||r||a||i}),n);o.some(t=>t.name&&""!==t.name.trim())&&d.showPopover(e,`<ul>${o.map(t=>`<li> ${t.url?`<a tabindex="0" href="${t.url}">${t.name}</a>`:`${t.name}`}</li>`).join("")}</ul>`)}},onDraw:function(t){d.attachArrows(),d.addKeyboardNavigationToMonthSelectors();const e=t.calendars[0].month+1,n=t.calendars[0].year,o=(0,a.w$)(`${e}-1-${n}`,"M-D-YYYY"),r=function({keyCode:t,which:o}){13==(t||o)&&d.calendar.setDate(`${e}/${s(this).attr("data-day")}/${n}`,!1)};d?.eventsInformation&&d.eventsInformation.filter(t=>{const r=d.eventsDatesHelpers.eventStartDate(t),a=d.eventsDatesHelpers.eventEndDate(t),i=d.eventsDatesHelpers.eventStartsThisMonth(e,n,r),s=d.eventsDatesHelpers.eventEndsThisMonth(e,n,a),l=d.eventsDatesHelpers.eventIsBetweenThisMonth(o,r,a);return!(t.has_end_date||!t.reccurring.reccurring)||i||s||l}).forEach(t=>{0===t.reccurring.reccurring?d.markSingleEventInCalendar(t,r):d.markEventRangeInCalendar(t,e,n,r)})}})},addKeyboardNavigationToMonthSelectors(){s(this.container.querySelector(".pika-next")).on("keypress",function({keyCode:t,which:e}){13==(t||e)&&(d.calendar.nextMonth(),d.container.querySelector(".pika-next").focus())}),s(this.container.querySelector(".pika-prev")).on("keypress",function({keyCode:t,which:e}
1){13==(t||e)&&(d.calendar.prevMonth(),d.container.querySelector(".pika-prev").focus())}),s(this.container.querySelectorAll(".pika-select")).attr("aria-hidden",!0)},registerPopoverHelperEvents:function(){s(document).click(t=>s(t.target).closest(".popover").length?null:s('[data-toggle="popover"]').popover("hide")),s(window).resize(()=>s(".popover").length?s('[data-toggle="popover"]').popover("show"):null)},showCalendarAfterInit:function(){const t=new MutationObserver(function(e){s(e[0].target).parent().removeClass("hidden"),t.disconnect()});t.observe(document.body.querySelector(".m-events-list .calendar-filter #calendar-filter-container"),{characterData:!0,childList:!0})},buildCalendarDataSource:async function(){const t=document.querySelector(".m-events-list");if(!t&&t?.getAttribute("data-id"))return;const e=t?.getAttribute("data-id"),n=window.eventsModule[e].url,o=await i.b.getStorage("events",n,!0);let r=[];return o.length&&(r=o.filter(t=>t?.day_of_month&&t?.month_number&&t?.year).map(t=>{let e=t.end_date,n=t.day_of_month_end_date,o=t.month_number_end_date,r=t.year_end_date;const a=!(1!=t.end_never||!t.end_repeat_date),i=0==t.end_never;if("1"==t.reccurring&&(a||i)){let a=r,i=o,s=n;if(t.end_repeat_date&&([a,i,s]=t.end_repeat_date.split("-").map(Number),r=a,o=i,n=s),1==t.end_never&&(e=t.end_repeat_date),0==t.end_never){const t=new Date(a,i-1,s),l=(new Date).getFullYear();t.setFullYear(t.getFullYear()+1);const d=t=>String(t).padStart(2,"0");e=`${l+1}-${d(t.getMonth()+1)}-${d(t.getDate())}`,r=`${l+1}`,o=`${d(t.getMonth()+1)}`,n=`${d(t.getDate())}`}}return{day_of_month:t.day_of_month,day_of_month_end_date:n,has_end_date:!t.end_never&&t.reccurring?0:t.has_end_date??0,month_number:t.month_number,month_number_end_date:o,name:t.name,year:t.year,year_end_date:r,url:t.url,start_date:t.start_date,end_date:e,dates_to_show_in_calendar:[],reccurring:{endDateEnabled:t.end_never,endDateData:t.end_repeat_date,reccurring:t.reccurring,repeats:t.repeats,repeats_every_n_day:t.repeats_every_n_day,repeats_every_n_month:t.repeats_every_n_month,repeats_every_n_week:t.repeats_every_n_week,repeats_every_n_year:t.repeats_every_n_year,repeats_on_day_of_month:t.repeats_on_day_of_month,repeats_on_day_of_week_in_month:t.repeats_on_day_of_week_in_month,repeats_position_id:t.repeats_position_id,specific_day_of_week:t.specific_day_of_week,weekdays:{monday:Boolean(t.monday_id),tuesday:Boolean(t.tuesday_id),wednesday:Boolean(t.wednesday_id),thursday:Boolean(t.thursday_id),friday:Boolean(t.friday_id),saturday:Boolean(t.saturday_id),sunday:Boolean(t.sunday_id)}}}})),this.eventsInformation=r,!0},refreshCalendarDataSourceData:function(t){this.eventsInformation=t},listenToDataSourceUpdates:function(){document.body.querySelector(".js-filter-container .js-filter-results").addEventListener("js-filter-new-dataset",function({detail:t}){d.refreshCalendarDataSourceData(t.map(({day_of_month:t,day_of_month_end_date:e,has_end_date:n=0,month_number:o,month_number_end_date:r,name:a,year:i,year_end_date:s,url:l,start_date:d,end_date:h,dates_to_show_in_calendar:p,end_never:c,end_repeat_date:u,reccurring:f,repeats:_,repeats_every_n_day:y,repeats_every_n_month:m,repeats_every_n_week:v,repeats_every_n_year:g,repeats_on_day_of_month:w,repeats_on_day_of_week_in_month:b,repeats_position_id:D,monday_id:$,tuesday_id:S,wednesday_id:T,thursday_id:k,friday_id:C,saturday_id:E,sunday_id:M})=>({day_of_month:t,day_of_month_end_date:e,has_end_date:n,month_number:o,month_number_end_date:r,name:a,year:i,year_end_date:s,url:l,start_date:d,end_date:h,dates_to_show_in_calendar:p,reccurring:{end_never:c,end_repeat_date:u,reccurring:f,repeats:_,repeats_every_n_day:y,repeats_every_n_month:m,repeats_every_n_week:v,repeats_every_n_year:g,repeats_on_day_of_month:w,repeats_on_day_of_week_in_month:b,repeats_position_id:D,weekdays:{monday:Boolean($),tuesday:Boolean(S),wednesday:Boolean(T),thursday:Boolean(k),friday:Boolean(C),saturday:Boolean(E),sunday:Boolean(M)}}}))),d.calendar.draw()})},showPopover:function(t,e){const n=s(t);n.attr("tabindex","0").attr("data-toggle","popover").attr("aria-label",s("#calendarPopoverEvents").html()).popover({html:!0,placement:()=>window.matchMedia("(min-width: 1200px)").matches?"ltr"==d.direction?"left":"right":"top",content:()=>e}).popover("show"),n.next().find("a").on("touchstart",t=>location.href=t.currentTarget.href),n.next().find("a:first").focus()},attachArrows:function(){s(".pika-prev",d.container).append('<svg aria-hidden="true" class="icon icon-arrow-left"><use href="#icon-arrow-left"></svg>'),s(".pika-next",d.container).append('<svg aria-hidden="true" class="icon icon-arrow-right"><use href="#icon-arrow-right"></svg>')},markSingleEventInCalendar:function(t,e){const n=t.dates_to_show_in_calendar?.[0]?t.dates_to_show_in_calendar[0]:new Date(t.year,t.month_number-1,t.day_of_month);t.dates_to_show_in_calendar=[n],_([n],t.month_number,t.year,e)},markEventRangeInCalendar:function(t,e,n,o){const r=t.reccurring.repeats;t=f(t);const i=new Date(t.end_date);let l=d.eventsDatesHelpers.eventStartDate(t),h=null;switch(r){case"Daily":for(h=[];l.isSameOrBefore((0,a.w$)(i));){if(e==l.month()+1&&n==l.year()){const t=p(l.date());t&&s(t).addClass("is-event-selected").on("keypress",o)}let r=l;h.push(r.instance.$d),l=l.add(t.reccurring.repeats_every_n_day,"day")}t.dates_to_show_in_calendar=h;break;case"Weekly":h=y(t,e,n,o),t.dates_to_show_in_calendar=h;break;case"Monthly":h=b(t,e,n,o),t.dates_to_show_in_calendar=h;break;case"Yearly":h=D(t,e,n,o),t.dates_to_show_in_calendar=h}},eventsDatesHelpers:{eventStartDate:t=>(0,a.w$)(`${t.month_number}-${t.day_of_month}-${t.year}`,"M-D-YYYY"),eventEndDate:t=>(0,a.w$)(`${t.month_number_end_date}-${t.day_of_month_end_date}-${t.year_end_date}`,"M-D-YYYY"),eventStartsThisMonth:(t,e,n)=>t==n.month()+1&&e==n.year(),eventEndsThisMonth:(t,e,n)=>t==n.month()+1&&e==n.year(),eventIsBetweenThisMonth:(t,e,n)=>t.isAfter(e)&&t.endOf("month").isBefore(n),eventStartsThisDay:(t,e)=>t.month()+1==e.month()+1&&t.date()==e.date(),eventEndsThisDay:(t,e)=>t.month()+1==e.month()+1&&t.date()==e.date(),eventIsBetweenThisDay:(t,e,n)=>t.isAfter(e)&&t.isBefore(n)}},h=d,p=(t,e=d.container)=>e.querySelector(`.pika-row td[data-day="${t}"]`),c={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},u=t=>{const[e,n,o]=t.split("-").map(Number);return new Date(e,n-1,o,0,0,0,0)},f=t=>{const[e,n,o]=t.end_date.split("-").map(Number),r=new Date(e,n-1,o);r.setFullYear(r.getFullYear()+1);const a=t=>String(t).padStart(2,"0");return t.end_date=`${r.getFullYear()}-${a(r.getMonth()+1)}-${a(r.getDate())}`,t.year_end_date=t.year_end_date+1,1==t.reccurring.endDateEnabled&&t.reccurring.endDateData&&(t.end_date=t.reccurring.endDateData),t},_=(t,e,n,o,r=!1)=>{t.forEach(t=>{if(e===t.getMonth()+1&&n===t.getFullYear()){const e=r?`.pika-row td:not(.is-outside-current-month)[data-day="${t.getDate()}"]`:`.pika-row td[data-day="${t.getDate()}"]`,n=d.container.querySelector(e);n&&(n.classList.add("is-event-selected"),"function"==typeof o&&n.addEventListener("keypress",o,{once:!1}))}})},y=({start_date:t,end_date:e,reccurring:n},o,r,a)=>{const i=((t,e,n)=>{const o=[],r=u(t),a=u(e);if(isNaN(r)||isNaN(a)||a<r)return o;const i=Math.max(1,Number(n.repeats_every_n_week)||1),s=(t=>{if(!t)return null;if("string"==typeof t){const e=t.trim().toLowerCase();return e in c?c[e]:null}return"object"==typeof t?Object.entries(c).filter(([e])=>t[e]).map(([t,e])=>e):null})(n.weekdays||{});if(!s.length)return o;const l=t=>new Date(t.getFullYear(),t.getMonth(),t.getDate()),d=(t,e)=>{const n=l(t);return n.setDate(n.getDate()+e),n},h=(t,e)=>d(t,7*e);
1s.forEach(t=>{let e=((t,e)=>{const n=(e-t.getDay()+7)%7;return d(t,n)})(r,t);for(;e<=a;)o.push(l(e)),e=h(e,i)});const p=new Map;for(const t of o){const e=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;p.set(e,t)}return Array.from(p.values()).sort((t,e)=>t-e)})(t,e,n);return _(i,o,r,a),i},m=(t,e)=>new Date(t,e+1,0),v=(t,e)=>(t%e+e)%e,g=(t,e,n)=>{const o=t.getUTCFullYear(),r=t.getUTCMonth(),[a,i]=((t,e)=>[t+Math.floor(e/12),v(e,12)])(o,r+Number(e||0)),s=m(a,i),l=(d=Number(n)||1,h=s,Math.max(1,Math.min(h,d)));var d,h;return new Date(a,i,l,12)},w=(t,e,n,o)=>{if(!Number.isInteger(n)||n<0||n>6)return null;if(!Number.isInteger(o)||o<1||o>5)return null;if(o<=4){const r=new Date(t,e,1),a=v(n-r.getUTCDay(),7)+7*(o-1);return a>m(t,e)?null:new Date(t,e,a)}const r=m(t,e),a=new Date(t,e,r),i=v(a.getUTCDay()-n,7);return new Date(t,e,r-i,12)},b=({start_date:t,end_date:e,reccurring:n},o,r,a)=>{const i=((t,e,n)=>{const o=[],r=u(t),a=u(e);if(isNaN(r)||isNaN(a)||a<r)return o;const i=Math.max(1,Number(n.repeats_every_n_month)||1);if(0===n.specific_day_of_week){const t=Number(n.repeats_on_day_of_month);if(!t||t<1||t>31)return o;const e=m(r.getFullYear(),r.getMonth()),s=Math.min(t,e);let l=new Date(r.getFullYear(),r.getMonth(),s);for(l<r&&(l=g(l,1,t));l<=a;)o.push(new Date(l)),l=g(l,i,t);return o}if(1===n.specific_day_of_week){const t=(t=>{if("string"!=typeof t)return null;const e=t.trim().toLowerCase();return e in c?c[e]:null})(n.repeats_on_day_of_week_in_month),e=Number(n.repeats_position_id||0);if(null===t||0===e)return o;let s=new Date(r.getFullYear(),r.getMonth(),1);for(;s<=a;){const n=w(s.getFullYear(),s.getMonth(),t,e);n&&n>=r&&n<=a&&o.push(n),s=g(s,i,1)}}return o.sort((t,e)=>t-e)})(t,e,n);return _(i,o,r,a),i},D=({start_date:t,end_date:e,reccurring:n},o,r,a)=>{const i=n.repeats_every_n_year,s=new Date(t);s.setHours(0,0,0,0);const l=new Date(e);l.setHours(0,0,0,0);const d=[];for(let t=0;t<=10;t+=i){const e=new Date(s);if(e.setFullYear(s.getFullYear()+t),e>l)break;d.push(e)}return _(d,o,r,a),d};n.d(e,["default",0,h])}}]);
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.