text: /*! elementor - v3.2.3 - 05-05-2021 */
  (self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[723],{2937:(e,t,i)=>{e.exports=i(7841)},7841:(e,t,i)=>{i(6344);var n=i(7252).Object;e.exports=function defineProperties(e,t){return n.defineProperties(e,t)}},6344:(e,t,i)=>{var n=i(2570);n(n.S+n.F*!i(3752),"Object",{defineProperties:i(5548)})},3896:(e,t,i)=>{"use strict";var n=i(7971);i(4828);var s=n(i(7135));i(6248);var o=n(i(9117));i(1954),i(4208);var a=n(i(3251));e.exports=elementorModules.ViewModule.extend({oldAspectRatio:null,oldAnimation:null,swiper:null,player:null,getDefaultSettings:function getDefaultSettings(){return{classes:{aspectRatio:"elementor-aspect-ratio-%s",item:"elementor-lightbox-item",image:"elementor-lightbox-image",videoContainer:"elementor-video-container",videoWrapper:"elementor-fit-aspect-ratio",playButton:"elementor-custom-embed-play",playButtonIcon:"fa",playing:"elementor-playing",hidden:"elementor-hidden",invisible:"elementor-invisible",preventClose:"elementor-lightbox-prevent-close",slideshow:{container:"swiper-container",slidesWrapper:"swiper-wrapper",prevButton:"elementor-swiper-button elementor-swiper-button-prev",nextButton:"elementor-swiper-button elementor-swiper-button-next",prevButtonIcon:"eicon-chevron-left",nextButtonIcon:"eicon-chevron-right",slide:"swiper-slide",header:"elementor-slideshow__header",footer:"elementor-slideshow__footer",title:"elementor-slideshow__title",description:"elementor-slideshow__description",counter:"elementor-slideshow__counter",iconExpand:"eicon-frame-expand",iconShrink:"eicon-frame-minimize",iconZoomIn:"eicon-zoom-in-bold",iconZoomOut:"eicon-zoom-out-bold",iconShare:"eicon-share-arrow",shareMenu:"elementor-slideshow__share-menu",shareLinks:"elementor-slideshow__share-links",hideUiVisibility:"elementor-slideshow--ui-hidden",shareMode:"elementor-slideshow--share-mode",fullscreenMode:"elementor-slideshow--fullscreen-mode",zoomMode:"elementor-slideshow--zoom-mode"}},selectors:{image:".elementor-lightbox-image",links:"a, [data-elementor-lightbox]",slideshow:{activeSlide:".swiper-slide-active",prevSlide:".swiper-slide-prev",nextSlide:".swiper-slide-next"}},modalOptions:{id:"elementor-lightbox",entranceAnimation:"zoomIn",videoAspectRatio:169,position:{enable:!1}}}},getModal:function getModal(){return e.exports.modal||this.initModal(),e.exports.modal},initModal:function initModal(){var t=e.exports.modal=elementorFrontend.getDialogsManager().createWidget("lightbox",{className:"elementor-lightbox",closeButton:!0,closeButtonOptions:{iconClass:"eicon-close",attributes:{tabindex:0,role:"button","aria-label":elementorFrontend.config.i18n.close+" (Esc)"}},selectors:{preventClose:"."+this.getSettings("classes.preventClose")},hide:{onClick:!0}});t.on("hide",(function(){t.setMessage("")}))},showModal:function showModal(e){this.elements.$closeButton=this.getModal().getElements("closeButton"),this.$buttons=this.elements.$closeButton,this.focusedButton=null;var t=this,i=t.getDefaultSettings().modalOptions;t.id=e.id,t.setSettings("modalOptions",jQuery.extend(i,e.modalOptions));var n=t.getModal();switch(n.setID(t.getSettings("modalOptions.id")),n.onShow=function(){DialogsManager.getWidgetType("lightbox").prototype.onShow.apply(n,arguments),t.setEntranceAnimation()},n.onHide=function(){DialogsManager.getWidgetType("lightbox").prototype.onHide.apply(n,arguments),n.getElements("message").removeClass("animated"),a.default.isFullscreen&&t.deactivateFullscreen(),t.unbindHotKeys()},e.type){case"video":t.setVideoContent(e);break;case"image":var s=[{image:e.url,index:0,title:e.title,description:e.description}];e.slideshow={slides:s,swiper:{loop:!1,pagination:!1}};case"slideshow":t.setSlideshowContent(e.slideshow);break;default:t.setHTMLContent(e.html)}n.show()},createLightbox:function createLightbox(e){var t={};if(e.dataset.elementorLightbox&&(t=JSON.parse(e.dataset.elementorLightbox)),t.type&&"slideshow"!==t.type)this.showModal(t);else if(e.dataset.elementorLightboxSlideshow){var i=e.dataset.elementorLightboxVideo||e.href;this.openSlideshow(e.dataset.elementorLightboxSlideshow,i)}else{var n="single-img";this.showModal({type:"image",id:n,url:e.href,title:e.dataset.elementorLightboxTitle,description:e.dataset.elementorLightboxDescription,modalOptions:{id:"elementor-lightbox-slideshow-single-img"}})}},setHTMLContent:function setHTMLContent(e){window.elementorCommon&&elementorCommon.helpers.hardDeprecated("elementorFrontend.utils.lightbox.setHTMLContent","3.1.4"),this.getModal().setMessage(e)},setVideoContent:function setVideoContent(e){var t,i=jQuery,n=this.getSettings("classes"),s=i("<div>",{class:"".concat(n.videoContainer," ").concat(n.preventClose)}),o=i("<div>",{class:n.videoWrapper}),a=this.getModal();if("hosted"===e.videoType){var l=i.extend({src:e.url,autoplay:""},e.videoParams);t=i("<video>",l)}else{t=i("<iframe>",{src:e.url.replace("&autoplay=0","")+"&autoplay=1",allowfullscreen:1})}s.append(o),o.append(t),a.setMessage(s),this.setVideoAspectRatio();var r=a.onHide;a.onHide=function(){r(),this.$buttons=jQuery(),this.focusedButton=null,a.getElements("message").removeClass("elementor-fit-aspect-ratio")}},getShareLinks:function getShareLinks(){var e,t=this,i=elementorFrontend.config.i18n,n={facebook:i.shareOnFacebook,twitter:i.shareOnTwitter,pinterest:i.pinIt},s=jQuery,o=this.getSettings("classes"),a=this.getSettings("selectors"),l=s("<div>",{class:o.slideshow.shareLinks}),r=this.getSlide("active"),d=r.find(a.image),c=r.data("elementor-slideshow-video");return e=c||d.attr("src"),s.each(n,(function(i,n){var o=s("<a>",{href:t.createShareLink(i,e),target:"_blank"}).text(n);o.prepend(s("<i>",{class:"eicon-"+i})),l.append(o)})),c||l.append(s("<a>",{href:e,download:""}).text(i.downloadImage).prepend(s("<i>",{class:"eicon-download-bold","aria-label":i.download}))),l},createShareLink:function createShareLink(e,t){var i={};if("pinterest"===e)i.image=encodeURIComponent(t);else{var n=elementorFrontend.utils.urlActions.createActionHash("lightbox",{id:this.id,url:t});i.url=encodeURIComponent(location.href.replace(/#.*/,""))+n}return ShareLink.getNetworkLink(e,i)},getSlideshowHeader:function getSlideshowHeader(){var e=elementorFrontend.config.i18n,t=jQuery,i="yes"===elementorFrontend.getKitSettings("lightbox_enable_counter"),n="yes"===elementorFrontend.getKitSettings("lightbox_enable_fullscreen"),s="yes"===elementorFrontend.getKitSettings("lightbox_enable_zoom"),o="yes"===elementorFrontend.getKitSettings("lightbox_enable_share"),a=this.getSettings("classes"),l=a.slideshow,r=this.elements;if(i||n||s||o){if(r.$header=t("<header>",{class:l.header+" "+a.preventClose}),o){r.$iconShare=t("<i>",{class:l.iconShare,role:"button","aria-label":e.share,"aria-expanded":!1}).append(t("<span>"));var d=t("<div>");d.on("click",(function(e){e.stopPropagation()})),r.$shareMenu=t("<div>",{class:l.shareMenu}).append(d),r.$iconShare.add(r.$shareMenu).on("click",this.toggleShareMenu),r.$header.append(r.$iconShare,r.$shareMenu),this.$buttons=this.$buttons.add(r.$iconShare)}return s&&(r.$iconZoom=t("<i>",{class:l.iconZoomIn,role:"switch","aria-checked":!1,"aria-label":e.zoom}),r.$iconZoom.on("click",this.toggleZoomMode),r.$header.append(r.$iconZoom),this.$buttons=this.$buttons.add(r.$iconZoom)),n&&(r.$iconExpand=t("<i>",{class:l.iconExpand,role:"switch","aria-checked":!1,"aria-label":e.fullscreen}).append(t("<span>"),t("<span>")),r.$iconExpand.on("click",this.toggleFullscreen),r.$header.append(r.$iconExpand),this.$buttons=this.$buttons.add(r.$iconExpand)),i&&(r.$counter=t("<span>",{class:l.counter}),r.$header.append(r.$counter)),r.$header}},toggleFullscreen:function toggleFullscreen(){a.default.isFullscreen?this.deactivateFullscreen():a.default.isEnabled&&this.activateFullscreen()},toggleZoomMode:function toggleZoomMode(){1!==this.swiper.zoom.scale?this.deactivateZoom():this.activateZoom()},toggleShareMenu:function toggleShareMenu(){this.shareMode?this.deactivateShareMode():(this.elements.$shareMenu.html(this.getShareLinks()),this.activateShareMode())},activateShareMode:function activateShareMode(){var e=this.getSettings("classes");this.elements.$container.addClass(e.slideshow.shareMode),this.elements.$iconShare.attr("aria-expanded",!0),this.swiper.detachEvents(),this.$originalButtons=this.$buttons,this.$buttons=this.elements.$iconShare.add(this.elements.$shareMenu.find("a")),this.shareMode=!0},deactivateShareMode:function deactivateShareMode(){var e=this.getSettings("classes");this.elements.$container.removeClass(e.slideshow.shareMode),this.elements.$iconShare.attr("aria-expanded",!1),this.swiper.attachEvents(),this.$buttons=this.$originalButtons,this.shareMode=!1},activateFullscreen:function activateFullscreen(){var e=this.getSettings("classes");a.default.request(this.elements.$container.parents(".dialog-widget")[0]),this.elements.$iconExpand.removeClass(e.slideshow.iconExpand).addClass(e.slideshow.iconShrink).attr("aria-checked","true"),this.elements.$container.addClass(e.slideshow.fullscreenMode)},deactivateFullscreen:function deactivateFullscreen(){var e=this.getSettings("classes");a.default.exit(),this.elements.$iconExpand.removeClass(e.slideshow.iconShrink).addClass(e.slideshow.iconExpand).attr("aria-checked","false"),this.elements.$container.removeClass(e.slideshow.fullscreenMode)},activateZoom:function activateZoom(){var e=this.swiper,t=this.elements,i=this.getSettings("classes");e.zoom.in(),e.allowSlideNext=!1,e.allowSlidePrev=!1,e.allowTouchMove=!1,t.$container.addClass(i.slideshow.zoomMode),t.$iconZoom.removeClass(i.slideshow.iconZoomIn).addClass(i.slideshow.iconZoomOut)},deactivateZoom:function deactivateZoom(){var e=this.swiper,t=this.elements,i=this.getSettings("classes");e.zoom.out(),e.allowSlideNext=!0,e.allowSlidePrev=!0,e.allowTouchMove=!0,t.$container.removeClass(i.slideshow.zoomMode),t.$iconZoom.removeClass(i.slideshow.iconZoomOut).addClass(i.slideshow.iconZoomIn)},getSlideshowFooter:function getSlideshowFooter(){var e=jQuery,t=this.getSettings("classes"),i=e("<footer>",{class:t.slideshow.footer+" "+t.preventClose}),n=e("<div>",{class:t.slideshow.title}),s=e("<div>",{class:t.slideshow.description});return i.append(n,s),i},setSlideshowContent:function setSlideshowContent(e){var t,i,n=this,a=elementorFrontend.config.i18n,l=jQuery,r=1===e.slides.length,d=""!==elementorFrontend.getKitSettings("lightbox_title_src"),c=""!==elementorFrontend.getKitSettings("lightbox_description_src"),h=d||c,u=this.getSettings("classes"),p=u.slideshow,g=l("<div>",{class:p.container}),m=l("<div>",{class:p.slidesWrapper});e.slides.forEach((function(e){var t=p.slide+" "+u.item;e.video&&(t+=" "+u.video);var i=l("<div>",{class:t});if(e.video){i.attr("data-elementor-slideshow-video",e.video);var n=l("<div>",{class:u.playButton}).html(l("<i>",{class:u.playButtonIcon,"aria-label":a.playVideo}));i.append(n)}else{var s=l("<div>",{class:"swiper-zoom-container"}),o=l('<div class="swiper-lazy-preloader"></div>'),r={"data-src":e.image,class:u.image+" "+u.preventClose+" swiper-lazy"};e.title&&(r["data-title"]=e.title,r.alt=e.title),e.description&&(r["data-description"]=e.description,r.alt+=" - "+e.description);var d=l("<img>",r);s.append([d,o]),i.append(s)}m.append(i)})),this.elements.$container=g,this.elements.$header=this.getSlideshowHeader(),g.prepend(this.elements.$header).append(m),r||(t=l("<div>",{class:p.prevButton+" "+u.preventClose,"aria-label":a.previous}).html(l("<i>",{class:p.prevButtonIcon})),i=l("<div>",{class:p.nextButton+" "+u.preventClose,"aria-label":a.next}).html(l("<i>",{class:p.nextButtonIcon})),g.append(i,t),this.$buttons=this.$buttons.add(i).add(t)),h&&(this.elements.$footer=this.getSlideshowFooter(),g.append(this.elements.$footer)),this.setSettings("hideUiTimeout",""),g.on("click mousemove keypress",this.showLightboxUi);var v=this.getModal();v.setMessage(g);var f=v.onShow;v.onShow=(0,o.default)(s.default.mark((function _callee(){var o,a;return s.default.wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:return f(),o={pagination:{el:"."+p.counter,type:"fraction"},on:{slideChangeTransitionEnd:n.onSlideChange},lazy:{loadPrevNext:!0},zoom:!0,spaceBetween:100,grabCursor:!0,runCallbacksOnInit:!1,loop:!0,keyboard:!0,handleElementorBreakpoints:!0},r||(o.navigation={prevEl:t,nextEl:i}),e.swiper&&l.extend(o,e.swiper),a=elementorFrontend.utils.swiper,s.next=7,new a(g,o);case 7:n.swiper=s.sent,g.data("swiper",n.swiper),n.setVideoAspectRatio(),n.playSlideVideo(),h&&n.updateFooterText(),n.bindHotKeys(),n.makeButtonsAccessible();case 14:case"end":return s.stop()}}),_callee)})))},makeButtonsAccessible:function makeButtonsAccessible(){this.$buttons.attr("tabindex",0).on("keypress",(function(e){13!==e.which&&32!==e.which||jQuery(e.currentTarget).trigger("click")}))},showLightboxUi:function showLightboxUi(){var e=this,t=this.getSettings("classes").slideshow;this.elements.$container.removeClass(t.hideUiVisibility),clearTimeout(this.getSettings("hideUiTimeout")),this.setSettings("hideUiTimeout",setTimeout((function(){e.shareMode||e.elements.$container.addClass(t.hideUiVisibility)}),3500))},bindHotKeys:function bindHotKeys(){this.getModal().getElements("window").on("keydown",this.activeKeyDown)},unbindHotKeys:function unbindHotKeys(){this.getModal().getElements("window").off("keydown",this.activeKeyDown)},activeKeyDown:function activeKeyDown(e){this.showLightboxUi();if(9===e.which){var t,i=this.$buttons,n=!1,s=!1;i.each((function(e){var o=i[e];if(jQuery(o).is(":focus"))return t=o,n=0===e,s=i.length-1===e,!1})),e.shiftKey?n&&(e.preventDefault(),i.last().trigger("focus")):!s&&t||(e.preventDefault(),i.first().trigger("focus"))}},setVideoAspectRatio:function setVideoAspectRatio(e){e=e||this.getSettings("modalOptions.videoAspectRatio");var t=this.getModal().getElements("widgetContent"),i=this.oldAspectRatio,n=this.getSettings("classes.aspectRatio");this.oldAspectRatio=e,i&&t.removeClass(n.replace("%s",i)),e&&t.addClass(n.replace("%s",e))},getSlide:function getSlide(e){return jQuery(this.swiper.slides).filter(this.getSettings("selectors.slideshow."+e+"Slide"))},updateFooterText:function updateFooterText(){if(this.elements.$footer){var e=this.getSettings("classes"),t=this.getSlide("active").find(".elementor-lightbox-image"),i=t.data("title"),n=t.data("description"),s=this.elements.$footer.find("."+e.slideshow.title),o=this.elements.$footer.find("."+e.slideshow.description);s.text(i||""),o.text(n||"")}},playSlideVideo:function playSlideVideo(){var e=this,t=this.getSlide("active"),i=t.data("elementor-slideshow-video");if(i){var n,s,o=this.getSettings("classes"),a=jQuery("<div>",{class:o.videoContainer+" "+o.invisible}),l=jQuery("<div>",{class:o.videoWrapper}),r=t.children("."+o.playButton);a.append(l),t.append(a),-1!==i.indexOf("vimeo.com")?(n="vimeo",s=elementorFrontend.utils.vimeo):i.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(n="youtube",s=elementorFrontend.utils.youtube);var d=s.getVideoIDFromURL(i);s.onApiReady((function(t){"youtube"===n?e.prepareYTVideo(t,d,a,l,r):"vimeo"===n&&e.prepareVimeoVideo(t,d,a,l,r)})),r.addClass(o.playing).removeClass(o.hidden)}},prepareYTVideo:function prepareYTVideo(e,t,i,n,s){var o=this,a=this.getSettings("classes"),l=jQuery("<div>"),r=e.PlayerState.PLAYING;n.append(l),window.chrome&&(r=e.PlayerState.UNSTARTED),i.addClass("elementor-loading "+a.invisible),this.player=new e.Player(l[0],{videoId:t,events:{onReady:function onReady(){s.addClass(a.hidden),i.removeClass(a.invisible),o.player.playVideo()},onStateChange:function onStateChange(e){e.data===r&&i.removeClass("elementor-loading "+a.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo:function prepareVimeoVideo(e,t,i,n,s){var o=this.getSettings("classes"),a={id:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(n,a),this.player.ready().then((function(){s.addClass(o.hidden),i.removeClass(o.invisible)}))},setEntranceAnimation:function setEntranceAnimation(e){e=e||elementorFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");var t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},openSlideshow:function openSlideshow(e,t){var i=jQuery(this.getSettings("selectors.links")).filter((function(t,i){var n=jQuery(i);return e===i.dataset.elementorLightboxSlideshow&&!n.parent(".swiper-slide-duplicate").length&&!n.parents(".slick-cloned").length})),n=[],s=0;i.each((function(){var e=this.dataset.elementorLightboxVideo,o=this.dataset.elementorLightboxIndex;void 0===o&&(o=i.index(this)),(t===this.href||e&&t===e)&&(s=o);var a={image:this.href,index:o,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription};e&&(a.video=e),n.push(a)})),n.sort((function(e,t){return e.index-t.index})),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:n,swiper:{initialSlide:+s}}})},onSlideChange:function onSlideChange(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},3251:(e,t,i)=>{"use strict";var n,s,o,a,l,r=i(7971),d=r(i(2937)),c=r(i(3220));n="undefined"!=typeof window&&void 0!==window.document?window.document:{},s=e.exports,o=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,s=t.length,o={};i<s;i++)if((e=t[i])&&e[1]in n){var a=e.length;for(i=0;i<a;i++)o[t[0][i]]=e[i];return o}return!1}(),a={change:o.fullscreenchange,error:o.fullscreenerror},l={request:function request(e){return new c.default(function(t,i){var s=function(){this.off("change",s),t()}.bind(this);this.on("change",s),e=e||n.documentElement,c.default.resolve(e[o.requestFullscreen]()).catch(i)}.bind(this))},exit:function exit(){return new c.default(function(e,t){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i),c.default.resolve(n[o.exitFullscreen]()).catch(t)}else e()}.bind(this))},toggle:function toggle(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function onchange(e){this.on("change",e)},onerror:function onerror(e){this.on("error",e)},on:function on(e,t){var i=a[e];i&&n.addEventListener(i,t,!1)},off:function off(e,t){var i=a[e];i&&n.removeEventListener(i,t,!1)},raw:o},o?((0,d.default)(l,{isFullscreen:{get:function get(){return Boolean(n[o.fullscreenElement])}},element:{enumerable:!0,get:function get(){return n[o.fullscreenElement]}},isEnabled:{enumerable:!0,get:function get(){return Boolean(n[o.fullscreenEnabled])}}}),s?e.exports=l:window.screenfull=l):s?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}},4828:(e,t,i)=>{"use strict";var n=i(6365),s=i(6078),o=i(8492),a=i(2404);i(8897)("match",1,(function(e,t,i,l){return[function match(i){var n=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=l(i,e,this);if(t.done)return t.value;var r=n(e),d=String(this);if(!r.global)return a(r,d);var c=r.unicode;r.lastIndex=0;for(var h,u=[],p=0;null!==(h=a(r,d));){var g=String(h[0]);u[p]=g,""===g&&(r.lastIndex=o(d,s(r.lastIndex),c)),p++}return 0===p?null:u}]}))},4208:(e,t,i)=>{"use strict";var n=i(6365),s=i(6033),o=i(6078),a=i(3338),l=i(8492),r=i(2404),d=Math.max,c=Math.min,h=Math.floor,u=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;i(8897)("replace",2,(function(e,t,i,g){return[function replace(n,s){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,s):i.call(String(o),n,s)},function(e,t){var s=g(i,e,this,t);if(s.done)return s.value;var h=n(e),u=String(this),p="function"==typeof t;p||(t=String(t));var m=h.global;if(m){var v=h.unicode;h.lastIndex=0}for(var f=[];;){var w=r(h,u);if(null===w)break;if(f.push(w),!m)break;""===String(w[0])&&(h.lastIndex=l(u,o(h.lastIndex),v))}for(var b,S="",x=0,y=0;y<f.length;y++){w=f[y];for(var C=String(w[0]),$=d(c(a(w.index),u.length),0),M=[],k=1;k<w.length;k++)M.push(void 0===(b=w[k])?b:String(b));var F=w.groups;if(p){var E=[C].concat(M,$,u);void 0!==F&&E.push(F);var L=String(t.apply(void 0,E))}else L=getSubstitution(C,u,$,M,F,t);$>=x&&(S+=u.slice(x,$)+L,x=$+C.length)}return S+u.slice(x)}];function getSubstitution(e,t,n,o,a,l){var r=n+e.length,d=o.length,c=p;return void 0!==a&&(a=s(a),c=u),i.call(l,c,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(r);case"<":l=a[s.slice(1,-1)];break;default:var c=+s;if(0===c)return i;if(c>d){var u=h(c/10);return 0===u?i:u<=d?void 0===o[u-1]?s.charAt(1):o[u-1]+s.charAt(1):i}l=o[c-1]}return void 0===l?"":l}))}}))}}]);