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