(function(){return function(e,t){var r,n,i=t.getNullSpan(),c=[];if(void 0!==e.checkInTimePrefix){for(var s=0;s<e.checkInTimePrefix.length;s++)for(r=t.getSpan().next(e.checkInTimePrefix[s]);r.exists();){for(var a=r.nextDate();a.exists()&&(n=a.getStart()-r.getEnd())<144;){if(a.exists()&&/[\d\uff10-\uff19]{1,2}/i.test(""+a)){var o=t.getDateDD(a);o.is(["Time","TimeDuration"])&&c.push({match:a,score:n})}a=a.nextDate()}r=r.next(e.checkInTimePrefix[s])}c.length>0&&(c.sort(function(e,t){return e.score>t.score?1:e.score<t.score?-1:0}),i=c[0].match)}return i}}).call();