PageSourceSearch

https://assets.checkmybus.com/bundles/js-nonsearch.js?v=42607

js checkmybus.com collected 2026-09-24 09:37:24 UTC 57,032 bytes, 10 lines download raw bytes

1if(!cmb)var cmb={};try{cmb.readycallbacks=[],cmb.documentReady=async function(e,t){"complete"===document.readyState||"interactive"===document.readyState?await e():window.addEventListener("DOMContentLoaded",(async function(){await e()}))},cmb.setPageReady=function(){window.pageReady||(window.pageReady=!0,window.dispatchEvent(new CustomEvent("PageReady")))},cmb.pageReady=async function(e){window.pageReady?await e():window.addEventListener("PageReady",(async function(){await e()}))}}catch(e){logError(e)}String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){var n=t>0?0|t:0;return this.substring(n,n+e.length)===e}}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),Array.prototype.groupBy||(Array.prototype.groupBy=function(e){if(null===this)throw new TypeError(" this is null or not defined");const t=Object(this);var n={};return t.forEach((function(t){const r=e?JSON.stringify(e(t)):JSON.stringify(t);n[r]=n[r]||[],n[r].push(t)})),Object.keys(n).map((function(e){return n[e]}))}),Array.prototype.flat||(Array.prototype.flat=function(){if(null===this)throw new TypeError(" this is null or not defined");Object(this).reduce((function(e,t){return e.concat(t)}),[])}),String.prototype.replaceAll=function(e,t){return this.split(e).join(t)},Date.prototype.equals=function(e){return this.getFullYear()===e.getFullYear()&&this.getMonth()===e.getMonth()&&this.getDate()===e.getDate()},Date.prototype.addDays=function(e){const t=new Date(this.getFullYear(),this.getMonth(),this.getDate());return t.setDate(t.getDate()+e),t},Array.prototype.focus=function(){for(var e=0;e<this.length;e++)this[e].focus()},NodeList.prototype.height=function(e){for(var t=0;t<this.length;t++)this[t].style.height=`${e}px`};const showElementList=function(e,t){for(let n=0;n<this.length;n++)this[n].show(e,t);return this},showElement=function(e,t){const n=this;e&&t?(n.style.opacity="0",n.style.transitionDuration=e+"ms",n.style.transitionTimingFunction=t,n.style.opacity="1",n.style.visibility="visible"):"hidden"==n.getComputedStyle().visibility&&(n.style.visibility="visible");let r=!1;return["A","SPAN","B","STRONG","I"].forEach((function(e){r||e!==n.tagName||(r=!0)})),n.style.display=r?"inline":"block",this};NodeList.prototype.show=showElementList,HTMLCollection.prototype.show=showElementList,HTMLElement.prototype.show=showElement;const hideElement=function(e,t){const n=this;return e&&t?(n.style.transitionDuration=e+"ms",n.style.transitionTimingFunction=t,n.style.opacity="0",setTimeout((function(){n.style.display="none"}),e)):n.style.display="none",this};function validateInput(e){const t=e.getAttribute("type"),n=e.hasAttribute("required");let r=!0;if(t&&"email"===t.toLowerCase()){/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e.value)||(r=!1)}n&&0===e.value.trim().length&&(r=!1);const o=e.getAttribute("minlength");return null!==o&&e.value.length<parseInt(o)&&(r=!1),r?e.classList.remove("cmb-val-error"):e.classList.add("cmb-val-error"),r}NodeList.prototype.hide=function(e,t){for(var n=0;n<this.length;n++)this[n].hide(e,t);return this},Array.prototype.hide=function(e,t){for(var n=0;n<this.length;n++)this[n].hide(e,t);return this},HTMLElement.prototype.hide=hideElement,Node.prototype.hide=hideElement,HTMLElement.prototype.getComputedStyle=function(){return window.getComputedStyle(this)},Element.prototype.getComputedStyle=function(){return window.getComputedStyle(this)},HTMLElement.prototype.html=function(e){return void 0===e?this.innerHTML:(this.innerHTML=e,this)},Element.prototype.html=function(e){return void 0===e?this.innerHTML:(this.innerHTML=e,this)},HTMLElement.prototype.text=function(e){return void 0===e?this.innerText||this.textContent:(this.innerText=e,this)},HTMLElement.prototype.val=function(e){return null==e?this.value:(this.value=e,this)},HTMLFormElement.prototype.serialize=function(){for(var e=new URLSearchParams,t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name&&!r.disabled&&!["file","reset","submit","button"].includes(r.type))if("select-multiple"===r.type)for(var o=0;o<r.options.length;o++){var i=r.options[o];i.selected&&e.append(r.name,i.value)}
1else e.append(r.name,r.value)}return e.toString()},HTMLInputElement.prototype.validate=function(){return validateInput(this)},HTMLTextAreaElement.prototype.validate=function(){return validateInput(this)},HTMLSelectElement.prototype.validate=function(){return validateInput(this)},EventTarget.prototype.trigger=function(e,t){logInfo("on eventtarget "+this.outerHTML);let n=new Event(e);void 0!==t&&(n=new Event(e,t)),this.dispatchEvent(n)},HTMLCollection.prototype.trigger=function(e,t){this.forEach((n=>n.trigger(e,t)))},NodeList.prototype.trigger=function(e,t){this.forEach((n=>n.trigger(e,t)))},HTMLElement.prototype.slideUp=function(e){var t=this,n=t.offsetHeight,r=n/(e/16);!function e(){var o=parseFloat(t.style.height||n);if(o<=0)return t.style.height="0",void(t.style.display="none");t.style.height=o-r+"px",requestAnimationFrame(e)}()},NodeList.prototype.slideUp=function(e){this.forEach((t=>t.slideUp(e)))},HTMLElement.prototype.slideDown=function(e){var t=this;t.style.display="block";var n=t.offsetHeight,r=n/(e/16);!function e(){var o=parseFloat(t.style.height||0);o>=n?t.style.height=n+"px":(t.style.height=o+r+"px",requestAnimationFrame(e))}()},Element.prototype.animateDirection=function(e,t,n){const r=this,o=performance.now(),i=parseFloat(getComputedStyle(r)[e]);!function a(){const s=performance.now()-o;if(s<n){const o=i+s/n*t;r.style[e]=`${o}px`,requestAnimationFrame(a)}else r.style[e]=`${i+t}px`}()},HTMLElement.prototype.outerHeight=function(){const e=window.getComputedStyle(this);return parseFloat(e.height)+parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+parseFloat(e.marginTop)+parseFloat(e.marginBottom)},HTMLElement.prototype.getOffset=function(){return{top:this.getBoundingClientRect().top+window.pageYOffset,left:this.getBoundingClientRect().left+window.pageXOffset}},NodeList.prototype.slideDown=function(e){this.forEach((t=>t.slideDown(e)))},HTMLElement.prototype.fadeIn=function(e){return this.style.opacity="0",this.style.transition="opacity 0.3s",this.style.opacity="1",e&&setTimeout((function(){e()}),300),this.show(),this},NodeList.prototype.fadeIn=function(e){this.forEach((t=>t.fadeIn(e)))},HTMLElement.prototype.fadeOut=function(e){const t=this;return t.style.opacity="1",t.style.transition="opacity 0.3s",t.style.opacity="0",setTimeout((function(){t.hide(),e&&e()}),300),this},NodeList.prototype.fadeOut=function(e){this.forEach((t=>t.fadeOut(e)))},HTMLElement.prototype.outerHeight=function(){var e=window.getComputedStyle(this);return this.offsetHeight+parseInt(e.marginTop)+parseInt(e.marginBottom)},EventTarget.prototype.click=function(){this.trigger("click")},NodeList.prototype.click=function(){for(var e=0;e<this.length;e++)this[e].click();return this},HTMLElement.prototype.addClass=function(e){return this.classList?this.classList.add(e):this.className+=" "+e,this},NodeList.prototype.addClass=function(e){for(var t=0;t<this.length;t++)this[t].addClass(e);return this},Element.prototype.removeClass=function(e){return this.classList?this.classList.remove(e):el.className=el.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "),this},HTMLElement.prototype.removeClass=function(e){return this.classList?this.classList.remove(e):el.className=el.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "),this},NodeList.prototype.removeClass=function(e){for(var t=0;t<this.length;t++)this[t].removeClass(e);return this},HTMLCollection.prototype.removeClass=function(e){for(var t=0;t<this.length;t++)this[t].removeClass(e);return this};const nextSelect=function(e){for(var t=this.nextElementSibling;t;){if(t.matches(e))return t;t=t.nextElementSibling}return[]};HTMLElement.prototype.next=nextSelect,Node.prototype.next=nextSelect;const toggleClassFill=function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e),this};HTMLElement.prototype.toggleClass=toggleClassFill,Node.prototype.toggleClass=toggleClassFill,NodeList.prototype.toggleClass=function(e){this.forEach((t=>{t.toggleClass(e)}))},HTMLCollection.prototype.toggleClass=function(e){this.forEach((t=>{t.toggleClass(e)}))},Array.prototype.toggleClass=function(e){this.forEach((t=>{t.toggleClass(e)}))},HTMLElement.prototype.hasClass=function(e){return this.classList.contains(e)},HTMLElement.prototype.append=function(e){return void 0!==e.innerHTML?this.innerHTML+=e.outerHTML:this.innerHTML+=e,this},Element.prototype.append=function(e){return void 0!==e.innerHTML?this.innerHTML+=e.outerHTML:this.innerHTML+=e,this},NodeList.prototype.append=function(e){for(var t=0;t<this.length;t++)this[t].append(e);return this};const polyfillInsertAfter=function(e){const t=this.parentNode,n=this.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)};Element.prototype.insertAfter=polyfillInsertAfter,HTMLElement.prototype.insertAfter=polyfillInsertAfter,No
1de.prototype.insertAfter=polyfillInsertAfter,NodeList.prototype.removeAttribute=function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute(e);return this},NodeList.prototype.setAttribute=function(e,t){for(var n=0;n<this.length;n++)this[n].setAttribute(e,t);return this};const removeAllClickListeners=function(e){const t=this;if(this.eventRegistry){const n=this.eventRegistry.get(e);n&&(n.forEach((function(n){t.removeEventListener(e,n)})),this.eventRegistry.delete(e))}const n=(t.__eventListeners||{})[e]||[];n&&n.forEach((n=>{t.removeEventListener(e,n.listener)}))};EventTarget.prototype.unbind=removeAllClickListeners,Node.prototype.unbind=removeAllClickListeners,HTMLElement.prototype.unbind=removeAllClickListeners,Element.prototype.unbind=removeAllClickListeners,function(){const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){this.eventRegistry||(this.eventRegistry=new Map),this.eventRegistry.has(t)||this.eventRegistry.set(t,[]),e.call(this,t,n,r),this.eventRegistry.get(t).push(n)};const t=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(e,n){if(this.eventRegistry||(this.eventRegistry=new Map),this.eventRegistry.has(e)){var r=this.eventRegistry.get(e);const t=r.indexOf(n);r.splice(t,1)}t.call(this,e,n)}}(),NodeList.prototype.addEventListener=function(e,t){return this.forEach((function(n){n.addEventListener(e,t)})),this},HTMLCollection.prototype.addEventListener=function(e,t){return this.forEach((function(n){n.addEventListener(e,t)})),this},Element.prototype.findParent=function(e){for(var t=this.parentElement;t;){if(t.matches(e))return t;t=t.parentElement}return null},HTMLElement.prototype.findParent=function(e){for(var t=this.parentElement;t;){if(t.matches(e))return t;t=t.parentElement}return null},function(){var e=["user-blocking","user-visible","background"];class t{constructor(){this.t=new MessageChannel,this.i=this.t.port2,this.l={},this.o=1,this.t.port1.onmessage=e=>this.h(e)}u(e){var t=this.o++;return this.l[t]=e,this.i.postMessage(t),t}p(e){delete this.l[e]}h(e){var t=e.data;if(t in this.l){var n=this.l[t];delete this.l[t],n()}}}function n(){return n.v||(n.v=new t),n.v}class r{constructor(e,t,n){void 0===n&&(n=0),this.k=e,this.T=null,this.C=null,this.m=!1,this._(t,n)}isIdleCallback(){return 0===this.T}I(){return 2===this.T}cancel(){if(!this.m)switch(this.m=!0,this.T){case 0:cancelIdleCallback(this.C);break;case 1:clearTimeout(this.C);break;case 2:n().p(this.C);break;default:throw new TypeError("Unknown CallbackType")}}_(t,r){if(r&&r>0)return this.T=1,void(this.C=setTimeout((()=>{this.P()}),r));if(!e.includes(t))throw new TypeError("Invalid task priority : "+t);return"background"===t&&"function"==typeof requestIdleCallback?(this.T=0,void(this.C=requestIdleCallback((()=>{this.P()})))):"function"==typeof MessageChannel?(this.T=2,void(this.C=n().u((()=>{this.P()})))):(this.T=1,void(this.C=setTimeout((()=>{this.P()}))))}P(){this.m||this.k()}}var o=0;class i{constructor(){this.j=null,this.M=null}isEmpty(){return null==this.j}push(e){if("object"!=typeof e)throw new TypeError("Task must be an Object");e.A=o++,this.isEmpty()?(e.N=null,this.j=e):(e.N=this.M,this.M.O=e),e.O=null,this.M=e}takeNextTask(){if(this.isEmpty())return null;var e=this.j;return this.q(e),e}merge(e,t){if("function"!=typeof t)throw new TypeError("Must provide a selector function.");if(null==e)throw new Error("sourceQueue cannot be null");for(var n=this.j,r=null,o=e.j;o;){var i=o;if(o=o.O,t(i)){for(e.q(i);n&&n.A<i.A;)r=n,n=n.O;this.D(i,r),r=i}}}D(e,t){if(t!=this.M){var n=t?t.O:this.j;e.O=n,n.N=e,e.N=t,null!=t?t.O=e:this.j=e}else this.push(e)}q(e){if(null==e)throw new Error("Expected task to be non-null");e===this.j&&(this.j=e.O),e===this.M&&(this.M=this.M.N),e.O&&(e.O.N=e.N),e.N&&(e.N.O=e.O)}}class a extends Event{constructor(t,n){if(!n||!e.includes(n.previousPriority))throw new TypeError("Invalid task priority: '"+n.previousPriority+"'");super(t),this.previousPriority=n.previousPriority}}class s extends AbortController{constructor(t){if(void 0===t&&(t={}),super(),null==t&&(t={}),"object"!=typeof t)throw new TypeError("'init' is not an object");var n,r,o=void 0===t.priority?"user-visible":t.priority;if(!e.includes(o))throw new TypeError("Invalid task priority: '"+o+"'");this.H=o,this.R=!1,r=(n=this).signal,Object.defineProperties(r,{priority:{get:function(){return n.H},enumerable:!0},onprioritychange:{value:null,writable:!0,enumerable:!0}}),r.addEventListener("prioritychange",(e=>{r.onprioritychange&&r.onprioritychange(e)}
1))}setPriority(t){if(!e.includes(t))throw new TypeError("Invalid task priority: "+t);if(this.R)throw new DOMException("","NotAllowedError");if(this.signal.priority!==t){this.R=!0;var n=this.H;this.H=t;var r=new a("prioritychange",{previousPriority:n});this.signal.dispatchEvent(r),this.R=!1}}}void 0===self.scheduler?(self.scheduler=new class{constructor(){this.S={},e.forEach((e=>{this.S[e]=[new i,new i]})),this.U=null,this.W=new WeakMap}yield(){return this.B((()=>{}),{priority:"user-visible"},!0)}postTask(e,t){return this.B(e,t,!1)}B(t,n,r){if(void 0!==(n=Object.assign({},n)).signal){if(null===n.signal||!("aborted"in n.signal)||"function"!=typeof n.signal.addEventListener)return Promise.reject(new TypeError("'signal' is not a valid 'AbortSignal'"));if(n.signal&&n.signal.priority&&!e.includes(n.signal.priority))return Promise.reject(new TypeError("Invalid task priority: '"+n.signal.priority+"'"))}if(void 0!==n.priority&&(null===n.priority||!e.includes(n.priority)))return Promise.reject(new TypeError("Invalid task priority: '"+n.priority+"'"));if(void 0===n.delay&&(n.delay=0),n.delay=Number(n.delay),n.delay<0)return Promise.reject(new TypeError("'delay' must be a positive number."));var o={callback:t,options:n,resolve:null,reject:null,hostCallback:null,abortCallback:null,onTaskCompleted:function(){this.options.signal&&this.abortCallback&&(this.options.signal.removeEventListener("abort",this.abortCallback),this.abortCallback=null)},onTaskAborted:function(){this.hostCallback&&(this.hostCallback.cancel(),this.hostCallback=null),this.options.signal.removeEventListener("abort",this.abortCallback),this.abortCallback=null,this.reject(this.options.signal.reason)},isAborted:function(){return this.options.signal&&this.options.signal.aborted},isContinuation:r},i=new Promise(((e,t)=>{o.resolve=e,o.reject=t}));return this._(o),i}_(e){var t=e.options.signal;if(t){if(t.aborted)return void e.reject(t.reason);e.abortCallback=()=>{e.onTaskAborted()},t.addEventListener("abort",e.abortCallback)}e.options.delay>0?e.hostCallback=new r((()=>{e.hostCallback=null,this.F(e)}),null,e.options.delay):(this.G(e),this.J())}F(e){this.G(e),this.U&&(this.U.cancel(),this.U=null),this.K()}L(e){var t=this.W.get(e);if(void 0===t)throw new Error("Attempting to change priority on an unregistered signal");if(t!==e.priority){for(var n=0;n<2;n++)this.S[e.priority][n].merge(this.S[t][n],(t=>t.options.signal===e));this.W.set(e,e.priority)}}K(){this.U=null,this.V(),this.J()}J(){var{priority:e}=this.X();null!=e&&("background"!==e&&this.U&&this.U.isIdleCallback()&&(this.U.cancel(),this.U=null),this.U||(this.U=new r((()=>{this.K()}),e,0)))}G(t){var n;if(!e.includes(n=t.options.priority?t.options.priority:t.options.signal&&t.options.signal.priority?t.options.signal.priority:"user-visible"))throw new TypeError("Invalid task priority: "+n);if(t.options.signal&&t.options.signal.priority){var r=t.options.signal;this.W.has(r)||(r.addEventListener("prioritychange",(()=>{this.L(r)})),this.W.set(r,r.priority))}this.S[n][t.isContinuation?0:1].push(t)}V(){var e=null;do{var{priority:t,type:n}=this.X();if(null==t)return;e=this.S[t][n].takeNextTask()}while(e.isAborted());try{var r=e.callback();e.resolve(r)}catch(t){e.reject(t)}finally{e.onTaskCompleted()}}X(){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<2;r++)if(!this.S[n][r].isEmpty())return{priority:n,type:r};return{priority:null,type:0}}},self.TaskController=s,self.TaskPriorityChangeEvent=a):self.scheduler.yield||(self.scheduler.yield=function(){return self.scheduler.postTask((()=>{}),{priority:"user-blocking"})})}();let cmb_date_picker_lang=[];cmb_date_picker_lang.de={language:"German",months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsAbbr:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],days:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],rtl:!1,ymd:!1,yearSuffix:"",ll:"d. mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.es={language:"Spanish",months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsAbbr:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],days:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d [de] mmmm [de] yyyy",lt:"HH:MM"},cmb_date_picker_lang.it={language:"Italian",months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsAbbr:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],days:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.nl={language:"Dutch",months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthsAbbr:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],days:["zo","ma","di","wo","do","vr","za"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.fr={language:"French",months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsAbbr:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Août","Sep","Oct","Nov","Déc"],days:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.tr={language:"Turkish",months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthsAbbr:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],days:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d. mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.hr={language:"Croatian",months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthsAbbr:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],days:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.pl={language:"Polish",months:["Styczeń","Luty","Marzec","KwiecieÅ
1„","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsAbbr:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],days:["Nd","Pn","Wt","Śr","Czw","Pt","Sob"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.pt={language:"Brazilian",months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsAbbr:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],days:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.ms={language:"Malesian",months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],monthsAbbr:["Jan","Feb","Mac","Apr","Mai","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],days:["Ah","Is","Se","Ra","Kh","Ju","Sa"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d mmmm yyyy",lt:"HH.MM"},cmb_date_picker_lang.cs={language:"Czech",months:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthsAbbr:["led","úno","bře","dub","kvě","čer","čec","srp","zář","říj","lis","pro"],days:["ne","po","út","st","čt","pá","so"],rtl:!1,ymd:!1,yearSuffix:"",ll:"d. mmmm yyyy",lt:"HH:MM"},cmb_date_picker_lang.en={language:"English",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rtl:!1,ymd:!1,yearSuffix:"",ll:"mmmm d, yyyy",lt:"h:MM A"};let en={language:"English",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rtl:!1,ymd:!1,yearSuffix:""};const utils={useUtc:!1,getFullYear(e){return this.useUtc?e.getUTCFullYear():e.getFullYear()},getMonth(e){return this.useUtc?e.getUTCMonth():e.getMonth()},getDate(e){return this.useUtc?e.getUTCDate():e.getDate()},getDay(e){return this.useUtc?e.getUTCDay():e.getDay()},getHours(e){return this.useUtc?e.getUTCHours():e.getHours()},getMinutes(e){return this.useUtc?e.getUTCMinutes():e.getMinutes()},setFullYear(e,t,n){return this.useUtc?e.setUTCFullYear(t):e.setFullYear(t)},setMonth(e,t,n){return this.useUtc?e.setUTCMonth(t):e.setMonth(t)},setDate(e,t,n){return this.useUtc?e.setUTCDate(t):e.setDate(t)},compareDates(e,t){const n=new Date(e.getTime()),r=new Date(t.getTime());return this.useUtc?(n.setUTCHours(0,0,0,0),r.setUTCHours(0,0,0,0)):(n.setHours(0,0,0,0),r.setHours(0,0,0,0)),n.getTime()===r.getTime()},isValidDate:e=>"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime()),getDayNameAbbr(e,t){if("object"!=typeof e)throw TypeError("Invalid Type");return t[this.getDay(e)]},getMonthName(e,t){if(!t)throw Error("missing 2nd parameter Months array");if("object"==typeof e)return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},getMonthNameAbbr(e,t){if(!t)throw Error("missing 2nd paramter Months array");if("object"==typeof e)return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},daysInMonth:(e,t)=>/8|3|5|10/.test(t)?30:1===t?(e%4||!(e%100))&&e%400?28:29:31,getNthSuffix(e){switch(e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate(e,t,n){n=n||en;let r=this.getFullYear(e),o=this.getMonth(e)+1,i=this.getDate(e),a=this.getHours(e),s=this.getMinutes(e);"LL"==t&&(t=n.ll),"LT"==t&&(t=n.lt);let c=a>=12?a%12:a;return t.replace(/dd/,("0"+i).slice(-2)).replace(/d/,i).replace(/yyyy/,r).replace(/yy/,String(r).slice(2)).replace(/mmmm/,this.getMonthName(this.getMonth(e),n.months)).replace(/mmm/,this.getMonthNameAbbr(this.getMonth(e),n.monthsAbbr)).replace(/mm/,("0"+o).slice(-2)).replace(/m(?!a|ä|e)/,o).replace(/su/,this.getNthSuffix(this.getDate(e))).replace(/D(?!e|é|i)/,this.getDayNameAbbr(e,n.days)).replace(/HH/,("0"+a).slice(-2)).replace(/hh/,("0"+c).slice(-2)).replace(/h/,c).replace(/MM/,("0"+s).slice(-2)).replace("A",a>11?"PM":"AM")},createDateArray(e,t){let n=[];for(;e<=t;)n.push(new Date(e)),e=this.setDate(new Date(e),this.getDate(new Date(e))+1);return n},validateDateInput:e=>null===e||e instanceof Date||"string"==typeof e||"number"==typeof e};let makeDateUtils=e=>({...utils,useUtc:e});const dtUtils=makeDateUtils(!1),emptyGuid="00000000-0000-0000-0000-000000000000";function FormatDateIso(e){return e instanceof Date?FormatDate(e,"yyyy-mm-dd"):e}function ParseISODate(e){if(!e)return!1;var t=(e=FormatDateIso(e)).match(/^\s*(\d{4})-(\d{2})-(\d{2})\s*$/);return!!t&&BuildDate(t[1],t[2],t[3])}function ParseDate(e){if(!e)return!1;var t;if(e=FormatDateIso(e),t="en-US"===culture||"en-GB"===culture?e.match(/^\s*(\d{1,2})\/(\d{1,2})\/(\d{4})\s*$/):e.match(/^\s*(\d{2}).(\d{2}).(\d{4})\s*$/))return"en-US"===culture?BuildDate(t[3],t[1],t[2]):BuildDate(t[3],t[2],t[1]);var n=ParseISODate(e);return n||!1}function BuildDate(e,t,n){return new Date(parseInt(e,10),parseInt(t,10)-1,parseInt(n,10))}function FormatDate(e,t){let n=makeDateUtils(!1),r=e instanceof Date?e:ParseDate(e);return n.formatDate(r,t,cmb_date_picker_lang[language])}function dateDiff(e,t){var n=e instanceof Date?e:ParseDate(e),r=t instanceof Date?t:ParseDate(t);const o=Math.abs(n-r);return Math.ceil(o/864e5)}function isInitDateValid(e){return e instanceof Date||(e=ParseDate(e)),e&&dateDiff(new Date,e)>=0}function getInitDate(){return(new Date).addDays(3)}function getValidInitDate(e){var t=ParseDate(e);return t&&isInitDateValid(t)?t:getInitDate()}function getValidInitDateIso(e){return FormatDateIso(e=getValidInitDate(e))}function BuildQueryString(e){var t="";for(const n in e)if(e.hasOwnProperty(n)){const r=e[n];t+="&"+n+"="+encodeURIComponent(r)}return t.substring(1)}function ParseQueryParameters(e){var t={};if(""===e)return t;e||(e=window.location.hash.substring(1));for(var n=e.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");t[o[0]]=decodeURIComponent(o[1])}return t}function BuildHash(e){return"#"+BuildQueryString(e)}function logInfo(e){try{debug&&console&&console.log(e)}catch(e){}}function logError(e,t){try{debug&&console&&(console.error(e),t&&console.error(t))}catch(e){}}function getFirstDateOfWeekFromDate(e){e instanceof Date||(e=ParseDate(e));var t=new Date(e),n=(t.getDay(),t.getDate());return new Date(t.setDate(n))}var Host=function(){this.topLevelDomain=null,this.secondLevelDomain=null,this.thirdLevelDomain=null};function getHost(){for(var e=document.location.hostname.split("."),t=new Host,n=0;n<e.length;n++){switch(n){case 0:t.thirdLevelDomain=e[n];break;case 1:t.secondLevelDomain=e[n];break;default:t.topLevelDomain=e.slice(n).join(".")}if(t.topLevelDomain)break}return t}function scrollToResult(){const e=document.querySelector(".result");e&&e.scrollIntoView({gehavior:"smooth"})}function getWindowHeight(){return Math.max(document.documentElement.clientHeight,window.innerHeight||0)}function scrollToTopOffset(e){logInfo("scroll to "+e);const t=e-window.scrollY;if(logInfo("step "+t),Math.abs(t)<=1)return void window.scrollTo(0,e);const n=window.scrollY+.2*t;window.scrollTo(0,n),requestAnimationFrame(scrollToTopOffset)}function isMobile(){return/Mobi|Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)}function getFormattedPrice(e){return currencyFormat.replace("%price%",e)}function getLocalTimeString(e){let t=new Date(3600*e*1e3);const n=t.getTime(),r=6e4*t.getTimezoneOffset();let o=makeDateUtils(!1),i=new Date(n+r);return o.formatDate(i,"LT",cmb_date_picker_lang[language])}if(!cmb)cmb={};try{!function(){cmb.browser={};let e=cmb.browser,t=navigator.userAgent.toLowerCase();
1e.supportsNativeDatepicker=function(){let e=document.createElement("input");return e.setAttribute("type","date"),"date"===e.type},e.isIE=function(){return t.indexOf("msie")>-1||e.isIE11()},e.isIE6=function(){return t.indexOf("msie 6")>-1},e.isIE7=function(){return t.indexOf("msie 7")>-1},e.isIE8=function(){return t.indexOf("msie 8")>-1},e.isIE9=function(){return t.indexOf("msie 9")>-1},e.isIE10=function(){return t.indexOf("msie 10")>-1},e.isIE11=function(){return t.indexOf("rv:11")>-1},e.isIE9OrLesser=function(){return e.isIE9()||e.isIE8()||e.isIE7()||e.isIE6()},e.isFirefox=function(){return t.indexOf("firefox")>-1},e.isOpera=function(){return t.indexOf("opera")>-1},e.isSafari=function(){return t.includes("safari")&&!t.includes("chrome")},e.isChrome=function(){return t.indexOf("chrome")>-1&&!t.includes("edge")},e.isiPhone=function(){return t.indexOf("iphone")>-1},e.isiPod=function(){return t.indexOf("ipod")>-1},e.isiPad=function(){return t.indexOf("ipad")>-1},e.isiOS=function(){return t.indexOf("ios")>-1||e.isAppleMobile()},e.isMobile=function(){const e=window.matchMedia("(pointer: coarse)").matches,t=/Android|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(navigator.userAgent);return e||t},e.isAppleMobile=function(){return e.isiPhone()||e.isiPad()||e.isiPod()},e.isBlackBerry=function(){return t.indexOf("blackberry")>-1},e.isKindle=function(){return t.indexOf("kindle")>-1},e.isWindowsPhone=function(){return t.indexOf("windows phone")>-1},e.isAndroidDevice=function(){return t.indexOf("android")>-1},e.isAndroidPhone=function(){return e.isAndroidDevice()&&t.indexOf("mobile")>-1},e.isAndroidTablet=function(){return e.isAndroidDevice()&&(-1===t.indexOf("mobile")||e.screenWidth>=768)},e.isMobilePhone=e.isMobile,e.isMobileApp=()=>window.isMobileApp,e.isMobileAppIOs=()=>e.isMobileApp()&&t.indexOf("ios")>-1,e.isMobileAppAndroid=()=>e.isMobileApp(),e.isCMBApp=function(){return t.indexOf("checkmybus")>-1},e.screenWidth=function(){return screen.availWidth},e.screenHeight=function(){return screen.availHeight}}()}catch(e){logError(e)}if(!cmb)cmb={};function dotAnimation(e){var t=document.querySelector(".en-US .clickDot");if(t){var n=t,r=n.cloneNode(!0);r.style.top=e.clientY+window.scrollY+"px",r.style.left=e.clientX+"px",n.parentNode.insertBefore(r,n),n.remove(),t=n}}cmb.sortScoreWeights||(cmb.sortScoreWeights={}),cmb.topScoreWeights||(cmb.topScoreWeights={}),cmb.context||(cmb.context={}),cmb.context.result||(cmb.context.result={}),cmb.culture||(cmb.culture={}),window.sortingScoreWeightsJsonServerSide&&(cmb.sortScoreWeights=window.sortingScoreWeightsJsonServerSide,cmb.sortScoreWeightsVariantNames=cmb.sortScoreWeights.map((e=>e.name)),cmb.sortScoreWeightsTestName=cmb.sortScoreWeights.length>1?cmb.sortScoreWeights[0].culture+"_"+cmb.sortScoreWeightsVariantNames.join("_"):null),window.topResultScoreWeightsJsonServerSide&&(cmb.topScoreWeights=window.topResultScoreWeightsJsonServerSide,cmb.topResScoreWeightsVariantNames=cmb.topScoreWeights.map((e=>e.name)),cmb.topResScoreWeightsTestName=cmb.topScoreWeights.length>1?cmb.topScoreWeights[0].culture+"_"+cmb.topResScoreWeightsVariantNames.join("_"):null),cmb.featureSettings||(cmb.featureSettings={}),cmb.featureSettings={basline_abtest_50_50:[!0,!1],speech_recognition_7238:[!0,!1],filters_background_8378:["no_background","original_background"]},!1===window.location.href.startsWith("https://www.checkmybus")&&(cmb.featureSettings.filters_background_8378="no_background"),cmb.sortScoreWeightsTestName&&(cmb.featureSettings[cmb.sortScoreWeightsTestName]=cmb.sortScoreWeightsVariantNames),cmb.topResScoreWeightsTestName&&(cmb.featureSettings[cmb.topResScoreWeightsTestName]=cmb.topResScoreWeightsVariantNames),cmb.applyFeatureSettings=function(){let e=cmb.browser.cookie.get("features-settings");var t={};e&&(t=JSON.parse(e));for(const[e,n]of Object.entries(cmb.featureSettings))if(Array.isArray(cmb.featureSettings[e]))if(void 0===t[e]){const t=cmb.featureSettings[e].length,n=Math.floor(Math.random()*t-1e-6);cmb.featureSettings[e]=cmb.featureSettings[e][n]}else cmb.featureSettings[e]=t[e];cmb.setFeatureCookie()},cmb.showLoadingBar=async e=>{try{if("block"===document.getElementById("loadingbar").style.display)return;document.getElementById("loadingbar").style.display="block",e&&setTimeout(cmb.hideLoadingBar,e)}catch(e){logError(e)}},cmb.hideLoadingBar=async()=>{try{document.getElementById("loadingbar").style.display="none",await scheduler.yield()}catch(e){logError(e)}},cmb.setFeatureCookie=()=>{const e=JSON.stringify(cmb.featureSettings);logInfo("feature settings: "+e),cmb.browser.cookie.add("features-settings",e,1)},cmb.pageReady((()=>{cmb.applyFeatureSettings(),window.departueDate=function(e){const t=new Date,n=new Date(t);return n.setDate(t.getDate()+e),`${n.getFullYear()}
1-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")}`}(1),cmb.sortScoreWeightsTestName?cmb.sortScoreWeights=cmb.sortScoreWeights.find((e=>e.name==cmb.featureSettings[cmb.sortScoreWeightsTestName])):cmb.sortScoreWeights=cmb.sortScoreWeights[0],cmb.topResScoreWeightsTestName?cmb.topScoreWeights=cmb.topScoreWeights.find((e=>e.name==cmb.featureSettings[cmb.topResScoreWeightsTestName])):cmb.topScoreWeights=cmb.topScoreWeights[0],document.addEventListener("click",(e=>{requestAnimationFrame((()=>{dotAnimation(e)}))}))}));let cmbFeatureSettingsProxy=new Proxy(cmb.featureSettings,{set:function(e,t,n){let r=new CustomEvent(t,{detail:n});return document.dispatchEvent(r),e[t]=n,cmb.setFeatureCookie(),!0}});cmb.documentReady((function(){cmb.defaultSearchRadius=15,cmb.minPassengersToDisplayBusRental=10,cmb.context.result.startDay=1,cmb.browser.isCMBApp()&&document.querySelectorAll(".apppromo").hide()}));try{cmb.culture.Get=function(){return culture},cmb.cookieWarning={},cmb.cookieWarning.show=function(){const e=cmb.browser.isCMBApp()||cmb.browser.cookie.get("cookie-warning");e&&"0"!==e||(window.cookiewarningtimer&&clearTimeout(window.cookiewarningtimer),window.cookiewarningtimer=setTimeout((function(){document.querySelectorAll(".cookie-warning").fadeIn()}),1e3),document.querySelectorAll(".close-cookie-warning").addEventListener("click",(function(e){const t=new Date,n=t.getDate(),r=t.getMonth()+1,o=t.getFullYear()+1,i=new Date(o,r,n);cmb.browser.cookie.add("cookie-warning",1,i),document.querySelectorAll(".cookie-warning").fadeOut()})))},cmb.cookieWarning.hide=function(){const e=cmb.browser.isCMBApp()||cmb.browser.cookie.get("cookie-warning");e&&"0"!==e||(window.cookiewarningtimer&&clearTimeout(window.cookiewarningtimer),document.querySelectorAll(".cookie-warning").fadeOut())},cmb.search||(cmb.search={}),cmb.search.location={},cmb.search.location.origin={},cmb.search.location.destination={},cmb.ReadHash=function(){return ParseQueryParameters(decodeURIComponent(window.location.hash.substring(1)))},cmb.isStartPage=function(){return null!=window.location.pathname&&null!=window.location.pathname&&1===window.location.pathname.length},cmb.isSearchPage=function(){return window.isSearchPage},cmb.isProfilePage=function(){return null!=window.location.pathname&&null!=window.location.pathname&&window.location.pathname.startsWith("/profile")},cmb.ajax=function(e,t,n,r,o,i){const a="GET"!==(t=t?t.toUpperCase():"POST")&&n?new URLSearchParams(n).toString():void 0;"GET"===t&&n&&logInfo("new url "+(e=e+"?"+function(e){const t=new URLSearchParams;for(const n in e)e.hasOwnProperty(n)&&t.append(n,e[n]);return t.toString()}(n)));const s=new AbortController,c=s.signal;return fetch(e,{signal:c,method:t,body:a,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow"}).then((function(e){if(!e.ok)throw new Error("HTTP error, status = "+e.status);return e.json()})).then((function(e){o&&o(e)})).catch((function(e){logError(e),i&&i(e)})),s},cmb.scrollTo=function(e,t,n,r){if(void 0===r&&(r=0),n=void 0===typeof n||isNaN(n)?200:n,e&&e.getBoundingClientRect()){const o=e.getBoundingClientRect().top+window.scrollY+r,i=window.scrollY,a=o-i;let s;const c=function(e){s||(s=e);const r=e-s,o=Math.min(r/n,1),l=i+a*o;window.scrollTo(0,l),r<n?window.requestAnimationFrame(c):t&&t()};window.requestAnimationFrame(c)}},cmb.scrollToByUrlHash=function(){let e=window.location.hash;if(!e)return;"#"===e[0]&&(e=e.substring(1));const t=e.split("&");for(let e=0;e<t.length;e++){const n=t[e].split("=");if("scrollto"===n[0].toLowerCase()){cmb.scrollTo(document.querySelector(n[1]),null,1e3);break}}}}catch(e){logError(e)}function copyToClipboard(e){try{const t=e.target.getAttribute("data-copy");t&&navigator.clipboard.writeText(t).then((()=>{e.target.classList.add("copied"),setTimeout((()=>{e.target.classList.remove("copied")}),2e3)})).catch((e=>{}))}catch(e){logError(e)}}function addEventListenersToElements(e){e.forEach((e=>{e.addEventListener("click",copyToClipboard),e.classList.contains("promo-copyable")||e.classList.add("promo-copyable")}))}function observeDOMChanges(){new MutationObserver((e=>{e.forEach((e=>
1{e.addedNodes.forEach((e=>{const t=e=>{if(e.nodeType===Node.ELEMENT_NODE){e.getAttribute("data-copy")&&addEventListenersToElements([e]),e.childNodes.forEach((e=>{t(e)}))}};t(e)}))}))})).observe(document.body,{childList:!0,subtree:!0})}function addEventListenersToCopyableElements(){addEventListenersToElements(document.querySelectorAll("[data-copy]"))}if(document.addEventListener("DOMContentLoaded",addEventListenersToCopyableElements),observeDOMChanges(),!cmb)cmb={};try{!function(){cmb.currency={};var e=function(e,t,n){return cmb.setCookie("currency",e,180),cmb.setCookie("currencyShort",t,180),cmb.setCookie("currencyFormat",n,180),e};var t=function(){var e=cmb.getCookie("currency");return e||(e=currency),e};cmb.currency.setCurrency=function(t,n,r){e(t,n,r)},cmb.currency.change=function(t,n,r){if(t!==currency){cmb.track.send("currency","change","from "+currency+" to "+t),e(t,n,r),currency=t,currencyShort=n,currencyFormat=r;let o=new CustomEvent("currencyChanged",{detail:{currency:t}});document.dispatchEvent(o),document.querySelector(".selectedCurrency").textContent=t}},cmb.currency.get=function(){return t()},cmb.currency.getShort=function(){return t()},cmb.currency.setDefault=function(){const n=window.navigator.userLanguage||window.navigator.language,r=n.substring(0,2),o=n.split("-"),i=o.length>1?o[1].toLowerCase():"";var a={sv:{cur:"SEK",curShort:"kr"},za:{cur:"ZAR",curShort:"R"},hi:{cur:"INR",curShort:"₹"},in:{cur:"INR",curShort:"₹"},ca:{cur:"CAD",curShort:"$"},vi:{cur:"VND",curShort:"đ"},nz:{cur:"NZD",curShort:"$"},au:{cur:"AUD",curShort:"$"},ie:{cur:"EUR",curShort:"€"},gb:{cur:"GBP",curShort:"£"}};if(function(){const e=cmb.getCookie("currency"),t=cmb.getCookie("currencyShort");return!(!e||!t)}())return;const s=a[r]||a[i]||{cur:t(),curShort:(c=cmb.getCookie("currencyShort"),c||(c=currencyShort),c)};var c;e(s.cur,s.curShort)}}()}catch(e){logError(e)}
2/*!
3 * Legacy browser support
4 */[].indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var r=0;if(arguments.length>1&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!=1/0&&r!=-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=n)return-1;for(var o=r>=0?r:Math.max(n-Math.abs(r),0);o<n;o++)if(o in t&&t[o]===e)return o;return-1})
5/*!
6 * Cross-Browser Split 1.1.1
7 * Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
8 * Available under the MIT License
9 * http://blog.stevenlevithan.com/archives/cross-browser-split
10 */;var nativeSplit=String.prototype.split,compliantExecNpcg=void 0===/()??/.exec("")[1];if(String.prototype.split=function(e,t){var n=this;if("[object RegExp]"!==Object.prototype.toString.call(e))return nativeSplit.call(n,e,t);var r,o,i,a,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),l=0;for(e=new RegExp(e.source,c+"g"),n+="",compliantExecNpcg||(r=new RegExp("^"+e.source+"$(?!\\s)",c)),t=void 0===t?-1>>>0:t>>>0;(o=e.exec(n))&&!((i=o.index+o[0].length)>l&&(s.push(n.slice(l,o.index)),!compliantExecNpcg&&o.length>1&&o[0].replace(r,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(o[e]=void 0)})),o.length>1&&o.index<n.length&&Array.prototype.push.apply(s,o.slice(1)),a=o[0].length,l=i,s.length>=t));)e.lastIndex===o.index&&e.lastIndex++;return l===n.length?!a&&e.test("")||s.push(""):s.push(n.slice(l)),s.length>t?s.slice(0,t):s},!cmb)cmb={};try{!function(){cmb.browser||(cmb.browser={}),cmb.browser.history={};let e=cmb.browser.history;e.add=function(e,t=null,n=null){try{if(!history||!history.pushState)return;null===t&&(t=document.location.href),null===e&&(e=document.title),history.pushState(n,e,t)}catch(e){logError(e)}},e.replace=function(e,t=null,n=null){try{if(!history||!history.replaceState)return;null===t&&(t=document.location.href),null==e&&(e=document.title),history.replaceState(n,e,t)}catch(e){logError(e)}},e.getState=function(){return window.history.state},e.back=function(){history&&history.back&&window.history.back()},e.forward=function(){history&&history.forward&&window.history.forward()},e.goToPage=function(e){history&&history.go&&window.history.go(e)}}()}catch(e){logError(e)}if(!cmb)cmb={};if(function(){cmb.browser||(cmb.browser={}),cmb.browser.cookie={};let e=cmb.browser.cookie;function t(e,t,n){n=n||{};let r=encodeURIComponent(e)+"="+encodeURIComponent(t);n.expires instanceof Date&&(r+="; expires="+n.expires.toUTCString()),n.path&&(r+="; path="+n.path),n.domain&&(r+="; domain="+n.domain),n.samesite&&(r+="; SameSite="+n.samesite),!0===n.secure&&(r+="; secure"),r+="; partitioned=true",document.cookie=r}e.defaultExpiration=5,e.get=function(e){let t=cmb.getCookie(e);return t||null},e.exists=function(t){let n=e.get(t);return null!=n},e.add=function(n,r,o,i){let a=o;a||(a=new Date((new Date).valueOf()+60*e.defaultExpiration*1e3)),i||(i="/"),t(n,r,{expires:a,path:i,samesite:"lax",secure:!0})},e.remove=function(e){cmb.deleteCookie(e)},cmb.setCookie=function(e,n,r,o){o=void 0===o?"/":o;let i=null;r&&(i=new Date,i.setTime(i.getTime()+24*r*60*60*1e3)),t(e,n,{expires:i,secure:!0,path:o,samesite:"lax"})},cmb.getCookie=function(e){const t=encodeURIComponent(e);var n=null;if(document.cookie&&""!==document.cookie)for(var r=document.cookie.split(";"),o=0;o<r.length;o++){var i=r[o].trim();if(i.substring(0,t.length+1)===t+"="){n=i.substring(t.length+1);break}}return null==n||null==n?null:decodeURIComponent(n)},cmb.deleteCookie=function(e){document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}}(),!cmb)cmb={};try{!function(){cmb.browser.sessionStorage={},cmb.browser.localStorage={};var e=cmb.browser,t=e.sessionStorage,n=e.localStorage,r=e.cookie;e.supportsSessionStorage=function(){try{return window&&window.sessionStorage&&navigator&&navigator.cookieEnabled}catch(e){logError(e)}return!1},t.add=function(t,n,o){try{if(o&&!e.supportsSessionStorage())return void r.add(t,n);window.sessionStorage.setItem(t,n)}catch(e){logError("Exception on sessionStorage.add(). Message: "+e.message)}},t.exists=function(n,o){try{if(o&&!e.supportsSessionStorage())return r.exists(n);var i=t.get(n);return null!=i}catch(e){logError("Exception on sessionStorage.exists(). Message: "+e.message)}},t.get=function(t,n){try{return n&&!e.supportsSessionStorage()?r.get(t):window.sessionStorage.getItem(t)}catch(e){logError("Exception on sessionStorage.get(). Message: "+e.message)}},t.remove=function(t,n){try{return n&&!e.supportsSessionStorage()?r.get(t):window.sessionStorage.removeItem(t)}catch(e){logError("Exception on sessionStorage.remove(). Message: "+e.message)}},n.add=function(e,t){try{window.localStorage.setItem(e,t)}catch(e){logError("Exception on localStorage.add(). Message: "+e.message)}},n.exists=function(e){try{var t=n.get(e);return null!=t}catch(e){logError("Exception on localStorage.exists(). Message: "+e.message)}},n.get=function(e){try{return window.localStorage.getItem(e)}catch(e){logError("Exception on localStorage.get(). Message: "+e.message)}},n.remove=function(e){try{return window.localStorage.removeItem(e)}catch(e){logError("Exception on localStorage.remove(). Message: "+e.message)}}}()}catch(e){logError(e)}if(!cmb)cmb={};try{!function(){cmb.track={};const e=cmb.track;
10e.send=function(e,t,n,r,o){e&&t&&cmb.pageReady((function(){r&&!isNaN(r)||(r=0),n||(n=t),dataLayer.push({event:"track_event",eventCategory:e.replace(" ","_"),eventAction:t.replace(" ","_"),eventLabel:n.replace(" ","_"),eventValue:r,nonInteraction:!!o})}))},e.trigger=(e,t)=>{if(!e)return!1;try{gtag("event",e,t)}catch(e){logError(e)}}}()}catch(e){logError(e)}try{cmb.pageReady((function(){document.querySelectorAll("ul.menu-list li.has-submenu>a").append('<span class="menu-expand"></span>'),document.querySelectorAll(".menu-toggle-button").addEventListener("click",(function(){if(this.getAttribute("data-menu-id"))for(var e=this.getAttribute("data-menu-id").split(" "),t=e.length,n=0;n<t;n++){var r=e[n];r&&document.getElementById(r).toggleClass("show-for-devices")}else document.getElementById("ul.menu-list").toggleClass("show-for-devices");this.toggleClass("active")})),document.querySelectorAll(".menu-list .menu-expand").addEventListener("click",(function(e){e.preventDefault(),this.parentNode.next("ul").toggleClass("show-for-devices")}))}))}catch(e){logError(e)}var LocalTime={GetCurrentTimeInUserLocale:function(e){var t=new Date(new Date-1),n=t.getUTCHours(),r=t.getUTCMinutes(),o=n+parseInt(e),i=r+60*(e-parseInt(e));return o=i>60?o+1:o,i=i>60?i-60:i,new Date(0,0,0,o,i).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},SetCurrentTimeInUserLocale:function(e,t){var n=LocalTime.GetCurrentTimeInUserLocale(t);document.getElementById(e).innerHTML=n}};if(!cmb)cmb={};try{!function(){cmb.progressbar||(cmb.progressbar={});var e=cmb.progressbar;e.show=function(){document.querySelectorAll(".loadingbar").slideDown(1e3)},e.hide=function(){document.querySelectorAll(".loadingbar").slideUp(1e3)}}()}catch(e){logError(e)}if(!cmb)cmb={};try{!function(){cmb.bookingcom||(cmb.bookingcom={});const e="bookingLeaveBehindX",t=cmb.bookingcom,n=async function(e,t,n){try{let r=await async function(e){if(!e||e===emptyGuid)return null;const t=await window.fetch("/api/bookingcomurl?cityId="+e);return await t.json()}(e);if(r){const e=t;let o=n;o||(o=FormatDateIso(ParseISODate(e).addDays(1))),r+="&checkin="+e+"&checkout="+o+"&dest_type=city&label=checkmybus-homepage-SearchExtension-click";const i=new CustomEvent("tabUnderUrlLoaded",{detail:r});return document.dispatchEvent(i),r}}catch(e){logError(e)}return null},r=function(t,n){const r=cmb.browser.localStorage.exists(e);t&&r?document.querySelector(n).setAttribute("target","_blank"):document.querySelector(n).removeAttribute("target")};t.searchCriteriaUpdated=async function(t,o,i={}){const a=i.destinationId,s=i.destinationParentId,c=i.destinationIsCity,l=await n(c?a:s,i.departureDate,i.returnDate);l?cmb.browser.localStorage.add(e,l,!0):cmb.browser.localStorage.remove(e),r(!(!t||!l)&&t,o)},t.canLeaveBehind=function(){return cmb.browser.localStorage.exists(e)},t.openLeaveBehind=function(t){const n=cmb.browser.localStorage.get(e);if(n){cmb.track.send("AfterSales","booking.com",t);const e=new CustomEvent("urlChange",{detail:n});return document.dispatchEvent(e),!0}return!1},t.enableLeaveBehind=function(e,t){r(e,t),e?cmb.track.send("AfterSales","booking.com","Enabled"):cmb.track.send("AfterSales","booking.com","Disabled")},t.getCityId=function(){const t=cmb.browser.localStorage.get(e);if(t)try{const e=t.match("[?&]city=([^&]+)");return e?e[1].substring(0,e[1].indexOf(";")):null}catch(e){logError(e)}return null},t.initWidget=function(e,n){try{const r=document.getElementById("b_container"),o=document.getElementById("sp_widget"),i=!!r&&r.querySelectorAll("iframe").length>0;(i||!!o)&&(r&&(r.innerHTML=""),o&&(o.innerHTML=""));const a=t.getCityId(),s=e;let c=n;c||(c=FormatDateIso(ParseISODate(s).addDays(1)));const l="https://aff.bstatic.com/static/affiliate_base/js/booking_sp_widget.js?dest_type=city&dest_id="+a+"&checkin="+s+"&checkout="+c+"&lang="+language;!function(e,t,n){let o=e.createElement(t),i=e.getElementsByTagName(t)[0];o.type="text/javascript",o.async=!0,o.src=n,o.id="sp_widget",o.setAttribute("data-hash","_e8b55199b86237"),o.setAttribute("data-container","b_container"),o.setAttribute("data-size","300x250"),o.setAttribute("data-tpncy","fal
10se"),o.onload=function(){try{r.querySelectorAll("iframe").height(248)}catch(e){logError(e)}},i.parentNode.insertBefore(o,i)}(document,"script",l)}catch(e){logError(e)}}}()}catch(e){logError(e)}if(!cmb)cmb={};try{!function(){cmb.hotelplanner||(cmb.hotelplanner={});const e="hotelPlannerLeaveBehindX",t=cmb.hotelplanner;const n=function(t,n){const r=cmb.browser.localStorage.exists(e);t&&r?document.querySelector(n).setAttribute("target","_blank"):document.querySelector(n).removeAttribute("target")};t.searchCriteriaUpdated=async function(t,r,o={}){const i=await async function(e,t,n){try{let r="https://checkmybus.hotelplanner.com/Search";const o=FormatDate(t,"mm/dd/yyyy");if(r+="?city="+e.replace(/\s/g,"+")+"&CheckInDate1="+o+"&CheckInDate1_disp="+o,n){const e=FormatDate(n,"mm/dd/yyyy");r+="&OutDate="+e+"&OutDate_disp="+e}const i=new CustomEvent("tabUnderUrlLoaded",{detail:r});return document.dispatchEvent(i),r}catch(e){logError(e)}return null}(o.destinationName,o.departureDate,o.returnDate);i?cmb.browser.localStorage.add(e,i,!0):cmb.browser.localStorage.remove(e),n(!(!t||!i)&&t,r)},t.canLeaveBehind=function(){return cmb.browser.localStorage.exists(e)},t.openLeaveBehind=function(t){const n=cmb.browser.localStorage.get(e);if(n){cmb.track.send("AfterSales","hotelplanner.com",t);const e=new CustomEvent("urlChange",{detail:n});return document.dispatchEvent(e),!0}return!1},t.enableLeaveBehind=function(e,t){n(e,t),e?cmb.track.send("AfterSales","hotelplanner.com","Enabled"):cmb.track.send("AfterSales","hotelplanner.com","Disabled")}}()}catch(e){logError(e)}if(!cmb)cmb={};try{!function(){logInfo("init stay22"),cmb.stay22||(cmb.stay22={});const e="stay22LeaveBehindX",t=cmb.stay22,n=function(t,n){logInfo("stay22: leaveBehind");const r=cmb.browser.localStorage.exists(e);t&&r?document.querySelector(n).setAttribute("target","_blank"):document.querySelector(n).removeAttribute("target")};t.searchCriteriaUpdated=async function(t,r,o={}){logInfo("stay22: searchcriteriaupdate");const i=await async function(e,t,n,r,o,i){try{let e="https://www.stay22.com/allez/roam?aid=checkmybus&source=pop&medium=undertab";e+="&lat="+o+"&lng="+i+"&campaign="+r,e+="&checkin="+FormatDate(t,"mm/dd/yyyy"),n&&(e+="&checkout="+FormatDate(n,"mm/dd/yyyy"));const a=new CustomEvent("tabUnderUrlLoaded",{detail:e});return document.dispatchEvent(a),logInfo("stay22 url: "+e),e}catch(e){logError(e)}return null}(o.destinationName,o.departureDate,o.returnDate,window.location.host,o.destinationLatitude,o.destinationLongitude);i?cmb.browser.localStorage.add(e,i,!0):cmb.browser.localStorage.remove(e),n(!(!t||!i)&&t,r)},t.canLeaveBehind=function(){return logInfo("stay22: canleave"),cmb.browser.localStorage.exists(e)},t.openLeaveBehind=function(t){logInfo("stay22: openLeaveBehind");const n=cmb.browser.localStorage.get(e);if(n){cmb.track.send("AfterSales","stay22.com",t);const e=new CustomEvent("urlChange",{detail:n});return document.dispatchEvent(e),!0}return!1},t.enableLeaveBehind=function(e,t){logInfo("stay22: enableLeaveBehind"),n(e,t),e?cmb.track.send("AfterSales","stay22.com","Enabled"):cmb.track.send("AfterSales","stay22.com","Disabled")}}()}catch(e){logError(e)}if(!cmb)cmb={};try{!function(){cmb.expedia||(cmb.expedia={});const e="expediaLeaveBehindX",t=cmb.expedia,n=async function(e,t,n,r,o,i){try{let c="https://www.expedia.com/Hotel-Search",l=await async function(e){if(!e||e===emptyGuid)return null;const t=await window.fetch("/api/expediaid?cityId="+e);return await t.json()}(e);if(l){const e=FormatDate(n,"yyyy-mm-dd");l.expediaId?c+="?regionId="+l.expediaId+"&startDate="+e:c+="?destination="+encodeURIComponent(t)+"&startDate="+e;c+="&endDate="+FormatDate(r||(a=1,(s=new Date(n)).setDate(s.getDate()+a),s),"yyyy-mm-dd"),c+="&adults="+o,i&&i>0&&(c+="&children=");for(let e=0;e<i;e++)c+="1_4",e<i-1&&(c+=",");let u;u=l.isLoggedIn?"https://prf.hn/click/camref:1011l3IWgV/creativeref:loggedin/ar:loggedin/destination:"+c+"&uqd=EXPEDIACHECKMYBUSQ2":"https://prf.hn/click/camref:1011l3IWgV/ar:guest/destination:"+c;const d=new CustomEvent("tabUnderUrlLoaded",{detail:u});return document.dispatchEvent(d),u}}catch(e){logError(e)}var a,s;return null};const r=function(t,n){const r=cmb.browser.localStorage.exists(e);t&&r?document.querySelector(n).setAttribute("target","_blank"):document.querySelector(n).removeAttribute("target")};t.searchCriteriaUpdated=async function(t,o,i={}){const a=i.destinationId,s=i.destinationParentId,c=i.destinationIsCity,l=await n(c?a:s,i.destinationName,i.departureDate,i.returnDate,i.adults,i.children);l?cmb.browser.localStorage.add(e,l,!0):cmb.browser.localStorage.remove(e),r(!(!t||!l)&&t,o)},t.canLeaveBehind=function(){return cmb.browser.localStorage.exists(e)},t.openLeaveBehind=function(t){const n=cmb.browser.localStorage.get(e);if(n){cmb.track.send("AfterSales","expedia.com",t);const e=new CustomEvent("urlChange",{detail:n});return document.dispatchEvent(e),!0}return!1},t.enableLeaveBehind=function(e,t){r(e,t),e?cmb.track.send("AfterSales","expedia.com","Enabled"):cmb.track.send("AfterSales","expedia.com","Disabled")}}()}catch(e){logError(e)}if(!cmb)cmb={};try{const e=300,t=()=>{const e=window.__urlChangeTo;e&&(window.__urlChangeTo=void 0,history.pushState("Search","",window.location.href),window.location.replace(e))},n=n=>{window.__urlChangeTo&&n&&!n.closed&&void 0!==n.closed&&setTimeout((()=>{t()}),e)},r=()=>{window.__urlChangeTo&&document.hidden&&t()};document.addEventListener("visibilitychange",r),document.addEventListener("urlChange",(e=>{e.detail&&(window.__urlChangeTo=e.detail)})),function(){cmb.tabunder||(cmb.tabunder={});const e=cmb.tabunder,t="tabunderswitch",r=cmb.hotelplanner,o=cmb.stay22,i=cmb.bookingcom,a=cmb.expedia,s=function(){let e=cmb.browser.sessionStorage.get(t);return"local"!==window.systemType&&"dev1"!==window.systemType||null!==e||(sessionStorage.setItem(t,"0"),e="0"),null===e||"1"===e};e.enableLeaveBehind=function(e,n){cmb.browser.sessionStorage.add(t,e?1:0),window.hotelplanner?r.enableLeaveBehind(e,n):window.expedia?a.enableLeaveBehind(e,n):window.stay22?o.enableLeaveBehind(e,n):i.enableLeaveBehind(e,n)},e.searchCriteriaUpdated=async function(e,t){const n=s();window.hotelplanner?await r.searchCriteriaUpdated(n,e,t):window.stay22?await o.searchCriteriaUpdated(n,e,t):window.expedia?await a.searchCriteriaUpdated(n,e,t):await i.searchCriteriaUpdated(n,e,t)},e.isSwitchEnabled=function(){return s()},e.openLeaveBehind=function(e){try{let t=null;return t=window.hotelplanner?r.openLeaveBehind(e):window.stay22?o.openLeaveBehind(e):window.expedia?a.openLeaveBehind(e):i.openLeaveBehind(e),n(t),t}catch(e){logError(e)}},e.canLeaveBehind=function(){const e=s();return window.hotelplanner?e&&r.canLeaveBehind():window.expedia?e&&a.canLeaveBehind():window.stay22?e&&o.canLeaveBehind():e&&i.canLeaveBehind()}}()}catch(e){logError(e)}const RatingPrompt=()=>{const e="cmb_show_rating_prompt",t="cmb_show_rating_prompt_blocked",n=7,r=3650,o="https://play.google.com/store/apps/details?id=com.checkmybus.androidapp&hl="+window.language??"en",i="https://apps.apple.com/us/app/checkmybus-bus-comparison-app/id1376486930?l="+window.language??"en#see-all/reviews";let a,s,c;const l=()=>{document.getElementById("ratingPromptThumbsUpBtn").addEventListener("click",(()=>{u()})),document.getElementById("ratingPromptThumbsDownBtn").addEventListener("click",(()=>{d()})),document.getElementById("ratingPromptPostponeBtn").addEventListener("click",(()=>{m()}
10)),document.getElementById("ratingPromptFeedbackBtn").addEventListener("click",(()=>{h()}))},u=()=>{y(),w("ThumbsUp"),f(),window.isInAppReviewAvailable&&window.requestInAppReview?window.requestInAppReview():cmb.browser.isiOS()?window.location.href=i:window.location.href=o},d=()=>{w("ThumbsDown"),g()},m=()=>{w("Later"),cmb.setCookie(t,"true",n),f()},h=(()=>{let e;return()=>{e||(e=setTimeout((()=>e=null),500),y(),f(),window.open("mailto:[email protected]"))}})(),p=()=>{const n=cmb.getCookie(e),r=cmb.getCookie(t);"true"===n&&null===r&&b()},g=()=>{s.style.display="none",c.style.display="block"},y=()=>{cmb.deleteCookie(e),cmb.setCookie(e,"false",r)},f=()=>{a.style.display="none"},b=()=>{a.style.display="flex"},w=e=>{cmb.track.send("RatingPrompt","click",e)};return{init:()=>{a=document.getElementById("ratingPromptOverlay"),a&&(s=document.getElementById("ratingPromptFront"),c=document.getElementById("ratingPromptBack"),p(),l())}}};cmb.pageReady((function(){RatingPrompt().init()}));const UserSessionHeartbeat=(()=>{const e=()=>{null!==cmb.getCookie("cmb-identity")&&fetch("/api/session/heartbeat",{method:"POST",credentials:"include"}).catch((e=>{logError("[Heartbeat] Error:",e)}))};return{init:()=>{e(),setInterval(e,3e4)}}})();cmb.pageReady((function(){UserSessionHeartbeat.init()}));

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.