Jump to:
Screenshot
Attributes
Execution
<!-- CLI: 1.0.8, Branch: develop -->
<!-- @vungle/dynamic-templates-rtbendcard: 1.2.17, Branch: develop, Revision: d07b14da99ec74d26369e9b2ace0c084cdfa53d1 -->
<!-- @vungle/dynamic-templates-core: 1.15.28, Branch: ^1.15.28, @vungle/dynamic-templates-video: 1.8.16, Branch: ^1.8.16 -->
<!-- 21 of June 2022, 10:02:24 -->
<!-- true -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=auto">
<title>Vungle Cloud UX Template</title>
<style type="text/css">*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body,html{font-size:100%;height:100%}body{background:#fff;color:#222;cursor:auto;font-family:Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-style:normal;font-weight:400;line-height:1.5;padding:0;position:relative}a:hover{cursor:pointer}img{max-width:100%;height:auto;-ms-interpolation-mode:bicubic;display:inline-block;vertical-align:middle}#map_canvas embed,#map_canvas img,#map_canvas object,.map_canvas embed,.map_canvas img,.map_canvas object,.mqa-display embed,.mqa-display img,.mqa-display object{max-width:none!important}.left{float:left!important}.right{float:right!important}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.invisible{visibility:hidden}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}textarea{height:auto;min-height:50px}.row,select{width:100%}.row{margin:0 auto;max-width:62.5rem}.row:after,.row:before{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{margin:0 -.9375rem;max-width:none;width:auto}.row .row:after,.row .row:before{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{margin:0;max-width:none;width:auto}.row .row.collapse:after,.row .row.collapse:before{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:.9375rem;padding-right:.9375rem;width:100%;float:left}.column+.column:last-child,.column+.columns:last-child,.columns+.column:last-child,.columns+.columns:last-child{float:right}.column+.column.end,.column+.columns.end,.columns+.column.end,.columns+.columns.end{float:left}@media only screen{.small-push-0{position:relative;left:0;right:auto}.small-pull-0{position:relative;right:0;left:auto}.small-push-1{position:relative;left:8.3333333333%;right:auto}.small-pull-1{position:relative;right:8.3333333333%;left:auto}.small-push-2{position:relative;left:16.6666666667%;right:auto}.small-pull-2{position:relative;right:16.6666666667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.3333333333%;right:auto}.small-pull-4{position:relative;right:33.3333333333%;left:auto}.small-push-5{position:relative;left:41.6666666667%;right:auto}.small-pull-5{position:relative;right:41.6666666667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.3333333333%;right:auto}.small-pull-7{position:relative;right:58.3333333333%;left:auto}.small-push-8{position:relative;left:66.6666666667%;right:auto}.small-pull-8{position:relative;right:66.6666666667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.3333333333%;right:auto}.small-pull-10{position:relative;right:83.3333333333%;left:auto}.small-push-11{position:relative;left:91.6666666667%;right:auto}.small-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.small-1{width:8.3333333333%}.small-2{width:16.6666666667%}.small-3{width:25%}.small-4{width:33.3333333333%}.small-5{width:41.6666666667%}.small-6{width:50%}.small-7{width:58.3333333333%}.small-8{width:66.6666666667%}.small-9{width:75%}.small-10{width:83.3333333333%}.small-11{width:91.6666666667%}.small-12{width:100%}.small-offset-0{margin-left:0!important}.small-offset-1{margin-left:8.3333333333%!important}.small-offset-2{margin-left:16.6666666667%!important}.small-offset-3{margin-left:25%!important}.small-offset-4{margin-left:33.3333333333%!important}.small-offset-5{margin-left:41.6666666667%!important}.small-offset-6{margin-left:50%!important}.small-offset-7{margin-left:58.3333333333%!important}.small-offset-8{margin-left:66.6666666667%!important}.small-offset-9{margin-left:75%!important}.small-offset-10{margin-left:83.3333333333%!important}.small-offset-11{margin-left:91.6666666667%!important}.small-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.small-centered,.columns.small-centered{margin-left:auto;margin-right:auto;float:none}.column.small-uncentered,.columns.small-uncentered{float:left;margin-left:0;margin-right:0}.column.small-centered:last-child,.columns.small-centered:last-child{float:none}.column.small-uncentered:last-child,.columns.small-uncentered:last-child{float:left}.column.small-uncentered.opposite,.columns.small-uncentered.opposite{float:right}.row.small-collapse>.column,.row.small-collapse>.columns{padding-left:0;padding-right:0}.row.small-collapse .row{margin-left:0;margin-right:0}.row.small-uncollapse>.column,.row.small-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}}@media only screen and (min-width:20.0625em){.medium-push-0{position:relative;left:0;right:auto}.medium-pull-0{position:relative;right:0;left:auto}.medium-push-1{position:relative;left:8.3333333333%;right:auto}.medium-pull-1{position:relative;right:8.3333333333%;left:auto}.medium-push-2{position:relative;left:16.6666666667%;right:auto}.medium-pull-2{position:relative;right:16.6666666667%;left:auto}.medium-push-3{position:relative;left:25%;right:auto}.medium-pull-3{position:relative;right:25%;left:auto}.medium-push-4{position:relative;left:33.3333333333%;right:auto}.medium-pull-4{position:relative;right:33.3333333333%;left:auto}.medium-push-5{position:relative;left:41.6666666667%;right:auto}.medium-pull-5{position:relative;right:41.6666666667%;left:auto}.medium-push-6{position:relative;left:50%;right:auto}.medium-pull-6{position:relative;right:50%;left:auto}.medium-push-7{position:relative;left:58.3333333333%;right:auto}.medium-pull-7{position:relative;right:58.3333333333%;left:auto}.medium-push-8{position:relative;left:66.6666666667%;right:auto}.medium-pull-8{position:relative;right:66.6666666667%;left:auto}.medium-push-9{position:relative;left:75%;right:auto}.medium-pull-9{position:relative;right:75%;left:auto}.medium-push-10{position:relative;left:83.3333333333%;right:auto}.medium-pull-10{position:relative;right:83.3333333333%;left:auto}.medium-push-11{position:relative;left:91.6666666667%;right:auto}.medium-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.medium-1{width:8.3333333333%}.medium-2{width:16.6666666667%}.medium-3{width:25%}.medium-4{width:33.3333333333%}.medium-5{width:41.6666666667%}.medium-6{width:50%}.medium-7{width:58.3333333333%}.medium-8{width:66.6666666667%}.medium-9{width:75%}.medium-10{width:83.3333333333%}.medium-11{width:91.6666666667%}.medium-12{width:100%}.medium-offset-0{margin-left:0!important}.medium-offset-1{margin-left:8.3333333333%!important}.medium-offset-2{margin-left:16.6666666667%!important}.medium-offset-3{margin-left:25%!important}.medium-offset-4{margin-left:33.3333333333%!important}.medium-offset-5{margin-left:41.6666666667%!important}.medium-offset-6{margin-left:50%!important}.medium-offset-7{margin-left:58.3333333333%!important}.medium-offset-8{margin-left:66.6666666667%!important}.medium-offset-9{margin-left:75%!important}.medium-offset-10{margin-left:83.3333333333%!important}.medium-offset-11{margin-left:91.6666666667%!important}.medium-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.medium-centered,.columns.medium-centered{margin-left:auto;margin-right:auto;float:none}.column.medium-uncentered,.columns.medium-uncentered{float:left;margin-left:0;margin-right:0}.column.medium-centered:last-child,.columns.medium-centered:last-child{float:none}.column.medium-uncentered:last-child,.columns.medium-uncentered:last-child{float:left}.column.medium-uncentered.opposite,.columns.medium-uncentered.opposite{float:right}.row.medium-collapse>.column,.row.medium-collapse>.columns{padding-left:0;padding-right:0}.row.medium-collapse .row{margin-left:0;margin-right:0}.row.medium-uncollapse>.column,.row.medium-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}.push-0{left:0;right:auto}.pull-0,.push-0{position:relative}.pull-0{right:0;left:auto}.push-1{left:8.3333333333%;right:auto}.pull-1,.push-1{position:relative}.pull-1{right:8.3333333333%;left:auto}.push-2{left:16.6666666667%;right:auto}.pull-2,.push-2{position:relative}.pull-2{right:16.6666666667%;left:auto}.push-3{left:25%;right:auto}.pull-3,.push-3{position:relative}.pull-3{right:25%;left:auto}.push-4{left:33.3333333333%;right:auto}.pull-4,.push-4{position:relative}.pull-4{right:33.3333333333%;left:auto}.push-5{left:41.6666666667%;right:auto}.pull-5,.push-5{position:relative}.pull-5{right:41.6666666667%;left:auto}.push-6{left:50%;right:auto}.pull-6,.push-6{position:relative}.pull-6{right:50%;left:auto}.push-7{left:58.3333333333%;right:auto}.pull-7,.push-7{position:relative}.pull-7{right:58.3333333333%;left:auto}.push-8{left:66.6666666667%;right:auto}.pull-8,.push-8{position:relative}.pull-8{right:66.6666666667%;left:auto}.push-9{left:75%;right:auto}.pull-9,.push-9{position:relative}.pull-9{right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}@media only screen and (min-width:22.5625em){.large-push-0{position:relative;left:0;right:auto}.large-pull-0{position:relative;right:0;left:auto}.large-push-1{position:relative;left:8.3333333333%;right:auto}.large-pull-1{position:relative;right:8.3333333333%;left:auto}.large-push-2{position:relative;left:16.6666666667%;right:auto}.large-pull-2{position:relative;right:16.6666666667%;left:auto}.large-push-3{position:relative;left:25%;right:auto}.large-pull-3{position:relative;right:25%;left:auto}.large-push-4{position:relative;left:33.3333333333%;right:auto}.large-pull-4{position:relative;right:33.3333333333%;left:auto}.large-push-5{position:relative;left:41.6666666667%;right:auto}.large-pull-5{position:relative;right:41.6666666667%;left:auto}.large-push-6{position:relative;left:50%;right:auto}.large-pull-6{position:relative;right:50%;left:auto}.large-push-7{position:relative;left:58.3333333333%;right:auto}.large-pull-7{position:relative;right:58.3333333333%;left:auto}.large-push-8{position:relative;left:66.6666666667%;right:auto}.large-pull-8{position:relative;right:66.6666666667%;left:auto}.large-push-9{position:relative;left:75%;right:auto}.large-pull-9{position:relative;right:75%;left:auto}.large-push-10{position:relative;left:83.3333333333%;right:auto}.large-pull-10{position:relative;right:83.3333333333%;left:auto}.large-push-11{position:relative;left:91.6666666667%;right:auto}.large-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.large-1{width:8.3333333333%}.large-2{width:16.6666666667%}.large-3{width:25%}.large-4{width:33.3333333333%}.large-5{width:41.6666666667%}.large-6{width:50%}.large-7{width:58.3333333333%}.large-8{width:66.6666666667%}.large-9{width:75%}.large-10{width:83.3333333333%}.large-11{width:91.6666666667%}.large-12{width:100%}.large-offset-0{margin-left:0!important}.large-offset-1{margin-left:8.3333333333%!important}.large-offset-2{margin-left:16.6666666667%!important}.large-offset-3{margin-left:25%!important}.large-offset-4{margin-left:33.3333333333%!important}.large-offset-5{margin-left:41.6666666667%!important}.large-offset-6{margin-left:50%!important}.large-offset-7{margin-left:58.3333333333%!important}.large-offset-8{margin-left:66.6666666667%!important}.large-offset-9{margin-left:75%!important}.large-offset-10{margin-left:83.3333333333%!important}.large-offset-11{margin-left:91.6666666667%!important}.large-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.large-centered,.columns.large-centered{margin-left:auto;margin-right:auto;float:none}.column.large-uncentered,.columns.large-uncentered{float:left;margin-left:0;margin-right:0}.column.large-centered:last-child,.columns.large-centered:last-child{float:none}.column.large-uncentered:last-child,.columns.large-uncentered:last-child{float:left}.column.large-uncentered.opposite,.columns.large-uncentered.opposite{float:right}.row.large-collapse>.column,.row.large-collapse>.columns{padding-left:0;padding-right:0}.row.large-collapse .row{margin-left:0;margin-right:0}.row.large-uncollapse>.column,.row.large-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}.push-0{left:0;right:auto}.pull-0,.push-0{position:relative}.pull-0{right:0;left:auto}.push-1{left:8.3333333333%;right:auto}.pull-1,.push-1{position:relative}.pull-1{right:8.3333333333%;left:auto}.push-2{left:16.6666666667%;right:auto}.pull-2,.push-2{position:relative}.pull-2{right:16.6666666667%;left:auto}.push-3{left:25%;right:auto}.pull-3,.push-3{position:relative}.pull-3{right:25%;left:auto}.push-4{left:33.3333333333%;right:auto}.pull-4,.push-4{position:relative}.pull-4{right:33.3333333333%;left:auto}.push-5{left:41.6666666667%;right:auto}.pull-5,.push-5{position:relative}.pull-5{right:41.6666666667%;left:auto}.push-6{left:50%;right:auto}.pull-6,.push-6{position:relative}.pull-6{right:50%;left:auto}.push-7{left:58.3333333333%;right:auto}.pull-7,.push-7{position:relative}.pull-7{right:58.3333333333%;left:auto}.push-8{left:66.6666666667%;right:auto}.pull-8,.push-8{position:relative}.pull-8{right:66.6666666667%;left:auto}.push-9{left:75%;right:auto}.pull-9,.push-9{position:relative}.pull-9{right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}.mute-icon-container{top:0;z-index:199}.mute-icon-container,.mute-icon-container .mute-video-wrap,.mute-icon-container .unmute-video-wrap{position:absolute}.mute-icon-container .mute-video,.mute-icon-container .unmute-video{min-width:30px;min-height:30px;width:30px;height:30px}.mute-icon-container .mute-video-wrap,.mute-icon-container .unmute-video-wrap{display:block;padding:10px 30px 30px 10px}.mute-icon-container .hidden{z-index:-1;visibility:hidden}.mute-icon-container.windows-full-screen{margin-top:2.5em!important}#dynamic.windows div:not([id^=Native]) .mute-icon-container .mute-video,#dynamic.windows div:not([id^=Native]) .mute-icon-container .unmute-video{height:7vh;width:7vh;max-width:50px;max-height:50px}@media only screen and (orientation:portrait){#dynamic.windows div:not([id^=Native]) .mute-icon-container .mute-video,#dynamic.windows div:not([id^=Native]) .mute-icon-container .unmute-video{height:7vw;width:7vw}}.progress-bar{position:absolute;bottom:0;margin:auto;width:100%;height:3px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;z-index:199;background:rgba(0,0,0,.2)}.progress-bar span{background:#01b27a;position:absolute;left:0;top:0;height:100%;width:0;display:block}.overlay-video-controller{bottom:0;left:0;position:fixed;right:0;top:0;z-index:200;background-color:rgba(0,0,0,.6)}.overlay-video-controller__holder{width:100%;top:50%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.overlay-video-controller__holder h2{color:#fff;text-align:center;font-weight:400;margin:.3em 0}.overlay-video-controller__icon{width:25%;height:25vw;margin:0 auto;max-width:120px;max-height:120px}.overlay-video-controller__icon svg{width:100%;height:100%}svg .tap-to-play{fill:#fff;stroke:hsla(0,0%,100%,.4);stroke-width:.2}[id^=Native] .header .close{padding:0 0 20px 20px}[id^=Native] .header .close .close-btn{width:30px;height:30px}.header{margin:0;position:absolute;top:0;right:0;width:100%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.header .close,.header .close-countdown{padding:20px 20px 10px 10px;cursor:pointer;position:relative;z-index:200;float:right}.header .close-countdown .close-btn-container,.header .close .close-btn-container{width:1em;height:1em}.header .close-countdown .close-btn-container .close-btn,.header .close .close-btn-container .close-btn{width:100%;height:100%}.header .close .close-btn-text{display:none}.header .close-countdown .close-btn-text{background:rgba(51,51,51,.5);color:#fff;border-radius:50%;text-align:center;margin:-9.5px;display:block;line-height:normal;min-width:35px;min-height:35px}.header .close-countdown .close-btn-text:after,.header .close-countdown .close-btn-text:before{content:"";display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;line-height:0;padding:50% 0}.header .close-countdown .close-btn-text:before{padding-left:8px}.header .close-countdown .close-btn-text:after{padding-right:8px}.header .close-countdown .close-btn-text .dark{background:rgba(51,51,51,.5)}.header .close-countdown .close-btn-text.hide{display:none}.header .close-countdown .close-btn-container{width:1.2em;height:1.2em}div:not([id^=Native]) .closeBtn,div:not([id^=Native]) .closeBtndark{fill:#fff}div:not([id^=Native]) .closeBtnlight{fill:#1d1d1d}div:not([id^=Native]) .closeBtn,div:not([id^=Native]) .closeBtndark,div:not([id^=Native]) .closeBtnlight{stroke:#6c6d6d;stroke-width:26;stroke-miterlimit:10}@media only screen and (min-width:20em)and (min-height:20em){#dynamic.windows div:not([id^=Native]) .closeBtn,#dynamic.windows div:not([id^=Native]) .closeBtndark,#dynamic.windows div:not([id^=Native]) .closeBtnlight{stroke:#fff}#dynamic.windows div:not([id^=Native]) .closeBtnlight{fill:#fff}#dynamic.windows div:not([id^=Native]) .header .close,#dynamic.windows div:not([id^=Native]) .header .close-countdown{background:rgba(51,51,51,.7);padding:.5em .85em .7em;margin:.5em}#dynamic.windows div:not([id^=Native]) .header .close-countdown.windows-full-screen,#dynamic.windows div:not([id^=Native]) .header .close.windows-full-screen{margin-top:2.5em}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-container,#dynamic.windows div:not([id^=Native]) .header .close .close-btn-container{width:30px;height:30px}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text{background:none;border-radius:unset;min-width:unset;min-height:unset;width:30px;height:30px;margin:0;line-height:30px;font-size:20px}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text:after,#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text:before{padding:0}}@media only screen and (min-width:20em)and (min-height:20em)and (max-height:22.5em),only screen and (min-width:20em)and (min-height:20em)and (max-width:22.5em){#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-container,#dynamic.windows div:not([id^=Native]) .header .close .close-btn-container{width:20px;height:20px}#dynamic.windows div:not([id^=Native]) .header .close-countdown.close-show-countdown .close-btn-text,#dynamic.windows div:not([id^=Native]) .header .close.close-show-countdown .close-btn-text{width:20px;height:20px;line-height:20px;font-size:15px}}.footer{bottom:0;margin:0;padding:0;position:absolute;width:100%}.footer .privacy-button{z-index:200;border:1px solid transparent;border-radius:50%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;color:#909090;cursor:pointer;float:left;font-size:2em;height:1em;bottom:4px;left:4px;overflow:hidden;-webkit-transition:background .5s ease-in-out,width .5s ease-in-out .2s,border-radius .2s ease-in-out .25s,border .5s ease-in-out;-o-transition:background .5s ease-in-out,width .5s .2s ease-in-out,border-radius .2s .25s ease-in-out,border .5s ease-in-out;transition:background .5s ease-in-out,width .5s ease-in-out .2s,border-radius .2s ease-in-out .25s,border .5s ease-in-out;width:1em}.footer .privacy-button,.footer .privacy-button span,.footer .privacy-button svg{position:absolute}.footer .privacy-button svg{top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);left:.5em;width:.6em;height:100%}.footer .privacy-button svg.lock-icon{opacity:.6}.footer .privacy-button svg.lock-icon,.footer .privacy-button svg.lock-icon.invert.dark{fill:#bcbcbc}.footer .privacy-button svg.lock-icon.dark,.footer .privacy-button svg.lock-icon.invert.light{fill:#333}.footer .privacy-button.extended svg.lock-icon,.footer .privacy-button.extended svg.lock-icon.dark,.footer .privacy-button.extended svg.lock-icon.light,.footer .privacy-button.reverse svg.lock-icon,.footer .privacy-button.reverse svg.lock-icon.dark,.footer .privacy-button.reverse svg.lock-icon.light{opacity:1;fill:#14cdc8}.footer .privacy-button span{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:#909090;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-size:.4em;height:100%;left:2.6em;white-space:nowrap}.footer .privacy-button span,.footer .privacy-button span .privacy-icon{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.footer .privacy-button span .privacy-icon{position:relative;left:.2em;width:.8em}.footer .privacy-button.extended{background:#fff;width:3.4em;border-radius:25px;border:1px solid rgba(0,0,0,.1)}.footer .privacy-button.reverse{-webkit-transition:background .5s ease-in-out .5s,width .5s ease-in-out,border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s;-o-transition:background .5s .5s ease-in-out,width .5s ease-in-out,border-radius .25s .2s ease-in-out,border .5s .5s ease-in-out;transition:background .5s ease-in-out .5s,width .5s ease-in-out,border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s}.footer .bubble-button{bottom:.8rem;left:.8rem;width:1em;font-size:1.75em;background:#fff;opacity:.7;-webkit-transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out;-o-transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out;transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out}.footer .bubble-button svg.lock-icon{opacity:.7}.footer .bubble-button span{visibility:hidden;left:2.45em}.footer .bubble-button span .privacy-icon{left:0;width:5.5em;margin-bottom:-.2em}.footer .bubble-button.extended,.footer .bubble-button.reverse{border:1px solid rgba(0,0,0,.1);opacity:1}.footer .bubble-button.extended span,.footer .bubble-button.reverse span{visibility:visible}.footer .bubble-button.reverse{-webkit-transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s,opacity .5s ease-in-out;-o-transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s .2s ease-in-out,border .5s .5s ease-in-out,opacity .5s ease-in-out;transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s,opacity .5s ease-in-out}.footer.bottom_right .privacy-button,.footer.top_right .privacy-button{right:4px;left:unset;float:right}.footer.top_left,.footer.top_right{bottom:unset;top:4px}.footer.top_left .privacy-button,.footer.top_right .privacy-button{bottom:unset}#DIALOGBOX{visibility:hidden;position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:#565656;z-index:300;background-color:rgba(0,0,0,.8)}#DIALOGBOX .dialog{width:288px;margin-top:0;padding:0;text-align:center;position:fixed;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}@media only screen and (max-height:20em){#DIALOGBOX .dialog{width:200px}}#DIALOGBOX .dialog .dialog-content{width:100%;position:relative;border-top-width:7px;border-radius:3px;overflow:hidden}#DIALOGBOX .dialog .dialog-content .title-text{color:#fff;padding:8px;font-weight:400;font-size:1.25em}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .title-text{font-size:1em}}#DIALOGBOX .dialog .dialog-content .body-text-container{padding:0;background-color:#fff;overflow:none}#DIALOGBOX .dialog .dialog-content .body-text-container .body-text{margin:0 auto;padding:18px;text-align:center;font-size:1em;line-height:1.35em;font-weight:300}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .body-text-container .body-text{padding:10px;font-size:.8em;line-height:1.25}}#DIALOGBOX .dialog .dialog-content .action-buttons{width:100%;padding:0;background-color:#fff}#DIALOGBOX .dialog .dialog-content .action-buttons button{width:100%;border:none;background:none;padding:8px;font-weight:400;font-size:1rem;text-align:center;text-decoration:none}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .action-buttons button{font-size:.75rem}}#DIALOGBOX .dialog .dialog-content .action-buttons button .action-icon{width:.9em;height:.9em;float:none}#DIALOGBOX .dialog .dialog-content .action-buttons .primary-button{border-top:3px solid rgba(0,0,0,.1);padding:0;color:#fff}#DIALOGBOX .dialog .dialog-content .action-buttons .primary-button button.primary{text-transform:uppercase}#DIALOGBOX .dialog .dialog-content .action-buttons .secondary-button{padding:0;border-top:3px solid rgba(0,0,0,.1)}#GDPRDialogBox{visibility:hidden;top:0;left:0;height:100%;text-align:center;overflow:hidden;z-index:300;background-color:#fff}#GDPRDialogBox,#GDPRDialogBox .dialog{position:absolute;width:100%}#GDPRDialogBox .app-icon svg{height:17vw;width:17vw;padding:.5em;background:#0493c9;border-radius:50%;max-width:6em;max-height:6em}#GDPRDialogBox .dialog-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}#GDPRDialogBox .title-text{font-weight:600;word-wrap:break-word;font-size:5.5vw;margin:.5em 12.5%}#GDPRDialogBox .body-text{padding:0 12.5%;overflow:hidden;text-align:center;font-weight:400;color:#1c1c1c;word-wrap:break-word;font-size:4.5vw}#GDPRDialogBox .cta{position:absolute;bottom:0;width:100%;line-height:15vw;height:15vw}#GDPRDialogBox .cta button{border:none;background:none;cursor:pointer;width:100%}#GDPRDialogBox .consent-button{display:block;float:right;width:50%;color:#fff;font-size:7.5vw}#GDPRDialogBox .consent-button button{background:#56ae7f}#GDPRDialogBox .no-consent-button{display:block;float:right;width:50%;color:#0493c9;font-size:4.5vw;border-top:1px solid #e8e8e8}@media screen and (max-height:20em){#GDPRDialogBox .app-icon{display:none}}@media screen and (max-height:20em)and (min-aspect-ratio:3/2){#GDPRDialogBox .title-text{font-size:9.5vh}#GDPRDialogBox .body-text{font-size:7vh}}@media screen and (max-width:22.5em){#GDPRDialogBox .title-text{margin:0}#GDPRDialogBox .body-text{padding:0 1em}}@media screen and (min-width:22.5em)and (orientation:landscape){#GDPRDialogBox .dialog{width:75%;height:100%!important;display:block;float:left;bottom:auto;position:relative}#GDPRDialogBox .cta{width:25%;height:100%;display:block;float:left;position:relative;line-height:12vh}#GDPRDialogBox .consent-button,#GDPRDialogBox .no-consent-button{float:unset;width:100%}#GDPRDialogBox .consent-button{font-size:3.5vh;margin:0 0 2vh}#GDPRDialogBox .consent-button button{border-radius:10vh}#GDPRDialogBox .no-consent-button{font-size:2.5vh;border-top:none}#GDPRDialogBox .cta-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;padding:0 6.5% 0 0}#GDPRDialogBox .title-text{font-size:5vh}#GDPRDialogBox .body-text{font-size:4vh}}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}#dynamic,body,html{height:100%;width:100%}body,html{margin:0 auto;background:#000;font-family:-apple-system,Roboto,Segoe UI,Droid Sans,Helvetica,Arial,sans-serif;font-style:normal;position:relative}progress::-webkit-progress-value{background:hsla(0,0%,100%,.8)}.spinner{position:relative;top:50%;width:1em;height:1em;font-size:50px;text-indent:-9999em;overflow:hidden;margin:-25px auto;border-radius:50%;opacity:1;-o-transition:opacity .75s ease-in-out;transition:opacity .75s ease-in-out;-moz-transition:opacity .75s ease-in-out;-webkit-transition:opacity .75s ease-in-out;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:animate-spinner 1.7s ease infinite;animation:animate-spinner 1.7s ease infinite}@-webkit-keyframes animate-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;opacity:.2}5%,95%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff}10%,59%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.087em -.825em 0 -.42em #fff,-.173em -.812em 0 -.44em #fff,-.256em -.789em 0 -.46em #fff,-.297em -.775em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.087em -.825em 0 -.42em #fff,-.173em -.812em 0 -.44em #fff,-.256em -.789em 0 -.46em #fff,-.297em -.775em 0 -.477em #fff}20%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.338em -.758em 0 -.42em #fff,-.555em -.617em 0 -.44em #fff,-.671em -.488em 0 -.46em #fff,-.749em -.34em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.338em -.758em 0 -.42em #fff,-.555em -.617em 0 -.44em #fff,-.671em -.488em 0 -.46em #fff,-.749em -.34em 0 -.477em #fff;opacity:.4}38%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.377em -.74em 0 -.42em #fff,-.645em -.522em 0 -.44em #fff,-.775em -.297em 0 -.46em #fff,-.82em -.09em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.377em -.74em 0 -.42em #fff,-.645em -.522em 0 -.44em #fff,-.775em -.297em 0 -.46em #fff,-.82em -.09em 0 -.477em #fff;opacity:.6}to{-webkit-transform:rotate(1turn);transform:rotate(1turn);-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;opacity:.8}}#dynamic:not(.windows) [data-vgl-tabindex]{outline:none}.ios .radius{border-radius:26%/24%}.android .radius{border-radius:20%}.ellipsis{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;-ms-text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.stopWrapping{white-space:nowrap!important;width:auto!important;position:fixed;visibility:hidden;-webkit-transition:none!important;-o-transition:none!important;transition:none!important;-webkit-animation:none!important;animation:none!important}.overlay-cta{bottom:0;content:"";left:0;position:fixed;right:0;top:0;z-index:100}.truncate{max-width:90%;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.disable-click,.disable-cta{pointer-events:none}#dynamic{position:relative}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3){#dynamic.typeof-ad-native{height:375px;width:244px}}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3)and (orientation:landscape){#dynamic.typeof-ad-native{width:100%;height:244px}}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3){#dynamic #Video{position:relative}#dynamic #Video .footer{position:absolute}}#Video{width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;background:rgba(0,0,0,.7)}#Video,#Video .footer .download,#Video .video-container .video{position:absolute}#Video .content{padding:0;width:100%;height:100%;position:relative;background:#000;overflow:hidden}#Video .content .footer.row,#Video .content .header.row{margin:0}#Video .content .video-container{position:relative;height:100%;width:100%}#Video .content .video-container video{display:block;top:0;bottom:0;right:0;left:0;margin:auto;width:100%;height:100%}#Video .content .footer.row{width:100%}#Video .content .footer .download{bottom:4px;width:50px;height:50px;padding:20px 10px 10px 20px;right:0;line-height:1em;z-index:101;float:right;cursor:pointer}#Video .content .footer .download .download-icon{bottom:10px;height:19px;width:19px}#Video .content .footer .download .cta-button__timer{color:#fff}@-webkit-keyframes endcardAppear{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes endcardAppear{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}#RtbEndcard{height:100%;width:100%;overflow:hidden;-webkit-animation:endcardAppear .5s ease-in-out 1 forwards;animation:endcardAppear .5s ease-in-out 1 forwards}#RtbEndcard .ad-container{height:100%;width:100%;top:0;bottom:0;right:0;left:0;margin:auto;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}#RtbEndcard .ad-container .background-image{width:100%;height:100%}#RtbEndcard .ad-container #programmaticIframe{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%}#RtbEndcard .hidden-encoded-content{display:none}</style>
<!-- OMSDK Session-->
<script src="omsdk.js"></script>
<script src="omsdk-session.js"></script>
<script src="mraid.js"></script>
<script>
if (typeof vungle.mraidExt === "undefined") {
document.write('<scr'+'ipt src="vungle_mraid.js"></sc'+'ript>');
document.write('<scr'+'ipt src="tokenmap.js"></sc'+'ript>');
document.write('<scr'+'ipt src="replacements.js"></sc'+'ript>');
}
</script>
<script>
if (typeof getVungleReplacementTokens === "function") {
var propertiesMap = {
// https://vungle.atlassian.net/browse/DSP-3029
"OS": "os",
"OS_VERSION": "osVersion",
"SDK_VERSION": "sdkVersion",
// https://vungle.atlassian.net/browse/DSP-3051
"CONSENT_TITLE_TEXT": "consentTitleText",
"CONSENT_BODY_TEXT": "consentBodyText",
"CONSENT_ACCEPT_BUTTON_TEXT": "consentAcceptButtonText",
"CONSENT_DENY_BUTTON_TEXT": "consentDenyButtonText"
};
// Get the replacement tokens from the replacements.js file
var vungleReplacementTokens = getVungleReplacementTokens();
function convertTokens(tokens) {
var output = {};
Object.keys(tokens).forEach(function(key) {
output[vungleTokenMap[key]] = tokens[key];
});
return output;
}
// Convert the tokens to an uncompressed/useful form using the token map
var fixedTokens = convertTokens(vungleReplacementTokens);
// Push the tokens into the template
window.vungle.mraidBridge.notifyReadyEvent(fixedTokens);
// Prepare the data for notifyPropertiesChange the SDK should have called
const sdkProperties = {
"isViewable": true,
"placementType": "fullscreen", // SKOverlay requires this to be "fullscreen" on all fullscreen templates and must be one of `"fullscreen", "mrec", "banner"`
"version": "1.0", // Used by OMSDK
"consentAcceptButtonText": "Accept", // This has to come from the ADM somehow...
"consentDenyButtonText": "Deny",
"consentBodyText": "Ads are personalized. Denying would disable it",
"consentTitleText": "Personalized Ads",
"supports":{ // This isn't used
"sms":false,
"storePicture":false,
"inlineVideo":false,
"calendar":false,
"tel":false
},
// https://vungle.atlassian.net/browse/DSP-3051
"incentivized": fixedTokens.hasOwnProperty("INCENTIVIZED") && fixedTokens["INCENTIVIZED"].toLowerCase() === "true"
};
// currentPosition is not used in DT: https://bitbucket.org/search?q=project%3ADT%20getCurrentPosition&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "maxSize" mraid.getMaxSize is not used: https://bitbucket.org/search?q=project%3ADT%20getMaxSize&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "defaultPosition" is not used in DT: https://bitbucket.org/search?q=project%3ADT%20defaultPosition&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "screenSize" is not used in DT: https://bitbucket.org/search?q=project%3ADT%20screenSize&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// Map the token replacements that belong in the notifyPropertiesChange
Object.keys(propertiesMap).forEach(function(key) {
if (fixedTokens.hasOwnProperty(key)) {
sdkProperties[propertiesMap[key]] = fixedTokens[key];
}
});
// Replace the call to notifyPropertiesChange the SDK should have called
window.vungle.mraidBridge.notifyPropertiesChange(sdkProperties);
}
</script>
<script>
(function (window) {
"use strict";
window.asyncLoadJavaScript = function (url, callback) {
var scriptTag = document.createElement("script");
scriptTag.type = "text/javascript";
scriptTag.src = url;
if (scriptTag.readyState) {
scriptTag.onreadystatechange = function () {
if (scriptTag.readyState === "loaded" || scriptTag.readyState === "completed") {
scriptTag.onreadystatechange = null;
callback && callback();
}
};
}
else {
scriptTag.onload = function () {
callback && callback();
};
}
document.getElementsByTagName("head")[0].appendChild(scriptTag);
};
var vgl = window.vungle = window.vungle || {};
vgl.flexFeed = false;
vgl.config = {
cacheBuster: "t=" + (new Date()).getTime() //TODO: remove in future
};
})(window)
</script>
<!-- ######### Start: Used for preview in dashboard ############-->
<script id="preview_vungle_mraid_min_js"></script>
<!-- ######### End: Used for preview in dashboard ############-->
</head>
<body>
<div id="spinner" class="spinner">Loading...</div>
<div id="dynamic">
<!-- the entire ad unit experience will be created dynamically and inserted here -->
</div>
<script>!function(e){"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=0;t[r]&&t[r]!==this;)++r;return Boolean(t[r])}),"function"!=typeof e.closest&&(e.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window.Element.prototype),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t,r=document.createElement("style"),n=document.getElementsByTagName("script")[0];r.type="text/css",r.id="matchmediajs-test",n?n.parentNode.insertBefore(r,n):document.head.appendChild(r),t="getComputedStyle"in window&&window.getComputedStyle(r,null)||r.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return r.styleSheet?r.styleSheet.cssText=n:r.textContent=n,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Handlebars=t():e.Handlebars=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";var n=r(1).default,o=r(2).default;t.__esModule=!0;var a=n(r(3)),i=o(r(36)),u=o(r(5)),l=n(r(4)),s=n(r(37)),c=o(r(43));function f(){var e=new a.HandlebarsEnvironment;return l.extend(e,a),e.SafeString=i.default,e.Exception=u.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=s,e.template=function(t){return s.template(t,e)},e}var d=f();d.create=f,c.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t.__esModule=!0},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.HandlebarsEnvironment=c;var o=r(4),a=n(r(5)),i=r(9),u=r(29),l=n(r(31)),s=r(32);t.VERSION="4.7.2";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function c(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},i.registerDefaultHelpers(this),u.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:l.default,log:l.default.log,registerHelper:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new a.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new a.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){s.resetLoggedProperties()}};var f=l.default.log;t.log=f,t.createFrame=o.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=i,t.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!o.test(e))return e;return e.replace(n,a)},t.isEmpty=function(e){return!e&&0!==e||!(!s(e)||0!==e.length)},t.createFrame=function(e){var t=i({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},n=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(e){return r[e]}function i(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var u=Object.prototype.toString;t.toString=u;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===u.call(e)}),t.isFunction=l;var s=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===u.call(e)};t.isArray=s},function(e,t,r){"use strict";var n=r(6).default;t.__esModule=!0;var o=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function a(e,t){var r=t&&t.loc,i=void 0,u=void 0,l=void 0,s=void 0;r&&(i=r.start.line,u=r.end.line,l=r.start.column,s=r.end.column,e+=" - "+i+":"+l);for(var c=Error.prototype.constructor.call(this,e),f=0;f<o.length;f++)this[o[f]]=c[o[f]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{r&&(this.lineNumber=i,this.endLineNumber=u,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=l,this.endColumn=s))}catch(e){}}a.prototype=new Error,t.default=a,e.exports=t.default},function(e,t,r){e.exports={default:r(7),__esModule:!0}},function(e,t,r){var n=r(8);e.exports=function(e,t,r){return n.setDesc(e,t,r)}},function(e,t){var r=Object;e.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),a.default(e),i.default(e),u.default(e),l.default(e),s.default(e),c.default(e)},t.moveHelperToHooks=function(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])};var o=n(r(10)),a=n(r(11)),i=n(r(24)),u=n(r(25)),l=n(r(26)),s=n(r(27)),c=n(r(28))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var o=r.inverse,a=r.fn;if(!0===t)return a(this);if(!1===t||null==t)return o(this);if(n.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):o(this);if(r.data&&r.ids){var i=n.createFrame(r.data);i.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:i}}return a(t,r)})},e.exports=t.default},function(e,t,r){(function(n){"use strict";var o=r(12).default,a=r(2).default;t.__esModule=!0;var i=r(4),u=a(r(5));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new u.default("Must pass iterator to #each");var r,a=t.fn,l=t.inverse,s=0,c="",f=void 0,d=void 0;function p(t,r,n){f&&(f.key=t,f.index=r,f.first=0===r,f.last=!!n,d&&(f.contextPath=d+t)),c+=a(e[t],{data:f,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(f=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var h=e.length;s<h;s++)s in e&&p(s,s,s===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var v=[],m=e[n.Symbol.iterator](),g=m.next();!g.done;g=m.next())v.push(g.value);for(h=(e=v).length;s<h;s++)p(s,s,s===e.length-1)}else r=void 0,o(e).forEach(function(e){void 0!==r&&p(r,s-1),r=e,s++}),void 0!==r&&p(r,s-1,!0);return 0===s&&(c=l(this)),c})},e.exports=t.default}).call(t,function(){return this}())},function(e,t,r){e.exports={default:r(13),__esModule:!0}},function(e,t,r){r(14),e.exports=r(20).Object.keys},function(e,t,r){var n=r(15);r(17)("keys",function(e){return function(t){return e(n(t))}})},function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(18),o=r(20),a=r(23);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],i={};i[e]=t(r),n(n.S+n.F*a(function(){r(1)}),"Object",i)}},function(e,t,r){var n=r(19),o=r(20),a=r(21),i=function(e,t,r){var u,l,s,c=e&i.F,f=e&i.G,d=e&i.S,p=e&i.P,h=e&i.B,v=e&i.W,m=f?o:o[t]||(o[t]={}),g=f?n:d?n[t]:(n[t]||{}).prototype;for(u in f&&(r=t),r)(l=!c&&g&&u in g)&&u in m||(s=l?g[u]:r[u],m[u]=f&&"function"!=typeof g[u]?r[u]:h&&l?a(s,n):v&&g[u]==s?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(s):p&&"function"==typeof s?a(Function.call,s):s,p&&((m.prototype||(m.prototype={}))[u]=s))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,e.exports=i},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(22);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=n(r(5));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=r(4),a=n(r(5));t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return o.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||o.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,r){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var o=1;null!=r.hash.level?o=r.hash.level:r.data&&null!=r.data.level&&(o=r.data.level),t[0]=o,e.log.apply(e,t)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,r){return e?r.lookupProperty(e,t):e})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=r(4),a=n(r(5));t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");o.isFunction(e)&&(e=e.call(this));var r=t.fn;if(o.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=o.createFrame(t.data)).contextPath=o.appendContextPath(t.data.contextPath,t.ids[0])),r(e,{data:n,blockParams:o.blockParams([e],[n&&n.contextPath])})})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){o.default(e)};var o=n(r(30))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4);t.default=function(e){e.registerDecorator("inline",function(e,t,r,o){var a=e;return t.partials||(t.partials={},a=function(o,a){var i=r.partials;r.partials=n.extend({},i,t.partials);var u=e(o,a);return r.partials=i,u}),t.partials[o.args[0]]=o.fn,a})},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];console[t].apply(console,n)}}};t.default=o,e.exports=t.default},function(e,t,r){"use strict";var n=r(33).default,o=r(12).default,a=r(1).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=n(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=n(null);return r.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,r){return s("function"==typeof e?t.methods:t.properties,r)},t.resetLoggedProperties=function(){o(l).forEach(function(e){delete l[e]})};var i=r(35),u=a(r(31)),l=n(null);function s(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,u.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,r){e.exports={default:r(34),__esModule:!0}},function(e,t,r){var n=r(8);e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){"use strict";var n=r(33).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.extend.apply(void 0,[n(null)].concat(t))};var o=r(4)},function(e,t){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,r){"use strict";var n=r(38).default,o=r(12).default,a=r(1).default,i=r(2).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,r=s.COMPILER_REVISION;if(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)return;if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var n=s.REVISION_CHANGES[r],o=s.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&7===e.compiler[0];var a={strict:function(e,t,r){if(!(e&&t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:r});return e[t]},lookupProperty:function(e,t){var r=e[t];return null==r?r:Object.prototype.hasOwnProperty.call(e,t)?r:d.resultIsAllowed(r,a.protoAccessControl,t)?r:void 0},lookup:function(e,t){for(var r=e.length,n=0;n<r;n++){var o=e[n]&&a.lookupProperty(e[n],t);if(null!=o)return e[n][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:u.escapeExpression,invokePartial:function(r,n,o){o.hash&&(n=u.extend({},n,o.hash),o.ids&&(o.ids[0]=!0));r=t.VM.resolvePartial.call(this,r,n,o);var a=u.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),i=t.VM.invokePartial.call(this,r,n,a);null==i&&t.compile&&(o.partials[o.name]=t.compile(r,e.compilerOptions,t),i=o.partials[o.name](n,a));if(null!=i){if(o.indent){for(var s=i.split("\n"),c=0,f=s.length;c<f&&(s[c]||c+1!==f);c++)s[c]=o.indent+s[c];i=s.join("\n")}return i}throw new l.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var r=e[t];return r.decorator=e[t+"_d"],r},programs:[],program:function(e,t,r,n,o){var a=this.programs[e],i=this.fn(e);return t||o||n||r?a=p(this,e,i,t,r,n,o):a||(a=this.programs[e]=p(this,e,i)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var r=e||t;return e&&t&&e!==t&&(r=u.extend({},t,e)),r},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.data;i._setup(r),!r.partial&&e.useData&&(n=function(e,t){t&&"root"in t||((t=t?s.createFrame(t):{}).root=e);return t}(t,n));var o=void 0,u=e.useBlockParams?[]:void 0;function l(t){return""+e.main(a,t,a.helpers,a.partials,n,u,o)}return e.useDepths&&(o=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(l=v(e.main,l,a,r.depths||[],n,u))(t,r)}return i.isTop=!0,i._setup=function(n){if(n.partial)a.protoAccessControl=n.protoAccessControl,a.helpers=n.helpers,a.partials=n.partials,a.decorators=n.decorators,a.hooks=n.hooks;else{var i=u.extend({},t.helpers,n.helpers);!function(e,t){o(e).forEach(function(r){var n=e[r];e[r]=function(e,t){var r=t.lookupProperty;return f.wrapHelper(e,function(e){return u.extend({lookupProperty:r},e)})}(n,t)})}(i,a),a.helpers=i,e.usePartial&&(a.partials=a.mergeIfNeeded(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=u.extend({},t.decorators,n.decorators)),a.hooks={},a.protoAccessControl=d.createProtoAccessControl(n);var l=n.allowCallsToHelperMissing||r;c.moveHelperToHooks(a,"helperMissing",l),c.moveHelperToHooks(a,"blockHelperMissing",l)}},i._child=function(t,r,n,o){if(e.useBlockParams&&!n)throw new l.default("must pass block params");if(e.useDepths&&!o)throw new l.default("must pass parent depths");return p(a,t,e[t],r,0,n,o)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,r){e?e.call||r.name||(r.name=e,e=r.partials[e]):e="@partial-block"===r.name?r.data["partial-block"]:r.partials[r.name];return e},t.invokePartial=function(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;r.fn&&r.fn!==h&&function(){r.data=s.createFrame(r.data);var e=r.fn;o=r.data["partial-block"]=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return r.data=s.createFrame(r.data),r.data["partial-block"]=n,e(t,r)},e.partials&&(r.partials=u.extend({},r.partials,e.partials))}();void 0===e&&o&&(e=o);if(void 0===e)throw new l.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)},t.noop=h;var u=a(r(4)),l=i(r(5)),s=r(3),c=r(9),f=r(42),d=r(32);function p(e,t,r,n,o,a,i){function u(t){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=i;return!i||t==i[0]||t===e.nullContext&&null===i[0]||(u=[t].concat(i)),r(e,t,e.helpers,e.partials,o.data||n,a&&[o.blockParams].concat(a),u)}return(u=v(r,u,e,i,n,a)).program=t,u.depth=i?i.length:0,u.blockParams=o||0,u}function h(){return""}function v(e,t,r,n,o,a){if(e.decorator){var i={};t=e.decorator(t,i,r,n&&n[0],o,a,n),u.extend(t,i)}return t}},function(e,t,r){e.exports={default:r(39),__esModule:!0}},function(e,t,r){r(40),e.exports=r(20).Object.seal},function(e,t,r){var n=r(41);r(17)("seal",function(e){return function(t){return e&&n(t)?e(t):t}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){if("function"!=typeof e)return e;return function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)}}},function(e,t){(function(r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==r?r:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())}])});</script>
<script>!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){(function(n){var i;t=e.exports=d,i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var o=Number.MAX_SAFE_INTEGER||9007199254740991,r=t.re=[],s=t.src=[],a=t.tokens={},l=0;function c(e){a[e]=l++}c("NUMERICIDENTIFIER"),s[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),s[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),s[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),s[a.MAINVERSION]="("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),s[a.MAINVERSIONLOOSE]="("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),s[a.PRERELEASEIDENTIFIER]="(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),s[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),s[a.PRERELEASE]="(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),s[a.PRERELEASELOOSE]="(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),s[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),s[a.BUILD]="(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),s[a.FULLPLAIN]="v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?",s[a.FULL]="^"+s[a.FULLPLAIN]+"$",c("LOOSEPLAIN"),s[a.LOOSEPLAIN]="[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?",c("LOOSE"),s[a.LOOSE]="^"+s[a.LOOSEPLAIN]+"$",c("GTLT"),s[a.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),s[a.XRANGEIDENTIFIERLOOSE]=s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),s[a.XRANGEIDENTIFIER]=s[a.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),s[a.XRANGEPLAIN]="[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),s[a.XRANGEPLAINLOOSE]="[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGE"),s[a.XRANGE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$",c("XRANGELOOSE"),s[a.XRANGELOOSE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$",c("COERCE"),s[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),r[a.COERCERTL]=new RegExp(s[a.COERCE],"g"),c("LONETILDE"),s[a.LONETILDE]="(?:~>?)",c("TILDETRIM"),s[a.TILDETRIM]="(\\s*)"+s[a.LONETILDE]+"\\s+",r[a.TILDETRIM]=new RegExp(s[a.TILDETRIM],"g");c("TILDE"),s[a.TILDE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$",c("TILDELOOSE"),s[a.TILDELOOSE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$",c("LONECARET"),s[a.LONECARET]="(?:\\^)",c("CARETTRIM"),s[a.CARETTRIM]="(\\s*)"+s[a.LONECARET]+"\\s+",r[a.CARETTRIM]=new RegExp(s[a.CARETTRIM],"g");c("CARET"),s[a.CARET]="^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$",c("CARETLOOSE"),s[a.CARETLOOSE]="^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),s[a.COMPARATORLOOSE]="^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),s[a.COMPARATOR]="^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),s[a.COMPARATORTRIM]="(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",r[a.COMPARATORTRIM]=new RegExp(s[a.COMPARATORTRIM],"g");c("HYPHENRANGE"),s[a.HYPHENRANGE]="^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),s[a.HYPHENRANGELOOSE]="^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),s[a.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)i(u,s[u]),r[u]||(r[u]=new RegExp(s[u]));function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?r[a.LOOSE]:r[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);i("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?r[a.LOOSE]:r[a.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=h,t.valid=function(e,t){var n=h(e,t);return n?n.version:null},t.clean=function(e,t){var n=h(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return i("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],o=e.prerelease[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return f(n,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var n=this.build[t],o=e.build[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return f(n,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new d(e,n).inc(t,i).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=h(e),i=h(t),o="";if(n.prerelease.length||i.prerelease.length){o="pre";var r="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==i[s])return o+s;return r},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),i=p.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1}function v(e,t,n){return new d(e,n).compare(new d(t,n))}function y(e,t,n){return v(e,t,n)>0}function m(e,t,n){return v(e,t,n)<0}function g(e,t,n){return 0===v(e,t,n)}function b(e,t,n){return 0!==v(e,t,n)}function w(e,t,n){return v(e,t,n)>=0}function E(e,t,n){return v(e,t,n)<=0}function T(e,t,n,i){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,i);case"!=":return b(e,n,i);case">":return y(e,n,i);case">=":return w(e,n,i);case"<":return m(e,n,i);case"<=":return E(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof O))return new O(e,t);i("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=v,t.compareLoose=function(e,t){return v(e,t,!0)},t.compareBuild=function(e,t,n){var i=new d(e,n),o=new d(t,n);return i.compare(o)||i.compareBuild(o)},t.rcompare=function(e,t,n){return v(t,e,n)},t.sort=function(e,n){return e.sort((function(e,i){return t.compareBuild(e,i,n)}))},t.rsort=function(e,n){return e.sort((function(e,i){return t.compareBuild(i,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=b,t.gte=w,t.lte=E,t.cmp=T,t.Comparator=O;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof O)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function D(e,t){for(var n=!0,i=e.slice(),o=i.pop();n&&i.length;)n=i.every((function(e){return o.intersects(e,t)})),o=i.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function I(e,t,n,i,o,r,s,a,l,c,u,h,d){return((t=S(n)?"":S(i)?">="+n+".0.0":S(o)?">="+n+"."+i+".0":">="+t)+" "+(a=S(l)?"":S(c)?"<"+(+l+1)+".0.0":S(u)?"<"+l+"."+(+c+1)+".0":h?"<="+l+"."+c+"."+u+"-"+h:"<="+a)).trim()}function A(e,t,n){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(o=0;o<e.length;o++)if(i(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var r=e[o].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function B(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function x(e,t,n,i){var o,r,s,a,l;switch(e=new d(e,i),t=new k(t,i),n){case">":o=y,r=E,s=m,a=">",l=">=";break;case"<":o=m,r=w,s=y,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(B(e,t,i))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],h=null,p=null;if(u.forEach((function(e){e.semver===C&&(e=new O(">=0.0.0")),h=h||e,p=p||e,o(e.semver,h.semver,i)?h=e:s(e.semver,p.semver,i)&&(p=e)})),h.operator===a||h.operator===l)return!1;if((!p.operator||p.operator===a)&&r(e,p.semver))return!1;if(p.operator===l&&s(e,p.semver))return!1}return!0}O.prototype.parse=function(e){var t=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},O.prototype.toString=function(){return this.value},O.prototype.test=function(e){if(i("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return T(e,this.operator,this.semver,this.options)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),B(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),B(e.semver,n,t));var i=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),r=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return i||o||r&&s||a||l},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?r[a.HYPHENRANGELOOSE]:r[a.HYPHENRANGE];e=e.replace(n,I),i("hyphen replace",e),e=e.replace(r[a.COMPARATORTRIM],"$1$2$3"),i("comparator trim",e,r[a.COMPARATORTRIM]),e=(e=(e=e.replace(r[a.TILDETRIM],"$1~")).replace(r[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return i("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){i("caret",e,t);var n=t.loose?r[a.CARETLOOSE]:r[a.CARET];return e.replace(n,(function(t,n,o,r,s){var a;return i("caret",e,t,n,o,r,s),S(n)?a="":S(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":S(r)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(i("replaceCaret pr",s),a="0"===n?"0"===o?">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+o+"."+(+r+1):">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+r+"-"+s+" <"+(+n+1)+".0.0"):(i("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+r+" <"+n+"."+o+"."+(+r+1):">="+n+"."+o+"."+r+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+r+" <"+(+n+1)+".0.0"),i("caret return",a),a}))}(e,t)})).join(" ")}(e,t),i("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?r[a.TILDELOOSE]:r[a.TILDE];return e.replace(n,(function(t,n,o,r,s){var a;return i("tilde",e,t,n,o,r,s),S(n)?a="":S(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":S(r)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(i("replaceTilde pr",s),a=">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+r+" <"+n+"."+(+o+1)+".0",i("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),i("tildes",e),e=function(e,t){return i("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?r[a.XRANGELOOSE]:r[a.XRANGE];return e.replace(n,(function(n,o,r,s,a,l){i("xRange",e,n,o,r,s,a,l);var c=S(r),u=c||S(s),h=u||S(a),d=h;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?n=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(s=0),a=0,">"===o?(o=">=",u?(r=+r+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",u?r=+r+1:s=+s+1),n=o+r+"."+s+"."+a+l):u?n=">="+r+".0.0"+l+" <"+(+r+1)+".0.0"+l:h&&(n=">="+r+"."+s+".0"+l+" <"+r+"."+(+s+1)+".0"+l),i("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),i("xrange",e),e=function(e,t){return i("replaceStars",e,t),e.trim().replace(r[a.STAR],"")}(e,t),i("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new O(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return D(n,t)&&e.set.some((function(e){return D(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1},t.satisfies=B,t.maxSatisfying=function(e,t,n){var i=null,o=null;try{var r=new k(t,n)}catch(e){return null}return e.forEach((function(e){r.test(e)&&(i&&-1!==o.compare(e)||(o=new d(i=e,n)))})),i},t.minSatisfying=function(e,t,n){var i=null,o=null;try{var r=new k(t,n)}catch(e){return null}return e.forEach((function(e){r.test(e)&&(i&&1!==o.compare(e)||(o=new d(i=e,n)))})),i},t.minVersion=function(e,t){e=new k(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var i=0;i<e.set.length;++i){e.set[i].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return x(e,t,"<",n)},t.gtr=function(e,t,n){return x(e,t,">",n)},t.outside=x,t.prerelease=function(e,t){var n=h(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var i;(i=r[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r[a.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;r[a.COERCERTL].lastIndex=-1}else n=e.match(r[a.COERCE]);if(null===n)return null;return h(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}).call(this,n(11))},function(e,t,n){var i;
/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */!function(o,r,s,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(E(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var g=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&void 0===e[i[o]])&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),b=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&l(i,n)}function E(e,t){return function(){return e.apply(t,arguments)}}function T(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function O(e,t){return void 0===e?t:e}function C(e,t,n){y(I(t),(function(t){e.addEventListener(t,n,!1)}))}function k(e,t,n){y(I(t),(function(t){e.removeEventListener(t,n,!1)}))}function D(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return e.indexOf(t)>-1}function I(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function B(e){return Array.prototype.slice.call(e,0)}function x(e,t,n){for(var i=[],o=[],r=0;r<e.length;){var s=t?e[r][t]:e[r];A(o,s)<0&&i.push(e[r]),o[r]=s,r++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function P(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),r=0;r<c.length;){if((i=(n=c[r])?n+o:t)in e)return i;r++}}var R=1;function _(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var V="ontouchstart"in o,L=void 0!==P(o,"PointerEvent"),N=V&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M=["x","y"],j=["clientX","clientY"];function z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){T(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,r=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=t.center=F(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=W(a,l),t.distance=q(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},o=e.prevDelta||{},r=e.prevInput||{};1!==t.eventType&&4!==r.eventType||(o=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-i.x),t.deltaY=o.y+(n.y-i.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var c=X(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=d(c.x)>d(c.y)?c.x:c.y,t.scale=s?(u=s.pointers,h=i,q(h[0],h[1],j)/q(u[0],u[1],j)):1,t.rotation=s?function(e,t){return W(t[1],t[0],j)+W(e[1],e[0],j)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,r,s=e.lastInterval||t,a=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(a>25||void 0===s.velocity)){var l=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,u=X(a,l,c);i=u.x,o=u.y,n=d(u.x)>d(u.y)?u.x:u.y,r=Y(l,c),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=r}(n,t);var u,h;var f=e.element;D(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:F(t),deltaX:e.deltaX,deltaY:e.deltaY}}function F(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,i=0,o=0;o<t;)n+=e[o].clientX,i+=e[o].clientY,o++;return{x:h(n/t),y:h(i/t)}}function X(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function q(e,t,n){n||(n=M);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(i*i+o*o)}function W(e,t,n){n||(n=M);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,i)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(_(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,z.apply(this,arguments)}w(K,z,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var $={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",Q="pointermove pointerup pointercancel";function ee(){this.evEl=J,this.evWin=Q,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(J="MSPointerDown",Q="MSPointerMove MSPointerUp MSPointerCancel"),w(ee,z,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),o=$[i],r=Z[e.pointerType]||e.pointerType,s="touch"==r,a=A(t,e.pointerId,"pointerId");1&o&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):12&o&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(a,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,z.apply(this,arguments)}function ie(e,t){var n=B(e.touches),i=B(e.changedTouches);return 12&t&&(n=x(n.concat(i),"identifier",!0)),[n,i]}w(ne,z,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=ie.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function re(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},z.apply(this,arguments)}function se(e,t){var n=B(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=B(e.changedTouches),a=[],l=this.target;if(r=n.filter((function(e){return D(e.target,l)})),1===t)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),12&t&&delete i[s[o].identifier],o++;return a.length?[x(r.concat(a),"identifier",!0),a]:void 0}w(re,z,{handler:function(e){var t=oe[e.type],n=se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ae(){z.apply(this,arguments);var e=E(this.handler,this);this.touch=new re(this.manager,e),this.mouse=new K(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(t-o.x),s=Math.abs(n-o.y);if(r<=25&&s<=25)return!0}return!1}w(ae,z,{handler:function(e,t,n){var i="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)le.call(this,t,n);else if(o&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=P(u.style,"touchAction"),de=void 0!==he,pe=function(){if(!de)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function fe(e,t){this.manager=e,this.set(t)}fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&pe[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return y(this.manager.recognizers,(function(t){T(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(S(e,"none"))return"none";var t=S(e,"pan-x"),n=S(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(S(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,o=S(i,"none")&&!pe.none,r=S(i,"pan-y")&&!pe["pan-y"],s=S(i,"pan-x")&&!pe["pan-x"];if(o){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!s||!r)return o||r&&6&n||s&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function ve(e){this.options=l({},this.defaults,e||{}),this.id=R++,this.manager=null,this.options.enable=O(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ye(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ge(e,t){var n=t.manager;return n?n.get(e):e}function be(){ve.apply(this,arguments)}function we(){be.apply(this,arguments),this.pX=null,this.pY=null}function Ee(){be.apply(this,arguments)}function Te(){ve.apply(this,arguments),this._timer=null,this._input=null}function Oe(){be.apply(this,arguments)}function Ce(){be.apply(this,arguments)}function ke(){ve.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function De(e,t){return(t=t||{}).recognizers=O(t.recognizers,De.defaults.preset),new Se(e,t)}ve.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ge(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=ge(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=ge(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=ge(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+ye(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+ye(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!T(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(be,ve,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,o=this.attrTest(e);return i&&(8&n||!o)?16|t:i||o?4&n?8|t:2&t?4|t:2:32}}),w(we,be,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,o=e.direction,r=e.deltaX,s=e.deltaY;return o&t.direction||(6&t.direction?(o=0===r?1:r<0?2:4,n=r!=this.pX,i=Math.abs(e.deltaX)):(o=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=o,n&&i>t.threshold&&o&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ee,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Te,ve,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Oe,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ce,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return we.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(ke,ve,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&o&&n){if(4!=e.eventType)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&r?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),De.VERSION="2.0.7",De.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Oe,{enable:!1}],[Ee,{enable:!1},["rotate"]],[Ce,{direction:6}],[we,{direction:6},["swipe"]],[ke],[ke,{event:"doubletap",taps:2},["tap"]],[Te]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Se(e,t){var n;this.options=l({},De.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(L?ee:N?re:V?ae:K))(n,U),this.touchAction=new fe(this,this.options.touchAction),Ie(this,!0),y(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ie(e,t){var n,i=e.element;i.style&&(y(e.options.cssProps,(function(o,r){n=P(i.style,r),t?(e.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Se.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),r++}},get:function(e){if(e instanceof ve)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return y(I(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return y(I(e),(function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=r.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&Ie(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(De,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Se,Input:z,TouchAction:fe,TouchInput:re,MouseInput:K,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:ve,AttrRecognizer:be,Tap:ke,Pan:we,Swipe:Ce,Pinch:Ee,Rotate:Oe,Press:Te,on:C,off:k,each:y,merge:b,extend:g,assign:l,inherit:w,bindFn:E,prefixed:P}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=De,void 0===(i=function(){return De}.call(t,n,t,e))||(e.exports=i)}(window,document)},function(e,t,n){!function(e){"use strict";function t(e,t,n){if(t){if("string"==typeof e&&(e=document.querySelector(e)),document.createEvent){var i=document.createEvent("Events");i.initEvent(t,!0,!1),i.data=n,e.dispatchEvent(i)}}else console.error("No event was provided. You do need to provide one.")}window.navigator.pointerEnabled?(e.eventStart="pointerdown",e.eventEnd="pointerup",e.eventMove="pointermove",e.eventCancel="pointercancel"):window.navigator.msPointerEnabled?(e.eventStart="MSPointerDown",e.eventEnd="MSPointerUp",e.eventMove="MSPointerMove",e.eventCancel="MSPointerCancel"):"ontouchstart"in window?(e.eventStart="touchstart",e.eventEnd="touchend",e.eventMove="touchmove",e.eventCancel="touchcancel"):(e.eventStart="mousedown",e.eventEnd="mouseup",e.eventMove="mousemove",e.eventCancel="mouseout"),e.trigger=t,e.gestures=function(){var n,i,o,r,s,a,l,c={},u=150;function h(e){return"tagName"in e?e:e.parentNode}function d(){if(r=null,c.last)try{c&&c.el&&(t(c.el,"longtap"),c={})}catch(e){}}function p(){r&&clearTimeout(r),r=null}function f(){n&&clearTimeout(n),o&&clearTimeout(o),i&&clearTimeout(i),r&&clearTimeout(r),n=o=i=r=null,c={}}/android/gim.test(navigator.userAgent)&&(u=200),(l=document.body).addEventListener(e.eventStart,(function(t){if(s=Date.now(),a=s-(c.last||s),"touchstart"!==e.eventStart)c.el=h(t.target),"ripple"===t.target.nodeName&&(c.el=t.target.parentNode),n&&clearTimeout(n),c.x1=t.pageX,c.y1=t.pageY;else if(1===t.touches.length){if(t.target.disabled)return;c.el=h(t.touches[0].target),n&&clearTimeout(n),c.x1=t.touches[0].pageX,c.y1=t.touches[0].pageY}0<a&&a<=450&&(c.isDoubleTap=!0),c.last=s,r=setTimeout(d,750)})),l.addEventListener(e.eventMove,(function(t){p(),"touchmove"!==e.eventMove?(c.x2=t.pageX,c.y2=t.pageY):1===t.touches.length?(c.x2=t.touches[0].pageX,c.y2=t.touches[0].pageY,c.move=!0):t.touches.length})),l.addEventListener(e.eventEnd,(function(e){p(),c.el&&(c.x2&&20<Math.abs(c.x1-c.x2)||c.y2&&20<Math.abs(c.y1-c.y2)?i=setTimeout((function(){if(c&&c.el){var e=(n=c.x1,i=c.x2,o=c.y1,r=c.y2,Math.abs(n-i)>=Math.abs(o-r)?0<n-i?"left":"right":0<o-r?"up":"down");t(c.el,"swipe",e),t(c.el,"swipe"+e),c={}}var n,i,o,r}),0):"last"in c&&(o=setTimeout((function(){c&&c.isDoubleTap?c&&c.el&&(t(c.el,"dbltap"),e.preventDefault(),c={}):n=setTimeout((function(){n=null,c&&c.el&&!c.move?(t(c.el,"tap"),c={}):f()}),u)}),0)))})),l.addEventListener("touchcancel",f)},e.disableTextSelection=function(e,t){if(e){t&&"string"==typeof e?Array.prototype.slice.call(document.querySelectorAll(e)).map((function(e){e.classList.add("disable-user-select")})):"string"==typeof e&&(e=document.querySelector(e)).classList.add("disable-user-select");var n=document.head.querySelector(".disable-user-select");n||((n=document.createElement("style")).className="disable-user-select",n.innerHTML=".disable-user-select, .disable-user-select * { user-select: none; -webkit-user-select: none; -ms-user-select: none; }",document.head.appendChild(n))}},e.enableTextSelection=function(e,t){if(t&&"string"==typeof e)Array.prototype.slice.call(document.querySelectorAll(e)).map((function(e){e.classList.remove("disable-user-select")}));else{if("string"==typeof e&&(e=document.querySelector(e)),!e)return;e.classList.remove("disable-user-select")}}}(t)},function(e,t,n){var i;!function(){"use strict";
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/function o(e,t){var n;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!o.notNeeded(e)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=0,a=i.length;r<a;r++)this[i[r]]=l(this[i[r]],this);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var o=Node.prototype.removeEventListener;"click"===t?o.call(e,t,n.hijacked||n,i):o.call(e,t,n,i)},e.addEventListener=function(t,n,i){var o=Node.prototype.addEventListener;"click"===t?o.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):o.call(e,t,n,i)}),"function"==typeof e.onclick&&(n=e.onclick,e.addEventListener("click",(function(e){n(e)}),!1),e.onclick=null)}function l(e,t){return function(){return e.apply(t,arguments)}}}var r=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!r,a=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,l=a&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=a&&/OS [6-7]_\d/.test(navigator.userAgent),u=navigator.userAgent.indexOf("BB10")>0;o.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(a&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},o.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},o.prototype.sendClick=function(e,t){var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},o.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},o.prototype.focus=function(e){var t;a&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},o.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},o.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:window.SVGElementInstance&&e instanceof SVGElementInstance?e.correspondingUseElement:e},o.prototype.onTouchStart=function(e){var t,n,i;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],a){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!l){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},o.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},o.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},o.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},o.prototype.onTouchEnd=function(e){var t,n,i,o,r,u=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(r=e.changedTouches[0],(u=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||u).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=u.tagName.toLowerCase())){if(t=this.findControl(u)){if(this.focus(u),s)return!1;u=t}}else if(this.needsFocus(u))return e.timeStamp-n>100||a&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,e),a&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!a||l||!(o=u.fastClickScrollParent)||o.fastClickLastScrollTop===o.scrollTop)||(this.needsClick(u)||(e.preventDefault(),this.sendClick(u,e)),!1)},o.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},o.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},o.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},o.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},o.notNeeded=function(e){var t,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if((t=document.querySelector("meta[name=viewport]"))&&n>31)return!0}if(u&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},o.attach=function(e,t){return new o(e,t)},void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.PrivacyIcons=window.vungle.templates.PrivacyIcons||{},window.vungle.templates.PrivacyIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="privacy-icons" style="display: none;" data-hbs-name="PrivacyIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="lock-icon" class="'+e.escapeExpression("function"==typeof(n=null!=(n=r(n,"THEME")||(null!=t?r(t,"THEME"):t))?n:e.hooks.helperMissing)?n.call(null!=t?t:e.nullContext||{},{name:"THEME",hash:{},data:o,loc:{start:{line:5,column:36},end:{line:5,column:45}}}):n)+'" viewBox="0 0 390 390" style="enable-background:new 0 0 390 390;" xml:space="preserve">\n <title>lock-icon</title>\n <path class="st1" d="M195,369.5C50.8,317.6,53,198.4,54.8,102.5c0.2-9.2,0.3-17.9,0.4-26.5c57.6-0.7,102.2-18,139.8-54.3\n C232.5,58,277.1,75.3,334.8,76c0,8.5,0.2,17.3,0.4,26.5C337,198.4,339.2,317.6,195,369.5z M177.8,289.4h34.4l0.9-2.3\n l60.7-166.8h-36.9L195,235.1l-41.8-114.8h-37L177.8,289.4z"/>\n </symbol>\n\n <symbol id="privacy-icon" viewBox="0 0 194.818 194.818" style="enable-background:new 0 0 194.818 194.818;" xml:space="preserve">\n <title>privacy-icon</title>\n <style>\n .external-path {\n fill: #909090;\n }\n </style>\n <path class="external-path" d="M185.818,2.161h-57.04c-4.971,0-9,4.029-9,9s4.029,9,9,9h35.312l-86.3,86.3c-3.515,3.515-3.515,9.213,0,12.728\n c1.758,1.757,4.061,2.636,6.364,2.636s4.606-0.879,6.364-2.636l86.3-86.3v35.313c0,4.971,4.029,9,9,9s9-4.029,9-9v-57.04\n C194.818,6.19,190.789,2.161,185.818,2.161z"/>\n <path class="external-path" d="M149,77.201c-4.971,0-9,4.029-9,9v88.456H18v-122h93.778c4.971,0,9-4.029,9-9s-4.029-9-9-9H9c-4.971,0-9,4.029-9,9v140\n c0,4.971,4.029,9,9,9h140c4.971,0,9-4.029,9-9V86.201C158,81.23,153.971,77.201,149,77.201z"/>\n </symbol>\n\n <symbol id="privacy-close-icon" viewBox="0 0 552 551" enable-background="new 0 0 552 551" xml:space="preserve">\n <title>privacy-close-icon</title>\n <path fill="#FFFFFF" d="M468.9,81.3c53.8,53.4,80.7,118,80.7,193.6c0,75.6-26.7,140.1-80.1,193.6c-53.4,53.4-118,80.1-193.6,80.1\n c-75.6,0-140.1-26.7-193.6-80.1S2.2,350.5,2.2,274.8c0-75.6,26.7-140.1,80.1-193.6C135.8,27.9,200.3,1.2,275.9,1.2\n C350.7,1.2,415.1,27.9,468.9,81.3z M510.3,274.8c0-64.7-22.9-120.1-68.7-166.3c-45.8-46.2-101.1-69.2-165.7-69.2\n c-64.7,0-120.1,23.1-166.3,69.2c-46.2,46.2-69.2,101.6-69.2,166.3c0,64.7,23.1,120.1,69.2,166.3c46.2,46.2,101.6,69.2,166.3,69.2\n c64.7,0,119.9-23.1,165.7-69.2C487.4,395,510.3,339.6,510.3,274.8z M416.5,161.4L303.1,274.8l113.4,113.4l-27.3,27.3L275.9,302.1\n L161.4,415.5l-27.3-27.3l114.5-113.4L134.1,161.4l27.3-27.3l114.5,113.4l113.4-113.4L416.5,161.4z"/>\n </symbol>\n\n <symbol id="lock-icon-2" viewBox="0 0 380.9 390" style="enable-background:new 0 0 380.9 390;" xml:space="preserve" xml:space="preserve">\n <title>lock-icon-2</title>\n <style type="text/css">\n\t .st0-lock-icon-2{\n fill:#3C2869;\n }\n </style>\n\t\t\t<path class="st0-lock-icon-2" d="M161.8,160.4c-25.2,0-45.8,20.6-45.8,45.8s20.6,45.8,45.8,45.8s45.8-20.6,45.8-45.8S187,160.4,161.8,160.4"\n\t\t\t\t/>\n\t\t\t<polygon class="st0-lock-icon-2" points="184.7,389.2 310.5,46.1 379.2,46.1 253.3,389.2 \t\t\t"/>\n\t\t\t<polygon class="st0-lock-icon-2" points="93.2,343.5 116.1,343.5 138.9,343.5 138.9,322.9 138.9,297.7 116.1,297.7 93.2,297.7 93.2,316\n\t\t\t\t"/>\n\t\t\t<polygon class="st0-lock-icon-2" points="161.8,68.9 129.8,68.9 93.2,68.9 93.2,34.6 93.2,0.3 81.7,0.3 70.3,0.3 70.3,36.9 70.3,68.9\n\t\t\t\t38.3,68.9 1.7,68.9 1.7,80.4 1.7,91.8 38.3,91.8 70.3,91.8 70.3,128.4 70.3,160.4 79.5,160.4 93.2,160.4 93.2,126.1 93.2,91.8\n\t\t\t\t127.5,91.8 161.8,91.8 161.8,80.4"/>\n </symbol>\n\n <symbol id="lock-text" viewBox="0 0 1319.7 390" style="enable-background:new 0 0 1319.7 390;" xml:space="preserve" xml:space="preserve">\n <title>lock-text</title>\n <style type="text/css">\n .st0-lock-text {\n fill:#3C2869;\n }\n .st1-lock-text {\n opacity:0.5;\n }\n </style>\n\t\t\t<path class="st0-lock-text" d="M687.5,201.3v52.2h-27.2V108.2h59c31.8,0,45.4,13.6,45.4,45.4S746.5,199,719.2,199h-31.8\n\t\t\t\tC687.5,199,687.5,201.3,687.5,201.3z M721.5,178.6c9.1,0,13.6-4.5,13.6-13.6v-20.4c0-9.1-4.5-13.6-13.6-13.6h-34.1v45.4h34.1\n\t\t\t\tC721.5,176.3,721.5,178.6,721.5,178.6z"/>\n\t\t\t<polygon class="st0-lock-text" points="780.6,144.5 841.9,144.5 841.9,165 807.8,165 807.8,253.5 780.6,253.5"/>\n\t\t\t<path class="st0-lock-text" d="M882.7,130.9h-27.2v-22.7h27.2V130.9z M855.5,144.5h27.2v109h-27.2V144.5z"/>\n\t\t\t<polygon class="st0-lock-text" points="946.3,224 971.3,144.5 1000.8,144.5 962.2,253.5 932.7,253.5 894.1,144.5 923.6,144.5"/>\n\t\t\t<path class="st0-lock-text" d="M1064.4,178.6c0-11.4-6.8-15.9-18.2-15.9c-11.4,0-18.2,4.5-18.2,15.9h-27.2c0-22.7,20.4-36.3,45.4-36.3\n\t\t\t\ts43.1,13.6,43.1,36.3v54.5h18.2v20.4h-43.1v-15.9l0,0c-6.8,11.4-15.9,20.4-31.8,20.4c-20.4,0-34.1-13.6-34.1-34.1\n\t\t\t\tc0-18.2,13.6-31.8,36.3-34.1l29.5-2.3C1064.4,187.7,1064.4,178.6,1064.4,178.6z M1064.4,210.4v-4.5l-31.8,2.3\n\t\t\t\tc-4.5,0-6.8,2.3-6.8,6.8v9.1c0,6.8,6.8,9.1,15.9,9.1C1057.6,235.3,1064.4,224,1064.4,210.4"/>\n\t\t\t<path class="st0-lock-text" d="M1164.3,142.2c22.7,0,43.1,11.4,45.4,38.6h-27.2c-2.3-13.6-9.1-18.2-20.4-18.2c-11.4,0-20.4,6.8-20.4,20.4\n\t\t\t\tv29.5c0,13.6,9.1,20.4,20.4,20.4c11.4,0,18.2-4.5,20.4-20.4h27.2c-2.3,27.2-22.7,40.9-45.4,40.9c-31.8,0-50-22.7-50-56.8\n\t\t\t\tS1132.5,142.2,1164.3,142.2"/>\n\t\t\t<polygon class="st0-lock-text" points="1266.5,221.7 1289.2,144.5 1318.7,144.5 1266.5,289.8 1218.8,289.8 1218.8,269.4 1246,269.4\n\t\t\t\t1250.6,253.5 1212,144.5 1241.5,144.5 1264.2,221.7 \t\t\t"/>\n <polygon class="st1-lock-text st0-lock-text" points="26.7,108.2 78.9,251.2 78.9,251.2 53.9,251.2 53.9,251.2 1.7,108.2"/>\n\t\t\t<polygon class="st0-lock-text" points="106.2,108.2 53.9,251.2 53.9,251.2 78.9,251.2 78.9,251.2 133.4,108.2"/>\n\t\t\t<path class="st0-lock-text" d="M385.5,233.1c-25,0-31.8-2.3-31.8-4.5s2.3-4.5,11.4-4.5c0,0,9.1,0,15.9,0c25,0,40.9-18.2,40.9-40.9l0,0l0,0\n\t\t\t\tc0-6.8-2.3-13.6-4.5-20.4h13.6v-18.2h-52.2l0,0l0,0c-22.7,0-43.1,13.6-43.1,38.6l0,0l0,0c0,11.4,4.5,31.8,22.7,31.8\n\t\t\t\tc-9.1,0-22.7,2.3-25,11.4c-2.3,13.6,6.8,18.2,25,22.7h-15.9c0,0-9.1,4.5-9.1,18.2c0,25,22.7,31.8,50,31.8c22.7,0,50-6.8,50-34.1\n\t\t\t\tC433.1,242.2,415,233.1,385.5,233.1 M360.5,178.6c0-9.1,6.8-15.9,15.9-15.9h6.8c11.4,0,15.9,6.8,15.9,15.9v6.8\n\t\t\t\tc0,13.6-6.8,18.2-15.9,18.2h-6.8c-9.1,0-15.9-6.8-15.9-18.2C360.5,185.4,360.5,178.6,360.5,178.6z M380.9,280.8\n\t\t\t\tc-9.1,0-27.2-2.3-27.2-13.6s9.1-13.6,9.1-13.6h22.7c11.4,0,25,0,25,13.6C410.4,280.8,392.3,280.8,380.9,280.8"/>\n\t\t\t<path class="st0-lock-text" d="M469.5,108.2h-25v113.5c0,22.7,9.1,31.8,29.5,31.8h13.6v-22.7h-18.2V108.2z"/>\n\t\t\t<path class="st0-lock-text" d="M519.4,205.8L519.4,205.8h65.8v-11.4c0-6.8,0-13.6-2.3-20.4c-2.3-6.8-4.5-11.4-9.1-15.9\n\t\t\t\tc-4.5-4.5-9.1-9.1-13.6-11.4c-6.8-2.3-13.6-4.5-20.4-4.5c-6.8,0-13.6,2.3-20.4,4.5c-6.8,2.3-11.4,6.8-13.6,11.4\n\t\t\t\tc-4.5,4.5-6.8,11.4-9.1,18.2c-2.3,6.8-2.3,13.6-2.3,22.7c0,9.1,0,15.9,2.3,22.7c2.3,6.8,4.5,13.6,9.1,18.2\n\t\t\t\tc4.5,4.5,9.1,9.1,13.6,11.4c6.8,2.3,13.6,4.5,20.4,4.5c6.8,0,11.4,0,15.9-2.3c4.5-2.3,9.1-4.5,13.6-6.8\n\t\t\t\tc4.5-2.3,6.8-6.8,11.4-11.4c2.3-4.5,4.5-9.1,4.5-15.9h-22.7c0,6.8-2.3,9.1-6.8,13.6c-4.5,0-9.1,2.3-11.4,2.3s-9.1,0-11.4-2.3\n\t\t\t\tc-2.3,0-4.5-2.3-6.8-4.5c-2.3-2.3-4.5-4.5-4.5-6.8c-2.3-2.3-2.3-4.5-2.3-9.1v-4.5C519.4,208.1,519.4,205.8,519.4,205.8z\n\t\t\t\t M519.4,180.8c0-11.4,9.1-18.2,18.2-18.2h6.8c11.4,0,18.2,9.1,18.2,18.2v6.8h-43.1C519.4,187.7,519.4,180.8,519.4,180.8z"/>\n\t\t\t<path class="st0-lock-text" d="M162.9,255.8c18.2,0,31.8-11.4,31.8-31.8v29.5h22.7V146.8h-25v70.4c0,9.1-6.8,15.9-15.9,15.9h-6.8\n\t\t\t\tc-9.1,0-15.9-6.8-15.9-15.9v-70.4h-25v70.4C126.6,239.9,140.2,255.8,162.9,255.8"/>\n\t\t\t<path class="st0-lock-text" d="M287.8,144.5c-18.2,0-31.8,11.4-31.8,31.8v-29.5h-22.7v104.5h25v-68.1c0-9.1,6.8-15.9,15.9-15.9h6.8\n\t\t\t\tc9.1,0,15.9,6.8,15.9,15.9v70.4h25v-70.4C321.9,160.4,308.3,144.5,287.8,144.5"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.DownloadIcons=window.vungle.templates.DownloadIcons||{},window.vungle.templates.DownloadIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="download-icons" style="display: none;" data-hbs-name="DownloadIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="cta-icon-down" viewBox="0 0 129 129" enable-background="new 0 0 129 129">\n <title>cta-icon-down</title>\n <path class="fill" d="m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z"/>\n </symbol>\n\n <symbol id="cta-icon-download" viewBox="0 0 471.2 471.2" style="enable-background:new 0 0 471.2 471.2;" xml:space="preserve">\n <title>cta-icon-download</title>\n <style type="text/css">\n .svg-cta {\n fill: #fff;\n }\n </style>\n <path class="svg-cta" d="M457.7,230.15c-7.5,0-13.5,6-13.5,13.5v122.8c0,33.4-27.2,60.5-60.5,60.5H87.5c-33.4,0-60.5-27.2-60.5-60.5v-124.8\t\t\tc0-7.5-6-13.5-13.5-13.5s-13.5,6-13.5,13.5v124.8c0,48.3,39.3,87.5,87.5,87.5h296.2c48.3,0,87.5-39.3,87.5-87.5v-122.8\t\t\tC471.2,236.25,465.2,230.15,457.7,230.15z"/>\n <path class="svg-cta" d="M226.1,346.75c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l85.8-85.8c5.3-5.3,5.3-13.8,0-19.1c-5.3-5.3-13.8-5.3-19.1,0l-62.7,62.8\t\t\tV30.75c0-7.5-6-13.5-13.5-13.5s-13.5,6-13.5,13.5v273.9l-62.8-62.8c-5.3-5.3-13.8-5.3-19.1,0c-5.3,5.3-5.3,13.8,0,19.1\t\t\tL226.1,346.75z"/>\n </symbol>\n\n <symbol id="cta-icon-download-square" viewBox="0 0 454 522" enable-background="new 0 0 454 522">\n <title>cta-icon-download-square</title>\n <style>\n .cls-01 {\n fill: #fff;\n stroke: #6C6C6C;\n stroke-width: 6;\n stroke-miterlimit: 10;\n }\n </style>\n <path class="cls-01" d="M190,354.2L34.7,198.8L72,161.5l128.7,128.7V6.5\n H254v283.7l128.7-128.7l37.3,37.3L264.7,354.2l-37.3,37.3L190,354.2z M448,391.4h-56v67H62.7v-67h-56v123.1H448V391.4L448,391.4z"/>\n </symbol>\n\n <symbol id="cta-icon-external" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">\n <title>cta-icon-external</title>\n <path d="M412.88,261.464c-11.423,0-20.682,9.259-20.682,20.682v156.879c0,17.43-14.181,31.611-31.612,31.611H72.975\t\t\tc-17.43,0-31.611-14.181-31.611-31.611V151.414c0-17.43,14.181-31.611,31.611-31.611h156.879c11.422,0,20.682-9.26,20.682-20.682\t\t\tc0-11.422-9.26-20.682-20.682-20.682H72.975C32.737,78.439,0,111.176,0,151.414v287.611C0,479.264,32.737,512,72.975,512h287.61\t\t\tc40.239,0,72.976-32.736,72.977-72.975V282.146C433.562,270.723,424.303,261.464,412.88,261.464z"/>\n <path d="M491.318,0H334.439c-11.423,0-20.682,9.26-20.682,20.682c0,11.422,9.259,20.682,20.682,20.682h136.197v136.197\t\t\tc0,11.422,9.259,20.682,20.682,20.682c11.423,0,20.682-9.26,20.682-20.682V20.682C512,9.26,502.741,0,491.318,0z"/>\n <path d="M505.942,6.058c-8.077-8.076-21.172-8.076-29.249,0L189.082,293.668c-8.077,8.077-8.077,21.172,0,29.249\t\t\tc4.038,4.039,9.332,6.058,14.625,6.058c5.294,0,10.587-2.02,14.625-6.058L505.942,35.307 C514.019,27.23,514.019,14.135,505.942,6.058z"/>\n </symbol>\n\n <symbol id="cta-icon-right" viewBox="0 0 32 32">\n <title>cta-icon-right</title>\n <path d="M10.022 30.090c-0.198 0.198-0.447 0.298-0.719 0.298s-0.521-0.099-0.719-0.298c-0.397-0.397-0.397-1.042 0-1.439l12.651-12.651-12.651-12.651c-0.397-0.397-0.397-1.042 0-1.439s1.042-0.397 1.439 0l13.371 13.371c0.397 0.397 0.397 1.042 0 1.439l-13.371 13.371z"></path>\n </symbol>\n\n <symbol id="cancel-download" viewBox="0 0 38 38" style="enable-background:new 0 0 37.1 38;" xml:space="preserve">\n <title>cancel-download</title>\n <style type="text/css">\n .cd0 { fill: #fff; }\n .cd1 { fill: #47adf5; }\n </style>\n <circle class="cd0" cx="18.5" cy="19" r="17"/>\n <path class="cd1" d="M26.2,11.4c-0.4-0.4-0.9-0.4-1.2,0l-6.4,6.4l-6.4-6.4c-0.4-0.4-0.9-0.4-1.2,0c-0.4,0.4-0.4,0.9,0,1.2l6.4,6.4\n l-6.4,6.4c-0.4,0.4-0.4,0.9,0,1.2c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.4-0.1,0.6-0.3l6.4-6.4l6.4,6.4c0.2,0.2,0.4,0.3,0.6,0.3\n s0.4-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.2L19.8,19l6.4-6.4C26.5,12.2,26.5,11.7,26.2,11.4z"/>\n <path class="cd1" d="M18.5,0.6C8.4,0.6,0.1,8.8,0.1,19s8.3,18.4,18.4,18.4S37,29.2,37,19S28.7,0.6,18.5,0.6z M18.5,35.7\n C9.3,35.7,1.9,28.2,1.9,19S9.3,2.3,18.5,2.3S35.2,9.8,35.2,19S27.8,35.7,18.5,35.7z"/>\n </symbol>\n\n <symbol id="cancel-install" viewBox="0 0 38 38" style="enable-background:new 0 0 37.1 38;" xml:space="preserve">\n <title>cancel-install</title>\n <style type="text/css">\n .ci0 { fill: #d2d2d2; }\n .cd1 { fill: #47adf5; }\n </style>\n <circle class="ci0" cx="18.5" cy="19" r="17"/>\n <path class="ci1" d="M26.2,11.4c-0.4-0.4-0.9-0.4-1.2,0l-6.4,6.4l-6.4-6.4c-0.4-0.4-0.9-0.4-1.2,0c-0.4,0.4-0.4,0.9,0,1.2l6.4,6.4\n l-6.4,6.4c-0.4,0.4-0.4,0.9,0,1.2c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.4-0.1,0.6-0.3l6.4-6.4l6.4,6.4c0.2,0.2,0.4,0.3,0.6,0.3\n s0.4-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.2L19.8,19l6.4-6.4C26.5,12.2,26.5,11.7,26.2,11.4z"/>\n <path class="ci1" d="M18.5,0.6C8.4,0.6,0.1,8.8,0.1,19s8.3,18.4,18.4,18.4S37,29.2,37,19S28.7,0.6,18.5,0.6z M18.5,35.7\n C9.3,35.7,1.9,28.2,1.9,19S9.3,2.3,18.5,2.3S35.2,9.8,35.2,19S27.8,35.7,18.5,35.7z"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.SoundIcons=window.vungle.templates.SoundIcons||{},window.vungle.templates.SoundIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="sound-icons" style="display: none;" data-hbs-name="SoundIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="mute-video" viewBox="0 0 500 500">\n <title>mute-video</title>\n <style>\n .st01{opacity:.8}\n .st11,.st21{fill:#fff}\n .st21{display:none}\n </style>\n <circle class="st01" cx="249.9" cy="249.9" r="247"/>\n <path class="st11" d="M418.9 195.8c-3.2-3.2-8.2-3.2-11.4 0l-45.6 45.6-45.6-45.6c-3.2-3.2-8.2-3.2-11.4 0-3.2 3.2-3.2 8.2 0 11.4l45.6 45.6-45.6 45.6c-3.2 3.2-3.2 8.2 0 11.4 1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3l45.6-45.6 45.6 45.6c1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3c3.2-3.2 3.2-8.2 0-11.4l-45.6-45.6 45.6-45.6c2.9-2.3 2.9-8.2-.8-11.4zM268.2 89.2c-2.3-1.7-6.8-.9-9.1.9l-106.7 79.5H95.2c-5 0-8.2 2.9-8.2 7.6v144c0 4.6 3.2 7.6 8.2 7.6h57.2l106.7 80c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.5c.9-1.7-.9-4.6-4.1-6.3zM148.2 314h-44.8V186.1h44.8V314zm108.5 72.9l-92.1-69v-136l91.7-69v274h.4z"/>\n <path class="st21" d="M268.5 89c-2.3-1.7-6.8-.9-9.2.9l-107 79.9H94.9c-5 0-8.2 3-8.2 7.7V322c0 4.6 3.2 7.7 8.2 7.7h57.4L259.4 410c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.3c1-1.7-.8-4.6-4.1-6.3zM148.2 314.6h-44.9V186.2h44.9v128.4zm108.9 73.1l-92.4-69.3V182l92-69.2v274.9h.4zm149-127.2h-90.5c-4.2 0-7.7-3.5-7.7-7.9s3.4-7.9 7.7-7.9h90.5c4.2 0 7.7 3.5 7.7 7.9s-3.4 7.9-7.7 7.9zm.9-94.6l-88.6 37.6c-3.9 1.6-8.4-.3-10-4.3-1.6-4 .3-8.6 4.1-10.2l88.6-37.6c3.9-1.6 8.4.3 10 4.3 1.6 3.9-.2 8.6-4.1 10.2zm4.7 182.9c-1.6 4-6.1 5.9-10 4.3l-88.6-37.6c-3.9-1.6-5.8-6.2-4.1-10.2 1.6-4 6.1-5.9 10-4.3l88.6 37.6c3.9 1.6 5.8 6.2 4.1 10.2z"/>\n </symbol>\n\n <symbol id="unmute-video" viewBox="0 0 500 500">\n <title>unmute-video</title>\n <style>\n .st01{opacity:.8}\n .st31{display:none}\n .st31,.st41{fill:#fff}\n </style>\n <circle class="st01" cx="249.9" cy="249.9" r="247"/>\n <path class="st31" d="M418.9 195.8c-3.2-3.2-8.2-3.2-11.4 0l-45.6 45.6-45.6-45.6c-3.2-3.2-8.2-3.2-11.4 0-3.2 3.2-3.2 8.2 0 11.4l45.6 45.6-45.6 45.6c-3.2 3.2-3.2 8.2 0 11.4 1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3l45.6-45.6 45.6 45.6c1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3c3.2-3.2 3.2-8.2 0-11.4l-45.6-45.6 45.6-45.6c2.9-2.3 2.9-8.2-.8-11.4zM268.2 89.2c-2.3-1.7-6.8-.9-9.1.9l-106.7 79.5H95.2c-5 0-8.2 2.9-8.2 7.6v144c0 4.6 3.2 7.6 8.2 7.6h57.2l106.7 80c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.5c.9-1.7-.9-4.6-4.1-6.3zM148.2 314h-44.8V186.1h44.8V314zm108.5 72.9l-92.1-69v-136l91.7-69v274h.4z"/>\n <path class="st41" d="M268.5 89c-2.3-1.7-6.8-.9-9.2.9l-107 79.9H94.9c-5 0-8.2 3-8.2 7.7V322c0 4.6 3.2 7.7 8.2 7.7h57.4L259.4 410c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.3c1-1.7-.8-4.6-4.1-6.3zM148.2 314.6h-44.9V186.2h44.9v128.4zm108.9 73.1l-92.4-69.3V182l92-69.2v274.9h.4zm149-127.2h-90.5c-4.2 0-7.7-3.5-7.7-7.9s3.4-7.9 7.7-7.9h90.5c4.2 0 7.7 3.5 7.7 7.9s-3.4 7.9-7.7 7.9zm.9-94.6l-88.6 37.6c-3.9 1.6-8.4-.3-10-4.3-1.6-4 .3-8.6 4.1-10.2l88.6-37.6c3.9-1.6 8.4.3 10 4.3 1.6 3.9-.2 8.6-4.1 10.2zm4.7 182.9c-1.6 4-6.1 5.9-10 4.3l-88.6-37.6c-3.9-1.6-5.8-6.2-4.1-10.2 1.6-4 6.1-5.9 10-4.3l88.6 37.6c3.9 1.6 5.8 6.2 4.1 10.2z"/>\n </symbol>\n\n <symbol id="dialog-replay-icon" viewBox="0 0 232 216">\n <title>dialog-replay-icon</title>\n <style>\n .cls-02 {\n fill: #fff;\n }\n </style>\n <path class="cls-02" d="M124,1.6c-41.1,0-78.5,23.7-96.1,60.7L5.8,56.9l16.6,56.6l40.7-42.6l-20.2-4.9C58.5,35.8,89.7,16.6,124,16.6\n c50.4,0,91.4,41,91.4,91.4c0,50.4-41,91.4-91.4,91.4c-24.4,0-47.3-9.5-64.6-26.8l-10.6,10.6c20.1,20.1,46.8,31.2,75.2,31.2\n c58.7,0,106.4-47.7,106.4-106.4S182.7,1.6,124,1.6z"/>\n </symbol>\n\n <symbol id="tap-to-play" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24">\n <title>play-icon</title>\n <path class="tap-to-play" d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.CloseIcons=window.vungle.templates.CloseIcons||{},window.vungle.templates.CloseIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l="function",c=e.escapeExpression;return'<div id="close-icons" style="display: none;" data-hbs-name="CloseIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="close-icon" viewBox="0 0 525.4 525.5" style="enable-background:new 0 0 525.4 525.5;" xml:space="preserve">\n <title>close-icon</title>\n <polygon class="closeBtn" points="467.6,8.9 262.9,213.6 58.1,8.9 9,58 213.8,262.7 9,467 58.1,516.1 262.9,311.8 467.6,516.1 516.7,467 311.9,262.7 516.7,58"/>\n </symbol>\n\n <symbol id="close-icon'+c(typeof(r=null!=(r=(e=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:10,column:28},end:{line:10,column:37}}}):r)+'" viewBox="0 0 525.4 525.5" style="enable-background:new 0 0 525.4 525.5;" xml:space="preserve">\n <title>close-icon</title>\n <polygon class="closeBtn'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:12,column:30},end:{line:12,column:39}}}):r)+'" points="467.6,8.9 262.9,213.6 58.1,8.9 9,58 213.8,262.7 9,467 58.1,516.1 262.9,311.8 467.6,516.1 516.7,467 311.9,262.7 516.7,58"/>\n </symbol>\n\n <symbol id="close-outline-icon" viewBox="0 0 990.5 990" style="enable-background:new 0 0 990.5 990;" xml:space="preserve">\n <title>close-outline-icon</title>\n <style type="text/css">\n .svg-close-background-light {\n fill: rgba(255,255,255,0.7);\n }\n .svg-close-background-dark {\n fill: rgba(0,0,0,0.7);\n }\n .svg-close-icon,\n .svg-close-icondark {\n fill: #ffffff;\n }\n .svg-close-iconlight {\n fill: #1d1d1d;\n }\n </style>\n <path class="svg-close-background-'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:32,column:42},end:{line:32,column:51}}}):r)+'" d="M195.9-0.7h-9.7H2.8c133.3,0,169.7,95.2,179.6,147.2v474.3c0,62.9,31.6,118.3,79.8,151.3c30.2,21.8,67.2,34.7,107.3,34.7\n h466.9C886.7,815,990,848.7,990,987.6V806.8h0.5l0-807.5H195.9z"/>\n <polygon class="svg-close-icon svg-close-icon'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:34,column:53},end:{line:34,column:62}}}):r)+'" points="780.4,643.8 587.1,450.6 392.3,643.8 345.9,597.5 540.8,402.6 345.9,209.3 392.3,162.9 587.1,356.2 780.4,162.9 826.8,209.3 633.5,402.6 826.8,597.5">\n </polygon>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.DialogBox=window.vungle.templates.DialogBox||{},window.vungle.templates.DialogBox.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="DIALOGBOX" data-hbs-name="DialogBox">\n <div class="dialog">\n <div class="dialog-content">\n <div class="title-text"></div>\n <div class="body-text-container">\n <div class="body-text"></div>\n </div>\n <div class="action-buttons">\n <div class="primary-button">\n <button class="primary" data-vgl-tabindex="1"></button>\n </div>\n <div class="secondary-button">\n <button class="secondary" data-vgl-tabindex="2"></button>\n </div>\n </div>\n </div>\n </div>\n</div>\n'},useData:!0})},function(e,t,n){},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.GDPRDialogBox=window.vungle.templates.GDPRDialogBox||{},window.vungle.templates.GDPRDialogBox.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="GDPRDialogBox" data-hbs-name="GDPRDialogBox">\n <div class="dialog">\n <div class="dialog-content">\n <div class="app-icon">\n <svg data-vgl-gesture="GDPR-icon">\n <use xlink:href="#GDPR-icon"></use>\n </svg>\n </div>\n <div class="title-text"></div>\n <div class="body-text"></div>\n </div>\n </div>\n\n <div class="cta">\n <div class="cta-content">\n <div class="consent-button">\n <button data-vgl-tabindex="1" class="consent"></button>\n </div>\n <div class="no-consent-button">\n <button data-vgl-tabindex="2" class="no-consent"></button>\n </div>\n </div>\n </div>\n</div>\n\n<div id="icons" style="display: none;">\n <svg version="1.1" id="GDPR-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 96.5 96.6" style="enable-background:new 0 0 96.5 96.6;" xml:space="preserve">\n <style type="text/css">\n .st100{fill:#FFFFFF;}\n </style>\n <g transform="translate(0,-952.36218)">\n <path fill="#FFFFFF" class="st100" d="M46.2,953.6v12.1c-17.7,1-31.9,15.2-32.9,32.9H1.2v4h12.1c1,17.7,15.2,31.9,32.9,32.9v12.1h4v-12.1\n c17.7-1,31.9-15.2,32.9-32.9h12.1v-4H83.2c-1-17.7-15.2-31.9-32.9-32.9v-12.1H46.2z M46.2,969.7v14.1c-7.8,0.9-14,7.1-14.9,14.9\n H17.3C18.3,983.1,30.7,970.7,46.2,969.7z M50.2,969.7c15.5,1,27.9,13.4,28.9,28.9H65.1c-0.9-7.8-7.1-14-14.9-14.9V969.7z\n M40.9,993.3c10.8-8.1,22.8,3.9,14.7,14.7C44.8,1016.1,32.8,1004.1,40.9,993.3z M17.3,1002.6h14.1c0.9,7.8,7.1,14,14.9,14.9v14.1\n C30.7,1030.6,18.3,1018.2,17.3,1002.6z M65.1,1002.6h14.1c-1,15.5-13.4,28-28.9,28.9v-14.1C58,1016.6,64.2,1010.4,65.1,1002.6z"></path>\n </g>\n </svg>\n</div>\n'},useData:!0})},function(e,t,n){},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.Video=window.vungle.templates.Video||{},window.vungle.templates.Video.template=Handlebars.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-vgl-delay-show="'+e.escapeExpression("function"==typeof(n=null!=(n=r(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?r(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?n:e.hooks.helperMissing)?n.call(null!=t?t:e.nullContext||{},{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:9,column:65},end:{line:9,column:98}}}):n)+'"'},3:function(e,t,n,i,o){return" hide"},5:function(e,t,n,i,o){var r,s=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l="function",c=e.escapeExpression;return'data-vgl-delay-show="'+c(typeof(r=null!=(r=(e=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?e(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?r:a)==l?r.call(s,{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:73,column:214},end:{line:73,column:247}}}):r)+'" data-vgl-delay-show-incentivized="'+c(typeof(r=null!=(r=e(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?e(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?r:a)==l?r.call(s,{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:73,column:283},end:{line:73,column:316}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="Video" data-hbs-name="Video" data-vgl-page class="row hide" data-vgl-cta-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:155}}}))+'">\n <div\n role="dialog"\n class="overlay-cta"\n data-vgl-gesture="cta-button"\n data-vgl-full-cta="'+c(typeof(s=null!=(s=h(n,"FULL_CTA")||(null!=t?h(t,"FULL_CTA"):t))?s:l)==u?s.call(a,{name:"FULL_CTA",hash:{},data:o,loc:{start:{line:6,column:27},end:{line:6,column:39}}}):s)+'"\n data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"CTA_BUTTON_URL")||(null!=t?h(t,"CTA_BUTTON_URL"):t))?s:l)==u?s.call(a,{name:"CTA_BUTTON_URL",hash:{},data:o,loc:{start:{line:7,column:22},end:{line:7,column:40}}}):s)+'"\n data-vgl-app-store-id="'+c(typeof(s=null!=(s=h(n,"APP_STORE_ID")||(null!=t?h(t,"APP_STORE_ID"):t))?s:l)==u?s.call(a,{name:"APP_STORE_ID",hash:{},data:o,loc:{start:{line:8,column:31},end:{line:8,column:47}}}):s)+'"\n '+(null!=(r=(h(n,"equalDef")||t&&h(t,"equalDef")||l).call(a,null!=t?h(t,"FULL_CTA"):t,"true","true",{name:"equalDef",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:9,column:8},end:{line:9,column:112}}}))?r:"")+'>\n </div>\n\n <div class="overlay-video-controller hide">\n <div class="overlay-video-controller__holder">\n <div class="overlay-video-controller__icon">\n <svg>\n <use xlink:href="#tap-to-play"></use>\n </svg>\n </div>\n <h2>'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"TAP_TO_PLAY","Tap to play",{name:"i18nt",hash:{},data:o,loc:{start:{line:19,column:12},end:{line:19,column:49}}}))+'</h2>\n </div>\n </div>\n\n <div class="content small-12 columns">\n <div class="header row">\n <div\n class="close-countdown"\n data-vgl-delay-show="'+c(typeof(s=null!=(s=h(n,"CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:27,column:37},end:{line:27,column:67}}}):s)+'"\n data-vgl-delay-show-incentivized="'+c(typeof(s=null!=(s=h(n,"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:28,column:50},end:{line:28,column:93}}}):s)+'"\n data-vgl-show-countdown-timer="'+c(typeof(s=null!=(s=h(n,"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN")||(null!=t?h(t,"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN"):t))?s:l)==u?s.call(a,{name:"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN",hash:{},data:o,loc:{start:{line:29,column:47},end:{line:29,column:86}}}):s)+'">\n\n <div class="close-btn-container" data-vgl-tabindex="3">\n <svg data-vgl-gesture="close-icon" class="close-btn">\n <use xlink:href="#close-icon"></use>\n </svg>\n </div>\n\n <span class="close-btn-text">'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"CLOSE_BUTTON_TEXT","Close",{name:"i18nt",hash:{},data:o,loc:{start:{line:37,column:45},end:{line:37,column:82}}}))+'</span>\n\n </div>\n </div>\n\n <div class="video-container">\n <video autoplay muted class="video row" ad-outlet="video" data-vgl-gesture="video" playsinline webkit-playsinline data-vgl-video-timer="'+c(typeof(s=null!=(s=h(n,"VIDEO_PROGRESS_BAR")||(null!=t?h(t,"VIDEO_PROGRESS_BAR"):t))?s:l)==u?s.call(a,{name:"VIDEO_PROGRESS_BAR",hash:{},data:o,loc:{start:{line:43,column:148},end:{line:43,column:170}}}):s)+'">\n <source src="'+c(typeof(s=null!=(s=h(n,"MAIN_VIDEO")||(null!=t?h(t,"MAIN_VIDEO"):t))?s:l)==u?s.call(a,{name:"MAIN_VIDEO",hash:{},data:o,loc:{start:{line:44,column:29},end:{line:44,column:43}}}):s)+'">\n </video>\n <div class="mute-icon-container" data-vgl-start-muted='+c(typeof(s=null!=(s=h(n,"START_MUTED")||(null!=t?h(t,"START_MUTED"):t))?s:l)==u?s.call(a,{name:"START_MUTED",hash:{},data:o,loc:{start:{line:46,column:66},end:{line:46,column:81}}}):s)+'>\n <div class="unmute-video-wrap hidden">\n <svg data-vgl-gesture="unmute-video" class="unmute-video">\n <use xlink:href="#unmute-video"></use>\n </svg>\n </div>\n <div class="mute-video-wrap hidden">\n <svg data-vgl-gesture="mute-video" class="mute-video">\n <use xlink:href="#mute-video"></use>\n </svg>\n </div>\n </div>\n <div class="progress-bar" data-vgl-progress-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:58,column:74},end:{line:58,column:129}}}))+'"><span></span></div>\n </div>\n\n <div class="footer row small-12 columns">\n <div class="privacy-button bubble-button" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"VUNGLE_PRIVACY_URL")||(null!=t?h(t,"VUNGLE_PRIVACY_URL"):t))?s:l)==u?s.call(a,{name:"VUNGLE_PRIVACY_URL",hash:{},data:o,loc:{start:{line:62,column:68},end:{line:62,column:90}}}):s)+'" data-vgl-tabindex="2">\n <svg data-vgl-gesture="lock-icon" class="lock-icon">\n <use xlink:href="#lock-icon-2"></use>\n </svg>\n <span>\n <svg data-vgl-gesture="privacy-icon" class="privacy-icon">\n <use xlink:href="#lock-text"></use>\n </svg>\n </span>\n </div>\n\n <div class="download small-6 columns cta-delay-show cta-hard-hide'+(null!=(r=(h(n,"equal")||t&&h(t,"equal")||l).call(a,null!=t?h(t,"VIDEO_SHOW_CTA"):t,"false",{name:"equal",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:73,column:77},end:{line:73,column:125}}}))?r:"")+'" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"CTA_BUTTON_URL")||(null!=t?h(t,"CTA_BUTTON_URL"):t))?s:l)==u?s.call(a,{name:"CTA_BUTTON_URL",hash:{},data:o,loc:{start:{line:73,column:141},end:{line:73,column:159}}}):s)+'" '+(null!=(r=(h(n,"equal")||t&&h(t,"equal")||l).call(a,null!=t?h(t,"VIDEO_SHOW_CTA"):t,"true",{name:"equal",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:73,column:161},end:{line:73,column:327}}}))?r:"")+' data-vgl-tabindex="1">\n <span class="cta-button__icon">\n <svg data-vgl-gesture="download-icon" class="download-icon">\n <use xlink:href="#cta-icon-download-square"></use>\n </svg>\n </span>\n <span class="cta-button__timer hide"></span>\n </div>\n </div>\n </div>\n</div>\n\n\x3c!-- incentivized dialog box --\x3e\n<script type="text/template" id="incentivized-title-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_TITLE_TEXT",null!=t?h(t,"INCENTIVIZED_TITLE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:87,column:4},end:{line:87,column:64}}}))+'\n<\/script>\n<script type="text/template" id="incentivized-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_BODY_TEXT",null!=t?h(t,"INCENTIVIZED_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:90,column:4},end:{line:90,column:62}}}))+'\n<\/script>\n<script type="text/template" id="incentivized-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_CONTINUE_TEXT",null!=t?h(t,"INCENTIVIZED_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:93,column:4},end:{line:93,column:70}}}))+' <svg class="action-icon"><use xlink:href="#dialog-replay-icon"></use></svg>\n<\/script>\n<script type="text/template" id="incentivized-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_CLOSE_TEXT",null!=t?h(t,"INCENTIVIZED_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:96,column:4},end:{line:96,column:64}}}))+'\n<\/script>\n\n\x3c!-- privacy dialog box --\x3e\n<script type="text/template" id="privacy-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_BODY_TEXT",null!=t?h(t,"PRIVACY_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:101,column:4},end:{line:101,column:52}}}))+'\n<\/script>\n<script type="text/template" id="privacy-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CONTINUE_TEXT",null!=t?h(t,"PRIVACY_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:104,column:4},end:{line:104,column:60}}}))+' <svg class="action-icon"><use xlink:href="#privacy-close-icon"></use></svg>\n<\/script>\n<script type="text/template" id="privacy-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CLOSE_TEXT",null!=t?h(t,"PRIVACY_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:107,column:4},end:{line:107,column:54}}}))+"\n<\/script>\n"},useData:!0})},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.RtbEndcard=window.vungle.templates.RtbEndcard||{},window.vungle.templates.RtbEndcard.template=Handlebars.template({1:function(e,t,n,i,o){return"hide"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div\n id="RtbEndcard"\n data-hbs-name="RtbEndcard"\n data-vgl-cta-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:4,column:33},end:{line:4,column:88}}}))+'"\n data-vgl-page\n class="hide">\n\n <div\n role="dialog"\n class="overlay-cta '+(null!=(r=h(n,"if").call(a,null!=t?h(t,"EC_HTML"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:27},end:{line:11,column:53}}}))?r:"")+'"\n data-vgl-gesture="cta-button"\n data-vgl-full-cta="true"\n data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"EC_CTA_URL")||(null!=t?h(t,"EC_CTA_URL"):t))?s:l)==u?s.call(a,{name:"EC_CTA_URL",hash:{},data:o,loc:{start:{line:14,column:22},end:{line:14,column:36}}}):s)+'">\n </div>\n\n <div class="header">\n <div\n class="close-countdown"\n data-vgl-delay-show="'+c(typeof(s=null!=(s=h(n,"EC_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"EC_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"EC_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:20,column:33},end:{line:20,column:68}}}):s)+'"\n data-vgl-delay-show-incentivized="'+c(typeof(s=null!=(s=h(n,"EC_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"EC_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"EC_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:21,column:46},end:{line:21,column:81}}}):s)+'"\n data-vgl-delay-show-max="6"\n data-vgl-show-countdown-timer="'+c(typeof(s=null!=(s=h(n,"SHOW_EC_CLOSE_BUTTON_COUNTDOWN")||(null!=t?h(t,"SHOW_EC_CLOSE_BUTTON_COUNTDOWN"):t))?s:l)==u?s.call(a,{name:"SHOW_EC_CLOSE_BUTTON_COUNTDOWN",hash:{},data:o,loc:{start:{line:23,column:43},end:{line:23,column:79}}}):s)+'">\n\n <div class="close-btn-container" data-vgl-tabindex="3">\n <svg data-vgl-gesture="close-icon" class="close-btn">\n <use xlink:href="#close-icon"></use>\n </svg>\n </div>\n\n <span class="close-btn-text">'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"CLOSE_BUTTON_TEXT","Close",{name:"i18nt",hash:{},data:o,loc:{start:{line:31,column:41},end:{line:31,column:78}}}))+'</span>\n\n </div>\n </div>\n\n <div class="ad-container">\n <img class="background-image '+(null!=(r=h(n,"unless").call(a,null!=t?h(t,"EC_IMAGE"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:37,column:37},end:{line:37,column:72}}}))?r:"")+'" src="'+c(typeof(s=null!=(s=h(n,"EC_IMAGE")||(null!=t?h(t,"EC_IMAGE"):t))?s:l)==u?s.call(a,{name:"EC_IMAGE",hash:{},data:o,loc:{start:{line:37,column:79},end:{line:37,column:91}}}):s)+'">\n <div class="hidden-encoded-content">\n <abbr id="programmaticStyle">\n <base target=“_parent”>\n <style>\n body {\n margin: 0px;\n padding: 0px;\n overflow: hidden;\n }\n </style>\n </abbr>\n <abbr id="programmaticAdmHtml">'+c(typeof(s=null!=(s=h(n,"EC_HTML")||(null!=t?h(t,"EC_HTML"):t))?s:l)==u?s.call(a,{name:"EC_HTML",hash:{},data:o,loc:{start:{line:49,column:43},end:{line:49,column:54}}}):s)+'</abbr>\n </div>\n\n <iframe\n id="programmaticIframe"\n class="'+(null!=(r=h(n,"unless").call(a,null!=t?h(t,"EC_HTML"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:54,column:17},end:{line:54,column:51}}}))?r:"")+'"\n allow="autoplay"\n scrolling="no"\n frameBorder="0">\n </iframe>\n\n </div>\n\n <div class="footer">\n <div class="privacy-button bubble-button" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"VUNGLE_PRIVACY_URL")||(null!=t?h(t,"VUNGLE_PRIVACY_URL"):t))?s:l)==u?s.call(a,{name:"VUNGLE_PRIVACY_URL",hash:{},data:o,loc:{start:{line:63,column:64},end:{line:63,column:86}}}):s)+'" data-vgl-tabindex="2">\n <svg data-vgl-gesture="lock-icon" class="lock-icon">\n <use xlink:href="#lock-icon-2"></use>\n </svg>\n <span>\n <svg data-vgl-gesture="privacy-icon" class="privacy-icon">\n <use xlink:href="#lock-text"></use>\n </svg>\n </span>\n </div>\n </div>\n</div>\n\n<script type="text/template" id="privacy-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_BODY_TEXT",null!=t?h(t,"PRIVACY_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:78,column:4},end:{line:78,column:52}}}))+'\n<\/script>\n<script type="text/template" id="privacy-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CONTINUE_TEXT",null!=t?h(t,"PRIVACY_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:81,column:4},end:{line:81,column:60}}}))+' <svg class="action-icon"><use xlink:href="#privacy-close-icon"></use></svg>\n<\/script>\n<script type="text/template" id="privacy-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CLOSE_TEXT",null!=t?h(t,"PRIVACY_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:84,column:4},end:{line:84,column:54}}}))+"\n<\/script>\n\n"},useData:!0})},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(4),n(5),n(6),n(7),n(8);const i=(e,t,n)=>{const i=e,o=e.env.toLowerCase(),r=["dev","develop","development"].includes(o);return i[t]=r?window.console[n]:()=>{},i};function o(e="development"){const t={env:e};return i(t,"log","log"),i(t,"logWarn","warn"),i(t,"logInfo","info"),i(t,"logError","error"),t}!function(e,t){const n=t("production");e.logging=n,e.log=n.log,e.logInfo=n.logInfo,e.logError=n.logError,e.logWarn=n.logWarn}(window,o);const r=o("production"),{log:s}=r,{logInfo:a}=r,{logWarn:l}=r,{logError:c}=r;const u={fallbackLng:"en",resources:{en:{translation:{CTA_BUTTON_TEXT:"Download",Download:"Download",DOWNLOAD:"DOWNLOAD",INCENTIVIZED_CONTINUE_TEXT:"Continue",INCENTIVIZED_CLOSE_TEXT:"Close Ad",PRIVACY_CONTINUE_TEXT:"Close",PRIVACY_CLOSE_TEXT:"Read Vungle's Privacy Policy",INCENTIVIZED_TITLE_TEXT:"Close this ad?",INCENTIVIZED_BODY_TEXT:"Are you sure you want to skip this ad? You must finish watching to claim your reward.",PRIVACY_BODY_TEXT:"Vungle, Inc. understands the importance of privacy. Vungle operates a mobile ad network (the 'Ad Network' or the 'Services') through which Vungle displays targeted, contextual ads.",Play:"Play","Download Now":"Download Now",CLOSE_BUTTON_TEXT:"Close"},styling:{CTA_BUTTON_TEXT_COLOR:"#fff",CTA_BUTTON_BACKGROUND:"#01b27a"}},de:{translation:{CTA_BUTTON_TEXT:"Herunterladen",Download:"Herunterladen",DOWNLOAD:"Herunterladen",Play:"Spiel","Download Now":"Jetzt herunterladen"}},zh:{translation:{CTA_BUTTON_TEXT:"下载",Download:"下载",DOWNLOAD:"下载",Play:"玩","Download Now":"现在下载"},styling:{CTA_BUTTON_TEXT_COLOR:"#FAE8BC",CTA_BUTTON_BACKGROUND:"#E10A19","#fff":"#FAE8BC","#01b27a":"#E10A19"}},zh_TW:{translation:{CTA_BUTTON_TEXT:"下載",Download:"下載",DOWNLOAD:"下載","Download Now":"現在下載"},styling:{CTA_BUTTON_TEXT_COLOR:"#FAE8BC",CTA_BUTTON_BACKGROUND:"#E10A19","#fff":"#FAE8BC","#01b27a":"#E10A19"}},es:{translation:{CTA_BUTTON_TEXT:"Descargar",Download:"Descargar",DOWNLOAD:"Descargar","Download Now":"Descargar ahora"}},da:{translation:{CTA_BUTTON_TEXT:"Hent",Download:"Hent",DOWNLOAD:"Hent","Download Now":"Download nu"}},sv:{translation:{CTA_BUTTON_TEXT:"Ladda ner",Download:"Ladda ner",DOWNLOAD:"Ladda ner","Download Now":"Ladda ner nu"}},nb:{translation:{CTA_BUTTON_TEXT:"Nedlasting",Download:"Nedlasting",DOWNLOAD:"Nedlasting","Download Now":"Last ned nå"}},ru:{translation:{CTA_BUTTON_TEXT:"Скачать",Download:"Скачать",DOWNLOAD:"Скачать","Download Now":"Скачать сейчас"}},tr:{translation:{CTA_BUTTON_TEXT:"İndir",Download:"İndir",DOWNLOAD:"İndir","Download Now":"Şimdi İndirin"}},ar:{translation:{CTA_BUTTON_TEXT:"تحميل",Download:"تحميل",DOWNLOAD:"تحميل","Download Now":"التحميل الان"}},ko:{translation:{CTA_BUTTON_TEXT:"다운로드",Download:"다운로드",DOWNLOAD:"다운로드","Download Now":"지금 다운로드"}},ja:{translation:{CTA_BUTTON_TEXT:"ダウンロード",Download:"ダウンロード",DOWNLOAD:"ダウンロード","Download Now":"ダウンロード中"}},th:{translation:{CTA_BUTTON_TEXT:"ดาวน์โหลด",Download:"ดาวน์โหลด",DOWNLOAD:"ดาวน์โหลด","Download Now":"ดาวน์โหลดเดี๋ยวน"}},ms:{translation:{CTA_BUTTON_TEXT:"ഡൗൺലോഡ്",Download:"ഡൗൺലോഡ്",DOWNLOAD:"ഡൗൺലോഡ്","Download Now":"ഇപ്പോൾ ഡൗൺലോഡ്"}},vi:{translation:{CTA_BUTTON_TEXT:"Tải về",Download:"Tải về",DOWNLOAD:"Tải về","Download Now":"Tải ngay"}},fr:{translation:{CTA_BUTTON_TEXT:"Télécharger",Download:"Télécharger",DOWNLOAD:"Télécharger","Download Now":"Télécharger maintenant"}},it:{translation:{CTA_BUTTON_TEXT:"Scaricare",Download:"Scaricare",DOWNLOAD:"Scaricare","Download Now":"Scarica ora"}},pl:{translation:{CTA_BUTTON_TEXT:"Pobieranie",Download:"Pobieranie",DOWNLOAD:"Pobieranie","Download Now":"Pobierz teraz"}},pt:{translation:{CTA_BUTTON_TEXT:"Transferir",Download:"Transferir",DOWNLOAD:"Transferir","Download Now":"Baixe Agora"}},fi:{translation:{CTA_BUTTON_TEXT:"Ladata",Download:"Ladata",DOWNLOAD:"Ladata","Download Now":"Lataa nyt"}},id:{translation:{Play:"bermain"}},nl:{translation:{CTA_BUTTON_TEXT:"Downloaden",Download:"Downloaden",DOWNLOAD:"Downloaden","Download Now":"Spelen"}},sl:{translation:{CTA_BUTTON_TEXT:"Prenesi",Download:"Prenesi",DOWNLOAD:"Prenesi","Download Now":"Prenesi zdaj"}}}};function h(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f="01010110 01110101 01101110 01100111 01101100 01100101 00100000 01001001 01010000 01001111",v=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==f)throw{name:"SingletonException",message:"Cannot create another EventBus singleton object!"};this.listeners={}}var t,n,i;return t=e,i=[{key:"instance",get:function(){return this.singleton||(this.singleton=new e(f)),this.singleton}}],(n=[{key:"findHandler",value:function(t,n){for(var i=-1,o=e.instance.listeners[t].length,r=0;r<o&&-1===i;r++)e.instance.listeners[t][r].uuid===n.uuid&&(i=r);return i}},{key:"subscribe",value:function(t,n){return t in e.instance.listeners?e.instance.listeners[t].push(n):e.instance.listeners[t]=[n],n.uuid}},{key:"publish",value:function(t,n){if(t in e.instance.listeners)for(var i=e.instance.listeners[t],o=0;o<i.length;o++)"function"==typeof i[o]&&setTimeout(void(0,i[o])(n),0)}},{key:"unsubscribe",value:function(t,n){if(t in e.instance.listeners){var i=this.findHandler(t,n);-1!==i&&(e.instance.listeners[t].splice(i,1),0===e.instance.listeners[t].length&&delete e.instance.listeners[t])}}},{key:"unsubscribeAll",value:function(t){Object.keys(e.instance.listeners).forEach((function(n){h(e.instance.listeners[n]).forEach((function(i,o){"_id"in i&&i._id===t&&e.instance.listeners[n].splice(o,1)}))}))}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m="01000101 01000011 01001101 01000001 01010011 01100011 01110010 01101001 01110000 01110100 00100000 00110010 00110000 00110001 00110101",g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==m)throw{name:"SingletonException",message:"Cannot create another UUID singleton object!"};this.lastGenerated=null}var t,n,i;return t=e,i=[{key:"instance",get:function(){return this.singleton||(this.singleton=new e(m)),this.singleton}}],(n=[{key:"generate",value:function(){var e=Date.now();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}));return t===this.lastGenerated?this.generate():t}}])&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();Function.prototype.uuidBind=function(){var e=Function.prototype.bind.apply(this,arguments);return e.uuid=g.instance.generate(),"_id"in arguments[0]&&(e._id=arguments[0]._id),this.uuid=e.uuid,e};var b=g;function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.selector=t,this.element=null,this.initialized=!1,this._id=b.instance.generate()}var t,n,i;return t=e,(n=[{key:"getElement",value:function(){return this.element||(this.element=document.querySelector(this.selector)),this.element}},{key:"init",value:function(){throw{name:"NoImplException",message:"No init method provided in UIElement derived class!"}}},{key:"show",value:function(){this.isVisible()||(this.getElement().style.visibility="visible")}},{key:"hide",value:function(){this.isVisible()&&(this.getElement().style.visibility="hidden")}},{key:"destroy",value:function(){}},{key:"isVisible",value:function(){return"visible"===window.getComputedStyle(this.getElement()).visibility}},{key:"pause",value:function(){}}])&&w(t.prototype,n),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(r,e);var t,n,i,o=k(r);function r(e){var t,n=e.selector,i=e.isIncentivized,s=void 0!==i&&i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).isIncentivized=s,t.showDelayMilliseconds=0,t}return t=r,(n=[{key:"getShowDelayMilliseconds",value:function(){if(!this.showDelayMilliseconds){var e=this.isIncentivized?"data-vgl-delay-show-incentivized":"data-vgl-delay-show",t=this.getElement().getAttribute(e),n=this.getElement().getAttribute("data-vgl-delay-show-max");n&&parseInt(t,10)>parseInt(n,10)&&(t=n),this.showDelayMilliseconds=t?"9999"!==t?1e3*parseFloat(t):null:0}return this.showDelayMilliseconds}},{key:"init",value:function(){this.initialized||(this.getElement().addEventListener("click",this.onClick.bind(this)),this.initialized=!0)}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"onClick",value:function(){throw{name:"NoImplException",message:"No onClick method provided in AbstractDelayShowButton derived class!"}}}])&&O(t.prototype,n),i&&O(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);n(9),n(10);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=P(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function P(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=L(e)););return e}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return V(this,n)}}function V(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(r,e);var t,n,i,o=_(r);function r(e){var t,n=e.selector,i=e.themeColor,s=e.titleText,a=void 0===s?null:s,l=e.bodyText,c=void 0===l?null:l,u=e.primaryText,h=void 0===u?null:u,d=e.secondaryText,p=void 0===d?null:d,f=e.primaryEvent,v=void 0===f?null:f,y=e.secondaryEvent,m=void 0===y?null:y;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).themeColor=i,t.titleText=a,t.bodyText=c,t.primaryText=h,t.secondaryText=p,t.primaryEvent=v,t.secondaryEvent=m,t.secondaryButton=null,t.primaryButton=null,t.dialogContent=null,t.titleTextElement=null,t.bodyTextElement=null,t.primaryButtonContainer=null,t.secondaryButtonContainer=null,t}return t=r,(n=[{key:"getCloseButton",value:function(){return this.secondaryButton||(this.secondaryButton=document.querySelector("".concat(this.selector," .secondary"))),this.secondaryButton}},{key:"getCloseButtonContainer",value:function(){return this.secondaryButtonContainer||(this.secondaryButtonContainer=document.querySelector("".concat(this.selector," .secondary-button"))),this.secondaryButtonContainer}},{key:"getContinueButton",value:function(){return this.primaryButton||(this.primaryButton=document.querySelector("".concat(this.selector," .primary"))),this.primaryButton}},{key:"getContinueButtonContainer",value:function(){return this.primaryButtonContainer||(this.primaryButtonContainer=document.querySelector("".concat(this.selector," .primary-button"))),this.primaryButtonContainer}},{key:"getDialogContent",value:function(){return this.dialogContent||(this.dialogContent=document.querySelector("".concat(this.selector," .dialog-content"))),this.dialogContent}},{key:"getBodyTextElement",value:function(){return this.bodyTextElement||(this.bodyTextElement=document.querySelector("".concat(this.selector," .body-text"))),this.bodyTextElement}},{key:"getTitleTextElement",value:function(){return this.titleTextElement||(this.titleTextElement=document.querySelector("".concat(this.selector," .title-text"))),this.titleTextElement}},{key:"setThemeColor",value:function(){this.getContinueButton().style.backgroundColor=this.themeColor,this.getDialogContent().style.borderTopColor=this.themeColor,this.getTitleTextElement().style.backgroundColor=this.themeColor}},{key:"setTitleText",value:function(){this.titleText?this.getTitleTextElement().innerHTML=this.titleText:this.getTitleTextElement().innerHTML=""}},{key:"setBodyText",value:function(){this.bodyText&&(this.getBodyTextElement().innerHTML=this.bodyText)}},{key:"setPrimaryText",value:function(){this.primaryText&&(this.getContinueButton().innerHTML=this.primaryText)}},{key:"setSecondaryText",value:function(){this.secondaryText&&(this.getCloseButton().innerHTML=this.secondaryText)}},{key:"init",value:function(){this.initialized||(this.setThemeColor(),this.initialized=!0)}},{key:"show",value:function(){x(L(r.prototype),"show",this).call(this),this.eventDispatcher.publish("event.dialogBoxShow",this),this.onDialogBoxCloseButtonClick=this.onDialogBoxCloseButtonClick.bind(this),this.onDialogBoxContinueButtonClick=this.onDialogBoxContinueButtonClick.bind(this),this.getCloseButton().addEventListener("click",this.onDialogBoxCloseButtonClick,!1),this.getContinueButton().addEventListener("click",this.onDialogBoxContinueButtonClick,!1),this.setTitleText(),this.setBodyText(),this.setPrimaryText(),this.setSecondaryText()}},{key:"hide",value:function(){x(L(r.prototype),"hide",this).call(this),this.eventDispatcher.publish("event.dialogBoxHide"),this.getCloseButton().removeEventListener("click",this.onDialogBoxCloseButtonClick,!1),this.getContinueButton().removeEventListener("click",this.onDialogBoxContinueButtonClick,!1)}},{key:"onDialogBoxCloseButtonClick",value:function(){this.eventDispatcher.publish(this.secondaryEvent),this.hide()}},{key:"onDialogBoxContinueButtonClick",value:function(){this.eventDispatcher.publish(this.primaryEvent),this.hide()}}])&&B(t.prototype,n),i&&B(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E),M=n(0),j=n.n(M);function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function U(e,t,n){return t&&z(e.prototype,t),n&&z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=U((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,Object.freeze(this)}));H(F,"iOS",new F("iOS")),H(F,"Android",new F("Android")),H(F,"Windows",new F("Windows")),H(F,"Amazon",new F("Amazon"));var X=F,Y=function(e){var t=re();return t&&"function"==typeof t[e]?t[e]:null},q=function(){var e=Y("getOSVersion");return null!==e?e():"0.0.0"},W=function(){var e=Y("getSDKVersion");return null!==e?e():"0.0.0"},G=function(){var e=Y("getOS"),t=null!==e?e():window.navigator.userAgent.match(/Android/i)?"Android":"Unknown";switch(t.trim().toLowerCase()){case"ios":return X.iOS;case"android":return X.Android;case"windows":return X.Windows;case"amazon":return X.Amazon;default:return c("Unable to detect Operating System from mraid Extension getOS or from userAgent: ".concat(t)),null}};function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return J(this,n)}}function J(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ie=function(){function e(){ee(this,e),this.mraid=null,this.mraidExt=null,this.mraidBridge=null,this.mraidBridgeExt=null,this.mraidErrorMap=null,this.mraidVersion=null,this.MIN_VUNGLE_MRAID2=">=4.6.0",this.readyCallback=null}return ne(e,[{key:"VungleMRAID",get:function(){return this.mraid||(this.mraid=window.vungle.mraid||window.mraid),this.mraid}},{key:"VungleMRAIDExt",get:function(){return this.mraidExt||(this.mraidExt=window.vungle.mraidExt),this.mraidExt}},{key:"VungleMRAIDBridge",get:function(){return this.mraidBridge||(this.mraidBridge=window.vungle.mraidBridge),this.mraidBridge}},{key:"VungleMRAIDBridgeExt",get:function(){return this.mraidBridgeExt||(this.mraidBridgeExt=window.vungle.mraidBridgeExt),this.mraidBridgeExt}},{key:"VungleMRAIDErrorMap",get:function(){return this.mraidErrorMap||(this.mraidErrorMap=window.vungle.error),this.mraidErrorMap}},{key:"VungleMRAIDVersion",get:function(){return"getMraidVersion"in this.VungleMRAIDExt&&(this.mraidVersion=this.VungleMRAIDExt.getMraidVersion()),this.mraidVersion}},{key:"consent",get:function(){return this.isStandardMRAID2()?this.VungleMRAIDExt:this.VungleMRAID}},{key:"os",get:function(){var e=G();return e?e.name.toLowerCase():"unknown"}},{key:"osVersion",get:function(){return q().trim()}},{key:"DynamicElement",get:function(){return this.dynamicElement||(this.dynamicElement=document.querySelector("#dynamic")),this.dynamicElement}},{key:"VungleCTA",get:function(){if(!this.cta){var e=this.VungleMRAIDBridgeExt.getReplacementTokens();this.cta={uri:e.CTA_BUTTON_URL,appStoreId:e.APP_STORE_ID||this.getApiIdFromUrl(e.CTA_BUTTON_URL)}}return this.cta}},{key:"getApiIdFromUrl",value:function(e){if(!e)return null;var t=e.match(/\/id([0-9]*)/i);return t&&t[1]?t[1]:null}},{key:"openPrivacyURI",value:function(e){if(this.isStandardMRAID2())return this.VungleMRAID.open(e);this.VungleMRAIDBridgeExt.openPrivacy(e),"ios"===this.os&&this.VungleMRAID.open(e)}},{key:"isConsentRequired",value:function(){return"getConsentRequired"in this.consent&&this.consent.getConsentRequired()}},{key:"isStandardMRAID2",value:function(){return this.VungleMRAIDVersion&&Object(M.satisfies)(this.VungleMRAIDVersion,this.MIN_VUNGLE_MRAID2)}},{key:"initCustomOperations",value:function(){this.VungleMRAID.useCustomClose(),this.isStandardMRAID2()||this.VungleMRAIDExt.useCustomPrivacy(!0)}}]),e}(),oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(n,e);var t=Z(n);function n(){var e;return ee(this,n),(e=t.call(this)).readyCallback=null,e}return ne(n,[{key:"mraidReady",value:function(){this.VungleMRAID&&(this.VungleMRAID.addEventListener("error",this.mraidError),this.initCustomOperations()),this.readyCallback&&this.readyCallback()}},{key:"mraidReadyCheck",value:function(e){this.readyCallback=e,this.VungleMRAID&&"loading"===this.VungleMRAID.getState()?this.VungleMRAID.addEventListener("ready",this.mraidReady.bind(this)):this.mraidReady()}},{key:"mraidError",value:function(e,t){window.console&&window.console.log("%cMRAID (SDK) Error Detected. time=%f, message=%s, action=%s","color: red; font-size: x-large",Date.now(),e,t)}}]),n}(ie),re=function(){return window.vungle.mraidExt},se=function(){return window.vungle.mraidBridgeExt};n(12),n(13);function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ce(){return(ce="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ue(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ue(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fe(e)););return e}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=fe(e);if(t){var o=fe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return pe(this,n)}}function pe(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(r,e);var t,n,i,o=de(r);function r(e){var t,n=e.selector;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).consentButton=null,t.noConsentButton=null,t.titleTextElement=null,t.bodyTextElement=null,t.bodyTextContainer=null,t.bodyTextTranslateY=0,t.resizeFinishedTimeout=null,t.mraidObject=new ie,t}return t=r,(n=[{key:"getDialog",value:function(){return this.dialog||(this.dialog=document.querySelector("".concat(this.selector," .dialog"))),this.dialog}},{key:"getConsentButton",value:function(){return this.consentButton||(this.consentButton=document.querySelector("".concat(this.selector," .consent-button button"))),this.consentButton}},{key:"getNoConsentButton",value:function(){return this.noConsentButton||(this.noConsentButton=document.querySelector("".concat(this.selector," .no-consent-button button"))),this.noConsentButton}},{key:"getTitleTextElement",value:function(){return this.titleTextElement||(this.titleTextElement=document.querySelector("".concat(this.selector," .title-text"))),this.titleTextElement}},{key:"getBodyTextContainer",value:function(){return this.bodyTextContainer||(this.bodyTextContainer=document.querySelector("".concat(this.selector," .body-text-container"))),this.bodyTextContainer}},{key:"getBodyTextElement",value:function(){return this.bodyTextElement||(this.bodyTextElement=document.querySelector("".concat(this.selector," .body-text"))),this.bodyTextElement}},{key:"setBodyText",value:function(){this.getBodyTextElement().innerHTML=this.mraidObject.consent.getConsentBodyText()}},{key:"setConsentText",value:function(){this.getConsentButton().innerHTML=this.mraidObject.consent.getConsentAcceptButtonText()}},{key:"setNoConsentText",value:function(){this.getNoConsentButton().innerHTML=this.mraidObject.consent.getConsentDenyButtonText()}},{key:"setTitleText",value:function(){this.getTitleTextElement().innerHTML=this.mraidObject.consent.getConsentTitleText()}},{key:"init",value:function(){this.initialized||(this.initialized=!0,this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)))}},{key:"show",value:function(){ce(fe(r.prototype),"show",this).call(this),this.setDialogHeight(),this.setBodyText(),this.setConsentText(),this.setNoConsentText(),this.setTitleText(),this.onConsentButtonClick=this.onConsentButtonClick.bind(this),this.onNoConsentButtonClick=this.onNoConsentButtonClick.bind(this),this.getConsentButton().addEventListener("click",this.onConsentButtonClick),this.getNoConsentButton().addEventListener("click",this.onNoConsentButtonClick),this.onViewportChange()}},{key:"hide",value:function(){ce(fe(r.prototype),"hide",this).call(this),this.getConsentButton().removeEventListener("click",this.onConsentButtonClick),this.getNoConsentButton().removeEventListener("click",this.onNoConsentButtonClick),this.eventDispatcher.unsubscribeAll(this._id),clearTimeout(this.resizeFinishedTimeout),this.resizeFinishedTimeout=null}},{key:"setDialogHeight",value:function(){var e=window.innerHeight/100,t=window.innerWidth/100;this.getDialog().style.height="".concat(100*e-15*t,"px")}},{key:"onConsentButtonClick",value:function(){this.hide(),this.mraidObject.VungleMRAIDBridgeExt.consentAction("opted_in"),this.eventDispatcher.publish("event.gdprConsent","opted_in")}},{key:"onNoConsentButtonClick",value:function(){this.hide(),this.mraidObject.VungleMRAIDBridgeExt.consentAction("opted_out"),this.eventDispatcher.publish("event.gdprConsent","opted_out")}},{key:"resizeInterval",value:function(){var e=this;this.resizeFinishedInterval&&(clearInterval(this.resizeFinishedInterval),this.resizeFinishedInterval=null),this.resizeFinishedInterval=setInterval((function(){e.setDialogHeight()}),10)}},{key:"resizeTimeout",value:function(){var e=this;this.resizeFinishedTimeout&&(clearTimeout(this.resizeFinishedTimeout),this.resizeFinishedTimeout=null),this.resizeFinishedTimeout=setTimeout((function(){e.setDialogHeight(),clearInterval(e.resizeFinishedInterval),e.resizeFinishedInterval=null}),1e3)}},{key:"onViewportChange",value:function(){this.setDialogHeight(),this.resizeInterval(),this.resizeTimeout()}}])&&le(t.prototype,n),i&&le(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function ye(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"getViewportSize",value:function(){var e=0,t=0;return"number"==typeof window.innerHeight?(e=window.innerWidth,t=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(t=document.documentElement.clientHeight,e=document.documentElement.clientWidth):document.body&&document.body.clientHeight&&(t=document.body.clientHeight,e=document.body.clientWidth),{width:e,height:t}}},{key:"elementAddClass",value:function(e,t){var n=e&&e.split(" ")||[];return-1===n.indexOf(t)&&n.push(t),n.join(" ")}},{key:"elementRemoveClass",value:function(e,t){var n=e&&e.split(" ")||[],i=n.indexOf(t);return-1!==i&&n.splice(i,1),n.join(" ")}},{key:"addMultiEventListener",value:function(e,t,n){var i,o,r=t.split(" ");for(o=0,i=r.length;o<i;o++)e.addEventListener(r[o],n,!1)}},{key:"elementHasClass",value:function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)".concat(t,"(\\s|$)")))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!this.elementHasClass(e,t););return e}}],(n=null)&&ye(t.prototype,n),i&&ye(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Oe(e);if(t){var o=Oe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Te(this,n)}}function Te(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(r,e);var t,n,i,o=Ee(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).loopVideo=!1,t.progressBar=null,t.muteIconContainer=null,t.duration=0,t.videoProgressBackgroundColor=null,t.videoProgressBarSpan=null,t.playPromise=null,t.muted=!0,t.paused=!1,t.playing=!1,t.supposedCurrentTime=0,t}return t=r,(n=[{key:"getMuteIconContainer",value:function(){return this.muteIconContainer||(this.muteIconContainer=document.querySelector(".mute-icon-container")),this.muteIconContainer}},{key:"getProgressBar",value:function(){return this.progressBar||(this.progressBar=document.querySelector(".progress-bar")),this.progressBar}},{key:"getVideoProgressBackgroundColor",value:function(){return this.videoProgressBackgroundColor||(this.videoProgressBackgroundColor=document.querySelector(".progress-bar").getAttribute("data-vgl-progress-background-color")),this.videoProgressBackgroundColor}},{key:"getVideoProgressBarSpan",value:function(){return this.videoProgressBarSpan||(this.videoProgressBarSpan=document.querySelector(".progress-bar span")),this.videoProgressBarSpan}},{key:"getOverlayController",value:function(){return this.overlayController||(this.overlayController=document.querySelector(".overlay-video-controller")),this.overlayController}},{key:"init",value:function(){this.initialized||(this.loopVideo=this.getElement().hasAttribute("loop"),this.addVideoListener(),this.addMuteUnmuteListener(),this.addOverlayControllerListener(),this.setProgressBar(),this.eventDispatcher.subscribe("event.playVideoFromTime",this.playFromTime.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.eventDispatcher.subscribe("event.playVideo",this.play.uuidBind(this)),this.eventDispatcher.subscribe("event.pauseVideo",this.pause.uuidBind(this)),this.initialized=!0)}},{key:"addVideoListener",value:function(){this.loopVideo&&this.getElement().removeAttribute("loop"),this.getElement().addEventListener("seeking",this.onVideoSeeking.bind(this)),this.getElement().addEventListener("ended",this.onVideoEnded.bind(this)),this.getElement().addEventListener("timeupdate",this.onVideoTimeUpdate.bind(this)),this.getElement().addEventListener("timeupdate",this.onVideoTimeCheckpoint.bind(this)),this.getElement().addEventListener("loadedmetadata",this.onVideoLoadedMetadata.bind(this)),this.getElement().addEventListener("durationchange",this.onVideoDurationChange.bind(this)),this.getElement().addEventListener("volumechange",this.onVideoVolumeChange.bind(this)),this.getElement().addEventListener("waiting",this.onVideoWaiting.bind(this)),this.getElement().addEventListener("suspend",this.onVideoSuspend.bind(this)),this.getElement().load()}},{key:"addMuteUnmuteListener",value:function(){var e=this,t=document.querySelector(".unmute-video-wrap"),n=document.querySelector(".mute-video-wrap");t.addEventListener("click",(function(){t.setAttribute("class",me.elementAddClass(t.className,"hidden")),n.setAttribute("class",me.elementRemoveClass(n.className,"hidden")),e.muteUnmute(!0),e.eventDispatcher.publish("event.videoSoundUpdate","mute")})),n.addEventListener("click",(function(){n.setAttribute("class",me.elementAddClass(n.className,"hidden")),t.setAttribute("class",me.elementRemoveClass(t.className,"hidden")),e.muteUnmute(!1),e.eventDispatcher.publish("event.videoSoundUpdate","unmute")}))}},{key:"addOverlayControllerListener",value:function(){var e=this;this.getOverlayController()&&this.getOverlayController().addEventListener("click",(function(){e.hideOverlayController(),e.play()}))}},{key:"positionOnWindows",value:function(){if(this.isWindows()){var e=Math.abs(window.innerHeight-window.outerHeight),t=this.getMuteIconContainer().getBoundingClientRect().top;this.getMuteIconContainer().setAttribute("class",me[e>5&&e<=20&&t<=40?"elementAddClass":"elementRemoveClass"](this.getMuteIconContainer().className,"windows-full-screen"))}}},{key:"isWindows",value:function(){return me.elementHasClass(document.querySelector("#dynamic"),"windows")}},{key:"setMuteIconContainer",value:function(){this.getMuteIconContainer().setAttribute("class",me.elementRemoveClass(this.getMuteIconContainer().className,"windows-full-screen")),this.getMuteIconContainer().style.marginLeft="",this.getMuteIconContainer().style.marginTop="",this.getProgressBar().style.marginLeft="",this.videoRatio=this.getElement().videoWidth/this.getElement().videoHeight,this.videoOffsetWidth=this.getElement().offsetWidth,this.videoOffsetHeight=this.getElement().offsetHeight,this.elementRatio=this.videoOffsetWidth/this.videoOffsetHeight,this.elementRatio>this.videoRatio?(this.videoOffsetWidth=this.videoOffsetHeight*this.videoRatio,this.getMuteIconContainer().style.marginLeft="".concat((this.getElement().clientWidth-this.videoOffsetWidth)/2,"px")):(this.videoOffsetHeight=this.videoOffsetWidth/this.videoRatio,this.getMuteIconContainer().style.marginTop="".concat((this.getElement().clientHeight-this.videoOffsetHeight)/2,"px")),this.getProgressBar().style.width="".concat(this.videoOffsetWidth,"px"),this.getProgressBar().style.marginLeft=this.getMuteIconContainer().style.marginLeft,this.positionOnWindows()}},{key:"show",value:function(){}},{key:"hide",value:function(){this.pause()}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"pause",value:function(){var e=this;if(!this.paused){this.clearCheckIfPayingInterval();var t=function(){!e.getElement().paused&&e.getElement().pause(),e.paused=!0,e.eventDispatcher.publish("event.videoStateChanged","pause")};this.playPromise?this.playPromise.then(t):t()}}},{key:"play",value:function(){var e=this;if(this.paused){this.clearCheckIfPayingInterval();var t=function(){e.paused=!1,e.checkIfPlaying(),e.eventDispatcher.publish("event.videoStateChanged","play")};this.playPromise=this.getElement().play(),G()===X.Android&&Object(M.satisfies)(q(),"<=19")&&(this.getElement().pause(),this.getElement().muted=this.muted,this.getElement().offsetHeight,this.playPromise=this.getElement().play()),this.playPromise?this.playPromise.then(t).catch(t):t()}}},{key:"checkIfPlaying",value:function(){var e=this;if(this.duration){var t=0,n=this.getElement().currentTime;this.clearCheckIfPayingInterval(),this.checkIfPayingInterval=setInterval((function(){if(e.getElement().currentTime===n)return e.paused=!0,t>=4?(t=0,e.clearCheckIfPayingInterval(),e.showOverlayController(),void e.eventDispatcher.publish("event.videoStateChanged","pause")):(t++,e.hideOverlayController(),void(e.playPromise=e.getElement().play()));t=0,e.paused=!1,e.clearCheckIfPayingInterval(),e.hideOverlayController()}),250)}}},{key:"clearCheckIfPayingInterval",value:function(){this.checkIfPayingInterval&&(clearInterval(this.checkIfPayingInterval),this.checkIfPayingInterval=null)}},{key:"playFromTime",value:function(e){this.getElement().currentTime=e}},{key:"progressBarUpdate",value:function(e){e.duration>=0&&(document.querySelector(".progress-bar span").style.width="".concat(e.currentTime/e.duration*100,"%"))}},{key:"showOverlayController",value:function(){this.playing=!1,this.getOverlayController()&&(this.eventDispatcher.publish("event.videoViewed",{currentTime:.1}),this.getOverlayController().setAttribute("class",me.elementRemoveClass(this.overlayController.className,"hide")))}},{key:"hideOverlayController",value:function(){this.playing=!0,this.getOverlayController()&&this.getOverlayController().setAttribute("class",me.elementAddClass(this.overlayController.className,"hide"))}},{key:"onViewportChange",value:function(){this.setMuteIconContainer()}},{key:"onVideoEnded",value:function(){this.loopVideo?(this.supposedCurrentTime=0,this.getElement().play()):this.eventDispatcher.publish("event.videoPlayComplete")}},{key:"onVideoTimeCheckpoint",value:function(){this.eventDispatcher.publish("event.videoPlayCheckpoint",{currentTime:this.getElement().currentTime,duration:this.getElement().duration})}},{key:"onVideoTimeUpdate",value:function(){this.eventDispatcher.publish("event.videoPlayTimeupdate",{currentTime:this.getElement().currentTime,duration:this.getElement().duration}),this.supposedCurrentTime=this.getElement().currentTime,this.getProgressBar()&&this.progressBarUpdate(this.getElement()),this.playing||this.hideOverlayController()}},{key:"setInitialMuteValue",value:function(){this.setMuteTokenValue(),this.setMuteUnmuteTheme(),this.setMuteIconContainer()}},{key:"onVideoVolumeChange",value:function(){}},{key:"onVideoSeeking",value:function(){var e=this.getElement().currentTime-this.supposedCurrentTime;Math.abs(e)>.01&&(this.getElement().pause(),this.getElement().currentTime=this.supposedCurrentTime)}},{key:"onVideoWaiting",value:function(){this.eventDispatcher.publish("event.videoBuffering")}},{key:"onVideoSuspend",value:function(){this.eventDispatcher.publish("event.videoSuspend")}},{key:"onVideoLoadedMetadata",value:function(){this.pause(),this.setInitialMuteValue(),this.play()}},{key:"onVideoDurationChange",value:function(){this.duration=this.getElement().duration,this.eventDispatcher.publish("event.videoMetadataAvailable",{height:this.getElement().videoHeight,width:this.getElement().videoWidth,duration:this.getElement().duration}),this.setInitialMuteValue()}},{key:"getMuteTokenValue",value:function(){return"true"===this.getMuteIconContainer().getAttribute("data-vgl-start-muted")}},{key:"muteUnmute",value:function(e){this.getElement().muted=e,this.muted=e}},{key:"setMuteTokenValue",value:function(){this.muteUnmute(this.getMuteTokenValue())}},{key:"setMuteUnmuteTheme",value:function(){var e=this.getMuteTokenValue(),t=document.querySelector(".unmute-video-wrap"),n=document.querySelector(".mute-video-wrap"),i=this.getMuteIconContainer();e?n.setAttribute("class",me.elementRemoveClass(n.className,"hidden")):t.setAttribute("class",me.elementRemoveClass(t.className,"hidden")),i.setAttribute("class",me.elementAddClass(i.className,e?"unmute-video":"mute-video"))}},{key:"setProgressBar",value:function(){"false"===this.getElement().getAttribute("data-vgl-video-timer")?this.getProgressBar().style.visibility="hidden":this.getVideoProgressBarSpan().style.background=this.getVideoProgressBackgroundColor()}}])&&be(t.prototype,n),i&&be(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function ke(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var De=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timerId=null,this.start=null,this.remaining=n,this.callback=t,this.timerState=null,this.resume()}var t,n,i;return t=e,(n=[{key:"pause",value:function(){this.timerState="pause",window.clearTimeout(this.timerId),this.remaining-=new Date-this.start}},{key:"resume",value:function(){"resume"!==this.timerState&&(this.start=new Date,window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.callback,this.remaining)),this.timerState="resume"}}])&&ke(t.prototype,n),i&&ke(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Se="event.endcardView",Ie="event.downloadButtonClick",Ae="event.downloadButtonClickWithValue",Be="event.videoPlayTimeupdate",xe="event.installButtonClick",Pe="event.videoSoundUpdate",Re="event.videoViewed",_e="event.videoPageClose",Ve="event.videoPlayCheckpoint",Le="event.privacyButtonClick",Ne="event.closeButtonPaddingClick",Me="event.storeKitOverlayAutoOpen",je="event.closeButtonContentClick",ze="closeButtonClick",Ue="nearCloseButtonClick",He="video.close",Fe="video.mute",Xe="video.unmute",Ye="download.ctaClick",qe="download.fullScreenClick",We="clickUrl",Ge="postroll.click",Ke="postroll.view",$e="muteButtonClick",Ze="privacyButtonClick",Je="storeKitOverlay.autoOpen.storeEndcardTimer";function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function nt(e,t,n){return t&&tt(e.prototype,t),n&&tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function it(){return(it="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ot(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ot(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ct(e)););return e}function rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ut=function(e){rt(n,e);var t=at(n);function n(e){var i=e.selector,o=e.isIncentivized;return et(this,n),t.call(this,{selector:i,isIncentivized:o})}return nt(n,[{key:"init",value:function(){!this.initialized&&this.isWindows()&&this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),it(ct(n.prototype),"init",this).call(this),window.vungle.flexFeed&&(this.getElement().style.visibility="hidden")}},{key:"isWindows",value:function(){return me.elementHasClass(document.querySelector("#dynamic"),"windows")}},{key:"positionOnWindows",value:function(){this.isWindows()&&this.onViewportChange()}},{key:"onClick",value:function(){this.eventDispatcher.publish(Ne),this.eventDispatcher.publish("event.closeButtonClick")}},{key:"onViewportChange",value:function(){var e=Math.abs(window.innerHeight-window.outerHeight);this.getElement().setAttribute("class",me[e>5&&e<=20?"elementAddClass":"elementRemoveClass"](this.getElement().className,"windows-full-screen"))}}]),n}(I),ht=function(e){rt(n,e);var t=at(n);function n(e){var i=e.selector,o=e.isIncentivized;return et(this,n),t.call(this,{selector:i,isIncentivized:o})}return nt(n,[{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.positionOnWindows(),t)window.vungle.flexFeed||it(ct(n.prototype),"show",this).call(this);else{var i=this.getShowDelayMilliseconds();"number"==typeof i?window.vungle.flexFeed||(0===i?it(ct(n.prototype),"show",this).call(this):(this.hide(),setTimeout((function(){it(ct(n.prototype),"show",e).call(e),e.showDelayMilliseconds=0}),i))):this.hide()}}}]),n}(ut),dt=function(e){rt(n,e);var t=at(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=e.updateCountdownEvent,a=void 0===s?null:s,l=e.pausePlayCountdownCustom,c=void 0===l?{event:null,play:"play",pause:"pause"}:l;return et(this,n),(i=t.call(this,{selector:o,isIncentivized:r})).updateCountdownEvent=a,i.pausePlayCountdownCustom=c,i}return nt(n,[{key:"init",value:function(){this.getButtonContainer().addEventListener("click",this.onButtonContainerClick.bind(this)),this.eventDispatcher.subscribe("event.videoStateChanged",this.onPausePlayCountdownEvent.bind(this)),it(ct(n.prototype),"init",this).call(this)}},{key:"getShowCountdownTimer",value:function(){return this.showCountdownTimer||(this.showCountdownTimer="true"===(this.getElement().getAttribute("data-vgl-show-countdown-timer")||"false")),this.showCountdownTimer}},{key:"getButtonCountdownText",value:function(){return this.buttonCountdownText||(this.buttonCountdownText=this.getElement().querySelector(".close-btn-text")),this.buttonCountdownText}},{key:"getButtonContainer",value:function(){return this.buttonContainer||(this.buttonContainer=this.getElement().querySelector(".close-btn-container")),this.buttonContainer}},{key:"onButtonContainerClick",value:function(e){e.stopPropagation(),this.eventDispatcher.publish("event.closeButtonClick"),this.eventDispatcher.publish(je)}},{key:"showHideButtonContainer",value:function(e){this.getButtonContainer().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getButtonContainer().className,"hide"))}},{key:"showHideButtonCountdownText",value:function(e){this.showCountdownTimer||(e=!1),this.getButtonCountdownText().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getButtonCountdownText().className,"hide"))}},{key:"enableDisableClick",value:function(e){this.getElement().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getElement().className,"disable-click"))}},{key:"startVirtualCountdown",value:function(e){var t=this,i=Math.round(e/1e3);i<=0||this.showDelayMilliseconds<=0?this.showAndEnableCloseButton(250):(this.showCountdownTimer&&(this.enableDisableClick(!1),this.showHideButtonContainer(!1),this.showHideButtonCountdownText(!0),this.getButtonCountdownText().textContent=i,it(ct(n.prototype),"show",this).call(this)),this.countdownInterval=new De((function(){e-=1e3,t.startVirtualCountdown(e)}),1e3))}},{key:"onUpdateCountdownEvent",value:function(e){var t=e.duration,i=void 0===t?null:t,o=e.currentTime,r=void 0===o?null:o;if("number"==typeof i&&!isNaN(i)){var s=i;"number"==typeof this.showDelayMilliseconds&&this.showDelayMilliseconds/1e3<i&&(s=this.showDelayMilliseconds/1e3);var a=Math.round(s-r);if(a<=0)return this.unsubscribeOnUpdateCountdownEvent(),void this.showAndEnableCloseButton(1e3*Math.abs(s-r)+250);this.showCountdownTimer&&(this.enableDisableClick(!1),this.showHideButtonContainer(!1),this.showHideButtonCountdownText(!0),this.getButtonCountdownText().textContent=a,it(ct(n.prototype),"show",this).call(this))}}},{key:"unsubscribeOnUpdateCountdownEvent",value:function(){this.eventDispatcher.unsubscribe(this.updateCountdownEvent,this.onUpdateCountdownEvent)}},{key:"showAndEnableCloseButton",value:function(e){var t=this;this.showHideButtonCountdownText(!1),this.showDelayMilliseconds=0,it(ct(n.prototype),"hide",this).call(this),setTimeout((function(){t.enableDisableClick(!0),t.showHideButtonContainer(!0),it(ct(n.prototype),"show",t).call(t)}),e)}},{key:"listenToUpdateCountdownEvent",value:function(){this.updateCountdownEvent&&this.eventDispatcher.subscribe(this.updateCountdownEvent,this.onUpdateCountdownEvent.uuidBind(this))}},{key:"listenToPausePlayCountdownEvent",value:function(){this.pausePlayCountdownCustom&&this.pausePlayCountdownCustom.event&&this.eventDispatcher.subscribe(this.pausePlayCountdownCustom.event,this.onPausePlayCountdownEvent.uuidBind(this))}},{key:"onPausePlayCountdownEvent",value:function(e){this.countdownInterval&&(e!==this.pausePlayCountdownCustom.pause&&"pause"!==e?this.countdownInterval.resume():this.countdownInterval.pause())}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.positionOnWindows(),e)window.vungle.flexFeed||(this.showDelayMilliseconds=0,this.updateCountdownEvent&&(this.unsubscribeOnUpdateCountdownEvent(),this.showAndEnableCloseButton()),this.enableDisableClick(!0),this.showHideButtonCountdownText(!1),this.showHideButtonContainer(!0),it(ct(n.prototype),"show",this).call(this));else if(this.hide(),this.getShowCountdownTimer(),this.enableDisableClick(!1),this.showHideButtonCountdownText(!1),this.showHideButtonContainer(!1),!window.vungle.flexFeed){var t=this.getShowDelayMilliseconds();"number"==typeof t?0===t?(this.enableDisableClick(!0),this.showHideButtonContainer(!0),it(ct(n.prototype),"show",this).call(this)):this.updateCountdownEvent?this.listenToUpdateCountdownEvent():(this.listenToPausePlayCountdownEvent(),this.startVirtualCountdown(t)):this.updateCountdownEvent&&this.listenToUpdateCountdownEvent()}}}]),n}(ut);function pt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ft(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var vt={DownloadButton:new(ft((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.HardHide=null,this.IncentivizedTimeout=null})))};function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function bt(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wt(){return(wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Et(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Et(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=St(e)););return e}function Tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return kt(this,n)}}function kt(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var It=function(e){Tt(n,e);var t=Ct(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=void 0!==r&&r,a=e.buttonColor,l=void 0===a?null:a;mt(this,n);var c=Dt(i=t.call(this,{selector:o,isIncentivized:s}));return i.uri=i.getElement().getAttribute("data-vgl-uri"),i.appStoreId=i.getElement().getAttribute("data-vgl-app-store-id")||i.getApiIdFromUrl(),i.buttonColor=l,i.mraidObject=new ie,i.isIncentivized&&!i.mraidObject.VungleMRAIDVersion&&(-1!==["ios"].indexOf(i.mraidObject.os)&&(i.hardHideDownload=new Bt({selector:c.selector})),-1!==["ios","android"].indexOf(i.mraidObject.os)&&(i.incentivizedTimeoutDownload=new xt({selector:c.selector}))),i}return bt(n,[{key:"clazz",get:function(){return"DownloadButton"}},{key:"destroy",value:function(){this.hardHideDownload&&this.hardHideDownload.destroy(),this.incentivizedTimeoutDownload&&this.incentivizedTimeoutDownload.destroy(),wt(St(n.prototype),"destroy",this).call(this)}},{key:"getApiIdFromUrl",value:function(){if(!this.uri)return null;var e=this.uri.match(/\/id([0-9]*)/i);return e&&e[1]?e[1]:null}},{key:"init",value:function(){this.initialized||(wt(St(n.prototype),"init",this).call(this),this.hardHideDownload&&this.hardHideDownload.init(),this.incentivizedTimeoutDownload&&this.incentivizedTimeoutDownload.init(),this.buttonColor&&(this.getElement().style.backgroundColor=this.buttonColor),this.initialized=!0)}},{key:"onClick",value:function(e){e.stopPropagation(),this.eventDispatcher.publish("event.downloadButtonClick",{uri:this.uri,appStoreId:this.appStoreId,type:"cta"})}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)wt(St(n.prototype),"show",this).call(this);else{var i=this.getShowDelayMilliseconds();"number"==typeof i?0===i?wt(St(n.prototype),"show",this).call(this):(this.hide(),setTimeout((function(){wt(St(n.prototype),"show",e).call(e),e.showDelayMilliseconds=0}),i)):this.hide()}}}]),n}(I),At=function(e){Tt(n,e);var t=Ct(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=void 0!==r&&r;return mt(this,n),(i=t.call(this,{selector:o,isIncentivized:s})).isEnabled="true"===i.getElement().getAttribute("data-vgl-full-cta"),i}return bt(n,[{key:"onAdViewableChanged",value:function(e){var t=this;"deny"!==vt.DownloadButton.HardHide?setTimeout((function(){t.getElement().setAttribute("class",me["maximized"===e?"elementRemoveClass":"elementAddClass"](t.getElement().className,"hide"))})):this.destroy()}},{key:"init",value:function(){this.initialized||(wt(St(n.prototype),"init",this).call(this),this.isEnabled&&this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged.uuidBind(this)),this.initialized=!0)}},{key:"onClick",value:function(){this.eventDispatcher.publish("event.downloadButtonClick",{uri:this.uri,appStoreId:this.appStoreId,type:"fsc"})}}]),n}(It),Bt=function(e){Tt(n,e);var t=Ct(n);function n(e){var i=e.selector;return mt(this,n),t.call(this,i)}return bt(n,[{key:"bury",value:function(){this.hide(),this.getElement().setAttribute("class",me.elementAddClass(this.getElement().className,"hide"))}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"onHardHideDownloadButton",value:function(){this.bury()}},{key:"init",value:function(){this.initialized||("deny"===vt.DownloadButton.HardHide?this.bury():this.eventDispatcher.subscribe("event.hardHideDownloadButton",this.onHardHideDownloadButton.uuidBind(this)),this.initialized=!0)}}]),n}(E),xt=function(e){Tt(n,e);var t=Ct(n);function n(e){var i=e.selector;return mt(this,n),t.call(this,i)}return bt(n,[{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"isOnClickDisabled",value:function(){return me.elementHasClass(this.getElement(),"disable-cta")}},{key:"isDelayedShown",value:function(){return me.elementHasClass(this.getElement(),"cta-delay-show")}},{key:"activateClick",value:function(){this.getElement().setAttribute("class",me.elementRemoveClass(this.getElement().className,"disable-cta"))}},{key:"deactivateClick",value:function(){this.getElement().setAttribute("class",me.elementAddClass(this.getElement().className,"disable-cta"))}},{key:"onVideoPlayTimeupdate",value:function(e){this.deactivateClick();var t=e.duration,n=e.currentTime;if("number"==typeof t&&!isNaN(t)){var i=Math.ceil(80*t/100),o=Math.round(i-n);if(!(o<=0)){var r=this.getElement().querySelector(".cta-button__timer"),s=this.getElement().querySelector(".cta-button__text"),a=this.getElement().querySelector(".cta-button__icon");s&&s.setAttribute("class",me.elementAddClass(s.className,"hide")),a&&a.setAttribute("class",me.elementAddClass(a.className,"hide")),r.setAttribute("class",me.elementRemoveClass(r.className,"hide")),r.innerHTML=o}}}},{key:"onSuccessfulViewAdReached",value:function(){if(this.activateClick(),this.isDelayedShown()){this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoPlayTimeupdate);var e=this.getElement().querySelector(".cta-button__timer"),t=this.getElement().querySelector(".cta-button__text"),n=this.getElement().querySelector(".cta-button__icon");t&&t.setAttribute("class",me.elementRemoveClass(t.className,"hide")),n&&n.setAttribute("class",me.elementRemoveClass(n.className,"hide")),e.setAttribute("class",me.elementAddClass(e.className,"hide"))}}},{key:"init",value:function(){if(!this.initialized){if("dismissed"===vt.DownloadButton.IncentivizedTimeout)this.destroy();else if(this.deactivateClick(),this.eventDispatcher.subscribe("event.successfulViewAdReached",this.onSuccessfulViewAdReached.uuidBind(this)),this.eventDispatcher.subscribe("event.dismissIncentivizedAdPage",this.onSuccessfulViewAdReached.uuidBind(this)),this.isDelayedShown()){var e=this.getElement().querySelector(".cta-button__timer"),t=this.getElement().querySelector(".cta-button__text"),n=this.getElement().querySelector(".cta-button__icon");t&&t.setAttribute("class",me.elementAddClass(t.className,"hide")),n&&n.setAttribute("class",me.elementAddClass(n.className,"hide")),e.setAttribute("class",me.elementAddClass(e.className,"hide")),this.eventDispatcher.subscribe("event.videoPlayTimeupdate",this.onVideoPlayTimeupdate.uuidBind(this))}this.initialized=!0}}}]),n}(E);function Pt(e){return(Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Nt(e);if(t){var o=Nt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){if(t&&("object"===Pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_t(e,t)}(r,e);var t,n,i,o=Vt(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).privacyButton=null,t.privacyURI=null,t.showLockIconMilliseconds=3e3,t.timer=null,t.subTimer=null,t}return t=r,(n=[{key:"getPrivacyButton",value:function(){return this.privacyButton||(this.privacyButton=document.querySelector(this.selector)),this.privacyButton}},{key:"getPrivacyURI",value:function(){return this.privacyURI||(this.privacyURI=this.getElement().getAttribute("data-vgl-uri")),this.privacyURI}},{key:"init",value:function(){this.initialized||(this.getPrivacyButton().addEventListener("click",this.onPrivacyButtonClick.bind(this)),this.initialized=!0)}},{key:"reset",value:function(){var e=this;clearTimeout(this.timer),this.timer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementRemoveClass(e.getPrivacyButton().className,"extended")),e.subTimer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementRemoveClass(e.getPrivacyButton().className,"reverse"))}),500)}),this.showLockIconMilliseconds),this.subTimer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementAddClass(e.getPrivacyButton().className,"reverse"))}),1e3)}},{key:"shortenPrivacyButton",value:function(){this.getPrivacyButton().setAttribute("class",me.elementAddClass(this.getPrivacyButton().className,"extended")),this.reset()}},{key:"isExtended",value:function(){return me.elementHasClass(this.getPrivacyButton(),"extended")}},{key:"onPrivacyButtonClick",value:function(){this.isExtended()&&this.eventDispatcher.publish("event.alertPrivacy"),this.shortenPrivacyButton()}}])&&Rt(t.prototype,n),i&&Rt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);var jt=n(2);function zt(e){return function(e){if(Array.isArray(e))return Ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ft=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.dataAttrStr="data-vgl-tabindex",this.clickable=["Video"];var t=this.forwardKeys=["Tab","ArrowRight","Right","ArrowUp","Up"],n=this.backwardKeys=["Shift+Tab","ArrowLeft","Left","ArrowDown","Down"],i=this.navKeys=[].concat(t,n),o=this.submitKeys=["Enter"],r=this.closeKeys=[];this.allKeys=[].concat(o,r,zt(i)),this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.dialogBoxObject=null}var t,n,i;return t=e,(n=[{key:"getViewHolder",value:function(){return this.viewName?(this.viewHolder||(this.viewHolder=document.querySelector("#".concat(this.viewName))),this.viewHolder):null}},{key:"getIndxEle",value:function(e,t){var n=this.getTabIndex(e);return e.querySelector("*[".concat(this.dataAttrStr,'="').concat(n[t],'"]'))}},{key:"getIndexedElements",value:function(e){return e.querySelectorAll("*[".concat(this.dataAttrStr,"]"))}},{key:"getTabIndex",value:function(e){var t=this;return[].filter.call(this.getIndexedElements(e),(function(e){if(t.isVisible(e))return e})).map((function(e){return parseInt(e.getAttribute(t.dataAttrStr),10)})).sort((function(e,t){return e-t}))}},{key:"init",value:function(){this.initialized||(this.onBodyTouch=this.onBodyTouch.uuidBind(this),this.onDialogBoxShow=this.onDialogBoxShow.uuidBind(this),this.onDialogBoxHide=this.onDialogBoxHide.uuidBind(this),this.onAdViewableChanged=this.onAdViewableChanged.uuidBind(this),this.onKeyDown=this.onKeyDown.uuidBind(this),this.onShowPage=this.onShowPage.uuidBind(this),window.addEventListener("keydown",this.onKeyDown,!0),document.body.addEventListener(jt.eventStart,this.onBodyTouch),this.eventDispatcher.subscribe("event.dialogBoxShow",this.onDialogBoxShow),this.eventDispatcher.subscribe("event.dialogBoxHide",this.onDialogBoxHide),this.eventDispatcher.subscribe("event.showPage",this.onShowPage),this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged),this.initialized=!0)}},{key:"onShowPage",value:function(e){var t=this;this.initialized&&(this.dialogBoxIndx=-1,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.viewHolder=null,this.viewName=null,this.closeButtonObject=e.getCloseButtonObject(),this.gdprDialogBoxObject=e.getGDPRDialogBoxObject(),this.dialogBoxObject=null,document.activeElement.blur(),setTimeout((function(){t.setTabIndexes(),t.viewName=e.viewName})))}},{key:"setTabIndexes",value:function(){if(!this.isTabbed){var e=this;[].forEach.call(this.getIndexedElements(document.body),(function(t){t.setAttribute("tabindex",parseInt(t.getAttribute(e.dataAttrStr),10))})),this.isTabbed=!0}}},{key:"blurCurrentElement",value:function(){var e=this;setTimeout((function(){document.activeElement.blur(),e.getViewHolder()&&e.getViewHolder().click()}))}},{key:"isVisible",value:function(e){return"visible"===window.getComputedStyle(e).getPropertyValue("visibility")&&e.offsetHeight}},{key:"focusOn",value:function(e,t){var n=this.getIndxEle(e,t);n&&n.focus()}},{key:"clickOn",value:function(e,t){var n=this.getIndxEle(e,t);n&&n.click()}},{key:"keyPressed",value:function(e,t,n,i,o,r){var s=this.getTabIndex(n);if(s.length)return o=o||function(){},r=r||function(){},-1!==this.closeKeys.indexOf(t)?(r(),i):-1!==this.submitKeys.indexOf(t)&&-1!==i?(this.clickOn(n,i),o(),i):(-1!==this.navKeys.indexOf(t)&&i<=-1?i=0:-1!==this.forwardKeys.indexOf(t)?i=i===s.length-1?0:i+1:-1!==this.backwardKeys.indexOf(t)&&(i=i<=0?s.length-1:i-1),this.focusOn(n,i,s),i)}},{key:"onKeyDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.key;if("Tab"===e.key&&e.shiftKey&&(t="Shift+".concat(e.key)),-1!==this.allKeys.indexOf(t)&&this.getViewHolder()){var n=this;if(this.dialogBoxObject&&this.dialogBoxObject.isVisible())return this.dialogBoxIndx=this.keyPressed(e,t,this.dialogBoxObject.getElement(),this.dialogBoxIndx,(function(){}),(function(){n.dialogBoxObject.isVisible()&&n.dialogBoxObject.getContinueButton().click()}));if(this.gdprDialogBoxObject&&this.gdprDialogBoxObject.isVisible())return this.gdprDialogBoxIndx=this.keyPressed(e,t,this.gdprDialogBoxObject.getElement(),this.gdprDialogBoxIndx,(function(){n.viewFocusIndx=-1,n.gdprDialogBoxIndx=-1,n.dialogBoxIndx=-1,n.blurCurrentElement()}));this.gdprDialogBoxIndx=-1,this.dialogBoxObject=null,this.dialogBoxIndx=-1,-1!==this.clickable.indexOf(this.viewName)&&this.getViewHolder().offsetHeight&&this.getViewHolder().offsetWidth&&-1===this.viewFocusIndx&&this.getViewHolder().click(),this.viewFocusIndx=this.keyPressed(e,t,this.getViewHolder(),this.viewFocusIndx,(function(){}),(function(){n.closeButtonObject&&n.closeButtonObject.isVisible()&&n.closeButtonObject.getElement().click()}))}}},{key:"onBodyTouch",value:function(){this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onDialogBoxShow",value:function(e){this.dialogBoxObject=e,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onDialogBoxHide",value:function(){this.dialogBoxObject=null,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onAdViewableChanged",value:function(e){"minimized"===e&&(this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement())}}])&&Ht(t.prototype,n),i&&Ht(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(r,e);var t,n,i,o=Wt(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).viewName=i,t.viewIndex=s,t.ctaBackgroundColor=null,t.gdprDialogBoxObject=null,t.closeButtonObject=null,t.privacyButtonObject=null,t.privacyDialogBoxObject=null,t.dialogboxSelector="#DIALOGBOX",t.gdprDialogboxSelector="#GDPRDialogBox",t.isIncentivizedAd=l,t.appInfo=null,t.ctaInfo=null,t.incentivizedDialogBoxObject=null,t.incentivizedTitleText=document.getElementById("incentivized-title-text").innerHTML,t.incentivizedBodyText=document.getElementById("incentivized-body-text").innerHTML,t.incentivizedPrimaryText=document.getElementById("incentivized-primary-text").innerHTML,t.incentivizedSecondaryText=document.getElementById("incentivized-secondary-text").innerHTML,t.getElement().style.display="none",t}return t=r,(n=[{key:"privacyBodyText",get:function(){return document.getElementById("privacy-body-text").innerHTML}},{key:"privacyPrimaryText",get:function(){return document.getElementById("privacy-primary-text").innerHTML}},{key:"privacySecondaryText",get:function(){return document.getElementById("privacy-secondary-text").innerHTML}},{key:"clazz",get:function(){return"AbstractPageView"}},{key:"getIncentivizedDialogBoxObject",value:function(){return this.incentivizedDialogBoxObject||(this.incentivizedDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),titleText:this.incentivizedTitleText,bodyText:this.incentivizedBodyText,primaryText:this.incentivizedPrimaryText,secondaryText:this.incentivizedSecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.incentivizedDialogBoxSecondaryButtonClick"})),this.incentivizedDialogBoxObject}},{key:"getGDPRDialogBoxObject",value:function(){return this.gdprDialogBoxObject||(this.gdprDialogBoxObject=new ve({selector:this.gdprDialogboxSelector})),this.gdprDialogBoxObject}},{key:"init",value:function(){this.initialized||(this.eventDispatcher.subscribe("event.alertPrivacy",this.onAlertPrivacy.uuidBind(this)),this.initialized=!0)}},{key:"show",value:function(){this.getElement().style.display="block";var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e),this.eventDispatcher.publish("event.showPage",this)}},{key:"onDialogBoxPrimaryButtonClick",value:function(){this.eventDispatcher.publish("event.resumeAdExperience")}},{key:"onIncentivizedDialogBoxSecondaryButtonClick",value:function(){this.eventDispatcher.publish("event.dismissPage")}},{key:"hide",value:function(){this.getElement().style.display="none",this.eventDispatcher.unsubscribeAll(this._id),this.eventDispatcher.publish("event.hidePage",this)}},{key:"getCTABackgroundColor",value:function(){return this.ctaBackgroundColor||(this.ctaBackgroundColor=this.getElement().getAttribute("data-vgl-cta-background-color")),this.ctaBackgroundColor}},{key:"getFullCTAObject",value:function(){return this.fullCtaObject||(this.fullCtaObject=new At({selector:"#".concat(this.viewName," .overlay-cta"),isIncentivized:this.isIncentivizedAd})),this.fullCtaObject}},{key:"getCTAButtonObject",value:function(){return this.ctaButtonObject||(this.ctaButtonObject=new It({selector:"#".concat(this.viewName," .cta-button"),buttonColor:this.getCTABackgroundColor(),isIncentivized:this.isIncentivizedAd})),this.ctaButtonObject}},{key:"getCloseButtonObject",value:function(){return this.closeButtonObject||(this.closeButtonObject=new ht({selector:"#".concat(this.viewName," .close"),isIncentivized:this.isIncentivizedAd})),this.closeButtonObject}},{key:"getPrivacyButtonObject",value:function(){return this.privacyButtonObject||(this.privacyButtonObject=new Mt("#".concat(this.viewName," .privacy-button"))),this.privacyButtonObject}},{key:"getPrivacyDialogBoxObject",value:function(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogSecondaryButtonClick"})),this.privacyDialogBoxObject}},{key:"onAlertPrivacy",value:function(){this.getPrivacyDialogBoxObject().show()}},{key:"onCloseButtonClick",value:function(){this.eventDispatcher.publish("event.dismissPage")}},{key:"onPrivacyDialogBoxSecondaryButtonClick",value:function(){var e=this.getPrivacyButtonObject().getPrivacyURI();this.eventDispatcher.publish("event.privacyButtonClick",e)}},{key:"getAppInfo",value:function(){return this.appInfo||(this.appInfo=document.querySelector("#".concat(this.viewName," .app-info"))),this.appInfo}},{key:"getCTAInfo",value:function(){return this.ctaInfo||(this.ctaInfo=document.querySelector("#".concat(this.viewName," .cta-info"))),this.ctaInfo}},{key:"onViewportChange",value:function(){}}])&&Yt(t.prototype,n),i&&Yt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function Zt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Jt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.checkpoints=[0,25,50,75,100],this.checkpointsReached=[],this.successfulViewAd=80,this.successfulViewAdReached=!1,this.videoViewedPerSecond=0,this.mraid=new ie,this.apiMap=null}var t,n,i;return t=e,(n=[{key:"init",value:function(e){this.apiMap=e,this.checkpointsReached.length=this.checkpoints.length,this.eventDispatcher.subscribe(Se,this.onEndcardView.uuidBind(this)),this.eventDispatcher.subscribe(_e,this.onVideoPageClose.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.onDownloadButtonClickTPAT.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.onDownloadButtonClickReportAd.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.reportCtaClick.uuidBind(this)),this.eventDispatcher.subscribe(Ae,this.onDownloadButtonClickWithValue.uuidBind(this)),this.eventDispatcher.subscribe(Ve,this.onVideoCheckpoint.uuidBind(this)),this.eventDispatcher.subscribe(Be,this.onSuccessfulViewAd.uuidBind(this)),this.eventDispatcher.subscribe(Be,this.onVideoLength.uuidBind(this)),this.eventDispatcher.subscribe(xe,this.onDirectDownloadClickTPAT.uuidBind(this)),this.eventDispatcher.subscribe(xe,this.onDirectDownloadClickReportAd.uuidBind(this)),this.eventDispatcher.subscribe(Pe,this.onVideoSoundUpdate.uuidBind(this)),this.eventDispatcher.subscribe(Re,this.onVideoViewed.uuidBind(this)),this.eventDispatcher.subscribe(je,this.reportCloseButtonContentClick.uuidBind(this)),this.eventDispatcher.subscribe(Ne,this.notifyCloseButtonPaddingClicked.uuidBind(this)),this.eventDispatcher.subscribe(Le,this.firePrivacyButtonClickTpatEvent.uuidBind(this)),this.eventDispatcher.subscribe(Me,this.fireStoreKitOverlayAutoOpenTpatEvent.uuidBind(this))}},{key:"fireTpat",value:function(e){var t=[ze,Ue,Ye,qe,$e,Ze,Je],n="ios"===this.os;t.includes(e)&&!n||this.apiMap.tpat&&this.apiMap.tpat(e)}},{key:"toVideoCheckpointsIndex",value:function(e,t){var n=100*(t-e<=.5?1:(Math.floor(e/t*4)/4).toFixed(2));return 0===n?0:25===n?1:50===n?2:75===n?3:100===n?4:void 0}},{key:"onVideoCheckpoint",value:function(e){var t=this.toVideoCheckpointsIndex(e.currentTime,e.duration);e.currentTime>0&&e.duration&&"number"==typeof e.duration&&this.videoViewedPerSecond<=Math.round(e.currentTime)&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.videoViewedPerSecond++);for(var n=0;n<=t;n++)void 0===this.checkpointsReached[n]&&e.currentTime>0&&e.duration&&"number"==typeof e.duration&&(this.checkpointsReached[n]=!0,this.apiMap.tpat&&this.apiMap.tpat("checkpoint.".concat(this.checkpoints[n])));!0===this.checkpointsReached[this.checkpoints.length-1]&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.duration)),this.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint))}},{key:"onVideoSoundUpdate",value:function(e){this.fireTpat($e),"mute"===e?this.fireTpat(Fe):"unmute"===e&&this.fireTpat(Xe)}},{key:"onVideoViewed",value:function(e){this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.eventDispatcher.unsubscribe("event.videoViewed",this.onVideoViewed)}},{key:"onVideoPageClose",value:function(){this.eventDispatcher.unsubscribe(Ve,this.onVideoCheckpoint),this.fireTpat(He)}},{key:"notifyCloseButtonPaddingClicked",value:function(){this.fireTpat(Ue)}},{key:"onEndcardView",value:function(){this.fireTpat(Ke)}},{key:"onDirectDownloadClickTPAT",value:function(){var e=this;setTimeout((function(){e.eventDispatcher.unsubscribe(xe,e.onDirectDownloadClickTPAT)})),this.fireTpat(We),this.fireTpat(Ge)}},{key:"onDirectDownloadClickReportAd",value:function(){this.apiMap.gesture&&this.apiMap.gesture("event","download"),this.apiMap.eventValuePair&&this.apiMap.eventValuePair("postroll.click",1),this.apiMap.eventValuePair&&this.apiMap.eventValuePair("download",1)}},{key:"reportCloseButtonContentClick",value:function(){this.fireTpat(ze)}},{key:"reportCtaClick",value:function(e){e&&("cta"===e.type?this.fireTpat(Ye):"fsc"===e.type&&this.fireTpat(qe))}},{key:"onDownloadButtonClickReportAd",value:function(){-1===["ios"].indexOf(this.os)&&this.apiMap.gesture&&this.apiMap.gesture("event","download")}},{key:"onDownloadButtonClickWithValue",value:function(e){null==e?this.apiMap.gesture&&this.apiMap.gesture("event","download"):this.apiMap.eventValuePair&&this.apiMap.eventValuePair("download",e)}},{key:"onDownloadButtonClickTPAT",value:function(){var e=this;setTimeout((function(){e.eventDispatcher.unsubscribe(Ie,e.onDownloadButtonClickTPAT)})),this.fireTpat(We),this.fireTpat(Ge)}},{key:"onSuccessfulViewAd",value:function(e){Math.floor(100*e.currentTime/e.duration)>=this.successfulViewAd&&(this.successfulViewAdReached=!0,this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.apiMap.successfulViewAd&&this.apiMap.successfulViewAd()),!0===this.successfulViewAdReached&&(this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onSuccessfulViewAd),this.eventDispatcher.publish("event.successfulViewAdReached"))}},{key:"onVideoLength",value:function(e){var t=e.duration;e.currentTime>0&&t&&"number"==typeof t&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoLength",Math.floor(1e3*t)),this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoLength))}},{key:"os",get:function(){return(this.mraid.VungleMRAIDExt.getOS()||(window.navigator.userAgent.match(/Android/i)?"Android":"Unknown")).trim().toLowerCase()}},{key:"firePrivacyButtonClickTpatEvent",value:function(){this.fireTpat(Ze)}},{key:"fireStoreKitOverlayAutoOpenTpatEvent",value:function(e){e&&e.source&&"storeEndcardTimer"===e.source&&this.fireTpat(Je)}}])&&Zt(t.prototype,n),i&&Zt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=n(1),en=n.n(Qt);function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var on=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instrument=null,this.keyMap={pointers:"p",changedPointers:"cP",pointerType:"pT",isFirst:"is1",isFinal:"isF",eventType:"eT",center:"c",timeStamp:"tS",deltaTime:"dT",angle:"a",distance:"d",deltaX:"dX",deltaY:"dY",offsetDirection:"oD",scale:"s",rotation:"r",velocity:"v",velocityX:"vX",velocityY:"vY",direction:"di",type:"t",webkitForce:"wkF",webkitRotationAngle:"wkRA",webkitRadiusY:"wkRY",webkitRadiusX:"wkRX",identifier:"i",pageY:"pY",pageX:"pX",screenY:"sY",screenX:"sX",clientY:"cY",clientX:"cX",x:"x",y:"y",overallVelocityX:"overallVelocityX",overallVelocityY:"overallVelocityY",overallVelocity:"overallVelocity",maxPointers:"maxPointers",tapCount:"tapCount"},this.eventDispatcher=v.instance}var t,n,i;return t=e,(n=[{key:"getInstrument",value:function(e){return this.instrument||(this.instrument=new en.a(e),this.instrument.get("pinch").set({enable:!0}),this.instrument.get("pan").set({direction:en.a.DIRECTION_ALL,threshold:100})),this.instrument}},{key:"attach",value:function(e){var t=this,n=this,i=function(e,t){var o,r=function(e){return this.keyMap[e]||e}.bind(this),s=[];return e&&Object.keys(e).forEach((function(a){n.keyMap[a]&&(Array.isArray(e[a])?e[a].forEach((function(e,t){s.push(i(e,"".concat(r(a),"[").concat(t,"].")))})):"object"===tn(e[a])?s.push(i(e[a],"".concat(r(a),"."))):("number"==typeof(o=e[a])&&o%1!=0&&(o=o.toFixed(2)),s.push("".concat((void 0===t?"":t)+r(a),"=").concat(o))))})),s.join("&")}.bind(this);this.getInstrument(e).on("pan tap press pinch",(function(e){var n,o="",r=e.target.closest("*[data-vgl-page]"),s=(e.target.closest("*[data-vgl-gesture]")||e.target).getAttribute("data-vgl-gesture");r&&s&&(4===e.eventType||"press"===e.type)&&(n=r.getAttribute("id")||"unknownPage",o="f=".concat(n,"&tt=").concat(s,"&").concat(i(e)),t.eventDispatcher.publish("event.gesture",o))}))}}])&&nn(t.prototype,n),i&&nn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var sn=function(e){return j.a.valid(j.a.coerce(e))},an=function(){if(G()!==X.iOS)return!1;var e=q(),t=sn(e);return j.a.satisfies(t,">=14")},ln=function(){return j.a.satisfies(sn(W()),">=6.8.1")},cn=function(){return an()&&ln()},un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.skOptions={APP_STORE:0,PRODUCT_VIEW:1,OVERLAY_VIEW:2},this.skPositionDefault="bottom",this.skDismissibleDefault=!0}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}],(n=[{key:"selectOptions",value:function(e,t,n){if(!ln())return t;switch(function(e){var t=se().getReplacementTokens();if(!t)return null;switch(e){case"fsc":return t.SK_FSC||"product_view";case"skdt":return t.SK_SKDT||"product_view";case"cta":return t.SK_CTA_ONLY||"product_view";default:return"product_view"}}((null==e?void 0:e.type)||"")){case"off":return this.skOptions.APP_STORE;case"overlay_view":return an()&&n?this.skOptions.OVERLAY_VIEW:t;case"default":case"product_view":default:return t}}},{key:"storeOverlayOptions",get:function(){var e=se().getReplacementTokens(),t={position:this.skPositionDefault,dismissible:this.skDismissibleDefault};return e?(void 0!==e.SKOVERLAY_POSITION&&"default"!==e.SKOVERLAY_POSITION&&(t.position=e.SKOVERLAY_POSITION),void 0!==e.SKOVERLAY_DISMISSIBLE&&"default"!==e.SKOVERLAY_DISMISSIBLE&&(t.dismissible=!("false"===e.SKOVERLAY_DISMISSIBLE)),t):t}},{key:"updateTokenDefaultValue",value:function(e){var t=this;e&&Object.keys(e).forEach((function(n){switch(n){case"SKOVERLAY_POSITION":t.skPositionDefault=e[n];break;case"SKOVERLAY_DISMISSIBLE":t.skDismissibleDefault=e[n]}}))}}])&&rn(t.prototype,n),i&&rn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dn(){return(dn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=pn(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function pn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Tn(e)););return e}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function yn(e,t,n){return t&&vn(e.prototype,t),n&&vn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Tn(e);if(t){var o=Tn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return wn(this,n)}}function wn(e,t){if(t&&("object"===hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return En(e)}function En(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var On=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).platform=null,e}return yn(n,[{key:"init",value:function(){if(!this.initialized){var e=Cn;-1!==["ios"].indexOf(this.os)?e=Sn:-1!==["windows"].indexOf(this.os)?e=Dn:-1!==["android"].indexOf(this.os)&&(e=kn),(this.platform=new e).init(),this.initialized=!0}}}]),n}(ie),Cn=function(e){mn(n,e);var t=bn(n);function n(){var e;fn(this,n);var i=En(e=t.call(this));return e.adTracker={gesture:i.VungleMRAIDBridgeExt.notifyUserInteraction,eventValuePair:i.VungleMRAIDBridgeExt.notifyEventValuePairEvent},e.initialized=!1,e}return yn(n,[{key:"prepare",value:function(){}},{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e),this.adTracker.eventValuePair&&this.adTracker.eventValuePair(e,1)}},{key:"downloadButtonClick",value:function(e){e=e||{},this.VungleMRAID.open(e.uri||this.VungleCTA.uri)}},{key:"init",value:function(){this.initialized||(v.instance.subscribe("event.videoSoundUpdate",this.onVideoSoundUpdate.uuidBind(this)),this.initialized=!0)}}]),n}(ie),kn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).isIncentivizedAd=e.VungleMRAIDExt.getIncentivized(),e.initialized=!1,e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.eventValuePair&&this.adTracker.eventValuePair(e,1)}},{key:"downloadButtonClick",value:function(e){e=e||{},this.VungleMRAID.open(e.uri||this.VungleCTA.uri),this.VungleMRAIDVersion||v.instance.publish("event.adUnitClose")}},{key:"prepare",value:function(e){this.isIncentivizedAd&&!this.VungleMRAIDVersion&&(-1===["VideoView","DIView"].indexOf(e.clazz)?-1!==["EndcardView"].indexOf(e.clazz)&&(vt.DownloadButton.IncentivizedTimeout="dismissed"):vt.DownloadButton.IncentivizedTimeout=null)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.initialized=!0)}}]),n}(Cn),Dn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).initialized=!1,e.accessibility=new Ft,e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.accessibility.init(),this.initialized=!0)}}]),n}(Cn),Sn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).isIncentivizedAd=e.VungleMRAIDExt.getIncentivized(),e.initialized=!1,e.isStoreViewPrepared=!1,e.isStoreOverlayPrepared=!1,e.storeViewTypes=["unknown","fullscreen","mrec","banner"],e.storeOverlayViewTypes=["unknown","fullscreen"],e.placementType=e.VungleMRAID.getPlacementType().trim().toLowerCase(),e.uri=null,e.skOptions={APP_STORE:0,PRODUCT_VIEW:1,OVERLAY_VIEW:2},e.skOverlayHelper=un.getInstance(),e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e)}},{key:"prepare",value:function(e){cn()&&this.VungleCTA.appStoreId&&-1!==this.storeOverlayViewTypes.indexOf(this.placementType)&&this.prepareStoreOverlay(this.VungleCTA.appStoreId),this.isIncentivizedAd&&!this.VungleMRAIDVersion&&(-1===["VideoView","DIView"].indexOf(e.clazz)?-1!==["EndcardView"].indexOf(e.clazz)&&(vt.DownloadButton.IncentivizedTimeout="dismissed"):vt.DownloadButton.IncentivizedTimeout=null)}},{key:"addMRAIDEventListeners",value:function(){this.DynamicElement.addEventListener("vungle.events.preparestore.finished",this.onNotifyPresentStoreViewFinished.bind(this)),this.DynamicElement.addEventListener("vungle.events.preparestore.success",this.onNotifyPrepareStoreViewSuccess.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.finished",this.onNotifyPresentStoreOverlayFinished.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.success",this.onNotifyPrepareStoreOverlaySuccess.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.visible",this.onNotifyPresentStoreOverlayVisible.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.failed",this.onNotifyPresentStoreOverlayFailed.bind(this))}},{key:"onNotifyPrepareStoreViewSuccess",value:function(){this.isStoreViewPrepared=!0,a("SKProductView - success")}},{key:"onNotifyPrepareStoreOverlaySuccess",value:function(){this.isStoreOverlayPrepared=!0,a("SKOverlay - success")}},{key:"onNotifyPresentStoreOverlayVisible",value:function(){v.instance.publish("event.hideDownloadButton"),a("SKOverlay - visible")}},{key:"onNotifyPresentStoreOverlayFailed",value:function(){if(a("SKOverlay - failed"),this.isStoreViewPrepared){var e=this.VungleCTA.appStoreId;this.VungleMRAIDExt.presentStoreView(e)}else this.VungleMRAID.open(this.uri)}},{key:"onNotifyPresentStoreViewFinished",value:function(){a("SKProductView - finished"),this.isStoreViewPrepared=!1,this.VungleCTA.appStoreId&&-1!==this.storeViewTypes.indexOf(this.placementType)&&this.prepareStoreView(this.VungleCTA.appStoreId)}},{key:"onNotifyPresentStoreOverlayFinished",value:function(){this.isStoreOverlayPrepared=!1,a("SKOverlay - finished"),v.instance.publish("event.showDownloadButton"),this.VungleCTA.appStoreId&&-1!==this.storeOverlayViewTypes.indexOf(this.placementType)&&this.prepareStoreOverlay(this.VungleCTA.appStoreId)}},{key:"prepareStoreView",value:function(e){this.VungleMRAIDExt.prepareStoreView(e),a("SKProductView - prepare")}},{key:"prepareStoreOverlay",value:function(e){this.VungleMRAIDExt.prepareStoreOverlayView(e,this.skOverlayHelper.storeOverlayOptions),a("SKOverlay - prepare")}},{key:"dismissStoreOverlay",value:function(e){this.VungleMRAIDExt.dismissStoreOverlayView(e),a("SKOverlay - dismissed")}},{key:"downloadButtonClick",value:function(e){e=e||{},this.uri=e.uri||this.VungleCTA.uri;var t,n=this.uri===this.VungleCTA.uri,i=this.VungleCTA.appStoreId;switch(this.selectSKOptions(e)){case this.skOptions.APP_STORE:this.VungleMRAID.open(this.uri);break;case this.skOptions.OVERLAY_VIEW:t=2,this.VungleMRAIDExt.presentStoreOverlayView(i,this.skOverlayHelper.storeOverlayOptions);break;case this.skOptions.PRODUCT_VIEW:default:t=3,this.VungleMRAIDExt.presentStoreView(i)}v.instance.publish("event.downloadButtonClickWithValue",t),n&&!this.VungleMRAIDVersion&&i&&this.isStoreViewPrepared&&(vt.DownloadButton.HardHide="deny",v.instance.publish("event.hardHideDownloadButton"),this.isIncentivizedAd||v.instance.publish("event.adUnitClose"))}},{key:"selectSKOptions",value:function(e){e=e||{},this.uri=e.uri||this.VungleCTA.uri;var t=this.uri===this.VungleCTA.uri,n=this.VungleCTA.appStoreId;if(!(t&&this.VungleMRAIDVersion&&null!==n))return this.skOptions.APP_STORE;var i=this.isStoreViewPrepared?this.skOptions.PRODUCT_VIEW:this.skOptions.APP_STORE;return this.skOverlayHelper.selectOptions(e,i,this.isStoreOverlayPrepared)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.addMRAIDEventListeners(),this.VungleMRAIDVersion&&this.onNotifyPresentStoreViewFinished(),this.initialized=!0)}}]),n}(Cn),In=function(){return Object.freeze(se().getReplacementTokens())},An=function(){var e=In();if(!e.REAL_START_MUTED)return e.START_MUTED;if(G()!==X.iOS)return e.START_MUTED;var t=j.a.valid(j.a.coerce(W()));return j.a.satisfies(t,"6.10.1 - 6.10.3")?e.REAL_START_MUTED:e.START_MUTED};function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(){return(xn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Pn(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Pn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Nn(e)););return e}function Rn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ln(this,n)}}function Ln(e,t){if(t&&("object"===Bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function zn(e,t,n){return t&&jn(e.prototype,t),n&&jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Un=function(){function e(){Mn(this,e),this.eventDispatcher=v.instance,this.vungleData={partnerName:"Vungle",partnerVersion:"1.0"},this.mraidObject=new ie,this.sessionClient=null,this.verificationScriptResource=null,this.partner=null,this.context=null,this.adEvents=null,this.mediaEvents=null,this.adSession=null,this.funcsOnImpression=[],this.sessionStarted=!1,this.initialized=!1,this.omsdkReady=!1}return zn(e,[{key:"init",value:function(e){var t=this.mraidObject.VungleMRAIDBridgeExt.getReplacementTokens();if(!t||!t.OM_SDK_DATA)throw new Error("Tokens OM_SDK_DATA not present");var n=JSON.parse(atob(t.OM_SDK_DATA));if(!n.vendorURL||!n.vendorKey)throw new Error("vendorURL, vendorKey not present");try{this.sessionClient=window.OmidSessionClient.default}catch(e){throw new Error("Failed to load OmidSessionClient script")}if(!this.sessionClient)throw new Error("Loaded OmidSessionClient script, but failed to find default class.");var i=this.sessionClient,o=i.AdSession,r=i.Partner,s=i.Context,a=i.VerificationScriptResource,l=i.AdEvents,c=i.MediaEvents;this.verificationScriptResource=new a(n.vendorURL,n.vendorKey,n.params);var u=this.mraidObject.VungleMRAIDExt.getSDKVersion();if(this.partner=new r(this.vungleData.partnerName,u||this.vungleData.partnerVersion),this.context=new s(this.partner,[this.verificationScriptResource]),null!=e&&this.context.setVideoElement(e),this.adSession=new o(this.context),!(this.adSession&&this.adSession.isSupported&&this.adSession.isSupported()))throw new Error("ad session not present");this.adEvents=new l(this.adSession),this.mediaEvents=new c(this.adSession),this.adSession.registerSessionObserver(this.onSessionChange.uuidBind(this))}},{key:"eventDrain",value:function(){this.funcsOnImpression.forEach((function(e){e()})),this.funcsOnImpression=[]}},{key:"pushOrCallFunc",value:function(e){this.omsdkReady?e():this.funcsOnImpression.push(e)}},{key:"onSessionSubscribeEvents",value:function(){this.eventDispatcher.subscribe("event.downloadButtonClick",this.onDownloadButtonClick.uuidBind(this))}},{key:"onSessionUnsubscribeEvents",value:function(){this.eventDispatcher.unsubscribe("event.downloadButtonClick",this.onDownloadButtonClick)}},{key:"onSessionChange",value:function(e){console.log("Session change event was triggered",e)}},{key:"onDownloadButtonClick",value:function(){var e=this;this.pushOrCallFunc((function(){e.mediaEvents.adUserInteraction("click")}))}}]),e}(),Hn=function(e){Rn(n,e);var t=Vn(n);function n(e){var i;return Mn(this,n),(i=t.call(this,e)).checkpoints=["start","firstQuartile","midpoint","thirdQuartile","complete"],i.checkpointsReached=[],i.videoViewedPerSecond=0,i.volume=0,i.vastProperties=null,i.isBuffering=!1,i.isSkippable=!1,i}return zn(n,[{key:"toVideoCheckpointsIndex",value:function(e,t){var n=100*(t-e<=.5?1:(Math.floor(e/t*4)/4).toFixed(2));return 0===n?0:25===n?1:50===n?2:75===n?3:100===n?4:void 0}},{key:"init",value:function(e){if(!this.initialized)try{this.initialized=!0,xn(Nn(n.prototype),"init",this).call(this,e),this.onSessionSubscribeEvents(),this.adSession.setCreativeType("video"),this.adSession.setImpressionType("loaded")}catch(e){console.error(e)}}},{key:"onSessionSubscribeEvents",value:function(){xn(Nn(n.prototype),"onSessionSubscribeEvents",this).call(this),this.eventDispatcher.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),this.eventDispatcher.subscribe("event.videoSoundUpdate",this.onVideoSoundUpdate.uuidBind(this)),this.eventDispatcher.subscribe("event.videoBuffering",this.onVideoBuffering.uuidBind(this)),this.eventDispatcher.subscribe("event.videoSuspend",this.onVideoBufferingForLowPowerMode.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPlayTimeupdate",this.onVideoTimeUpdate.uuidBind(this)),this.eventDispatcher.subscribe("event.videoStateChanged",this.onVideoStateChanged.uuidBind(this)),this.eventDispatcher.subscribe("event.videoDisplayState",this.onVideoDisplayState.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPageClose",this.onVideoPageClose.uuidBind(this))}},{key:"onSessionUnsubscribeEvents",value:function(){xn(Nn(n.prototype),"onSessionUnsubscribeEvents",this).call(this),this.eventDispatcher.unsubscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable),this.eventDispatcher.unsubscribe("event.videoSoundUpdate",this.onVideoSoundUpdate),this.eventDispatcher.unsubscribe("event.videoBuffering",this.onVideoBuffering),this.eventDispatcher.unsubscribe("event.videoSuspend",this.onVideoBufferingForLowPowerMode),this.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint),this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoTimeUpdate),this.eventDispatcher.unsubscribe("event.videoStateChanged",this.onVideoStateChanged),this.eventDispatcher.unsubscribe("event.videoDisplayState",this.onVideoDisplayState),this.eventDispatcher.unsubscribe("event.videoPageClose",this.onVideoPageClose)}},{key:"onSessionStarted",value:function(){if(this.sessionStarted&&this.initialized&&this.duration&&!this.omsdkReady){this.adEvents.impressionOccurred(),this.omsdkReady=!0;var e=this.mraidObject.VungleMRAIDExt.getIncentivized(),t=this.mraidObject.VungleMRAIDBridgeExt.getReplacementTokens()[e?"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS":"CLOSE_BUTTON_DELAY_SECONDS"];this.isSkippable="9999"!=="".concat(t)&&this.duration>parseFloat(t),this.vastProperties=new this.sessionClient.VastProperties(this.isSkippable,0,!0,"preroll"),this.adEvents.loaded(this.vastProperties),this.eventDrain()}}},{key:"onSessionChange",value:function(e){if("sessionStart"===e.type)return this.sessionStarted=!0,void this.onSessionStarted();"sessionError"!==e.type&&"sessionFinish"===e.type&&this.onSessionUnsubscribeEvents()}},{key:"onVideoCheckpoint",value:function(e){var t=this;this.pushOrCallFunc((function(){t.isBuffering&&(t.isBuffering=!1,t.mediaEvents.bufferFinish());for(var n=t.toVideoCheckpointsIndex(e.currentTime,e.duration),i=0;i<=n;i++)if(void 0===t.checkpointsReached[i]&&e.currentTime>0&&e.duration&&"number"==typeof e.duration){if(t.checkpointsReached[i]=!0,0===n)return t.volume="true"===An()?0:1,void t.mediaEvents.start(t.duration,t.volume);t.mediaEvents[t.checkpoints[i]]()}!0===t.checkpointsReached[t.checkpoints.length-1]&&t.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",t.onVideoCheckpoint)}))}},{key:"onVideoTimeUpdate",value:function(){this.onSessionStarted()}},{key:"onVideoSoundUpdate",value:function(e){var t=this;this.pushOrCallFunc((function(){t.volume="mute"===e?0:1,t.mediaEvents.volumeChange(t.volume)}))}},{key:"onVideoBuffering",value:function(){this.videoBuffering()}},{key:"onVideoBufferingForLowPowerMode",value:function(){this.videoBuffering()}},{key:"videoBuffering",value:function(){var e=this;this.isBuffering||(this.pushOrCallFunc((function(){e.mediaEvents.bufferStart()})),this.isBuffering=!0)}},{key:"onVideoStateChanged",value:function(e){var t=this;this.pushOrCallFunc((function(){t.checkpointsReached[0]&&("pause"!==e?t.mediaEvents.resume():t.mediaEvents.pause())}))}},{key:"onVideoDisplayState",value:function(e){var t=this;this.pushOrCallFunc((function(){t.mediaEvents.playerStateChange(e)}))}},{key:"onVideoMetadataAvailable",value:function(e){this.duration=e.duration,this.onSessionStarted()}},{key:"onVideoPageClose",value:function(){var e=this;this.pushOrCallFunc((function(){e.isSkippable&&e.mediaEvents.skipped()}))}}]),n}(Un),Fn=n(3),Xn=n.n(Fn);function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function $n(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Zn=function(){function e(t){Gn(this,e),t=t||{fallbackLng:"en",resources:{}},this.lng=(t.language||navigator.language||navigator.userLanguage).replace("-","_"),this.fallbackLng=t.fallbackLng,this.resources=t.resources,this.locale=t.locale||this.lng}return $n(e,[{key:"translation",get:function(){if(this.resources[this.lng]&&this.resources[this.lng].translation)return this.resources[this.lng].translation;try{var e=this.lng.split("_")[0];return this.resources[e]&&this.resources[e].translation?this.resources[e].translation:this.resources[this.fallbackLng].translation}catch(e){return null}}},{key:"styling",get:function(){if(this.resources[this.locale]&&this.resources[this.locale].styling)return this.resources[this.locale].styling;try{var e=this.locale.split("_")[0];return this.resources[e]&&this.resources[e].styling?this.resources[e].styling:this.resources[this.fallbackLng].styling}catch(e){return null}}},{key:"transform",value:function(e,t){return this[t]&&this[t][e]?this[t][e]:this.resources[this.fallbackLng]&&this.resources[this.fallbackLng][t][e]?this.resources[this.fallbackLng][t][e]:e}},{key:"t",value:function(e){return this.transform(e,"translation")}},{key:"s",value:function(e){return this.transform(e,"styling")}}]),e}(),Jn=function(){function e(){Gn(this,e)}return $n(e,null,[{key:"createView",value:function(e,t){return e(qn(qn({},t),{},{START_MUTED:An()}))}}]),e}();Handlebars.registerHelper("equalDef",(function(e,t,n,i){if(arguments.length<4)throw new Error("Handlebars Helper equal needs 3 parameters");return void 0===e&&(e=n),e!==t?i.inverse(this):i.fn(this)})),Handlebars.registerHelper("equal",(function(e,t,n){if(arguments.length<3)throw new Error("Handlebars Helper equal needs 2 parameters");return e!==t?n.inverse(this):n.fn(this)})),Handlebars.registerHelper("i18nt",(function(e,t){window.vungle.i18n||(window.vungle.i18n=new Zn(window.vungle.i18nData));var n=window.vungle.i18n.t(t||e);return new Handlebars.SafeString(n===e?t:n)})),Handlebars.registerHelper("i18ns",(function(e,t){window.vungle.i18n||(window.vungle.i18n=new Zn(window.vungle.i18nData));var n=window.vungle.i18n.s(t||e);return new Handlebars.SafeString(n===e?t:n)}));var Qn=Jn,ei={Video:["MAIN_VIDEO"],RtbEndcard:["EC_HTML","EC_IMAGE"]},ti=function(){return window.vungleTokens},ni=function(e){var t=document.querySelector("#Video .footer .download"),n=document.querySelector("#LoopingVideo .ad-container"),i=(null!=t?t:n).classList;e?i.remove("hide"):i.add("hide")},ii=function(e){var t=document.querySelector(".overlay-cta");t&&(t.style.pointerEvents=e?"auto":"none",t.className=e?"overlay-cta":"overlay-cta hide")},oi=function(){var e,t,n,i,o,r;window.vungleTokens=(null===(e=window)||void 0===e||null===(t=e.vungle)||void 0===t||null===(n=t.mraidBridgeExt)||void 0===n||null===(i=n.getReplacementTokens)||void 0===i?void 0:i.call(n))||(null===(o=window)||void 0===o||null===(r=o.vungle)||void 0===r?void 0:r.tokensDev);var s=window.vungleTokens,a=s.SKOVERLAY_AUTO,l=s.FULL_CTA_OPTION,c=s.FULL_CTA,u=s.VIDEO_SHOW_CTA,h=s.CTA_BUTTON_URL,d=["adv_pref","fsc_on","fsc_off"],p=l,f=a,v=c,y=function(){return"adv_pref"===p&&"true"===f&&cn()};window.vungleTokens.APP_STORE_ID||(window.vungleTokens.APP_STORE_ID=function(e){if(!e)return null;var t=e.match(/\/id([0-9]*)/i);return t&&t[1]?t[1]:null}(h));var m=function(){return!d.includes(p)||!y()&&(("adv_pref"===p||"fsc_on"===p)&&("true"===f||"true"===v))};if(y()){var g=ti().SKOVERLAY_DELAY_SECONDS&&"default"!==ti().SKOVERLAY_DELAY_SECONDS?ti().SKOVERLAY_DELAY_SECONDS:"5";window.vungleTokens.SKOVERLAY_DELAY_SECONDS=1e3*parseInt(g,10)}window.addEventListener("DOMContentLoaded",(function(){ii(m()),y()&&(ni(!1),ii(!1),document.querySelector("#dynamic").addEventListener("vungle.events.storeoverlay.visible",(function(){var e=document.querySelector("#LoopingVideo .ad-container");ni("true"===u||e),ii(!0)})))}))};function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ai=function(){return window.skOverlayTimerId},li=Object.freeze({position:"bottom",dismissible:!0}),ci=function(){var e="true"===ti().SKOVERLAY_AUTO&&"adv_pref"===ti().FULL_CTA_OPTION,t=null==ai();return e&&t&&cn},ui=function(){var e=ti(),t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},li);return"default"!==e.SKOVERLAY_POSITION&&(t.position=e.SKOVERLAY_POSITION),"default"!==e.SKOVERLAY_DISMISSIBLE&&(t.dismissible=!("false"===e.SKOVERLAY_DISMISSIBLE)),t},hi=function(){var e=ui(),t=ti().APP_STORE_ID,n=ti().MMP_AUTO_CLICK;t&&("true"===n&&(window.vungle.mraidBridgeExt.notifyTPAT("postroll.click"),window.vungle.mraidBridgeExt.notifyTPAT("clickUrl"),window.vungle.mraidBridgeExt.notifyEventValuePairEvent("postroll.click",1),window.vungle.mraidBridgeExt.notifyEventValuePairEvent("skoAutoShow")),window.vungle.mraidExt.presentStoreOverlayView(t,e))},di=function(){var e=parseInt(ti().SKOVERLAY_AUTO_CLOSE,10);e>0&&(e<5&&(e=5),setTimeout((function(){window.vungle.mraidExt.dismissStoreOverlayView(ti().APP_STORE_ID)}),1e3*e))},pi=function(e){if(ci()){var t=function(e){window.skOverlayTimerId=setTimeout((function(){hi(),di()}),e)};if(e&&"function"==typeof e.getVideoPlayerObject){var n=e.getVideoPlayerObject().getElement(),i=ti().SKOVERLAY_DELAY_SECONDS/1e3,o=setInterval((function(){n.currentTime>i&&(clearInterval(o),hi(),di())}),100);v.instance.subscribe("event.closeButtonClick",(function(){clearInterval(o);var e=i-n.currentTime;e>0&&t(1e3*e)}))}else t(ti().SKOVERLAY_DELAY_SECONDS)}},fi=function(){var e=ai();e&&clearTimeout(e)},vi=function(){if(cn()){var e=ti().APP_STORE_ID;e&&window.vungle.mraidExt.dismissStoreOverlayView(e)}};n(14);function yi(e){return(yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(e){return function(e){if(Array.isArray(e))return gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function bi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wi(e,t){return(wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Oi(e);if(t){var o=Oi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ti(this,n)}}function Ti(e,t){if(t&&("object"===yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ci=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wi(e,t)}(r,e);var t,n,i,o=Ei(r);function r(e){var t,n=e.pages,i=e.components,s=e.controllers,a=e.config,l=e.extensions,c=void 0===l?{}:l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this)).initialized=!1,t.config=a||{checkConsent:!0},t.pageIndex=0,t.pageControllers=[],t.adTracker=new Jt,t.gestureTracker=new on,t.device=new On,t.extensions=c,t.pages=null!=n?n:[],t.components=["DialogBox","GDPRDialogBox"].concat(mi(i||[])),t.controllers=s,t.addInitialEventListener(),t}return t=r,(n=[{key:"showSpinner",value:function(e){document.querySelector("#spinner").style.display=e?"block":"none"}},{key:"addInitialEventListener",value:function(){this.onInitialViewportChange=this.onInitialViewportChange.bind(this),window.addEventListener("resize",this.onInitialViewportChange,!1)}},{key:"addEventListeners",value:function(){window.addEventListener("resize",this.onViewportChange.bind(this),!1),setTimeout((function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e)}))}},{key:"addMRAIDEventListeners",value:function(){this.VungleMRAID.addEventListener("viewableChange",this.onAdViewableChange.bind(this)),this.DynamicElement.addEventListener("vungle.events.request.close",this.onRequestCloseAd.bind(this)),this.DynamicElement.addEventListener("vungle.events.installationStatus.updated",this.onInstallationStatusUpdate.bind(this))}},{key:"subscribeToEvents",value:function(){v.instance.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),v.instance.subscribe("event.adUnitClose",this.onAdUnitClose.uuidBind(this)),v.instance.subscribe("event.privacyButtonClick",this.onPrivacyButtonClick.uuidBind(this)),v.instance.subscribe("event.dismissPage",this.onDismissPage.uuidBind(this)),v.instance.subscribe("event.dismissIncentivizedAdPage",this.onDismissIncentivizedAdPage.uuidBind(this)),v.instance.subscribe("event.downloadButtonClick",this.onDownloadButtonClick.uuidBind(this)),v.instance.subscribe("event.installButtonClick",this.onInstallButtonClick.uuidBind(this)),v.instance.subscribe("event.openButtonClick",this.onOpenButtonClick.uuidBind(this)),v.instance.subscribe("event.cancelDownloadButtonClick",this.onCancelDownloadButtonClick.uuidBind(this)),v.instance.subscribe("event.gesture",this.onGesture.uuidBind(this)),v.instance.subscribe("event.gdprConsent",this.onGDPRConsent.uuidBind(this))}},{key:"initializeAdTracker",value:function(){this.adTracker.init({tpat:this.VungleMRAIDBridgeExt.notifyTPAT,successfulViewAd:this.VungleMRAIDBridgeExt.notifySuccessfulViewAd,gesture:this.VungleMRAIDBridgeExt.notifyUserInteraction,eventValuePair:this.VungleMRAIDBridgeExt.notifyEventValuePairEvent})}},{key:"setHtml",value:function(e){this.DynamicElement.innerHTML=function(){for(var t,n=this.pages.concat(this.components),i="",o=0,r=n.length;o<r;o++)t=window.vungle.templates[n[o]].template,i+=Qn.createView(t,e);return i}.bind(this)()}},{key:"createPageControllers",value:function(){for(var e,t=0,n=this.pages.length;t<n;t++){var i,o=this.pages[t],r=null!==(i=this.extensions[o])&&void 0!==i?i:{};r.viewsCount=this.pages.length,e=new this.controllers[o]({selector:"#".concat(o),name:o,number:t,isIncentivized:this.isIncentivizedAd,extensions:r}),this.pageControllers.push(e)}}},{key:"showAd",value:function(){this.isConsentRequired()&&this.config.checkConsent?this.showGDPR():this.showPage(this.pageIndex)}},{key:"getPage",value:function(e){return this.pageControllers[e]}},{key:"currentPage",get:function(){return this.getPage(this.pageIndex)}},{key:"showPage",value:function(e){var t=this.getPage(e);this.device.platform.prepare(t),t.init(),t.show()}},{key:"hidePage",value:function(e){var t=this.getPage(e);t.init(),t.hide()}},{key:"navigate",value:function(){var e=this;vi(),fi(),this.hidePage(this.pageIndex),-1!==["VideoView","DIView"].indexOf(this.currentPage.clazz)&&v.instance.publish("event.videoPageClose"),setTimeout((function(){if(e.pageControllers.length>1&&e.pageIndex+1<e.pageControllers.length)return e.pageIndex+=1,void e.showPage(e.pageIndex);e.closeAdUnit()}))}},{key:"closeAdUnit",value:function(){window.vungle.flexFeed||this.VungleMRAID.close()}},{key:"showGDPR",value:function(){this.currentPage.getGDPRDialogBoxObject().init(),this.currentPage.getGDPRDialogBoxObject().show()}},{key:"adUnitVisible",value:function(){document.querySelector("#dynamic").className=[document.querySelector("#dynamic").className,this.os,this.osVersion].join(" ").trim(),this.showSpinner(!1)}},{key:"onAdUnitClose",value:function(){this.closeAdUnit()}},{key:"onRequestCloseAd",value:function(){this.VungleMRAIDBridgeExt.getIsVungleAd()&&v.instance.publish("event.requestToCloseAd")}},{key:"onInstallationStatusUpdate",value:function(e){v.instance.publish("event.installationStatusUpdate",e.detail)}},{key:"onAdViewableChange",value:function(){v.instance.publish("event.adViewableChanged",this.VungleMRAID.isViewable()?"maximized":"minimized")}},{key:"onInitialViewportChange",value:function(){var e=me.getViewportSize();!this.initialized&&e.height>1&&(this.initialized=!0,this.startAd(),window.removeEventListener("resize",this.onInitialViewportChange))}},{key:"onViewportChange",value:function(){var e=me.getViewportSize();v.instance.publish("event.viewportChange",e)}},{key:"onVideoMetadataAvailable",value:function(){this.onViewportChange()}},{key:"onGesture",value:function(e){this.VungleMRAIDBridgeExt.notifyUserInteraction("event",e)}},{key:"adMRAIDReady",value:function(){oi();var e=ti();if(e.ERUDA){var t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/eruda",t.id="erudaLoader",document.body.appendChild(t),console.log("ERUDA LOADING"),document.querySelector("#erudaLoader").addEventListener("load",(function(){var e=document.createElement("script");e.innerHTML="eruda.init();",document.body.appendChild(e),console.log("ERUDA SHOULD BE ENABLED")})),window.addEventListener("message",(function(e){e.data&&"iframe"===e.data.source&&console.log(e.data.message)}))}"false"===(e.AUTO_LOCALIZE||"true")&&(window.vungle.i18nData=null),this.isIncentivizedAd=this.VungleMRAIDExt.getIncentivized(),this.setHtml(e),this.pages=function(e,t){var n=[];return t.forEach((function(t){var i,o=null!==(i=ei[t])&&void 0!==i?i:[],r=o.filter((function(t){return e[t]}));(0===o.length||r.length>0)&&n.push(t)})),n}(e,this.pages),this.createPageControllers(),"true"===(e.ACTION_TRACKING||"false")&&this.gestureTracker.attach(this.DynamicElement),this.device.init()}},{key:"onPrivacyButtonClick",value:function(e){this.openPrivacyURI(e)}},{key:"onDismissIncentivizedAdPage",value:function(){this.navigate()}},{key:"onDismissPage",value:function(){return-1!==["VideoView","DIView"].indexOf(this.currentPage.clazz)&&this.isIncentivizedAd&&!this.adTracker.successfulViewAdReached?v.instance.publish("event.videoViewDismissPage"):-1!==["CardView"].indexOf(this.currentPage.clazz)&&this.isIncentivizedAd&&!this.adTracker.successfulViewAdReached?v.instance.publish("event.cardViewDismissPage"):void this.navigate()}},{key:"onDownloadButtonClick",value:function(e){this.device.platform.downloadButtonClick(e)}},{key:"onInstallButtonClick",value:function(){this.VungleMRAIDBridgeExt.startDownloadAppOnDevice()}},{key:"onCancelDownloadButtonClick",value:function(){this.VungleMRAIDBridgeExt.cancelDownload()}},{key:"onOpenButtonClick",value:function(){this.VungleMRAIDBridgeExt.openAppInDevice()}},{key:"onGDPRConsent",value:function(){this.showPage(this.pageIndex)}},{key:"startAd",value:function(){var e=this;Xn.a.attach(document.body),this.addEventListeners(),this.initializeAdTracker(),this.addMRAIDEventListeners(),this.subscribeToEvents(),this.showSpinner(!0),this.mraidReadyCheck((function(){e.adMRAIDReady(),e.adUnitVisible(),e.showAd()}))}},{key:"init",value:function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e),pi(this.currentPage)}}])&&bi(t.prototype,n),i&&bi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(oe);function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Si(){return(Si="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Ii(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ii(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ri(e)););return e}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return xi(this,n)}}function xi(e,t){if(t&&("object"===ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pi(e)}function Pi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}window.vungle=window.vungle||{},window.vungle.i18nData=u;var _i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(r,e);var t,n,i,o=Bi(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,{selector:n,name:i,number:s,isIncentivized:l})).muteIconContainer=null,t.progressBar=null,t.video=null,t.videoContainer=null,t.videoPlayerObject=null,t.ctaButtonObject=null,t.onLoadMetaData=t.onLoadMetaData.bind(Pi(t)),t.getVideoPlayerObject().getElement().addEventListener("loadedmetadata",t.onLoadMetaData),t}return t=r,(n=[{key:"clazz",get:function(){return"VideoView"}},{key:"onLoadMetaData",value:function(){this.pauseVideo(),this.getVideoPlayerObject().muteUnmute(!0),this.getVideoPlayerObject().getElement().removeEventListener("loadedmetadata",this.onLoadMetaData)}},{key:"getMuteIconContainer",value:function(){return this.muteIconContainer||(this.muteIconContainer=document.querySelector("#".concat(this.viewName," .mute-icon-container"))),this.muteIconContainer}},{key:"getProgressBar",value:function(){return this.progressBar||(this.progressBar=document.querySelector("#".concat(this.viewName," .progress-bar"))),this.progressBar}},{key:"getVideo",value:function(){return this.video||(this.video=document.querySelector("#".concat(this.viewName," video"))),this.video}},{key:"getVideoContainer",value:function(){return this.videoContainer||(this.videoContainer=document.querySelector("#".concat(this.viewName," .video-container"))),this.videoContainer}},{key:"getVideoPlayerObject",value:function(){return this.videoPlayerObject||(this.videoPlayerObject=new Ce("#".concat(this.viewName," video"))),this.videoPlayerObject}},{key:"onVideoLoadedMetadata",value:function(e){this.videoRatio=e.width/e.height}},{key:"onViewportChange",value:function(){}},{key:"onAdViewableChanged",value:function(e){"minimized"!==e?this.getIncentivizedDialogBoxObject().isVisible()||this.getGDPRDialogBoxObject().isVisible()||this.playVideo():this.pauseVideo()}},{key:"onAlertPrivacy",value:function(){this.pauseVideo(),this.getPrivacyDialogBoxObject().show()}},{key:"onVideoViewDismissPage",value:function(){this.getIncentivizedDialogBoxObject().isVisible()?this.eventDispatcher.publish("event.dismissIncentivizedAdPage"):(this.pauseVideo(),this.getIncentivizedDialogBoxObject().show())}},{key:"onRequestToCloseAd",value:function(){var e=this.getCloseButtonObject();e.isVisible()&&(e instanceof dt&&e.getElement().classList.contains("disable-click")||(this.getGDPRDialogBoxObject().isVisible()?this.pauseVideo():this.getIncentivizedDialogBoxObject().isVisible()?(this.getIncentivizedDialogBoxObject().hide(),this.playVideo()):this.eventDispatcher.publish("event.dismissPage")))}},{key:"onDialogBoxPrimaryButtonClick",value:function(){this.eventDispatcher.publish("event.playVideo")}},{key:"init",value:function(){this.initialized||(Si(Ri(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.requestToCloseAd",this.onRequestToCloseAd.uuidBind(this)),this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged.uuidBind(this)),this.eventDispatcher.subscribe("event.videoViewDismissPage",this.onVideoViewDismissPage.uuidBind(this)),this.initialized=!0)}},{key:"show",value:function(){var e=this;this.getMuteIconContainer().style.opacity=0,Si(Ri(r.prototype),"show",this).call(this),setTimeout((function(){e.getMuteIconContainer().style.opacity=""}))}},{key:"hide",value:function(){this.getVideoPlayerObject().destroy(),Si(Ri(r.prototype),"hide",this).call(this)}},{key:"pauseVideo",value:function(){this.getVideoPlayerObject().pause()}},{key:"playVideo",value:function(){this.getVideoPlayerObject().play()}}])&&Di(t.prototype,n),i&&Di(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}($t);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Li(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Mi(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Mi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hi(e)););return e}function ji(e,t){return(ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ui(this,n)}}function Ui(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(r,e);var t,n,i,o=zi(r);function r(e){var t=e.selector,n=e.name,i=e.number,s=e.isIncentivized,a=void 0!==s&&s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,{selector:t,name:n,number:i,isIncentivized:a})}return t=r,(n=[{key:"clazz",get:function(){return"EndcardView"}},{key:"onRequestToCloseAd",value:function(){this.getCloseButtonObject().length&&this.getCloseButtonObject().isVisible()&&this.eventDispatcher.publish("event.dismissPage")}},{key:"init",value:function(){this.initialized||(Ni(Hi(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.requestToCloseAd",this.onRequestToCloseAd.uuidBind(this)),this.initialized=!0)}}])&&Li(t.prototype,n),i&&Li(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}($t);n(15),n(16);var Xi=class extends _i{constructor({selector:e,name:t,number:n,isIncentivized:i=!1,extensions:o={}}){super({selector:e,name:t,number:n,isIncentivized:i}),this.footer=null,this.content=null,this.header=null,this.videoRatio=null,this.ctaButtonObject=null,this.isVideoReady=!1,this.loop=1===o.viewsCount,o.omsdk&&(this.omsdk=new Hn)}getCloseButtonObject(){return this.closeButtonObject||(this.closeButtonObject=new dt({selector:`#${this.viewName} .close-countdown`,isIncentivized:this.isIncentivizedAd,updateCountdownEvent:"event.videoPlayTimeupdate"})),this.closeButtonObject}getHeader(){return this.header||(this.header=document.querySelector(`#${this.viewName} .header`)),this.header}getContent(){return this.content||(this.content=document.querySelector(`#${this.viewName} .content`)),this.content}getCTAButtonObject(){return this.ctaButtonObject||(this.ctaButtonObject=new It({selector:`#${this.viewName} .download`,isIncentivized:this.isIncentivizedAd})),this.ctaButtonObject}getPrivacyDialogBoxObject(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogBoxSecondaryButtonClick"})),this.privacyDialogBoxObject}init(){this.initialized||(this.omsdk&&this.omsdk.init(this.getVideoPlayerObject().getElement()),super.init(),this.eventDispatcher.subscribe("event.videoPlayComplete",this.onVideoPlayComplete.uuidBind(this)),this.eventDispatcher.subscribe("event.closeButtonClick",this.onCloseButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.incentivizedDialogBoxSecondaryButtonClick",this.onIncentivizedDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.privacyDialogBoxSecondaryButtonClick",this.onPrivacyDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.dialogBoxPrimaryButtonClick",this.onDialogBoxPrimaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.omsdk&&this.eventDispatcher.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),this.getFullCTAObject().init(),this.getCloseButtonObject().init(),this.getCTAButtonObject().init(),this.getPrivacyButtonObject().init(),this.loop&&this.getVideo().setAttribute("loop",""),this.getVideoPlayerObject().init(),this.getIncentivizedDialogBoxObject().init(),this.getPrivacyDialogBoxObject().init(),this.initialized=!0)}show(){super.show(),this.getFullCTAObject().show(),this.getVideoPlayerObject().show(),this.getCloseButtonObject().show(),this.getCTAButtonObject().show(),this.getPrivacyButtonObject().show()}hide(){this.getVideoPlayerObject().pause(),this.getFullCTAObject().destroy(),this.getCTAButtonObject().destroy(),this.getCloseButtonObject().destroy(),this.getPrivacyButtonObject().destroy(),setTimeout(()=>{super.hide()},100)}onVideoPlayComplete(){this.loop?(this.getCloseButtonObject().show({forceShow:!0}),this.eventDispatcher.unsubscribe("event.videoPlayComplete",this.onVideoPlayComplete)):this.eventDispatcher.publish("event.dismissPage")}onVideoMetadataAvailable(e){this.duration=e.duration,!this.isVideoReady&&"number"==typeof this.duration&&this.duration&&(this.isVideoReady=!0,this.eventDispatcher.unsubscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable),this.eventDispatcher.publish("event.videoDisplayState","fullscreen"))}};n(17),n(18);function Yi(e){return(Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Wi(){return(Wi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Gi(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ji(e)););return e}function Ki(e,t){return(Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ji(e);if(t){var o=Ji(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Zi(this,n)}}function Zi(e,t){if(t&&("object"===Yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}new Ci({pages:["Video","RtbEndcard"],components:["CloseIcons","SoundIcons","PrivacyIcons","DownloadIcons"],controllers:{Video:Xi,RtbEndcard:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ki(e,t)}(r,e);var t,n,i,o=$i(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,{selector:n,name:i,number:s,isIncentivized:l})).privacyDialogBoxObject=null,t.mraidObject=new ie,t}return t=r,(n=[{key:"getEncodedContent",value:function(){return this.encodedContent||(this.encodedContent=document.getElementById("programmaticAdmHtml").innerHTML),this.encodedContent}},{key:"getImage",value:function(){return this.imageUrl||(this.imageUrl=document.getElementById("image").src),this.imageUrl}},{key:"getEncodedStyle",value:function(){return this.encodedStyle||(this.encodedStyle=document.getElementById("programmaticStyle").innerHTML),this.encodedStyle}},{key:"getProgrammaticIframe",value:function(){return this.programmaticIframe||(this.programmaticIframe=document.getElementById("programmaticIframe")),this.programmaticIframe}},{key:"getCloseButtonObject",value:function(){return this.closeButtonObject||(this.closeButtonObject=new dt({selector:"#".concat(this.viewName," .close-countdown"),isIncentivized:this.isIncentivizedAd,pausePlayCountdownCustom:{event:"event.adViewableChanged",play:"maximized",pause:"minimized"}})),this.closeButtonObject}},{key:"writeAdmHtmlIntoIframe",value:function(){for(var e=this.getProgrammaticIframe().contentWindow,t=e.document,n=atob(this.getEncodedContent()),i=/<script[a-z1-9"'/ =]*?src=(["']|[ -~]")*mraid\.js(["']|[ -~]")>*<(\/|[ -~]\/)script>/gim;i.test(n);)n=n.replace(i,"");e.mraid=this.mraidObject.VungleMRAID,e.open=e.mraid.open,t.open(),t.write(this.getEncodedStyle()+n),t.close()}},{key:"getPrivacyDialogBoxObject",value:function(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogBoxSecondaryButtonClick"})),this.privacyDialogBoxObject}},{key:"init",value:function(){this.initialized||(Wi(Ji(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.closeButtonClick",this.onCloseButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.incentivizedDialogBoxSecondaryButtonClick",this.onIncentivizedDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.privacyDialogBoxSecondaryButtonClick",this.onPrivacyDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.dialogBoxPrimaryButtonClick",this.onDialogBoxPrimaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.getFullCTAObject().init(),this.getCloseButtonObject().init(),this.getPrivacyDialogBoxObject().init(),this.writeAdmHtmlIntoIframe(),this.getPrivacyButtonObject().init(),this.initialized=!0)}},{key:"show",value:function(){Wi(Ji(r.prototype),"show",this).call(this),this.eventDispatcher.publish("event.endcardView"),this.getFullCTAObject().show(),this.getCloseButtonObject().show(),this.getPrivacyButtonObject().show()}},{key:"hide",value:function(){Wi(Ji(r.prototype),"hide",this).call(this),this.getFullCTAObject().destroy(),this.getCloseButtonObject().destroy(),this.getPrivacyButtonObject().destroy()}}])&&qi(t.prototype,n),i&&qi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(Fi)},extensions:{Video:{omsdk:!0}}}).init()}]);</script>
<!-- ######### Start: Used for preview in dashboard ############-->
<script id="preview_vungle_mraid_notify_ready"></script>
<!-- ######### End: Used for preview in dashboard ############-->
</body>
</html>
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=auto">
<title>Vungle Cloud UX Template</title>
<style type="text/css">*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body,html{font-size:100%;height:100%}body{background:#fff;color:#222;cursor:auto;font-family:Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-style:normal;font-weight:400;line-height:1.5;padding:0;position:relative}a:hover{cursor:pointer}img{max-width:100%;height:auto;-ms-interpolation-mode:bicubic;display:inline-block;vertical-align:middle}#map_canvas embed,#map_canvas img,#map_canvas object,.map_canvas embed,.map_canvas img,.map_canvas object,.mqa-display embed,.mqa-display img,.mqa-display object{max-width:none!important}.left{float:left!important}.right{float:right!important}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.invisible{visibility:hidden}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}textarea{height:auto;min-height:50px}.row,select{width:100%}.row{margin:0 auto;max-width:62.5rem}.row:after,.row:before{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{margin:0 -.9375rem;max-width:none;width:auto}.row .row:after,.row .row:before{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{margin:0;max-width:none;width:auto}.row .row.collapse:after,.row .row.collapse:before{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:.9375rem;padding-right:.9375rem;width:100%;float:left}.column+.column:last-child,.column+.columns:last-child,.columns+.column:last-child,.columns+.columns:last-child{float:right}.column+.column.end,.column+.columns.end,.columns+.column.end,.columns+.columns.end{float:left}@media only screen{.small-push-0{position:relative;left:0;right:auto}.small-pull-0{position:relative;right:0;left:auto}.small-push-1{position:relative;left:8.3333333333%;right:auto}.small-pull-1{position:relative;right:8.3333333333%;left:auto}.small-push-2{position:relative;left:16.6666666667%;right:auto}.small-pull-2{position:relative;right:16.6666666667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.3333333333%;right:auto}.small-pull-4{position:relative;right:33.3333333333%;left:auto}.small-push-5{position:relative;left:41.6666666667%;right:auto}.small-pull-5{position:relative;right:41.6666666667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.3333333333%;right:auto}.small-pull-7{position:relative;right:58.3333333333%;left:auto}.small-push-8{position:relative;left:66.6666666667%;right:auto}.small-pull-8{position:relative;right:66.6666666667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.3333333333%;right:auto}.small-pull-10{position:relative;right:83.3333333333%;left:auto}.small-push-11{position:relative;left:91.6666666667%;right:auto}.small-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.small-1{width:8.3333333333%}.small-2{width:16.6666666667%}.small-3{width:25%}.small-4{width:33.3333333333%}.small-5{width:41.6666666667%}.small-6{width:50%}.small-7{width:58.3333333333%}.small-8{width:66.6666666667%}.small-9{width:75%}.small-10{width:83.3333333333%}.small-11{width:91.6666666667%}.small-12{width:100%}.small-offset-0{margin-left:0!important}.small-offset-1{margin-left:8.3333333333%!important}.small-offset-2{margin-left:16.6666666667%!important}.small-offset-3{margin-left:25%!important}.small-offset-4{margin-left:33.3333333333%!important}.small-offset-5{margin-left:41.6666666667%!important}.small-offset-6{margin-left:50%!important}.small-offset-7{margin-left:58.3333333333%!important}.small-offset-8{margin-left:66.6666666667%!important}.small-offset-9{margin-left:75%!important}.small-offset-10{margin-left:83.3333333333%!important}.small-offset-11{margin-left:91.6666666667%!important}.small-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.small-centered,.columns.small-centered{margin-left:auto;margin-right:auto;float:none}.column.small-uncentered,.columns.small-uncentered{float:left;margin-left:0;margin-right:0}.column.small-centered:last-child,.columns.small-centered:last-child{float:none}.column.small-uncentered:last-child,.columns.small-uncentered:last-child{float:left}.column.small-uncentered.opposite,.columns.small-uncentered.opposite{float:right}.row.small-collapse>.column,.row.small-collapse>.columns{padding-left:0;padding-right:0}.row.small-collapse .row{margin-left:0;margin-right:0}.row.small-uncollapse>.column,.row.small-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}}@media only screen and (min-width:20.0625em){.medium-push-0{position:relative;left:0;right:auto}.medium-pull-0{position:relative;right:0;left:auto}.medium-push-1{position:relative;left:8.3333333333%;right:auto}.medium-pull-1{position:relative;right:8.3333333333%;left:auto}.medium-push-2{position:relative;left:16.6666666667%;right:auto}.medium-pull-2{position:relative;right:16.6666666667%;left:auto}.medium-push-3{position:relative;left:25%;right:auto}.medium-pull-3{position:relative;right:25%;left:auto}.medium-push-4{position:relative;left:33.3333333333%;right:auto}.medium-pull-4{position:relative;right:33.3333333333%;left:auto}.medium-push-5{position:relative;left:41.6666666667%;right:auto}.medium-pull-5{position:relative;right:41.6666666667%;left:auto}.medium-push-6{position:relative;left:50%;right:auto}.medium-pull-6{position:relative;right:50%;left:auto}.medium-push-7{position:relative;left:58.3333333333%;right:auto}.medium-pull-7{position:relative;right:58.3333333333%;left:auto}.medium-push-8{position:relative;left:66.6666666667%;right:auto}.medium-pull-8{position:relative;right:66.6666666667%;left:auto}.medium-push-9{position:relative;left:75%;right:auto}.medium-pull-9{position:relative;right:75%;left:auto}.medium-push-10{position:relative;left:83.3333333333%;right:auto}.medium-pull-10{position:relative;right:83.3333333333%;left:auto}.medium-push-11{position:relative;left:91.6666666667%;right:auto}.medium-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.medium-1{width:8.3333333333%}.medium-2{width:16.6666666667%}.medium-3{width:25%}.medium-4{width:33.3333333333%}.medium-5{width:41.6666666667%}.medium-6{width:50%}.medium-7{width:58.3333333333%}.medium-8{width:66.6666666667%}.medium-9{width:75%}.medium-10{width:83.3333333333%}.medium-11{width:91.6666666667%}.medium-12{width:100%}.medium-offset-0{margin-left:0!important}.medium-offset-1{margin-left:8.3333333333%!important}.medium-offset-2{margin-left:16.6666666667%!important}.medium-offset-3{margin-left:25%!important}.medium-offset-4{margin-left:33.3333333333%!important}.medium-offset-5{margin-left:41.6666666667%!important}.medium-offset-6{margin-left:50%!important}.medium-offset-7{margin-left:58.3333333333%!important}.medium-offset-8{margin-left:66.6666666667%!important}.medium-offset-9{margin-left:75%!important}.medium-offset-10{margin-left:83.3333333333%!important}.medium-offset-11{margin-left:91.6666666667%!important}.medium-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.medium-centered,.columns.medium-centered{margin-left:auto;margin-right:auto;float:none}.column.medium-uncentered,.columns.medium-uncentered{float:left;margin-left:0;margin-right:0}.column.medium-centered:last-child,.columns.medium-centered:last-child{float:none}.column.medium-uncentered:last-child,.columns.medium-uncentered:last-child{float:left}.column.medium-uncentered.opposite,.columns.medium-uncentered.opposite{float:right}.row.medium-collapse>.column,.row.medium-collapse>.columns{padding-left:0;padding-right:0}.row.medium-collapse .row{margin-left:0;margin-right:0}.row.medium-uncollapse>.column,.row.medium-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}.push-0{left:0;right:auto}.pull-0,.push-0{position:relative}.pull-0{right:0;left:auto}.push-1{left:8.3333333333%;right:auto}.pull-1,.push-1{position:relative}.pull-1{right:8.3333333333%;left:auto}.push-2{left:16.6666666667%;right:auto}.pull-2,.push-2{position:relative}.pull-2{right:16.6666666667%;left:auto}.push-3{left:25%;right:auto}.pull-3,.push-3{position:relative}.pull-3{right:25%;left:auto}.push-4{left:33.3333333333%;right:auto}.pull-4,.push-4{position:relative}.pull-4{right:33.3333333333%;left:auto}.push-5{left:41.6666666667%;right:auto}.pull-5,.push-5{position:relative}.pull-5{right:41.6666666667%;left:auto}.push-6{left:50%;right:auto}.pull-6,.push-6{position:relative}.pull-6{right:50%;left:auto}.push-7{left:58.3333333333%;right:auto}.pull-7,.push-7{position:relative}.pull-7{right:58.3333333333%;left:auto}.push-8{left:66.6666666667%;right:auto}.pull-8,.push-8{position:relative}.pull-8{right:66.6666666667%;left:auto}.push-9{left:75%;right:auto}.pull-9,.push-9{position:relative}.pull-9{right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}@media only screen and (min-width:22.5625em){.large-push-0{position:relative;left:0;right:auto}.large-pull-0{position:relative;right:0;left:auto}.large-push-1{position:relative;left:8.3333333333%;right:auto}.large-pull-1{position:relative;right:8.3333333333%;left:auto}.large-push-2{position:relative;left:16.6666666667%;right:auto}.large-pull-2{position:relative;right:16.6666666667%;left:auto}.large-push-3{position:relative;left:25%;right:auto}.large-pull-3{position:relative;right:25%;left:auto}.large-push-4{position:relative;left:33.3333333333%;right:auto}.large-pull-4{position:relative;right:33.3333333333%;left:auto}.large-push-5{position:relative;left:41.6666666667%;right:auto}.large-pull-5{position:relative;right:41.6666666667%;left:auto}.large-push-6{position:relative;left:50%;right:auto}.large-pull-6{position:relative;right:50%;left:auto}.large-push-7{position:relative;left:58.3333333333%;right:auto}.large-pull-7{position:relative;right:58.3333333333%;left:auto}.large-push-8{position:relative;left:66.6666666667%;right:auto}.large-pull-8{position:relative;right:66.6666666667%;left:auto}.large-push-9{position:relative;left:75%;right:auto}.large-pull-9{position:relative;right:75%;left:auto}.large-push-10{position:relative;left:83.3333333333%;right:auto}.large-pull-10{position:relative;right:83.3333333333%;left:auto}.large-push-11{position:relative;left:91.6666666667%;right:auto}.large-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.large-1{width:8.3333333333%}.large-2{width:16.6666666667%}.large-3{width:25%}.large-4{width:33.3333333333%}.large-5{width:41.6666666667%}.large-6{width:50%}.large-7{width:58.3333333333%}.large-8{width:66.6666666667%}.large-9{width:75%}.large-10{width:83.3333333333%}.large-11{width:91.6666666667%}.large-12{width:100%}.large-offset-0{margin-left:0!important}.large-offset-1{margin-left:8.3333333333%!important}.large-offset-2{margin-left:16.6666666667%!important}.large-offset-3{margin-left:25%!important}.large-offset-4{margin-left:33.3333333333%!important}.large-offset-5{margin-left:41.6666666667%!important}.large-offset-6{margin-left:50%!important}.large-offset-7{margin-left:58.3333333333%!important}.large-offset-8{margin-left:66.6666666667%!important}.large-offset-9{margin-left:75%!important}.large-offset-10{margin-left:83.3333333333%!important}.large-offset-11{margin-left:91.6666666667%!important}.large-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.large-centered,.columns.large-centered{margin-left:auto;margin-right:auto;float:none}.column.large-uncentered,.columns.large-uncentered{float:left;margin-left:0;margin-right:0}.column.large-centered:last-child,.columns.large-centered:last-child{float:none}.column.large-uncentered:last-child,.columns.large-uncentered:last-child{float:left}.column.large-uncentered.opposite,.columns.large-uncentered.opposite{float:right}.row.large-collapse>.column,.row.large-collapse>.columns{padding-left:0;padding-right:0}.row.large-collapse .row{margin-left:0;margin-right:0}.row.large-uncollapse>.column,.row.large-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}.push-0{left:0;right:auto}.pull-0,.push-0{position:relative}.pull-0{right:0;left:auto}.push-1{left:8.3333333333%;right:auto}.pull-1,.push-1{position:relative}.pull-1{right:8.3333333333%;left:auto}.push-2{left:16.6666666667%;right:auto}.pull-2,.push-2{position:relative}.pull-2{right:16.6666666667%;left:auto}.push-3{left:25%;right:auto}.pull-3,.push-3{position:relative}.pull-3{right:25%;left:auto}.push-4{left:33.3333333333%;right:auto}.pull-4,.push-4{position:relative}.pull-4{right:33.3333333333%;left:auto}.push-5{left:41.6666666667%;right:auto}.pull-5,.push-5{position:relative}.pull-5{right:41.6666666667%;left:auto}.push-6{left:50%;right:auto}.pull-6,.push-6{position:relative}.pull-6{right:50%;left:auto}.push-7{left:58.3333333333%;right:auto}.pull-7,.push-7{position:relative}.pull-7{right:58.3333333333%;left:auto}.push-8{left:66.6666666667%;right:auto}.pull-8,.push-8{position:relative}.pull-8{right:66.6666666667%;left:auto}.push-9{left:75%;right:auto}.pull-9,.push-9{position:relative}.pull-9{right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}.mute-icon-container{top:0;z-index:199}.mute-icon-container,.mute-icon-container .mute-video-wrap,.mute-icon-container .unmute-video-wrap{position:absolute}.mute-icon-container .mute-video,.mute-icon-container .unmute-video{min-width:30px;min-height:30px;width:30px;height:30px}.mute-icon-container .mute-video-wrap,.mute-icon-container .unmute-video-wrap{display:block;padding:10px 30px 30px 10px}.mute-icon-container .hidden{z-index:-1;visibility:hidden}.mute-icon-container.windows-full-screen{margin-top:2.5em!important}#dynamic.windows div:not([id^=Native]) .mute-icon-container .mute-video,#dynamic.windows div:not([id^=Native]) .mute-icon-container .unmute-video{height:7vh;width:7vh;max-width:50px;max-height:50px}@media only screen and (orientation:portrait){#dynamic.windows div:not([id^=Native]) .mute-icon-container .mute-video,#dynamic.windows div:not([id^=Native]) .mute-icon-container .unmute-video{height:7vw;width:7vw}}.progress-bar{position:absolute;bottom:0;margin:auto;width:100%;height:3px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;z-index:199;background:rgba(0,0,0,.2)}.progress-bar span{background:#01b27a;position:absolute;left:0;top:0;height:100%;width:0;display:block}.overlay-video-controller{bottom:0;left:0;position:fixed;right:0;top:0;z-index:200;background-color:rgba(0,0,0,.6)}.overlay-video-controller__holder{width:100%;top:50%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.overlay-video-controller__holder h2{color:#fff;text-align:center;font-weight:400;margin:.3em 0}.overlay-video-controller__icon{width:25%;height:25vw;margin:0 auto;max-width:120px;max-height:120px}.overlay-video-controller__icon svg{width:100%;height:100%}svg .tap-to-play{fill:#fff;stroke:hsla(0,0%,100%,.4);stroke-width:.2}[id^=Native] .header .close{padding:0 0 20px 20px}[id^=Native] .header .close .close-btn{width:30px;height:30px}.header{margin:0;position:absolute;top:0;right:0;width:100%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.header .close,.header .close-countdown{padding:20px 20px 10px 10px;cursor:pointer;position:relative;z-index:200;float:right}.header .close-countdown .close-btn-container,.header .close .close-btn-container{width:1em;height:1em}.header .close-countdown .close-btn-container .close-btn,.header .close .close-btn-container .close-btn{width:100%;height:100%}.header .close .close-btn-text{display:none}.header .close-countdown .close-btn-text{background:rgba(51,51,51,.5);color:#fff;border-radius:50%;text-align:center;margin:-9.5px;display:block;line-height:normal;min-width:35px;min-height:35px}.header .close-countdown .close-btn-text:after,.header .close-countdown .close-btn-text:before{content:"";display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;line-height:0;padding:50% 0}.header .close-countdown .close-btn-text:before{padding-left:8px}.header .close-countdown .close-btn-text:after{padding-right:8px}.header .close-countdown .close-btn-text .dark{background:rgba(51,51,51,.5)}.header .close-countdown .close-btn-text.hide{display:none}.header .close-countdown .close-btn-container{width:1.2em;height:1.2em}div:not([id^=Native]) .closeBtn,div:not([id^=Native]) .closeBtndark{fill:#fff}div:not([id^=Native]) .closeBtnlight{fill:#1d1d1d}div:not([id^=Native]) .closeBtn,div:not([id^=Native]) .closeBtndark,div:not([id^=Native]) .closeBtnlight{stroke:#6c6d6d;stroke-width:26;stroke-miterlimit:10}@media only screen and (min-width:20em)and (min-height:20em){#dynamic.windows div:not([id^=Native]) .closeBtn,#dynamic.windows div:not([id^=Native]) .closeBtndark,#dynamic.windows div:not([id^=Native]) .closeBtnlight{stroke:#fff}#dynamic.windows div:not([id^=Native]) .closeBtnlight{fill:#fff}#dynamic.windows div:not([id^=Native]) .header .close,#dynamic.windows div:not([id^=Native]) .header .close-countdown{background:rgba(51,51,51,.7);padding:.5em .85em .7em;margin:.5em}#dynamic.windows div:not([id^=Native]) .header .close-countdown.windows-full-screen,#dynamic.windows div:not([id^=Native]) .header .close.windows-full-screen{margin-top:2.5em}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-container,#dynamic.windows div:not([id^=Native]) .header .close .close-btn-container{width:30px;height:30px}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text{background:none;border-radius:unset;min-width:unset;min-height:unset;width:30px;height:30px;margin:0;line-height:30px;font-size:20px}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text:after,#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text:before{padding:0}}@media only screen and (min-width:20em)and (min-height:20em)and (max-height:22.5em),only screen and (min-width:20em)and (min-height:20em)and (max-width:22.5em){#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-container,#dynamic.windows div:not([id^=Native]) .header .close .close-btn-container{width:20px;height:20px}#dynamic.windows div:not([id^=Native]) .header .close-countdown.close-show-countdown .close-btn-text,#dynamic.windows div:not([id^=Native]) .header .close.close-show-countdown .close-btn-text{width:20px;height:20px;line-height:20px;font-size:15px}}.footer{bottom:0;margin:0;padding:0;position:absolute;width:100%}.footer .privacy-button{z-index:200;border:1px solid transparent;border-radius:50%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;color:#909090;cursor:pointer;float:left;font-size:2em;height:1em;bottom:4px;left:4px;overflow:hidden;-webkit-transition:background .5s ease-in-out,width .5s ease-in-out .2s,border-radius .2s ease-in-out .25s,border .5s ease-in-out;-o-transition:background .5s ease-in-out,width .5s .2s ease-in-out,border-radius .2s .25s ease-in-out,border .5s ease-in-out;transition:background .5s ease-in-out,width .5s ease-in-out .2s,border-radius .2s ease-in-out .25s,border .5s ease-in-out;width:1em}.footer .privacy-button,.footer .privacy-button span,.footer .privacy-button svg{position:absolute}.footer .privacy-button svg{top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);left:.5em;width:.6em;height:100%}.footer .privacy-button svg.lock-icon{opacity:.6}.footer .privacy-button svg.lock-icon,.footer .privacy-button svg.lock-icon.invert.dark{fill:#bcbcbc}.footer .privacy-button svg.lock-icon.dark,.footer .privacy-button svg.lock-icon.invert.light{fill:#333}.footer .privacy-button.extended svg.lock-icon,.footer .privacy-button.extended svg.lock-icon.dark,.footer .privacy-button.extended svg.lock-icon.light,.footer .privacy-button.reverse svg.lock-icon,.footer .privacy-button.reverse svg.lock-icon.dark,.footer .privacy-button.reverse svg.lock-icon.light{opacity:1;fill:#14cdc8}.footer .privacy-button span{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:#909090;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-size:.4em;height:100%;left:2.6em;white-space:nowrap}.footer .privacy-button span,.footer .privacy-button span .privacy-icon{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.footer .privacy-button span .privacy-icon{position:relative;left:.2em;width:.8em}.footer .privacy-button.extended{background:#fff;width:3.4em;border-radius:25px;border:1px solid rgba(0,0,0,.1)}.footer .privacy-button.reverse{-webkit-transition:background .5s ease-in-out .5s,width .5s ease-in-out,border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s;-o-transition:background .5s .5s ease-in-out,width .5s ease-in-out,border-radius .25s .2s ease-in-out,border .5s .5s ease-in-out;transition:background .5s ease-in-out .5s,width .5s ease-in-out,border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s}.footer .bubble-button{bottom:.8rem;left:.8rem;width:1em;font-size:1.75em;background:#fff;opacity:.7;-webkit-transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out;-o-transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out;transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out}.footer .bubble-button svg.lock-icon{opacity:.7}.footer .bubble-button span{visibility:hidden;left:2.45em}.footer .bubble-button span .privacy-icon{left:0;width:5.5em;margin-bottom:-.2em}.footer .bubble-button.extended,.footer .bubble-button.reverse{border:1px solid rgba(0,0,0,.1);opacity:1}.footer .bubble-button.extended span,.footer .bubble-button.reverse span{visibility:visible}.footer .bubble-button.reverse{-webkit-transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s,opacity .5s ease-in-out;-o-transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s .2s ease-in-out,border .5s .5s ease-in-out,opacity .5s ease-in-out;transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s,opacity .5s ease-in-out}.footer.bottom_right .privacy-button,.footer.top_right .privacy-button{right:4px;left:unset;float:right}.footer.top_left,.footer.top_right{bottom:unset;top:4px}.footer.top_left .privacy-button,.footer.top_right .privacy-button{bottom:unset}#DIALOGBOX{visibility:hidden;position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:#565656;z-index:300;background-color:rgba(0,0,0,.8)}#DIALOGBOX .dialog{width:288px;margin-top:0;padding:0;text-align:center;position:fixed;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}@media only screen and (max-height:20em){#DIALOGBOX .dialog{width:200px}}#DIALOGBOX .dialog .dialog-content{width:100%;position:relative;border-top-width:7px;border-radius:3px;overflow:hidden}#DIALOGBOX .dialog .dialog-content .title-text{color:#fff;padding:8px;font-weight:400;font-size:1.25em}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .title-text{font-size:1em}}#DIALOGBOX .dialog .dialog-content .body-text-container{padding:0;background-color:#fff;overflow:none}#DIALOGBOX .dialog .dialog-content .body-text-container .body-text{margin:0 auto;padding:18px;text-align:center;font-size:1em;line-height:1.35em;font-weight:300}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .body-text-container .body-text{padding:10px;font-size:.8em;line-height:1.25}}#DIALOGBOX .dialog .dialog-content .action-buttons{width:100%;padding:0;background-color:#fff}#DIALOGBOX .dialog .dialog-content .action-buttons button{width:100%;border:none;background:none;padding:8px;font-weight:400;font-size:1rem;text-align:center;text-decoration:none}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .action-buttons button{font-size:.75rem}}#DIALOGBOX .dialog .dialog-content .action-buttons button .action-icon{width:.9em;height:.9em;float:none}#DIALOGBOX .dialog .dialog-content .action-buttons .primary-button{border-top:3px solid rgba(0,0,0,.1);padding:0;color:#fff}#DIALOGBOX .dialog .dialog-content .action-buttons .primary-button button.primary{text-transform:uppercase}#DIALOGBOX .dialog .dialog-content .action-buttons .secondary-button{padding:0;border-top:3px solid rgba(0,0,0,.1)}#GDPRDialogBox{visibility:hidden;top:0;left:0;height:100%;text-align:center;overflow:hidden;z-index:300;background-color:#fff}#GDPRDialogBox,#GDPRDialogBox .dialog{position:absolute;width:100%}#GDPRDialogBox .app-icon svg{height:17vw;width:17vw;padding:.5em;background:#0493c9;border-radius:50%;max-width:6em;max-height:6em}#GDPRDialogBox .dialog-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}#GDPRDialogBox .title-text{font-weight:600;word-wrap:break-word;font-size:5.5vw;margin:.5em 12.5%}#GDPRDialogBox .body-text{padding:0 12.5%;overflow:hidden;text-align:center;font-weight:400;color:#1c1c1c;word-wrap:break-word;font-size:4.5vw}#GDPRDialogBox .cta{position:absolute;bottom:0;width:100%;line-height:15vw;height:15vw}#GDPRDialogBox .cta button{border:none;background:none;cursor:pointer;width:100%}#GDPRDialogBox .consent-button{display:block;float:right;width:50%;color:#fff;font-size:7.5vw}#GDPRDialogBox .consent-button button{background:#56ae7f}#GDPRDialogBox .no-consent-button{display:block;float:right;width:50%;color:#0493c9;font-size:4.5vw;border-top:1px solid #e8e8e8}@media screen and (max-height:20em){#GDPRDialogBox .app-icon{display:none}}@media screen and (max-height:20em)and (min-aspect-ratio:3/2){#GDPRDialogBox .title-text{font-size:9.5vh}#GDPRDialogBox .body-text{font-size:7vh}}@media screen and (max-width:22.5em){#GDPRDialogBox .title-text{margin:0}#GDPRDialogBox .body-text{padding:0 1em}}@media screen and (min-width:22.5em)and (orientation:landscape){#GDPRDialogBox .dialog{width:75%;height:100%!important;display:block;float:left;bottom:auto;position:relative}#GDPRDialogBox .cta{width:25%;height:100%;display:block;float:left;position:relative;line-height:12vh}#GDPRDialogBox .consent-button,#GDPRDialogBox .no-consent-button{float:unset;width:100%}#GDPRDialogBox .consent-button{font-size:3.5vh;margin:0 0 2vh}#GDPRDialogBox .consent-button button{border-radius:10vh}#GDPRDialogBox .no-consent-button{font-size:2.5vh;border-top:none}#GDPRDialogBox .cta-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;padding:0 6.5% 0 0}#GDPRDialogBox .title-text{font-size:5vh}#GDPRDialogBox .body-text{font-size:4vh}}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}#dynamic,body,html{height:100%;width:100%}body,html{margin:0 auto;background:#000;font-family:-apple-system,Roboto,Segoe UI,Droid Sans,Helvetica,Arial,sans-serif;font-style:normal;position:relative}progress::-webkit-progress-value{background:hsla(0,0%,100%,.8)}.spinner{position:relative;top:50%;width:1em;height:1em;font-size:50px;text-indent:-9999em;overflow:hidden;margin:-25px auto;border-radius:50%;opacity:1;-o-transition:opacity .75s ease-in-out;transition:opacity .75s ease-in-out;-moz-transition:opacity .75s ease-in-out;-webkit-transition:opacity .75s ease-in-out;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:animate-spinner 1.7s ease infinite;animation:animate-spinner 1.7s ease infinite}@-webkit-keyframes animate-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;opacity:.2}5%,95%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff}10%,59%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.087em -.825em 0 -.42em #fff,-.173em -.812em 0 -.44em #fff,-.256em -.789em 0 -.46em #fff,-.297em -.775em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.087em -.825em 0 -.42em #fff,-.173em -.812em 0 -.44em #fff,-.256em -.789em 0 -.46em #fff,-.297em -.775em 0 -.477em #fff}20%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.338em -.758em 0 -.42em #fff,-.555em -.617em 0 -.44em #fff,-.671em -.488em 0 -.46em #fff,-.749em -.34em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.338em -.758em 0 -.42em #fff,-.555em -.617em 0 -.44em #fff,-.671em -.488em 0 -.46em #fff,-.749em -.34em 0 -.477em #fff;opacity:.4}38%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.377em -.74em 0 -.42em #fff,-.645em -.522em 0 -.44em #fff,-.775em -.297em 0 -.46em #fff,-.82em -.09em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.377em -.74em 0 -.42em #fff,-.645em -.522em 0 -.44em #fff,-.775em -.297em 0 -.46em #fff,-.82em -.09em 0 -.477em #fff;opacity:.6}to{-webkit-transform:rotate(1turn);transform:rotate(1turn);-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;opacity:.8}}#dynamic:not(.windows) [data-vgl-tabindex]{outline:none}.ios .radius{border-radius:26%/24%}.android .radius{border-radius:20%}.ellipsis{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;-ms-text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.stopWrapping{white-space:nowrap!important;width:auto!important;position:fixed;visibility:hidden;-webkit-transition:none!important;-o-transition:none!important;transition:none!important;-webkit-animation:none!important;animation:none!important}.overlay-cta{bottom:0;content:"";left:0;position:fixed;right:0;top:0;z-index:100}.truncate{max-width:90%;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.disable-click,.disable-cta{pointer-events:none}#dynamic{position:relative}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3){#dynamic.typeof-ad-native{height:375px;width:244px}}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3)and (orientation:landscape){#dynamic.typeof-ad-native{width:100%;height:244px}}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3){#dynamic #Video{position:relative}#dynamic #Video .footer{position:absolute}}#Video{width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;background:rgba(0,0,0,.7)}#Video,#Video .footer .download,#Video .video-container .video{position:absolute}#Video .content{padding:0;width:100%;height:100%;position:relative;background:#000;overflow:hidden}#Video .content .footer.row,#Video .content .header.row{margin:0}#Video .content .video-container{position:relative;height:100%;width:100%}#Video .content .video-container video{display:block;top:0;bottom:0;right:0;left:0;margin:auto;width:100%;height:100%}#Video .content .footer.row{width:100%}#Video .content .footer .download{bottom:4px;width:50px;height:50px;padding:20px 10px 10px 20px;right:0;line-height:1em;z-index:101;float:right;cursor:pointer}#Video .content .footer .download .download-icon{bottom:10px;height:19px;width:19px}#Video .content .footer .download .cta-button__timer{color:#fff}@-webkit-keyframes endcardAppear{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes endcardAppear{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}#RtbEndcard{height:100%;width:100%;overflow:hidden;-webkit-animation:endcardAppear .5s ease-in-out 1 forwards;animation:endcardAppear .5s ease-in-out 1 forwards}#RtbEndcard .ad-container{height:100%;width:100%;top:0;bottom:0;right:0;left:0;margin:auto;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}#RtbEndcard .ad-container .background-image{width:100%;height:100%}#RtbEndcard .ad-container #programmaticIframe{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%}#RtbEndcard .hidden-encoded-content{display:none}</style>
<!-- OMSDK Session-->
<script src="omsdk.js"></script>
<script src="omsdk-session.js"></script>
<script src="mraid.js"></script>
<script>
if (typeof vungle.mraidExt === "undefined") {
document.write('<scr'+'ipt src="vungle_mraid.js"></sc'+'ript>');
document.write('<scr'+'ipt src="tokenmap.js"></sc'+'ript>');
document.write('<scr'+'ipt src="replacements.js"></sc'+'ript>');
}
</script>
<script>
if (typeof getVungleReplacementTokens === "function") {
var propertiesMap = {
// https://vungle.atlassian.net/browse/DSP-3029
"OS": "os",
"OS_VERSION": "osVersion",
"SDK_VERSION": "sdkVersion",
// https://vungle.atlassian.net/browse/DSP-3051
"CONSENT_TITLE_TEXT": "consentTitleText",
"CONSENT_BODY_TEXT": "consentBodyText",
"CONSENT_ACCEPT_BUTTON_TEXT": "consentAcceptButtonText",
"CONSENT_DENY_BUTTON_TEXT": "consentDenyButtonText"
};
// Get the replacement tokens from the replacements.js file
var vungleReplacementTokens = getVungleReplacementTokens();
function convertTokens(tokens) {
var output = {};
Object.keys(tokens).forEach(function(key) {
output[vungleTokenMap[key]] = tokens[key];
});
return output;
}
// Convert the tokens to an uncompressed/useful form using the token map
var fixedTokens = convertTokens(vungleReplacementTokens);
// Push the tokens into the template
window.vungle.mraidBridge.notifyReadyEvent(fixedTokens);
// Prepare the data for notifyPropertiesChange the SDK should have called
const sdkProperties = {
"isViewable": true,
"placementType": "fullscreen", // SKOverlay requires this to be "fullscreen" on all fullscreen templates and must be one of `"fullscreen", "mrec", "banner"`
"version": "1.0", // Used by OMSDK
"consentAcceptButtonText": "Accept", // This has to come from the ADM somehow...
"consentDenyButtonText": "Deny",
"consentBodyText": "Ads are personalized. Denying would disable it",
"consentTitleText": "Personalized Ads",
"supports":{ // This isn't used
"sms":false,
"storePicture":false,
"inlineVideo":false,
"calendar":false,
"tel":false
},
// https://vungle.atlassian.net/browse/DSP-3051
"incentivized": fixedTokens.hasOwnProperty("INCENTIVIZED") && fixedTokens["INCENTIVIZED"].toLowerCase() === "true"
};
// currentPosition is not used in DT: https://bitbucket.org/search?q=project%3ADT%20getCurrentPosition&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "maxSize" mraid.getMaxSize is not used: https://bitbucket.org/search?q=project%3ADT%20getMaxSize&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "defaultPosition" is not used in DT: https://bitbucket.org/search?q=project%3ADT%20defaultPosition&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "screenSize" is not used in DT: https://bitbucket.org/search?q=project%3ADT%20screenSize&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// Map the token replacements that belong in the notifyPropertiesChange
Object.keys(propertiesMap).forEach(function(key) {
if (fixedTokens.hasOwnProperty(key)) {
sdkProperties[propertiesMap[key]] = fixedTokens[key];
}
});
// Replace the call to notifyPropertiesChange the SDK should have called
window.vungle.mraidBridge.notifyPropertiesChange(sdkProperties);
}
</script>
<script>
(function (window) {
"use strict";
window.asyncLoadJavaScript = function (url, callback) {
var scriptTag = document.createElement("script");
scriptTag.type = "text/javascript";
scriptTag.src = url;
if (scriptTag.readyState) {
scriptTag.onreadystatechange = function () {
if (scriptTag.readyState === "loaded" || scriptTag.readyState === "completed") {
scriptTag.onreadystatechange = null;
callback && callback();
}
};
}
else {
scriptTag.onload = function () {
callback && callback();
};
}
document.getElementsByTagName("head")[0].appendChild(scriptTag);
};
var vgl = window.vungle = window.vungle || {};
vgl.flexFeed = false;
vgl.config = {
cacheBuster: "t=" + (new Date()).getTime() //TODO: remove in future
};
})(window)
</script>
<!-- ######### Start: Used for preview in dashboard ############-->
<script id="preview_vungle_mraid_min_js"></script>
<!-- ######### End: Used for preview in dashboard ############-->
</head>
<body>
<div id="spinner" class="spinner">Loading...</div>
<div id="dynamic">
<!-- the entire ad unit experience will be created dynamically and inserted here -->
</div>
<script>!function(e){"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=0;t[r]&&t[r]!==this;)++r;return Boolean(t[r])}),"function"!=typeof e.closest&&(e.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window.Element.prototype),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t,r=document.createElement("style"),n=document.getElementsByTagName("script")[0];r.type="text/css",r.id="matchmediajs-test",n?n.parentNode.insertBefore(r,n):document.head.appendChild(r),t="getComputedStyle"in window&&window.getComputedStyle(r,null)||r.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return r.styleSheet?r.styleSheet.cssText=n:r.textContent=n,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Handlebars=t():e.Handlebars=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";var n=r(1).default,o=r(2).default;t.__esModule=!0;var a=n(r(3)),i=o(r(36)),u=o(r(5)),l=n(r(4)),s=n(r(37)),c=o(r(43));function f(){var e=new a.HandlebarsEnvironment;return l.extend(e,a),e.SafeString=i.default,e.Exception=u.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=s,e.template=function(t){return s.template(t,e)},e}var d=f();d.create=f,c.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t.__esModule=!0},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.HandlebarsEnvironment=c;var o=r(4),a=n(r(5)),i=r(9),u=r(29),l=n(r(31)),s=r(32);t.VERSION="4.7.2";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function c(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},i.registerDefaultHelpers(this),u.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:l.default,log:l.default.log,registerHelper:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new a.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new a.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){s.resetLoggedProperties()}};var f=l.default.log;t.log=f,t.createFrame=o.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=i,t.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!o.test(e))return e;return e.replace(n,a)},t.isEmpty=function(e){return!e&&0!==e||!(!s(e)||0!==e.length)},t.createFrame=function(e){var t=i({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},n=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(e){return r[e]}function i(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var u=Object.prototype.toString;t.toString=u;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===u.call(e)}),t.isFunction=l;var s=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===u.call(e)};t.isArray=s},function(e,t,r){"use strict";var n=r(6).default;t.__esModule=!0;var o=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function a(e,t){var r=t&&t.loc,i=void 0,u=void 0,l=void 0,s=void 0;r&&(i=r.start.line,u=r.end.line,l=r.start.column,s=r.end.column,e+=" - "+i+":"+l);for(var c=Error.prototype.constructor.call(this,e),f=0;f<o.length;f++)this[o[f]]=c[o[f]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{r&&(this.lineNumber=i,this.endLineNumber=u,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=l,this.endColumn=s))}catch(e){}}a.prototype=new Error,t.default=a,e.exports=t.default},function(e,t,r){e.exports={default:r(7),__esModule:!0}},function(e,t,r){var n=r(8);e.exports=function(e,t,r){return n.setDesc(e,t,r)}},function(e,t){var r=Object;e.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),a.default(e),i.default(e),u.default(e),l.default(e),s.default(e),c.default(e)},t.moveHelperToHooks=function(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])};var o=n(r(10)),a=n(r(11)),i=n(r(24)),u=n(r(25)),l=n(r(26)),s=n(r(27)),c=n(r(28))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var o=r.inverse,a=r.fn;if(!0===t)return a(this);if(!1===t||null==t)return o(this);if(n.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):o(this);if(r.data&&r.ids){var i=n.createFrame(r.data);i.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:i}}return a(t,r)})},e.exports=t.default},function(e,t,r){(function(n){"use strict";var o=r(12).default,a=r(2).default;t.__esModule=!0;var i=r(4),u=a(r(5));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new u.default("Must pass iterator to #each");var r,a=t.fn,l=t.inverse,s=0,c="",f=void 0,d=void 0;function p(t,r,n){f&&(f.key=t,f.index=r,f.first=0===r,f.last=!!n,d&&(f.contextPath=d+t)),c+=a(e[t],{data:f,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(f=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var h=e.length;s<h;s++)s in e&&p(s,s,s===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var v=[],m=e[n.Symbol.iterator](),g=m.next();!g.done;g=m.next())v.push(g.value);for(h=(e=v).length;s<h;s++)p(s,s,s===e.length-1)}else r=void 0,o(e).forEach(function(e){void 0!==r&&p(r,s-1),r=e,s++}),void 0!==r&&p(r,s-1,!0);return 0===s&&(c=l(this)),c})},e.exports=t.default}).call(t,function(){return this}())},function(e,t,r){e.exports={default:r(13),__esModule:!0}},function(e,t,r){r(14),e.exports=r(20).Object.keys},function(e,t,r){var n=r(15);r(17)("keys",function(e){return function(t){return e(n(t))}})},function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(18),o=r(20),a=r(23);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],i={};i[e]=t(r),n(n.S+n.F*a(function(){r(1)}),"Object",i)}},function(e,t,r){var n=r(19),o=r(20),a=r(21),i=function(e,t,r){var u,l,s,c=e&i.F,f=e&i.G,d=e&i.S,p=e&i.P,h=e&i.B,v=e&i.W,m=f?o:o[t]||(o[t]={}),g=f?n:d?n[t]:(n[t]||{}).prototype;for(u in f&&(r=t),r)(l=!c&&g&&u in g)&&u in m||(s=l?g[u]:r[u],m[u]=f&&"function"!=typeof g[u]?r[u]:h&&l?a(s,n):v&&g[u]==s?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(s):p&&"function"==typeof s?a(Function.call,s):s,p&&((m.prototype||(m.prototype={}))[u]=s))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,e.exports=i},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(22);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=n(r(5));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=r(4),a=n(r(5));t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return o.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||o.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,r){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var o=1;null!=r.hash.level?o=r.hash.level:r.data&&null!=r.data.level&&(o=r.data.level),t[0]=o,e.log.apply(e,t)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,r){return e?r.lookupProperty(e,t):e})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=r(4),a=n(r(5));t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");o.isFunction(e)&&(e=e.call(this));var r=t.fn;if(o.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=o.createFrame(t.data)).contextPath=o.appendContextPath(t.data.contextPath,t.ids[0])),r(e,{data:n,blockParams:o.blockParams([e],[n&&n.contextPath])})})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){o.default(e)};var o=n(r(30))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4);t.default=function(e){e.registerDecorator("inline",function(e,t,r,o){var a=e;return t.partials||(t.partials={},a=function(o,a){var i=r.partials;r.partials=n.extend({},i,t.partials);var u=e(o,a);return r.partials=i,u}),t.partials[o.args[0]]=o.fn,a})},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];console[t].apply(console,n)}}};t.default=o,e.exports=t.default},function(e,t,r){"use strict";var n=r(33).default,o=r(12).default,a=r(1).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=n(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=n(null);return r.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,r){return s("function"==typeof e?t.methods:t.properties,r)},t.resetLoggedProperties=function(){o(l).forEach(function(e){delete l[e]})};var i=r(35),u=a(r(31)),l=n(null);function s(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,u.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,r){e.exports={default:r(34),__esModule:!0}},function(e,t,r){var n=r(8);e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){"use strict";var n=r(33).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.extend.apply(void 0,[n(null)].concat(t))};var o=r(4)},function(e,t){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,r){"use strict";var n=r(38).default,o=r(12).default,a=r(1).default,i=r(2).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,r=s.COMPILER_REVISION;if(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)return;if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var n=s.REVISION_CHANGES[r],o=s.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&7===e.compiler[0];var a={strict:function(e,t,r){if(!(e&&t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:r});return e[t]},lookupProperty:function(e,t){var r=e[t];return null==r?r:Object.prototype.hasOwnProperty.call(e,t)?r:d.resultIsAllowed(r,a.protoAccessControl,t)?r:void 0},lookup:function(e,t){for(var r=e.length,n=0;n<r;n++){var o=e[n]&&a.lookupProperty(e[n],t);if(null!=o)return e[n][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:u.escapeExpression,invokePartial:function(r,n,o){o.hash&&(n=u.extend({},n,o.hash),o.ids&&(o.ids[0]=!0));r=t.VM.resolvePartial.call(this,r,n,o);var a=u.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),i=t.VM.invokePartial.call(this,r,n,a);null==i&&t.compile&&(o.partials[o.name]=t.compile(r,e.compilerOptions,t),i=o.partials[o.name](n,a));if(null!=i){if(o.indent){for(var s=i.split("\n"),c=0,f=s.length;c<f&&(s[c]||c+1!==f);c++)s[c]=o.indent+s[c];i=s.join("\n")}return i}throw new l.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var r=e[t];return r.decorator=e[t+"_d"],r},programs:[],program:function(e,t,r,n,o){var a=this.programs[e],i=this.fn(e);return t||o||n||r?a=p(this,e,i,t,r,n,o):a||(a=this.programs[e]=p(this,e,i)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var r=e||t;return e&&t&&e!==t&&(r=u.extend({},t,e)),r},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.data;i._setup(r),!r.partial&&e.useData&&(n=function(e,t){t&&"root"in t||((t=t?s.createFrame(t):{}).root=e);return t}(t,n));var o=void 0,u=e.useBlockParams?[]:void 0;function l(t){return""+e.main(a,t,a.helpers,a.partials,n,u,o)}return e.useDepths&&(o=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(l=v(e.main,l,a,r.depths||[],n,u))(t,r)}return i.isTop=!0,i._setup=function(n){if(n.partial)a.protoAccessControl=n.protoAccessControl,a.helpers=n.helpers,a.partials=n.partials,a.decorators=n.decorators,a.hooks=n.hooks;else{var i=u.extend({},t.helpers,n.helpers);!function(e,t){o(e).forEach(function(r){var n=e[r];e[r]=function(e,t){var r=t.lookupProperty;return f.wrapHelper(e,function(e){return u.extend({lookupProperty:r},e)})}(n,t)})}(i,a),a.helpers=i,e.usePartial&&(a.partials=a.mergeIfNeeded(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=u.extend({},t.decorators,n.decorators)),a.hooks={},a.protoAccessControl=d.createProtoAccessControl(n);var l=n.allowCallsToHelperMissing||r;c.moveHelperToHooks(a,"helperMissing",l),c.moveHelperToHooks(a,"blockHelperMissing",l)}},i._child=function(t,r,n,o){if(e.useBlockParams&&!n)throw new l.default("must pass block params");if(e.useDepths&&!o)throw new l.default("must pass parent depths");return p(a,t,e[t],r,0,n,o)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,r){e?e.call||r.name||(r.name=e,e=r.partials[e]):e="@partial-block"===r.name?r.data["partial-block"]:r.partials[r.name];return e},t.invokePartial=function(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;r.fn&&r.fn!==h&&function(){r.data=s.createFrame(r.data);var e=r.fn;o=r.data["partial-block"]=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return r.data=s.createFrame(r.data),r.data["partial-block"]=n,e(t,r)},e.partials&&(r.partials=u.extend({},r.partials,e.partials))}();void 0===e&&o&&(e=o);if(void 0===e)throw new l.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)},t.noop=h;var u=a(r(4)),l=i(r(5)),s=r(3),c=r(9),f=r(42),d=r(32);function p(e,t,r,n,o,a,i){function u(t){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=i;return!i||t==i[0]||t===e.nullContext&&null===i[0]||(u=[t].concat(i)),r(e,t,e.helpers,e.partials,o.data||n,a&&[o.blockParams].concat(a),u)}return(u=v(r,u,e,i,n,a)).program=t,u.depth=i?i.length:0,u.blockParams=o||0,u}function h(){return""}function v(e,t,r,n,o,a){if(e.decorator){var i={};t=e.decorator(t,i,r,n&&n[0],o,a,n),u.extend(t,i)}return t}},function(e,t,r){e.exports={default:r(39),__esModule:!0}},function(e,t,r){r(40),e.exports=r(20).Object.seal},function(e,t,r){var n=r(41);r(17)("seal",function(e){return function(t){return e&&n(t)?e(t):t}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){if("function"!=typeof e)return e;return function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)}}},function(e,t){(function(r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==r?r:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())}])});</script>
<script>!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){(function(n){var i;t=e.exports=d,i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var o=Number.MAX_SAFE_INTEGER||9007199254740991,r=t.re=[],s=t.src=[],a=t.tokens={},l=0;function c(e){a[e]=l++}c("NUMERICIDENTIFIER"),s[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),s[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),s[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),s[a.MAINVERSION]="("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),s[a.MAINVERSIONLOOSE]="("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),s[a.PRERELEASEIDENTIFIER]="(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),s[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),s[a.PRERELEASE]="(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),s[a.PRERELEASELOOSE]="(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),s[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),s[a.BUILD]="(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),s[a.FULLPLAIN]="v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?",s[a.FULL]="^"+s[a.FULLPLAIN]+"$",c("LOOSEPLAIN"),s[a.LOOSEPLAIN]="[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?",c("LOOSE"),s[a.LOOSE]="^"+s[a.LOOSEPLAIN]+"$",c("GTLT"),s[a.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),s[a.XRANGEIDENTIFIERLOOSE]=s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),s[a.XRANGEIDENTIFIER]=s[a.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),s[a.XRANGEPLAIN]="[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),s[a.XRANGEPLAINLOOSE]="[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGE"),s[a.XRANGE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$",c("XRANGELOOSE"),s[a.XRANGELOOSE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$",c("COERCE"),s[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),r[a.COERCERTL]=new RegExp(s[a.COERCE],"g"),c("LONETILDE"),s[a.LONETILDE]="(?:~>?)",c("TILDETRIM"),s[a.TILDETRIM]="(\\s*)"+s[a.LONETILDE]+"\\s+",r[a.TILDETRIM]=new RegExp(s[a.TILDETRIM],"g");c("TILDE"),s[a.TILDE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$",c("TILDELOOSE"),s[a.TILDELOOSE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$",c("LONECARET"),s[a.LONECARET]="(?:\\^)",c("CARETTRIM"),s[a.CARETTRIM]="(\\s*)"+s[a.LONECARET]+"\\s+",r[a.CARETTRIM]=new RegExp(s[a.CARETTRIM],"g");c("CARET"),s[a.CARET]="^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$",c("CARETLOOSE"),s[a.CARETLOOSE]="^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),s[a.COMPARATORLOOSE]="^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),s[a.COMPARATOR]="^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),s[a.COMPARATORTRIM]="(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",r[a.COMPARATORTRIM]=new RegExp(s[a.COMPARATORTRIM],"g");c("HYPHENRANGE"),s[a.HYPHENRANGE]="^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),s[a.HYPHENRANGELOOSE]="^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),s[a.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)i(u,s[u]),r[u]||(r[u]=new RegExp(s[u]));function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?r[a.LOOSE]:r[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);i("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?r[a.LOOSE]:r[a.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=h,t.valid=function(e,t){var n=h(e,t);return n?n.version:null},t.clean=function(e,t){var n=h(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return i("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],o=e.prerelease[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return f(n,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var n=this.build[t],o=e.build[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return f(n,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new d(e,n).inc(t,i).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=h(e),i=h(t),o="";if(n.prerelease.length||i.prerelease.length){o="pre";var r="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==i[s])return o+s;return r},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),i=p.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1}function v(e,t,n){return new d(e,n).compare(new d(t,n))}function y(e,t,n){return v(e,t,n)>0}function m(e,t,n){return v(e,t,n)<0}function g(e,t,n){return 0===v(e,t,n)}function b(e,t,n){return 0!==v(e,t,n)}function w(e,t,n){return v(e,t,n)>=0}function E(e,t,n){return v(e,t,n)<=0}function T(e,t,n,i){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,i);case"!=":return b(e,n,i);case">":return y(e,n,i);case">=":return w(e,n,i);case"<":return m(e,n,i);case"<=":return E(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof O))return new O(e,t);i("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=v,t.compareLoose=function(e,t){return v(e,t,!0)},t.compareBuild=function(e,t,n){var i=new d(e,n),o=new d(t,n);return i.compare(o)||i.compareBuild(o)},t.rcompare=function(e,t,n){return v(t,e,n)},t.sort=function(e,n){return e.sort((function(e,i){return t.compareBuild(e,i,n)}))},t.rsort=function(e,n){return e.sort((function(e,i){return t.compareBuild(i,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=b,t.gte=w,t.lte=E,t.cmp=T,t.Comparator=O;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof O)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function D(e,t){for(var n=!0,i=e.slice(),o=i.pop();n&&i.length;)n=i.every((function(e){return o.intersects(e,t)})),o=i.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function I(e,t,n,i,o,r,s,a,l,c,u,h,d){return((t=S(n)?"":S(i)?">="+n+".0.0":S(o)?">="+n+"."+i+".0":">="+t)+" "+(a=S(l)?"":S(c)?"<"+(+l+1)+".0.0":S(u)?"<"+l+"."+(+c+1)+".0":h?"<="+l+"."+c+"."+u+"-"+h:"<="+a)).trim()}function A(e,t,n){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(o=0;o<e.length;o++)if(i(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var r=e[o].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function B(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function x(e,t,n,i){var o,r,s,a,l;switch(e=new d(e,i),t=new k(t,i),n){case">":o=y,r=E,s=m,a=">",l=">=";break;case"<":o=m,r=w,s=y,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(B(e,t,i))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],h=null,p=null;if(u.forEach((function(e){e.semver===C&&(e=new O(">=0.0.0")),h=h||e,p=p||e,o(e.semver,h.semver,i)?h=e:s(e.semver,p.semver,i)&&(p=e)})),h.operator===a||h.operator===l)return!1;if((!p.operator||p.operator===a)&&r(e,p.semver))return!1;if(p.operator===l&&s(e,p.semver))return!1}return!0}O.prototype.parse=function(e){var t=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},O.prototype.toString=function(){return this.value},O.prototype.test=function(e){if(i("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return T(e,this.operator,this.semver,this.options)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),B(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),B(e.semver,n,t));var i=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),r=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return i||o||r&&s||a||l},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?r[a.HYPHENRANGELOOSE]:r[a.HYPHENRANGE];e=e.replace(n,I),i("hyphen replace",e),e=e.replace(r[a.COMPARATORTRIM],"$1$2$3"),i("comparator trim",e,r[a.COMPARATORTRIM]),e=(e=(e=e.replace(r[a.TILDETRIM],"$1~")).replace(r[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return i("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){i("caret",e,t);var n=t.loose?r[a.CARETLOOSE]:r[a.CARET];return e.replace(n,(function(t,n,o,r,s){var a;return i("caret",e,t,n,o,r,s),S(n)?a="":S(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":S(r)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(i("replaceCaret pr",s),a="0"===n?"0"===o?">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+o+"."+(+r+1):">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+r+"-"+s+" <"+(+n+1)+".0.0"):(i("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+r+" <"+n+"."+o+"."+(+r+1):">="+n+"."+o+"."+r+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+r+" <"+(+n+1)+".0.0"),i("caret return",a),a}))}(e,t)})).join(" ")}(e,t),i("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?r[a.TILDELOOSE]:r[a.TILDE];return e.replace(n,(function(t,n,o,r,s){var a;return i("tilde",e,t,n,o,r,s),S(n)?a="":S(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":S(r)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(i("replaceTilde pr",s),a=">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+r+" <"+n+"."+(+o+1)+".0",i("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),i("tildes",e),e=function(e,t){return i("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?r[a.XRANGELOOSE]:r[a.XRANGE];return e.replace(n,(function(n,o,r,s,a,l){i("xRange",e,n,o,r,s,a,l);var c=S(r),u=c||S(s),h=u||S(a),d=h;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?n=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(s=0),a=0,">"===o?(o=">=",u?(r=+r+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",u?r=+r+1:s=+s+1),n=o+r+"."+s+"."+a+l):u?n=">="+r+".0.0"+l+" <"+(+r+1)+".0.0"+l:h&&(n=">="+r+"."+s+".0"+l+" <"+r+"."+(+s+1)+".0"+l),i("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),i("xrange",e),e=function(e,t){return i("replaceStars",e,t),e.trim().replace(r[a.STAR],"")}(e,t),i("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new O(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return D(n,t)&&e.set.some((function(e){return D(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1},t.satisfies=B,t.maxSatisfying=function(e,t,n){var i=null,o=null;try{var r=new k(t,n)}catch(e){return null}return e.forEach((function(e){r.test(e)&&(i&&-1!==o.compare(e)||(o=new d(i=e,n)))})),i},t.minSatisfying=function(e,t,n){var i=null,o=null;try{var r=new k(t,n)}catch(e){return null}return e.forEach((function(e){r.test(e)&&(i&&1!==o.compare(e)||(o=new d(i=e,n)))})),i},t.minVersion=function(e,t){e=new k(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var i=0;i<e.set.length;++i){e.set[i].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return x(e,t,"<",n)},t.gtr=function(e,t,n){return x(e,t,">",n)},t.outside=x,t.prerelease=function(e,t){var n=h(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var i;(i=r[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r[a.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;r[a.COERCERTL].lastIndex=-1}else n=e.match(r[a.COERCE]);if(null===n)return null;return h(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}).call(this,n(11))},function(e,t,n){var i;
/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */!function(o,r,s,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(E(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var g=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&void 0===e[i[o]])&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),b=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&l(i,n)}function E(e,t){return function(){return e.apply(t,arguments)}}function T(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function O(e,t){return void 0===e?t:e}function C(e,t,n){y(I(t),(function(t){e.addEventListener(t,n,!1)}))}function k(e,t,n){y(I(t),(function(t){e.removeEventListener(t,n,!1)}))}function D(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return e.indexOf(t)>-1}function I(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function B(e){return Array.prototype.slice.call(e,0)}function x(e,t,n){for(var i=[],o=[],r=0;r<e.length;){var s=t?e[r][t]:e[r];A(o,s)<0&&i.push(e[r]),o[r]=s,r++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function P(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),r=0;r<c.length;){if((i=(n=c[r])?n+o:t)in e)return i;r++}}var R=1;function _(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var V="ontouchstart"in o,L=void 0!==P(o,"PointerEvent"),N=V&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M=["x","y"],j=["clientX","clientY"];function z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){T(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,r=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=t.center=F(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=W(a,l),t.distance=q(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},o=e.prevDelta||{},r=e.prevInput||{};1!==t.eventType&&4!==r.eventType||(o=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-i.x),t.deltaY=o.y+(n.y-i.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var c=X(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=d(c.x)>d(c.y)?c.x:c.y,t.scale=s?(u=s.pointers,h=i,q(h[0],h[1],j)/q(u[0],u[1],j)):1,t.rotation=s?function(e,t){return W(t[1],t[0],j)+W(e[1],e[0],j)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,r,s=e.lastInterval||t,a=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(a>25||void 0===s.velocity)){var l=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,u=X(a,l,c);i=u.x,o=u.y,n=d(u.x)>d(u.y)?u.x:u.y,r=Y(l,c),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=r}(n,t);var u,h;var f=e.element;D(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:F(t),deltaX:e.deltaX,deltaY:e.deltaY}}function F(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,i=0,o=0;o<t;)n+=e[o].clientX,i+=e[o].clientY,o++;return{x:h(n/t),y:h(i/t)}}function X(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function q(e,t,n){n||(n=M);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(i*i+o*o)}function W(e,t,n){n||(n=M);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,i)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(_(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,z.apply(this,arguments)}w(K,z,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var $={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",Q="pointermove pointerup pointercancel";function ee(){this.evEl=J,this.evWin=Q,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(J="MSPointerDown",Q="MSPointerMove MSPointerUp MSPointerCancel"),w(ee,z,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),o=$[i],r=Z[e.pointerType]||e.pointerType,s="touch"==r,a=A(t,e.pointerId,"pointerId");1&o&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):12&o&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(a,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,z.apply(this,arguments)}function ie(e,t){var n=B(e.touches),i=B(e.changedTouches);return 12&t&&(n=x(n.concat(i),"identifier",!0)),[n,i]}w(ne,z,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=ie.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function re(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},z.apply(this,arguments)}function se(e,t){var n=B(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=B(e.changedTouches),a=[],l=this.target;if(r=n.filter((function(e){return D(e.target,l)})),1===t)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),12&t&&delete i[s[o].identifier],o++;return a.length?[x(r.concat(a),"identifier",!0),a]:void 0}w(re,z,{handler:function(e){var t=oe[e.type],n=se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ae(){z.apply(this,arguments);var e=E(this.handler,this);this.touch=new re(this.manager,e),this.mouse=new K(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(t-o.x),s=Math.abs(n-o.y);if(r<=25&&s<=25)return!0}return!1}w(ae,z,{handler:function(e,t,n){var i="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)le.call(this,t,n);else if(o&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=P(u.style,"touchAction"),de=void 0!==he,pe=function(){if(!de)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function fe(e,t){this.manager=e,this.set(t)}fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&pe[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return y(this.manager.recognizers,(function(t){T(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(S(e,"none"))return"none";var t=S(e,"pan-x"),n=S(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(S(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,o=S(i,"none")&&!pe.none,r=S(i,"pan-y")&&!pe["pan-y"],s=S(i,"pan-x")&&!pe["pan-x"];if(o){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!s||!r)return o||r&&6&n||s&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function ve(e){this.options=l({},this.defaults,e||{}),this.id=R++,this.manager=null,this.options.enable=O(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ye(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ge(e,t){var n=t.manager;return n?n.get(e):e}function be(){ve.apply(this,arguments)}function we(){be.apply(this,arguments),this.pX=null,this.pY=null}function Ee(){be.apply(this,arguments)}function Te(){ve.apply(this,arguments),this._timer=null,this._input=null}function Oe(){be.apply(this,arguments)}function Ce(){be.apply(this,arguments)}function ke(){ve.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function De(e,t){return(t=t||{}).recognizers=O(t.recognizers,De.defaults.preset),new Se(e,t)}ve.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ge(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=ge(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=ge(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=ge(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+ye(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+ye(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!T(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(be,ve,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,o=this.attrTest(e);return i&&(8&n||!o)?16|t:i||o?4&n?8|t:2&t?4|t:2:32}}),w(we,be,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,o=e.direction,r=e.deltaX,s=e.deltaY;return o&t.direction||(6&t.direction?(o=0===r?1:r<0?2:4,n=r!=this.pX,i=Math.abs(e.deltaX)):(o=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=o,n&&i>t.threshold&&o&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ee,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Te,ve,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Oe,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ce,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return we.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(ke,ve,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&o&&n){if(4!=e.eventType)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&r?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),De.VERSION="2.0.7",De.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Oe,{enable:!1}],[Ee,{enable:!1},["rotate"]],[Ce,{direction:6}],[we,{direction:6},["swipe"]],[ke],[ke,{event:"doubletap",taps:2},["tap"]],[Te]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Se(e,t){var n;this.options=l({},De.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(L?ee:N?re:V?ae:K))(n,U),this.touchAction=new fe(this,this.options.touchAction),Ie(this,!0),y(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ie(e,t){var n,i=e.element;i.style&&(y(e.options.cssProps,(function(o,r){n=P(i.style,r),t?(e.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Se.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),r++}},get:function(e){if(e instanceof ve)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return y(I(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return y(I(e),(function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=r.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&Ie(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(De,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Se,Input:z,TouchAction:fe,TouchInput:re,MouseInput:K,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:ve,AttrRecognizer:be,Tap:ke,Pan:we,Swipe:Ce,Pinch:Ee,Rotate:Oe,Press:Te,on:C,off:k,each:y,merge:b,extend:g,assign:l,inherit:w,bindFn:E,prefixed:P}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=De,void 0===(i=function(){return De}.call(t,n,t,e))||(e.exports=i)}(window,document)},function(e,t,n){!function(e){"use strict";function t(e,t,n){if(t){if("string"==typeof e&&(e=document.querySelector(e)),document.createEvent){var i=document.createEvent("Events");i.initEvent(t,!0,!1),i.data=n,e.dispatchEvent(i)}}else console.error("No event was provided. You do need to provide one.")}window.navigator.pointerEnabled?(e.eventStart="pointerdown",e.eventEnd="pointerup",e.eventMove="pointermove",e.eventCancel="pointercancel"):window.navigator.msPointerEnabled?(e.eventStart="MSPointerDown",e.eventEnd="MSPointerUp",e.eventMove="MSPointerMove",e.eventCancel="MSPointerCancel"):"ontouchstart"in window?(e.eventStart="touchstart",e.eventEnd="touchend",e.eventMove="touchmove",e.eventCancel="touchcancel"):(e.eventStart="mousedown",e.eventEnd="mouseup",e.eventMove="mousemove",e.eventCancel="mouseout"),e.trigger=t,e.gestures=function(){var n,i,o,r,s,a,l,c={},u=150;function h(e){return"tagName"in e?e:e.parentNode}function d(){if(r=null,c.last)try{c&&c.el&&(t(c.el,"longtap"),c={})}catch(e){}}function p(){r&&clearTimeout(r),r=null}function f(){n&&clearTimeout(n),o&&clearTimeout(o),i&&clearTimeout(i),r&&clearTimeout(r),n=o=i=r=null,c={}}/android/gim.test(navigator.userAgent)&&(u=200),(l=document.body).addEventListener(e.eventStart,(function(t){if(s=Date.now(),a=s-(c.last||s),"touchstart"!==e.eventStart)c.el=h(t.target),"ripple"===t.target.nodeName&&(c.el=t.target.parentNode),n&&clearTimeout(n),c.x1=t.pageX,c.y1=t.pageY;else if(1===t.touches.length){if(t.target.disabled)return;c.el=h(t.touches[0].target),n&&clearTimeout(n),c.x1=t.touches[0].pageX,c.y1=t.touches[0].pageY}0<a&&a<=450&&(c.isDoubleTap=!0),c.last=s,r=setTimeout(d,750)})),l.addEventListener(e.eventMove,(function(t){p(),"touchmove"!==e.eventMove?(c.x2=t.pageX,c.y2=t.pageY):1===t.touches.length?(c.x2=t.touches[0].pageX,c.y2=t.touches[0].pageY,c.move=!0):t.touches.length})),l.addEventListener(e.eventEnd,(function(e){p(),c.el&&(c.x2&&20<Math.abs(c.x1-c.x2)||c.y2&&20<Math.abs(c.y1-c.y2)?i=setTimeout((function(){if(c&&c.el){var e=(n=c.x1,i=c.x2,o=c.y1,r=c.y2,Math.abs(n-i)>=Math.abs(o-r)?0<n-i?"left":"right":0<o-r?"up":"down");t(c.el,"swipe",e),t(c.el,"swipe"+e),c={}}var n,i,o,r}),0):"last"in c&&(o=setTimeout((function(){c&&c.isDoubleTap?c&&c.el&&(t(c.el,"dbltap"),e.preventDefault(),c={}):n=setTimeout((function(){n=null,c&&c.el&&!c.move?(t(c.el,"tap"),c={}):f()}),u)}),0)))})),l.addEventListener("touchcancel",f)},e.disableTextSelection=function(e,t){if(e){t&&"string"==typeof e?Array.prototype.slice.call(document.querySelectorAll(e)).map((function(e){e.classList.add("disable-user-select")})):"string"==typeof e&&(e=document.querySelector(e)).classList.add("disable-user-select");var n=document.head.querySelector(".disable-user-select");n||((n=document.createElement("style")).className="disable-user-select",n.innerHTML=".disable-user-select, .disable-user-select * { user-select: none; -webkit-user-select: none; -ms-user-select: none; }",document.head.appendChild(n))}},e.enableTextSelection=function(e,t){if(t&&"string"==typeof e)Array.prototype.slice.call(document.querySelectorAll(e)).map((function(e){e.classList.remove("disable-user-select")}));else{if("string"==typeof e&&(e=document.querySelector(e)),!e)return;e.classList.remove("disable-user-select")}}}(t)},function(e,t,n){var i;!function(){"use strict";
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/function o(e,t){var n;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!o.notNeeded(e)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=0,a=i.length;r<a;r++)this[i[r]]=l(this[i[r]],this);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var o=Node.prototype.removeEventListener;"click"===t?o.call(e,t,n.hijacked||n,i):o.call(e,t,n,i)},e.addEventListener=function(t,n,i){var o=Node.prototype.addEventListener;"click"===t?o.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):o.call(e,t,n,i)}),"function"==typeof e.onclick&&(n=e.onclick,e.addEventListener("click",(function(e){n(e)}),!1),e.onclick=null)}function l(e,t){return function(){return e.apply(t,arguments)}}}var r=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!r,a=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,l=a&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=a&&/OS [6-7]_\d/.test(navigator.userAgent),u=navigator.userAgent.indexOf("BB10")>0;o.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(a&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},o.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},o.prototype.sendClick=function(e,t){var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},o.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},o.prototype.focus=function(e){var t;a&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},o.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},o.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:window.SVGElementInstance&&e instanceof SVGElementInstance?e.correspondingUseElement:e},o.prototype.onTouchStart=function(e){var t,n,i;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],a){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!l){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},o.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},o.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},o.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},o.prototype.onTouchEnd=function(e){var t,n,i,o,r,u=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(r=e.changedTouches[0],(u=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||u).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=u.tagName.toLowerCase())){if(t=this.findControl(u)){if(this.focus(u),s)return!1;u=t}}else if(this.needsFocus(u))return e.timeStamp-n>100||a&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,e),a&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!a||l||!(o=u.fastClickScrollParent)||o.fastClickLastScrollTop===o.scrollTop)||(this.needsClick(u)||(e.preventDefault(),this.sendClick(u,e)),!1)},o.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},o.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},o.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},o.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},o.notNeeded=function(e){var t,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if((t=document.querySelector("meta[name=viewport]"))&&n>31)return!0}if(u&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},o.attach=function(e,t){return new o(e,t)},void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.PrivacyIcons=window.vungle.templates.PrivacyIcons||{},window.vungle.templates.PrivacyIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="privacy-icons" style="display: none;" data-hbs-name="PrivacyIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="lock-icon" class="'+e.escapeExpression("function"==typeof(n=null!=(n=r(n,"THEME")||(null!=t?r(t,"THEME"):t))?n:e.hooks.helperMissing)?n.call(null!=t?t:e.nullContext||{},{name:"THEME",hash:{},data:o,loc:{start:{line:5,column:36},end:{line:5,column:45}}}):n)+'" viewBox="0 0 390 390" style="enable-background:new 0 0 390 390;" xml:space="preserve">\n <title>lock-icon</title>\n <path class="st1" d="M195,369.5C50.8,317.6,53,198.4,54.8,102.5c0.2-9.2,0.3-17.9,0.4-26.5c57.6-0.7,102.2-18,139.8-54.3\n C232.5,58,277.1,75.3,334.8,76c0,8.5,0.2,17.3,0.4,26.5C337,198.4,339.2,317.6,195,369.5z M177.8,289.4h34.4l0.9-2.3\n l60.7-166.8h-36.9L195,235.1l-41.8-114.8h-37L177.8,289.4z"/>\n </symbol>\n\n <symbol id="privacy-icon" viewBox="0 0 194.818 194.818" style="enable-background:new 0 0 194.818 194.818;" xml:space="preserve">\n <title>privacy-icon</title>\n <style>\n .external-path {\n fill: #909090;\n }\n </style>\n <path class="external-path" d="M185.818,2.161h-57.04c-4.971,0-9,4.029-9,9s4.029,9,9,9h35.312l-86.3,86.3c-3.515,3.515-3.515,9.213,0,12.728\n c1.758,1.757,4.061,2.636,6.364,2.636s4.606-0.879,6.364-2.636l86.3-86.3v35.313c0,4.971,4.029,9,9,9s9-4.029,9-9v-57.04\n C194.818,6.19,190.789,2.161,185.818,2.161z"/>\n <path class="external-path" d="M149,77.201c-4.971,0-9,4.029-9,9v88.456H18v-122h93.778c4.971,0,9-4.029,9-9s-4.029-9-9-9H9c-4.971,0-9,4.029-9,9v140\n c0,4.971,4.029,9,9,9h140c4.971,0,9-4.029,9-9V86.201C158,81.23,153.971,77.201,149,77.201z"/>\n </symbol>\n\n <symbol id="privacy-close-icon" viewBox="0 0 552 551" enable-background="new 0 0 552 551" xml:space="preserve">\n <title>privacy-close-icon</title>\n <path fill="#FFFFFF" d="M468.9,81.3c53.8,53.4,80.7,118,80.7,193.6c0,75.6-26.7,140.1-80.1,193.6c-53.4,53.4-118,80.1-193.6,80.1\n c-75.6,0-140.1-26.7-193.6-80.1S2.2,350.5,2.2,274.8c0-75.6,26.7-140.1,80.1-193.6C135.8,27.9,200.3,1.2,275.9,1.2\n C350.7,1.2,415.1,27.9,468.9,81.3z M510.3,274.8c0-64.7-22.9-120.1-68.7-166.3c-45.8-46.2-101.1-69.2-165.7-69.2\n c-64.7,0-120.1,23.1-166.3,69.2c-46.2,46.2-69.2,101.6-69.2,166.3c0,64.7,23.1,120.1,69.2,166.3c46.2,46.2,101.6,69.2,166.3,69.2\n c64.7,0,119.9-23.1,165.7-69.2C487.4,395,510.3,339.6,510.3,274.8z M416.5,161.4L303.1,274.8l113.4,113.4l-27.3,27.3L275.9,302.1\n L161.4,415.5l-27.3-27.3l114.5-113.4L134.1,161.4l27.3-27.3l114.5,113.4l113.4-113.4L416.5,161.4z"/>\n </symbol>\n\n <symbol id="lock-icon-2" viewBox="0 0 380.9 390" style="enable-background:new 0 0 380.9 390;" xml:space="preserve" xml:space="preserve">\n <title>lock-icon-2</title>\n <style type="text/css">\n\t .st0-lock-icon-2{\n fill:#3C2869;\n }\n </style>\n\t\t\t<path class="st0-lock-icon-2" d="M161.8,160.4c-25.2,0-45.8,20.6-45.8,45.8s20.6,45.8,45.8,45.8s45.8-20.6,45.8-45.8S187,160.4,161.8,160.4"\n\t\t\t\t/>\n\t\t\t<polygon class="st0-lock-icon-2" points="184.7,389.2 310.5,46.1 379.2,46.1 253.3,389.2 \t\t\t"/>\n\t\t\t<polygon class="st0-lock-icon-2" points="93.2,343.5 116.1,343.5 138.9,343.5 138.9,322.9 138.9,297.7 116.1,297.7 93.2,297.7 93.2,316\n\t\t\t\t"/>\n\t\t\t<polygon class="st0-lock-icon-2" points="161.8,68.9 129.8,68.9 93.2,68.9 93.2,34.6 93.2,0.3 81.7,0.3 70.3,0.3 70.3,36.9 70.3,68.9\n\t\t\t\t38.3,68.9 1.7,68.9 1.7,80.4 1.7,91.8 38.3,91.8 70.3,91.8 70.3,128.4 70.3,160.4 79.5,160.4 93.2,160.4 93.2,126.1 93.2,91.8\n\t\t\t\t127.5,91.8 161.8,91.8 161.8,80.4"/>\n </symbol>\n\n <symbol id="lock-text" viewBox="0 0 1319.7 390" style="enable-background:new 0 0 1319.7 390;" xml:space="preserve" xml:space="preserve">\n <title>lock-text</title>\n <style type="text/css">\n .st0-lock-text {\n fill:#3C2869;\n }\n .st1-lock-text {\n opacity:0.5;\n }\n </style>\n\t\t\t<path class="st0-lock-text" d="M687.5,201.3v52.2h-27.2V108.2h59c31.8,0,45.4,13.6,45.4,45.4S746.5,199,719.2,199h-31.8\n\t\t\t\tC687.5,199,687.5,201.3,687.5,201.3z M721.5,178.6c9.1,0,13.6-4.5,13.6-13.6v-20.4c0-9.1-4.5-13.6-13.6-13.6h-34.1v45.4h34.1\n\t\t\t\tC721.5,176.3,721.5,178.6,721.5,178.6z"/>\n\t\t\t<polygon class="st0-lock-text" points="780.6,144.5 841.9,144.5 841.9,165 807.8,165 807.8,253.5 780.6,253.5"/>\n\t\t\t<path class="st0-lock-text" d="M882.7,130.9h-27.2v-22.7h27.2V130.9z M855.5,144.5h27.2v109h-27.2V144.5z"/>\n\t\t\t<polygon class="st0-lock-text" points="946.3,224 971.3,144.5 1000.8,144.5 962.2,253.5 932.7,253.5 894.1,144.5 923.6,144.5"/>\n\t\t\t<path class="st0-lock-text" d="M1064.4,178.6c0-11.4-6.8-15.9-18.2-15.9c-11.4,0-18.2,4.5-18.2,15.9h-27.2c0-22.7,20.4-36.3,45.4-36.3\n\t\t\t\ts43.1,13.6,43.1,36.3v54.5h18.2v20.4h-43.1v-15.9l0,0c-6.8,11.4-15.9,20.4-31.8,20.4c-20.4,0-34.1-13.6-34.1-34.1\n\t\t\t\tc0-18.2,13.6-31.8,36.3-34.1l29.5-2.3C1064.4,187.7,1064.4,178.6,1064.4,178.6z M1064.4,210.4v-4.5l-31.8,2.3\n\t\t\t\tc-4.5,0-6.8,2.3-6.8,6.8v9.1c0,6.8,6.8,9.1,15.9,9.1C1057.6,235.3,1064.4,224,1064.4,210.4"/>\n\t\t\t<path class="st0-lock-text" d="M1164.3,142.2c22.7,0,43.1,11.4,45.4,38.6h-27.2c-2.3-13.6-9.1-18.2-20.4-18.2c-11.4,0-20.4,6.8-20.4,20.4\n\t\t\t\tv29.5c0,13.6,9.1,20.4,20.4,20.4c11.4,0,18.2-4.5,20.4-20.4h27.2c-2.3,27.2-22.7,40.9-45.4,40.9c-31.8,0-50-22.7-50-56.8\n\t\t\t\tS1132.5,142.2,1164.3,142.2"/>\n\t\t\t<polygon class="st0-lock-text" points="1266.5,221.7 1289.2,144.5 1318.7,144.5 1266.5,289.8 1218.8,289.8 1218.8,269.4 1246,269.4\n\t\t\t\t1250.6,253.5 1212,144.5 1241.5,144.5 1264.2,221.7 \t\t\t"/>\n <polygon class="st1-lock-text st0-lock-text" points="26.7,108.2 78.9,251.2 78.9,251.2 53.9,251.2 53.9,251.2 1.7,108.2"/>\n\t\t\t<polygon class="st0-lock-text" points="106.2,108.2 53.9,251.2 53.9,251.2 78.9,251.2 78.9,251.2 133.4,108.2"/>\n\t\t\t<path class="st0-lock-text" d="M385.5,233.1c-25,0-31.8-2.3-31.8-4.5s2.3-4.5,11.4-4.5c0,0,9.1,0,15.9,0c25,0,40.9-18.2,40.9-40.9l0,0l0,0\n\t\t\t\tc0-6.8-2.3-13.6-4.5-20.4h13.6v-18.2h-52.2l0,0l0,0c-22.7,0-43.1,13.6-43.1,38.6l0,0l0,0c0,11.4,4.5,31.8,22.7,31.8\n\t\t\t\tc-9.1,0-22.7,2.3-25,11.4c-2.3,13.6,6.8,18.2,25,22.7h-15.9c0,0-9.1,4.5-9.1,18.2c0,25,22.7,31.8,50,31.8c22.7,0,50-6.8,50-34.1\n\t\t\t\tC433.1,242.2,415,233.1,385.5,233.1 M360.5,178.6c0-9.1,6.8-15.9,15.9-15.9h6.8c11.4,0,15.9,6.8,15.9,15.9v6.8\n\t\t\t\tc0,13.6-6.8,18.2-15.9,18.2h-6.8c-9.1,0-15.9-6.8-15.9-18.2C360.5,185.4,360.5,178.6,360.5,178.6z M380.9,280.8\n\t\t\t\tc-9.1,0-27.2-2.3-27.2-13.6s9.1-13.6,9.1-13.6h22.7c11.4,0,25,0,25,13.6C410.4,280.8,392.3,280.8,380.9,280.8"/>\n\t\t\t<path class="st0-lock-text" d="M469.5,108.2h-25v113.5c0,22.7,9.1,31.8,29.5,31.8h13.6v-22.7h-18.2V108.2z"/>\n\t\t\t<path class="st0-lock-text" d="M519.4,205.8L519.4,205.8h65.8v-11.4c0-6.8,0-13.6-2.3-20.4c-2.3-6.8-4.5-11.4-9.1-15.9\n\t\t\t\tc-4.5-4.5-9.1-9.1-13.6-11.4c-6.8-2.3-13.6-4.5-20.4-4.5c-6.8,0-13.6,2.3-20.4,4.5c-6.8,2.3-11.4,6.8-13.6,11.4\n\t\t\t\tc-4.5,4.5-6.8,11.4-9.1,18.2c-2.3,6.8-2.3,13.6-2.3,22.7c0,9.1,0,15.9,2.3,22.7c2.3,6.8,4.5,13.6,9.1,18.2\n\t\t\t\tc4.5,4.5,9.1,9.1,13.6,11.4c6.8,2.3,13.6,4.5,20.4,4.5c6.8,0,11.4,0,15.9-2.3c4.5-2.3,9.1-4.5,13.6-6.8\n\t\t\t\tc4.5-2.3,6.8-6.8,11.4-11.4c2.3-4.5,4.5-9.1,4.5-15.9h-22.7c0,6.8-2.3,9.1-6.8,13.6c-4.5,0-9.1,2.3-11.4,2.3s-9.1,0-11.4-2.3\n\t\t\t\tc-2.3,0-4.5-2.3-6.8-4.5c-2.3-2.3-4.5-4.5-4.5-6.8c-2.3-2.3-2.3-4.5-2.3-9.1v-4.5C519.4,208.1,519.4,205.8,519.4,205.8z\n\t\t\t\t M519.4,180.8c0-11.4,9.1-18.2,18.2-18.2h6.8c11.4,0,18.2,9.1,18.2,18.2v6.8h-43.1C519.4,187.7,519.4,180.8,519.4,180.8z"/>\n\t\t\t<path class="st0-lock-text" d="M162.9,255.8c18.2,0,31.8-11.4,31.8-31.8v29.5h22.7V146.8h-25v70.4c0,9.1-6.8,15.9-15.9,15.9h-6.8\n\t\t\t\tc-9.1,0-15.9-6.8-15.9-15.9v-70.4h-25v70.4C126.6,239.9,140.2,255.8,162.9,255.8"/>\n\t\t\t<path class="st0-lock-text" d="M287.8,144.5c-18.2,0-31.8,11.4-31.8,31.8v-29.5h-22.7v104.5h25v-68.1c0-9.1,6.8-15.9,15.9-15.9h6.8\n\t\t\t\tc9.1,0,15.9,6.8,15.9,15.9v70.4h25v-70.4C321.9,160.4,308.3,144.5,287.8,144.5"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.DownloadIcons=window.vungle.templates.DownloadIcons||{},window.vungle.templates.DownloadIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="download-icons" style="display: none;" data-hbs-name="DownloadIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="cta-icon-down" viewBox="0 0 129 129" enable-background="new 0 0 129 129">\n <title>cta-icon-down</title>\n <path class="fill" d="m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z"/>\n </symbol>\n\n <symbol id="cta-icon-download" viewBox="0 0 471.2 471.2" style="enable-background:new 0 0 471.2 471.2;" xml:space="preserve">\n <title>cta-icon-download</title>\n <style type="text/css">\n .svg-cta {\n fill: #fff;\n }\n </style>\n <path class="svg-cta" d="M457.7,230.15c-7.5,0-13.5,6-13.5,13.5v122.8c0,33.4-27.2,60.5-60.5,60.5H87.5c-33.4,0-60.5-27.2-60.5-60.5v-124.8\t\t\tc0-7.5-6-13.5-13.5-13.5s-13.5,6-13.5,13.5v124.8c0,48.3,39.3,87.5,87.5,87.5h296.2c48.3,0,87.5-39.3,87.5-87.5v-122.8\t\t\tC471.2,236.25,465.2,230.15,457.7,230.15z"/>\n <path class="svg-cta" d="M226.1,346.75c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l85.8-85.8c5.3-5.3,5.3-13.8,0-19.1c-5.3-5.3-13.8-5.3-19.1,0l-62.7,62.8\t\t\tV30.75c0-7.5-6-13.5-13.5-13.5s-13.5,6-13.5,13.5v273.9l-62.8-62.8c-5.3-5.3-13.8-5.3-19.1,0c-5.3,5.3-5.3,13.8,0,19.1\t\t\tL226.1,346.75z"/>\n </symbol>\n\n <symbol id="cta-icon-download-square" viewBox="0 0 454 522" enable-background="new 0 0 454 522">\n <title>cta-icon-download-square</title>\n <style>\n .cls-01 {\n fill: #fff;\n stroke: #6C6C6C;\n stroke-width: 6;\n stroke-miterlimit: 10;\n }\n </style>\n <path class="cls-01" d="M190,354.2L34.7,198.8L72,161.5l128.7,128.7V6.5\n H254v283.7l128.7-128.7l37.3,37.3L264.7,354.2l-37.3,37.3L190,354.2z M448,391.4h-56v67H62.7v-67h-56v123.1H448V391.4L448,391.4z"/>\n </symbol>\n\n <symbol id="cta-icon-external" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">\n <title>cta-icon-external</title>\n <path d="M412.88,261.464c-11.423,0-20.682,9.259-20.682,20.682v156.879c0,17.43-14.181,31.611-31.612,31.611H72.975\t\t\tc-17.43,0-31.611-14.181-31.611-31.611V151.414c0-17.43,14.181-31.611,31.611-31.611h156.879c11.422,0,20.682-9.26,20.682-20.682\t\t\tc0-11.422-9.26-20.682-20.682-20.682H72.975C32.737,78.439,0,111.176,0,151.414v287.611C0,479.264,32.737,512,72.975,512h287.61\t\t\tc40.239,0,72.976-32.736,72.977-72.975V282.146C433.562,270.723,424.303,261.464,412.88,261.464z"/>\n <path d="M491.318,0H334.439c-11.423,0-20.682,9.26-20.682,20.682c0,11.422,9.259,20.682,20.682,20.682h136.197v136.197\t\t\tc0,11.422,9.259,20.682,20.682,20.682c11.423,0,20.682-9.26,20.682-20.682V20.682C512,9.26,502.741,0,491.318,0z"/>\n <path d="M505.942,6.058c-8.077-8.076-21.172-8.076-29.249,0L189.082,293.668c-8.077,8.077-8.077,21.172,0,29.249\t\t\tc4.038,4.039,9.332,6.058,14.625,6.058c5.294,0,10.587-2.02,14.625-6.058L505.942,35.307 C514.019,27.23,514.019,14.135,505.942,6.058z"/>\n </symbol>\n\n <symbol id="cta-icon-right" viewBox="0 0 32 32">\n <title>cta-icon-right</title>\n <path d="M10.022 30.090c-0.198 0.198-0.447 0.298-0.719 0.298s-0.521-0.099-0.719-0.298c-0.397-0.397-0.397-1.042 0-1.439l12.651-12.651-12.651-12.651c-0.397-0.397-0.397-1.042 0-1.439s1.042-0.397 1.439 0l13.371 13.371c0.397 0.397 0.397 1.042 0 1.439l-13.371 13.371z"></path>\n </symbol>\n\n <symbol id="cancel-download" viewBox="0 0 38 38" style="enable-background:new 0 0 37.1 38;" xml:space="preserve">\n <title>cancel-download</title>\n <style type="text/css">\n .cd0 { fill: #fff; }\n .cd1 { fill: #47adf5; }\n </style>\n <circle class="cd0" cx="18.5" cy="19" r="17"/>\n <path class="cd1" d="M26.2,11.4c-0.4-0.4-0.9-0.4-1.2,0l-6.4,6.4l-6.4-6.4c-0.4-0.4-0.9-0.4-1.2,0c-0.4,0.4-0.4,0.9,0,1.2l6.4,6.4\n l-6.4,6.4c-0.4,0.4-0.4,0.9,0,1.2c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.4-0.1,0.6-0.3l6.4-6.4l6.4,6.4c0.2,0.2,0.4,0.3,0.6,0.3\n s0.4-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.2L19.8,19l6.4-6.4C26.5,12.2,26.5,11.7,26.2,11.4z"/>\n <path class="cd1" d="M18.5,0.6C8.4,0.6,0.1,8.8,0.1,19s8.3,18.4,18.4,18.4S37,29.2,37,19S28.7,0.6,18.5,0.6z M18.5,35.7\n C9.3,35.7,1.9,28.2,1.9,19S9.3,2.3,18.5,2.3S35.2,9.8,35.2,19S27.8,35.7,18.5,35.7z"/>\n </symbol>\n\n <symbol id="cancel-install" viewBox="0 0 38 38" style="enable-background:new 0 0 37.1 38;" xml:space="preserve">\n <title>cancel-install</title>\n <style type="text/css">\n .ci0 { fill: #d2d2d2; }\n .cd1 { fill: #47adf5; }\n </style>\n <circle class="ci0" cx="18.5" cy="19" r="17"/>\n <path class="ci1" d="M26.2,11.4c-0.4-0.4-0.9-0.4-1.2,0l-6.4,6.4l-6.4-6.4c-0.4-0.4-0.9-0.4-1.2,0c-0.4,0.4-0.4,0.9,0,1.2l6.4,6.4\n l-6.4,6.4c-0.4,0.4-0.4,0.9,0,1.2c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.4-0.1,0.6-0.3l6.4-6.4l6.4,6.4c0.2,0.2,0.4,0.3,0.6,0.3\n s0.4-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.2L19.8,19l6.4-6.4C26.5,12.2,26.5,11.7,26.2,11.4z"/>\n <path class="ci1" d="M18.5,0.6C8.4,0.6,0.1,8.8,0.1,19s8.3,18.4,18.4,18.4S37,29.2,37,19S28.7,0.6,18.5,0.6z M18.5,35.7\n C9.3,35.7,1.9,28.2,1.9,19S9.3,2.3,18.5,2.3S35.2,9.8,35.2,19S27.8,35.7,18.5,35.7z"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.SoundIcons=window.vungle.templates.SoundIcons||{},window.vungle.templates.SoundIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="sound-icons" style="display: none;" data-hbs-name="SoundIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="mute-video" viewBox="0 0 500 500">\n <title>mute-video</title>\n <style>\n .st01{opacity:.8}\n .st11,.st21{fill:#fff}\n .st21{display:none}\n </style>\n <circle class="st01" cx="249.9" cy="249.9" r="247"/>\n <path class="st11" d="M418.9 195.8c-3.2-3.2-8.2-3.2-11.4 0l-45.6 45.6-45.6-45.6c-3.2-3.2-8.2-3.2-11.4 0-3.2 3.2-3.2 8.2 0 11.4l45.6 45.6-45.6 45.6c-3.2 3.2-3.2 8.2 0 11.4 1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3l45.6-45.6 45.6 45.6c1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3c3.2-3.2 3.2-8.2 0-11.4l-45.6-45.6 45.6-45.6c2.9-2.3 2.9-8.2-.8-11.4zM268.2 89.2c-2.3-1.7-6.8-.9-9.1.9l-106.7 79.5H95.2c-5 0-8.2 2.9-8.2 7.6v144c0 4.6 3.2 7.6 8.2 7.6h57.2l106.7 80c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.5c.9-1.7-.9-4.6-4.1-6.3zM148.2 314h-44.8V186.1h44.8V314zm108.5 72.9l-92.1-69v-136l91.7-69v274h.4z"/>\n <path class="st21" d="M268.5 89c-2.3-1.7-6.8-.9-9.2.9l-107 79.9H94.9c-5 0-8.2 3-8.2 7.7V322c0 4.6 3.2 7.7 8.2 7.7h57.4L259.4 410c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.3c1-1.7-.8-4.6-4.1-6.3zM148.2 314.6h-44.9V186.2h44.9v128.4zm108.9 73.1l-92.4-69.3V182l92-69.2v274.9h.4zm149-127.2h-90.5c-4.2 0-7.7-3.5-7.7-7.9s3.4-7.9 7.7-7.9h90.5c4.2 0 7.7 3.5 7.7 7.9s-3.4 7.9-7.7 7.9zm.9-94.6l-88.6 37.6c-3.9 1.6-8.4-.3-10-4.3-1.6-4 .3-8.6 4.1-10.2l88.6-37.6c3.9-1.6 8.4.3 10 4.3 1.6 3.9-.2 8.6-4.1 10.2zm4.7 182.9c-1.6 4-6.1 5.9-10 4.3l-88.6-37.6c-3.9-1.6-5.8-6.2-4.1-10.2 1.6-4 6.1-5.9 10-4.3l88.6 37.6c3.9 1.6 5.8 6.2 4.1 10.2z"/>\n </symbol>\n\n <symbol id="unmute-video" viewBox="0 0 500 500">\n <title>unmute-video</title>\n <style>\n .st01{opacity:.8}\n .st31{display:none}\n .st31,.st41{fill:#fff}\n </style>\n <circle class="st01" cx="249.9" cy="249.9" r="247"/>\n <path class="st31" d="M418.9 195.8c-3.2-3.2-8.2-3.2-11.4 0l-45.6 45.6-45.6-45.6c-3.2-3.2-8.2-3.2-11.4 0-3.2 3.2-3.2 8.2 0 11.4l45.6 45.6-45.6 45.6c-3.2 3.2-3.2 8.2 0 11.4 1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3l45.6-45.6 45.6 45.6c1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3c3.2-3.2 3.2-8.2 0-11.4l-45.6-45.6 45.6-45.6c2.9-2.3 2.9-8.2-.8-11.4zM268.2 89.2c-2.3-1.7-6.8-.9-9.1.9l-106.7 79.5H95.2c-5 0-8.2 2.9-8.2 7.6v144c0 4.6 3.2 7.6 8.2 7.6h57.2l106.7 80c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.5c.9-1.7-.9-4.6-4.1-6.3zM148.2 314h-44.8V186.1h44.8V314zm108.5 72.9l-92.1-69v-136l91.7-69v274h.4z"/>\n <path class="st41" d="M268.5 89c-2.3-1.7-6.8-.9-9.2.9l-107 79.9H94.9c-5 0-8.2 3-8.2 7.7V322c0 4.6 3.2 7.7 8.2 7.7h57.4L259.4 410c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.3c1-1.7-.8-4.6-4.1-6.3zM148.2 314.6h-44.9V186.2h44.9v128.4zm108.9 73.1l-92.4-69.3V182l92-69.2v274.9h.4zm149-127.2h-90.5c-4.2 0-7.7-3.5-7.7-7.9s3.4-7.9 7.7-7.9h90.5c4.2 0 7.7 3.5 7.7 7.9s-3.4 7.9-7.7 7.9zm.9-94.6l-88.6 37.6c-3.9 1.6-8.4-.3-10-4.3-1.6-4 .3-8.6 4.1-10.2l88.6-37.6c3.9-1.6 8.4.3 10 4.3 1.6 3.9-.2 8.6-4.1 10.2zm4.7 182.9c-1.6 4-6.1 5.9-10 4.3l-88.6-37.6c-3.9-1.6-5.8-6.2-4.1-10.2 1.6-4 6.1-5.9 10-4.3l88.6 37.6c3.9 1.6 5.8 6.2 4.1 10.2z"/>\n </symbol>\n\n <symbol id="dialog-replay-icon" viewBox="0 0 232 216">\n <title>dialog-replay-icon</title>\n <style>\n .cls-02 {\n fill: #fff;\n }\n </style>\n <path class="cls-02" d="M124,1.6c-41.1,0-78.5,23.7-96.1,60.7L5.8,56.9l16.6,56.6l40.7-42.6l-20.2-4.9C58.5,35.8,89.7,16.6,124,16.6\n c50.4,0,91.4,41,91.4,91.4c0,50.4-41,91.4-91.4,91.4c-24.4,0-47.3-9.5-64.6-26.8l-10.6,10.6c20.1,20.1,46.8,31.2,75.2,31.2\n c58.7,0,106.4-47.7,106.4-106.4S182.7,1.6,124,1.6z"/>\n </symbol>\n\n <symbol id="tap-to-play" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24">\n <title>play-icon</title>\n <path class="tap-to-play" d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.CloseIcons=window.vungle.templates.CloseIcons||{},window.vungle.templates.CloseIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l="function",c=e.escapeExpression;return'<div id="close-icons" style="display: none;" data-hbs-name="CloseIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="close-icon" viewBox="0 0 525.4 525.5" style="enable-background:new 0 0 525.4 525.5;" xml:space="preserve">\n <title>close-icon</title>\n <polygon class="closeBtn" points="467.6,8.9 262.9,213.6 58.1,8.9 9,58 213.8,262.7 9,467 58.1,516.1 262.9,311.8 467.6,516.1 516.7,467 311.9,262.7 516.7,58"/>\n </symbol>\n\n <symbol id="close-icon'+c(typeof(r=null!=(r=(e=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:10,column:28},end:{line:10,column:37}}}):r)+'" viewBox="0 0 525.4 525.5" style="enable-background:new 0 0 525.4 525.5;" xml:space="preserve">\n <title>close-icon</title>\n <polygon class="closeBtn'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:12,column:30},end:{line:12,column:39}}}):r)+'" points="467.6,8.9 262.9,213.6 58.1,8.9 9,58 213.8,262.7 9,467 58.1,516.1 262.9,311.8 467.6,516.1 516.7,467 311.9,262.7 516.7,58"/>\n </symbol>\n\n <symbol id="close-outline-icon" viewBox="0 0 990.5 990" style="enable-background:new 0 0 990.5 990;" xml:space="preserve">\n <title>close-outline-icon</title>\n <style type="text/css">\n .svg-close-background-light {\n fill: rgba(255,255,255,0.7);\n }\n .svg-close-background-dark {\n fill: rgba(0,0,0,0.7);\n }\n .svg-close-icon,\n .svg-close-icondark {\n fill: #ffffff;\n }\n .svg-close-iconlight {\n fill: #1d1d1d;\n }\n </style>\n <path class="svg-close-background-'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:32,column:42},end:{line:32,column:51}}}):r)+'" d="M195.9-0.7h-9.7H2.8c133.3,0,169.7,95.2,179.6,147.2v474.3c0,62.9,31.6,118.3,79.8,151.3c30.2,21.8,67.2,34.7,107.3,34.7\n h466.9C886.7,815,990,848.7,990,987.6V806.8h0.5l0-807.5H195.9z"/>\n <polygon class="svg-close-icon svg-close-icon'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:34,column:53},end:{line:34,column:62}}}):r)+'" points="780.4,643.8 587.1,450.6 392.3,643.8 345.9,597.5 540.8,402.6 345.9,209.3 392.3,162.9 587.1,356.2 780.4,162.9 826.8,209.3 633.5,402.6 826.8,597.5">\n </polygon>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.DialogBox=window.vungle.templates.DialogBox||{},window.vungle.templates.DialogBox.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="DIALOGBOX" data-hbs-name="DialogBox">\n <div class="dialog">\n <div class="dialog-content">\n <div class="title-text"></div>\n <div class="body-text-container">\n <div class="body-text"></div>\n </div>\n <div class="action-buttons">\n <div class="primary-button">\n <button class="primary" data-vgl-tabindex="1"></button>\n </div>\n <div class="secondary-button">\n <button class="secondary" data-vgl-tabindex="2"></button>\n </div>\n </div>\n </div>\n </div>\n</div>\n'},useData:!0})},function(e,t,n){},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.GDPRDialogBox=window.vungle.templates.GDPRDialogBox||{},window.vungle.templates.GDPRDialogBox.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="GDPRDialogBox" data-hbs-name="GDPRDialogBox">\n <div class="dialog">\n <div class="dialog-content">\n <div class="app-icon">\n <svg data-vgl-gesture="GDPR-icon">\n <use xlink:href="#GDPR-icon"></use>\n </svg>\n </div>\n <div class="title-text"></div>\n <div class="body-text"></div>\n </div>\n </div>\n\n <div class="cta">\n <div class="cta-content">\n <div class="consent-button">\n <button data-vgl-tabindex="1" class="consent"></button>\n </div>\n <div class="no-consent-button">\n <button data-vgl-tabindex="2" class="no-consent"></button>\n </div>\n </div>\n </div>\n</div>\n\n<div id="icons" style="display: none;">\n <svg version="1.1" id="GDPR-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 96.5 96.6" style="enable-background:new 0 0 96.5 96.6;" xml:space="preserve">\n <style type="text/css">\n .st100{fill:#FFFFFF;}\n </style>\n <g transform="translate(0,-952.36218)">\n <path fill="#FFFFFF" class="st100" d="M46.2,953.6v12.1c-17.7,1-31.9,15.2-32.9,32.9H1.2v4h12.1c1,17.7,15.2,31.9,32.9,32.9v12.1h4v-12.1\n c17.7-1,31.9-15.2,32.9-32.9h12.1v-4H83.2c-1-17.7-15.2-31.9-32.9-32.9v-12.1H46.2z M46.2,969.7v14.1c-7.8,0.9-14,7.1-14.9,14.9\n H17.3C18.3,983.1,30.7,970.7,46.2,969.7z M50.2,969.7c15.5,1,27.9,13.4,28.9,28.9H65.1c-0.9-7.8-7.1-14-14.9-14.9V969.7z\n M40.9,993.3c10.8-8.1,22.8,3.9,14.7,14.7C44.8,1016.1,32.8,1004.1,40.9,993.3z M17.3,1002.6h14.1c0.9,7.8,7.1,14,14.9,14.9v14.1\n C30.7,1030.6,18.3,1018.2,17.3,1002.6z M65.1,1002.6h14.1c-1,15.5-13.4,28-28.9,28.9v-14.1C58,1016.6,64.2,1010.4,65.1,1002.6z"></path>\n </g>\n </svg>\n</div>\n'},useData:!0})},function(e,t,n){},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.Video=window.vungle.templates.Video||{},window.vungle.templates.Video.template=Handlebars.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-vgl-delay-show="'+e.escapeExpression("function"==typeof(n=null!=(n=r(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?r(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?n:e.hooks.helperMissing)?n.call(null!=t?t:e.nullContext||{},{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:9,column:65},end:{line:9,column:98}}}):n)+'"'},3:function(e,t,n,i,o){return" hide"},5:function(e,t,n,i,o){var r,s=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l="function",c=e.escapeExpression;return'data-vgl-delay-show="'+c(typeof(r=null!=(r=(e=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?e(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?r:a)==l?r.call(s,{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:73,column:214},end:{line:73,column:247}}}):r)+'" data-vgl-delay-show-incentivized="'+c(typeof(r=null!=(r=e(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?e(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?r:a)==l?r.call(s,{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:73,column:283},end:{line:73,column:316}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="Video" data-hbs-name="Video" data-vgl-page class="row hide" data-vgl-cta-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:155}}}))+'">\n <div\n role="dialog"\n class="overlay-cta"\n data-vgl-gesture="cta-button"\n data-vgl-full-cta="'+c(typeof(s=null!=(s=h(n,"FULL_CTA")||(null!=t?h(t,"FULL_CTA"):t))?s:l)==u?s.call(a,{name:"FULL_CTA",hash:{},data:o,loc:{start:{line:6,column:27},end:{line:6,column:39}}}):s)+'"\n data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"CTA_BUTTON_URL")||(null!=t?h(t,"CTA_BUTTON_URL"):t))?s:l)==u?s.call(a,{name:"CTA_BUTTON_URL",hash:{},data:o,loc:{start:{line:7,column:22},end:{line:7,column:40}}}):s)+'"\n data-vgl-app-store-id="'+c(typeof(s=null!=(s=h(n,"APP_STORE_ID")||(null!=t?h(t,"APP_STORE_ID"):t))?s:l)==u?s.call(a,{name:"APP_STORE_ID",hash:{},data:o,loc:{start:{line:8,column:31},end:{line:8,column:47}}}):s)+'"\n '+(null!=(r=(h(n,"equalDef")||t&&h(t,"equalDef")||l).call(a,null!=t?h(t,"FULL_CTA"):t,"true","true",{name:"equalDef",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:9,column:8},end:{line:9,column:112}}}))?r:"")+'>\n </div>\n\n <div class="overlay-video-controller hide">\n <div class="overlay-video-controller__holder">\n <div class="overlay-video-controller__icon">\n <svg>\n <use xlink:href="#tap-to-play"></use>\n </svg>\n </div>\n <h2>'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"TAP_TO_PLAY","Tap to play",{name:"i18nt",hash:{},data:o,loc:{start:{line:19,column:12},end:{line:19,column:49}}}))+'</h2>\n </div>\n </div>\n\n <div class="content small-12 columns">\n <div class="header row">\n <div\n class="close-countdown"\n data-vgl-delay-show="'+c(typeof(s=null!=(s=h(n,"CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:27,column:37},end:{line:27,column:67}}}):s)+'"\n data-vgl-delay-show-incentivized="'+c(typeof(s=null!=(s=h(n,"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:28,column:50},end:{line:28,column:93}}}):s)+'"\n data-vgl-show-countdown-timer="'+c(typeof(s=null!=(s=h(n,"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN")||(null!=t?h(t,"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN"):t))?s:l)==u?s.call(a,{name:"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN",hash:{},data:o,loc:{start:{line:29,column:47},end:{line:29,column:86}}}):s)+'">\n\n <div class="close-btn-container" data-vgl-tabindex="3">\n <svg data-vgl-gesture="close-icon" class="close-btn">\n <use xlink:href="#close-icon"></use>\n </svg>\n </div>\n\n <span class="close-btn-text">'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"CLOSE_BUTTON_TEXT","Close",{name:"i18nt",hash:{},data:o,loc:{start:{line:37,column:45},end:{line:37,column:82}}}))+'</span>\n\n </div>\n </div>\n\n <div class="video-container">\n <video autoplay muted class="video row" ad-outlet="video" data-vgl-gesture="video" playsinline webkit-playsinline data-vgl-video-timer="'+c(typeof(s=null!=(s=h(n,"VIDEO_PROGRESS_BAR")||(null!=t?h(t,"VIDEO_PROGRESS_BAR"):t))?s:l)==u?s.call(a,{name:"VIDEO_PROGRESS_BAR",hash:{},data:o,loc:{start:{line:43,column:148},end:{line:43,column:170}}}):s)+'">\n <source src="'+c(typeof(s=null!=(s=h(n,"MAIN_VIDEO")||(null!=t?h(t,"MAIN_VIDEO"):t))?s:l)==u?s.call(a,{name:"MAIN_VIDEO",hash:{},data:o,loc:{start:{line:44,column:29},end:{line:44,column:43}}}):s)+'">\n </video>\n <div class="mute-icon-container" data-vgl-start-muted='+c(typeof(s=null!=(s=h(n,"START_MUTED")||(null!=t?h(t,"START_MUTED"):t))?s:l)==u?s.call(a,{name:"START_MUTED",hash:{},data:o,loc:{start:{line:46,column:66},end:{line:46,column:81}}}):s)+'>\n <div class="unmute-video-wrap hidden">\n <svg data-vgl-gesture="unmute-video" class="unmute-video">\n <use xlink:href="#unmute-video"></use>\n </svg>\n </div>\n <div class="mute-video-wrap hidden">\n <svg data-vgl-gesture="mute-video" class="mute-video">\n <use xlink:href="#mute-video"></use>\n </svg>\n </div>\n </div>\n <div class="progress-bar" data-vgl-progress-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:58,column:74},end:{line:58,column:129}}}))+'"><span></span></div>\n </div>\n\n <div class="footer row small-12 columns">\n <div class="privacy-button bubble-button" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"VUNGLE_PRIVACY_URL")||(null!=t?h(t,"VUNGLE_PRIVACY_URL"):t))?s:l)==u?s.call(a,{name:"VUNGLE_PRIVACY_URL",hash:{},data:o,loc:{start:{line:62,column:68},end:{line:62,column:90}}}):s)+'" data-vgl-tabindex="2">\n <svg data-vgl-gesture="lock-icon" class="lock-icon">\n <use xlink:href="#lock-icon-2"></use>\n </svg>\n <span>\n <svg data-vgl-gesture="privacy-icon" class="privacy-icon">\n <use xlink:href="#lock-text"></use>\n </svg>\n </span>\n </div>\n\n <div class="download small-6 columns cta-delay-show cta-hard-hide'+(null!=(r=(h(n,"equal")||t&&h(t,"equal")||l).call(a,null!=t?h(t,"VIDEO_SHOW_CTA"):t,"false",{name:"equal",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:73,column:77},end:{line:73,column:125}}}))?r:"")+'" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"CTA_BUTTON_URL")||(null!=t?h(t,"CTA_BUTTON_URL"):t))?s:l)==u?s.call(a,{name:"CTA_BUTTON_URL",hash:{},data:o,loc:{start:{line:73,column:141},end:{line:73,column:159}}}):s)+'" '+(null!=(r=(h(n,"equal")||t&&h(t,"equal")||l).call(a,null!=t?h(t,"VIDEO_SHOW_CTA"):t,"true",{name:"equal",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:73,column:161},end:{line:73,column:327}}}))?r:"")+' data-vgl-tabindex="1">\n <span class="cta-button__icon">\n <svg data-vgl-gesture="download-icon" class="download-icon">\n <use xlink:href="#cta-icon-download-square"></use>\n </svg>\n </span>\n <span class="cta-button__timer hide"></span>\n </div>\n </div>\n </div>\n</div>\n\n\x3c!-- incentivized dialog box --\x3e\n<script type="text/template" id="incentivized-title-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_TITLE_TEXT",null!=t?h(t,"INCENTIVIZED_TITLE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:87,column:4},end:{line:87,column:64}}}))+'\n<\/script>\n<script type="text/template" id="incentivized-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_BODY_TEXT",null!=t?h(t,"INCENTIVIZED_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:90,column:4},end:{line:90,column:62}}}))+'\n<\/script>\n<script type="text/template" id="incentivized-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_CONTINUE_TEXT",null!=t?h(t,"INCENTIVIZED_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:93,column:4},end:{line:93,column:70}}}))+' <svg class="action-icon"><use xlink:href="#dialog-replay-icon"></use></svg>\n<\/script>\n<script type="text/template" id="incentivized-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_CLOSE_TEXT",null!=t?h(t,"INCENTIVIZED_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:96,column:4},end:{line:96,column:64}}}))+'\n<\/script>\n\n\x3c!-- privacy dialog box --\x3e\n<script type="text/template" id="privacy-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_BODY_TEXT",null!=t?h(t,"PRIVACY_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:101,column:4},end:{line:101,column:52}}}))+'\n<\/script>\n<script type="text/template" id="privacy-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CONTINUE_TEXT",null!=t?h(t,"PRIVACY_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:104,column:4},end:{line:104,column:60}}}))+' <svg class="action-icon"><use xlink:href="#privacy-close-icon"></use></svg>\n<\/script>\n<script type="text/template" id="privacy-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CLOSE_TEXT",null!=t?h(t,"PRIVACY_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:107,column:4},end:{line:107,column:54}}}))+"\n<\/script>\n"},useData:!0})},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.RtbEndcard=window.vungle.templates.RtbEndcard||{},window.vungle.templates.RtbEndcard.template=Handlebars.template({1:function(e,t,n,i,o){return"hide"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div\n id="RtbEndcard"\n data-hbs-name="RtbEndcard"\n data-vgl-cta-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:4,column:33},end:{line:4,column:88}}}))+'"\n data-vgl-page\n class="hide">\n\n <div\n role="dialog"\n class="overlay-cta '+(null!=(r=h(n,"if").call(a,null!=t?h(t,"EC_HTML"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:27},end:{line:11,column:53}}}))?r:"")+'"\n data-vgl-gesture="cta-button"\n data-vgl-full-cta="true"\n data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"EC_CTA_URL")||(null!=t?h(t,"EC_CTA_URL"):t))?s:l)==u?s.call(a,{name:"EC_CTA_URL",hash:{},data:o,loc:{start:{line:14,column:22},end:{line:14,column:36}}}):s)+'">\n </div>\n\n <div class="header">\n <div\n class="close-countdown"\n data-vgl-delay-show="'+c(typeof(s=null!=(s=h(n,"EC_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"EC_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"EC_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:20,column:33},end:{line:20,column:68}}}):s)+'"\n data-vgl-delay-show-incentivized="'+c(typeof(s=null!=(s=h(n,"EC_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"EC_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"EC_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:21,column:46},end:{line:21,column:81}}}):s)+'"\n data-vgl-delay-show-max="6"\n data-vgl-show-countdown-timer="'+c(typeof(s=null!=(s=h(n,"SHOW_EC_CLOSE_BUTTON_COUNTDOWN")||(null!=t?h(t,"SHOW_EC_CLOSE_BUTTON_COUNTDOWN"):t))?s:l)==u?s.call(a,{name:"SHOW_EC_CLOSE_BUTTON_COUNTDOWN",hash:{},data:o,loc:{start:{line:23,column:43},end:{line:23,column:79}}}):s)+'">\n\n <div class="close-btn-container" data-vgl-tabindex="3">\n <svg data-vgl-gesture="close-icon" class="close-btn">\n <use xlink:href="#close-icon"></use>\n </svg>\n </div>\n\n <span class="close-btn-text">'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"CLOSE_BUTTON_TEXT","Close",{name:"i18nt",hash:{},data:o,loc:{start:{line:31,column:41},end:{line:31,column:78}}}))+'</span>\n\n </div>\n </div>\n\n <div class="ad-container">\n <img class="background-image '+(null!=(r=h(n,"unless").call(a,null!=t?h(t,"EC_IMAGE"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:37,column:37},end:{line:37,column:72}}}))?r:"")+'" src="'+c(typeof(s=null!=(s=h(n,"EC_IMAGE")||(null!=t?h(t,"EC_IMAGE"):t))?s:l)==u?s.call(a,{name:"EC_IMAGE",hash:{},data:o,loc:{start:{line:37,column:79},end:{line:37,column:91}}}):s)+'">\n <div class="hidden-encoded-content">\n <abbr id="programmaticStyle">\n <base target=“_parent”>\n <style>\n body {\n margin: 0px;\n padding: 0px;\n overflow: hidden;\n }\n </style>\n </abbr>\n <abbr id="programmaticAdmHtml">'+c(typeof(s=null!=(s=h(n,"EC_HTML")||(null!=t?h(t,"EC_HTML"):t))?s:l)==u?s.call(a,{name:"EC_HTML",hash:{},data:o,loc:{start:{line:49,column:43},end:{line:49,column:54}}}):s)+'</abbr>\n </div>\n\n <iframe\n id="programmaticIframe"\n class="'+(null!=(r=h(n,"unless").call(a,null!=t?h(t,"EC_HTML"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:54,column:17},end:{line:54,column:51}}}))?r:"")+'"\n allow="autoplay"\n scrolling="no"\n frameBorder="0">\n </iframe>\n\n </div>\n\n <div class="footer">\n <div class="privacy-button bubble-button" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"VUNGLE_PRIVACY_URL")||(null!=t?h(t,"VUNGLE_PRIVACY_URL"):t))?s:l)==u?s.call(a,{name:"VUNGLE_PRIVACY_URL",hash:{},data:o,loc:{start:{line:63,column:64},end:{line:63,column:86}}}):s)+'" data-vgl-tabindex="2">\n <svg data-vgl-gesture="lock-icon" class="lock-icon">\n <use xlink:href="#lock-icon-2"></use>\n </svg>\n <span>\n <svg data-vgl-gesture="privacy-icon" class="privacy-icon">\n <use xlink:href="#lock-text"></use>\n </svg>\n </span>\n </div>\n </div>\n</div>\n\n<script type="text/template" id="privacy-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_BODY_TEXT",null!=t?h(t,"PRIVACY_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:78,column:4},end:{line:78,column:52}}}))+'\n<\/script>\n<script type="text/template" id="privacy-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CONTINUE_TEXT",null!=t?h(t,"PRIVACY_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:81,column:4},end:{line:81,column:60}}}))+' <svg class="action-icon"><use xlink:href="#privacy-close-icon"></use></svg>\n<\/script>\n<script type="text/template" id="privacy-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CLOSE_TEXT",null!=t?h(t,"PRIVACY_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:84,column:4},end:{line:84,column:54}}}))+"\n<\/script>\n\n"},useData:!0})},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(4),n(5),n(6),n(7),n(8);const i=(e,t,n)=>{const i=e,o=e.env.toLowerCase(),r=["dev","develop","development"].includes(o);return i[t]=r?window.console[n]:()=>{},i};function o(e="development"){const t={env:e};return i(t,"log","log"),i(t,"logWarn","warn"),i(t,"logInfo","info"),i(t,"logError","error"),t}!function(e,t){const n=t("production");e.logging=n,e.log=n.log,e.logInfo=n.logInfo,e.logError=n.logError,e.logWarn=n.logWarn}(window,o);const r=o("production"),{log:s}=r,{logInfo:a}=r,{logWarn:l}=r,{logError:c}=r;const u={fallbackLng:"en",resources:{en:{translation:{CTA_BUTTON_TEXT:"Download",Download:"Download",DOWNLOAD:"DOWNLOAD",INCENTIVIZED_CONTINUE_TEXT:"Continue",INCENTIVIZED_CLOSE_TEXT:"Close Ad",PRIVACY_CONTINUE_TEXT:"Close",PRIVACY_CLOSE_TEXT:"Read Vungle's Privacy Policy",INCENTIVIZED_TITLE_TEXT:"Close this ad?",INCENTIVIZED_BODY_TEXT:"Are you sure you want to skip this ad? You must finish watching to claim your reward.",PRIVACY_BODY_TEXT:"Vungle, Inc. understands the importance of privacy. Vungle operates a mobile ad network (the 'Ad Network' or the 'Services') through which Vungle displays targeted, contextual ads.",Play:"Play","Download Now":"Download Now",CLOSE_BUTTON_TEXT:"Close"},styling:{CTA_BUTTON_TEXT_COLOR:"#fff",CTA_BUTTON_BACKGROUND:"#01b27a"}},de:{translation:{CTA_BUTTON_TEXT:"Herunterladen",Download:"Herunterladen",DOWNLOAD:"Herunterladen",Play:"Spiel","Download Now":"Jetzt herunterladen"}},zh:{translation:{CTA_BUTTON_TEXT:"下载",Download:"下载",DOWNLOAD:"下载",Play:"玩","Download Now":"现在下载"},styling:{CTA_BUTTON_TEXT_COLOR:"#FAE8BC",CTA_BUTTON_BACKGROUND:"#E10A19","#fff":"#FAE8BC","#01b27a":"#E10A19"}},zh_TW:{translation:{CTA_BUTTON_TEXT:"下載",Download:"下載",DOWNLOAD:"下載","Download Now":"現在下載"},styling:{CTA_BUTTON_TEXT_COLOR:"#FAE8BC",CTA_BUTTON_BACKGROUND:"#E10A19","#fff":"#FAE8BC","#01b27a":"#E10A19"}},es:{translation:{CTA_BUTTON_TEXT:"Descargar",Download:"Descargar",DOWNLOAD:"Descargar","Download Now":"Descargar ahora"}},da:{translation:{CTA_BUTTON_TEXT:"Hent",Download:"Hent",DOWNLOAD:"Hent","Download Now":"Download nu"}},sv:{translation:{CTA_BUTTON_TEXT:"Ladda ner",Download:"Ladda ner",DOWNLOAD:"Ladda ner","Download Now":"Ladda ner nu"}},nb:{translation:{CTA_BUTTON_TEXT:"Nedlasting",Download:"Nedlasting",DOWNLOAD:"Nedlasting","Download Now":"Last ned nå"}},ru:{translation:{CTA_BUTTON_TEXT:"Скачать",Download:"Скачать",DOWNLOAD:"Скачать","Download Now":"Скачать сейчас"}},tr:{translation:{CTA_BUTTON_TEXT:"İndir",Download:"İndir",DOWNLOAD:"İndir","Download Now":"Şimdi İndirin"}},ar:{translation:{CTA_BUTTON_TEXT:"تحميل",Download:"تحميل",DOWNLOAD:"تحميل","Download Now":"التحميل الان"}},ko:{translation:{CTA_BUTTON_TEXT:"다운로드",Download:"다운로드",DOWNLOAD:"다운로드","Download Now":"지금 다운로드"}},ja:{translation:{CTA_BUTTON_TEXT:"ダウンロード",Download:"ダウンロード",DOWNLOAD:"ダウンロード","Download Now":"ダウンロード中"}},th:{translation:{CTA_BUTTON_TEXT:"ดาวน์โหลด",Download:"ดาวน์โหลด",DOWNLOAD:"ดาวน์โหลด","Download Now":"ดาวน์โหลดเดี๋ยวน"}},ms:{translation:{CTA_BUTTON_TEXT:"ഡൗൺലോഡ്",Download:"ഡൗൺലോഡ്",DOWNLOAD:"ഡൗൺലോഡ്","Download Now":"ഇപ്പോൾ ഡൗൺലോഡ്"}},vi:{translation:{CTA_BUTTON_TEXT:"Tải về",Download:"Tải về",DOWNLOAD:"Tải về","Download Now":"Tải ngay"}},fr:{translation:{CTA_BUTTON_TEXT:"Télécharger",Download:"Télécharger",DOWNLOAD:"Télécharger","Download Now":"Télécharger maintenant"}},it:{translation:{CTA_BUTTON_TEXT:"Scaricare",Download:"Scaricare",DOWNLOAD:"Scaricare","Download Now":"Scarica ora"}},pl:{translation:{CTA_BUTTON_TEXT:"Pobieranie",Download:"Pobieranie",DOWNLOAD:"Pobieranie","Download Now":"Pobierz teraz"}},pt:{translation:{CTA_BUTTON_TEXT:"Transferir",Download:"Transferir",DOWNLOAD:"Transferir","Download Now":"Baixe Agora"}},fi:{translation:{CTA_BUTTON_TEXT:"Ladata",Download:"Ladata",DOWNLOAD:"Ladata","Download Now":"Lataa nyt"}},id:{translation:{Play:"bermain"}},nl:{translation:{CTA_BUTTON_TEXT:"Downloaden",Download:"Downloaden",DOWNLOAD:"Downloaden","Download Now":"Spelen"}},sl:{translation:{CTA_BUTTON_TEXT:"Prenesi",Download:"Prenesi",DOWNLOAD:"Prenesi","Download Now":"Prenesi zdaj"}}}};function h(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f="01010110 01110101 01101110 01100111 01101100 01100101 00100000 01001001 01010000 01001111",v=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==f)throw{name:"SingletonException",message:"Cannot create another EventBus singleton object!"};this.listeners={}}var t,n,i;return t=e,i=[{key:"instance",get:function(){return this.singleton||(this.singleton=new e(f)),this.singleton}}],(n=[{key:"findHandler",value:function(t,n){for(var i=-1,o=e.instance.listeners[t].length,r=0;r<o&&-1===i;r++)e.instance.listeners[t][r].uuid===n.uuid&&(i=r);return i}},{key:"subscribe",value:function(t,n){return t in e.instance.listeners?e.instance.listeners[t].push(n):e.instance.listeners[t]=[n],n.uuid}},{key:"publish",value:function(t,n){if(t in e.instance.listeners)for(var i=e.instance.listeners[t],o=0;o<i.length;o++)"function"==typeof i[o]&&setTimeout(void(0,i[o])(n),0)}},{key:"unsubscribe",value:function(t,n){if(t in e.instance.listeners){var i=this.findHandler(t,n);-1!==i&&(e.instance.listeners[t].splice(i,1),0===e.instance.listeners[t].length&&delete e.instance.listeners[t])}}},{key:"unsubscribeAll",value:function(t){Object.keys(e.instance.listeners).forEach((function(n){h(e.instance.listeners[n]).forEach((function(i,o){"_id"in i&&i._id===t&&e.instance.listeners[n].splice(o,1)}))}))}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m="01000101 01000011 01001101 01000001 01010011 01100011 01110010 01101001 01110000 01110100 00100000 00110010 00110000 00110001 00110101",g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==m)throw{name:"SingletonException",message:"Cannot create another UUID singleton object!"};this.lastGenerated=null}var t,n,i;return t=e,i=[{key:"instance",get:function(){return this.singleton||(this.singleton=new e(m)),this.singleton}}],(n=[{key:"generate",value:function(){var e=Date.now();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}));return t===this.lastGenerated?this.generate():t}}])&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();Function.prototype.uuidBind=function(){var e=Function.prototype.bind.apply(this,arguments);return e.uuid=g.instance.generate(),"_id"in arguments[0]&&(e._id=arguments[0]._id),this.uuid=e.uuid,e};var b=g;function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.selector=t,this.element=null,this.initialized=!1,this._id=b.instance.generate()}var t,n,i;return t=e,(n=[{key:"getElement",value:function(){return this.element||(this.element=document.querySelector(this.selector)),this.element}},{key:"init",value:function(){throw{name:"NoImplException",message:"No init method provided in UIElement derived class!"}}},{key:"show",value:function(){this.isVisible()||(this.getElement().style.visibility="visible")}},{key:"hide",value:function(){this.isVisible()&&(this.getElement().style.visibility="hidden")}},{key:"destroy",value:function(){}},{key:"isVisible",value:function(){return"visible"===window.getComputedStyle(this.getElement()).visibility}},{key:"pause",value:function(){}}])&&w(t.prototype,n),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(r,e);var t,n,i,o=k(r);function r(e){var t,n=e.selector,i=e.isIncentivized,s=void 0!==i&&i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).isIncentivized=s,t.showDelayMilliseconds=0,t}return t=r,(n=[{key:"getShowDelayMilliseconds",value:function(){if(!this.showDelayMilliseconds){var e=this.isIncentivized?"data-vgl-delay-show-incentivized":"data-vgl-delay-show",t=this.getElement().getAttribute(e),n=this.getElement().getAttribute("data-vgl-delay-show-max");n&&parseInt(t,10)>parseInt(n,10)&&(t=n),this.showDelayMilliseconds=t?"9999"!==t?1e3*parseFloat(t):null:0}return this.showDelayMilliseconds}},{key:"init",value:function(){this.initialized||(this.getElement().addEventListener("click",this.onClick.bind(this)),this.initialized=!0)}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"onClick",value:function(){throw{name:"NoImplException",message:"No onClick method provided in AbstractDelayShowButton derived class!"}}}])&&O(t.prototype,n),i&&O(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);n(9),n(10);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=P(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function P(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=L(e)););return e}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return V(this,n)}}function V(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(r,e);var t,n,i,o=_(r);function r(e){var t,n=e.selector,i=e.themeColor,s=e.titleText,a=void 0===s?null:s,l=e.bodyText,c=void 0===l?null:l,u=e.primaryText,h=void 0===u?null:u,d=e.secondaryText,p=void 0===d?null:d,f=e.primaryEvent,v=void 0===f?null:f,y=e.secondaryEvent,m=void 0===y?null:y;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).themeColor=i,t.titleText=a,t.bodyText=c,t.primaryText=h,t.secondaryText=p,t.primaryEvent=v,t.secondaryEvent=m,t.secondaryButton=null,t.primaryButton=null,t.dialogContent=null,t.titleTextElement=null,t.bodyTextElement=null,t.primaryButtonContainer=null,t.secondaryButtonContainer=null,t}return t=r,(n=[{key:"getCloseButton",value:function(){return this.secondaryButton||(this.secondaryButton=document.querySelector("".concat(this.selector," .secondary"))),this.secondaryButton}},{key:"getCloseButtonContainer",value:function(){return this.secondaryButtonContainer||(this.secondaryButtonContainer=document.querySelector("".concat(this.selector," .secondary-button"))),this.secondaryButtonContainer}},{key:"getContinueButton",value:function(){return this.primaryButton||(this.primaryButton=document.querySelector("".concat(this.selector," .primary"))),this.primaryButton}},{key:"getContinueButtonContainer",value:function(){return this.primaryButtonContainer||(this.primaryButtonContainer=document.querySelector("".concat(this.selector," .primary-button"))),this.primaryButtonContainer}},{key:"getDialogContent",value:function(){return this.dialogContent||(this.dialogContent=document.querySelector("".concat(this.selector," .dialog-content"))),this.dialogContent}},{key:"getBodyTextElement",value:function(){return this.bodyTextElement||(this.bodyTextElement=document.querySelector("".concat(this.selector," .body-text"))),this.bodyTextElement}},{key:"getTitleTextElement",value:function(){return this.titleTextElement||(this.titleTextElement=document.querySelector("".concat(this.selector," .title-text"))),this.titleTextElement}},{key:"setThemeColor",value:function(){this.getContinueButton().style.backgroundColor=this.themeColor,this.getDialogContent().style.borderTopColor=this.themeColor,this.getTitleTextElement().style.backgroundColor=this.themeColor}},{key:"setTitleText",value:function(){this.titleText?this.getTitleTextElement().innerHTML=this.titleText:this.getTitleTextElement().innerHTML=""}},{key:"setBodyText",value:function(){this.bodyText&&(this.getBodyTextElement().innerHTML=this.bodyText)}},{key:"setPrimaryText",value:function(){this.primaryText&&(this.getContinueButton().innerHTML=this.primaryText)}},{key:"setSecondaryText",value:function(){this.secondaryText&&(this.getCloseButton().innerHTML=this.secondaryText)}},{key:"init",value:function(){this.initialized||(this.setThemeColor(),this.initialized=!0)}},{key:"show",value:function(){x(L(r.prototype),"show",this).call(this),this.eventDispatcher.publish("event.dialogBoxShow",this),this.onDialogBoxCloseButtonClick=this.onDialogBoxCloseButtonClick.bind(this),this.onDialogBoxContinueButtonClick=this.onDialogBoxContinueButtonClick.bind(this),this.getCloseButton().addEventListener("click",this.onDialogBoxCloseButtonClick,!1),this.getContinueButton().addEventListener("click",this.onDialogBoxContinueButtonClick,!1),this.setTitleText(),this.setBodyText(),this.setPrimaryText(),this.setSecondaryText()}},{key:"hide",value:function(){x(L(r.prototype),"hide",this).call(this),this.eventDispatcher.publish("event.dialogBoxHide"),this.getCloseButton().removeEventListener("click",this.onDialogBoxCloseButtonClick,!1),this.getContinueButton().removeEventListener("click",this.onDialogBoxContinueButtonClick,!1)}},{key:"onDialogBoxCloseButtonClick",value:function(){this.eventDispatcher.publish(this.secondaryEvent),this.hide()}},{key:"onDialogBoxContinueButtonClick",value:function(){this.eventDispatcher.publish(this.primaryEvent),this.hide()}}])&&B(t.prototype,n),i&&B(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E),M=n(0),j=n.n(M);function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function U(e,t,n){return t&&z(e.prototype,t),n&&z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=U((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,Object.freeze(this)}));H(F,"iOS",new F("iOS")),H(F,"Android",new F("Android")),H(F,"Windows",new F("Windows")),H(F,"Amazon",new F("Amazon"));var X=F,Y=function(e){var t=re();return t&&"function"==typeof t[e]?t[e]:null},q=function(){var e=Y("getOSVersion");return null!==e?e():"0.0.0"},W=function(){var e=Y("getSDKVersion");return null!==e?e():"0.0.0"},G=function(){var e=Y("getOS"),t=null!==e?e():window.navigator.userAgent.match(/Android/i)?"Android":"Unknown";switch(t.trim().toLowerCase()){case"ios":return X.iOS;case"android":return X.Android;case"windows":return X.Windows;case"amazon":return X.Amazon;default:return c("Unable to detect Operating System from mraid Extension getOS or from userAgent: ".concat(t)),null}};function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return J(this,n)}}function J(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ie=function(){function e(){ee(this,e),this.mraid=null,this.mraidExt=null,this.mraidBridge=null,this.mraidBridgeExt=null,this.mraidErrorMap=null,this.mraidVersion=null,this.MIN_VUNGLE_MRAID2=">=4.6.0",this.readyCallback=null}return ne(e,[{key:"VungleMRAID",get:function(){return this.mraid||(this.mraid=window.vungle.mraid||window.mraid),this.mraid}},{key:"VungleMRAIDExt",get:function(){return this.mraidExt||(this.mraidExt=window.vungle.mraidExt),this.mraidExt}},{key:"VungleMRAIDBridge",get:function(){return this.mraidBridge||(this.mraidBridge=window.vungle.mraidBridge),this.mraidBridge}},{key:"VungleMRAIDBridgeExt",get:function(){return this.mraidBridgeExt||(this.mraidBridgeExt=window.vungle.mraidBridgeExt),this.mraidBridgeExt}},{key:"VungleMRAIDErrorMap",get:function(){return this.mraidErrorMap||(this.mraidErrorMap=window.vungle.error),this.mraidErrorMap}},{key:"VungleMRAIDVersion",get:function(){return"getMraidVersion"in this.VungleMRAIDExt&&(this.mraidVersion=this.VungleMRAIDExt.getMraidVersion()),this.mraidVersion}},{key:"consent",get:function(){return this.isStandardMRAID2()?this.VungleMRAIDExt:this.VungleMRAID}},{key:"os",get:function(){var e=G();return e?e.name.toLowerCase():"unknown"}},{key:"osVersion",get:function(){return q().trim()}},{key:"DynamicElement",get:function(){return this.dynamicElement||(this.dynamicElement=document.querySelector("#dynamic")),this.dynamicElement}},{key:"VungleCTA",get:function(){if(!this.cta){var e=this.VungleMRAIDBridgeExt.getReplacementTokens();this.cta={uri:e.CTA_BUTTON_URL,appStoreId:e.APP_STORE_ID||this.getApiIdFromUrl(e.CTA_BUTTON_URL)}}return this.cta}},{key:"getApiIdFromUrl",value:function(e){if(!e)return null;var t=e.match(/\/id([0-9]*)/i);return t&&t[1]?t[1]:null}},{key:"openPrivacyURI",value:function(e){if(this.isStandardMRAID2())return this.VungleMRAID.open(e);this.VungleMRAIDBridgeExt.openPrivacy(e),"ios"===this.os&&this.VungleMRAID.open(e)}},{key:"isConsentRequired",value:function(){return"getConsentRequired"in this.consent&&this.consent.getConsentRequired()}},{key:"isStandardMRAID2",value:function(){return this.VungleMRAIDVersion&&Object(M.satisfies)(this.VungleMRAIDVersion,this.MIN_VUNGLE_MRAID2)}},{key:"initCustomOperations",value:function(){this.VungleMRAID.useCustomClose(),this.isStandardMRAID2()||this.VungleMRAIDExt.useCustomPrivacy(!0)}}]),e}(),oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(n,e);var t=Z(n);function n(){var e;return ee(this,n),(e=t.call(this)).readyCallback=null,e}return ne(n,[{key:"mraidReady",value:function(){this.VungleMRAID&&(this.VungleMRAID.addEventListener("error",this.mraidError),this.initCustomOperations()),this.readyCallback&&this.readyCallback()}},{key:"mraidReadyCheck",value:function(e){this.readyCallback=e,this.VungleMRAID&&"loading"===this.VungleMRAID.getState()?this.VungleMRAID.addEventListener("ready",this.mraidReady.bind(this)):this.mraidReady()}},{key:"mraidError",value:function(e,t){window.console&&window.console.log("%cMRAID (SDK) Error Detected. time=%f, message=%s, action=%s","color: red; font-size: x-large",Date.now(),e,t)}}]),n}(ie),re=function(){return window.vungle.mraidExt},se=function(){return window.vungle.mraidBridgeExt};n(12),n(13);function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ce(){return(ce="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ue(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ue(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fe(e)););return e}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=fe(e);if(t){var o=fe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return pe(this,n)}}function pe(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(r,e);var t,n,i,o=de(r);function r(e){var t,n=e.selector;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).consentButton=null,t.noConsentButton=null,t.titleTextElement=null,t.bodyTextElement=null,t.bodyTextContainer=null,t.bodyTextTranslateY=0,t.resizeFinishedTimeout=null,t.mraidObject=new ie,t}return t=r,(n=[{key:"getDialog",value:function(){return this.dialog||(this.dialog=document.querySelector("".concat(this.selector," .dialog"))),this.dialog}},{key:"getConsentButton",value:function(){return this.consentButton||(this.consentButton=document.querySelector("".concat(this.selector," .consent-button button"))),this.consentButton}},{key:"getNoConsentButton",value:function(){return this.noConsentButton||(this.noConsentButton=document.querySelector("".concat(this.selector," .no-consent-button button"))),this.noConsentButton}},{key:"getTitleTextElement",value:function(){return this.titleTextElement||(this.titleTextElement=document.querySelector("".concat(this.selector," .title-text"))),this.titleTextElement}},{key:"getBodyTextContainer",value:function(){return this.bodyTextContainer||(this.bodyTextContainer=document.querySelector("".concat(this.selector," .body-text-container"))),this.bodyTextContainer}},{key:"getBodyTextElement",value:function(){return this.bodyTextElement||(this.bodyTextElement=document.querySelector("".concat(this.selector," .body-text"))),this.bodyTextElement}},{key:"setBodyText",value:function(){this.getBodyTextElement().innerHTML=this.mraidObject.consent.getConsentBodyText()}},{key:"setConsentText",value:function(){this.getConsentButton().innerHTML=this.mraidObject.consent.getConsentAcceptButtonText()}},{key:"setNoConsentText",value:function(){this.getNoConsentButton().innerHTML=this.mraidObject.consent.getConsentDenyButtonText()}},{key:"setTitleText",value:function(){this.getTitleTextElement().innerHTML=this.mraidObject.consent.getConsentTitleText()}},{key:"init",value:function(){this.initialized||(this.initialized=!0,this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)))}},{key:"show",value:function(){ce(fe(r.prototype),"show",this).call(this),this.setDialogHeight(),this.setBodyText(),this.setConsentText(),this.setNoConsentText(),this.setTitleText(),this.onConsentButtonClick=this.onConsentButtonClick.bind(this),this.onNoConsentButtonClick=this.onNoConsentButtonClick.bind(this),this.getConsentButton().addEventListener("click",this.onConsentButtonClick),this.getNoConsentButton().addEventListener("click",this.onNoConsentButtonClick),this.onViewportChange()}},{key:"hide",value:function(){ce(fe(r.prototype),"hide",this).call(this),this.getConsentButton().removeEventListener("click",this.onConsentButtonClick),this.getNoConsentButton().removeEventListener("click",this.onNoConsentButtonClick),this.eventDispatcher.unsubscribeAll(this._id),clearTimeout(this.resizeFinishedTimeout),this.resizeFinishedTimeout=null}},{key:"setDialogHeight",value:function(){var e=window.innerHeight/100,t=window.innerWidth/100;this.getDialog().style.height="".concat(100*e-15*t,"px")}},{key:"onConsentButtonClick",value:function(){this.hide(),this.mraidObject.VungleMRAIDBridgeExt.consentAction("opted_in"),this.eventDispatcher.publish("event.gdprConsent","opted_in")}},{key:"onNoConsentButtonClick",value:function(){this.hide(),this.mraidObject.VungleMRAIDBridgeExt.consentAction("opted_out"),this.eventDispatcher.publish("event.gdprConsent","opted_out")}},{key:"resizeInterval",value:function(){var e=this;this.resizeFinishedInterval&&(clearInterval(this.resizeFinishedInterval),this.resizeFinishedInterval=null),this.resizeFinishedInterval=setInterval((function(){e.setDialogHeight()}),10)}},{key:"resizeTimeout",value:function(){var e=this;this.resizeFinishedTimeout&&(clearTimeout(this.resizeFinishedTimeout),this.resizeFinishedTimeout=null),this.resizeFinishedTimeout=setTimeout((function(){e.setDialogHeight(),clearInterval(e.resizeFinishedInterval),e.resizeFinishedInterval=null}),1e3)}},{key:"onViewportChange",value:function(){this.setDialogHeight(),this.resizeInterval(),this.resizeTimeout()}}])&&le(t.prototype,n),i&&le(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function ye(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"getViewportSize",value:function(){var e=0,t=0;return"number"==typeof window.innerHeight?(e=window.innerWidth,t=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(t=document.documentElement.clientHeight,e=document.documentElement.clientWidth):document.body&&document.body.clientHeight&&(t=document.body.clientHeight,e=document.body.clientWidth),{width:e,height:t}}},{key:"elementAddClass",value:function(e,t){var n=e&&e.split(" ")||[];return-1===n.indexOf(t)&&n.push(t),n.join(" ")}},{key:"elementRemoveClass",value:function(e,t){var n=e&&e.split(" ")||[],i=n.indexOf(t);return-1!==i&&n.splice(i,1),n.join(" ")}},{key:"addMultiEventListener",value:function(e,t,n){var i,o,r=t.split(" ");for(o=0,i=r.length;o<i;o++)e.addEventListener(r[o],n,!1)}},{key:"elementHasClass",value:function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)".concat(t,"(\\s|$)")))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!this.elementHasClass(e,t););return e}}],(n=null)&&ye(t.prototype,n),i&&ye(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Oe(e);if(t){var o=Oe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Te(this,n)}}function Te(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(r,e);var t,n,i,o=Ee(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).loopVideo=!1,t.progressBar=null,t.muteIconContainer=null,t.duration=0,t.videoProgressBackgroundColor=null,t.videoProgressBarSpan=null,t.playPromise=null,t.muted=!0,t.paused=!1,t.playing=!1,t.supposedCurrentTime=0,t}return t=r,(n=[{key:"getMuteIconContainer",value:function(){return this.muteIconContainer||(this.muteIconContainer=document.querySelector(".mute-icon-container")),this.muteIconContainer}},{key:"getProgressBar",value:function(){return this.progressBar||(this.progressBar=document.querySelector(".progress-bar")),this.progressBar}},{key:"getVideoProgressBackgroundColor",value:function(){return this.videoProgressBackgroundColor||(this.videoProgressBackgroundColor=document.querySelector(".progress-bar").getAttribute("data-vgl-progress-background-color")),this.videoProgressBackgroundColor}},{key:"getVideoProgressBarSpan",value:function(){return this.videoProgressBarSpan||(this.videoProgressBarSpan=document.querySelector(".progress-bar span")),this.videoProgressBarSpan}},{key:"getOverlayController",value:function(){return this.overlayController||(this.overlayController=document.querySelector(".overlay-video-controller")),this.overlayController}},{key:"init",value:function(){this.initialized||(this.loopVideo=this.getElement().hasAttribute("loop"),this.addVideoListener(),this.addMuteUnmuteListener(),this.addOverlayControllerListener(),this.setProgressBar(),this.eventDispatcher.subscribe("event.playVideoFromTime",this.playFromTime.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.eventDispatcher.subscribe("event.playVideo",this.play.uuidBind(this)),this.eventDispatcher.subscribe("event.pauseVideo",this.pause.uuidBind(this)),this.initialized=!0)}},{key:"addVideoListener",value:function(){this.loopVideo&&this.getElement().removeAttribute("loop"),this.getElement().addEventListener("seeking",this.onVideoSeeking.bind(this)),this.getElement().addEventListener("ended",this.onVideoEnded.bind(this)),this.getElement().addEventListener("timeupdate",this.onVideoTimeUpdate.bind(this)),this.getElement().addEventListener("timeupdate",this.onVideoTimeCheckpoint.bind(this)),this.getElement().addEventListener("loadedmetadata",this.onVideoLoadedMetadata.bind(this)),this.getElement().addEventListener("durationchange",this.onVideoDurationChange.bind(this)),this.getElement().addEventListener("volumechange",this.onVideoVolumeChange.bind(this)),this.getElement().addEventListener("waiting",this.onVideoWaiting.bind(this)),this.getElement().addEventListener("suspend",this.onVideoSuspend.bind(this)),this.getElement().load()}},{key:"addMuteUnmuteListener",value:function(){var e=this,t=document.querySelector(".unmute-video-wrap"),n=document.querySelector(".mute-video-wrap");t.addEventListener("click",(function(){t.setAttribute("class",me.elementAddClass(t.className,"hidden")),n.setAttribute("class",me.elementRemoveClass(n.className,"hidden")),e.muteUnmute(!0),e.eventDispatcher.publish("event.videoSoundUpdate","mute")})),n.addEventListener("click",(function(){n.setAttribute("class",me.elementAddClass(n.className,"hidden")),t.setAttribute("class",me.elementRemoveClass(t.className,"hidden")),e.muteUnmute(!1),e.eventDispatcher.publish("event.videoSoundUpdate","unmute")}))}},{key:"addOverlayControllerListener",value:function(){var e=this;this.getOverlayController()&&this.getOverlayController().addEventListener("click",(function(){e.hideOverlayController(),e.play()}))}},{key:"positionOnWindows",value:function(){if(this.isWindows()){var e=Math.abs(window.innerHeight-window.outerHeight),t=this.getMuteIconContainer().getBoundingClientRect().top;this.getMuteIconContainer().setAttribute("class",me[e>5&&e<=20&&t<=40?"elementAddClass":"elementRemoveClass"](this.getMuteIconContainer().className,"windows-full-screen"))}}},{key:"isWindows",value:function(){return me.elementHasClass(document.querySelector("#dynamic"),"windows")}},{key:"setMuteIconContainer",value:function(){this.getMuteIconContainer().setAttribute("class",me.elementRemoveClass(this.getMuteIconContainer().className,"windows-full-screen")),this.getMuteIconContainer().style.marginLeft="",this.getMuteIconContainer().style.marginTop="",this.getProgressBar().style.marginLeft="",this.videoRatio=this.getElement().videoWidth/this.getElement().videoHeight,this.videoOffsetWidth=this.getElement().offsetWidth,this.videoOffsetHeight=this.getElement().offsetHeight,this.elementRatio=this.videoOffsetWidth/this.videoOffsetHeight,this.elementRatio>this.videoRatio?(this.videoOffsetWidth=this.videoOffsetHeight*this.videoRatio,this.getMuteIconContainer().style.marginLeft="".concat((this.getElement().clientWidth-this.videoOffsetWidth)/2,"px")):(this.videoOffsetHeight=this.videoOffsetWidth/this.videoRatio,this.getMuteIconContainer().style.marginTop="".concat((this.getElement().clientHeight-this.videoOffsetHeight)/2,"px")),this.getProgressBar().style.width="".concat(this.videoOffsetWidth,"px"),this.getProgressBar().style.marginLeft=this.getMuteIconContainer().style.marginLeft,this.positionOnWindows()}},{key:"show",value:function(){}},{key:"hide",value:function(){this.pause()}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"pause",value:function(){var e=this;if(!this.paused){this.clearCheckIfPayingInterval();var t=function(){!e.getElement().paused&&e.getElement().pause(),e.paused=!0,e.eventDispatcher.publish("event.videoStateChanged","pause")};this.playPromise?this.playPromise.then(t):t()}}},{key:"play",value:function(){var e=this;if(this.paused){this.clearCheckIfPayingInterval();var t=function(){e.paused=!1,e.checkIfPlaying(),e.eventDispatcher.publish("event.videoStateChanged","play")};this.playPromise=this.getElement().play(),G()===X.Android&&Object(M.satisfies)(q(),"<=19")&&(this.getElement().pause(),this.getElement().muted=this.muted,this.getElement().offsetHeight,this.playPromise=this.getElement().play()),this.playPromise?this.playPromise.then(t).catch(t):t()}}},{key:"checkIfPlaying",value:function(){var e=this;if(this.duration){var t=0,n=this.getElement().currentTime;this.clearCheckIfPayingInterval(),this.checkIfPayingInterval=setInterval((function(){if(e.getElement().currentTime===n)return e.paused=!0,t>=4?(t=0,e.clearCheckIfPayingInterval(),e.showOverlayController(),void e.eventDispatcher.publish("event.videoStateChanged","pause")):(t++,e.hideOverlayController(),void(e.playPromise=e.getElement().play()));t=0,e.paused=!1,e.clearCheckIfPayingInterval(),e.hideOverlayController()}),250)}}},{key:"clearCheckIfPayingInterval",value:function(){this.checkIfPayingInterval&&(clearInterval(this.checkIfPayingInterval),this.checkIfPayingInterval=null)}},{key:"playFromTime",value:function(e){this.getElement().currentTime=e}},{key:"progressBarUpdate",value:function(e){e.duration>=0&&(document.querySelector(".progress-bar span").style.width="".concat(e.currentTime/e.duration*100,"%"))}},{key:"showOverlayController",value:function(){this.playing=!1,this.getOverlayController()&&(this.eventDispatcher.publish("event.videoViewed",{currentTime:.1}),this.getOverlayController().setAttribute("class",me.elementRemoveClass(this.overlayController.className,"hide")))}},{key:"hideOverlayController",value:function(){this.playing=!0,this.getOverlayController()&&this.getOverlayController().setAttribute("class",me.elementAddClass(this.overlayController.className,"hide"))}},{key:"onViewportChange",value:function(){this.setMuteIconContainer()}},{key:"onVideoEnded",value:function(){this.loopVideo?(this.supposedCurrentTime=0,this.getElement().play()):this.eventDispatcher.publish("event.videoPlayComplete")}},{key:"onVideoTimeCheckpoint",value:function(){this.eventDispatcher.publish("event.videoPlayCheckpoint",{currentTime:this.getElement().currentTime,duration:this.getElement().duration})}},{key:"onVideoTimeUpdate",value:function(){this.eventDispatcher.publish("event.videoPlayTimeupdate",{currentTime:this.getElement().currentTime,duration:this.getElement().duration}),this.supposedCurrentTime=this.getElement().currentTime,this.getProgressBar()&&this.progressBarUpdate(this.getElement()),this.playing||this.hideOverlayController()}},{key:"setInitialMuteValue",value:function(){this.setMuteTokenValue(),this.setMuteUnmuteTheme(),this.setMuteIconContainer()}},{key:"onVideoVolumeChange",value:function(){}},{key:"onVideoSeeking",value:function(){var e=this.getElement().currentTime-this.supposedCurrentTime;Math.abs(e)>.01&&(this.getElement().pause(),this.getElement().currentTime=this.supposedCurrentTime)}},{key:"onVideoWaiting",value:function(){this.eventDispatcher.publish("event.videoBuffering")}},{key:"onVideoSuspend",value:function(){this.eventDispatcher.publish("event.videoSuspend")}},{key:"onVideoLoadedMetadata",value:function(){this.pause(),this.setInitialMuteValue(),this.play()}},{key:"onVideoDurationChange",value:function(){this.duration=this.getElement().duration,this.eventDispatcher.publish("event.videoMetadataAvailable",{height:this.getElement().videoHeight,width:this.getElement().videoWidth,duration:this.getElement().duration}),this.setInitialMuteValue()}},{key:"getMuteTokenValue",value:function(){return"true"===this.getMuteIconContainer().getAttribute("data-vgl-start-muted")}},{key:"muteUnmute",value:function(e){this.getElement().muted=e,this.muted=e}},{key:"setMuteTokenValue",value:function(){this.muteUnmute(this.getMuteTokenValue())}},{key:"setMuteUnmuteTheme",value:function(){var e=this.getMuteTokenValue(),t=document.querySelector(".unmute-video-wrap"),n=document.querySelector(".mute-video-wrap"),i=this.getMuteIconContainer();e?n.setAttribute("class",me.elementRemoveClass(n.className,"hidden")):t.setAttribute("class",me.elementRemoveClass(t.className,"hidden")),i.setAttribute("class",me.elementAddClass(i.className,e?"unmute-video":"mute-video"))}},{key:"setProgressBar",value:function(){"false"===this.getElement().getAttribute("data-vgl-video-timer")?this.getProgressBar().style.visibility="hidden":this.getVideoProgressBarSpan().style.background=this.getVideoProgressBackgroundColor()}}])&&be(t.prototype,n),i&&be(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function ke(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var De=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timerId=null,this.start=null,this.remaining=n,this.callback=t,this.timerState=null,this.resume()}var t,n,i;return t=e,(n=[{key:"pause",value:function(){this.timerState="pause",window.clearTimeout(this.timerId),this.remaining-=new Date-this.start}},{key:"resume",value:function(){"resume"!==this.timerState&&(this.start=new Date,window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.callback,this.remaining)),this.timerState="resume"}}])&&ke(t.prototype,n),i&&ke(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Se="event.endcardView",Ie="event.downloadButtonClick",Ae="event.downloadButtonClickWithValue",Be="event.videoPlayTimeupdate",xe="event.installButtonClick",Pe="event.videoSoundUpdate",Re="event.videoViewed",_e="event.videoPageClose",Ve="event.videoPlayCheckpoint",Le="event.privacyButtonClick",Ne="event.closeButtonPaddingClick",Me="event.storeKitOverlayAutoOpen",je="event.closeButtonContentClick",ze="closeButtonClick",Ue="nearCloseButtonClick",He="video.close",Fe="video.mute",Xe="video.unmute",Ye="download.ctaClick",qe="download.fullScreenClick",We="clickUrl",Ge="postroll.click",Ke="postroll.view",$e="muteButtonClick",Ze="privacyButtonClick",Je="storeKitOverlay.autoOpen.storeEndcardTimer";function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function nt(e,t,n){return t&&tt(e.prototype,t),n&&tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function it(){return(it="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ot(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ot(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ct(e)););return e}function rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ut=function(e){rt(n,e);var t=at(n);function n(e){var i=e.selector,o=e.isIncentivized;return et(this,n),t.call(this,{selector:i,isIncentivized:o})}return nt(n,[{key:"init",value:function(){!this.initialized&&this.isWindows()&&this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),it(ct(n.prototype),"init",this).call(this),window.vungle.flexFeed&&(this.getElement().style.visibility="hidden")}},{key:"isWindows",value:function(){return me.elementHasClass(document.querySelector("#dynamic"),"windows")}},{key:"positionOnWindows",value:function(){this.isWindows()&&this.onViewportChange()}},{key:"onClick",value:function(){this.eventDispatcher.publish(Ne),this.eventDispatcher.publish("event.closeButtonClick")}},{key:"onViewportChange",value:function(){var e=Math.abs(window.innerHeight-window.outerHeight);this.getElement().setAttribute("class",me[e>5&&e<=20?"elementAddClass":"elementRemoveClass"](this.getElement().className,"windows-full-screen"))}}]),n}(I),ht=function(e){rt(n,e);var t=at(n);function n(e){var i=e.selector,o=e.isIncentivized;return et(this,n),t.call(this,{selector:i,isIncentivized:o})}return nt(n,[{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.positionOnWindows(),t)window.vungle.flexFeed||it(ct(n.prototype),"show",this).call(this);else{var i=this.getShowDelayMilliseconds();"number"==typeof i?window.vungle.flexFeed||(0===i?it(ct(n.prototype),"show",this).call(this):(this.hide(),setTimeout((function(){it(ct(n.prototype),"show",e).call(e),e.showDelayMilliseconds=0}),i))):this.hide()}}}]),n}(ut),dt=function(e){rt(n,e);var t=at(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=e.updateCountdownEvent,a=void 0===s?null:s,l=e.pausePlayCountdownCustom,c=void 0===l?{event:null,play:"play",pause:"pause"}:l;return et(this,n),(i=t.call(this,{selector:o,isIncentivized:r})).updateCountdownEvent=a,i.pausePlayCountdownCustom=c,i}return nt(n,[{key:"init",value:function(){this.getButtonContainer().addEventListener("click",this.onButtonContainerClick.bind(this)),this.eventDispatcher.subscribe("event.videoStateChanged",this.onPausePlayCountdownEvent.bind(this)),it(ct(n.prototype),"init",this).call(this)}},{key:"getShowCountdownTimer",value:function(){return this.showCountdownTimer||(this.showCountdownTimer="true"===(this.getElement().getAttribute("data-vgl-show-countdown-timer")||"false")),this.showCountdownTimer}},{key:"getButtonCountdownText",value:function(){return this.buttonCountdownText||(this.buttonCountdownText=this.getElement().querySelector(".close-btn-text")),this.buttonCountdownText}},{key:"getButtonContainer",value:function(){return this.buttonContainer||(this.buttonContainer=this.getElement().querySelector(".close-btn-container")),this.buttonContainer}},{key:"onButtonContainerClick",value:function(e){e.stopPropagation(),this.eventDispatcher.publish("event.closeButtonClick"),this.eventDispatcher.publish(je)}},{key:"showHideButtonContainer",value:function(e){this.getButtonContainer().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getButtonContainer().className,"hide"))}},{key:"showHideButtonCountdownText",value:function(e){this.showCountdownTimer||(e=!1),this.getButtonCountdownText().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getButtonCountdownText().className,"hide"))}},{key:"enableDisableClick",value:function(e){this.getElement().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getElement().className,"disable-click"))}},{key:"startVirtualCountdown",value:function(e){var t=this,i=Math.round(e/1e3);i<=0||this.showDelayMilliseconds<=0?this.showAndEnableCloseButton(250):(this.showCountdownTimer&&(this.enableDisableClick(!1),this.showHideButtonContainer(!1),this.showHideButtonCountdownText(!0),this.getButtonCountdownText().textContent=i,it(ct(n.prototype),"show",this).call(this)),this.countdownInterval=new De((function(){e-=1e3,t.startVirtualCountdown(e)}),1e3))}},{key:"onUpdateCountdownEvent",value:function(e){var t=e.duration,i=void 0===t?null:t,o=e.currentTime,r=void 0===o?null:o;if("number"==typeof i&&!isNaN(i)){var s=i;"number"==typeof this.showDelayMilliseconds&&this.showDelayMilliseconds/1e3<i&&(s=this.showDelayMilliseconds/1e3);var a=Math.round(s-r);if(a<=0)return this.unsubscribeOnUpdateCountdownEvent(),void this.showAndEnableCloseButton(1e3*Math.abs(s-r)+250);this.showCountdownTimer&&(this.enableDisableClick(!1),this.showHideButtonContainer(!1),this.showHideButtonCountdownText(!0),this.getButtonCountdownText().textContent=a,it(ct(n.prototype),"show",this).call(this))}}},{key:"unsubscribeOnUpdateCountdownEvent",value:function(){this.eventDispatcher.unsubscribe(this.updateCountdownEvent,this.onUpdateCountdownEvent)}},{key:"showAndEnableCloseButton",value:function(e){var t=this;this.showHideButtonCountdownText(!1),this.showDelayMilliseconds=0,it(ct(n.prototype),"hide",this).call(this),setTimeout((function(){t.enableDisableClick(!0),t.showHideButtonContainer(!0),it(ct(n.prototype),"show",t).call(t)}),e)}},{key:"listenToUpdateCountdownEvent",value:function(){this.updateCountdownEvent&&this.eventDispatcher.subscribe(this.updateCountdownEvent,this.onUpdateCountdownEvent.uuidBind(this))}},{key:"listenToPausePlayCountdownEvent",value:function(){this.pausePlayCountdownCustom&&this.pausePlayCountdownCustom.event&&this.eventDispatcher.subscribe(this.pausePlayCountdownCustom.event,this.onPausePlayCountdownEvent.uuidBind(this))}},{key:"onPausePlayCountdownEvent",value:function(e){this.countdownInterval&&(e!==this.pausePlayCountdownCustom.pause&&"pause"!==e?this.countdownInterval.resume():this.countdownInterval.pause())}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.positionOnWindows(),e)window.vungle.flexFeed||(this.showDelayMilliseconds=0,this.updateCountdownEvent&&(this.unsubscribeOnUpdateCountdownEvent(),this.showAndEnableCloseButton()),this.enableDisableClick(!0),this.showHideButtonCountdownText(!1),this.showHideButtonContainer(!0),it(ct(n.prototype),"show",this).call(this));else if(this.hide(),this.getShowCountdownTimer(),this.enableDisableClick(!1),this.showHideButtonCountdownText(!1),this.showHideButtonContainer(!1),!window.vungle.flexFeed){var t=this.getShowDelayMilliseconds();"number"==typeof t?0===t?(this.enableDisableClick(!0),this.showHideButtonContainer(!0),it(ct(n.prototype),"show",this).call(this)):this.updateCountdownEvent?this.listenToUpdateCountdownEvent():(this.listenToPausePlayCountdownEvent(),this.startVirtualCountdown(t)):this.updateCountdownEvent&&this.listenToUpdateCountdownEvent()}}}]),n}(ut);function pt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ft(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var vt={DownloadButton:new(ft((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.HardHide=null,this.IncentivizedTimeout=null})))};function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function bt(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wt(){return(wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Et(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Et(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=St(e)););return e}function Tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return kt(this,n)}}function kt(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var It=function(e){Tt(n,e);var t=Ct(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=void 0!==r&&r,a=e.buttonColor,l=void 0===a?null:a;mt(this,n);var c=Dt(i=t.call(this,{selector:o,isIncentivized:s}));return i.uri=i.getElement().getAttribute("data-vgl-uri"),i.appStoreId=i.getElement().getAttribute("data-vgl-app-store-id")||i.getApiIdFromUrl(),i.buttonColor=l,i.mraidObject=new ie,i.isIncentivized&&!i.mraidObject.VungleMRAIDVersion&&(-1!==["ios"].indexOf(i.mraidObject.os)&&(i.hardHideDownload=new Bt({selector:c.selector})),-1!==["ios","android"].indexOf(i.mraidObject.os)&&(i.incentivizedTimeoutDownload=new xt({selector:c.selector}))),i}return bt(n,[{key:"clazz",get:function(){return"DownloadButton"}},{key:"destroy",value:function(){this.hardHideDownload&&this.hardHideDownload.destroy(),this.incentivizedTimeoutDownload&&this.incentivizedTimeoutDownload.destroy(),wt(St(n.prototype),"destroy",this).call(this)}},{key:"getApiIdFromUrl",value:function(){if(!this.uri)return null;var e=this.uri.match(/\/id([0-9]*)/i);return e&&e[1]?e[1]:null}},{key:"init",value:function(){this.initialized||(wt(St(n.prototype),"init",this).call(this),this.hardHideDownload&&this.hardHideDownload.init(),this.incentivizedTimeoutDownload&&this.incentivizedTimeoutDownload.init(),this.buttonColor&&(this.getElement().style.backgroundColor=this.buttonColor),this.initialized=!0)}},{key:"onClick",value:function(e){e.stopPropagation(),this.eventDispatcher.publish("event.downloadButtonClick",{uri:this.uri,appStoreId:this.appStoreId,type:"cta"})}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)wt(St(n.prototype),"show",this).call(this);else{var i=this.getShowDelayMilliseconds();"number"==typeof i?0===i?wt(St(n.prototype),"show",this).call(this):(this.hide(),setTimeout((function(){wt(St(n.prototype),"show",e).call(e),e.showDelayMilliseconds=0}),i)):this.hide()}}}]),n}(I),At=function(e){Tt(n,e);var t=Ct(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=void 0!==r&&r;return mt(this,n),(i=t.call(this,{selector:o,isIncentivized:s})).isEnabled="true"===i.getElement().getAttribute("data-vgl-full-cta"),i}return bt(n,[{key:"onAdViewableChanged",value:function(e){var t=this;"deny"!==vt.DownloadButton.HardHide?setTimeout((function(){t.getElement().setAttribute("class",me["maximized"===e?"elementRemoveClass":"elementAddClass"](t.getElement().className,"hide"))})):this.destroy()}},{key:"init",value:function(){this.initialized||(wt(St(n.prototype),"init",this).call(this),this.isEnabled&&this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged.uuidBind(this)),this.initialized=!0)}},{key:"onClick",value:function(){this.eventDispatcher.publish("event.downloadButtonClick",{uri:this.uri,appStoreId:this.appStoreId,type:"fsc"})}}]),n}(It),Bt=function(e){Tt(n,e);var t=Ct(n);function n(e){var i=e.selector;return mt(this,n),t.call(this,i)}return bt(n,[{key:"bury",value:function(){this.hide(),this.getElement().setAttribute("class",me.elementAddClass(this.getElement().className,"hide"))}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"onHardHideDownloadButton",value:function(){this.bury()}},{key:"init",value:function(){this.initialized||("deny"===vt.DownloadButton.HardHide?this.bury():this.eventDispatcher.subscribe("event.hardHideDownloadButton",this.onHardHideDownloadButton.uuidBind(this)),this.initialized=!0)}}]),n}(E),xt=function(e){Tt(n,e);var t=Ct(n);function n(e){var i=e.selector;return mt(this,n),t.call(this,i)}return bt(n,[{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"isOnClickDisabled",value:function(){return me.elementHasClass(this.getElement(),"disable-cta")}},{key:"isDelayedShown",value:function(){return me.elementHasClass(this.getElement(),"cta-delay-show")}},{key:"activateClick",value:function(){this.getElement().setAttribute("class",me.elementRemoveClass(this.getElement().className,"disable-cta"))}},{key:"deactivateClick",value:function(){this.getElement().setAttribute("class",me.elementAddClass(this.getElement().className,"disable-cta"))}},{key:"onVideoPlayTimeupdate",value:function(e){this.deactivateClick();var t=e.duration,n=e.currentTime;if("number"==typeof t&&!isNaN(t)){var i=Math.ceil(80*t/100),o=Math.round(i-n);if(!(o<=0)){var r=this.getElement().querySelector(".cta-button__timer"),s=this.getElement().querySelector(".cta-button__text"),a=this.getElement().querySelector(".cta-button__icon");s&&s.setAttribute("class",me.elementAddClass(s.className,"hide")),a&&a.setAttribute("class",me.elementAddClass(a.className,"hide")),r.setAttribute("class",me.elementRemoveClass(r.className,"hide")),r.innerHTML=o}}}},{key:"onSuccessfulViewAdReached",value:function(){if(this.activateClick(),this.isDelayedShown()){this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoPlayTimeupdate);var e=this.getElement().querySelector(".cta-button__timer"),t=this.getElement().querySelector(".cta-button__text"),n=this.getElement().querySelector(".cta-button__icon");t&&t.setAttribute("class",me.elementRemoveClass(t.className,"hide")),n&&n.setAttribute("class",me.elementRemoveClass(n.className,"hide")),e.setAttribute("class",me.elementAddClass(e.className,"hide"))}}},{key:"init",value:function(){if(!this.initialized){if("dismissed"===vt.DownloadButton.IncentivizedTimeout)this.destroy();else if(this.deactivateClick(),this.eventDispatcher.subscribe("event.successfulViewAdReached",this.onSuccessfulViewAdReached.uuidBind(this)),this.eventDispatcher.subscribe("event.dismissIncentivizedAdPage",this.onSuccessfulViewAdReached.uuidBind(this)),this.isDelayedShown()){var e=this.getElement().querySelector(".cta-button__timer"),t=this.getElement().querySelector(".cta-button__text"),n=this.getElement().querySelector(".cta-button__icon");t&&t.setAttribute("class",me.elementAddClass(t.className,"hide")),n&&n.setAttribute("class",me.elementAddClass(n.className,"hide")),e.setAttribute("class",me.elementAddClass(e.className,"hide")),this.eventDispatcher.subscribe("event.videoPlayTimeupdate",this.onVideoPlayTimeupdate.uuidBind(this))}this.initialized=!0}}}]),n}(E);function Pt(e){return(Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Nt(e);if(t){var o=Nt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){if(t&&("object"===Pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_t(e,t)}(r,e);var t,n,i,o=Vt(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).privacyButton=null,t.privacyURI=null,t.showLockIconMilliseconds=3e3,t.timer=null,t.subTimer=null,t}return t=r,(n=[{key:"getPrivacyButton",value:function(){return this.privacyButton||(this.privacyButton=document.querySelector(this.selector)),this.privacyButton}},{key:"getPrivacyURI",value:function(){return this.privacyURI||(this.privacyURI=this.getElement().getAttribute("data-vgl-uri")),this.privacyURI}},{key:"init",value:function(){this.initialized||(this.getPrivacyButton().addEventListener("click",this.onPrivacyButtonClick.bind(this)),this.initialized=!0)}},{key:"reset",value:function(){var e=this;clearTimeout(this.timer),this.timer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementRemoveClass(e.getPrivacyButton().className,"extended")),e.subTimer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementRemoveClass(e.getPrivacyButton().className,"reverse"))}),500)}),this.showLockIconMilliseconds),this.subTimer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementAddClass(e.getPrivacyButton().className,"reverse"))}),1e3)}},{key:"shortenPrivacyButton",value:function(){this.getPrivacyButton().setAttribute("class",me.elementAddClass(this.getPrivacyButton().className,"extended")),this.reset()}},{key:"isExtended",value:function(){return me.elementHasClass(this.getPrivacyButton(),"extended")}},{key:"onPrivacyButtonClick",value:function(){this.isExtended()&&this.eventDispatcher.publish("event.alertPrivacy"),this.shortenPrivacyButton()}}])&&Rt(t.prototype,n),i&&Rt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);var jt=n(2);function zt(e){return function(e){if(Array.isArray(e))return Ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ft=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.dataAttrStr="data-vgl-tabindex",this.clickable=["Video"];var t=this.forwardKeys=["Tab","ArrowRight","Right","ArrowUp","Up"],n=this.backwardKeys=["Shift+Tab","ArrowLeft","Left","ArrowDown","Down"],i=this.navKeys=[].concat(t,n),o=this.submitKeys=["Enter"],r=this.closeKeys=[];this.allKeys=[].concat(o,r,zt(i)),this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.dialogBoxObject=null}var t,n,i;return t=e,(n=[{key:"getViewHolder",value:function(){return this.viewName?(this.viewHolder||(this.viewHolder=document.querySelector("#".concat(this.viewName))),this.viewHolder):null}},{key:"getIndxEle",value:function(e,t){var n=this.getTabIndex(e);return e.querySelector("*[".concat(this.dataAttrStr,'="').concat(n[t],'"]'))}},{key:"getIndexedElements",value:function(e){return e.querySelectorAll("*[".concat(this.dataAttrStr,"]"))}},{key:"getTabIndex",value:function(e){var t=this;return[].filter.call(this.getIndexedElements(e),(function(e){if(t.isVisible(e))return e})).map((function(e){return parseInt(e.getAttribute(t.dataAttrStr),10)})).sort((function(e,t){return e-t}))}},{key:"init",value:function(){this.initialized||(this.onBodyTouch=this.onBodyTouch.uuidBind(this),this.onDialogBoxShow=this.onDialogBoxShow.uuidBind(this),this.onDialogBoxHide=this.onDialogBoxHide.uuidBind(this),this.onAdViewableChanged=this.onAdViewableChanged.uuidBind(this),this.onKeyDown=this.onKeyDown.uuidBind(this),this.onShowPage=this.onShowPage.uuidBind(this),window.addEventListener("keydown",this.onKeyDown,!0),document.body.addEventListener(jt.eventStart,this.onBodyTouch),this.eventDispatcher.subscribe("event.dialogBoxShow",this.onDialogBoxShow),this.eventDispatcher.subscribe("event.dialogBoxHide",this.onDialogBoxHide),this.eventDispatcher.subscribe("event.showPage",this.onShowPage),this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged),this.initialized=!0)}},{key:"onShowPage",value:function(e){var t=this;this.initialized&&(this.dialogBoxIndx=-1,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.viewHolder=null,this.viewName=null,this.closeButtonObject=e.getCloseButtonObject(),this.gdprDialogBoxObject=e.getGDPRDialogBoxObject(),this.dialogBoxObject=null,document.activeElement.blur(),setTimeout((function(){t.setTabIndexes(),t.viewName=e.viewName})))}},{key:"setTabIndexes",value:function(){if(!this.isTabbed){var e=this;[].forEach.call(this.getIndexedElements(document.body),(function(t){t.setAttribute("tabindex",parseInt(t.getAttribute(e.dataAttrStr),10))})),this.isTabbed=!0}}},{key:"blurCurrentElement",value:function(){var e=this;setTimeout((function(){document.activeElement.blur(),e.getViewHolder()&&e.getViewHolder().click()}))}},{key:"isVisible",value:function(e){return"visible"===window.getComputedStyle(e).getPropertyValue("visibility")&&e.offsetHeight}},{key:"focusOn",value:function(e,t){var n=this.getIndxEle(e,t);n&&n.focus()}},{key:"clickOn",value:function(e,t){var n=this.getIndxEle(e,t);n&&n.click()}},{key:"keyPressed",value:function(e,t,n,i,o,r){var s=this.getTabIndex(n);if(s.length)return o=o||function(){},r=r||function(){},-1!==this.closeKeys.indexOf(t)?(r(),i):-1!==this.submitKeys.indexOf(t)&&-1!==i?(this.clickOn(n,i),o(),i):(-1!==this.navKeys.indexOf(t)&&i<=-1?i=0:-1!==this.forwardKeys.indexOf(t)?i=i===s.length-1?0:i+1:-1!==this.backwardKeys.indexOf(t)&&(i=i<=0?s.length-1:i-1),this.focusOn(n,i,s),i)}},{key:"onKeyDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.key;if("Tab"===e.key&&e.shiftKey&&(t="Shift+".concat(e.key)),-1!==this.allKeys.indexOf(t)&&this.getViewHolder()){var n=this;if(this.dialogBoxObject&&this.dialogBoxObject.isVisible())return this.dialogBoxIndx=this.keyPressed(e,t,this.dialogBoxObject.getElement(),this.dialogBoxIndx,(function(){}),(function(){n.dialogBoxObject.isVisible()&&n.dialogBoxObject.getContinueButton().click()}));if(this.gdprDialogBoxObject&&this.gdprDialogBoxObject.isVisible())return this.gdprDialogBoxIndx=this.keyPressed(e,t,this.gdprDialogBoxObject.getElement(),this.gdprDialogBoxIndx,(function(){n.viewFocusIndx=-1,n.gdprDialogBoxIndx=-1,n.dialogBoxIndx=-1,n.blurCurrentElement()}));this.gdprDialogBoxIndx=-1,this.dialogBoxObject=null,this.dialogBoxIndx=-1,-1!==this.clickable.indexOf(this.viewName)&&this.getViewHolder().offsetHeight&&this.getViewHolder().offsetWidth&&-1===this.viewFocusIndx&&this.getViewHolder().click(),this.viewFocusIndx=this.keyPressed(e,t,this.getViewHolder(),this.viewFocusIndx,(function(){}),(function(){n.closeButtonObject&&n.closeButtonObject.isVisible()&&n.closeButtonObject.getElement().click()}))}}},{key:"onBodyTouch",value:function(){this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onDialogBoxShow",value:function(e){this.dialogBoxObject=e,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onDialogBoxHide",value:function(){this.dialogBoxObject=null,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onAdViewableChanged",value:function(e){"minimized"===e&&(this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement())}}])&&Ht(t.prototype,n),i&&Ht(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(r,e);var t,n,i,o=Wt(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).viewName=i,t.viewIndex=s,t.ctaBackgroundColor=null,t.gdprDialogBoxObject=null,t.closeButtonObject=null,t.privacyButtonObject=null,t.privacyDialogBoxObject=null,t.dialogboxSelector="#DIALOGBOX",t.gdprDialogboxSelector="#GDPRDialogBox",t.isIncentivizedAd=l,t.appInfo=null,t.ctaInfo=null,t.incentivizedDialogBoxObject=null,t.incentivizedTitleText=document.getElementById("incentivized-title-text").innerHTML,t.incentivizedBodyText=document.getElementById("incentivized-body-text").innerHTML,t.incentivizedPrimaryText=document.getElementById("incentivized-primary-text").innerHTML,t.incentivizedSecondaryText=document.getElementById("incentivized-secondary-text").innerHTML,t.getElement().style.display="none",t}return t=r,(n=[{key:"privacyBodyText",get:function(){return document.getElementById("privacy-body-text").innerHTML}},{key:"privacyPrimaryText",get:function(){return document.getElementById("privacy-primary-text").innerHTML}},{key:"privacySecondaryText",get:function(){return document.getElementById("privacy-secondary-text").innerHTML}},{key:"clazz",get:function(){return"AbstractPageView"}},{key:"getIncentivizedDialogBoxObject",value:function(){return this.incentivizedDialogBoxObject||(this.incentivizedDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),titleText:this.incentivizedTitleText,bodyText:this.incentivizedBodyText,primaryText:this.incentivizedPrimaryText,secondaryText:this.incentivizedSecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.incentivizedDialogBoxSecondaryButtonClick"})),this.incentivizedDialogBoxObject}},{key:"getGDPRDialogBoxObject",value:function(){return this.gdprDialogBoxObject||(this.gdprDialogBoxObject=new ve({selector:this.gdprDialogboxSelector})),this.gdprDialogBoxObject}},{key:"init",value:function(){this.initialized||(this.eventDispatcher.subscribe("event.alertPrivacy",this.onAlertPrivacy.uuidBind(this)),this.initialized=!0)}},{key:"show",value:function(){this.getElement().style.display="block";var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e),this.eventDispatcher.publish("event.showPage",this)}},{key:"onDialogBoxPrimaryButtonClick",value:function(){this.eventDispatcher.publish("event.resumeAdExperience")}},{key:"onIncentivizedDialogBoxSecondaryButtonClick",value:function(){this.eventDispatcher.publish("event.dismissPage")}},{key:"hide",value:function(){this.getElement().style.display="none",this.eventDispatcher.unsubscribeAll(this._id),this.eventDispatcher.publish("event.hidePage",this)}},{key:"getCTABackgroundColor",value:function(){return this.ctaBackgroundColor||(this.ctaBackgroundColor=this.getElement().getAttribute("data-vgl-cta-background-color")),this.ctaBackgroundColor}},{key:"getFullCTAObject",value:function(){return this.fullCtaObject||(this.fullCtaObject=new At({selector:"#".concat(this.viewName," .overlay-cta"),isIncentivized:this.isIncentivizedAd})),this.fullCtaObject}},{key:"getCTAButtonObject",value:function(){return this.ctaButtonObject||(this.ctaButtonObject=new It({selector:"#".concat(this.viewName," .cta-button"),buttonColor:this.getCTABackgroundColor(),isIncentivized:this.isIncentivizedAd})),this.ctaButtonObject}},{key:"getCloseButtonObject",value:function(){return this.closeButtonObject||(this.closeButtonObject=new ht({selector:"#".concat(this.viewName," .close"),isIncentivized:this.isIncentivizedAd})),this.closeButtonObject}},{key:"getPrivacyButtonObject",value:function(){return this.privacyButtonObject||(this.privacyButtonObject=new Mt("#".concat(this.viewName," .privacy-button"))),this.privacyButtonObject}},{key:"getPrivacyDialogBoxObject",value:function(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogSecondaryButtonClick"})),this.privacyDialogBoxObject}},{key:"onAlertPrivacy",value:function(){this.getPrivacyDialogBoxObject().show()}},{key:"onCloseButtonClick",value:function(){this.eventDispatcher.publish("event.dismissPage")}},{key:"onPrivacyDialogBoxSecondaryButtonClick",value:function(){var e=this.getPrivacyButtonObject().getPrivacyURI();this.eventDispatcher.publish("event.privacyButtonClick",e)}},{key:"getAppInfo",value:function(){return this.appInfo||(this.appInfo=document.querySelector("#".concat(this.viewName," .app-info"))),this.appInfo}},{key:"getCTAInfo",value:function(){return this.ctaInfo||(this.ctaInfo=document.querySelector("#".concat(this.viewName," .cta-info"))),this.ctaInfo}},{key:"onViewportChange",value:function(){}}])&&Yt(t.prototype,n),i&&Yt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function Zt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Jt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.checkpoints=[0,25,50,75,100],this.checkpointsReached=[],this.successfulViewAd=80,this.successfulViewAdReached=!1,this.videoViewedPerSecond=0,this.mraid=new ie,this.apiMap=null}var t,n,i;return t=e,(n=[{key:"init",value:function(e){this.apiMap=e,this.checkpointsReached.length=this.checkpoints.length,this.eventDispatcher.subscribe(Se,this.onEndcardView.uuidBind(this)),this.eventDispatcher.subscribe(_e,this.onVideoPageClose.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.onDownloadButtonClickTPAT.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.onDownloadButtonClickReportAd.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.reportCtaClick.uuidBind(this)),this.eventDispatcher.subscribe(Ae,this.onDownloadButtonClickWithValue.uuidBind(this)),this.eventDispatcher.subscribe(Ve,this.onVideoCheckpoint.uuidBind(this)),this.eventDispatcher.subscribe(Be,this.onSuccessfulViewAd.uuidBind(this)),this.eventDispatcher.subscribe(Be,this.onVideoLength.uuidBind(this)),this.eventDispatcher.subscribe(xe,this.onDirectDownloadClickTPAT.uuidBind(this)),this.eventDispatcher.subscribe(xe,this.onDirectDownloadClickReportAd.uuidBind(this)),this.eventDispatcher.subscribe(Pe,this.onVideoSoundUpdate.uuidBind(this)),this.eventDispatcher.subscribe(Re,this.onVideoViewed.uuidBind(this)),this.eventDispatcher.subscribe(je,this.reportCloseButtonContentClick.uuidBind(this)),this.eventDispatcher.subscribe(Ne,this.notifyCloseButtonPaddingClicked.uuidBind(this)),this.eventDispatcher.subscribe(Le,this.firePrivacyButtonClickTpatEvent.uuidBind(this)),this.eventDispatcher.subscribe(Me,this.fireStoreKitOverlayAutoOpenTpatEvent.uuidBind(this))}},{key:"fireTpat",value:function(e){var t=[ze,Ue,Ye,qe,$e,Ze,Je],n="ios"===this.os;t.includes(e)&&!n||this.apiMap.tpat&&this.apiMap.tpat(e)}},{key:"toVideoCheckpointsIndex",value:function(e,t){var n=100*(t-e<=.5?1:(Math.floor(e/t*4)/4).toFixed(2));return 0===n?0:25===n?1:50===n?2:75===n?3:100===n?4:void 0}},{key:"onVideoCheckpoint",value:function(e){var t=this.toVideoCheckpointsIndex(e.currentTime,e.duration);e.currentTime>0&&e.duration&&"number"==typeof e.duration&&this.videoViewedPerSecond<=Math.round(e.currentTime)&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.videoViewedPerSecond++);for(var n=0;n<=t;n++)void 0===this.checkpointsReached[n]&&e.currentTime>0&&e.duration&&"number"==typeof e.duration&&(this.checkpointsReached[n]=!0,this.apiMap.tpat&&this.apiMap.tpat("checkpoint.".concat(this.checkpoints[n])));!0===this.checkpointsReached[this.checkpoints.length-1]&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.duration)),this.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint))}},{key:"onVideoSoundUpdate",value:function(e){this.fireTpat($e),"mute"===e?this.fireTpat(Fe):"unmute"===e&&this.fireTpat(Xe)}},{key:"onVideoViewed",value:function(e){this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.eventDispatcher.unsubscribe("event.videoViewed",this.onVideoViewed)}},{key:"onVideoPageClose",value:function(){this.eventDispatcher.unsubscribe(Ve,this.onVideoCheckpoint),this.fireTpat(He)}},{key:"notifyCloseButtonPaddingClicked",value:function(){this.fireTpat(Ue)}},{key:"onEndcardView",value:function(){this.fireTpat(Ke)}},{key:"onDirectDownloadClickTPAT",value:function(){var e=this;setTimeout((function(){e.eventDispatcher.unsubscribe(xe,e.onDirectDownloadClickTPAT)})),this.fireTpat(We),this.fireTpat(Ge)}},{key:"onDirectDownloadClickReportAd",value:function(){this.apiMap.gesture&&this.apiMap.gesture("event","download"),this.apiMap.eventValuePair&&this.apiMap.eventValuePair("postroll.click",1),this.apiMap.eventValuePair&&this.apiMap.eventValuePair("download",1)}},{key:"reportCloseButtonContentClick",value:function(){this.fireTpat(ze)}},{key:"reportCtaClick",value:function(e){e&&("cta"===e.type?this.fireTpat(Ye):"fsc"===e.type&&this.fireTpat(qe))}},{key:"onDownloadButtonClickReportAd",value:function(){-1===["ios"].indexOf(this.os)&&this.apiMap.gesture&&this.apiMap.gesture("event","download")}},{key:"onDownloadButtonClickWithValue",value:function(e){null==e?this.apiMap.gesture&&this.apiMap.gesture("event","download"):this.apiMap.eventValuePair&&this.apiMap.eventValuePair("download",e)}},{key:"onDownloadButtonClickTPAT",value:function(){var e=this;setTimeout((function(){e.eventDispatcher.unsubscribe(Ie,e.onDownloadButtonClickTPAT)})),this.fireTpat(We),this.fireTpat(Ge)}},{key:"onSuccessfulViewAd",value:function(e){Math.floor(100*e.currentTime/e.duration)>=this.successfulViewAd&&(this.successfulViewAdReached=!0,this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.apiMap.successfulViewAd&&this.apiMap.successfulViewAd()),!0===this.successfulViewAdReached&&(this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onSuccessfulViewAd),this.eventDispatcher.publish("event.successfulViewAdReached"))}},{key:"onVideoLength",value:function(e){var t=e.duration;e.currentTime>0&&t&&"number"==typeof t&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoLength",Math.floor(1e3*t)),this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoLength))}},{key:"os",get:function(){return(this.mraid.VungleMRAIDExt.getOS()||(window.navigator.userAgent.match(/Android/i)?"Android":"Unknown")).trim().toLowerCase()}},{key:"firePrivacyButtonClickTpatEvent",value:function(){this.fireTpat(Ze)}},{key:"fireStoreKitOverlayAutoOpenTpatEvent",value:function(e){e&&e.source&&"storeEndcardTimer"===e.source&&this.fireTpat(Je)}}])&&Zt(t.prototype,n),i&&Zt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=n(1),en=n.n(Qt);function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var on=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instrument=null,this.keyMap={pointers:"p",changedPointers:"cP",pointerType:"pT",isFirst:"is1",isFinal:"isF",eventType:"eT",center:"c",timeStamp:"tS",deltaTime:"dT",angle:"a",distance:"d",deltaX:"dX",deltaY:"dY",offsetDirection:"oD",scale:"s",rotation:"r",velocity:"v",velocityX:"vX",velocityY:"vY",direction:"di",type:"t",webkitForce:"wkF",webkitRotationAngle:"wkRA",webkitRadiusY:"wkRY",webkitRadiusX:"wkRX",identifier:"i",pageY:"pY",pageX:"pX",screenY:"sY",screenX:"sX",clientY:"cY",clientX:"cX",x:"x",y:"y",overallVelocityX:"overallVelocityX",overallVelocityY:"overallVelocityY",overallVelocity:"overallVelocity",maxPointers:"maxPointers",tapCount:"tapCount"},this.eventDispatcher=v.instance}var t,n,i;return t=e,(n=[{key:"getInstrument",value:function(e){return this.instrument||(this.instrument=new en.a(e),this.instrument.get("pinch").set({enable:!0}),this.instrument.get("pan").set({direction:en.a.DIRECTION_ALL,threshold:100})),this.instrument}},{key:"attach",value:function(e){var t=this,n=this,i=function(e,t){var o,r=function(e){return this.keyMap[e]||e}.bind(this),s=[];return e&&Object.keys(e).forEach((function(a){n.keyMap[a]&&(Array.isArray(e[a])?e[a].forEach((function(e,t){s.push(i(e,"".concat(r(a),"[").concat(t,"].")))})):"object"===tn(e[a])?s.push(i(e[a],"".concat(r(a),"."))):("number"==typeof(o=e[a])&&o%1!=0&&(o=o.toFixed(2)),s.push("".concat((void 0===t?"":t)+r(a),"=").concat(o))))})),s.join("&")}.bind(this);this.getInstrument(e).on("pan tap press pinch",(function(e){var n,o="",r=e.target.closest("*[data-vgl-page]"),s=(e.target.closest("*[data-vgl-gesture]")||e.target).getAttribute("data-vgl-gesture");r&&s&&(4===e.eventType||"press"===e.type)&&(n=r.getAttribute("id")||"unknownPage",o="f=".concat(n,"&tt=").concat(s,"&").concat(i(e)),t.eventDispatcher.publish("event.gesture",o))}))}}])&&nn(t.prototype,n),i&&nn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var sn=function(e){return j.a.valid(j.a.coerce(e))},an=function(){if(G()!==X.iOS)return!1;var e=q(),t=sn(e);return j.a.satisfies(t,">=14")},ln=function(){return j.a.satisfies(sn(W()),">=6.8.1")},cn=function(){return an()&&ln()},un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.skOptions={APP_STORE:0,PRODUCT_VIEW:1,OVERLAY_VIEW:2},this.skPositionDefault="bottom",this.skDismissibleDefault=!0}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}],(n=[{key:"selectOptions",value:function(e,t,n){if(!ln())return t;switch(function(e){var t=se().getReplacementTokens();if(!t)return null;switch(e){case"fsc":return t.SK_FSC||"product_view";case"skdt":return t.SK_SKDT||"product_view";case"cta":return t.SK_CTA_ONLY||"product_view";default:return"product_view"}}((null==e?void 0:e.type)||"")){case"off":return this.skOptions.APP_STORE;case"overlay_view":return an()&&n?this.skOptions.OVERLAY_VIEW:t;case"default":case"product_view":default:return t}}},{key:"storeOverlayOptions",get:function(){var e=se().getReplacementTokens(),t={position:this.skPositionDefault,dismissible:this.skDismissibleDefault};return e?(void 0!==e.SKOVERLAY_POSITION&&"default"!==e.SKOVERLAY_POSITION&&(t.position=e.SKOVERLAY_POSITION),void 0!==e.SKOVERLAY_DISMISSIBLE&&"default"!==e.SKOVERLAY_DISMISSIBLE&&(t.dismissible=!("false"===e.SKOVERLAY_DISMISSIBLE)),t):t}},{key:"updateTokenDefaultValue",value:function(e){var t=this;e&&Object.keys(e).forEach((function(n){switch(n){case"SKOVERLAY_POSITION":t.skPositionDefault=e[n];break;case"SKOVERLAY_DISMISSIBLE":t.skDismissibleDefault=e[n]}}))}}])&&rn(t.prototype,n),i&&rn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dn(){return(dn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=pn(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function pn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Tn(e)););return e}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function yn(e,t,n){return t&&vn(e.prototype,t),n&&vn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Tn(e);if(t){var o=Tn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return wn(this,n)}}function wn(e,t){if(t&&("object"===hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return En(e)}function En(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var On=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).platform=null,e}return yn(n,[{key:"init",value:function(){if(!this.initialized){var e=Cn;-1!==["ios"].indexOf(this.os)?e=Sn:-1!==["windows"].indexOf(this.os)?e=Dn:-1!==["android"].indexOf(this.os)&&(e=kn),(this.platform=new e).init(),this.initialized=!0}}}]),n}(ie),Cn=function(e){mn(n,e);var t=bn(n);function n(){var e;fn(this,n);var i=En(e=t.call(this));return e.adTracker={gesture:i.VungleMRAIDBridgeExt.notifyUserInteraction,eventValuePair:i.VungleMRAIDBridgeExt.notifyEventValuePairEvent},e.initialized=!1,e}return yn(n,[{key:"prepare",value:function(){}},{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e),this.adTracker.eventValuePair&&this.adTracker.eventValuePair(e,1)}},{key:"downloadButtonClick",value:function(e){e=e||{},this.VungleMRAID.open(e.uri||this.VungleCTA.uri)}},{key:"init",value:function(){this.initialized||(v.instance.subscribe("event.videoSoundUpdate",this.onVideoSoundUpdate.uuidBind(this)),this.initialized=!0)}}]),n}(ie),kn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).isIncentivizedAd=e.VungleMRAIDExt.getIncentivized(),e.initialized=!1,e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.eventValuePair&&this.adTracker.eventValuePair(e,1)}},{key:"downloadButtonClick",value:function(e){e=e||{},this.VungleMRAID.open(e.uri||this.VungleCTA.uri),this.VungleMRAIDVersion||v.instance.publish("event.adUnitClose")}},{key:"prepare",value:function(e){this.isIncentivizedAd&&!this.VungleMRAIDVersion&&(-1===["VideoView","DIView"].indexOf(e.clazz)?-1!==["EndcardView"].indexOf(e.clazz)&&(vt.DownloadButton.IncentivizedTimeout="dismissed"):vt.DownloadButton.IncentivizedTimeout=null)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.initialized=!0)}}]),n}(Cn),Dn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).initialized=!1,e.accessibility=new Ft,e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.accessibility.init(),this.initialized=!0)}}]),n}(Cn),Sn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).isIncentivizedAd=e.VungleMRAIDExt.getIncentivized(),e.initialized=!1,e.isStoreViewPrepared=!1,e.isStoreOverlayPrepared=!1,e.storeViewTypes=["unknown","fullscreen","mrec","banner"],e.storeOverlayViewTypes=["unknown","fullscreen"],e.placementType=e.VungleMRAID.getPlacementType().trim().toLowerCase(),e.uri=null,e.skOptions={APP_STORE:0,PRODUCT_VIEW:1,OVERLAY_VIEW:2},e.skOverlayHelper=un.getInstance(),e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e)}},{key:"prepare",value:function(e){cn()&&this.VungleCTA.appStoreId&&-1!==this.storeOverlayViewTypes.indexOf(this.placementType)&&this.prepareStoreOverlay(this.VungleCTA.appStoreId),this.isIncentivizedAd&&!this.VungleMRAIDVersion&&(-1===["VideoView","DIView"].indexOf(e.clazz)?-1!==["EndcardView"].indexOf(e.clazz)&&(vt.DownloadButton.IncentivizedTimeout="dismissed"):vt.DownloadButton.IncentivizedTimeout=null)}},{key:"addMRAIDEventListeners",value:function(){this.DynamicElement.addEventListener("vungle.events.preparestore.finished",this.onNotifyPresentStoreViewFinished.bind(this)),this.DynamicElement.addEventListener("vungle.events.preparestore.success",this.onNotifyPrepareStoreViewSuccess.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.finished",this.onNotifyPresentStoreOverlayFinished.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.success",this.onNotifyPrepareStoreOverlaySuccess.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.visible",this.onNotifyPresentStoreOverlayVisible.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.failed",this.onNotifyPresentStoreOverlayFailed.bind(this))}},{key:"onNotifyPrepareStoreViewSuccess",value:function(){this.isStoreViewPrepared=!0,a("SKProductView - success")}},{key:"onNotifyPrepareStoreOverlaySuccess",value:function(){this.isStoreOverlayPrepared=!0,a("SKOverlay - success")}},{key:"onNotifyPresentStoreOverlayVisible",value:function(){v.instance.publish("event.hideDownloadButton"),a("SKOverlay - visible")}},{key:"onNotifyPresentStoreOverlayFailed",value:function(){if(a("SKOverlay - failed"),this.isStoreViewPrepared){var e=this.VungleCTA.appStoreId;this.VungleMRAIDExt.presentStoreView(e)}else this.VungleMRAID.open(this.uri)}},{key:"onNotifyPresentStoreViewFinished",value:function(){a("SKProductView - finished"),this.isStoreViewPrepared=!1,this.VungleCTA.appStoreId&&-1!==this.storeViewTypes.indexOf(this.placementType)&&this.prepareStoreView(this.VungleCTA.appStoreId)}},{key:"onNotifyPresentStoreOverlayFinished",value:function(){this.isStoreOverlayPrepared=!1,a("SKOverlay - finished"),v.instance.publish("event.showDownloadButton"),this.VungleCTA.appStoreId&&-1!==this.storeOverlayViewTypes.indexOf(this.placementType)&&this.prepareStoreOverlay(this.VungleCTA.appStoreId)}},{key:"prepareStoreView",value:function(e){this.VungleMRAIDExt.prepareStoreView(e),a("SKProductView - prepare")}},{key:"prepareStoreOverlay",value:function(e){this.VungleMRAIDExt.prepareStoreOverlayView(e,this.skOverlayHelper.storeOverlayOptions),a("SKOverlay - prepare")}},{key:"dismissStoreOverlay",value:function(e){this.VungleMRAIDExt.dismissStoreOverlayView(e),a("SKOverlay - dismissed")}},{key:"downloadButtonClick",value:function(e){e=e||{},this.uri=e.uri||this.VungleCTA.uri;var t,n=this.uri===this.VungleCTA.uri,i=this.VungleCTA.appStoreId;switch(this.selectSKOptions(e)){case this.skOptions.APP_STORE:this.VungleMRAID.open(this.uri);break;case this.skOptions.OVERLAY_VIEW:t=2,this.VungleMRAIDExt.presentStoreOverlayView(i,this.skOverlayHelper.storeOverlayOptions);break;case this.skOptions.PRODUCT_VIEW:default:t=3,this.VungleMRAIDExt.presentStoreView(i)}v.instance.publish("event.downloadButtonClickWithValue",t),n&&!this.VungleMRAIDVersion&&i&&this.isStoreViewPrepared&&(vt.DownloadButton.HardHide="deny",v.instance.publish("event.hardHideDownloadButton"),this.isIncentivizedAd||v.instance.publish("event.adUnitClose"))}},{key:"selectSKOptions",value:function(e){e=e||{},this.uri=e.uri||this.VungleCTA.uri;var t=this.uri===this.VungleCTA.uri,n=this.VungleCTA.appStoreId;if(!(t&&this.VungleMRAIDVersion&&null!==n))return this.skOptions.APP_STORE;var i=this.isStoreViewPrepared?this.skOptions.PRODUCT_VIEW:this.skOptions.APP_STORE;return this.skOverlayHelper.selectOptions(e,i,this.isStoreOverlayPrepared)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.addMRAIDEventListeners(),this.VungleMRAIDVersion&&this.onNotifyPresentStoreViewFinished(),this.initialized=!0)}}]),n}(Cn),In=function(){return Object.freeze(se().getReplacementTokens())},An=function(){var e=In();if(!e.REAL_START_MUTED)return e.START_MUTED;if(G()!==X.iOS)return e.START_MUTED;var t=j.a.valid(j.a.coerce(W()));return j.a.satisfies(t,"6.10.1 - 6.10.3")?e.REAL_START_MUTED:e.START_MUTED};function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(){return(xn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Pn(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Pn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Nn(e)););return e}function Rn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ln(this,n)}}function Ln(e,t){if(t&&("object"===Bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function zn(e,t,n){return t&&jn(e.prototype,t),n&&jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Un=function(){function e(){Mn(this,e),this.eventDispatcher=v.instance,this.vungleData={partnerName:"Vungle",partnerVersion:"1.0"},this.mraidObject=new ie,this.sessionClient=null,this.verificationScriptResource=null,this.partner=null,this.context=null,this.adEvents=null,this.mediaEvents=null,this.adSession=null,this.funcsOnImpression=[],this.sessionStarted=!1,this.initialized=!1,this.omsdkReady=!1}return zn(e,[{key:"init",value:function(e){var t=this.mraidObject.VungleMRAIDBridgeExt.getReplacementTokens();if(!t||!t.OM_SDK_DATA)throw new Error("Tokens OM_SDK_DATA not present");var n=JSON.parse(atob(t.OM_SDK_DATA));if(!n.vendorURL||!n.vendorKey)throw new Error("vendorURL, vendorKey not present");try{this.sessionClient=window.OmidSessionClient.default}catch(e){throw new Error("Failed to load OmidSessionClient script")}if(!this.sessionClient)throw new Error("Loaded OmidSessionClient script, but failed to find default class.");var i=this.sessionClient,o=i.AdSession,r=i.Partner,s=i.Context,a=i.VerificationScriptResource,l=i.AdEvents,c=i.MediaEvents;this.verificationScriptResource=new a(n.vendorURL,n.vendorKey,n.params);var u=this.mraidObject.VungleMRAIDExt.getSDKVersion();if(this.partner=new r(this.vungleData.partnerName,u||this.vungleData.partnerVersion),this.context=new s(this.partner,[this.verificationScriptResource]),null!=e&&this.context.setVideoElement(e),this.adSession=new o(this.context),!(this.adSession&&this.adSession.isSupported&&this.adSession.isSupported()))throw new Error("ad session not present");this.adEvents=new l(this.adSession),this.mediaEvents=new c(this.adSession),this.adSession.registerSessionObserver(this.onSessionChange.uuidBind(this))}},{key:"eventDrain",value:function(){this.funcsOnImpression.forEach((function(e){e()})),this.funcsOnImpression=[]}},{key:"pushOrCallFunc",value:function(e){this.omsdkReady?e():this.funcsOnImpression.push(e)}},{key:"onSessionSubscribeEvents",value:function(){this.eventDispatcher.subscribe("event.downloadButtonClick",this.onDownloadButtonClick.uuidBind(this))}},{key:"onSessionUnsubscribeEvents",value:function(){this.eventDispatcher.unsubscribe("event.downloadButtonClick",this.onDownloadButtonClick)}},{key:"onSessionChange",value:function(e){console.log("Session change event was triggered",e)}},{key:"onDownloadButtonClick",value:function(){var e=this;this.pushOrCallFunc((function(){e.mediaEvents.adUserInteraction("click")}))}}]),e}(),Hn=function(e){Rn(n,e);var t=Vn(n);function n(e){var i;return Mn(this,n),(i=t.call(this,e)).checkpoints=["start","firstQuartile","midpoint","thirdQuartile","complete"],i.checkpointsReached=[],i.videoViewedPerSecond=0,i.volume=0,i.vastProperties=null,i.isBuffering=!1,i.isSkippable=!1,i}return zn(n,[{key:"toVideoCheckpointsIndex",value:function(e,t){var n=100*(t-e<=.5?1:(Math.floor(e/t*4)/4).toFixed(2));return 0===n?0:25===n?1:50===n?2:75===n?3:100===n?4:void 0}},{key:"init",value:function(e){if(!this.initialized)try{this.initialized=!0,xn(Nn(n.prototype),"init",this).call(this,e),this.onSessionSubscribeEvents(),this.adSession.setCreativeType("video"),this.adSession.setImpressionType("loaded")}catch(e){console.error(e)}}},{key:"onSessionSubscribeEvents",value:function(){xn(Nn(n.prototype),"onSessionSubscribeEvents",this).call(this),this.eventDispatcher.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),this.eventDispatcher.subscribe("event.videoSoundUpdate",this.onVideoSoundUpdate.uuidBind(this)),this.eventDispatcher.subscribe("event.videoBuffering",this.onVideoBuffering.uuidBind(this)),this.eventDispatcher.subscribe("event.videoSuspend",this.onVideoBufferingForLowPowerMode.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPlayTimeupdate",this.onVideoTimeUpdate.uuidBind(this)),this.eventDispatcher.subscribe("event.videoStateChanged",this.onVideoStateChanged.uuidBind(this)),this.eventDispatcher.subscribe("event.videoDisplayState",this.onVideoDisplayState.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPageClose",this.onVideoPageClose.uuidBind(this))}},{key:"onSessionUnsubscribeEvents",value:function(){xn(Nn(n.prototype),"onSessionUnsubscribeEvents",this).call(this),this.eventDispatcher.unsubscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable),this.eventDispatcher.unsubscribe("event.videoSoundUpdate",this.onVideoSoundUpdate),this.eventDispatcher.unsubscribe("event.videoBuffering",this.onVideoBuffering),this.eventDispatcher.unsubscribe("event.videoSuspend",this.onVideoBufferingForLowPowerMode),this.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint),this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoTimeUpdate),this.eventDispatcher.unsubscribe("event.videoStateChanged",this.onVideoStateChanged),this.eventDispatcher.unsubscribe("event.videoDisplayState",this.onVideoDisplayState),this.eventDispatcher.unsubscribe("event.videoPageClose",this.onVideoPageClose)}},{key:"onSessionStarted",value:function(){if(this.sessionStarted&&this.initialized&&this.duration&&!this.omsdkReady){this.adEvents.impressionOccurred(),this.omsdkReady=!0;var e=this.mraidObject.VungleMRAIDExt.getIncentivized(),t=this.mraidObject.VungleMRAIDBridgeExt.getReplacementTokens()[e?"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS":"CLOSE_BUTTON_DELAY_SECONDS"];this.isSkippable="9999"!=="".concat(t)&&this.duration>parseFloat(t),this.vastProperties=new this.sessionClient.VastProperties(this.isSkippable,0,!0,"preroll"),this.adEvents.loaded(this.vastProperties),this.eventDrain()}}},{key:"onSessionChange",value:function(e){if("sessionStart"===e.type)return this.sessionStarted=!0,void this.onSessionStarted();"sessionError"!==e.type&&"sessionFinish"===e.type&&this.onSessionUnsubscribeEvents()}},{key:"onVideoCheckpoint",value:function(e){var t=this;this.pushOrCallFunc((function(){t.isBuffering&&(t.isBuffering=!1,t.mediaEvents.bufferFinish());for(var n=t.toVideoCheckpointsIndex(e.currentTime,e.duration),i=0;i<=n;i++)if(void 0===t.checkpointsReached[i]&&e.currentTime>0&&e.duration&&"number"==typeof e.duration){if(t.checkpointsReached[i]=!0,0===n)return t.volume="true"===An()?0:1,void t.mediaEvents.start(t.duration,t.volume);t.mediaEvents[t.checkpoints[i]]()}!0===t.checkpointsReached[t.checkpoints.length-1]&&t.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",t.onVideoCheckpoint)}))}},{key:"onVideoTimeUpdate",value:function(){this.onSessionStarted()}},{key:"onVideoSoundUpdate",value:function(e){var t=this;this.pushOrCallFunc((function(){t.volume="mute"===e?0:1,t.mediaEvents.volumeChange(t.volume)}))}},{key:"onVideoBuffering",value:function(){this.videoBuffering()}},{key:"onVideoBufferingForLowPowerMode",value:function(){this.videoBuffering()}},{key:"videoBuffering",value:function(){var e=this;this.isBuffering||(this.pushOrCallFunc((function(){e.mediaEvents.bufferStart()})),this.isBuffering=!0)}},{key:"onVideoStateChanged",value:function(e){var t=this;this.pushOrCallFunc((function(){t.checkpointsReached[0]&&("pause"!==e?t.mediaEvents.resume():t.mediaEvents.pause())}))}},{key:"onVideoDisplayState",value:function(e){var t=this;this.pushOrCallFunc((function(){t.mediaEvents.playerStateChange(e)}))}},{key:"onVideoMetadataAvailable",value:function(e){this.duration=e.duration,this.onSessionStarted()}},{key:"onVideoPageClose",value:function(){var e=this;this.pushOrCallFunc((function(){e.isSkippable&&e.mediaEvents.skipped()}))}}]),n}(Un),Fn=n(3),Xn=n.n(Fn);function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function $n(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Zn=function(){function e(t){Gn(this,e),t=t||{fallbackLng:"en",resources:{}},this.lng=(t.language||navigator.language||navigator.userLanguage).replace("-","_"),this.fallbackLng=t.fallbackLng,this.resources=t.resources,this.locale=t.locale||this.lng}return $n(e,[{key:"translation",get:function(){if(this.resources[this.lng]&&this.resources[this.lng].translation)return this.resources[this.lng].translation;try{var e=this.lng.split("_")[0];return this.resources[e]&&this.resources[e].translation?this.resources[e].translation:this.resources[this.fallbackLng].translation}catch(e){return null}}},{key:"styling",get:function(){if(this.resources[this.locale]&&this.resources[this.locale].styling)return this.resources[this.locale].styling;try{var e=this.locale.split("_")[0];return this.resources[e]&&this.resources[e].styling?this.resources[e].styling:this.resources[this.fallbackLng].styling}catch(e){return null}}},{key:"transform",value:function(e,t){return this[t]&&this[t][e]?this[t][e]:this.resources[this.fallbackLng]&&this.resources[this.fallbackLng][t][e]?this.resources[this.fallbackLng][t][e]:e}},{key:"t",value:function(e){return this.transform(e,"translation")}},{key:"s",value:function(e){return this.transform(e,"styling")}}]),e}(),Jn=function(){function e(){Gn(this,e)}return $n(e,null,[{key:"createView",value:function(e,t){return e(qn(qn({},t),{},{START_MUTED:An()}))}}]),e}();Handlebars.registerHelper("equalDef",(function(e,t,n,i){if(arguments.length<4)throw new Error("Handlebars Helper equal needs 3 parameters");return void 0===e&&(e=n),e!==t?i.inverse(this):i.fn(this)})),Handlebars.registerHelper("equal",(function(e,t,n){if(arguments.length<3)throw new Error("Handlebars Helper equal needs 2 parameters");return e!==t?n.inverse(this):n.fn(this)})),Handlebars.registerHelper("i18nt",(function(e,t){window.vungle.i18n||(window.vungle.i18n=new Zn(window.vungle.i18nData));var n=window.vungle.i18n.t(t||e);return new Handlebars.SafeString(n===e?t:n)})),Handlebars.registerHelper("i18ns",(function(e,t){window.vungle.i18n||(window.vungle.i18n=new Zn(window.vungle.i18nData));var n=window.vungle.i18n.s(t||e);return new Handlebars.SafeString(n===e?t:n)}));var Qn=Jn,ei={Video:["MAIN_VIDEO"],RtbEndcard:["EC_HTML","EC_IMAGE"]},ti=function(){return window.vungleTokens},ni=function(e){var t=document.querySelector("#Video .footer .download"),n=document.querySelector("#LoopingVideo .ad-container"),i=(null!=t?t:n).classList;e?i.remove("hide"):i.add("hide")},ii=function(e){var t=document.querySelector(".overlay-cta");t&&(t.style.pointerEvents=e?"auto":"none",t.className=e?"overlay-cta":"overlay-cta hide")},oi=function(){var e,t,n,i,o,r;window.vungleTokens=(null===(e=window)||void 0===e||null===(t=e.vungle)||void 0===t||null===(n=t.mraidBridgeExt)||void 0===n||null===(i=n.getReplacementTokens)||void 0===i?void 0:i.call(n))||(null===(o=window)||void 0===o||null===(r=o.vungle)||void 0===r?void 0:r.tokensDev);var s=window.vungleTokens,a=s.SKOVERLAY_AUTO,l=s.FULL_CTA_OPTION,c=s.FULL_CTA,u=s.VIDEO_SHOW_CTA,h=s.CTA_BUTTON_URL,d=["adv_pref","fsc_on","fsc_off"],p=l,f=a,v=c,y=function(){return"adv_pref"===p&&"true"===f&&cn()};window.vungleTokens.APP_STORE_ID||(window.vungleTokens.APP_STORE_ID=function(e){if(!e)return null;var t=e.match(/\/id([0-9]*)/i);return t&&t[1]?t[1]:null}(h));var m=function(){return!d.includes(p)||!y()&&(("adv_pref"===p||"fsc_on"===p)&&("true"===f||"true"===v))};if(y()){var g=ti().SKOVERLAY_DELAY_SECONDS&&"default"!==ti().SKOVERLAY_DELAY_SECONDS?ti().SKOVERLAY_DELAY_SECONDS:"5";window.vungleTokens.SKOVERLAY_DELAY_SECONDS=1e3*parseInt(g,10)}window.addEventListener("DOMContentLoaded",(function(){ii(m()),y()&&(ni(!1),ii(!1),document.querySelector("#dynamic").addEventListener("vungle.events.storeoverlay.visible",(function(){var e=document.querySelector("#LoopingVideo .ad-container");ni("true"===u||e),ii(!0)})))}))};function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ai=function(){return window.skOverlayTimerId},li=Object.freeze({position:"bottom",dismissible:!0}),ci=function(){var e="true"===ti().SKOVERLAY_AUTO&&"adv_pref"===ti().FULL_CTA_OPTION,t=null==ai();return e&&t&&cn},ui=function(){var e=ti(),t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},li);return"default"!==e.SKOVERLAY_POSITION&&(t.position=e.SKOVERLAY_POSITION),"default"!==e.SKOVERLAY_DISMISSIBLE&&(t.dismissible=!("false"===e.SKOVERLAY_DISMISSIBLE)),t},hi=function(){var e=ui(),t=ti().APP_STORE_ID,n=ti().MMP_AUTO_CLICK;t&&("true"===n&&(window.vungle.mraidBridgeExt.notifyTPAT("postroll.click"),window.vungle.mraidBridgeExt.notifyTPAT("clickUrl"),window.vungle.mraidBridgeExt.notifyEventValuePairEvent("postroll.click",1),window.vungle.mraidBridgeExt.notifyEventValuePairEvent("skoAutoShow")),window.vungle.mraidExt.presentStoreOverlayView(t,e))},di=function(){var e=parseInt(ti().SKOVERLAY_AUTO_CLOSE,10);e>0&&(e<5&&(e=5),setTimeout((function(){window.vungle.mraidExt.dismissStoreOverlayView(ti().APP_STORE_ID)}),1e3*e))},pi=function(e){if(ci()){var t=function(e){window.skOverlayTimerId=setTimeout((function(){hi(),di()}),e)};if(e&&"function"==typeof e.getVideoPlayerObject){var n=e.getVideoPlayerObject().getElement(),i=ti().SKOVERLAY_DELAY_SECONDS/1e3,o=setInterval((function(){n.currentTime>i&&(clearInterval(o),hi(),di())}),100);v.instance.subscribe("event.closeButtonClick",(function(){clearInterval(o);var e=i-n.currentTime;e>0&&t(1e3*e)}))}else t(ti().SKOVERLAY_DELAY_SECONDS)}},fi=function(){var e=ai();e&&clearTimeout(e)},vi=function(){if(cn()){var e=ti().APP_STORE_ID;e&&window.vungle.mraidExt.dismissStoreOverlayView(e)}};n(14);function yi(e){return(yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(e){return function(e){if(Array.isArray(e))return gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function bi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wi(e,t){return(wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Oi(e);if(t){var o=Oi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ti(this,n)}}function Ti(e,t){if(t&&("object"===yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ci=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wi(e,t)}(r,e);var t,n,i,o=Ei(r);function r(e){var t,n=e.pages,i=e.components,s=e.controllers,a=e.config,l=e.extensions,c=void 0===l?{}:l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this)).initialized=!1,t.config=a||{checkConsent:!0},t.pageIndex=0,t.pageControllers=[],t.adTracker=new Jt,t.gestureTracker=new on,t.device=new On,t.extensions=c,t.pages=null!=n?n:[],t.components=["DialogBox","GDPRDialogBox"].concat(mi(i||[])),t.controllers=s,t.addInitialEventListener(),t}return t=r,(n=[{key:"showSpinner",value:function(e){document.querySelector("#spinner").style.display=e?"block":"none"}},{key:"addInitialEventListener",value:function(){this.onInitialViewportChange=this.onInitialViewportChange.bind(this),window.addEventListener("resize",this.onInitialViewportChange,!1)}},{key:"addEventListeners",value:function(){window.addEventListener("resize",this.onViewportChange.bind(this),!1),setTimeout((function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e)}))}},{key:"addMRAIDEventListeners",value:function(){this.VungleMRAID.addEventListener("viewableChange",this.onAdViewableChange.bind(this)),this.DynamicElement.addEventListener("vungle.events.request.close",this.onRequestCloseAd.bind(this)),this.DynamicElement.addEventListener("vungle.events.installationStatus.updated",this.onInstallationStatusUpdate.bind(this))}},{key:"subscribeToEvents",value:function(){v.instance.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),v.instance.subscribe("event.adUnitClose",this.onAdUnitClose.uuidBind(this)),v.instance.subscribe("event.privacyButtonClick",this.onPrivacyButtonClick.uuidBind(this)),v.instance.subscribe("event.dismissPage",this.onDismissPage.uuidBind(this)),v.instance.subscribe("event.dismissIncentivizedAdPage",this.onDismissIncentivizedAdPage.uuidBind(this)),v.instance.subscribe("event.downloadButtonClick",this.onDownloadButtonClick.uuidBind(this)),v.instance.subscribe("event.installButtonClick",this.onInstallButtonClick.uuidBind(this)),v.instance.subscribe("event.openButtonClick",this.onOpenButtonClick.uuidBind(this)),v.instance.subscribe("event.cancelDownloadButtonClick",this.onCancelDownloadButtonClick.uuidBind(this)),v.instance.subscribe("event.gesture",this.onGesture.uuidBind(this)),v.instance.subscribe("event.gdprConsent",this.onGDPRConsent.uuidBind(this))}},{key:"initializeAdTracker",value:function(){this.adTracker.init({tpat:this.VungleMRAIDBridgeExt.notifyTPAT,successfulViewAd:this.VungleMRAIDBridgeExt.notifySuccessfulViewAd,gesture:this.VungleMRAIDBridgeExt.notifyUserInteraction,eventValuePair:this.VungleMRAIDBridgeExt.notifyEventValuePairEvent})}},{key:"setHtml",value:function(e){this.DynamicElement.innerHTML=function(){for(var t,n=this.pages.concat(this.components),i="",o=0,r=n.length;o<r;o++)t=window.vungle.templates[n[o]].template,i+=Qn.createView(t,e);return i}.bind(this)()}},{key:"createPageControllers",value:function(){for(var e,t=0,n=this.pages.length;t<n;t++){var i,o=this.pages[t],r=null!==(i=this.extensions[o])&&void 0!==i?i:{};r.viewsCount=this.pages.length,e=new this.controllers[o]({selector:"#".concat(o),name:o,number:t,isIncentivized:this.isIncentivizedAd,extensions:r}),this.pageControllers.push(e)}}},{key:"showAd",value:function(){this.isConsentRequired()&&this.config.checkConsent?this.showGDPR():this.showPage(this.pageIndex)}},{key:"getPage",value:function(e){return this.pageControllers[e]}},{key:"currentPage",get:function(){return this.getPage(this.pageIndex)}},{key:"showPage",value:function(e){var t=this.getPage(e);this.device.platform.prepare(t),t.init(),t.show()}},{key:"hidePage",value:function(e){var t=this.getPage(e);t.init(),t.hide()}},{key:"navigate",value:function(){var e=this;vi(),fi(),this.hidePage(this.pageIndex),-1!==["VideoView","DIView"].indexOf(this.currentPage.clazz)&&v.instance.publish("event.videoPageClose"),setTimeout((function(){if(e.pageControllers.length>1&&e.pageIndex+1<e.pageControllers.length)return e.pageIndex+=1,void e.showPage(e.pageIndex);e.closeAdUnit()}))}},{key:"closeAdUnit",value:function(){window.vungle.flexFeed||this.VungleMRAID.close()}},{key:"showGDPR",value:function(){this.currentPage.getGDPRDialogBoxObject().init(),this.currentPage.getGDPRDialogBoxObject().show()}},{key:"adUnitVisible",value:function(){document.querySelector("#dynamic").className=[document.querySelector("#dynamic").className,this.os,this.osVersion].join(" ").trim(),this.showSpinner(!1)}},{key:"onAdUnitClose",value:function(){this.closeAdUnit()}},{key:"onRequestCloseAd",value:function(){this.VungleMRAIDBridgeExt.getIsVungleAd()&&v.instance.publish("event.requestToCloseAd")}},{key:"onInstallationStatusUpdate",value:function(e){v.instance.publish("event.installationStatusUpdate",e.detail)}},{key:"onAdViewableChange",value:function(){v.instance.publish("event.adViewableChanged",this.VungleMRAID.isViewable()?"maximized":"minimized")}},{key:"onInitialViewportChange",value:function(){var e=me.getViewportSize();!this.initialized&&e.height>1&&(this.initialized=!0,this.startAd(),window.removeEventListener("resize",this.onInitialViewportChange))}},{key:"onViewportChange",value:function(){var e=me.getViewportSize();v.instance.publish("event.viewportChange",e)}},{key:"onVideoMetadataAvailable",value:function(){this.onViewportChange()}},{key:"onGesture",value:function(e){this.VungleMRAIDBridgeExt.notifyUserInteraction("event",e)}},{key:"adMRAIDReady",value:function(){oi();var e=ti();if(e.ERUDA){var t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/eruda",t.id="erudaLoader",document.body.appendChild(t),console.log("ERUDA LOADING"),document.querySelector("#erudaLoader").addEventListener("load",(function(){var e=document.createElement("script");e.innerHTML="eruda.init();",document.body.appendChild(e),console.log("ERUDA SHOULD BE ENABLED")})),window.addEventListener("message",(function(e){e.data&&"iframe"===e.data.source&&console.log(e.data.message)}))}"false"===(e.AUTO_LOCALIZE||"true")&&(window.vungle.i18nData=null),this.isIncentivizedAd=this.VungleMRAIDExt.getIncentivized(),this.setHtml(e),this.pages=function(e,t){var n=[];return t.forEach((function(t){var i,o=null!==(i=ei[t])&&void 0!==i?i:[],r=o.filter((function(t){return e[t]}));(0===o.length||r.length>0)&&n.push(t)})),n}(e,this.pages),this.createPageControllers(),"true"===(e.ACTION_TRACKING||"false")&&this.gestureTracker.attach(this.DynamicElement),this.device.init()}},{key:"onPrivacyButtonClick",value:function(e){this.openPrivacyURI(e)}},{key:"onDismissIncentivizedAdPage",value:function(){this.navigate()}},{key:"onDismissPage",value:function(){return-1!==["VideoView","DIView"].indexOf(this.currentPage.clazz)&&this.isIncentivizedAd&&!this.adTracker.successfulViewAdReached?v.instance.publish("event.videoViewDismissPage"):-1!==["CardView"].indexOf(this.currentPage.clazz)&&this.isIncentivizedAd&&!this.adTracker.successfulViewAdReached?v.instance.publish("event.cardViewDismissPage"):void this.navigate()}},{key:"onDownloadButtonClick",value:function(e){this.device.platform.downloadButtonClick(e)}},{key:"onInstallButtonClick",value:function(){this.VungleMRAIDBridgeExt.startDownloadAppOnDevice()}},{key:"onCancelDownloadButtonClick",value:function(){this.VungleMRAIDBridgeExt.cancelDownload()}},{key:"onOpenButtonClick",value:function(){this.VungleMRAIDBridgeExt.openAppInDevice()}},{key:"onGDPRConsent",value:function(){this.showPage(this.pageIndex)}},{key:"startAd",value:function(){var e=this;Xn.a.attach(document.body),this.addEventListeners(),this.initializeAdTracker(),this.addMRAIDEventListeners(),this.subscribeToEvents(),this.showSpinner(!0),this.mraidReadyCheck((function(){e.adMRAIDReady(),e.adUnitVisible(),e.showAd()}))}},{key:"init",value:function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e),pi(this.currentPage)}}])&&bi(t.prototype,n),i&&bi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(oe);function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Si(){return(Si="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Ii(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ii(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ri(e)););return e}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return xi(this,n)}}function xi(e,t){if(t&&("object"===ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pi(e)}function Pi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}window.vungle=window.vungle||{},window.vungle.i18nData=u;var _i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(r,e);var t,n,i,o=Bi(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,{selector:n,name:i,number:s,isIncentivized:l})).muteIconContainer=null,t.progressBar=null,t.video=null,t.videoContainer=null,t.videoPlayerObject=null,t.ctaButtonObject=null,t.onLoadMetaData=t.onLoadMetaData.bind(Pi(t)),t.getVideoPlayerObject().getElement().addEventListener("loadedmetadata",t.onLoadMetaData),t}return t=r,(n=[{key:"clazz",get:function(){return"VideoView"}},{key:"onLoadMetaData",value:function(){this.pauseVideo(),this.getVideoPlayerObject().muteUnmute(!0),this.getVideoPlayerObject().getElement().removeEventListener("loadedmetadata",this.onLoadMetaData)}},{key:"getMuteIconContainer",value:function(){return this.muteIconContainer||(this.muteIconContainer=document.querySelector("#".concat(this.viewName," .mute-icon-container"))),this.muteIconContainer}},{key:"getProgressBar",value:function(){return this.progressBar||(this.progressBar=document.querySelector("#".concat(this.viewName," .progress-bar"))),this.progressBar}},{key:"getVideo",value:function(){return this.video||(this.video=document.querySelector("#".concat(this.viewName," video"))),this.video}},{key:"getVideoContainer",value:function(){return this.videoContainer||(this.videoContainer=document.querySelector("#".concat(this.viewName," .video-container"))),this.videoContainer}},{key:"getVideoPlayerObject",value:function(){return this.videoPlayerObject||(this.videoPlayerObject=new Ce("#".concat(this.viewName," video"))),this.videoPlayerObject}},{key:"onVideoLoadedMetadata",value:function(e){this.videoRatio=e.width/e.height}},{key:"onViewportChange",value:function(){}},{key:"onAdViewableChanged",value:function(e){"minimized"!==e?this.getIncentivizedDialogBoxObject().isVisible()||this.getGDPRDialogBoxObject().isVisible()||this.playVideo():this.pauseVideo()}},{key:"onAlertPrivacy",value:function(){this.pauseVideo(),this.getPrivacyDialogBoxObject().show()}},{key:"onVideoViewDismissPage",value:function(){this.getIncentivizedDialogBoxObject().isVisible()?this.eventDispatcher.publish("event.dismissIncentivizedAdPage"):(this.pauseVideo(),this.getIncentivizedDialogBoxObject().show())}},{key:"onRequestToCloseAd",value:function(){var e=this.getCloseButtonObject();e.isVisible()&&(e instanceof dt&&e.getElement().classList.contains("disable-click")||(this.getGDPRDialogBoxObject().isVisible()?this.pauseVideo():this.getIncentivizedDialogBoxObject().isVisible()?(this.getIncentivizedDialogBoxObject().hide(),this.playVideo()):this.eventDispatcher.publish("event.dismissPage")))}},{key:"onDialogBoxPrimaryButtonClick",value:function(){this.eventDispatcher.publish("event.playVideo")}},{key:"init",value:function(){this.initialized||(Si(Ri(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.requestToCloseAd",this.onRequestToCloseAd.uuidBind(this)),this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged.uuidBind(this)),this.eventDispatcher.subscribe("event.videoViewDismissPage",this.onVideoViewDismissPage.uuidBind(this)),this.initialized=!0)}},{key:"show",value:function(){var e=this;this.getMuteIconContainer().style.opacity=0,Si(Ri(r.prototype),"show",this).call(this),setTimeout((function(){e.getMuteIconContainer().style.opacity=""}))}},{key:"hide",value:function(){this.getVideoPlayerObject().destroy(),Si(Ri(r.prototype),"hide",this).call(this)}},{key:"pauseVideo",value:function(){this.getVideoPlayerObject().pause()}},{key:"playVideo",value:function(){this.getVideoPlayerObject().play()}}])&&Di(t.prototype,n),i&&Di(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}($t);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Li(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Mi(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Mi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hi(e)););return e}function ji(e,t){return(ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ui(this,n)}}function Ui(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(r,e);var t,n,i,o=zi(r);function r(e){var t=e.selector,n=e.name,i=e.number,s=e.isIncentivized,a=void 0!==s&&s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,{selector:t,name:n,number:i,isIncentivized:a})}return t=r,(n=[{key:"clazz",get:function(){return"EndcardView"}},{key:"onRequestToCloseAd",value:function(){this.getCloseButtonObject().length&&this.getCloseButtonObject().isVisible()&&this.eventDispatcher.publish("event.dismissPage")}},{key:"init",value:function(){this.initialized||(Ni(Hi(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.requestToCloseAd",this.onRequestToCloseAd.uuidBind(this)),this.initialized=!0)}}])&&Li(t.prototype,n),i&&Li(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}($t);n(15),n(16);var Xi=class extends _i{constructor({selector:e,name:t,number:n,isIncentivized:i=!1,extensions:o={}}){super({selector:e,name:t,number:n,isIncentivized:i}),this.footer=null,this.content=null,this.header=null,this.videoRatio=null,this.ctaButtonObject=null,this.isVideoReady=!1,this.loop=1===o.viewsCount,o.omsdk&&(this.omsdk=new Hn)}getCloseButtonObject(){return this.closeButtonObject||(this.closeButtonObject=new dt({selector:`#${this.viewName} .close-countdown`,isIncentivized:this.isIncentivizedAd,updateCountdownEvent:"event.videoPlayTimeupdate"})),this.closeButtonObject}getHeader(){return this.header||(this.header=document.querySelector(`#${this.viewName} .header`)),this.header}getContent(){return this.content||(this.content=document.querySelector(`#${this.viewName} .content`)),this.content}getCTAButtonObject(){return this.ctaButtonObject||(this.ctaButtonObject=new It({selector:`#${this.viewName} .download`,isIncentivized:this.isIncentivizedAd})),this.ctaButtonObject}getPrivacyDialogBoxObject(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogBoxSecondaryButtonClick"})),this.privacyDialogBoxObject}init(){this.initialized||(this.omsdk&&this.omsdk.init(this.getVideoPlayerObject().getElement()),super.init(),this.eventDispatcher.subscribe("event.videoPlayComplete",this.onVideoPlayComplete.uuidBind(this)),this.eventDispatcher.subscribe("event.closeButtonClick",this.onCloseButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.incentivizedDialogBoxSecondaryButtonClick",this.onIncentivizedDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.privacyDialogBoxSecondaryButtonClick",this.onPrivacyDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.dialogBoxPrimaryButtonClick",this.onDialogBoxPrimaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.omsdk&&this.eventDispatcher.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),this.getFullCTAObject().init(),this.getCloseButtonObject().init(),this.getCTAButtonObject().init(),this.getPrivacyButtonObject().init(),this.loop&&this.getVideo().setAttribute("loop",""),this.getVideoPlayerObject().init(),this.getIncentivizedDialogBoxObject().init(),this.getPrivacyDialogBoxObject().init(),this.initialized=!0)}show(){super.show(),this.getFullCTAObject().show(),this.getVideoPlayerObject().show(),this.getCloseButtonObject().show(),this.getCTAButtonObject().show(),this.getPrivacyButtonObject().show()}hide(){this.getVideoPlayerObject().pause(),this.getFullCTAObject().destroy(),this.getCTAButtonObject().destroy(),this.getCloseButtonObject().destroy(),this.getPrivacyButtonObject().destroy(),setTimeout(()=>{super.hide()},100)}onVideoPlayComplete(){this.loop?(this.getCloseButtonObject().show({forceShow:!0}),this.eventDispatcher.unsubscribe("event.videoPlayComplete",this.onVideoPlayComplete)):this.eventDispatcher.publish("event.dismissPage")}onVideoMetadataAvailable(e){this.duration=e.duration,!this.isVideoReady&&"number"==typeof this.duration&&this.duration&&(this.isVideoReady=!0,this.eventDispatcher.unsubscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable),this.eventDispatcher.publish("event.videoDisplayState","fullscreen"))}};n(17),n(18);function Yi(e){return(Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Wi(){return(Wi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Gi(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ji(e)););return e}function Ki(e,t){return(Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ji(e);if(t){var o=Ji(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Zi(this,n)}}function Zi(e,t){if(t&&("object"===Yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}new Ci({pages:["Video","RtbEndcard"],components:["CloseIcons","SoundIcons","PrivacyIcons","DownloadIcons"],controllers:{Video:Xi,RtbEndcard:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ki(e,t)}(r,e);var t,n,i,o=$i(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,{selector:n,name:i,number:s,isIncentivized:l})).privacyDialogBoxObject=null,t.mraidObject=new ie,t}return t=r,(n=[{key:"getEncodedContent",value:function(){return this.encodedContent||(this.encodedContent=document.getElementById("programmaticAdmHtml").innerHTML),this.encodedContent}},{key:"getImage",value:function(){return this.imageUrl||(this.imageUrl=document.getElementById("image").src),this.imageUrl}},{key:"getEncodedStyle",value:function(){return this.encodedStyle||(this.encodedStyle=document.getElementById("programmaticStyle").innerHTML),this.encodedStyle}},{key:"getProgrammaticIframe",value:function(){return this.programmaticIframe||(this.programmaticIframe=document.getElementById("programmaticIframe")),this.programmaticIframe}},{key:"getCloseButtonObject",value:function(){return this.closeButtonObject||(this.closeButtonObject=new dt({selector:"#".concat(this.viewName," .close-countdown"),isIncentivized:this.isIncentivizedAd,pausePlayCountdownCustom:{event:"event.adViewableChanged",play:"maximized",pause:"minimized"}})),this.closeButtonObject}},{key:"writeAdmHtmlIntoIframe",value:function(){for(var e=this.getProgrammaticIframe().contentWindow,t=e.document,n=atob(this.getEncodedContent()),i=/<script[a-z1-9"'/ =]*?src=(["']|[ -~]")*mraid\.js(["']|[ -~]")>*<(\/|[ -~]\/)script>/gim;i.test(n);)n=n.replace(i,"");e.mraid=this.mraidObject.VungleMRAID,e.open=e.mraid.open,t.open(),t.write(this.getEncodedStyle()+n),t.close()}},{key:"getPrivacyDialogBoxObject",value:function(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogBoxSecondaryButtonClick"})),this.privacyDialogBoxObject}},{key:"init",value:function(){this.initialized||(Wi(Ji(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.closeButtonClick",this.onCloseButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.incentivizedDialogBoxSecondaryButtonClick",this.onIncentivizedDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.privacyDialogBoxSecondaryButtonClick",this.onPrivacyDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.dialogBoxPrimaryButtonClick",this.onDialogBoxPrimaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.getFullCTAObject().init(),this.getCloseButtonObject().init(),this.getPrivacyDialogBoxObject().init(),this.writeAdmHtmlIntoIframe(),this.getPrivacyButtonObject().init(),this.initialized=!0)}},{key:"show",value:function(){Wi(Ji(r.prototype),"show",this).call(this),this.eventDispatcher.publish("event.endcardView"),this.getFullCTAObject().show(),this.getCloseButtonObject().show(),this.getPrivacyButtonObject().show()}},{key:"hide",value:function(){Wi(Ji(r.prototype),"hide",this).call(this),this.getFullCTAObject().destroy(),this.getCloseButtonObject().destroy(),this.getPrivacyButtonObject().destroy()}}])&&qi(t.prototype,n),i&&qi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(Fi)},extensions:{Video:{omsdk:!0}}}).init()}]);</script>
<!-- ######### Start: Used for preview in dashboard ############-->
<script id="preview_vungle_mraid_notify_ready"></script>
<!-- ######### End: Used for preview in dashboard ############-->
</body></html>
<!-- CLI: 1.0.8, Branch: develop -->
<!-- @vungle/dynamic-templates-rtbendcard: 1.2.17, Branch: develop, Revision: d07b14da99ec74d26369e9b2ace0c084cdfa53d1 -->
<!-- @vungle/dynamic-templates-core: 1.15.28, Branch: ^1.15.28, @vungle/dynamic-templates-video: 1.8.16, Branch: ^1.8.16 -->
<!-- 21 of June 2022, 10:02:24 -->
<!-- true -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=auto">
<title>Vungle Cloud UX Template</title>
<style type="text/css">*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body,html{font-size:100%;height:100%}body{background:#fff;color:#222;cursor:auto;font-family:Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-style:normal;font-weight:400;line-height:1.5;padding:0;position:relative}a:hover{cursor:pointer}img{max-width:100%;height:auto;-ms-interpolation-mode:bicubic;display:inline-block;vertical-align:middle}#map_canvas embed,#map_canvas img,#map_canvas object,.map_canvas embed,.map_canvas img,.map_canvas object,.mqa-display embed,.mqa-display img,.mqa-display object{max-width:none!important}.left{float:left!important}.right{float:right!important}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.invisible{visibility:hidden}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}textarea{height:auto;min-height:50px}.row,select{width:100%}.row{margin:0 auto;max-width:62.5rem}.row:after,.row:before{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{margin:0 -.9375rem;max-width:none;width:auto}.row .row:after,.row .row:before{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{margin:0;max-width:none;width:auto}.row .row.collapse:after,.row .row.collapse:before{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:.9375rem;padding-right:.9375rem;width:100%;float:left}.column+.column:last-child,.column+.columns:last-child,.columns+.column:last-child,.columns+.columns:last-child{float:right}.column+.column.end,.column+.columns.end,.columns+.column.end,.columns+.columns.end{float:left}@media only screen{.small-push-0{position:relative;left:0;right:auto}.small-pull-0{position:relative;right:0;left:auto}.small-push-1{position:relative;left:8.3333333333%;right:auto}.small-pull-1{position:relative;right:8.3333333333%;left:auto}.small-push-2{position:relative;left:16.6666666667%;right:auto}.small-pull-2{position:relative;right:16.6666666667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.3333333333%;right:auto}.small-pull-4{position:relative;right:33.3333333333%;left:auto}.small-push-5{position:relative;left:41.6666666667%;right:auto}.small-pull-5{position:relative;right:41.6666666667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.3333333333%;right:auto}.small-pull-7{position:relative;right:58.3333333333%;left:auto}.small-push-8{position:relative;left:66.6666666667%;right:auto}.small-pull-8{position:relative;right:66.6666666667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.3333333333%;right:auto}.small-pull-10{position:relative;right:83.3333333333%;left:auto}.small-push-11{position:relative;left:91.6666666667%;right:auto}.small-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.small-1{width:8.3333333333%}.small-2{width:16.6666666667%}.small-3{width:25%}.small-4{width:33.3333333333%}.small-5{width:41.6666666667%}.small-6{width:50%}.small-7{width:58.3333333333%}.small-8{width:66.6666666667%}.small-9{width:75%}.small-10{width:83.3333333333%}.small-11{width:91.6666666667%}.small-12{width:100%}.small-offset-0{margin-left:0!important}.small-offset-1{margin-left:8.3333333333%!important}.small-offset-2{margin-left:16.6666666667%!important}.small-offset-3{margin-left:25%!important}.small-offset-4{margin-left:33.3333333333%!important}.small-offset-5{margin-left:41.6666666667%!important}.small-offset-6{margin-left:50%!important}.small-offset-7{margin-left:58.3333333333%!important}.small-offset-8{margin-left:66.6666666667%!important}.small-offset-9{margin-left:75%!important}.small-offset-10{margin-left:83.3333333333%!important}.small-offset-11{margin-left:91.6666666667%!important}.small-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.small-centered,.columns.small-centered{margin-left:auto;margin-right:auto;float:none}.column.small-uncentered,.columns.small-uncentered{float:left;margin-left:0;margin-right:0}.column.small-centered:last-child,.columns.small-centered:last-child{float:none}.column.small-uncentered:last-child,.columns.small-uncentered:last-child{float:left}.column.small-uncentered.opposite,.columns.small-uncentered.opposite{float:right}.row.small-collapse>.column,.row.small-collapse>.columns{padding-left:0;padding-right:0}.row.small-collapse .row{margin-left:0;margin-right:0}.row.small-uncollapse>.column,.row.small-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}}@media only screen and (min-width:20.0625em){.medium-push-0{position:relative;left:0;right:auto}.medium-pull-0{position:relative;right:0;left:auto}.medium-push-1{position:relative;left:8.3333333333%;right:auto}.medium-pull-1{position:relative;right:8.3333333333%;left:auto}.medium-push-2{position:relative;left:16.6666666667%;right:auto}.medium-pull-2{position:relative;right:16.6666666667%;left:auto}.medium-push-3{position:relative;left:25%;right:auto}.medium-pull-3{position:relative;right:25%;left:auto}.medium-push-4{position:relative;left:33.3333333333%;right:auto}.medium-pull-4{position:relative;right:33.3333333333%;left:auto}.medium-push-5{position:relative;left:41.6666666667%;right:auto}.medium-pull-5{position:relative;right:41.6666666667%;left:auto}.medium-push-6{position:relative;left:50%;right:auto}.medium-pull-6{position:relative;right:50%;left:auto}.medium-push-7{position:relative;left:58.3333333333%;right:auto}.medium-pull-7{position:relative;right:58.3333333333%;left:auto}.medium-push-8{position:relative;left:66.6666666667%;right:auto}.medium-pull-8{position:relative;right:66.6666666667%;left:auto}.medium-push-9{position:relative;left:75%;right:auto}.medium-pull-9{position:relative;right:75%;left:auto}.medium-push-10{position:relative;left:83.3333333333%;right:auto}.medium-pull-10{position:relative;right:83.3333333333%;left:auto}.medium-push-11{position:relative;left:91.6666666667%;right:auto}.medium-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.medium-1{width:8.3333333333%}.medium-2{width:16.6666666667%}.medium-3{width:25%}.medium-4{width:33.3333333333%}.medium-5{width:41.6666666667%}.medium-6{width:50%}.medium-7{width:58.3333333333%}.medium-8{width:66.6666666667%}.medium-9{width:75%}.medium-10{width:83.3333333333%}.medium-11{width:91.6666666667%}.medium-12{width:100%}.medium-offset-0{margin-left:0!important}.medium-offset-1{margin-left:8.3333333333%!important}.medium-offset-2{margin-left:16.6666666667%!important}.medium-offset-3{margin-left:25%!important}.medium-offset-4{margin-left:33.3333333333%!important}.medium-offset-5{margin-left:41.6666666667%!important}.medium-offset-6{margin-left:50%!important}.medium-offset-7{margin-left:58.3333333333%!important}.medium-offset-8{margin-left:66.6666666667%!important}.medium-offset-9{margin-left:75%!important}.medium-offset-10{margin-left:83.3333333333%!important}.medium-offset-11{margin-left:91.6666666667%!important}.medium-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.medium-centered,.columns.medium-centered{margin-left:auto;margin-right:auto;float:none}.column.medium-uncentered,.columns.medium-uncentered{float:left;margin-left:0;margin-right:0}.column.medium-centered:last-child,.columns.medium-centered:last-child{float:none}.column.medium-uncentered:last-child,.columns.medium-uncentered:last-child{float:left}.column.medium-uncentered.opposite,.columns.medium-uncentered.opposite{float:right}.row.medium-collapse>.column,.row.medium-collapse>.columns{padding-left:0;padding-right:0}.row.medium-collapse .row{margin-left:0;margin-right:0}.row.medium-uncollapse>.column,.row.medium-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}.push-0{left:0;right:auto}.pull-0,.push-0{position:relative}.pull-0{right:0;left:auto}.push-1{left:8.3333333333%;right:auto}.pull-1,.push-1{position:relative}.pull-1{right:8.3333333333%;left:auto}.push-2{left:16.6666666667%;right:auto}.pull-2,.push-2{position:relative}.pull-2{right:16.6666666667%;left:auto}.push-3{left:25%;right:auto}.pull-3,.push-3{position:relative}.pull-3{right:25%;left:auto}.push-4{left:33.3333333333%;right:auto}.pull-4,.push-4{position:relative}.pull-4{right:33.3333333333%;left:auto}.push-5{left:41.6666666667%;right:auto}.pull-5,.push-5{position:relative}.pull-5{right:41.6666666667%;left:auto}.push-6{left:50%;right:auto}.pull-6,.push-6{position:relative}.pull-6{right:50%;left:auto}.push-7{left:58.3333333333%;right:auto}.pull-7,.push-7{position:relative}.pull-7{right:58.3333333333%;left:auto}.push-8{left:66.6666666667%;right:auto}.pull-8,.push-8{position:relative}.pull-8{right:66.6666666667%;left:auto}.push-9{left:75%;right:auto}.pull-9,.push-9{position:relative}.pull-9{right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}@media only screen and (min-width:22.5625em){.large-push-0{position:relative;left:0;right:auto}.large-pull-0{position:relative;right:0;left:auto}.large-push-1{position:relative;left:8.3333333333%;right:auto}.large-pull-1{position:relative;right:8.3333333333%;left:auto}.large-push-2{position:relative;left:16.6666666667%;right:auto}.large-pull-2{position:relative;right:16.6666666667%;left:auto}.large-push-3{position:relative;left:25%;right:auto}.large-pull-3{position:relative;right:25%;left:auto}.large-push-4{position:relative;left:33.3333333333%;right:auto}.large-pull-4{position:relative;right:33.3333333333%;left:auto}.large-push-5{position:relative;left:41.6666666667%;right:auto}.large-pull-5{position:relative;right:41.6666666667%;left:auto}.large-push-6{position:relative;left:50%;right:auto}.large-pull-6{position:relative;right:50%;left:auto}.large-push-7{position:relative;left:58.3333333333%;right:auto}.large-pull-7{position:relative;right:58.3333333333%;left:auto}.large-push-8{position:relative;left:66.6666666667%;right:auto}.large-pull-8{position:relative;right:66.6666666667%;left:auto}.large-push-9{position:relative;left:75%;right:auto}.large-pull-9{position:relative;right:75%;left:auto}.large-push-10{position:relative;left:83.3333333333%;right:auto}.large-pull-10{position:relative;right:83.3333333333%;left:auto}.large-push-11{position:relative;left:91.6666666667%;right:auto}.large-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.large-1{width:8.3333333333%}.large-2{width:16.6666666667%}.large-3{width:25%}.large-4{width:33.3333333333%}.large-5{width:41.6666666667%}.large-6{width:50%}.large-7{width:58.3333333333%}.large-8{width:66.6666666667%}.large-9{width:75%}.large-10{width:83.3333333333%}.large-11{width:91.6666666667%}.large-12{width:100%}.large-offset-0{margin-left:0!important}.large-offset-1{margin-left:8.3333333333%!important}.large-offset-2{margin-left:16.6666666667%!important}.large-offset-3{margin-left:25%!important}.large-offset-4{margin-left:33.3333333333%!important}.large-offset-5{margin-left:41.6666666667%!important}.large-offset-6{margin-left:50%!important}.large-offset-7{margin-left:58.3333333333%!important}.large-offset-8{margin-left:66.6666666667%!important}.large-offset-9{margin-left:75%!important}.large-offset-10{margin-left:83.3333333333%!important}.large-offset-11{margin-left:91.6666666667%!important}.large-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.large-centered,.columns.large-centered{margin-left:auto;margin-right:auto;float:none}.column.large-uncentered,.columns.large-uncentered{float:left;margin-left:0;margin-right:0}.column.large-centered:last-child,.columns.large-centered:last-child{float:none}.column.large-uncentered:last-child,.columns.large-uncentered:last-child{float:left}.column.large-uncentered.opposite,.columns.large-uncentered.opposite{float:right}.row.large-collapse>.column,.row.large-collapse>.columns{padding-left:0;padding-right:0}.row.large-collapse .row{margin-left:0;margin-right:0}.row.large-uncollapse>.column,.row.large-uncollapse>.columns{padding-left:.9375rem;padding-right:.9375rem;float:left}.push-0{left:0;right:auto}.pull-0,.push-0{position:relative}.pull-0{right:0;left:auto}.push-1{left:8.3333333333%;right:auto}.pull-1,.push-1{position:relative}.pull-1{right:8.3333333333%;left:auto}.push-2{left:16.6666666667%;right:auto}.pull-2,.push-2{position:relative}.pull-2{right:16.6666666667%;left:auto}.push-3{left:25%;right:auto}.pull-3,.push-3{position:relative}.pull-3{right:25%;left:auto}.push-4{left:33.3333333333%;right:auto}.pull-4,.push-4{position:relative}.pull-4{right:33.3333333333%;left:auto}.push-5{left:41.6666666667%;right:auto}.pull-5,.push-5{position:relative}.pull-5{right:41.6666666667%;left:auto}.push-6{left:50%;right:auto}.pull-6,.push-6{position:relative}.pull-6{right:50%;left:auto}.push-7{left:58.3333333333%;right:auto}.pull-7,.push-7{position:relative}.pull-7{right:58.3333333333%;left:auto}.push-8{left:66.6666666667%;right:auto}.pull-8,.push-8{position:relative}.pull-8{right:66.6666666667%;left:auto}.push-9{left:75%;right:auto}.pull-9,.push-9{position:relative}.pull-9{right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}.mute-icon-container{top:0;z-index:199}.mute-icon-container,.mute-icon-container .mute-video-wrap,.mute-icon-container .unmute-video-wrap{position:absolute}.mute-icon-container .mute-video,.mute-icon-container .unmute-video{min-width:30px;min-height:30px;width:30px;height:30px}.mute-icon-container .mute-video-wrap,.mute-icon-container .unmute-video-wrap{display:block;padding:10px 30px 30px 10px}.mute-icon-container .hidden{z-index:-1;visibility:hidden}.mute-icon-container.windows-full-screen{margin-top:2.5em!important}#dynamic.windows div:not([id^=Native]) .mute-icon-container .mute-video,#dynamic.windows div:not([id^=Native]) .mute-icon-container .unmute-video{height:7vh;width:7vh;max-width:50px;max-height:50px}@media only screen and (orientation:portrait){#dynamic.windows div:not([id^=Native]) .mute-icon-container .mute-video,#dynamic.windows div:not([id^=Native]) .mute-icon-container .unmute-video{height:7vw;width:7vw}}.progress-bar{position:absolute;bottom:0;margin:auto;width:100%;height:3px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;z-index:199;background:rgba(0,0,0,.2)}.progress-bar span{background:#01b27a;position:absolute;left:0;top:0;height:100%;width:0;display:block}.overlay-video-controller{bottom:0;left:0;position:fixed;right:0;top:0;z-index:200;background-color:rgba(0,0,0,.6)}.overlay-video-controller__holder{width:100%;top:50%;left:50%;position:absolute;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.overlay-video-controller__holder h2{color:#fff;text-align:center;font-weight:400;margin:.3em 0}.overlay-video-controller__icon{width:25%;height:25vw;margin:0 auto;max-width:120px;max-height:120px}.overlay-video-controller__icon svg{width:100%;height:100%}svg .tap-to-play{fill:#fff;stroke:hsla(0,0%,100%,.4);stroke-width:.2}[id^=Native] .header .close{padding:0 0 20px 20px}[id^=Native] .header .close .close-btn{width:30px;height:30px}.header{margin:0;position:absolute;top:0;right:0;width:100%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.header .close,.header .close-countdown{padding:20px 20px 10px 10px;cursor:pointer;position:relative;z-index:200;float:right}.header .close-countdown .close-btn-container,.header .close .close-btn-container{width:1em;height:1em}.header .close-countdown .close-btn-container .close-btn,.header .close .close-btn-container .close-btn{width:100%;height:100%}.header .close .close-btn-text{display:none}.header .close-countdown .close-btn-text{background:rgba(51,51,51,.5);color:#fff;border-radius:50%;text-align:center;margin:-9.5px;display:block;line-height:normal;min-width:35px;min-height:35px}.header .close-countdown .close-btn-text:after,.header .close-countdown .close-btn-text:before{content:"";display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;line-height:0;padding:50% 0}.header .close-countdown .close-btn-text:before{padding-left:8px}.header .close-countdown .close-btn-text:after{padding-right:8px}.header .close-countdown .close-btn-text .dark{background:rgba(51,51,51,.5)}.header .close-countdown .close-btn-text.hide{display:none}.header .close-countdown .close-btn-container{width:1.2em;height:1.2em}div:not([id^=Native]) .closeBtn,div:not([id^=Native]) .closeBtndark{fill:#fff}div:not([id^=Native]) .closeBtnlight{fill:#1d1d1d}div:not([id^=Native]) .closeBtn,div:not([id^=Native]) .closeBtndark,div:not([id^=Native]) .closeBtnlight{stroke:#6c6d6d;stroke-width:26;stroke-miterlimit:10}@media only screen and (min-width:20em)and (min-height:20em){#dynamic.windows div:not([id^=Native]) .closeBtn,#dynamic.windows div:not([id^=Native]) .closeBtndark,#dynamic.windows div:not([id^=Native]) .closeBtnlight{stroke:#fff}#dynamic.windows div:not([id^=Native]) .closeBtnlight{fill:#fff}#dynamic.windows div:not([id^=Native]) .header .close,#dynamic.windows div:not([id^=Native]) .header .close-countdown{background:rgba(51,51,51,.7);padding:.5em .85em .7em;margin:.5em}#dynamic.windows div:not([id^=Native]) .header .close-countdown.windows-full-screen,#dynamic.windows div:not([id^=Native]) .header .close.windows-full-screen{margin-top:2.5em}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-container,#dynamic.windows div:not([id^=Native]) .header .close .close-btn-container{width:30px;height:30px}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text{background:none;border-radius:unset;min-width:unset;min-height:unset;width:30px;height:30px;margin:0;line-height:30px;font-size:20px}#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text:after,#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-text:before{padding:0}}@media only screen and (min-width:20em)and (min-height:20em)and (max-height:22.5em),only screen and (min-width:20em)and (min-height:20em)and (max-width:22.5em){#dynamic.windows div:not([id^=Native]) .header .close-countdown .close-btn-container,#dynamic.windows div:not([id^=Native]) .header .close .close-btn-container{width:20px;height:20px}#dynamic.windows div:not([id^=Native]) .header .close-countdown.close-show-countdown .close-btn-text,#dynamic.windows div:not([id^=Native]) .header .close.close-show-countdown .close-btn-text{width:20px;height:20px;line-height:20px;font-size:15px}}.footer{bottom:0;margin:0;padding:0;position:absolute;width:100%}.footer .privacy-button{z-index:200;border:1px solid transparent;border-radius:50%;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;color:#909090;cursor:pointer;float:left;font-size:2em;height:1em;bottom:4px;left:4px;overflow:hidden;-webkit-transition:background .5s ease-in-out,width .5s ease-in-out .2s,border-radius .2s ease-in-out .25s,border .5s ease-in-out;-o-transition:background .5s ease-in-out,width .5s .2s ease-in-out,border-radius .2s .25s ease-in-out,border .5s ease-in-out;transition:background .5s ease-in-out,width .5s ease-in-out .2s,border-radius .2s ease-in-out .25s,border .5s ease-in-out;width:1em}.footer .privacy-button,.footer .privacy-button span,.footer .privacy-button svg{position:absolute}.footer .privacy-button svg{top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);left:.5em;width:.6em;height:100%}.footer .privacy-button svg.lock-icon{opacity:.6}.footer .privacy-button svg.lock-icon,.footer .privacy-button svg.lock-icon.invert.dark{fill:#bcbcbc}.footer .privacy-button svg.lock-icon.dark,.footer .privacy-button svg.lock-icon.invert.light{fill:#333}.footer .privacy-button.extended svg.lock-icon,.footer .privacy-button.extended svg.lock-icon.dark,.footer .privacy-button.extended svg.lock-icon.light,.footer .privacy-button.reverse svg.lock-icon,.footer .privacy-button.reverse svg.lock-icon.dark,.footer .privacy-button.reverse svg.lock-icon.light{opacity:1;fill:#14cdc8}.footer .privacy-button span{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;color:#909090;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-size:.4em;height:100%;left:2.6em;white-space:nowrap}.footer .privacy-button span,.footer .privacy-button span .privacy-icon{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.footer .privacy-button span .privacy-icon{position:relative;left:.2em;width:.8em}.footer .privacy-button.extended{background:#fff;width:3.4em;border-radius:25px;border:1px solid rgba(0,0,0,.1)}.footer .privacy-button.reverse{-webkit-transition:background .5s ease-in-out .5s,width .5s ease-in-out,border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s;-o-transition:background .5s .5s ease-in-out,width .5s ease-in-out,border-radius .25s .2s ease-in-out,border .5s .5s ease-in-out;transition:background .5s ease-in-out .5s,width .5s ease-in-out,border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s}.footer .bubble-button{bottom:.8rem;left:.8rem;width:1em;font-size:1.75em;background:#fff;opacity:.7;-webkit-transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out;-o-transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out;transition:width .7s cubic-bezier(.8,.2,.07,1),border .5s ease-in-out,opacity 1s ease-in-out}.footer .bubble-button svg.lock-icon{opacity:.7}.footer .bubble-button span{visibility:hidden;left:2.45em}.footer .bubble-button span .privacy-icon{left:0;width:5.5em;margin-bottom:-.2em}.footer .bubble-button.extended,.footer .bubble-button.reverse{border:1px solid rgba(0,0,0,.1);opacity:1}.footer .bubble-button.extended span,.footer .bubble-button.reverse span{visibility:visible}.footer .bubble-button.reverse{-webkit-transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s,opacity .5s ease-in-out;-o-transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s .2s ease-in-out,border .5s .5s ease-in-out,opacity .5s ease-in-out;transition:width .5s cubic-bezier(.8,.2,.07,1),border-radius .25s ease-in-out .2s,border .5s ease-in-out .5s,opacity .5s ease-in-out}.footer.bottom_right .privacy-button,.footer.top_right .privacy-button{right:4px;left:unset;float:right}.footer.top_left,.footer.top_right{bottom:unset;top:4px}.footer.top_left .privacy-button,.footer.top_right .privacy-button{bottom:unset}#DIALOGBOX{visibility:hidden;position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:#565656;z-index:300;background-color:rgba(0,0,0,.8)}#DIALOGBOX .dialog{width:288px;margin-top:0;padding:0;text-align:center;position:fixed;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}@media only screen and (max-height:20em){#DIALOGBOX .dialog{width:200px}}#DIALOGBOX .dialog .dialog-content{width:100%;position:relative;border-top-width:7px;border-radius:3px;overflow:hidden}#DIALOGBOX .dialog .dialog-content .title-text{color:#fff;padding:8px;font-weight:400;font-size:1.25em}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .title-text{font-size:1em}}#DIALOGBOX .dialog .dialog-content .body-text-container{padding:0;background-color:#fff;overflow:none}#DIALOGBOX .dialog .dialog-content .body-text-container .body-text{margin:0 auto;padding:18px;text-align:center;font-size:1em;line-height:1.35em;font-weight:300}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .body-text-container .body-text{padding:10px;font-size:.8em;line-height:1.25}}#DIALOGBOX .dialog .dialog-content .action-buttons{width:100%;padding:0;background-color:#fff}#DIALOGBOX .dialog .dialog-content .action-buttons button{width:100%;border:none;background:none;padding:8px;font-weight:400;font-size:1rem;text-align:center;text-decoration:none}@media only screen and (max-height:20em){#DIALOGBOX .dialog .dialog-content .action-buttons button{font-size:.75rem}}#DIALOGBOX .dialog .dialog-content .action-buttons button .action-icon{width:.9em;height:.9em;float:none}#DIALOGBOX .dialog .dialog-content .action-buttons .primary-button{border-top:3px solid rgba(0,0,0,.1);padding:0;color:#fff}#DIALOGBOX .dialog .dialog-content .action-buttons .primary-button button.primary{text-transform:uppercase}#DIALOGBOX .dialog .dialog-content .action-buttons .secondary-button{padding:0;border-top:3px solid rgba(0,0,0,.1)}#GDPRDialogBox{visibility:hidden;top:0;left:0;height:100%;text-align:center;overflow:hidden;z-index:300;background-color:#fff}#GDPRDialogBox,#GDPRDialogBox .dialog{position:absolute;width:100%}#GDPRDialogBox .app-icon svg{height:17vw;width:17vw;padding:.5em;background:#0493c9;border-radius:50%;max-width:6em;max-height:6em}#GDPRDialogBox .dialog-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}#GDPRDialogBox .title-text{font-weight:600;word-wrap:break-word;font-size:5.5vw;margin:.5em 12.5%}#GDPRDialogBox .body-text{padding:0 12.5%;overflow:hidden;text-align:center;font-weight:400;color:#1c1c1c;word-wrap:break-word;font-size:4.5vw}#GDPRDialogBox .cta{position:absolute;bottom:0;width:100%;line-height:15vw;height:15vw}#GDPRDialogBox .cta button{border:none;background:none;cursor:pointer;width:100%}#GDPRDialogBox .consent-button{display:block;float:right;width:50%;color:#fff;font-size:7.5vw}#GDPRDialogBox .consent-button button{background:#56ae7f}#GDPRDialogBox .no-consent-button{display:block;float:right;width:50%;color:#0493c9;font-size:4.5vw;border-top:1px solid #e8e8e8}@media screen and (max-height:20em){#GDPRDialogBox .app-icon{display:none}}@media screen and (max-height:20em)and (min-aspect-ratio:3/2){#GDPRDialogBox .title-text{font-size:9.5vh}#GDPRDialogBox .body-text{font-size:7vh}}@media screen and (max-width:22.5em){#GDPRDialogBox .title-text{margin:0}#GDPRDialogBox .body-text{padding:0 1em}}@media screen and (min-width:22.5em)and (orientation:landscape){#GDPRDialogBox .dialog{width:75%;height:100%!important;display:block;float:left;bottom:auto;position:relative}#GDPRDialogBox .cta{width:25%;height:100%;display:block;float:left;position:relative;line-height:12vh}#GDPRDialogBox .consent-button,#GDPRDialogBox .no-consent-button{float:unset;width:100%}#GDPRDialogBox .consent-button{font-size:3.5vh;margin:0 0 2vh}#GDPRDialogBox .consent-button button{border-radius:10vh}#GDPRDialogBox .no-consent-button{font-size:2.5vh;border-top:none}#GDPRDialogBox .cta-content{position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;padding:0 6.5% 0 0}#GDPRDialogBox .title-text{font-size:5vh}#GDPRDialogBox .body-text{font-size:4vh}}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}#dynamic,body,html{height:100%;width:100%}body,html{margin:0 auto;background:#000;font-family:-apple-system,Roboto,Segoe UI,Droid Sans,Helvetica,Arial,sans-serif;font-style:normal;position:relative}progress::-webkit-progress-value{background:hsla(0,0%,100%,.8)}.spinner{position:relative;top:50%;width:1em;height:1em;font-size:50px;text-indent:-9999em;overflow:hidden;margin:-25px auto;border-radius:50%;opacity:1;-o-transition:opacity .75s ease-in-out;transition:opacity .75s ease-in-out;-moz-transition:opacity .75s ease-in-out;-webkit-transition:opacity .75s ease-in-out;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:animate-spinner 1.7s ease infinite;animation:animate-spinner 1.7s ease infinite}@-webkit-keyframes animate-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;opacity:.2}5%,95%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff}10%,59%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.087em -.825em 0 -.42em #fff,-.173em -.812em 0 -.44em #fff,-.256em -.789em 0 -.46em #fff,-.297em -.775em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.087em -.825em 0 -.42em #fff,-.173em -.812em 0 -.44em #fff,-.256em -.789em 0 -.46em #fff,-.297em -.775em 0 -.477em #fff}20%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.338em -.758em 0 -.42em #fff,-.555em -.617em 0 -.44em #fff,-.671em -.488em 0 -.46em #fff,-.749em -.34em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.338em -.758em 0 -.42em #fff,-.555em -.617em 0 -.44em #fff,-.671em -.488em 0 -.46em #fff,-.749em -.34em 0 -.477em #fff;opacity:.4}38%{-webkit-box-shadow:0 -.83em 0 -.4em #fff,-.377em -.74em 0 -.42em #fff,-.645em -.522em 0 -.44em #fff,-.775em -.297em 0 -.46em #fff,-.82em -.09em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,-.377em -.74em 0 -.42em #fff,-.645em -.522em 0 -.44em #fff,-.775em -.297em 0 -.46em #fff,-.82em -.09em 0 -.477em #fff;opacity:.6}to{-webkit-transform:rotate(1turn);transform:rotate(1turn);-webkit-box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;box-shadow:0 -.83em 0 -.4em #fff,0 -.83em 0 -.42em #fff,0 -.83em 0 -.44em #fff,0 -.83em 0 -.46em #fff,0 -.83em 0 -.477em #fff;opacity:.8}}#dynamic:not(.windows) [data-vgl-tabindex]{outline:none}.ios .radius{border-radius:26%/24%}.android .radius{border-radius:20%}.ellipsis{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;-ms-text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.stopWrapping{white-space:nowrap!important;width:auto!important;position:fixed;visibility:hidden;-webkit-transition:none!important;-o-transition:none!important;transition:none!important;-webkit-animation:none!important;animation:none!important}.overlay-cta{bottom:0;content:"";left:0;position:fixed;right:0;top:0;z-index:100}.truncate{max-width:90%;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.disable-click,.disable-cta{pointer-events:none}#dynamic{position:relative}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3){#dynamic.typeof-ad-native{height:375px;width:244px}}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3)and (orientation:landscape){#dynamic.typeof-ad-native{width:100%;height:244px}}@media only screen and (device-width:375px)and (device-height:812px)and (-webkit-device-pixel-ratio:3){#dynamic #Video{position:relative}#dynamic #Video .footer{position:absolute}}#Video{width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;background:rgba(0,0,0,.7)}#Video,#Video .footer .download,#Video .video-container .video{position:absolute}#Video .content{padding:0;width:100%;height:100%;position:relative;background:#000;overflow:hidden}#Video .content .footer.row,#Video .content .header.row{margin:0}#Video .content .video-container{position:relative;height:100%;width:100%}#Video .content .video-container video{display:block;top:0;bottom:0;right:0;left:0;margin:auto;width:100%;height:100%}#Video .content .footer.row{width:100%}#Video .content .footer .download{bottom:4px;width:50px;height:50px;padding:20px 10px 10px 20px;right:0;line-height:1em;z-index:101;float:right;cursor:pointer}#Video .content .footer .download .download-icon{bottom:10px;height:19px;width:19px}#Video .content .footer .download .cta-button__timer{color:#fff}@-webkit-keyframes endcardAppear{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes endcardAppear{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}#RtbEndcard{height:100%;width:100%;overflow:hidden;-webkit-animation:endcardAppear .5s ease-in-out 1 forwards;animation:endcardAppear .5s ease-in-out 1 forwards}#RtbEndcard .ad-container{height:100%;width:100%;top:0;bottom:0;right:0;left:0;margin:auto;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}#RtbEndcard .ad-container .background-image{width:100%;height:100%}#RtbEndcard .ad-container #programmaticIframe{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%}#RtbEndcard .hidden-encoded-content{display:none}</style>
<!-- OMSDK Session-->
<script src="omsdk.js"></script>
<script src="omsdk-session.js"></script>
<script src="mraid.js"></script>
<script>
if (typeof vungle.mraidExt === "undefined") {
document.write('<scr'+'ipt src="vungle_mraid.js"></sc'+'ript>');
document.write('<scr'+'ipt src="tokenmap.js"></sc'+'ript>');
document.write('<scr'+'ipt src="replacements.js"></sc'+'ript>');
}
</script>
<script>
if (typeof getVungleReplacementTokens === "function") {
var propertiesMap = {
// https://vungle.atlassian.net/browse/DSP-3029
"OS": "os",
"OS_VERSION": "osVersion",
"SDK_VERSION": "sdkVersion",
// https://vungle.atlassian.net/browse/DSP-3051
"CONSENT_TITLE_TEXT": "consentTitleText",
"CONSENT_BODY_TEXT": "consentBodyText",
"CONSENT_ACCEPT_BUTTON_TEXT": "consentAcceptButtonText",
"CONSENT_DENY_BUTTON_TEXT": "consentDenyButtonText"
};
// Get the replacement tokens from the replacements.js file
var vungleReplacementTokens = getVungleReplacementTokens();
function convertTokens(tokens) {
var output = {};
Object.keys(tokens).forEach(function(key) {
output[vungleTokenMap[key]] = tokens[key];
});
return output;
}
// Convert the tokens to an uncompressed/useful form using the token map
var fixedTokens = convertTokens(vungleReplacementTokens);
// Push the tokens into the template
window.vungle.mraidBridge.notifyReadyEvent(fixedTokens);
// Prepare the data for notifyPropertiesChange the SDK should have called
const sdkProperties = {
"isViewable": true,
"placementType": "fullscreen", // SKOverlay requires this to be "fullscreen" on all fullscreen templates and must be one of `"fullscreen", "mrec", "banner"`
"version": "1.0", // Used by OMSDK
"consentAcceptButtonText": "Accept", // This has to come from the ADM somehow...
"consentDenyButtonText": "Deny",
"consentBodyText": "Ads are personalized. Denying would disable it",
"consentTitleText": "Personalized Ads",
"supports":{ // This isn't used
"sms":false,
"storePicture":false,
"inlineVideo":false,
"calendar":false,
"tel":false
},
// https://vungle.atlassian.net/browse/DSP-3051
"incentivized": fixedTokens.hasOwnProperty("INCENTIVIZED") && fixedTokens["INCENTIVIZED"].toLowerCase() === "true"
};
// currentPosition is not used in DT: https://bitbucket.org/search?q=project%3ADT%20getCurrentPosition&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "maxSize" mraid.getMaxSize is not used: https://bitbucket.org/search?q=project%3ADT%20getMaxSize&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "defaultPosition" is not used in DT: https://bitbucket.org/search?q=project%3ADT%20defaultPosition&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// "screenSize" is not used in DT: https://bitbucket.org/search?q=project%3ADT%20screenSize&account=%7B69e768d9-e3b2-4402-909b-01cb56bfd749%7D
// Map the token replacements that belong in the notifyPropertiesChange
Object.keys(propertiesMap).forEach(function(key) {
if (fixedTokens.hasOwnProperty(key)) {
sdkProperties[propertiesMap[key]] = fixedTokens[key];
}
});
// Replace the call to notifyPropertiesChange the SDK should have called
window.vungle.mraidBridge.notifyPropertiesChange(sdkProperties);
}
</script>
<script>
(function (window) {
"use strict";
window.asyncLoadJavaScript = function (url, callback) {
var scriptTag = document.createElement("script");
scriptTag.type = "text/javascript";
scriptTag.src = url;
if (scriptTag.readyState) {
scriptTag.onreadystatechange = function () {
if (scriptTag.readyState === "loaded" || scriptTag.readyState === "completed") {
scriptTag.onreadystatechange = null;
callback && callback();
}
};
}
else {
scriptTag.onload = function () {
callback && callback();
};
}
document.getElementsByTagName("head")[0].appendChild(scriptTag);
};
var vgl = window.vungle = window.vungle || {};
vgl.flexFeed = false;
vgl.config = {
cacheBuster: "t=" + (new Date()).getTime() //TODO: remove in future
};
})(window)
</script>
<!-- ######### Start: Used for preview in dashboard ############-->
<script id="preview_vungle_mraid_min_js"></script>
<!-- ######### End: Used for preview in dashboard ############-->
</head>
<body>
<div id="spinner" class="spinner">Loading...</div>
<div id="dynamic">
<!-- the entire ad unit experience will be created dynamically and inserted here -->
</div>
<script>!function(e){"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=0;t[r]&&t[r]!==this;)++r;return Boolean(t[r])}),"function"!=typeof e.closest&&(e.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window.Element.prototype),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t,r=document.createElement("style"),n=document.getElementsByTagName("script")[0];r.type="text/css",r.id="matchmediajs-test",n?n.parentNode.insertBefore(r,n):document.head.appendChild(r),t="getComputedStyle"in window&&window.getComputedStyle(r,null)||r.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return r.styleSheet?r.styleSheet.cssText=n:r.textContent=n,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Handlebars=t():e.Handlebars=t()}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";var n=r(1).default,o=r(2).default;t.__esModule=!0;var a=n(r(3)),i=o(r(36)),u=o(r(5)),l=n(r(4)),s=n(r(37)),c=o(r(43));function f(){var e=new a.HandlebarsEnvironment;return l.extend(e,a),e.SafeString=i.default,e.Exception=u.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=s,e.template=function(t){return s.template(t,e)},e}var d=f();d.create=f,c.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t.__esModule=!0},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.HandlebarsEnvironment=c;var o=r(4),a=n(r(5)),i=r(9),u=r(29),l=n(r(31)),s=r(32);t.VERSION="4.7.2";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function c(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},i.registerDefaultHelpers(this),u.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:l.default,log:l.default.log,registerHelper:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new a.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new a.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){s.resetLoggedProperties()}};var f=l.default.log;t.log=f,t.createFrame=o.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=i,t.indexOf=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!o.test(e))return e;return e.replace(n,a)},t.isEmpty=function(e){return!e&&0!==e||!(!s(e)||0!==e.length)},t.createFrame=function(e){var t=i({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},n=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(e){return r[e]}function i(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var u=Object.prototype.toString;t.toString=u;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===u.call(e)}),t.isFunction=l;var s=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===u.call(e)};t.isArray=s},function(e,t,r){"use strict";var n=r(6).default;t.__esModule=!0;var o=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function a(e,t){var r=t&&t.loc,i=void 0,u=void 0,l=void 0,s=void 0;r&&(i=r.start.line,u=r.end.line,l=r.start.column,s=r.end.column,e+=" - "+i+":"+l);for(var c=Error.prototype.constructor.call(this,e),f=0;f<o.length;f++)this[o[f]]=c[o[f]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{r&&(this.lineNumber=i,this.endLineNumber=u,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=l,this.endColumn=s))}catch(e){}}a.prototype=new Error,t.default=a,e.exports=t.default},function(e,t,r){e.exports={default:r(7),__esModule:!0}},function(e,t,r){var n=r(8);e.exports=function(e,t,r){return n.setDesc(e,t,r)}},function(e,t){var r=Object;e.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),a.default(e),i.default(e),u.default(e),l.default(e),s.default(e),c.default(e)},t.moveHelperToHooks=function(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])};var o=n(r(10)),a=n(r(11)),i=n(r(24)),u=n(r(25)),l=n(r(26)),s=n(r(27)),c=n(r(28))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var o=r.inverse,a=r.fn;if(!0===t)return a(this);if(!1===t||null==t)return o(this);if(n.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):o(this);if(r.data&&r.ids){var i=n.createFrame(r.data);i.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:i}}return a(t,r)})},e.exports=t.default},function(e,t,r){(function(n){"use strict";var o=r(12).default,a=r(2).default;t.__esModule=!0;var i=r(4),u=a(r(5));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new u.default("Must pass iterator to #each");var r,a=t.fn,l=t.inverse,s=0,c="",f=void 0,d=void 0;function p(t,r,n){f&&(f.key=t,f.index=r,f.first=0===r,f.last=!!n,d&&(f.contextPath=d+t)),c+=a(e[t],{data:f,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(f=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var h=e.length;s<h;s++)s in e&&p(s,s,s===e.length-1);else if(n.Symbol&&e[n.Symbol.iterator]){for(var v=[],m=e[n.Symbol.iterator](),g=m.next();!g.done;g=m.next())v.push(g.value);for(h=(e=v).length;s<h;s++)p(s,s,s===e.length-1)}else r=void 0,o(e).forEach(function(e){void 0!==r&&p(r,s-1),r=e,s++}),void 0!==r&&p(r,s-1,!0);return 0===s&&(c=l(this)),c})},e.exports=t.default}).call(t,function(){return this}())},function(e,t,r){e.exports={default:r(13),__esModule:!0}},function(e,t,r){r(14),e.exports=r(20).Object.keys},function(e,t,r){var n=r(15);r(17)("keys",function(e){return function(t){return e(n(t))}})},function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(18),o=r(20),a=r(23);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],i={};i[e]=t(r),n(n.S+n.F*a(function(){r(1)}),"Object",i)}},function(e,t,r){var n=r(19),o=r(20),a=r(21),i=function(e,t,r){var u,l,s,c=e&i.F,f=e&i.G,d=e&i.S,p=e&i.P,h=e&i.B,v=e&i.W,m=f?o:o[t]||(o[t]={}),g=f?n:d?n[t]:(n[t]||{}).prototype;for(u in f&&(r=t),r)(l=!c&&g&&u in g)&&u in m||(s=l?g[u]:r[u],m[u]=f&&"function"!=typeof g[u]?r[u]:h&&l?a(s,n):v&&g[u]==s?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t.prototype=e.prototype,t}(s):p&&"function"==typeof s?a(Function.call,s):s,p&&((m.prototype||(m.prototype={}))[u]=s))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,e.exports=i},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(22);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=n(r(5));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=r(4),a=n(r(5));t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return o.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||o.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,r){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var o=1;null!=r.hash.level?o=r.hash.level:r.data&&null!=r.data.level&&(o=r.data.level),t[0]=o,e.log.apply(e,t)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,r){return e?r.lookupProperty(e,t):e})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var o=r(4),a=n(r(5));t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");o.isFunction(e)&&(e=e.call(this));var r=t.fn;if(o.isEmpty(e))return t.inverse(this);var n=t.data;return t.data&&t.ids&&((n=o.createFrame(t.data)).contextPath=o.appendContextPath(t.data.contextPath,t.ids[0])),r(e,{data:n,blockParams:o.blockParams([e],[n&&n.contextPath])})})},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){o.default(e)};var o=n(r(30))},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4);t.default=function(e){e.registerDecorator("inline",function(e,t,r,o){var a=e;return t.partials||(t.partials={},a=function(o,a){var i=r.partials;r.partials=n.extend({},i,t.partials);var u=e(o,a);return r.partials=i,u}),t.partials[o.args[0]]=o.fn,a})},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=r(4),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];console[t].apply(console,n)}}};t.default=o,e.exports=t.default},function(e,t,r){"use strict";var n=r(33).default,o=r(12).default,a=r(1).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=n(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=n(null);return r.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,r){return s("function"==typeof e?t.methods:t.properties,r)},t.resetLoggedProperties=function(){o(l).forEach(function(e){delete l[e]})};var i=r(35),u=a(r(31)),l=n(null);function s(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,u.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,r){e.exports={default:r(34),__esModule:!0}},function(e,t,r){var n=r(8);e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){"use strict";var n=r(33).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.extend.apply(void 0,[n(null)].concat(t))};var o=r(4)},function(e,t){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,r){"use strict";var n=r(38).default,o=r(12).default,a=r(1).default,i=r(2).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,r=s.COMPILER_REVISION;if(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)return;if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var n=s.REVISION_CHANGES[r],o=s.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&7===e.compiler[0];var a={strict:function(e,t,r){if(!(e&&t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:r});return e[t]},lookupProperty:function(e,t){var r=e[t];return null==r?r:Object.prototype.hasOwnProperty.call(e,t)?r:d.resultIsAllowed(r,a.protoAccessControl,t)?r:void 0},lookup:function(e,t){for(var r=e.length,n=0;n<r;n++){var o=e[n]&&a.lookupProperty(e[n],t);if(null!=o)return e[n][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:u.escapeExpression,invokePartial:function(r,n,o){o.hash&&(n=u.extend({},n,o.hash),o.ids&&(o.ids[0]=!0));r=t.VM.resolvePartial.call(this,r,n,o);var a=u.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),i=t.VM.invokePartial.call(this,r,n,a);null==i&&t.compile&&(o.partials[o.name]=t.compile(r,e.compilerOptions,t),i=o.partials[o.name](n,a));if(null!=i){if(o.indent){for(var s=i.split("\n"),c=0,f=s.length;c<f&&(s[c]||c+1!==f);c++)s[c]=o.indent+s[c];i=s.join("\n")}return i}throw new l.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var r=e[t];return r.decorator=e[t+"_d"],r},programs:[],program:function(e,t,r,n,o){var a=this.programs[e],i=this.fn(e);return t||o||n||r?a=p(this,e,i,t,r,n,o):a||(a=this.programs[e]=p(this,e,i)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var r=e||t;return e&&t&&e!==t&&(r=u.extend({},t,e)),r},nullContext:n({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.data;i._setup(r),!r.partial&&e.useData&&(n=function(e,t){t&&"root"in t||((t=t?s.createFrame(t):{}).root=e);return t}(t,n));var o=void 0,u=e.useBlockParams?[]:void 0;function l(t){return""+e.main(a,t,a.helpers,a.partials,n,u,o)}return e.useDepths&&(o=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(l=v(e.main,l,a,r.depths||[],n,u))(t,r)}return i.isTop=!0,i._setup=function(n){if(n.partial)a.protoAccessControl=n.protoAccessControl,a.helpers=n.helpers,a.partials=n.partials,a.decorators=n.decorators,a.hooks=n.hooks;else{var i=u.extend({},t.helpers,n.helpers);!function(e,t){o(e).forEach(function(r){var n=e[r];e[r]=function(e,t){var r=t.lookupProperty;return f.wrapHelper(e,function(e){return u.extend({lookupProperty:r},e)})}(n,t)})}(i,a),a.helpers=i,e.usePartial&&(a.partials=a.mergeIfNeeded(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=u.extend({},t.decorators,n.decorators)),a.hooks={},a.protoAccessControl=d.createProtoAccessControl(n);var l=n.allowCallsToHelperMissing||r;c.moveHelperToHooks(a,"helperMissing",l),c.moveHelperToHooks(a,"blockHelperMissing",l)}},i._child=function(t,r,n,o){if(e.useBlockParams&&!n)throw new l.default("must pass block params");if(e.useDepths&&!o)throw new l.default("must pass parent depths");return p(a,t,e[t],r,0,n,o)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,r){e?e.call||r.name||(r.name=e,e=r.partials[e]):e="@partial-block"===r.name?r.data["partial-block"]:r.partials[r.name];return e},t.invokePartial=function(e,t,r){var n=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;r.fn&&r.fn!==h&&function(){r.data=s.createFrame(r.data);var e=r.fn;o=r.data["partial-block"]=function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return r.data=s.createFrame(r.data),r.data["partial-block"]=n,e(t,r)},e.partials&&(r.partials=u.extend({},r.partials,e.partials))}();void 0===e&&o&&(e=o);if(void 0===e)throw new l.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)},t.noop=h;var u=a(r(4)),l=i(r(5)),s=r(3),c=r(9),f=r(42),d=r(32);function p(e,t,r,n,o,a,i){function u(t){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=i;return!i||t==i[0]||t===e.nullContext&&null===i[0]||(u=[t].concat(i)),r(e,t,e.helpers,e.partials,o.data||n,a&&[o.blockParams].concat(a),u)}return(u=v(r,u,e,i,n,a)).program=t,u.depth=i?i.length:0,u.blockParams=o||0,u}function h(){return""}function v(e,t,r,n,o,a){if(e.decorator){var i={};t=e.decorator(t,i,r,n&&n[0],o,a,n),u.extend(t,i)}return t}},function(e,t,r){e.exports={default:r(39),__esModule:!0}},function(e,t,r){r(40),e.exports=r(20).Object.seal},function(e,t,r){var n=r(41);r(17)("seal",function(e){return function(t){return e&&n(t)?e(t):t}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){if("function"!=typeof e)return e;return function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)}}},function(e,t){(function(r){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==r?r:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}).call(t,function(){return this}())}])});</script>
<script>!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){(function(n){var i;t=e.exports=d,i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var o=Number.MAX_SAFE_INTEGER||9007199254740991,r=t.re=[],s=t.src=[],a=t.tokens={},l=0;function c(e){a[e]=l++}c("NUMERICIDENTIFIER"),s[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),s[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),s[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),s[a.MAINVERSION]="("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),s[a.MAINVERSIONLOOSE]="("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),s[a.PRERELEASEIDENTIFIER]="(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),s[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),s[a.PRERELEASE]="(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),s[a.PRERELEASELOOSE]="(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),s[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),s[a.BUILD]="(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),s[a.FULLPLAIN]="v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?",s[a.FULL]="^"+s[a.FULLPLAIN]+"$",c("LOOSEPLAIN"),s[a.LOOSEPLAIN]="[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?",c("LOOSE"),s[a.LOOSE]="^"+s[a.LOOSEPLAIN]+"$",c("GTLT"),s[a.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),s[a.XRANGEIDENTIFIERLOOSE]=s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),s[a.XRANGEIDENTIFIER]=s[a.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),s[a.XRANGEPLAIN]="[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),s[a.XRANGEPLAINLOOSE]="[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGE"),s[a.XRANGE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$",c("XRANGELOOSE"),s[a.XRANGELOOSE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$",c("COERCE"),s[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),r[a.COERCERTL]=new RegExp(s[a.COERCE],"g"),c("LONETILDE"),s[a.LONETILDE]="(?:~>?)",c("TILDETRIM"),s[a.TILDETRIM]="(\\s*)"+s[a.LONETILDE]+"\\s+",r[a.TILDETRIM]=new RegExp(s[a.TILDETRIM],"g");c("TILDE"),s[a.TILDE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$",c("TILDELOOSE"),s[a.TILDELOOSE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$",c("LONECARET"),s[a.LONECARET]="(?:\\^)",c("CARETTRIM"),s[a.CARETTRIM]="(\\s*)"+s[a.LONECARET]+"\\s+",r[a.CARETTRIM]=new RegExp(s[a.CARETTRIM],"g");c("CARET"),s[a.CARET]="^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$",c("CARETLOOSE"),s[a.CARETLOOSE]="^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),s[a.COMPARATORLOOSE]="^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),s[a.COMPARATOR]="^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),s[a.COMPARATORTRIM]="(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",r[a.COMPARATORTRIM]=new RegExp(s[a.COMPARATORTRIM],"g");c("HYPHENRANGE"),s[a.HYPHENRANGE]="^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),s[a.HYPHENRANGELOOSE]="^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),s[a.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)i(u,s[u]),r[u]||(r[u]=new RegExp(s[u]));function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?r[a.LOOSE]:r[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);i("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?r[a.LOOSE]:r[a.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=h,t.valid=function(e,t){var n=h(e,t);return n?n.version:null},t.clean=function(e,t){var n=h(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return i("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],o=e.prerelease[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return f(n,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var n=this.build[t],o=e.build[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return f(n,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new d(e,n).inc(t,i).version}catch(e){return null}},t.diff=function(e,t){if(g(e,t))return null;var n=h(e),i=h(t),o="";if(n.prerelease.length||i.prerelease.length){o="pre";var r="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==i[s])return o+s;return r},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),i=p.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1}function v(e,t,n){return new d(e,n).compare(new d(t,n))}function y(e,t,n){return v(e,t,n)>0}function m(e,t,n){return v(e,t,n)<0}function g(e,t,n){return 0===v(e,t,n)}function b(e,t,n){return 0!==v(e,t,n)}function w(e,t,n){return v(e,t,n)>=0}function E(e,t,n){return v(e,t,n)<=0}function T(e,t,n,i){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return g(e,n,i);case"!=":return b(e,n,i);case">":return y(e,n,i);case">=":return w(e,n,i);case"<":return m(e,n,i);case"<=":return E(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof O))return new O(e,t);i("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=v,t.compareLoose=function(e,t){return v(e,t,!0)},t.compareBuild=function(e,t,n){var i=new d(e,n),o=new d(t,n);return i.compare(o)||i.compareBuild(o)},t.rcompare=function(e,t,n){return v(t,e,n)},t.sort=function(e,n){return e.sort((function(e,i){return t.compareBuild(e,i,n)}))},t.rsort=function(e,n){return e.sort((function(e,i){return t.compareBuild(i,e,n)}))},t.gt=y,t.lt=m,t.eq=g,t.neq=b,t.gte=w,t.lte=E,t.cmp=T,t.Comparator=O;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof O)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function D(e,t){for(var n=!0,i=e.slice(),o=i.pop();n&&i.length;)n=i.every((function(e){return o.intersects(e,t)})),o=i.pop();return n}function S(e){return!e||"x"===e.toLowerCase()||"*"===e}function I(e,t,n,i,o,r,s,a,l,c,u,h,d){return((t=S(n)?"":S(i)?">="+n+".0.0":S(o)?">="+n+"."+i+".0":">="+t)+" "+(a=S(l)?"":S(c)?"<"+(+l+1)+".0.0":S(u)?"<"+l+"."+(+c+1)+".0":h?"<="+l+"."+c+"."+u+"-"+h:"<="+a)).trim()}function A(e,t,n){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(o=0;o<e.length;o++)if(i(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var r=e[o].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function B(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function x(e,t,n,i){var o,r,s,a,l;switch(e=new d(e,i),t=new k(t,i),n){case">":o=y,r=E,s=m,a=">",l=">=";break;case"<":o=m,r=w,s=y,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(B(e,t,i))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],h=null,p=null;if(u.forEach((function(e){e.semver===C&&(e=new O(">=0.0.0")),h=h||e,p=p||e,o(e.semver,h.semver,i)?h=e:s(e.semver,p.semver,i)&&(p=e)})),h.operator===a||h.operator===l)return!1;if((!p.operator||p.operator===a)&&r(e,p.semver))return!1;if(p.operator===l&&s(e,p.semver))return!1}return!0}O.prototype.parse=function(e){var t=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},O.prototype.toString=function(){return this.value},O.prototype.test=function(e){if(i("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return T(e,this.operator,this.semver,this.options)},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),B(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),B(e.semver,n,t));var i=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),r=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return i||o||r&&s||a||l},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?r[a.HYPHENRANGELOOSE]:r[a.HYPHENRANGE];e=e.replace(n,I),i("hyphen replace",e),e=e.replace(r[a.COMPARATORTRIM],"$1$2$3"),i("comparator trim",e,r[a.COMPARATORTRIM]),e=(e=(e=e.replace(r[a.TILDETRIM],"$1~")).replace(r[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return i("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){i("caret",e,t);var n=t.loose?r[a.CARETLOOSE]:r[a.CARET];return e.replace(n,(function(t,n,o,r,s){var a;return i("caret",e,t,n,o,r,s),S(n)?a="":S(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":S(r)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(i("replaceCaret pr",s),a="0"===n?"0"===o?">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+o+"."+(+r+1):">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+r+"-"+s+" <"+(+n+1)+".0.0"):(i("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+r+" <"+n+"."+o+"."+(+r+1):">="+n+"."+o+"."+r+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+r+" <"+(+n+1)+".0.0"),i("caret return",a),a}))}(e,t)})).join(" ")}(e,t),i("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?r[a.TILDELOOSE]:r[a.TILDE];return e.replace(n,(function(t,n,o,r,s){var a;return i("tilde",e,t,n,o,r,s),S(n)?a="":S(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":S(r)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(i("replaceTilde pr",s),a=">="+n+"."+o+"."+r+"-"+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+r+" <"+n+"."+(+o+1)+".0",i("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),i("tildes",e),e=function(e,t){return i("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?r[a.XRANGELOOSE]:r[a.XRANGE];return e.replace(n,(function(n,o,r,s,a,l){i("xRange",e,n,o,r,s,a,l);var c=S(r),u=c||S(s),h=u||S(a),d=h;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?n=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(s=0),a=0,">"===o?(o=">=",u?(r=+r+1,s=0,a=0):(s=+s+1,a=0)):"<="===o&&(o="<",u?r=+r+1:s=+s+1),n=o+r+"."+s+"."+a+l):u?n=">="+r+".0.0"+l+" <"+(+r+1)+".0.0"+l:h&&(n=">="+r+"."+s+".0"+l+" <"+r+"."+(+s+1)+".0"+l),i("xRange return",n),n}))}(e,t)})).join(" ")}(e,t),i("xrange",e),e=function(e,t){return i("replaceStars",e,t),e.trim().replace(r[a.STAR],"")}(e,t),i("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new O(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return D(n,t)&&e.set.some((function(e){return D(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1},t.satisfies=B,t.maxSatisfying=function(e,t,n){var i=null,o=null;try{var r=new k(t,n)}catch(e){return null}return e.forEach((function(e){r.test(e)&&(i&&-1!==o.compare(e)||(o=new d(i=e,n)))})),i},t.minSatisfying=function(e,t,n){var i=null,o=null;try{var r=new k(t,n)}catch(e){return null}return e.forEach((function(e){r.test(e)&&(i&&1!==o.compare(e)||(o=new d(i=e,n)))})),i},t.minVersion=function(e,t){e=new k(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var i=0;i<e.set.length;++i){e.set[i].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return x(e,t,"<",n)},t.gtr=function(e,t,n){return x(e,t,">",n)},t.outside=x,t.prerelease=function(e,t){var n=h(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var i;(i=r[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r[a.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;r[a.COERCERTL].lastIndex=-1}else n=e.match(r[a.COERCE]);if(null===n)return null;return h(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}).call(this,n(11))},function(e,t,n){var i;
/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */!function(o,r,s,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(E(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function m(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])}return t}:Object.assign;var g=m((function(e,t,n){for(var i=Object.keys(t),o=0;o<i.length;)(!n||n&&void 0===e[i[o]])&&(e[i[o]]=t[i[o]]),o++;return e}),"extend","Use `assign`."),b=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&l(i,n)}function E(e,t){return function(){return e.apply(t,arguments)}}function T(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function O(e,t){return void 0===e?t:e}function C(e,t,n){y(I(t),(function(t){e.addEventListener(t,n,!1)}))}function k(e,t,n){y(I(t),(function(t){e.removeEventListener(t,n,!1)}))}function D(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return e.indexOf(t)>-1}function I(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function B(e){return Array.prototype.slice.call(e,0)}function x(e,t,n){for(var i=[],o=[],r=0;r<e.length;){var s=t?e[r][t]:e[r];A(o,s)<0&&i.push(e[r]),o[r]=s,r++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function P(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),r=0;r<c.length;){if((i=(n=c[r])?n+o:t)in e)return i;r++}}var R=1;function _(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var V="ontouchstart"in o,L=void 0!==P(o,"PointerEvent"),N=V&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M=["x","y"],j=["clientX","clientY"];function z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){T(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var i=n.pointers.length,o=n.changedPointers.length,r=1&t&&i-o==0,s=12&t&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,o=i.length;n.firstInput||(n.firstInput=H(t));o>1&&!n.firstMultiple?n.firstMultiple=H(t):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=t.center=F(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=W(a,l),t.distance=q(a,l),function(e,t){var n=t.center,i=e.offsetDelta||{},o=e.prevDelta||{},r=e.prevInput||{};1!==t.eventType&&4!==r.eventType||(o=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-i.x),t.deltaY=o.y+(n.y-i.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var c=X(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=d(c.x)>d(c.y)?c.x:c.y,t.scale=s?(u=s.pointers,h=i,q(h[0],h[1],j)/q(u[0],u[1],j)):1,t.rotation=s?function(e,t){return W(t[1],t[0],j)+W(e[1],e[0],j)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,r,s=e.lastInterval||t,a=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(a>25||void 0===s.velocity)){var l=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,u=X(a,l,c);i=u.x,o=u.y,n=d(u.x)>d(u.y)?u.x:u.y,r=Y(l,c),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,r=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=r}(n,t);var u,h;var f=e.element;D(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function H(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:F(t),deltaX:e.deltaX,deltaY:e.deltaY}}function F(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,i=0,o=0;o<t;)n+=e[o].clientX,i+=e[o].clientY,o++;return{x:h(n/t),y:h(i/t)}}function X(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function q(e,t,n){n||(n=M);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(i*i+o*o)}function W(e,t,n){n||(n=M);var i=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,i)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(_(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,z.apply(this,arguments)}w(K,z,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var $={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},J="pointerdown",Q="pointermove pointerup pointercancel";function ee(){this.evEl=J,this.evWin=Q,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(J="MSPointerDown",Q="MSPointerMove MSPointerUp MSPointerCancel"),w(ee,z,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),o=$[i],r=Z[e.pointerType]||e.pointerType,s="touch"==r,a=A(t,e.pointerId,"pointerId");1&o&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):12&o&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(a,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,z.apply(this,arguments)}function ie(e,t){var n=B(e.touches),i=B(e.changedTouches);return 12&t&&(n=x(n.concat(i),"identifier",!0)),[n,i]}w(ne,z,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=ie.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function re(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},z.apply(this,arguments)}function se(e,t){var n=B(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=B(e.changedTouches),a=[],l=this.target;if(r=n.filter((function(e){return D(e.target,l)})),1===t)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),12&t&&delete i[s[o].identifier],o++;return a.length?[x(r.concat(a),"identifier",!0),a]:void 0}w(re,z,{handler:function(e){var t=oe[e.type],n=se.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ae(){z.apply(this,arguments);var e=E(this.handler,this);this.touch=new re(this.manager,e),this.mouse=new K(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(t-o.x),s=Math.abs(n-o.y);if(r<=25&&s<=25)return!0}return!1}w(ae,z,{handler:function(e,t,n){var i="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)le.call(this,t,n);else if(o&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=P(u.style,"touchAction"),de=void 0!==he,pe=function(){if(!de)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function fe(e,t){this.manager=e,this.set(t)}fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&pe[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return y(this.manager.recognizers,(function(t){T(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(S(e,"none"))return"none";var t=S(e,"pan-x"),n=S(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(S(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,o=S(i,"none")&&!pe.none,r=S(i,"pan-y")&&!pe["pan-y"],s=S(i,"pan-x")&&!pe["pan-x"];if(o){var a=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(a&&l&&c)return}if(!s||!r)return o||r&&6&n||s&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function ve(e){this.options=l({},this.defaults,e||{}),this.id=R++,this.manager=null,this.options.enable=O(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ye(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function me(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ge(e,t){var n=t.manager;return n?n.get(e):e}function be(){ve.apply(this,arguments)}function we(){be.apply(this,arguments),this.pX=null,this.pY=null}function Ee(){be.apply(this,arguments)}function Te(){ve.apply(this,arguments),this._timer=null,this._input=null}function Oe(){be.apply(this,arguments)}function Ce(){be.apply(this,arguments)}function ke(){ve.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function De(e,t){return(t=t||{}).recognizers=O(t.recognizers,De.defaults.preset),new Se(e,t)}ve.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ge(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=ge(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=ge(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=ge(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+ye(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+ye(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!T(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(be,ve,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,o=this.attrTest(e);return i&&(8&n||!o)?16|t:i||o?4&n?8|t:2&t?4|t:2:32}}),w(we,be,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,o=e.direction,r=e.deltaX,s=e.deltaY;return o&t.direction||(6&t.direction?(o=0===r?1:r<0?2:4,n=r!=this.pX,i=Math.abs(e.deltaX)):(o=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=o,n&&i>t.threshold&&o&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=me(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ee,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Te,ve,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(Oe,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ce,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return we.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=me(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(ke,ve,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&o&&n){if(4!=e.eventType)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||q(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&r?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),De.VERSION="2.0.7",De.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Oe,{enable:!1}],[Ee,{enable:!1},["rotate"]],[Ce,{direction:6}],[we,{direction:6},["swipe"]],[ke],[ke,{event:"doubletap",taps:2},["tap"]],[Te]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Se(e,t){var n;this.options=l({},De.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(L?ee:N?re:V?ae:K))(n,U),this.touchAction=new fe(this,this.options.touchAction),Ie(this,!0),y(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ie(e,t){var n,i=e.element;i.style&&(y(e.options.cssProps,(function(o,r){n=P(i.style,r),t?(e.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Se.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),r++}},get:function(e){if(e instanceof ve)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return y(I(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return y(I(e),(function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=r.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&Ie(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(De,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Se,Input:z,TouchAction:fe,TouchInput:re,MouseInput:K,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:ve,AttrRecognizer:be,Tap:ke,Pan:we,Swipe:Ce,Pinch:Ee,Rotate:Oe,Press:Te,on:C,off:k,each:y,merge:b,extend:g,assign:l,inherit:w,bindFn:E,prefixed:P}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=De,void 0===(i=function(){return De}.call(t,n,t,e))||(e.exports=i)}(window,document)},function(e,t,n){!function(e){"use strict";function t(e,t,n){if(t){if("string"==typeof e&&(e=document.querySelector(e)),document.createEvent){var i=document.createEvent("Events");i.initEvent(t,!0,!1),i.data=n,e.dispatchEvent(i)}}else console.error("No event was provided. You do need to provide one.")}window.navigator.pointerEnabled?(e.eventStart="pointerdown",e.eventEnd="pointerup",e.eventMove="pointermove",e.eventCancel="pointercancel"):window.navigator.msPointerEnabled?(e.eventStart="MSPointerDown",e.eventEnd="MSPointerUp",e.eventMove="MSPointerMove",e.eventCancel="MSPointerCancel"):"ontouchstart"in window?(e.eventStart="touchstart",e.eventEnd="touchend",e.eventMove="touchmove",e.eventCancel="touchcancel"):(e.eventStart="mousedown",e.eventEnd="mouseup",e.eventMove="mousemove",e.eventCancel="mouseout"),e.trigger=t,e.gestures=function(){var n,i,o,r,s,a,l,c={},u=150;function h(e){return"tagName"in e?e:e.parentNode}function d(){if(r=null,c.last)try{c&&c.el&&(t(c.el,"longtap"),c={})}catch(e){}}function p(){r&&clearTimeout(r),r=null}function f(){n&&clearTimeout(n),o&&clearTimeout(o),i&&clearTimeout(i),r&&clearTimeout(r),n=o=i=r=null,c={}}/android/gim.test(navigator.userAgent)&&(u=200),(l=document.body).addEventListener(e.eventStart,(function(t){if(s=Date.now(),a=s-(c.last||s),"touchstart"!==e.eventStart)c.el=h(t.target),"ripple"===t.target.nodeName&&(c.el=t.target.parentNode),n&&clearTimeout(n),c.x1=t.pageX,c.y1=t.pageY;else if(1===t.touches.length){if(t.target.disabled)return;c.el=h(t.touches[0].target),n&&clearTimeout(n),c.x1=t.touches[0].pageX,c.y1=t.touches[0].pageY}0<a&&a<=450&&(c.isDoubleTap=!0),c.last=s,r=setTimeout(d,750)})),l.addEventListener(e.eventMove,(function(t){p(),"touchmove"!==e.eventMove?(c.x2=t.pageX,c.y2=t.pageY):1===t.touches.length?(c.x2=t.touches[0].pageX,c.y2=t.touches[0].pageY,c.move=!0):t.touches.length})),l.addEventListener(e.eventEnd,(function(e){p(),c.el&&(c.x2&&20<Math.abs(c.x1-c.x2)||c.y2&&20<Math.abs(c.y1-c.y2)?i=setTimeout((function(){if(c&&c.el){var e=(n=c.x1,i=c.x2,o=c.y1,r=c.y2,Math.abs(n-i)>=Math.abs(o-r)?0<n-i?"left":"right":0<o-r?"up":"down");t(c.el,"swipe",e),t(c.el,"swipe"+e),c={}}var n,i,o,r}),0):"last"in c&&(o=setTimeout((function(){c&&c.isDoubleTap?c&&c.el&&(t(c.el,"dbltap"),e.preventDefault(),c={}):n=setTimeout((function(){n=null,c&&c.el&&!c.move?(t(c.el,"tap"),c={}):f()}),u)}),0)))})),l.addEventListener("touchcancel",f)},e.disableTextSelection=function(e,t){if(e){t&&"string"==typeof e?Array.prototype.slice.call(document.querySelectorAll(e)).map((function(e){e.classList.add("disable-user-select")})):"string"==typeof e&&(e=document.querySelector(e)).classList.add("disable-user-select");var n=document.head.querySelector(".disable-user-select");n||((n=document.createElement("style")).className="disable-user-select",n.innerHTML=".disable-user-select, .disable-user-select * { user-select: none; -webkit-user-select: none; -ms-user-select: none; }",document.head.appendChild(n))}},e.enableTextSelection=function(e,t){if(t&&"string"==typeof e)Array.prototype.slice.call(document.querySelectorAll(e)).map((function(e){e.classList.remove("disable-user-select")}));else{if("string"==typeof e&&(e=document.querySelector(e)),!e)return;e.classList.remove("disable-user-select")}}}(t)},function(e,t,n){var i;!function(){"use strict";
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/function o(e,t){var n;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!o.notNeeded(e)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=0,a=i.length;r<a;r++)this[i[r]]=l(this[i[r]],this);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var o=Node.prototype.removeEventListener;"click"===t?o.call(e,t,n.hijacked||n,i):o.call(e,t,n,i)},e.addEventListener=function(t,n,i){var o=Node.prototype.addEventListener;"click"===t?o.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):o.call(e,t,n,i)}),"function"==typeof e.onclick&&(n=e.onclick,e.addEventListener("click",(function(e){n(e)}),!1),e.onclick=null)}function l(e,t){return function(){return e.apply(t,arguments)}}}var r=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!r,a=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,l=a&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=a&&/OS [6-7]_\d/.test(navigator.userAgent),u=navigator.userAgent.indexOf("BB10")>0;o.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(a&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},o.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},o.prototype.sendClick=function(e,t){var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},o.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},o.prototype.focus=function(e){var t;a&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},o.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},o.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:window.SVGElementInstance&&e instanceof SVGElementInstance?e.correspondingUseElement:e},o.prototype.onTouchStart=function(e){var t,n,i;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],a){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!l){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},o.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},o.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},o.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},o.prototype.onTouchEnd=function(e){var t,n,i,o,r,u=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(r=e.changedTouches[0],(u=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||u).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=u.tagName.toLowerCase())){if(t=this.findControl(u)){if(this.focus(u),s)return!1;u=t}}else if(this.needsFocus(u))return e.timeStamp-n>100||a&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,e),a&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!a||l||!(o=u.fastClickScrollParent)||o.fastClickLastScrollTop===o.scrollTop)||(this.needsClick(u)||(e.preventDefault(),this.sendClick(u,e)),!1)},o.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},o.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},o.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},o.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},o.notNeeded=function(e){var t,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if((t=document.querySelector("meta[name=viewport]"))&&n>31)return!0}if(u&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},o.attach=function(e,t){return new o(e,t)},void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.PrivacyIcons=window.vungle.templates.PrivacyIcons||{},window.vungle.templates.PrivacyIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="privacy-icons" style="display: none;" data-hbs-name="PrivacyIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="lock-icon" class="'+e.escapeExpression("function"==typeof(n=null!=(n=r(n,"THEME")||(null!=t?r(t,"THEME"):t))?n:e.hooks.helperMissing)?n.call(null!=t?t:e.nullContext||{},{name:"THEME",hash:{},data:o,loc:{start:{line:5,column:36},end:{line:5,column:45}}}):n)+'" viewBox="0 0 390 390" style="enable-background:new 0 0 390 390;" xml:space="preserve">\n <title>lock-icon</title>\n <path class="st1" d="M195,369.5C50.8,317.6,53,198.4,54.8,102.5c0.2-9.2,0.3-17.9,0.4-26.5c57.6-0.7,102.2-18,139.8-54.3\n C232.5,58,277.1,75.3,334.8,76c0,8.5,0.2,17.3,0.4,26.5C337,198.4,339.2,317.6,195,369.5z M177.8,289.4h34.4l0.9-2.3\n l60.7-166.8h-36.9L195,235.1l-41.8-114.8h-37L177.8,289.4z"/>\n </symbol>\n\n <symbol id="privacy-icon" viewBox="0 0 194.818 194.818" style="enable-background:new 0 0 194.818 194.818;" xml:space="preserve">\n <title>privacy-icon</title>\n <style>\n .external-path {\n fill: #909090;\n }\n </style>\n <path class="external-path" d="M185.818,2.161h-57.04c-4.971,0-9,4.029-9,9s4.029,9,9,9h35.312l-86.3,86.3c-3.515,3.515-3.515,9.213,0,12.728\n c1.758,1.757,4.061,2.636,6.364,2.636s4.606-0.879,6.364-2.636l86.3-86.3v35.313c0,4.971,4.029,9,9,9s9-4.029,9-9v-57.04\n C194.818,6.19,190.789,2.161,185.818,2.161z"/>\n <path class="external-path" d="M149,77.201c-4.971,0-9,4.029-9,9v88.456H18v-122h93.778c4.971,0,9-4.029,9-9s-4.029-9-9-9H9c-4.971,0-9,4.029-9,9v140\n c0,4.971,4.029,9,9,9h140c4.971,0,9-4.029,9-9V86.201C158,81.23,153.971,77.201,149,77.201z"/>\n </symbol>\n\n <symbol id="privacy-close-icon" viewBox="0 0 552 551" enable-background="new 0 0 552 551" xml:space="preserve">\n <title>privacy-close-icon</title>\n <path fill="#FFFFFF" d="M468.9,81.3c53.8,53.4,80.7,118,80.7,193.6c0,75.6-26.7,140.1-80.1,193.6c-53.4,53.4-118,80.1-193.6,80.1\n c-75.6,0-140.1-26.7-193.6-80.1S2.2,350.5,2.2,274.8c0-75.6,26.7-140.1,80.1-193.6C135.8,27.9,200.3,1.2,275.9,1.2\n C350.7,1.2,415.1,27.9,468.9,81.3z M510.3,274.8c0-64.7-22.9-120.1-68.7-166.3c-45.8-46.2-101.1-69.2-165.7-69.2\n c-64.7,0-120.1,23.1-166.3,69.2c-46.2,46.2-69.2,101.6-69.2,166.3c0,64.7,23.1,120.1,69.2,166.3c46.2,46.2,101.6,69.2,166.3,69.2\n c64.7,0,119.9-23.1,165.7-69.2C487.4,395,510.3,339.6,510.3,274.8z M416.5,161.4L303.1,274.8l113.4,113.4l-27.3,27.3L275.9,302.1\n L161.4,415.5l-27.3-27.3l114.5-113.4L134.1,161.4l27.3-27.3l114.5,113.4l113.4-113.4L416.5,161.4z"/>\n </symbol>\n\n <symbol id="lock-icon-2" viewBox="0 0 380.9 390" style="enable-background:new 0 0 380.9 390;" xml:space="preserve" xml:space="preserve">\n <title>lock-icon-2</title>\n <style type="text/css">\n\t .st0-lock-icon-2{\n fill:#3C2869;\n }\n </style>\n\t\t\t<path class="st0-lock-icon-2" d="M161.8,160.4c-25.2,0-45.8,20.6-45.8,45.8s20.6,45.8,45.8,45.8s45.8-20.6,45.8-45.8S187,160.4,161.8,160.4"\n\t\t\t\t/>\n\t\t\t<polygon class="st0-lock-icon-2" points="184.7,389.2 310.5,46.1 379.2,46.1 253.3,389.2 \t\t\t"/>\n\t\t\t<polygon class="st0-lock-icon-2" points="93.2,343.5 116.1,343.5 138.9,343.5 138.9,322.9 138.9,297.7 116.1,297.7 93.2,297.7 93.2,316\n\t\t\t\t"/>\n\t\t\t<polygon class="st0-lock-icon-2" points="161.8,68.9 129.8,68.9 93.2,68.9 93.2,34.6 93.2,0.3 81.7,0.3 70.3,0.3 70.3,36.9 70.3,68.9\n\t\t\t\t38.3,68.9 1.7,68.9 1.7,80.4 1.7,91.8 38.3,91.8 70.3,91.8 70.3,128.4 70.3,160.4 79.5,160.4 93.2,160.4 93.2,126.1 93.2,91.8\n\t\t\t\t127.5,91.8 161.8,91.8 161.8,80.4"/>\n </symbol>\n\n <symbol id="lock-text" viewBox="0 0 1319.7 390" style="enable-background:new 0 0 1319.7 390;" xml:space="preserve" xml:space="preserve">\n <title>lock-text</title>\n <style type="text/css">\n .st0-lock-text {\n fill:#3C2869;\n }\n .st1-lock-text {\n opacity:0.5;\n }\n </style>\n\t\t\t<path class="st0-lock-text" d="M687.5,201.3v52.2h-27.2V108.2h59c31.8,0,45.4,13.6,45.4,45.4S746.5,199,719.2,199h-31.8\n\t\t\t\tC687.5,199,687.5,201.3,687.5,201.3z M721.5,178.6c9.1,0,13.6-4.5,13.6-13.6v-20.4c0-9.1-4.5-13.6-13.6-13.6h-34.1v45.4h34.1\n\t\t\t\tC721.5,176.3,721.5,178.6,721.5,178.6z"/>\n\t\t\t<polygon class="st0-lock-text" points="780.6,144.5 841.9,144.5 841.9,165 807.8,165 807.8,253.5 780.6,253.5"/>\n\t\t\t<path class="st0-lock-text" d="M882.7,130.9h-27.2v-22.7h27.2V130.9z M855.5,144.5h27.2v109h-27.2V144.5z"/>\n\t\t\t<polygon class="st0-lock-text" points="946.3,224 971.3,144.5 1000.8,144.5 962.2,253.5 932.7,253.5 894.1,144.5 923.6,144.5"/>\n\t\t\t<path class="st0-lock-text" d="M1064.4,178.6c0-11.4-6.8-15.9-18.2-15.9c-11.4,0-18.2,4.5-18.2,15.9h-27.2c0-22.7,20.4-36.3,45.4-36.3\n\t\t\t\ts43.1,13.6,43.1,36.3v54.5h18.2v20.4h-43.1v-15.9l0,0c-6.8,11.4-15.9,20.4-31.8,20.4c-20.4,0-34.1-13.6-34.1-34.1\n\t\t\t\tc0-18.2,13.6-31.8,36.3-34.1l29.5-2.3C1064.4,187.7,1064.4,178.6,1064.4,178.6z M1064.4,210.4v-4.5l-31.8,2.3\n\t\t\t\tc-4.5,0-6.8,2.3-6.8,6.8v9.1c0,6.8,6.8,9.1,15.9,9.1C1057.6,235.3,1064.4,224,1064.4,210.4"/>\n\t\t\t<path class="st0-lock-text" d="M1164.3,142.2c22.7,0,43.1,11.4,45.4,38.6h-27.2c-2.3-13.6-9.1-18.2-20.4-18.2c-11.4,0-20.4,6.8-20.4,20.4\n\t\t\t\tv29.5c0,13.6,9.1,20.4,20.4,20.4c11.4,0,18.2-4.5,20.4-20.4h27.2c-2.3,27.2-22.7,40.9-45.4,40.9c-31.8,0-50-22.7-50-56.8\n\t\t\t\tS1132.5,142.2,1164.3,142.2"/>\n\t\t\t<polygon class="st0-lock-text" points="1266.5,221.7 1289.2,144.5 1318.7,144.5 1266.5,289.8 1218.8,289.8 1218.8,269.4 1246,269.4\n\t\t\t\t1250.6,253.5 1212,144.5 1241.5,144.5 1264.2,221.7 \t\t\t"/>\n <polygon class="st1-lock-text st0-lock-text" points="26.7,108.2 78.9,251.2 78.9,251.2 53.9,251.2 53.9,251.2 1.7,108.2"/>\n\t\t\t<polygon class="st0-lock-text" points="106.2,108.2 53.9,251.2 53.9,251.2 78.9,251.2 78.9,251.2 133.4,108.2"/>\n\t\t\t<path class="st0-lock-text" d="M385.5,233.1c-25,0-31.8-2.3-31.8-4.5s2.3-4.5,11.4-4.5c0,0,9.1,0,15.9,0c25,0,40.9-18.2,40.9-40.9l0,0l0,0\n\t\t\t\tc0-6.8-2.3-13.6-4.5-20.4h13.6v-18.2h-52.2l0,0l0,0c-22.7,0-43.1,13.6-43.1,38.6l0,0l0,0c0,11.4,4.5,31.8,22.7,31.8\n\t\t\t\tc-9.1,0-22.7,2.3-25,11.4c-2.3,13.6,6.8,18.2,25,22.7h-15.9c0,0-9.1,4.5-9.1,18.2c0,25,22.7,31.8,50,31.8c22.7,0,50-6.8,50-34.1\n\t\t\t\tC433.1,242.2,415,233.1,385.5,233.1 M360.5,178.6c0-9.1,6.8-15.9,15.9-15.9h6.8c11.4,0,15.9,6.8,15.9,15.9v6.8\n\t\t\t\tc0,13.6-6.8,18.2-15.9,18.2h-6.8c-9.1,0-15.9-6.8-15.9-18.2C360.5,185.4,360.5,178.6,360.5,178.6z M380.9,280.8\n\t\t\t\tc-9.1,0-27.2-2.3-27.2-13.6s9.1-13.6,9.1-13.6h22.7c11.4,0,25,0,25,13.6C410.4,280.8,392.3,280.8,380.9,280.8"/>\n\t\t\t<path class="st0-lock-text" d="M469.5,108.2h-25v113.5c0,22.7,9.1,31.8,29.5,31.8h13.6v-22.7h-18.2V108.2z"/>\n\t\t\t<path class="st0-lock-text" d="M519.4,205.8L519.4,205.8h65.8v-11.4c0-6.8,0-13.6-2.3-20.4c-2.3-6.8-4.5-11.4-9.1-15.9\n\t\t\t\tc-4.5-4.5-9.1-9.1-13.6-11.4c-6.8-2.3-13.6-4.5-20.4-4.5c-6.8,0-13.6,2.3-20.4,4.5c-6.8,2.3-11.4,6.8-13.6,11.4\n\t\t\t\tc-4.5,4.5-6.8,11.4-9.1,18.2c-2.3,6.8-2.3,13.6-2.3,22.7c0,9.1,0,15.9,2.3,22.7c2.3,6.8,4.5,13.6,9.1,18.2\n\t\t\t\tc4.5,4.5,9.1,9.1,13.6,11.4c6.8,2.3,13.6,4.5,20.4,4.5c6.8,0,11.4,0,15.9-2.3c4.5-2.3,9.1-4.5,13.6-6.8\n\t\t\t\tc4.5-2.3,6.8-6.8,11.4-11.4c2.3-4.5,4.5-9.1,4.5-15.9h-22.7c0,6.8-2.3,9.1-6.8,13.6c-4.5,0-9.1,2.3-11.4,2.3s-9.1,0-11.4-2.3\n\t\t\t\tc-2.3,0-4.5-2.3-6.8-4.5c-2.3-2.3-4.5-4.5-4.5-6.8c-2.3-2.3-2.3-4.5-2.3-9.1v-4.5C519.4,208.1,519.4,205.8,519.4,205.8z\n\t\t\t\t M519.4,180.8c0-11.4,9.1-18.2,18.2-18.2h6.8c11.4,0,18.2,9.1,18.2,18.2v6.8h-43.1C519.4,187.7,519.4,180.8,519.4,180.8z"/>\n\t\t\t<path class="st0-lock-text" d="M162.9,255.8c18.2,0,31.8-11.4,31.8-31.8v29.5h22.7V146.8h-25v70.4c0,9.1-6.8,15.9-15.9,15.9h-6.8\n\t\t\t\tc-9.1,0-15.9-6.8-15.9-15.9v-70.4h-25v70.4C126.6,239.9,140.2,255.8,162.9,255.8"/>\n\t\t\t<path class="st0-lock-text" d="M287.8,144.5c-18.2,0-31.8,11.4-31.8,31.8v-29.5h-22.7v104.5h25v-68.1c0-9.1,6.8-15.9,15.9-15.9h6.8\n\t\t\t\tc9.1,0,15.9,6.8,15.9,15.9v70.4h25v-70.4C321.9,160.4,308.3,144.5,287.8,144.5"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.DownloadIcons=window.vungle.templates.DownloadIcons||{},window.vungle.templates.DownloadIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="download-icons" style="display: none;" data-hbs-name="DownloadIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="cta-icon-down" viewBox="0 0 129 129" enable-background="new 0 0 129 129">\n <title>cta-icon-down</title>\n <path class="fill" d="m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z"/>\n </symbol>\n\n <symbol id="cta-icon-download" viewBox="0 0 471.2 471.2" style="enable-background:new 0 0 471.2 471.2;" xml:space="preserve">\n <title>cta-icon-download</title>\n <style type="text/css">\n .svg-cta {\n fill: #fff;\n }\n </style>\n <path class="svg-cta" d="M457.7,230.15c-7.5,0-13.5,6-13.5,13.5v122.8c0,33.4-27.2,60.5-60.5,60.5H87.5c-33.4,0-60.5-27.2-60.5-60.5v-124.8\t\t\tc0-7.5-6-13.5-13.5-13.5s-13.5,6-13.5,13.5v124.8c0,48.3,39.3,87.5,87.5,87.5h296.2c48.3,0,87.5-39.3,87.5-87.5v-122.8\t\t\tC471.2,236.25,465.2,230.15,457.7,230.15z"/>\n <path class="svg-cta" d="M226.1,346.75c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l85.8-85.8c5.3-5.3,5.3-13.8,0-19.1c-5.3-5.3-13.8-5.3-19.1,0l-62.7,62.8\t\t\tV30.75c0-7.5-6-13.5-13.5-13.5s-13.5,6-13.5,13.5v273.9l-62.8-62.8c-5.3-5.3-13.8-5.3-19.1,0c-5.3,5.3-5.3,13.8,0,19.1\t\t\tL226.1,346.75z"/>\n </symbol>\n\n <symbol id="cta-icon-download-square" viewBox="0 0 454 522" enable-background="new 0 0 454 522">\n <title>cta-icon-download-square</title>\n <style>\n .cls-01 {\n fill: #fff;\n stroke: #6C6C6C;\n stroke-width: 6;\n stroke-miterlimit: 10;\n }\n </style>\n <path class="cls-01" d="M190,354.2L34.7,198.8L72,161.5l128.7,128.7V6.5\n H254v283.7l128.7-128.7l37.3,37.3L264.7,354.2l-37.3,37.3L190,354.2z M448,391.4h-56v67H62.7v-67h-56v123.1H448V391.4L448,391.4z"/>\n </symbol>\n\n <symbol id="cta-icon-external" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">\n <title>cta-icon-external</title>\n <path d="M412.88,261.464c-11.423,0-20.682,9.259-20.682,20.682v156.879c0,17.43-14.181,31.611-31.612,31.611H72.975\t\t\tc-17.43,0-31.611-14.181-31.611-31.611V151.414c0-17.43,14.181-31.611,31.611-31.611h156.879c11.422,0,20.682-9.26,20.682-20.682\t\t\tc0-11.422-9.26-20.682-20.682-20.682H72.975C32.737,78.439,0,111.176,0,151.414v287.611C0,479.264,32.737,512,72.975,512h287.61\t\t\tc40.239,0,72.976-32.736,72.977-72.975V282.146C433.562,270.723,424.303,261.464,412.88,261.464z"/>\n <path d="M491.318,0H334.439c-11.423,0-20.682,9.26-20.682,20.682c0,11.422,9.259,20.682,20.682,20.682h136.197v136.197\t\t\tc0,11.422,9.259,20.682,20.682,20.682c11.423,0,20.682-9.26,20.682-20.682V20.682C512,9.26,502.741,0,491.318,0z"/>\n <path d="M505.942,6.058c-8.077-8.076-21.172-8.076-29.249,0L189.082,293.668c-8.077,8.077-8.077,21.172,0,29.249\t\t\tc4.038,4.039,9.332,6.058,14.625,6.058c5.294,0,10.587-2.02,14.625-6.058L505.942,35.307 C514.019,27.23,514.019,14.135,505.942,6.058z"/>\n </symbol>\n\n <symbol id="cta-icon-right" viewBox="0 0 32 32">\n <title>cta-icon-right</title>\n <path d="M10.022 30.090c-0.198 0.198-0.447 0.298-0.719 0.298s-0.521-0.099-0.719-0.298c-0.397-0.397-0.397-1.042 0-1.439l12.651-12.651-12.651-12.651c-0.397-0.397-0.397-1.042 0-1.439s1.042-0.397 1.439 0l13.371 13.371c0.397 0.397 0.397 1.042 0 1.439l-13.371 13.371z"></path>\n </symbol>\n\n <symbol id="cancel-download" viewBox="0 0 38 38" style="enable-background:new 0 0 37.1 38;" xml:space="preserve">\n <title>cancel-download</title>\n <style type="text/css">\n .cd0 { fill: #fff; }\n .cd1 { fill: #47adf5; }\n </style>\n <circle class="cd0" cx="18.5" cy="19" r="17"/>\n <path class="cd1" d="M26.2,11.4c-0.4-0.4-0.9-0.4-1.2,0l-6.4,6.4l-6.4-6.4c-0.4-0.4-0.9-0.4-1.2,0c-0.4,0.4-0.4,0.9,0,1.2l6.4,6.4\n l-6.4,6.4c-0.4,0.4-0.4,0.9,0,1.2c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.4-0.1,0.6-0.3l6.4-6.4l6.4,6.4c0.2,0.2,0.4,0.3,0.6,0.3\n s0.4-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.2L19.8,19l6.4-6.4C26.5,12.2,26.5,11.7,26.2,11.4z"/>\n <path class="cd1" d="M18.5,0.6C8.4,0.6,0.1,8.8,0.1,19s8.3,18.4,18.4,18.4S37,29.2,37,19S28.7,0.6,18.5,0.6z M18.5,35.7\n C9.3,35.7,1.9,28.2,1.9,19S9.3,2.3,18.5,2.3S35.2,9.8,35.2,19S27.8,35.7,18.5,35.7z"/>\n </symbol>\n\n <symbol id="cancel-install" viewBox="0 0 38 38" style="enable-background:new 0 0 37.1 38;" xml:space="preserve">\n <title>cancel-install</title>\n <style type="text/css">\n .ci0 { fill: #d2d2d2; }\n .cd1 { fill: #47adf5; }\n </style>\n <circle class="ci0" cx="18.5" cy="19" r="17"/>\n <path class="ci1" d="M26.2,11.4c-0.4-0.4-0.9-0.4-1.2,0l-6.4,6.4l-6.4-6.4c-0.4-0.4-0.9-0.4-1.2,0c-0.4,0.4-0.4,0.9,0,1.2l6.4,6.4\n l-6.4,6.4c-0.4,0.4-0.4,0.9,0,1.2c0.2,0.2,0.4,0.3,0.6,0.3c0.2,0,0.4-0.1,0.6-0.3l6.4-6.4l6.4,6.4c0.2,0.2,0.4,0.3,0.6,0.3\n s0.4-0.1,0.6-0.3c0.4-0.4,0.4-0.9,0-1.2L19.8,19l6.4-6.4C26.5,12.2,26.5,11.7,26.2,11.4z"/>\n <path class="ci1" d="M18.5,0.6C8.4,0.6,0.1,8.8,0.1,19s8.3,18.4,18.4,18.4S37,29.2,37,19S28.7,0.6,18.5,0.6z M18.5,35.7\n C9.3,35.7,1.9,28.2,1.9,19S9.3,2.3,18.5,2.3S35.2,9.8,35.2,19S27.8,35.7,18.5,35.7z"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.SoundIcons=window.vungle.templates.SoundIcons||{},window.vungle.templates.SoundIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="sound-icons" style="display: none;" data-hbs-name="SoundIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="mute-video" viewBox="0 0 500 500">\n <title>mute-video</title>\n <style>\n .st01{opacity:.8}\n .st11,.st21{fill:#fff}\n .st21{display:none}\n </style>\n <circle class="st01" cx="249.9" cy="249.9" r="247"/>\n <path class="st11" d="M418.9 195.8c-3.2-3.2-8.2-3.2-11.4 0l-45.6 45.6-45.6-45.6c-3.2-3.2-8.2-3.2-11.4 0-3.2 3.2-3.2 8.2 0 11.4l45.6 45.6-45.6 45.6c-3.2 3.2-3.2 8.2 0 11.4 1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3l45.6-45.6 45.6 45.6c1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3c3.2-3.2 3.2-8.2 0-11.4l-45.6-45.6 45.6-45.6c2.9-2.3 2.9-8.2-.8-11.4zM268.2 89.2c-2.3-1.7-6.8-.9-9.1.9l-106.7 79.5H95.2c-5 0-8.2 2.9-8.2 7.6v144c0 4.6 3.2 7.6 8.2 7.6h57.2l106.7 80c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.5c.9-1.7-.9-4.6-4.1-6.3zM148.2 314h-44.8V186.1h44.8V314zm108.5 72.9l-92.1-69v-136l91.7-69v274h.4z"/>\n <path class="st21" d="M268.5 89c-2.3-1.7-6.8-.9-9.2.9l-107 79.9H94.9c-5 0-8.2 3-8.2 7.7V322c0 4.6 3.2 7.7 8.2 7.7h57.4L259.4 410c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.3c1-1.7-.8-4.6-4.1-6.3zM148.2 314.6h-44.9V186.2h44.9v128.4zm108.9 73.1l-92.4-69.3V182l92-69.2v274.9h.4zm149-127.2h-90.5c-4.2 0-7.7-3.5-7.7-7.9s3.4-7.9 7.7-7.9h90.5c4.2 0 7.7 3.5 7.7 7.9s-3.4 7.9-7.7 7.9zm.9-94.6l-88.6 37.6c-3.9 1.6-8.4-.3-10-4.3-1.6-4 .3-8.6 4.1-10.2l88.6-37.6c3.9-1.6 8.4.3 10 4.3 1.6 3.9-.2 8.6-4.1 10.2zm4.7 182.9c-1.6 4-6.1 5.9-10 4.3l-88.6-37.6c-3.9-1.6-5.8-6.2-4.1-10.2 1.6-4 6.1-5.9 10-4.3l88.6 37.6c3.9 1.6 5.8 6.2 4.1 10.2z"/>\n </symbol>\n\n <symbol id="unmute-video" viewBox="0 0 500 500">\n <title>unmute-video</title>\n <style>\n .st01{opacity:.8}\n .st31{display:none}\n .st31,.st41{fill:#fff}\n </style>\n <circle class="st01" cx="249.9" cy="249.9" r="247"/>\n <path class="st31" d="M418.9 195.8c-3.2-3.2-8.2-3.2-11.4 0l-45.6 45.6-45.6-45.6c-3.2-3.2-8.2-3.2-11.4 0-3.2 3.2-3.2 8.2 0 11.4l45.6 45.6-45.6 45.6c-3.2 3.2-3.2 8.2 0 11.4 1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3l45.6-45.6 45.6 45.6c1.8 1.8 4.1 2.3 5.9 2.3s4.1-.9 5.9-2.3c3.2-3.2 3.2-8.2 0-11.4l-45.6-45.6 45.6-45.6c2.9-2.3 2.9-8.2-.8-11.4zM268.2 89.2c-2.3-1.7-6.8-.9-9.1.9l-106.7 79.5H95.2c-5 0-8.2 2.9-8.2 7.6v144c0 4.6 3.2 7.6 8.2 7.6h57.2l106.7 80c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.5c.9-1.7-.9-4.6-4.1-6.3zM148.2 314h-44.8V186.1h44.8V314zm108.5 72.9l-92.1-69v-136l91.7-69v274h.4z"/>\n <path class="st41" d="M268.5 89c-2.3-1.7-6.8-.9-9.2.9l-107 79.9H94.9c-5 0-8.2 3-8.2 7.7V322c0 4.6 3.2 7.7 8.2 7.7h57.4L259.4 410c1.8.9 3.2 1.7 5 1.7.9 0 2.3 0 3.2-.9 2.3-1.7 5-3.8 5-6.8V95.3c1-1.7-.8-4.6-4.1-6.3zM148.2 314.6h-44.9V186.2h44.9v128.4zm108.9 73.1l-92.4-69.3V182l92-69.2v274.9h.4zm149-127.2h-90.5c-4.2 0-7.7-3.5-7.7-7.9s3.4-7.9 7.7-7.9h90.5c4.2 0 7.7 3.5 7.7 7.9s-3.4 7.9-7.7 7.9zm.9-94.6l-88.6 37.6c-3.9 1.6-8.4-.3-10-4.3-1.6-4 .3-8.6 4.1-10.2l88.6-37.6c3.9-1.6 8.4.3 10 4.3 1.6 3.9-.2 8.6-4.1 10.2zm4.7 182.9c-1.6 4-6.1 5.9-10 4.3l-88.6-37.6c-3.9-1.6-5.8-6.2-4.1-10.2 1.6-4 6.1-5.9 10-4.3l88.6 37.6c3.9 1.6 5.8 6.2 4.1 10.2z"/>\n </symbol>\n\n <symbol id="dialog-replay-icon" viewBox="0 0 232 216">\n <title>dialog-replay-icon</title>\n <style>\n .cls-02 {\n fill: #fff;\n }\n </style>\n <path class="cls-02" d="M124,1.6c-41.1,0-78.5,23.7-96.1,60.7L5.8,56.9l16.6,56.6l40.7-42.6l-20.2-4.9C58.5,35.8,89.7,16.6,124,16.6\n c50.4,0,91.4,41,91.4,91.4c0,50.4-41,91.4-91.4,91.4c-24.4,0-47.3-9.5-64.6-26.8l-10.6,10.6c20.1,20.1,46.8,31.2,75.2,31.2\n c58.7,0,106.4-47.7,106.4-106.4S182.7,1.6,124,1.6z"/>\n </symbol>\n\n <symbol id="tap-to-play" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24">\n <title>play-icon</title>\n <path class="tap-to-play" d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"/>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.CloseIcons=window.vungle.templates.CloseIcons||{},window.vungle.templates.CloseIcons.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l="function",c=e.escapeExpression;return'<div id="close-icons" style="display: none;" data-hbs-name="CloseIcons" >\n <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n\n <symbol id="close-icon" viewBox="0 0 525.4 525.5" style="enable-background:new 0 0 525.4 525.5;" xml:space="preserve">\n <title>close-icon</title>\n <polygon class="closeBtn" points="467.6,8.9 262.9,213.6 58.1,8.9 9,58 213.8,262.7 9,467 58.1,516.1 262.9,311.8 467.6,516.1 516.7,467 311.9,262.7 516.7,58"/>\n </symbol>\n\n <symbol id="close-icon'+c(typeof(r=null!=(r=(e=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:10,column:28},end:{line:10,column:37}}}):r)+'" viewBox="0 0 525.4 525.5" style="enable-background:new 0 0 525.4 525.5;" xml:space="preserve">\n <title>close-icon</title>\n <polygon class="closeBtn'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:12,column:30},end:{line:12,column:39}}}):r)+'" points="467.6,8.9 262.9,213.6 58.1,8.9 9,58 213.8,262.7 9,467 58.1,516.1 262.9,311.8 467.6,516.1 516.7,467 311.9,262.7 516.7,58"/>\n </symbol>\n\n <symbol id="close-outline-icon" viewBox="0 0 990.5 990" style="enable-background:new 0 0 990.5 990;" xml:space="preserve">\n <title>close-outline-icon</title>\n <style type="text/css">\n .svg-close-background-light {\n fill: rgba(255,255,255,0.7);\n }\n .svg-close-background-dark {\n fill: rgba(0,0,0,0.7);\n }\n .svg-close-icon,\n .svg-close-icondark {\n fill: #ffffff;\n }\n .svg-close-iconlight {\n fill: #1d1d1d;\n }\n </style>\n <path class="svg-close-background-'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:32,column:42},end:{line:32,column:51}}}):r)+'" d="M195.9-0.7h-9.7H2.8c133.3,0,169.7,95.2,179.6,147.2v474.3c0,62.9,31.6,118.3,79.8,151.3c30.2,21.8,67.2,34.7,107.3,34.7\n h466.9C886.7,815,990,848.7,990,987.6V806.8h0.5l0-807.5H195.9z"/>\n <polygon class="svg-close-icon svg-close-icon'+c(typeof(r=null!=(r=e(n,"THEME")||(null!=t?e(t,"THEME"):t))?r:a)==l?r.call(s,{name:"THEME",hash:{},data:o,loc:{start:{line:34,column:53},end:{line:34,column:62}}}):r)+'" points="780.4,643.8 587.1,450.6 392.3,643.8 345.9,597.5 540.8,402.6 345.9,209.3 392.3,162.9 587.1,356.2 780.4,162.9 826.8,209.3 633.5,402.6 826.8,597.5">\n </polygon>\n </symbol>\n\n </defs>\n </svg>\n</div>'},useData:!0})},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.DialogBox=window.vungle.templates.DialogBox||{},window.vungle.templates.DialogBox.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="DIALOGBOX" data-hbs-name="DialogBox">\n <div class="dialog">\n <div class="dialog-content">\n <div class="title-text"></div>\n <div class="body-text-container">\n <div class="body-text"></div>\n </div>\n <div class="action-buttons">\n <div class="primary-button">\n <button class="primary" data-vgl-tabindex="1"></button>\n </div>\n <div class="secondary-button">\n <button class="secondary" data-vgl-tabindex="2"></button>\n </div>\n </div>\n </div>\n </div>\n</div>\n'},useData:!0})},function(e,t,n){},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.GDPRDialogBox=window.vungle.templates.GDPRDialogBox||{},window.vungle.templates.GDPRDialogBox.template=Handlebars.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div id="GDPRDialogBox" data-hbs-name="GDPRDialogBox">\n <div class="dialog">\n <div class="dialog-content">\n <div class="app-icon">\n <svg data-vgl-gesture="GDPR-icon">\n <use xlink:href="#GDPR-icon"></use>\n </svg>\n </div>\n <div class="title-text"></div>\n <div class="body-text"></div>\n </div>\n </div>\n\n <div class="cta">\n <div class="cta-content">\n <div class="consent-button">\n <button data-vgl-tabindex="1" class="consent"></button>\n </div>\n <div class="no-consent-button">\n <button data-vgl-tabindex="2" class="no-consent"></button>\n </div>\n </div>\n </div>\n</div>\n\n<div id="icons" style="display: none;">\n <svg version="1.1" id="GDPR-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 96.5 96.6" style="enable-background:new 0 0 96.5 96.6;" xml:space="preserve">\n <style type="text/css">\n .st100{fill:#FFFFFF;}\n </style>\n <g transform="translate(0,-952.36218)">\n <path fill="#FFFFFF" class="st100" d="M46.2,953.6v12.1c-17.7,1-31.9,15.2-32.9,32.9H1.2v4h12.1c1,17.7,15.2,31.9,32.9,32.9v12.1h4v-12.1\n c17.7-1,31.9-15.2,32.9-32.9h12.1v-4H83.2c-1-17.7-15.2-31.9-32.9-32.9v-12.1H46.2z M46.2,969.7v14.1c-7.8,0.9-14,7.1-14.9,14.9\n H17.3C18.3,983.1,30.7,970.7,46.2,969.7z M50.2,969.7c15.5,1,27.9,13.4,28.9,28.9H65.1c-0.9-7.8-7.1-14-14.9-14.9V969.7z\n M40.9,993.3c10.8-8.1,22.8,3.9,14.7,14.7C44.8,1016.1,32.8,1004.1,40.9,993.3z M17.3,1002.6h14.1c0.9,7.8,7.1,14,14.9,14.9v14.1\n C30.7,1030.6,18.3,1018.2,17.3,1002.6z M65.1,1002.6h14.1c-1,15.5-13.4,28-28.9,28.9v-14.1C58,1016.6,64.2,1010.4,65.1,1002.6z"></path>\n </g>\n </svg>\n</div>\n'},useData:!0})},function(e,t,n){},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.Video=window.vungle.templates.Video||{},window.vungle.templates.Video.template=Handlebars.template({1:function(e,t,n,i,o){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-vgl-delay-show="'+e.escapeExpression("function"==typeof(n=null!=(n=r(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?r(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?n:e.hooks.helperMissing)?n.call(null!=t?t:e.nullContext||{},{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:9,column:65},end:{line:9,column:98}}}):n)+'"'},3:function(e,t,n,i,o){return" hide"},5:function(e,t,n,i,o){var r,s=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l="function",c=e.escapeExpression;return'data-vgl-delay-show="'+c(typeof(r=null!=(r=(e=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?e(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?r:a)==l?r.call(s,{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:73,column:214},end:{line:73,column:247}}}):r)+'" data-vgl-delay-show-incentivized="'+c(typeof(r=null!=(r=e(n,"DOWNLOAD_BUTTON_DELAY_SECONDS")||(null!=t?e(t,"DOWNLOAD_BUTTON_DELAY_SECONDS"):t))?r:a)==l?r.call(s,{name:"DOWNLOAD_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:73,column:283},end:{line:73,column:316}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id="Video" data-hbs-name="Video" data-vgl-page class="row hide" data-vgl-cta-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:1,column:100},end:{line:1,column:155}}}))+'">\n <div\n role="dialog"\n class="overlay-cta"\n data-vgl-gesture="cta-button"\n data-vgl-full-cta="'+c(typeof(s=null!=(s=h(n,"FULL_CTA")||(null!=t?h(t,"FULL_CTA"):t))?s:l)==u?s.call(a,{name:"FULL_CTA",hash:{},data:o,loc:{start:{line:6,column:27},end:{line:6,column:39}}}):s)+'"\n data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"CTA_BUTTON_URL")||(null!=t?h(t,"CTA_BUTTON_URL"):t))?s:l)==u?s.call(a,{name:"CTA_BUTTON_URL",hash:{},data:o,loc:{start:{line:7,column:22},end:{line:7,column:40}}}):s)+'"\n data-vgl-app-store-id="'+c(typeof(s=null!=(s=h(n,"APP_STORE_ID")||(null!=t?h(t,"APP_STORE_ID"):t))?s:l)==u?s.call(a,{name:"APP_STORE_ID",hash:{},data:o,loc:{start:{line:8,column:31},end:{line:8,column:47}}}):s)+'"\n '+(null!=(r=(h(n,"equalDef")||t&&h(t,"equalDef")||l).call(a,null!=t?h(t,"FULL_CTA"):t,"true","true",{name:"equalDef",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:9,column:8},end:{line:9,column:112}}}))?r:"")+'>\n </div>\n\n <div class="overlay-video-controller hide">\n <div class="overlay-video-controller__holder">\n <div class="overlay-video-controller__icon">\n <svg>\n <use xlink:href="#tap-to-play"></use>\n </svg>\n </div>\n <h2>'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"TAP_TO_PLAY","Tap to play",{name:"i18nt",hash:{},data:o,loc:{start:{line:19,column:12},end:{line:19,column:49}}}))+'</h2>\n </div>\n </div>\n\n <div class="content small-12 columns">\n <div class="header row">\n <div\n class="close-countdown"\n data-vgl-delay-show="'+c(typeof(s=null!=(s=h(n,"CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:27,column:37},end:{line:27,column:67}}}):s)+'"\n data-vgl-delay-show-incentivized="'+c(typeof(s=null!=(s=h(n,"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:28,column:50},end:{line:28,column:93}}}):s)+'"\n data-vgl-show-countdown-timer="'+c(typeof(s=null!=(s=h(n,"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN")||(null!=t?h(t,"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN"):t))?s:l)==u?s.call(a,{name:"SHOW_VIDEO_CLOSE_BUTTON_COUNTDOWN",hash:{},data:o,loc:{start:{line:29,column:47},end:{line:29,column:86}}}):s)+'">\n\n <div class="close-btn-container" data-vgl-tabindex="3">\n <svg data-vgl-gesture="close-icon" class="close-btn">\n <use xlink:href="#close-icon"></use>\n </svg>\n </div>\n\n <span class="close-btn-text">'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"CLOSE_BUTTON_TEXT","Close",{name:"i18nt",hash:{},data:o,loc:{start:{line:37,column:45},end:{line:37,column:82}}}))+'</span>\n\n </div>\n </div>\n\n <div class="video-container">\n <video autoplay muted class="video row" ad-outlet="video" data-vgl-gesture="video" playsinline webkit-playsinline data-vgl-video-timer="'+c(typeof(s=null!=(s=h(n,"VIDEO_PROGRESS_BAR")||(null!=t?h(t,"VIDEO_PROGRESS_BAR"):t))?s:l)==u?s.call(a,{name:"VIDEO_PROGRESS_BAR",hash:{},data:o,loc:{start:{line:43,column:148},end:{line:43,column:170}}}):s)+'">\n <source src="'+c(typeof(s=null!=(s=h(n,"MAIN_VIDEO")||(null!=t?h(t,"MAIN_VIDEO"):t))?s:l)==u?s.call(a,{name:"MAIN_VIDEO",hash:{},data:o,loc:{start:{line:44,column:29},end:{line:44,column:43}}}):s)+'">\n </video>\n <div class="mute-icon-container" data-vgl-start-muted='+c(typeof(s=null!=(s=h(n,"START_MUTED")||(null!=t?h(t,"START_MUTED"):t))?s:l)==u?s.call(a,{name:"START_MUTED",hash:{},data:o,loc:{start:{line:46,column:66},end:{line:46,column:81}}}):s)+'>\n <div class="unmute-video-wrap hidden">\n <svg data-vgl-gesture="unmute-video" class="unmute-video">\n <use xlink:href="#unmute-video"></use>\n </svg>\n </div>\n <div class="mute-video-wrap hidden">\n <svg data-vgl-gesture="mute-video" class="mute-video">\n <use xlink:href="#mute-video"></use>\n </svg>\n </div>\n </div>\n <div class="progress-bar" data-vgl-progress-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:58,column:74},end:{line:58,column:129}}}))+'"><span></span></div>\n </div>\n\n <div class="footer row small-12 columns">\n <div class="privacy-button bubble-button" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"VUNGLE_PRIVACY_URL")||(null!=t?h(t,"VUNGLE_PRIVACY_URL"):t))?s:l)==u?s.call(a,{name:"VUNGLE_PRIVACY_URL",hash:{},data:o,loc:{start:{line:62,column:68},end:{line:62,column:90}}}):s)+'" data-vgl-tabindex="2">\n <svg data-vgl-gesture="lock-icon" class="lock-icon">\n <use xlink:href="#lock-icon-2"></use>\n </svg>\n <span>\n <svg data-vgl-gesture="privacy-icon" class="privacy-icon">\n <use xlink:href="#lock-text"></use>\n </svg>\n </span>\n </div>\n\n <div class="download small-6 columns cta-delay-show cta-hard-hide'+(null!=(r=(h(n,"equal")||t&&h(t,"equal")||l).call(a,null!=t?h(t,"VIDEO_SHOW_CTA"):t,"false",{name:"equal",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o,loc:{start:{line:73,column:77},end:{line:73,column:125}}}))?r:"")+'" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"CTA_BUTTON_URL")||(null!=t?h(t,"CTA_BUTTON_URL"):t))?s:l)==u?s.call(a,{name:"CTA_BUTTON_URL",hash:{},data:o,loc:{start:{line:73,column:141},end:{line:73,column:159}}}):s)+'" '+(null!=(r=(h(n,"equal")||t&&h(t,"equal")||l).call(a,null!=t?h(t,"VIDEO_SHOW_CTA"):t,"true",{name:"equal",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o,loc:{start:{line:73,column:161},end:{line:73,column:327}}}))?r:"")+' data-vgl-tabindex="1">\n <span class="cta-button__icon">\n <svg data-vgl-gesture="download-icon" class="download-icon">\n <use xlink:href="#cta-icon-download-square"></use>\n </svg>\n </span>\n <span class="cta-button__timer hide"></span>\n </div>\n </div>\n </div>\n</div>\n\n\x3c!-- incentivized dialog box --\x3e\n<script type="text/template" id="incentivized-title-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_TITLE_TEXT",null!=t?h(t,"INCENTIVIZED_TITLE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:87,column:4},end:{line:87,column:64}}}))+'\n<\/script>\n<script type="text/template" id="incentivized-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_BODY_TEXT",null!=t?h(t,"INCENTIVIZED_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:90,column:4},end:{line:90,column:62}}}))+'\n<\/script>\n<script type="text/template" id="incentivized-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_CONTINUE_TEXT",null!=t?h(t,"INCENTIVIZED_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:93,column:4},end:{line:93,column:70}}}))+' <svg class="action-icon"><use xlink:href="#dialog-replay-icon"></use></svg>\n<\/script>\n<script type="text/template" id="incentivized-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"INCENTIVIZED_CLOSE_TEXT",null!=t?h(t,"INCENTIVIZED_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:96,column:4},end:{line:96,column:64}}}))+'\n<\/script>\n\n\x3c!-- privacy dialog box --\x3e\n<script type="text/template" id="privacy-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_BODY_TEXT",null!=t?h(t,"PRIVACY_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:101,column:4},end:{line:101,column:52}}}))+'\n<\/script>\n<script type="text/template" id="privacy-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CONTINUE_TEXT",null!=t?h(t,"PRIVACY_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:104,column:4},end:{line:104,column:60}}}))+' <svg class="action-icon"><use xlink:href="#privacy-close-icon"></use></svg>\n<\/script>\n<script type="text/template" id="privacy-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CLOSE_TEXT",null!=t?h(t,"PRIVACY_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:107,column:4},end:{line:107,column:54}}}))+"\n<\/script>\n"},useData:!0})},function(e,t,n){},function(e,t){window.vungle=window.vungle||{},window.vungle.templates=window.vungle.templates||{},window.vungle.templates.RtbEndcard=window.vungle.templates.RtbEndcard||{},window.vungle.templates.RtbEndcard.template=Handlebars.template({1:function(e,t,n,i,o){return"hide"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r,s,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div\n id="RtbEndcard"\n data-hbs-name="RtbEndcard"\n data-vgl-cta-background-color="'+c((h(n,"i18ns")||t&&h(t,"i18ns")||l).call(a,"CTA_BUTTON_BACKGROUND",null!=t?h(t,"CTA_BUTTON_BACKGROUND"):t,{name:"i18ns",hash:{},data:o,loc:{start:{line:4,column:33},end:{line:4,column:88}}}))+'"\n data-vgl-page\n class="hide">\n\n <div\n role="dialog"\n class="overlay-cta '+(null!=(r=h(n,"if").call(a,null!=t?h(t,"EC_HTML"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:11,column:27},end:{line:11,column:53}}}))?r:"")+'"\n data-vgl-gesture="cta-button"\n data-vgl-full-cta="true"\n data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"EC_CTA_URL")||(null!=t?h(t,"EC_CTA_URL"):t))?s:l)==u?s.call(a,{name:"EC_CTA_URL",hash:{},data:o,loc:{start:{line:14,column:22},end:{line:14,column:36}}}):s)+'">\n </div>\n\n <div class="header">\n <div\n class="close-countdown"\n data-vgl-delay-show="'+c(typeof(s=null!=(s=h(n,"EC_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"EC_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"EC_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:20,column:33},end:{line:20,column:68}}}):s)+'"\n data-vgl-delay-show-incentivized="'+c(typeof(s=null!=(s=h(n,"EC_CLOSE_BUTTON_DELAY_SECONDS")||(null!=t?h(t,"EC_CLOSE_BUTTON_DELAY_SECONDS"):t))?s:l)==u?s.call(a,{name:"EC_CLOSE_BUTTON_DELAY_SECONDS",hash:{},data:o,loc:{start:{line:21,column:46},end:{line:21,column:81}}}):s)+'"\n data-vgl-delay-show-max="6"\n data-vgl-show-countdown-timer="'+c(typeof(s=null!=(s=h(n,"SHOW_EC_CLOSE_BUTTON_COUNTDOWN")||(null!=t?h(t,"SHOW_EC_CLOSE_BUTTON_COUNTDOWN"):t))?s:l)==u?s.call(a,{name:"SHOW_EC_CLOSE_BUTTON_COUNTDOWN",hash:{},data:o,loc:{start:{line:23,column:43},end:{line:23,column:79}}}):s)+'">\n\n <div class="close-btn-container" data-vgl-tabindex="3">\n <svg data-vgl-gesture="close-icon" class="close-btn">\n <use xlink:href="#close-icon"></use>\n </svg>\n </div>\n\n <span class="close-btn-text">'+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"CLOSE_BUTTON_TEXT","Close",{name:"i18nt",hash:{},data:o,loc:{start:{line:31,column:41},end:{line:31,column:78}}}))+'</span>\n\n </div>\n </div>\n\n <div class="ad-container">\n <img class="background-image '+(null!=(r=h(n,"unless").call(a,null!=t?h(t,"EC_IMAGE"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:37,column:37},end:{line:37,column:72}}}))?r:"")+'" src="'+c(typeof(s=null!=(s=h(n,"EC_IMAGE")||(null!=t?h(t,"EC_IMAGE"):t))?s:l)==u?s.call(a,{name:"EC_IMAGE",hash:{},data:o,loc:{start:{line:37,column:79},end:{line:37,column:91}}}):s)+'">\n <div class="hidden-encoded-content">\n <abbr id="programmaticStyle">\n <base target=“_parent”>\n <style>\n body {\n margin: 0px;\n padding: 0px;\n overflow: hidden;\n }\n </style>\n </abbr>\n <abbr id="programmaticAdmHtml">'+c(typeof(s=null!=(s=h(n,"EC_HTML")||(null!=t?h(t,"EC_HTML"):t))?s:l)==u?s.call(a,{name:"EC_HTML",hash:{},data:o,loc:{start:{line:49,column:43},end:{line:49,column:54}}}):s)+'</abbr>\n </div>\n\n <iframe\n id="programmaticIframe"\n class="'+(null!=(r=h(n,"unless").call(a,null!=t?h(t,"EC_HTML"):t,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:54,column:17},end:{line:54,column:51}}}))?r:"")+'"\n allow="autoplay"\n scrolling="no"\n frameBorder="0">\n </iframe>\n\n </div>\n\n <div class="footer">\n <div class="privacy-button bubble-button" data-vgl-uri="'+c(typeof(s=null!=(s=h(n,"VUNGLE_PRIVACY_URL")||(null!=t?h(t,"VUNGLE_PRIVACY_URL"):t))?s:l)==u?s.call(a,{name:"VUNGLE_PRIVACY_URL",hash:{},data:o,loc:{start:{line:63,column:64},end:{line:63,column:86}}}):s)+'" data-vgl-tabindex="2">\n <svg data-vgl-gesture="lock-icon" class="lock-icon">\n <use xlink:href="#lock-icon-2"></use>\n </svg>\n <span>\n <svg data-vgl-gesture="privacy-icon" class="privacy-icon">\n <use xlink:href="#lock-text"></use>\n </svg>\n </span>\n </div>\n </div>\n</div>\n\n<script type="text/template" id="privacy-body-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_BODY_TEXT",null!=t?h(t,"PRIVACY_BODY_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:78,column:4},end:{line:78,column:52}}}))+'\n<\/script>\n<script type="text/template" id="privacy-primary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CONTINUE_TEXT",null!=t?h(t,"PRIVACY_CONTINUE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:81,column:4},end:{line:81,column:60}}}))+' <svg class="action-icon"><use xlink:href="#privacy-close-icon"></use></svg>\n<\/script>\n<script type="text/template" id="privacy-secondary-text">\n '+c((h(n,"i18nt")||t&&h(t,"i18nt")||l).call(a,"PRIVACY_CLOSE_TEXT",null!=t?h(t,"PRIVACY_CLOSE_TEXT"):t,{name:"i18nt",hash:{},data:o,loc:{start:{line:84,column:4},end:{line:84,column:54}}}))+"\n<\/script>\n\n"},useData:!0})},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(4),n(5),n(6),n(7),n(8);const i=(e,t,n)=>{const i=e,o=e.env.toLowerCase(),r=["dev","develop","development"].includes(o);return i[t]=r?window.console[n]:()=>{},i};function o(e="development"){const t={env:e};return i(t,"log","log"),i(t,"logWarn","warn"),i(t,"logInfo","info"),i(t,"logError","error"),t}!function(e,t){const n=t("production");e.logging=n,e.log=n.log,e.logInfo=n.logInfo,e.logError=n.logError,e.logWarn=n.logWarn}(window,o);const r=o("production"),{log:s}=r,{logInfo:a}=r,{logWarn:l}=r,{logError:c}=r;const u={fallbackLng:"en",resources:{en:{translation:{CTA_BUTTON_TEXT:"Download",Download:"Download",DOWNLOAD:"DOWNLOAD",INCENTIVIZED_CONTINUE_TEXT:"Continue",INCENTIVIZED_CLOSE_TEXT:"Close Ad",PRIVACY_CONTINUE_TEXT:"Close",PRIVACY_CLOSE_TEXT:"Read Vungle's Privacy Policy",INCENTIVIZED_TITLE_TEXT:"Close this ad?",INCENTIVIZED_BODY_TEXT:"Are you sure you want to skip this ad? You must finish watching to claim your reward.",PRIVACY_BODY_TEXT:"Vungle, Inc. understands the importance of privacy. Vungle operates a mobile ad network (the 'Ad Network' or the 'Services') through which Vungle displays targeted, contextual ads.",Play:"Play","Download Now":"Download Now",CLOSE_BUTTON_TEXT:"Close"},styling:{CTA_BUTTON_TEXT_COLOR:"#fff",CTA_BUTTON_BACKGROUND:"#01b27a"}},de:{translation:{CTA_BUTTON_TEXT:"Herunterladen",Download:"Herunterladen",DOWNLOAD:"Herunterladen",Play:"Spiel","Download Now":"Jetzt herunterladen"}},zh:{translation:{CTA_BUTTON_TEXT:"下载",Download:"下载",DOWNLOAD:"下载",Play:"玩","Download Now":"现在下载"},styling:{CTA_BUTTON_TEXT_COLOR:"#FAE8BC",CTA_BUTTON_BACKGROUND:"#E10A19","#fff":"#FAE8BC","#01b27a":"#E10A19"}},zh_TW:{translation:{CTA_BUTTON_TEXT:"下載",Download:"下載",DOWNLOAD:"下載","Download Now":"現在下載"},styling:{CTA_BUTTON_TEXT_COLOR:"#FAE8BC",CTA_BUTTON_BACKGROUND:"#E10A19","#fff":"#FAE8BC","#01b27a":"#E10A19"}},es:{translation:{CTA_BUTTON_TEXT:"Descargar",Download:"Descargar",DOWNLOAD:"Descargar","Download Now":"Descargar ahora"}},da:{translation:{CTA_BUTTON_TEXT:"Hent",Download:"Hent",DOWNLOAD:"Hent","Download Now":"Download nu"}},sv:{translation:{CTA_BUTTON_TEXT:"Ladda ner",Download:"Ladda ner",DOWNLOAD:"Ladda ner","Download Now":"Ladda ner nu"}},nb:{translation:{CTA_BUTTON_TEXT:"Nedlasting",Download:"Nedlasting",DOWNLOAD:"Nedlasting","Download Now":"Last ned nå"}},ru:{translation:{CTA_BUTTON_TEXT:"Скачать",Download:"Скачать",DOWNLOAD:"Скачать","Download Now":"Скачать сейчас"}},tr:{translation:{CTA_BUTTON_TEXT:"İndir",Download:"İndir",DOWNLOAD:"İndir","Download Now":"Şimdi İndirin"}},ar:{translation:{CTA_BUTTON_TEXT:"تحميل",Download:"تحميل",DOWNLOAD:"تحميل","Download Now":"التحميل الان"}},ko:{translation:{CTA_BUTTON_TEXT:"다운로드",Download:"다운로드",DOWNLOAD:"다운로드","Download Now":"지금 다운로드"}},ja:{translation:{CTA_BUTTON_TEXT:"ダウンロード",Download:"ダウンロード",DOWNLOAD:"ダウンロード","Download Now":"ダウンロード中"}},th:{translation:{CTA_BUTTON_TEXT:"ดาวน์โหลด",Download:"ดาวน์โหลด",DOWNLOAD:"ดาวน์โหลด","Download Now":"ดาวน์โหลดเดี๋ยวน"}},ms:{translation:{CTA_BUTTON_TEXT:"ഡൗൺലോഡ്",Download:"ഡൗൺലോഡ്",DOWNLOAD:"ഡൗൺലോഡ്","Download Now":"ഇപ്പോൾ ഡൗൺലോഡ്"}},vi:{translation:{CTA_BUTTON_TEXT:"Tải về",Download:"Tải về",DOWNLOAD:"Tải về","Download Now":"Tải ngay"}},fr:{translation:{CTA_BUTTON_TEXT:"Télécharger",Download:"Télécharger",DOWNLOAD:"Télécharger","Download Now":"Télécharger maintenant"}},it:{translation:{CTA_BUTTON_TEXT:"Scaricare",Download:"Scaricare",DOWNLOAD:"Scaricare","Download Now":"Scarica ora"}},pl:{translation:{CTA_BUTTON_TEXT:"Pobieranie",Download:"Pobieranie",DOWNLOAD:"Pobieranie","Download Now":"Pobierz teraz"}},pt:{translation:{CTA_BUTTON_TEXT:"Transferir",Download:"Transferir",DOWNLOAD:"Transferir","Download Now":"Baixe Agora"}},fi:{translation:{CTA_BUTTON_TEXT:"Ladata",Download:"Ladata",DOWNLOAD:"Ladata","Download Now":"Lataa nyt"}},id:{translation:{Play:"bermain"}},nl:{translation:{CTA_BUTTON_TEXT:"Downloaden",Download:"Downloaden",DOWNLOAD:"Downloaden","Download Now":"Spelen"}},sl:{translation:{CTA_BUTTON_TEXT:"Prenesi",Download:"Prenesi",DOWNLOAD:"Prenesi","Download Now":"Prenesi zdaj"}}}};function h(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var f="01010110 01110101 01101110 01100111 01101100 01100101 00100000 01001001 01010000 01001111",v=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==f)throw{name:"SingletonException",message:"Cannot create another EventBus singleton object!"};this.listeners={}}var t,n,i;return t=e,i=[{key:"instance",get:function(){return this.singleton||(this.singleton=new e(f)),this.singleton}}],(n=[{key:"findHandler",value:function(t,n){for(var i=-1,o=e.instance.listeners[t].length,r=0;r<o&&-1===i;r++)e.instance.listeners[t][r].uuid===n.uuid&&(i=r);return i}},{key:"subscribe",value:function(t,n){return t in e.instance.listeners?e.instance.listeners[t].push(n):e.instance.listeners[t]=[n],n.uuid}},{key:"publish",value:function(t,n){if(t in e.instance.listeners)for(var i=e.instance.listeners[t],o=0;o<i.length;o++)"function"==typeof i[o]&&setTimeout(void(0,i[o])(n),0)}},{key:"unsubscribe",value:function(t,n){if(t in e.instance.listeners){var i=this.findHandler(t,n);-1!==i&&(e.instance.listeners[t].splice(i,1),0===e.instance.listeners[t].length&&delete e.instance.listeners[t])}}},{key:"unsubscribeAll",value:function(t){Object.keys(e.instance.listeners).forEach((function(n){h(e.instance.listeners[n]).forEach((function(i,o){"_id"in i&&i._id===t&&e.instance.listeners[n].splice(o,1)}))}))}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var m="01000101 01000011 01001101 01000001 01010011 01100011 01110010 01101001 01110000 01110100 00100000 00110010 00110000 00110001 00110101",g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t!==m)throw{name:"SingletonException",message:"Cannot create another UUID singleton object!"};this.lastGenerated=null}var t,n,i;return t=e,i=[{key:"instance",get:function(){return this.singleton||(this.singleton=new e(m)),this.singleton}}],(n=[{key:"generate",value:function(){var e=Date.now();window.performance&&"function"==typeof window.performance.now&&(e+=performance.now());var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}));return t===this.lastGenerated?this.generate():t}}])&&y(t.prototype,n),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();Function.prototype.uuidBind=function(){var e=Function.prototype.bind.apply(this,arguments);return e.uuid=g.instance.generate(),"_id"in arguments[0]&&(e._id=arguments[0]._id),this.uuid=e.uuid,e};var b=g;function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var E=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.selector=t,this.element=null,this.initialized=!1,this._id=b.instance.generate()}var t,n,i;return t=e,(n=[{key:"getElement",value:function(){return this.element||(this.element=document.querySelector(this.selector)),this.element}},{key:"init",value:function(){throw{name:"NoImplException",message:"No init method provided in UIElement derived class!"}}},{key:"show",value:function(){this.isVisible()||(this.getElement().style.visibility="visible")}},{key:"hide",value:function(){this.isVisible()&&(this.getElement().style.visibility="hidden")}},{key:"destroy",value:function(){}},{key:"isVisible",value:function(){return"visible"===window.getComputedStyle(this.getElement()).visibility}},{key:"pause",value:function(){}}])&&w(t.prototype,n),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(r,e);var t,n,i,o=k(r);function r(e){var t,n=e.selector,i=e.isIncentivized,s=void 0!==i&&i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).isIncentivized=s,t.showDelayMilliseconds=0,t}return t=r,(n=[{key:"getShowDelayMilliseconds",value:function(){if(!this.showDelayMilliseconds){var e=this.isIncentivized?"data-vgl-delay-show-incentivized":"data-vgl-delay-show",t=this.getElement().getAttribute(e),n=this.getElement().getAttribute("data-vgl-delay-show-max");n&&parseInt(t,10)>parseInt(n,10)&&(t=n),this.showDelayMilliseconds=t?"9999"!==t?1e3*parseFloat(t):null:0}return this.showDelayMilliseconds}},{key:"init",value:function(){this.initialized||(this.getElement().addEventListener("click",this.onClick.bind(this)),this.initialized=!0)}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"onClick",value:function(){throw{name:"NoImplException",message:"No onClick method provided in AbstractDelayShowButton derived class!"}}}])&&O(t.prototype,n),i&&O(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);n(9),n(10);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=P(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function P(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=L(e)););return e}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return V(this,n)}}function V(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(r,e);var t,n,i,o=_(r);function r(e){var t,n=e.selector,i=e.themeColor,s=e.titleText,a=void 0===s?null:s,l=e.bodyText,c=void 0===l?null:l,u=e.primaryText,h=void 0===u?null:u,d=e.secondaryText,p=void 0===d?null:d,f=e.primaryEvent,v=void 0===f?null:f,y=e.secondaryEvent,m=void 0===y?null:y;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).themeColor=i,t.titleText=a,t.bodyText=c,t.primaryText=h,t.secondaryText=p,t.primaryEvent=v,t.secondaryEvent=m,t.secondaryButton=null,t.primaryButton=null,t.dialogContent=null,t.titleTextElement=null,t.bodyTextElement=null,t.primaryButtonContainer=null,t.secondaryButtonContainer=null,t}return t=r,(n=[{key:"getCloseButton",value:function(){return this.secondaryButton||(this.secondaryButton=document.querySelector("".concat(this.selector," .secondary"))),this.secondaryButton}},{key:"getCloseButtonContainer",value:function(){return this.secondaryButtonContainer||(this.secondaryButtonContainer=document.querySelector("".concat(this.selector," .secondary-button"))),this.secondaryButtonContainer}},{key:"getContinueButton",value:function(){return this.primaryButton||(this.primaryButton=document.querySelector("".concat(this.selector," .primary"))),this.primaryButton}},{key:"getContinueButtonContainer",value:function(){return this.primaryButtonContainer||(this.primaryButtonContainer=document.querySelector("".concat(this.selector," .primary-button"))),this.primaryButtonContainer}},{key:"getDialogContent",value:function(){return this.dialogContent||(this.dialogContent=document.querySelector("".concat(this.selector," .dialog-content"))),this.dialogContent}},{key:"getBodyTextElement",value:function(){return this.bodyTextElement||(this.bodyTextElement=document.querySelector("".concat(this.selector," .body-text"))),this.bodyTextElement}},{key:"getTitleTextElement",value:function(){return this.titleTextElement||(this.titleTextElement=document.querySelector("".concat(this.selector," .title-text"))),this.titleTextElement}},{key:"setThemeColor",value:function(){this.getContinueButton().style.backgroundColor=this.themeColor,this.getDialogContent().style.borderTopColor=this.themeColor,this.getTitleTextElement().style.backgroundColor=this.themeColor}},{key:"setTitleText",value:function(){this.titleText?this.getTitleTextElement().innerHTML=this.titleText:this.getTitleTextElement().innerHTML=""}},{key:"setBodyText",value:function(){this.bodyText&&(this.getBodyTextElement().innerHTML=this.bodyText)}},{key:"setPrimaryText",value:function(){this.primaryText&&(this.getContinueButton().innerHTML=this.primaryText)}},{key:"setSecondaryText",value:function(){this.secondaryText&&(this.getCloseButton().innerHTML=this.secondaryText)}},{key:"init",value:function(){this.initialized||(this.setThemeColor(),this.initialized=!0)}},{key:"show",value:function(){x(L(r.prototype),"show",this).call(this),this.eventDispatcher.publish("event.dialogBoxShow",this),this.onDialogBoxCloseButtonClick=this.onDialogBoxCloseButtonClick.bind(this),this.onDialogBoxContinueButtonClick=this.onDialogBoxContinueButtonClick.bind(this),this.getCloseButton().addEventListener("click",this.onDialogBoxCloseButtonClick,!1),this.getContinueButton().addEventListener("click",this.onDialogBoxContinueButtonClick,!1),this.setTitleText(),this.setBodyText(),this.setPrimaryText(),this.setSecondaryText()}},{key:"hide",value:function(){x(L(r.prototype),"hide",this).call(this),this.eventDispatcher.publish("event.dialogBoxHide"),this.getCloseButton().removeEventListener("click",this.onDialogBoxCloseButtonClick,!1),this.getContinueButton().removeEventListener("click",this.onDialogBoxContinueButtonClick,!1)}},{key:"onDialogBoxCloseButtonClick",value:function(){this.eventDispatcher.publish(this.secondaryEvent),this.hide()}},{key:"onDialogBoxContinueButtonClick",value:function(){this.eventDispatcher.publish(this.primaryEvent),this.hide()}}])&&B(t.prototype,n),i&&B(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E),M=n(0),j=n.n(M);function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function U(e,t,n){return t&&z(e.prototype,t),n&&z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F=U((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,Object.freeze(this)}));H(F,"iOS",new F("iOS")),H(F,"Android",new F("Android")),H(F,"Windows",new F("Windows")),H(F,"Amazon",new F("Amazon"));var X=F,Y=function(e){var t=re();return t&&"function"==typeof t[e]?t[e]:null},q=function(){var e=Y("getOSVersion");return null!==e?e():"0.0.0"},W=function(){var e=Y("getSDKVersion");return null!==e?e():"0.0.0"},G=function(){var e=Y("getOS"),t=null!==e?e():window.navigator.userAgent.match(/Android/i)?"Android":"Unknown";switch(t.trim().toLowerCase()){case"ios":return X.iOS;case"android":return X.Android;case"windows":return X.Windows;case"amazon":return X.Amazon;default:return c("Unable to detect Operating System from mraid Extension getOS or from userAgent: ".concat(t)),null}};function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return J(this,n)}}function J(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ie=function(){function e(){ee(this,e),this.mraid=null,this.mraidExt=null,this.mraidBridge=null,this.mraidBridgeExt=null,this.mraidErrorMap=null,this.mraidVersion=null,this.MIN_VUNGLE_MRAID2=">=4.6.0",this.readyCallback=null}return ne(e,[{key:"VungleMRAID",get:function(){return this.mraid||(this.mraid=window.vungle.mraid||window.mraid),this.mraid}},{key:"VungleMRAIDExt",get:function(){return this.mraidExt||(this.mraidExt=window.vungle.mraidExt),this.mraidExt}},{key:"VungleMRAIDBridge",get:function(){return this.mraidBridge||(this.mraidBridge=window.vungle.mraidBridge),this.mraidBridge}},{key:"VungleMRAIDBridgeExt",get:function(){return this.mraidBridgeExt||(this.mraidBridgeExt=window.vungle.mraidBridgeExt),this.mraidBridgeExt}},{key:"VungleMRAIDErrorMap",get:function(){return this.mraidErrorMap||(this.mraidErrorMap=window.vungle.error),this.mraidErrorMap}},{key:"VungleMRAIDVersion",get:function(){return"getMraidVersion"in this.VungleMRAIDExt&&(this.mraidVersion=this.VungleMRAIDExt.getMraidVersion()),this.mraidVersion}},{key:"consent",get:function(){return this.isStandardMRAID2()?this.VungleMRAIDExt:this.VungleMRAID}},{key:"os",get:function(){var e=G();return e?e.name.toLowerCase():"unknown"}},{key:"osVersion",get:function(){return q().trim()}},{key:"DynamicElement",get:function(){return this.dynamicElement||(this.dynamicElement=document.querySelector("#dynamic")),this.dynamicElement}},{key:"VungleCTA",get:function(){if(!this.cta){var e=this.VungleMRAIDBridgeExt.getReplacementTokens();this.cta={uri:e.CTA_BUTTON_URL,appStoreId:e.APP_STORE_ID||this.getApiIdFromUrl(e.CTA_BUTTON_URL)}}return this.cta}},{key:"getApiIdFromUrl",value:function(e){if(!e)return null;var t=e.match(/\/id([0-9]*)/i);return t&&t[1]?t[1]:null}},{key:"openPrivacyURI",value:function(e){if(this.isStandardMRAID2())return this.VungleMRAID.open(e);this.VungleMRAIDBridgeExt.openPrivacy(e),"ios"===this.os&&this.VungleMRAID.open(e)}},{key:"isConsentRequired",value:function(){return"getConsentRequired"in this.consent&&this.consent.getConsentRequired()}},{key:"isStandardMRAID2",value:function(){return this.VungleMRAIDVersion&&Object(M.satisfies)(this.VungleMRAIDVersion,this.MIN_VUNGLE_MRAID2)}},{key:"initCustomOperations",value:function(){this.VungleMRAID.useCustomClose(),this.isStandardMRAID2()||this.VungleMRAIDExt.useCustomPrivacy(!0)}}]),e}(),oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(n,e);var t=Z(n);function n(){var e;return ee(this,n),(e=t.call(this)).readyCallback=null,e}return ne(n,[{key:"mraidReady",value:function(){this.VungleMRAID&&(this.VungleMRAID.addEventListener("error",this.mraidError),this.initCustomOperations()),this.readyCallback&&this.readyCallback()}},{key:"mraidReadyCheck",value:function(e){this.readyCallback=e,this.VungleMRAID&&"loading"===this.VungleMRAID.getState()?this.VungleMRAID.addEventListener("ready",this.mraidReady.bind(this)):this.mraidReady()}},{key:"mraidError",value:function(e,t){window.console&&window.console.log("%cMRAID (SDK) Error Detected. time=%f, message=%s, action=%s","color: red; font-size: x-large",Date.now(),e,t)}}]),n}(ie),re=function(){return window.vungle.mraidExt},se=function(){return window.vungle.mraidBridgeExt};n(12),n(13);function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ce(){return(ce="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ue(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ue(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fe(e)););return e}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=fe(e);if(t){var o=fe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return pe(this,n)}}function pe(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(r,e);var t,n,i,o=de(r);function r(e){var t,n=e.selector;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).consentButton=null,t.noConsentButton=null,t.titleTextElement=null,t.bodyTextElement=null,t.bodyTextContainer=null,t.bodyTextTranslateY=0,t.resizeFinishedTimeout=null,t.mraidObject=new ie,t}return t=r,(n=[{key:"getDialog",value:function(){return this.dialog||(this.dialog=document.querySelector("".concat(this.selector," .dialog"))),this.dialog}},{key:"getConsentButton",value:function(){return this.consentButton||(this.consentButton=document.querySelector("".concat(this.selector," .consent-button button"))),this.consentButton}},{key:"getNoConsentButton",value:function(){return this.noConsentButton||(this.noConsentButton=document.querySelector("".concat(this.selector," .no-consent-button button"))),this.noConsentButton}},{key:"getTitleTextElement",value:function(){return this.titleTextElement||(this.titleTextElement=document.querySelector("".concat(this.selector," .title-text"))),this.titleTextElement}},{key:"getBodyTextContainer",value:function(){return this.bodyTextContainer||(this.bodyTextContainer=document.querySelector("".concat(this.selector," .body-text-container"))),this.bodyTextContainer}},{key:"getBodyTextElement",value:function(){return this.bodyTextElement||(this.bodyTextElement=document.querySelector("".concat(this.selector," .body-text"))),this.bodyTextElement}},{key:"setBodyText",value:function(){this.getBodyTextElement().innerHTML=this.mraidObject.consent.getConsentBodyText()}},{key:"setConsentText",value:function(){this.getConsentButton().innerHTML=this.mraidObject.consent.getConsentAcceptButtonText()}},{key:"setNoConsentText",value:function(){this.getNoConsentButton().innerHTML=this.mraidObject.consent.getConsentDenyButtonText()}},{key:"setTitleText",value:function(){this.getTitleTextElement().innerHTML=this.mraidObject.consent.getConsentTitleText()}},{key:"init",value:function(){this.initialized||(this.initialized=!0,this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)))}},{key:"show",value:function(){ce(fe(r.prototype),"show",this).call(this),this.setDialogHeight(),this.setBodyText(),this.setConsentText(),this.setNoConsentText(),this.setTitleText(),this.onConsentButtonClick=this.onConsentButtonClick.bind(this),this.onNoConsentButtonClick=this.onNoConsentButtonClick.bind(this),this.getConsentButton().addEventListener("click",this.onConsentButtonClick),this.getNoConsentButton().addEventListener("click",this.onNoConsentButtonClick),this.onViewportChange()}},{key:"hide",value:function(){ce(fe(r.prototype),"hide",this).call(this),this.getConsentButton().removeEventListener("click",this.onConsentButtonClick),this.getNoConsentButton().removeEventListener("click",this.onNoConsentButtonClick),this.eventDispatcher.unsubscribeAll(this._id),clearTimeout(this.resizeFinishedTimeout),this.resizeFinishedTimeout=null}},{key:"setDialogHeight",value:function(){var e=window.innerHeight/100,t=window.innerWidth/100;this.getDialog().style.height="".concat(100*e-15*t,"px")}},{key:"onConsentButtonClick",value:function(){this.hide(),this.mraidObject.VungleMRAIDBridgeExt.consentAction("opted_in"),this.eventDispatcher.publish("event.gdprConsent","opted_in")}},{key:"onNoConsentButtonClick",value:function(){this.hide(),this.mraidObject.VungleMRAIDBridgeExt.consentAction("opted_out"),this.eventDispatcher.publish("event.gdprConsent","opted_out")}},{key:"resizeInterval",value:function(){var e=this;this.resizeFinishedInterval&&(clearInterval(this.resizeFinishedInterval),this.resizeFinishedInterval=null),this.resizeFinishedInterval=setInterval((function(){e.setDialogHeight()}),10)}},{key:"resizeTimeout",value:function(){var e=this;this.resizeFinishedTimeout&&(clearTimeout(this.resizeFinishedTimeout),this.resizeFinishedTimeout=null),this.resizeFinishedTimeout=setTimeout((function(){e.setDialogHeight(),clearInterval(e.resizeFinishedInterval),e.resizeFinishedInterval=null}),1e3)}},{key:"onViewportChange",value:function(){this.setDialogHeight(),this.resizeInterval(),this.resizeTimeout()}}])&&le(t.prototype,n),i&&le(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function ye(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"getViewportSize",value:function(){var e=0,t=0;return"number"==typeof window.innerHeight?(e=window.innerWidth,t=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(t=document.documentElement.clientHeight,e=document.documentElement.clientWidth):document.body&&document.body.clientHeight&&(t=document.body.clientHeight,e=document.body.clientWidth),{width:e,height:t}}},{key:"elementAddClass",value:function(e,t){var n=e&&e.split(" ")||[];return-1===n.indexOf(t)&&n.push(t),n.join(" ")}},{key:"elementRemoveClass",value:function(e,t){var n=e&&e.split(" ")||[],i=n.indexOf(t);return-1!==i&&n.splice(i,1),n.join(" ")}},{key:"addMultiEventListener",value:function(e,t,n){var i,o,r=t.split(" ");for(o=0,i=r.length;o<i;o++)e.addEventListener(r[o],n,!1)}},{key:"elementHasClass",value:function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)".concat(t,"(\\s|$)")))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!this.elementHasClass(e,t););return e}}],(n=null)&&ye(t.prototype,n),i&&ye(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Oe(e);if(t){var o=Oe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Te(this,n)}}function Te(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(r,e);var t,n,i,o=Ee(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).loopVideo=!1,t.progressBar=null,t.muteIconContainer=null,t.duration=0,t.videoProgressBackgroundColor=null,t.videoProgressBarSpan=null,t.playPromise=null,t.muted=!0,t.paused=!1,t.playing=!1,t.supposedCurrentTime=0,t}return t=r,(n=[{key:"getMuteIconContainer",value:function(){return this.muteIconContainer||(this.muteIconContainer=document.querySelector(".mute-icon-container")),this.muteIconContainer}},{key:"getProgressBar",value:function(){return this.progressBar||(this.progressBar=document.querySelector(".progress-bar")),this.progressBar}},{key:"getVideoProgressBackgroundColor",value:function(){return this.videoProgressBackgroundColor||(this.videoProgressBackgroundColor=document.querySelector(".progress-bar").getAttribute("data-vgl-progress-background-color")),this.videoProgressBackgroundColor}},{key:"getVideoProgressBarSpan",value:function(){return this.videoProgressBarSpan||(this.videoProgressBarSpan=document.querySelector(".progress-bar span")),this.videoProgressBarSpan}},{key:"getOverlayController",value:function(){return this.overlayController||(this.overlayController=document.querySelector(".overlay-video-controller")),this.overlayController}},{key:"init",value:function(){this.initialized||(this.loopVideo=this.getElement().hasAttribute("loop"),this.addVideoListener(),this.addMuteUnmuteListener(),this.addOverlayControllerListener(),this.setProgressBar(),this.eventDispatcher.subscribe("event.playVideoFromTime",this.playFromTime.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.eventDispatcher.subscribe("event.playVideo",this.play.uuidBind(this)),this.eventDispatcher.subscribe("event.pauseVideo",this.pause.uuidBind(this)),this.initialized=!0)}},{key:"addVideoListener",value:function(){this.loopVideo&&this.getElement().removeAttribute("loop"),this.getElement().addEventListener("seeking",this.onVideoSeeking.bind(this)),this.getElement().addEventListener("ended",this.onVideoEnded.bind(this)),this.getElement().addEventListener("timeupdate",this.onVideoTimeUpdate.bind(this)),this.getElement().addEventListener("timeupdate",this.onVideoTimeCheckpoint.bind(this)),this.getElement().addEventListener("loadedmetadata",this.onVideoLoadedMetadata.bind(this)),this.getElement().addEventListener("durationchange",this.onVideoDurationChange.bind(this)),this.getElement().addEventListener("volumechange",this.onVideoVolumeChange.bind(this)),this.getElement().addEventListener("waiting",this.onVideoWaiting.bind(this)),this.getElement().addEventListener("suspend",this.onVideoSuspend.bind(this)),this.getElement().load()}},{key:"addMuteUnmuteListener",value:function(){var e=this,t=document.querySelector(".unmute-video-wrap"),n=document.querySelector(".mute-video-wrap");t.addEventListener("click",(function(){t.setAttribute("class",me.elementAddClass(t.className,"hidden")),n.setAttribute("class",me.elementRemoveClass(n.className,"hidden")),e.muteUnmute(!0),e.eventDispatcher.publish("event.videoSoundUpdate","mute")})),n.addEventListener("click",(function(){n.setAttribute("class",me.elementAddClass(n.className,"hidden")),t.setAttribute("class",me.elementRemoveClass(t.className,"hidden")),e.muteUnmute(!1),e.eventDispatcher.publish("event.videoSoundUpdate","unmute")}))}},{key:"addOverlayControllerListener",value:function(){var e=this;this.getOverlayController()&&this.getOverlayController().addEventListener("click",(function(){e.hideOverlayController(),e.play()}))}},{key:"positionOnWindows",value:function(){if(this.isWindows()){var e=Math.abs(window.innerHeight-window.outerHeight),t=this.getMuteIconContainer().getBoundingClientRect().top;this.getMuteIconContainer().setAttribute("class",me[e>5&&e<=20&&t<=40?"elementAddClass":"elementRemoveClass"](this.getMuteIconContainer().className,"windows-full-screen"))}}},{key:"isWindows",value:function(){return me.elementHasClass(document.querySelector("#dynamic"),"windows")}},{key:"setMuteIconContainer",value:function(){this.getMuteIconContainer().setAttribute("class",me.elementRemoveClass(this.getMuteIconContainer().className,"windows-full-screen")),this.getMuteIconContainer().style.marginLeft="",this.getMuteIconContainer().style.marginTop="",this.getProgressBar().style.marginLeft="",this.videoRatio=this.getElement().videoWidth/this.getElement().videoHeight,this.videoOffsetWidth=this.getElement().offsetWidth,this.videoOffsetHeight=this.getElement().offsetHeight,this.elementRatio=this.videoOffsetWidth/this.videoOffsetHeight,this.elementRatio>this.videoRatio?(this.videoOffsetWidth=this.videoOffsetHeight*this.videoRatio,this.getMuteIconContainer().style.marginLeft="".concat((this.getElement().clientWidth-this.videoOffsetWidth)/2,"px")):(this.videoOffsetHeight=this.videoOffsetWidth/this.videoRatio,this.getMuteIconContainer().style.marginTop="".concat((this.getElement().clientHeight-this.videoOffsetHeight)/2,"px")),this.getProgressBar().style.width="".concat(this.videoOffsetWidth,"px"),this.getProgressBar().style.marginLeft=this.getMuteIconContainer().style.marginLeft,this.positionOnWindows()}},{key:"show",value:function(){}},{key:"hide",value:function(){this.pause()}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"pause",value:function(){var e=this;if(!this.paused){this.clearCheckIfPayingInterval();var t=function(){!e.getElement().paused&&e.getElement().pause(),e.paused=!0,e.eventDispatcher.publish("event.videoStateChanged","pause")};this.playPromise?this.playPromise.then(t):t()}}},{key:"play",value:function(){var e=this;if(this.paused){this.clearCheckIfPayingInterval();var t=function(){e.paused=!1,e.checkIfPlaying(),e.eventDispatcher.publish("event.videoStateChanged","play")};this.playPromise=this.getElement().play(),G()===X.Android&&Object(M.satisfies)(q(),"<=19")&&(this.getElement().pause(),this.getElement().muted=this.muted,this.getElement().offsetHeight,this.playPromise=this.getElement().play()),this.playPromise?this.playPromise.then(t).catch(t):t()}}},{key:"checkIfPlaying",value:function(){var e=this;if(this.duration){var t=0,n=this.getElement().currentTime;this.clearCheckIfPayingInterval(),this.checkIfPayingInterval=setInterval((function(){if(e.getElement().currentTime===n)return e.paused=!0,t>=4?(t=0,e.clearCheckIfPayingInterval(),e.showOverlayController(),void e.eventDispatcher.publish("event.videoStateChanged","pause")):(t++,e.hideOverlayController(),void(e.playPromise=e.getElement().play()));t=0,e.paused=!1,e.clearCheckIfPayingInterval(),e.hideOverlayController()}),250)}}},{key:"clearCheckIfPayingInterval",value:function(){this.checkIfPayingInterval&&(clearInterval(this.checkIfPayingInterval),this.checkIfPayingInterval=null)}},{key:"playFromTime",value:function(e){this.getElement().currentTime=e}},{key:"progressBarUpdate",value:function(e){e.duration>=0&&(document.querySelector(".progress-bar span").style.width="".concat(e.currentTime/e.duration*100,"%"))}},{key:"showOverlayController",value:function(){this.playing=!1,this.getOverlayController()&&(this.eventDispatcher.publish("event.videoViewed",{currentTime:.1}),this.getOverlayController().setAttribute("class",me.elementRemoveClass(this.overlayController.className,"hide")))}},{key:"hideOverlayController",value:function(){this.playing=!0,this.getOverlayController()&&this.getOverlayController().setAttribute("class",me.elementAddClass(this.overlayController.className,"hide"))}},{key:"onViewportChange",value:function(){this.setMuteIconContainer()}},{key:"onVideoEnded",value:function(){this.loopVideo?(this.supposedCurrentTime=0,this.getElement().play()):this.eventDispatcher.publish("event.videoPlayComplete")}},{key:"onVideoTimeCheckpoint",value:function(){this.eventDispatcher.publish("event.videoPlayCheckpoint",{currentTime:this.getElement().currentTime,duration:this.getElement().duration})}},{key:"onVideoTimeUpdate",value:function(){this.eventDispatcher.publish("event.videoPlayTimeupdate",{currentTime:this.getElement().currentTime,duration:this.getElement().duration}),this.supposedCurrentTime=this.getElement().currentTime,this.getProgressBar()&&this.progressBarUpdate(this.getElement()),this.playing||this.hideOverlayController()}},{key:"setInitialMuteValue",value:function(){this.setMuteTokenValue(),this.setMuteUnmuteTheme(),this.setMuteIconContainer()}},{key:"onVideoVolumeChange",value:function(){}},{key:"onVideoSeeking",value:function(){var e=this.getElement().currentTime-this.supposedCurrentTime;Math.abs(e)>.01&&(this.getElement().pause(),this.getElement().currentTime=this.supposedCurrentTime)}},{key:"onVideoWaiting",value:function(){this.eventDispatcher.publish("event.videoBuffering")}},{key:"onVideoSuspend",value:function(){this.eventDispatcher.publish("event.videoSuspend")}},{key:"onVideoLoadedMetadata",value:function(){this.pause(),this.setInitialMuteValue(),this.play()}},{key:"onVideoDurationChange",value:function(){this.duration=this.getElement().duration,this.eventDispatcher.publish("event.videoMetadataAvailable",{height:this.getElement().videoHeight,width:this.getElement().videoWidth,duration:this.getElement().duration}),this.setInitialMuteValue()}},{key:"getMuteTokenValue",value:function(){return"true"===this.getMuteIconContainer().getAttribute("data-vgl-start-muted")}},{key:"muteUnmute",value:function(e){this.getElement().muted=e,this.muted=e}},{key:"setMuteTokenValue",value:function(){this.muteUnmute(this.getMuteTokenValue())}},{key:"setMuteUnmuteTheme",value:function(){var e=this.getMuteTokenValue(),t=document.querySelector(".unmute-video-wrap"),n=document.querySelector(".mute-video-wrap"),i=this.getMuteIconContainer();e?n.setAttribute("class",me.elementRemoveClass(n.className,"hidden")):t.setAttribute("class",me.elementRemoveClass(t.className,"hidden")),i.setAttribute("class",me.elementAddClass(i.className,e?"unmute-video":"mute-video"))}},{key:"setProgressBar",value:function(){"false"===this.getElement().getAttribute("data-vgl-video-timer")?this.getProgressBar().style.visibility="hidden":this.getVideoProgressBarSpan().style.background=this.getVideoProgressBackgroundColor()}}])&&be(t.prototype,n),i&&be(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function ke(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var De=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timerId=null,this.start=null,this.remaining=n,this.callback=t,this.timerState=null,this.resume()}var t,n,i;return t=e,(n=[{key:"pause",value:function(){this.timerState="pause",window.clearTimeout(this.timerId),this.remaining-=new Date-this.start}},{key:"resume",value:function(){"resume"!==this.timerState&&(this.start=new Date,window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.callback,this.remaining)),this.timerState="resume"}}])&&ke(t.prototype,n),i&&ke(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Se="event.endcardView",Ie="event.downloadButtonClick",Ae="event.downloadButtonClickWithValue",Be="event.videoPlayTimeupdate",xe="event.installButtonClick",Pe="event.videoSoundUpdate",Re="event.videoViewed",_e="event.videoPageClose",Ve="event.videoPlayCheckpoint",Le="event.privacyButtonClick",Ne="event.closeButtonPaddingClick",Me="event.storeKitOverlayAutoOpen",je="event.closeButtonContentClick",ze="closeButtonClick",Ue="nearCloseButtonClick",He="video.close",Fe="video.mute",Xe="video.unmute",Ye="download.ctaClick",qe="download.fullScreenClick",We="clickUrl",Ge="postroll.click",Ke="postroll.view",$e="muteButtonClick",Ze="privacyButtonClick",Je="storeKitOverlay.autoOpen.storeEndcardTimer";function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function nt(e,t,n){return t&&tt(e.prototype,t),n&&tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function it(){return(it="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=ot(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function ot(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ct(e)););return e}function rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=ct(e);if(t){var o=ct(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ut=function(e){rt(n,e);var t=at(n);function n(e){var i=e.selector,o=e.isIncentivized;return et(this,n),t.call(this,{selector:i,isIncentivized:o})}return nt(n,[{key:"init",value:function(){!this.initialized&&this.isWindows()&&this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),it(ct(n.prototype),"init",this).call(this),window.vungle.flexFeed&&(this.getElement().style.visibility="hidden")}},{key:"isWindows",value:function(){return me.elementHasClass(document.querySelector("#dynamic"),"windows")}},{key:"positionOnWindows",value:function(){this.isWindows()&&this.onViewportChange()}},{key:"onClick",value:function(){this.eventDispatcher.publish(Ne),this.eventDispatcher.publish("event.closeButtonClick")}},{key:"onViewportChange",value:function(){var e=Math.abs(window.innerHeight-window.outerHeight);this.getElement().setAttribute("class",me[e>5&&e<=20?"elementAddClass":"elementRemoveClass"](this.getElement().className,"windows-full-screen"))}}]),n}(I),ht=function(e){rt(n,e);var t=at(n);function n(e){var i=e.selector,o=e.isIncentivized;return et(this,n),t.call(this,{selector:i,isIncentivized:o})}return nt(n,[{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.positionOnWindows(),t)window.vungle.flexFeed||it(ct(n.prototype),"show",this).call(this);else{var i=this.getShowDelayMilliseconds();"number"==typeof i?window.vungle.flexFeed||(0===i?it(ct(n.prototype),"show",this).call(this):(this.hide(),setTimeout((function(){it(ct(n.prototype),"show",e).call(e),e.showDelayMilliseconds=0}),i))):this.hide()}}}]),n}(ut),dt=function(e){rt(n,e);var t=at(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=e.updateCountdownEvent,a=void 0===s?null:s,l=e.pausePlayCountdownCustom,c=void 0===l?{event:null,play:"play",pause:"pause"}:l;return et(this,n),(i=t.call(this,{selector:o,isIncentivized:r})).updateCountdownEvent=a,i.pausePlayCountdownCustom=c,i}return nt(n,[{key:"init",value:function(){this.getButtonContainer().addEventListener("click",this.onButtonContainerClick.bind(this)),this.eventDispatcher.subscribe("event.videoStateChanged",this.onPausePlayCountdownEvent.bind(this)),it(ct(n.prototype),"init",this).call(this)}},{key:"getShowCountdownTimer",value:function(){return this.showCountdownTimer||(this.showCountdownTimer="true"===(this.getElement().getAttribute("data-vgl-show-countdown-timer")||"false")),this.showCountdownTimer}},{key:"getButtonCountdownText",value:function(){return this.buttonCountdownText||(this.buttonCountdownText=this.getElement().querySelector(".close-btn-text")),this.buttonCountdownText}},{key:"getButtonContainer",value:function(){return this.buttonContainer||(this.buttonContainer=this.getElement().querySelector(".close-btn-container")),this.buttonContainer}},{key:"onButtonContainerClick",value:function(e){e.stopPropagation(),this.eventDispatcher.publish("event.closeButtonClick"),this.eventDispatcher.publish(je)}},{key:"showHideButtonContainer",value:function(e){this.getButtonContainer().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getButtonContainer().className,"hide"))}},{key:"showHideButtonCountdownText",value:function(e){this.showCountdownTimer||(e=!1),this.getButtonCountdownText().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getButtonCountdownText().className,"hide"))}},{key:"enableDisableClick",value:function(e){this.getElement().setAttribute("class",me[e?"elementRemoveClass":"elementAddClass"](this.getElement().className,"disable-click"))}},{key:"startVirtualCountdown",value:function(e){var t=this,i=Math.round(e/1e3);i<=0||this.showDelayMilliseconds<=0?this.showAndEnableCloseButton(250):(this.showCountdownTimer&&(this.enableDisableClick(!1),this.showHideButtonContainer(!1),this.showHideButtonCountdownText(!0),this.getButtonCountdownText().textContent=i,it(ct(n.prototype),"show",this).call(this)),this.countdownInterval=new De((function(){e-=1e3,t.startVirtualCountdown(e)}),1e3))}},{key:"onUpdateCountdownEvent",value:function(e){var t=e.duration,i=void 0===t?null:t,o=e.currentTime,r=void 0===o?null:o;if("number"==typeof i&&!isNaN(i)){var s=i;"number"==typeof this.showDelayMilliseconds&&this.showDelayMilliseconds/1e3<i&&(s=this.showDelayMilliseconds/1e3);var a=Math.round(s-r);if(a<=0)return this.unsubscribeOnUpdateCountdownEvent(),void this.showAndEnableCloseButton(1e3*Math.abs(s-r)+250);this.showCountdownTimer&&(this.enableDisableClick(!1),this.showHideButtonContainer(!1),this.showHideButtonCountdownText(!0),this.getButtonCountdownText().textContent=a,it(ct(n.prototype),"show",this).call(this))}}},{key:"unsubscribeOnUpdateCountdownEvent",value:function(){this.eventDispatcher.unsubscribe(this.updateCountdownEvent,this.onUpdateCountdownEvent)}},{key:"showAndEnableCloseButton",value:function(e){var t=this;this.showHideButtonCountdownText(!1),this.showDelayMilliseconds=0,it(ct(n.prototype),"hide",this).call(this),setTimeout((function(){t.enableDisableClick(!0),t.showHideButtonContainer(!0),it(ct(n.prototype),"show",t).call(t)}),e)}},{key:"listenToUpdateCountdownEvent",value:function(){this.updateCountdownEvent&&this.eventDispatcher.subscribe(this.updateCountdownEvent,this.onUpdateCountdownEvent.uuidBind(this))}},{key:"listenToPausePlayCountdownEvent",value:function(){this.pausePlayCountdownCustom&&this.pausePlayCountdownCustom.event&&this.eventDispatcher.subscribe(this.pausePlayCountdownCustom.event,this.onPausePlayCountdownEvent.uuidBind(this))}},{key:"onPausePlayCountdownEvent",value:function(e){this.countdownInterval&&(e!==this.pausePlayCountdownCustom.pause&&"pause"!==e?this.countdownInterval.resume():this.countdownInterval.pause())}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.positionOnWindows(),e)window.vungle.flexFeed||(this.showDelayMilliseconds=0,this.updateCountdownEvent&&(this.unsubscribeOnUpdateCountdownEvent(),this.showAndEnableCloseButton()),this.enableDisableClick(!0),this.showHideButtonCountdownText(!1),this.showHideButtonContainer(!0),it(ct(n.prototype),"show",this).call(this));else if(this.hide(),this.getShowCountdownTimer(),this.enableDisableClick(!1),this.showHideButtonCountdownText(!1),this.showHideButtonContainer(!1),!window.vungle.flexFeed){var t=this.getShowDelayMilliseconds();"number"==typeof t?0===t?(this.enableDisableClick(!0),this.showHideButtonContainer(!0),it(ct(n.prototype),"show",this).call(this)):this.updateCountdownEvent?this.listenToUpdateCountdownEvent():(this.listenToPausePlayCountdownEvent(),this.startVirtualCountdown(t)):this.updateCountdownEvent&&this.listenToUpdateCountdownEvent()}}}]),n}(ut);function pt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ft(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var vt={DownloadButton:new(ft((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.HardHide=null,this.IncentivizedTimeout=null})))};function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function bt(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wt(){return(wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Et(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Et(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=St(e)););return e}function Tt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}function Ot(e,t){return(Ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return kt(this,n)}}function kt(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var It=function(e){Tt(n,e);var t=Ct(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=void 0!==r&&r,a=e.buttonColor,l=void 0===a?null:a;mt(this,n);var c=Dt(i=t.call(this,{selector:o,isIncentivized:s}));return i.uri=i.getElement().getAttribute("data-vgl-uri"),i.appStoreId=i.getElement().getAttribute("data-vgl-app-store-id")||i.getApiIdFromUrl(),i.buttonColor=l,i.mraidObject=new ie,i.isIncentivized&&!i.mraidObject.VungleMRAIDVersion&&(-1!==["ios"].indexOf(i.mraidObject.os)&&(i.hardHideDownload=new Bt({selector:c.selector})),-1!==["ios","android"].indexOf(i.mraidObject.os)&&(i.incentivizedTimeoutDownload=new xt({selector:c.selector}))),i}return bt(n,[{key:"clazz",get:function(){return"DownloadButton"}},{key:"destroy",value:function(){this.hardHideDownload&&this.hardHideDownload.destroy(),this.incentivizedTimeoutDownload&&this.incentivizedTimeoutDownload.destroy(),wt(St(n.prototype),"destroy",this).call(this)}},{key:"getApiIdFromUrl",value:function(){if(!this.uri)return null;var e=this.uri.match(/\/id([0-9]*)/i);return e&&e[1]?e[1]:null}},{key:"init",value:function(){this.initialized||(wt(St(n.prototype),"init",this).call(this),this.hardHideDownload&&this.hardHideDownload.init(),this.incentivizedTimeoutDownload&&this.incentivizedTimeoutDownload.init(),this.buttonColor&&(this.getElement().style.backgroundColor=this.buttonColor),this.initialized=!0)}},{key:"onClick",value:function(e){e.stopPropagation(),this.eventDispatcher.publish("event.downloadButtonClick",{uri:this.uri,appStoreId:this.appStoreId,type:"cta"})}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)wt(St(n.prototype),"show",this).call(this);else{var i=this.getShowDelayMilliseconds();"number"==typeof i?0===i?wt(St(n.prototype),"show",this).call(this):(this.hide(),setTimeout((function(){wt(St(n.prototype),"show",e).call(e),e.showDelayMilliseconds=0}),i)):this.hide()}}}]),n}(I),At=function(e){Tt(n,e);var t=Ct(n);function n(e){var i,o=e.selector,r=e.isIncentivized,s=void 0!==r&&r;return mt(this,n),(i=t.call(this,{selector:o,isIncentivized:s})).isEnabled="true"===i.getElement().getAttribute("data-vgl-full-cta"),i}return bt(n,[{key:"onAdViewableChanged",value:function(e){var t=this;"deny"!==vt.DownloadButton.HardHide?setTimeout((function(){t.getElement().setAttribute("class",me["maximized"===e?"elementRemoveClass":"elementAddClass"](t.getElement().className,"hide"))})):this.destroy()}},{key:"init",value:function(){this.initialized||(wt(St(n.prototype),"init",this).call(this),this.isEnabled&&this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged.uuidBind(this)),this.initialized=!0)}},{key:"onClick",value:function(){this.eventDispatcher.publish("event.downloadButtonClick",{uri:this.uri,appStoreId:this.appStoreId,type:"fsc"})}}]),n}(It),Bt=function(e){Tt(n,e);var t=Ct(n);function n(e){var i=e.selector;return mt(this,n),t.call(this,i)}return bt(n,[{key:"bury",value:function(){this.hide(),this.getElement().setAttribute("class",me.elementAddClass(this.getElement().className,"hide"))}},{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"onHardHideDownloadButton",value:function(){this.bury()}},{key:"init",value:function(){this.initialized||("deny"===vt.DownloadButton.HardHide?this.bury():this.eventDispatcher.subscribe("event.hardHideDownloadButton",this.onHardHideDownloadButton.uuidBind(this)),this.initialized=!0)}}]),n}(E),xt=function(e){Tt(n,e);var t=Ct(n);function n(e){var i=e.selector;return mt(this,n),t.call(this,i)}return bt(n,[{key:"destroy",value:function(){this.eventDispatcher.unsubscribeAll(this._id)}},{key:"isOnClickDisabled",value:function(){return me.elementHasClass(this.getElement(),"disable-cta")}},{key:"isDelayedShown",value:function(){return me.elementHasClass(this.getElement(),"cta-delay-show")}},{key:"activateClick",value:function(){this.getElement().setAttribute("class",me.elementRemoveClass(this.getElement().className,"disable-cta"))}},{key:"deactivateClick",value:function(){this.getElement().setAttribute("class",me.elementAddClass(this.getElement().className,"disable-cta"))}},{key:"onVideoPlayTimeupdate",value:function(e){this.deactivateClick();var t=e.duration,n=e.currentTime;if("number"==typeof t&&!isNaN(t)){var i=Math.ceil(80*t/100),o=Math.round(i-n);if(!(o<=0)){var r=this.getElement().querySelector(".cta-button__timer"),s=this.getElement().querySelector(".cta-button__text"),a=this.getElement().querySelector(".cta-button__icon");s&&s.setAttribute("class",me.elementAddClass(s.className,"hide")),a&&a.setAttribute("class",me.elementAddClass(a.className,"hide")),r.setAttribute("class",me.elementRemoveClass(r.className,"hide")),r.innerHTML=o}}}},{key:"onSuccessfulViewAdReached",value:function(){if(this.activateClick(),this.isDelayedShown()){this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoPlayTimeupdate);var e=this.getElement().querySelector(".cta-button__timer"),t=this.getElement().querySelector(".cta-button__text"),n=this.getElement().querySelector(".cta-button__icon");t&&t.setAttribute("class",me.elementRemoveClass(t.className,"hide")),n&&n.setAttribute("class",me.elementRemoveClass(n.className,"hide")),e.setAttribute("class",me.elementAddClass(e.className,"hide"))}}},{key:"init",value:function(){if(!this.initialized){if("dismissed"===vt.DownloadButton.IncentivizedTimeout)this.destroy();else if(this.deactivateClick(),this.eventDispatcher.subscribe("event.successfulViewAdReached",this.onSuccessfulViewAdReached.uuidBind(this)),this.eventDispatcher.subscribe("event.dismissIncentivizedAdPage",this.onSuccessfulViewAdReached.uuidBind(this)),this.isDelayedShown()){var e=this.getElement().querySelector(".cta-button__timer"),t=this.getElement().querySelector(".cta-button__text"),n=this.getElement().querySelector(".cta-button__icon");t&&t.setAttribute("class",me.elementAddClass(t.className,"hide")),n&&n.setAttribute("class",me.elementAddClass(n.className,"hide")),e.setAttribute("class",me.elementAddClass(e.className,"hide")),this.eventDispatcher.subscribe("event.videoPlayTimeupdate",this.onVideoPlayTimeupdate.uuidBind(this))}this.initialized=!0}}}]),n}(E);function Pt(e){return(Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Nt(e);if(t){var o=Nt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){if(t&&("object"===Pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_t(e,t)}(r,e);var t,n,i,o=Vt(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).privacyButton=null,t.privacyURI=null,t.showLockIconMilliseconds=3e3,t.timer=null,t.subTimer=null,t}return t=r,(n=[{key:"getPrivacyButton",value:function(){return this.privacyButton||(this.privacyButton=document.querySelector(this.selector)),this.privacyButton}},{key:"getPrivacyURI",value:function(){return this.privacyURI||(this.privacyURI=this.getElement().getAttribute("data-vgl-uri")),this.privacyURI}},{key:"init",value:function(){this.initialized||(this.getPrivacyButton().addEventListener("click",this.onPrivacyButtonClick.bind(this)),this.initialized=!0)}},{key:"reset",value:function(){var e=this;clearTimeout(this.timer),this.timer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementRemoveClass(e.getPrivacyButton().className,"extended")),e.subTimer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementRemoveClass(e.getPrivacyButton().className,"reverse"))}),500)}),this.showLockIconMilliseconds),this.subTimer=setTimeout((function(){e.getPrivacyButton().setAttribute("class",me.elementAddClass(e.getPrivacyButton().className,"reverse"))}),1e3)}},{key:"shortenPrivacyButton",value:function(){this.getPrivacyButton().setAttribute("class",me.elementAddClass(this.getPrivacyButton().className,"extended")),this.reset()}},{key:"isExtended",value:function(){return me.elementHasClass(this.getPrivacyButton(),"extended")}},{key:"onPrivacyButtonClick",value:function(){this.isExtended()&&this.eventDispatcher.publish("event.alertPrivacy"),this.shortenPrivacyButton()}}])&&Rt(t.prototype,n),i&&Rt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);var jt=n(2);function zt(e){return function(e){if(Array.isArray(e))return Ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ft=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.dataAttrStr="data-vgl-tabindex",this.clickable=["Video"];var t=this.forwardKeys=["Tab","ArrowRight","Right","ArrowUp","Up"],n=this.backwardKeys=["Shift+Tab","ArrowLeft","Left","ArrowDown","Down"],i=this.navKeys=[].concat(t,n),o=this.submitKeys=["Enter"],r=this.closeKeys=[];this.allKeys=[].concat(o,r,zt(i)),this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.dialogBoxObject=null}var t,n,i;return t=e,(n=[{key:"getViewHolder",value:function(){return this.viewName?(this.viewHolder||(this.viewHolder=document.querySelector("#".concat(this.viewName))),this.viewHolder):null}},{key:"getIndxEle",value:function(e,t){var n=this.getTabIndex(e);return e.querySelector("*[".concat(this.dataAttrStr,'="').concat(n[t],'"]'))}},{key:"getIndexedElements",value:function(e){return e.querySelectorAll("*[".concat(this.dataAttrStr,"]"))}},{key:"getTabIndex",value:function(e){var t=this;return[].filter.call(this.getIndexedElements(e),(function(e){if(t.isVisible(e))return e})).map((function(e){return parseInt(e.getAttribute(t.dataAttrStr),10)})).sort((function(e,t){return e-t}))}},{key:"init",value:function(){this.initialized||(this.onBodyTouch=this.onBodyTouch.uuidBind(this),this.onDialogBoxShow=this.onDialogBoxShow.uuidBind(this),this.onDialogBoxHide=this.onDialogBoxHide.uuidBind(this),this.onAdViewableChanged=this.onAdViewableChanged.uuidBind(this),this.onKeyDown=this.onKeyDown.uuidBind(this),this.onShowPage=this.onShowPage.uuidBind(this),window.addEventListener("keydown",this.onKeyDown,!0),document.body.addEventListener(jt.eventStart,this.onBodyTouch),this.eventDispatcher.subscribe("event.dialogBoxShow",this.onDialogBoxShow),this.eventDispatcher.subscribe("event.dialogBoxHide",this.onDialogBoxHide),this.eventDispatcher.subscribe("event.showPage",this.onShowPage),this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged),this.initialized=!0)}},{key:"onShowPage",value:function(e){var t=this;this.initialized&&(this.dialogBoxIndx=-1,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.viewHolder=null,this.viewName=null,this.closeButtonObject=e.getCloseButtonObject(),this.gdprDialogBoxObject=e.getGDPRDialogBoxObject(),this.dialogBoxObject=null,document.activeElement.blur(),setTimeout((function(){t.setTabIndexes(),t.viewName=e.viewName})))}},{key:"setTabIndexes",value:function(){if(!this.isTabbed){var e=this;[].forEach.call(this.getIndexedElements(document.body),(function(t){t.setAttribute("tabindex",parseInt(t.getAttribute(e.dataAttrStr),10))})),this.isTabbed=!0}}},{key:"blurCurrentElement",value:function(){var e=this;setTimeout((function(){document.activeElement.blur(),e.getViewHolder()&&e.getViewHolder().click()}))}},{key:"isVisible",value:function(e){return"visible"===window.getComputedStyle(e).getPropertyValue("visibility")&&e.offsetHeight}},{key:"focusOn",value:function(e,t){var n=this.getIndxEle(e,t);n&&n.focus()}},{key:"clickOn",value:function(e,t){var n=this.getIndxEle(e,t);n&&n.click()}},{key:"keyPressed",value:function(e,t,n,i,o,r){var s=this.getTabIndex(n);if(s.length)return o=o||function(){},r=r||function(){},-1!==this.closeKeys.indexOf(t)?(r(),i):-1!==this.submitKeys.indexOf(t)&&-1!==i?(this.clickOn(n,i),o(),i):(-1!==this.navKeys.indexOf(t)&&i<=-1?i=0:-1!==this.forwardKeys.indexOf(t)?i=i===s.length-1?0:i+1:-1!==this.backwardKeys.indexOf(t)&&(i=i<=0?s.length-1:i-1),this.focusOn(n,i,s),i)}},{key:"onKeyDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.key;if("Tab"===e.key&&e.shiftKey&&(t="Shift+".concat(e.key)),-1!==this.allKeys.indexOf(t)&&this.getViewHolder()){var n=this;if(this.dialogBoxObject&&this.dialogBoxObject.isVisible())return this.dialogBoxIndx=this.keyPressed(e,t,this.dialogBoxObject.getElement(),this.dialogBoxIndx,(function(){}),(function(){n.dialogBoxObject.isVisible()&&n.dialogBoxObject.getContinueButton().click()}));if(this.gdprDialogBoxObject&&this.gdprDialogBoxObject.isVisible())return this.gdprDialogBoxIndx=this.keyPressed(e,t,this.gdprDialogBoxObject.getElement(),this.gdprDialogBoxIndx,(function(){n.viewFocusIndx=-1,n.gdprDialogBoxIndx=-1,n.dialogBoxIndx=-1,n.blurCurrentElement()}));this.gdprDialogBoxIndx=-1,this.dialogBoxObject=null,this.dialogBoxIndx=-1,-1!==this.clickable.indexOf(this.viewName)&&this.getViewHolder().offsetHeight&&this.getViewHolder().offsetWidth&&-1===this.viewFocusIndx&&this.getViewHolder().click(),this.viewFocusIndx=this.keyPressed(e,t,this.getViewHolder(),this.viewFocusIndx,(function(){}),(function(){n.closeButtonObject&&n.closeButtonObject.isVisible()&&n.closeButtonObject.getElement().click()}))}}},{key:"onBodyTouch",value:function(){this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onDialogBoxShow",value:function(e){this.dialogBoxObject=e,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onDialogBoxHide",value:function(){this.dialogBoxObject=null,this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement()}},{key:"onAdViewableChanged",value:function(e){"minimized"===e&&(this.viewFocusIndx=-1,this.gdprDialogBoxIndx=-1,this.dialogBoxIndx=-1,this.blurCurrentElement())}}])&&Ht(t.prototype,n),i&&Ht(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Kt(e);if(t){var o=Kt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(r,e);var t,n,i,o=Wt(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,n)).viewName=i,t.viewIndex=s,t.ctaBackgroundColor=null,t.gdprDialogBoxObject=null,t.closeButtonObject=null,t.privacyButtonObject=null,t.privacyDialogBoxObject=null,t.dialogboxSelector="#DIALOGBOX",t.gdprDialogboxSelector="#GDPRDialogBox",t.isIncentivizedAd=l,t.appInfo=null,t.ctaInfo=null,t.incentivizedDialogBoxObject=null,t.incentivizedTitleText=document.getElementById("incentivized-title-text").innerHTML,t.incentivizedBodyText=document.getElementById("incentivized-body-text").innerHTML,t.incentivizedPrimaryText=document.getElementById("incentivized-primary-text").innerHTML,t.incentivizedSecondaryText=document.getElementById("incentivized-secondary-text").innerHTML,t.getElement().style.display="none",t}return t=r,(n=[{key:"privacyBodyText",get:function(){return document.getElementById("privacy-body-text").innerHTML}},{key:"privacyPrimaryText",get:function(){return document.getElementById("privacy-primary-text").innerHTML}},{key:"privacySecondaryText",get:function(){return document.getElementById("privacy-secondary-text").innerHTML}},{key:"clazz",get:function(){return"AbstractPageView"}},{key:"getIncentivizedDialogBoxObject",value:function(){return this.incentivizedDialogBoxObject||(this.incentivizedDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),titleText:this.incentivizedTitleText,bodyText:this.incentivizedBodyText,primaryText:this.incentivizedPrimaryText,secondaryText:this.incentivizedSecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.incentivizedDialogBoxSecondaryButtonClick"})),this.incentivizedDialogBoxObject}},{key:"getGDPRDialogBoxObject",value:function(){return this.gdprDialogBoxObject||(this.gdprDialogBoxObject=new ve({selector:this.gdprDialogboxSelector})),this.gdprDialogBoxObject}},{key:"init",value:function(){this.initialized||(this.eventDispatcher.subscribe("event.alertPrivacy",this.onAlertPrivacy.uuidBind(this)),this.initialized=!0)}},{key:"show",value:function(){this.getElement().style.display="block";var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e),this.eventDispatcher.publish("event.showPage",this)}},{key:"onDialogBoxPrimaryButtonClick",value:function(){this.eventDispatcher.publish("event.resumeAdExperience")}},{key:"onIncentivizedDialogBoxSecondaryButtonClick",value:function(){this.eventDispatcher.publish("event.dismissPage")}},{key:"hide",value:function(){this.getElement().style.display="none",this.eventDispatcher.unsubscribeAll(this._id),this.eventDispatcher.publish("event.hidePage",this)}},{key:"getCTABackgroundColor",value:function(){return this.ctaBackgroundColor||(this.ctaBackgroundColor=this.getElement().getAttribute("data-vgl-cta-background-color")),this.ctaBackgroundColor}},{key:"getFullCTAObject",value:function(){return this.fullCtaObject||(this.fullCtaObject=new At({selector:"#".concat(this.viewName," .overlay-cta"),isIncentivized:this.isIncentivizedAd})),this.fullCtaObject}},{key:"getCTAButtonObject",value:function(){return this.ctaButtonObject||(this.ctaButtonObject=new It({selector:"#".concat(this.viewName," .cta-button"),buttonColor:this.getCTABackgroundColor(),isIncentivized:this.isIncentivizedAd})),this.ctaButtonObject}},{key:"getCloseButtonObject",value:function(){return this.closeButtonObject||(this.closeButtonObject=new ht({selector:"#".concat(this.viewName," .close"),isIncentivized:this.isIncentivizedAd})),this.closeButtonObject}},{key:"getPrivacyButtonObject",value:function(){return this.privacyButtonObject||(this.privacyButtonObject=new Mt("#".concat(this.viewName," .privacy-button"))),this.privacyButtonObject}},{key:"getPrivacyDialogBoxObject",value:function(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogSecondaryButtonClick"})),this.privacyDialogBoxObject}},{key:"onAlertPrivacy",value:function(){this.getPrivacyDialogBoxObject().show()}},{key:"onCloseButtonClick",value:function(){this.eventDispatcher.publish("event.dismissPage")}},{key:"onPrivacyDialogBoxSecondaryButtonClick",value:function(){var e=this.getPrivacyButtonObject().getPrivacyURI();this.eventDispatcher.publish("event.privacyButtonClick",e)}},{key:"getAppInfo",value:function(){return this.appInfo||(this.appInfo=document.querySelector("#".concat(this.viewName," .app-info"))),this.appInfo}},{key:"getCTAInfo",value:function(){return this.ctaInfo||(this.ctaInfo=document.querySelector("#".concat(this.viewName," .cta-info"))),this.ctaInfo}},{key:"onViewportChange",value:function(){}}])&&Yt(t.prototype,n),i&&Yt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(E);function Zt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Jt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.checkpoints=[0,25,50,75,100],this.checkpointsReached=[],this.successfulViewAd=80,this.successfulViewAdReached=!1,this.videoViewedPerSecond=0,this.mraid=new ie,this.apiMap=null}var t,n,i;return t=e,(n=[{key:"init",value:function(e){this.apiMap=e,this.checkpointsReached.length=this.checkpoints.length,this.eventDispatcher.subscribe(Se,this.onEndcardView.uuidBind(this)),this.eventDispatcher.subscribe(_e,this.onVideoPageClose.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.onDownloadButtonClickTPAT.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.onDownloadButtonClickReportAd.uuidBind(this)),this.eventDispatcher.subscribe(Ie,this.reportCtaClick.uuidBind(this)),this.eventDispatcher.subscribe(Ae,this.onDownloadButtonClickWithValue.uuidBind(this)),this.eventDispatcher.subscribe(Ve,this.onVideoCheckpoint.uuidBind(this)),this.eventDispatcher.subscribe(Be,this.onSuccessfulViewAd.uuidBind(this)),this.eventDispatcher.subscribe(Be,this.onVideoLength.uuidBind(this)),this.eventDispatcher.subscribe(xe,this.onDirectDownloadClickTPAT.uuidBind(this)),this.eventDispatcher.subscribe(xe,this.onDirectDownloadClickReportAd.uuidBind(this)),this.eventDispatcher.subscribe(Pe,this.onVideoSoundUpdate.uuidBind(this)),this.eventDispatcher.subscribe(Re,this.onVideoViewed.uuidBind(this)),this.eventDispatcher.subscribe(je,this.reportCloseButtonContentClick.uuidBind(this)),this.eventDispatcher.subscribe(Ne,this.notifyCloseButtonPaddingClicked.uuidBind(this)),this.eventDispatcher.subscribe(Le,this.firePrivacyButtonClickTpatEvent.uuidBind(this)),this.eventDispatcher.subscribe(Me,this.fireStoreKitOverlayAutoOpenTpatEvent.uuidBind(this))}},{key:"fireTpat",value:function(e){var t=[ze,Ue,Ye,qe,$e,Ze,Je],n="ios"===this.os;t.includes(e)&&!n||this.apiMap.tpat&&this.apiMap.tpat(e)}},{key:"toVideoCheckpointsIndex",value:function(e,t){var n=100*(t-e<=.5?1:(Math.floor(e/t*4)/4).toFixed(2));return 0===n?0:25===n?1:50===n?2:75===n?3:100===n?4:void 0}},{key:"onVideoCheckpoint",value:function(e){var t=this.toVideoCheckpointsIndex(e.currentTime,e.duration);e.currentTime>0&&e.duration&&"number"==typeof e.duration&&this.videoViewedPerSecond<=Math.round(e.currentTime)&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.videoViewedPerSecond++);for(var n=0;n<=t;n++)void 0===this.checkpointsReached[n]&&e.currentTime>0&&e.duration&&"number"==typeof e.duration&&(this.checkpointsReached[n]=!0,this.apiMap.tpat&&this.apiMap.tpat("checkpoint.".concat(this.checkpoints[n])));!0===this.checkpointsReached[this.checkpoints.length-1]&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.duration)),this.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint))}},{key:"onVideoSoundUpdate",value:function(e){this.fireTpat($e),"mute"===e?this.fireTpat(Fe):"unmute"===e&&this.fireTpat(Xe)}},{key:"onVideoViewed",value:function(e){this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.eventDispatcher.unsubscribe("event.videoViewed",this.onVideoViewed)}},{key:"onVideoPageClose",value:function(){this.eventDispatcher.unsubscribe(Ve,this.onVideoCheckpoint),this.fireTpat(He)}},{key:"notifyCloseButtonPaddingClicked",value:function(){this.fireTpat(Ue)}},{key:"onEndcardView",value:function(){this.fireTpat(Ke)}},{key:"onDirectDownloadClickTPAT",value:function(){var e=this;setTimeout((function(){e.eventDispatcher.unsubscribe(xe,e.onDirectDownloadClickTPAT)})),this.fireTpat(We),this.fireTpat(Ge)}},{key:"onDirectDownloadClickReportAd",value:function(){this.apiMap.gesture&&this.apiMap.gesture("event","download"),this.apiMap.eventValuePair&&this.apiMap.eventValuePair("postroll.click",1),this.apiMap.eventValuePair&&this.apiMap.eventValuePair("download",1)}},{key:"reportCloseButtonContentClick",value:function(){this.fireTpat(ze)}},{key:"reportCtaClick",value:function(e){e&&("cta"===e.type?this.fireTpat(Ye):"fsc"===e.type&&this.fireTpat(qe))}},{key:"onDownloadButtonClickReportAd",value:function(){-1===["ios"].indexOf(this.os)&&this.apiMap.gesture&&this.apiMap.gesture("event","download")}},{key:"onDownloadButtonClickWithValue",value:function(e){null==e?this.apiMap.gesture&&this.apiMap.gesture("event","download"):this.apiMap.eventValuePair&&this.apiMap.eventValuePair("download",e)}},{key:"onDownloadButtonClickTPAT",value:function(){var e=this;setTimeout((function(){e.eventDispatcher.unsubscribe(Ie,e.onDownloadButtonClickTPAT)})),this.fireTpat(We),this.fireTpat(Ge)}},{key:"onSuccessfulViewAd",value:function(e){Math.floor(100*e.currentTime/e.duration)>=this.successfulViewAd&&(this.successfulViewAdReached=!0,this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoViewed",Math.floor(1e3*e.currentTime)),this.apiMap.successfulViewAd&&this.apiMap.successfulViewAd()),!0===this.successfulViewAdReached&&(this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onSuccessfulViewAd),this.eventDispatcher.publish("event.successfulViewAdReached"))}},{key:"onVideoLength",value:function(e){var t=e.duration;e.currentTime>0&&t&&"number"==typeof t&&(this.apiMap.eventValuePair&&this.apiMap.eventValuePair("videoLength",Math.floor(1e3*t)),this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoLength))}},{key:"os",get:function(){return(this.mraid.VungleMRAIDExt.getOS()||(window.navigator.userAgent.match(/Android/i)?"Android":"Unknown")).trim().toLowerCase()}},{key:"firePrivacyButtonClickTpatEvent",value:function(){this.fireTpat(Ze)}},{key:"fireStoreKitOverlayAutoOpenTpatEvent",value:function(e){e&&e.source&&"storeEndcardTimer"===e.source&&this.fireTpat(Je)}}])&&Zt(t.prototype,n),i&&Zt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=n(1),en=n.n(Qt);function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var on=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.instrument=null,this.keyMap={pointers:"p",changedPointers:"cP",pointerType:"pT",isFirst:"is1",isFinal:"isF",eventType:"eT",center:"c",timeStamp:"tS",deltaTime:"dT",angle:"a",distance:"d",deltaX:"dX",deltaY:"dY",offsetDirection:"oD",scale:"s",rotation:"r",velocity:"v",velocityX:"vX",velocityY:"vY",direction:"di",type:"t",webkitForce:"wkF",webkitRotationAngle:"wkRA",webkitRadiusY:"wkRY",webkitRadiusX:"wkRX",identifier:"i",pageY:"pY",pageX:"pX",screenY:"sY",screenX:"sX",clientY:"cY",clientX:"cX",x:"x",y:"y",overallVelocityX:"overallVelocityX",overallVelocityY:"overallVelocityY",overallVelocity:"overallVelocity",maxPointers:"maxPointers",tapCount:"tapCount"},this.eventDispatcher=v.instance}var t,n,i;return t=e,(n=[{key:"getInstrument",value:function(e){return this.instrument||(this.instrument=new en.a(e),this.instrument.get("pinch").set({enable:!0}),this.instrument.get("pan").set({direction:en.a.DIRECTION_ALL,threshold:100})),this.instrument}},{key:"attach",value:function(e){var t=this,n=this,i=function(e,t){var o,r=function(e){return this.keyMap[e]||e}.bind(this),s=[];return e&&Object.keys(e).forEach((function(a){n.keyMap[a]&&(Array.isArray(e[a])?e[a].forEach((function(e,t){s.push(i(e,"".concat(r(a),"[").concat(t,"].")))})):"object"===tn(e[a])?s.push(i(e[a],"".concat(r(a),"."))):("number"==typeof(o=e[a])&&o%1!=0&&(o=o.toFixed(2)),s.push("".concat((void 0===t?"":t)+r(a),"=").concat(o))))})),s.join("&")}.bind(this);this.getInstrument(e).on("pan tap press pinch",(function(e){var n,o="",r=e.target.closest("*[data-vgl-page]"),s=(e.target.closest("*[data-vgl-gesture]")||e.target).getAttribute("data-vgl-gesture");r&&s&&(4===e.eventType||"press"===e.type)&&(n=r.getAttribute("id")||"unknownPage",o="f=".concat(n,"&tt=").concat(s,"&").concat(i(e)),t.eventDispatcher.publish("event.gesture",o))}))}}])&&nn(t.prototype,n),i&&nn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var sn=function(e){return j.a.valid(j.a.coerce(e))},an=function(){if(G()!==X.iOS)return!1;var e=q(),t=sn(e);return j.a.satisfies(t,">=14")},ln=function(){return j.a.satisfies(sn(W()),">=6.8.1")},cn=function(){return an()&&ln()},un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventDispatcher=v.instance,this.skOptions={APP_STORE:0,PRODUCT_VIEW:1,OVERLAY_VIEW:2},this.skPositionDefault="bottom",this.skDismissibleDefault=!0}var t,n,i;return t=e,i=[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}],(n=[{key:"selectOptions",value:function(e,t,n){if(!ln())return t;switch(function(e){var t=se().getReplacementTokens();if(!t)return null;switch(e){case"fsc":return t.SK_FSC||"product_view";case"skdt":return t.SK_SKDT||"product_view";case"cta":return t.SK_CTA_ONLY||"product_view";default:return"product_view"}}((null==e?void 0:e.type)||"")){case"off":return this.skOptions.APP_STORE;case"overlay_view":return an()&&n?this.skOptions.OVERLAY_VIEW:t;case"default":case"product_view":default:return t}}},{key:"storeOverlayOptions",get:function(){var e=se().getReplacementTokens(),t={position:this.skPositionDefault,dismissible:this.skDismissibleDefault};return e?(void 0!==e.SKOVERLAY_POSITION&&"default"!==e.SKOVERLAY_POSITION&&(t.position=e.SKOVERLAY_POSITION),void 0!==e.SKOVERLAY_DISMISSIBLE&&"default"!==e.SKOVERLAY_DISMISSIBLE&&(t.dismissible=!("false"===e.SKOVERLAY_DISMISSIBLE)),t):t}},{key:"updateTokenDefaultValue",value:function(e){var t=this;e&&Object.keys(e).forEach((function(n){switch(n){case"SKOVERLAY_POSITION":t.skPositionDefault=e[n];break;case"SKOVERLAY_DISMISSIBLE":t.skDismissibleDefault=e[n]}}))}}])&&rn(t.prototype,n),i&&rn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dn(){return(dn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=pn(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function pn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Tn(e)););return e}function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function yn(e,t,n){return t&&vn(e.prototype,t),n&&vn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Tn(e);if(t){var o=Tn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return wn(this,n)}}function wn(e,t){if(t&&("object"===hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return En(e)}function En(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var On=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).platform=null,e}return yn(n,[{key:"init",value:function(){if(!this.initialized){var e=Cn;-1!==["ios"].indexOf(this.os)?e=Sn:-1!==["windows"].indexOf(this.os)?e=Dn:-1!==["android"].indexOf(this.os)&&(e=kn),(this.platform=new e).init(),this.initialized=!0}}}]),n}(ie),Cn=function(e){mn(n,e);var t=bn(n);function n(){var e;fn(this,n);var i=En(e=t.call(this));return e.adTracker={gesture:i.VungleMRAIDBridgeExt.notifyUserInteraction,eventValuePair:i.VungleMRAIDBridgeExt.notifyEventValuePairEvent},e.initialized=!1,e}return yn(n,[{key:"prepare",value:function(){}},{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e),this.adTracker.eventValuePair&&this.adTracker.eventValuePair(e,1)}},{key:"downloadButtonClick",value:function(e){e=e||{},this.VungleMRAID.open(e.uri||this.VungleCTA.uri)}},{key:"init",value:function(){this.initialized||(v.instance.subscribe("event.videoSoundUpdate",this.onVideoSoundUpdate.uuidBind(this)),this.initialized=!0)}}]),n}(ie),kn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).isIncentivizedAd=e.VungleMRAIDExt.getIncentivized(),e.initialized=!1,e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.eventValuePair&&this.adTracker.eventValuePair(e,1)}},{key:"downloadButtonClick",value:function(e){e=e||{},this.VungleMRAID.open(e.uri||this.VungleCTA.uri),this.VungleMRAIDVersion||v.instance.publish("event.adUnitClose")}},{key:"prepare",value:function(e){this.isIncentivizedAd&&!this.VungleMRAIDVersion&&(-1===["VideoView","DIView"].indexOf(e.clazz)?-1!==["EndcardView"].indexOf(e.clazz)&&(vt.DownloadButton.IncentivizedTimeout="dismissed"):vt.DownloadButton.IncentivizedTimeout=null)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.initialized=!0)}}]),n}(Cn),Dn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).initialized=!1,e.accessibility=new Ft,e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.accessibility.init(),this.initialized=!0)}}]),n}(Cn),Sn=function(e){mn(n,e);var t=bn(n);function n(){var e;return fn(this,n),(e=t.call(this)).isIncentivizedAd=e.VungleMRAIDExt.getIncentivized(),e.initialized=!1,e.isStoreViewPrepared=!1,e.isStoreOverlayPrepared=!1,e.storeViewTypes=["unknown","fullscreen","mrec","banner"],e.storeOverlayViewTypes=["unknown","fullscreen"],e.placementType=e.VungleMRAID.getPlacementType().trim().toLowerCase(),e.uri=null,e.skOptions={APP_STORE:0,PRODUCT_VIEW:1,OVERLAY_VIEW:2},e.skOverlayHelper=un.getInstance(),e}return yn(n,[{key:"onVideoSoundUpdate",value:function(e){this.adTracker.gesture&&this.adTracker.gesture("event",e)}},{key:"prepare",value:function(e){cn()&&this.VungleCTA.appStoreId&&-1!==this.storeOverlayViewTypes.indexOf(this.placementType)&&this.prepareStoreOverlay(this.VungleCTA.appStoreId),this.isIncentivizedAd&&!this.VungleMRAIDVersion&&(-1===["VideoView","DIView"].indexOf(e.clazz)?-1!==["EndcardView"].indexOf(e.clazz)&&(vt.DownloadButton.IncentivizedTimeout="dismissed"):vt.DownloadButton.IncentivizedTimeout=null)}},{key:"addMRAIDEventListeners",value:function(){this.DynamicElement.addEventListener("vungle.events.preparestore.finished",this.onNotifyPresentStoreViewFinished.bind(this)),this.DynamicElement.addEventListener("vungle.events.preparestore.success",this.onNotifyPrepareStoreViewSuccess.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.finished",this.onNotifyPresentStoreOverlayFinished.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.success",this.onNotifyPrepareStoreOverlaySuccess.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.visible",this.onNotifyPresentStoreOverlayVisible.bind(this)),this.DynamicElement.addEventListener("vungle.events.storeoverlay.failed",this.onNotifyPresentStoreOverlayFailed.bind(this))}},{key:"onNotifyPrepareStoreViewSuccess",value:function(){this.isStoreViewPrepared=!0,a("SKProductView - success")}},{key:"onNotifyPrepareStoreOverlaySuccess",value:function(){this.isStoreOverlayPrepared=!0,a("SKOverlay - success")}},{key:"onNotifyPresentStoreOverlayVisible",value:function(){v.instance.publish("event.hideDownloadButton"),a("SKOverlay - visible")}},{key:"onNotifyPresentStoreOverlayFailed",value:function(){if(a("SKOverlay - failed"),this.isStoreViewPrepared){var e=this.VungleCTA.appStoreId;this.VungleMRAIDExt.presentStoreView(e)}else this.VungleMRAID.open(this.uri)}},{key:"onNotifyPresentStoreViewFinished",value:function(){a("SKProductView - finished"),this.isStoreViewPrepared=!1,this.VungleCTA.appStoreId&&-1!==this.storeViewTypes.indexOf(this.placementType)&&this.prepareStoreView(this.VungleCTA.appStoreId)}},{key:"onNotifyPresentStoreOverlayFinished",value:function(){this.isStoreOverlayPrepared=!1,a("SKOverlay - finished"),v.instance.publish("event.showDownloadButton"),this.VungleCTA.appStoreId&&-1!==this.storeOverlayViewTypes.indexOf(this.placementType)&&this.prepareStoreOverlay(this.VungleCTA.appStoreId)}},{key:"prepareStoreView",value:function(e){this.VungleMRAIDExt.prepareStoreView(e),a("SKProductView - prepare")}},{key:"prepareStoreOverlay",value:function(e){this.VungleMRAIDExt.prepareStoreOverlayView(e,this.skOverlayHelper.storeOverlayOptions),a("SKOverlay - prepare")}},{key:"dismissStoreOverlay",value:function(e){this.VungleMRAIDExt.dismissStoreOverlayView(e),a("SKOverlay - dismissed")}},{key:"downloadButtonClick",value:function(e){e=e||{},this.uri=e.uri||this.VungleCTA.uri;var t,n=this.uri===this.VungleCTA.uri,i=this.VungleCTA.appStoreId;switch(this.selectSKOptions(e)){case this.skOptions.APP_STORE:this.VungleMRAID.open(this.uri);break;case this.skOptions.OVERLAY_VIEW:t=2,this.VungleMRAIDExt.presentStoreOverlayView(i,this.skOverlayHelper.storeOverlayOptions);break;case this.skOptions.PRODUCT_VIEW:default:t=3,this.VungleMRAIDExt.presentStoreView(i)}v.instance.publish("event.downloadButtonClickWithValue",t),n&&!this.VungleMRAIDVersion&&i&&this.isStoreViewPrepared&&(vt.DownloadButton.HardHide="deny",v.instance.publish("event.hardHideDownloadButton"),this.isIncentivizedAd||v.instance.publish("event.adUnitClose"))}},{key:"selectSKOptions",value:function(e){e=e||{},this.uri=e.uri||this.VungleCTA.uri;var t=this.uri===this.VungleCTA.uri,n=this.VungleCTA.appStoreId;if(!(t&&this.VungleMRAIDVersion&&null!==n))return this.skOptions.APP_STORE;var i=this.isStoreViewPrepared?this.skOptions.PRODUCT_VIEW:this.skOptions.APP_STORE;return this.skOverlayHelper.selectOptions(e,i,this.isStoreOverlayPrepared)}},{key:"init",value:function(){this.initialized||(dn(Tn(n.prototype),"init",this).call(this),this.addMRAIDEventListeners(),this.VungleMRAIDVersion&&this.onNotifyPresentStoreViewFinished(),this.initialized=!0)}}]),n}(Cn),In=function(){return Object.freeze(se().getReplacementTokens())},An=function(){var e=In();if(!e.REAL_START_MUTED)return e.START_MUTED;if(G()!==X.iOS)return e.START_MUTED;var t=j.a.valid(j.a.coerce(W()));return j.a.satisfies(t,"6.10.1 - 6.10.3")?e.REAL_START_MUTED:e.START_MUTED};function Bn(e){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(){return(xn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Pn(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Pn(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Nn(e)););return e}function Rn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Nn(e);if(t){var o=Nn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ln(this,n)}}function Ln(e,t){if(t&&("object"===Bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function zn(e,t,n){return t&&jn(e.prototype,t),n&&jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Un=function(){function e(){Mn(this,e),this.eventDispatcher=v.instance,this.vungleData={partnerName:"Vungle",partnerVersion:"1.0"},this.mraidObject=new ie,this.sessionClient=null,this.verificationScriptResource=null,this.partner=null,this.context=null,this.adEvents=null,this.mediaEvents=null,this.adSession=null,this.funcsOnImpression=[],this.sessionStarted=!1,this.initialized=!1,this.omsdkReady=!1}return zn(e,[{key:"init",value:function(e){var t=this.mraidObject.VungleMRAIDBridgeExt.getReplacementTokens();if(!t||!t.OM_SDK_DATA)throw new Error("Tokens OM_SDK_DATA not present");var n=JSON.parse(atob(t.OM_SDK_DATA));if(!n.vendorURL||!n.vendorKey)throw new Error("vendorURL, vendorKey not present");try{this.sessionClient=window.OmidSessionClient.default}catch(e){throw new Error("Failed to load OmidSessionClient script")}if(!this.sessionClient)throw new Error("Loaded OmidSessionClient script, but failed to find default class.");var i=this.sessionClient,o=i.AdSession,r=i.Partner,s=i.Context,a=i.VerificationScriptResource,l=i.AdEvents,c=i.MediaEvents;this.verificationScriptResource=new a(n.vendorURL,n.vendorKey,n.params);var u=this.mraidObject.VungleMRAIDExt.getSDKVersion();if(this.partner=new r(this.vungleData.partnerName,u||this.vungleData.partnerVersion),this.context=new s(this.partner,[this.verificationScriptResource]),null!=e&&this.context.setVideoElement(e),this.adSession=new o(this.context),!(this.adSession&&this.adSession.isSupported&&this.adSession.isSupported()))throw new Error("ad session not present");this.adEvents=new l(this.adSession),this.mediaEvents=new c(this.adSession),this.adSession.registerSessionObserver(this.onSessionChange.uuidBind(this))}},{key:"eventDrain",value:function(){this.funcsOnImpression.forEach((function(e){e()})),this.funcsOnImpression=[]}},{key:"pushOrCallFunc",value:function(e){this.omsdkReady?e():this.funcsOnImpression.push(e)}},{key:"onSessionSubscribeEvents",value:function(){this.eventDispatcher.subscribe("event.downloadButtonClick",this.onDownloadButtonClick.uuidBind(this))}},{key:"onSessionUnsubscribeEvents",value:function(){this.eventDispatcher.unsubscribe("event.downloadButtonClick",this.onDownloadButtonClick)}},{key:"onSessionChange",value:function(e){console.log("Session change event was triggered",e)}},{key:"onDownloadButtonClick",value:function(){var e=this;this.pushOrCallFunc((function(){e.mediaEvents.adUserInteraction("click")}))}}]),e}(),Hn=function(e){Rn(n,e);var t=Vn(n);function n(e){var i;return Mn(this,n),(i=t.call(this,e)).checkpoints=["start","firstQuartile","midpoint","thirdQuartile","complete"],i.checkpointsReached=[],i.videoViewedPerSecond=0,i.volume=0,i.vastProperties=null,i.isBuffering=!1,i.isSkippable=!1,i}return zn(n,[{key:"toVideoCheckpointsIndex",value:function(e,t){var n=100*(t-e<=.5?1:(Math.floor(e/t*4)/4).toFixed(2));return 0===n?0:25===n?1:50===n?2:75===n?3:100===n?4:void 0}},{key:"init",value:function(e){if(!this.initialized)try{this.initialized=!0,xn(Nn(n.prototype),"init",this).call(this,e),this.onSessionSubscribeEvents(),this.adSession.setCreativeType("video"),this.adSession.setImpressionType("loaded")}catch(e){console.error(e)}}},{key:"onSessionSubscribeEvents",value:function(){xn(Nn(n.prototype),"onSessionSubscribeEvents",this).call(this),this.eventDispatcher.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),this.eventDispatcher.subscribe("event.videoSoundUpdate",this.onVideoSoundUpdate.uuidBind(this)),this.eventDispatcher.subscribe("event.videoBuffering",this.onVideoBuffering.uuidBind(this)),this.eventDispatcher.subscribe("event.videoSuspend",this.onVideoBufferingForLowPowerMode.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPlayTimeupdate",this.onVideoTimeUpdate.uuidBind(this)),this.eventDispatcher.subscribe("event.videoStateChanged",this.onVideoStateChanged.uuidBind(this)),this.eventDispatcher.subscribe("event.videoDisplayState",this.onVideoDisplayState.uuidBind(this)),this.eventDispatcher.subscribe("event.videoPageClose",this.onVideoPageClose.uuidBind(this))}},{key:"onSessionUnsubscribeEvents",value:function(){xn(Nn(n.prototype),"onSessionUnsubscribeEvents",this).call(this),this.eventDispatcher.unsubscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable),this.eventDispatcher.unsubscribe("event.videoSoundUpdate",this.onVideoSoundUpdate),this.eventDispatcher.unsubscribe("event.videoBuffering",this.onVideoBuffering),this.eventDispatcher.unsubscribe("event.videoSuspend",this.onVideoBufferingForLowPowerMode),this.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",this.onVideoCheckpoint),this.eventDispatcher.unsubscribe("event.videoPlayTimeupdate",this.onVideoTimeUpdate),this.eventDispatcher.unsubscribe("event.videoStateChanged",this.onVideoStateChanged),this.eventDispatcher.unsubscribe("event.videoDisplayState",this.onVideoDisplayState),this.eventDispatcher.unsubscribe("event.videoPageClose",this.onVideoPageClose)}},{key:"onSessionStarted",value:function(){if(this.sessionStarted&&this.initialized&&this.duration&&!this.omsdkReady){this.adEvents.impressionOccurred(),this.omsdkReady=!0;var e=this.mraidObject.VungleMRAIDExt.getIncentivized(),t=this.mraidObject.VungleMRAIDBridgeExt.getReplacementTokens()[e?"INCENTIVIZED_CLOSE_BUTTON_DELAY_SECONDS":"CLOSE_BUTTON_DELAY_SECONDS"];this.isSkippable="9999"!=="".concat(t)&&this.duration>parseFloat(t),this.vastProperties=new this.sessionClient.VastProperties(this.isSkippable,0,!0,"preroll"),this.adEvents.loaded(this.vastProperties),this.eventDrain()}}},{key:"onSessionChange",value:function(e){if("sessionStart"===e.type)return this.sessionStarted=!0,void this.onSessionStarted();"sessionError"!==e.type&&"sessionFinish"===e.type&&this.onSessionUnsubscribeEvents()}},{key:"onVideoCheckpoint",value:function(e){var t=this;this.pushOrCallFunc((function(){t.isBuffering&&(t.isBuffering=!1,t.mediaEvents.bufferFinish());for(var n=t.toVideoCheckpointsIndex(e.currentTime,e.duration),i=0;i<=n;i++)if(void 0===t.checkpointsReached[i]&&e.currentTime>0&&e.duration&&"number"==typeof e.duration){if(t.checkpointsReached[i]=!0,0===n)return t.volume="true"===An()?0:1,void t.mediaEvents.start(t.duration,t.volume);t.mediaEvents[t.checkpoints[i]]()}!0===t.checkpointsReached[t.checkpoints.length-1]&&t.eventDispatcher.unsubscribe("event.videoPlayCheckpoint",t.onVideoCheckpoint)}))}},{key:"onVideoTimeUpdate",value:function(){this.onSessionStarted()}},{key:"onVideoSoundUpdate",value:function(e){var t=this;this.pushOrCallFunc((function(){t.volume="mute"===e?0:1,t.mediaEvents.volumeChange(t.volume)}))}},{key:"onVideoBuffering",value:function(){this.videoBuffering()}},{key:"onVideoBufferingForLowPowerMode",value:function(){this.videoBuffering()}},{key:"videoBuffering",value:function(){var e=this;this.isBuffering||(this.pushOrCallFunc((function(){e.mediaEvents.bufferStart()})),this.isBuffering=!0)}},{key:"onVideoStateChanged",value:function(e){var t=this;this.pushOrCallFunc((function(){t.checkpointsReached[0]&&("pause"!==e?t.mediaEvents.resume():t.mediaEvents.pause())}))}},{key:"onVideoDisplayState",value:function(e){var t=this;this.pushOrCallFunc((function(){t.mediaEvents.playerStateChange(e)}))}},{key:"onVideoMetadataAvailable",value:function(e){this.duration=e.duration,this.onSessionStarted()}},{key:"onVideoPageClose",value:function(){var e=this;this.pushOrCallFunc((function(){e.isSkippable&&e.mediaEvents.skipped()}))}}]),n}(Un),Fn=n(3),Xn=n.n(Fn);function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function $n(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Zn=function(){function e(t){Gn(this,e),t=t||{fallbackLng:"en",resources:{}},this.lng=(t.language||navigator.language||navigator.userLanguage).replace("-","_"),this.fallbackLng=t.fallbackLng,this.resources=t.resources,this.locale=t.locale||this.lng}return $n(e,[{key:"translation",get:function(){if(this.resources[this.lng]&&this.resources[this.lng].translation)return this.resources[this.lng].translation;try{var e=this.lng.split("_")[0];return this.resources[e]&&this.resources[e].translation?this.resources[e].translation:this.resources[this.fallbackLng].translation}catch(e){return null}}},{key:"styling",get:function(){if(this.resources[this.locale]&&this.resources[this.locale].styling)return this.resources[this.locale].styling;try{var e=this.locale.split("_")[0];return this.resources[e]&&this.resources[e].styling?this.resources[e].styling:this.resources[this.fallbackLng].styling}catch(e){return null}}},{key:"transform",value:function(e,t){return this[t]&&this[t][e]?this[t][e]:this.resources[this.fallbackLng]&&this.resources[this.fallbackLng][t][e]?this.resources[this.fallbackLng][t][e]:e}},{key:"t",value:function(e){return this.transform(e,"translation")}},{key:"s",value:function(e){return this.transform(e,"styling")}}]),e}(),Jn=function(){function e(){Gn(this,e)}return $n(e,null,[{key:"createView",value:function(e,t){return e(qn(qn({},t),{},{START_MUTED:An()}))}}]),e}();Handlebars.registerHelper("equalDef",(function(e,t,n,i){if(arguments.length<4)throw new Error("Handlebars Helper equal needs 3 parameters");return void 0===e&&(e=n),e!==t?i.inverse(this):i.fn(this)})),Handlebars.registerHelper("equal",(function(e,t,n){if(arguments.length<3)throw new Error("Handlebars Helper equal needs 2 parameters");return e!==t?n.inverse(this):n.fn(this)})),Handlebars.registerHelper("i18nt",(function(e,t){window.vungle.i18n||(window.vungle.i18n=new Zn(window.vungle.i18nData));var n=window.vungle.i18n.t(t||e);return new Handlebars.SafeString(n===e?t:n)})),Handlebars.registerHelper("i18ns",(function(e,t){window.vungle.i18n||(window.vungle.i18n=new Zn(window.vungle.i18nData));var n=window.vungle.i18n.s(t||e);return new Handlebars.SafeString(n===e?t:n)}));var Qn=Jn,ei={Video:["MAIN_VIDEO"],RtbEndcard:["EC_HTML","EC_IMAGE"]},ti=function(){return window.vungleTokens},ni=function(e){var t=document.querySelector("#Video .footer .download"),n=document.querySelector("#LoopingVideo .ad-container"),i=(null!=t?t:n).classList;e?i.remove("hide"):i.add("hide")},ii=function(e){var t=document.querySelector(".overlay-cta");t&&(t.style.pointerEvents=e?"auto":"none",t.className=e?"overlay-cta":"overlay-cta hide")},oi=function(){var e,t,n,i,o,r;window.vungleTokens=(null===(e=window)||void 0===e||null===(t=e.vungle)||void 0===t||null===(n=t.mraidBridgeExt)||void 0===n||null===(i=n.getReplacementTokens)||void 0===i?void 0:i.call(n))||(null===(o=window)||void 0===o||null===(r=o.vungle)||void 0===r?void 0:r.tokensDev);var s=window.vungleTokens,a=s.SKOVERLAY_AUTO,l=s.FULL_CTA_OPTION,c=s.FULL_CTA,u=s.VIDEO_SHOW_CTA,h=s.CTA_BUTTON_URL,d=["adv_pref","fsc_on","fsc_off"],p=l,f=a,v=c,y=function(){return"adv_pref"===p&&"true"===f&&cn()};window.vungleTokens.APP_STORE_ID||(window.vungleTokens.APP_STORE_ID=function(e){if(!e)return null;var t=e.match(/\/id([0-9]*)/i);return t&&t[1]?t[1]:null}(h));var m=function(){return!d.includes(p)||!y()&&(("adv_pref"===p||"fsc_on"===p)&&("true"===f||"true"===v))};if(y()){var g=ti().SKOVERLAY_DELAY_SECONDS&&"default"!==ti().SKOVERLAY_DELAY_SECONDS?ti().SKOVERLAY_DELAY_SECONDS:"5";window.vungleTokens.SKOVERLAY_DELAY_SECONDS=1e3*parseInt(g,10)}window.addEventListener("DOMContentLoaded",(function(){ii(m()),y()&&(ni(!1),ii(!1),document.querySelector("#dynamic").addEventListener("vungle.events.storeoverlay.visible",(function(){var e=document.querySelector("#LoopingVideo .ad-container");ni("true"===u||e),ii(!0)})))}))};function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ai=function(){return window.skOverlayTimerId},li=Object.freeze({position:"bottom",dismissible:!0}),ci=function(){var e="true"===ti().SKOVERLAY_AUTO&&"adv_pref"===ti().FULL_CTA_OPTION,t=null==ai();return e&&t&&cn},ui=function(){var e=ti(),t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},li);return"default"!==e.SKOVERLAY_POSITION&&(t.position=e.SKOVERLAY_POSITION),"default"!==e.SKOVERLAY_DISMISSIBLE&&(t.dismissible=!("false"===e.SKOVERLAY_DISMISSIBLE)),t},hi=function(){var e=ui(),t=ti().APP_STORE_ID,n=ti().MMP_AUTO_CLICK;t&&("true"===n&&(window.vungle.mraidBridgeExt.notifyTPAT("postroll.click"),window.vungle.mraidBridgeExt.notifyTPAT("clickUrl"),window.vungle.mraidBridgeExt.notifyEventValuePairEvent("postroll.click",1),window.vungle.mraidBridgeExt.notifyEventValuePairEvent("skoAutoShow")),window.vungle.mraidExt.presentStoreOverlayView(t,e))},di=function(){var e=parseInt(ti().SKOVERLAY_AUTO_CLOSE,10);e>0&&(e<5&&(e=5),setTimeout((function(){window.vungle.mraidExt.dismissStoreOverlayView(ti().APP_STORE_ID)}),1e3*e))},pi=function(e){if(ci()){var t=function(e){window.skOverlayTimerId=setTimeout((function(){hi(),di()}),e)};if(e&&"function"==typeof e.getVideoPlayerObject){var n=e.getVideoPlayerObject().getElement(),i=ti().SKOVERLAY_DELAY_SECONDS/1e3,o=setInterval((function(){n.currentTime>i&&(clearInterval(o),hi(),di())}),100);v.instance.subscribe("event.closeButtonClick",(function(){clearInterval(o);var e=i-n.currentTime;e>0&&t(1e3*e)}))}else t(ti().SKOVERLAY_DELAY_SECONDS)}},fi=function(){var e=ai();e&&clearTimeout(e)},vi=function(){if(cn()){var e=ti().APP_STORE_ID;e&&window.vungle.mraidExt.dismissStoreOverlayView(e)}};n(14);function yi(e){return(yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mi(e){return function(e){if(Array.isArray(e))return gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function bi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function wi(e,t){return(wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Oi(e);if(t){var o=Oi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ti(this,n)}}function Ti(e,t){if(t&&("object"===yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ci=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wi(e,t)}(r,e);var t,n,i,o=Ei(r);function r(e){var t,n=e.pages,i=e.components,s=e.controllers,a=e.config,l=e.extensions,c=void 0===l?{}:l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this)).initialized=!1,t.config=a||{checkConsent:!0},t.pageIndex=0,t.pageControllers=[],t.adTracker=new Jt,t.gestureTracker=new on,t.device=new On,t.extensions=c,t.pages=null!=n?n:[],t.components=["DialogBox","GDPRDialogBox"].concat(mi(i||[])),t.controllers=s,t.addInitialEventListener(),t}return t=r,(n=[{key:"showSpinner",value:function(e){document.querySelector("#spinner").style.display=e?"block":"none"}},{key:"addInitialEventListener",value:function(){this.onInitialViewportChange=this.onInitialViewportChange.bind(this),window.addEventListener("resize",this.onInitialViewportChange,!1)}},{key:"addEventListeners",value:function(){window.addEventListener("resize",this.onViewportChange.bind(this),!1),setTimeout((function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e)}))}},{key:"addMRAIDEventListeners",value:function(){this.VungleMRAID.addEventListener("viewableChange",this.onAdViewableChange.bind(this)),this.DynamicElement.addEventListener("vungle.events.request.close",this.onRequestCloseAd.bind(this)),this.DynamicElement.addEventListener("vungle.events.installationStatus.updated",this.onInstallationStatusUpdate.bind(this))}},{key:"subscribeToEvents",value:function(){v.instance.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),v.instance.subscribe("event.adUnitClose",this.onAdUnitClose.uuidBind(this)),v.instance.subscribe("event.privacyButtonClick",this.onPrivacyButtonClick.uuidBind(this)),v.instance.subscribe("event.dismissPage",this.onDismissPage.uuidBind(this)),v.instance.subscribe("event.dismissIncentivizedAdPage",this.onDismissIncentivizedAdPage.uuidBind(this)),v.instance.subscribe("event.downloadButtonClick",this.onDownloadButtonClick.uuidBind(this)),v.instance.subscribe("event.installButtonClick",this.onInstallButtonClick.uuidBind(this)),v.instance.subscribe("event.openButtonClick",this.onOpenButtonClick.uuidBind(this)),v.instance.subscribe("event.cancelDownloadButtonClick",this.onCancelDownloadButtonClick.uuidBind(this)),v.instance.subscribe("event.gesture",this.onGesture.uuidBind(this)),v.instance.subscribe("event.gdprConsent",this.onGDPRConsent.uuidBind(this))}},{key:"initializeAdTracker",value:function(){this.adTracker.init({tpat:this.VungleMRAIDBridgeExt.notifyTPAT,successfulViewAd:this.VungleMRAIDBridgeExt.notifySuccessfulViewAd,gesture:this.VungleMRAIDBridgeExt.notifyUserInteraction,eventValuePair:this.VungleMRAIDBridgeExt.notifyEventValuePairEvent})}},{key:"setHtml",value:function(e){this.DynamicElement.innerHTML=function(){for(var t,n=this.pages.concat(this.components),i="",o=0,r=n.length;o<r;o++)t=window.vungle.templates[n[o]].template,i+=Qn.createView(t,e);return i}.bind(this)()}},{key:"createPageControllers",value:function(){for(var e,t=0,n=this.pages.length;t<n;t++){var i,o=this.pages[t],r=null!==(i=this.extensions[o])&&void 0!==i?i:{};r.viewsCount=this.pages.length,e=new this.controllers[o]({selector:"#".concat(o),name:o,number:t,isIncentivized:this.isIncentivizedAd,extensions:r}),this.pageControllers.push(e)}}},{key:"showAd",value:function(){this.isConsentRequired()&&this.config.checkConsent?this.showGDPR():this.showPage(this.pageIndex)}},{key:"getPage",value:function(e){return this.pageControllers[e]}},{key:"currentPage",get:function(){return this.getPage(this.pageIndex)}},{key:"showPage",value:function(e){var t=this.getPage(e);this.device.platform.prepare(t),t.init(),t.show()}},{key:"hidePage",value:function(e){var t=this.getPage(e);t.init(),t.hide()}},{key:"navigate",value:function(){var e=this;vi(),fi(),this.hidePage(this.pageIndex),-1!==["VideoView","DIView"].indexOf(this.currentPage.clazz)&&v.instance.publish("event.videoPageClose"),setTimeout((function(){if(e.pageControllers.length>1&&e.pageIndex+1<e.pageControllers.length)return e.pageIndex+=1,void e.showPage(e.pageIndex);e.closeAdUnit()}))}},{key:"closeAdUnit",value:function(){window.vungle.flexFeed||this.VungleMRAID.close()}},{key:"showGDPR",value:function(){this.currentPage.getGDPRDialogBoxObject().init(),this.currentPage.getGDPRDialogBoxObject().show()}},{key:"adUnitVisible",value:function(){document.querySelector("#dynamic").className=[document.querySelector("#dynamic").className,this.os,this.osVersion].join(" ").trim(),this.showSpinner(!1)}},{key:"onAdUnitClose",value:function(){this.closeAdUnit()}},{key:"onRequestCloseAd",value:function(){this.VungleMRAIDBridgeExt.getIsVungleAd()&&v.instance.publish("event.requestToCloseAd")}},{key:"onInstallationStatusUpdate",value:function(e){v.instance.publish("event.installationStatusUpdate",e.detail)}},{key:"onAdViewableChange",value:function(){v.instance.publish("event.adViewableChanged",this.VungleMRAID.isViewable()?"maximized":"minimized")}},{key:"onInitialViewportChange",value:function(){var e=me.getViewportSize();!this.initialized&&e.height>1&&(this.initialized=!0,this.startAd(),window.removeEventListener("resize",this.onInitialViewportChange))}},{key:"onViewportChange",value:function(){var e=me.getViewportSize();v.instance.publish("event.viewportChange",e)}},{key:"onVideoMetadataAvailable",value:function(){this.onViewportChange()}},{key:"onGesture",value:function(e){this.VungleMRAIDBridgeExt.notifyUserInteraction("event",e)}},{key:"adMRAIDReady",value:function(){oi();var e=ti();if(e.ERUDA){var t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/eruda",t.id="erudaLoader",document.body.appendChild(t),console.log("ERUDA LOADING"),document.querySelector("#erudaLoader").addEventListener("load",(function(){var e=document.createElement("script");e.innerHTML="eruda.init();",document.body.appendChild(e),console.log("ERUDA SHOULD BE ENABLED")})),window.addEventListener("message",(function(e){e.data&&"iframe"===e.data.source&&console.log(e.data.message)}))}"false"===(e.AUTO_LOCALIZE||"true")&&(window.vungle.i18nData=null),this.isIncentivizedAd=this.VungleMRAIDExt.getIncentivized(),this.setHtml(e),this.pages=function(e,t){var n=[];return t.forEach((function(t){var i,o=null!==(i=ei[t])&&void 0!==i?i:[],r=o.filter((function(t){return e[t]}));(0===o.length||r.length>0)&&n.push(t)})),n}(e,this.pages),this.createPageControllers(),"true"===(e.ACTION_TRACKING||"false")&&this.gestureTracker.attach(this.DynamicElement),this.device.init()}},{key:"onPrivacyButtonClick",value:function(e){this.openPrivacyURI(e)}},{key:"onDismissIncentivizedAdPage",value:function(){this.navigate()}},{key:"onDismissPage",value:function(){return-1!==["VideoView","DIView"].indexOf(this.currentPage.clazz)&&this.isIncentivizedAd&&!this.adTracker.successfulViewAdReached?v.instance.publish("event.videoViewDismissPage"):-1!==["CardView"].indexOf(this.currentPage.clazz)&&this.isIncentivizedAd&&!this.adTracker.successfulViewAdReached?v.instance.publish("event.cardViewDismissPage"):void this.navigate()}},{key:"onDownloadButtonClick",value:function(e){this.device.platform.downloadButtonClick(e)}},{key:"onInstallButtonClick",value:function(){this.VungleMRAIDBridgeExt.startDownloadAppOnDevice()}},{key:"onCancelDownloadButtonClick",value:function(){this.VungleMRAIDBridgeExt.cancelDownload()}},{key:"onOpenButtonClick",value:function(){this.VungleMRAIDBridgeExt.openAppInDevice()}},{key:"onGDPRConsent",value:function(){this.showPage(this.pageIndex)}},{key:"startAd",value:function(){var e=this;Xn.a.attach(document.body),this.addEventListeners(),this.initializeAdTracker(),this.addMRAIDEventListeners(),this.subscribeToEvents(),this.showSpinner(!0),this.mraidReadyCheck((function(){e.adMRAIDReady(),e.adUnitVisible(),e.showAd()}))}},{key:"init",value:function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!1),window.dispatchEvent(e),pi(this.currentPage)}}])&&bi(t.prototype,n),i&&bi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(oe);function ki(e){return(ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Di(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Si(){return(Si="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Ii(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Ii(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ri(e)););return e}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return xi(this,n)}}function xi(e,t){if(t&&("object"===ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pi(e)}function Pi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}window.vungle=window.vungle||{},window.vungle.i18nData=u;var _i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(r,e);var t,n,i,o=Bi(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,{selector:n,name:i,number:s,isIncentivized:l})).muteIconContainer=null,t.progressBar=null,t.video=null,t.videoContainer=null,t.videoPlayerObject=null,t.ctaButtonObject=null,t.onLoadMetaData=t.onLoadMetaData.bind(Pi(t)),t.getVideoPlayerObject().getElement().addEventListener("loadedmetadata",t.onLoadMetaData),t}return t=r,(n=[{key:"clazz",get:function(){return"VideoView"}},{key:"onLoadMetaData",value:function(){this.pauseVideo(),this.getVideoPlayerObject().muteUnmute(!0),this.getVideoPlayerObject().getElement().removeEventListener("loadedmetadata",this.onLoadMetaData)}},{key:"getMuteIconContainer",value:function(){return this.muteIconContainer||(this.muteIconContainer=document.querySelector("#".concat(this.viewName," .mute-icon-container"))),this.muteIconContainer}},{key:"getProgressBar",value:function(){return this.progressBar||(this.progressBar=document.querySelector("#".concat(this.viewName," .progress-bar"))),this.progressBar}},{key:"getVideo",value:function(){return this.video||(this.video=document.querySelector("#".concat(this.viewName," video"))),this.video}},{key:"getVideoContainer",value:function(){return this.videoContainer||(this.videoContainer=document.querySelector("#".concat(this.viewName," .video-container"))),this.videoContainer}},{key:"getVideoPlayerObject",value:function(){return this.videoPlayerObject||(this.videoPlayerObject=new Ce("#".concat(this.viewName," video"))),this.videoPlayerObject}},{key:"onVideoLoadedMetadata",value:function(e){this.videoRatio=e.width/e.height}},{key:"onViewportChange",value:function(){}},{key:"onAdViewableChanged",value:function(e){"minimized"!==e?this.getIncentivizedDialogBoxObject().isVisible()||this.getGDPRDialogBoxObject().isVisible()||this.playVideo():this.pauseVideo()}},{key:"onAlertPrivacy",value:function(){this.pauseVideo(),this.getPrivacyDialogBoxObject().show()}},{key:"onVideoViewDismissPage",value:function(){this.getIncentivizedDialogBoxObject().isVisible()?this.eventDispatcher.publish("event.dismissIncentivizedAdPage"):(this.pauseVideo(),this.getIncentivizedDialogBoxObject().show())}},{key:"onRequestToCloseAd",value:function(){var e=this.getCloseButtonObject();e.isVisible()&&(e instanceof dt&&e.getElement().classList.contains("disable-click")||(this.getGDPRDialogBoxObject().isVisible()?this.pauseVideo():this.getIncentivizedDialogBoxObject().isVisible()?(this.getIncentivizedDialogBoxObject().hide(),this.playVideo()):this.eventDispatcher.publish("event.dismissPage")))}},{key:"onDialogBoxPrimaryButtonClick",value:function(){this.eventDispatcher.publish("event.playVideo")}},{key:"init",value:function(){this.initialized||(Si(Ri(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.requestToCloseAd",this.onRequestToCloseAd.uuidBind(this)),this.eventDispatcher.subscribe("event.adViewableChanged",this.onAdViewableChanged.uuidBind(this)),this.eventDispatcher.subscribe("event.videoViewDismissPage",this.onVideoViewDismissPage.uuidBind(this)),this.initialized=!0)}},{key:"show",value:function(){var e=this;this.getMuteIconContainer().style.opacity=0,Si(Ri(r.prototype),"show",this).call(this),setTimeout((function(){e.getMuteIconContainer().style.opacity=""}))}},{key:"hide",value:function(){this.getVideoPlayerObject().destroy(),Si(Ri(r.prototype),"hide",this).call(this)}},{key:"pauseVideo",value:function(){this.getVideoPlayerObject().pause()}},{key:"playVideo",value:function(){this.getVideoPlayerObject().play()}}])&&Di(t.prototype,n),i&&Di(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}($t);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Li(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Mi(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Mi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hi(e)););return e}function ji(e,t){return(ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Hi(e);if(t){var o=Hi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ui(this,n)}}function Ui(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(r,e);var t,n,i,o=zi(r);function r(e){var t=e.selector,n=e.name,i=e.number,s=e.isIncentivized,a=void 0!==s&&s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,{selector:t,name:n,number:i,isIncentivized:a})}return t=r,(n=[{key:"clazz",get:function(){return"EndcardView"}},{key:"onRequestToCloseAd",value:function(){this.getCloseButtonObject().length&&this.getCloseButtonObject().isVisible()&&this.eventDispatcher.publish("event.dismissPage")}},{key:"init",value:function(){this.initialized||(Ni(Hi(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.requestToCloseAd",this.onRequestToCloseAd.uuidBind(this)),this.initialized=!0)}}])&&Li(t.prototype,n),i&&Li(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}($t);n(15),n(16);var Xi=class extends _i{constructor({selector:e,name:t,number:n,isIncentivized:i=!1,extensions:o={}}){super({selector:e,name:t,number:n,isIncentivized:i}),this.footer=null,this.content=null,this.header=null,this.videoRatio=null,this.ctaButtonObject=null,this.isVideoReady=!1,this.loop=1===o.viewsCount,o.omsdk&&(this.omsdk=new Hn)}getCloseButtonObject(){return this.closeButtonObject||(this.closeButtonObject=new dt({selector:`#${this.viewName} .close-countdown`,isIncentivized:this.isIncentivizedAd,updateCountdownEvent:"event.videoPlayTimeupdate"})),this.closeButtonObject}getHeader(){return this.header||(this.header=document.querySelector(`#${this.viewName} .header`)),this.header}getContent(){return this.content||(this.content=document.querySelector(`#${this.viewName} .content`)),this.content}getCTAButtonObject(){return this.ctaButtonObject||(this.ctaButtonObject=new It({selector:`#${this.viewName} .download`,isIncentivized:this.isIncentivizedAd})),this.ctaButtonObject}getPrivacyDialogBoxObject(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogBoxSecondaryButtonClick"})),this.privacyDialogBoxObject}init(){this.initialized||(this.omsdk&&this.omsdk.init(this.getVideoPlayerObject().getElement()),super.init(),this.eventDispatcher.subscribe("event.videoPlayComplete",this.onVideoPlayComplete.uuidBind(this)),this.eventDispatcher.subscribe("event.closeButtonClick",this.onCloseButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.incentivizedDialogBoxSecondaryButtonClick",this.onIncentivizedDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.privacyDialogBoxSecondaryButtonClick",this.onPrivacyDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.dialogBoxPrimaryButtonClick",this.onDialogBoxPrimaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.omsdk&&this.eventDispatcher.subscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable.uuidBind(this)),this.getFullCTAObject().init(),this.getCloseButtonObject().init(),this.getCTAButtonObject().init(),this.getPrivacyButtonObject().init(),this.loop&&this.getVideo().setAttribute("loop",""),this.getVideoPlayerObject().init(),this.getIncentivizedDialogBoxObject().init(),this.getPrivacyDialogBoxObject().init(),this.initialized=!0)}show(){super.show(),this.getFullCTAObject().show(),this.getVideoPlayerObject().show(),this.getCloseButtonObject().show(),this.getCTAButtonObject().show(),this.getPrivacyButtonObject().show()}hide(){this.getVideoPlayerObject().pause(),this.getFullCTAObject().destroy(),this.getCTAButtonObject().destroy(),this.getCloseButtonObject().destroy(),this.getPrivacyButtonObject().destroy(),setTimeout(()=>{super.hide()},100)}onVideoPlayComplete(){this.loop?(this.getCloseButtonObject().show({forceShow:!0}),this.eventDispatcher.unsubscribe("event.videoPlayComplete",this.onVideoPlayComplete)):this.eventDispatcher.publish("event.dismissPage")}onVideoMetadataAvailable(e){this.duration=e.duration,!this.isVideoReady&&"number"==typeof this.duration&&this.duration&&(this.isVideoReady=!0,this.eventDispatcher.unsubscribe("event.videoMetadataAvailable",this.onVideoMetadataAvailable),this.eventDispatcher.publish("event.videoDisplayState","fullscreen"))}};n(17),n(18);function Yi(e){return(Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Wi(){return(Wi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=Gi(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}}).apply(this,arguments)}function Gi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ji(e)););return e}function Ki(e,t){return(Ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Ji(e);if(t){var o=Ji(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Zi(this,n)}}function Zi(e,t){if(t&&("object"===Yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}new Ci({pages:["Video","RtbEndcard"],components:["CloseIcons","SoundIcons","PrivacyIcons","DownloadIcons"],controllers:{Video:Xi,RtbEndcard:function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ki(e,t)}(r,e);var t,n,i,o=$i(r);function r(e){var t,n=e.selector,i=e.name,s=e.number,a=e.isIncentivized,l=void 0!==a&&a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,{selector:n,name:i,number:s,isIncentivized:l})).privacyDialogBoxObject=null,t.mraidObject=new ie,t}return t=r,(n=[{key:"getEncodedContent",value:function(){return this.encodedContent||(this.encodedContent=document.getElementById("programmaticAdmHtml").innerHTML),this.encodedContent}},{key:"getImage",value:function(){return this.imageUrl||(this.imageUrl=document.getElementById("image").src),this.imageUrl}},{key:"getEncodedStyle",value:function(){return this.encodedStyle||(this.encodedStyle=document.getElementById("programmaticStyle").innerHTML),this.encodedStyle}},{key:"getProgrammaticIframe",value:function(){return this.programmaticIframe||(this.programmaticIframe=document.getElementById("programmaticIframe")),this.programmaticIframe}},{key:"getCloseButtonObject",value:function(){return this.closeButtonObject||(this.closeButtonObject=new dt({selector:"#".concat(this.viewName," .close-countdown"),isIncentivized:this.isIncentivizedAd,pausePlayCountdownCustom:{event:"event.adViewableChanged",play:"maximized",pause:"minimized"}})),this.closeButtonObject}},{key:"writeAdmHtmlIntoIframe",value:function(){for(var e=this.getProgrammaticIframe().contentWindow,t=e.document,n=atob(this.getEncodedContent()),i=/<script[a-z1-9"'/ =]*?src=(["']|[ -~]")*mraid\.js(["']|[ -~]")>*<(\/|[ -~]\/)script>/gim;i.test(n);)n=n.replace(i,"");e.mraid=this.mraidObject.VungleMRAID,e.open=e.mraid.open,t.open(),t.write(this.getEncodedStyle()+n),t.close()}},{key:"getPrivacyDialogBoxObject",value:function(){return this.privacyDialogBoxObject||(this.privacyDialogBoxObject=new N({selector:this.dialogboxSelector,themeColor:this.getCTABackgroundColor(),bodyText:this.privacyBodyText,primaryText:this.privacyPrimaryText,secondaryText:this.privacySecondaryText,primaryEvent:"event.dialogBoxPrimaryButtonClick",secondaryEvent:"event.privacyDialogBoxSecondaryButtonClick"})),this.privacyDialogBoxObject}},{key:"init",value:function(){this.initialized||(Wi(Ji(r.prototype),"init",this).call(this),this.eventDispatcher.subscribe("event.closeButtonClick",this.onCloseButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.incentivizedDialogBoxSecondaryButtonClick",this.onIncentivizedDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.privacyDialogBoxSecondaryButtonClick",this.onPrivacyDialogBoxSecondaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.dialogBoxPrimaryButtonClick",this.onDialogBoxPrimaryButtonClick.uuidBind(this)),this.eventDispatcher.subscribe("event.viewportChange",this.onViewportChange.uuidBind(this)),this.getFullCTAObject().init(),this.getCloseButtonObject().init(),this.getPrivacyDialogBoxObject().init(),this.writeAdmHtmlIntoIframe(),this.getPrivacyButtonObject().init(),this.initialized=!0)}},{key:"show",value:function(){Wi(Ji(r.prototype),"show",this).call(this),this.eventDispatcher.publish("event.endcardView"),this.getFullCTAObject().show(),this.getCloseButtonObject().show(),this.getPrivacyButtonObject().show()}},{key:"hide",value:function(){Wi(Ji(r.prototype),"hide",this).call(this),this.getFullCTAObject().destroy(),this.getCloseButtonObject().destroy(),this.getPrivacyButtonObject().destroy()}}])&&qi(t.prototype,n),i&&qi(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(Fi)},extensions:{Video:{omsdk:!0}}}).init()}]);</script>
<!-- ######### Start: Used for preview in dashboard ############-->
<script id="preview_vungle_mraid_notify_ready"></script>
<!-- ######### End: Used for preview in dashboard ############-->
</body>
</html>