// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t){var n,r=t.getNullSpan();for(n=0;n<e.phone.length&&(!r||!r.exists());n++)r=t.getSpan().next(e.phone[n]).firstPhoneNumber();if(!r||!r.exists()){var i=t.getSpan().allPhoneNumbers().filter(function(e){return/[\s()-.]/.test((""+e).trim())});i.length>0&&(r=i[0])}if(r.exists()&&!t.getSpan().isPlain())for(n=0;n<e.footer.length;n++)t.getSpan().next(e.footer[n]).contains(r)&&(r=t.getNullSpan());return r.trim().replace(/^\D+\s?[:\uff1a]?[\s\n\r]+?[^+()\d]/,"")}}).call();