1(function(){var e,t,n,r=[].slice;t=typeof module!=="undefined"&&module!==null&&module.exports!=null;e=function(e,t,n){var i;i=false;return function(){var s;s=1<=arguments.length?r.call(arguments,0):[];if(!i){if(typeof console!=="undefined"&&console!==null&&console.warn!=null){console.warn("#"+e+" is deprecated. Use #"+t+" instead.")}}i=true;return n.apply(this,s)}};n=function(n){var i,s,o;if(n==null){throw"Can't find moment"}o=false;i=function(){function i(e,t,r,i){var s;if(i==null){i={}}if(typeof r!=="string"){i=r!=null?r:{};r=null}if(typeof i==="boolean"){i={allDay:i}}this.start=n(e,r,i.parseStrict);this.end=n(t,r,i.parseStrict);this.allDay=(s=i.allDay)!=null?s:false}i._extend=function(){var e,t,n,i,s,o;t=arguments[0],i=2<=arguments.length?r.call(arguments,1):[];for(s=0,o=i.length;s<o;s++){n=i[s];for(e in n){if(typeof n[e]!=="undefined"){t[e]=n[e]}}}return t};i.defaults={twentyFourHour:false,allDaySimple:{fn:function(e){return function(){return e.allDay}},slot:0,pre:" "},dayOfWeek:{fn:function(e){return function(t){return t.format(e.weekdayFormat)}},slot:1,pre:" "},allDayMonth:{fn:function(e){return function(t){return t.format(""+e.monthFormat+" "+e.dayFormat)}},slot:2,pre:" "},month:{fn:function(e){return function(t){return t.format(e.monthFormat)}},slot:2,pre:" "},date:{fn:function(e){return function(t){return t.format(e.dayFormat)}},slot:3,pre:" "},year:{fn:function(e){return function(t){return t.format(e.yearFormat)}},slot:4,pre:", "},time:{fn:function(e){return function(t){var n;n=t.minutes()===0&&e.implicitMinutes&&!e.twentyFourHour?t.format(e.hourFormat):t.format(""+e.hourFormat+":"+e.minuteFormat);if(!e.groupMeridiems&&!e.twentyFourHour){if(e.spaceBeforeMeridiem){n+=" "}n+=t.format(e.meridiemFormat)}return n}},slot:5,pre:", "},meridiem:{fn:function(e){return function(t){return function(t){return t.format(e.meridiemFormat)}}(this)},slot:6,pre:function(e){if(e.spaceBeforeMeridiem){return" "}else{return""}}}};i.registerLang=function(e,t){return n.lang(e,{twix:i._extend({},i.defaults,t)})};i.prototype.isSame=function(e){return this.start.isSame(this.end,e)};i.prototype.length=function(e){return this._trueEnd(true).diff(this._trueStart(),e)};i.prototype.count=function(e){var t,n;n=this.start.clone().startOf(e);t=this.end.clone().startOf(e);return t.diff(n,e)+1};i.prototype.countInner=function(e){var t,n,r;r=this._inner(e),n=r[0],t=r[1];if(n>=t){return 0}return t.diff(n,e)};i.prototype.iterate=function(e,t,n){var r,i,s,o;if(e==null){e=1}o=this._prepIterateInputs(e,t,n),e=o[0],t=o[1],n=o[2];s=this.start.clone().startOf(t);r=this.end.clone().startOf(t);i=function(e){return function(){return s<=r&&(!n||s.valueOf()!==r.valueOf()||e.end.hours()>n||e.allDay)}}(this);return this._iterateHelper(t,s,i,e)};i.prototype.iterateInner=function(e,t){var n,r,i,s,o;if(e==null){e=1}s=this._prepIterateInputs(e,t),e=s[0],t=s[1];o=this._inner(t,e),i=o[0],n=o[1];r=function(){return i<n};return this._iterateHelper(t,i,r,e)};i.prototype.humanizeLength=function(){if(this.allDay){if(this.isSame("day")){return"all day"}else{return this.start.from(this.end.clone().add(1,"day"),true)}}else{return this.start.from(this.end,true)}};i.prototype.asDuration=function(e){var t;t=this.end.diff(this.start);return n.duration(t)};i.prototype.isPast=function(){if(this.allDay){return this.end.clone().endOf("day")<n()}else{return this.end<n()}};i.prototype.isFuture=function(){if(this.allDay){return this.start.clone().startOf("day")>n()}else{return this.start>n()}};i.prototype.isCurrent=function(){return!this.isPast()&&!this.isFuture()};i.prototype.contains=function(e){e=n(e);return this._trueStart()<=e&&this._trueEnd()>=e};i.prototype.isEmpty=function(){return this._trueStart().valueOf()===this._trueEnd().valueOf()};i.prototype.overlaps=function(e){return this._trueEnd().isAfter(e._trueStart())&&this._trueStart().isBefore(e._trueEnd())};i.prototype.engulfs=function(e){return this._trueStart()<=e._trueStart()&&this._trueEnd()>=e._trueEnd()};i.prototype.union=function(e){var t,n,r;t=this.allDay&&e.allDay;if(t){r=this.start<e.start?this.start:e.start;n=this.end>e.end?this.end:e.end}else{r=this._trueStart()<e._trueStart()?this._trueStart():e._trueStart();n=this._trueEnd()>e._trueEnd()?this._trueEnd():e._trueEnd()}return new i(r,n,t)};i.prototype.intersection=function(e){var t,r,s,o;o=this.start>e.start?this.start:e.start;if(this.allDay){r=n(this.end);r.add(1,"day");r.subtract(1,"millisecond");if(e.allDay){s=r<e.end?this.end:e.end}
1else{s=r<e.end?r:e.end}}else{s=this.end<e.end?this.end:e.end}t=this.allDay&&e.allDay;return new i(o,s,t)};i.prototype.isValid=function(){return this._trueStart()<=this._trueEnd()};i.prototype.equals=function(e){return e instanceof i&&this.allDay===e.allDay&&this.start.valueOf()===e.start.valueOf()&&this.end.valueOf()===e.end.valueOf()};i.prototype.toString=function(){var e;return"{start: "+this.start.format()+", end: "+this.end.format()+", allDay: "+((e=this.allDay)!=null?e:{"true":"false"})+"}"};i.prototype.simpleFormat=function(e,t){var n,r;n={allDay:"(all day)",template:i.formatTemplate};i._extend(n,t||{});r=n.template(this.start.format(e),this.end.format(e));if(this.allDay&&n.allDay){r+=" "+n.allDay}return r};i.prototype.format=function(e){var t,r,s,o,u,a,f,l,c,h,p,d,v,m;this._lazyLang();if(this.isEmpty()){return""}c={groupMeridiems:true,spaceBeforeMeridiem:true,showDate:true,showDayOfWeek:false,twentyFourHour:this.langData.twentyFourHour,implicitMinutes:true,implicitYear:true,yearFormat:"YYYY",monthFormat:"MMM",weekdayFormat:"ddd",dayFormat:"D",meridiemFormat:"A",hourFormat:"h",minuteFormat:"mm",allDay:"all day",explicitAllDay:false,lastNightEndsAt:0,template:i.formatTemplate};i._extend(c,e||{});u=[];if(c.twentyFourHour){c.hourFormat=c.hourFormat.replace("h","H")}f=c.lastNightEndsAt>0&&!this.allDay&&this.end.clone().startOf("day").valueOf()===this.start.clone().add(1,"day").startOf("day").valueOf()&&this.start.hours()>12&&this.end.hours()<c.lastNightEndsAt;l=c.showDate||!this.isSame("day")&&!f;if(this.allDay&&this.isSame("day")&&(!c.showDate||c.explicitAllDay)){u.push({name:"all day simple",fn:this._formatFn("allDaySimple",c),pre:this._formatPre("allDaySimple",c),slot:this._formatSlot("allDaySimple")})}if(l&&(!c.implicitYear||this.start.year()!==n().year()||!this.isSame("year"))){u.push({name:"year",fn:this._formatFn("year",c),pre:this._formatPre("year",c),slot:this._formatSlot("year")})}if(!this.allDay&&l){u.push({name:"all day month",fn:this._formatFn("allDayMonth",c),ignoreEnd:function(){return f},pre:this._formatPre("allDayMonth",c),slot:this._formatSlot("allDayMonth")})}if(this.allDay&&l){u.push({name:"month",fn:this._formatFn("month",c),pre:this._formatPre("month",c),slot:this._formatSlot("month")})}if(this.allDay&&l){u.push({name:"date",fn:this._formatFn("date",c),pre:this._formatPre("date",c),slot:this._formatSlot("date")})}if(l&&c.showDayOfWeek){u.push({name:"day of week",fn:this._formatFn("dayOfWeek",c),pre:this._formatPre("dayOfWeek",c),slot:this._formatSlot("dayOfWeek")})}if(c.groupMeridiems&&!c.twentyFourHour&&!this.allDay){u.push({name:"meridiem",fn:this._formatFn("meridiem",c),pre:this._formatPre("meridiem",c),slot:this._formatSlot("meridiem")})}if(!this.allDay){u.push({name:"time",fn:this._formatFn("time",c),pre:this._formatPre("time",c),slot:this._formatSlot("time")})}p=[];r=[];t=[];d=true;h=function(e){return function(n){var i,o,u;u=n.fn(e.start);i=n.ignoreEnd&&n.ignoreEnd()?u:n.fn(e.end);o={format:n,value:function(){return u}};if(i===u&&d){return t.push(o)}else{if(d){d=false;t.push({format:{slot:n.slot,pre:""},value:function(){return c.template(s(p),s(r,true).trim())}})}p.push(o);return r.push({format:n,value:function(){return i}})}}}(this);for(v=0,m=u.length;v<m;v++){o=u[v];h(o)}a=true;s=function(e){return function(e,t){var n,r,i,s,o,u;n=true;i="";u=e.sort(function(e,t){return e.format.slot-t.format.slot});for(s=0,o=u.length;s<o;s++){r=u[s];if(!a){if(n&&t){i+=" "}else{i+=r.format.pre}}i+=r.value();a=false;n=false}return i}}(this);return s(t)};i.prototype._trueStart=function(){if(this.allDay){return this.start.clone().startOf("day")}else{return this.start.clone()}};i.prototype._trueEnd=function(e){if(e==null){e=false}if(this.allDay){if(e){return this.end.clone().add(1,"day")}else{return this.end.clone().endOf("day")}}else{return this.end.clone()}};i.prototype._iterateHelper=function(e,t,n,r){if(r==null){r=1}return{next:function(i){return function(){var i;if(!n()){return null}else{i=t.clone();t.add(r,e);return i}}}(this),hasNext:n}};i.prototype._prepIterateInputs=function(){var e,t,i,s,o,u;e=1<=arguments.length?r.call(arguments,0):[];if(typeof e[0]==="number"){return e}
1if(typeof e[0]==="string"){s=e.shift();t=(o=e.pop())!=null?o:1;if(e.length){i=(u=e[0])!=null?u:false}}if(n.isDuration(e[0])){s="milliseconds";t=e[0].as(s)}return[t,s,i]};i.prototype._inner=function(e,t){var n,r,i,s,o;if(e==null){e="milliseconds"}if(t==null){t=1}o=this._trueStart();i=this._trueEnd(true);if(o>o.clone().startOf(e)){o.startOf(e).add(t,e)}if(i<i.clone().endOf(e)){i.startOf(e)}r=o.twix(i).asDuration(e);n=r.get(e);s=n%t;i.subtract(s,e);return[o,i]};i.prototype._lazyLang=function(){var e,r,s,u;r=this.start.lang();if(r!=null&&this.end.lang()._abbr!==r._abbr){this.end.lang(r._abbr)}if(this.langData!=null&&this.langData._abbr===r._abbr){return}if(t&&!(o||r._abbr==="en")){try{s=require("./lang");s(n,i)}catch(a){e=a}o=true}return this.langData=(u=r!=null?r._twix:void 0)!=null?u:i.defaults};i.prototype._formatFn=function(e,t){return this.langData[e].fn(t)};i.prototype._formatSlot=function(e){return this.langData[e].slot};i.prototype._formatPre=function(e,t){if(typeof this.langData[e].pre==="function"){return this.langData[e].pre(t)}else{return this.langData[e].pre}};i.prototype.sameDay=e("sameDay","isSame('day')",function(){return this.isSame("day")});i.prototype.sameYear=e("sameYear","isSame('year')",function(){return this.isSame("year")});i.prototype.countDays=e("countDays","countOuter('days')",function(){return this.countOuter("days")});i.prototype.daysIn=e("daysIn","iterate('days' [,minHours])",function(e){return this.iterate("days",e)});i.prototype.past=e("past","isPast()",function(){return this.isPast()});i.prototype.duration=e("duration","humanizeLength()",function(){return this.humanizeLength()});i.prototype.merge=e("merge","union(other)",function(e){return this.union(e)});return i}();s=function(e){if(typeof Object.getPrototypeOf==="function"){return Object.getPrototypeOf(e)}else if("".__proto__===String.prototype){return e.__proto__}else{return e.constructor.prototype}};i._extend(n._locale||s(n.fn._lang),{_twix:i.defaults});i.formatTemplate=function(e,t){return""+e+" - "+t};n.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(i,arguments,function(){})};n.fn.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(i,[this].concat(r.call(arguments)),function(){})};n.fn.forDuration=function(e,t){return new i(this,this.clone().add(e),t)};n.duration.fn.afterMoment=function(e,t){return new i(e,n(e).clone().add(this),t)};n.duration.fn.beforeMoment=function(e,t){return new i(n(e).clone().subtract(this),e,t)};n.twixClass=i;return i};if(t){module.exports=n(require("moment"))}if(typeof define==="function"){define("twix",["moment"],function(e){return n(e)})}if(this.moment!=null){this.Twix=n(this.moment)}}).call(this)
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.