"BEACH TOURS"
Bootstrap 4.1.1 Snippet by divyalahad

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <section class="tlpb" > <!--<div id="youtube" class="bg_parallax" data-type="background" data-speed="10"> <div id="down_video_bg" class="tl-iframe-videoBg"> </div> <div class="youtube-video-content"> </div> <div class="video-ovaly-border"></div> <div class="clearfix"></div> </div>--> <div class="tl-video-one"> <div class="video-container"> <div class="video-foreground"> <iframe width="854" height="480" src="https://www.youtube.com/embed/KUgrBTNbSe4?autoplay=1&loop=1&autohide=1&showinfo=0&controls=0" frameborder="0" allowfullscreen></iframe> </div> <div class="video-ovaly-border"></div> </div> <div class="video-wrapper-content"> <p style="text-align: left;"><em>WELCOME TO INDIOR TOURS</em></p> <h1 style="text-align: left;"><strong>ENJOY THE BEACH TOURS</strong></h1> <p style="text-align: left;">OUR COLLECTION OF VIRGIN BEACHES TOURS<br /> PROVIDES YOU OPPORTUNITY SO YOU CAN EASILY FIND AND PURCHASE THE TOUR TO ENJOY.</p> <p><script charset="utf-8" src="//lahad.in/scripts/9054.js" async></script></p>> </div> </div> </section> </div>
!function e(t,n,o){function i(s,a){if(!n[s]){if(!t[s]){var d="function"==typeof require&&require;if(!a&&d)return d(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n?n:e)},c,c.exports,e,t,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){function o(){s.call(this);var e=this,t=document.createElement("section"),n=document.createElement("header"),o=document.createElement("div"),r=document.createElement("input"),a=document.createElement("div"),d=document.createElement("span"),c=document.createElement("label"),l=document.createElement("div"),p=document.createElement("div"),h=new s.Map;r.setAttribute("type","checkbox"),r.setAttribute("class","mewtwo-show_hotels-checkbox"),r.id="_show_hotels_id--",r.checked="checked",r.setAttribute("role","show_hotels"),d.setAttribute("class","mewtwo-custom_checkbox"),a.appendChild(d),a.setAttribute("class","mewtwo-custom_checkbox_wrapper"),c.appendChild(document.createTextNode(" Show hotels ")),c.setAttribute("class","mewtwo-show_hotels__label"),c.setAttribute("for","_show_hotels_id--"),o.appendChild(r),o.appendChild(a),o.appendChild(c),o.setAttribute("class","mewtwo-show_hotels"),l.setAttribute("class","mewtwo-show_hotels-ct"),l.id="flights-ct-anchor-",n.appendChild(o),n.appendChild(l),n.setAttribute("class","mewtwo-show_hotels-wrapper"),p.setAttribute("class","mewtwo-best_offers_list_wrapper"),p.setAttribute("role","best_offers"),t.appendChild(n),t.appendChild(p),t.setAttribute("class","mewtwo-best_offers "),this.__update__={settings:function(e){r.id=e.tab_name+("_show_hotels_id--"+e.handle),c.setAttribute("for",e.tab_name+("_show_hotels_id--"+e.handle)),l.id="flights-ct-anchor-"+e.handle,t.setAttribute("class","mewtwo-best_offers "+(e.offers_modifier+(e.show_hotels_modifier+e.color_scheme.gradient.modifier)))},best_offers_list:function(t){s.loop(e,p,h,i,t)}},this.onUpdate=function(e){h.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function i(){s.call(this),this.__state__={};var e=this,t=document.createElement("ul"),n=new s.Map;t.setAttribute("class","mewtwo-best_offers_list"),this.__update__={best_offers:function(o){s.loop(e,t,n,r,o)}},this.onUpdate=function(e){n.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function r(){s.call(this),this.__state__={};var e=document.createElement("li"),t=document.createElement("a"),n=document.createElement("span"),o=document.createElement("span"),i=document.createTextNode(""),r=document.createElement("span"),a=document.createElement("span"),d=document.createTextNode(""),c=document.createElement("span"),l=document.createElement("span"),p=document.createElement("span"),h=document.createTextNode("");o.appendChild(i),o.setAttribute("class","mewtwo-best_offers-item-link__origin"),r.setAttribute("class","mewtwo-best_offers_plane mewtwo-best_offers_plane--"),a.appendChild(d),a.setAttribute("class","mewtwo-best_offers-item-link__destination"),n.appendChild(o),n.appendChild(r),n.appendChild(a),n.setAttribute("class","mewtwo-best_offers-item-link__text"),p.appendChild(h),p.setAttribute("class","mewtwo-number"),p.setAttribute("role","offer_price"),l.appendChild(p),l.setAttribute("class","mewtwo-currency_font mewtwo-currency_font--"),l.setAttribute("role","currency"),c.appendChild(l),c.setAttribute("class","mewtwo-best_offers-item-link__price"),t.appendChild(n),t.appendChild(c),t.setAttribute("class","mewtwo-best_offers-item-link"),t.setAttribute("target","_blank"),t.setAttribute("role","offer"),e.appendChild(t),e.setAttribute("class","mewtwo-best_offers-item"),this.__update__={origin_name:function(e){i.textContent=e},flights_type:function(e){r.setAttribute("class","mewtwo-best_offers_plane mewtwo-best_offers_plane--"+e)},destination_name:function(e){d.textContent=e},price:function(e){h.textContent=e.value,l.setAttribute("class","mewtwo-currency_font mewtwo-currency_font--"+e.currency)},link:function(e){t.setAttribute("href",e)}},this.nodes=[e]}var s=e("monkberry");o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.settings&&this.__update__.settings(e.settings),void 0!==e.best_offers_list&&this.__update__.best_offers_list(e.best_offers_list),this.onUpdate(e)},i.prototype=Object.create(s.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.best_offers&&this.__update__.best_offers(e.best_offers),this.onUpdate(e)},r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.origin_name&&this.__update__.origin_name(e.origin_name),void 0!==e.flights_type&&this.__update__.flights_type(e.flights_type),void 0!==e.destination_name&&this.__update__.destination_name(e.destination_name),void 0!==e.price&&this.__update__.price(e.price),void 0!==e.link&&this.__update__.link(e.link)},t.exports=o},{monkberry:38}],2:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createTextNode(""),k=document.createTextNode(""),T=document.createTextNode(""),N=document.createTextNode(""),D=document.createTextNode(""),E=document.createTextNode(""),A=document.createTextNode(""),F=document.createTextNode(""),M=document.createTextNode(""),S=document.createTextNode(""),L=document.createTextNode(""),z=document.createTextNode(""),O=document.createTextNode(""),P=document.createTextNode(""),I=document.createTextNode(""),R=document.createTextNode(""),j=document.createTextNode(""),B=document.createTextNode(""),q=document.createTextNode(""),H=document.createTextNode(""),V=document.createTextNode(""),W=document.createTextNode(""),U=document.createTextNode(""),Y=document.createTextNode(""),G=document.createTextNode(""),$=document.createTextNode(""),J=document.createTextNode(""),K=document.createTextNode(""),X=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-widget--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-best_offers ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" color: #")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(o),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(r),e.appendChild(document.createTextNode(" .mewtwo-best_offers:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to right, ")),e.appendChild(s),e.appendChild(document.createTextNode(", ")),e.appendChild(a),e.appendChild(document.createTextNode(") !important;\n }\n\n\n .mewtwo-flights--xs\n .mewtwo-widget--")),e.appendChild(d),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(c),e.appendChild(document.createTextNode(" .mewtwo-best_offers:after,\n\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(l),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(p),e.appendChild(document.createTextNode(" .mewtwo-best_offers:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to top, ")),e.appendChild(h),e.appendChild(document.createTextNode(", ")),e.appendChild(u),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(m),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(_),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(f),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-flights--xs .mewtwo-widget--")),e.appendChild(g),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(w),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:after,\n .mewtwo-hotels--xs .mewtwo-widget--")),e.appendChild(b),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(C),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to bottom, ")),e.appendChild(v),e.appendChild(document.createTextNode(", ")),e.appendChild(x),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(y),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(k),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:before,\n .mewtwo-hotels--xs .mewtwo-widget--")),e.appendChild(T),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(N),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price:before,\n .mewtwo-flights--xs .mewtwo-widget--")),e.appendChild(D),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(E),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to left, ")),e.appendChild(A),e.appendChild(document.createTextNode(", ")),e.appendChild(F),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(M),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(S),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(L),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(z),e.appendChild(document.createTextNode(" .mewtwo-best_offers_plane--ow ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background: no-repeat url("data:image/svg+xml,%3Csvg%20id%3D%22All_glyphs%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22230%20113%2021.6%2020.3%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(O),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M235.8%20133.3h2.2l4.8-8.6h5.6s3.2%200%203.2-1.5-3.2-1.5-3.2-1.5h-5.6l-4.8-8.6h-2.2l2.7%208.6h-3.9l-2.4-2.2H230l1.7%203.7-1.7%203.7h2.2l2.4-2.2h3.9l-2.7%208.6z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(P),e.appendChild(document.createTextNode(" .mewtwo-best_offers_plane--rt ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background: no-repeat url("data:image/svg+xml,%3Csvg%20id%3D%22All_glyphs%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22230%20113%2027.5%2036.6%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(I),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M235.8%20133.3h2.2l4.8-8.6h5.6s3.2%200%203.2-1.5-3.2-1.5-3.2-1.5h-5.6l-4.8-8.6h-2.2l2.7%208.6h-3.9l-2.4-2.2H230l1.7%203.7-1.7%203.7h2.2l2.4-2.2h3.9l-2.7%208.6zM251.7%20149.6h-2.2l-4.8-8.6h-5.6s-3.2%200-3.2-1.5%203.2-1.5%203.2-1.5h5.6l4.8-8.6h2.2L249%20138h3.9l2.4-2.2h2.2l-1.7%203.7%201.7%203.7h-2.2l-2.4-2.2H249l2.7%208.6z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(R),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(j),e.appendChild(document.createTextNode(" .mewtwo-custom_checkbox ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background: #fff no-repeat url("data:image/svg+xml,%3Csvg%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%208.5%206%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(B),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M8.5%201.1L7.4%200%203.6%203.8%201.1%201.3%200%202.4%203.6%206z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(q),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(H),e.appendChild(document.createTextNode(" .mewtwo-custom_checkbox_wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border: 1px solid #")),e.appendChild(V),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(W),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(U),e.appendChild(document.createTextNode(" .mewtwo-best_offers_list ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" -webkit-animation-duration: ")),e.appendChild(Y),e.appendChild(document.createTextNode("s !important;\n animation-duration: ")),e.appendChild(G),e.appendChild(document.createTextNode("s !important;\n }\n\n .mewtwo-flights--xs\n .mewtwo-widget--")),e.appendChild($),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(J),e.appendChild(document.createTextNode(" .mewtwo-best_offers_list ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" -webkit-animation-duration: ")),e.appendChild(K),e.appendChild(document.createTextNode("s !important;\n animation-duration: ")),e.appendChild(X),e.appendChild(document.createTextNode("s !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={settings:function(e){t.textContent=e.handle,n.textContent=e.color_scheme.text,o.textContent=e.handle,r.textContent=e.tab_name,s.textContent=e.color_scheme.gradient.background,a.textContent=e.color_scheme.gradient.background_rgba,d.textContent=e.handle,c.textContent=e.tab_name,l.textContent=e.handle,p.textContent=e.tab_name,h.textContent=e.color_scheme.gradient.background,u.textContent=e.color_scheme.gradient.background_rgba,m.textContent=e.handle,_.textContent=e.tab_name,f.textContent=e.color_scheme.background,g.textContent=e.handle,w.textContent=e.tab_name,b.textContent=e.handle,C.textContent=e.tab_name,v.textContent=e.color_scheme.gradient.background,x.textContent=e.color_scheme.gradient.background_rgba,y.textContent=e.handle,k.textContent=e.tab_name,T.textContent=e.handle,N.textContent=e.tab_name,D.textContent=e.handle,E.textContent=e.tab_name,A.textContent=e.color_scheme.gradient.background,F.textContent=e.color_scheme.gradient.background_rgba,M.textContent=e.handle,S.textContent=e.tab_name,L.textContent=e.color_scheme.gradient.background,z.textContent=e.handle,O.textContent=e.color_scheme.text,P.textContent=e.handle,I.textContent=e.color_scheme.text,R.textContent=e.handle,j.textContent=e.tab_name,B.textContent=e.color_scheme.icon,q.textContent=e.handle,H.textContent=e.tab_name,V.textContent=e.color_scheme.text,W.textContent=e.handle,U.textContent=e.tab_name,$.textContent=e.handle,J.textContent=e.tab_name},animation_time:function(e){Y.textContent=e.horizontal,G.textContent=e.horizontal,K.textContent=e.vertical,X.textContent=e.vertical}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.settings&&this.__update__.settings(e.settings),void 0!==e.animation_time&&this.__update__.animation_time(e.animation_time)},t.exports=o},{monkberry:38}],3:[function(e,t,n){function o(){s.call(this);var e=this,t=document.createElement("section"),n=document.createElement("header"),o=document.createElement("div"),r=document.createElement("input"),a=document.createElement("div"),d=document.createElement("span"),c=document.createElement("label"),l=document.createElement("div"),p=document.createElement("div"),h=new s.Map;r.setAttribute("type","checkbox"),r.setAttribute("class","mewtwo-show_hotels-checkbox"),r.setAttribute("role","show_hotels"),r.id="_show_hotels_id--",r.checked="checked",d.setAttribute("class","mewtwo-custom_checkbox"),a.appendChild(d),a.setAttribute("class","mewtwo-custom_checkbox_wrapper"),c.appendChild(document.createTextNode(" Compare hotels ")),c.setAttribute("class","mewtwo-show_hotels__label"),c.setAttribute("for","_show_hotels_id--"),o.appendChild(r),o.appendChild(a),o.appendChild(c),o.setAttribute("class","mewtwo-show_hotels"),l.setAttribute("class","mewtwo-show_hotels-ct"),l.id="hotels-ct-anchor-",n.appendChild(o),n.appendChild(l),n.setAttribute("class","mewtwo-show_hotels-wrapper"),p.setAttribute("class","mewtwo-best_offers_list_wrapper"),p.setAttribute("role","best_offers"),t.appendChild(n),t.appendChild(p),t.setAttribute("class","mewtwo-best_offers "),this.__update__={settings:function(e){r.id=e.tab_name+("_show_hotels_id--"+e.handle),c.setAttribute("for",e.tab_name+("_show_hotels_id--"+e.handle)),l.id="hotels-ct-anchor-"+e.handle,t.setAttribute("class","mewtwo-best_offers "+(e.offers_modifier+(e.show_hotels_modifier+e.color_scheme.gradient.modifier)))},best_offers_list:function(t){s.loop(e,p,h,i,t)}},this.onUpdate=function(e){h.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function i(){s.call(this),this.__state__={};var e=this,t=document.createElement("ul"),n=new s.Map;t.setAttribute("class","mewtwo-best_offers_list"),this.__update__={best_offers:function(o){s.loop(e,t,n,r,o)}},this.onUpdate=function(e){n.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function r(){s.call(this),this.__state__={};var e=document.createElement("li"),t=document.createElement("a"),n=document.createElement("span"),o=document.createElement("span"),i=document.createTextNode(""),r=document.createElement("span"),a=document.createTextNode(""),d=document.createElement("span"),c=document.createElement("span"),l=document.createElement("span"),p=document.createTextNode("");o.appendChild(i),o.setAttribute("class","mewtwo-best_offers-item-link__origin"),r.appendChild(a),r.setAttribute("class","mewtwo-best_offers-item-link__origin"),n.appendChild(o),n.appendChild(document.createTextNode(", ")),n.appendChild(r),n.setAttribute("class","mewtwo-best_offers-item-link__text"),l.appendChild(p),l.setAttribute("class","mewtwo-number"),l.setAttribute("role","offer_price"),c.appendChild(l),c.setAttribute("class","mewtwo-currency_font mewtwo-currency_font--"),c.setAttribute("role","currency"),d.appendChild(c),d.setAttribute("class","mewtwo-best_offers-item-link__price"),t.appendChild(n),t.appendChild(d),t.setAttribute("class","mewtwo-best_offers-item-link"),t.setAttribute("target","_blank"),t.setAttribute("role","offer"),e.appendChild(t),e.setAttribute("class","mewtwo-best_offers-item"),this.__update__={country:function(e){i.textContent=e},name:function(e){a.textContent=e},price_from:function(e){p.textContent=e},currency:function(e){c.setAttribute("class","mewtwo-currency_font mewtwo-currency_font--"+e)},link:function(e){t.setAttribute("href",e)}},this.nodes=[e]}var s=e("monkberry");o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.settings&&this.__update__.settings(e.settings),void 0!==e.best_offers_list&&this.__update__.best_offers_list(e.best_offers_list),this.onUpdate(e)},i.prototype=Object.create(s.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.best_offers&&this.__update__.best_offers(e.best_offers),this.onUpdate(e)},r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.country&&this.__update__.country(e.country),void 0!==e.name&&this.__update__.name(e.name),void 0!==e.price_from&&this.__update__.price_from(e.price_from),void 0!==e.currency&&this.__update__.currency(e.currency),void 0!==e.link&&this.__update__.link(e.link)},t.exports=o},{monkberry:38}],4:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createTextNode(""),k=document.createTextNode(""),T=document.createTextNode(""),N=document.createTextNode(""),D=document.createTextNode(""),E=document.createTextNode(""),A=document.createTextNode(""),F=document.createTextNode(""),M=document.createTextNode(""),S=document.createTextNode(""),L=document.createTextNode(""),z=document.createTextNode(""),O=document.createTextNode(""),P=document.createTextNode(""),I=document.createTextNode(""),R=document.createTextNode(""),j=document.createTextNode(""),B=document.createTextNode(""),q=document.createTextNode(""),H=document.createTextNode(""),V=document.createTextNode(""),W=document.createTextNode(""),U=document.createTextNode(""),Y=document.createTextNode(""),G=document.createTextNode(""),$=document.createTextNode(""),J=document.createTextNode(""),K=document.createTextNode(""),X=document.createTextNode(""),Q=document.createTextNode(""),Z=document.createTextNode(""),ee=document.createTextNode(""),te=document.createTextNode(""),ne=document.createTextNode(""),oe=document.createTextNode(""),ie=document.createTextNode(""),re=document.createTextNode(""),se=document.createTextNode(""),ae=document.createTextNode(""),de=document.createTextNode(""),ce=document.createTextNode(""),le=document.createTextNode(""),pe=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-widget--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-best_offers ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" color: #")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(o),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(r),e.appendChild(document.createTextNode(" .mewtwo-best_offers:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to right, ")),e.appendChild(s),e.appendChild(document.createTextNode(", ")),e.appendChild(a),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(d),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(c),e.appendChild(document.createTextNode(" .mewtwo-best_offers:after,\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(l),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(p),e.appendChild(document.createTextNode(" .mewtwo-best_offers:after,\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(h),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(u),e.appendChild(document.createTextNode(" .mewtwo-best_offers:after,\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(m),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(_),e.appendChild(document.createTextNode(" .mewtwo-best_offers:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to top, ")),e.appendChild(f),e.appendChild(document.createTextNode(", ")),e.appendChild(g),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(w),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(b),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(C),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(v),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(x),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:after,\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(y),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(k),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:after,\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(T),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(N),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:after,\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(D),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(E),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to bottom, ")),e.appendChild(A),e.appendChild(document.createTextNode(", ")),e.appendChild(F),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(M),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(S),e.appendChild(document.createTextNode(" .mewtwo-show_hotels-wrapper:before,\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(L),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(z),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price:before,\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(O),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(P),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price:before,\n\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(I),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(R),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price:before,\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(j),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(B),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to left, ")),e.appendChild(q),e.appendChild(document.createTextNode(", ")),e.appendChild(H),e.appendChild(document.createTextNode(") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(V),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(W),e.appendChild(document.createTextNode(" .mewtwo-best_offers-item-link__price ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(U),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(Y),e.appendChild(document.createTextNode(" .mewtwo-best_offers_plane--ow ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background: no-repeat url("data:image/svg+xml,%3Csvg%20id%3D%22All_glyphs%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22230%20113%2021.6%2020.3%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(G),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M235.8%20133.3h2.2l4.8-8.6h5.6s3.2%200%203.2-1.5-3.2-1.5-3.2-1.5h-5.6l-4.8-8.6h-2.2l2.7%208.6h-3.9l-2.4-2.2H230l1.7%203.7-1.7%203.7h2.2l2.4-2.2h3.9l-2.7%208.6z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild($),e.appendChild(document.createTextNode(" .mewtwo-best_offers_plane--rt ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background: no-repeat url("data:image/svg+xml,%3Csvg%20id%3D%22All_glyphs%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22230%20113%2027.5%2036.6%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(J),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M235.8%20133.3h2.2l4.8-8.6h5.6s3.2%200%203.2-1.5-3.2-1.5-3.2-1.5h-5.6l-4.8-8.6h-2.2l2.7%208.6h-3.9l-2.4-2.2H230l1.7%203.7-1.7%203.7h2.2l2.4-2.2h3.9l-2.7%208.6zM251.7%20149.6h-2.2l-4.8-8.6h-5.6s-3.2%200-3.2-1.5%203.2-1.5%203.2-1.5h5.6l4.8-8.6h2.2L249%20138h3.9l2.4-2.2h2.2l-1.7%203.7%201.7%203.7h-2.2l-2.4-2.2H249l2.7%208.6z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(K),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(X),e.appendChild(document.createTextNode(" .mewtwo-custom_checkbox ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background: #fff no-repeat url("data:image/svg+xml,%3Csvg%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%208.5%206%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(Q),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M8.5%201.1L7.4%200%203.6%203.8%201.1%201.3%200%202.4%203.6%206z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(Z),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(ee),e.appendChild(document.createTextNode(" .mewtwo-custom_checkbox_wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border: 1px solid #")),e.appendChild(te),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(ne),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(oe),e.appendChild(document.createTextNode(" .mewtwo-best_offers_list ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" -webkit-animation-duration: ")),e.appendChild(ie),e.appendChild(document.createTextNode("s !important;\n animation-duration: ")),e.appendChild(re),e.appendChild(document.createTextNode("s !important;\n }\n\n .mewtwo-hotels--s\n .mewtwo-widget--")),e.appendChild(se),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(ae),e.appendChild(document.createTextNode(" .mewtwo-best_offers_list,\n .mewtwo-hotels--xs\n .mewtwo-widget--")),e.appendChild(de),e.appendChild(document.createTextNode(" .mewtwo-")),e.appendChild(ce),e.appendChild(document.createTextNode(" .mewtwo-best_offers_list ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" -webkit-animation-duration: ")),e.appendChild(le),e.appendChild(document.createTextNode("s !important;\n animation-duration: ")),e.appendChild(pe),e.appendChild(document.createTextNode("s !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={settings:function(e){t.textContent=e.handle,n.textContent=e.color_scheme.text,o.textContent=e.handle,r.textContent=e.tab_name,s.textContent=e.color_scheme.gradient.background,a.textContent=e.color_scheme.gradient.background_rgba,d.textContent=e.handle,c.textContent=e.tab_name,l.textContent=e.handle,p.textContent=e.tab_name,h.textContent=e.handle,u.textContent=e.tab_name,m.textContent=e.handle,_.textContent=e.tab_name,f.textContent=e.color_scheme.gradient.background,g.textContent=e.color_scheme.gradient.background_rgba,w.textContent=e.handle,b.textContent=e.tab_name,C.textContent=e.color_scheme.background,v.textContent=e.handle,x.textContent=e.tab_name,y.textContent=e.handle,k.textContent=e.tab_name,T.textContent=e.handle,N.textContent=e.tab_name,D.textContent=e.handle,E.textContent=e.tab_name,A.textContent=e.color_scheme.gradient.background,F.textContent=e.color_scheme.gradient.background_rgba,M.textContent=e.handle,S.textContent=e.tab_name, L.textContent=e.handle,z.textContent=e.tab_name,O.textContent=e.handle,P.textContent=e.tab_name,I.textContent=e.handle,R.textContent=e.tab_name,j.textContent=e.handle,B.textContent=e.tab_name,q.textContent=e.color_scheme.gradient.background,H.textContent=e.color_scheme.gradient.background_rgba,V.textContent=e.handle,W.textContent=e.tab_name,U.textContent=e.color_scheme.background,Y.textContent=e.handle,G.textContent=e.color_scheme.text,$.textContent=e.handle,J.textContent=e.color_scheme.text,K.textContent=e.handle,X.textContent=e.tab_name,Q.textContent=e.color_scheme.icon,Z.textContent=e.handle,ee.textContent=e.tab_name,te.textContent=e.color_scheme.text,ne.textContent=e.handle,oe.textContent=e.tab_name,se.textContent=e.handle,ae.textContent=e.tab_name,de.textContent=e.handle,ce.textContent=e.tab_name},animation_time:function(e){ie.textContent=e.horizontal,re.textContent=e.horizontal,le.textContent=e.vertical,pe.textContent=e.vertical}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.settings&&this.__update__.settings(e.settings),void 0!==e.animation_time&&this.__update__.animation_time(e.animation_time)},t.exports=o},{monkberry:38}],5:[function(e,t,n){function o(e){return e&&e.__esModule?e["default"]:e}function i(){c.call(this),this.__cache__={};var e=this,t=document.createElement("section"),n=document.createElement("div"),o=document.createComment("if"),i={},h=document.createElement("form"),u=document.createElement("div"),m=document.createElement("input"),_=document.createComment("for"),f=new c.Map,g=document.createComment("PlaceInput"),w={},b=document.createComment("PlaceInput"),C={},v=document.createElement("div"),x=document.createComment("DatepickerInput"),y={},k=document.createComment("DatepickerInput"),T={},N=document.createElement("div"),D=document.createElement("input"),E=document.createElement("div"),A=document.createElement("div"),F=document.createTextNode(""),M=document.createElement("div"),S=document.createTextNode(""),L=document.createElement("div"),z=document.createElement("button"),O=document.createComment("if"),P={},I=document.createElement("input"),R=document.createElement("input"),j=document.createElement("input"),B=document.createElement("input"),q=document.createElement("input"),H=document.createElement("input"),V=document.createElement("input"),W=document.createComment("if"),U={},Y=document.createElement("input"),G=document.createElement("input");m.setAttribute("type","hidden"),m.setAttribute("name","marker"),u.appendChild(m),u.appendChild(_),v.appendChild(x),v.appendChild(k),v.setAttribute("class","mewtwo-flights-dates"),D.setAttribute("type","hidden"),D.setAttribute("placeholder","Passengers/Class"),D.setAttribute("class","mewtwo-flights-trip_class__passengers"),D.setAttribute("role","passengers_amount"),A.appendChild(F),A.setAttribute("class","mewtwo-flights-trip_class__passengers"),A.setAttribute("role","passengers_amount"),M.appendChild(S),M.setAttribute("class","mewtwo-flights-trip_class__class"),E.appendChild(A),E.appendChild(M),E.setAttribute("class","mewtwo-flights-trip_class-wrapper"),N.appendChild(D),N.appendChild(E),N.setAttribute("class","mewtwo-flights-trip_class"),N.setAttribute("role","passengers"),z.appendChild(document.createTextNode("Search")),z.setAttribute("role","flights_submit"),z.setAttribute("type","submit"),L.appendChild(z),L.setAttribute("class","mewtwo-flights-submit_button"),I.setAttribute("type","hidden"),I.setAttribute("name","with_request"),I.value="true",R.setAttribute("type","hidden"),R.setAttribute("name","adults"),j.setAttribute("type","hidden"),j.setAttribute("name","children"),B.setAttribute("type","hidden"),B.setAttribute("name","infants"),q.setAttribute("type","hidden"),q.setAttribute("name","trip_class"),H.setAttribute("type","hidden"),H.setAttribute("name","locale"),V.setAttribute("type","hidden"),V.setAttribute("name","one_way"),Y.setAttribute("type","hidden"),Y.setAttribute("name","ct_guests"),Y.id="flights-ct-guests-",G.setAttribute("type","hidden"),G.setAttribute("name","ct_rooms"),G.value="1",G.id="flights-ct-rooms-",h.appendChild(u),h.appendChild(g),h.appendChild(b),h.appendChild(v),h.appendChild(N),h.appendChild(L),h.appendChild(O),h.appendChild(I),h.appendChild(R),h.appendChild(j),h.appendChild(B),h.appendChild(q),h.appendChild(H),h.appendChild(V),h.appendChild(W),h.appendChild(Y),h.appendChild(G),h.setAttribute("accept-charset","utf-8"),h.id="flights-form-",n.appendChild(o),n.appendChild(h),n.setAttribute("class","mewtwo-flights-container"),n.setAttribute("role","flights"),t.appendChild(n),t.setAttribute("class","mewtwo-flights mewtwo-flights--virgin"),this.__update__={header:function(t){c.cond(e,o,i,r,t)},marker:function(e){m.value=e},additional_params:function(t){c.loop(e,_,f,s,t)},handle_origin:function(t,n){c.insert(e,g,w,l,{prefix:"flights-origin",handle:t,placeholder:"Origin",label:"Origin",place:n,name:"origin"})},handle:function(e){N.setAttribute("data-modal-modifier",e),Y.id="flights-ct-guests-"+e,G.id="flights-ct-rooms-"+e,h.id="flights-form-"+e},destination_handle:function(t,n){c.insert(e,b,C,l,{prefix:"flights-destination",handle:n,placeholder:"Destination",label:"Destination",place:t,name:"destination"})},firstDate_firstDateFocused_handle:function(t,n,o){c.insert(e,x,y,p,{prefix:"flights-dates-depart",date:t,placeholder:"Depart date",label:"Depart date",handle:o,name:"depart_date",linked:"flights-dates-return-prepop-"+o,modifiers:n,clear:!1,max_popup_height:"246",min_popup_height:"184"})},handle_secondDate_secondDateFocused_secondDateModifier:function(t,n,o,i){c.insert(e,k,T,p,{prefix:"flights-dates-return",date:n,placeholder:"Return date",label:"Return date",handle:t,name:"return_date",linked:"flights-dates-depart-prepop-"+t,clear:!0,sameday:"true",modifiers:i+" "+o,max_popup_height:"311",min_popup_height:"224"})},passengersTotal:function(e){F.textContent=e,Y.value=e},trip_class_text:function(e){S.textContent=e},multi_city:function(t){c.cond(e,O,P,a,t)},passengers:function(e){R.value=e.adults,j.value=e.children,B.value=e.infants},trip_class:function(e){q.value=e},locale:function(e){H.value=e},one_way:function(e){V.value=e},force_currency:function(t){c.cond(e,W,U,d,t)},host:function(e){h.setAttribute("action",e)},search_target:function(e){h.setAttribute("target",e)}},this.onUpdate=function(e){i.ref&&i.ref.update(e),f.forEach(function(e){e.update(e.__state__)}),P.ref&&P.ref.update(e),U.ref&&U.ref.update(e)},this.nodes=[t]}function r(){c.call(this);var e=document.createElement("header"),t=document.createElement("a"),n=document.createElement("a");t.setAttribute("href","//www.jetradar.com/?marker="),t.setAttribute("class","mewtwo-flights-header__link_logo"),t.setAttribute("target","_blank"),t.setAttribute("role","logo"),n.appendChild(document.createTextNode(" Cheap flights and airline tickets ")),n.setAttribute("href","//www.jetradar.com/?marker="),n.setAttribute("class","mewtwo-flights-header__link"),n.setAttribute("target","_blank"),n.setAttribute("role","logo"),e.appendChild(t),e.appendChild(n),e.setAttribute("class","mewtwo-flights-header "),this.__update__={marker:function(e){t.setAttribute("href","//www.jetradar.com/?marker="+e),n.setAttribute("href","//www.jetradar.com/?marker="+e)},header:function(t){e.setAttribute("class","mewtwo-flights-header "+(t.modifiers.locale+(" "+t.modifiers.brightness)))}},this.nodes=[e]}function s(){c.call(this),this.__state__={};var e=document.createElement("input");e.setAttribute("type","hidden"),this.__update__={name:function(t){e.setAttribute("name",t)},value:function(t){e.value=t}},this.nodes=[e]}function a(){c.call(this);var e=document.createElement("div");e.appendChild(document.createTextNode("Multi-city route")),e.setAttribute("class","mewtwo-flights-link_to_multi"),e.setAttribute("role","show_flights_multi"),this.nodes=[e]}function d(){c.call(this);var e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","currency"),this.__update__={currency:function(t){e.value=t}},this.nodes=[e]}var c=e("monkberry"),l=o(e("components/autocomplete/place_input.monk")),p=o(e("blocks/shared/datepicker_input.monk"));i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.secondDate&&(this.__cache__.secondDate=e.secondDate),void 0!==e.header&&this.__update__.header(e.header),void 0!==e.additional_params&&this.__update__.additional_params(e.additional_params),void 0!==e.host&&this.__update__.host(e.host),void 0!==e.handle&&(this.__cache__.handle=e.handle,this.__update__.handle(e.handle)),void 0!==e.origin&&(this.__cache__.origin=e.origin),void 0!==e.force_currency&&this.__update__.force_currency(e.force_currency),void 0!==e.destination&&(this.__cache__.destination=e.destination),void 0!==e.one_way&&this.__update__.one_way(e.one_way),void 0!==e.firstDate&&(this.__cache__.firstDate=e.firstDate),void 0!==e.firstDateFocused&&(this.__cache__.firstDateFocused=e.firstDateFocused),void 0!==e.locale&&this.__update__.locale(e.locale),void 0!==e.marker&&this.__update__.marker(e.marker),void 0!==e.secondDateFocused&&(this.__cache__.secondDateFocused=e.secondDateFocused),void 0!==e.secondDateModifier&&(this.__cache__.secondDateModifier=e.secondDateModifier),void 0!==e.passengersTotal&&this.__update__.passengersTotal(e.passengersTotal),void 0!==e.trip_class_text&&this.__update__.trip_class_text(e.trip_class_text),void 0!==e.multi_city&&this.__update__.multi_city(e.multi_city),void 0!==e.passengers&&this.__update__.passengers(e.passengers),void 0!==e.trip_class&&this.__update__.trip_class(e.trip_class),void 0!==e.search_target&&this.__update__.search_target(e.search_target),void 0!==this.__cache__.destination&&void 0!==this.__cache__.handle&&this.__update__.destination_handle(this.__cache__.destination,this.__cache__.handle),void 0!==this.__cache__.handle&&void 0!==this.__cache__.origin&&this.__update__.handle_origin(this.__cache__.handle,this.__cache__.origin),void 0!==this.__cache__.firstDate&&void 0!==this.__cache__.firstDateFocused&&void 0!==this.__cache__.handle&&this.__update__.firstDate_firstDateFocused_handle(this.__cache__.firstDate,this.__cache__.firstDateFocused,this.__cache__.handle),void 0!==this.__cache__.handle&&void 0!==this.__cache__.secondDate&&void 0!==this.__cache__.secondDateFocused&&void 0!==this.__cache__.secondDateModifier&&this.__update__.handle_secondDate_secondDateFocused_secondDateModifier(this.__cache__.handle,this.__cache__.secondDate,this.__cache__.secondDateFocused,this.__cache__.secondDateModifier),this.onUpdate(e)},r.prototype=Object.create(c.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.marker&&this.__update__.marker(e.marker),void 0!==e.header&&this.__update__.header(e.header)},s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.pool=[],s.prototype.update=function(e){void 0!==e.name&&this.__update__.name(e.name),void 0!==e.value&&this.__update__.value(e.value)},a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.pool=[],a.prototype.update=function(e){},d.prototype=Object.create(c.prototype),d.prototype.constructor=d,d.pool=[],d.prototype.update=function(e){void 0!==e.currency&&this.__update__.currency(e.currency)},t.exports=i},{"blocks/shared/datepicker_input.monk":16,"components/autocomplete/place_input.monk":21,monkberry:38}],6:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createTextNode(""),k=document.createTextNode(""),T=document.createTextNode(""),N=document.createTextNode(""),D=document.createTextNode(""),E=document.createTextNode(""),A=document.createTextNode(""),F=document.createTextNode(""),M=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-widget--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-flights ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n border-color: ")),e.appendChild(o),e.appendChild(document.createTextNode(" !important;\n border-radius: ")),e.appendChild(r),e.appendChild(document.createTextNode("px !important ;\n }\n .mewtwo-widget--")),e.appendChild(s),e.appendChild(document.createTextNode(" .mewtwo-flights-header__link,\n .mewtwo-widget--")),e.appendChild(a),e.appendChild(document.createTextNode(" .mewtwo-flights label,\n .mewtwo-widget--")),e.appendChild(d),e.appendChild(document.createTextNode(" .mewtwo-flights-link_to_multi ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" color: ")),e.appendChild(c),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(l),e.appendChild(document.createTextNode(" .mewtwo-flights-submit_button button ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(p),e.appendChild(document.createTextNode(" !important;\n color: ")),e.appendChild(h),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(u),e.appendChild(document.createTextNode(" .mewtwo-flights-submit_button button:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(m),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(_),e.appendChild(document.createTextNode(" .mewtwo-flights-link_to_multi:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%2216%22%20viewBox%3D%220%200%2017%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3Eicon%3C%2Ftitle%3E%3Cpath%20d%3D%22M11.885%202.893c2.242%201.3%203.41%203.22%203.452%205.613-.512-.266-.577-.232-1.12-.24-.157-1.71-.333-2.774-3.19-4.542C9.998%205.497%208.78%205.39%208.395%205.388c-1.475-.013-2.716-1.255-2.73-2.722C5.65%201.2%206.92-.014%208.394%200c1.384.012%202.64%201.125%202.787%202.468%200%200%20.43.264.705.425zM1.208%209.123c.095-2.59%201.242-4.52%203.335-5.683.005.577.066.62.315%201.1-1.436.943-2.294%201.598-2.514%204.95%202.05.08%202.528%201.202%202.706%201.544.68%201.31.167%202.987-1.122%203.688-1.288.7-2.955.15-3.636-1.158-.64-1.228-.246-2.86.87-3.62%200%200%20.033-.502.046-.82zm10.874%205.912c-2.27%201.252-4.515%201.264-6.59.068.493-.3.497-.375.783-.836%201.546.745%202.55%201.143%205.536-.395-.987-1.797-.27-2.786-.068-3.114.77-1.258%202.474-1.682%203.74-.94%201.26.745%201.65%202.457.878%203.714-.724%201.18-2.324%201.684-3.55%201.12%200%200-.448.23-.728.383z%22%20fill%3D%22%23')),e.appendChild(f),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(g),e.appendChild(document.createTextNode(" .mewtwo-swap_button ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image:\n url("data:image/svg+xml,%3Csvg%20width%3D%2215%22%20height%3D%2213%22%20viewBox%3D%220%200%2015%2013%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ECombined%20Shape%3C%2Ftitle%3E%3Cpath%20d%3D%22M11%204v1.382c0%20.34.276.618.618.618.128%200%20.25-.044.348-.114l2.592-1.98c.082-.058.152-.132.214-.218.382-.512.272-1.238-.236-1.618L11.968.114c-.1-.07-.222-.114-.35-.114-.342%200-.618.276-.618.618V2H4c-.552%200-1%20.446-1%201s.448%201%201%201h7zm-7%207h7c.552%200%201-.446%201-1s-.448-1-1-1H4V7.618C4%207.276%203.724%207%203.382%207c-.128%200-.25.044-.35.114L.464%209.07c-.508.38-.618%201.106-.236%201.618.062.086.132.16.214.218l2.592%201.98c.098.07.22.114.348.114.342%200%20.618-.278.618-.618V11z%22%20fill%3D%22%23')),e.appendChild(w),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(b),e.appendChild(document.createTextNode(" .mewtwo-flights-dates-depart-icon,\n .mewtwo-widget--")),e.appendChild(C),e.appendChild(document.createTextNode(" .mewtwo-flights-dates-return-icon ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D\\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\\'%20viewBox%3D\\'0%200%2015%2017\\'%3E%3Cpath%20fill%3D\\'%23")),e.appendChild(v),e.appendChild(document.createTextNode("\\'%20d%3D\\'M0%205v10c0%201.1.9%202%202%202h11c1.1%200%202-.9%202-2V5H0zm5%2010H2v-2h3v2zm0-3H2v-2h3v2zm0-3H2V7h3v2zm4%206H6v-2h3v2zm0-3H6v-2h3v2zm0-3H6V7h3v2zm4%206h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3V7h3v2zM13%202h-1V1c0-.6-.4-1-1-1h-1c-.6%200-1%20.4-1%201v1H6V1c0-.6-.4-1-1-1H4c-.6%200-1%20.4-1%201v1H2C.9%202%200%202.9%200%204h15c0-1.1-.9-2-2-2z\\'%2F%3E%3C%2Fsvg%3E\") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(x),e.appendChild(document.createTextNode(" .mewtwo-flights-dates-return-iconx ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ESlice%201%3C%2Ftitle%3E%3Cpath%20d%3D%22M98.17%2089.33L58.837%2050l39.33-39.33c2.442-2.442%202.442-6.397%200-8.84-2.438-2.44-6.395-2.44-8.837%200L50%2041.163%2010.67%201.832C8.23-.61%204.272-.61%201.83%201.83c-2.44%202.436-2.44%206.395%200%208.837L41.163%2050%201.832%2089.33c-2.442%202.442-2.442%206.397%200%208.84%202.44%202.44%206.395%202.44%208.837%200L50%2058.837l39.33%2039.33c2.442%202.442%206.4%202.442%208.84%200%202.44-2.44%202.44-6.395%200-8.837z%22%20fill%3D%22%23')),e.appendChild(y),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(k),e.appendChild(document.createTextNode(" .mewtwo-flights-dates-return-iconx:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" opacity: 0.7;\n }\n .mewtwo-widget--")),e.appendChild(T),e.appendChild(document.createTextNode(' .mewtwo-flights-container input[type="text"],\n .mewtwo-widget--')),e.appendChild(N),e.appendChild(document.createTextNode(" .mewtwo-flights-trip_class-wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border-color: ")),e.appendChild(D),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(E),e.appendChild(document.createTextNode(" .mewtwo-flights-trip_class-wrapper:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%206.1%22%3E%3Cpath%20fill%3D%22%23')),e.appendChild(A),e.appendChild(document.createTextNode('%22%20d%3D%22M10%201.1L8.9%200%205%203.9%201.1%200%200%201.1l5%205%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(F),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-spinner div ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(M),e.appendChild(document.createTextNode(" !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={handle:function(e){t.textContent=e,s.textContent=e,a.textContent=e,d.textContent=e,l.textContent=e,u.textContent=e,_.textContent=e,g.textContent=e,b.textContent=e,C.textContent=e,x.textContent=e,k.textContent=e,T.textContent=e,N.textContent=e,E.textContent=e,F.textContent=e},color_scheme:function(e){n.textContent=e.background,o.textContent=e.border,c.textContent=e.text,p.textContent=e.button,h.textContent=e.button_text,m.textContent=e.button_hover,f.textContent=e.multi_icon,w.textContent=e.icon,v.textContent=e.icon,y.textContent=e.icon,D.textContent=e.input_border,A.textContent=e.icon,M.textContent=e.background},border_radius:function(e){r.textContent=e}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.color_scheme&&this.__update__.color_scheme(e.color_scheme),void 0!==e.border_radius&&this.__update__.border_radius(e.border_radius)},t.exports=o},{monkberry:38}],7:[function(e,t,n){function o(){a.call(this);var e=this,t=document.createElement("section"),n=document.createElement("div"),o=document.createComment("if"),d={},c=document.createElement("form"),l=document.createElement("div"),p=document.createElement("input"),h=document.createComment("for"),u=new a.Map,m=document.createElement("div"),_=document.createElement("div"),f=document.createElement("div"),g=document.createElement("input"),w=document.createElement("div"),b=document.createElement("div"),C=document.createTextNode(""),v=document.createElement("div"),x=document.createTextNode(""),y=document.createElement("div"),k=document.createElement("div"),T=document.createElement("button"),N=document.createElement("input"),D=document.createElement("input"),E=document.createElement("input"),A=document.createElement("input"),F=document.createElement("input"),M=document.createElement("input"),S=document.createElement("input"),L=document.createComment("if"),z={},O=document.createElement("input"),P=document.createElement("input");p.setAttribute("type","hidden"),p.setAttribute("name","marker"),l.appendChild(p),l.appendChild(h),m.setAttribute("role","flights-multi-segments"),m.setAttribute("class","mewtwo-flights-multi-segments mewtwo-flights-multi-segments--one"),_.appendChild(document.createTextNode(" Add another flight ")),_.setAttribute("class","mewtwo-flights-multi-add_segment"),_.setAttribute("role","flights-multi-add-segment"),g.setAttribute("type","hidden"),g.setAttribute("placeholder","Passengers/Class"),g.setAttribute("class","mewtwo-flights-multi-trip_class__passengers"),g.setAttribute("role","passengers_amount"),b.appendChild(C),b.setAttribute("class","mewtwo-flights-multi-trip_class__passengers"),b.setAttribute("role","passengers_amount"),v.appendChild(x),v.setAttribute("class","mewtwo-flights-multi-trip_class__class"),w.appendChild(b),w.appendChild(v),w.setAttribute("class","mewtwo-flights-multi-trip_class-wrapper"),f.appendChild(g),f.appendChild(w),f.setAttribute("class","mewtwo-flights-multi-trip_class"),f.setAttribute("role","passengers"),y.appendChild(document.createTextNode("Back to simple route")),y.setAttribute("role","show_flights"),y.setAttribute("class","mewtwo-flights-multi-link_to_simple"),T.appendChild(document.createTextNode("Search")),T.setAttribute("role","flights_submit"),T.setAttribute("type","submit"),k.appendChild(T),k.setAttribute("class","mewtwo-flights-multi-submit_button"),N.setAttribute("type","hidden"),N.setAttribute("name","with_request"),N.value="true",D.setAttribute("type","hidden"),D.setAttribute("name","adults"),E.setAttribute("type","hidden"),E.setAttribute("name","children"),A.setAttribute("type","hidden"),A.setAttribute("name","infants"),F.setAttribute("type","hidden"),F.setAttribute("name","trip_class"),M.setAttribute("type","hidden"),M.setAttribute("name","locale"),S.setAttribute("type","hidden"),S.setAttribute("name","one_way"),O.setAttribute("type","hidden"),O.setAttribute("name","ct_guests"),O.id="flights-multi-ct-guests-",P.setAttribute("type","hidden"),P.setAttribute("name","ct_rooms"),P.value="1",P.id="flights-multi-ct-rooms-",c.appendChild(l),c.appendChild(m),c.appendChild(_),c.appendChild(f),c.appendChild(y),c.appendChild(k),c.appendChild(N),c.appendChild(D),c.appendChild(E),c.appendChild(A),c.appendChild(F),c.appendChild(M),c.appendChild(S),c.appendChild(L),c.appendChild(O),c.appendChild(P),c.setAttribute("accept-charset","utf-8"),c.id="flights-multi-form-",n.appendChild(o),n.appendChild(c),n.setAttribute("class","mewtwo-flights-multi-container"),n.setAttribute("role","flights"),t.appendChild(n),t.setAttribute("class","mewtwo-flights-multi mewtwo-flights-multi--virgin"),this.__update__={header:function(t){a.cond(e,o,d,i,t)},marker:function(e){p.value=e},additional_params:function(t){a.loop(e,h,u,r,t)},passengersTotal:function(e){C.textContent=e,O.value=e},trip_class_text:function(e){x.textContent=e},handle:function(e){f.setAttribute("data-modal-modifier",e),O.id="flights-multi-ct-guests-"+e,P.id="flights-multi-ct-rooms-"+e,c.id="flights-multi-form-"+e},passengers:function(e){D.value=e.adults,E.value=e.children,A.value=e.infants},trip_class:function(e){F.value=e},locale:function(e){M.value=e},one_way:function(e){S.value=e},force_currency:function(t){a.cond(e,L,z,s,t)},host:function(e){c.setAttribute("action",e)},search_target:function(e){c.setAttribute("target",e)}},this.onUpdate=function(e){d.ref&&d.ref.update(e),u.forEach(function(e){e.update(e.__state__)}),z.ref&&z.ref.update(e)},this.nodes=[t]}function i(){a.call(this);var e=document.createElement("header"),t=document.createElement("a"),n=document.createElement("a");t.setAttribute("href","//www.jetradar.com/?marker="),t.setAttribute("class","mewtwo-flights-multi-header__link_logo"),t.setAttribute("target","_blank"),t.setAttribute("role","logo"),n.appendChild(document.createTextNode(" Cheap flights and airline tickets ")),n.setAttribute("href","//www.jetradar.com/?marker="),n.setAttribute("class","mewtwo-flights-multi-header__link"),n.setAttribute("target","_blank"),n.setAttribute("role","logo"),e.appendChild(t),e.appendChild(n),e.setAttribute("class","mewtwo-flights-multi-header "),this.__update__={marker:function(e){t.setAttribute("href","//www.jetradar.com/?marker="+e),n.setAttribute("href","//www.jetradar.com/?marker="+e)},header:function(t){e.setAttribute("class","mewtwo-flights-multi-header "+(t.modifiers.locale+(" "+t.modifiers.brightness)))}},this.nodes=[e]}function r(){a.call(this),this.__state__={};var e=document.createElement("input");e.setAttribute("type","hidden"),this.__update__={name:function(t){e.setAttribute("name",t)},value:function(t){e.value=t}},this.nodes=[e]}function s(){a.call(this);var e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","currency"),this.__update__={currency:function(t){e.value=t}},this.nodes=[e]}var a=e("monkberry");o.prototype=Object.create(a.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.passengers&&this.__update__.passengers(e.passengers),void 0!==e.header&&this.__update__.header(e.header),void 0!==e.additional_params&&this.__update__.additional_params(e.additional_params),void 0!==e.passengersTotal&&this.__update__.passengersTotal(e.passengersTotal),void 0!==e.trip_class_text&&this.__update__.trip_class_text(e.trip_class_text),void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.marker&&this.__update__.marker(e.marker),void 0!==e.trip_class&&this.__update__.trip_class(e.trip_class),void 0!==e.locale&&this.__update__.locale(e.locale),void 0!==e.one_way&&this.__update__.one_way(e.one_way),void 0!==e.force_currency&&this.__update__.force_currency(e.force_currency),void 0!==e.host&&this.__update__.host(e.host),void 0!==e.search_target&&this.__update__.search_target(e.search_target),this.onUpdate(e)},i.prototype=Object.create(a.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.marker&&this.__update__.marker(e.marker),void 0!==e.header&&this.__update__.header(e.header)},r.prototype=Object.create(a.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.name&&this.__update__.name(e.name),void 0!==e.value&&this.__update__.value(e.value)},s.prototype=Object.create(a.prototype),s.prototype.constructor=s,s.pool=[],s.prototype.update=function(e){void 0!==e.currency&&this.__update__.currency(e.currency)},t.exports=o},{monkberry:38}],8:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createTextNode(""),k=document.createTextNode(""),T=document.createTextNode(""),N=document.createTextNode(""),D=document.createTextNode(""),E=document.createTextNode(""),A=document.createTextNode(""),F=document.createTextNode(""),M=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-widget--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-flights-multi ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n border-color: ")),e.appendChild(o),e.appendChild(document.createTextNode(" !important;\n border-radius: ")),e.appendChild(r),e.appendChild(document.createTextNode("px !important ;\n }\n .mewtwo-widget--")),e.appendChild(s),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-header__link,\n .mewtwo-widget--")),e.appendChild(a),e.appendChild(document.createTextNode(" .mewtwo-flights-multi label,\n .mewtwo-widget--")),e.appendChild(d),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-add_segment,\n .mewtwo-widget--")),e.appendChild(c),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-link_to_simple ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" color: ")),e.appendChild(l),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(p),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-add_segment ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border-color: ")),e.appendChild(h),e.appendChild(document.createTextNode(" !important;\n color: ")),e.appendChild(u),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(m),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-link_to_simple:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2215%22%20height%3D%2215%22%20viewBox%3D%220%200%2015%2015%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ECombined%20Shape%3C%2Ftitle%3E%3Cpath%20d%3D%22M.654%2010.568C.234%209.63%200%208.593%200%207.5%200%203.358%203.358%200%207.5%200c.58%200%201.143.064%201.685.19-.468.187-.87.503-1.165.902-.172-.014-.345-.02-.52-.02-3.55%200-6.43%202.877-6.43%206.428%200%20.848.165%201.658.464%202.4.347-.165.735-.257%201.145-.257%201.478%200%202.677%201.2%202.677%202.678%200%201.48-1.2%202.68-2.678%202.68C1.2%2015%200%2013.8%200%2012.32c0-.67.246-1.282.654-1.752zm13.692-6.135c.42.936.654%201.974.654%203.067%200%204.142-3.358%207.5-7.5%207.5-.514%200-1.017-.05-1.502-.15.196-.302.333-.647.394-1.018.36.064.73.097%201.108.097%203.55%200%206.43-2.88%206.43-6.43%200-.85-.166-1.66-.464-2.4-.347.165-.735.257-1.145.257-1.478%200-2.677-1.2-2.677-2.678%200-1.48%201.2-2.68%202.678-2.68C13.8%200%2015%201.2%2015%202.68c0%20.67-.247%201.283-.654%201.753z%22%20fill%3D%22%23')), e.appendChild(_),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(f),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-segment-remove ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ESlice%201%3C%2Ftitle%3E%3Cpath%20d%3D%22M98.17%2089.33L58.837%2050l39.33-39.33c2.442-2.442%202.442-6.397%200-8.84-2.438-2.44-6.395-2.44-8.837%200L50%2041.163%2010.67%201.832C8.23-.61%204.272-.61%201.83%201.83c-2.44%202.436-2.44%206.395%200%208.837L41.163%2050%201.832%2089.33c-2.442%202.442-2.442%206.397%200%208.84%202.44%202.44%206.395%202.44%208.837%200L50%2058.837l39.33%2039.33c2.442%202.442%206.4%202.442%208.84%200%202.44-2.44%202.44-6.395%200-8.837z%22%20fill%3D%22%23')),e.appendChild(g),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-widget--')),e.appendChild(w),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-submit_button button ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(b),e.appendChild(document.createTextNode(" !important;\n color: ")),e.appendChild(C),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(v),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-submit_button button:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(x),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(y),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-segment-depart-icon ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D\\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\\'%20viewBox%3D\\'0%200%2015%2017\\'%3E%3Cpath%20fill%3D\\'%23")),e.appendChild(k),e.appendChild(document.createTextNode("\\'%20d%3D\\'M0%205v10c0%201.1.9%202%202%202h11c1.1%200%202-.9%202-2V5H0zm5%2010H2v-2h3v2zm0-3H2v-2h3v2zm0-3H2V7h3v2zm4%206H6v-2h3v2zm0-3H6v-2h3v2zm0-3H6V7h3v2zm4%206h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3V7h3v2zM13%202h-1V1c0-.6-.4-1-1-1h-1c-.6%200-1%20.4-1%201v1H6V1c0-.6-.4-1-1-1H4c-.6%200-1%20.4-1%201v1H2C.9%202%200%202.9%200%204h15c0-1.1-.9-2-2-2z\\'%2F%3E%3C%2Fsvg%3E\") !important;\n }\n\n .mewtwo-widget--")),e.appendChild(T),e.appendChild(document.createTextNode(' .mewtwo-flights-multi-container input[type="text"],\n .mewtwo-widget--')),e.appendChild(N),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-trip_class-wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border-color: ")),e.appendChild(D),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(E),e.appendChild(document.createTextNode(" .mewtwo-flights-multi-trip_class-wrapper:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%206.1%22%3E%3Cpath%20fill%3D%22%23')),e.appendChild(A),e.appendChild(document.createTextNode('%22%20d%3D%22M10%201.1L8.9%200%205%203.9%201.1%200%200%201.1l5%205%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),e.appendChild(F),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-spinner div ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(M),e.appendChild(document.createTextNode(" !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={handle:function(e){t.textContent=e,s.textContent=e,a.textContent=e,d.textContent=e,c.textContent=e,p.textContent=e,m.textContent=e,f.textContent=e,w.textContent=e,v.textContent=e,y.textContent=e,T.textContent=e,N.textContent=e,E.textContent=e,F.textContent=e},color_scheme:function(e){n.textContent=e.background,o.textContent=e.border,l.textContent=e.text,h.textContent=e.text,u.textContent=e.text,_.textContent=e.multi_icon,g.textContent=e.text.substr(1),b.textContent=e.button,C.textContent=e.button_text,x.textContent=e.button_hover,k.textContent=e.icon,D.textContent=e.input_border,A.textContent=e.icon,M.textContent=e.background},border_radius:function(e){r.textContent=e}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.color_scheme&&this.__update__.color_scheme(e.color_scheme),void 0!==e.border_radius&&this.__update__.border_radius(e.border_radius)},t.exports=o},{monkberry:38}],9:[function(e,t,n){function o(e){return e&&e.__esModule?e["default"]:e}function i(){r.call(this),this.__cache__={};var e=this,t=document.createElement("div"),n=document.createComment("PlaceInput"),o={},i=document.createComment("PlaceInput"),d={},c=document.createComment("DatepickerInput"),l={},p=document.createElement("span");p.setAttribute("class","mewtwo-flights-multi-segment-remove"),p.setAttribute("role","remove_segment"),t.appendChild(n),t.appendChild(i),t.appendChild(c),t.appendChild(p),t.setAttribute("class","mewtwo-flights-multi-segment"),this.__update__={handle_origin:function(t,i){r.insert(e,n,o,s,{prefix:"flights-multi-segment-origin",handle:t,placeholder:"Origin",label:"Origin",place:i,name:"origin"})},destination_handle:function(t,n){r.insert(e,i,d,s,{prefix:"flights-multi-segment-destination",handle:n,placeholder:"Destination",label:"Destination",place:t,name:"destination"})},date_dateFocused_handle:function(t,n,o){r.insert(e,c,l,a,{prefix:"flights-multi-segment-depart",date:t,placeholder:"Departure date",label:"Departure date",handle:o,name:"depart_date",modifiers:n,clear:!1,max_popup_height:"246",min_popup_height:"184"})},id:function(e){p.setAttribute("data-id",e)}},this.nodes=[t]}var r=e("monkberry"),s=o(e("components/autocomplete/place_input.monk")),a=o(e("blocks/shared/datepicker_input.monk"));i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.handle&&(this.__cache__.handle=e.handle),void 0!==e.origin&&(this.__cache__.origin=e.origin),void 0!==e.destination&&(this.__cache__.destination=e.destination),void 0!==e.date&&(this.__cache__.date=e.date),void 0!==e.dateFocused&&(this.__cache__.dateFocused=e.dateFocused),void 0!==e.id&&this.__update__.id(e.id),void 0!==this.__cache__.handle&&void 0!==this.__cache__.origin&&this.__update__.handle_origin(this.__cache__.handle,this.__cache__.origin),void 0!==this.__cache__.destination&&void 0!==this.__cache__.handle&&this.__update__.destination_handle(this.__cache__.destination,this.__cache__.handle),void 0!==this.__cache__.date&&void 0!==this.__cache__.dateFocused&&void 0!==this.__cache__.handle&&this.__update__.date_dateFocused_handle(this.__cache__.date,this.__cache__.dateFocused,this.__cache__.handle)},t.exports=i},{"blocks/shared/datepicker_input.monk":16,"components/autocomplete/place_input.monk":21,monkberry:38}],10:[function(e,t,n){function o(e){return e&&e.__esModule?e["default"]:e}function i(){s.call(this);var e=this,t=document.createElement("div"),n=document.createComment("Header"),o={},i=document.createElement("div"),c=document.createElement("div"),l=document.createElement("div"),p=document.createComment("Counter"),h={},u=document.createElement("div"),m=document.createElement("div"),_=document.createElement("span"),f=document.createElement("span"),g=document.createComment("Counter"),w={},b=document.createElement("div"),C=new s.Map,v=document.createElement("div"),x=document.createElement("span"),y=document.createElement("span");l.appendChild(document.createTextNode("Adults")),l.setAttribute("class","mewtwo-guests-ages-type__title_adult"),c.appendChild(l),c.setAttribute("class","mewtwo-guests-ages-type"),i.appendChild(c),i.appendChild(p),i.setAttribute("class","mewtwo-guests-ages"),_.appendChild(document.createTextNode("Children")),_.setAttribute("class","mewtwo-guests-ages-type__title_child"),f.appendChild(document.createTextNode("to 17 years")),f.setAttribute("class","mewtwo-guests-ages-type__details"),m.appendChild(_),m.appendChild(f),m.setAttribute("class","mewtwo-guests-ages-type"),u.appendChild(m),u.appendChild(g),u.setAttribute("class","mewtwo-guests-ages"),b.setAttribute("class","mewtwo-guests-ages-back"),x.appendChild(document.createTextNode("Ok")),x.setAttribute("class","mewtwo-guests-success_button__text mewtwo-popup_apply_button--desktop"),y.appendChild(document.createTextNode("Apply")),y.setAttribute("class","mewtwo-guests-success_button__text mewtwo-popup_apply_button--mobile"),v.appendChild(x),v.appendChild(y),v.setAttribute("class","mewtwo-guests-success_button mewtwo-popup_apply_button"),v.setAttribute("role","success"),t.appendChild(n),t.appendChild(i),t.appendChild(u),t.appendChild(b),t.appendChild(v),t.setAttribute("class","mewtwo-guests"),t.setAttribute("role","guests_modal"),this.__update__={adults:function(t){s.insert(e,p,h,d,{role:"adults",item:t})},children:function(t){s.insert(e,g,w,d,{role:"children",item:t})},children_age:function(t){s.loop(e,b,C,r,t)}},this.onRender=function(){s.insert(e,n,o,a,{title:"Guests"})},this.onUpdate=function(e){C.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function r(){s.call(this),this.__cache__={},this.__state__={};var e=this,t=document.createElement("div"),n=document.createElement("div"),o=document.createElement("div"),i=document.createElement("div"),r=document.createComment("Counter"),a={};i.appendChild(document.createTextNode("Age")),i.setAttribute("class","mewtwo-guests-ages-type__title_adult"),o.appendChild(i),o.setAttribute("class","mewtwo-guests-ages-type"),n.appendChild(o),n.appendChild(r),n.setAttribute("class","mewtwo-guests-ages mewtwo-guests-ages--detailed"),t.appendChild(n),t.setAttribute("class","mewtwo-guests-ages-wrapper"),this.__update__={age_name:function(t,n){s.insert(e,r,a,d,{role:"children_age_"+n,item:t})}},this.nodes=[t]}var s=e("monkberry"),a=o(e("../shared/popup_header.monk")),d=o(e("../shared/popup_counter.monk"));i.prototype=Object.create(s.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.adults&&this.__update__.adults(e.adults),void 0!==e.children&&this.__update__.children(e.children),void 0!==e.children_age&&this.__update__.children_age(e.children_age),this.onUpdate(e)},r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.age&&(this.__cache__.age=e.age),void 0!==e.name&&(this.__cache__.name=e.name),void 0!==this.__cache__.age&&void 0!==this.__cache__.name&&this.__update__.age_name(this.__cache__.age,this.__cache__.name)},t.exports=i},{"../shared/popup_counter.monk":26,"../shared/popup_header.monk":27,monkberry:38}],11:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-modal--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-guests .mewtwo-popup-ages-counter__plus ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(n),e.appendChild(document.createTextNode("%22%20d%3D%22M0%206h14v2H0z%22%2F%3E%3Cpath%20fill%3D%22%23")),e.appendChild(o),e.appendChild(document.createTextNode("%22%20d%3D%22M6%200h2v14H6z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(r),e.appendChild(document.createTextNode(" .mewtwo-guests .mewtwo-popup-ages-counter__plus:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(s),e.appendChild(document.createTextNode("%22%20d%3D%22M0%206h14v2H0z%22%2F%3E%3Cpath%20fill%3D%22%23")),e.appendChild(a),e.appendChild(document.createTextNode("%22%20d%3D%22M6%200h2v14H6z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(d),e.appendChild(document.createTextNode(" .mewtwo-guests .mewtwo-popup-ages-counter__minus ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%202%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(c),e.appendChild(document.createTextNode("%22%20d%3D%22M0%200h14v2H0z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(l),e.appendChild(document.createTextNode(" .mewtwo-guests .mewtwo-popup-ages-counter__minus:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%202%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(p),e.appendChild(document.createTextNode("%22%20d%3D%22M0%200h14v2H0z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(h),e.appendChild(document.createTextNode(" .mewtwo-guests .mewtwo-guests-success_button .mewtwo-popup_apply_button--mobile ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: ")),e.appendChild(u),e.appendChild(document.createTextNode(" !important;\n color: ")),e.appendChild(m),e.appendChild(document.createTextNode(" !important;\n }\n\n\n .mewtwo-modal--")),e.appendChild(_),e.appendChild(document.createTextNode(" .mewtwo-guests .mewtwo-popup_header ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: #")),e.appendChild(f),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),e.appendChild(g),e.appendChild(document.createTextNode(" .mewtwo-hotels-guests .mewtwo-hotels-guests__text ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border-color: ")),e.appendChild(w),e.appendChild(document.createTextNode(" !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={handle:function(e){t.textContent=e,r.textContent=e,d.textContent=e,l.textContent=e,h.textContent=e,_.textContent=e,g.textContent=e},color_scheme:function(e){n.textContent=e.icon,o.textContent=e.icon,s.textContent=e.icon,a.textContent=e.icon,c.textContent=e.icon,p.textContent=e.icon,u.textContent=e.button,m.textContent=e.button_text,f.textContent=e.icon,w.textContent=e.input_border}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.color_scheme&&this.__update__.color_scheme(e.color_scheme)},t.exports=o},{monkberry:38}],12:[function(e,t,n){function o(e){return e&&e.__esModule?e["default"]:e}function i(){c.call(this),this.__cache__={};var e=this,t=document.createElement("section"),n=document.createElement("div"),o=document.createComment("if"),i={},p=document.createElement("form"),h=document.createElement("div"),u=new c.Map,m=document.createElement("div"),_=document.createElement("input"),f=document.createElement("div"),g=document.createElement("span"),w=document.createTextNode(""),b=document.createElement("span"),C=document.createTextNode(""),v=document.createElement("div"),x=document.createElement("div"),y=document.createComment("DatepickerInput"),k={},T=document.createComment("DatepickerInput"),N={},D=document.createElement("div"),E=document.createElement("input"),A=document.createElement("div"),F=document.createTextNode(""),M=document.createElement("div"),S=document.createElement("button"),L=document.createElement("input"),z=document.createElement("input"),O=document.createElement("input"),P=document.createElement("input"),I=document.createElement("input"),R=document.createElement("input"),j=document.createComment("if"),B={},q=document.createComment("if"),H={};_.setAttribute("type","text"),_.setAttribute("role","place"),_.setAttribute("name","destination"),_.setAttribute("placeholder","City or hotel name"),_.setAttribute("autocomplete","off"),_.setAttribute("required",""),_.id="hotels-destination-",g.appendChild(w),g.setAttribute("class","mewtwo-hotels-city-location__pseudo"),b.appendChild(C),b.setAttribute("class","mewtwo-hotels-city-location__name"),f.appendChild(g),f.appendChild(b),f.setAttribute("class","mewtwo-hotels-city-location"),f.setAttribute("role","place_details"),v.setAttribute("class","mewtwo-hotels-city-icon"),m.appendChild(_),m.appendChild(f),m.appendChild(v),m.setAttribute("class","mewtwo-hotels-city"),x.appendChild(y),x.appendChild(T),x.setAttribute("class","mewtwo-hotels-dates"),E.setAttribute("type","hidden"),E.setAttribute("placeholder","Guests"),E.setAttribute("class","mewtwo-hotels-guests_input"),E.id="hotels-guests-",A.appendChild(F),A.setAttribute("class","mewtwo-hotels-guests__text mewtwo-like_input"),D.appendChild(E),D.appendChild(A),D.setAttribute("role","guests"),D.setAttribute("class","mewtwo-hotels-guests"),S.appendChild(document.createTextNode("Search")),S.setAttribute("role","hotels_submit"),S.setAttribute("type","submit"),M.appendChild(S),M.setAttribute("class","mewtwo-hotels-submit_button"),L.setAttribute("type","hidden"),L.setAttribute("name","marker"),z.setAttribute("type","hidden"),z.setAttribute("name","children"),O.setAttribute("type","hidden"),O.setAttribute("name","adults"),P.setAttribute("type","hidden"),P.setAttribute("name","language"),P.value="en",I.setAttribute("type","hidden"),I.setAttribute("name","currency"),R.setAttribute("type","hidden"),R.id="hotels-rooms-",R.value="1",p.appendChild(h),p.appendChild(m),p.appendChild(x),p.appendChild(D),p.appendChild(M),p.appendChild(L),p.appendChild(z),p.appendChild(O),p.appendChild(P),p.appendChild(I),p.appendChild(R),p.appendChild(j),p.appendChild(q),p.setAttribute("role","hotels-form"),p.setAttribute("accept-charset","utf-8"),p.id="hotels-form-",n.appendChild(o),n.appendChild(p),n.setAttribute("class","mewtwo-hotels-container"),n.setAttribute("role","hotels"),t.appendChild(n),t.setAttribute("class","mewtwo-hotels"),this.__update__={header:function(t){c.cond(e,o,i,r,t)},additional_params:function(t){c.loop(e,h,u,s,t)},place:function(t){_.value=t.name,w.textContent=t.name,C.textContent=e.filters.commaFirst(t.location),c.cond(e,j,B,a,t.hotelId),c.cond(e,q,H,d,t.cityId)},handle:function(e){_.setAttribute("data-modal-modifier",e),_.id="hotels-destination-"+e,E.id="hotels-guests-"+e,D.setAttribute("data-modal-modifier",e),R.id="hotels-rooms-"+e,p.id="hotels-form-"+e},firstDate_firstDateFocused_handle:function(t,n,o){c.insert(e,y,k,l,{prefix:"hotels-dates-checkin",date:t,placeholder:"Check-In",label:"Check-In",handle:o,name:"checkIn",linked:"hotels-dates-checkin-prepop-"+o,modifiers:n,clear:!1,max_popup_height:"245",min_popup_height:"184"})},handle_secondDate_secondDateFocused_secondDateModifier:function(t,n,o,i){c.insert(e,T,N,l,{prefix:"hotels-dates-checkout",date:n,placeholder:"Check-Out",label:"Check-Out",handle:t,name:"checkOut",linked:"hotels-dates-checkin-prepop-"+t,clear:!0,modifiers:i+" "+o,max_popup_height:"245",min_popup_height:"184"})},guests:function(e){E.value=e,F.textContent=e},marker:function(e){L.value=e},children:function(e){z.value=e},adults:function(e){O.value=e},currency:function(e){I.value=e},host:function(e){p.setAttribute("action",e)},search_target:function(e){p.setAttribute("target",e)}},this.onUpdate=function(e){i.ref&&i.ref.update(e),u.forEach(function(e){e.update(e.__state__)}),B.ref&&B.ref.update(e),H.ref&&H.ref.update(e)},this.nodes=[t]}function r(){c.call(this);var e=document.createElement("header"),t=document.createElement("a"),n=document.createElement("a");t.setAttribute("href","https://indior.tours/?marker=&language=en"),t.setAttribute("class","mewtwo-hotels-header__link_logo"),t.setAttribute("target","_blank"),t.setAttribute("role","logo"),n.appendChild(document.createTextNode(" Search and compare hotel prices ")),n.setAttribute("href","https://indior.tours/?marker=&language=en"),n.setAttribute("class","mewtwo-hotels-header__link"),n.setAttribute("target","_blank"),n.setAttribute("role","logo"),e.appendChild(t),e.appendChild(n),e.setAttribute("class","mewtwo-hotels-header "),this.__update__={marker:function(e){t.setAttribute("href","https://indior.tours/?marker="+(e+"&language=en")),n.setAttribute("href","https://indior.tours/?marker="+(e+"&language=en"))},header:function(t){e.setAttribute("class","mewtwo-hotels-header "+t.modifiers.brightness)}},this.nodes=[e]}function s(){c.call(this),this.__state__={};var e=document.createElement("input");e.setAttribute("type","hidden"),this.__update__={name:function(t){e.setAttribute("name",t)},value:function(t){e.value=t}},this.nodes=[e]}function a(){c.call(this);var e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","hotelId"),this.__update__={place:function(t){e.value=t.hotelId}},this.nodes=[e]}function d(){c.call(this);var e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","cityId"),this.__update__={place:function(t){e.value=t.cityId}},this.nodes=[e]}var c=e("monkberry"),l=o(e("blocks/shared/datepicker_input.monk"));i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.secondDateFocused&&(this.__cache__.secondDateFocused=e.secondDateFocused),void 0!==e.header&&this.__update__.header(e.header),void 0!==e.place&&this.__update__.place(e.place),void 0!==e.handle&&(this.__cache__.handle=e.handle,this.__update__.handle(e.handle)),void 0!==e.host&&this.__update__.host(e.host),void 0!==e.firstDate&&(this.__cache__.firstDate=e.firstDate),void 0!==e.firstDateFocused&&(this.__cache__.firstDateFocused=e.firstDateFocused),void 0!==e.currency&&this.__update__.currency(e.currency),void 0!==e.secondDate&&(this.__cache__.secondDate=e.secondDate),void 0!==e.additional_params&&this.__update__.additional_params(e.additional_params),void 0!==e.secondDateModifier&&(this.__cache__.secondDateModifier=e.secondDateModifier),void 0!==e.guests&&this.__update__.guests(e.guests),void 0!==e.marker&&this.__update__.marker(e.marker),void 0!==e.children&&this.__update__.children(e.children),void 0!==e.adults&&this.__update__.adults(e.adults),void 0!==e.search_target&&this.__update__.search_target(e.search_target),void 0!==this.__cache__.firstDate&&void 0!==this.__cache__.firstDateFocused&&void 0!==this.__cache__.handle&&this.__update__.firstDate_firstDateFocused_handle(this.__cache__.firstDate,this.__cache__.firstDateFocused,this.__cache__.handle),void 0!==this.__cache__.handle&&void 0!==this.__cache__.secondDate&&void 0!==this.__cache__.secondDateFocused&&void 0!==this.__cache__.secondDateModifier&&this.__update__.handle_secondDate_secondDateFocused_secondDateModifier(this.__cache__.handle,this.__cache__.secondDate,this.__cache__.secondDateFocused,this.__cache__.secondDateModifier),this.onUpdate(e)},r.prototype=Object.create(c.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.marker&&this.__update__.marker(e.marker),void 0!==e.header&&this.__update__.header(e.header)},s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.pool=[],s.prototype.update=function(e){void 0!==e.name&&this.__update__.name(e.name),void 0!==e.value&&this.__update__.value(e.value)},a.prototype=Object.create(c.prototype),a.prototype.constructor=a,a.pool=[],a.prototype.update=function(e){void 0!==e.place&&this.__update__.place(e.place)},d.prototype=Object.create(c.prototype),d.prototype.constructor=d,d.pool=[],d.prototype.update=function(e){void 0!==e.place&&this.__update__.place(e.place)},t.exports=i},{"blocks/shared/datepicker_input.monk":16,monkberry:38}],13:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createTextNode(""),k=document.createTextNode(""),T=document.createTextNode(""),N=document.createTextNode(""),D=document.createTextNode(""),E=document.createTextNode(""),A=document.createTextNode(""),F=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-widget--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-hotels ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n border-color: ")),e.appendChild(o),e.appendChild(document.createTextNode(" !important;\n border-radius: ")),e.appendChild(r),e.appendChild(document.createTextNode("px !important;\n }\n .mewtwo-widget--")),e.appendChild(s),e.appendChild(document.createTextNode(" .mewtwo-hotels-header__link,\n .mewtwo-widget--")),e.appendChild(a),e.appendChild(document.createTextNode(" .mewtwo-hotels label ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" color: ")),e.appendChild(d),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(c),e.appendChild(document.createTextNode(" .mewtwo-hotels-submit_button button ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(l),e.appendChild(document.createTextNode(" !important;\n color: ")),e.appendChild(p),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(h),e.appendChild(document.createTextNode(" .mewtwo-hotels-submit_button button:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: ")),e.appendChild(u),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(m),e.appendChild(document.createTextNode(" .mewtwo-hotels-dates-checkin-icon,\n .mewtwo-widget--")),e.appendChild(_),e.appendChild(document.createTextNode(" .mewtwo-hotels-dates-checkout-icon ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D\\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\\'%20viewBox%3D\\'0%200%2015%2017\\'%3E%3Cpath%20fill%3D\\'%23")),e.appendChild(f),e.appendChild(document.createTextNode("\\'%20d%3D\\'M0%205v10c0%201.1.9%202%202%202h11c1.1%200%202-.9%202-2V5H0zm5%2010H2v-2h3v2zm0-3H2v-2h3v2zm0-3H2V7h3v2zm4%206H6v-2h3v2zm0-3H6v-2h3v2zm0-3H6V7h3v2zm4%206h-3v-2h3v2zm0-3h-3v-2h3v2zm0-3h-3V7h3v2zM13%202h-1V1c0-.6-.4-1-1-1h-1c-.6%200-1%20.4-1%201v1H6V1c0-.6-.4-1-1-1H4c-.6%200-1%20.4-1%201v1H2C.9%202%200%202.9%200%204h15c0-1.1-.9-2-2-2z\\'%2F%3E%3C%2Fsvg%3E\") !important;\n }\n .mewtwo-widget--")),e.appendChild(g),e.appendChild(document.createTextNode(" .mewtwo-hotels-city-icon ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D\\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\\'%20viewBox%3D\\'-534.7%20251%2074.1%2069.3\\'%3E%3Cg%20fill%3D\\'%23")),e.appendChild(w),e.appendChild(document.createTextNode("\\'%3E%3Cpath%20d%3D\\'M-477.8%20303.1c-4.7%200-9%201.9-12.1%205%203.3%202.2%204.9%206.3%203.8%2012.2h25.4c0-9.5-7.7-17.2-17.1-17.2zM-496.9%20309.5c-6%200-10.8%204.8-10.8%2010.8h21.6c0-6-4.8-10.8-10.8-10.8zM-470.5%20255.1v-4.3H-485v4.3h-9.3l.1%202v28.7l4.5%204.4v-30.4h5v38.4h4.5v-38.4h5v38.4h4.5v-38.4h5.3v41.6l4.7%204.1v-50.4\\'%2F%3E%3Cpath%20d%3D\\'M-493.6%20305.1l.4-.4c1.1-1.1%202.4-2.1%203.7-2.9v-3.6l-7.3-7.6H-516v29.6h3.7c0-8.5%207-15.5%2015.5-15.5%201%20.1%202.1.2%203.2.4zM-534.7%20279.1v41.1H-521.1v-41.1l-6.8-16.7-6.8%2016.7zm10.2%206.7c0%201.9-1.5%203.4-3.4%203.4s-3.4-1.5-3.4-3.4%201.5-3.4%203.4-3.4%203.4%201.5%203.4%203.4z\\'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\") !important;\n }\n .mewtwo-widget--")),e.appendChild(b),e.appendChild(document.createTextNode(' .mewtwo-hotels-container input[type="text"]')),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border-color: ")),e.appendChild(C),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),e.appendChild(v),e.appendChild(document.createTextNode(" .mewtwo-hotels-guests:after ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%206.1%22%3E%3Cpath%20fill%3D%22%23')),e.appendChild(x),e.appendChild(document.createTextNode('%22%20d%3D%22M10%201.1L8.9%200%205%203.9%201.1%200%200%201.1l5%205%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-modal--')),e.appendChild(y),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item--cities:first-child:before")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23')),e.appendChild(k),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M3.758%204.984c0%20.686.556%201.243%201.242%201.243.686%200%201.242-.557%201.242-1.243%200-.685-.556-1.242-1.242-1.242-.686%200-1.242.557-1.242%201.242z%22%2F%3E%3Cpath%20d%3D%22M9.66%204.44h-.45C8.957%202.553%207.48%201.064%205.6.795V.3c0-.165-.135-.3-.3-.3h-.6c-.165%200-.3.135-.3.3v.495C2.518%201.065%201.042%202.553.79%204.44H.3c-.165%200-.3.135-.3.3v.6c0%20.165.135.3.3.3h.5c.28%201.85%201.745%203.3%203.6%203.565V9.7c0%20.165.135.3.3.3h.6c.165%200%20.3-.135.3-.3v-.495C7.455%208.94%208.92%207.49%209.2%205.64h.46c.165%200%20.3-.135.3-.3v-.6c0-.165-.135-.3-.3-.3zM5.6%208.21c0-.165-.135-.3-.3-.3h-.6c-.165%200-.3.135-.3.3v.26c-1.452-.25-2.6-1.383-2.867-2.83h.257c.165%200%20.3-.135.3-.3v-.6c0-.165-.135-.3-.3-.3h-.265c.24-1.484%201.397-2.656%202.875-2.91v.26c0%20.165.135.3.3.3h.6c.165%200%20.3-.135.3-.3v-.26c1.478.254%202.636%201.426%202.875%202.91H8.17c-.165%200-.3.135-.3.3v.6c0%20.165.135.3.3.3h.297C8.2%207.087%207.052%208.22%205.6%208.47v-.26z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-modal--')), e.appendChild(T),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item--hotels:first-child:before,\n .mewtwo-modal--")),e.appendChild(N),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item--cities + .mewtwo-autocomplete-list-item--hotels:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23')),e.appendChild(D),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M5.313%200L0%202.51V10h10V3.812L5.312%202.04V0zm4.062%204.23v4.997h-.938v-5.35l.938.353zM4.687.965v8.262h-2.5V2.142l2.5-1.177zm-3.125%201.47v6.792H.625v-6.35l.938-.44zm6.25%201.207v5.585h-2.5V2.7l2.5.942z%22%2F%3E%3Cpath%20d%3D%22M2.9%202.66h1.2v.6H2.9v-.6zM2.9%204.34h1.2v.6H2.9v-.6zM2.9%206.04h1.2v.6H2.9v-.6zM2.9%207.72h1.2v.6H2.9v-.6zM6.1%204.34h1v.6h-1v-.6zM6.1%206.04h1v.6h-1v-.6zM6.1%207.72h1v.6h-1v-.6z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;\n background-position: 50% 40%;\n }\n\n .mewtwo-modal--')),e.appendChild(E),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item-info--active.mewtwo-autocomplete-list-item--cities:first-child:before")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M3.758%204.984c0%20.686.556%201.243%201.242%201.243.686%200%201.242-.557%201.242-1.243%200-.685-.556-1.242-1.242-1.242-.686%200-1.242.557-1.242%201.242z%22%2F%3E%3Cpath%20d%3D%22M9.66%204.44h-.45C8.957%202.553%207.48%201.064%205.6.795V.3c0-.165-.135-.3-.3-.3h-.6c-.165%200-.3.135-.3.3v.495C2.518%201.065%201.042%202.553.79%204.44H.3c-.165%200-.3.135-.3.3v.6c0%20.165.135.3.3.3h.5c.28%201.85%201.745%203.3%203.6%203.565V9.7c0%20.165.135.3.3.3h.6c.165%200%20.3-.135.3-.3v-.495C7.455%208.94%208.92%207.49%209.2%205.64h.46c.165%200%20.3-.135.3-.3v-.6c0-.165-.135-.3-.3-.3zM5.6%208.21c0-.165-.135-.3-.3-.3h-.6c-.165%200-.3.135-.3.3v.26c-1.452-.25-2.6-1.383-2.867-2.83h.257c.165%200%20.3-.135.3-.3v-.6c0-.165-.135-.3-.3-.3h-.265c.24-1.484%201.397-2.656%202.875-2.91v.26c0%20.165.135.3.3.3h.6c.165%200%20.3-.135.3-.3v-.26c1.478.254%202.636%201.426%202.875%202.91H8.17c-.165%200-.3.135-.3.3v.6c0%20.165.135.3.3.3h.297C8.2%207.087%207.052%208.22%205.6%208.47v-.26z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-modal--')),e.appendChild(A),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item-info--active.mewtwo-autocomplete-list-item--hotels:first-child:before,\n .mewtwo-modal--")),e.appendChild(F),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item--cities + .mewtwo-autocomplete-list-item-info--active.mewtwo-autocomplete-list-item--hotels:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M5.313%200L0%202.51V10h10V3.812L5.312%202.04V0zm4.062%204.23v4.997h-.938v-5.35l.938.353zM4.687.965v8.262h-2.5V2.142l2.5-1.177zm-3.125%201.47v6.792H.625v-6.35l.938-.44zm6.25%201.207v5.585h-2.5V2.7l2.5.942z%22%2F%3E%3Cpath%20d%3D%22M2.9%202.66h1.2v.6H2.9v-.6zM2.9%204.34h1.2v.6H2.9v-.6zM2.9%206.04h1.2v.6H2.9v-.6zM2.9%207.72h1.2v.6H2.9v-.6zM6.1%204.34h1v.6h-1v-.6zM6.1%206.04h1v.6h-1v-.6zM6.1%207.72h1v.6h-1v-.6z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;\n } ')),e.setAttribute("type","text/css"),this.__update__={handle:function(e){t.textContent=e,s.textContent=e,a.textContent=e,c.textContent=e,h.textContent=e,m.textContent=e,_.textContent=e,g.textContent=e,b.textContent=e,v.textContent=e,y.textContent=e,T.textContent=e,N.textContent=e,E.textContent=e,A.textContent=e,F.textContent=e},color_scheme:function(e){n.textContent=e.background,o.textContent=e.border,d.textContent=e.text,l.textContent=e.button,p.textContent=e.button_text,u.textContent=e.button_hover,f.textContent=e.icon,w.textContent=e.icon,C.textContent=e.input_border,x.textContent=e.icon,k.textContent=e.icon,D.textContent=e.icon},border_radius:function(e){r.textContent=e}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.color_scheme&&this.__update__.color_scheme(e.color_scheme),void 0!==e.border_radius&&this.__update__.border_radius(e.border_radius)},t.exports=o},{monkberry:38}],14:[function(e,t,n){function o(e){return e&&e.__esModule?e["default"]:e}function i(){r.call(this);var e=this,t=document.createElement("div"),n=document.createComment("Header"),o={},i=document.createElement("div"),d=document.createElement("div"),c=document.createElement("div"),l=document.createComment("Counter"),p={},h=document.createElement("div"),u=document.createElement("div"),m=document.createElement("span"),_=document.createElement("span"),f=document.createElement("span"),g=document.createComment("Counter"),w={},b=document.createElement("div"),C=document.createElement("div"),v=document.createElement("span"),x=document.createElement("span"),y=document.createElement("span"),k=document.createComment("Counter"),T={},N=document.createElement("div"),D=document.createElement("span"),E=document.createElement("label"),A=document.createElement("div"),F=document.createElement("input"),M=document.createElement("span"),S=document.createElement("span"),L=document.createElement("span"),z=document.createElement("div"),O=document.createElement("div"),P=document.createElement("div"),I=document.createElement("span"),R=document.createElement("span"),j=document.createElement("div");c.appendChild(document.createTextNode("Adults")),c.setAttribute("class","mewtwo-passengers-ages-type__title_adult"),d.appendChild(c),d.setAttribute("class","mewtwo-passengers-ages-type"),i.appendChild(d),i.appendChild(l),i.setAttribute("class","mewtwo-passengers-ages"),m.appendChild(document.createTextNode("Children")),m.setAttribute("class","mewtwo-passengers-ages-type__title_child"),_.appendChild(document.createTextNode("under 12 years")),_.setAttribute("class","mewtwo-passengers-ages-type__details mewtwo-passengers-ages-type__details--desktop"),f.appendChild(document.createTextNode("8 passengers max")),f.setAttribute("class","mewtwo-passengers-ages-type__details mewtwo-passengers-ages-type__details--mobile"),u.appendChild(m),u.appendChild(_),u.appendChild(f),u.setAttribute("class","mewtwo-passengers-ages-type"),h.appendChild(u),h.appendChild(g),h.setAttribute("class","mewtwo-passengers-ages"),v.appendChild(document.createTextNode("Infants")),v.setAttribute("class","mewtwo-passengers-ages-type__title_child"),x.appendChild(document.createTextNode("under 2 years")),x.setAttribute("class","mewtwo-passengers-ages-type__details mewtwo-passengers-ages-type__details--desktop"),y.appendChild(document.createTextNode("No seat required")),y.setAttribute("class","mewtwo-passengers-ages-type__details mewtwo-passengers-ages-type__details--mobile"),C.appendChild(v),C.appendChild(x),C.appendChild(y),C.setAttribute("class","mewtwo-passengers-ages-type"),b.appendChild(C),b.appendChild(k),b.setAttribute("class","mewtwo-passengers-ages"),D.appendChild(document.createTextNode("Class")),D.setAttribute("class","mewtwo-passengers-flight_type_wrapper-checkbox_label"),F.setAttribute("type","checkbox"),F.setAttribute("class","mewtwo-passengers-flight_type__checkbox"),F.id="flight_type__checkbox",F.setAttribute("role","business_checkbox"),M.setAttribute("class","mewtwo-custom_checkbox"),A.appendChild(F),A.appendChild(M),A.setAttribute("class","mewtwo-custom_checkbox_wrapper"),S.appendChild(document.createTextNode("Business class")),S.setAttribute("class","mewtwo-passengers-flight_type__label--text_narrow"),L.appendChild(document.createTextNode("Business class")),L.setAttribute("class","mewtwo-passengers-flight_type__label--text_wide"),E.appendChild(A),E.appendChild(S),E.appendChild(L),E.setAttribute("class","mewtwo-passengers-flight_type_wrapper-flight_type"),E.setAttribute("for","flight_type__checkbox"),N.appendChild(D),N.appendChild(E),N.setAttribute("class","mewtwo-passengers-flight_type_wrapper"),I.appendChild(document.createTextNode("Ok")),I.setAttribute("class","mewtwo-passengers-ready__button mewtwo-popup_apply_button--desktop"),R.appendChild(document.createTextNode("Apply")),R.setAttribute("class","mewtwo-passengers-ready__button mewtwo-popup_apply_button--mobile"),P.appendChild(I),P.appendChild(R),P.setAttribute("class","mewtwo-passengers-ready_button_wrapper-popups mewtwo-popup_apply_button"),P.setAttribute("role","ready_button"),O.appendChild(P),O.setAttribute("class","mewtwo-passengers-ready_button_wrapper"),z.appendChild(O),z.setAttribute("class","mewtwo-passengers-ready"),j.appendChild(document.createTextNode("Your age at the time of travel must correspond with the category of the ticket booked. The airline has restrictions on passengers under 18 years old and children traveling alone.")),j.setAttribute("class","mewtwo-passengers-description--popups"),t.appendChild(n),t.appendChild(i),t.appendChild(h),t.appendChild(b),t.appendChild(N),t.appendChild(z),t.appendChild(j),t.setAttribute("class","mewtwo-passengers"),t.setAttribute("role","passengers_modal"),this.__update__={adults:function(t){r.insert(e,l,p,a,{role:"adults",item:t})},children:function(t){r.insert(e,g,w,a,{role:"children",item:t})},infants:function(t){r.insert(e,k,T,a,{role:"infants",item:t})},handle:function(e){F.id="flight_type__checkbox"+e,E.setAttribute("for","flight_type__checkbox"+e)}},this.onRender=function(){r.insert(e,n,o,s,{title:"Passengers"})},this.nodes=[t]}var r=e("monkberry"),s=o(e("../shared/popup_header.monk")),a=o(e("../shared/popup_counter.monk"));i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.adults&&this.__update__.adults(e.adults),void 0!==e.children&&this.__update__.children(e.children),void 0!==e.infants&&this.__update__.infants(e.infants),void 0!==e.handle&&this.__update__.handle(e.handle)},t.exports=i},{"../shared/popup_counter.monk":26,"../shared/popup_header.monk":27,monkberry:38}],15:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-modal--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-custom_checkbox ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%208.5%206%22%3E%3Cstyle%3E.st0%7Bfill%3A%23')),e.appendChild(n),e.appendChild(document.createTextNode('%3B%7D%3C%2Fstyle%3E%3Cpath%20class%3D%22st0%22%20d%3D%22M8.5%201.1L7.4%200%203.6%203.8%201.1%201.3%200%202.4%203.6%206z%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-modal--')),e.appendChild(o),e.appendChild(document.createTextNode(" .mewtwo-custom_checkbox_wrapper ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" border-color: #")),e.appendChild(r),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-modal--")),e.appendChild(s),e.appendChild(document.createTextNode(" .mewtwo-passengers .mewtwo-popup-ages-counter__plus ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(a),e.appendChild(document.createTextNode("%22%20d%3D%22M0%206h14v2H0z%22%2F%3E%3Cpath%20fill%3D%22%23")),e.appendChild(d),e.appendChild(document.createTextNode("%22%20d%3D%22M6%200h2v14H6z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(c),e.appendChild(document.createTextNode(" .mewtwo-passengers .mewtwo-popup-ages-counter__plus:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(l),e.appendChild(document.createTextNode("%22%20d%3D%22M0%206h14v2H0z%22%2F%3E%3Cpath%20fill%3D%22%23")),e.appendChild(p),e.appendChild(document.createTextNode("%22%20d%3D%22M6%200h2v14H6z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(h),e.appendChild(document.createTextNode(" .mewtwo-passengers .mewtwo-popup-ages-counter__minus ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%202%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(u),e.appendChild(document.createTextNode("%22%20d%3D%22M0%200h14v2H0z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--")),e.appendChild(m),e.appendChild(document.createTextNode(" .mewtwo-passengers .mewtwo-popup-ages-counter__minus:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url('data:image/svg+xml,%3Csvg%20version%3D%221.2%22%20baseProfile%3D%22tiny%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2014%202%22%3E%3Cpath%20fill%3D%22%23")),e.appendChild(_),e.appendChild(document.createTextNode("%22%20d%3D%22M0%200h14v2H0z%22%2F%3E%3C%2Fsvg%3E') !important;\n }\n\n .mewtwo-modal--popup .mewtwo-modal--")),e.appendChild(f),e.appendChild(document.createTextNode(" .mewtwo-passengers .mewtwo-passengers-ready__button ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: ")),e.appendChild(g),e.appendChild(document.createTextNode(" !important;\n color: ")),e.appendChild(w),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-modal--")),e.appendChild(b),e.appendChild(document.createTextNode(" .mewtwo-passengers .mewtwo-popup_header ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: #")),e.appendChild(C),e.appendChild(document.createTextNode(" !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={handle:function(e){t.textContent=e,o.textContent=e,s.textContent=e,c.textContent=e,h.textContent=e,m.textContent=e,f.textContent=e,b.textContent=e},color_scheme:function(e){n.textContent=e.icon,r.textContent=e.icon,a.textContent=e.icon,d.textContent=e.icon,l.textContent=e.icon,p.textContent=e.icon,u.textContent=e.icon,_.textContent=e.icon,g.textContent=e.button,w.textContent=e.button_text,C.textContent=e.icon}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.color_scheme&&this.__update__.color_scheme(e.color_scheme)},t.exports=o},{monkberry:38}],16:[function(e,t,n){function o(){r.call(this),this.__cache__={};var e=this,t=document.createElement("div"),n=document.createElement("input"),o=document.createElement("input"),s=document.createComment("if"),a={},d=document.createElement("div");n.setAttribute("type","text"),n.setAttribute("placeholder",""),n.setAttribute("data-label",""),n.value="",n.id="-prepop-",n.setAttribute("data-datepicker-sameday",!1),o.setAttribute("type","hidden"),o.setAttribute("role","-value"),o.value="",o.id="-",d.setAttribute("class","-icon"),t.appendChild(n),t.appendChild(o),t.appendChild(s),t.appendChild(d),t.setAttribute("class"," "),this.__update__={prefix:function(e){n.setAttribute("role",e),o.setAttribute("role",e+"-value"),d.setAttribute("class","mewtwo-"+e+"-icon")},linked:function(e){n.setAttribute("data-linked-id",e)},placeholder:function(e){n.setAttribute("placeholder",e||"")},label:function(e){n.setAttribute("data-label",e||"")},date:function(e){n.value=e.formatted||"",o.value=e.value||""},max_popup_height:function(e){n.setAttribute("data-popup-max-height",e)},min_popup_height:function(e){n.setAttribute("data-popup-min-height",e)},handle:function(e){n.setAttribute("data-modal-modifier",e)},handle_prefix:function(e,t){n.id=t+("-prepop-"+e),o.id=t+("-"+e)},sameday:function(e){n.setAttribute("data-datepicker-sameday",e||!1)},name:function(e){o.setAttribute("name",e)},clear:function(t){r.cond(e,s,a,i,t)},modifiers_prefix:function(e,n){t.setAttribute("class","mewtwo-"+n+(" "+(e||"")))}},this.onUpdate=function(e){a.ref&&a.ref.update(e)},this.nodes=[t]}function i(){r.call(this);var e=document.createElement("div");e.setAttribute("class","-iconx"),e.setAttribute("role","-clear"),this.__update__={prefix:function(t){e.setAttribute("class","mewtwo-"+t+"-iconx"),e.setAttribute("role",t+"-clear")}},this.nodes=[e]}var r=e("monkberry");o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&(this.__cache__.handle=e.handle,this.__update__.handle(e.handle)),void 0!==e.prefix&&(this.__cache__.prefix=e.prefix,this.__update__.prefix(e.prefix)),void 0!==e.placeholder&&this.__update__.placeholder(e.placeholder),void 0!==e.label&&this.__update__.label(e.label),void 0!==e.date&&this.__update__.date(e.date),void 0!==e.max_popup_height&&this.__update__.max_popup_height(e.max_popup_height),void 0!==e.min_popup_height&&this.__update__.min_popup_height(e.min_popup_height),void 0!==e.linked&&this.__update__.linked(e.linked),void 0!==e.clear&&this.__update__.clear(e.clear),void 0!==e.sameday&&this.__update__.sameday(e.sameday),void 0!==e.name&&this.__update__.name(e.name),void 0!==e.modifiers&&(this.__cache__.modifiers=e.modifiers),void 0!==this.__cache__.handle&&void 0!==this.__cache__.prefix&&this.__update__.handle_prefix(this.__cache__.handle,this.__cache__.prefix),void 0!==this.__cache__.modifiers&&void 0!==this.__cache__.prefix&&this.__update__.modifiers_prefix(this.__cache__.modifiers,this.__cache__.prefix),this.onUpdate(e)},i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.prefix&&this.__update__.prefix(e.prefix)},t.exports=o},{monkberry:38}],17:[function(e,t,n){function o(){i.call(this);var e=document.createElement("header"),t=document.createElement("div"),n=document.createTextNode(""),o=document.createElement("span");t.appendChild(n),t.setAttribute("class","mewtwo-popup_header__title"),o.appendChild(document.createTextNode("+")),o.setAttribute("role","close_filters"),e.appendChild(t),e.appendChild(o),e.setAttribute("class","mewtwo-popup_header"),this.__update__={title:function(e){n.textContent=e}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.title&&this.__update__.title(e.title)},t.exports=o},{monkberry:38}],18:[function(e,t,n){function o(){s.call(this);var e=this,t=document.createElement("nav"),n=document.createElement("style"),o=document.createTextNode(""),r=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createComment("if"),k={};n.appendChild(document.createTextNode(" .mewtwo-widget--")),n.appendChild(o),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(" background-color: ")),n.appendChild(r),n.appendChild(document.createTextNode(" !important;\n color: #")),n.appendChild(a),n.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),n.appendChild(d),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item span ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(" color: #")),n.appendChild(c),n.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),n.appendChild(l),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item:first-child ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(" border-top-left-radius: ")),n.appendChild(p),n.appendChild(document.createTextNode("px !important ;\n }\n\n .mewtwo-widget--")),n.appendChild(h),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item:last-child ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(" border-top-right-radius: ")),n.appendChild(u),n.appendChild(document.createTextNode("px !important ;\n }\n\n .mewtwo-widget--")),n.appendChild(m),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item.mewtwo-tabs-tabs_list__item--active ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(" background-color: ")),n.appendChild(_),n.appendChild(document.createTextNode(" !important;\n border: 1px solid ")),n.appendChild(f),n.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-widget--")),n.appendChild(g),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item--active:after ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(" background-color: ")),n.appendChild(w),n.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-widget--")),n.appendChild(b),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item--hotels:before ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20690%20340%22%3E%3Cg%20fill%3D%22%23')),n.appendChild(C),n.appendChild(document.createTextNode('%22%3E%3Cpath%20d%3D%22M86.2%2014.2C86.2%206.6%2092.8%200%20100.4%200h21.8c8.1%200%2014.7%206.6%2014.7%2014.2v311.1c0%208.1-6.6%2014.2-14.2%2014.2h-22.3c-7.6.5-14.2-5.6-14.2-13.7V14.2zM552.6%20133c0-8.1%206.6-14.2%2014.2-14.2h21.8c8.1%200%2014.2%206.6%2014.2%2014.2v192.8c0%208.1-6.6%2014.2-14.2%2014.2h-21.8c-8.1%200-14.2-6.6-14.2-14.2V133zM170.9%20182.7c-8.1%200-14.2-6.6-14.2-14.2v-21.8c0-8.1%206.6-14.2%2014.2-14.2h102c8.1%200%2014.2%206.6%2014.2%2014.2v21.8c0%208.1-6.6%2014.2-14.2%2014.2h-102z%22%2F%3E%3Cpath%20d%3D%22M111.6%20200.4H578v70.5H111.6z%22%2F%3E%3Ccircle%20cx%3D%22221.7%22%20cy%3D%22111.1%22%20r%3D%2246.2%22%2F%3E%3Cpath%20d%3D%22M532.3%20119.8c0-7.1-4.6-13.2-11.2-15.7-28.9-9.6-113.7-33-198.9-31-9.1%200-16.2%207.6-16.2%2016.7v92.9h225.8v-62.9h.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;\n }\n .mewtwo-widget--')),n.appendChild(v),n.appendChild(document.createTextNode(" .mewtwo-tabs-tabs_list__item.mewtwo-tabs-tabs_list__item--flights:before ")),n.appendChild(document.createTextNode("{")),n.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20690%20340%22%3E%3Cpath%20fill%3D%22%23')),n.appendChild(x),n.appendChild(document.createTextNode('%22%20d%3D%22M261%2C340h36.2l81.2-144.7h93.3c0%2C0%2C54.2%2C0%2C54.2-25.3s-54.2-25.3-54.2-25.3h-93.4L297%2C0h-36.2l45%2C144.7H241%20l-40.7-36.2h-36.2L193%2C170l-28.9%2C61.5h36.2l40.7-36.2h65L261%2C340z%22%2F%3E%3C%2Fsvg%3E") !important;\n } ')),n.setAttribute("type","text/css"),t.appendChild(n),t.appendChild(y),t.setAttribute("class","mewtwo-tabs"),this.__update__={handle:function(e){o.textContent=e,d.textContent=e,l.textContent=e,h.textContent=e,m.textContent=e,g.textContent=e,b.textContent=e,v.textContent=e},colors:function(e){r.textContent=e.background,a.textContent=e.text,c.textContent=e.text,_.textContent=e.active_background,f.textContent=e.border,w.textContent=e.active_background,C.textContent=e.text,x.textContent=e.text},border_radius:function(e){p.textContent=e,u.textContent=e},tabs:function(t){s.cond(e,y,k,i,t.length>1)},modificators:function(e){t.setAttribute("class","mewtwo-tabs"+e)}},this.onUpdate=function(e){k.ref&&k.ref.update(e)},this.nodes=[t]}function i(){s.call(this);var e=this,t=document.createElement("ul"),n=new s.Map;t.setAttribute("class","mewtwo-tabs_list"),this.__update__={tabs:function(o){s.loop(e,t,n,r,o)}},this.onUpdate=function(e){n.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function r(){s.call(this),this.__cache__={},this.__state__={};var e=document.createElement("li"),t=document.createElement("span"),n=document.createTextNode("");t.appendChild(n),t.setAttribute("role","tab--"),e.appendChild(t),e.setAttribute("class","mewtwo-tabs-tabs_list__item mewtwo-tabs-tabs_list__item--count mewtwo-tabs-tabs_list__item--"),e.setAttribute("role","tab--"),this.__update__={text:function(e){n.textContent=e},name:function(n){t.setAttribute("data-tab",n),e.setAttribute("data-tab",n)},handle:function(n){t.setAttribute("role","tab--"+n),e.setAttribute("role","tab--"+n)},active_class_count_name:function(t,n,o){e.setAttribute("class","mewtwo-tabs-tabs_list__item mewtwo-tabs-tabs_list__item--count"+(n+(" mewtwo-tabs-tabs_list__item--"+(o+t))))}},this.nodes=[e]}var s=e("monkberry");o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.colors&&this.__update__.colors(e.colors),void 0!==e.border_radius&&this.__update__.border_radius(e.border_radius),void 0!==e.tabs&&this.__update__.tabs(e.tabs),void 0!==e.modificators&&this.__update__.modificators(e.modificators),this.onUpdate(e)},i.prototype=Object.create(s.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.tabs&&this.__update__.tabs(e.tabs),this.onUpdate(e)},r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.text&&this.__update__.text(e.text),void 0!==e.name&&(this.__cache__.name=e.name,this.__update__.name(e.name)),void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.active_class&&(this.__cache__.active_class=e.active_class),void 0!==e.count&&(this.__cache__.count=e.count),void 0!==this.__cache__.active_class&&void 0!==this.__cache__.count&&void 0!==this.__cache__.name&&this.__update__.active_class_count_name(this.__cache__.active_class,this.__cache__.count,this.__cache__.name)},t.exports=o},{monkberry:38}],19:[function(e,t,n){function o(){a.call(this);var e=this,t=document.createElement("div"),n=document.createElement("ul"),o=new a.Map;n.setAttribute("class","mewtwo-autocomplete-list"),t.appendChild(n),t.setAttribute("class","mewtwo-autocomplete"),t.setAttribute("role","autocomplete"),this.__update__={results:function(t){a.loop(e,n,o,i,t)}},this.onUpdate=function(e){o.forEach(function(e){e.update(e.__state__)})},this.nodes=[t]}function i(){a.call(this),this.__state__={};var e=this,t=document.createElement("li"),n=document.createElement("span"),o=document.createElement("span"),i=[],c=document.createComment("if"),l={},p=document.createComment("if"),h={};o.setAttribute("class","mewtwo-autocomplete-list-item-info__name"),o.setAttribute("role","autocomplete_item_value"),n.appendChild(o),n.appendChild(c),n.setAttribute("class","mewtwo-autocomplete-list-item_text"),t.appendChild(n),t.appendChild(p),t.setAttribute("class","mewtwo-autocomplete-list-item"),t.setAttribute("role","autocomplete_item"),this.__update__={nameParts:function(e){d(o,i,e)},info:function(t){a.cond(e,c,l,r,t),a.cond(e,p,h,s,t)},modificators:function(e){t.setAttribute("class","mewtwo-autocomplete-list-item"+e)},index:function(e){t.setAttribute("data-index",e)}},this.onUpdate=function(e){l.ref&&l.ref.update(e),h.ref&&h.ref.update(e)},this.nodes=[t]}function r(){a.call(this);var e=document.createElement("span"),t=document.createTextNode("");e.appendChild(t),e.setAttribute("class","mewtwo-autocomplete-list-item-info__details"),e.setAttribute("role","autocomplete_item_value"),this.__update__={info:function(e){t.textContent=e.details}},this.nodes=[e]}function s(){a.call(this);var e=document.createElement("span"),t=document.createTextNode(""),n=document.createElement("span"),o=document.createTextNode("");e.appendChild(t),e.setAttribute("class","mewtwo-autocomplete-list-item-info__bottom_block"),n.appendChild(o),n.setAttribute("class","mewtwo-autocomplete-list-item-info__right_block"),n.setAttribute("role","autocomplete_item_value"),this.__update__={info:function(e){t.textContent=e.bottomBlock,o.textContent=e.rightBlock}},this.nodes=[e,n]}var a=e("monkberry"),d=function(e,t,n){var o,i=t.length,r=document.createElement("div");for(r.innerHTML=n;i-- >0;)t[i].parentNode.removeChild(t.pop());for(i=o=r.childNodes.length-1;o>=0;o--)t.push(r.childNodes[o]);if(++i,8==e.nodeType){if(!e.parentNode)throw"Can not insert child view into parent node. You need append your view first and then update.";for(;i-- >0;)e.parentNode.insertBefore(t[i],e)}else for(;i-- >0;)e.appendChild(t[i])};o.prototype=Object.create(a.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.results&&this.__update__.results(e.results),this.onUpdate(e)},i.prototype=Object.create(a.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.nameParts&&this.__update__.nameParts(e.nameParts),void 0!==e.info&&this.__update__.info(e.info),void 0!==e.modificators&&this.__update__.modificators(e.modificators),void 0!==e.index&&this.__update__.index(e.index),this.onUpdate(e)},r.prototype=Object.create(a.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.info&&this.__update__.info(e.info)},s.prototype=Object.create(a.prototype),s.prototype.constructor=s,s.pool=[],s.prototype.update=function(e){void 0!==e.info&&this.__update__.info(e.info)},t.exports=o},{monkberry:38}],20:[function(e,t,n){function o(){i.call(this);var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-modal--")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item-info--active ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: #")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal--")), e.appendChild(o),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item-info--active .mewtwo-autocomplete-list-item-info__right_block ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: #")),e.appendChild(r),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal--")),e.appendChild(s),e.appendChild(document.createTextNode(" .mewtwo-autocomplete-list-item-info--active .mewtwo-autocomplete-list-item-info__right_block:before ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: linear-gradient(to left, #")),e.appendChild(a),e.appendChild(document.createTextNode(", ")),e.appendChild(d),e.appendChild(document.createTextNode(") !important;\n } ")),e.setAttribute("type","text/css"),this.__update__={handle:function(e){t.textContent=e,o.textContent=e,s.textContent=e},color_scheme:function(e){n.textContent=e.icon,r.textContent=e.icon,a.textContent=e.icon,d.textContent=e.icon_rgba}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.color_scheme&&this.__update__.color_scheme(e.color_scheme)},t.exports=o},{monkberry:38}],21:[function(e,t,n){function o(){r.call(this),this.__cache__={};var e=this,t=document.createElement("div"),n=document.createElement("input"),o=document.createElement("input"),s=document.createElement("div"),a=document.createElement("span"),d=document.createTextNode(""),c=document.createElement("span"),l=document.createTextNode(""),p=document.createElement("div"),h=document.createTextNode(""),u=document.createComment("if"),m={},_=document.createElement("div"),f=document.createElement("div"),g=document.createElement("div"),w=document.createElement("div");n.setAttribute("type","text"),n.setAttribute("name","_name"),n.setAttribute("autocomplete","off"),n.setAttribute("required",""),n.id="-prepop-",o.setAttribute("type","hidden"),o.setAttribute("name","_iata"),o.id="-",a.appendChild(d),a.setAttribute("class","-country__pseudo"),a.setAttribute("role","_country__pseudo"),c.appendChild(l),c.setAttribute("class","-country__name"),c.setAttribute("role","_country__name"),s.appendChild(a),s.appendChild(c),s.setAttribute("class","-country"),s.setAttribute("role","_details"),p.appendChild(h),p.setAttribute("class","__iata"),p.setAttribute("role","_right_block"),_.appendChild(f),_.appendChild(g),_.appendChild(w),_.setAttribute("class","mewtwo-autocomplete-spinner"),_.setAttribute("role","autocomplete-spinner"),t.appendChild(n),t.appendChild(o),t.appendChild(s),t.appendChild(p),t.appendChild(u),t.appendChild(_),this.__update__={name:function(e){n.setAttribute("name",e+"_name"),o.setAttribute("name",e+"_iata")},placeholder:function(e){n.setAttribute("placeholder",e)},label:function(e){n.setAttribute("data-label",e)},place:function(t){n.value=t.name,o.value=t.iata,d.textContent=t.name,l.textContent=e.filters.commaFirst(t.country_name),h.textContent=t.iata},prefix:function(o){n.setAttribute("role",o),a.setAttribute("class","mewtwo-"+o+"-country__pseudo"),a.setAttribute("role",o+"_country__pseudo"),c.setAttribute("class","mewtwo-"+o+"-country__name"),c.setAttribute("role",o+"_country__name"),s.setAttribute("class","mewtwo-"+o+"-country"),s.setAttribute("role",o+"_details"),p.setAttribute("class","mewtwo-"+o+"__iata"),p.setAttribute("role",o+"_right_block"),r.cond(e,u,m,i,"flights-origin"===o),t.setAttribute("class","mewtwo-"+o)},handle:function(e){n.setAttribute("data-modal-modifier",e)},handle_prefix:function(e,t){n.id=t+("-prepop-"+e),o.id=t+("-"+e)}},this.onUpdate=function(e){m.ref&&m.ref.update(e)},this.nodes=[t]}function i(){r.call(this);var e=document.createElement("div");e.setAttribute("class","mewtwo-swap_button"),e.setAttribute("role","swap_button"),this.nodes=[e]}var r=e("monkberry");o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.name&&this.__update__.name(e.name),void 0!==e.placeholder&&this.__update__.placeholder(e.placeholder),void 0!==e.label&&this.__update__.label(e.label),void 0!==e.place&&this.__update__.place(e.place),void 0!==e.prefix&&(this.__cache__.prefix=e.prefix,this.__update__.prefix(e.prefix)),void 0!==e.handle&&(this.__cache__.handle=e.handle,this.__update__.handle(e.handle)),void 0!==this.__cache__.handle&&void 0!==this.__cache__.prefix&&this.__update__.handle_prefix(this.__cache__.handle,this.__cache__.prefix),this.onUpdate(e)},i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){},t.exports=o},{monkberry:38}],22:[function(e,t,n){function o(e){return e&&e.__esModule?e["default"]:e}function i(){d.call(this),this.__cache__={};var e=this,t=document.createElement("div"),n=document.createComment("Header"),o={},i=document.createElement("div"),l=document.createElement("span"),p=document.createElement("span"),h=new d.Map,u=document.createElement("span"),m=document.createElement("div"),_=document.createElement("span"),f=document.createComment("if"),g={},w=document.createComment("if"),b={};l.setAttribute("class","mewtwo-datepicker-prev-month-control"),l.setAttribute("role","datepicker-prev"),p.setAttribute("class","mewtwo-datepicker-months "),u.setAttribute("class","mewtwo-datepicker-next-month-control"),u.setAttribute("role","datepicker-next"),i.appendChild(l),i.appendChild(p),i.appendChild(u),i.setAttribute("class","mewtwo-datepicker-header"),m.appendChild(_),m.setAttribute("class","mewtwo-datepicker-container"),m.setAttribute("role","datepicker-table-wrapper"),t.appendChild(n),t.appendChild(i),t.appendChild(m),t.appendChild(f),t.appendChild(w),t.setAttribute("class","mewtwo-datepicker mewtwo-datepicker-"),this.__update__={label:function(t){d.insert(e,n,o,c,{title:t})},months:function(t){d.loop(e,p,h,r,t)},return_button_display:function(t){p.setAttribute("class","mewtwo-datepicker-months "+(t?"mewtwo-datepicker-months--with_return_button":"")),d.cond(e,f,g,s,t)},legend:function(t){d.cond(e,w,b,a,t)},modificators_type:function(e,n){t.setAttribute("class","mewtwo-datepicker mewtwo-datepicker-"+(n+e))}},this.onUpdate=function(e){h.forEach(function(e){e.update(e.__state__)}),g.ref&&g.ref.update(e),b.ref&&b.ref.update(e)},this.nodes=[t]}function r(){d.call(this),this.__state__={};var e=document.createElement("span"),t=document.createTextNode("");e.appendChild(t),this.__update__={name:function(e){t.textContent=e}},this.nodes=[e]}function s(){d.call(this);var e=document.createElement("div"),t=document.createElement("span");t.appendChild(document.createTextNode("Return ticket is not needed")),t.setAttribute("class","mewtwo-datepicker-container-return_button__text"),e.appendChild(t),e.setAttribute("class","mewtwo-datepicker-container-return_button"),e.setAttribute("role","dont_want_return_ticket"),this.nodes=[e]}function a(){d.call(this);var e=document.createElement("span");e.setAttribute("class","mewtwo-datepicker-legend"),e.setAttribute("role","datepicker-legend"),this.nodes=[e]}var d=e("monkberry"),c=o(e("blocks/shared/popup_header.monk"));i.prototype=Object.create(d.prototype),i.prototype.constructor=i,i.pool=[],i.prototype.update=function(e){void 0!==e.label&&this.__update__.label(e.label),void 0!==e.months&&this.__update__.months(e.months),void 0!==e.return_button_display&&this.__update__.return_button_display(e.return_button_display),void 0!==e.legend&&this.__update__.legend(e.legend),void 0!==e.modificators&&(this.__cache__.modificators=e.modificators),void 0!==e.type&&(this.__cache__.type=e.type),void 0!==this.__cache__.modificators&&void 0!==this.__cache__.type&&this.__update__.modificators_type(this.__cache__.modificators,this.__cache__.type),this.onUpdate(e)},r.prototype=Object.create(d.prototype),r.prototype.constructor=r,r.pool=[],r.prototype.update=function(e){void 0!==e.name&&this.__update__.name(e.name)},s.prototype=Object.create(d.prototype),s.prototype.constructor=s,s.pool=[],s.prototype.update=function(e){},a.prototype=Object.create(d.prototype),a.prototype.constructor=a,a.pool=[],a.prototype.update=function(e){},t.exports=i},{"blocks/shared/popup_header.monk":17,monkberry:38}],23:[function(e,t,n){function o(){i.call(this),this.__cache__={};var e=document.createElement("style"),t=document.createTextNode(""),n=document.createTextNode(""),o=document.createTextNode(""),r=document.createTextNode(""),s=document.createTextNode(""),a=document.createTextNode(""),d=document.createTextNode(""),c=document.createTextNode(""),l=document.createTextNode(""),p=document.createTextNode(""),h=document.createTextNode(""),u=document.createTextNode(""),m=document.createTextNode(""),_=document.createTextNode(""),f=document.createTextNode(""),g=document.createTextNode(""),w=document.createTextNode(""),b=document.createTextNode(""),C=document.createTextNode(""),v=document.createTextNode(""),x=document.createTextNode(""),y=document.createTextNode(""),k=document.createTextNode(""),T=document.createTextNode(""),N=document.createTextNode(""),D=document.createTextNode(""),E=document.createTextNode(""),A=document.createTextNode(""),F=document.createTextNode(""),M=document.createTextNode(""),S=document.createTextNode(""),L=document.createTextNode(""),z=document.createTextNode(""),O=document.createTextNode(""),P=document.createTextNode(""),I=document.createTextNode(""),R=document.createTextNode("");e.appendChild(document.createTextNode(" .mewtwo-modal")),e.appendChild(t),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-current:hover div")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: #")),e.appendChild(n),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-modal")),e.appendChild(o),e.appendChild(document.createTextNode(" .mewtwo-datepicker-simple .mewtwo-datepicker-table .mewtwo-datepicker-selected div ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: #")),e.appendChild(r),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal")),e.appendChild(s),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-start-sausage div,\n .mewtwo-modal")),e.appendChild(a),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-start-sausage div:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: #")),e.appendChild(d),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal")),e.appendChild(c),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-end-sausage div,\n .mewtwo-modal")),e.appendChild(l),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-end-sausage div:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: #")),e.appendChild(p),e.appendChild(document.createTextNode(" 0 0 no-repeat url(\"data:image/svg+xml,%3Csvg%20version%3D'1.2'%20baseProfile%3D'tiny'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2026%2022'%3E%3Cpath%20fill%3D'%23")),e.appendChild(h),e.appendChild(document.createTextNode("'%20d%3D'M4.3%2022H26V0H4.3L0%2011z'%2F%3E%3C%2Fsvg%3E\") !important;\n }\n\n .mewtwo-modal")),e.appendChild(u),e.appendChild(document.createTextNode(" .mewtwo-datepicker.mewtwo-datepicker-range .mewtwo-datepicker-range div ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%224%22%20height%3D%225%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cuse%20xlink%3Ahref%3D%22%23path0_fill%22%20fill%3D%22%23')),e.appendChild(m),e.appendChild(document.createTextNode('%22%2F%3E%3Cdefs%3E%3Cpath%20id%3D%22path0_fill%22%20fill-rule%3D%22evenodd%22%20d%3D%22M2%203.993c1.105%200%202-.894%202-1.996A1.998%201.998%200%200%200%202%200C.895%200%200%20.894%200%201.997c0%201.102.895%201.996%202%201.996z%22%20transform%3D%22translate(0%20.364)%22%2F%3E%3C%2Fdefs%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-modal--midMin .mewtwo-modal')),e.appendChild(_),e.appendChild(document.createTextNode(" .mewtwo-datepicker.mewtwo-datepicker-range .mewtwo-datepicker-range div,\n .mewtwo-modal--min .mewtwo-modal")),e.appendChild(f),e.appendChild(document.createTextNode(" .mewtwo-datepicker.mewtwo-datepicker-range .mewtwo-datepicker-range div,\n .mewtwo-modal--micro .mewtwo-modal")),e.appendChild(g),e.appendChild(document.createTextNode(" .mewtwo-datepicker.mewtwo-datepicker-range .mewtwo-datepicker-range div ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: none !important;\n border-bottom: 1px solid #")),e.appendChild(w),e.appendChild(document.createTextNode(" !important;\n }\n\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(b),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-range.mewtwo-datepicker-start-sausage div,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(C),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-range.mewtwo-datepicker-start-sausage div:hover,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(v),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-range.mewtwo-datepicker-end-sausage div,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(x),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-range.mewtwo-datepicker-end-sausage div:hover,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(y),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-start-sausage div,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(k),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-start-sausage div:hover,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(T),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-end-sausage div,\n .mewtwo-modal--popup .mewtwo-modal")),e.appendChild(N),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-end-sausage div:hover ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background: #")),e.appendChild(D),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal")),e.appendChild(E),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-next,\n .mewtwo-modal")),e.appendChild(A),e.appendChild(document.createTextNode(" .mewtwo-datepicker-table .mewtwo-datepicker-prev ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" color: #")),e.appendChild(F),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal")),e.appendChild(M),e.appendChild(document.createTextNode(" .mewtwo-datepicker-prev-month-control,\n .mewtwo-modal")),e.appendChild(S),e.appendChild(document.createTextNode(" .mewtwo-datepicker-next-month-control ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-image: url(\"data:image/svg+xml,%3Csvg%20version%3D'1.2'%20baseProfile%3D'tiny'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2030.6%2024.6'%3E%3Cpath%20fill%3D'%23")),e.appendChild(L),e.appendChild(document.createTextNode("'%20d%3D'M.6%2010.8l.2-.2%209.9-10c.8-.8%202.2-.8%203%200l.3.2c.8.8.8%202.2%200%203L7.9%2010h20.6c1.2%200%202.1%201%202.1%202.1v.3c0%201.2-1%202.1-2.1%202.1H7.9l6.2%206.2c.8.8.8%202.2%200%203l-.3.3c-.8.8-2.2.8-3%200L.8%2014l-.2-.2c-.8-.8-.8-2.2%200-3z'%2F%3E%3C%2Fsvg%3E\") !important;\n }\n\n .mewtwo-modal--micro .mewtwo-modal")),e.appendChild(z),e.appendChild(document.createTextNode(" .mewtwo-datepicker-container-return_button__text ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(' background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ESlice%201%3C%2Ftitle%3E%3Cpath%20d%3D%22M98.17%2089.33L58.837%2050l39.33-39.33c2.442-2.442%202.442-6.397%200-8.84-2.438-2.44-6.395-2.44-8.837%200L50%2041.163%2010.67%201.832C8.23-.61%204.272-.61%201.83%201.83c-2.44%202.436-2.44%206.395%200%208.837L41.163%2050%201.832%2089.33c-2.442%202.442-2.442%206.397%200%208.84%202.44%202.44%206.395%202.44%208.837%200L50%2058.837l39.33%2039.33c2.442%202.442%206.4%202.442%208.84%200%202.44-2.44%202.44-6.395%200-8.837z%22%20fill%3D%22%23')),e.appendChild(O),e.appendChild(document.createTextNode('%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") !important;\n }\n\n .mewtwo-modal')),e.appendChild(P),e.appendChild(document.createTextNode(" .mewtwo-datepicker .mewtwo-popup_header ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" background-color: #")),e.appendChild(I),e.appendChild(document.createTextNode(" !important;\n }\n .mewtwo-modal")),e.appendChild(R),e.appendChild(document.createTextNode(" .mewtwo-datepicker .mewtwo-popup_header span ")),e.appendChild(document.createTextNode("{")),e.appendChild(document.createTextNode(" } ")),e.setAttribute("type","text/css"),this.__update__={identifier:function(e){t.textContent=e,o.textContent=e,s.textContent=e,a.textContent=e,c.textContent=e,l.textContent=e,u.textContent=e,_.textContent=e,f.textContent=e,g.textContent=e,b.textContent=e,C.textContent=e,v.textContent=e,x.textContent=e,y.textContent=e,k.textContent=e,T.textContent=e,N.textContent=e,E.textContent=e,A.textContent=e,M.textContent=e,S.textContent=e,z.textContent=e,P.textContent=e,R.textContent=e},color_isTouch:function(e,t){n.textContent=t?"initial":e},color:function(e){r.textContent=e,d.textContent=e,p.textContent=e,h.textContent=e,m.textContent=e,w.textContent=e,D.textContent=e,F.textContent=e,L.textContent=e,O.textContent=e,I.textContent=e}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.identifier&&this.__update__.identifier(e.identifier),void 0!==e.color&&(this.__cache__.color=e.color,this.__update__.color(e.color)),void 0!==e.isTouch&&(this.__cache__.isTouch=e.isTouch),void 0!==this.__cache__.color&&void 0!==this.__cache__.isTouch&&this.__update__.color_isTouch(this.__cache__.color,this.__cache__.isTouch)},t.exports=o},{monkberry:38}],24:[function(e,t,n){function o(){i.call(this);var e=document.createElement("div"),t=document.createElement("div");t.setAttribute("class","mewtwo-modal"),t.setAttribute("role","modal"),e.appendChild(t),e.setAttribute("class","mewtwo-modal-wrapper"),this.__update__={modifiers:function(e){t.setAttribute("class","mewtwo-modal"+e)}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.modifiers&&this.__update__.modifiers(e.modifiers)},t.exports=o},{monkberry:38}],25:[function(e,t,n){function o(){i.call(this);var e=document.createElement("div"),t=document.createElement("div");t.setAttribute("class","mewtwo-widget mewtwo-widget--"),e.appendChild(t),this.__update__={handle:function(e){t.setAttribute("class","mewtwo-widget mewtwo-widget--"+e)},is_touch:function(t){e.setAttribute("class",t?"mewtwo-widget--touch":"")}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.handle&&this.__update__.handle(e.handle),void 0!==e.is_touch&&this.__update__.is_touch(e.is_touch)},t.exports=o},{monkberry:38}],26:[function(e,t,n){function o(){i.call(this);var e=document.createElement("div"),t=document.createElement("span"),n=document.createElement("span"),o=document.createTextNode(""),r=document.createElement("span");t.appendChild(document.createTextNode("–")),t.setAttribute("class","mewtwo-popup-ages-counter__minus"),t.setAttribute("role","decrease"),n.appendChild(o),n.setAttribute("class","mewtwo-popup-ages-counter__amount"),r.appendChild(document.createTextNode("+")),r.setAttribute("class","mewtwo-popup-ages-counter__plus"),r.setAttribute("role","increase"),e.appendChild(t),e.appendChild(n),e.appendChild(r),e.setAttribute("class","mewtwo-popup-ages-counter"),this.__update__={item:function(e){o.textContent=e},role:function(t){e.setAttribute("role",t)}},this.nodes=[e]}var i=e("monkberry");o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.pool=[],o.prototype.update=function(e){void 0!==e.item&&this.__update__.item(e.item),void 0!==e.role&&this.__update__.role(e.role)},t.exports=o},{monkberry:38}],27:[function(e,t,n){t.exports=e(17)},{monkberry:38}],28:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_;r=200,h=e("debounce"),s=2,a=e("deep_merge"),l=e("templates"),m=e("components/autocomplete/autocomplete.monk"),_=e("components/autocomplete/autocomplete_style.monk"),d=e("components/modal_window/modal"),p=e("color_utils"),i=e("browser"),c=e("swipe_detector"),u=function(e){return console.log("Autocomplete data: "+e)},o=function(){function e(e){this.height=e.autocomplete_item_height||50,this.visibleResult={results:[]},e.color_scheme.icon_rgba=p.hexToRgba("#"+e.color_scheme.icon,0),e.color_scheme.autocompete_background_rgba=p.hexToRgba(e.color_scheme.input_border,0),this.template=l(m,e),l(_,e,document.head),this.fetcher=e.fetcher,"[object Array]"!==Object.prototype.toString.call(e.onResult)&&(e.onResult=[e.onResult]),this.resultingCallbacks=e.onResult||[u],this.lastRequestTimestamp=(new Date).getTime(),this.inputNode=e.wrapper.querySelector('[role="'+e.role+'"]'),this.caller=e.wrapper.querySelector("[role='"+e.role+"']"),this.initEvents(),this.spinner=this.inputNode.parentNode.querySelector('[role="autocomplete-spinner"]'),this.spinner&&(this.spinnerNodes=this.spinner.childNodes),this.selectedIndex=null,this.focused=!1}return e.prototype.prefix="",e.prototype.keysMap={enter:13,up:38,down:40,tab:9,esc:27},e.prototype.timeout=null,e.prototype.maxWidth=350,e.prototype.settings={modalPriorities:["bottom","right","left"],notShowPopupOnMobile:!0},e.prototype.smartClose=function(){var e,t,n,o,i;for(o=this.resultingCallbacks,i=[],t=0,n=o.length;t<n;t++)e=o[t],i.push(e(this.visibleResult.results[this.selectedIndex||0]));return i},e.prototype.initEvents=function(){return this.inputNode.addEventListener("input",function(e){return function(t){if(!i.isIE()||e.focused)return e.isEnoughLetters()?(e.showRequest=!0,h(function(){return e.fetchResults()},r)()):(e.showRequest=!1,d.close(!0))}}(this)),this.inputNode.addEventListener("keydown",function(e){return function(t){var n,o,i,r;switch(t.keyCode){case e.keysMap.tab:case e.keysMap.esc:if(e.visibleResult.results&&e.visibleResult.results.length>0)return e.smartClose(),d.close();for(r=e.resultingCallbacks,o=0,i=r.length;o<i;o++)(n=r[o])({name:e.inputNode.value,iata:"",country:""});return e.showRequest=!1;case e.keysMap.enter:if(e.visibleResult.results.length>0)return e.smartClose(),d.close(),t.preventDefault();break;case e.keysMap.down:return null!=e.selectedIndex&&e.selectedIndex<(e.visibleCount||e.visibleResult.results.length)-1?e.selectedIndex+=1:e.selectedIndex=0,e.updateTemplate();case e.keysMap.up:return e.selectedIndex&&e.selectedIndex>0?e.selectedIndex-=1:e.selectedIndex=(e.visibleCount||e.visibleResult.results.length)-1,e.updateTemplate()}}}(this)),c.isTouchDevice?this.template.node.addEventListener("touchend",function(e){return function(t){return e.selectedIndex=e._getItemIndex(t),e.smartClose(),d.close(),t.preventDefault()}}(this)):(this.template.node.addEventListener("mouseover",function(e){return function(t){return e.selectedIndex=e._getItemIndex(t),e.updateTemplate()}}(this)),this.template.node.addEventListener("click",function(e){return function(t){return e.selectedIndex=e._getItemIndex(t),e.smartClose(),d.close()}}(this))),this.inputNode.addEventListener("blur",function(e){return function(t){return e.showRequest=!1}}(this)),this.inputNode.addEventListener("focus",function(e){return function(t){return e.focused=!0,setTimeout(function(){return e.inputNode.select()},1)}}(this))},e.prototype._getItemIndex=function(e){var t;if(t=this._findClosestParentWithRole(e.target,"autocomplete_item"))return parseInt(t.getAttribute("data-index"),10)},e.prototype._findClosestParentWithRole=function(e,t,n){return null==n&&(n=10),e.getAttribute("role")===t?e:n>0?this._findClosestParentWithRole(e.parentNode,t,--n):void 0},e.prototype.updateTemplate=function(){if(this.visibleResult.results.length>0&&this.isEnoughLetters())return this.modifyClasses(),this.template.update(this.visibleResult)},e.prototype.modifyClasses=function(){var e,t,n,o,i;for(o=this.visibleResult.results,e=0,n=o.length;e<n;e++)t=o[e],t.modificators&&(t.modificators=t.modificators.replace(" mewtwo-autocomplete-list-item-info--active",""));if(i=this.selectedItem())return i.modificators||(i.modificators=""),i.modificators+=" mewtwo-autocomplete-list-item-info--active"},e.prototype.isEnoughLetters=function(){return this.inputNode.value.length>=s},e.prototype.selectedItem=function(){if(this.selectedIndex||0===this.selectedIndex)return(this.visibleCount||this.visibleResult.results.length)-1<this.selectedIndex?this.visibleResult.results[0]:this.visibleResult.results[this.selectedIndex]},e.prototype.fetchResults=function(){var e,t;return this.selectedIndex=null,this.term=null,this.visibleResult.results=[],e=(new Date).getTime(),this.isEnoughLetters()&&this.spinner&&this.startSpinnerAnimation(),t=this.inputNode.value,this.fetcher(t,function(n){return function(o){var i,r,s,a;if(e>n.lastRequestTimestamp){if(n.visibleResult=o,n.spinner&&n.stopSpinnerAnimation(),i=o.results.length,o.results&&i>0)if(n.showRequest){n.term=t.toLowerCase(),a=n.visibleResult.results;for(r in a)s=a[r],s&&(s.index=r,s.nameParts=(""+s.name+s.state).replace(new RegExp("("+n.term+")","gi"),"<b>$1</b>"));n.updateTemplate(),d.close(!0),d.render(n.inputNode,n.modalSizes(i),n.settings,function(e,t){return n.visibleCount="mid"===t?7:null,d.fill(n.template.node)},function(){return n.smartClose()})}else document.activeElement!==n.inputNode&&n.smartClose(),d.close();else d.close();return n.lastRequestTimestamp=e}}}(this))},e.prototype._capitalize=function(e){return""+e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.modalSizes=function(e){var t,n;return t=this.inputNode.offsetWidth,n=1.5*t,{max:{width:n>this.maxWidth?t:n,height:this.height*e},mid:{width:t<200?200:t,height:this.height*(e>7?7:e)},min:{width:t,height:this.height/2*e}}},e.prototype.startSpinnerAnimation=function(){var e,t,n,o;for(this.spinnerAnimationStarted=!0,n=this.spinnerNodes,e=0,t=n.length;e<t;e++)o=n[e],o.classList.remove(this.prefix+"spin--shown");return this.inputNode.parentNode.classList.add(this.prefix+"autocomplete--loading"),setTimeout(function(e){return function(){return e.animateSpinner(e.spinnerNodes[0])}}(this),160),setTimeout(function(e){return function(){return e.animateSpinner(e.spinnerNodes[1])}}(this),320),setTimeout(function(e){return function(){return e.animateSpinner(e.spinnerNodes[2])}}(this),480)},e.prototype.animateSpinner=function(e){if(e.classList.add("spin--shown"),setTimeout(function(){return e.classList.remove("spin--shown")},400),this.spinnerAnimationStarted)return setTimeout(function(t){return function(){return t.animateSpinner(e)}}(this),1e3)},e.prototype.stopSpinnerAnimation=function(){return this.inputNode.parentNode.classList.remove(this.prefix+"autocomplete--loading"),this.spinnerAnimationStarted=!1},e}(),t.exports=e("error_handler").handlePublic(o)},{browser:58,color_utils:61,"components/autocomplete/autocomplete.monk":19,"components/autocomplete/autocomplete_style.monk":20,"components/modal_window/modal":54,debounce:62,deep_merge:63,error_handler:64,swipe_detector:76,templates:77}],29:[function(e,t,n){var o,i,r,s,a,d;s=e("./month_renderer"),i=e("templates"),a=e("components/datepicker/datepicker_container.monk"),d=e("components/datepicker/datepicker_container_style.monk"),o=e("swipe_detector"),r=function(){function e(e,t,n){var r;this.datepicker=e,n&&(this.prefix=n),this.listener=t,this.onlyFuture=this.datepicker.onlyFuture,this.dayNames=["Mo","Tu","We","Th","Fr","Sa","Su"],this.sundayFirst=0,this.sundayFirst&&this.dayNames.unshift(this.dayNames.pop()),this.color=this.datepicker.color,this._monthRenderers=[],r={type:this.datepicker.type,legend:this.datepicker.legend,color:this.color,return_button_display:!0,isTouch:o.isTouchDevice},r.identifier=this.datepicker.options&&this.datepicker.options.identifier?"--"+this.datepicker.options.identifier:"",this.template=i(a,r),i(d,r,document.head),this.node=this.template.node,this.datepickerContainerNode=this.node.querySelector('[role="datepicker-table-wrapper"]'),this.node}return e.prototype.prefix="",e.prototype.node=!1,e.prototype.monthRenderer=null,e.prototype.render=function(){var e,t,n,o,i,r,s,a;return this.modificators="",s=document.createElement("div"),this.months=[],a=this.datepicker.year,t=this.datepicker.month,e=0,this.monthRenderers=[],i=this._addMonth(t,a,e,s),n=i[0],o=i[1],e=i[2],"max"!==this.datepicker.size&&"midMin"!==this.datepicker.size||(r=this._addMonth(n,o,e,s),n=r[0],o=r[1],e=r[2]),2===e&&(this.modificators+=" mewtwo-datepicker--double"),3===e&&(this.modificators+=" mewtwo-datepicker--triple"),this.modificators+=this.onlyFuture&&this.datepicker.isCurrentMonth?" mewtwo-datepicker--current_month":"",this.datepickerContainerNode.replaceChild(s,this.datepickerContainerNode.childNodes[0]),this.refresh()},e.prototype._addMonth=function(e,t,n,o){var i,r,a,d;return r=document.createElement("div"),(i=this._monthRenderers)[n]||(i[n]=new s(this.listener,this.dayNames,this.sundayFirst,this.prefix,this.onlyFuture)),this.monthRenderers.push(this._monthRenderers[n]),this.months.push({name:["","January","February","March","April","May","June","July","August","September","October","November","December"][e]+" "+t}),r.appendChild(this._monthRenderers[n].render(t,e,this.datepicker.isItCurrentMonth(e,t),this.datepicker.isItPrevMonth(e,t),this.datepicker.currentDay)),o.appendChild(r),a=12===e?1:e+1,d=12===e?t+1:t,[a,d,++n]},e.prototype.refresh=function(){return this.template.update({color:this.color,months:this.months,modificators:this.modificators,return_button_display:"hotels-dates-checkout"!==this.datepicker.role&&this.datepicker.role===this.datepicker.roles[1],label:this.datepicker.nodes[this.datepicker.role].dataset.label})},e}(),t.exports=e("error_handler").handlePublic(r)},{"./month_renderer":31,"components/datepicker/datepicker_container.monk":22,"components/datepicker/datepicker_container_style.monk":23,error_handler:64,swipe_detector:76,templates:77}],30:[function(e,t,n){var o,i,r,s,a=function(e,t){return function(){return e.apply(t,arguments)}};i=e("swipe_detector"),s=e("./container_renderer"),o=e("components/modal_window/modal"),r=function(){function e(e){var t,n,o,i,r;for(null==e&&(e={}),this.formatPluralisedDate=a(this.formatPluralisedDate,this),this.options=e,this.nodes=[],this.datepickerWrapper=e.wrapper||document.body,this.roles=e.role&&[e.role]||e.roles||["datepicker"],this.role=this.roles[0],e.callback&&(this.onSelect=e.callback),e.prefix&&(this.prefix=e.prefix),e.offsets&&(this.offsets=e.offsets),this.color=e.color||"#000",this.sameday=!1,"string"==typeof e.date&&/\d\d\d\d-\d\d?-\d\d?/.test(e.date)&&(this[this.role]=e.date),i=this.roles,t=0,n=i.length;t<n;t++)r=i[t],o=this.nodes[r]=this.datepickerWrapper.querySelector('[role="'+r+'"]'),o.classList.add("mewtwo-datepicker-trigger"),o.getAttribute("data-date")&&(this[r]=this._parseDate(o.getAttribute("data-date"))),this.isTouchDevice||o.setAttribute("readonly",!0),o.addEventListener("focus",this._listenerFor(r)),o.addEventListener("keydown",function(e){return function(t){return e._processKey(t.keyCode); }}(this)),"true"===o.getAttribute("data-datepicker-sameday")&&(this.sameday=!0);this._initPopup()}return e.prototype.prefix="",e.prototype.today=new Date,e.prototype.isTouchDevice=i.isTouchDevice,e.prototype.type="simple",e.prototype.onlyFuture=!0,e.prototype.offsets={top:0,left:0},e.prototype.onSelect=function(e,t){return console.log(t+" selected date "+e)},e.prototype._initPopup=function(){var e;return this.currentMonth=this.today.getMonth()+1,this.currentYear=this.today.getFullYear(),this.currentDay=this.today.getDate(),e=function(e){return function(t,n){return e._callback_proxy(t,n)}}(this),this.containerRenderer=new s(this,e,this.prefix),new i(this.containerRenderer.node,{left:function(e){return function(){return e.nextMonth()}}(this),right:function(e){return function(){return e.prevMonth()}}(this),down:function(e){return function(){return e.hide()}}(this),up:function(e){return function(){return e.hide()}}(this)}),this.containerRenderer.node.querySelector('[role="datepicker-prev"]').addEventListener("click",function(e){return function(){return e.prevMonth()}}(this)),this.containerRenderer.node.querySelector('[role="datepicker-next"]').addEventListener("click",function(e){return function(){return e.nextMonth()}}(this))},e.prototype._processKey=function(e){switch(e){case 27:return this.hide(),this.nodes[this.role].blur();case 9:return this.hide();case 8:return this.nodes[this.role].setAttribute("value","")}},e.prototype.prevMonth=function(){if(!this.onlyFuture||!this.isCurrentMonth)return 1===this.month?(this.year--,this.month=12):this.month--,this._renderDatepicker()},e.prototype.nextMonth=function(){return 12===this.month?(this.year++,this.month=1):this.month++,this._renderDatepicker()},e.prototype.hide=function(e){return e?setTimeout(function(){return o.close()},e):o.close()},e.prototype.show=function(e,t){var n,i,r,s;return this.role=e,this.callback=t,this.date=this._parseDate(this[this.role])||this.today,this.month=this.date.getMonth()+1,this.year=this.date.getFullYear(),i=parseInt(this.nodes[this.role].getAttribute("data-popup-max-height"),10),r=parseInt(this.nodes[this.role].getAttribute("data-popup-min-height"),10),n={max:{width:560,height:i},midMax:{width:280,height:i},midMin:{width:360,height:r},min:{width:180,height:r},micro:{width:180,height:150}},s=["bottom","top","over","right","left"],this.nodes[this.role].focus(),o.render(this.nodes[this.role],n,s,function(e){return function(t,n){return e.size=n,e._renderDatepicker(),o.fill(e.containerRenderer.node)}}(this),null,this.datepickerWrapper)},e.prototype._callback_proxy=function(e,t){switch(e){case"click":return this.callback(t.getAttribute("data-date")),!0;default:return!1}},e.prototype._listenerFor=function(e){return function(t){return function(n){if(t.show(e,function(n){return t._showCallback(n,e)}),n&&t.isTouchDevice)return n.preventDefault(),n.target.blur()}}(this)},e.prototype._showCallback=function(e,t){if(e&&(this[t]=e),!this.settedRoles)return this.hide(),this.onSelect(e,t)},e.prototype._renderDatepicker=function(){return this.isCurrentMonth=this.isItCurrentMonth(this.month,this.year),this.isPrevMonth=this.isItPrevMonth(this.month,this.year),this.containerRenderer.render(this),this._setCurrentDate()},e.prototype._setCurrentDate=function(){var e,t,n,o,i,r,s,a;for(e="mewtwo-datepicker-"+this.stringifyDate(this.date),s=this.containerRenderer.monthRenderers,a=[],n=0,o=s.length;n<o;n++)i=s[n],a.push(function(){var n,o;n=i.days,o=[];for(t in n)r=n[t],e===t?o.push(r.classList.add("mewtwo-datepicker-selected")):o.push(r.classList.remove("mewtwo-datepicker-selected"));return o}());return a},e.prototype.isItCurrentMonth=function(e,t){return this.currentYear===t&&this.currentMonth===e},e.prototype.isItPrevMonth=function(e,t){return this.currentYear>t||this.currentYear===t&&this.currentMonth>e},e.prototype._parseDate=function(e){var t;if(e)return t=e.split("-"),new Date(t[0],parseInt(t[1],10)-1,t[2])},e.prototype.stringifyDate=function(e){return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()},e.prototype._setScale=function(e,t){return t.style.webkitTransform=t.style.transform="scale("+e+")"},e.prototype.formatPluralisedDate=function(e,t){var n,o,i,r;return null==t&&(t="long"),e?(n=e.split("-"),o="long"===t?["","January","February","March","April","May","June","July","August","September","October","November","December"]:["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r=parseInt(n[0],10)===this.currentYear?"":n[0],i=[n[2],o[parseInt(n[1],10)]],"en_us"===this.options.locale&&i.reverse(),(i.join(" ")+" "+r).trim()):""},e.prototype.formatDateValue=function(e){var t;return e?(t=e.split("-"),t[0]+"-"+("0"+t[1]).slice(-2)+"-"+("0"+t[2]).slice(-2)):""},e.prototype.getDay=function(e){var t;return e?(t=this._parseDate(e).getDay()-1,t===-1&&(t=6),["Mon","Tue","Wed","Thu","Fri","Sat","Sun"][t]):""},e}(),t.exports=e("error_handler").handlePublic(r)},{"./container_renderer":29,"components/modal_window/modal":54,error_handler:64,swipe_detector:76}],31:[function(e,t,n){var o,i;o=e("swipe_detector"),i=function(){function e(e,t,n,i,r){var s,a;this.callback=e,this.daysNames=t,this.sundayFirst=n,this.onlyFuture=r,s=this.marks,this.marksPrev=s[0],this.marksCurrent=s[1],this.marksNext=s[2],this.isTouchDevice||(this.isTouchDevice=o.isTouchDevice),i&&(this.prefix=i),a=new Date(Date.now()),this.todayNextYear=a.setMonth(a.getMonth()+12),document.addEventListener("touchstart",function(){},!0)}return e.prototype.prefix="",e.prototype.marks=["prev","current-date","next"],e.prototype.isTouchDevice=null,e.prototype.render=function(e,t,n,o,i){return this._buildTable(this._monthDaysArray(e,t),n,o,i,t)},e.prototype._firstDay=function(e,t){return new Date(e,t-1,1).getDay()},e.prototype._monthLength=function(e,t){return 32-new Date(e,t-1,32,10).getDate()},e.prototype._monthDaysArray=function(e,t){var n,o,i,r,s,a,d,c,l;r=l=e,n=[],o=!0,1===t?(l--,s=12,i=t+1):12===t?(r++,i=1,s=t-1):(i=t+1,s=t-1),d=this._monthLength(l,s),c=d-this._firstDay(e,t)+1-this.sundayFirst,a=d+1,c===a&&(c-=6,o=!1);for(var p=c,h=a;p<h;n.push([l,s,p++,this.marksPrev]));for(var p=1,h=this._monthLength(e,t)+1;p<h;n.push([e,t,p++,this.marksCurrent]));for(var p=1;p<14;n.push([r,i,p++,this.marksNext]));return o&&n.shift(),n},e.prototype._callbackProxy=function(e){var t;if(t=e.target,"DIV"===t.tagName&&(t=t.parentNode),!t.classList.contains("mewtwo-datepicker-prev-date")||!this.onlyFuture)return t.hasAttribute("id")&&this.callback(e.type,t)},e.prototype._buildTable=function(e,t,n,i,r){var s,a,d,c,l,p,h,u,m,_,f,g,w,b;for(g=document.createElement("table"),g.classList.add("mewtwo-datepicker-table"),g.classList.add("mewtwo-datepicker-table--"+(this.sundayFirst?"sunday-first":"normal-weekdays")),s=function(e){return function(t){return e._callbackProxy(t)}}(this),o.isTouchDevice?g.addEventListener("click",s):(g.addEventListener("click",s),g.addEventListener("mouseout",s),g.addEventListener("mouseover",s)),w=g.appendChild(document.createElement("tr")),h=_=0;_<=6;h=++_)p=w.appendChild(document.createElement("td")),p.classList.add("mewtwo-datepicker-day_name"),p.textContent=this.daysNames[h];for(l={},h=f=0;f<42;h=++f)a=e[h],a&&(h%7===0&&(p=g.appendChild(document.createElement("tr"))),d=a[0]+"-"+a[1]+"-"+a[2],u="mewtwo-datepicker-"+d,c=l[u]=p.appendChild(document.createElement("td")),m=c.appendChild(document.createElement("div")),c.setAttribute("id",u),c.setAttribute("data-date",d),m.textContent=a[2],c.className="mewtwo-datepicker-"+a[3],n||t&&(i-1>a[2]&&r>=a[1]||a[3]===this.marksPrev)||this.todayNextYear<=new Date(a[0],a[1]-1,a[2])?c.className+=" mewtwo-datepicker-prev-date":c.className+=" mewtwo-datepicker-current",b=new Date,d===b.getFullYear()+"-"+(b.getMonth()+1)+"-"+b.getDate()&&(c.className+=" mewtwo-datepicker-today"));return this.days=l,g},e}(),t.exports=e("error_handler").handlePublic(i)},{error_handler:64,swipe_detector:76}],32:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g,w,b,C,v,x,y,k,T,N,D,E,A,F,M,S,L,z=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};c="5006af9ab65897fff23508f3c3fd4f10",S=(new Date).getTime(),N="@",f=N+N+"HANDLE";try{for(x="en",document.head&&(g=document.head),g||(g=document.getElementsByTagName("head")[0]),window.mewtwoFormsInitialized||(window.mewtwoFormsInitialized=!0,(v=function(){var e,t,n,o,i;if(!window.mewtwoFormsStylesLoaded)return e="b",n=["ar","fa","ku","he"],window.mewtwoFormsStylesLoaded=!0,o=document.createElement("link"),o.setAttribute("href","//www.travelpayouts.com/mewtwo"+("a"===e?"_a":"")+"/styles"+(z.call(n,x)>=0?".rtl":"")+".css?v=002"),o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),g.appendChild(o),t=document.createElement("style"),t.type="text/css",i=".mewtwo-widget { display: none; }",t.styleSheet?t.styleSheet.cssText=i:t.appendChild(document.createTextNode(i)),g.appendChild(t)})()),s=e("jsonp"),a=e("deep_merge"),l=e("debounce"),i={URL:"//www.travelpayouts.com/widgets/",fetch:function(e,t,n){return s.get(""+this.URL+e+".json",{v:"_"+ +new Date},function(e){return t(e)},"callback","callback_"+(e+Math.round(1e6*Math.random(),10)),n)}},o={convert:function(e){var t,n,o,i,r,s,a,d,c,l,p,h;if(!e.handle&&!e.id)return e;for(l={},a=this._sameParameters,t=0,o=a.length;t<o;t++)s=a[t],"undefined"!=typeof e[s]&&(l[s]=e[s]);l.id&&(l.handle=l.id),"avia"===l.active_tab&&(l.active_tab="flights"),"hotel"===l.active_tab&&(l.active_tab="hotels"),l.tabs={},e.form_type||(e.form_type=this._getFormType(e)),"avia"!==e.form_type&&"avia_hotel"!==e.form_type||(l.tabs.flights={}),"hotel"!==e.form_type&&"avia_hotel"!==e.form_type||(l.tabs.hotels={}),d=l.tabs;for(p in d){for(h=d[p],c=this._tabParameters[p],n=0,i=c.length;n<i;n++)s=c[n],"string"==typeof s?l.tabs[p][s]=e[s]:l.tabs[p][s[0]]=e[s[1]];e.color_scheme&&(l.tabs[p].color_scheme=this._colorScheme(e)),r=this._bestOffers(e),"flights"===p?(e.trip_class&&(l.tabs[p].trip_class=e.trip_class),e.passengers&&(l.tabs[p].passengers=e.passengers),l.tabs[p].best_offers=r,e.multi_city&&(l.tabs[p].multi_city=e.multi_city),e.open_multi&&(l.tabs[p].open_multi=e.open_multi)):("hotels"===p&&e.guests&&(l.tabs[p].guests=e.guests),r.routes&&r.routes.length>0&&(l.tabs[p].best_offers=!0)),"flights"===p?(l.tabs[p].start_date=this._formatDate(e.depart_date),l.tabs[p].end_date=""===e.return_date?"":this._formatDate(e.return_date)):(l.tabs[p].start_date=this._formatDate(e.check_in_date),l.tabs[p].end_date=this._formatDate(e.check_out_date))}return l.tabs.hotels&&l.tabs.hotels.place&&l.tabs.hotels.place.location&&(l.tabs.hotels.place.location=l.tabs.hotels.place.location.replace(/^(,\s?)?/,", ")),l},_sameParameters:["segments","widget_name","border_radius","additional_marker","width","locale","active_tab","search_target","currency","show_logo","marker","handle","force_config","show_hotels","force_currency","additional_params","additional_hash","popup_open_callback","popup_close_callback"],arrayDiff:function(e,t){return e.filter(function(e){return t.indexOf(e)<0})},_formatDate:function(e){var t;if(e)return function(){var n,o,i,r;for(i=e.split("-"),r=[],n=0,o=i.length;n<o;n++)t=i[n],r.push(parseInt(t));return r}().join("-")},_getFormType:function(e){var t,n,o;return o=this.arrayDiff(Object.keys(e),this._sameParameters),t=o.filter(function(e){return e.search("hotel")!==-1}),n="avia",t.length&&(n=t.length===o.length?"hotel":"avia_hotel"),n},_tabParameters:{flights:[["host","search_host"],"origin","destination"],hotels:[["host","hotels_host"],["place","hotel"]]},_color_mapping:{icons_white:"#00B9FF",icons_blue:"#00B9FF",icons_orange:"#FFA000",icons_black:"#000000"},_colorScheme:function(e){var t;return t={},t.background=e.color_scheme.background,t.icon=this._color_mapping[e.color_scheme.icons]||e.color_scheme.icon,t.button=e.color_scheme.button,t.button_text=e.color_scheme.button_text_color,t.border=e.color_scheme.border_color,t.text=e.color_scheme.color,t.input_border=e.color_scheme.input_border===e.color_scheme.background?"#E0E0E0":e.color_scheme.input_border||"#FFFFFF",t},_bestOffers:function(e){var t;return t={},e.best_offer&&(t.routes=e.best_offer.routes),t}},M={getItem:function(e){var t,n;try{return window.localStorage.getItem(e)}catch(o){return t=o,n={msg:t.toString(),error:t},t.stack&&(n.stack=t.stack),!1}},setItem:function(e,t){var n,o;try{return window.localStorage.setItem(e,t)}catch(i){return n=i,o={msg:n.toString(),error:n},n.stack&&(o.stack=n.stack),!1}}},window.mewtwoForms||(window.mewtwoForms={forms:[],regex:/\/\/([^\.]+\.)?(travelpayouts|tp)\..{3,5}\/widgets(_generator)?\/([^\.]+)\.js(?:$|\?)|init(_\w{2})?\.js\?handle=(.+)/i,initialized:!1,logosLoading:!1,preinitTime:S,geoIPSetter:{geoData:{},callbacks:{},initData:function(e){var t,n;try{this.geoData[e]=M.getItem(this.locale+"МewtwoGeoData"),this.geoData[e]&&(this.geoData[e]=JSON.parse(this.geoData[e]))}catch(o){t=o,this.geoData[e]=null}if(!this.geoData[e])return n=document.createElement("script"),this["lang_"+e]=function(t){return function(n){return t.setGeoData(n,e)}}(this),n.setAttribute("src","//www.travelpayouts.com/whereami?locale="+e+"&callback=mewtwoForms.geoIPSetter.lang_"+e),g.appendChild(n)},setGeoData:function(e,t){if(e&&e.name)return this.geoData[t]=e,Storage&&M.setItem(t+"mewtwoGeoData",JSON.stringify(e)),l(function(e){return function(){var n,o,i,r,s;if(e.callbacks[t]){for(r=e.callbacks[t],s=[],o=0,i=r.length;o<i;o++)n=r[o],s.push(n(e.geoData[t]));return s}}}(this),300)()},fill:function(e,t){var n;return this.geoData[t]?e(this.geoData[t]):((n=this.callbacks)[t]||(n[t]=[]),this.callbacks[t].push(e))}}}),r=e("form"),L=function(e){var t,n;return e.tabs&&e.tabs.flights?(t={name:"",iata:"",country_name:""},n=a.deepMerge(e),e.tabs.flights.origin&&e.tabs.flights.origin.iata&&(n.tabs.flights.origin=a.deepMerge(t,e.tabs.flights.origin)),e.tabs.flights.destination&&e.tabs.flights.destination.iata&&(n.tabs.flights.destination=a.deepMerge(t,e.tabs.flights.destination)),e.multi_city&&(n.tabs.multi_city=e.multi_city),n):e},D=function(e,t,n){var o,i,r,s,a;return e?(o=function(){var t,n,o,i;for(o=e.split("-"),i=[],t=0,n=o.length;t<n;t++)s=o[t],i.push(parseInt(s));return i}().join("-"),r=new Date,i=new Date(r.getFullYear(),r.getMonth(),r.getDate()),a=new Date(i.valueOf()-864e5),new Date(o)<(n?i:a)&&(o=new Date(+i+1e3*t*60*60*24),o=o.getFullYear()+"-"+("0"+(o.getMonth()+1)).slice(-2)+"-"+o.getDate()),o):e},h=function(e){var t,n,o,i,r;if(e&&e.tabs&&(e.tabs.flights&&(e.tabs.flights.start_date=D(e.tabs.flights.start_date,7,0),e.tabs.flights.end_date=D(e.tabs.flights.end_date,14,0)),e.tabs.hotels&&(e.tabs.hotels.start_date=D(e.tabs.hotels.start_date,7,0),e.tabs.hotels.end_date=D(e.tabs.hotels.end_date,14,0))),e&&e.segments)for(t=0,i=e.segments,n=0,o=i.length;n<o;n++)r=i[n],r.date=D(r.date,7+ ++t,0);return e},E=document.getElementsByTagName("script"),b=0,C=E.length;b<C;b++)if(A=E[b],y=window.mewtwoForms.regex.exec(A.getAttribute("src"))){if(A.getAttribute("initialized"))continue;if(_=y[4]||y[6],c!==f&&_!==c)continue;A.setAttribute("initialized",!0),w=document.body.getAttribute("data-inited_widgets"),w=w?w+","+_:_,document.body.setAttribute("data-inited_widgets",w),T=!1,window.TP_FORM_SETTINGS&&(u=window.TP_FORM_SETTINGS[_])&&(T=u.tabs?u:o.convert(u)),T&&(T=h(T)),T&&T.force_config?(window.mewtwoForms.geoIPSetter.initData(x),window.mewtwoForms.forms.push(new r(A,_,T))):(d={"handle":"5006af9ab65897fff23508f3c3fd4f10","border_radius":"2","currency":"usd","show_logo":false,"locale":"en","width":900,"search_target":"_blank","show_hotels":false,"marker":"134974","active_tab":"flights","tabs":{"flights":{"host":"demoflights.travsellpro.com/flights","origin":null,"destination":null,"start_date":null,"end_date":null,"best_offers":{"routes":[]},"color_scheme":{"background":"#ffffff","icon":"#00B9FF","button":"#1b9ed9","button_text":"#ffffff","border":"#c1c1c1","text":"#000000","input_border":"#ffffff"}},"hotels":{"host":"demohotels.travsellpro.com/hotels","place":"","start_date":null,"end_date":null,"best_offers":false,"color_scheme":{"background":"#ffffff","icon":"#00B9FF","button":"#1b9ed9","button_text":"#ffffff","border":"#c1c1c1","text":"#000000","input_border":"#ffffff"}}}},"string"!=typeof d?(F=d,T&&T.tabs&&(T.tabs.flights&&(T.tabs.flights.origin&&void 0!==T.tabs.flights.origin.name&&void 0===T.tabs.flights.origin.country_name&&(T.tabs.flights.origin.country_name=""),T.tabs.flights.destination&&void 0!==T.tabs.flights.destination.name&&void 0===T.tabs.flights.destination.country_name&&(T.tabs.flights.destination.country_name="")),F=a.deepMerge(F,L(T))),F.locale||(F.locale="ru"),window.mewtwoForms.geoIPSetter.initData(x),window.mewtwoForms.forms.push(new r(A,_,F))):(m=function(e){return function(t){return F=o.convert(t),T&&(F=a.deepMerge(F,L(T))),F.locale||(F.locale="ru"),F=h(F),window.mewtwoForms.geoIPSetter.initData(x),window.mewtwoForms.forms.push(new r(e,_,F))}},i.fetch(_,m(A),function(e){return F={tabs:{flights:{}}},T&&(F=a.deepMerge(F,L(T))),F.locale||(F.locale="ru"),window.mewtwoForms.geoIPSetter.initData(x),window.mewtwoForms.forms.push(new r(A,_,F))})))}}catch(O){throw p=O,k={msg:p.toString(),error:p},p.stack&&(k.stack=p.stack),p}},{debounce:62,deep_merge:63,form:55,jsonp:69}],33:[function(e,t,n){t.exports={deepMerge:function(){var e,t,n,o,i,r;for(i={},e=0,n=arguments.length;e<n;e++){o=arguments[e];for(t in o)r=o[t],i[t]=r&&r.constructor===Object?this.deepMerge(i[t],r):r}return i}}},{}],34:[function(e,t,n){t.exports={silent_metrics:!1,currency:"rub",locale:"ru",marker:"mewtwo",border_radius:0,show_logo:!0,active_tab:"flights",width:100500,search_target:"_blank",show_hotels:!0,force_currency:!0,tabs:{flights:{tab_name:"flights",name:"FLIGHTS",host:"hydra.aviasales.ru",origin:{name:"",iata:"",country_name:""},destination:{name:"",iata:"",country_name:""},depart_date:{value:"",formatted:"",weekday:""},return_date:{value:"",formatted:"",weekday:""},color_scheme:{background:"#00b1dd",text:"#FFF",border:"#00b1dd",button:"#ffa600",icon:"#00b1dd",button_text:"#fff",input_border:"#ffffff"},passengers:{adults:1,children:0,infants:0},trip_class:"economy",multi_city:!1},hotels:{tab_name:"hotels",name:"HOTELS",host:"https://search.indior.tours",place:{name:"Hilton",location:", USA",city:"Phuket",country:"TH",id:132123},check_in:"",check_out:"",guests:{adults:2,children:0,children_age:[]},color_scheme:{background:"#78b935",text:"#FFF",border:"#78b935",button:"#ffa600",icon:"#78b935",button_text:"#fff",input_border:"#ffffff"}}}}},{}],35:[function(e,t,n){var o=e("./lib/detectBrowser");t.exports=o(navigator.userAgent)},{"./lib/detectBrowser":36}],36:[function(e,t,n){t.exports=function(e){var t=[["edge",/Edge\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/]];return t.map(function(t){if(t[1].test(e)){var n=t[1].exec(e),o=n&&n[1].split(/[._]/).slice(0,3);return o&&o.length<3&&Array.prototype.push.apply(o,1==o.length?[0,0]:[0]),{name:t[0],version:o.join(".")}}}).filter(Boolean).shift()}},{}],37:[function(e,t,n){!function(e,o){if("object"==typeof n&&"object"==typeof t)t.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var i=o();for(var r in i)("object"==typeof n?n:e)[r]=i[r]}}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o,i;o=n(7),i=function(){return i.queue=i.queue||[],i.queue.push(arguments)},o(i,function(e){return i=e}),e.exports=function(){return i.apply(null,arguments)}},function(e,t){e.exports=function(e){var t,n,o;for(o="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<e;)o+=n.charAt(Math.floor(Math.random()*n.length)),t++;return o}},function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g,w;_=n(3),p=_.merge,m=_.partial,l=n(1),w=n(9),o=function(){return"https://mamka.aviasales.ru"}(),r=4,i=100,s=5,d=function(e){var t,n;return function(){var o;o=[];for(t in e)n=e[t],o.push(t+"="+encodeURIComponent(n));return o}().join("&")},c=function(){return{mamka_version:w,mamka_utc_datetime:(new Date).toISOString()}},u=function(e,t,n){return function(){var o;return e<r?(o=Math.pow(s,e)*i,setTimeout(n,o)):t?t():void 0}},f=function(e,t,n,i){var r,s,a,l;return null==i&&(i=0),s=p(t,c()),i>0&&(s.mamka_attempts=i),l=o+"/"+e+"?"+d(s),r=new Image,r.addEventListener("load",n),r.addEventListener("abort",n),a=m(f,e,t,n,i+1),r.addEventListener("error",u(i,n,a)),r.setAttribute("src",l)},g=function(e,t,n,i,r){var s,a,h,_;return null==r&&(r=0),s="mamka_get_param_"+l(6),window[s]=n,_=document.createElement("script"),a=p({callback:s},t,c()),r>0&&(a.mamka_attempts=r),_.src=o+"/"+e+"?"+d(a),_.async=!0,_.addEventListener("load",i),_.addEventListener("abort",i),h=m(g,e,t,n,i,r+1),_.addEventListener("error",u(r,i,h)),document.getElementsByTagName("head")[0].appendChild(_)},window.mamka_queue=window.mamka_queue||{tasks:[],is_processing:!1},h=function(){var e;return e=window.mamka_queue.tasks.shift(),e?e():window.mamka_queue.is_processing=!1},a=function(e){if(window.mamka_queue.tasks.push(e),!window.mamka_queue.is_processing)return window.mamka_queue.is_processing=!0,h()},e.exports={send_data_via_queue:function(e,t){return a(m(f,e,t,h))},get_params_via_queue:function(e,t){return a(m(g,"get_params",e,t,h))},send_via_image:f,send_via_script:g}},function(e,t){var n=[].slice;e.exports={merge:function(){var e,t,n,o,i,r,s;for(r={},i=Array.prototype.slice.call(arguments,0).reverse(),e=0,n=i.length;e<n;e++){o=i[e];for(t in o)s=o[t],r[t]=s}return r},partial:function(){var e,t;return t=arguments[0],e=2<=arguments.length?n.call(arguments,1):[],function(){var e;return e=1<=arguments.length?n.call(arguments,0):[],function(){return t.apply(null,e)}}.apply(null,e)}}},function(e,t,n){var o,i,r,s,a;r=n(1),s=function(e){var t;return t=document.cookie.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)")),t?t[1]:null},a=function(e,t,n,o){var i;if(i="",n)switch(typeof n){case"number":i="; max-age="+n;break;case"string":i="unlimited"===n?"; expires=Fri, 10 Jul 2099 13:05:42 UTC":"; expires="+n;break;case"object":n.toGMTString&&(i="; expires="+n.toGMTString())}document.cookie=encodeURIComponent(e)+"="+t+i+(o&&"localhost"!==o?"; domain="+o:"")+"; path=/"},i=function(){var e,t,n,o,i,d,c,l,p;for(n=window.location.hostname.split("."),c=n.length,t=[n[c-1]],e="mtdc_"+r(5),o=new Date((new Date).getTime()+2e4),d=i=2,l=c;2<=l?i<=l:i>=l;d=2<=l?++i:--i)if(t.unshift(n[c-d]),p="."+t.join("."),a(e,"true",o,p),s(e))return p;return null},o=i(),e.exports={get:s,set:function(e,t,n,i){return null==i&&(i=o),a(e,t,n,i)},is_supported:function(){return Boolean(o)}}},function(e,t){var n,o=function(e,t){return function(){return e.apply(t,arguments)}};n=function(){function e(e){this.options=e,this.dump_data=o(this.dump_data,this),this.bind_events()}return e.prototype.evetns_data={},e.prototype.total_events_count=0,e.prototype.dump_data=function(){return console.log(this.get_clean_events())},e.prototype.get_clean_events=function(){var e,t,n,o;n={},t=this.evetns_data;for(e in t)o=t[e],o&&(n[e]=o);return n},e.prototype.bind_events=function(){return this.bind_other_events()},e.prototype.bind_other_events=function(){var e,t,n,o,i,r;for(r={mousemove:.02,scroll:.01,touchmove:.01},t=["click","blur","change","dblclick","focus","input","keypress","wheel","keyup","mousedown","mouseenter","mouseleave","mousemove","scroll","touchcancel","touchend","touchenter","touchleave","touchmove","touchstart","transitionend"],i=[],n=0,o=t.length;n<o;n++)e=t[n],i.push(document.addEventListener(e,function(e){return function(t){return function(n){return e.evetns_data[t]||(e.evetns_data[t]=0),e.evetns_data[t]+=r[t]||1,e.total_events_count+=r[t]||1}}}(this)(e)));return i},e.prototype.bind_mousemove=function(){return this.evetns_data.mousemove={movementX:0,movementY:0},document.addEventListener("mousemove",function(e){return function(t){return e.evetns_data.mousemove.movementX+=Math.abs(t.movementX),e.evetns_data.mousemove.movementY+=Math.abs(t.movementX)}}(this))},e.prototype.get_and_reset_events_count=function(){var e,t;return e=this.total_events_count,t=Object.create(this.evetns_data),this.evetns_data={},this.total_events_count=0,[e,t]},e}(),e.exports=n},function(e,t,n){var o,i,r,s,a,d,c;r=n(2),s=n(4),c=n(3).merge,d=n(1),o=30,i=32,a=function(e,t){var n,r,a,c,l,p,h,u,m,_,f;for(_={},n=s.get("mamka_auid"),n?(c=n.match(RegExp('^"(.+)"$')),c&&(n=c[1],s.set("mamka_auid",n,"unlimited"))):(n=d(24),s.set("mamka_auid",n,"unlimited"),_.mamka_set_auid=1),_.mamka_auid=n,h=["","_"+e],t&&h.push("_"+t),a=0,l=h.length;a<l;a++)p=h[a],m="mamka_session_id"+p,s.get(m)?u=s.get(m):(u=d(i),_["mamka_set_session_id"+p]=1),_[m]=u,r=new Date((new Date).getTime()+60*o*1e3),s.set(m,u,r);return _.mamka_user_projects=s.get("mamka_user_projects"),f=s.get("mamka_user_projects"),f=f?f.split(","):[],f.indexOf(e)===-1&&f.push(e),t&&f.indexOf(t)===-1&&f.push(t),s.set("mamka_user_projects",f.join(","),"unlimited"),_},e.exports=function(e,t){return{send_data_via_queue:function(n,o){var i;return i=a(e,t),r.send_data_via_queue(n,c(o,i))},get_params_via_queue:function(n,o){var i;return i=a(e,t),r.get_params_via_queue(c(n,i),o)}}}},function(e,t,n){var o,i,r,s,a;o=n(8),i=n(2),s=null,a=function(){return"create"===arguments[0]?s=new o(window.mamka_tpc,arguments[1]):null!=s?s[arguments[0]].apply(s,Array.prototype.slice.call(arguments,1)):console.error('[mamka] Put "create" action first')},r=function(e,t,n){var o,i,r,s;if(t.queue)for(s=t.queue,i=0,r=s.length;i<r;i++)o=s[i],a.apply(null,o);return n(a)},e.exports=function(e,t){var n;switch(window.mamka_tpc){case void 0:return window.mamka_tpc=null,i.send_via_image("third_party_cookies/set",{},function(){return i.send_via_script("third_party_cookies/check",{},function(n){return window.mamka_tpc=n,r(n,e,t)})});case null:return n=setInterval(function(){if("boolean"==typeof window.mamka_tpc)return clearInterval(n),r(window.mamka_tpc,e,t)},50);case!0:case!1:return r(window.mamka_tpc,e,t)}}},function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m=function(e,t){function n(){this.constructor=e}for(var o in t)_.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},_={}.hasOwnProperty;u=n(3).merge,h=n(1),o=n(5),p=n(4),d=n(2),l=n(6),s=32,a=.05,c=function(e,t){return e?e:"m_ru"===t||"m_aviasales"===t||"explosion"===t||"engine_latest_prices"===t?"aviasales_group":0===t.lastIndexOf("aviasales_")&&"aviasales_map_affiliate"!==t?"aviasales_group":"jetradar"===t||"Jetradar"===t||"Jetradar_content"===t||"Jetradar_helios"===t||"jetradar_ota"===t||"jetradar_rails"===t||"jr_blog"===t||"makmak"===t?"jetradar_group":0===t.lastIndexOf("m_jr_")?"jetradar_group":("indiortours"===t||"product_hunt_com"===t||"product_hunt_ru"===t)&&"indiortours_group"},r=function(){function e(){console.log("[mamka] turn on cookies supporting")}return e.prototype.send_page_view=function(){},e.prototype.send_event=function(){},e.prototype.get_params=function(e){return e({})},e}(),i=function(e){function t(e,t){var n;this.third_party_cookies_is_supported=e,this.options=t,this.bot_detector=new o(this.options),n={auto_page_views:!0,project_name:window.location.hostname,brand_names:!1,group_name:!1},this.options=u(this.options,n),this.options.group_name=c(this.options.group_name,this.options.project_name),this.options.auto_page_views&&this.send_page_view({})}return m(t,e),t.prototype.last_page_view=null,t.prototype.auid=null,t.prototype.session_id=null,t.prototype.client=function(){var e;return e=this.third_party_cookies_is_supported?d:l(this.options.project_name,this.options.group_name),this.client=function(){return e},e},t.prototype.send_page_view=function(e){var t,n,o;if(o=e.url,n=e.meta,this.last_page_view=h(s),t={goal:"mamka_page_view",project_name:this.options.project_name,page_view_id:this.last_page_view,url:o||window.location.href,referer:document.referrer,data:{viewport_size:{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}},this.options.brand_names&&(t.brand_names=this.options.brand_names),this.options.group_name&&(t.group_name=this.options.group_name),n&&(t.data.meta=n),t.data=JSON.stringify(t.data),this.client().send_data_via_queue("event",t),this._should_send_timings())return this._send_timings()},t.prototype.send_event=function(e){var t,n,o,i,r,s,a;if(s=e.name,r=e.meta,!s)throw new Error("Event name is missed");return n={goal:s,project_name:this.options.project_name,url:window.location.href,referer:document.referrer},this.options.brand_names&&(n.brand_names=this.options.brand_names),this.options.group_name&&(n.group_name=this.options.group_name),a=this.bot_detector.get_and_reset_events_count(),o=a[0],i=a[1],t=p.get("marker"),r=r||{},"[object Object]"===Object.prototype.toString.call(r)&&(r.mamka_user_events_count=o,t&&(r.mamka_cookie_marker=t)),n.data=JSON.stringify(r),this.last_page_view&&(n.page_view_id=this.last_page_view),this.client().send_data_via_queue("event",n)},t.prototype._should_send_timings=function(){return Math.random()<a&&this.last_page_view&&window.performance&&window.performance.timing},t.prototype._send_timings=function(){var e,t;return t=this,e=function(){return setTimeout(function(){var e,n,o,i,r,s;for(s=window.performance.timing,r={page_view_id:t.last_page_view,domInteractive:s.domInteractive-s.domLoading,domComplete:s.domComplete-s.domLoading},i=["connect","domContentLoadedEvent","domainLookup","loadEvent","redirect","response","unloadEvent"],e=0,n=i.length;e<n;e++)o=i[e],r[o]=s[o+"End"]-s[o+"Start"];return t.send_event({name:"mamka_window_perfomance",meta:r})},100)},"complete"===document.readyState?e():window.addEventListener("load",e,!1)},t.prototype.get_params=function(e){var t;return t={project_name:this.options.project_name},this.options.group_name&&(t.group_name=this.options.group_name),this.client().get_params_via_queue(t,e)},t}(r),e.exports=p.is_supported()?i:r},function(e,t){e.exports="0.0.13"}])})},{}],38:[function(e,t,n){!function(e){function n(){this.parent=null,this.nested=[],this.nodes=[],this.filters=null,this.directives=null,this.context=null,this.unbind=null,this.onRender=null,this.onUpdate=null,this.onRemove=null}function o(){this.items=Object.create(null),this.length=0,this.next=0}function i(e,t,n,o){if(o){var i={__index__:n};return i[o.value]=e[n],o.key&&(i[o.key]=n),i}return e[n]}function r(e,t,n,o){if(o){var i={__index__:n};return i[o.value]=e[t[n]],o.key&&(i[o.key]=t[n]),i}return e[t[n]]}n.render=function(e,t,n){var o;return o=n&&n.noCache?new e:e.pool.pop()||new e,8==t.nodeType?o.insertBefore(t):o.appendTo(t),n&&(n.parent&&(o.parent=n.parent),n.context&&(o.context=n.context),n.filters&&(o.filters=n.filters),n.directives&&(o.directives=n.directives)),o.onRender&&o.onRender(),o},n.prerender=function(e,t){for(;t--;)e.pool.push(new e)},n.loop=function(e,t,o,s,a,d){var c,l,p,h,u,m,_=o.length;Array.isArray(a)?(u=i,m=a.length):(u=r,h=Object.keys(a),m=h.length),p=_-m;for(c in o.items){if(!(p-- >0))break;o.items[c].remove()}l=0;for(c in o.items)o.items[c].__state__=u(a,h,l,d),l++;for(l=_,p=m;l<p;l++){var f=n.render(s,t,{parent:e,context:e.context,filters:e.filters,directives:e.directives});e.nested.push(f),c=o.push(f),f.unbind=function(e){return function(){o.remove(e)}}(c),f.__state__=u(a,h,l,d)}},n.cond=function(e,t,o,i,r){if(o.ref)r||o.ref.remove();else if(r){var s=n.render(i,t,{parent:e,context:e.context,filters:e.filters,directives:e.directives});e.nested.push(s),o.ref=s,s.unbind=function(){o.ref=null}}return r},n.insert=function(e,t,o,i,r){if(o.ref)o.ref.update(r);else{var s=n.render(i,t,{parent:e,context:e.context,filters:e.filters,directives:e.directives});e.nested.push(s),o.ref=s,s.unbind=function(){o.ref=null},s.update(r)}},n.prototype.remove=function(){for(var e=this.nodes.length;e--;)this.nodes[e].parentNode.removeChild(this.nodes[e]);for(this.unbind&&this.unbind(),e=this.nested.length;e--;)this.nested[e].remove();this.parent&&(e=this.parent.nested.indexOf(this),this.parent.nested.splice(e,1),this.parent=null),this.onRemove&&this.onRemove(),this.constructor.pool.push(this)},n.prototype.appendTo=function(e){for(var t=0,n=this.nodes.length;t<n;t++)e.appendChild(this.nodes[t])},n.prototype.insertBefore=function(e){if(!e.parentNode)throw new Error("Can not insert child view into parent node. You need append your view first and then update.");for(var t=0,n=this.nodes.length;t<n;t++)e.parentNode.insertBefore(this.nodes[t],e); },n.prototype.createDocument=function(){if(1==this.nodes.length)return this.nodes[0];for(var t=e.createDocumentFragment(),n=0,o=this.nodes.length;n<o;n++)t.appendChild(this.nodes[n]);return t},n.prototype.querySelector=function(e){for(var t=0;t<this.nodes.length;t++){if(this.nodes[t].matches&&this.nodes[t].matches(e))return this.nodes[t];if(8===this.nodes[t].nodeType)throw new Error("Can not use querySelector with non-element nodes on first level.");if(this.nodes[t].querySelector){var n=this.nodes[t].querySelector(e);if(n)return n}}return null},o.prototype.push=function(e){return this.items[this.next]=e,this.length+=1,this.next+=1,this.next-1},o.prototype.remove=function(e){if(!(e in this.items))throw new Error('You are trying to delete not existing element "'+e+'" form map.');delete this.items[e],this.length-=1},o.prototype.forEach=function(e){for(var t in this.items)e(this.items[t])},n.Map=o,"undefined"!=typeof t?t.exports=n:window.Monkberry=n}(window.document)},{}],39:[function(e,t,n){var o,i,r=function(e,t){function n(){this.constructor=e}for(var o in t)s.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;i=e("blocks/best_offers/best_offers"),o=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return r(t,e),t.prototype._templateName=function(){return"avia_best_offers"},t.prototype._bestOffersEnabled=function(){return this.settings.best_offers&&this.settings.best_offers.routes&&this.settings.best_offers.routes.length},t.prototype._fetchBestOffers=function(e){var t,n,o,i,r,s,a,d,c,l;if(t=[],s=[],this.settings.best_offers instanceof Object){for(a=this.settings.best_offers.routes,d=[],o=0,i=a.length;o<i;o++)c=a[o],n=c.destination_iata||c.destination&&c.destination.iata||"",r=c.origin_iata||c.origin&&c.origin.iata||"",l=["https://www.travelpayouts.com/minimal_prices/offers.json?","currency="+this.settings.currency+"&destination_iata="+n+"&locale="+("ru"!==this.settings.locale?"en":"ru"),"&one_way="+!!c.one_way+"&origin_iata="+r].join(""),s.push(l),d.push(this._get(l,function(n){return function(o,i){var r,a,d,p,h,u,m;if(s.splice(s.indexOf(l),1),200===o){for(t=t.concat(i.offers),m={},u=[],p=0,h=t.length;p<h;p++)c=t[p],d=[c.origin_iata,c.destination_iata,c.value].join(""),m[d]||(c.flights_type=c.return_date&&""!==c.return_date?"rt":"ow",c.link=n._searchLink(c),c.price.currency=n.settings.currency,m[d]=!0,u.push(c));return u=n._shuffleArray(u).slice(0,n.best_offers_max_count),0===s.length&&u.length<5&&(u=n._cloningOffers(u)),a={best_offers:u},r=[a,a],e({best_offers_list:r},u.length)}}}(this)));return d}},t.prototype._searchLink=function(e){var t,n;return n={locale:this.settings.locale,marker:this.settings.marker,currency:this.settings.currency,depart_date:e.depart_date,origin_iata:e.origin_iata,destination_iata:e.destination_iata,with_request:!0},e.return_date?n.return_date=e.return_date:n.one_way=!0,t=this.settings.host&&this.settings.host.replace(/^(https?:)?\/\//,"")||"hydra.aviasales.ru","//"+t+("/searches/new?"+this._toUrlParam(n))},t}(i),t.exports=e("error_handler").handlePublic(o)},{"blocks/best_offers/best_offers":40,error_handler:64}],40:[function(e,t,n){var o,i,r,s,a,d,c,l;a=e("best_offers_stub"),s=e("templates"),l={avia_best_offers:{template:e("blocks/best_offers/avia_best_offers.monk"),styles:e("blocks/best_offers/avia_best_offers_style.monk")},hotels_best_offers:{template:e("blocks/best_offers/hotels_best_offers.monk"),styles:e("blocks/best_offers/hotels_best_offers_style.monk")}},r=e("deep_merge"),d=e("color_utils"),i=e("browser"),c=e("is_mobile"),o=function(){function e(e,t){var n,o,i;this.settings=r.deepMerge(t),this.settings.show_hotels_modifier="",this.settings.offers_modifier="",!c&&this.settings.show_hotels||(this.settings.show_hotels_modifier=" mewtwo-best_offers--show_hotels_hidden"),this._bestOffersEnabled()||(this.settings.offers_modifier=" mewtwo-best_offers--hidden"),this.settings.color_scheme.icon=this.settings.color_scheme.icon.replace(/#/,""),this.settings.color_scheme.text=this.settings.color_scheme.text.replace(/#/,""),o=this.settings.color_scheme.background,this.settings.color_scheme.gradient={background:"transparent",background_rgba:"transparent",modifier:" mewtwo-best_offers--transparent"},o&&"transparent"===o||o.split(",").length>3&&"0)"===o.split(",")[3].trim()||(this.settings.color_scheme.gradient={background:o,background_rgba:d.hexToRgba(o,0),modifier:""}),n={settings:this.settings},i=l[this._templateName()],this.template=s(i.template,n,e),this.templateStyles=s(i.styles,n,document.head),this._fetchBestOffers(function(e){return function(t,n){return t.animation_time={vertical:n*e.animation_durations_for_one_route.vertical,horizontal:n*e.animation_durations_for_one_route.horizontal},e.templateStyles&&e.templateStyles.update(t),e.template.update(t)}}(this))}return e.prototype.currency_map={"р.":"rub",$:"usd"},e.prototype.animation_durations_for_one_route={vertical:1.2,horizontal:6},e.prototype.best_offers_max_count=20,e.prototype._bestOffersEnabled=function(){throw"BestOffers: Not implemented error"},e.prototype._fetchBestOffers=function(e){throw"BestOffers: Not implemented error"},e.prototype._searchLink=function(e){throw"BestOffers: Not implemented error"},e.prototype._templateName=function(){throw"BestOffers: Not implemented error"},e.prototype._cloningOffers=function(e){var t,n,o,i,r;for(n=5,t=[],o=i=1,r=n+1-e.length;1<=r?i<=r:i>=r;o=1<=r?++i:--i)t=[].concat(t,e);return[].concat(t)},e.prototype._get=function(e,t){var n;if(!i.isIE())return n=new XMLHttpRequest,n.open("GET",e,!0),n.onreadystatechange=function(e){return function(){var e;if(n.readyState===n.DONE)return e=200===n.status?JSON.parse(n.responseText):[],t(n.status,e)}}(this),n.send()},e.prototype._toUrlParam=function(e){var t,n,o;n=[];for(t in e)o=e[t],n.push(t+"="+encodeURIComponent(o));return n.join("&")},e.prototype._shuffleArray=function(e){var t,n,o;for(t=e.length;t;)n=Math.floor(Math.random()*t),o=e[--t],e[t]=e[n],e[n]=o;return e},e}(),t.exports=e("error_handler").handlePublic(o)},{best_offers_stub:57,"blocks/best_offers/avia_best_offers.monk":1,"blocks/best_offers/avia_best_offers_style.monk":2,"blocks/best_offers/hotels_best_offers.monk":3,"blocks/best_offers/hotels_best_offers_style.monk":4,browser:58,color_utils:61,deep_merge:63,error_handler:64,is_mobile:68,templates:77}],41:[function(e,t,n){var o,i,r=function(e,t){function n(){this.constructor=e}for(var o in t)s.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;o=e("blocks/best_offers/best_offers"),i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return r(t,e),t.prototype._templateName=function(){return"hotels_best_offers"},t.prototype._bestOffersEnabled=function(){return this.settings.best_offers},t.prototype._fetchBestOffers=function(e){var t,n;return t=[],n=["https://indior.tours/tp/v1/locations_top.json?","limit=20&currency="+this.settings.currency+"&language="+this.settings.locale].join(""),this._get(n,function(n){return function(o,i){var r,s,a,d,c,l,p;for(l=i.locations_top,l.length<5&&(t=n._cloningOffers(t)),p=[],a=0,d=l.length;a<d;a++)c=l[a],c.link=n._searchLink(c),c.currency=n.settings.currency,c.price_from=Math.round(c.price_from);return l=n._shuffleArray(l).slice(0,n.best_offers_max_count),s={best_offers:l},r=[s,s],e({best_offers_list:r},l.length)}}(this))},t.prototype._searchLink=function(e){var t,n,o;return t=+new Date(e.search_info.date)+86400*e.search_info.nights*1e3,t=new Date(t),t=t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+t.getDate(),o={language:this.settings.locale,marker:this.settings.marker,currency:this.settings.currency,cityId:e.id,destination:e.name,checkIn:e.search_info.date||"",checkOut:t||""},n=this.settings.host&&this.settings.host.replace(/^(https?:)?\/\//,"")||"search.indior.tours","//"+n+("/?"+this._toUrlParam(o)+"#selection="+(e.search_info.hotelId||""))},t}(o),t.exports=e("error_handler").handlePublic(i)},{"blocks/best_offers/best_offers":40,error_handler:64}],42:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g,w,b,C,v=function(e,t){function n(){this.constructor=e}for(var o in t)x.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},x={}.hasOwnProperty;u=e("templates"),b=e("blocks/flights/flights.monk"),C=e("blocks/flights/flights_style.monk"),_=e("color_utils"),c=e("deep_merge"),r=e("blocks/best_offers/best_offers"),i=e("blocks/best_offers/avia_best_offers"),d=e("lib/form"),w=e("pluralisation"),p=e("blocks/passengers/passengers"),o=e("components/autocomplete/fetchers/avia_fetcher"),l=e("metrics"),g=e("geoip"),h=e("pointer_events"),m=e("viewport"),s=e("clicktripz"),f=e("filters"),l.setup({prefix:"mewtwo_"}),a=function(e){function t(e,n){var r,a,d,m;t.__super__.constructor.call(this,e,n),this.submited=!1,this.mouseenter=!1,this.autocompletes={},this.eventType="avia",this.initSettings(),l.addTiming("pre_init",this.settings.handle,window.mewtwoForms.preinitTime),d=c.deepMerge({firstDate:{},secondDate:{},firstDateFocused:"",secondDateFocused:"",secondDateModifier:""},this.settings),this.template=u(b,d,this.wrapper,{filters:{commaFirst:f.commaFirst}}),this.settings.color_scheme.multi_icon=this.settings.color_scheme.text.replace(/#/,""),u(C,this.settings,document.head),this.form=this.template.querySelector("form"),this.submit=this.template.querySelector("[role=flights_submit]"),r=this.template.querySelector('[role="flights"]'),new i(r,this.settings),this.passengersTrigger=this.template.querySelector('[role="passengers"]'),new p(this.passengersTrigger,this.settings,function(e){return function(t,n,o,i){return i&&l.sendOnce("passengers_interact",{form_id:e.settings.handle}),e.setPassengers(t,n,o)}}(this)),this.fetcher=["ru","uk"].indexOf(this.settings.locale)!==-1?"fetchRu":"fetchEn",a=this.wrapper.parentNode,this.setModifier(a,this.findWidthParentNode(a)),this.setPassengers(this.sumPassengers(this.settings.passengers),this.settings.trip_class),this.fetcher=o[this.fetcher](this.settings.locale),this.initAutocomplete("flights-origin",this.fetcher,"origin"),this.autocompletes["flights-origin"].node.addEventListener("input",function(e){return function(){return e._checkPlacesEquality()}}(this)),this.initAutocomplete("flights-destination",this.fetcher,"destination"),this.autocompletes["flights-destination"].node.addEventListener("input",function(e){return function(){return e._checkPlacesEquality()}}(this)),this.placeWithoutName(this.settings.origin)?(m=this.settings.origin.name||this.settings.origin.iata,this.fillInputByIncompleteData(m,"flights-origin","origin")):g.fill(function(e){return function(t){var n,o;if(o=e.autocompletes["flights-origin"].node.value,n=e.autocompletes["flights-origin"].rightBlockNode.textContent,t)return o&&""!==o||n&&""!==n||t.iata===(e.settings.destination&&e.settings.destination.iata)?void 0:(e.setAutocompleteData("flights-origin",t,"origin"),e.sendCustomEvent("fill_"+e.settings.handle,e.autocompletes["flights-origin"].node))}}(this),this.settings.locale),m=this.settings.destination.name||this.settings.destination.iata,this.placeWithoutName(this.settings.destination)&&this.fillInputByIncompleteData(m,"flights-destination","destination"),this.initDatepicker(["flights-dates-depart","flights-dates-return"],this.template),this.setClearReturn(),this.initMetricsListeners(),h.fix(e),this.settings.skip_highlight||this.initHover(),this.settings.show_hotels&&setTimeout(function(){return s.loadScript()},1e3),this.settings.open_multi&&setTimeout(function(e){return function(){return e.openMulti()}}(this),100),this.template.querySelector('[role="swap_button"]').addEventListener("click",function(e){return function(){return e.swapPlaces()}}(this)),this.settings.multi_city&&this.template.querySelector('[role="show_flights_multi"]').addEventListener("click",function(e){return function(t){return e.openMulti()}}(this))}return v(t,e),t.prototype.headerClassname="mewtwo-flights-header",t.prototype.firstDateFocused="mewtwo-flights-dates-depart--focused",t.prototype.secondDateFocused="mewtwo-flights-dates-return--focused",t.prototype.secondDateModifier="mewtwo-flights-dates-return--filled",t.prototype.modifiers={"mewtwo-flights--xl":[1e3,9e3],"mewtwo-flights--l":[660,1e3],"mewtwo-flights--m":[460,660],"mewtwo-flights--s":[300,460],"mewtwo-flights--xs":[0,300]},t.prototype.openMulti=function(){var e;return this.settings.widget.forms.flights_multi||(e=c.deepMerge(this.settings,{hidden_tab:!0,linked_tab:"flights",defaults:{}}),this.settings.open_multi?(e.origin={iata:this.settings.origin.iata,name:this.settings.origin.name},e.destination={iata:this.settings.destination.iata,name:this.settings.destination.name},e.date=this.settings.start_date):(this.origin&&(e.defaults.origin=this.origin),this.destination&&(e.defaults.destination=this.destination),this.firstDate&&(e.defaults.date=this.firstDate)),this.settings.widget.initForm("flights_multi",e),this.settings.widget.renderTabs()),this.settings.widget.tabs.activate("flights_multi")},t.prototype.onInteract=function(){var e;t.__super__.onInteract.call(this);try{if(this.settings.show_hotels)return new s("flights"+this.settings.handle,this.ctOptions())}catch(n){return e=n,!0}},t.prototype.placeWithoutName=function(e){return(!e.name||!e.country_name)&&e.iata},t.prototype.sendCustomEvent=function(e,t){var n;if(window.CustomEvent)return n=document.createEvent("Event"),n.initEvent(e,!0,!1),t.dispatchEvent(n)},t.prototype.fillInputByIncompleteData=function(e,t,n){if(e)return this.fetcher(e,function(e){return function(o){return e.setAutocompleteData(t,o.results[0],n),e.sendCustomEvent("fill_"+e.settings.handle,e.autocompletes[t].node),e.autocompletes[t].node.parentNode.classList.remove("mewtwo-stand-out")}}(this))},t.prototype.onResize=function(e,n){return t.__super__.onResize.call(this,e,n),this.setDates(this.datepicker.startDate,this.datepicker.endDate,this.template)},t.prototype.initSettings=function(){var e,t,n,o;return this.settings.passengers_text=this.sumPassengers(this.settings.passengers)+" "+w.pluralize(this.sumPassengers(this.settings.passengers),["passenger", "passengers"],this.settings.locale),this.settings.autocomplete_item_height=50,(e=this.settings).origin||(e.origin={name:"",iata:"",country_name:""}),(t=this.settings).destination||(t.destination={name:"",iata:"",country_name:""}),window.location&&"lj-toys.com"===window.location.host&&(this.settings.skip_highlight=!0),(n=this.settings).host||(n.host="hydra.aviasales.ru"),"www.jetradar.co.th"===this.settings.host&&(this.settings.host="www.jetradar.co.th/searches/new"),o="https:"===window.location.protocol?"https":"http",this.settings.host=o+"://"+this.settings.host+this.hashToParams(this.settings.additional_hash,"#"),this.tripClasses={"business":"business сlass","economy":"economy сlass"},this.settings.trip_class_text=this.tripClasses[this.settings.trip_class],this.initHeader(),this.settings.color_scheme.icon=this.settings.color_scheme.icon.replace(/#/,""),_.isBright(this.settings.color_scheme.input_border)&&_.isBright(this.settings.color_scheme.background)&&(this.settings.color_scheme.input_border="#dddddd"),this.settings.color_scheme.button_hover=_.shade(.1,this.settings.color_scheme.button)},t.prototype.initHeader=function(){var e,t;if(this.settings.show_logo)return t=_.isBright(this.settings.color_scheme.background),e=this.headerClassname+"--"+(t?"light":"dark"),this.settings.header={modifiers:{locale:this.headerClassname+"--"+this.settings.locale,brightness:e},marker:""+this.settings.marker}},t.prototype.setAutocompleteData=function(e,n,o){var i;if(t.__super__.setAutocompleteData.call(this,e),n)return i={},i[""+o]={name:n.name,iata:n.iata,country_name:""+(n.state?n.state+",":"")+(n.country_name||"")},n=i,this[""+o]=n[""+o],this.template.update(n)},t.prototype.sumPassengers=function(e){var t,n,o;n=0;for(o in e)t=e[o],n+=t;return n},t.prototype.setPassengers=function(e,t,n){var o;return o={passengersTotal:e+" "+w.pluralize(e,["passenger", "passengers"],this.settings.locale),trip_class_text:this.tripClasses[t],trip_class:"business"===t?"1":"0",passengers:n},this.template.update(o)},t.prototype.setClearReturn=function(){return this.template.querySelector('[role="flights-dates-return-clear"]').addEventListener("click",function(e){return function(t){var n;return e.datepicker.nodes["flights-dates-return"].value="",e.datepicker.nodes["flights-dates-return"].valueChanged(),e.datepicker.endDate=null,e.datepicker.onSelect(e.datepicker.startDate,null,"returnDate"),n={returnDateModifier:""},e.template.update(n)}}(this))},t.prototype.validateForm=function(e){return this._setSubmited(),this._checkPlacesEquality(e)},t.prototype._setSubmited=function(){if(!this.submited)return this.autocompletes["flights-origin"].node.className+=" mewtwo-submited",this.autocompletes["flights-destination"].node.className+=" mewtwo-submited",this.submited=!0},t.prototype._checkPlacesEquality=function(e){return this.autocompletes["flights-origin"].node.value===this.autocompletes["flights-destination"].node.value?(this.autocompletes["flights-destination"].node.setCustomValidity("Origin and destination must differ"),e&&(e.preventDefault(),this.form.reportValidity?this.form.reportValidity():setTimeout(function(e){return function(){return e.submit.click()}}(this),1)),!1):(this.autocompletes["flights-destination"].node.setCustomValidity(""),!0)},t.prototype.swapPlaces=function(){var e,t,n,o,i;for(o=[],i=["origin","destination"],t=0,n=i.length;t<n;t++)e=i[t],o.push({name:this.template.querySelector('[role="flights-'+e+'"]').value,iata:this.template.querySelector('[role="flights-'+e+'_right_block"]').textContent,country_name:this.template.querySelector('[role="flights-'+e+'_country__name"]').textContent||""});return this.template.update({origin:o[1],destination:o[0]})},t.prototype.initMetricsListeners=function(){var e;return t.__super__.initMetricsListeners.call(this),e=this.eventData(),this.autocompletes["flights-origin"].node.addEventListener("focus",function(){return l.sendOnce("origin_focus",e)}),this.autocompletes["flights-destination"].node.addEventListener("focus",function(){return l.sendOnce("destination_focus",e)}),this.datepicker.nodes["flights-dates-depart"].addEventListener("focus",function(){return l.sendOnce("departDate_focus",e)}),this.datepicker.nodes["flights-dates-return"].addEventListener("focus",function(){return l.sendOnce("returnDate_focus",e)}),this.passengersTrigger.addEventListener("click",function(){return l.sendOnce("passengers_modal",e)})},t.prototype.initHover=function(){var e,t,n,o;if(o=""===this.autocompletes["flights-origin"].node.value&&"flights-origin",o||(o=""===this.autocompletes["flights-destination"].node.value&&"flights-destination"),o&&(this.standOutRole=o,this.autocompletes[o].node.parentNode.classList.add("mewtwo-stand-out"),t=document.createEvent("Event"),t.initEvent("input",!0,!0),e=!1,document.addEventListener("click",function(){return e=!0}),n=function(n){return function(o){var i;if(n.virgin&&!e&&(i=n.autocompletes[n.standOutRole].node))return i.value=o,m.isElementPartlyVisible(i)&&i.dispatchEvent(t),""===i.value?i.parentNode.classList.remove("mewtwo-hide-caret"):i.parentNode.classList.add("mewtwo-hide-caret")}}(this),document.addEventListener("keyup",function(e){return function(t){var o;if(8===t.keyCode)return o=e.autocompletes[e.standOutRole].node.value,n(o.substring(0,o.length-1))}}(this)),document.addEventListener("keypress",function(e){return function(t){var o,i;if(o=window.event?t.keyCode:t.which)return i=e.autocompletes[e.standOutRole].node.value,n(i+String.fromCharCode(o))}}(this)),"flights-origin"===o))return this.autocompletes[o].node.addEventListener("fill_"+this.settings.handle,function(t){return function(){return t.autocompletes[o].node.parentNode.classList.remove("mewtwo-stand-out"),""===t.autocompletes["flights-destination"].node.value?t.autocompletes["flights-destination"].node.parentNode.classList.add("mewtwo-stand-out"):(t.autocompletes["flights-destination"].node.parentNode.classList.remove("mewtwo-stand-out"),e=!0),t.standOutRole="flights-destination"}}(this))},t.prototype.ctOptions=function(){return{params:{FormID:"flights-form-"+this.settings.handle,CityNameID:"flights-destination-"+this.settings.handle,CheckInID:"flights-dates-depart-"+this.settings.handle,CheckOutID:"flights-dates-return-"+this.settings.handle,GuestsID:"flights-ct-guests-"+this.settings.handle,RoomsID:"flights-ct-rooms-"+this.settings.handle,AnchorID:"flights-ct-anchor-"+this.settings.handle},prepops:["flights-dates-depart-prepop-"+this.settings.handle,"flights-dates-return-prepop-"+this.settings.handle],checkbox:this.template.querySelector("#flights_show_hotels_id--"+this.settings.handle),marker:this.settings.marker,handle:this.settings.handle}},t}(d),t.exports=e("error_handler").handlePublic(a)},{"blocks/best_offers/avia_best_offers":39,"blocks/best_offers/best_offers":40,"blocks/flights/flights.monk":5,"blocks/flights/flights_style.monk":6,"blocks/passengers/passengers":47,clicktripz:60,color_utils:61,"components/autocomplete/fetchers/avia_fetcher":49,deep_merge:63,error_handler:64,filters:65,geoip:67,"lib/form":66,metrics:70,pluralisation:72,pointer_events:73,templates:77,viewport:78}],43:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g=function(e,t){function n(){this.constructor=e}for(var o in t)w.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},w={}.hasOwnProperty;h=e("templates"),_=e("blocks/flights_multi/flights_multi.monk"),f=e("blocks/flights_multi/flights_multi_style.monk"),i=e("blocks/flights_multi/flights_segment"),s=e("form"),u=e("color_utils"),a=e("deep_merge"),l=e("placeholders"),r=e("lib/form"),m=e("pluralisation"),c=e("blocks/passengers/passengers"),d=e("metrics"),p=e("pointer_events"),d.setup({prefix:"mewtwo_"}),o=function(e){function t(e,n){var o,i,r,s,a;if(t.__super__.constructor.call(this,e,n),this.tripClasses={"business":"business сlass","economy":"economy сlass"},this.submited=!1,this.mouseenter=!1,this.eventType="avia_multi",this.tripClass=n.trip_class,this.template=h(_,this.settings,this.wrapper),this.settings.color_scheme.multi_icon=this.settings.color_scheme.text.replace(/#/,""),h(f,this.settings,document.head),new l(this.template.node,this.settings.handle),this.template.querySelector('[role="show_flights"]').addEventListener("click",function(e){return function(){return e.settings.widget.tabs.activate("flights")}}(this)),this.form=this.template.querySelector("form"),this.submit=this.template.querySelector("button"),this.rawAction=this.form.getAttribute("action").replace(/(nano|engine)\.aviasales\.ru/,"hydra.aviasales.ru"),this.form.addEventListener("submit",function(e){return function(t){var n,o,i,r,s,a,d,c,l,p;for(p="",a=!1,i=!1,d=e.segments,r=0,s=d.length;r<s;r++)c=d[r],c&&(c.isValid(a)?(a?a.destination.iata!==c.origin.iata&&(p+="-"+c.origin.iata):p=c.origin.iata,o=c.date.value?c.date.value:c.date,p+=""+o.substr(5,5).split("-").reverse().join("")+c.destination.iata):i=!0,c.cleanNames(),a=c);return i?(t.preventDefault(),e.form.reportValidity?e.form.reportValidity():setTimeout(function(){return e.submit.click()},1),!1):(p+="business"===e.tripClass?"b":"",p+=(""+e.passengers.adults+e.passengers.children+e.passengers.infants).replace(/0+$/,""),n=e.rawAction.split("?"),l="?",(n.length=1)&&(l="#",n=n[0].split("#")),n[0]=n[0].replace(/\/?$/,"/")+p,e.form.setAttribute("action",n.join(l)))}}(this)),this.initSegments(),this.passengersTrigger=this.template.querySelector('[role="passengers"]'),new c(this.passengersTrigger,this.settings,function(e){return function(t,n,o,i){return i&&d.sendOnce("passengers_interact",{form_id:e.settings.handle}),e.setPassengers(t,n,o)}}(this)),this.setPassengers(this.sumPassengers(this.settings.passengers),this.settings.trip_class,this.settings.passengers),o=this.wrapper.parentNode,this.setModifier(o,this.findWidthParentNode(o)),p.fix(e),this.settings.open_multi)for(s=this.settings.segments,i=0,r=s.length;i<r;i++)a=s[i],this.addSegment(a)}return g(t,e),t.prototype.oneSegmentModifier="mewtwo-flights-multi-segments--one",t.prototype.maximumSegments=7,t.prototype.modifiers={"mewtwo-flights-multi--m":[460,9e3],"mewtwo-flights-multi--s":[0,460]},t.prototype.initSegments=function(){return this.segments=[],this.segmentsCount=1,this.segmentsContainerNode=this.template.querySelector('[role="flights-multi-segments"]'),this.segmentsSettings=a.deepMerge(this.settings),this.segmentsSettings.onRemove=function(e){return function(t){var n;if(n=e.segments[parseInt(t,10)],n.template.remove(),delete e.segments[t],e.segmentsCount--,1===e.segmentsCount)return e.segmentsContainerNode.classList.add(e.oneSegmentModifier)}}(this),this.segments.push(new i(a.deepMerge(this.segmentsSettings,this.segmentsSettings.defaults),0,this.segmentsContainerNode)),this.template.querySelector('[role="flights-multi-add-segment"]').addEventListener("click",function(e){return function(t){return e.addSegment()}}(this))},t.prototype.addSegment=function(e){var t,n,o,r;if(null==e&&(e=null),o=this.segments.length,t=o+1,this.segmentsCount<this.maximumSegments){for(;t!==-1&&!n;)n=this.segments[t--];if(e?(this.segmentsSettings.origin.iata=e.origin.iata,this.segmentsSettings.origin.name=e.origin.name,this.segmentsSettings.destination.iata=e.destination.iata,this.segmentsSettings.destination.name=e.destination.name,this.segmentsSettings.date=e.date,r=a.deepMerge(this.segmentsSettings)):(this.segmentsSettings.destination&&(this.segmentsSettings.destination.iata="",this.segmentsSettings.destination.name="",this.segmentsSettings.date=""),r=n&&n.destination?a.deepMerge(this.segmentsSettings,{origin:n.destination}):this.segmentsSettings),this.segments.push(new i(r,o,this.segmentsContainerNode)),this.segmentsCount++,2===this.segmentsCount)return this.segmentsContainerNode.classList.remove(this.oneSegmentModifier)}},t.prototype.sumPassengers=function(e){var t,n,o;n=0;for(o in e)t=e[o],n+=t;return n},t.prototype.setPassengers=function(e,t,n){var o;return this.passengers=n,this.tripClass=t,o={passengersTotal:e+" "+m.pluralize(e,["passenger", "passengers"],this.settings.locale),trip_class_text:this.tripClasses[t],trip_class:"business"===t?"1":"0",passengers:n},this.template.update(o)},t}(r),t.exports=e("error_handler").handlePublic(o)},{"blocks/flights_multi/flights_multi.monk":7,"blocks/flights_multi/flights_multi_style.monk":8,"blocks/flights_multi/flights_segment":44,"blocks/passengers/passengers":47,color_utils:61,deep_merge:63,error_handler:64,form:55,"lib/form":66,metrics:70,placeholders:71,pluralisation:72,pointer_events:73,templates:77}],44:[function(e,t,n){var o,i,r,s,a,d,c,l,p;d=e("templates"),p=e("blocks/flights_multi/flights_segment.monk"),o=e("components/autocomplete/fetchers/avia_fetcher"),a=e("components/autocomplete/places_autocomplete"),r=e("deep_merge"),c=e("components/datepicker/scripts/datepicker"),s=e("placeholders"),l=e("filters"),t.exports=i=function(){function e(e,t,n){var i,a;this.settings=e,this.id=t,this.valid=!0,this.settings.origin&&(this.origin=this.settings.origin),this.settings.destination&&(this.destination=this.settings.destination),this.date={},"object"==typeof this.settings.date&&(this.date=this.settings.date),this.dates={widthBreakpoints:{currentYear:150,nextYears:200}},this.dateFocusedClass="flights-multi-segment-depart--focused",this.templateParams=r.deepMerge({date:this.date,dateFocused:"",id:t},this.settings),this.template=d(p,this.templateParams,n,{filters:{commaFirst:l.commaFirst}}),new s(this.template.node,this.settings.handle),i=function(){return this.removeEventListener("click",i),e.onRemove(this.getAttribute("data-id"))},this.template.querySelector('[role="remove_segment"]').addEventListener("click",i),this.fetcher=["ru","uk"].indexOf(this.settings.locale)!==-1?"fetchRu":"fetchEn",this.fetcher=o[this.fetcher](this.settings.locale),this.autocompletes={},this.initAutocomplete("flights-multi-segment-origin",this.fetcher,"origin"),this.initAutocomplete("flights-multi-segment-destination",this.fetcher,"destination"),a=this.origin.name||this.origin.iata,this.fillInputByIncompleteData(a,"flights-multi-segment-origin","origin"),a=this.destination.name||this.destination.iata,this.fillInputByIncompleteData(a,"flights-multi-segment-destination","destination"),this.datepicker=new c({wrapper:this.template.node,role:"flights-multi-segment-depart",color:this.settings.color_scheme.icon,identifier:this.settings.handle,locale:this.settings.locale,date:this.date.value?this.date.value:this.settings.date,callback:function(e){return function(t,n){return e.setDate(t,e.template)}}(this)}),"string"==typeof this.settings.date&&this.setDate(this.settings.date,this.template),this.datepicker.nodes["flights-multi-segment-depart"].removeAttribute("readonly"),this.datepicker.nodes["flights-multi-segment-depart"].setAttribute("required",""),this.datepicker.nodes["flights-multi-segment-depart"].addEventListener("focus",function(e){return function(){return e.template.update({dateFocused:e.dateFocusedClass}),e.datepicker.nodes["flights-multi-segment-depart"].setAttribute("readonly",!0)}}(this)),this.datepicker.nodes["flights-multi-segment-depart"].addEventListener("blur",function(e){return function(){return e.template.update({dateFocused:""}),e.datepicker.nodes["flights-multi-segment-depart"].removeAttribute("readonly")}}(this))}return e.prototype.setDate=function(e,t){var n,o;if(n=this.updateDate(e),o={},n&&(o.date=this.formattedDateData(e,this.date.format)),t.update(o),!this.valid)return this.isValid()},e.prototype.updateDate=function(e){return e=this.datepicker.formatDateValue(e),this.date.value!==e?(this.date.value=e,this.checkDatesFormat(),!0):!!this.checkDatesFormat()},e.prototype.checkDatesFormat=function(){var e,t,n,o;if(e=this.date.value,!e||""!==e)return n=new Date(e).getFullYear()===(new Date).getFullYear(),o=this.dates.widthBreakpoints[n?"currentYear":"nextYears"],t=this.datepicker.nodes["flights-multi-segment-depart"].offsetWidth<o?"short":"long",this.date.format!==t&&(this.date.format=t)},e.prototype.formattedDateData=function(e,t){var n,o;return o=this.datepicker.getDay(e),["en","us"].indexOf(this.settings.locale)!==-1?(""!==o&&(o+=", "),n=o+this.datepicker.formatPluralisedDate(e,t)):(""!==o&&(o=", "+o),n=this.datepicker.formatPluralisedDate(e,t)+o),{formatted:n,value:this.datepicker.formatDateValue(e),weekday:o}},e.prototype.cleanNames=function(){var e,t,n,o,i;for(o=this.template.node.querySelectorAll("input"),i=[],e=0,n=o.length;e<n;e++)t=o[e],i.push(t.removeAttribute("name"));return i},e.prototype.setAutocompleteData=function(e,t,n){var o;return this.template.update((o={},o[""+n]={name:t.name,iata:t.iata,country_name:""+(t.state?t.state+",":"")+(t.country_name||"")},o))},e.prototype.fillInputByIncompleteData=function(e,t,n){if(e)return this.fetcher(e,function(e){return function(o){return e.setAutocompleteData(t,o.results[0],n),e.autocompletes[t].node.parentNode.classList.remove("mewtwo-stand-out")}}(this))},e.prototype.initAutocomplete=function(e,t,n){return this.autocompletes[e]=new a({wrapper:this.template,role:e,fetcher:t,handle:this.settings.handle,color_scheme:this.settings.color_scheme,name:n,onResult:function(e){return function(t){var o;if(t&&(o={},o[""+n]={name:t.name,iata:t.iata,country_name:""+(t.state?t.state+",":"")+(t.country_name||"")},t=o,e[""+n]=t[""+n],e.template.update(t),!e.valid))return e.isValid()}}(this)})},e.prototype._setSubmited=function(){if(!this.submited)return this.autocompletes["flights-multi-segment-origin"].node.className+=" mewtwo-submited",this.autocompletes["flights-multi-segment-destination"].node.className+=" mewtwo-submited",this.datepicker.nodes["flights-multi-segment-depart"].className+=" mewtwo-submited",this.submited=!0},e.prototype.isValid=function(e){var t;return t=!0,this._setSubmited(),this.origin&&this.origin.iata&&this.destination&&this.origin.iata===this.destination.iata?(this.autocompletes["flights-multi-segment-destination"].node.setCustomValidity("Origin and destination must differ"), this.autocompletes["flights-multi-segment-origin"].node.setCustomValidity("Origin and destination must differ"),t=!1):this.origin&&this.origin.iata&&this.destination&&this.destination.iata&&(this.autocompletes["flights-multi-segment-destination"].node.setCustomValidity(""),this.autocompletes["flights-multi-segment-origin"].node.setCustomValidity("")),e&&e.date&&e.date.value&&this.date&&this.date.value&&new Date(e.date.value)>new Date(this.date.value)?(this.datepicker.nodes["flights-multi-segment-depart"].setCustomValidity("This date is before the previous date"),t=!1):this.date&&this.date.value&&this.datepicker.nodes["flights-multi-segment-depart"].setCustomValidity(""),this.valid=t,t},e}()},{"blocks/flights_multi/flights_segment.monk":9,"components/autocomplete/fetchers/avia_fetcher":49,"components/autocomplete/places_autocomplete":51,"components/datepicker/scripts/datepicker":52,deep_merge:63,filters:65,placeholders:71,templates:77}],45:[function(e,t,n){var o,i,r,s,a,d;s=e("templates"),a=e("blocks/guests/guests.monk"),d=e("blocks/guests/guests_style.monk"),i=e("deep_merge"),r=e("components/modal_window/modal"),o=function(){function e(e,t,n){var o,c,l;if(this.guests=t.guests,this.guests.children_age[0]){l=this.guests.children_age;for(c in l)o=l[c],this.guests.children_age[c]={age:o,name:c,handle:t.handle},this.modalSizes.max.height+=this.modalSizes.max.line_width,this.modalSizes.min.height+=this.modalSizes.min.line_width}this.settings=i.deepMerge(this.guests,t),this.callback=n,this.settings.color_scheme.icon=this.settings.color_scheme.icon.replace(/#/,""),this.template=s(a,this.settings),s(d,this.settings,document.head),this.caller=e,this.caller.addEventListener("click",function(e){return function(t){return r.shown&&r.currentElement&&"guests"===r.currentElement.getAttribute("role")?r.close():r.render(e.caller,e.modalSizes,e.modalPriorities,function(t){return e.caller.classList.add("mewtwo-hotels-guests--active"),r.fill(e.template.node)},function(){return e.caller.classList.remove("mewtwo-hotels-guests--active")})}}(this)),this._initLogic(),this._updateParent(!1)}return e.prototype.modalSizes={max:{width:270,height:110,line_width:55},min:{width:180,height:125,line_width:37.5}},e.prototype.modalPriorities=["bottom","top","over","right","left"],e.prototype._initLogic=function(){var e,t,n,o;for(o=this.template.node.querySelectorAll('[role="increase"], [role="decrease"]'),t=0,n=o.length;t<n;t++)e=o[t],e.parentElement.getAttribute("role").match("age")?(this._setListener(e,!0),e.hasOnclick=!0):this._setListener(e);return this.template.node.querySelector('[role="success"]').addEventListener("click",function(){return r.close()})},e.prototype._setListener=function(e,t){var n;return null==t&&(t=!1),n=e.getAttribute("role"),t&&(n+="Age"),e.addEventListener("click",function(e){return function(t){var o,i,r,s,a,d,c;if(c=t.target.parentElement.getAttribute("role"),e["_"+n](c),e.template.update(e.guests),e._updateParent(),"increase"===n&&"children"===t.target.parentElement.getAttribute("role")){for(s=e.template.node.querySelectorAll('[role="increase"], [role="decrease"]'),a=[s[s.length-1],s[s.length-2]],d=[],i=0,r=a.length;i<r;i++)o=a[i],o.hasOnclick?d.push(void 0):(e._setListener(o,!0),d.push(o.hasOnclick=!0));return d}}}(this))},e.prototype._showChildrenAge=function(e){return"increase"===e?(this.guests.children_age.push({name:this.guests.children_age.length,age:7,handle:this.settings.handle}),this.modalSizes.max.height+=this.modalSizes.max.line_width,this.modalSizes.min.height+=this.modalSizes.min.line_width):(this.guests.children_age.pop(),this.modalSizes.max.height-=this.modalSizes.max.line_width,this.modalSizes.min.height-=this.modalSizes.min.line_width),r.changeSize(this.caller,this.modalSizes)},e.prototype._increaseAge=function(e){var t;if(e.match(/children_age_(.+)/)&&(t=e.match(/children_age_(.+)/)[1]),!(t&&this.guests.children_age[t].age>=17))return++this.guests.children_age[t].age},e.prototype._decreaseAge=function(e){var t;if(e.match(/children_age_(.+)/)&&(t=e.match(/children_age_(.+)/)[1]),!(t&&this.guests.children_age[t].age<1))return--this.guests.children_age[t].age},e.prototype._increase=function(e){if(!("adults"===e&&this.guests.adults>=4||"children"===e&&this.guests.children>=3)&&(++this.guests[e],"children"===e))return this._showChildrenAge("increase")},e.prototype._decrease=function(e){var t;if(t=this.guests[e],("adults"!==e||1!==t)&&0!==t&&(--this.guests[e],"children"===e))return this._showChildrenAge("decrease")},e.prototype._updateParent=function(e){return null==e&&(e=!0),this.callback(this.guests)},e}(),t.exports=e("error_handler").handlePublic(o)},{"blocks/guests/guests.monk":10,"blocks/guests/guests_style.monk":11,"components/modal_window/modal":54,deep_merge:63,error_handler:64,templates:77}],46:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g,w=function(e,t){function n(){this.constructor=e}for(var o in t)b.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},b={}.hasOwnProperty;h=e("templates"),f=e("blocks/hotels/hotels.monk"),g=e("blocks/hotels/hotels_style.monk"),u=e("color_utils"),c=e("deep_merge"),i=e("lib/form"),_=e("pluralisation"),s=e("components/autocomplete/fetchers/hotel_fetcher"),r=e("blocks/guests/guests"),a=e("blocks/best_offers/hotels_best_offers"),p=e("pointer_events"),o=e("clicktripz"),m=e("filters"),l=e("metrics"),l.setup({prefix:"mewtwo_"}),d=function(e){function t(e,n){var i,d,l;t.__super__.constructor.call(this,e,n),this.eventType="hotel",this.hotelLocale=n.locale,this.initSettings(),l=c.deepMerge({firstDate:{},secondDate:{},firstDateFocused:"",secondDateFocused:"",secondDateModifier:""},this.settings),this.template=h(f,l,!1,{filters:{commaFirst:m.commaFirst}}),h(g,this.settings,document.head),this.wrapper=this.template.node,e.appendChild(this.template.node),this.submited=!1,this.submit=this.wrapper.querySelector("[role=hotels_submit]"),this.submit.addEventListener("click",function(e){return function(){return e._setSubmited()}}(this)),this.form=this.wrapper.querySelector("[role=hotels-form]"),this.form.addEventListener("submit",function(e){if(this.checkValidity&&!this.checkValidity())return e.preventDefault()}),i=e.querySelector('[role="hotels"]'),new a(i,this.settings),d=e.parentNode,this.setModifier(d,this.findWidthParentNode(d)),this.initAutocomplete("place",s(this.settings.locale)),this.initDatepicker(["hotels-dates-checkin","hotels-dates-checkout"],this.template),this.guestsTrigger=this.wrapper.querySelector('[role="guests"]'),new r(this.guestsTrigger,this.settings,function(e){return function(t){return e.formatData(t)}}(this)),this.initMetricsListeners(),p.fix(e),this.settings.show_hotels&&setTimeout(function(){return o.loadScript()},1e3)}return w(t,e),t.prototype.header_classname="mewtwo-hotels-header",t.prototype.firstDateFocused="mewtwo-hotels-dates-checkin--focused",t.prototype.secondDateFocused="mewtwo-hotels-dates-checkout--focused",t.prototype.modifiers={"mewtwo-hotels--xl":[1e3,9e3],"mewtwo-hotels--l":[660,1e3],"mewtwo-hotels--m":[460,660],"mewtwo-hotels--s":[300,460],"mewtwo-hotels--xs":[0,300]},t.prototype.onInteract=function(){var e;t.__super__.onInteract.call(this);try{if(this.settings.show_hotels)return new o("flights"+this.settings.handle,this.ctOptions())}catch(n){return e=n,!0}},t.prototype.initSettings=function(){var e,t,n,o;return this.settings.autocomplete_item_height=40,this.settings.place&&(this.settings.place=this.castPlace(this.settings.place)),this.settings.show_logo&&(n=u.isBright(this.settings.color_scheme.background),t=this.header_classname+"--"+(n?"light":"dark"),this.settings.header={modifiers:{brightness:t},marker:""+this.settings.marker}),u.isBright(this.settings.color_scheme.input_border)&&u.isBright(this.settings.color_scheme.background)&&(this.settings.color_scheme.input_border="#dddddd"),this.settings.color_scheme.icon=this.settings.color_scheme.icon.replace(/#/,""),this.settings.color_scheme.button_hover=u.shade(.1,this.settings.color_scheme.button),(e=this.settings).place||(e.place={name:"",location:""}),this.settings.host&&["engine.aviasales.ru/hotel_clicks","indiortours.ru/search"].indexOf(this.settings.host)===-1||(this.settings.host="search.indior.tours"),o="https:"===window.location.protocol?"https":"http",this.settings.host=o+"://"+this.settings.host.replace(/^(https?:)?\/\//,"")+this.hashToParams(this.settings.additional_hash,"#"),this.settings.language=this.hotelLocale},t.prototype.initMetricsListeners=function(){var e;return t.__super__.initMetricsListeners.call(this),e=this.eventData(),this.autocompletes.place.node.addEventListener("focus",function(){return l.sendOnce("hotelDestination_focus",e)}),this.datepicker.nodes["hotels-dates-checkin"].addEventListener("focus",function(){return l.sendOnce("checkInDate_focus",e)}),this.datepicker.nodes["hotels-dates-checkout"].addEventListener("focus",function(){return l.sendOnce("checkOutDate_focus",e)})},t.prototype.setAutocompleteData=function(e,n){if(n)return t.__super__.setAutocompleteData.call(this,e),this.template.update({place:this.castPlace(n)})},t.prototype.castPlace=function(e){return{name:e.name,location:""+(e.state||"")+(e.location||""),hotelId:e.hotelId||"hotel"===e.search_type&&e.search_id||!1,cityId:e.cityId||"city"===e.search_type&&e.search_id||!1}},t.prototype.onResize=function(e,n){return t.__super__.onResize.call(this,e,n),this.setDates(this.datepicker.startDate,this.datepicker.endDate,this.template)},t.prototype._setSubmited=function(){if(!this.submited)return this.autocompletes.place.node.className+=" mewtwo-submited",this.submited=!0},t.prototype.formatData=function(e){var t,n,o,i,r,s;for(n=[],s=e.children_age,o=0,i=s.length;o<i;o++)t=s[o],n.push(t.age);return r={children:n.join(),adults:e.adults,guests:e.adults+e.children+" "+_.pluralize(e.adults+e.children,["guest", "guests"],this.settings.locale)},this.template.update(r)},t.prototype.ctOptions=function(){return{params:{FormID:"hotels-form-"+this.settings.handle,CityNameID:"hotels-destination-"+this.settings.handle,CheckInID:"hotels-dates-checkin-"+this.settings.handle,CheckOutID:"hotels-dates-checkout-"+this.settings.handle,GuestsID:"hotels-guests-"+this.settings.handle,RoomsID:"hotels-rooms-"+this.settings.handle,AnchorID:"hotels-ct-anchor-"+this.settings.handle},prepops:["hotels-dates-checkin-prepop-"+this.settings.handle,"hotels-dates-checkout-prepop-"+this.settings.handle],checkbox:this.wrapper.querySelector("#hotels_show_hotels_id--"+this.settings.handle),marker:this.settings.marker,handle:this.settings.handle}},t}(i),t.exports=e("error_handler").handlePublic(d)},{"blocks/best_offers/hotels_best_offers":41,"blocks/guests/guests":45,"blocks/hotels/hotels.monk":12,"blocks/hotels/hotels_style.monk":13,clicktripz:60,color_utils:61,"components/autocomplete/fetchers/hotel_fetcher":50,deep_merge:63,error_handler:64,filters:65,"lib/form":66,metrics:70,pluralisation:72,pointer_events:73,templates:77}],47:[function(e,t,n){var o,i,r,s,a,d;s=e("templates"),a=e("blocks/passengers/passengers.monk"),d=e("blocks/passengers/passengers_style.monk"),o=e("deep_merge"),i=e("components/modal_window/modal"),r=function(){function e(e,t,n){this.passengers=t.passengers,this.settings=o.deepMerge(this.passengers,t),this.callback=n,this.settings.color_scheme.icon=this.settings.color_scheme.icon.replace(/#/,""),this.template=s(a,this.settings),s(d,this.settings,document.head),this.caller=e,this.caller.addEventListener("click",function(e){return function(t){return i.shown&&i.currentElement&&"passengers"===i.currentElement.getAttribute("role")?i.close():i.render(e.caller,e.modalSizes,e.modalPriorities,function(t){return e.caller.classList.add("mewtwo-flights-trip_class--active"),i.fill(e.template.node)},function(){return e.caller.classList.remove("mewtwo-flights-trip_class--active")})}}(this)),this._initLogic(),this._updateParent(!1)}return e.prototype.modalSizes={max:{width:270,height:250},min:{width:180,height:190}},e.prototype.modalPriorities=["bottom","top","over","right","left"],e.prototype._initLogic=function(){var e,t,n,o;for(o=this.template.node.querySelectorAll('[role="increase"], [role="decrease"]'),t=0,n=o.length;t<n;t++)e=o[t],this._setListener(e);return this.businessCheckbox=this.template.node.querySelector('[role="business_checkbox"]'),"business"===this.settings.trip_class&&(this.businessCheckbox.checked=!0),this.businessCheckbox.addEventListener("change",function(e){return function(){return e._updateParent()}}(this)),this.template.node.querySelector('[role="ready_button"]').addEventListener("click",function(){if(i.currentElement&&"passengers"===i.currentElement.getAttribute("role"))return i.close()})},e.prototype._setListener=function(e){var t,n;return n=e.parentElement.getAttribute("role"),t=e.getAttribute("role"),e.addEventListener("click",function(e){return function(){return e["_"+t](n),e.template.update(e.passengers),e._updateParent()}}(this))},e.prototype._increase=function(e){if(!("infants"===e&&this.passengers.adults===this.passengers[e]||this._passengerTotal()>=9))return++this.passengers[e]},e.prototype._decrease=function(e){var t;if(t=this.passengers[e],("adults"!==e||this.passengers.infants!==t&&1!==t)&&0!==t)return--this.passengers[e]},e.prototype._passengerTotal=function(){var e,t,n,o;o=0,n=this.passengers;for(t in n)e=n[t],o+=e;return o},e.prototype._updateParent=function(e){var t;return null==e&&(e=!0),t=this.businessCheckbox.checked?"business":"economy",this.callback(this._passengerTotal(),t,this.passengers,e)},e}(),t.exports=e("error_handler").handlePublic(r)},{"blocks/passengers/passengers.monk":14,"blocks/passengers/passengers_style.monk":15,"components/modal_window/modal":54,deep_merge:63,error_handler:64,templates:77}],48:[function(e,t,n){var o,i,r,s;i=e("templates"),s=e("blocks/tabs/tabs.monk"),r=e("color_utils"),o=function(){function e(e,t){this.tabs={},this.shownTab=t.active_tab,this.activeTab=t.active_tab,this.colorTab=t.active_tab,this.handle=t.handle,this.border_radius=t.border_radius,this.template=i(s),this.container=e.parentNode,this.wrapper=e,this.width=0,this.animation=!1,this.tabsRendered=!1}return e.prototype.activeClass=" mewtwo-tabs-tabs_list__item--active",e.prototype.contaiderClass="mewtwo-tabs-container",e.prototype.wideClass="mewtwo-tabs--wide",e.prototype.onlyIconsClass="mewtwo-tabs--only_icons",e.prototype.emptyClass="mewtwo-tabs--empty",e.prototype.hiddenContainerClass="mewtwo-tabs-container--hidden",e.prototype.transparentContainerClass="mewtwo-tabs-container--transparent",e.prototype.hardcodeTabWidth=170,e.prototype.renderTabs=function(){if(!this.tabsRendered)return this.tabsRendered=!0,this.wrapper.insertBefore(this.template.node,this.wrapper.childNodes[0]),this.template.node.addEventListener("click",function(e){return function(t){return e.activate(t.target.getAttribute("data-tab"))}}(this))},e.prototype.add=function(e){var t,n,o;if(o=e.name,n=e.color_scheme.background,t=n&&"transparent"===n||n.split(",").length>3&&"0)"===n.split(",")[3].trim()?"rgba(0,0,0,.2)":r.shade(-.1,e.color_scheme.background),this.tabs[o]={text:e.text,containerNode:e.node,hidden:e.hidden,linked_tab:e.linked_tab,colors:{background:t,text:e.color_scheme.text.replace(/#/,""),active_background:n,border:e.color_scheme.border}},o!==this.activeTab&&(e.node.classList.add(this.hiddenContainerClass),e.node.classList.add(this.transparentContainerClass)),e.node.classList.add(this.contaiderClass),this.onlyIcons=!1,this.wide=!1,this.refresh(),this.calculateWidth(),this.widthWithText=this.width,this.onlyIconsWidth=this.getMaxTabWidth()*this.visibleTabsCount()+1,this.setView(),this.generateTabParams(),this.visibleTabsCount()>1)return this.renderTabs()},e.prototype.visibleTabsCount=function(){var e,t,n,o;t=0,n=this.tabs;for(e in n)o=n[e],o.hidden||t++;return t},e.prototype.activate=function(e){var t,n,o,i;if(null==e&&(e=this.activeTab),e!==this.activeTab&&!this.animation)return n=this.tabs[this.activeTab].containerNode,t=n.classList,i=this.tabs[e].containerNode.classList,o=this.tabs[e].colors,setTimeout(function(n){return function(){return t.add(n.hiddenContainerClass),i.remove(n.hiddenContainerClass),n.colorTab=e,n.refresh(),setTimeout(function(){return i.remove(n.transparentContainerClass)},20)}}(this),200),t.add(this.transparentContainerClass),this.activeTab=e,this.refresh()},e.prototype.refresh=function(){var e,t,n,o,i,r;e=[],this.wide&&e.push(this.wideClass),this.onlyIcons&&e.push(this.onlyIconsClass),this.visibleTabsCount()<=1&&e.push(this.emptyClass),n={border_radius:this.border_radius,tabs:[],modificators:" "+e.join(" "),handle:this.handle},o=this.tabs;for(t in o)i=o[t],i.hidden||(r={active_class:""},(this.activeTab===t||this.tabs[this.activeTab]&&this.tabs[this.activeTab].linked_tab===t)&&(r.active_class=this.activeClass),this.colorTab===t&&(n.colors=i.colors),n.tabs.push(r));return this.template.update(n)},e.prototype.calculateWidth=function(){return this.width=this.getMaxTabWidth()*this.visibleTabsCount()},e.prototype.getMaxTabWidth=function(){return this.hardcodeTabWidth},e.prototype.setView=function(e,t){var n;if(null==e&&(e=this.container),null==t&&(t=this.container.offsetWidth),n=!1,this.calculateWidth(),t<this.onlyIconsWidth?this.onlyIcons||(this.onlyIcons=n=!0):this.onlyIcons&&(this.onlyIcons=!1,n=!0),this.onlyIcons||this.widthWithText>t-t/5?this.wide||(this.wide=n=!0):this.wide&&(this.wide=!1,n=!0),n)return this.refresh()},e.prototype.generateTabParams=function(){var e,t,n,o,i,r;e=this.visibleTabsCount(),n={tabs:[]},o=this.tabs;for(t in o)i=o[t],i.hidden||(r={count:e,name:t,text:i.text,handle:this.handle},n.tabs.push(r));return this.template.update(n)},e.prototype.resizeCallback=function(){return function(e){return function(t,n){return e.setView(t,n)}}(this)},e}(),t.exports=o},{"blocks/tabs/tabs.monk":18,color_utils:61,templates:77}],49:[function(e,t,n){var o,i,r,s;o=e("jsonp"),r=7,s=function(e,t){var n,o,i,r,s,a,d,c;d={};for(r in e)o=e[r],o&&o.name&&(n=o.city_iata||o.iata,null==d[n]&&(d[n]=[]),o.is_city?d[n].unshift(o):d[n].push(o));a=[];for(n in d){s=d[n],2===s.length&&s[0].is_city&&s.shift(),i=!1;for(r in s)if(o=s[r],o&&o.is_city){i=!0;break}if(!i)for(r in s)o=s[r],o&&(o.is_city=!0);1===s.length&&(s[0].is_city=!0),s.length>1&&(s[0].airport_name="All airports");for(r in s)o=s[r],o&&(o.modificators||(o.modificators=""),o.is_city||(o.modificators+=" mewtwo-autocomplete-list-item--shifted",o.country_name=""),o.info={details:o.country_name,bottomBlock:o.airport_name,rightBlock:o.is_city&&o.city_iata||o.iata},"function"!=typeof o&&a.push(o))}return c=function(e,n){return a=0,(e.iata||e.city_iata)===t.toUpperCase()&&(a+=-1),(n.iata||n.city_iata)===t.toUpperCase()&&(a+=1),a},t&&(a=a.sort(c)),a},i={fetchRu:function(e){return function(t,n){var i,a;if(t)return i="//autocomplete.travelpayouts.com/places2",a={hy:"ru",tg:"ru",ca:"es",be:"ru",bs:"hr",ce:"ru",kk:"ru",uz:"ru",me:"sr"},null!=a[e]&&(e=a[e]),o.get(i,{term:t,locale:e,types:["city","airport"],max:r},function(e){var o;return o=e.map(function(e,t){return{name:e.city_name||e.name,country_name:" "+e.country_name,airport_name:e.airport_name||e.name,state:e.state_code?", "+e.state_code:"",iata:e.code,city_iata:e.city_code||e.code,is_city:"city"===e.type,modificators:""}}).slice(0,r),n({results:s(o,t)})},"callback","callback_"+Math.round(1e6*Math.random(),10))}},fetchEn:function(e){return this.fetchRu(e)}},t.exports=e("error_handler").handlePublic(i)},{error_handler:64,jsonp:69}],50:[function(e,t,n){var o,i,r,s,a;o=e("jsonp"),a=e("pluralisation"),s=7,r=this,r.citiesCast=function(e,t){return null==t&&(t="en"),{name:e.city,location:", "+e.country.trim().replace(" "," "),shortInfo:e.hotelsCount+" "+a.pluralize(e.hotelsCount,["hotel", "hotels"],t),type:"city",state:e.state?", "+e.state:"",modificators:"",cityId:e.id}},r.hotelsCast=function(e){return{name:e.name,location:", "+e.locationFullName.trim().replace(" "," "),type:"hotel",state:"",modificators:"",hotelId:e.id}},i=function(e){return null==e&&(e="en"),function(t,n){var i;if(t)return i="//indior.tours.com/autocomplete",o.get(i,{term:t,lang:e,max:s},function(t){var o,i,a,d,c,l,p,h,u,m;for(u=[],p=["cities","hotels"],o=0,d=p.length;o<d;o++)if(m=p[o],t[m])for(h=t[m],a=0,c=h.length;a<c;a++)i=h[a],r[m+"Cast"]&&(l=r[m+"Cast"](i,e),l.info={details:l.location,bottomBlock:"",rightBlock:l.shortInfo||""},l.modificators+=" mewtwo-autocomplete-list-item--one_line mewtwo-autocomplete-list-item--"+m,u.push(l));return n({results:u.slice(0,s)})})}},t.exports=e("error_handler").handlePublic(i)},{error_handler:64,jsonp:69,pluralisation:72}],51:[function(e,t,n){var o,i,r,s=function(e,t){function n(){this.constructor=e}for(var o in t)a.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;o=e("./autocomplete.coffee"),i=e("browser"),r=function(e){function t(e){var t,n;this.node=e.wrapper.querySelector("[role="+e.role+"]"),this.detailsNode=e.wrapper.querySelector("[role="+e.role+"_details]"),this.rightBlockNode=e.wrapper.querySelector("[role="+e.role+"_right_block]"),t=e.data,t&&""!==t.country_name&&this.setAutocompleteData(e.role,t),n=!0,this.node.addEventListener("input",function(e){return function(){return i.isIE()&&n?n=!1:(e.detailsNode&&(e.detailsNode.style.visibility="hidden"),e.rightBlockNode?e.rightBlockNode.childNodes[0].textContent="":void 0)}}(this)),e.onResult||(e.onResult=[]),"[object Array]"!==Object.prototype.toString.call(e.onResult)&&(e.onResult=[e.onResult]),e.onResult.push(function(t){return function(n){if(n)return t.setAutocompleteData(e.role,n,e.name)}}(this)),new o(e)}return s(t,e),t.prototype.setAutocompleteData=function(){if(this.detailsNode&&(this.detailsNode.style.visibility="visible"),this.node.valueChanged)return this.node.valueChanged()},t}(o),t.exports=e("error_handler").handlePublic(r)},{"./autocomplete.coffee":28,browser:58,error_handler:64}],52:[function(e,t,n){var o,i,r,s,a=function(e,t){return function(){return e.apply(t,arguments)}};i=e("swipe_detector"),s=e("./container_renderer"),o=e("components/modal_window/modal"),r=function(){function e(e){var t,n,o,i,r;for(null==e&&(e={}),this.formatPluralisedDate=a(this.formatPluralisedDate,this),this.options=e,this.nodes=[],this.datepickerWrapper=e.wrapper||document.body,this.roles=e.role&&[e.role]||e.roles||["datepicker"],this.role=this.roles[0],e.callback&&(this.onSelect=e.callback),e.prefix&&(this.prefix=e.prefix),e.offsets&&(this.offsets=e.offsets),this.color=e.color||"#000",this.sameday=!1,"string"==typeof e.date&&/\d\d\d\d-\d\d?-\d\d?/.test(e.date)&&(this[this.role]=e.date),i=this.roles,t=0,n=i.length;t<n;t++)r=i[t],o=this.nodes[r]=this.datepickerWrapper.querySelector('[role="'+r+'"]'),o.classList.add("mewtwo-datepicker-trigger"),o.getAttribute("data-date")&&(this[r]=this._parseDate(o.getAttribute("data-date"))),this.isTouchDevice||o.setAttribute("readonly",!0),o.addEventListener("focus",this._listenerFor(r)),o.addEventListener("keydown",function(e){return function(t){return e._processKey(t.keyCode)}}(this)),"true"===o.getAttribute("data-datepicker-sameday")&&(this.sameday=!0);this._initPopup()}return e.prototype.prefix="",e.prototype.today=new Date,e.prototype.isTouchDevice=i.isTouchDevice,e.prototype.type="simple",e.prototype.onlyFuture=!0,e.prototype.offsets={top:0,left:0},e.prototype.onSelect=function(e,t){return console.log(t+" selected date "+e)},e.prototype._initPopup=function(){var e;return this.currentMonth=this.today.getMonth()+1,this.currentYear=this.today.getFullYear(),this.currentDay=this.today.getDate(),e=function(e){return function(t,n){return e._callback_proxy(t,n)}}(this),this.containerRenderer=new s(this,e,this.prefix),new i(this.containerRenderer.node,{left:function(e){return function(){return e.nextMonth()}}(this),right:function(e){return function(){return e.prevMonth()}}(this),down:function(e){return function(){return e.hide()}}(this),up:function(e){return function(){return e.hide()}}(this)}),this.containerRenderer.node.querySelector('[role="datepicker-prev"]').addEventListener("click",function(e){return function(){return e.prevMonth()}}(this)),this.containerRenderer.node.querySelector('[role="datepicker-next"]').addEventListener("click",function(e){return function(){return e.nextMonth()}}(this))},e.prototype._processKey=function(e){switch(e){case 27:return this.hide(),this.nodes[this.role].blur();case 9:return this.hide();case 8:return this.nodes[this.role].setAttribute("value","")}},e.prototype.prevMonth=function(){if(!this.onlyFuture||!this.isCurrentMonth)return 1===this.month?(this.year--,this.month=12):this.month--,this._renderDatepicker()},e.prototype.nextMonth=function(){return 12===this.month?(this.year++,this.month=1):this.month++,this._renderDatepicker()},e.prototype.hide=function(e){return e?setTimeout(function(){return o.close()},e):o.close()},e.prototype.show=function(e,t){var n,i,r,s;return this.role=e,this.callback=t,this.date=this._parseDate(this[this.role])||this.today,this.month=this.date.getMonth()+1,this.year=this.date.getFullYear(),i=parseInt(this.nodes[this.role].getAttribute("data-popup-max-height"),10),r=parseInt(this.nodes[this.role].getAttribute("data-popup-min-height"),10),n={max:{width:560,height:i},midMax:{width:280,height:i},midMin:{width:360,height:r},min:{width:180,height:r},micro:{width:180,height:150}},s=["bottom","top","over","right","left"],this.nodes[this.role].focus(),o.render(this.nodes[this.role],n,s,function(e){return function(t,n){return e.size=n,e._renderDatepicker(),o.fill(e.containerRenderer.node)}}(this),null,this.datepickerWrapper)},e.prototype._callback_proxy=function(e,t){switch(e){case"click":return this.callback(t.getAttribute("data-date")),!0;default:return!1}},e.prototype._listenerFor=function(e){return function(t){return function(n){if(t.show(e,function(n){return t._showCallback(n,e)}),n&&t.isTouchDevice)return n.preventDefault(),n.target.blur()}}(this)},e.prototype._showCallback=function(e,t){if(e&&(this[t]=e),!this.settedRoles)return this.hide(),this.onSelect(e,t)},e.prototype._renderDatepicker=function(){return this.isCurrentMonth=this.isItCurrentMonth(this.month,this.year),this.isPrevMonth=this.isItPrevMonth(this.month,this.year),this.containerRenderer.render(this),this._setCurrentDate()},e.prototype._setCurrentDate=function(){var e,t,n,o,i,r,s,a;for(e="mewtwo-datepicker-"+this.stringifyDate(this.date),s=this.containerRenderer.monthRenderers,a=[],n=0,o=s.length;n<o;n++)i=s[n],a.push(function(){var n,o;n=i.days,o=[];for(t in n)r=n[t],e===t?o.push(r.classList.add("mewtwo-datepicker-selected")):o.push(r.classList.remove("mewtwo-datepicker-selected"));return o}());return a},e.prototype.isItCurrentMonth=function(e,t){return this.currentYear===t&&this.currentMonth===e},e.prototype.isItPrevMonth=function(e,t){return this.currentYear>t||this.currentYear===t&&this.currentMonth>e},e.prototype._parseDate=function(e){var t;if(e)return t=e.split("-"),new Date(t[0],parseInt(t[1],10)-1,t[2])},e.prototype.stringifyDate=function(e){return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()},e.prototype._setScale=function(e,t){return t.style.webkitTransform=t.style.transform="scale("+e+")"},e.prototype.formatPluralisedDate=function(e,t){var n,o,i,r;return null==t&&(t="long"),e?(n=e.split("-"),o="long"===t?["","January","February","March","April","May","June","July","August","September","October","November","December"]:["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r=parseInt(n[0],10)===this.currentYear?"":n[0],i=[n[2],o[parseInt(n[1],10)]],"en_us"===this.options.locale&&i.reverse(),(i.join(" ")+" "+r).trim()):""},e.prototype.formatDateValue=function(e){var t;return e?(t=e.split("-"),t[0]+"-"+("0"+t[1]).slice(-2)+"-"+("0"+t[2]).slice(-2)):""},e.prototype.getDay=function(e){var t;return e?(t=this._parseDate(e).getDay()-1,t===-1&&(t=6),["Mon","Tue","Wed","Thu","Fri","Sat","Sun"][t]):""},e}(),t.exports=e("error_handler").handlePublic(r)},{"./container_renderer":29,"components/modal_window/modal":54,error_handler:64,swipe_detector:76}],53:[function(e,t,n){var o,i,r=function(e,t){function n(){this.constructor=e}for(var o in t)s.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;o=e("./datepicker"),i=function(e){function t(e){var n;null==e&&(e={}),e.role=null,e.roles||(e.roles=["startDate","endDate"]),e.legend&&(this.legend=e.legend),t.__super__.constructor.call(this,e),this._returnButtonLogic(),n=this.roles,this.startDateRole=n[0],this.endDateRole=n[1],this.settedRoles[this.startDateRole]=this.settedRoles[this.endDateRole]=!1}return r(t,e),t.prototype.isEndDate=!1,t.prototype.settedRoles={},t.prototype.prevRole=!1,t.prototype.readyToDraw=!0,t.prototype.legend=!1,t.prototype.type="range",t.prototype.onSelect=function(e,t,n){return console.log(n+" selected range from "+e+" to "+t)},t.prototype.show=function(e,n){return this.role=e,this.callback=n,this.isEndDate=this.role===this.endDateRole,t.__super__.show.call(this,this.role,this.callback),this.prevRole=this.role},t.prototype._callback_proxy=function(e,n){if(t.__super__._callback_proxy.call(this,e,n))return!0;switch(e){case"mouseout":return this.readyToDraw=!0,!0;case"mouseover":if(!this.readyToDraw)return;return this.isEndDate?this._drawSausage(this.startDate,n.getAttribute("data-date"),!0):this._drawSausage(n.getAttribute("data-date"),this.endDate,!0),this.readyToDraw=!1,!0;default:return!1}},t.prototype._currentDateType=function(){return this.isEndDate?"endDate":"startDate"},t.prototype._showCallback=function(e,n){var o;return t.__super__._showCallback.call(this,e,n),e&&(this[this._currentDateType()]=e),this.settedRoles[n]=!0,this._checkDates(n),o=this._oppositeRole(n),this.settedRoles[o]?this.isTouchDevice?(this._drawSausage(this.startDate,this.endDate,!0),this.hide(200)):this.hide():this.nodes[o].focus(),this.onSelect(this.startDate,this.endDate,n)},t.prototype._oppositeRole=function(){return this.isEndDate?this.startDateRole:this.endDateRole},t.prototype._checkDates=function(e){var t;return this.startDateObj=this._parseDate(this.startDate)||this.endDateObj&&this._changeDate(this.endDateObj,-1)||this.today,this.endDateObj=this._parseDate(this.endDate)||this.startDateObj&&this._changeDate(this.startDateObj,1),t=this._oppositeRole(e),(+this.startDateObj>+this.endDateObj||+this.startDateObj===+this.endDateObj&&!this.sameday||!this.settedRoles[t]||+this.endDateObj===+this.today)&&(this.settedRoles[t]=!1,this.isEndDate?(this.endDateObj===this.today?this.endDateObj=this._changeDate(this.today,1):this.sameday||(this.endDateObj=this._changeDate(this.startDateObj,1)),this.startDateObj=this._changeDate(this.endDateObj,-1)):this.sameday?this.endDateObj=this._changeDate(this.startDateObj):this.endDateObj=this._changeDate(this.startDateObj,1)),this.startDate=this[this.startDateRole]=this.stringifyDate(this.startDateObj),this.endDate=this[this.endDateRole]=this.stringifyDate(this.endDateObj)},t.prototype._renderDatepicker=function(){if(t.__super__._renderDatepicker.call(this),this._drawSausage(this.startDate,this.endDate),this.legend&&this.prevRole!==this.role)return this._updateLegend({"endDate":"Check-Out","startDate":"Check-In"}[this._currentDateType()])},t.prototype._updateLegend=function(e){var t;return t=this.containerRenderer.legendNode,t.textContent=e,t.classList.toggle("mewtwo-datepicker-legend--start-date",!this.isEndDate),t.classList.toggle("mewtwo-datepicker-legend--end-date",this.isEndDate),this._setScale(1.1,t),setTimeout(function(e){return function(){return e._setScale(1,t)}}(this),200)},t.prototype._drawSausage=function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g,w,b,C,v,x,y,k;if(null==n&&(n=!1),e||t){for(e||(e=t),t||(t=e),i=e.split("-"),o=t.split("-"),e="mewtwo-datepicker-"+e,t="mewtwo-datepicker-"+t,v=e===t,l=0,w=this.containerRenderer.monthRenderers,C=[],u=0,m=w.length;u<m;u++)f=w[u],_=this.month+l++,x=parseInt(i[1],10),a=parseInt(o[1],10),y=parseInt(i[0],10),d=parseInt(o[0],10),k=x<_&&_<=a||(_<=a||0<(b=_-12)&&b<=a)&&y<d||a<x,c=x>a||y>d,C.push(function(){var o,i;o=f.days,i=[];for(s in o)g=o[s],r=g.classList,this.onlyFuture&&r.contains("mewtwo-datepicker-prev-date")?i.push(void 0):(h=e===s, p=t===s,!h||(v||c)&&this.isEndDate?p&&(k||this.isEndDate)?((n||!this.isEndDate||this.settedRoles[this.role])&&r.add("mewtwo-datepicker-end-sausage"),r.remove("mewtwo-datepicker-range"),r.remove("mewtwo-datepicker-start-sausage"),r.remove("mewtwo-datepicker-end-sausage--invisible"),r.remove("mewtwo-datepicker-start-sausage--invisible"),k&&(n||this.settedRoles[this.role])&&r.add("mewtwo-datepicker-range"),k=v,i.push(c=!0)):k&&!c?((n||this.settedRoles[this.role])&&r.add("mewtwo-datepicker-range"),r.remove("mewtwo-datepicker-start-sausage"),i.push(r.remove("mewtwo-datepicker-end-sausage"))):(p?(c=!0,r.add("mewtwo-datepicker-end-sausage--invisible"),r.remove("mewtwo-datepicker-start-sausage--invisible")):h?(r.add("mewtwo-datepicker-start-sausage--invisible"),r.remove("mewtwo-datepicker-end-sausage--invisible")):(r.remove("mewtwo-datepicker-start-sausage--invisible"),r.remove("mewtwo-datepicker-end-sausage--invisible")),r.remove("mewtwo-datepicker-range"),r.remove("mewtwo-datepicker-start-sausage"),i.push(r.remove("mewtwo-datepicker-end-sausage"))):((n||this.isEndDate||this.settedRoles[this.role])&&r.add("mewtwo-datepicker-start-sausage"),r.remove("mewtwo-datepicker-range"),r.remove("mewtwo-datepicker-end-sausage"),r.remove("mewtwo-datepicker-end-sausage--invisible"),r.remove("mewtwo-datepicker-start-sausage--invisible"),k=!v,k&&!c&&(n||this.settedRoles[this.role])?i.push(r.add("mewtwo-datepicker-range")):i.push(void 0)));return i}.call(this));return C}},t.prototype._changeDate=function(e,t){return null==t&&(t=1),new Date(new Date(e).setDate(e.getDate()+t))},t.prototype._returnButtonLogic=function(){var e;if(e=this.containerRenderer.node.querySelector('[role="dont_want_return_ticket"]'))return e.addEventListener("click",function(e){return function(t){return e.endDate=null,e.onSelect(e.startDate,null,e.roles[1]),e.hide()}}(this))},t}(o),t.exports=e("error_handler").handlePublic(i)},{"./datepicker":30,error_handler:64}],54:[function(e,t,n){var o,i,r,s,a,d,c;s=e("templates"),c=e("components/modal_window/modal.monk"),a=e("viewport"),r=e("lib/popup_scroller.coffee"),d="b",o=e("metrics"),o.setup({prefix:"mewtwo_"}),i=function(){function e(){this.shown=!1,this.role=!1,this.template=s(c,null,document.body),this.popup=this.template.node.childNodes[0],this.setClickEvent()}return e.prototype.sendCustomEvent=function(e,t){var n;if(window.CustomEvent)return n=document.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!1,{id:this.role,closeFunc:function(e){return function(){return e.close()}}(this),openFunc:function(e){return function(){return e.show()}}(this)}),t.dispatchEvent(n)},e.prototype.changeSize=function(e,t){return"popup"!==this.size&&(this.popup.style.height=t[this.size].height+"px"),this.show(this.position)},e.prototype.render=function(e,t,n,o,i,r){var s,a,d,c,l,p,h,u,m;if(h=n.modalPriorities?n.modalPriorities:n,this.showPopupOnMobile=!n.notShowPopupOnMobile,this._closePastModal(e),this.onClose=i,this.currentElement=e,this.orientationPriority=0,this.size=null,p=e.dataset?e.dataset.modalModifier?" mewtwo-modal--"+e.dataset.modalModifier:"":e.getAttribute("data-modal-modifier")?" mewtwo-modal--"+e.getAttribute("data-modal-modifier"):"",this.template.update({modifiers:p}),a=null,c=null,l=null,e.dataset?e.dataset.linkedId&&(a=(r||document).querySelector("#"+e.getAttribute("data-linked-id")),c=a.dataset.popupMaxHeight,l=a.dataset.popupMinHeight):e.getAttribute("data-linked-id")&&(a=(r||document).querySelector("#"+e.getAttribute("data-linked-id")),c=a.getAttribute("data-popup-max-height"),l=a.getAttribute("data-popup-min-height")),a&&c&&l&&(d={max:{width:t.max.width,height:c},midMax:{width:t.midMax.width,height:c},midMin:{width:t.midMin.width,height:l},min:{width:t.min.width,height:l},micro:{width:t.micro.width,height:t.micro.height}},(this.size=this.checkPriorities(a,h,d,!1))&&(this.calcDimentions(e,this.size,t[this.size])||(this.size=!1))),this.size||(this.size=this.checkPriorities(e,h,t)),!this.size){s=Infinity;for(u in t)m=t[u],s>m.height&&(s=m.height,this.size=u);this.position=h[h.length-1],this.calcDimentions(e,this.size,t[this.size],!0)}return o&&o(this.popup,this.size),this.show(this.position)},e.prototype.checkPriorities=function(e,t,n,i){var r,s,d;return null==i&&(i=!0),s=a.getViewportSize(),r=e.getBoundingClientRect(),d=null,s.width<460&&this.showPopupOnMobile?(o.sendOnce("mobile_popup_shown"),this.calcDimentions(e,"popup",s),"popup"):(t.some(function(t){return function(o,a){var c,l,p;for(p in n)if(l=n[p],c=t.priorityRules[o](s,r,l))return t.position=o,i&&t.calcDimentions(e,p,l),t.orientationPriority<=a&&(d=p,t.orientationPriority=a),!0}}(this)),d)},e.prototype.calcDimentions=function(e,t,n,o){var i,r,s;return null==o&&(o=!1),s=a.getViewportSize(),r=e.getBoundingClientRect(),"popup"===t?(this.popup.parentElement.classList.add("mewtwo-modal--popup"),void(this.role=e.getAttribute("role"))):!!(i=this.priorityRules[this.position](s,r,n,o))&&(i=this._fixCoordinates(i,s,n),this.popup.style.width=n.width+"px",this.popup.style.height=n.height+"px",this.popup.style.top=Math.round(i[1])+"px",this.popup.style.left=Math.round(i[0])+"px",this.popup.parentElement.className.match(/modal--/)?this.popup.parentElement.className=this.popup.parentElement.className.replace(/(--.+)/,"--"+t):this.popup.parentElement.classList.add("mewtwo-modal--"+t),!0)},e.prototype.fill=function(e){return this.popup.childNodes.length?this.popup.replaceChild(e,this.popup.childNodes[0]):this.popup.appendChild(e)},e.prototype.show=function(e){if(null==e&&(e=""),!this.shown)return"popup"===this.size&&(this.sendCustomEvent("mewtwo_popup_open",document.body),r.init()),"right"===this.position?(this.popup.style.setProperty("display","table","important"),this.popup.childNodes[0].style.setProperty("display","table-cell","important")):(this.popup.style.setProperty("display","block","important"),this.popup.parentElement.style.setProperty("display","block","important")),this.shown=!0},e.prototype.close=function(e){if(this.shown)return"popup"===this.size&&(r.close_popup(),this.sendCustomEvent("mewtwo_popup_close",document.body)),this.onClose&&!e&&this.onClose(),this.popup.parentElement.style.setProperty("display","none","important"),this.popup.style.removeProperty("height"),this.popup.style.removeProperty("width"),this.shown=!1},e.prototype.size=e.size,e.prototype.setClickEvent=function(){return document.addEventListener("click",function(e){return function(t){return e._closePastModal(t.target)}}(this))},e.prototype._closePastModal=function(e){if(this.shown&&e&&("BODY"!==e.tagName&&"HTML"!==e.tagName&&"close_filters"!==e.getAttribute("role")||this.close(),"BODY"!==e.tagName&&"HTML"!==e.tagName&&e!==this.currentElement)){for(;(e=e.parentNode)&&"BODY"!==e.tagName;)if(!e.parentNode||e.classList.contains("mewtwo-modal")||e===this.currentElement)return;return this.close()}},e.prototype._fixCoordinates=function(e,t,n){var o,i;return o=e[0],i=e[1],o<-t.left&&(o=-t.left),i<-t.top&&(i=-t.top),o+n.width>-t.left+t.width&&(o=-t.left+t.width-n.width),i+n.height>-t.top+t.height&&(i=-t.top+t.height-n.height),[o,i]},e.prototype.priorityRules={bottom:function(e,t,n,o){if(null==o&&(o=!1),e.width>=n.width&&e.height-t.bottom>n.height||o)return[t.left-e.left,t.bottom-e.top+1]},top:function(e,t,n,o){if(null==o&&(o=!1),e.width>=n.width&&t.top>n.height||o)return[t.left-e.left,t.top-e.top-n.height-1]},right:function(e,t,n,o){if(null==o&&(o=!1),e.width-t.right>n.width&&e.height>n.height||o)return[t.right-e.left,t.top+t.height/2-n.height/2-e.top]},over:function(e,t,n,o){var i;if(null==o&&(o=!1),i=e.width>=n.width&&e.height>=n.height&&t.top+t.height/2-n.height/2-e.top>-e.top||o)return[t.left+t.width/2-n.width/2+e.left,t.top+t.height/2-n.height/2-e.top]},left:function(e,t,n,o){if(null==o&&(o=!1),t.left>n.width&&e.height>n.height||o)return[t.left-n.width-e.left,t.top+t.height/2-n.height/2-e.top]}},e}(),t.exports=new i},{"components/modal_window/modal.monk":24,"lib/popup_scroller.coffee":74,metrics:70,templates:77,viewport:78}],55:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_,f,g;u=e("templates"),g=e("widget.monk"),l=e("settings"),f={flights:e("blocks/flights/flights"),flights_multi:e("blocks/flights_multi/flights_multi"),hotels:e("blocks/hotels/hotels")},h=e("blocks/tabs/tabs"),c=e("ResizeSensor"),d=e("placeholders"),a=e("components/modal_window/modal"),m=e("viewport"),_=e("debounce"),r=e("metrics"),r.setup({prefix:"mewtwo_"}),i=e("classlist"),o=e("browser"),p=e("swipe_detector"),s=function(){function e(e,t,n){null==n&&(n={}),this.tabs=!1,this.tabCallbacks=[],this.forms={},this.shown=!1,this.handle=t,this.settings=new l(n),this.resizeCallbacks=[],this.settings.settingsGlobal.handle=this.handle,this.settings.settingsGlobal.referrer=this.referrer,this.renderWrapper(e),this.renderForms(),this.initPlaceholders(t),this.initResizeSensor(),this.sendMetrics(),this.sendCommand(),this.applySettingsOnModal()}return o.isIE()&&o.isIE()<=9&&i.shim(),e.prototype.renderWrapper=function(e){var t;return this.isTouch=p.isTouchDevice,this.template=u(g,{handle:this.handle,is_touch:this.isTouch}),e.parentElement.insertBefore(this.template.node,e),this.wrapper=this.template.node.childNodes[0],t=this.settings.settingsGlobal.width,t&&parseInt(t,10)>179&&this.template.node.setAttribute("style","max-width: "+t+"px !important;"+this.template.node.getAttribute("style")),this.hideUnusedAnimations(this.wrapper)},e.prototype.renderForms=function(){var e,t,n,o,i,r;for(this.tabs=new h(this.wrapper,this.settings.settingsGlobal),this.resizeCallbacks.push(this.tabs.resizeCallback()),i=this.settings.formTypes,t=e=0,n=i.length;e<n;t=++e)o=i[t],f[o]&&(r=this.settings.tabSettings(o),r.show_logo&&this.loadLogos(),r.widget=this,this.initForm(o,r));return this.setEvents(this.wrapper),this.renderTabs()},e.prototype.initForm=function(e,t){return this.forms[e]=new f[e](this.wrapper,t,this.handle),this.addTab(e,t,this.forms[e].template.node),this.resizeCallbacks.push(this.forms[e].resizeCallback())},e.prototype.renderTabs=function(){var e;for(e=[];this.tabCallbacks.length>0;)e.push(this.tabCallbacks.shift().call());return e},e.prototype.addTab=function(e,t,n){if(this.tabs)return this.tabCallbacks.push(function(o){return function(){return o.tabs.add({name:e,hidden:!!t.hidden_tab,linked_tab:t.linked_tab,text:t.name,color_scheme:t.color_scheme,node:n})}}(this))},e.prototype.initResizeSensor=function(){return this.wrapper.parentNode.offsetWidth<=0?this.checkVisibility(this.wrapper.parentNode):new c(this.wrapper.parentNode,function(e){return function(t){return e.touchResize(t)}}(this))},e.prototype.checkVisibility=function(e){var t;return t=e.offsetWidth,t>0?(this.initResizeSensor(e,t),this.touchResize(e)):setTimeout(function(t){return function(){return t.checkVisibility(e)}}(this),500)},e.prototype.touchResize=function(e){var t,n,o,i,r,s;for(s=e.offsetWidth,"popup"!==a.size&&a.close(),i=this.resizeCallbacks,r=[],n=0,o=i.length;n<o;n++)t=i[n],r.push(t(e,s));return r},e.prototype.initPlaceholders=function(e){return new d(this.wrapper,e)},e.prototype.loadLogos=function(){var e;if(!window.mewtwoForms.logosLoading)return window.mewtwoForms.logosLoading=!0,e=document.createElement("link"),e.setAttribute("href","//www.travelpayouts.com/mewtwo/logos.css"),e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),document.head.appendChild(e)},e.prototype.checkFormState=function(){var e,t,n,o,i,s;if(i="",this.wrapper.querySelector(".mewtwo-flights-dates-depart-icon")?(i=this.wrapper.querySelector(".mewtwo-flights-dates-depart-icon"),n="flights"):(i=this.wrapper.querySelector(".mewtwo-hotels-city-icon"),n="hotels"),e=window.getComputedStyle(i).getPropertyValue("background-image"),t=e.substr(e.search("fill")),t=t.substr(t.search("%23")+3,6),t!==this.settings.tabsSettings[n].color_scheme.icon&&t!==this.settings.tabsSettings[n].color_scheme.icon.substr(1)&&setTimeout(function(o){return function(){var s,a;return e=window.getComputedStyle(i).getPropertyValue("background-image"),a=e.substr(e.search("fill")),a=a.substr(a.search("%23")+3,6),s={msg:"JS Style. Icon color: "+t+", Config color: "+o.settings.tabsSettings[n].color_scheme.icon+". Color in 1 sec: "+a+" Background: "+e},r.sendEvent("error",s)}}(this),1e3),"180px"!==window.getComputedStyle(this.wrapper).getPropertyValue("min-width")&&(s=window.getComputedStyle(this.wrapper).getPropertyValue("min-width"),setTimeout(function(e){return function(){var t;return t={msg:"Style load. Wrapper min-width: "+s+". In 1 sec: "+window.getComputedStyle(e.wrapper).getPropertyValue("min-width")},r.sendEvent("error",t)}}(this),1e3)),this.wrapper.offsetHeight>this.wrapper.parentNode.parentNode.offsetHeight)return o={msg:"Parent height. Wrapper height: "+this.wrapper.offsetHeight+". Parent height: "+this.wrapper.parentNode.parentNode.offsetHeight},r.sendEvent("error",o)},e.prototype.hideUnusedAnimations=function(e){var t,n;if(null==e&&(e=this.wrapper),t='[role="best_offers"]',n=e.querySelector(t))return m.isElementPartlyVisible(e)?n.style.display="block":n.style.display="none"},e.prototype.setEvents=function(){return window.addEventListener("scroll",_.apply(this,[this.hideUnusedAnimations,50]))},e.prototype.checkShown=function(e){if(!this.shown&&m.isElementPartlyVisible(this.wrapper))return r.sendEvent("show",e),this.checkFormState(),this.shown=!0},e.prototype.sendMetrics=function(){var e;if(e={referrer:this.referrer,form_type:this.settings.settingsGlobal.form_type,form_id:this.handle,marker:this.settings.settingsGlobal.marker},r.sendEvent("init",e),this.checkShown(e),!this.shown)return window.addEventListener("scroll",_.apply(this,[function(t){return function(){return t.checkShown(e)}}(this),50]))},e.prototype.triggerEvent=function(e,t){var n;return document.createEventObject?e.fireEvent("on"+t):(n=document.createEvent("Events"),n.initEvent(t,!0,!1),e.dispatchEvent(n))},e.prototype.applySettingsOnModal=function(){return document.body.addEventListener("mewtwo_popup_open",function(e){return function(t){if(e.settings.settingsGlobal.popup_open_callback)return e.settings.settingsGlobal.popup_open_callback(t.detail)}}(this)),document.body.addEventListener("mewtwo_popup_close",function(e){return function(){if(e.settings.settingsGlobal.popup_close_callback)return e.settings.settingsGlobal.popup_close_callback(event.detail)}}(this))},e.prototype.sendCommand=function(){var e,t,n,o,i,r,s,a,d,c,l,p,h;for(l=document.getElementsByTagName("script"),i=0,s=l.length;i<s;i++)p=l[i],d=/\/mewtwo\/form_.+\.js#(.*)/i.exec(p.getAttribute("src")),d&&d.length>1&&(t=d[1]);for(n="",t&&(n=t.split("&")),e={},r=0,a=n.length;r<a;r++)c=n[r],h=c.split("="),"mewtwo_control"===h[0]&&(e[h[0]]=h[1]);if(e.mewtwo_control)return o=document.querySelector('[role="'+e.mewtwo_control+'"]'),setTimeout(this.triggerEvent(o,"click"),this.triggerEvent(o,"focus"),this.triggerEvent(o,"input"),100)},e}(),t.exports=e("error_handler").handlePublic(s)},{ResizeSensor:56,"blocks/flights/flights":42,"blocks/flights_multi/flights_multi":43,"blocks/hotels/hotels":46,"blocks/tabs/tabs":48,browser:58,classlist:59,"components/modal_window/modal":54,debounce:62,error_handler:64,metrics:70,placeholders:71,settings:75,swipe_detector:76,templates:77,viewport:78,"widget.monk":25}],56:[function(e,t,n){!function(){this.ResizeSensor=function(e,t){function n(){this.q=[],this.add=function(e){this.q.push(e)};var e,t;this.send=function(n){for(e=0,t=this.q.length;e<t;e++)this.q[e](n)}}function o(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}function i(e,t){if(e.resizedAttached){if(e.resizedAttached)return void e.resizedAttached.add(t)}else e.resizedAttached=new n,e.resizedAttached.add(t);e.resizeSensor=document.createElement("div"),e.resizeSensor.className="resize-sensor";var i="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;",r="position: absolute; left: 0; top: 0;";e.resizeSensor.style.cssText=i,e.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+i+'"><div style="'+r+'"></div></div><div class="resize-sensor-shrink" style="'+i+'"><div style="'+r+' width: 200%; height: 200%"></div></div>',e.appendChild(e.resizeSensor),{fixed:1,absolute:1}[o(e,"position")]||(e.style.position="relative");var s,a,d=e.resizeSensor.childNodes[0],c=d.childNodes[0],l=e.resizeSensor.childNodes[1],p=(l.childNodes[0],function(){c.style.width=d.offsetWidth+10+"px",c.style.height=d.offsetHeight+10+"px",d.scrollLeft=d.scrollWidth,d.scrollTop=d.scrollHeight,l.scrollLeft=l.scrollWidth,l.scrollTop=l.scrollHeight,s=e.offsetWidth,a=e.offsetHeight});p();var h=function(){e.resizedAttached&&e.resizedAttached.send(e)},u=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};u(d,"scroll",function(){(e.offsetWidth>s||e.offsetHeight>a)&&h(),p()}),u(l,"scroll",function(){(e.offsetWidth<s||e.offsetHeight<a)&&h(),p()})}if("[object Array]"===Object.prototype.toString.call(e)||"undefined"!=typeof jQuery&&e instanceof jQuery||"undefined"!=typeof Elements&&e instanceof Elements)for(var r=0,s=e.length;r<s;r++)i(e[r],t);else i(e,t);this.detach=function(){ResizeSensor.detach(e)}},this.ResizeSensor.detach=function(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)},t.exports=ResizeSensor}()},{}],57:[function(e,t,n){t.exports=[{origin_name:"Москва",origin_iata:"LED",destination_name:"Москва",destination_iata:"MOW",depart_date:"2015-06-23",return_date:"2015-06-24",value:5249,price:{value:10,currency:"rub"}},{origin_name:"Пхукет",origin_iata:"HKT",destination_name:"Пхукет",destination_iata:"SIN",depart_date:"2015-06-23",return_date:"2015-06-24",value:5249,price:{value:20,currency:"rub"}},{origin_name:"Куала-Лумпур",origin_iata:"HKT",destination_name:"Куала-яоченьдлинноеназваниегорода",destination_iata:"KUL",depart_date:"2015-06-23",return_date:"2015-06-24",value:5249,price:{value:30,currency:"rub"}},{origin_name:"Санкт-Петербург",origin_iata:"MOW",destination_name:"Санкт-Петербург",destination_iata:"LED",depart_date:"2015-07-01",return_date:"2015-07-07",value:5249,price:{value:4e3,currency:"rub"}},{origin_name:"Бангкок",origin_iata:"BKK",destination_name:"Бангкок",destination_iata:"MOW",depart_date:"2015-12-11",return_date:"",value:25932,price:{value:5e4,currency:"rub"}}],t.exports2=[{origin_name:"Санкт-Петербург",origin_iata:"LED",destination_name:"Санкт-Петербург",destination_iata:"MOW",depart_date:"2015-06-23",return_date:"2015-06-24",value:5249,price:{value:5249,currency:"rub"}}]},{}],58:[function(e,t,n){t.exports=e("error_handler").handlePublic({isIE:function(){var e;return e=navigator.userAgent.toLowerCase(),e.indexOf("msie")!==-1?parseInt(e.split("msie")[1]):e.indexOf("trident")!==-1&&parseInt(e.split("rv:")[1].split(")")[0])}})},{error_handler:64}],59:[function(e,t,n){/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ return t.exports={shim:function(){"document"in self&&("classList"in document.createElement("_")?!function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,o=arguments.length;for(n=0;n<o;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}():!function(e){"use strict";if("Element"in e){var t="classList",n="prototype",o=e.Element[n],i=Object,r=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},a=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},d=function(e,t){if(""===t)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(e,t)},c=function(e){for(var t=r.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],o=0,i=n.length;o<i;o++)this.push(n[o]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},l=c[n]=[],p=function(){return new c(this)};if(a[n]=Error[n],l.item=function(e){return this[e]||null},l.contains=function(e){return e+="",d(this,e)!==-1},l.add=function(){var e,t=arguments,n=0,o=t.length,i=!1;do e=t[n]+"",d(this,e)===-1&&(this.push(e),i=!0);while(++n<o);i&&this._updateClassName()},l.remove=function(){var e,t,n=arguments,o=0,i=n.length,r=!1;do for(e=n[o]+"",t=d(this,e);t!==-1;)this.splice(t,1),r=!0,t=d(this,e);while(++o<i);r&&this._updateClassName()},l.toggle=function(e,t){e+="";var n=this.contains(e),o=n?t!==!0&&"remove":t!==!1&&"add";return o&&this[o](e),t===!0||t===!1?t:!n},l.toString=function(){return this.join(" ")},i.defineProperty){var h={get:p,enumerable:!0,configurable:!0};try{i.defineProperty(o,t,h)}catch(u){u.number===-2146823252&&(h.enumerable=!1,i.defineProperty(o,t,h))}}else i[n].__defineGetter__&&o.__defineGetter__(t,p)}}(self))}}},{}],60:[function(e,t,n){var o,i,r,s=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};i=e("metrics"),i.setup({prefix:"mewtwo_"}),r=e("is_mobile"),o=function(){function e(e,t){var n,o,i;if(!r){window._ctq||(window._ctq=[]),this.prepoped=!1,this.attempts=20,this.unic=e,this.queue=window._ctq,this.checkbox=t.checkbox,this.options=t,this.queue.push(["newCompareToStrip",this.unic]),this.pushAction("setPublisherID",this.publisherId),i=this.options.params;for(o in i)n=i[o],this.pushAction("set"+o,n);this.pushAction("optMaxChecked","1"),this.pushAction("optMaxAdvertisers","7"),this.pushAction("optForceTabbedMode","true"),this.pushAction("optPopUnder","true"),this.pushAction("optPrePop","true"),this.pushAction("onSubmit",this.getHandler()),this.pushAction("optDateFormat","Y-m-d"),this.pushAction("optLocalization","en"),this.pushAction("setReferralURL",this.options.marker),this.pushAction("draw"),this.checkCtObjPrepop()}}return e.prototype.publisherId="615",e.prototype.ctUA=!1,e.prototype.checkCtObjPrepop=function(){var e,t,n,o,i;if(this.attempts-- >0&&window._ctObjs&&window._ctObjs[this.unic]){for(this.ct=window._ctObjs[this.unic],this.ctUA||(this.ctUA=new CTUserAgent),this.pushAction("optOpenNewWindowsInTabs",(!this.ctUA.BrowserIsFF4Plus()).toString()),this.prepoped=!(this.ctUA.BrowserIsChrome()||this.ctUA.BrowserIsIE()),o=this.options.prepops,i=[],e=0,n=o.length;e<n;e++)t=o[e],this.ct.redrawWhenElementBlurs(t),this.ct.prepopOnClick(t),this.prepoped?i.push(void 0):i.push(document.getElementById(t).addEventListener("click",function(e){return function(){return e.prepoped=!0}}(this)));return i}return setTimeout(function(e){return function(){return e.checkCtObjPrepop()}}(this),500)},e.prototype.getHandler=function(){var e;return e=this.unic+"CheckboxHandler",s.call(window,e)<0&&(window[e]=function(e){return function(){if(e.ct)return e.prepoped&&e.checkbox.checked?(e.pushAction("enable"),i.sendEvent("clicktripz_popunder_submit",{form_id:e.options.handle})):e.pushAction("disable")}}(this)),e},e.prototype.pushAction=function(e,t){return t?this.queue.push([this.unic+"."+e,t]):this.queue.push([this.unic+"."+e])},e.loadScript=function(){var e,t;if(!window.mewtwoForms.clicktripzInitialized&&!r)return window.mewtwoForms.clicktripzInitialized=!0,e=document.createElement("script"),e.type="text/javascript",e.async=!0,e.src="//www.travelpayouts.com/mewtwo/ct.js",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(e,t)},e}(),t.exports=e("error_handler").handlePublic(o)},{error_handler:64,is_mobile:68,metrics:70}],61:[function(e,t,n){function o(e,t,n){var o=e<0?e*-1:e,i=Math.round,r=parseInt;if(t.length>7){var s=t.split(","),a=(n?n:e<0?"rgb(0,0,0)":"rgb(255,255,255)").split(","),d=r(s[0].slice(4)),c=r(s[1]),l=r(s[2]);return"rgb("+(i((r(a[0].slice(4))-d)*o)+d)+","+(i((r(a[1])-c)*o)+c)+","+(i((r(a[2])-l)*o)+l)+")"}var s=r(t.slice(1),16),a=r((n?n:e<0?"#000000":"#FFFFFF").slice(1),16),p=s>>16,h=s>>8&255,u=255&s;return"#"+(16777216+65536*(i(((a>>16)-p)*o)+p)+256*(i(((a>>8&255)-h)*o)+h)+(i(((255&a)-u)*o)+u)).toString(16).slice(1)}function i(e,t,n){e/=255,t/=255,n/=255;var o,i,r=Math.max(e,t,n),s=Math.min(e,t,n),a=(r+s)/2;if(r==s)o=i=0;else{var d=r-s;switch(i=a>.5?d/(2-r-s):d/(r+s),r){case e:o=(t-n)/d+(t<n?6:0);break;case t:o=(n-e)/d+2;break;case n:o=(e-t)/d+4}o/=6}return[o,i,a]}function r(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}function s(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}var a;a=function(e){var t;return t=window.getComputedStyle?window.getComputedStyle(e,""):e.currentStyle,"transparent"===t.backgroundColor?"rgba(0,0,0,0)":t.backgroundColor},t.exports=e("error_handler").handlePublic({shade:o,hexToRgb:s,rgbToHsl:i,hexToHsl:function(e){var t;return t=s(e),i(t.r,t.g,t.b)},hexToRgba:function(e,t){var n;if(n=this.hexToRgb(e))return"rgba("+n.r+","+n.g+","+n.b+","+t+")"},isBright:function(e){var t,n;return"transparent"===e||""===e||(e=e.replace("#",""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),n=this.hexToHsl(e),t=.8,n[2]>.8)},getNotTransparentBGColor:function(e){var t,n,o;for(n=e;;){if(t=a(n),t.split(",").length<4||"0)"!==t.split(",")[3].trim()||n===document.body)break;n=n.parentElement}return t.split(",").length>1&&(o=t.split("(")[1].split(")")[0].split(","),t=r(+o[0],+o[1].trim(),+o[2].trim())),t}})},{error_handler:64}],62:[function(e,t,n){t.exports=e("error_handler").decorate(function(e,t){var n,o;return o=null,n=this,function(){return o&&clearTimeout(o),o=setTimeout(function(){return e.apply(n),o=null},t)}})},{error_handler:64}],63:[function(e,t,n){t.exports={deepMerge:function(){var e,t,n,o,i,r;for(i={},e=0,n=arguments.length;e<n;e++){o=arguments[e];for(t in o)r=o[t],i[t]=r&&r.constructor===Object?this.deepMerge(i[t],r):r}return i}}},{}],64:[function(e,t,n){var o,i;o=e("metrics"),o.setup({prefix:"mewtwo_"}),i={lastErrorMessage:null,decorate:function(e,t){var n;return n=this,function(){var i,r,s,a,d;try{return e.apply(t||this,arguments)}catch(c){throw i=c,i=i||"Error is undefined",r=i.toString(),n.lastErrorMessage!==r&&(n.lastErrorMessage=r,i.stack||(i.stack=""),d=i.stack,delete i.stack,s={msg:i.toString(),error:i},a=JSON.stringify(s).length,s.stack=d.substr(0,1e3-a),o.sendEvent("error",s)),i}}},handlePublic:function(e){var t,n,o;"function"==typeof e&&(t=e.prototype);for(n in t)o=t[n],"_"!==n[0]&&"function"==typeof o&&(t[n]=this.decorate(o));return e}},t.exports=i},{metrics:70}],65:[function(e,t,n){t.exports={commaFirst:function(e){return e?(","!==e[0]&&(e=", "+e.trim()),e.replace(" "," ")):""}}},{}],66:[function(e,t,n){var o,i,r,s,a,d;i=e("deep_merge"),d=e("components/datepicker/scripts/datepicker_range"),s=e("components/autocomplete/places_autocomplete"),r=e("metrics"),a=e("swipe_detector"),r.setup({prefix:"mewtwo_"}),o=function(){function e(e,t){this.virgin=!0,this.settings=i.deepMerge(t),this.settings.locale="en",this.nodes={},this.autocompletes={},this.wrapper=e,this.prevModifier=null,this.dates={widthBreakpoints:{currentYear:150,nextYears:200}},this.eventType="form"}return e.prototype.modifiers={},e.prototype.setModifier=function(e,t){var n,o,i,r,s,a;n=e.classList,o=null,s=this.modifiers;for(i in s)r=s[i],r[0]<t&&t<=r[1]&&(o=i);if(this.prevModifier!==o){a=this.modifiers;for(i in a)r=a[i],n.remove(i);o&&n.add(o),this.prevModifier=o}if(e.offsetWidth<=0)return this.checkVisibility(e)},e.prototype.resizeCallback=function(){return function(e){return function(t,n){return e.onResize(t,n)}}(this)},e.prototype.onResize=function(e,t){return this.setModifier(e,t)},e.prototype.checkVisibility=function(e){var t;return t=e.offsetWidth,t>0?this.setModifier(e,t):setTimeout(function(t){return function(){return t.checkVisibility(e)}}(this),500)},e.prototype.findWidthParentNode=function(e){var t;return 0!==e.offsetWidth?e.offsetWidth:(t=e.parentNode,this.findWidthParentNode(t))},e.prototype.initDatepicker=function(e,t){var n,o,i;for(this.datepickerRoles=e,n=0,o=e.length;n<o;n++)i=e[n],this.dates[i]={value:null,format:"long"};return this.datepicker=new d({wrapper:t.node,roles:this.datepickerRoles,color:this.settings.color_scheme.icon,identifier:this.settings.handle,locale:this.settings.locale}),this.datepicker.onSelect=function(e){return function(n,o,i,s){var a;return null==s&&(s=!0),s&&r.sendOnce(i+"_select",{form_id:e.settings.handle}),e.setDates(n,o,t),a={secondDateModifier:""},o&&(a.secondDateModifier=e.secondDateModifier),t.update(a)}}(this),this.datepicker.startDate=this.settings.start_date||this.datepicker.stringifyDate(new Date(Date.now()+6048e5)),this.datepicker.endDate=""===this.settings.end_date?null:this.settings.end_date||this.datepicker.stringifyDate(new Date(Date.now()+12096e5)),this.datepicker.onSelect(this.datepicker.startDate,this.datepicker.endDate,this.datepickerRoles[0],!1),this.datepicker.settedRoles[this.datepickerRoles[0]]=!0,this.setInputEvents(t)},e.prototype.setDates=function(e,t,n){var o,i,r;if(o=this.updateDate(e,this.datepickerRoles[0]),r=this.updateDate(t,this.datepickerRoles[1]),(o||r)&&(i={secondDateModifier:""},o&&(this.firstDate=i.firstDate=this.formattesDateData(e,this.dates[this.datepickerRoles[0]].format)),r&&(i.secondDate=this.formattesDateData(t,this.dates[this.datepickerRoles[1]].format),i.one_way=t?"false":"true"),t&&(i.secondDateModifier=this.secondDateModifier),n.update(i),this.datepicker.nodes[this.datepickerRoles[0]].valueChanged))return this.datepicker.nodes[this.datepickerRoles[0]].valueChanged(),this.datepicker.nodes[this.datepickerRoles[1]].valueChanged()},e.prototype.updateDate=function(e,t){return e=this.datepicker.formatDateValue(e),this.dates[t].value!==e?(this.datepicker[t]=this.dates[t].value=e,this.checkDatesFormat(t),!0):!!this.checkDatesFormat(t)},e.prototype.checkDatesFormat=function(e){var t,n,o,i;if(t=this.dates[e].value,!t||""!==t)return o=new Date(t).getFullYear()===(new Date).getFullYear(),i=this.dates.widthBreakpoints[o?"currentYear":"nextYears"],n=this.datepicker.nodes[e].offsetWidth<i?"short":"long",this.dates[e].format!==n&&(this.dates[e].format=n)},e.prototype.formattesDateData=function(e,t){var n,o;return o=this.datepicker.getDay(e),["en_us"].indexOf(this.settings.locale)!==-1?(""!==o&&(o+=", "),n=o+this.datepicker.formatPluralisedDate(e,t)):(""!==o&&(o=", "+o),n=this.datepicker.formatPluralisedDate(e,t)+o),{formatted:n,value:this.datepicker.formatDateValue(e),weekday:o}},e.prototype.initAutocomplete=function(e,t,n){return this.autocompletes[e]=new s({wrapper:this.template,role:e,handle:this.settings.handle,fetcher:t,color_scheme:this.settings.color_scheme,name:n,autocomplete_item_height:this.settings.autocomplete_item_height,onResult:function(t){return function(o){return r.sendOnce(e+"_select",{form_id:t.settings.handle}),t.setAutocompleteData(e,o,n)}}(this)})},e.prototype.setAutocompleteData=function(e){return this.autocompletes[e].setAutocompleteData()},e.prototype.setInputEvents=function(e){return this.template.querySelector("[role="+this.datepickerRoles[0]+"]").addEventListener("focus",function(t){return function(){return e.update({firstDateFocused:t.firstDateFocused})}}(this)),this.template.querySelector("[role="+this.datepickerRoles[0]+"]").addEventListener("blur",function(){return e.update({firstDateFocused:""})}),this.template.querySelector("[role="+this.datepickerRoles[1]+"]").addEventListener("focus",function(t){return function(){return e.update({secondDateFocused:t.secondDateFocused})}}(this)),this.template.querySelector("[role="+this.datepickerRoles[1]+"]").addEventListener("blur",function(){return e.update({secondDateFocused:""})})},e.prototype.eventData=function(e){return null==e&&(e={}),i.deepMerge(e,{referrer:this.settings.referrer,form_id:this.settings.handle,marker:this.settings.marker,form_type:this.settings.form_type,event_type:this.eventType})},e.prototype.validateForm=function(){return!0},e.prototype.onInteract=function(){return this.virgin=!1,this.template.node.classList.remove("mewtwo-flights--virgin")},e.prototype.initMetricsListeners=function(){var e,t,n,o;for(this.template.node.addEventListener("click",function(e){return function(){return e.virgin&&e.onInteract(),r.sendOnce("interact",e.eventData())}}(this)),this.template.node.addEventListener("mouseenter",function(e){return function(){if(!a.isTouchDevice)return r.sendOnce("mouseenter",e.eventData())}}(this)),o=this.template.node.querySelectorAll('[role="logo"]'),e=0,t=o.length;e<t;e++)n=o[e],n.addEventListener("click",function(e){return function(t){return r.sendEvent("lead",e.eventData({trigger:"logo"}))}}(this));return this.form.addEventListener("submit",function(e){return function(t){if(e.validateForm(t))return r.sendEvent("lead",e.eventData({trigger:"submit"}))}}(this)),this.template.node.addEventListener("click",function(e){return function(t){var n;if("offer"===t.target.getAttribute("role"))return r.sendEvent("lead",e.eventData({trigger:"offer"}));for(n=t.target;(n=n.parentNode)&&"offer"!==n.getAttribute("role");)if("BODY"===n.tagName||!n.parentNode||n===e.template.node)return;return r.sendEvent("lead",e.eventData({trigger:"offer"}))}}(this))},e.prototype.hashToParams=function(e,t){var n,o,i;if(null==t&&(t=""),!e)return"";o=[];for(n in e)i=e[n],o.push(n+"="+encodeURIComponent(i));return o=o.join("&"),o&&t?""+t+o:""},e}(),t.exports=e("error_handler").handlePublic(o)},{"components/autocomplete/places_autocomplete":51,"components/datepicker/scripts/datepicker_range":53,deep_merge:63,error_handler:64,metrics:70,swipe_detector:76}],67:[function(e,t,n){t.exports=window.mewtwoForms.geoIPSetter},{}],68:[function(e,t,n){var o=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(window.navigator.userAgent);t.exports=o},{}],69:[function(e,t,n){!function(e,n,o){if("undefined"!=typeof t&&t.exports)t.exports=o();else if("function"==typeof define&&define.amd)define(o);else{var i=n[e],r=o();r.noConflict=function(){return n[e]=i,r},n[e]=r}}("JSONP",this,function(){function e(e,t){var n=s.createElement("script"),o=!1;n.src=e,n.async=!0;var r=t||d.error;"function"==typeof r&&(n.onerror=function(t){r({url:e,event:t})}),n.onload=n.onreadystatechange=function(){o||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(o=!0,n.onload=n.onreadystatechange=null,n&&n.parentNode&&n.parentNode.removeChild(n))},i||(i=s.getElementsByTagName("head")[0]),i.appendChild(n)}function t(e){return encodeURIComponent(e)}function n(n,o,i,s,c,l){var p,h=(n||"").indexOf("?")===-1?"?":"&";"function"==typeof o&&(i=o,o={}),s=s||d.callbackName||"callback";var u=c||s+"_json"+ ++a;o=o||{};for(p in o)o.hasOwnProperty(p)&&(h+=t(p)+"="+t(o[p])+"&");return r[u]=function(e){i(e);try{r[u]=null,delete r[u]}catch(t){}},e(n+h+s+"="+u,l),u}function o(e){d=e}if("undefined"==typeof window)throw new Error("This script is only for use in browser environment");var i,r=window,s=r.document,a=0,d={};return{get:n,init:o}})},{}],70:[function(e,t,n){var o,i,r,s,a,d,c,l,p,h,u,m,_;o=e("jsonp"),i=e("deep_merge"),a="458",r="b",p="5006af9ab65897fff23508f3c3fd4f10",m="true",_="true"===m,d=0,h=window.TP_FORM_SETTINGS&&window.TP_FORM_SETTINGS[p]&&!!window.TP_FORM_SETTINGS[p].silent_metrics;try{c=e("detect-browser").name}catch(f){c=0}s=document.cookie.split("ab"+a+"="),s[1]?s[1][0]!==r&&(d=1):d=2,l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),!_||window.travelpayouts_metrics_off||h||(u=e("mamka"))("create",{project_name:"travelpayouts_mewtwo"}),t.exports={prefix:"",metrics:{},silentMode:h,setup:function(e){if(null==e&&(e={}),e.prefix)return this.prefix=e.prefix},setMode:function(e){return this.silentMode=!!e},sendOnce:function(e,t,n){if(null==t&&(t=""),n=n||t.id||t.form_id||"form",n&&t.event_type&&(n+=t.event_type),!(n&&this.metrics[n]&&this.metrics[n][e]))return this.sendEvent(e,t,n)},sendEvent:function(e,t,n){var o,s;return null==t&&(t=""),!!this.silentMode||(t=i.deepMerge({ab_experiment:a,ab_branch:r+"."+a,ab_state:d,browser:c,device_width:l,form_id:p},t),o=encodeURIComponent(this.prefix+e),s=n||t.id||t.form_id,!n&&s&&t.event_type&&(s+=t.event_type),s&&this._traceMetric(e,t,s),_&&!window.travelpayouts_metrics_off?u("send_event",{name:o,meta:t}):window.travelpayouts_metrics_debug?console.debug("Send metric %c"+o+" ","font-weight: bold;",t):void 0)},addTiming:function(e,t,n){var o,i;return(o=this.metrics)[t]||(o[t]={}),(i=this.metrics[t])[e]||(i[e]={timestamp:(new Date).getTime()})},_traceMetric:function(e,t,n){var o,i,r,s,a;if(this.addTiming(e,n,(new Date).getTime()),s=(new Date).getTime(),""!==t){i=this.metrics[n],r=[];for(a in i)o=i[a],o&&a!==e?(t.timings||(t.timings={}),r.push(t.timings[a]=s-o.timestamp)):r.push(void 0);return r}}}},{deep_merge:63,"detect-browser":35,jsonp:69,mamka:37}],71:[function(e,t,n){var o;o=function(){function e(e,t){var n,o,i,r,s,a,d,c,l,p,h;for(n=0,h=e.querySelectorAll("input[placeholder]"),i=0,c=h.length;i<c;i++)s=h[i],s.getAttribute("data-placeholder-initialized")||(s.setAttribute("data-placeholder-initialized",!0),p=s.getAttribute("placeholder"),d=s.getAttribute("data-label")||p,l=s.parentNode,r=s.getAttribute("id"),r||(r="input-with-placeholder-"+n++ +"__handle--"+t,s.setAttribute("id",r)),a=document.createElement("label"),a.setAttribute("for",r),a.appendChild(document.createTextNode(d)),l.insertBefore(a,s),this.checkFilling.apply(s),s.addEventListener("blur",this.checkFilling),s.addEventListener("fill_"+t,this.checkFilling),s.fill=function(){return this.classList.add("mewtwo-filled")},s.clean=function(){return this.classList.remove("mewtwo-filled")},o=this.checkFilling,s.valueChanged=function(){return o.apply(this)})}return e.prototype.checkFilling=function(){return this.value.length>0?this.classList.add("mewtwo-filled"):this.classList.remove("mewtwo-filled")},e}(),t.exports=e("error_handler").handlePublic(o)},{error_handler:64}],72:[function(e,t,n){t.exports=e("error_handler").handlePublic({pluralize:function(e,t,n){var o,i;return"ru"===n?(o=e%10,i=e%100,1===o&&11!==i?t[0]:2<=o&&o<=4&&(i<10||20<=i)?t[1]:t[2]):1===e?t[0]:t[1]}})},{error_handler:64}],73:[function(e,t,n){var o,i;i=function(){var e,t;return"Microsoft Internet Explorer"===navigator.appName&&(e=navigator.userAgent,null!==e.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/)&&(t=parseFloat(RegExp.$1),t<11))||"Opera"===navigator.appName},o=function(e){var t,n,o,i,r,s,a;for(n=[".mewtwo-flights-origin>div",".mewtwo-flights-origin>label",".mewtwo-flights-origin-country__pseudo",".mewtwo-flights-origin-country__name",".mewtwo-flights-origin__iata:before",".mewtwo-flights-destination>div",".mewtwo-flights-destination>label",".mewtwo-flights-destination-country__pseudo",".mewtwo-flights-destination-country__name",".mewtwo-flights-destination__iata:before",".mewtwo-flights-dates-depart>div",".mewtwo-flights-dates-depart>label","flights-dates-depart-weekday__pseudo",".mewtwo-flights-dates-depart-weekday__name",".mewtwo-flights-dates-return>div",".mewtwo-flights-dates-return>label","flights-dates-return-weekday__pseudo",".mewtwo-flights-dates-return-weekday__name",".mewtwo-tabs-tabs_list__item:before",".mewtwo-hotels-city>div",".mewtwo-hotels-city-location__pseudo",".mewtwo-hotels-city-location__name",".mewtwo-hotels-city-icon",".mewtwo-hotels-city-icon:before",".mewtwo-hotels-dates-checkin>div",".mewtwo-hotels-dates-checkin-weekday__pseudo",".mewtwo-hotels-dates-checkin-weekday__name",".mewtwo-hotels-dates-checkin-icon:before",".mewtwo-hotels-dates-checkout>div",".mewtwo-hotels-dates-checkout-weekday__pseudo",".mewtwo-hotels-dates-checkout-weekday__name",".mewtwo-hotels-dates-checkout-icon:before"],a=n.join(","),r=e.querySelectorAll(a),s=[],o=0,i=r.length;o<i;o++)t=r[o],s.push(t.addEventListener("click",function(e){return e.target.parentNode.querySelector('input[type="text"]')?setTimeout(function(){return e.target.parentNode.querySelector('input[type="text"]').focus()},1):setTimeout(function(){return e.target.parentNode.parentNode.querySelector('input[type="text"]').focus()},1)}));return s},t.exports={fix:function(e){if(i())return o(e)}}},{}],74:[function(e,t,n){var o;o={scrollTop:0,init:function(){var e;if(e=!1,document.body.classList.contains("mewtwo-mobile_overflow--hidden")||void 0===window.pageYOffset?(document.body.style.top=0,e=!0):(this.scrollTop=window.pageYOffset,document.body.style.top="-#{this.scrollTop}px"),document.body.classList.toggle("mewtwo-mobile_overflow--hidden"),e)return window.scrollTo(0,this.scrollTop)},close_popup:function(){if(document.body.classList.contains("mewtwo-mobile_overflow--hidden"))return this.init()}},t.exports=o},{}],75:[function(e,t,n){var o,i,r;r=e("./default_config"),o=e("./deep_merge"),i=function(){function e(e){this.settingsGlobal=this._mergeWithDefault(e),this.settingsGlobal.marker=this.settingsGlobal.marker.toString().split(".$")[0],this.settingsGlobal.force_currency?this.settingsGlobal.force_currency={currency:this.settingsGlobal.currency}:delete this.settingsGlobal.force_currency,this.settingsGlobal.form_type=e.tabs.flights?e.tabs.hotels?"avia_hotel":"avia":"hotel",this.tabsSettings=o.deepMerge(this.settingsGlobal.tabs),delete this.settingsGlobal.tabs,this.formTypes=Object.keys(e.tabs),this.formTypes.indexOf(this.settingsGlobal.active_tab)===-1&&(this.settingsGlobal.active_tab=this.formTypes[0])}return e.prototype.serviceMarker=".$13",e.prototype.tabSettings=function(e){if(null==e&&(e="flights"),this.settingsTab=this.tabsSettings[e])return o.deepMerge(this.settingsTab,this.settingsGlobal)},e.prototype._mergeWithDefault=function(e){return o.deepMerge(r,e)},e}(),t.exports=e("error_handler").handlePublic(i)},{"./deep_merge":33,"./default_config":34,error_handler:64}],76:[function(e,t,n){var o;o=function(){function e(e,t,n){this.wrapper=null!=e?e:document.body,this.callbacks=null!=t?t:{},this.sensivity=null!=n?n:10,this.wrapper.addEventListener("touchstart",function(e){return function(t){return e.handleTouchStart(t)}}(this),!1),this.wrapper.addEventListener("touchend",function(e){return function(t){return e.handleTouchEnd(t)}}(this),!1),this.wrapper.addEventListener("touchmove",function(e){return function(t){return e.handleTouchMove(t)}}(this),!1)}return e.isTouchDevice="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,e.prototype.xDown=null,e.prototype.yDown=null,e.prototype.wrapper=null,e.prototype.callbacks={},e.prototype.sensivity=50,e.prototype.xDiff=0,e.prototype.yDiff=0,e.prototype.blockScroll=!1,e.prototype.handleTouchStart=function(e){return this.blockScroll=!0,this.xDown=e.touches[0].clientX,this.yDown=e.touches[0].clientY},e.prototype.handleTouchEnd=function(e){return this.blockScroll=!1,Math.abs(this.xDiff)>Math.abs(this.yDiff)?Math.abs(Math.abs(this.xDiff)-Math.abs(this.yDiff))>this.sensivity&&(this.xDiff>0?this.callbacks.left&&this.callbacks.left():this.callbacks.right&&this.callbacks.right()):Math.abs(Math.abs(this.yDiff)-Math.abs(this.xDiff))>this.sensivity&&(this.yDiff>0?this.callbacks.up&&this.callbacks.up():this.callbacks.down&&this.callbacks.down()),this.xDown=null,this.yDown=null,this.xDiff=0,this.yDiff=0},e.prototype.handleTouchMove=function(e){var t,n;if(this.blockScroll&&e.preventDefault(),this.xDown&&this.yDown)return t=e.touches[0].clientX,n=e.touches[0].clientY,this.xDiff+=this.xDown-t,this.yDiff+=this.yDown-n,this.xDown=t,this.yDown=n},e}(),t.exports=e("error_handler").handlePublic(o)},{error_handler:64}],77:[function(e,t,n){var o,i;o=e("monkberry"),i=function(e,t,n,i){return e=o.render(e,n||document.createDocumentFragment(),i||{}),e.node=e.createDocument(),t&&e.update(t),e},t.exports=e("error_handler").handlePublic(i)},{error_handler:64,monkberry:38}],78:[function(e,t,n){var o;o={getViewportSize:function(){var e;return e=document.documentElement.getBoundingClientRect(),{left:e.left,top:e.top,width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}},isElementInViewport:function(e){var t;return t=e.getBoundingClientRect(),t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},isElementPartlyVisible:function(e){var t,n;return t=function(e){var t;return e=e||window,e.innerWidth?{w:e.innerWidth,h:e.innerHeight}:(t=e.document,"CSS1Compat"===t.compatMode?{w:t.documentElement.clientWidth,h:t.documentElement.clientHeight}:{w:t.body.clientWidth,h:t.body.clientWidth})},(n=function(e){var n,i,r;return n=e.getBoundingClientRect(),i=n.height||n.bottom-n.top,r=n.width||n.right-n.left,o=t(),!(!i||!r)&&(!(n.top>o.h||n.bottom<0)&&!(n.right<0||n.left>o.w))})(e)}},t.exports=e("error_handler").handlePublic(o)},{error_handler:64}]},{},[32]);

Related: See More


Questions / Comments: