!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=92)}([function(module,__webpack_exports__,__webpack_require__){"use strict";var Event,Structure,Router,Entity,drew_element=function(){var Element={find:function(el,handler,ceil){var limit=0;for(void 0===ceil&&(ceil=5);limit<ceil&&el;){if(handler(el))return el;if(limit+=1,(el=el.parentNode)===document||el===document.body)return}},hasClass:function(el,className,bubble,ceil){function dohasClass(el,className){if(el){if(el.classList)return el.classList.contains(className);if(void 0!==el.className)return!!el.className.match(new RegExp("(\\s|^)"+className+"(\\s|$)"))}}if(!bubble||(void 0===ceil&&(ceil=10),dohasClass(el,className)||(el=Element.findParent(el,"."+className,ceil)),el)){var result=dohasClass(el,className);return bubble&&result?el:result}},addClass:function(el,className){el&&(el.classList?el.classList.add(className):Element.hasClass(el,className)||(el.className+=" "+className))},removeClass:function(el,className){if(el&&Element.hasClass(el,className))if(el&&el.classList)el.classList.remove(className);else if(Element.hasClass(el,className)){var reg=new RegExp("(\\s|^)"+className+"(\\s|$)");el.className=el.className.replace(reg," ")}},toggleClass:function(el,className){if(el)if(el.classList)el.classList.toggle(className);else{for(var classes=el.className.split(" "),existingIndex=-1,i=classes.length;i--;)classes[i]===className&&(existingIndex=i);existingIndex>=0?classes.splice(existingIndex,1):classes.push(className),el.className=classes.join(" ")}},siblings:function(el){for(var siblings=el.parentNode.children,elementSiblings=[],i=0,len=siblings.length;i<len;i++)1===siblings[i].nodeType&&elementSiblings.push(siblings[i]);for(i=elementSiblings.length;i--;)if(elementSiblings[i]===el){elementSiblings.splice(i,1);break}return elementSiblings},findSibling:function(el,selector){for(var all=document.querySelectorAll(selector),sibling=Element.siblings(el),i=0;i<sibling.length;i++)if(Element.hasCollection(all,sibling[i]))return sibling[i]},findParent:function(el,selector,ceil){var all=document.querySelectorAll(selector),cur=el.parentNode,limit=0;for(void 0===ceil&&(ceil=10);limit<ceil&&cur&&!Element.hasCollection(all,cur);)if(limit+=1,(cur=cur.parentNode)===document)return;return cur},hasCollection:function(a,b){for(var i=0,len=a.length;i<len;i++)if(a[i]===b)return!0;return!1},hasAttribute:function(el,attr){if(el)for(var i=0,atts=el.attributes,n=atts.length;i<n;i++)if(atts[i].nodeName===attr)return!0;return!1},isNodeList:function(el){var string=Object.prototype.toString.call(el),webkit=NodeList.prototype.isPrototypeOf(el);return"object"==typeof el&&!(void 0!==el.tagName&&"SELECT"===el.tagName)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(string)&&"number"==typeof el.length&&(0===el.length||"object"==typeof el[0]&&el[0].nodeType>0)||webkit},nextElementSibling:function(el){do{el=el.nextSibling}while(el&&1!==el.nodeType);return el},previousElementSibling:function(el){do{el=el.previousSibling}while(el&&1!==el.nodeType);return el},getAttributes:function(el){for(var att,attributes={},i=0,atts=el.attributes,n=atts.length;i<n;i++)attributes[(att=atts[i]).nodeName]=att.nodeValue;return attributes},scrollTo:function(el,duration){if(!(duration<0)){var to=function(el){for(var y=el.offsetTop,node=el;node.offsetParent&&node.offsetParent!==document.body;)y+=(node=node.offsetParent).offsetTop;return y}(el),scrollTop=document.body.scrollTop+document.documentElement.scrollTop,perTick=(to-scrollTop)/duration*10;setTimeout(function(){scrollTop+=perTick,document.body.scrollTop=scrollTop,document.documentElement.scrollTop=scrollTop,scrollTop!==to&&Element.scrollTo(el,duration-10)},10)}},getCoords:function(el){var box=el.getBoundingClientRect(),body=document.body,docEl=document.documentElement,scrollTop=window.pageYOffset||docEl.scrollTop||body.scrollTop,scrollLeft=window.pageXOffset||docEl.scrollLeft||body.scrollLeft,clientTop=docEl.clientTop||body.clientTop||0,clientLeft=docEl.clientLeft||body.clientLeft||0,top=box.top+scrollTop-clientTop,left=box.left+scrollLeft-clientLeft;return{top:Math.round(top),left:Math.round(left)}},prepend:function(parent,el){var x=document.querySelectorAll(parent)[0];x.insertBefore(el,x.children[0])},wrapElement:function(el,tag,className){if(el){var wrapper=document.createElement(tag||"div");className&&Element.addClass(wrapper,className),el.parentNode.insertBefore(wrapper,el),wrapper.appendChild(el)}},createElem:function(tagName,className,parent){var element=document.createElement(tagName);return className&&Element.addClass(element,className),parent&&parent.appendChild(element),element},removeAttributes:function(el,attrs){for(var i=0;i<attrs.length;i++)Element.hasAttribute(el,attrs[i])&&el.removeAttribute(attrs[i])},mergeObjects:function(extended,obj){for(var prop in obj)extended[prop]=obj[prop];return extended}};return Element}(),drew_event=Event={ready:function(fn){"loading"!==document.readyState?fn():document.addEventListener?document.addEventListener("DOMContentLoaded",fn,!1):document.attachEvent("onreadystatechange",function(){"loading"!==document.readyState&&fn()})},addEventListener:function(el,eventName,handler){if(el)return el.addEventListener?el.addEventListener(eventName,handler,!1):el.attachEvent("on"+eventName,function(){handler.call(el)}),handler},invoke:function(el,eventName,data){return Event.triggerEvent(el,eventName,data)},listen:function(el,eventName,handler){return Event.addEventListener(el,eventName,function(event){var e=event||window.event,target=e.target||e.srcElement;handler(e,target,event.customData)})},delegate:function(el,selector,eventName,handler,bubble){var item=el.querySelector(selector);Event.addEventListener(el,eventName,function(event){var e=event||window.event,target=e.target||e.srcElement;bubble&&target!==item&&(target=drew_element.findParent(target,selector)),target===item&&handler(e,target)})},removeEventListener:function(el,eventName,handler){el.removeEventListener?el.removeEventListener(eventName,handler):el.detachEvent("on"+eventName,handler)},getTarget:function(event){return void 0!==event.target?event.target:event.srcElement},preventDefault:function(event){(event=event||window.event).preventDefault?event.preventDefault():event.returnValue=!1},triggerEvent:function(el,eventName,data){var event;if(document.createEvent)(event=document.createEvent("HTMLEvents")).customData=data,event.initEvent(eventName,!0,!1),el.dispatchEvent(event);else try{(event=document.createEventObject()).eventType=eventName,event.customData=data,el.fireEvent("on"+event.eventType,event)}catch(e){(event=new CustomEvent(eventName)).customData=data,el.dispatchEvent(event)}},eventType:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch?"touchend":"click"}},structure=Structure={forEach:function(array,fn){for(var i=0;i<array.length;i++)fn(array[i],i)},isArray:function(element){return"[object Array]"===Object.prototype.toString.call(element)},forEachElement:function(selector,fn){for(var elements=document.querySelectorAll(selector),i=0,len=elements.length;i<len;i++)fn(elements[i],i)},arrayFilter:function(elements,fn){for(var out=[],i=elements.length;i--;)fn(elements[i])&&out.unshift(elements[i]);return out},filter:function(selector,fn){for(var elements,out=[],i=(elements="object"==typeof selector?selector:document.querySelectorAll(selector)).length;i--;)fn(elements[i])&&out.unshift(elements[i]);return out},clone:function(obj){if(null===obj||"object"!=typeof obj)return obj;var temp=new obj.constructor;for(var key in obj)temp[key]=Structure.clone(obj[key]);return temp},isEmptyObject:function(obj){return 0===Object.keys(obj).length},empty:function(el){if(void 0!==el.hasChildNodes)for(;el.hasChildNodes();)el.removeChild(el.lastChild)},append:function(context,content){void 0!==context.appendChild&&context.appendChild(content)},serialize:function(object){var key,str=[];for(key in object)if(object.hasOwnProperty(key)){var push,prefix=key,value=object[key];push=null!==value&&"object"==typeof value?Structure.serialize(value,prefix):encodeURIComponent(prefix)+"="+encodeURIComponent(value),str.push(push)}return str.join("&")},inArray:function(key,array){for(var i=0;i<array.length;i++)if(array[i]===key)return!0;return!1}},string={trim:function(string){return"string"==typeof string?"function"!=typeof String.prototype.trim?string.replace(/^\s+|\s+$/g,""):string.trim():string},replaceStringTokens:function(map,string){if("object"==typeof map)for(var i in map)string=string.replace(i+"",map[i]);return string},getAsciiSum:function(string){var sum=0,str_arr=string.split("");for(var i in str_arr)sum+=string.charCodeAt(parseInt(i));return sum},trimEnd:function(string,chr){var pattern=new RegExp("^(.+?)\\"+chr+"*?$");return string.replace(pattern,"$1")}},cookie={getCookie:function(name){for(var cookieName=name+"=",ca=decodeURIComponent(document.cookie).split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "===c.charAt(0);)c=c.substring(1);if(0===c.indexOf(cookieName))return c.substring(cookieName.length,c.length)}},removeCookie:function(name,path,domain){path=path||"/",domain&&(domain="domain="+domain+";"),document.cookie=name+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT; path="+path+";"+domain},setCookie:function(cname,cvalue,time,path,domain){path=path||"/";var expires="";time&&(expires="expires="+time+";"),domain&&(domain="domain="+domain+";"),document.cookie=cname+"="+cvalue+";"+expires+"path="+path+";"+domain}},url=Router={url:function(path,option){var product,opt=option||{};if(0===(path=path.trim("/")).indexOf("http://"))return path;if(0===path.indexOf("https://"))return path;"/"===path.charAt(0)&&(path=path.slice(1)),0===path.indexOf("internal:/")&&(path=path.slice("internal:/".length));var url="/"+(opt.lang?opt.lang:"undefined"!=typeof app&&void 0!==app.settings&&void 0!==app.settings.lang?app.settings.lang:"en");return(product="undefined"!=typeof app&&void 0!==app.settings&&void 0!==app.settings.product?app.settings.product:opt.product||!1)&&(url+="/"+product),url+="/"+path,Router.isApiCall()&&(url=Router.getBaseUrl()+url),url},toAbsolute:function(path){var link=document.createElement("a");return link.href=path,link.href},isExternal:function(url){var pattern=/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i,match=pattern.exec(url);if(match)return pattern.exec(location.href)[1]!==match[1]},asset:function(path){var prefixed=app.settings.prefixed,basePath="/",lang=app.settings.lang||app.settings.defaultLang,product=app.settings.defaultProduct;return 0===path.indexOf("/")&&(path=path.substr(1)),prefixed&&(basePath=["/",lang,"/",product,"/"].join("")),Router.isApiCall()&&(basePath=Router.getBaseUrl()+basePath),basePath+=path},getParameterByName:function(name,url){url||(url=window.location.href),name=name.replace(/[\[\]]/g,"\\$&");var results=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)").exec(url);return results?results[2]?decodeURIComponent(results[2].replace(/\+/g," ")):"":null},getParameters:function(url){var params={},parser=document.createElement("a");parser.href=url;for(var vars=parser.search.substring(1).split("&"),i=0;i<vars.length;i++){var pair=vars[i].split("=");params[pair[0]]=decodeURIComponent(pair[1])}return params},getHash:function(url){var hashPos=url.lastIndexOf("#");return url.substring(hashPos+1)},addQueryParam:function(url,param,value){var a=document.createElement("a"),regex=/(?:\?|&amp;|&)+([^=]+)(?:=([^&]*))*/g,match=null,str=[];for(a.href=url,param=encodeURIComponent(param);null!==(match=regex.exec(a.search));)param!==match[1]&&str.push(match[1]+(match[2]?"="+match[2]:""));return str.push(param+(value?"="+encodeURIComponent(value):"")),a.search=str.join("&"),a.href},removeQueryParam:function(url,param){var urlparts=url.split("?");if(urlparts.length>=2){for(var prefix=encodeURIComponent(param)+"=",pars=urlparts[1].split(/[&;]/g),i=pars.length;i-- >0;)-1!==pars[i].lastIndexOf(prefix,0)&&pars.splice(i,1);return url=urlparts[0]+(pars.length>0?"?"+pars.join("&"):"")}return url},removeHash:function(url){return url.split("#")[0]},addHash:function(url,hash){return url.split("#")[0]+"#"+hash},getBaseUrl:function(){return document.body.getAttribute("data-base-url")},isApiCall:function(){return!!document.body.getAttribute("data-render-api")}},mobile={isMobile:function(){var detectMobile=!1;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(detectMobile=!0),detectMobile}};Entity={filterCollectionByLoginState:function(collection){return collection.filter(function(entity){return Entity.filterByLoginState(entity.states)})},filterByLoginState:function(states){for(var state,isLogin=app.settings.login||!1,i=0;i<states.length;i++)switch(state=parseInt(states[i].value),!0){case 2===state:case 0===state&&!isLogin:case 1===state&&isLogin:return!0}return!1}};function find(){return drew_element.find.apply(this,arguments)}function hasClass(){return drew_element.hasClass.apply(this,arguments)}function addClass(){return drew_element.addClass.apply(this,arguments)}function removeClass(){return drew_element.removeClass.apply(this,arguments)}function toggleClass(){return drew_element.toggleClass.apply(this,arguments)}function findSibling(){return drew_element.findSibling.apply(this,arguments)}function findParent(){return drew_element.findParent.apply(this,arguments)}function isNodeList(){return drew_element.isNodeList.apply(this,arguments)}function nextElementSibling(){return drew_element.nextElementSibling.apply(this,arguments)}function previousElementSibling(){return drew_element.previousElementSibling.apply(this,arguments)}function getAttributes(){return drew_element.getAttributes.apply(this,arguments)}function scrollTo(){return drew_element.scrollTo.apply(this,arguments)}function ready(){return drew_event.ready.apply(this,arguments)}function addEventListener(){return drew_event.addEventListener.apply(this,arguments)}function removeEventListener(){return drew_event.removeEventListener.apply(this,arguments)}function invoke(){return drew_event.invoke.apply(this,arguments)}function listen(){return drew_event.listen.apply(this,arguments)}function delegate(){return drew_event.delegate.apply(this,arguments)}function getTarget(){return drew_event.getTarget.apply(this,arguments)}function preventDefault(){return drew_event.preventDefault.apply(this,arguments)}function triggerEvent(){return drew_event.triggerEvent.apply(this,arguments)}function eventType(){return drew_event.eventType.apply(this,arguments)}function forEach(){return structure.forEach.apply(this,arguments)}function forEachElement(){return structure.forEachElement.apply(this,arguments)}function filter(){return structure.filter.apply(this,arguments)}function isEmptyObject(){return structure.isEmptyObject.apply(this,arguments)}function empty(){return structure.empty.apply(this,arguments)}function append(){return structure.append.apply(this,arguments)}function inArray(){return structure.inArray.apply(this,arguments)}function trim(){return string.trim.apply(this,arguments)}function replaceStringTokens(){return string.replaceStringTokens.apply(this,arguments)}function getAsciiSum(){return string.getAsciiSum.apply(this,arguments)}function trimEnd(){return string.trimEnd.apply(this,arguments)}function getCookie(){return cookie.getCookie.apply(this,arguments)}function removeCookie(){return cookie.removeCookie.apply(this,arguments)}function setCookie(){return cookie.setCookie.apply(this,arguments)}function utility_url(){return url.url.apply(this,arguments)}function toAbsolute(){return url.toAbsolute.apply(this,arguments)}function isExternal(){return url.isExternal.apply(this,arguments)}function getParameterByName(){return url.getParameterByName.apply(this,arguments)}function getParameters(){return url.getParameters.apply(this,arguments)}function getHash(){return url.getHash.apply(this,arguments)}function addQueryParam(){return url.addQueryParam.apply(this,arguments)}function removeQueryParam(){return url.removeQueryParam.apply(this,arguments)}function removeHash(){return url.removeHash.apply(this,arguments)}function addHash(){return url.addHash.apply(this,arguments)}function isMobile(){return mobile.isMobile.apply(this,arguments)}__webpack_require__.d(__webpack_exports__,"j",function(){return find}),__webpack_require__.d(__webpack_exports__,"v",function(){return hasClass}),__webpack_require__.d(__webpack_exports__,"a",function(){return addClass}),__webpack_require__.d(__webpack_exports__,"H",function(){return removeClass}),__webpack_require__.d(__webpack_exports__,"Q",function(){return toggleClass}),__webpack_require__.d(__webpack_exports__,"l",function(){return findSibling}),__webpack_require__.d(__webpack_exports__,"k",function(){return findParent}),__webpack_require__.d(__webpack_exports__,"B",function(){return isNodeList}),__webpack_require__.d(__webpack_exports__,"D",function(){return nextElementSibling}),__webpack_require__.d(__webpack_exports__,"F",function(){return previousElementSibling}),__webpack_require__.d(__webpack_exports__,"p",function(){return getAttributes}),__webpack_require__.d(__webpack_exports__,"N",function(){return scrollTo}),__webpack_require__.d(__webpack_exports__,"G",function(){return ready}),__webpack_require__.d(__webpack_exports__,"b",function(){return addEventListener}),__webpack_require__.d(__webpack_exports__,"J",function(){return removeEventListener}),__webpack_require__.d(__webpack_exports__,"x",function(){return invoke}),__webpack_require__.d(__webpack_exports__,"C",function(){return listen}),__webpack_require__.d(__webpack_exports__,"f",function(){return delegate}),__webpack_require__.d(__webpack_exports__,"u",function(){return getTarget}),__webpack_require__.d(__webpack_exports__,"E",function(){return preventDefault}),__webpack_require__.d(__webpack_exports__,"R",function(){return triggerEvent}),__webpack_require__.d(__webpack_exports__,"h",function(){return eventType}),__webpack_require__.d(__webpack_exports__,"m",function(){return forEach}),__webpack_require__.d(__webpack_exports__,"n",function(){return forEachElement}),__webpack_require__.d(__webpack_exports__,"i",function(){return filter}),__webpack_require__.d(__webpack_exports__,"y",function(){return isEmptyObject}),__webpack_require__.d(__webpack_exports__,"g",function(){return empty}),__webpack_require__.d(__webpack_exports__,"e",function(){return append}),__webpack_require__.d(__webpack_exports__,"w",function(){return inArray}),__webpack_require__.d(__webpack_exports__,"S",function(){return trim}),__webpack_require__.d(__webpack_exports__,"M",function(){return replaceStringTokens}),__webpack_require__.d(__webpack_exports__,"o",function(){return getAsciiSum}),__webpack_require__.d(__webpack_exports__,"T",function(){return trimEnd}),__webpack_require__.d(__webpack_exports__,"q",function(){return getCookie}),__webpack_require__.d(__webpack_exports__,"I",function(){return removeCookie}),__webpack_require__.d(__webpack_exports__,"O",function(){return setCookie}),__webpack_require__.d(__webpack_exports__,"U",function(){return utility_url}),__webpack_require__.d(__webpack_exports__,"P",function(){return toAbsolute}),__webpack_require__.d(__webpack_exports__,"z",function(){return isExternal}),__webpack_require__.d(__webpack_exports__,"s",function(){return getParameterByName}),__webpack_require__.d(__webpack_exports__,"t",function(){return getParameters}),__webpack_require__.d(__webpack_exports__,"r",function(){return getHash}),__webpack_require__.d(__webpack_exports__,"d",function(){return addQueryParam}),__webpack_require__.d(__webpack_exports__,"L",function(){return removeQueryParam}),__webpack_require__.d(__webpack_exports__,"K",function(){return removeHash}),__webpack_require__.d(__webpack_exports__,"c",function(){return addHash}),__webpack_require__.d(__webpack_exports__,"A",function(){return isMobile})},function(module,exports,__webpack_require__){module.exports=__webpack_require__(72).default},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__,definition;
/*!
  * Reqwest! A general purpose XHR connection manager
  * license MIT (c) Dustin Diaz 2015
  * https://github.com/ded/reqwest
  */definition=function(){var context=this;if("window"in context)var doc=document,byTag="getElementsByTagName",head=doc[byTag]("head")[0];var httpsRe=/^http/,protocolRe=/(^\w+):\/\//,twoHundo=/^(20\d|1223)$/,readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",uniqid=0,callbackPrefix="reqwest_"+ +new Date,lastValue,xmlHttpRequest="XMLHttpRequest",xDomainRequest="XDomainRequest",noop=function(){},isArray="function"==typeof Array.isArray?Array.isArray:function(a){return a instanceof Array},defaultHeaders={contentType:"application/x-www-form-urlencoded",requestedWith:xmlHttpRequest,accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"}},xhr=function(o){if(!0===o.crossOrigin){var xhr=context[xmlHttpRequest]?new XMLHttpRequest:null;if(xhr&&"withCredentials"in xhr)return xhr;if(context[xDomainRequest])return new XDomainRequest;throw new Error("Browser does not support cross-origin requests")}return context[xmlHttpRequest]?new XMLHttpRequest:XHR2?new XHR2:new ActiveXObject("Microsoft.XMLHTTP")},globalSetupOptions={dataFilter:function(data){return data}};function succeed(r){var protocol=protocolRe.exec(r.url);return protocol=protocol&&protocol[1]||context.location.protocol,httpsRe.test(protocol)?twoHundo.test(r.request.status):!!r.request.response}function handleReadyState(r,success,error){return function(){return r._aborted?error(r.request):r._timedOut?error(r.request,"Request is aborted: timeout"):void(r.request&&4==r.request[readyState]&&(r.request.onreadystatechange=noop,succeed(r)?success(r.request):error(r.request)))}}function setHeaders(http,o){var h,headers=o.headers||{};headers.Accept=headers.Accept||defaultHeaders.accept[o.type]||defaultHeaders.accept["*"];var isAFormData="undefined"!=typeof FormData&&o.data instanceof FormData;for(h in o.crossOrigin||headers[requestedWith]||(headers[requestedWith]=defaultHeaders.requestedWith),headers[contentType]||isAFormData||(headers[contentType]=o.contentType||defaultHeaders.contentType),headers)headers.hasOwnProperty(h)&&"setRequestHeader"in http&&http.setRequestHeader(h,headers[h])}function setCredentials(http,o){void 0!==o.withCredentials&&void 0!==http.withCredentials&&(http.withCredentials=!!o.withCredentials)}function generalCallback(data){lastValue=data}function urlappend(url,s){return url+(/\?/.test(url)?"&":"?")+s}function handleJsonp(o,fn,err,url){var reqId=uniqid++,cbkey=o.jsonpCallback||"callback",cbval=o.jsonpCallbackName||reqwest.getcallbackPrefix(reqId),cbreg=new RegExp("((^|\\?|&)"+cbkey+")=([^&]+)"),match=url.match(cbreg),script=doc.createElement("script"),loaded=0,isIE10=-1!==navigator.userAgent.indexOf("MSIE 10.0");return match?"?"===match[3]?url=url.replace(cbreg,"$1="+cbval):cbval=match[3]:url=urlappend(url,cbkey+"="+cbval),context[cbval]=generalCallback,script.type="text/javascript",script.src=url,script.async=!0,void 0===script.onreadystatechange||isIE10||(script.htmlFor=script.id="_reqwest_"+reqId),script.onload=script.onreadystatechange=function(){if(script[readyState]&&"complete"!==script[readyState]&&"loaded"!==script[readyState]||loaded)return!1;script.onload=script.onreadystatechange=null,script.onclick&&script.onclick(),fn(lastValue),lastValue=void 0,head.removeChild(script),loaded=1},head.appendChild(script),{abort:function(){script.onload=script.onreadystatechange=null,err({},"Request is aborted: timeout",{}),lastValue=void 0,head.removeChild(script),loaded=1}}}function getRequest(fn,err){var http,o=this.o,method=(o.method||"GET").toUpperCase(),url="string"==typeof o?o:o.url,data=!1!==o.processData&&o.data&&"string"!=typeof o.data?reqwest.toQueryString(o.data):o.data||null,sendWait=!1;return"jsonp"!=o.type&&"GET"!=method||!data||(url=urlappend(url,data),data=null),"jsonp"==o.type?handleJsonp(o,fn,err,url):((http=o.xhr&&o.xhr(o)||xhr(o)).open(method,url,!1!==o.async),setHeaders(http,o),setCredentials(http,o),context[xDomainRequest]&&http instanceof context[xDomainRequest]?(http.onload=fn,http.onerror=err,http.onprogress=function(){},sendWait=!0):http.onreadystatechange=handleReadyState(this,fn,err),o.before&&o.before(http),sendWait?setTimeout(function(){http.send(data)},200):http.send(data),http)}function Reqwest(o,fn){this.o=o,this.fn=fn,init.apply(this,arguments)}function setType(header){if(null!==header)return header.match("json")?"json":header.match("javascript")?"js":header.match("text")?"html":header.match("xml")?"xml":void 0}function init(o,fn){this.url="string"==typeof o?o:o.url,this.timeout=null,this._fulfilled=!1,this._successHandler=function(){},this._fulfillmentHandlers=[],this._errorHandlers=[],this._completeHandlers=[],this._erred=!1,this._responseArgs={};var self=this;function complete(resp){for(o.timeout&&clearTimeout(self.timeout),self.timeout=null;self._completeHandlers.length>0;)self._completeHandlers.shift()(resp)}function success(resp){var type=o.type||resp&&setType(resp.getResponseHeader("Content-Type"));resp="jsonp"!==type?self.request:resp;var filteredResponse=globalSetupOptions.dataFilter(resp.responseText,type),r=filteredResponse;try{resp.responseText=r}catch(e){}if(r)switch(type){case"json":try{resp=context.JSON?context.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r;break;case"xml":resp=resp.responseXML&&resp.responseXML.parseError&&resp.responseXML.parseError.errorCode&&resp.responseXML.parseError.reason?null:resp.responseXML}for(self._responseArgs.resp=resp,self._fulfilled=!0,fn(resp),self._successHandler(resp);self._fulfillmentHandlers.length>0;)resp=self._fulfillmentHandlers.shift()(resp);complete(resp)}function timedOut(){self._timedOut=!0,self.request.abort()}function error(resp,msg,t){for(resp=self.request,self._responseArgs.resp=resp,self._responseArgs.msg=msg,self._responseArgs.t=t,self._erred=!0;self._errorHandlers.length>0;)self._errorHandlers.shift()(resp,msg,t);complete(resp)}fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){timedOut()},o.timeout)),o.success&&(this._successHandler=function(){o.success.apply(o,arguments)}),o.error&&this._errorHandlers.push(function(){o.error.apply(o,arguments)}),o.complete&&this._completeHandlers.push(function(){o.complete.apply(o,arguments)}),this.request=getRequest.call(this,success,error)}function reqwest(o,fn){return new Reqwest(o,fn)}function normalize(s){return s?s.replace(/\r?\n/g,"\r\n"):""}function serial(el,cb){var ch,ra,val,i,n=el.name,t=el.tagName.toLowerCase(),optCb=function(o){o&&!o.disabled&&cb(n,normalize(o.attributes.value&&o.attributes.value.specified?o.value:o.text))};if(!el.disabled&&n)switch(t){case"input":/reset|button|image|file/i.test(el.type)||(ch=/checkbox/i.test(el.type),ra=/radio/i.test(el.type),val=el.value,(!ch&&!ra||el.checked)&&cb(n,normalize(ch&&""===val?"on":val)));break;case"textarea":cb(n,normalize(el.value));break;case"select":if("select-one"===el.type.toLowerCase())optCb(el.selectedIndex>=0?el.options[el.selectedIndex]:null);else for(i=0;el.length&&i<el.length;i++)el.options[i].selected&&optCb(el.options[i])}}function eachFormElement(){var e,i,cb=this,serializeSubtags=function(e,tags){var i,j,fa;for(i=0;i<tags.length;i++)for(fa=e[byTag](tags[i]),j=0;j<fa.length;j++)serial(fa[j],cb)};for(i=0;i<arguments.length;i++)e=arguments[i],/input|select|textarea/i.test(e.tagName)&&serial(e,cb),serializeSubtags(e,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var hash={};return eachFormElement.apply(function(name,value){name in hash?(hash[name]&&!isArray(hash[name])&&(hash[name]=[hash[name]]),hash[name].push(value)):hash[name]=value},arguments),hash}function buildParams(prefix,obj,traditional,add){var name,i,v,rbracket=/\[\]$/;if(isArray(obj))for(i=0;obj&&i<obj.length;i++)v=obj[i],traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+("object"==typeof v?i:"")+"]",v,traditional,add);else if(obj&&"[object Object]"===obj.toString())for(name in obj)buildParams(prefix+"["+name+"]",obj[name],traditional,add);else add(prefix,obj)}return Reqwest.prototype={abort:function(){this._aborted=!0,this.request.abort()},retry:function(){init.call(this,this.o,this.fn)},then:function(success,fail){return success=success||function(){},fail=fail||function(){},this._fulfilled?this._responseArgs.resp=success(this._responseArgs.resp):this._erred?fail(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):(this._fulfillmentHandlers.push(success),this._errorHandlers.push(fail)),this},always:function(fn){return this._fulfilled||this._erred?fn(this._responseArgs.resp):this._completeHandlers.push(fn),this},fail:function(fn){return this._erred?fn(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):this._errorHandlers.push(fn),this},catch:function(fn){return this.fail(fn)}},reqwest.serializeArray=function(){var arr=[];return eachFormElement.apply(function(name,value){arr.push({name:name,value:value})},arguments),arr},reqwest.serialize=function(){if(0===arguments.length)return"";var opt,args=Array.prototype.slice.call(arguments,0);return(opt=args.pop())&&opt.nodeType&&args.push(opt)&&(opt=null),opt&&(opt=opt.type),("map"==opt?serializeHash:"array"==opt?reqwest.serializeArray:serializeQueryString).apply(null,args)},reqwest.toQueryString=function(o,trad){var prefix,i,traditional=trad||!1,s=[],enc=encodeURIComponent,add=function(key,value){value="function"==typeof value?value():null==value?"":value,s[s.length]=enc(key)+"="+enc(value)};if(isArray(o))for(i=0;o&&i<o.length;i++)add(o[i].name,o[i].value);else for(prefix in o)o.hasOwnProperty(prefix)&&buildParams(prefix,o[prefix],traditional,add);return s.join("&").replace(/%20/g,"+")},reqwest.getcallbackPrefix=function(){return callbackPrefix},reqwest.compat=function(o,fn){return o&&(o.type&&(o.method=o.type)&&delete o.type,o.dataType&&(o.type=o.dataType),o.jsonpCallback&&(o.jsonpCallbackName=o.jsonpCallback)&&delete o.jsonpCallback,o.jsonp&&(o.jsonpCallback=o.jsonp)),new Reqwest(o,fn)},reqwest.ajaxSetup=function(options){for(var k in options=options||{})globalSetupOptions[k]=options[k]},reqwest},module.exports?module.exports=definition():void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=definition)?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(module,__webpack_exports__,__webpack_require__){"use strict";function detectIE(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>0)return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);if(ua.indexOf("Trident/")>0){var rv=ua.indexOf("rv:");return parseInt(ua.substring(rv+3,ua.indexOf(".",rv)),10)}var edge=ua.indexOf("Edge/");return edge>0&&parseInt(ua.substring(edge+5,ua.indexOf(".",edge)),10)}__webpack_require__.d(__webpack_exports__,"a",function(){return detectIE})},function(module,exports){module.exports=function(v1,operator,v2,options){switch(operator){case"===":return v1===v2?options.fn(this):options.inverse(this);case"!==":return v1!==v2?options.fn(this):options.inverse(this);case"<":return v1<v2?options.fn(this):options.inverse(this);case"<=":return v1<=v2?options.fn(this):options.inverse(this);case">":return v1>v2?options.fn(this):options.inverse(this);case">=":return v1>=v2?options.fn(this):options.inverse(this);case"&&":return v1&&v2?options.fn(this):options.inverse(this);case"||":return v1||v2?options.fn(this):options.inverse(this);default:return options.inverse(this)}}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.extend=extend,exports.indexOf=function(array,value){for(var i=0,len=array.length;i<len;i++)if(array[i]===value)return i;return-1},exports.escapeExpression=function(string){if("string"!=typeof string){if(string&&string.toHTML)return string.toHTML();if(null==string)return"";if(!string)return string+"";string=""+string}if(!possible.test(string))return string;return string.replace(badChars,escapeChar)},exports.isEmpty=function(value){return!value&&0!==value||!(!isArray(value)||0!==value.length)},exports.createFrame=function(object){var frame=extend({},object);return frame._parent=object,frame},exports.blockParams=function(params,ids){return params.path=ids,params},exports.appendContextPath=function(contextPath,id){return(contextPath?contextPath+".":"")+id};var escape={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},badChars=/[&<>"'`=]/g,possible=/[&<>"'`=]/;function escapeChar(chr){return escape[chr]}function extend(obj){for(var i=1;i<arguments.length;i++)for(var key in arguments[i])Object.prototype.hasOwnProperty.call(arguments[i],key)&&(obj[key]=arguments[i][key]);return obj}var toString=Object.prototype.toString;exports.toString=toString;var isFunction=function(value){return"function"==typeof value};isFunction(/x/)&&(exports.isFunction=isFunction=function(value){return"function"==typeof value&&"[object Function]"===toString.call(value)}),exports.isFunction=isFunction;var isArray=Array.isArray||function(value){return!(!value||"object"!=typeof value)&&"[object Array]"===toString.call(value)};exports.isArray=isArray},function(module,__webpack_exports__,__webpack_require__){"use strict";function Storage(){var storage={};function isSupported(){return!!localStorage}this.get=function(index){return isSupported()?localStorage.getItem(index):storage[index]?storage[index]:null},this.set=function(index,value){return isSupported()?localStorage.setItem(index,value):(storage[index]=value,!0)},this.remove=function(index){return isSupported()?localStorage.removeItem(index):!!storage[index]&&(delete storage[index],!0)}}__webpack_require__.d(__webpack_exports__,"a",function(){return Storage})},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var errorProps=["description","fileName","lineNumber","message","name","number","stack"];function Exception(message,node){var loc=node&&node.loc,line=void 0,column=void 0;loc&&(message+=" - "+(line=loc.start.line)+":"+(column=loc.start.column));for(var tmp=Error.prototype.constructor.call(this,message),idx=0;idx<errorProps.length;idx++)this[errorProps[idx]]=tmp[errorProps[idx]];Error.captureStackTrace&&Error.captureStackTrace(this,Exception);try{loc&&(this.lineNumber=line,Object.defineProperty?Object.defineProperty(this,"column",{value:column,enumerable:!0}):this.column=column)}catch(nop){}}Exception.prototype=new Error,exports.default=Exception,module.exports=exports.default},function(module){module.exports={a:1642023070}},function(module,exports,__webpack_require__){!function(window,document,undefined){var defaults={messages:{required:"The %s field is required.",matches:"The %s field does not match the %s field.",default:"The %s field is still set to default, please change.",valid_email:"The %s field must contain a valid email address.",valid_emails:"The %s field must contain all valid email addresses.",min_length:"The %s field must be at least %s characters in length.",max_length:"The %s field must not exceed %s characters in length.",exact_length:"The %s field must be exactly %s characters in length.",greater_than:"The %s field must contain a number greater than %s.",less_than:"The %s field must contain a number less than %s.",alpha:"The %s field must only contain alphabetical characters.",alpha_numeric:"The %s field must only contain alpha-numeric characters.",alpha_dash:"The %s field must only contain alpha-numeric characters, underscores, and dashes.",numeric:"The %s field must contain only numbers.",integer:"The %s field must contain an integer.",decimal:"The %s field must contain a decimal number.",is_natural:"The %s field must contain only positive numbers.",is_natural_no_zero:"The %s field must contain a number greater than zero.",valid_ip:"The %s field must contain a valid IP.",valid_base64:"The %s field must contain a base64 string.",valid_credit_card:"The %s field must contain a valid credit card number.",is_file_type:"The %s field must contain only %s files.",valid_url:"The %s field must contain a valid URL.",greater_than_date:"The %s field must contain a more recent date than %s.",less_than_date:"The %s field must contain an older date than %s.",greater_than_or_equal_date:"The %s field must contain a date that's at least as recent as %s.",less_than_or_equal_date:"The %s field must contain a date that's %s or older."},callback:function(errors){}},ruleRegex=/^(.+?)\[(.+)\]$/,numericRegex=/^[0-9]+$/,integerRegex=/^\-?[0-9]+$/,decimalRegex=/^\-?[0-9]*\.?[0-9]+$/,emailRegex=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,alphaRegex=/^[a-z]+$/i,alphaNumericRegex=/^[a-z0-9]+$/i,alphaDashRegex=/^[a-z0-9_\-]+$/i,naturalRegex=/^[0-9]+$/i,naturalNoZeroRegex=/^[1-9][0-9]*$/i,ipRegex=/^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$/i,base64Regex=/[^a-zA-Z0-9\/\+=]/i,numericDashRegex=/^[\d\-\s]+$/,urlRegex=/^((http|https):\/\/(\w+:{0,1}\w*@)?(\S+)|)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,dateRegex=/\d{4}-\d{1,2}-\d{1,2}/,FormValidator=function(formNameOrNode,fields,callback){this.callback=callback||defaults.callback,this.errors=[],this.fields={},this.form=this._formByNameOrNode(formNameOrNode)||{},this.messages={},this.handlers={},this.conditionals={};for(var i=0,fieldLength=fields.length;i<fieldLength;i++){var field=fields[i];if((field.name||field.names)&&field.rules)if(field.names)for(var j=0,fieldNamesLength=field.names.length;j<fieldNamesLength;j++)this._addField(field,field.names[j]);else this._addField(field,field.name);else console.warn("validate.js: The following field is being skipped due to a misconfiguration:"),console.warn(field),console.warn("Check to ensure you have properly configured a name and rules for this field")}var that,_onsubmit=this.form.onsubmit;this.form.onsubmit=(that=this,function(evt){try{return that._validateForm(evt)&&(void 0===_onsubmit||_onsubmit())}catch(e){}})},attributeValue=function(element,attributeName){var i;if(!(element.length>0)||"radio"!==element[0].type&&"checkbox"!==element[0].type)return element[attributeName];for(i=0,elementLength=element.length;i<elementLength;i++)if(element[i].checked)return element[i][attributeName]};FormValidator.prototype.setMessage=function(rule,message){return this.messages[rule]=message,this},FormValidator.prototype.setRules=function(fields){this.fields={};for(var i=0,fieldLength=fields.length;i<fieldLength;i++){var field=fields[i];if((field.name||field.names)&&field.rules)if(field.names)for(var j=0,fieldNamesLength=field.names.length;j<fieldNamesLength;j++)this._addField(field,field.names[j]);else this._addField(field,field.name);else console.warn("validate.js: The following field is being skipped due to a misconfiguration:"),console.warn(field),console.warn("Check to ensure you have properly configured a name and rules for this field")}return this},FormValidator.prototype.registerCallback=function(name,handler){return name&&"string"==typeof name&&handler&&"function"==typeof handler&&(this.handlers[name]=handler),this},FormValidator.prototype.registerConditional=function(name,conditional){return name&&"string"==typeof name&&conditional&&"function"==typeof conditional&&(this.conditionals[name]=conditional),this},FormValidator.prototype._formByNameOrNode=function(formNameOrNode){return"object"==typeof formNameOrNode?formNameOrNode:document.forms[formNameOrNode]},FormValidator.prototype._addField=function(field,nameValue){this.fields[nameValue]={name:nameValue,display:field.display||nameValue,rules:field.rules,depends:field.depends,id:null,element:null,type:null,value:null,checked:null,args:field.args}},FormValidator.prototype._validateForm=function(evt){for(var key in this.errors=[],this.fields)if(this.fields.hasOwnProperty(key)){var field=this.fields[key]||{},element=this.form[field.name];if(element&&void 0!==element){if(field.id=attributeValue(element,"id"),element.length>1)for(var i=element.length-1;i>=0;i--)field.id=attributeValue(element[i],"id");field.element=element,field.type=element.length>0?element[0].type:element.type,field.value=attributeValue(element,"value"),field.checked=attributeValue(element,"checked"),field.depends&&"function"==typeof field.depends?field.depends.call(this,field)&&this._validateField(field):field.depends&&"string"==typeof field.depends&&this.conditionals[field.depends]?this.conditionals[field.depends].call(this,field)&&this._validateField(field):this._validateField(field)}}"function"==typeof this.callback&&this.callback(this.errors,evt);var customData=function(event){return void 0!==event.target?event.target:event.srcElement}(evt);return customData.isValid=!0,this.errors.length>0&&(customData.isValid=!1,evt&&evt.preventDefault?evt.preventDefault():event&&(event.returnValue=!1)),!0},FormValidator.prototype._validateField=function(field){var i,j,ruleLength,rules=field.rules.split("|"),indexOfRequired=field.rules.indexOf("required"),isEmpty=!field.value||""===field.value||void 0===field.value;for(i=0,ruleLength=rules.length;i<ruleLength;i++){var method=rules[i],param=null,failed=!1;ruleRegex.exec(method);if(-1!==indexOfRequired||-1!==method.indexOf("!callback_")||!isEmpty){"!"===method.charAt(0)&&(method=method.substring(1,method.length));var fieldName=field.name;if(void 0!==this.fields[fieldName].args[method]&&(param=this.fields[fieldName].args[method]),"function"==typeof this._hooks[method]?this._hooks[method].apply(this,[field,param])||(failed=!0):"callback_"===method.substring(0,9)&&(method=method.substring(9,method.length),"function"==typeof this.handlers[method]&&!1===this.handlers[method].apply(this,[field.value,param,field])&&(failed=!0)),failed){var existingError,source=this.messages[field.name+"."+method]||this.messages[method]||defaults.messages[method],message="An error has occurred with the "+field.display+" field.";for(source&&(message=source.replace("%s",field.display),param&&(message=message.replace("%s",this.fields[param]?this.fields[param].display:param))),j=0;j<this.errors.length;j+=1)field.name===this.errors[j].name&&field.id===this.errors[j].id&&(existingError=this.errors[j]);var errorObject=existingError||{id:field.id,display:field.display,element:field.element,name:field.name,message:message,messages:[],rule:method};errorObject.messages.push(message),existingError||this.errors.push(errorObject)}}}},FormValidator.prototype._getValidDate=function(date){if(!date.match("today")&&!date.match(dateRegex))return!1;var validDateArray,validDate=new Date;return date.match("today")||(validDateArray=date.split("-"),validDate.setFullYear(validDateArray[0]),validDate.setMonth(validDateArray[1]-1),validDate.setDate(validDateArray[2])),validDate},FormValidator.prototype._hooks={required:function(field){var value=field.value;return"checkbox"===field.type||"radio"===field.type?!0===field.checked:null!==value&&""!==value},default:function(field,defaultName){return field.value!==defaultName},matches:function(field,matchName){var el=this.form[matchName];return!!el&&field.value===el.value},valid_email:function(field){return emailRegex.test(field.value)},valid_emails:function(field){for(var result=field.value.split(/\s*,\s*/g),i=0,resultLength=result.length;i<resultLength;i++)if(!emailRegex.test(result[i]))return!1;return!0},min_length:function(field,length){return!!numericRegex.test(length)&&field.value.length>=parseInt(length,10)},max_length:function(field,length){return!!numericRegex.test(length)&&field.value.length<=parseInt(length,10)},exact_length:function(field,length){return!!numericRegex.test(length)&&field.value.length===parseInt(length,10)},greater_than:function(field,param){return!!decimalRegex.test(field.value)&&parseFloat(field.value)>parseFloat(param)},less_than:function(field,param){return!!decimalRegex.test(field.value)&&parseFloat(field.value)<parseFloat(param)},alpha:function(field){return alphaRegex.test(field.value)},alpha_numeric:function(field){return alphaNumericRegex.test(field.value)},alpha_dash:function(field){return alphaDashRegex.test(field.value)},numeric:function(field){return numericRegex.test(field.value)},integer:function(field){return integerRegex.test(field.value)},decimal:function(field){return decimalRegex.test(field.value)},is_natural:function(field){return naturalRegex.test(field.value)},is_natural_no_zero:function(field){return naturalNoZeroRegex.test(field.value)},valid_ip:function(field){return ipRegex.test(field.value)},valid_base64:function(field){return base64Regex.test(field.value)},valid_url:function(field){return urlRegex.test(field.value)},valid_credit_card:function(field){if(!numericDashRegex.test(field.value))return!1;for(var nCheck=0,nDigit=0,bEven=!1,strippedField=field.value.replace(/\D/g,""),n=strippedField.length-1;n>=0;n--){var cDigit=strippedField.charAt(n);nDigit=parseInt(cDigit,10),bEven&&(nDigit*=2)>9&&(nDigit-=9),nCheck+=nDigit,bEven=!bEven}return nCheck%10==0},is_file_type:function(field,type){if("file"!==field.type)return!0;for(var ext=field.value.substr(field.value.lastIndexOf(".")+1),typeArray=type.split(","),inArray=!1,i=0,len=typeArray.length;i<len;i++)ext.toUpperCase()==typeArray[i].toUpperCase()&&(inArray=!0);return inArray},greater_than_date:function(field,date){var enteredDate=this._getValidDate(field.value),validDate=this._getValidDate(date);return!(!validDate||!enteredDate)&&enteredDate>validDate},less_than_date:function(field,date){var enteredDate=this._getValidDate(field.value),validDate=this._getValidDate(date);return!(!validDate||!enteredDate)&&enteredDate<validDate},greater_than_or_equal_date:function(field,date){var enteredDate=this._getValidDate(field.value),validDate=this._getValidDate(date);return!(!validDate||!enteredDate)&&enteredDate>=validDate},less_than_or_equal_date:function(field,date){var enteredDate=this._getValidDate(field.value),validDate=this._getValidDate(date);return!(!validDate||!enteredDate)&&enteredDate<=validDate}},window.FormValidator=FormValidator}(window,document),module.exports&&(module.exports=FormValidator)},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'        <li>\r\n            <div class="balance-details">\r\n                <div class="label">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.label:stack1,depth0))+'</div>\r\n                <div class="balance" data-balanceId="'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.wallet:stack1,depth0))+'">'+(null!=(stack1=alias1(null!=(stack1=blockParams[0][0])?stack1.total:stack1,depth0))?stack1:"")+"</div>\r\n            </div>\r\n        </li>\r\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams){var stack1;return"<ul>\r\n"+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=depth0?depth0.breakdown:depth0,{name:"each",hash:{},fn:container.program(1,data,2,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"</ul>"},useData:!0,useBlockParams:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper;return'<span\n    product-id="'+container.escapeExpression("function"==typeof(helper=null!=(helper=helpers.id||(null!=depth0?depth0.id:depth0))?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"id",hash:{},data:data}):helper)+'"\n    class="refresh-balance refresh-icon inline-block"\n    style="display: inline-block;"\n>\n</span>\n'},useData:!0})},function(module,exports,__webpack_require__){(function(global){var scope=void 0!==global&&global||"undefined"!=typeof self&&self||window,apply=Function.prototype.apply;function Timeout(id,clearFn){this._id=id,this._clearFn=clearFn}exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,scope,arguments),clearTimeout)},exports.setInterval=function(){return new Timeout(apply.call(setInterval,scope,arguments),clearInterval)},exports.clearTimeout=exports.clearInterval=function(timeout){timeout&&timeout.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(scope,this._id)},exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId),item._idleTimeout=msecs},exports.unenroll=function(item){clearTimeout(item._idleTimeoutId),item._idleTimeout=-1},exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;msecs>=0&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))},__webpack_require__(69),exports.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==global&&global.setImmediate||this&&this.setImmediate,exports.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==global&&global.clearImmediate||this&&this.clearImmediate}).call(this,__webpack_require__(7))},function(module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0,exports.HandlebarsEnvironment=HandlebarsEnvironment;var _utils=__webpack_require__(5),_exception2=_interopRequireDefault(__webpack_require__(8)),_helpers=__webpack_require__(73),_decorators=__webpack_require__(81),_logger2=_interopRequireDefault(__webpack_require__(83));exports.VERSION="4.0.12";exports.COMPILER_REVISION=7;exports.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"};function HandlebarsEnvironment(helpers,partials,decorators){this.helpers=helpers||{},this.partials=partials||{},this.decorators=decorators||{},_helpers.registerDefaultHelpers(this),_decorators.registerDefaultDecorators(this)}HandlebarsEnvironment.prototype={constructor:HandlebarsEnvironment,logger:_logger2.default,log:_logger2.default.log,registerHelper:function(name,fn){if("[object Object]"===_utils.toString.call(name)){if(fn)throw new _exception2.default("Arg not supported with multiple helpers");_utils.extend(this.helpers,name)}else this.helpers[name]=fn},unregisterHelper:function(name){delete this.helpers[name]},registerPartial:function(name,partial){if("[object Object]"===_utils.toString.call(name))_utils.extend(this.partials,name);else{if(void 0===partial)throw new _exception2.default('Attempting to register a partial called "'+name+'" as undefined');this.partials[name]=partial}},unregisterPartial:function(name){delete this.partials[name]},registerDecorator:function(name,fn){if("[object Object]"===_utils.toString.call(name)){if(fn)throw new _exception2.default("Arg not supported with multiple decorators");_utils.extend(this.decorators,name)}else this.decorators[name]=fn},unregisterDecorator:function(name){delete this.decorators[name]}};var log=_logger2.default.log;exports.log=log,exports.createFrame=_utils.createFrame,exports.logger=_logger2.default},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(setImmediate){var setTimeoutFunc=setTimeout;function noop(){}function Promise(fn){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if("function"!=typeof fn)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],doResolve(fn,this)}function handle(self,deferred){for(;3===self._state;)self=self._value;0!==self._state?(self._handled=!0,Promise._immediateFn(function(){var cb=1===self._state?deferred.onFulfilled:deferred.onRejected;if(null!==cb){var ret;try{ret=cb(self._value)}catch(e){return void reject(deferred.promise,e)}resolve(deferred.promise,ret)}else(1===self._state?resolve:reject)(deferred.promise,self._value)})):self._deferreds.push(deferred)}function resolve(self,newValue){try{if(newValue===self)throw new TypeError("A promise cannot be resolved with itself.");if(newValue&&("object"==typeof newValue||"function"==typeof newValue)){var then=newValue.then;if(newValue instanceof Promise)return self._state=3,self._value=newValue,void finale(self);if("function"==typeof then)return void doResolve((fn=then,thisArg=newValue,function(){fn.apply(thisArg,arguments)}),self)}self._state=1,self._value=newValue,finale(self)}catch(e){reject(self,e)}var fn,thisArg}function reject(self,newValue){self._state=2,self._value=newValue,finale(self)}function finale(self){2===self._state&&0===self._deferreds.length&&Promise._immediateFn(function(){self._handled||Promise._unhandledRejectionFn(self._value)});for(var i=0,len=self._deferreds.length;i<len;i++)handle(self,self._deferreds[i]);self._deferreds=null}function Handler(onFulfilled,onRejected,promise){this.onFulfilled="function"==typeof onFulfilled?onFulfilled:null,this.onRejected="function"==typeof onRejected?onRejected:null,this.promise=promise}function doResolve(fn,self){var done=!1;try{fn(function(value){done||(done=!0,resolve(self,value))},function(reason){done||(done=!0,reject(self,reason))})}catch(ex){if(done)return;done=!0,reject(self,ex)}}Promise.prototype.catch=function(onRejected){return this.then(null,onRejected)},Promise.prototype.then=function(onFulfilled,onRejected){var prom=new this.constructor(noop);return handle(this,new Handler(onFulfilled,onRejected,prom)),prom},Promise.prototype.finally=function(callback){var constructor=this.constructor;return this.then(function(value){return constructor.resolve(callback()).then(function(){return value})},function(reason){return constructor.resolve(callback()).then(function(){return constructor.reject(reason)})})},Promise.all=function(arr){return new Promise(function(resolve,reject){if(!arr||void 0===arr.length)throw new TypeError("Promise.all accepts an array");var args=Array.prototype.slice.call(arr);if(0===args.length)return resolve([]);var remaining=args.length;function res(i,val){try{if(val&&("object"==typeof val||"function"==typeof val)){var then=val.then;if("function"==typeof then)return void then.call(val,function(val){res(i,val)},reject)}args[i]=val,0==--remaining&&resolve(args)}catch(ex){reject(ex)}}for(var i=0;i<args.length;i++)res(i,args[i])})},Promise.resolve=function(value){return value&&"object"==typeof value&&value.constructor===Promise?value:new Promise(function(resolve){resolve(value)})},Promise.reject=function(value){return new Promise(function(resolve,reject){reject(value)})},Promise.race=function(values){return new Promise(function(resolve,reject){for(var i=0,len=values.length;i<len;i++)values[i].then(resolve,reject)})},Promise._immediateFn="function"==typeof setImmediate&&function(fn){setImmediate(fn)}||function(fn){setTimeoutFunc(fn,0)},Promise._unhandledRejectionFn=function(err){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",err)},__webpack_exports__.a=Promise}).call(this,__webpack_require__(13).setImmediate)},function(module,exports,__webpack_require__){module.exports=function(){"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};function isPushStateAvailable(){return!("undefined"==typeof window||!window.history||!window.history.pushState)}function Navigo(r,useHash,hash){this.root=null,this._routes=[],this._useHash=useHash,this._hash=void 0===hash?"#":hash,this._paused=!1,this._destroyed=!1,this._lastRouteResolved=null,this._notFoundHandler=null,this._defaultHandler=null,this._usePushState=!useHash&&isPushStateAvailable(),this._onLocationChange=this._onLocationChange.bind(this),this._genericHooks=null,this._historyAPIUpdateMethod="pushState",r?this.root=useHash?r.replace(/\/$/,"/"+this._hash):r.replace(/\/$/,""):useHash&&(this.root=this._cLoc().split(this._hash)[0].replace(/\/$/,"/"+this._hash)),this._listen(),this.updatePageLinks()}function clean(s){return s instanceof RegExp?s:s.replace(/\/+$/,"").replace(/^\/+/,"^/")}function getUrlDepth(url){return url.replace(/\/$/,"").split("/").length}function compareUrlDepth(urlA,urlB){return getUrlDepth(urlB)-getUrlDepth(urlA)}function findMatchedRoutes(url){var routes=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return routes.map(function(route){var _replaceDynamicURLPar=function(route){var paramNames=[];return{regexp:route instanceof RegExp?route:new RegExp(route.replace(Navigo.PARAMETER_REGEXP,function(full,dots,name){return paramNames.push(name),Navigo.REPLACE_VARIABLE_REGEXP}).replace(Navigo.WILDCARD_REGEXP,Navigo.REPLACE_WILDCARD)+Navigo.FOLLOWED_BY_SLASH_REGEXP,Navigo.MATCH_REGEXP_FLAGS),paramNames:paramNames}}(clean(route.route)),regexp=_replaceDynamicURLPar.regexp,paramNames=_replaceDynamicURLPar.paramNames,match=url.replace(/^\/+/,"/").match(regexp),params=function(match,names){return 0===names.length?null:match?match.slice(1,match.length).reduce(function(params,value,index){return null===params&&(params={}),params[names[index]]=decodeURIComponent(value),params},null):null}(match,paramNames);return!!match&&{match:match,route:route,params:params}}).filter(function(m){return m})}function match(url,routes){return findMatchedRoutes(url,routes)[0]||!1}function root(url,routes){var matched=routes.map(function(route){return""===route.route||"*"===route.route?url:url.split(new RegExp(route.route+"($|/)"))[0]}),fallbackURL=clean(url);return matched.length>1?matched.reduce(function(result,url){return result.length>url.length&&(result=url),result},matched[0]):1===matched.length?matched[0]:fallbackURL}function getOnlyURL(url,useHash,hash){var split,onlyURL=url,cleanGETParam=function(str){return str.split(/\?(.*)?$/)[0]};return void 0===hash&&(hash="#"),isPushStateAvailable()&&!useHash?onlyURL=cleanGETParam(url).split(hash)[0]:(split=url.split(hash),onlyURL=split.length>1?cleanGETParam(split[1]):cleanGETParam(split[0])),onlyURL}function manageHooks(handler,hooks,params){if(hooks&&"object"===(void 0===hooks?"undefined":_typeof(hooks))){if(hooks.before)return void hooks.before(function(){var shouldRoute=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];shouldRoute&&(handler(),hooks.after&&hooks.after(params))},params);if(hooks.after)return handler(),void(hooks.after&&hooks.after(params))}handler()}return Navigo.prototype={helpers:{match:match,root:root,clean:clean,getOnlyURL:getOnlyURL},navigate:function(path,absolute,state){var to;return path=path||"",this._usePushState?(to=(to=(absolute?"":this._getRoot()+"/")+path.replace(/^\/+/,"/")).replace(/([^:])(\/{2,})/g,"$1/"),state=state||{},history[this._historyAPIUpdateMethod](state,"",to),this.resolve()):"undefined"!=typeof window&&(path=path.replace(new RegExp("^"+this._hash),""),window.location.href=window.location.href.replace(/#$/,"").replace(new RegExp(this._hash+".*$"),"")+this._hash+path),this},on:function(){for(var _this=this,_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];if("function"==typeof args[0])this._defaultHandler={handler:args[0],hooks:args[1]};else if(args.length>=2)if("/"===args[0]){var func=args[1];"object"===_typeof(args[1])&&(func=args[1].uses),this._defaultHandler={handler:func,hooks:args[2]}}else this._add(args[0],args[1],args[2]);else"object"===_typeof(args[0])&&Object.keys(args[0]).sort(compareUrlDepth).forEach(function(route){_this.on(route,args[0][route])});return this},off:function(handler){return null!==this._defaultHandler&&handler===this._defaultHandler.handler?this._defaultHandler=null:null!==this._notFoundHandler&&handler===this._notFoundHandler.handler&&(this._notFoundHandler=null),this._routes=this._routes.reduce(function(result,r){return r.handler!==handler&&result.push(r),result},[]),this},notFound:function(handler,hooks){return this._notFoundHandler={handler:handler,hooks:hooks},this},resolve:function(current){var handler,m,_this2=this,url=(current||this._cLoc()).replace(this._getRoot(),"");this._useHash&&(url=url.replace(new RegExp("^/"+this._hash),"/"));var GETParameters=function(url){return url.split(/\?(.*)?$/).slice(1).join("")}(current||this._cLoc()),onlyURL=getOnlyURL(url,this._useHash,this._hash);return!this._paused&&(this._lastRouteResolved&&onlyURL===this._lastRouteResolved.url&&GETParameters===this._lastRouteResolved.query?(this._lastRouteResolved.hooks&&this._lastRouteResolved.hooks.already&&this._lastRouteResolved.hooks.already(this._lastRouteResolved.params),!1):(m=match(onlyURL,this._routes))?(this._callLeave(),this._lastRouteResolved={url:onlyURL,query:GETParameters,hooks:m.route.hooks,params:m.params,name:m.route.name},handler=m.route.handler,manageHooks(function(){manageHooks(function(){m.route.route instanceof RegExp?handler.apply(void 0,m.match.slice(1,m.match.length)):handler(m.params,GETParameters)},m.route.hooks,m.params,_this2._genericHooks)},this._genericHooks,m.params),m):this._defaultHandler&&(""===onlyURL||"/"===onlyURL||onlyURL===this._hash||function(url,useHash,hash){if(isPushStateAvailable()&&!useHash)return!1;if(!url.match(hash))return!1;var split=url.split(hash);return split.length<2||""===split[1]}(onlyURL,this._useHash,this._hash))?(manageHooks(function(){manageHooks(function(){_this2._callLeave(),_this2._lastRouteResolved={url:onlyURL,query:GETParameters,hooks:_this2._defaultHandler.hooks},_this2._defaultHandler.handler(GETParameters)},_this2._defaultHandler.hooks)},this._genericHooks),!0):(this._notFoundHandler&&manageHooks(function(){manageHooks(function(){_this2._callLeave(),_this2._lastRouteResolved={url:onlyURL,query:GETParameters,hooks:_this2._notFoundHandler.hooks},_this2._notFoundHandler.handler(GETParameters)},_this2._notFoundHandler.hooks)},this._genericHooks),!1))},destroy:function(){this._routes=[],this._destroyed=!0,this._lastRouteResolved=null,this._genericHooks=null,clearTimeout(this._listeningInterval),"undefined"!=typeof window&&(window.removeEventListener("popstate",this._onLocationChange),window.removeEventListener("hashchange",this._onLocationChange))},updatePageLinks:function(){var self=this;"undefined"!=typeof document&&this._findLinks().forEach(function(link){link.hasListenerAttached||(link.addEventListener("click",function(e){var location=self.getLinkPath(link);self._destroyed||(e.preventDefault(),self.navigate(location.replace(/\/+$/,"").replace(/^\/+/,"/")))}),link.hasListenerAttached=!0)})},generate:function(name){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},result=this._routes.reduce(function(result,route){var key;if(route.name===name)for(key in result=route.route,data)result=result.toString().replace(":"+key,data[key]);return result},"");return this._useHash?this._hash+result:result},link:function(path){return this._getRoot()+path},pause:function(){var status=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._paused=status,this._historyAPIUpdateMethod=status?"replaceState":"pushState"},resume:function(){this.pause(!1)},historyAPIUpdateMethod:function(value){return void 0===value?this._historyAPIUpdateMethod:(this._historyAPIUpdateMethod=value,value)},disableIfAPINotAvailable:function(){isPushStateAvailable()||this.destroy()},lastRouteResolved:function(){return this._lastRouteResolved},getLinkPath:function(link){return link.getAttribute("href")},hooks:function(_hooks){this._genericHooks=_hooks},_add:function(route){var handler=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,hooks=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return"string"==typeof route&&(route=encodeURI(route)),this._routes.push("object"===(void 0===handler?"undefined":_typeof(handler))?{route:route,handler:handler.uses,name:handler.as,hooks:hooks||handler.hooks}:{route:route,handler:handler,hooks:hooks}),this._add},_getRoot:function(){return null!==this.root?this.root:(this.root=root(this._cLoc().split("?")[0],this._routes),this.root)},_listen:function(){var _this3=this;if(this._usePushState)window.addEventListener("popstate",this._onLocationChange);else if("undefined"!=typeof window&&"onhashchange"in window)window.addEventListener("hashchange",this._onLocationChange);else{var cached=this._cLoc(),current=void 0,_check=void 0;(_check=function(){current=_this3._cLoc(),cached!==current&&(cached=current,_this3.resolve()),_this3._listeningInterval=setTimeout(_check,200)})()}},_cLoc:function(){return"undefined"!=typeof window?void 0!==window.__NAVIGO_WINDOW_LOCATION_MOCK__?window.__NAVIGO_WINDOW_LOCATION_MOCK__:clean(window.location.href):""},_findLinks:function(){return[].slice.call(document.querySelectorAll("[data-navigo]"))},_onLocationChange:function(){this.resolve()},_callLeave:function(){var lastRouteResolved=this._lastRouteResolved;lastRouteResolved&&lastRouteResolved.hooks&&lastRouteResolved.hooks.leave&&lastRouteResolved.hooks.leave(lastRouteResolved.params)}},Navigo.PARAMETER_REGEXP=/([:*])(\w+)/g,Navigo.WILDCARD_REGEXP=/\*/g,Navigo.REPLACE_VARIABLE_REGEXP="([^/]+)",Navigo.REPLACE_WILDCARD="(?:.*)",Navigo.FOLLOWED_BY_SLASH_REGEXP="(?:/$|$)",Navigo.MATCH_REGEXP_FLAGS="",Navigo}()},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var stack1,alias1=container.lambda;return'<div class="page-not-found-content">\n    <h1>\n        '+container.escapeExpression(alias1(null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.title:stack1,depth0))+"\n    </h1>\n    "+(null!=(stack1=alias1(null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.content:stack1,depth0))?stack1:"")+"\n</div>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=depth0?depth0.data:depth0,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data}))?stack1:""},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var stack1;return'<div class="page-maintenance-content">\n'+(null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.title:stack1,{name:"if",hash:{},fn:container.program(2,data,0),inverse:container.noop,data:data}))?stack1:"")+"    "+(null!=(stack1=container.lambda(null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.content:stack1,depth0))?stack1:"")+"\n</div>\n"},2:function(container,depth0,helpers,partials,data){var stack1;return"    <h1>\n        "+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.title:stack1,depth0))+"\n    </h1>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=depth0?depth0.data:depth0,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data}))?stack1:""},useData:!0})},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__,root;root=window||this,__WEBPACK_AMD_DEFINE_FACTORY__=function(root){"use strict";var mainNavWrapper,totalWidth,restWidth,mainNav,navDropdown,navDropdownToggle,toggleWrapper,priorityNav={},breaks=[],supports=!!document.querySelector&&!!root.addEventListener,settings={},count=0,viewportWidth=0,defaults={initClass:"js-priorityNav",mainNavWrapper:"nav",mainNav:"ul",navDropdownClassName:"nav__dropdown",navDropdownToggleClassName:"nav__dropdown-toggle",navDropdownLabel:"more",navDropdownBreakpointLabel:"menu",breakPoint:500,throttleDelay:50,offsetPixels:0,count:!0,dropdownEventIn:"click",dropdownEventOut:"click",moved:function(){},movedBack:function(){}},forEach=function(collection,callback,scope){if("[object Object]"===Object.prototype.toString.call(collection))for(var prop in collection)Object.prototype.hasOwnProperty.call(collection,prop)&&callback.call(scope,collection[prop],prop,collection);else for(var i=0,len=collection.length;i<len;i++)callback.call(scope,collection[i],i,collection)},toggleClass=function(el,className){if(el.classList)el.classList.toggle(className);else{var classes=el.className.split(" "),existingIndex=classes.indexOf(className);existingIndex>=0?classes.splice(existingIndex,1):classes.push(className),el.className=classes.join(" ")}},calculateWidths=function(_this){var element,styles,padding,doc,w,docEl,width,height;element=_this,styles=window.getComputedStyle(element),padding=parseFloat(styles.paddingLeft)+parseFloat(styles.paddingRight),totalWidth=element.clientWidth-padding,_this.querySelector(navDropdown).parentNode===_this&&_this.querySelector(navDropdown).offsetWidth,restWidth=getChildrenWidth(_this)+settings.offsetPixels,viewportWidth=(doc=document,w=window,docEl=doc.compatMode&&"CSS1Compat"===doc.compatMode?doc.documentElement:doc.body,width=docEl.clientWidth,height=docEl.clientHeight,w.innerWidth&&width>w.innerWidth&&(width=w.innerWidth,height=w.innerHeight),{width:width,height:height}).width};priorityNav.doesItFit=function(_this){var func,wait,immediate,timeout,delay=0===_this.getAttribute("instance")?delay:settings.throttleDelay;(func=function(){var identifier=_this.getAttribute("instance");for(calculateWidths(_this);totalWidth<=restWidth&&_this.querySelector(mainNav).children.length>0||viewportWidth<settings.breakPoint&&_this.querySelector(mainNav).children.length>0;)priorityNav.toDropdown(_this,identifier),calculateWidths(_this),viewportWidth<settings.breakPoint&&updateLabel(_this,identifier,settings.navDropdownBreakpointLabel);for(;totalWidth>=breaks[identifier][breaks[identifier].length-1]&&viewportWidth>settings.breakPoint;)priorityNav.toMenu(_this,identifier),viewportWidth>settings.breakPoint&&updateLabel(_this,identifier,settings.navDropdownLabel);breaks[identifier].length<1&&(_this.querySelector(navDropdown).classList.remove("show"),updateLabel(_this,identifier,settings.navDropdownLabel)),_this.querySelector(mainNav).children.length<1?(_this.classList.add("is-empty"),updateLabel(_this,identifier,settings.navDropdownBreakpointLabel)):(_this.classList.remove("is-empty"),_this.querySelectorAll(".priority-nav__wrapper li.active").length>0&&_this.querySelector(navDropdownToggle).classList.add("active")),showToggle(_this,identifier)},wait=delay,function(){var context=this,args=arguments,callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(function(){timeout=null,immediate||func.apply(context,args)},wait),callNow&&func.apply(context,args)})()};var showToggle=function(_this,identifier){breaks[identifier].length<1?(_this.querySelector(navDropdownToggle).classList.add("priority-nav-is-hidden"),_this.querySelector(navDropdownToggle).classList.remove("priority-nav-is-visible"),_this.classList.remove("priority-nav-has-dropdown"),_this.querySelector(".priority-nav__wrapper").setAttribute("aria-haspopup","false")):(_this.querySelector(navDropdownToggle).classList.add("priority-nav-is-visible"),_this.querySelector(navDropdownToggle).classList.remove("priority-nav-is-hidden"),_this.classList.add("priority-nav-has-dropdown"),_this.querySelector(".priority-nav__wrapper").setAttribute("aria-haspopup","true"))},updateCount=function(_this,identifier){_this.querySelector(navDropdownToggle).setAttribute("priorityNav-count",breaks[identifier].length)},updateLabel=function(_this,identifier,label){_this.querySelector(navDropdownToggle).innerHTML=label};priorityNav.toDropdown=function(_this,identifier){_this.querySelector(navDropdown).firstChild&&_this.querySelector(mainNav).children.length>0?_this.querySelector(navDropdown).insertBefore(_this.querySelector(mainNav).lastElementChild,_this.querySelector(navDropdown).firstChild):_this.querySelector(mainNav).children.length>0&&_this.querySelector(navDropdown).appendChild(_this.querySelector(mainNav).lastElementChild),breaks[identifier].push(restWidth),showToggle(_this,identifier),_this.querySelector(mainNav).children.length>0&&settings.count&&updateCount(_this,identifier),settings.moved()},priorityNav.toMenu=function(_this,identifier){_this.querySelector(navDropdown).children.length>0&&_this.querySelector(mainNav).appendChild(_this.querySelector(navDropdown).firstElementChild),breaks[identifier].pop(),showToggle(_this,identifier),_this.querySelector(mainNav).children.length>0&&settings.count&&updateCount(_this,identifier),settings.movedBack()};var getChildrenWidth=function(e){for(var children=e.childNodes,sum=0,i=0;i<children.length;i++)3!==children[i].nodeType&&(isNaN(children[i].offsetWidth)||(sum+=children[i].offsetWidth));return sum};Element.prototype.remove=function(){this.parentElement.removeChild(this)},NodeList.prototype.remove=HTMLCollection.prototype.remove=function(){for(var i=0,len=this.length;i<len;i++)this[i]&&this[i].parentElement&&this[i].parentElement.removeChild(this[i])},priorityNav.destroy=function(){settings&&(document.documentElement.classList.remove(settings.initClass),toggleWrapper.remove(),settings=null,delete priorityNav.init,delete priorityNav.doesItFit)},supports&&"undefined"!=typeof Node&&(Node.prototype.insertAfter=function(n,r){this.insertBefore(n,r.nextSibling)});var checkForSymbols=function(string){var firstChar=string.charAt(0);return"."!==firstChar&&"#"!==firstChar};return priorityNav.init=function(options){if(settings=function(defaults,options){var extended={};return forEach(defaults,function(value,prop){extended[prop]=defaults[prop]}),forEach(options,function(value,prop){extended[prop]=options[prop]}),extended}(defaults,options||{}),supports||"undefined"!=typeof Node)if(checkForSymbols(settings.navDropdownClassName)&&checkForSymbols(settings.navDropdownToggleClassName)){var elements=document.querySelectorAll(settings.mainNavWrapper);forEach(elements,function(_this){breaks[count]=[],_this.setAttribute("instance",count++),(mainNavWrapper=_this)?(mainNav=settings.mainNav,_this.querySelector(mainNav)?(function(_this,settings){toggleWrapper=document.createElement("span"),navDropdown=document.createElement("ul"),(navDropdownToggle=document.createElement("button")).innerHTML=settings.navDropdownLabel,navDropdownToggle.setAttribute("aria-controls","menu"),navDropdownToggle.setAttribute("type","button"),navDropdown.setAttribute("aria-hidden","true"),_this.querySelector(mainNav).parentNode===_this?(_this.insertAfter(toggleWrapper,_this.querySelector(mainNav)),toggleWrapper.appendChild(navDropdownToggle),toggleWrapper.appendChild(navDropdown),navDropdown.classList.add(settings.navDropdownClassName),navDropdown.classList.add("priority-nav__dropdown"),navDropdownToggle.classList.add(settings.navDropdownToggleClassName),navDropdownToggle.classList.add("priority-nav__dropdown-toggle"),toggleWrapper.classList.add(settings.navDropdownClassName+"-wrapper"),toggleWrapper.classList.add("priority-nav__wrapper"),_this.classList.add("priority-nav")):console.warn("mainNav is not a direct child of mainNavWrapper, double check please")}(_this,settings),navDropdown="."+settings.navDropdownClassName,_this.querySelector(navDropdown)?(navDropdownToggle="."+settings.navDropdownToggleClassName,_this.querySelector(navDropdownToggle)?(function(_this,settings){window.attachEvent?window.attachEvent("onresize",function(){priorityNav.doesItFit&&priorityNav.doesItFit(_this)}):window.addEventListener&&window.addEventListener("resize",function(){priorityNav.doesItFit&&priorityNav.doesItFit(_this)},!0),_this.querySelector(navDropdownToggle).addEventListener(settings.dropdownEventIn,function(){toggleClass(_this.querySelector(navDropdown),"show"),toggleClass(this,"is-open"),toggleClass(_this,"is-open"),-1!==_this.className.indexOf("is-open")?_this.querySelector(navDropdown).setAttribute("aria-hidden","false"):(_this.querySelector(navDropdown).setAttribute("aria-hidden","true"),_this.querySelector(navDropdown).blur())}),document.addEventListener(settings.dropdownEventOut,function(event){(function(elem,selector){for(var firstChar=selector.charAt(0);elem&&elem!==document;elem=elem.parentNode)if("."===firstChar){if(elem.classList.contains(selector.substr(1)))return elem}else if("#"===firstChar){if(elem.id===selector.substr(1))return elem}else if("["===firstChar&&elem.hasAttribute(selector.substr(1,selector.length-2)))return elem;return!1})(event.target,"."+settings.navDropdownClassName)||event.target===_this.querySelector(navDropdownToggle)||(_this.querySelector(navDropdown).classList.remove("show"),_this.querySelector(navDropdownToggle).classList.remove("is-open"),_this.classList.remove("is-open"))}),document.onkeydown=function(evt){27===(evt=evt||window.event).keyCode&&(document.querySelector(navDropdown).classList.remove("show"),document.querySelector(navDropdownToggle).classList.remove("is-open"),mainNavWrapper.classList.remove("is-open"))}}(_this,settings),priorityNav.doesItFit(_this)):console.warn("couldn't find the specified navDropdownToggle element")):console.warn("couldn't find the specified navDropdown element")):console.warn("couldn't find the specified mainNav element")):console.warn("couldn't find the specified mainNavWrapper element")}),document.documentElement.classList.add(settings.initClass)}else console.warn("No symbols allowed in navDropdownClassName & navDropdownToggleClassName. These are not selectors.");else console.warn("This browser doesn't support priorityNav")},priorityNav}(root),void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return'    <div class="cashier-wallet-row">\n        <div class="balance-details">\n            <div class="label">'+container.escapeExpression(container.lambda(null!=(stack1=blockParams[0][0])?stack1.label:stack1,depth0))+'</div>\n            <div class="balance_row">\n'+(null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.walletStatus:stack1)?stack1.status:stack1,{name:"if",hash:{},fn:container.program(2,data,0,blockParams,depths),inverse:container.program(7,data,0,blockParams,depths),data:data,blockParams:blockParams}))?stack1:"")+"            </div>\n        </div>\n    </div>\n"},2:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=helpers.blockHelperMissing;return'                <div class="fiat_balance">'+alias2(alias1(null!=(stack1=blockParams[1][0])?stack1.totalFiat:stack1,depth0))+'</div>\n                <div class="token_balance">'+alias2(alias1(null!=(stack1=blockParams[1][0])?stack1.totalToken:stack1,depth0))+'</div>\n                <div class="token_toggle">\n                    <div class="fiat'+(null!=(stack1=helpers.unless.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[1][0])?stack1.tokenFlag:stack1,{name:"unless",hash:{},fn:container.program(3,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'">'+alias2(alias1(null!=depths[1]?depths[1].currency:depths[1],depth0))+'</div>\n                    <div class="switch">\n                        <svg class="dafacoin-switch-icon" width="24" height="24" viewBox="0 0 24 24">\n                            <use xlink:href="#switch-icon" xmlns:xlink="http://www.w3.org/1999/xlink"></use>\n                        </svg>\n                    </div>\n                    <div class="dafacoin'+(null!=(stack1=alias3.call(depth0,alias1(null!=(stack1=blockParams[1][0])?stack1.tokenFlag:stack1,depth0),{name:"item.tokenFlag",hash:{},fn:container.program(3,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'">'+alias2(alias1(null!=depths[1]?depths[1].tokenLabel:depths[1],depth0))+'</div>\n                    <input data-wallet-id="'+alias2(alias1(null!=(stack1=blockParams[1][0])?stack1.wallet:stack1,depth0))+'" type="checkbox" class="checkbox" '+(null!=(stack1=alias3.call(depth0,alias1(null!=(stack1=blockParams[1][0])?stack1.tokenFlag:stack1,depth0),{name:"item.tokenFlag",hash:{},fn:container.program(5,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+">\n                </div>\n"},3:function(container,depth0,helpers,partials,data){return" active"},5:function(container,depth0,helpers,partials,data){return"checked"},7:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return"                <span>"+container.escapeExpression(helpers.lookup.call(null!=depth0?depth0:container.nullContext||{},null!=depths[1]?depths[1].fetchErrors:depths[1],null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.walletStatus:stack1)?stack1.error:stack1,{name:"lookup",hash:{},data:data,blockParams:blockParams}))+"</span>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=container.escapeExpression,alias3=container.lambda;return'<div class="cashier-wallet-rows-container">\n    <div class="cashier-wallet-rows-header">\n        <div class="fiat-header">'+alias2("function"==typeof(helper=null!=(helper=helpers.currency||(null!=depth0?depth0.currency:depth0))?helper:helpers.helperMissing)?helper.call(alias1,{name:"currency",hash:{},data:data,blockParams:blockParams}):helper)+'</div>\n        <div class="dafacoin-header">'+alias2(alias3(null!=(stack1=null!=depth0?depth0.labels:depth0)?stack1.dc:stack1,depth0))+'</div>\n        <div class="switch-header">'+alias2(alias3(null!=(stack1=null!=depth0?depth0.labels:depth0)?stack1.switch:stack1,depth0))+"</div>\n    </div>\n"+(null!=(stack1=helpers.each.call(alias1,null!=depth0?depth0.breakdown:depth0,{name:"each",hash:{},fn:container.program(1,data,2,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"</div>"},useData:!0,useDepths:!0,useBlockParams:!0})},function(module,exports,__webpack_require__){"use strict";(function(setImmediate){var setTimeoutFunc=setTimeout;function noop(){}function Promise(fn){if(!(this instanceof Promise))throw new TypeError("Promises must be constructed via new");if("function"!=typeof fn)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],doResolve(fn,this)}function handle(self,deferred){for(;3===self._state;)self=self._value;0!==self._state?(self._handled=!0,Promise._immediateFn(function(){var cb=1===self._state?deferred.onFulfilled:deferred.onRejected;if(null!==cb){var ret;try{ret=cb(self._value)}catch(e){return void reject(deferred.promise,e)}resolve(deferred.promise,ret)}else(1===self._state?resolve:reject)(deferred.promise,self._value)})):self._deferreds.push(deferred)}function resolve(self,newValue){try{if(newValue===self)throw new TypeError("A promise cannot be resolved with itself.");if(newValue&&("object"==typeof newValue||"function"==typeof newValue)){var then=newValue.then;if(newValue instanceof Promise)return self._state=3,self._value=newValue,void finale(self);if("function"==typeof then)return void doResolve((fn=then,thisArg=newValue,function(){fn.apply(thisArg,arguments)}),self)}self._state=1,self._value=newValue,finale(self)}catch(e){reject(self,e)}var fn,thisArg}function reject(self,newValue){self._state=2,self._value=newValue,finale(self)}function finale(self){2===self._state&&0===self._deferreds.length&&Promise._immediateFn(function(){self._handled||Promise._unhandledRejectionFn(self._value)});for(var i=0,len=self._deferreds.length;i<len;i++)handle(self,self._deferreds[i]);self._deferreds=null}function Handler(onFulfilled,onRejected,promise){this.onFulfilled="function"==typeof onFulfilled?onFulfilled:null,this.onRejected="function"==typeof onRejected?onRejected:null,this.promise=promise}function doResolve(fn,self){var done=!1;try{fn(function(value){done||(done=!0,resolve(self,value))},function(reason){done||(done=!0,reject(self,reason))})}catch(ex){if(done)return;done=!0,reject(self,ex)}}Promise.prototype.catch=function(onRejected){return this.then(null,onRejected)},Promise.prototype.then=function(onFulfilled,onRejected){var prom=new this.constructor(noop);return handle(this,new Handler(onFulfilled,onRejected,prom)),prom},Promise.prototype.finally=function(callback){var constructor=this.constructor;return this.then(function(value){return constructor.resolve(callback()).then(function(){return value})},function(reason){return constructor.resolve(callback()).then(function(){return constructor.reject(reason)})})},Promise.all=function(arr){return new Promise(function(resolve,reject){if(!arr||void 0===arr.length)throw new TypeError("Promise.all accepts an array");var args=Array.prototype.slice.call(arr);if(0===args.length)return resolve([]);var remaining=args.length;function res(i,val){try{if(val&&("object"==typeof val||"function"==typeof val)){var then=val.then;if("function"==typeof then)return void then.call(val,function(val){res(i,val)},reject)}args[i]=val,0==--remaining&&resolve(args)}catch(ex){reject(ex)}}for(var i=0;i<args.length;i++)res(i,args[i])})},Promise.resolve=function(value){return value&&"object"==typeof value&&value.constructor===Promise?value:new Promise(function(resolve){resolve(value)})},Promise.reject=function(value){return new Promise(function(resolve,reject){reject(value)})},Promise.race=function(values){return new Promise(function(resolve,reject){for(var i=0,len=values.length;i<len;i++)values[i].then(resolve,reject)})},Promise._immediateFn="function"==typeof setImmediate&&function(fn){setImmediate(fn)}||function(fn){setTimeoutFunc(fn,0)},Promise._unhandledRejectionFn=function(err){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",err)},module.exports=Promise}).call(this,__webpack_require__(13).setImmediate)},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<div class="loader" id="loader-0"></div>\n<div class="loader" id="loader-1"></div>\n<div class="loader" id="loader-2"></div>\n<div class="loader" id="loader-3"></div>\n<div class="loader" id="loader-4"></div>\n<div class="loader" id="loader-5"></div>\n<div class="loader" id="loader-6"></div>\n<div class="loader" id="loader-7"></div>\n<div class="loader" id="loader-8"></div>\n<div class="loader" id="loader-9"></div>'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var stack1;return'                <div class="announcement--container scrollbot">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=depth0?depth0.announcementData:depth0)?stack1.announcements:stack1,{name:"each",hash:{},fn:container.program(2,data,0),inverse:container.noop,data:data}))?stack1:"")+"                </div>\n"},2:function(container,depth0,helpers,partials,data){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=depth0?depth0.show:depth0,{name:"if",hash:{},fn:container.program(3,data,0),inverse:container.noop,data:data}))?stack1:""},3:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'                            <div\n                                class="announcement-item announcement--list"\n                                data="'+alias4("function"==typeof(helper=null!=(helper=helpers.nid||(null!=depth0?depth0.nid:depth0))?helper:alias2)?helper.call(alias1,{name:"nid",hash:{},data:data}):helper)+'"\n                            >\n                                <strong\n                                    class="text-red announcement-item-title"\n                                >'+alias4("function"==typeof(helper=null!=(helper=helpers.name||(null!=depth0?depth0.name:depth0))?helper:alias2)?helper.call(alias1,{name:"name",hash:{},data:data}):helper)+"</strong>\n                                "+(null!=(stack1="function"==typeof(helper=null!=(helper=helpers.text||(null!=depth0?depth0.text:depth0))?helper:alias2)?helper.call(alias1,{name:"text",hash:{},data:data}):helper)?stack1:"")+"\n                            </div>\n"},5:function(container,depth0,helpers,partials,data){var stack1;return'                <div\n                    class="text-red announcement--default-message"\n                >'+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.announcementData:depth0)?stack1.default_message:stack1,depth0))+"</div>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1;return'<div\n    id="announcementLightbox"\n    class="modal announcement announcement--lightbox"\n>\n    <div class="modal-content announcement-content">\n        <div class="modal-header announcement-title">\n            '+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.announcementData:depth0)?stack1.title:stack1,depth0))+'\n        </div>\n        <div class="modal-body announcement-body">\n'+(null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=depth0?depth0.announcementData:depth0)?stack1.announcement_count:stack1,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.program(5,data,0),data:data}))?stack1:"")+'        </div>\n                    <svg viewBox="0 0 70.24 70.24" class="modal-close modal-close-button">\n                <rect class="modal-close"/>\n                <path class="modal-close" d="M39.53 35.12L53 21.17a3.18 3.18 0 0 0-.09-4.49 3.18 3.18 0 0 0-4.49.09l-13.3 13.78-13.26-13.78a3.18 3.18 0 0 0-4.49-.09 3.18 3.18 0 0 0-.08 4.49l13.43 13.95-13.43 14a3.17 3.17 0 1 0 4.57 4.4L35.12 39.7l13.26 13.77a3.18 3.18 0 0 0 4.49.09 3.18 3.18 0 0 0 .13-4.49z"/>\n            </svg>\n    </div>\n</div>'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var helper;return'        <a href="#" id="pushnxDismissAll" style="color:#fff;">'+container.escapeExpression("function"==typeof(helper=null!=(helper=helpers.dismiss||(null!=depth0?depth0.dismiss:depth0))?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"dismiss",hash:{},data:data}):helper)+"</a>\r\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'<div id="push-notification">\r\n    <div class="title">\r\n'+(null!=(stack1=helpers.if.call(alias1,null!=depth0?depth0.dismiss:depth0,{name:"if",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data}))?stack1:"")+"    "+alias4("function"==typeof(helper=null!=(helper=helpers.title||(null!=depth0?depth0.title:depth0))?helper:alias2)?helper.call(alias1,{name:"title",hash:{},data:data}):helper)+'</div>\r\n    <div class="line"></div>\r\n    <div class="messages messages-pnx scrollbot">'+alias4("function"==typeof(helper=null!=(helper=helpers.messages||(null!=depth0?depth0.messages:depth0))?helper:alias2)?helper.call(alias1,{name:"messages",hash:{},data:data}):helper)+"</div>\r\n</div>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias3="function",alias4=container.escapeExpression;return'<a href="#" class="'+alias4(typeof(helper=null!=(helper=helpers.class||(null!=depth0?depth0.class:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"class",hash:{},data:data}):helper)+'" id="'+alias4(typeof(helper=null!=(helper=helpers.id||(null!=depth0?depth0.id:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"id",hash:{},data:data}):helper)+'" data-msg-id="'+alias4(typeof(helper=null!=(helper=helpers.messageId||(null!=depth0?depth0.messageId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"messageId",hash:{},data:data}):helper)+'" data-id="'+alias4(typeof(helper=null!=(helper=helpers.actionId||(null!=depth0?depth0.actionId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"actionId",hash:{},data:data}):helper)+'" data-msg-src="'+alias4(typeof(helper=null!=(helper=helpers.source||(null!=depth0?depth0.source:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"source",hash:{},data:data}):helper)+'" data-action="'+alias4(typeof(helper=null!=(helper=helpers.action||(null!=depth0?depth0.action:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"action",hash:{},data:data}):helper)+'" data-default-acknowledge='+alias4(typeof(helper=null!=(helper=helpers.acknowledge||(null!=depth0?depth0.acknowledge:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"acknowledge",hash:{},data:data}):helper)+">"+alias4(typeof(helper=null!=(helper=helpers.actionKey||(null!=depth0?depth0.actionKey:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"actionKey",hash:{},data:data}):helper)+"</a>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias3="function",alias4=container.escapeExpression;return'<div class="message message-pnx" id="message'+alias4(typeof(helper=null!=(helper=helpers.messageId||(null!=depth0?depth0.messageId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"messageId",hash:{},data:data}):helper)+'">\r\n    <div class="circle"></div>\r\n    <div class="content" style="">'+(null!=(stack1=typeof(helper=null!=(helper=helpers.content||(null!=depth0?depth0.content:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"content",hash:{},data:data}):helper)?stack1:"")+'</div>\r\n    <div class="actions" id="actions'+alias4(typeof(helper=null!=(helper=helpers.messageId||(null!=depth0?depth0.messageId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"messageId",hash:{},data:data}):helper)+'" data-expiry="'+alias4(typeof(helper=null!=(helper=helpers.expiryDate||(null!=depth0?depth0.expiryDate:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"expiryDate",hash:{},data:data}):helper)+'">'+(null!=(stack1=typeof(helper=null!=(helper=helpers.actions||(null!=depth0?depth0.actions:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"actions",hash:{},data:data}):helper)?stack1:"")+'</div>\r\n    <div class="time">'+alias4(typeof(helper=null!=(helper=helpers.publishDate||(null!=depth0?depth0.publishDate:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"publishDate",hash:{},data:data}):helper)+" "+(null!=(stack1=typeof(helper=null!=(helper=helpers.expirationLabel||(null!=depth0?depth0.expirationLabel:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"expirationLabel",hash:{},data:data}):helper)?stack1:"")+"</div>\r\n</div>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'<span class="'+alias4("function"==typeof(helper=null!=(helper=helpers.debugClass||(null!=depth0?depth0.debugClass:depth0))?helper:alias2)?helper.call(alias1,{name:"debugClass",hash:{},data:data}):helper)+'"> '+alias4("function"==typeof(helper=null!=(helper=helpers.expirationLabel||(null!=depth0?depth0.expirationLabel:depth0))?helper:alias2)?helper.call(alias1,{name:"expirationLabel",hash:{},data:data}):helper)+alias4("function"==typeof(helper=null!=(helper=helpers.formattedDate||(null!=depth0?depth0.formattedDate:depth0))?helper:alias2)?helper.call(alias1,{name:"formattedDate",hash:{},data:data}):helper)+alias4("function"==typeof(helper=null!=(helper=helpers.Phase1Date||(null!=depth0?depth0.Phase1Date:depth0))?helper:alias2)?helper.call(alias1,{name:"Phase1Date",hash:{},data:data}):helper)+"</span>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'<span class="'+alias4("function"==typeof(helper=null!=(helper=helpers.messageClass||(null!=depth0?depth0.messageClass:depth0))?helper:alias2)?helper.call(alias1,{name:"messageClass",hash:{},data:data}):helper)+'">'+alias4("function"==typeof(helper=null!=(helper=helpers.message||(null!=depth0?depth0.message:depth0))?helper:alias2)?helper.call(alias1,{name:"message",hash:{},data:data}):helper)+"</span>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return"<div>"+(null!=(stack1="function"==typeof(helper=null!=(helper=helpers.message||(null!=depth0?depth0.message:depth0))?helper:alias2)?helper.call(alias1,{name:"message",hash:{},data:data}):helper)?stack1:"")+'</div>\r\n<div>\r\n    <a id="dimissYes">'+alias4("function"==typeof(helper=null!=(helper=helpers.yes||(null!=depth0?depth0.yes:depth0))?helper:alias2)?helper.call(alias1,{name:"yes",hash:{},data:data}):helper)+'</a>\r\n</div>\r\n<div>\r\n    <a id="dismissNo">'+alias4("function"==typeof(helper=null!=(helper=helpers.no||(null!=depth0?depth0.no:depth0))?helper:alias2)?helper.call(alias1,{name:"no",hash:{},data:data}):helper)+"</a>\r\n</div>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper;return"<span>"+container.escapeExpression("function"==typeof(helper=null!=(helper=helpers.title||(null!=depth0?depth0.title:depth0))?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"title",hash:{},data:data}):helper)+"</span>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias3="function",alias4=container.escapeExpression;return'<a href="#" class="'+alias4(typeof(helper=null!=(helper=helpers.class||(null!=depth0?depth0.class:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"class",hash:{},data:data}):helper)+'" id="'+alias4(typeof(helper=null!=(helper=helpers.id||(null!=depth0?depth0.id:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"id",hash:{},data:data}):helper)+'" data-msg-id="'+alias4(typeof(helper=null!=(helper=helpers.messageId||(null!=depth0?depth0.messageId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"messageId",hash:{},data:data}):helper)+'" data-id="'+alias4(typeof(helper=null!=(helper=helpers.actionId||(null!=depth0?depth0.actionId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"actionId",hash:{},data:data}):helper)+'" data-msg-src="'+alias4(typeof(helper=null!=(helper=helpers.source||(null!=depth0?depth0.source:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"source",hash:{},data:data}):helper)+'" data-action="'+alias4(typeof(helper=null!=(helper=helpers.action||(null!=depth0?depth0.action:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"action",hash:{},data:data}):helper)+'" data-default-acknowledge='+alias4(typeof(helper=null!=(helper=helpers.acknowledge||(null!=depth0?depth0.acknowledge:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"acknowledge",hash:{},data:data}):helper)+">"+alias4(typeof(helper=null!=(helper=helpers.actionKey||(null!=depth0?depth0.actionKey:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"actionKey",hash:{},data:data}):helper)+"</a>"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper;return'<div id="push-notification" class="pushnx-lightbox-body messages messages-pnx no-notification">'+container.escapeExpression("function"==typeof(helper=null!=(helper=helpers.messages||(null!=depth0?depth0.messages:depth0))?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"messages",hash:{},data:data}):helper)+"</div>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return(null!=(stack1="function"==typeof(helper=null!=(helper=helpers.message||(null!=depth0?depth0.message:depth0))?helper:alias2)?helper.call(alias1,{name:"message",hash:{},data:data}):helper)?stack1:"")+'\r\n<a href="#" id="dismiss-yes" class="text-red btn btn-small btn-yellow btn-lower-case">'+alias4("function"==typeof(helper=null!=(helper=helpers.yes||(null!=depth0?depth0.yes:depth0))?helper:alias2)?helper.call(alias1,{name:"yes",hash:{},data:data}):helper)+'</a>\r\n<a href="#" id="dismiss-no" class="text-red btn btn-small btn-gray btn-lower-case">'+alias4("function"==typeof(helper=null!=(helper=helpers.no||(null!=depth0?depth0.no:depth0))?helper:alias2)?helper.call(alias1,{name:"no",hash:{},data:data}):helper)+"</a>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'<span class="'+alias4("function"==typeof(helper=null!=(helper=helpers.debugClass||(null!=depth0?depth0.debugClass:depth0))?helper:alias2)?helper.call(alias1,{name:"debugClass",hash:{},data:data}):helper)+'"> '+alias4("function"==typeof(helper=null!=(helper=helpers.expirationLabel||(null!=depth0?depth0.expirationLabel:depth0))?helper:alias2)?helper.call(alias1,{name:"expirationLabel",hash:{},data:data}):helper)+alias4("function"==typeof(helper=null!=(helper=helpers.formattedDate||(null!=depth0?depth0.formattedDate:depth0))?helper:alias2)?helper.call(alias1,{name:"formattedDate",hash:{},data:data}):helper)+alias4("function"==typeof(helper=null!=(helper=helpers.Phase1Date||(null!=depth0?depth0.Phase1Date:depth0))?helper:alias2)?helper.call(alias1,{name:"Phase1Date",hash:{},data:data}):helper)+"</span>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'<span class="'+alias4("function"==typeof(helper=null!=(helper=helpers.messageClass||(null!=depth0?depth0.messageClass:depth0))?helper:alias2)?helper.call(alias1,{name:"messageClass",hash:{},data:data}):helper)+'">'+alias4("function"==typeof(helper=null!=(helper=helpers.message||(null!=depth0?depth0.message:depth0))?helper:alias2)?helper.call(alias1,{name:"message",hash:{},data:data}):helper)+"</span>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias3="function",alias4=container.escapeExpression;return'<ul>\r\n    <li class="pushnx-lightbox-message message message-pnx" id="message'+alias4(typeof(helper=null!=(helper=helpers.messageId||(null!=depth0?depth0.messageId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"messageId",hash:{},data:data}):helper)+'">\r\n        '+(null!=(stack1=typeof(helper=null!=(helper=helpers.icon||(null!=depth0?depth0.icon:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"icon",hash:{},data:data}):helper)?stack1:"")+'\r\n        <div class="pushnx-lightbox-message-title"><strong class="text-red text-uppercase">'+(null!=(stack1=typeof(helper=null!=(helper=helpers.title||(null!=depth0?depth0.title:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"title",hash:{},data:data}):helper)?stack1:"")+'</strong>\r\n            <span class="pushnx-lightbox-message-title-time pull-right">\r\n                '+alias4(typeof(helper=null!=(helper=helpers.publishDate||(null!=depth0?depth0.publishDate:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"publishDate",hash:{},data:data}):helper)+'\r\n            </span>\r\n        </div>\r\n        <div class="content" style="">'+(null!=(stack1=typeof(helper=null!=(helper=helpers.content||(null!=depth0?depth0.content:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"content",hash:{},data:data}):helper)?stack1:"")+'</div>\r\n        <p class="time">'+(null!=(stack1=typeof(helper=null!=(helper=helpers.expirationLabel||(null!=depth0?depth0.expirationLabel:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"expirationLabel",hash:{},data:data}):helper)?stack1:"")+'</p>\r\n        <p class="actions" id="actions'+alias4(typeof(helper=null!=(helper=helpers.messageId||(null!=depth0?depth0.messageId:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"messageId",hash:{},data:data}):helper)+'" data-expiry="'+alias4(typeof(helper=null!=(helper=helpers.expiryDate||(null!=depth0?depth0.expiryDate:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"expiryDate",hash:{},data:data}):helper)+'">'+(null!=(stack1=typeof(helper=null!=(helper=helpers.actions||(null!=depth0?depth0.actions:depth0))?helper:alias2)===alias3?helper.call(alias1,{name:"actions",hash:{},data:data}):helper)?stack1:"")+"</p>\r\n    </li>\r\n</ul>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var helper;return"<span>"+container.escapeExpression("function"==typeof(helper=null!=(helper=helpers.title||(null!=depth0?depth0.title:depth0))?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"title",hash:{},data:data}):helper)+"</span>\r\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-arcade" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-casino-gold" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-casino" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-dafasports" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-exchange" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-fish-hunter" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-games" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-keno" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-live-dealer" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-livechat" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-lottery" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-owsports" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-poker" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-promotions" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-virtuals" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-wallet" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <path d="M8.8.9V5H7.2c-.2 0-.3 0-.4.1-.4.2-.6.5-.5 1 0 .2 0 .2.2.5.5.5 2.4 2.6 2.8 3 .3.3.4.4.7.4.2 0 .2 0 .3-.1.2-.1.4-.3 1.3-1.2 1-1.1 2-2.2 2.1-2.3.2-.3.1-.7-.1-1-.1-.1-.3-.3-.4-.3-.2-.1-.6-.1-1.3-.1h-.6v-.5-1.6-2c0-.3-.5-.9-1.2-.9C9 0 8.8.9 8.8.9zM3 8.8c-.7.1-1.4.3-1.9.6s-.9.7-1 1c-.1.2 0 .5 0 .6.1.4.5.7 1 1 .6.3 1.1.4 1.8.5h1.9c.4-.1.4 0 .6-.5.2-.4.6-.7 1-1 .3-.2.7-.4.9-.5.3-.1.3-.1.2-.3-.3-.6-1-1-2-1.2-.7-.2-.9-.2-1.6-.2H3zm6.4 2.5c-1.4.1-2.7.7-3 1.4-.2.3-.2.6 0 .9.1.2.4.5.6.6 1.1.7 3.1 1 4.7.5.7-.2 1.2-.4 1.6-.8.3-.3.4-.5.4-.9 0-.3-.1-.5-.4-.8-.5-.5-1.1-.7-2.1-.9H9.4zm6.3 0c-.2 0-.4 0-.6.1-.3.1-.7.2-.7.2s.1.1.1.2c.4.6.6 1.2.4 1.9 0 .2-.1.4-.2.6l-.1.2.1.2c.1.2.2.3.3.3.3.1 1.3.1 1.8.1 1.2-.1 2.2-.5 2.7-1 .1-.1.2-.3.3-.4.1-.1.1-.1.1-.3 0-.4-.1-.6-.3-.9-.4-.4-.9-.6-1.6-.8-.3-.1-.7-.2-1-.2-.2-.2-.9-.2-1.3-.2zM.2 12.6c-.1.1-.2.3-.2.5-.1.8 1 1.6 2.6 1.9.5.1 1.6.1 2.2 0 .4-.1.3 0 .5-.3l.1-.2-.1-.2c-.1-.1-.1-.3-.1-.4v-.2h-.1c-.5.1-.8.1-1.2.1-1.5 0-2.8-.4-3.4-1.1l-.3-.1zm6.2 2.6c-.1.2-.2.5-.1.7.1.3.3.6.7.9.9.6 2.6.9 4.1.7 1.4-.2 2.4-.8 2.7-1.5.1-.3 0-.6-.1-.8l-.1-.2-.2.2c-.1.1-.3.2-.4.3-.6.4-1.4.6-2.4.7H9c-1.1-.2-1.9-.5-2.4-1 0-.1-.1-.2-.1-.2s-.1.1-.1.2zm13.3-.1c-.1.2-.5.4-.8.6-.6.3-1.3.5-2 .5H15v1.2h.2c.6.1 1.4.1 1.9 0 .9-.1 1.7-.4 2.2-.7.2-.1.4-.4.5-.5.2-.2.2-.3.2-.5s0-.4-.1-.5l-.2-.1zm-19.6.1c-.1.2-.1.5 0 .8.1.4.5.7 1.1 1 .8.4 1.7.6 2.9.5.5 0 .9 0 .9-.1v-.6-.6h-.2c-.5.1-1.5.1-2 0-.7-.1-1.4-.3-1.9-.6-.2-.1-.5-.3-.5-.3.1 0-.2-.2-.3-.1.1-.1.1-.1 0 0zm6.3 2.4s-.1.2-.1.4v.6c.2.6 1.1 1.1 2.2 1.4.4-.1.6 0 1.2 0s1.2 0 1.5-.1c1-.2 1.8-.5 2.2-1 .2-.2.3-.5.3-.8 0-.2-.1-.5-.2-.6 0 0-.1 0-.1.1l-.2.2c-.7.5-1.6.8-2.8.9-1.2.1-2.3-.1-3-.5-.3-.2-.5-.3-.7-.5-.2-.1-.2-.2-.3-.1z" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product">\r\n    <svg viewBox="0 0 20 20">\r\n        <path d="M9.8 4.3c-.2.1-.4.2-.5.3 0 .1 0 .2-.1.6v.5H9c-1 .3-1.8.9-2.1 1.7-.1.2-.2.4-.2.7 0 1 .8 1.8 2 2.3.3.1.7.2 1 .3.7.1 1.2.3 1.5.6.3.2.4.5.4.8 0 .3-.1.6-.4.8-.3.3-.8.4-1.4.4-.6 0-1.1-.1-1.5-.4-.2-.1-.4-.3-.5-.5-.2-.3-.3-.4-.6-.4-.6-.1-1.1.3-.9.8.1.3.4.7.8 1 .5.2.9.4 1.4.5.2.1.6.1.7.1v.5c0 .5 0 .5.1.6.3.4 1 .5 1.3.1.1-.2.2-.2.2-.7v-.4h.1c1-.2 1.8-.8 2.2-1.5.5-1.1.1-2.3-1.2-2.9-.5-.2-.9-.4-1.6-.5-.7-.3-1-.3-1.3-.5-.2-.1-.5-.4-.6-.5-.2-.3-.2-.6 0-1 .1-.1.1-.2.3-.3.4-.3.7-.4 1.2-.4 1 0 1.9.3 2.2.9.1.2.2.3.4.4.5.2 1 0 1.1-.5.1-.3-.4-1-.9-1.4-.5-.3-1.1-.6-1.7-.7h-.1v-.4c0-.5 0-.6-.2-.7-.2-.1-.3-.2-.5-.2h-.4zM13.1 17v-.8s-.1-.2-.3-.1c-.3.1-4.2 1.8-4.2 1.8s-.3.3.1.4c.4.2 4.2 1.7 4.2 1.7s.4.1.3-.3v-.8s5.2-1.4 6.5-6.6c.5-2 .6-4.8-1.7-7.7-1.4-1.8-3.1-2.5-3.1-2.5s-.7-.2-1 .4c-.1.2-.3.9.3 1.2.3.2 1.6 1 2.3 2C18.9 9 17.8 12 17.8 12s-.7 3.5-4.7 5zM8.3 2.9l-.1.8s0 .2.3.2 4.5-1 4.5-1 .3-.2 0-.4S9.2 0 9.2 0s-.3-.1-.4.2c0 .4-.1.8-.1.8S3.3 1.5.9 6.3C0 8.2-.6 10.9 1 14.2c1.9 3.8 5.9 4.7 5.9 4.7s.7.1 1-.3c.3-.5.3-1.1-.4-1.4-.3-.1-3.3-.8-4.8-3.9C1 9.7 2.7 7 2.7 7s1.5-3.3 5.6-4.1z" /></svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){return'<span class="pushnx-lightbox-message-product product-generic">\r\n    <svg viewBox="0 0 20 20">\r\n        <use xlink:href="#product-generic" />\r\n    </svg>\r\n</span>\r\n'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var alias1=container.lambda,alias2=container.escapeExpression;return'        <li class="'+alias2(alias1(null!=depth0?depth0.id:depth0,depth0))+'" data-lang="'+alias2(alias1(null!=depth0?depth0.prefix:depth0,depth0))+'" data-alternate-lang="'+alias2(alias1(null!=depth0?depth0.alternatePrefix:depth0,depth0))+'">\n            <a class="language-link"><div class="language-name">'+alias2(alias1(null!=depth0?depth0.name:depth0,depth0))+"</div></a>\n        </li>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'<a href="#" class="'+alias4("function"==typeof(helper=null!=(helper=helpers.currentLangId||(null!=depth0?depth0.currentLangId:depth0))?helper:alias2)?helper.call(alias1,{name:"currentLangId",hash:{},data:data}):helper)+' lang-btn" data-current-lang="'+alias4("function"==typeof(helper=null!=(helper=helpers.currentLangPrefix||(null!=depth0?depth0.currentLangPrefix:depth0))?helper:alias2)?helper.call(alias1,{name:"currentLangPrefix",hash:{},data:data}):helper)+'"></a>\n\n<ul class="switcher-cols-2">\n'+(null!=(stack1=helpers.each.call(alias1,null!=depth0?depth0.languageData:depth0,{name:"each",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data}))?stack1:"")+'</ul>\n\n<div class="arrow-top"></div>'},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);function __default(obj){return obj&&(obj.__esModule?obj.default:obj)}module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=__default(__webpack_require__(4)).call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","desktop",{name:"condition",hash:{},fn:container.program(2,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},2:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=null!=depth0?depth0:container.nullContext||{};return(null!=(stack1=__default(__webpack_require__(4)).call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","left",{name:"condition",hash:{},fn:container.program(3,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+(null!=(stack1=__default(__webpack_require__(4)).call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","right",{name:"condition",hash:{},fn:container.program(6,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")},3:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[2][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(4,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},4:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                                        <span class="downloads-banner-title">'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_link_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"&nbsp;</span>\n"},6:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[2][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(7,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},7:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                                        <span class="downloads-banner-title">&nbsp;'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_link_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n"},9:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return null!=(stack1=__default(__webpack_require__(4)).call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","desktop",{name:"condition",hash:{},fn:container.program(10,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},10:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=null!=depth0?depth0:container.nullContext||{};return(null!=(stack1=__default(__webpack_require__(4)).call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","left",{name:"condition",hash:{},fn:container.program(11,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+(null!=(stack1=__default(__webpack_require__(4)).call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","right",{name:"condition",hash:{},fn:container.program(22,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")},11:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[2][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(12,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},12:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'                                    <div class="floating-banner-lightbox-content-downloads floating-banner-item"\n                                            data-device-platform="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n                                            data-device-os="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[3][0])?stack1.field_banner_item:stack1,{name:"each",hash:{},fn:container.program(13,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"                                    </div>\n"},13:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=null!=depth0?depth0:container.nullContext||{},alias2=container.lambda,alias3=container.escapeExpression;return"                                            <a "+(null!=(stack1=helpers.if.call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_lightbox_content:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(14,data,0,blockParams),inverse:container.program(16,data,0,blockParams),data:data,blockParams:blockParams}))?stack1:"")+(null!=(stack1=helpers.if.call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(18,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"                                                "+(null!=(stack1=__default(__webpack_require__(4)).call(alias1,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","window",{name:"condition",hash:{},fn:container.program(20,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'>\n                                                <span class="download-item-product-icon-wrapper">\n                                                    <svg viewbox="0 0 20 20">\n                                                        <use xlink:href="#'+alias3(alias2(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'" />\n                                                    </svg>\n                                                </span>\n                                                <span class="download-item-title">'+alias3(alias2(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_button_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'</span>\n                                                <span class="download-icon-wrapper">\n                                                    <svg viewbox="0 0 20 20">\n                                                        <use xlink:href="#download" />\n                                                    </svg>\n                                                </span>\n                                            </a>\n'},14:function(container,depth0,helpers,partials,data,blockParams){var stack1,helper,alias1=container.escapeExpression;return'\n                                                    href="#floating-banner-'+alias1(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[5][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"-lightbox--"+alias1("function"==typeof(helper=null!=(helper=helpers.index||data&&data.index)?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"index",hash:{},data:data,blockParams:blockParams}):helper)+'"\n                                                    class="download-item modal-trigger"\n'},16:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                                                    href="'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link:stack1)?stack1[0]:stack1)?stack1.uri:stack1,depth0))+'"\n                                                    class="download-item"\n'},18:function(container,depth0,helpers,partials,data,blockParams){var stack1;return"                                                    target="+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n"},20:function(container,depth0,helpers,partials,data){return' data-popup="true" '},22:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[2][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(23,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},23:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return'                                    <div class="floating-banner-lightbox-content-help-center">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[3][0])?stack1.field_banner_item:stack1,{name:"each",hash:{},fn:container.program(24,data,1,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"                                    </div>\n"},24:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[0][0])?stack1.field_link:stack1,{name:"if",hash:{},fn:container.program(25,data,0,blockParams,depths),inverse:container.program(28,data,0,blockParams,depths),data:data,blockParams:blockParams}))?stack1:""},25:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'                                                <a href="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link:stack1)?stack1[0]:stack1)?stack1.uri:stack1,depth0))+'"\n'+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(26,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'                                                        class="help-center-item webrtc-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n                                                    '+(null!=(stack1=__default(__webpack_require__(4)).call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","window",{name:"condition",hash:{},fn:container.program(20,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'\n                                                        data-device-platform="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=null!=depths[1]?depths[1].item:depths[1])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n                                                        data-device-os="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=null!=depths[1]?depths[1].item:depths[1])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'">\n                                                    <svg viewbox="0 0 20 20">\n                                                        <use xlink:href="#'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'" />\n                                                    </svg>\n                                                    <span>\n                                                        '+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_button_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n                                                    </span>\n                                                </a>\n"},26:function(container,depth0,helpers,partials,data,blockParams){var stack1;return"                                                        target="+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n"},28:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'                                                <div class="help-center-item">\n                                                    <svg viewbox="0 0 20 20">\n                                                        <use xlink:href="#'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'" />\n                                                    </svg>\n                                                    <span>'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_button_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n                                                </div>\n"},30:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[0][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(31,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},31:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[1][0])?stack1.field_banner_item:stack1,{name:"each",hash:{},fn:container.program(32,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},32:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_lightbox_content:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(33,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},33:function(container,depth0,helpers,partials,data,blockParams){var stack1,helper,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'                <div\n                    id="floating-banner-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"-lightbox--"+alias2("function"==typeof(helper=null!=(helper=helpers.index||data&&data.index)?helper:helpers.helperMissing)?helper.call(alias3,{name:"index",hash:{},data:data,blockParams:blockParams}):helper)+'"\n                    class="modal modal-inner floating-banner-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'-lightbox"\n                >\n                    <div class="modal-overlay"></div>\n                    <div class="modal-content">\n'+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_lightbox_title:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(34,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'                        <div class="modal-body">\n                            '+(null!=(stack1=alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_lightbox_content:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))?stack1:"")+'\n                        </div>\n                        <a href="#" class="modal-close modal-close-button lazy-load" data-src="'+alias2(alias1((stack1=(stack1=data&&data.root)&&stack1.data)&&stack1.sprites,depth0))+'"></a>\n                    </div>\n                </div>\n'},34:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                            <div class="modal-header">'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_lightbox_title:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</div>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=null!=depth0?depth0:container.nullContext||{};return'\n<div id="floatingBannerLightbox" class="modal modal-outer floating-banner--lightbox">\n    <div class="modal-overlay"></div>\n\t<div class="modal-content">\n\t\t<div class="modal-body">\n\t\t\t<div class="floating-banner-lightbox--container scrollbot hidden"></div>\n\t\t\t<div class="floating-banner-lightbox-container">\n                <a href="#" class="modal-close modal-close-button">\n                    <svg viewBox="0 0 29.232 29.232">\n                        <use xlink:href="#close" />\n                    </svg>\n                </a>\n                <div class="floating-banner-lightbox-title">\n                    <h1>\n'+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.items:stack1,{name:"each",hash:{},fn:container.program(1,data,1,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'                    </h1>\n                    <hr />\n                </div>\n                <div class="floating-banner-lightbox-content">\n'+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.items:stack1,{name:"each",hash:{},fn:container.program(9,data,1,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"                </div>\n            </div>\n\t\t</div>\n\t</div>\n</div>\n"+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.items:stack1,{name:"each",hash:{},fn:container.program(30,data,1,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")},useData:!0,useDepths:!0,useBlockParams:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);function __default(obj){return obj&&(obj.__esModule?obj.default:obj)}module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'<div\n    class="floating-banner floating-banner--'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+" floating-banner--lang-"+alias2(alias1(null!=depths[1]?depths[1].lang:depths[1],depth0))+'"\n    data-device-platform="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_platform:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n    data-device-os="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_os_excluded:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n>\n\n'+(null!=(stack1=__default(__webpack_require__(4)).call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","right",{name:"condition",hash:{},fn:container.program(2,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"\n"+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=blockParams[0][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(9,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"\n"+(null!=(stack1=__default(__webpack_require__(4)).call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","left",{name:"condition",hash:{},fn:container.program(24,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"</div>\n"},2:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'        <div class="floating-banner--title-wrapper floating-banner--align__'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_title_layout:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=blockParams[1][0])?stack1.field_link:stack1,{name:"if",hash:{},fn:container.program(3,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'">\n            <div class="floating-banner--icon">\n                <img\n                    class="lazy-load lazy-loaded"\n                    src="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_image:stack1)?stack1[0]:stack1)?stack1.url:stack1,depth0))+'"\n                    alt="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_image:stack1)?stack1[0]:stack1)?stack1.alt:stack1,depth0))+'"\n                >\n            </div>\n\n'+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=blockParams[1][0])?stack1.field_link:stack1,{name:"if",hash:{},fn:container.program(5,data,0,blockParams),inverse:container.program(7,data,0,blockParams),data:data,blockParams:blockParams}))?stack1:"")+"        </div>\n"},3:function(container,depth0,helpers,partials,data){return" with-link"},5:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'                <a href="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n                    target="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n                    class="floating-banner--title"\n                >\n                    '+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n                </a>\n"},7:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                <span class="floating-banner--title">'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n"},9:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'        <div class="floating-banner--items">\n            <ul class="banner-list">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[1][0])?stack1.field_banner_item:stack1,{name:"each",hash:{},fn:container.program(10,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"            </ul>\n        </div>\n"},10:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                    <li class="banner-list--items">\n\n'+(null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_link:stack1)?stack1[0]:stack1)?stack1.uri:stack1,{name:"if",hash:{},fn:container.program(11,data,0,blockParams),inverse:container.program(16,data,0,blockParams),data:data,blockParams:blockParams}))?stack1:"")+"                    </li>\n\n"},11:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return"                            <a\n                                href="+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link:stack1)?stack1[0]:stack1)?stack1.uri:stack1,depth0))+"\n\n"+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(12,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"\n"+(null!=(stack1=__default(__webpack_require__(4)).call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","window",{name:"condition",hash:{},fn:container.program(14,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'\n                                class="banner-list--content webrtc-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'"\n                            >\n                                <span class="banner-list--content-icon">\n                                    <span class="icon-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+' lazy-loaded">\n                                    </span>\n                                </span>\n                                <span class="banner-list--content-text">'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_button_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n                            </a>\n"},12:function(container,depth0,helpers,partials,data,blockParams){var stack1;return"                                    target="+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n"},14:function(container,depth0,helpers,partials,data){return'                                    data-popup="true"\n'},16:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_lightbox_content:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(17,data,0,blockParams),inverse:container.program(22,data,0,blockParams),data:data,blockParams:blockParams}))?stack1:""},17:function(container,depth0,helpers,partials,data,blockParams){var stack1,helper,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'                                <a\n                                    href="#floating-banner-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[4][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"-lightbox--"+alias2("function"==typeof(helper=null!=(helper=helpers.index||data&&data.index)?helper:helpers.helperMissing)?helper.call(alias3,{name:"index",hash:{},data:data,blockParams:blockParams}):helper)+'"\n\n'+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(18,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"\n"+(null!=(stack1=__default(__webpack_require__(4)).call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,"===","window",{name:"condition",hash:{},fn:container.program(20,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'\n                                    class="banner-list--content modal-trigger"\n                                >\n                                    <span class="banner-list--content-icon">\n                                        <span class="icon-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+' lazy-load lazy-loaded">\n                                        </span>\n                                    </span>\n                                    <span class="banner-list--content-text">'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_button_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n                                </a>\n"},18:function(container,depth0,helpers,partials,data,blockParams){var stack1;return"                                        target="+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n"},20:function(container,depth0,helpers,partials,data){return'                                        data-popup="true"\n'},22:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'                                <span class="banner-list--content">\n                                    <span class="banner-list--content-icon lazy-load lazy-loaded">\n                                        <span class="icon-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_class:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+' lazy-load lazy-loaded">\n                                        </span>\n                                    </span>\n                                    <span class="banner-list--content-text">'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_button_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n                                </span>\n"},24:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'        <div class="floating-banner--title-wrapper floating-banner--align__'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_title_layout:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=blockParams[1][0])?stack1.field_link:stack1,{name:"if",hash:{},fn:container.program(3,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'">\n            <div class="floating-banner--icon">\n                <img\n                    class="lazy-load lazy-loaded"\n                    src="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_image:stack1)?stack1[0]:stack1)?stack1.url:stack1,depth0))+'"\n                    alt="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_image:stack1)?stack1[0]:stack1)?stack1.alt:stack1,depth0))+'"\n                >\n            </div>\n\n'+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=blockParams[1][0])?stack1.field_link:stack1,{name:"if",hash:{},fn:container.program(25,data,0,blockParams),inverse:container.program(27,data,0,blockParams),data:data,blockParams:blockParams}))?stack1:"")+"        </div>\n"},25:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'            <a href="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'" target="'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_target:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'" class="floating-banner--title">\n                '+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"\n            </a>\n"},27:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'            <span class="floating-banner--title">'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_link_text:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</span>\n"},29:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[0][0])?stack1.field_banner_item:stack1,{name:"if",hash:{},fn:container.program(30,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},30:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=blockParams[1][0])?stack1.field_banner_item:stack1,{name:"each",hash:{},fn:container.program(31,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},31:function(container,depth0,helpers,partials,data,blockParams){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.field_lightbox_content:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(32,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},32:function(container,depth0,helpers,partials,data,blockParams){var stack1,helper,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'                <div\n                    id="floating-banner-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"-lightbox--"+alias2("function"==typeof(helper=null!=(helper=helpers.index||data&&data.index)?helper:helpers.helperMissing)?helper.call(alias3,{name:"index",hash:{},data:data,blockParams:blockParams}):helper)+'"\n                    class="modal modal-inner floating-banner-'+alias2(alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[3][0])?stack1.field_floating_banner_type:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+'-lightbox"\n                >\n                    <div class="modal-overlay"></div>\n                    <div class="modal-content">\n'+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_lightbox_title:stack1)?stack1[0]:stack1)?stack1.value:stack1,{name:"if",hash:{},fn:container.program(33,data,0,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'                        <div class="modal-body">\n                            '+(null!=(stack1=alias1(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.field_lightbox_content:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))?stack1:"")+'\n                        </div>\n                        <a href="#" class="modal-close modal-close-button"></a>\n                    </div>\n                </div>\n'},33:function(container,depth0,helpers,partials,data,blockParams){var stack1;return'                            <div class="modal-header">'+container.escapeExpression(container.lambda(null!=(stack1=null!=(stack1=null!=(stack1=blockParams[2][0])?stack1.field_lightbox_title:stack1)?stack1[0]:stack1)?stack1.value:stack1,depth0))+"</div>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=null!=depth0?depth0:container.nullContext||{};return(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.items:stack1,{name:"each",hash:{},fn:container.program(1,data,1,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"\n"+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.data:depth0)?stack1.items:stack1,{name:"each",hash:{},fn:container.program(29,data,1,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")},useData:!0,useDepths:!0,useBlockParams:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'    <li>\n        <a href="'+alias2(alias1(null!=depth0?depth0.alias:depth0,depth0))+'" '+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.class:stack1,{name:"if",hash:{},fn:container.program(2,data,0),inverse:container.noop,data:data}))?stack1:"")+" "+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.target:stack1,{name:"if",hash:{},fn:container.program(4,data,0),inverse:container.noop,data:data}))?stack1:"")+">\n            "+alias2(alias1(null!=depth0?depth0.title:depth0,depth0))+"\n        </a>\n    </li>\n"},2:function(container,depth0,helpers,partials,data){var stack1;return'class="'+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.class:stack1,depth0))+'" '},4:function(container,depth0,helpers,partials,data){var stack1;return'target="'+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.target:stack1,depth0))+'" '},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1;return'<ul class=" footer-menu-quicklinks '+container.escapeExpression(container.lambda(null!=depth0?depth0.footerMenuClass:depth0,depth0))+'">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=depth0?depth0.footerData:depth0)?stack1.quicklinks:stack1,{name:"each",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data}))?stack1:"")+"</ul>\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var stack1,alias1=container.lambda,alias2=container.escapeExpression,alias3=null!=depth0?depth0:container.nullContext||{};return'    <li>\n        <a href="'+alias2(alias1(null!=depth0?depth0.alias:depth0,depth0))+'" '+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.class:stack1,{name:"if",hash:{},fn:container.program(2,data,0),inverse:container.noop,data:data}))?stack1:"")+" "+(null!=(stack1=helpers.if.call(alias3,null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.target:stack1,{name:"if",hash:{},fn:container.program(4,data,0),inverse:container.noop,data:data}))?stack1:"")+">\n            "+alias2(alias1(null!=depth0?depth0.title:depth0,depth0))+"\n        </a>\n    </li>\n"},2:function(container,depth0,helpers,partials,data){var stack1;return'class="'+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.class:stack1,depth0))+'" '},4:function(container,depth0,helpers,partials,data){var stack1;return'target="'+container.escapeExpression(container.lambda(null!=(stack1=null!=depth0?depth0.attributes:depth0)?stack1.target:stack1,depth0))+'" '},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data){var stack1;return'<ul class="col-12">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=depth0?depth0.footerData:depth0)?stack1.quicklinks:stack1,{name:"each",hash:{},fn:container.program(1,data,0),inverse:container.noop,data:data}))?stack1:"")+"</ul>\n"},useData:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data){var helper;return"        <h3>"+container.escapeExpression("function"==typeof(helper=null!=(helper=helpers.languageTitle||(null!=depth0?depth0.languageTitle:depth0))?helper:helpers.helperMissing)?helper.call(null!=depth0?depth0:container.nullContext||{},{name:"languageTitle",hash:{},data:data}):helper)+"</h3>\n"},3:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return'        <li class="col-6">\n            <ul>\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},depth0,{name:"each",hash:{},fn:container.program(4,data,0,blockParams,depths),inverse:container.noop,data:data}))?stack1:"")+"            </ul>\n        </li>\n"},4:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,obj,alias1=container.lambda,alias2=container.escapeExpression;return'                <li class="'+alias2(alias1(null!=depth0?depth0.id:depth0,depth0))+" "+(null!=(stack1=(obj=__webpack_require__(4),obj&&(obj.__esModule?obj.default:obj)).call(null!=depth0?depth0:container.nullContext||{},null!=depth0?depth0.prefix:depth0,"===",null!=depths[2]?depths[2].currentLanguage:depths[2],{name:"condition",hash:{},fn:container.program(5,data,0,blockParams,depths),inverse:container.noop,data:data}))?stack1:"")+'">\n                    <a href="#" class="language-link" data-lang="'+alias2(alias1(null!=depth0?depth0.prefix:depth0,depth0))+'">\n                        '+alias2(alias1(null!=depth0?depth0.name:depth0,depth0))+"\n                    </a>\n                </li>\n"},5:function(container,depth0,helpers,partials,data){return"active"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=null!=depth0?depth0:container.nullContext||{};return'<div class="modal-body">\n'+(null!=(stack1=helpers.if.call(alias1,null!=depth0?depth0.languageTitle:depth0,{name:"if",hash:{},fn:container.program(1,data,0,blockParams,depths),inverse:container.noop,data:data}))?stack1:"")+'    <ul class="menu">\n'+(null!=(stack1=helpers.each.call(alias1,null!=depth0?depth0.languageData:depth0,{name:"each",hash:{},fn:container.program(3,data,0,blockParams,depths),inverse:container.noop,data:data}))?stack1:"")+"    </ul>\n</div>\n"},useData:!0,useDepths:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=blockParams[0][0])?stack1.attributes:stack1)?stack1.enabled:stack1,{name:"if",hash:{},fn:container.program(2,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:""},2:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'                    <li class="quick-nav-item" id="quicknav-item">\n                        <div class="flex-icons">\n                            <a href="'+alias2(alias1(null!=(stack1=blockParams[1][0])?stack1.alias:stack1,depth0))+'" class="quick-nav-link '+alias2(alias1(null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.attributes:stack1)?stack1.class:stack1,depth0))+'">\n                                <svg viewBox="0 0 20 20">\n                                    <use xlink:href="#'+alias2(alias1(null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.attributes:stack1)?stack1.svg:stack1,depth0))+'" />\n                                </svg>\n                                <p class="product-tab-title">'+alias2(alias1(null!=(stack1=blockParams[1][0])?stack1.title:stack1,depth0))+" "+alias2(alias1(null!=(stack1=null!=(stack1=null!=depth0?depth0.home:depth0)?stack1.attributes:stack1)?stack1.target:stack1,depth0))+"</p>\n"+(null!=(stack1=helpers.if.call(null!=depth0?depth0:container.nullContext||{},null!=(stack1=null!=(stack1=blockParams[1][0])?stack1.attributes:stack1)?stack1.menuTag:stack1,{name:"if",hash:{},fn:container.program(3,data,0,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"                            </a>\n                        </div>\n                    </li>\n"},3:function(container,depth0,helpers,partials,data,blockParams,depths){return'                                    <span class="icon-thumbnail-new-tag">\n                                        <span>'+container.escapeExpression(container.lambda(null!=depths[1]?depths[1].new_tag:depths[1],depth0))+"</span>\n                                    </span>\n"},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams,depths){var stack1;return'<div class="container">\n    <div class="button-left-slide hidden-desktop container-child">\n        <button class="arrow-category-tile left" id="left-slide" type="button">\n            <svg viewBox="0 0 20 20"><use xlink:href="#left_arrow" /></svg>\n        </button>\n    </div>\n    <div class="category-product-tile-icons container-child">\n        <ul class="quick-nav" id="quicknav-slider">\n'+(null!=(stack1=helpers.each.call(null!=depth0?depth0:container.nullContext||{},null!=depth0?depth0.menus:depth0,{name:"each",hash:{},fn:container.program(1,data,2,blockParams,depths),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'        </ul>\n    </div>\n    <div class="button-right-slide hidden-desktop container-child">\n        <button class="arrow-category-tile right" id="right-slide" type="button">\n            <svg viewBox="0 0 20 20"><use xlink:href="#right_arrow" /></svg>\n        </button>\n    </div>\n</div>\n'},useData:!0,useDepths:!0,useBlockParams:!0})},function(module,exports,__webpack_require__){var Handlebars=__webpack_require__(1);module.exports=(Handlebars.default||Handlebars).template({1:function(container,depth0,helpers,partials,data,blockParams){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return'    <div class="spotsbook-content" id="sports_book_content_test">\n        <p class="sportsbook-title">'+alias4("function"==typeof(helper=null!=(helper=helpers.dsbDataFirstEventHeading||(null!=depth0?depth0.dsbDataFirstEventHeading:depth0))?helper:alias2)?helper.call(alias1,{name:"dsbDataFirstEventHeading",hash:{},data:data,blockParams:blockParams}):helper)+"</p>\n"+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.dsbDataEvents:depth0)?stack1.dsbDataFirstEvents:stack1,{name:"each",hash:{},fn:container.program(2,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'    </div>\n    <div class="spotsbook-content">\n        <p class="sportsbook-title">'+alias4("function"==typeof(helper=null!=(helper=helpers.dsbDataSecondEventHeading||(null!=depth0?depth0.dsbDataSecondEventHeading:depth0))?helper:alias2)?helper.call(alias1,{name:"dsbDataSecondEventHeading",hash:{},data:data,blockParams:blockParams}):helper)+"</p>\n"+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.dsbDataEvents:depth0)?stack1.dsbDataSecondEvents:stack1,{name:"each",hash:{},fn:container.program(4,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+'    </div>\n    <div class="spotsbook-content">\n        <p class="sportsbook-title">'+alias4("function"==typeof(helper=null!=(helper=helpers.dsbDataThirdEventHeading||(null!=depth0?depth0.dsbDataThirdEventHeading:depth0))?helper:alias2)?helper.call(alias1,{name:"dsbDataThirdEventHeading",hash:{},data:data,blockParams:blockParams}):helper)+"</p>\n"+(null!=(stack1=helpers.each.call(alias1,null!=(stack1=null!=depth0?depth0.dsbDataEvents:depth0)?stack1.dsbDataThirdEvents:stack1,{name:"each",hash:{},fn:container.program(6,data,1,blockParams),inverse:container.noop,data:data,blockParams:blockParams}))?stack1:"")+"    </div>\n"},2:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'            <p class="sportsbook-text">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.date:stack1,depth0))+" <br> "+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.hours:stack1,depth0))+'</p>\n            <p class="sportsbook-text-team">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.teamOne:stack1,depth0))+" <br> "+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.teamTwo:stack1,depth0))+'</p>\n            <p class="sportsbook-text-price"><b>'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.priceOne:stack1,depth0))+"</b> <br> <b>"+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.priceTwo:stack1,depth0))+"</b></p>\n            <hr>\n"},4:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'            <p class="sportsbook-text">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.date:stack1,depth0))+" <br> "+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.hours:stack1,depth0))+'</p>\n            <p class="sportsbook-text-team">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.teamOne:stack1,depth0))+" <br> "+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.teamTwo:stack1,depth0))+'</p>\n            <p class="sportsbook-text-price"><b>'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.priceOne:stack1,depth0))+"</b> <br> <b>"+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.priceTwo:stack1,depth0))+"</b></p>\n            <hr>\n"},6:function(container,depth0,helpers,partials,data,blockParams){var stack1,alias1=container.lambda,alias2=container.escapeExpression;return'            <p class="sportsbook-text">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.date:stack1,depth0))+" <br> "+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.hours:stack1,depth0))+'</p>\n            <p class="sportsbook-text-team">'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.teamOne:stack1,depth0))+" <br> "+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.teamTwo:stack1,depth0))+'</p>\n            <p class="sportsbook-text-price"><b>'+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.priceOne:stack1,depth0))+"</b> <br> <b>"+alias2(alias1(null!=(stack1=blockParams[0][0])?stack1.priceTwo:stack1,depth0))+"</b></p>\n            <hr>\n"},8:function(container,depth0,helpers,partials,data){return'    <h3 class="sportsbook-text">There is no content available</h3>\n'},compiler:[7,">= 4.0.0"],main:function(container,depth0,helpers,partials,data,blockParams){var stack1,helper,alias1=null!=depth0?depth0:container.nullContext||{},alias2=helpers.helperMissing,alias4=container.escapeExpression;return(null!=(stack1=helpers.if.call(alias1,null!=depth0?depth0.dsbDataEvents:depth0,{name:"if",hash:{},fn:container.program(1,data,0,blockParams),inverse:container.program(8,data,0,blockParams),data:data,blockParams:blockParams}))?stack1:"")+'<a href="'+alias4("function"==typeof(helper=null!=(helper=helpers.buttonLink||(null!=depth0?depth0.buttonLink:depth0))?helper:alias2)?helper.call(alias1,{name:"buttonLink",hash:{},data:data,blockParams:blockParams}):helper)+'" class="btn btn-yellow btn-small join-now" target="'+alias4("function"==typeof(helper=null!=(helper=helpers.buttonTarget||(null!=depth0?depth0.buttonTarget:depth0))?helper:alias2)?helper.call(alias1,{name:"buttonTarget",hash:{},data:data,blockParams:blockParams}):helper)+'">'+alias4("function"==typeof(helper=null!=(helper=helpers.buttonText||(null!=depth0?depth0.buttonText:depth0))?helper:alias2)?helper.call(alias1,{name:"buttonText",hash:{},data:data,blockParams:blockParams}):helper)+"</a>\n"},useData:!0,useBlockParams:!0})},function(module,exports,__webpack_require__){module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=86)}({17:function(e,t,r){var n,i,s;i=[],void 0===(s="function"==typeof(n=function(){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r=e,(i=[{key:"getFirstMatch",value:function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""}},{key:"getSecondMatch",value:function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""}},{key:"matchAndReturnConst",value:function(e,t,r){if(e.test(t))return r}},{key:"getWindowsVersionName",value:function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}},{key:"getAndroidVersionName",value:function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":void 0}},{key:"getVersionPrecision",value:function(e){return e.split(".").length}},{key:"compareVersions",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),o=Math.max(i,s),a=0,u=e.map([t,r],function(t){var r=o-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(u[0][o]>u[1][o])return 1;if(u[0][o]===u[1][o]){if(o===a)return 0;o-=1}else if(u[0][o]<u[1][o])return-1}}},{key:"map",value:function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n}}])&&t(r,i),e;var r,i}();e.exports=r})?n.apply(t,i):n)||(e.exports=s)},86:function(e,t,r){var n,i,s;i=[t,r(87)],void 0===(s="function"==typeof(n=function(r,n){"use strict";function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=(s=n)&&s.__esModule?s:{default:s};var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,(s=[{key:"getParser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)throw new Error("UserAgent should be a string");return new n.default(e,t)}},{key:"parse",value:function(e){return new n.default(e).getResult()}}])&&i(t,s),e;var t,s}();r.default=o,e.exports=t.default})?n.apply(t,i):n)||(e.exports=s)},87:function(e,t,r){var n,i,s;i=[t,r(88),r(89),r(90),r(91),r(17)],void 0===(s="function"==typeof(n=function(r,n,i,s,o,a){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="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 d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n=u(n),i=u(i),s=u(s),o=u(o);var f=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==r&&this.parse()}return t=e,(r=[{key:"getUA",value:function(){return this._ua}},{key:"test",value:function(e){return e.test(this._ua)}},{key:"parseBrowser",value:function(){var e=this;this.parsedResult.browser={};var t=n.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}},{key:"getBrowser",value:function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}},{key:"getBrowserName",value:function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}},{key:"getBrowserVersion",value:function(){return this.getBrowser().version}},{key:"getOS",value:function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}},{key:"parseOS",value:function(){var e=this;this.parsedResult.os={};var t=i.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}},{key:"getOSName",value:function(e){var t=this.getOS(),r=t.name;return e?String(r).toLowerCase()||"":r||""}},{key:"getOSVersion",value:function(){return this.getOS().version}},{key:"getPlatform",value:function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}},{key:"getPlatformType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getPlatform(),r=t.type;return e?String(r).toLowerCase()||"":r||""}},{key:"parsePlatform",value:function(){var e=this;this.parsedResult.platform={};var t=s.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}},{key:"getEngine",value:function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}},{key:"getEngineName",value:function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}},{key:"parseEngine",value:function(){var e=this;this.parsedResult.engine={};var t=o.default.find(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}},{key:"parse",value:function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}},{key:"getResult",value:function(){return Object.assign({},this.parsedResult)}},{key:"satisfies",value:function(e){var t=this,r={},n=0,i={},s=0,o=Object.keys(e);if(o.forEach(function(t){var o=e[t];"string"==typeof o?(i[t]=o,s+=1):"object"===c(o)&&(r[t]=o,n+=1)}),n>0){var a=Object.keys(r),u=a.find(function(e){return t.isOS(e)});if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}var f=a.find(function(e){return t.isPlatform(e)});if(f){var l=this.satisfies(r[f]);if(void 0!==l)return l}}if(s>0){var v=Object.keys(i),p=v.find(function(e){return t.isBrowser(e)});if(void 0!==p)return this.compareVersion(i[p])}}},{key:"isBrowser",value:function(e){return this.getBrowserName(!0)===String(e).toLowerCase()}},{key:"compareVersion",value:function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf((0,a.compareVersions)(i,r,n))>-1}},{key:"isOS",value:function(e){return this.getOSName(!0)===String(e).toLowerCase()}},{key:"isPlatform",value:function(e){return this.getPlatformType(!0)===String(e).toLowerCase()}},{key:"isEngine",value:function(e){return this.getEngineName(!0)===String(e).toLowerCase()}},{key:"is",value:function(e){return this.isBrowser(e)||this.isOS(e)||this.isPlatform(e)}},{key:"some",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.some(function(t){return e.is(t)})}}])&&d(t.prototype,r),e;var t,r}();r.default=f,e.exports=t.default})?n.apply(t,i):n)||(e.exports=s)},88:function(e,t,r){var n,i,s;i=[t,r(17)],void 0===(s="function"==typeof(n=function(r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=(0,n.getFirstMatch)(/googlebot\/(\d+(\.\d+))/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:opera)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=(0,n.getFirstMatch)(/(?:opr|opios)[\s\/](\S+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:SamsungBrowser)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=(0,n.getFirstMatch)(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=(0,n.getFirstMatch)(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=(0,n.getFirstMatch)(/(?:swing)[\s\/](\d+(?:\.\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:coast)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:yabrowser)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:ucbrowser)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:Maxthon|mxios)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:epiphany)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:puffin)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:sleipnir)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/(?:k-meleon)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=(0,n.getFirstMatch)(/(?:micromessenger)[\s\/](\d+(\.?_?\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=(0,n.getFirstMatch)(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=(0,n.getSecondMatch)(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=(0,n.getFirstMatch)(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=(0,n.getFirstMatch)(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=(0,n.getFirstMatch)(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=(0,n.getFirstMatch)(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=(0,n.getFirstMatch)(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=(0,n.getFirstMatch)(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=(0,n.getFirstMatch)(i,e)||(0,n.getFirstMatch)(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=(0,n.getFirstMatch)(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=(0,n.getFirstMatch)(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=(0,n.getFirstMatch)(/(?:qupzilla)[\s\/](\d+(\.?_?\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=(0,n.getFirstMatch)(/(?:firefox|iceweasel|fxios)[\s\/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=(0,n.getFirstMatch)(/(?:chromium)[\s\/](\d+(\.?_?\d+)+)/i,e)||(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=(0,n.getFirstMatch)(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=(0,n.getFirstMatch)(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){return{name:(0,n.getFirstMatch)(/^(.*)\/(.*) /,e),version:(0,n.getSecondMatch)(/^(.*)\/(.*) /,e)}}}];r.default=s,e.exports=t.default})?n.apply(t,i):n)||(e.exports=s)},89:function(e,t,r){var n,i,s;i=[t,r(17)],void 0===(s="function"==typeof(n=function(r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=[{test:[/windows phone/i],describe:function(e){var t=(0,n.getFirstMatch)(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:"Windows Phone",version:t}}},{test:[/windows/i],describe:function(e){var t=(0,n.getFirstMatch)(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=(0,n.getWindowsVersionName)(t);return{name:"Windows",version:t,versionName:r}}},{test:[/macintosh/i],describe:function(e){var t=(0,n.getFirstMatch)(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,".");return{name:"macOS",version:t}}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=(0,n.getFirstMatch)(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:"iOS",version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=(0,n.getFirstMatch)(/android[\s\/-](\d+(\.\d+)*)/i,e),r=(0,n.getAndroidVersionName)(t),i={name:"Android",version:t};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=(0,n.getFirstMatch)(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:"WebOS"};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=(0,n.getFirstMatch)(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||(0,n.getFirstMatch)(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||(0,n.getFirstMatch)(/\bbb(\d+)/i,e);return{name:"BlackBerry",version:t}}},{test:[/bada/i],describe:function(e){var t=(0,n.getFirstMatch)(/bada\/(\d+(\.\d+)*)/i,e);return{name:"Bada",version:t}}},{test:[/tizen/i],describe:function(e){var t=(0,n.getFirstMatch)(/tizen[\/\s](\d+(\.\d+)*)/i,e);return{name:"Tizen",version:t}}},{test:[/linux/i],describe:function(){return{name:"Linux"}}},{test:[/CrOS/],describe:function(){return{name:"Chrome OS"}}}];r.default=i,e.exports=t.default})?n.apply(t,i):n)||(e.exports=s)},90:function(e,t,r){var n,i,s;i=[t,r(17)],void 0===(s="function"==typeof(n=function(r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i={tablet:"tablet",mobile:"mobile",desktop:"desktop"},s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=(0,n.getFirstMatch)(/(can-l01)/i,e)&&"Nova",r={type:i.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.tablet,vendor:"Amazon"}}},{test:[/tablet/i],describe:function(){return{type:i.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=(0,n.getFirstMatch)(/(ipod|iphone)/i,e);return{type:i.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.desktop}}}];r.default=s,e.exports=t.default})?n.apply(t,i):n)||(e.exports=s)},91:function(e,t,r){var n,i,s;i=[t,r(17)],void 0===(s="function"==typeof(n=function(r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){var t=(0,n.getFirstMatch)(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:"EdgeHTML",version:t}}},{test:[/trident/i],describe:function(e){var t={name:"Trident"},r=(0,n.getFirstMatch)(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:"Presto"},r=(0,n.getFirstMatch)(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:"Gecko"},r=(0,n.getFirstMatch)(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:"Blink"}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:"WebKit"},r=(0,n.getFirstMatch)(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];r.default=i,e.exports=t.default})?n.apply(t,i):n)||(e.exports=s)}})},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){var _index__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(16),globalNS=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==global)return global;throw new Error("unable to locate global object")}();globalNS.Promise||(globalNS.Promise=_index__WEBPACK_IMPORTED_MODULE_0__.a)}).call(this,__webpack_require__(7))},function(module,exports,__webpack_require__){(function(global,process){!function(global,undefined){"use strict";if(!global.setImmediate){var registerImmediate,html,channel,messagePrefix,onGlobalMessage,nextHandle=1,tasksByHandle={},currentlyRunningATask=!1,doc=global.document,attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global);attachTo=attachTo&&attachTo.setTimeout?attachTo:global,"[object process]"==={}.toString.call(global.process)?registerImmediate=function(handle){process.nextTick(function(){runIfPresent(handle)})}:!function(){if(global.postMessage&&!global.importScripts){var postMessageIsAsynchronous=!0,oldOnMessage=global.onmessage;return global.onmessage=function(){postMessageIsAsynchronous=!1},global.postMessage("","*"),global.onmessage=oldOnMessage,postMessageIsAsynchronous}}()?global.MessageChannel?((channel=new MessageChannel).port1.onmessage=function(event){runIfPresent(event.data)},registerImmediate=function(handle){channel.port2.postMessage(handle)}):doc&&"onreadystatechange"in doc.createElement("script")?(html=doc.documentElement,registerImmediate=function(handle){var script=doc.createElement("script");script.onreadystatechange=function(){runIfPresent(handle),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):registerImmediate=function(handle){setTimeout(runIfPresent,0,handle)}:(messagePrefix="setImmediate$"+Math.random()+"$",onGlobalMessage=function(event){event.source===global&&"string"==typeof event.data&&0===event.data.indexOf(messagePrefix)&&runIfPresent(+event.data.slice(messagePrefix.length))},global.addEventListener?global.addEventListener("message",onGlobalMessage,!1):global.attachEvent("onmessage",onGlobalMessage),registerImmediate=function(handle){global.postMessage(messagePrefix+handle,"*")}),attachTo.setImmediate=function(callback){"function"!=typeof callback&&(callback=new Function(""+callback));for(var args=new Array(arguments.length-1),i=0;i<args.length;i++)args[i]=arguments[i+1];var task={callback:callback,args:args};return tasksByHandle[nextHandle]=task,registerImmediate(nextHandle),nextHandle++},attachTo.clearImmediate=clearImmediate}function clearImmediate(handle){delete tasksByHandle[handle]}function runIfPresent(handle){if(currentlyRunningATask)setTimeout(runIfPresent,0,handle);else{var task=tasksByHandle[handle];if(task){currentlyRunningATask=!0;try{!function(task){var callback=task.callback,args=task.args;switch(args.length){case 0:callback();break;case 1:callback(args[0]);break;case 2:callback(args[0],args[1]);break;case 3:callback(args[0],args[1],args[2]);break;default:callback.apply(undefined,args)}}(task)}finally{clearImmediate(handle),currentlyRunningATask=!1}}}}}("undefined"==typeof self?void 0===global?this:global:self)}).call(this,__webpack_require__(7),__webpack_require__(14))},function(module,exports,__webpack_require__){(function(global,process){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;
/*!
 * https://github.com/paulmillr/es6-shim
 * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
 *   and contributors,  MIT License
 * es6-shim: v0.35.4
 * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE
 * Details and documentation:
 * https://github.com/paulmillr/es6-shim/
 */void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){"use strict";var ArrayIterator,func,_apply=Function.call.bind(Function.apply),_call=Function.call.bind(Function.call),isArray=Array.isArray,keys=Object.keys,throwsError=function(func){try{return func(),!1}catch(e){return!0}},valueOrFalseIfThrows=function(func){try{return func()}catch(e){return!1}},isCallableWithoutNew=(func=throwsError,function(){return!_apply(func,this,arguments)}),supportsDescriptors=!!Object.defineProperty&&!throwsError(function(){return Object.defineProperty({},"x",{get:function(){}})}),functionsHaveNames="foo"===function(){}.name,_forEach=Function.call.bind(Array.prototype.forEach),_reduce=Function.call.bind(Array.prototype.reduce),_filter=Function.call.bind(Array.prototype.filter),_some=Function.call.bind(Array.prototype.some),defineProperty=function(object,name,value,force){!force&&name in object||(supportsDescriptors?Object.defineProperty(object,name,{configurable:!0,enumerable:!1,writable:!0,value:value}):object[name]=value)},defineProperties=function(object,map,forceOverride){_forEach(keys(map),function(name){var method=map[name];defineProperty(object,name,method,!!forceOverride)})},_toString=Function.call.bind(Object.prototype.toString),isCallable=function(x){return"function"==typeof x},Value={getter:function(object,name,getter){if(!supportsDescriptors)throw new TypeError("getters require true ES5 support");Object.defineProperty(object,name,{configurable:!0,enumerable:!1,get:getter})},proxy:function(originalObject,key,targetObject){if(!supportsDescriptors)throw new TypeError("getters require true ES5 support");var originalDescriptor=Object.getOwnPropertyDescriptor(originalObject,key);Object.defineProperty(targetObject,key,{configurable:originalDescriptor.configurable,enumerable:originalDescriptor.enumerable,get:function(){return originalObject[key]},set:function(value){originalObject[key]=value}})},redefine:function(object,property,newValue){if(supportsDescriptors){var descriptor=Object.getOwnPropertyDescriptor(object,property);descriptor.value=newValue,Object.defineProperty(object,property,descriptor)}else object[property]=newValue},defineByDescriptor:function(object,property,descriptor){supportsDescriptors?Object.defineProperty(object,property,descriptor):"value"in descriptor&&(object[property]=descriptor.value)},preserveToString:function(target,source){source&&isCallable(source.toString)&&defineProperty(target,"toString",source.toString.bind(source),!0)}},create=Object.create||function(prototype,properties){var Prototype=function(){};Prototype.prototype=prototype;var object=new Prototype;return void 0!==properties&&keys(properties).forEach(function(key){Value.defineByDescriptor(object,key,properties[key])}),object},supportsSubclassing=function(C,f){return!!Object.setPrototypeOf&&valueOrFalseIfThrows(function(){var Sub=function Subclass(arg){var o=new C(arg);return Object.setPrototypeOf(o,Subclass.prototype),o};return Object.setPrototypeOf(Sub,C),Sub.prototype=create(C.prototype,{constructor:{value:Sub}}),f(Sub)})},globals=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==global)return global;throw new Error("unable to locate global object")}(),globalIsFinite=globals.isFinite,_indexOf=Function.call.bind(String.prototype.indexOf),_arrayIndexOfApply=Function.apply.bind(Array.prototype.indexOf),_concat=Function.call.bind(Array.prototype.concat),_strSlice=Function.call.bind(String.prototype.slice),_push=Function.call.bind(Array.prototype.push),_pushApply=Function.apply.bind(Array.prototype.push),_shift=Function.call.bind(Array.prototype.shift),_max=Math.max,_min=Math.min,_floor=Math.floor,_abs=Math.abs,_exp=Math.exp,_log=Math.log,_sqrt=Math.sqrt,_hasOwnProperty=Function.call.bind(Object.prototype.hasOwnProperty),noop=function(){},OrigMap=globals.Map,origMapDelete=OrigMap&&OrigMap.prototype.delete,origMapGet=OrigMap&&OrigMap.prototype.get,origMapHas=OrigMap&&OrigMap.prototype.has,origMapSet=OrigMap&&OrigMap.prototype.set,Symbol=globals.Symbol||{},symbolSpecies=Symbol.species||"@@species",numberIsNaN=Number.isNaN||function(value){return value!=value},numberIsFinite=Number.isFinite||function(value){return"number"==typeof value&&globalIsFinite(value)},_sign=isCallable(Math.sign)?Math.sign:function(value){var number=Number(value);return 0===number?number:numberIsNaN(number)?number:number<0?-1:1},_log1p=function(value){var x=Number(value);return x<-1||numberIsNaN(x)?NaN:0===x||x===1/0?x:-1===x?-1/0:1+x-1==0?x:x*(_log(1+x)/(1+x-1))},isStandardArguments=function(value){return"[object Arguments]"===_toString(value)},isArguments=isStandardArguments(arguments)?isStandardArguments:function(value){return null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Array]"!==_toString(value)&&"[object Function]"===_toString(value.callee)},Type={primitive:function(x){return null===x||"function"!=typeof x&&"object"!=typeof x},string:function(x){return"[object String]"===_toString(x)},regex:function(x){return"[object RegExp]"===_toString(x)},symbol:function(x){return"function"==typeof globals.Symbol&&"symbol"==typeof x}},overrideNative=function(object,property,replacement){var original=object[property];defineProperty(object,property,replacement,!0),Value.preserveToString(object[property],original)},hasSymbols="function"==typeof Symbol&&"function"==typeof Symbol.for&&Type.symbol(Symbol()),$iterator$=Type.symbol(Symbol.iterator)?Symbol.iterator:"_es6-shim iterator_";globals.Set&&"function"==typeof(new globals.Set)["@@iterator"]&&($iterator$="@@iterator"),globals.Reflect||defineProperty(globals,"Reflect",{},!0);var o,Reflect=globals.Reflect,$String=String,domAll="undefined"!=typeof document&&document?document.all:null,isNullOrUndefined=null==domAll?function(x){return null==x}:function(x){return null==x&&x!==domAll},ES={Call:function(F,V){var args=arguments.length>2?arguments[2]:[];if(!ES.IsCallable(F))throw new TypeError(F+" is not a function");return _apply(F,V,args)},RequireObjectCoercible:function(x,optMessage){if(isNullOrUndefined(x))throw new TypeError(optMessage||"Cannot call method on "+x);return x},TypeIsObject:function(x){return null!=x&&!0!==x&&!1!==x&&("function"==typeof x||"object"==typeof x||x===domAll)},ToObject:function(o,optMessage){return Object(ES.RequireObjectCoercible(o,optMessage))},IsCallable:isCallable,IsConstructor:function(x){return ES.IsCallable(x)},ToInt32:function(x){return ES.ToNumber(x)>>0},ToUint32:function(x){return ES.ToNumber(x)>>>0},ToNumber:function(value){if("[object Symbol]"===_toString(value))throw new TypeError("Cannot convert a Symbol value to a number");return+value},ToInteger:function(value){var number=ES.ToNumber(value);return numberIsNaN(number)?0:0!==number&&numberIsFinite(number)?(number>0?1:-1)*_floor(_abs(number)):number},ToLength:function(value){var len=ES.ToInteger(value);return len<=0?0:len>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:len},SameValue:function(a,b){return a===b?0!==a||1/a==1/b:numberIsNaN(a)&&numberIsNaN(b)},SameValueZero:function(a,b){return a===b||numberIsNaN(a)&&numberIsNaN(b)},IsIterable:function(o){return ES.TypeIsObject(o)&&(void 0!==o[$iterator$]||isArguments(o))},GetIterator:function(o){if(isArguments(o))return new ArrayIterator(o,"value");var itFn=ES.GetMethod(o,$iterator$);if(!ES.IsCallable(itFn))throw new TypeError("value is not an iterable");var it=ES.Call(itFn,o);if(!ES.TypeIsObject(it))throw new TypeError("bad iterator");return it},GetMethod:function(o,p){var func=ES.ToObject(o)[p];if(!isNullOrUndefined(func)){if(!ES.IsCallable(func))throw new TypeError("Method not callable: "+p);return func}},IteratorComplete:function(iterResult){return!!iterResult.done},IteratorClose:function(iterator,completionIsThrow){var returnMethod=ES.GetMethod(iterator,"return");if(void 0!==returnMethod){var innerResult,innerException;try{innerResult=ES.Call(returnMethod,iterator)}catch(e){innerException=e}if(!completionIsThrow){if(innerException)throw innerException;if(!ES.TypeIsObject(innerResult))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(it){var result=arguments.length>1?it.next(arguments[1]):it.next();if(!ES.TypeIsObject(result))throw new TypeError("bad iterator");return result},IteratorStep:function(it){var result=ES.IteratorNext(it),done=ES.IteratorComplete(result);return!done&&result},Construct:function(C,args,newTarget,isES6internal){var target=void 0===newTarget?C:newTarget;if(!isES6internal&&Reflect.construct)return Reflect.construct(C,args,target);var proto=target.prototype;ES.TypeIsObject(proto)||(proto=Object.prototype);var obj=create(proto),result=ES.Call(C,obj,args);return ES.TypeIsObject(result)?result:obj},SpeciesConstructor:function(O,defaultConstructor){var C=O.constructor;if(void 0===C)return defaultConstructor;if(!ES.TypeIsObject(C))throw new TypeError("Bad constructor");var S=C[symbolSpecies];if(isNullOrUndefined(S))return defaultConstructor;if(!ES.IsConstructor(S))throw new TypeError("Bad @@species");return S},CreateHTML:function(string,tag,attribute,value){var S=ES.ToString(string),p1="<"+tag;if(""!==attribute){var V=ES.ToString(value),escapedV=V.replace(/"/g,"&quot;");p1+=" "+attribute+'="'+escapedV+'"'}var p2=p1+">",p3=p2+S;return p3+"</"+tag+">"},IsRegExp:function(argument){if(!ES.TypeIsObject(argument))return!1;var isRegExp=argument[Symbol.match];return void 0!==isRegExp?!!isRegExp:Type.regex(argument)},ToString:function(string){return $String(string)}};if(supportsDescriptors&&hasSymbols){var defineWellKnownSymbol=function(name){if(Type.symbol(Symbol[name]))return Symbol[name];var sym=Symbol.for("Symbol."+name);return Object.defineProperty(Symbol,name,{configurable:!1,enumerable:!1,writable:!1,value:sym}),sym};if(!Type.symbol(Symbol.search)){var symbolSearch=defineWellKnownSymbol("search"),originalSearch=String.prototype.search;defineProperty(RegExp.prototype,symbolSearch,function(string){return ES.Call(originalSearch,string,[this])}),overrideNative(String.prototype,"search",function(regexp){var O=ES.RequireObjectCoercible(this);if(!isNullOrUndefined(regexp)){var searcher=ES.GetMethod(regexp,symbolSearch);if(void 0!==searcher)return ES.Call(searcher,regexp,[O])}return ES.Call(originalSearch,O,[ES.ToString(regexp)])})}if(!Type.symbol(Symbol.replace)){var symbolReplace=defineWellKnownSymbol("replace"),originalReplace=String.prototype.replace;defineProperty(RegExp.prototype,symbolReplace,function(string,replaceValue){return ES.Call(originalReplace,string,[this,replaceValue])}),overrideNative(String.prototype,"replace",function(searchValue,replaceValue){var O=ES.RequireObjectCoercible(this);if(!isNullOrUndefined(searchValue)){var replacer=ES.GetMethod(searchValue,symbolReplace);if(void 0!==replacer)return ES.Call(replacer,searchValue,[O,replaceValue])}return ES.Call(originalReplace,O,[ES.ToString(searchValue),replaceValue])})}if(!Type.symbol(Symbol.split)){var symbolSplit=defineWellKnownSymbol("split"),originalSplit=String.prototype.split;defineProperty(RegExp.prototype,symbolSplit,function(string,limit){return ES.Call(originalSplit,string,[this,limit])}),overrideNative(String.prototype,"split",function(separator,limit){var O=ES.RequireObjectCoercible(this);if(!isNullOrUndefined(separator)){var splitter=ES.GetMethod(separator,symbolSplit);if(void 0!==splitter)return ES.Call(splitter,separator,[O,limit])}return ES.Call(originalSplit,O,[ES.ToString(separator),limit])})}var symbolMatchExists=Type.symbol(Symbol.match),stringMatchIgnoresSymbolMatch=symbolMatchExists&&((o={})[Symbol.match]=function(){return 42},42!=="a".match(o));if(!symbolMatchExists||stringMatchIgnoresSymbolMatch){var symbolMatch=defineWellKnownSymbol("match"),originalMatch=String.prototype.match;defineProperty(RegExp.prototype,symbolMatch,function(string){return ES.Call(originalMatch,string,[this])}),overrideNative(String.prototype,"match",function(regexp){var O=ES.RequireObjectCoercible(this);if(!isNullOrUndefined(regexp)){var matcher=ES.GetMethod(regexp,symbolMatch);if(void 0!==matcher)return ES.Call(matcher,regexp,[O])}return ES.Call(originalMatch,O,[ES.ToString(regexp)])})}}var wrapConstructor=function(original,replacement,keysToSkip){Value.preserveToString(replacement,original),Object.setPrototypeOf&&Object.setPrototypeOf(original,replacement),supportsDescriptors?_forEach(Object.getOwnPropertyNames(original),function(key){key in noop||keysToSkip[key]||Value.proxy(original,key,replacement)}):_forEach(Object.keys(original),function(key){key in noop||keysToSkip[key]||(replacement[key]=original[key])}),replacement.prototype=original.prototype,Value.redefine(original.prototype,"constructor",replacement)},defaultSpeciesGetter=function(){return this},addDefaultSpecies=function(C){supportsDescriptors&&!_hasOwnProperty(C,symbolSpecies)&&Value.getter(C,symbolSpecies,defaultSpeciesGetter)},addIterator=function(prototype,impl){var implementation=impl||function(){return this};defineProperty(prototype,$iterator$,implementation),!prototype[$iterator$]&&Type.symbol($iterator$)&&(prototype[$iterator$]=implementation)},createDataPropertyOrThrow=function(object,name,value){if(function(object,name,value){supportsDescriptors?Object.defineProperty(object,name,{configurable:!0,enumerable:!0,writable:!0,value:value}):object[name]=value}(object,name,value),!ES.SameValue(object[name],value))throw new TypeError("property is nonconfigurable")},emulateES6construct=function(o,defaultNewTarget,defaultProto,slots){if(!ES.TypeIsObject(o))throw new TypeError("Constructor requires `new`: "+defaultNewTarget.name);var proto=defaultNewTarget.prototype;ES.TypeIsObject(proto)||(proto=defaultProto);var obj=create(proto);for(var name in slots)if(_hasOwnProperty(slots,name)){var value=slots[name];defineProperty(obj,name,value,!0)}return obj};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var originalFromCodePoint=String.fromCodePoint;overrideNative(String,"fromCodePoint",function(codePoints){return ES.Call(originalFromCodePoint,this,arguments)})}var StringShims={fromCodePoint:function(codePoints){for(var next,result=[],i=0,length=arguments.length;i<length;i++){if(next=Number(arguments[i]),!ES.SameValue(next,ES.ToInteger(next))||next<0||next>1114111)throw new RangeError("Invalid code point "+next);next<65536?_push(result,String.fromCharCode(next)):(next-=65536,_push(result,String.fromCharCode(55296+(next>>10))),_push(result,String.fromCharCode(next%1024+56320)))}return result.join("")},raw:function(callSite){var cooked=ES.ToObject(callSite,"bad callSite"),rawString=ES.ToObject(cooked.raw,"bad raw value"),len=rawString.length,literalsegments=ES.ToLength(len);if(literalsegments<=0)return"";for(var nextKey,next,nextSeg,nextSub,stringElements=[],nextIndex=0;nextIndex<literalsegments&&(nextKey=ES.ToString(nextIndex),nextSeg=ES.ToString(rawString[nextKey]),_push(stringElements,nextSeg),!(nextIndex+1>=literalsegments));)next=nextIndex+1<arguments.length?arguments[nextIndex+1]:"",nextSub=ES.ToString(next),_push(stringElements,nextSub),nextIndex+=1;return stringElements.join("")}};String.raw&&"xy"!==String.raw({raw:{0:"x",1:"y",length:2}})&&overrideNative(String,"raw",StringShims.raw),defineProperties(String,StringShims);var stringMaxLength=1/0,StringPrototypeShims={repeat:function(times){var thisStr=ES.ToString(ES.RequireObjectCoercible(this)),numTimes=ES.ToInteger(times);if(numTimes<0||numTimes>=stringMaxLength)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return function repeat(s,times){if(times<1)return"";if(times%2)return repeat(s,times-1)+s;var half=repeat(s,times/2);return half+half}(thisStr,numTimes)},startsWith:function(searchString){var S=ES.ToString(ES.RequireObjectCoercible(this));if(ES.IsRegExp(searchString))throw new TypeError('Cannot call method "startsWith" with a regex');var position,searchStr=ES.ToString(searchString);arguments.length>1&&(position=arguments[1]);var start=_max(ES.ToInteger(position),0);return _strSlice(S,start,start+searchStr.length)===searchStr},endsWith:function(searchString){var S=ES.ToString(ES.RequireObjectCoercible(this));if(ES.IsRegExp(searchString))throw new TypeError('Cannot call method "endsWith" with a regex');var endPosition,searchStr=ES.ToString(searchString),len=S.length;arguments.length>1&&(endPosition=arguments[1]);var pos=void 0===endPosition?len:ES.ToInteger(endPosition),end=_min(_max(pos,0),len);return _strSlice(S,end-searchStr.length,end)===searchStr},includes:function(searchString){if(ES.IsRegExp(searchString))throw new TypeError('"includes" does not accept a RegExp');var position,searchStr=ES.ToString(searchString);return arguments.length>1&&(position=arguments[1]),-1!==_indexOf(this,searchStr,position)},codePointAt:function(pos){var thisStr=ES.ToString(ES.RequireObjectCoercible(this)),position=ES.ToInteger(pos),length=thisStr.length;if(position>=0&&position<length){var first=thisStr.charCodeAt(position),isEnd=position+1===length;if(first<55296||first>56319||isEnd)return first;var second=thisStr.charCodeAt(position+1);return second<56320||second>57343?first:1024*(first-55296)+(second-56320)+65536}}};if(String.prototype.includes&&!1!=="a".includes("a",1/0)&&overrideNative(String.prototype,"includes",StringPrototypeShims.includes),String.prototype.startsWith&&String.prototype.endsWith){var startsWithRejectsRegex=throwsError(function(){return"/a/".startsWith(/a/)}),startsWithHandlesInfinity=valueOrFalseIfThrows(function(){return!1==="abc".startsWith("a",1/0)});startsWithRejectsRegex&&startsWithHandlesInfinity||(overrideNative(String.prototype,"startsWith",StringPrototypeShims.startsWith),overrideNative(String.prototype,"endsWith",StringPrototypeShims.endsWith))}if(hasSymbols){var startsWithSupportsSymbolMatch=valueOrFalseIfThrows(function(){var re=/a/;return re[Symbol.match]=!1,"/a/".startsWith(re)});startsWithSupportsSymbolMatch||overrideNative(String.prototype,"startsWith",StringPrototypeShims.startsWith);var endsWithSupportsSymbolMatch=valueOrFalseIfThrows(function(){var re=/a/;return re[Symbol.match]=!1,"/a/".endsWith(re)});endsWithSupportsSymbolMatch||overrideNative(String.prototype,"endsWith",StringPrototypeShims.endsWith);var includesSupportsSymbolMatch=valueOrFalseIfThrows(function(){var re=/a/;return re[Symbol.match]=!1,"/a/".includes(re)});includesSupportsSymbolMatch||overrideNative(String.prototype,"includes",StringPrototypeShims.includes)}defineProperties(String.prototype,StringPrototypeShims);var ws=["\t\n\v\f\r   ᠎    ","         　\u2028","\u2029\ufeff"].join(""),trimRegexp=new RegExp("(^["+ws+"]+)|(["+ws+"]+$)","g"),trimShim=function(){return ES.ToString(ES.RequireObjectCoercible(this)).replace(trimRegexp,"")},nonWS=["","​","￾"].join(""),nonWSregex=new RegExp("["+nonWS+"]","g"),isBadHexRegex=/^[-+]0x[0-9a-f]+$/i,hasStringTrimBug=nonWS.trim().length!==nonWS.length;defineProperty(String.prototype,"trim",trimShim,hasStringTrimBug);var iteratorResult=function(x){return{value:x,done:0===arguments.length}},StringIterator=function(s){ES.RequireObjectCoercible(s),this._s=ES.ToString(s),this._i=0};StringIterator.prototype.next=function(){var s=this._s,i=this._i;if(void 0===s||i>=s.length)return this._s=void 0,iteratorResult();var second,len,first=s.charCodeAt(i);return first<55296||first>56319||i+1===s.length?len=1:(second=s.charCodeAt(i+1),len=second<56320||second>57343?1:2),this._i=i+len,iteratorResult(s.substr(i,len))},addIterator(StringIterator.prototype),addIterator(String.prototype,function(){return new StringIterator(this)});var ArrayShims={from:function(items){var mapFn,mapping,T,C=this;if(arguments.length>1&&(mapFn=arguments[1]),void 0===mapFn)mapping=!1;else{if(!ES.IsCallable(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(T=arguments[2]),mapping=!0}var length,result,i,usingIterator=void 0!==(isArguments(items)||ES.GetMethod(items,$iterator$));if(usingIterator){result=ES.IsConstructor(C)?Object(new C):[];var next,nextValue,iterator=ES.GetIterator(items);for(i=0;!1!==(next=ES.IteratorStep(iterator));){nextValue=next.value;try{mapping&&(nextValue=void 0===T?mapFn(nextValue,i):_call(mapFn,T,nextValue,i)),result[i]=nextValue}catch(e){throw ES.IteratorClose(iterator,!0),e}i+=1}length=i}else{var value,arrayLike=ES.ToObject(items);for(length=ES.ToLength(arrayLike.length),result=ES.IsConstructor(C)?Object(new C(length)):new Array(length),i=0;i<length;++i)value=arrayLike[i],mapping&&(value=void 0===T?mapFn(value,i):_call(mapFn,T,value,i)),createDataPropertyOrThrow(result,i,value)}return result.length=length,result},of:function(){for(var len=arguments.length,C=this,A=isArray(C)||!ES.IsCallable(C)?new Array(len):ES.Construct(C,[len]),k=0;k<len;++k)createDataPropertyOrThrow(A,k,arguments[k]);return A.length=len,A}};defineProperties(Array,ArrayShims),addDefaultSpecies(Array),defineProperties((ArrayIterator=function(array,kind){this.i=0,this.array=array,this.kind=kind}).prototype,{next:function(){var i=this.i,array=this.array;if(!(this instanceof ArrayIterator))throw new TypeError("Not an ArrayIterator");if(void 0!==array)for(var len=ES.ToLength(array.length);i<len;i++){var retval,kind=this.kind;return"key"===kind?retval=i:"value"===kind?retval=array[i]:"entry"===kind&&(retval=[i,array[i]]),this.i=i+1,iteratorResult(retval)}return this.array=void 0,iteratorResult()}}),addIterator(ArrayIterator.prototype),Array.of===ArrayShims.of||function(){var Foo=function(len){this.length=len};Foo.prototype=[];var fooArr=Array.of.apply(Foo,[1,2]);return fooArr instanceof Foo&&2===fooArr.length}()||overrideNative(Array,"of",ArrayShims.of);var ArrayPrototypeShims={copyWithin:function(target,start){var end,o=ES.ToObject(this),len=ES.ToLength(o.length),relativeTarget=ES.ToInteger(target),relativeStart=ES.ToInteger(start),to=relativeTarget<0?_max(len+relativeTarget,0):_min(relativeTarget,len),from=relativeStart<0?_max(len+relativeStart,0):_min(relativeStart,len);arguments.length>2&&(end=arguments[2]);var relativeEnd=void 0===end?len:ES.ToInteger(end),finalItem=relativeEnd<0?_max(len+relativeEnd,0):_min(relativeEnd,len),count=_min(finalItem-from,len-to),direction=1;for(from<to&&to<from+count&&(direction=-1,from+=count-1,to+=count-1);count>0;)from in o?o[to]=o[from]:delete o[to],from+=direction,to+=direction,count-=1;return o},fill:function(value){var start,end;arguments.length>1&&(start=arguments[1]),arguments.length>2&&(end=arguments[2]);var O=ES.ToObject(this),len=ES.ToLength(O.length);start=ES.ToInteger(void 0===start?0:start),end=ES.ToInteger(void 0===end?len:end);for(var relativeStart=start<0?_max(len+start,0):_min(start,len),relativeEnd=end<0?len+end:end,i=relativeStart;i<len&&i<relativeEnd;++i)O[i]=value;return O},find:function(predicate){var list=ES.ToObject(this),length=ES.ToLength(list.length);if(!ES.IsCallable(predicate))throw new TypeError("Array#find: predicate must be a function");for(var value,thisArg=arguments.length>1?arguments[1]:null,i=0;i<length;i++)if(value=list[i],thisArg){if(_call(predicate,thisArg,value,i,list))return value}else if(predicate(value,i,list))return value},findIndex:function(predicate){var list=ES.ToObject(this),length=ES.ToLength(list.length);if(!ES.IsCallable(predicate))throw new TypeError("Array#findIndex: predicate must be a function");for(var thisArg=arguments.length>1?arguments[1]:null,i=0;i<length;i++)if(thisArg){if(_call(predicate,thisArg,list[i],i,list))return i}else if(predicate(list[i],i,list))return i;return-1},keys:function(){return new ArrayIterator(this,"key")},values:function(){return new ArrayIterator(this,"value")},entries:function(){return new ArrayIterator(this,"entry")}};if(Array.prototype.keys&&!ES.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!ES.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[$iterator$]&&(defineProperties(Array.prototype,{values:Array.prototype[$iterator$]}),Type.symbol(Symbol.unscopables)&&(Array.prototype[Symbol.unscopables].values=!0)),functionsHaveNames&&Array.prototype.values&&"values"!==Array.prototype.values.name){var originalArrayPrototypeValues=Array.prototype.values;overrideNative(Array.prototype,"values",function(){return ES.Call(originalArrayPrototypeValues,this,arguments)}),defineProperty(Array.prototype,$iterator$,Array.prototype.values,!0)}defineProperties(Array.prototype,ArrayPrototypeShims),1/[!0].indexOf(!0,-0)<0&&defineProperty(Array.prototype,"indexOf",function(searchElement){var value=_arrayIndexOfApply(this,arguments);return 0===value&&1/value<0?0:value},!0),addIterator(Array.prototype,function(){return this.values()}),Object.getPrototypeOf&&addIterator(Object.getPrototypeOf([].values()));var arr,arrayFromSwallowsNegativeLengths=valueOrFalseIfThrows(function(){return 0===Array.from({length:-1}).length}),arrayFromHandlesIterables=1===(arr=Array.from([0].entries())).length&&isArray(arr[0])&&0===arr[0][0]&&0===arr[0][1];if(arrayFromSwallowsNegativeLengths&&arrayFromHandlesIterables||overrideNative(Array,"from",ArrayShims.from),!valueOrFalseIfThrows(function(){return Array.from([0],void 0)})){var origArrayFrom=Array.from;overrideNative(Array,"from",function(items){return arguments.length>1&&void 0!==arguments[1]?ES.Call(origArrayFrom,this,arguments):_call(origArrayFrom,this,items)})}var int32sAsOne=-(Math.pow(2,32)-1),toLengthsCorrectly=function(method,reversed){var obj={length:int32sAsOne};return obj[reversed?(obj.length>>>0)-1:0]=!0,valueOrFalseIfThrows(function(){return _call(method,obj,function(){throw new RangeError("should not reach here")},[]),!0})};if(!toLengthsCorrectly(Array.prototype.forEach)){var originalForEach=Array.prototype.forEach;overrideNative(Array.prototype,"forEach",function(callbackFn){return ES.Call(originalForEach,this.length>=0?this:[],arguments)})}if(!toLengthsCorrectly(Array.prototype.map)){var originalMap=Array.prototype.map;overrideNative(Array.prototype,"map",function(callbackFn){return ES.Call(originalMap,this.length>=0?this:[],arguments)})}if(!toLengthsCorrectly(Array.prototype.filter)){var originalFilter=Array.prototype.filter;overrideNative(Array.prototype,"filter",function(callbackFn){return ES.Call(originalFilter,this.length>=0?this:[],arguments)})}if(!toLengthsCorrectly(Array.prototype.some)){var originalSome=Array.prototype.some;overrideNative(Array.prototype,"some",function(callbackFn){return ES.Call(originalSome,this.length>=0?this:[],arguments)})}if(!toLengthsCorrectly(Array.prototype.every)){var originalEvery=Array.prototype.every;overrideNative(Array.prototype,"every",function(callbackFn){return ES.Call(originalEvery,this.length>=0?this:[],arguments)})}if(!toLengthsCorrectly(Array.prototype.reduce)){var originalReduce=Array.prototype.reduce;overrideNative(Array.prototype,"reduce",function(callbackFn){return ES.Call(originalReduce,this.length>=0?this:[],arguments)})}if(!toLengthsCorrectly(Array.prototype.reduceRight,!0)){var originalReduceRight=Array.prototype.reduceRight;overrideNative(Array.prototype,"reduceRight",function(callbackFn){return ES.Call(originalReduceRight,this.length>=0?this:[],arguments)})}var lacksOctalSupport=8!==Number("0o10"),lacksBinarySupport=2!==Number("0b10"),trimsNonWhitespace=_some(nonWS,function(c){return 0===Number(c+0+c)});if(lacksOctalSupport||lacksBinarySupport||trimsNonWhitespace){var OrigNumber=Number,binaryRegex=/^0b[01]+$/i,octalRegex=/^0o[0-7]+$/i,isBinary=binaryRegex.test.bind(binaryRegex),isOctal=octalRegex.test.bind(octalRegex),hasNonWS=nonWSregex.test.bind(nonWSregex),isBadHex=isBadHexRegex.test.bind(isBadHexRegex),NumberShim=function(){var NumberShim=function(value){var primValue;"string"==typeof(primValue=arguments.length>0?Type.primitive(value)?value:function(O){var result;if("function"==typeof O.valueOf&&(result=O.valueOf(),Type.primitive(result)))return result;if("function"==typeof O.toString&&(result=O.toString(),Type.primitive(result)))return result;throw new TypeError("No default value")}(value):0)&&(primValue=ES.Call(trimShim,primValue),isBinary(primValue)?primValue=parseInt(_strSlice(primValue,2),2):isOctal(primValue)?primValue=parseInt(_strSlice(primValue,2),8):(hasNonWS(primValue)||isBadHex(primValue))&&(primValue=NaN));var receiver=this,valueOfSucceeds=valueOrFalseIfThrows(function(){return OrigNumber.prototype.valueOf.call(receiver),!0});return receiver instanceof NumberShim&&!valueOfSucceeds?new OrigNumber(primValue):OrigNumber(primValue)};return NumberShim}();wrapConstructor(OrigNumber,NumberShim,{}),defineProperties(NumberShim,{NaN:OrigNumber.NaN,MAX_VALUE:OrigNumber.MAX_VALUE,MIN_VALUE:OrigNumber.MIN_VALUE,NEGATIVE_INFINITY:OrigNumber.NEGATIVE_INFINITY,POSITIVE_INFINITY:OrigNumber.POSITIVE_INFINITY}),Number=NumberShim,Value.redefine(globals,"Number",NumberShim)}var maxSafeInteger=Math.pow(2,53)-1;defineProperties(Number,{MAX_SAFE_INTEGER:maxSafeInteger,MIN_SAFE_INTEGER:-maxSafeInteger,EPSILON:2.220446049250313e-16,parseInt:globals.parseInt,parseFloat:globals.parseFloat,isFinite:numberIsFinite,isInteger:function(value){return numberIsFinite(value)&&ES.ToInteger(value)===value},isSafeInteger:function(value){return Number.isInteger(value)&&_abs(value)<=Number.MAX_SAFE_INTEGER},isNaN:numberIsNaN}),defineProperty(Number,"parseInt",globals.parseInt,Number.parseInt!==globals.parseInt),1===[,1].find(function(){return!0})&&overrideNative(Array.prototype,"find",ArrayPrototypeShims.find),0!==[,1].findIndex(function(){return!0})&&overrideNative(Array.prototype,"findIndex",ArrayPrototypeShims.findIndex);var FAKENULL,gpo,spo,isEnumerableOn=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),ensureEnumerable=function(obj,prop){supportsDescriptors&&isEnumerableOn(obj,prop)&&Object.defineProperty(obj,prop,{enumerable:!1})},sliceArgs=function(){for(var initial=Number(this),len=arguments.length,desiredArgCount=len-initial,args=new Array(desiredArgCount<0?0:desiredArgCount),i=initial;i<len;++i)args[i-initial]=arguments[i];return args},assignTo=function(source){return function(target,key){return target[key]=source[key],target}},assignReducer=function(target,source){var symbols,sourceKeys=keys(Object(source));return ES.IsCallable(Object.getOwnPropertySymbols)&&(symbols=_filter(Object.getOwnPropertySymbols(Object(source)),isEnumerableOn(source))),_reduce(_concat(sourceKeys,symbols||[]),assignTo(source),target)},ObjectShims={assign:function(target,source){var to=ES.ToObject(target,"Cannot convert undefined or null to object");return _reduce(ES.Call(sliceArgs,1,arguments),assignReducer,to)},is:function(a,b){return ES.SameValue(a,b)}};if(Object.assign&&Object.preventExtensions&&function(){var thrower=Object.preventExtensions({1:2});try{Object.assign(thrower,"xy")}catch(e){return"y"===thrower[1]}}()&&overrideNative(Object,"assign",ObjectShims.assign),defineProperties(Object,ObjectShims),supportsDescriptors){var ES5ObjectShims={setPrototypeOf:function(Object,magic){var set,setPrototypeOf=function(O,proto){return function(O,proto){if(!ES.TypeIsObject(O))throw new TypeError("cannot set prototype on a non-object");if(null!==proto&&!ES.TypeIsObject(proto))throw new TypeError("can only set prototype to an object or null"+proto)}(O,proto),_call(set,O,proto),O};try{set=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,_call(set,{},null)}catch(e){if(Object.prototype!=={}.__proto__)return;set=function(proto){this.__proto__=proto},setPrototypeOf.polyfill=setPrototypeOf(setPrototypeOf({},null),Object.prototype)instanceof Object}return setPrototypeOf}(Object)};defineProperties(Object,ES5ObjectShims)}if(Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&(FAKENULL=Object.create(null),gpo=Object.getPrototypeOf,spo=Object.setPrototypeOf,Object.getPrototypeOf=function(o){var result=gpo(o);return result===FAKENULL?null:result},Object.setPrototypeOf=function(o,p){var proto=null===p?FAKENULL:p;return spo(o,proto)},Object.setPrototypeOf.polyfill=!1),throwsError(function(){return Object.keys("foo")})){var originalObjectKeys=Object.keys;overrideNative(Object,"keys",function(value){return originalObjectKeys(ES.ToObject(value))}),keys=Object.keys}if(throwsError(function(){return Object.keys(/a/g)})){var regexRejectingObjectKeys=Object.keys;overrideNative(Object,"keys",function(value){if(Type.regex(value)){var regexKeys=[];for(var k in value)_hasOwnProperty(value,k)&&_push(regexKeys,k);return regexKeys}return regexRejectingObjectKeys(value)}),keys=Object.keys}if(Object.getOwnPropertyNames){var objectGOPNAcceptsPrimitives=!throwsError(function(){return Object.getOwnPropertyNames("foo")});if(!objectGOPNAcceptsPrimitives){var cachedWindowNames="object"==typeof window?Object.getOwnPropertyNames(window):[],originalObjectGetOwnPropertyNames=Object.getOwnPropertyNames;overrideNative(Object,"getOwnPropertyNames",function(value){var val=ES.ToObject(value);if("[object Window]"===_toString(val))try{return originalObjectGetOwnPropertyNames(val)}catch(e){return _concat([],cachedWindowNames)}return originalObjectGetOwnPropertyNames(val)})}}if(Object.getOwnPropertyDescriptor){var objectGOPDAcceptsPrimitives=!throwsError(function(){return Object.getOwnPropertyDescriptor("foo","bar")});if(!objectGOPDAcceptsPrimitives){var originalObjectGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;overrideNative(Object,"getOwnPropertyDescriptor",function(value,property){return originalObjectGetOwnPropertyDescriptor(ES.ToObject(value),property)})}}if(Object.seal){var objectSealAcceptsPrimitives=!throwsError(function(){return Object.seal("foo")});if(!objectSealAcceptsPrimitives){var originalObjectSeal=Object.seal;overrideNative(Object,"seal",function(value){return ES.TypeIsObject(value)?originalObjectSeal(value):value})}}if(Object.isSealed){var objectIsSealedAcceptsPrimitives=!throwsError(function(){return Object.isSealed("foo")});if(!objectIsSealedAcceptsPrimitives){var originalObjectIsSealed=Object.isSealed;overrideNative(Object,"isSealed",function(value){return!ES.TypeIsObject(value)||originalObjectIsSealed(value)})}}if(Object.freeze){var objectFreezeAcceptsPrimitives=!throwsError(function(){return Object.freeze("foo")});if(!objectFreezeAcceptsPrimitives){var originalObjectFreeze=Object.freeze;overrideNative(Object,"freeze",function(value){return ES.TypeIsObject(value)?originalObjectFreeze(value):value})}}if(Object.isFrozen){var objectIsFrozenAcceptsPrimitives=!throwsError(function(){return Object.isFrozen("foo")});if(!objectIsFrozenAcceptsPrimitives){var originalObjectIsFrozen=Object.isFrozen;overrideNative(Object,"isFrozen",function(value){return!ES.TypeIsObject(value)||originalObjectIsFrozen(value)})}}if(Object.preventExtensions){var objectPreventExtensionsAcceptsPrimitives=!throwsError(function(){return Object.preventExtensions("foo")});if(!objectPreventExtensionsAcceptsPrimitives){var originalObjectPreventExtensions=Object.preventExtensions;overrideNative(Object,"preventExtensions",function(value){return ES.TypeIsObject(value)?originalObjectPreventExtensions(value):value})}}if(Object.isExtensible){var objectIsExtensibleAcceptsPrimitives=!throwsError(function(){return Object.isExtensible("foo")});if(!objectIsExtensibleAcceptsPrimitives){var originalObjectIsExtensible=Object.isExtensible;overrideNative(Object,"isExtensible",function(value){return!!ES.TypeIsObject(value)&&originalObjectIsExtensible(value)})}}if(Object.getPrototypeOf){var objectGetProtoAcceptsPrimitives=!throwsError(function(){return Object.getPrototypeOf("foo")});if(!objectGetProtoAcceptsPrimitives){var originalGetProto=Object.getPrototypeOf;overrideNative(Object,"getPrototypeOf",function(value){return originalGetProto(ES.ToObject(value))})}}var desc,hasFlags=supportsDescriptors&&((desc=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))&&ES.IsCallable(desc.get));supportsDescriptors&&!hasFlags&&Value.getter(RegExp.prototype,"flags",function(){if(!ES.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var result="";return this.global&&(result+="g"),this.ignoreCase&&(result+="i"),this.multiline&&(result+="m"),this.unicode&&(result+="u"),this.sticky&&(result+="y"),result});var regex,regExpSupportsFlagsWithRegex=supportsDescriptors&&valueOrFalseIfThrows(function(){return"/a/i"===String(new RegExp(/a/g,"i"))}),regExpNeedsToSupportSymbolMatch=hasSymbols&&supportsDescriptors&&((regex=/./)[Symbol.match]=!1,RegExp(regex)===regex),regexToStringIsGeneric=valueOrFalseIfThrows(function(){return"/abc/"===RegExp.prototype.toString.call({source:"abc"})}),regexToStringSupportsGenericFlags=regexToStringIsGeneric&&valueOrFalseIfThrows(function(){return"/a/b"===RegExp.prototype.toString.call({source:"a",flags:"b"})});if(!regexToStringIsGeneric||!regexToStringSupportsGenericFlags){var origRegExpToString=RegExp.prototype.toString;defineProperty(RegExp.prototype,"toString",function(){var R=ES.RequireObjectCoercible(this);if(Type.regex(R))return _call(origRegExpToString,R);var pattern=$String(R.source),flags=$String(R.flags);return"/"+pattern+"/"+flags},!0),Value.preserveToString(RegExp.prototype.toString,origRegExpToString)}if(supportsDescriptors&&(!regExpSupportsFlagsWithRegex||regExpNeedsToSupportSymbolMatch)){var flagsGetter=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get,sourceDesc=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{},sourceGetter=ES.IsCallable(sourceDesc.get)?sourceDesc.get:function(){return this.source},OrigRegExp=RegExp,RegExpShim=function RegExp(pattern,flags){var patternIsRegExp=ES.IsRegExp(pattern),calledWithNew=this instanceof RegExp;if(!calledWithNew&&patternIsRegExp&&void 0===flags&&pattern.constructor===RegExp)return pattern;var P=pattern,F=flags;return Type.regex(pattern)?(P=ES.Call(sourceGetter,pattern),F=void 0===flags?ES.Call(flagsGetter,pattern):flags,new RegExp(P,F)):(patternIsRegExp&&(P=pattern.source,F=void 0===flags?pattern.flags:flags),new OrigRegExp(pattern,flags))};wrapConstructor(OrigRegExp,RegExpShim,{$input:!0}),RegExp=RegExpShim,Value.redefine(globals,"RegExp",RegExpShim)}if(supportsDescriptors){var regexGlobals={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};_forEach(keys(regexGlobals),function(prop){prop in RegExp&&!(regexGlobals[prop]in RegExp)&&Value.getter(RegExp,regexGlobals[prop],function(){return RegExp[prop]})})}addDefaultSpecies(RegExp);var inverseEpsilon=1/Number.EPSILON,BINARY_32_EPSILON=Math.pow(2,-23),BINARY_32_MAX_VALUE=Math.pow(2,127)*(2-BINARY_32_EPSILON),BINARY_32_MIN_VALUE=Math.pow(2,-126),E=Math.E,LOG2E=Math.LOG2E,LOG10E=Math.LOG10E,numberCLZ=Number.prototype.clz;delete Number.prototype.clz;var MathShims={acosh:function(value){var x=Number(value);if(numberIsNaN(x)||value<1)return NaN;if(1===x)return 0;if(x===1/0)return x;var xInvSquared=1/(x*x);if(x<2)return _log1p(x-1+_sqrt(1-xInvSquared)*x);var halfX=x/2;return _log1p(halfX+_sqrt(1-xInvSquared)*halfX-1)+1/LOG2E},asinh:function(value){var x=Number(value);if(0===x||!globalIsFinite(x))return x;var a=_abs(x),aSquared=a*a,s=_sign(x);return a<1?s*_log1p(a+aSquared/(_sqrt(aSquared+1)+1)):s*(_log1p(a/2+_sqrt(1+1/aSquared)*a/2-1)+1/LOG2E)},atanh:function(value){var x=Number(value);if(0===x)return x;if(-1===x)return-1/0;if(1===x)return 1/0;if(numberIsNaN(x)||x<-1||x>1)return NaN;var a=_abs(x);return _sign(x)*_log1p(2*a/(1-a))/2},cbrt:function(value){var x=Number(value);if(0===x)return x;var result,negate=x<0;return negate&&(x=-x),x===1/0?result=1/0:(result=_exp(_log(x)/3),result=(x/(result*result)+2*result)/3),negate?-result:result},clz32:function(value){var x=Number(value),number=ES.ToUint32(x);return 0===number?32:numberCLZ?ES.Call(numberCLZ,number):31-_floor(_log(number+.5)*LOG2E)},cosh:function(value){var x=Number(value);if(0===x)return 1;if(numberIsNaN(x))return NaN;if(!globalIsFinite(x))return 1/0;var t=_exp(_abs(x)-1);return(t+1/(t*E*E))*(E/2)},expm1:function(value){var x=Number(value);if(x===-1/0)return-1;if(!globalIsFinite(x)||0===x)return x;if(_abs(x)>.5)return _exp(x)-1;for(var t=x,sum=0,n=1;sum+t!==sum;)sum+=t,t*=x/(n+=1);return sum},hypot:function(x,y){for(var result=0,largest=0,i=0;i<arguments.length;++i){var value=_abs(Number(arguments[i]));largest<value?(result*=largest/value*(largest/value),result+=1,largest=value):result+=value>0?value/largest*(value/largest):value}return largest===1/0?1/0:largest*_sqrt(result)},log2:function(value){return _log(value)*LOG2E},log10:function(value){return _log(value)*LOG10E},log1p:_log1p,sign:_sign,sinh:function(value){var x=Number(value);if(!globalIsFinite(x)||0===x)return x;var a=_abs(x);if(a<1){var u=Math.expm1(a);return _sign(x)*u*(1+1/(u+1))/2}var t=_exp(a-1);return _sign(x)*(t-1/(t*E*E))*(E/2)},tanh:function(value){var x=Number(value);return numberIsNaN(x)||0===x?x:x>=20?1:x<=-20?-1:(Math.expm1(x)-Math.expm1(-x))/(_exp(x)+_exp(-x))},trunc:function(value){var x=Number(value);return x<0?-_floor(-x):_floor(x)},imul:function(x,y){var a=ES.ToUint32(x),b=ES.ToUint32(y),ah=a>>>16&65535,al=65535&a,bh=b>>>16&65535,bl=65535&b;return al*bl+(ah*bl+al*bh<<16>>>0)|0},fround:function(x){var v=Number(x);if(0===v||v===1/0||v===-1/0||numberIsNaN(v))return v;var sign=_sign(v),abs=_abs(v);if(abs<BINARY_32_MIN_VALUE)return sign*(abs/BINARY_32_MIN_VALUE/BINARY_32_EPSILON+inverseEpsilon-inverseEpsilon)*BINARY_32_MIN_VALUE*BINARY_32_EPSILON;var a=(1+BINARY_32_EPSILON/Number.EPSILON)*abs,result=a-(a-abs);return result>BINARY_32_MAX_VALUE||numberIsNaN(result)?sign*(1/0):sign*result}},withinULPDistance=function(result,expected,distance){return _abs(1-result/expected)/Number.EPSILON<(distance||8)};defineProperties(Math,MathShims),defineProperty(Math,"sinh",MathShims.sinh,Math.sinh(710)===1/0),defineProperty(Math,"cosh",MathShims.cosh,Math.cosh(710)===1/0),defineProperty(Math,"log1p",MathShims.log1p,-1e-17!==Math.log1p(-1e-17)),defineProperty(Math,"asinh",MathShims.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),defineProperty(Math,"asinh",MathShims.asinh,Math.asinh(1e300)===1/0),defineProperty(Math,"atanh",MathShims.atanh,0===Math.atanh(1e-300)),defineProperty(Math,"tanh",MathShims.tanh,-2e-17!==Math.tanh(-2e-17)),defineProperty(Math,"acosh",MathShims.acosh,Math.acosh(Number.MAX_VALUE)===1/0),defineProperty(Math,"acosh",MathShims.acosh,!withinULPDistance(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),defineProperty(Math,"cbrt",MathShims.cbrt,!withinULPDistance(Math.cbrt(1e-300),1e-100)),defineProperty(Math,"sinh",MathShims.sinh,-2e-17!==Math.sinh(-2e-17));var expm1OfTen=Math.expm1(10);defineProperty(Math,"expm1",MathShims.expm1,expm1OfTen>22025.465794806718||expm1OfTen<22025.465794806718);var origMathRound=Math.round,roundHandlesBoundaryConditions=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(Number.EPSILON/3.99-.5),roundDoesNotIncreaseIntegers=[inverseEpsilon+1,2*inverseEpsilon-1].every(function(num){return Math.round(num)===num});defineProperty(Math,"round",function(x){var floor=_floor(x),ceil=-1===floor?-0:floor+1;return x-floor<.5?floor:ceil},!roundHandlesBoundaryConditions||!roundDoesNotIncreaseIntegers),Value.preserveToString(Math.round,origMathRound);var origImul=Math.imul;-5!==Math.imul(4294967295,5)&&(Math.imul=MathShims.imul,Value.preserveToString(Math.imul,origImul)),2!==Math.imul.length&&overrideNative(Math,"imul",function(x,y){return ES.Call(origImul,Math,arguments)});var count,thenable,PromiseShim=function(){var setTimeout=globals.setTimeout;if("function"==typeof setTimeout||"object"==typeof setTimeout){ES.IsPromise=function(promise){return!!ES.TypeIsObject(promise)&&void 0!==promise._promise};var makeZeroTimeout,PromiseCapability=function(C){if(!ES.IsConstructor(C))throw new TypeError("Bad promise constructor");var capability=this;if(capability.resolve=void 0,capability.reject=void 0,capability.promise=new C(function(resolve,reject){if(void 0!==capability.resolve||void 0!==capability.reject)throw new TypeError("Bad Promise implementation!");capability.resolve=resolve,capability.reject=reject}),!ES.IsCallable(capability.resolve)||!ES.IsCallable(capability.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&ES.IsCallable(window.postMessage)&&(makeZeroTimeout=function(){var timeouts=[];return window.addEventListener("message",function(event){if(event.source===window&&"zero-timeout-message"===event.data){if(event.stopPropagation(),0===timeouts.length)return;var fn=_shift(timeouts);fn()}},!0),function(fn){_push(timeouts,fn),window.postMessage("zero-timeout-message","*")}});var P,pr,Promise$prototype,Promise$prototype$then,enqueue=ES.IsCallable(globals.setImmediate)?globals.setImmediate:"object"==typeof process&&process.nextTick?process.nextTick:(P=globals.Promise,(pr=P&&P.resolve&&P.resolve())&&function(task){return pr.then(task)}||(ES.IsCallable(makeZeroTimeout)?makeZeroTimeout():function(task){setTimeout(task,0)})),PROMISE_IDENTITY=function(x){return x},PROMISE_THROWER=function(e){throw e},PROMISE_FAKE_CAPABILITY={},enqueuePromiseReactionJob=function(handler,capability,argument){enqueue(function(){promiseReactionJob(handler,capability,argument)})},promiseReactionJob=function(handler,promiseCapability,argument){var handlerResult,f;if(promiseCapability===PROMISE_FAKE_CAPABILITY)return handler(argument);try{handlerResult=handler(argument),f=promiseCapability.resolve}catch(e){handlerResult=e,f=promiseCapability.reject}f(handlerResult)},fulfillPromise=function(promise,value){var _promise=promise._promise,length=_promise.reactionLength;if(length>0&&(enqueuePromiseReactionJob(_promise.fulfillReactionHandler0,_promise.reactionCapability0,value),_promise.fulfillReactionHandler0=void 0,_promise.rejectReactions0=void 0,_promise.reactionCapability0=void 0,length>1))for(var i=1,idx=0;i<length;i++,idx+=3)enqueuePromiseReactionJob(_promise[idx+0],_promise[idx+2],value),promise[idx+0]=void 0,promise[idx+1]=void 0,promise[idx+2]=void 0;_promise.result=value,_promise.state=1,_promise.reactionLength=0},rejectPromise=function(promise,reason){var _promise=promise._promise,length=_promise.reactionLength;if(length>0&&(enqueuePromiseReactionJob(_promise.rejectReactionHandler0,_promise.reactionCapability0,reason),_promise.fulfillReactionHandler0=void 0,_promise.rejectReactions0=void 0,_promise.reactionCapability0=void 0,length>1))for(var i=1,idx=0;i<length;i++,idx+=3)enqueuePromiseReactionJob(_promise[idx+1],_promise[idx+2],reason),promise[idx+0]=void 0,promise[idx+1]=void 0,promise[idx+2]=void 0;_promise.result=reason,_promise.state=2,_promise.reactionLength=0},createResolvingFunctions=function(promise){var alreadyResolved=!1;return{resolve:function(resolution){var then;if(!alreadyResolved){if(alreadyResolved=!0,resolution===promise)return rejectPromise(promise,new TypeError("Self resolution"));if(!ES.TypeIsObject(resolution))return fulfillPromise(promise,resolution);try{then=resolution.then}catch(e){return rejectPromise(promise,e)}if(!ES.IsCallable(then))return fulfillPromise(promise,resolution);enqueue(function(){promiseResolveThenableJob(promise,resolution,then)})}},reject:function(reason){if(!alreadyResolved)return alreadyResolved=!0,rejectPromise(promise,reason)}}},optimizedThen=function(then,thenable,resolve,reject){then===Promise$prototype$then?_call(then,thenable,resolve,reject,PROMISE_FAKE_CAPABILITY):_call(then,thenable,resolve,reject)},promiseResolveThenableJob=function(promise,thenable,then){var resolvingFunctions=createResolvingFunctions(promise),resolve=resolvingFunctions.resolve,reject=resolvingFunctions.reject;try{optimizedThen(then,thenable,resolve,reject)}catch(e){reject(e)}},Promise=function(){var PromiseShim=function(resolver){if(!(this instanceof PromiseShim))throw new TypeError('Constructor Promise requires "new"');if(this&&this._promise)throw new TypeError("Bad construction");if(!ES.IsCallable(resolver))throw new TypeError("not a valid resolver");var promise=emulateES6construct(this,PromiseShim,Promise$prototype,{_promise:{result:void 0,state:0,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}}),resolvingFunctions=createResolvingFunctions(promise),reject=resolvingFunctions.reject;try{resolver(resolvingFunctions.resolve,reject)}catch(e){reject(e)}return promise};return PromiseShim}();Promise$prototype=Promise.prototype;var _promiseAllResolver=function(index,values,capability,remaining){var alreadyCalled=!1;return function(x){if(!alreadyCalled&&(alreadyCalled=!0,values[index]=x,0==--remaining.count)){var resolve=capability.resolve;resolve(values)}}};return defineProperties(Promise,{all:function(iterable){var C=this;if(!ES.TypeIsObject(C))throw new TypeError("Promise is not object");var iterator,iteratorRecord,capability=new PromiseCapability(C);try{return iterator=ES.GetIterator(iterable),function(iteratorRecord,C,resultCapability){for(var next,nextValue,it=iteratorRecord.iterator,values=[],remaining={count:1},index=0;;){try{if(!1===(next=ES.IteratorStep(it))){iteratorRecord.done=!0;break}nextValue=next.value}catch(e){throw iteratorRecord.done=!0,e}values[index]=void 0;var nextPromise=C.resolve(nextValue),resolveElement=_promiseAllResolver(index,values,resultCapability,remaining);remaining.count+=1,optimizedThen(nextPromise.then,nextPromise,resolveElement,resultCapability.reject),index+=1}if(0==--remaining.count){var resolve=resultCapability.resolve;resolve(values)}return resultCapability.promise}(iteratorRecord={iterator:iterator,done:!1},C,capability)}catch(e){var exception=e;if(iteratorRecord&&!iteratorRecord.done)try{ES.IteratorClose(iterator,!0)}catch(ee){exception=ee}var reject=capability.reject;return reject(exception),capability.promise}},race:function(iterable){var C=this;if(!ES.TypeIsObject(C))throw new TypeError("Promise is not object");var iterator,iteratorRecord,capability=new PromiseCapability(C);try{return iterator=ES.GetIterator(iterable),function(iteratorRecord,C,resultCapability){for(var next,nextValue,nextPromise,it=iteratorRecord.iterator;;){try{if(!1===(next=ES.IteratorStep(it))){iteratorRecord.done=!0;break}nextValue=next.value}catch(e){throw iteratorRecord.done=!0,e}nextPromise=C.resolve(nextValue),optimizedThen(nextPromise.then,nextPromise,resultCapability.resolve,resultCapability.reject)}return resultCapability.promise}(iteratorRecord={iterator:iterator,done:!1},C,capability)}catch(e){var exception=e;if(iteratorRecord&&!iteratorRecord.done)try{ES.IteratorClose(iterator,!0)}catch(ee){exception=ee}var reject=capability.reject;return reject(exception),capability.promise}},reject:function(reason){if(!ES.TypeIsObject(this))throw new TypeError("Bad promise constructor");var capability=new PromiseCapability(this),rejectFunc=capability.reject;return rejectFunc(reason),capability.promise},resolve:function(v){var C=this;if(!ES.TypeIsObject(C))throw new TypeError("Bad promise constructor");if(ES.IsPromise(v)){var constructor=v.constructor;if(constructor===C)return v}var capability=new PromiseCapability(C),resolveFunc=capability.resolve;return resolveFunc(v),capability.promise}}),defineProperties(Promise$prototype,{catch:function(onRejected){return this.then(null,onRejected)},then:function(onFulfilled,onRejected){if(!ES.IsPromise(this))throw new TypeError("not a promise");var resultCapability,C=ES.SpeciesConstructor(this,Promise),returnValueIsIgnored=arguments.length>2&&arguments[2]===PROMISE_FAKE_CAPABILITY;resultCapability=returnValueIsIgnored&&C===Promise?PROMISE_FAKE_CAPABILITY:new PromiseCapability(C);var value,fulfillReactionHandler=ES.IsCallable(onFulfilled)?onFulfilled:PROMISE_IDENTITY,rejectReactionHandler=ES.IsCallable(onRejected)?onRejected:PROMISE_THROWER,_promise=this._promise;if(0===_promise.state){if(0===_promise.reactionLength)_promise.fulfillReactionHandler0=fulfillReactionHandler,_promise.rejectReactionHandler0=rejectReactionHandler,_promise.reactionCapability0=resultCapability;else{var idx=3*(_promise.reactionLength-1);_promise[idx+0]=fulfillReactionHandler,_promise[idx+1]=rejectReactionHandler,_promise[idx+2]=resultCapability}_promise.reactionLength+=1}else if(1===_promise.state)value=_promise.result,enqueuePromiseReactionJob(fulfillReactionHandler,resultCapability,value);else{if(2!==_promise.state)throw new TypeError("unexpected Promise state");value=_promise.result,enqueuePromiseReactionJob(rejectReactionHandler,resultCapability,value)}return resultCapability.promise}}),PROMISE_FAKE_CAPABILITY=new PromiseCapability(Promise),Promise$prototype$then=Promise$prototype.then,Promise}}();if(globals.Promise&&(delete globals.Promise.accept,delete globals.Promise.defer,delete globals.Promise.prototype.chain),"function"==typeof PromiseShim){defineProperties(globals,{Promise:PromiseShim});var promiseSupportsSubclassing=supportsSubclassing(globals.Promise,function(S){return S.resolve(42).then(function(){})instanceof S}),promiseIgnoresNonFunctionThenCallbacks=!throwsError(function(){return globals.Promise.reject(42).then(null,5).then(null,noop)}),promiseRequiresObjectContext=throwsError(function(){return globals.Promise.call(3,noop)}),promiseResolveBroken=function(Promise){var p=Promise.resolve(5);p.constructor={};var p2=Promise.resolve(p);try{p2.then(null,noop).then(null,noop)}catch(e){return!0}return p===p2}(globals.Promise),getsThenSynchronously=supportsDescriptors&&(count=0,thenable=Object.defineProperty({},"then",{get:function(){count+=1}}),Promise.resolve(thenable),1===count),BadResolverPromise=function BadResolverPromise(executor){var p=new Promise(executor);executor(3,function(){}),this.then=p.then,this.constructor=BadResolverPromise};BadResolverPromise.prototype=Promise.prototype,BadResolverPromise.all=Promise.all;var hasBadResolverPromise=valueOrFalseIfThrows(function(){return!!BadResolverPromise.all([1,2])});if(promiseSupportsSubclassing&&promiseIgnoresNonFunctionThenCallbacks&&promiseRequiresObjectContext&&!promiseResolveBroken&&getsThenSynchronously&&!hasBadResolverPromise||(Promise=PromiseShim,overrideNative(globals,"Promise",PromiseShim)),1!==Promise.all.length){var origAll=Promise.all;overrideNative(Promise,"all",function(iterable){return ES.Call(origAll,this,arguments)})}if(1!==Promise.race.length){var origRace=Promise.race;overrideNative(Promise,"race",function(iterable){return ES.Call(origRace,this,arguments)})}if(1!==Promise.resolve.length){var origResolve=Promise.resolve;overrideNative(Promise,"resolve",function(x){return ES.Call(origResolve,this,arguments)})}if(1!==Promise.reject.length){var origReject=Promise.reject;overrideNative(Promise,"reject",function(r){return ES.Call(origReject,this,arguments)})}ensureEnumerable(Promise,"all"),ensureEnumerable(Promise,"race"),ensureEnumerable(Promise,"resolve"),ensureEnumerable(Promise,"reject"),addDefaultSpecies(Promise)}var s,m,testOrder=function(a){var b=keys(_reduce(a,function(o,k){return o[k]=!0,o},{}));return a.join(":")===b.join(":")},preservesInsertionOrder=testOrder(["z","a","bb"]),preservesNumericInsertionOrder=testOrder(["z",1,"a","3",2]);if(supportsDescriptors){var fastkey=function(key,skipInsertionOrderCheck){return skipInsertionOrderCheck||preservesInsertionOrder?isNullOrUndefined(key)?"^"+ES.ToString(key):"string"==typeof key?"$"+key:"number"==typeof key?preservesNumericInsertionOrder?key:"n"+key:"boolean"==typeof key?"b"+key:null:null},emptyObject=function(){return Object.create?Object.create(null):{}},addIterableToMap=function(MapConstructor,map,iterable){if(isArray(iterable)||Type.string(iterable))_forEach(iterable,function(entry){if(!ES.TypeIsObject(entry))throw new TypeError("Iterator value "+entry+" is not an entry object");map.set(entry[0],entry[1])});else if(iterable instanceof MapConstructor)_call(MapConstructor.prototype.forEach,iterable,function(value,key){map.set(key,value)});else{var iter,adder;if(!isNullOrUndefined(iterable)){if(adder=map.set,!ES.IsCallable(adder))throw new TypeError("bad map");iter=ES.GetIterator(iterable)}if(void 0!==iter)for(;;){var next=ES.IteratorStep(iter);if(!1===next)break;var nextItem=next.value;try{if(!ES.TypeIsObject(nextItem))throw new TypeError("Iterator value "+nextItem+" is not an entry object");_call(adder,map,nextItem[0],nextItem[1])}catch(e){throw ES.IteratorClose(iter,!0),e}}}},addIterableToSet=function(SetConstructor,set,iterable){if(isArray(iterable)||Type.string(iterable))_forEach(iterable,function(value){set.add(value)});else if(iterable instanceof SetConstructor)_call(SetConstructor.prototype.forEach,iterable,function(value){set.add(value)});else{var iter,adder;if(!isNullOrUndefined(iterable)){if(adder=set.add,!ES.IsCallable(adder))throw new TypeError("bad set");iter=ES.GetIterator(iterable)}if(void 0!==iter)for(;;){var next=ES.IteratorStep(iter);if(!1===next)break;var nextValue=next.value;try{_call(adder,set,nextValue)}catch(e){throw ES.IteratorClose(iter,!0),e}}}},collectionShims={Map:function(){var empty={},MapEntry=function(key,value){this.key=key,this.value=value,this.next=null,this.prev=null};MapEntry.prototype.isRemoved=function(){return this.key===empty};var Map$prototype,requireMapSlot=function(map,method){if(!ES.TypeIsObject(map)||!function(map){return!!map._es6map}(map))throw new TypeError("Method Map.prototype."+method+" called on incompatible receiver "+ES.ToString(map))},MapIterator=function(map,kind){requireMapSlot(map,"[[MapIterator]]"),this.head=map._head,this.i=this.head,this.kind=kind};addIterator(MapIterator.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var result,i=this.i,kind=this.kind,head=this.head;if(void 0===this.i)return iteratorResult();for(;i.isRemoved()&&i!==head;)i=i.prev;for(;i.next!==head;)if(!(i=i.next).isRemoved())return result="key"===kind?i.key:"value"===kind?i.value:[i.key,i.value],this.i=i,iteratorResult(result);return this.i=void 0,iteratorResult()}});var MapShim=function Map(){if(!(this instanceof Map))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var map=emulateES6construct(this,Map,Map$prototype,{_es6map:!0,_head:null,_map:OrigMap?new OrigMap:null,_size:0,_storage:emptyObject()}),head=new MapEntry(null,null);return head.next=head.prev=head,map._head=head,arguments.length>0&&addIterableToMap(Map,map,arguments[0]),map};return Value.getter(Map$prototype=MapShim.prototype,"size",function(){if(void 0===this._size)throw new TypeError("size method called on incompatible Map");return this._size}),defineProperties(Map$prototype,{get:function(key){var entry;requireMapSlot(this,"get");var fkey=fastkey(key,!0);if(null!==fkey)return(entry=this._storage[fkey])?entry.value:void 0;if(this._map)return(entry=origMapGet.call(this._map,key))?entry.value:void 0;for(var head=this._head,i=head;(i=i.next)!==head;)if(ES.SameValueZero(i.key,key))return i.value},has:function(key){requireMapSlot(this,"has");var fkey=fastkey(key,!0);if(null!==fkey)return void 0!==this._storage[fkey];if(this._map)return origMapHas.call(this._map,key);for(var head=this._head,i=head;(i=i.next)!==head;)if(ES.SameValueZero(i.key,key))return!0;return!1},set:function(key,value){requireMapSlot(this,"set");var entry,head=this._head,i=head,fkey=fastkey(key,!0);if(null!==fkey){if(void 0!==this._storage[fkey])return this._storage[fkey].value=value,this;entry=this._storage[fkey]=new MapEntry(key,value),i=head.prev}else this._map&&(origMapHas.call(this._map,key)?origMapGet.call(this._map,key).value=value:(entry=new MapEntry(key,value),origMapSet.call(this._map,key,entry),i=head.prev));for(;(i=i.next)!==head;)if(ES.SameValueZero(i.key,key))return i.value=value,this;return entry=entry||new MapEntry(key,value),ES.SameValue(-0,key)&&(entry.key=0),entry.next=this._head,entry.prev=this._head.prev,entry.prev.next=entry,entry.next.prev=entry,this._size+=1,this},delete:function(key){requireMapSlot(this,"delete");var head=this._head,i=head,fkey=fastkey(key,!0);if(null!==fkey){if(void 0===this._storage[fkey])return!1;i=this._storage[fkey].prev,delete this._storage[fkey]}else if(this._map){if(!origMapHas.call(this._map,key))return!1;i=origMapGet.call(this._map,key).prev,origMapDelete.call(this._map,key)}for(;(i=i.next)!==head;)if(ES.SameValueZero(i.key,key))return i.key=empty,i.value=empty,i.prev.next=i.next,i.next.prev=i.prev,this._size-=1,!0;return!1},clear:function(){requireMapSlot(this,"clear"),this._map=OrigMap?new OrigMap:null,this._size=0,this._storage=emptyObject();for(var head=this._head,i=head,p=i.next;(i=p)!==head;)i.key=empty,i.value=empty,p=i.next,i.next=i.prev=head;head.next=head.prev=head},keys:function(){return requireMapSlot(this,"keys"),new MapIterator(this,"key")},values:function(){return requireMapSlot(this,"values"),new MapIterator(this,"value")},entries:function(){return requireMapSlot(this,"entries"),new MapIterator(this,"key+value")},forEach:function(callback){requireMapSlot(this,"forEach");for(var context=arguments.length>1?arguments[1]:null,it=this.entries(),entry=it.next();!entry.done;entry=it.next())context?_call(callback,context,entry.value[1],entry.value[0],this):callback(entry.value[1],entry.value[0],this)}}),addIterator(Map$prototype,Map$prototype.entries),MapShim}(),Set:function(){var Set$prototype,requireSetSlot=function(set,method){if(!ES.TypeIsObject(set)||!function(set){return set._es6set&&void 0!==set._storage}(set))throw new TypeError("Set.prototype."+method+" called on incompatible receiver "+ES.ToString(set))},SetShim=function Set(){if(!(this instanceof Set))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var set=emulateES6construct(this,Set,Set$prototype,{_es6set:!0,"[[SetData]]":null,_storage:emptyObject()});if(!set._es6set)throw new TypeError("bad set");return arguments.length>0&&addIterableToSet(Set,set,arguments[0]),set};Set$prototype=SetShim.prototype;var ensureMap=function(set){if(!set["[[SetData]]"]){var m=new collectionShims.Map;set["[[SetData]]"]=m,_forEach(keys(set._storage),function(key){var k=function(key){var k=key;if("^null"===k)return null;if("^undefined"!==k){var first=k.charAt(0);return"$"===first?_strSlice(k,1):"n"===first?+_strSlice(k,1):"b"===first?"btrue"===k:+k}}(key);m.set(k,k)}),set["[[SetData]]"]=m}set._storage=null};Value.getter(SetShim.prototype,"size",function(){return requireSetSlot(this,"size"),this._storage?keys(this._storage).length:(ensureMap(this),this["[[SetData]]"].size)}),defineProperties(SetShim.prototype,{has:function(key){var fkey;return requireSetSlot(this,"has"),this._storage&&null!==(fkey=fastkey(key))?!!this._storage[fkey]:(ensureMap(this),this["[[SetData]]"].has(key))},add:function(key){var fkey;return requireSetSlot(this,"add"),this._storage&&null!==(fkey=fastkey(key))?(this._storage[fkey]=!0,this):(ensureMap(this),this["[[SetData]]"].set(key,key),this)},delete:function(key){var fkey;if(requireSetSlot(this,"delete"),this._storage&&null!==(fkey=fastkey(key))){var hasFKey=_hasOwnProperty(this._storage,fkey);return delete this._storage[fkey]&&hasFKey}return ensureMap(this),this["[[SetData]]"].delete(key)},clear:function(){requireSetSlot(this,"clear"),this._storage&&(this._storage=emptyObject()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return requireSetSlot(this,"values"),ensureMap(this),new SetIterator(this["[[SetData]]"].values())},entries:function(){return requireSetSlot(this,"entries"),ensureMap(this),new SetIterator(this["[[SetData]]"].entries())},forEach:function(callback){requireSetSlot(this,"forEach");var context=arguments.length>1?arguments[1]:null,entireSet=this;ensureMap(entireSet),this["[[SetData]]"].forEach(function(value,key){context?_call(callback,context,key,key,entireSet):callback(key,key,entireSet)})}}),defineProperty(SetShim.prototype,"keys",SetShim.prototype.values,!0),addIterator(SetShim.prototype,SetShim.prototype.values);var SetIterator=function(it){this.it=it};return SetIterator.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},addIterator(SetIterator.prototype),SetShim}()},isGoogleTranslate=globals.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray((new Set).keys);if(isGoogleTranslate&&(globals.Set=collectionShims.Set),globals.Map||globals.Set){var mapAcceptsArguments=valueOrFalseIfThrows(function(){return 2===new Map([[1,2]]).get(1)});mapAcceptsArguments||(globals.Map=function Map(){if(!(this instanceof Map))throw new TypeError('Constructor Map requires "new"');var m=new OrigMap;return arguments.length>0&&addIterableToMap(Map,m,arguments[0]),delete m.constructor,Object.setPrototypeOf(m,globals.Map.prototype),m},globals.Map.prototype=create(OrigMap.prototype),defineProperty(globals.Map.prototype,"constructor",globals.Map,!0),Value.preserveToString(globals.Map,OrigMap));var testMap=new Map,mapUsesSameValueZero=((m=new Map([[1,0],[2,0],[3,0],[4,0]])).set(-0,m),m.get(0)===m&&m.get(-0)===m&&m.has(0)&&m.has(-0)),mapSupportsChaining=testMap.set(1,2)===testMap;mapUsesSameValueZero&&mapSupportsChaining||overrideNative(Map.prototype,"set",function(k,v){return _call(origMapSet,this,0===k?0:k,v),this}),mapUsesSameValueZero||(defineProperties(Map.prototype,{get:function(k){return _call(origMapGet,this,0===k?0:k)},has:function(k){return _call(origMapHas,this,0===k?0:k)}},!0),Value.preserveToString(Map.prototype.get,origMapGet),Value.preserveToString(Map.prototype.has,origMapHas));var testSet=new Set,setUsesSameValueZero=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&((s=testSet).delete(0),s.add(-0),!s.has(0)),setSupportsChaining=testSet.add(1)===testSet;if(!setUsesSameValueZero||!setSupportsChaining){var origSetAdd=Set.prototype.add;Set.prototype.add=function(v){return _call(origSetAdd,this,0===v?0:v),this},Value.preserveToString(Set.prototype.add,origSetAdd)}if(!setUsesSameValueZero){var origSetHas=Set.prototype.has;Set.prototype.has=function(v){return _call(origSetHas,this,0===v?0:v)},Value.preserveToString(Set.prototype.has,origSetHas);var origSetDel=Set.prototype.delete;Set.prototype.delete=function(v){return _call(origSetDel,this,0===v?0:v)},Value.preserveToString(Set.prototype.delete,origSetDel)}var mapSupportsSubclassing=supportsSubclassing(globals.Map,function(M){var m=new M([]);return m.set(42,42),m instanceof M}),mapFailsToSupportSubclassing=Object.setPrototypeOf&&!mapSupportsSubclassing,mapRequiresNew=function(){try{return!(globals.Map()instanceof globals.Map)}catch(e){return e instanceof TypeError}}();0===globals.Map.length&&!mapFailsToSupportSubclassing&&mapRequiresNew||(globals.Map=function Map(){if(!(this instanceof Map))throw new TypeError('Constructor Map requires "new"');var m=new OrigMap;return arguments.length>0&&addIterableToMap(Map,m,arguments[0]),delete m.constructor,Object.setPrototypeOf(m,Map.prototype),m},globals.Map.prototype=OrigMap.prototype,defineProperty(globals.Map.prototype,"constructor",globals.Map,!0),Value.preserveToString(globals.Map,OrigMap));var setSupportsSubclassing=supportsSubclassing(globals.Set,function(S){var s=new S([]);return s.add(42,42),s instanceof S}),setFailsToSupportSubclassing=Object.setPrototypeOf&&!setSupportsSubclassing,setRequiresNew=function(){try{return!(globals.Set()instanceof globals.Set)}catch(e){return e instanceof TypeError}}();if(0!==globals.Set.length||setFailsToSupportSubclassing||!setRequiresNew){var OrigSet=globals.Set;globals.Set=function Set(){if(!(this instanceof Set))throw new TypeError('Constructor Set requires "new"');var s=new OrigSet;return arguments.length>0&&addIterableToSet(Set,s,arguments[0]),delete s.constructor,Object.setPrototypeOf(s,Set.prototype),s},globals.Set.prototype=OrigSet.prototype,defineProperty(globals.Set.prototype,"constructor",globals.Set,!0),Value.preserveToString(globals.Set,OrigSet)}var newMap=new globals.Map,mapIterationThrowsStopIterator=!valueOrFalseIfThrows(function(){return newMap.keys().next().done});if(("function"!=typeof globals.Map.prototype.clear||0!==(new globals.Set).size||0!==newMap.size||"function"!=typeof globals.Map.prototype.keys||"function"!=typeof globals.Set.prototype.keys||"function"!=typeof globals.Map.prototype.forEach||"function"!=typeof globals.Set.prototype.forEach||isCallableWithoutNew(globals.Map)||isCallableWithoutNew(globals.Set)||"function"!=typeof newMap.keys().next||mapIterationThrowsStopIterator||!mapSupportsSubclassing)&&defineProperties(globals,{Map:collectionShims.Map,Set:collectionShims.Set},!0),globals.Set.prototype.keys!==globals.Set.prototype.values&&defineProperty(globals.Set.prototype,"keys",globals.Set.prototype.values,!0),addIterator(Object.getPrototypeOf((new globals.Map).keys())),addIterator(Object.getPrototypeOf((new globals.Set).keys())),functionsHaveNames&&"has"!==globals.Set.prototype.has.name){var anonymousSetHas=globals.Set.prototype.has;overrideNative(globals.Set.prototype,"has",function(key){return _call(anonymousSetHas,this,key)})}}defineProperties(globals,collectionShims),addDefaultSpecies(globals.Map),addDefaultSpecies(globals.Set)}var throwUnlessTargetIsObject=function(target){if(!ES.TypeIsObject(target))throw new TypeError("target must be an object")},ReflectShims={apply:function(){return ES.Call(ES.Call,null,arguments)},construct:function(constructor,args){if(!ES.IsConstructor(constructor))throw new TypeError("First argument must be a constructor.");var newTarget=arguments.length>2?arguments[2]:constructor;if(!ES.IsConstructor(newTarget))throw new TypeError("new.target must be a constructor.");return ES.Construct(constructor,args,newTarget,"internal")},deleteProperty:function(target,key){if(throwUnlessTargetIsObject(target),supportsDescriptors){var desc=Object.getOwnPropertyDescriptor(target,key);if(desc&&!desc.configurable)return!1}return delete target[key]},has:function(target,key){return throwUnlessTargetIsObject(target),key in target}};Object.getOwnPropertyNames&&Object.assign(ReflectShims,{ownKeys:function(target){throwUnlessTargetIsObject(target);var keys=Object.getOwnPropertyNames(target);return ES.IsCallable(Object.getOwnPropertySymbols)&&_pushApply(keys,Object.getOwnPropertySymbols(target)),keys}});var callAndCatchException=function(func){return!throwsError(func)};if(Object.preventExtensions&&Object.assign(ReflectShims,{isExtensible:function(target){return throwUnlessTargetIsObject(target),Object.isExtensible(target)},preventExtensions:function(target){return throwUnlessTargetIsObject(target),callAndCatchException(function(){return Object.preventExtensions(target)})}}),supportsDescriptors){var internalGet=function(target,key,receiver){var desc=Object.getOwnPropertyDescriptor(target,key);if(!desc){var parent=Object.getPrototypeOf(target);if(null===parent)return;return internalGet(parent,key,receiver)}return"value"in desc?desc.value:desc.get?ES.Call(desc.get,receiver):void 0},internalSet=function(target,key,value,receiver){var desc=Object.getOwnPropertyDescriptor(target,key);if(!desc){var parent=Object.getPrototypeOf(target);if(null!==parent)return internalSet(parent,key,value,receiver);desc={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in desc){if(!desc.writable)return!1;if(!ES.TypeIsObject(receiver))return!1;var existingDesc=Object.getOwnPropertyDescriptor(receiver,key);return existingDesc?Reflect.defineProperty(receiver,key,{value:value}):Reflect.defineProperty(receiver,key,{value:value,writable:!0,enumerable:!0,configurable:!0})}return!!desc.set&&(_call(desc.set,receiver,value),!0)};Object.assign(ReflectShims,{defineProperty:function(target,propertyKey,attributes){return throwUnlessTargetIsObject(target),callAndCatchException(function(){return Object.defineProperty(target,propertyKey,attributes)})},getOwnPropertyDescriptor:function(target,propertyKey){return throwUnlessTargetIsObject(target),Object.getOwnPropertyDescriptor(target,propertyKey)},get:function(target,key){throwUnlessTargetIsObject(target);var receiver=arguments.length>2?arguments[2]:target;return internalGet(target,key,receiver)},set:function(target,key,value){throwUnlessTargetIsObject(target);var receiver=arguments.length>3?arguments[3]:target;return internalSet(target,key,value,receiver)}})}if(Object.getPrototypeOf){var objectDotGetPrototypeOf=Object.getPrototypeOf;ReflectShims.getPrototypeOf=function(target){return throwUnlessTargetIsObject(target),objectDotGetPrototypeOf(target)}}Object.setPrototypeOf&&ReflectShims.getPrototypeOf&&Object.assign(ReflectShims,{setPrototypeOf:function(object,proto){if(throwUnlessTargetIsObject(object),null!==proto&&!ES.TypeIsObject(proto))throw new TypeError("proto must be an object or null");return proto===Reflect.getPrototypeOf(object)||!(Reflect.isExtensible&&!Reflect.isExtensible(object))&&!function(object,lastProto){for(var proto=lastProto;proto;){if(object===proto)return!0;proto=ReflectShims.getPrototypeOf(proto)}return!1}(object,proto)&&(Object.setPrototypeOf(object,proto),!0)}}),Object.keys(ReflectShims).forEach(function(key){!function(key,shim){if(ES.IsCallable(globals.Reflect[key])){var acceptsPrimitives=valueOrFalseIfThrows(function(){return globals.Reflect[key](1),globals.Reflect[key](NaN),globals.Reflect[key](!0),!0});acceptsPrimitives&&overrideNative(globals.Reflect,key,shim)}else defineProperty(globals.Reflect,key,shim)}(key,ReflectShims[key])});var originalReflectGetProto=globals.Reflect.getPrototypeOf;if(functionsHaveNames&&originalReflectGetProto&&"getPrototypeOf"!==originalReflectGetProto.name&&overrideNative(globals.Reflect,"getPrototypeOf",function(target){return _call(originalReflectGetProto,globals.Reflect,target)}),globals.Reflect.setPrototypeOf&&valueOrFalseIfThrows(function(){return globals.Reflect.setPrototypeOf(1,{}),!0})&&overrideNative(globals.Reflect,"setPrototypeOf",ReflectShims.setPrototypeOf),globals.Reflect.defineProperty&&(valueOrFalseIfThrows(function(){var basic=!globals.Reflect.defineProperty(1,"test",{value:1}),extensible="function"!=typeof Object.preventExtensions||!globals.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return basic&&extensible})||overrideNative(globals.Reflect,"defineProperty",ReflectShims.defineProperty)),globals.Reflect.construct&&(valueOrFalseIfThrows(function(){var F=function(){};return globals.Reflect.construct(function(){},[],F)instanceof F})||overrideNative(globals.Reflect,"construct",ReflectShims.construct)),"Invalid Date"!==String(new Date(NaN))){var dateToString=Date.prototype.toString;overrideNative(Date.prototype,"toString",function(){var valueOf=+this;return valueOf!=valueOf?"Invalid Date":ES.Call(dateToString,this)})}var stringHTMLshims={anchor:function(name){return ES.CreateHTML(this,"a","name",name)},big:function(){return ES.CreateHTML(this,"big","","")},blink:function(){return ES.CreateHTML(this,"blink","","")},bold:function(){return ES.CreateHTML(this,"b","","")},fixed:function(){return ES.CreateHTML(this,"tt","","")},fontcolor:function(color){return ES.CreateHTML(this,"font","color",color)},fontsize:function(size){return ES.CreateHTML(this,"font","size",size)},italics:function(){return ES.CreateHTML(this,"i","","")},link:function(url){return ES.CreateHTML(this,"a","href",url)},small:function(){return ES.CreateHTML(this,"small","","")},strike:function(){return ES.CreateHTML(this,"strike","","")},sub:function(){return ES.CreateHTML(this,"sub","","")},sup:function(){return ES.CreateHTML(this,"sup","","")}};_forEach(Object.keys(stringHTMLshims),function(key){var method=String.prototype[key],shouldOverwrite=!1;if(ES.IsCallable(method)){var output=_call(method,"",' " '),quotesCount=_concat([],output.match(/"/g)).length;shouldOverwrite=output!==output.toLowerCase()||quotesCount>2}else shouldOverwrite=!0;shouldOverwrite&&overrideNative(String.prototype,key,stringHTMLshims[key])});var JSONstringifiesSymbols=function(){if(!hasSymbols)return!1;var stringify="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!stringify)return!1;if(void 0!==stringify(Symbol()))return!0;if("[null]"!==stringify([Symbol()]))return!0;var obj={a:Symbol()};return obj[Symbol()]=!0,"{}"!==stringify(obj)}(),JSONstringifyAcceptsObjectSymbol=valueOrFalseIfThrows(function(){return!hasSymbols||"{}"===JSON.stringify(Object(Symbol()))&&"[{}]"===JSON.stringify([Object(Symbol())])});if(JSONstringifiesSymbols||!JSONstringifyAcceptsObjectSymbol){var origStringify=JSON.stringify;overrideNative(JSON,"stringify",function(value){if("symbol"!=typeof value){var replacer;arguments.length>1&&(replacer=arguments[1]);var args=[value];if(isArray(replacer))args.push(replacer);else{var replaceFn=ES.IsCallable(replacer)?replacer:null;args.push(function(key,val){var parsedValue=replaceFn?_call(replaceFn,this,key,val):val;if("symbol"!=typeof parsedValue)return Type.symbol(parsedValue)?assignTo({})(parsedValue):parsedValue})}return arguments.length>2&&args.push(arguments[2]),origStringify.apply(this,args)}})}return globals})?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this,__webpack_require__(7),__webpack_require__(14))},function(module,exports,__webpack_require__){"use strict";!function(){if(!("fetch"in window))return;const capableDisplayModes=["standalone","fullscreen","minimal-ui"],defaultSplashColor="#f8f9fa",defaultSplashTextSize=24,idealSplashIconSize=128,minimumSplashIconSize=48,splashIconPadding=32,isSafari=navigator.vendor&&-1!==navigator.vendor.indexOf("Apple"),isEdge=navigator.userAgent&&-1!==navigator.userAgent.indexOf("Edge"),isEdgePWA="undefined"!=typeof Windows;function setup(){const manifestEl=document.head.querySelector('link[rel="manifest"]'),manifestHref=manifestEl?manifestEl.href:"",hrefFactory=function(options){for(let i=0;i<options.length;++i){const opt=options[i];try{return new URL("",opt),part=>new URL(part,opt).toString()}catch(e){}}return part=>part}([manifestHref,window.location]);Promise.resolve().then(()=>{if(!manifestHref)throw'can\'t find <link rel="manifest" href=".." />\'';const opts={};return"use-credentials"===manifestHref.crossOrigin&&(opts.credentials="include"),window.fetch(manifestHref,opts)}).then(response=>response.json()).then(data=>(function(manifest,urlFactory){const icons=manifest.icons||[];icons.sort((a,b)=>parseInt(b.sizes,10)-parseInt(a.sizes,10));const appleTouchIcons=icons.map(icon=>{const attr={rel:"icon",href:urlFactory(icon.src),sizes:icon.sizes};if(push("link",attr),isSafari)return attr.rel="apple-touch-icon",push("link",attr)}),display=manifest.display,isCapable=-1!==capableDisplayModes.indexOf(display);meta("mobile-web-app-capable",isCapable),function(color){if(!isSafari&&!isEdgePWA)return;const themeIsLight=shouldUseLightForeground(color);if(isSafari)meta("apple-mobile-web-app-status-bar-style",themeIsLight?"black":"default");else{const t=function(){try{return Windows.UI.ViewManagement.ApplicationView.getForCurrentView().titleBar}catch(e){return null}}();if(null===t)return void console.debug("UWP no titleBar");t.foregroundColor=colorToWindowsRGBA(themeIsLight?"black":"white"),t.backgroundColor=colorToWindowsRGBA(color)}}(manifest.theme_color||"black"),isEdge&&(meta("msapplication-starturl",manifest.start_url||"/"),meta("msapplication-TileColor",manifest.theme_color));document.head.querySelector('[name="theme-color"]')||meta("theme-color",manifest.theme_color);const orientation=function(v){const prefix=(v=String(v||"")).substr(0,3);if("por"===prefix)return"portrait";if("lan"===prefix)return"landscape";return""}(manifest.orientation);meta("x5-orientation",orientation),meta("screen-orientation",orientation),"fullscreen"===display?(meta("x5-fullscreen","true"),meta("full-screen","yes")):isCapable&&(meta("x5-page-mode","app"),meta("browsermode","application"));if(!isSafari)return;const backgroundIsLight=shouldUseLightForeground(manifest.background_color||defaultSplashColor),title=manifest.name||manifest.short_name||document.title,itunes=function(related){let itunes;return(related||[]).filter(app=>"itunes"===app.platform).forEach(app=>{if(app.id)itunes=app.id;else{const match=app.url.match(/id(\d+)/);match&&(itunes=match[1])}}),itunes}(manifest.related_applications);function splashFor({width:width,height:height},orientation,icon){const ratio=window.devicePixelRatio,ctx=contextForCanvas({width:width*ratio,height:height*ratio});ctx.scale(ratio,ratio),ctx.fillStyle=manifest.background_color||defaultSplashColor,ctx.fillRect(0,0,width,height),ctx.translate(width/2,(height-splashIconPadding)/2),ctx.font=`${defaultSplashTextSize}px HelveticaNeue-CondensedBold`,ctx.fillStyle=backgroundIsLight?"white":"black";const textWidth=ctx.measureText(title).width;if(icon){let iconWidth=icon.width/ratio,iconHeight=icon.height/ratio;iconHeight>idealSplashIconSize&&(iconWidth/=iconHeight/idealSplashIconSize,iconHeight=idealSplashIconSize),iconWidth>=minimumSplashIconSize&&iconHeight>=minimumSplashIconSize&&(ctx.drawImage(icon,iconWidth/-2,iconHeight/-2,iconWidth,iconHeight),ctx.translate(0,iconHeight/2+splashIconPadding))}ctx.fillText(title,textWidth/-2,0);const generatedSplash=document.createElement("link");return generatedSplash.setAttribute("rel","apple-touch-startup-image"),generatedSplash.setAttribute("media",`(orientation: ${orientation})`),generatedSplash.setAttribute("href",ctx.canvas.toDataURL()),generatedSplash}itunes&&meta("apple-itunes-app",`app-id=${itunes}`),meta("apple-mobile-web-app-capable",isCapable),meta("apple-mobile-web-app-title",title);const previous=new Set;function updateSplash(applicationIcon){const portrait=splashFor(window.screen,"portrait",applicationIcon),landscape=splashFor({width:window.screen.height,height:window.screen.width},"landscape",applicationIcon);previous.forEach(prev=>prev.remove()),document.head.appendChild(portrait),document.head.appendChild(landscape),previous.add(portrait),previous.add(landscape)}if(updateSplash(null),!appleTouchIcons.length)return;const icon=appleTouchIcons[0],img=new Image;img.crossOrigin="anonymous",img.onload=()=>{if(updateSplash(img),!manifest.background_color)return;const redrawn=updateTransparent(img,manifest.background_color);null!==redrawn&&(icon.href=redrawn,appleTouchIcons.slice(1).forEach(icon=>{const img=new Image;img.crossOrigin="anonymous",img.onload=()=>{const redrawn=updateTransparent(img,manifest.background_color,!0);icon.href=redrawn},img.src=icon.href}))},img.src=icon.href})(data,hrefFactory)).catch(err=>console.warn("pwacompat.js error",err))}function push(localName,attr){const node=document.createElement(localName);for(const k in attr)node.setAttribute(k,attr[k]);return document.head.appendChild(node),node}function meta(name,content){content&&(!0===content&&(content="yes"),push("meta",{name:name,content:content}))}function colorToWindowsRGBA(color){const data=readColor(color);return{r:data[0],g:data[1],b:data[2],a:data[3]}}function readColor(color){const c=contextForCanvas();return c.fillStyle=color,c.fillRect(0,0,1,1),c.getImageData(0,0,1,1).data}function shouldUseLightForeground(color){const data=readColor(color).map(v=>{const f=v/255;return f<.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)}),lum=.2126*data[0]+.7152*data[1]+.0722*data[2];return Math.abs(1.05/(lum+.05))>3}function updateTransparent(image,background,force=!1){const context=contextForCanvas(image);if(context.drawImage(image,0,0),!force){if(255==context.getImageData(0,0,1,1).data[3])return null}return context.globalCompositeOperation="destination-over",context.fillStyle=background,context.fillRect(0,0,image.width,image.height),context.canvas.toDataURL()}function contextForCanvas({width:width,height:height}={width:1,height:1}){const canvas=document.createElement("canvas");return canvas.width=width,canvas.height=height,canvas.getContext("2d")}"complete"===document.readyState?setup():window.addEventListener("load",setup)}()},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj.default=obj,newObj}exports.__esModule=!0;var base=_interopRequireWildcard(__webpack_require__(15)),_handlebarsSafeString2=_interopRequireDefault(__webpack_require__(84)),_handlebarsException2=_interopRequireDefault(__webpack_require__(8)),Utils=_interopRequireWildcard(__webpack_require__(5)),runtime=_interopRequireWildcard(__webpack_require__(85)),_handlebarsNoConflict2=_interopRequireDefault(__webpack_require__(86));function create(){var hb=new base.HandlebarsEnvironment;return Utils.extend(hb,base),hb.SafeString=_handlebarsSafeString2.default,hb.Exception=_handlebarsException2.default,hb.Utils=Utils,hb.escapeExpression=Utils.escapeExpression,hb.VM=runtime,hb.template=function(spec){return runtime.template(spec,hb)},hb}var inst=create();inst.create=create,_handlebarsNoConflict2.default(inst),inst.default=inst,exports.default=inst,module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0,exports.registerDefaultHelpers=function(instance){_helpersBlockHelperMissing2.default(instance),_helpersEach2.default(instance),_helpersHelperMissing2.default(instance),_helpersIf2.default(instance),_helpersLog2.default(instance),_helpersLookup2.default(instance),_helpersWith2.default(instance)};var _helpersBlockHelperMissing2=_interopRequireDefault(__webpack_require__(74)),_helpersEach2=_interopRequireDefault(__webpack_require__(75)),_helpersHelperMissing2=_interopRequireDefault(__webpack_require__(76)),_helpersIf2=_interopRequireDefault(__webpack_require__(77)),_helpersLog2=_interopRequireDefault(__webpack_require__(78)),_helpersLookup2=_interopRequireDefault(__webpack_require__(79)),_helpersWith2=_interopRequireDefault(__webpack_require__(80))},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _utils=__webpack_require__(5);exports.default=function(instance){instance.registerHelper("blockHelperMissing",function(context,options){var inverse=options.inverse,fn=options.fn;if(!0===context)return fn(this);if(!1===context||null==context)return inverse(this);if(_utils.isArray(context))return context.length>0?(options.ids&&(options.ids=[options.name]),instance.helpers.each(context,options)):inverse(this);if(options.data&&options.ids){var data=_utils.createFrame(options.data);data.contextPath=_utils.appendContextPath(options.data.contextPath,options.name),options={data:data}}return fn(context,options)})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var obj,_utils=__webpack_require__(5),_exception=__webpack_require__(8),_exception2=(obj=_exception)&&obj.__esModule?obj:{default:obj};exports.default=function(instance){instance.registerHelper("each",function(context,options){if(!options)throw new _exception2.default("Must pass iterator to #each");var fn=options.fn,inverse=options.inverse,i=0,ret="",data=void 0,contextPath=void 0;function execIteration(field,index,last){data&&(data.key=field,data.index=index,data.first=0===index,data.last=!!last,contextPath&&(data.contextPath=contextPath+field)),ret+=fn(context[field],{data:data,blockParams:_utils.blockParams([context[field],field],[contextPath+field,null])})}if(options.data&&options.ids&&(contextPath=_utils.appendContextPath(options.data.contextPath,options.ids[0])+"."),_utils.isFunction(context)&&(context=context.call(this)),options.data&&(data=_utils.createFrame(options.data)),context&&"object"==typeof context)if(_utils.isArray(context))for(var j=context.length;i<j;i++)i in context&&execIteration(i,i,i===context.length-1);else{var priorKey=void 0;for(var key in context)context.hasOwnProperty(key)&&(void 0!==priorKey&&execIteration(priorKey,i-1),priorKey=key,i++);void 0!==priorKey&&execIteration(priorKey,i-1,!0)}return 0===i&&(ret=inverse(this)),ret})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var obj,_exception=__webpack_require__(8),_exception2=(obj=_exception)&&obj.__esModule?obj:{default:obj};exports.default=function(instance){instance.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new _exception2.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _utils=__webpack_require__(5);exports.default=function(instance){instance.registerHelper("if",function(conditional,options){return _utils.isFunction(conditional)&&(conditional=conditional.call(this)),!options.hash.includeZero&&!conditional||_utils.isEmpty(conditional)?options.inverse(this):options.fn(this)}),instance.registerHelper("unless",function(conditional,options){return instance.helpers.if.call(this,conditional,{fn:options.inverse,inverse:options.fn,hash:options.hash})})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.default=function(instance){instance.registerHelper("log",function(){for(var args=[void 0],options=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)args.push(arguments[i]);var level=1;null!=options.hash.level?level=options.hash.level:options.data&&null!=options.data.level&&(level=options.data.level),args[0]=level,instance.log.apply(instance,args)})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.default=function(instance){instance.registerHelper("lookup",function(obj,field){return obj&&obj[field]})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _utils=__webpack_require__(5);exports.default=function(instance){instance.registerHelper("with",function(context,options){_utils.isFunction(context)&&(context=context.call(this));var fn=options.fn;if(_utils.isEmpty(context))return options.inverse(this);var data=options.data;return options.data&&options.ids&&((data=_utils.createFrame(options.data)).contextPath=_utils.appendContextPath(options.data.contextPath,options.ids[0])),fn(context,{data:data,blockParams:_utils.blockParams([context],[data&&data.contextPath])})})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.registerDefaultDecorators=function(instance){_decoratorsInline2.default(instance)};var obj,_decoratorsInline=__webpack_require__(82),_decoratorsInline2=(obj=_decoratorsInline)&&obj.__esModule?obj:{default:obj}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _utils=__webpack_require__(5);exports.default=function(instance){instance.registerDecorator("inline",function(fn,props,container,options){var ret=fn;return props.partials||(props.partials={},ret=function(context,options){var original=container.partials;container.partials=_utils.extend({},original,props.partials);var ret=fn(context,options);return container.partials=original,ret}),props.partials[options.args[0]]=options.fn,ret})},module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _utils=__webpack_require__(5),logger={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(level){if("string"==typeof level){var levelMap=_utils.indexOf(logger.methodMap,level.toLowerCase());level=levelMap>=0?levelMap:parseInt(level,10)}return level},log:function(level){if(level=logger.lookupLevel(level),"undefined"!=typeof console&&logger.lookupLevel(logger.level)<=level){var method=logger.methodMap[level];console[method]||(method="log");for(var _len=arguments.length,message=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)message[_key-1]=arguments[_key];console[method].apply(console,message)}}};exports.default=logger,module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";function SafeString(string){this.string=string}exports.__esModule=!0,SafeString.prototype.toString=SafeString.prototype.toHTML=function(){return""+this.string},exports.default=SafeString,module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.checkRevision=function(compilerInfo){var compilerRevision=compilerInfo&&compilerInfo[0]||1,currentRevision=_base.COMPILER_REVISION;if(compilerRevision!==currentRevision){if(compilerRevision<currentRevision){var runtimeVersions=_base.REVISION_CHANGES[currentRevision],compilerVersions=_base.REVISION_CHANGES[compilerRevision];throw new _exception2.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+runtimeVersions+") or downgrade your runtime to an older version ("+compilerVersions+").")}throw new _exception2.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+compilerInfo[1]+").")}},exports.template=function(templateSpec,env){if(!env)throw new _exception2.default("No environment passed to template");if(!templateSpec||!templateSpec.main)throw new _exception2.default("Unknown template object: "+typeof templateSpec);templateSpec.main.decorator=templateSpec.main_d,env.VM.checkRevision(templateSpec.compiler);var container={strict:function(obj,name){if(!(name in obj))throw new _exception2.default('"'+name+'" not defined in '+obj);return obj[name]},lookup:function(depths,name){for(var len=depths.length,i=0;i<len;i++)if(depths[i]&&null!=depths[i][name])return depths[i][name]},lambda:function(current,context){return"function"==typeof current?current.call(context):current},escapeExpression:Utils.escapeExpression,invokePartial:function(partial,context,options){options.hash&&(context=Utils.extend({},context,options.hash),options.ids&&(options.ids[0]=!0));partial=env.VM.resolvePartial.call(this,partial,context,options);var result=env.VM.invokePartial.call(this,partial,context,options);null==result&&env.compile&&(options.partials[options.name]=env.compile(partial,templateSpec.compilerOptions,env),result=options.partials[options.name](context,options));if(null!=result){if(options.indent){for(var lines=result.split("\n"),i=0,l=lines.length;i<l&&(lines[i]||i+1!==l);i++)lines[i]=options.indent+lines[i];result=lines.join("\n")}return result}throw new _exception2.default("The partial "+options.name+" could not be compiled when running in runtime-only mode")},fn:function(i){var ret=templateSpec[i];return ret.decorator=templateSpec[i+"_d"],ret},programs:[],program:function(i,data,declaredBlockParams,blockParams,depths){var programWrapper=this.programs[i],fn=this.fn(i);return data||depths||blockParams||declaredBlockParams?programWrapper=wrapProgram(this,i,fn,data,declaredBlockParams,blockParams,depths):programWrapper||(programWrapper=this.programs[i]=wrapProgram(this,i,fn)),programWrapper},data:function(value,depth){for(;value&&depth--;)value=value._parent;return value},merge:function(param,common){var obj=param||common;return param&&common&&param!==common&&(obj=Utils.extend({},common,param)),obj},nullContext:Object.seal({}),noop:env.VM.noop,compilerInfo:templateSpec.compiler};function ret(context){var options=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],data=options.data;ret._setup(options),!options.partial&&templateSpec.useData&&(data=function(context,data){data&&"root"in data||((data=data?_base.createFrame(data):{}).root=context);return data}(context,data));var depths=void 0,blockParams=templateSpec.useBlockParams?[]:void 0;function main(context){return""+templateSpec.main(container,context,container.helpers,container.partials,data,blockParams,depths)}return templateSpec.useDepths&&(depths=options.depths?context!=options.depths[0]?[context].concat(options.depths):options.depths:[context]),(main=executeDecorators(templateSpec.main,main,container,options.depths||[],data,blockParams))(context,options)}return ret.isTop=!0,ret._setup=function(options){options.partial?(container.helpers=options.helpers,container.partials=options.partials,container.decorators=options.decorators):(container.helpers=container.merge(options.helpers,env.helpers),templateSpec.usePartial&&(container.partials=container.merge(options.partials,env.partials)),(templateSpec.usePartial||templateSpec.useDecorators)&&(container.decorators=container.merge(options.decorators,env.decorators)))},ret._child=function(i,data,blockParams,depths){if(templateSpec.useBlockParams&&!blockParams)throw new _exception2.default("must pass block params");if(templateSpec.useDepths&&!depths)throw new _exception2.default("must pass parent depths");return wrapProgram(container,i,templateSpec[i],data,0,blockParams,depths)},ret},exports.wrapProgram=wrapProgram,exports.resolvePartial=function(partial,context,options){partial?partial.call||options.name||(options.name=partial,partial=options.partials[partial]):partial="@partial-block"===options.name?options.data["partial-block"]:options.partials[options.name];return partial},exports.invokePartial=function(partial,context,options){var currentPartialBlock=options.data&&options.data["partial-block"];options.partial=!0,options.ids&&(options.data.contextPath=options.ids[0]||options.data.contextPath);var partialBlock=void 0;options.fn&&options.fn!==noop&&function(){options.data=_base.createFrame(options.data);var fn=options.fn;partialBlock=options.data["partial-block"]=function(context){var options=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return options.data=_base.createFrame(options.data),options.data["partial-block"]=currentPartialBlock,fn(context,options)},fn.partials&&(options.partials=Utils.extend({},options.partials,fn.partials))}();void 0===partial&&partialBlock&&(partial=partialBlock);if(void 0===partial)throw new _exception2.default("The partial "+options.name+" could not be found");if(partial instanceof Function)return partial(context,options)},exports.noop=noop;var obj,Utils=function(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj.default=obj,newObj}(__webpack_require__(5)),_exception=__webpack_require__(8),_exception2=(obj=_exception)&&obj.__esModule?obj:{default:obj},_base=__webpack_require__(15);function wrapProgram(container,i,fn,data,declaredBlockParams,blockParams,depths){function prog(context){var options=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],currentDepths=depths;return!depths||context==depths[0]||context===container.nullContext&&null===depths[0]||(currentDepths=[context].concat(depths)),fn(container,context,container.helpers,container.partials,options.data||data,blockParams&&[options.blockParams].concat(blockParams),currentDepths)}return(prog=executeDecorators(fn,prog,container,depths,data,blockParams)).program=i,prog.depth=depths?depths.length:0,prog.blockParams=declaredBlockParams||0,prog}function noop(){return""}function executeDecorators(fn,prog,container,depths,data,blockParams){if(fn.decorator){var props={};prog=fn.decorator(prog,props,container,depths&&depths[0],data,blockParams,depths),Utils.extend(prog,props)}return prog}},function(module,exports,__webpack_require__){"use strict";(function(global){exports.__esModule=!0,exports.default=function(Handlebars){var root=void 0!==global?global:window,$Handlebars=root.Handlebars;Handlebars.noConflict=function(){return root.Handlebars===Handlebars&&(root.Handlebars=$Handlebars),Handlebars}},module.exports=exports.default}).call(this,__webpack_require__(7))},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global){"use strict";var token,timezone,timezoneClip,dateFormat=(token=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,timezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,timezoneClip=/[^-+\dA-Z]/g,function(date,mask,utc,gmt){if(1!==arguments.length||"string"!==(null===(val=date)?"null":void 0===val?"undefined":"object"!=typeof val?typeof val:Array.isArray(val)?"array":{}.toString.call(val).slice(8,-1).toLowerCase())||/\d/.test(date)||(mask=date,date=void 0),(date=date||new Date)instanceof Date||(date=new Date(date)),isNaN(date))throw TypeError("Invalid date");var val,maskSlice=(mask=String(dateFormat.masks[mask]||mask||dateFormat.masks.default)).slice(0,4);"UTC:"!==maskSlice&&"GMT:"!==maskSlice||(mask=mask.slice(4),utc=!0,"GMT:"===maskSlice&&(gmt=!0));var _=utc?"getUTC":"get",d=date[_+"Date"](),D=date[_+"Day"](),m=date[_+"Month"](),y=date[_+"FullYear"](),H=date[_+"Hours"](),M=date[_+"Minutes"](),s=date[_+"Seconds"](),L=date[_+"Milliseconds"](),o=utc?0:date.getTimezoneOffset(),W=function(date){var targetThursday=new Date(date.getFullYear(),date.getMonth(),date.getDate());targetThursday.setDate(targetThursday.getDate()-(targetThursday.getDay()+6)%7+3);var firstThursday=new Date(targetThursday.getFullYear(),0,4);firstThursday.setDate(firstThursday.getDate()-(firstThursday.getDay()+6)%7+3);var ds=targetThursday.getTimezoneOffset()-firstThursday.getTimezoneOffset();targetThursday.setHours(targetThursday.getHours()-ds);var weekDiff=(targetThursday-firstThursday)/6048e5;return 1+Math.floor(weekDiff)}(date),N=function(date){var dow=date.getDay();return 0===dow&&(dow=7),dow}(date),flags={d:d,dd:pad(d),ddd:dateFormat.i18n.dayNames[D],dddd:dateFormat.i18n.dayNames[D+7],m:m+1,mm:pad(m+1),mmm:dateFormat.i18n.monthNames[m],mmmm:dateFormat.i18n.monthNames[m+12],yy:String(y).slice(2),yyyy:y,h:H%12||12,hh:pad(H%12||12),H:H,HH:pad(H),M:M,MM:pad(M),s:s,ss:pad(s),l:pad(L,3),L:pad(Math.round(L/10)),t:H<12?"a":"p",tt:H<12?"am":"pm",T:H<12?"A":"P",TT:H<12?"AM":"PM",Z:gmt?"GMT":utc?"UTC":(String(date).match(timezone)||[""]).pop().replace(timezoneClip,""),o:(o>0?"-":"+")+pad(100*Math.floor(Math.abs(o)/60)+Math.abs(o)%60,4),S:["th","st","nd","rd"][d%10>3?0:(d%100-d%10!=10)*d%10],W:W,N:N};return mask.replace(token,function(match){return match in flags?flags[match]:match.slice(1,match.length-1)})});function pad(val,len){for(val=String(val),len=len||2;val.length<len;)val="0"+val;return val}dateFormat.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return dateFormat}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},function(module,exports,__webpack_require__){!function(factory){var SockJS=__webpack_require__(89);if(!SockJS)throw new Error("vertx-eventbus.js requires sockjs-client, see http://sockjs.org");!function(SockJS){function mergeHeaders(defaultHeaders,headers){if(defaultHeaders){if(!headers)return defaultHeaders;for(var headerName in defaultHeaders)defaultHeaders.hasOwnProperty(headerName)&&void 0===headers[headerName]&&(headers[headerName]=defaultHeaders[headerName])}return headers||{}}var EventBus=function(url,options){var pingTimerID,self=this,pingInterval=(options=options||{}).vertxbus_ping_interval||5e3;this.sockJSConn=new SockJS(url,null,options),this.state=EventBus.CONNECTING,this.handlers={},this.replyHandlers={},this.defaultHeaders=null,this.onerror=function(err){try{console.error(err)}catch(e){}};var sendPing=function(){self.sockJSConn.send(JSON.stringify({type:"ping"}))};this.sockJSConn.onopen=function(){sendPing(),pingTimerID=setInterval(sendPing,pingInterval),self.state=EventBus.OPEN,self.onopen&&self.onopen()},this.sockJSConn.onclose=function(e){self.state=EventBus.CLOSED,pingTimerID&&clearInterval(pingTimerID),self.onclose&&self.onclose(e)},this.sockJSConn.onmessage=function(e){var json=JSON.parse(e.data);if(json.replyAddress&&Object.defineProperty(json,"reply",{value:function(message,headers,callback){self.send(json.replyAddress,message,headers,callback)}}),self.handlers[json.address])for(var handlers=self.handlers[json.address],i=0;i<handlers.length;i++)"err"===json.type?handlers[i]({failureCode:json.failureCode,failureType:json.failureType,message:json.message}):handlers[i](null,json);else if(self.replyHandlers[json.address]){var handler=self.replyHandlers[json.address];delete self.replyHandlers[json.address],"err"===json.type?handler({failureCode:json.failureCode,failureType:json.failureType,message:json.message}):handler(null,json)}else if("err"===json.type)self.onerror(json);else try{console.warn("No handler found for message: ",json)}catch(e){}}};EventBus.prototype.send=function(address,message,headers,callback){if(this.state!=EventBus.OPEN)throw new Error("INVALID_STATE_ERR");"function"==typeof headers&&(callback=headers,headers={});var envelope={type:"send",address:address,headers:mergeHeaders(this.defaultHeaders,headers),body:message};if(callback){var replyAddress="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a,b){return b=16*Math.random(),("y"==a?3&b|8:0|b).toString(16)});envelope.replyAddress=replyAddress,this.replyHandlers[replyAddress]=callback}this.sockJSConn.send(JSON.stringify(envelope))},EventBus.prototype.publish=function(address,message,headers){if(this.state!=EventBus.OPEN)throw new Error("INVALID_STATE_ERR");this.sockJSConn.send(JSON.stringify({type:"publish",address:address,headers:mergeHeaders(this.defaultHeaders,headers),body:message}))},EventBus.prototype.registerHandler=function(address,headers,callback){if(this.state!=EventBus.OPEN)throw new Error("INVALID_STATE_ERR");"function"==typeof headers&&(callback=headers,headers={}),this.handlers[address]||(this.handlers[address]=[],this.sockJSConn.send(JSON.stringify({type:"register",address:address,headers:mergeHeaders(this.defaultHeaders,headers)}))),this.handlers[address].push(callback)},EventBus.prototype.unregisterHandler=function(address,headers,callback){if(this.state!=EventBus.OPEN)throw new Error("INVALID_STATE_ERR");var handlers=this.handlers[address];if(handlers){"function"==typeof headers&&(callback=headers,headers={});var idx=handlers.indexOf(callback);-1!=idx&&(handlers.splice(idx,1),0===handlers.length&&(this.sockJSConn.send(JSON.stringify({type:"unregister",address:address,headers:mergeHeaders(this.defaultHeaders,headers)})),delete this.handlers[address]))}},EventBus.prototype.close=function(){this.state=EventBus.CLOSING,this.sockJSConn.close()},EventBus.CONNECTING=0,EventBus.OPEN=1,EventBus.CLOSING=2,EventBus.CLOSED=3,module.exports?exports=module.exports=EventBus:exports.EventBus=EventBus}(SockJS)}()},function(module,exports,__webpack_require__){(function(global){var require;module.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return require(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e){(function(n){"use strict";var r=t("./transport-list");e.exports=t("./main")(r),"_sockjs_onload"in n&&setTimeout(n._sockjs_onload,1)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./main":14,"./transport-list":16}],2:[function(t,e){"use strict";function n(){i.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}var r=t("inherits"),i=t("./event");r(n,i),e.exports=n},{"./event":4,inherits:54}],3:[function(t,e){"use strict";function n(){i.call(this)}var r=t("inherits"),i=t("./eventtarget");r(n,i),n.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},n.prototype.once=function(t,e){var r=this,i=!1;this.on(t,function n(){r.removeListener(t,n),i||(i=!0,e.apply(this,arguments))})},n.prototype.emit=function(){var t=arguments[0],e=this._listeners[t];if(e){for(var n=arguments.length,r=new Array(n-1),i=1;n>i;i++)r[i-1]=arguments[i];for(var o=0;o<e.length;o++)e[o].apply(this,r)}},n.prototype.on=n.prototype.addListener=i.prototype.addEventListener,n.prototype.removeListener=i.prototype.removeEventListener,e.exports.EventEmitter=n},{"./eventtarget":5,inherits:54}],4:[function(t,e){"use strict";function n(t){this.type=t}n.prototype.initEvent=function(t,e,n){return this.type=t,this.bubbles=e,this.cancelable=n,this.timeStamp=+new Date,this},n.prototype.stopPropagation=function(){},n.prototype.preventDefault=function(){},n.CAPTURING_PHASE=1,n.AT_TARGET=2,n.BUBBLING_PHASE=3,e.exports=n},{}],5:[function(t,e){"use strict";function n(){this._listeners={}}n.prototype.addEventListener=function(t,e){t in this._listeners||(this._listeners[t]=[]);var n=this._listeners[t];-1===n.indexOf(e)&&(n=n.concat([e])),this._listeners[t]=n},n.prototype.removeEventListener=function(t,e){var n=this._listeners[t];if(n){var r=n.indexOf(e);return-1!==r?void(n.length>1?this._listeners[t]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[t]):void 0}},n.prototype.dispatchEvent=function(){var t=arguments[0],e=t.type,n=1===arguments.length?[t]:Array.apply(null,arguments);if(this["on"+e]&&this["on"+e].apply(this,n),e in this._listeners)for(var r=this._listeners[e],i=0;i<r.length;i++)r[i].apply(this,n)},e.exports=n},{}],6:[function(t,e){"use strict";function n(t){i.call(this),this.initEvent("message",!1,!1),this.data=t}var r=t("inherits"),i=t("./event");r(n,i),e.exports=n},{"./event":4,inherits:54}],7:[function(t,e){"use strict";function n(t){this._transport=t,t.on("message",this._transportMessage.bind(this)),t.on("close",this._transportClose.bind(this))}var r=t("json3"),i=t("./utils/iframe");n.prototype._transportClose=function(t,e){i.postMessage("c",r.stringify([t,e]))},n.prototype._transportMessage=function(t){i.postMessage("t",t)},n.prototype._send=function(t){this._transport.send(t)},n.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},e.exports=n},{"./utils/iframe":47,json3:55}],8:[function(t,e){"use strict";var n=t("./utils/url"),r=t("./utils/event"),i=t("json3"),o=t("./facade"),s=t("./info-iframe-receiver"),a=t("./utils/iframe"),u=t("./location");e.exports=function(t,e){var c,l={};e.forEach(function(t){t.facadeTransport&&(l[t.facadeTransport.transportName]=t.facadeTransport)}),l[s.transportName]=s,t.bootstrap_iframe=function(){var e;a.currentWindowId=u.hash.slice(1),r.attachEvent("message",function(r){if(r.source===parent&&(void 0===c&&(c=r.origin),r.origin===c)){var s;try{s=i.parse(r.data)}catch(f){return}if(s.windowId===a.currentWindowId)switch(s.type){case"s":var h;try{h=i.parse(s.data)}catch(f){break}var d=h[0],p=h[1],v=h[2],m=h[3];if(d!==t.version)throw new Error('Incompatible SockJS! Main site uses: "'+d+'", the iframe: "'+t.version+'".');if(!n.isOriginEqual(v,u.href)||!n.isOriginEqual(m,u.href))throw new Error("Can't connect to different domain from within an iframe. ("+u.href+", "+v+", "+m+")");e=new o(new l[p](v,m));break;case"m":e._send(s.data);break;case"c":e&&e._close(),e=null}}}),a.postMessage("s")}}},{"./facade":7,"./info-iframe-receiver":10,"./location":13,"./utils/event":46,"./utils/iframe":47,"./utils/url":52,debug:void 0,json3:55}],9:[function(t,e){"use strict";function n(t,e){r.call(this);var n=this,i=+new Date;this.xo=new e("GET",t),this.xo.once("finish",function(t,e){var r,a;if(200===t){if(a=+new Date-i,e)try{r=o.parse(e)}catch(u){}s.isObject(r)||(r={})}n.emit("finish",r,a),n.removeAllListeners()})}var r=t("events").EventEmitter,i=t("inherits"),o=t("json3"),s=t("./utils/object");i(n,r),n.prototype.close=function(){this.removeAllListeners(),this.xo.close()},e.exports=n},{"./utils/object":49,debug:void 0,events:3,inherits:54,json3:55}],10:[function(t,e){"use strict";function n(t){var e=this;i.call(this),this.ir=new a(t,s),this.ir.once("finish",function(t,n){e.ir=null,e.emit("message",o.stringify([t,n]))})}var r=t("inherits"),i=t("events").EventEmitter,o=t("json3"),s=t("./transport/sender/xhr-local"),a=t("./info-ajax");r(n,i),n.transportName="iframe-info-receiver",n.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},e.exports=n},{"./info-ajax":9,"./transport/sender/xhr-local":37,events:3,inherits:54,json3:55}],11:[function(t,e){(function(n){"use strict";function r(t,e){var r=this;i.call(this);var o=function(){var n=r.ifr=new u(l.transportName,e,t);n.once("message",function(t){if(t){var e;try{e=s.parse(t)}catch(n){return r.emit("finish"),void r.close()}var i=e[0],o=e[1];r.emit("finish",i,o)}r.close()}),n.once("close",function(){r.emit("finish"),r.close()})};n.document.body?o():a.attachEvent("load",o)}var i=t("events").EventEmitter,o=t("inherits"),s=t("json3"),a=t("./utils/event"),u=t("./transport/iframe"),l=t("./info-iframe-receiver");o(r,i),r.enabled=function(){return u.enabled()},r.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./info-iframe-receiver":10,"./transport/iframe":22,"./utils/event":46,debug:void 0,events:3,inherits:54,json3:55}],12:[function(t,e){"use strict";function n(t,e){var n=this;r.call(this),setTimeout(function(){n.doXhr(t,e)},0)}var r=t("events").EventEmitter,i=t("inherits"),o=t("./utils/url"),s=t("./transport/sender/xdr"),a=t("./transport/sender/xhr-cors"),u=t("./transport/sender/xhr-local"),l=t("./transport/sender/xhr-fake"),c=t("./info-iframe"),f=t("./info-ajax");i(n,r),n._getReceiver=function(t,e,n){return n.sameOrigin?new f(e,u):a.enabled?new f(e,a):s.enabled&&n.sameScheme?new f(e,s):c.enabled()?new c(t,e):new f(e,l)},n.prototype.doXhr=function(t,e){var r=this,i=o.addPath(t,"/info");this.xo=n._getReceiver(t,i,e),this.timeoutRef=setTimeout(function(){r._cleanup(!1),r.emit("finish")},n.timeout),this.xo.once("finish",function(t,e){r._cleanup(!0),r.emit("finish",t,e)})},n.prototype._cleanup=function(t){clearTimeout(this.timeoutRef),this.timeoutRef=null,!t&&this.xo&&this.xo.close(),this.xo=null},n.prototype.close=function(){this.removeAllListeners(),this._cleanup(!1)},n.timeout=8e3,e.exports=n},{"./info-ajax":9,"./info-iframe":11,"./transport/sender/xdr":34,"./transport/sender/xhr-cors":35,"./transport/sender/xhr-fake":36,"./transport/sender/xhr-local":37,"./utils/url":52,debug:void 0,events:3,inherits:54}],13:[function(t,e){(function(t){"use strict";e.exports=t.location||{origin:"http://localhost:80",protocol:"http",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],14:[function(t,e){(function(n){"use strict";function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");b.call(this),this.readyState=r.CONNECTING,this.extensions="",this.protocol="",(n=n||{}).protocols_whitelist&&m.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=n.transports,this._transportOptions=n.transportOptions||{};var i=n.sessionId||8;if("function"==typeof i)this._generateSessionId=i;else{if("number"!=typeof i)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return l.string(i)}}this._server=n.server||l.numberString(1e3);var o=new s(t);if(!o.host||!o.protocol)throw new SyntaxError("The URL '"+t+"' is invalid");if(o.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==o.protocol&&"https:"!==o.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+o.protocol+"' is not allowed.");var a="https:"===o.protocol;if("https"===g.protocol&&!a)throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");e?Array.isArray(e)||(e=[e]):e=[];var u=e.sort();u.forEach(function(t,e){if(!t)throw new SyntaxError("The protocols entry '"+t+"' is invalid.");if(e<u.length-1&&t===u[e+1])throw new SyntaxError("The protocols entry '"+t+"' is duplicated.")});var c=f.getOrigin(g.href);this._origin=c?c.toLowerCase():null,o.set("pathname",o.pathname.replace(/\/+$/,"")),this.url=o.href,this._urlInfo={nullOrigin:!v.hasDomain(),sameOrigin:f.isOriginEqual(this.url,g.href),sameScheme:f.isSchemeEqual(this.url,g.href)},this._ir=new _(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function i(t){return 1e3===t||t>=3e3&&4999>=t}t("./shims");var o,s=t("url-parse"),a=t("inherits"),u=t("json3"),l=t("./utils/random"),c=t("./utils/escape"),f=t("./utils/url"),h=t("./utils/event"),d=t("./utils/transport"),p=t("./utils/object"),v=t("./utils/browser"),m=t("./utils/log"),y=t("./event/event"),b=t("./event/eventtarget"),g=t("./location"),w=t("./event/close"),x=t("./event/trans-message"),_=t("./info-receiver");a(r,b),r.prototype.close=function(t,e){if(t&&!i(t))throw new Error("InvalidAccessError: Invalid code");if(e&&e.length>123)throw new SyntaxError("reason argument has an invalid length");this.readyState!==r.CLOSING&&this.readyState!==r.CLOSED&&this._close(t||1e3,e||"Normal closure",!0)},r.prototype.send=function(t){if("string"!=typeof t&&(t=""+t),this.readyState===r.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===r.OPEN&&this._transport.send(c.quote(t))},r.version=t("./version"),r.CONNECTING=0,r.OPEN=1,r.CLOSING=2,r.CLOSED=3,r.prototype._receiveInfo=function(t,e){if(this._ir=null,t){this._rto=this.countRTO(e),this._transUrl=t.base_url?t.base_url:this.url,t=p.extend(t,this._urlInfo);var n=o.filterToEnabled(this._transportsWhitelist,t);this._transports=n.main,this._connect()}else this._close(1002,"Cannot connect to server")},r.prototype._connect=function(){for(var t=this._transports.shift();t;t=this._transports.shift()){if(t.needBody&&(!n.document.body||void 0!==n.document.readyState&&"complete"!==n.document.readyState&&"interactive"!==n.document.readyState))return this._transports.unshift(t),void h.attachEvent("load",this._connect.bind(this));var e=this._rto*t.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),e);var r=f.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),i=this._transportOptions[t.transportName],o=new t(r,this._transUrl,i);return o.on("message",this._transportMessage.bind(this)),o.once("close",this._transportClose.bind(this)),o.transportName=t.transportName,void(this._transport=o)}this._close(2e3,"All transports failed",!1)},r.prototype._transportTimeout=function(){this.readyState===r.CONNECTING&&this._transportClose(2007,"Transport timed out")},r.prototype._transportMessage=function(t){var e,n=this,r=t.slice(0,1),i=t.slice(1);switch(r){case"o":return void this._open();case"h":return void this.dispatchEvent(new y("heartbeat"))}if(i)try{e=u.parse(i)}catch(o){}if(void 0!==e)switch(r){case"a":Array.isArray(e)&&e.forEach(function(t){n.dispatchEvent(new x(t))});break;case"m":this.dispatchEvent(new x(e));break;case"c":Array.isArray(e)&&2===e.length&&this._close(e[0],e[1],!0)}},r.prototype._transportClose=function(t,e){return this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),i(t)||2e3===t||this.readyState!==r.CONNECTING?void this._close(t,e):void this._connect()},r.prototype._open=function(){this.readyState===r.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=r.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new y("open"))):this._close(1006,"Server lost session")},r.prototype._close=function(t,e,n){var i=!1;if(this._ir&&(i=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===r.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=r.CLOSING,setTimeout(function(){this.readyState=r.CLOSED,i&&this.dispatchEvent(new y("error"));var o=new w("close");o.wasClean=n||!1,o.code=t||1e3,o.reason=e,this.dispatchEvent(o),this.onmessage=this.onclose=this.onerror=null}.bind(this),0)},r.prototype.countRTO=function(t){return t>100?4*t:300+t},e.exports=function(e){return o=d(e),t("./iframe-bootstrap")(r,e),r}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./event/close":2,"./event/event":4,"./event/eventtarget":5,"./event/trans-message":6,"./iframe-bootstrap":8,"./info-receiver":12,"./location":13,"./shims":15,"./utils/browser":44,"./utils/escape":45,"./utils/event":46,"./utils/log":48,"./utils/object":49,"./utils/random":50,"./utils/transport":51,"./utils/url":52,"./version":53,debug:void 0,inherits:54,json3:55,"url-parse":56}],15:[function(){"use strict";function n(){}var r,i=Array.prototype,o=Object.prototype,s=Function.prototype,a=String.prototype,u=i.slice,l=o.toString,c=function(t){return"[object Function]"===o.toString.call(t)},h=function(t){return"[object String]"===l.call(t)},d=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}();r=d?function(t,e,n,r){!r&&e in t||Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,n,r){!r&&e in t||(t[e]=n)};var p=function(t,e,n){for(var i in e)o.hasOwnProperty.call(e,i)&&r(t,i,e[i],n)},v=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)};p(s,{bind:function(t){var e=this;if(!c(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r=u.call(arguments,1),o=Math.max(0,e.length-r.length),s=[],a=0;o>a;a++)s.push("$"+a);var l=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof l){var n=e.apply(this,r.concat(u.call(arguments)));return Object(n)===n?n:this}return e.apply(t,r.concat(u.call(arguments)))});return e.prototype&&(n.prototype=e.prototype,l.prototype=new n,n.prototype=null),l}}),p(Array,{isArray:function(t){return"[object Array]"===l.call(t)}});var m=Object("a"),y="a"!==m[0]||!(0 in m);p(i,{forEach:function(t){var e=v(this),n=y&&h(this)?this.split(""):e,r=arguments[1],i=-1,o=n.length>>>0;if(!c(t))throw new TypeError;for(;++i<o;)i in n&&t.call(r,n[i],i,e)}},!function(t){var e=!0,n=!0;return t&&(t.call("foo",function(t,n,r){"object"!=typeof r&&(e=!1)}),t.call([1],function(){n="string"==typeof this},"x")),!!t&&e&&n}(i.forEach));var g=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);p(i,{indexOf:function(e){var n=y&&h(this)?this.split(""):v(this),r=n.length>>>0;if(!r)return-1;var i=0;for(arguments.length>1&&(i=function(t){var e=+t;return e!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}(arguments[1])),i=i>=0?i:Math.max(0,r+i);r>i;i++)if(i in n&&n[i]===e)return i;return-1}},g);var w=a.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?function(){var t=void 0===/()??/.exec("")[1];a.split=function(n,r){var o=this;if(void 0===n&&0===r)return[];if("[object RegExp]"!==l.call(n))return w.call(this,n,r);var s,a,u,c,f=[],h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.extended?"x":"")+(n.sticky?"y":""),d=0;for(n=new RegExp(n.source,h+"g"),o+="",t||(s=new RegExp("^"+n.source+"$(?!\\s)",h)),r=void 0===r?-1>>>0:function(t){return t>>>0}(r);(a=n.exec(o))&&!((u=a.index+a[0].length)>d&&(f.push(o.slice(d,a.index)),!t&&a.length>1&&a[0].replace(s,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(a[t]=void 0)}),a.length>1&&a.index<o.length&&i.push.apply(f,a.slice(1)),c=a[0].length,d=u,f.length>=r));)n.lastIndex===a.index&&n.lastIndex++;return d===o.length?(c||!n.test(""))&&f.push(""):f.push(o.slice(d)),f.length>r?f.slice(0,r):f}}():"0".split(void 0,0).length&&(a.split=function(t,e){return void 0===t&&0===e?[]:w.call(this,t,e)});var x="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",E="["+x+"]",j=new RegExp("^"+E+E+"*"),T=new RegExp(E+E+"*$"),S=a.trim&&(x.trim()||!"​".trim());p(a,{trim:function(){if(null==this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(j,"").replace(T,"")}},S);var O=a.substr,C="".substr&&"b"!=="0b".substr(-1);p(a,{substr:function(t,e){return O.call(this,0>t&&(t=this.length+t)<0?0:t,e)}},C)},{}],16:[function(t,e){"use strict";e.exports=[t("./transport/websocket"),t("./transport/xhr-streaming"),t("./transport/xdr-streaming"),t("./transport/eventsource"),t("./transport/lib/iframe-wrap")(t("./transport/eventsource")),t("./transport/htmlfile"),t("./transport/lib/iframe-wrap")(t("./transport/htmlfile")),t("./transport/xhr-polling"),t("./transport/xdr-polling"),t("./transport/lib/iframe-wrap")(t("./transport/xhr-polling")),t("./transport/jsonp-polling")]},{"./transport/eventsource":20,"./transport/htmlfile":21,"./transport/jsonp-polling":23,"./transport/lib/iframe-wrap":26,"./transport/websocket":38,"./transport/xdr-polling":39,"./transport/xdr-streaming":40,"./transport/xhr-polling":41,"./transport/xhr-streaming":42}],17:[function(t,e){(function(n){"use strict";function r(t,e,n,r){var o=this;i.call(this),setTimeout(function(){o._start(t,e,n,r)},0)}var i=t("events").EventEmitter,o=t("inherits"),s=t("../../utils/event"),a=t("../../utils/url"),u=n.XMLHttpRequest;o(r,i),r.prototype._start=function(t,e,n,i){var o=this;try{this.xhr=new u}catch(l){}if(!this.xhr)return this.emit("finish",0,"no xhr support"),void this._cleanup();e=a.addQuery(e,"t="+ +new Date),this.unloadRef=s.unloadAdd(function(){o._cleanup(!0)});try{this.xhr.open(t,e,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){o.emit("finish",0,""),o._cleanup(!1)})}catch(c){return this.emit("finish",0,""),void this._cleanup(!1)}if(i&&i.noCredentials||!r.supportsCORS||(this.xhr.withCredentials="true"),i&&i.headers)for(var f in i.headers)this.xhr.setRequestHeader(f,i.headers[f]);this.xhr.onreadystatechange=function(){if(o.xhr){var t,e,n=o.xhr;switch(n.readyState){case 3:try{e=n.status,t=n.responseText}catch(r){}1223===e&&(e=204),200===e&&t&&t.length>0&&o.emit("chunk",e,t);break;case 4:1223===(e=n.status)&&(e=204),(12005===e||12029===e)&&(e=0),o.emit("finish",e,n.responseText),o._cleanup(!1)}}};try{o.xhr.send(n)}catch(c){o.emit("finish",0,""),o._cleanup(!1)}},r.prototype._cleanup=function(t){if(this.xhr){if(this.removeAllListeners(),s.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),t)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},r.prototype.close=function(){this._cleanup(!0)},r.enabled=!!u;var l=["Active"].concat("Object").join("X");!r.enabled&&l in n&&(u=function(){try{return new n[l]("Microsoft.XMLHTTP")}catch(t){return null}},r.enabled=!!new u);var c=!1;try{c="withCredentials"in new u}catch(f){}r.supportsCORS=c,e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/event":46,"../../utils/url":52,debug:void 0,events:3,inherits:54}],18:[function(t,e){(function(t){e.exports=t.EventSource}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(t,e){(function(t){e.exports=t.WebSocket||t.MozWebSocket}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(t,e){"use strict";function n(t){if(!n.enabled())throw new Error("Transport created when disabled");i.call(this,t,"/eventsource",o,s)}var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./receiver/eventsource"),s=t("./sender/xhr-cors"),a=t("eventsource");r(n,i),n.enabled=function(){return!!a},n.transportName="eventsource",n.roundTrips=2,e.exports=n},{"./lib/ajax-based":24,"./receiver/eventsource":29,"./sender/xhr-cors":35,eventsource:18,inherits:54}],21:[function(t,e){"use strict";function n(t){if(!i.enabled)throw new Error("Transport created when disabled");s.call(this,t,"/htmlfile",i,o)}var r=t("inherits"),i=t("./receiver/htmlfile"),o=t("./sender/xhr-local"),s=t("./lib/ajax-based");r(n,s),n.enabled=function(t){return i.enabled&&t.sameOrigin},n.transportName="htmlfile",n.roundTrips=2,e.exports=n},{"./lib/ajax-based":24,"./receiver/htmlfile":30,"./sender/xhr-local":37,inherits:54}],22:[function(t,e){"use strict";function n(t,e,r){if(!n.enabled())throw new Error("Transport created when disabled");o.call(this);var i=this;this.origin=a.getOrigin(r),this.baseUrl=r,this.transUrl=e,this.transport=t,this.windowId=c.string(8);var s=a.addPath(r,"/iframe.html")+"#"+this.windowId;this.iframeObj=u.createIframe(s,function(t){i.emit("close",1006,"Unable to load an iframe ("+t+")"),i.close()}),this.onmessageCallback=this._message.bind(this),l.attachEvent("message",this.onmessageCallback)}var r=t("inherits"),i=t("json3"),o=t("events").EventEmitter,s=t("../version"),a=t("../utils/url"),u=t("../utils/iframe"),l=t("../utils/event"),c=t("../utils/random");r(n,o),n.prototype.close=function(){if(this.removeAllListeners(),this.iframeObj){l.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(t){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},n.prototype._message=function(t){if(a.isOriginEqual(t.origin,this.origin)){var e;try{e=i.parse(t.data)}catch(n){return}if(e.windowId===this.windowId)switch(e.type){case"s":this.iframeObj.loaded(),this.postMessage("s",i.stringify([s,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",e.data);break;case"c":var r;try{r=i.parse(e.data)}catch(n){return}this.emit("close",r[0],r[1]),this.close()}}},n.prototype.postMessage=function(t,e){this.iframeObj.post(i.stringify({windowId:this.windowId,type:t,data:e||""}),this.origin)},n.prototype.send=function(t){this.postMessage("m",t)},n.enabled=function(){return u.iframeEnabled},n.transportName="iframe",n.roundTrips=2,e.exports=n},{"../utils/event":46,"../utils/iframe":47,"../utils/random":50,"../utils/url":52,"../version":53,debug:void 0,events:3,inherits:54,json3:55}],23:[function(t,e){(function(n){"use strict";function r(t){if(!r.enabled())throw new Error("Transport created when disabled");o.call(this,t,"/jsonp",a,s)}var i=t("inherits"),o=t("./lib/sender-receiver"),s=t("./receiver/jsonp"),a=t("./sender/jsonp");i(r,o),r.enabled=function(){return!!n.document},r.transportName="jsonp-polling",r.roundTrips=1,r.needBody=!0,e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/sender-receiver":28,"./receiver/jsonp":31,"./sender/jsonp":33,inherits:54}],24:[function(t,e){"use strict";function r(t,e,r,i){s.call(this,t,e,function(t){return function(e,n,r){var i={};"string"==typeof n&&(i.headers={"Content-type":"text/plain"});var s=o.addPath(e,"/xhr_send"),a=new t("POST",s,n,i);return a.once("finish",function(t){return a=null,200!==t&&204!==t?r(new Error("http status "+t)):void r()}),function(){a.close(),a=null;var t=new Error("Aborted");t.code=1e3,r(t)}}}(i),r,i)}var i=t("inherits"),o=t("../../utils/url"),s=t("./sender-receiver");i(r,s),e.exports=r},{"../../utils/url":52,"./sender-receiver":28,debug:void 0,inherits:54}],25:[function(t,e){"use strict";function n(t,e){i.call(this),this.sendBuffer=[],this.sender=e,this.url=t}var r=t("inherits"),i=t("events").EventEmitter;r(n,i),n.prototype.send=function(t){this.sendBuffer.push(t),this.sendStop||this.sendSchedule()},n.prototype.sendScheduleWait=function(){var t,e=this;this.sendStop=function(){e.sendStop=null,clearTimeout(t)},t=setTimeout(function(){e.sendStop=null,e.sendSchedule()},25)},n.prototype.sendSchedule=function(){var t=this;if(this.sendBuffer.length>0){var e="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,e,function(e){t.sendStop=null,e?(t.emit("close",e.code||1006,"Sending error: "+e),t._cleanup()):t.sendScheduleWait()}),this.sendBuffer=[]}},n.prototype._cleanup=function(){this.removeAllListeners()},n.prototype.stop=function(){this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=n},{debug:void 0,events:3,inherits:54}],26:[function(t,e){(function(n){"use strict";var r=t("inherits"),i=t("../iframe"),o=t("../../utils/object");e.exports=function(t){function e(e,n){i.call(this,t.transportName,e,n)}return r(e,i),e.enabled=function(e,r){if(!n.document)return!1;var s=o.extend({},r);return s.sameOrigin=!0,t.enabled(s)&&i.enabled()},e.transportName="iframe-"+t.transportName,e.needBody=!0,e.roundTrips=i.roundTrips+t.roundTrips-1,e.facadeTransport=t,e}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/object":49,"../iframe":22,inherits:54}],27:[function(t,e){"use strict";function n(t,e,n){i.call(this),this.Receiver=t,this.receiveUrl=e,this.AjaxObject=n,this._scheduleReceiver()}var r=t("inherits"),i=t("events").EventEmitter;r(n,i),n.prototype._scheduleReceiver=function(){var t=this,e=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);e.on("message",function(e){t.emit("message",e)}),e.once("close",function(n,r){t.poll=e=null,t.pollIsClosing||("network"===r?t._scheduleReceiver():(t.emit("close",n||1006,r),t.removeAllListeners()))})},n.prototype.abort=function(){this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=n},{debug:void 0,events:3,inherits:54}],28:[function(t,e){"use strict";function n(t,e,n,r,a){var u=i.addPath(t,e),l=this;o.call(this,t,n),this.poll=new s(r,u,a),this.poll.on("message",function(t){l.emit("message",t)}),this.poll.once("close",function(t,e){l.poll=null,l.emit("close",t,e),l.close()})}var r=t("inherits"),i=t("../../utils/url"),o=t("./buffered-sender"),s=t("./polling");r(n,o),n.prototype.close=function(){this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null),this.stop()},e.exports=n},{"../../utils/url":52,"./buffered-sender":25,"./polling":27,debug:void 0,inherits:54}],29:[function(t,e){"use strict";function n(t){i.call(this);var e=this,n=this.es=new o(t);n.onmessage=function(t){e.emit("message",decodeURI(t.data))},n.onerror=function(t){var r=2!==n.readyState?"network":"permanent";e._cleanup(),e._close(r)}}var r=t("inherits"),i=t("events").EventEmitter,o=t("eventsource");r(n,i),n.prototype.abort=function(){this._cleanup(),this._close("user")},n.prototype._cleanup=function(){var t=this.es;t&&(t.onmessage=t.onerror=null,t.close(),this.es=null)},n.prototype._close=function(t){var e=this;setTimeout(function(){e.emit("close",null,t),e.removeAllListeners()},200)},e.exports=n},{debug:void 0,events:3,eventsource:18,inherits:54}],30:[function(t,e){(function(n){"use strict";function r(t){a.call(this);var e=this;o.polluteGlobalNamespace(),this.id="a"+u.string(6),t=s.addQuery(t,"c="+decodeURIComponent(o.WPrefix+"."+this.id));var i=r.htmlfileEnabled?o.createHtmlfile:o.createIframe;n[o.WPrefix][this.id]={start:function(){e.iframeObj.loaded()},message:function(t){e.emit("message",t)},stop:function(){e._cleanup(),e._close("network")}},this.iframeObj=i(t,function(){e._cleanup(),e._close("permanent")})}var i=t("inherits"),o=t("../../utils/iframe"),s=t("../../utils/url"),a=t("events").EventEmitter,u=t("../../utils/random");i(r,a),r.prototype.abort=function(){this._cleanup(),this._close("user")},r.prototype._cleanup=function(){this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete n[o.WPrefix][this.id]},r.prototype._close=function(t){this.emit("close",null,t),this.removeAllListeners()},r.htmlfileEnabled=!1;var l=["Active"].concat("Object").join("X");if(l in n)try{r.htmlfileEnabled=!!new n[l]("htmlfile")}catch(c){}r.enabled=r.htmlfileEnabled||o.iframeEnabled,e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:void 0,events:3,inherits:54}],31:[function(t,e){(function(n){"use strict";function r(t){var e=this;l.call(this),i.polluteGlobalNamespace(),this.id="a"+o.string(6);var s=a.addQuery(t,"c="+encodeURIComponent(i.WPrefix+"."+this.id));n[i.WPrefix][this.id]=this._callback.bind(this),this._createScript(s),this.timeoutId=setTimeout(function(){e._abort(new Error("JSONP script loaded abnormally (timeout)"))},r.timeout)}var i=t("../../utils/iframe"),o=t("../../utils/random"),s=t("../../utils/browser"),a=t("../../utils/url"),u=t("inherits"),l=t("events").EventEmitter;u(r,l),r.prototype.abort=function(){if(n[i.WPrefix][this.id]){var t=new Error("JSONP user aborted read");t.code=1e3,this._abort(t)}},r.timeout=35e3,r.scriptErrorTimeout=1e3,r.prototype._callback=function(t){this._cleanup(),this.aborting||(t&&this.emit("message",t),this.emit("close",null,"network"),this.removeAllListeners())},r.prototype._abort=function(t){this._cleanup(),this.aborting=!0,this.emit("close",t.code,t.message),this.removeAllListeners()},r.prototype._cleanup=function(){if(clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var t=this.script;t.parentNode.removeChild(t),t.onreadystatechange=t.onerror=t.onload=t.onclick=null,this.script=null}delete n[i.WPrefix][this.id]},r.prototype._scriptError=function(){var t=this;this.errorTimer||(this.errorTimer=setTimeout(function(){t.loadedOkay||t._abort(new Error("JSONP script loaded abnormally (onerror)"))},r.scriptErrorTimeout))},r.prototype._createScript=function(t){var e,r=this,i=this.script=n.document.createElement("script");if(i.id="a"+o.string(8),i.src=t,i.type="text/javascript",i.charset="UTF-8",i.onerror=this._scriptError.bind(this),i.onload=function(){r._abort(new Error("JSONP script loaded abnormally (onload)"))},i.onreadystatechange=function(){if(/loaded|closed/.test(i.readyState)){if(i&&i.htmlFor&&i.onclick){r.loadedOkay=!0;try{i.onclick()}catch(t){}}i&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===i.async&&n.document.attachEvent)if(s.isOpera())(e=this.script2=n.document.createElement("script")).text="try{var a = document.getElementById('"+i.id+"'); if(a)a.onerror();}catch(x){};",i.async=e.async=!1;else{try{i.htmlFor=i.id,i.event="onclick"}catch(a){}i.async=!0}void 0!==i.async&&(i.async=!0);var u=n.document.getElementsByTagName("head")[0];u.insertBefore(i,u.firstChild),e&&u.insertBefore(e,u.firstChild)},e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:void 0,events:3,inherits:54}],32:[function(t,e){"use strict";function n(t,e){i.call(this);var n=this;this.bufferPosition=0,this.xo=new e("POST",t,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(t,e){n._chunkHandler(t,e),n.xo=null;var r=200===t?"network":"permanent";n.emit("close",null,r),n._cleanup()})}var r=t("inherits"),i=t("events").EventEmitter;r(n,i),n.prototype._chunkHandler=function(t,e){if(200===t&&e)for(var n=-1;;this.bufferPosition+=n+1){var r=e.slice(this.bufferPosition);if(-1===(n=r.indexOf("\n")))break;var i=r.slice(0,n);i&&this.emit("message",i)}},n.prototype._cleanup=function(){this.removeAllListeners()},n.prototype.abort=function(){this.xo&&(this.xo.close(),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=n},{debug:void 0,events:3,inherits:54}],33:[function(t,e){(function(n){"use strict";function r(t){try{return n.document.createElement('<iframe name="'+t+'">')}catch(e){var r=n.document.createElement("iframe");return r.name=t,r}}function i(){(o=n.document.createElement("form")).style.display="none",o.style.position="absolute",o.method="POST",o.enctype="application/x-www-form-urlencoded",o.acceptCharset="UTF-8",(s=n.document.createElement("textarea")).name="d",o.appendChild(s),n.document.body.appendChild(o)}var o,s,a=t("../../utils/random"),u=t("../../utils/url");e.exports=function(t,e,n){o||i();var l="a"+a.string(8);o.target=l,o.action=u.addQuery(u.addPath(t,"/jsonp_send"),"i="+l);var c=r(l);c.id=l,c.style.display="none",o.appendChild(c);try{s.value=e}catch(f){}o.submit();var h=function(t){c.onerror&&(c.onreadystatechange=c.onerror=c.onload=null,setTimeout(function(){c.parentNode.removeChild(c),c=null},500),s.value="",n(t))};return c.onerror=function(){h()},c.onload=function(){h()},c.onreadystatechange=function(t){"complete"===c.readyState&&h()},function(){h(new Error("Aborted"))}}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/random":50,"../../utils/url":52,debug:void 0}],34:[function(t,e){(function(n){"use strict";function r(t,e,n){var r=this;i.call(this),setTimeout(function(){r._start(t,e,n)},0)}var i=t("events").EventEmitter,o=t("inherits"),s=t("../../utils/event"),a=t("../../utils/browser"),u=t("../../utils/url");o(r,i),r.prototype._start=function(t,e,r){var i=this,o=new n.XDomainRequest;e=u.addQuery(e,"t="+ +new Date),o.onerror=function(){i._error()},o.ontimeout=function(){i._error()},o.onprogress=function(){i.emit("chunk",200,o.responseText)},o.onload=function(){i.emit("finish",200,o.responseText),i._cleanup(!1)},this.xdr=o,this.unloadRef=s.unloadAdd(function(){i._cleanup(!0)});try{this.xdr.open(t,e),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(a){this._error()}},r.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},r.prototype._cleanup=function(t){if(this.xdr){if(this.removeAllListeners(),s.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,t)try{this.xdr.abort()}catch(e){}this.unloadRef=this.xdr=null}},r.prototype.close=function(){this._cleanup(!0)},r.enabled=!(!n.XDomainRequest||!a.hasDomain()),e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/browser":44,"../../utils/event":46,"../../utils/url":52,debug:void 0,events:3,inherits:54}],35:[function(t,e){"use strict";function n(t,e,n,r){i.call(this,t,e,n,r)}var r=t("inherits"),i=t("../driver/xhr");r(n,i),n.enabled=i.enabled&&i.supportsCORS,e.exports=n},{"../driver/xhr":17,inherits:54}],36:[function(t,e){"use strict";function n(){var t=this;r.call(this),this.to=setTimeout(function(){t.emit("finish",200,"{}")},n.timeout)}var r=t("events").EventEmitter,i=t("inherits");i(n,r),n.prototype.close=function(){clearTimeout(this.to)},n.timeout=2e3,e.exports=n},{events:3,inherits:54}],37:[function(t,e){"use strict";function n(t,e,n){i.call(this,t,e,n,{noCredentials:!0})}var r=t("inherits"),i=t("../driver/xhr");r(n,i),n.enabled=i.enabled,e.exports=n},{"../driver/xhr":17,inherits:54}],38:[function(t,e){"use strict";function n(t,e,o){if(!n.enabled())throw new Error("Transport created when disabled");s.call(this);var u=this,l=i.addPath(t,"/websocket");l="https"===l.slice(0,5)?"wss"+l.slice(5):"ws"+l.slice(4),this.url=l,this.ws=new a(this.url,void 0,o),this.ws.onmessage=function(t){u.emit("message",t.data)},this.unloadRef=r.unloadAdd(function(){u.ws.close()}),this.ws.onclose=function(t){u.emit("close",t.code,t.reason),u._cleanup()},this.ws.onerror=function(t){u.emit("close",1006,"WebSocket connection broken"),u._cleanup()}}var r=t("../utils/event"),i=t("../utils/url"),o=t("inherits"),s=t("events").EventEmitter,a=t("./driver/websocket");o(n,s),n.prototype.send=function(t){var e="["+t+"]";this.ws.send(e)},n.prototype.close=function(){this.ws&&this.ws.close(),this._cleanup()},n.prototype._cleanup=function(){var t=this.ws;t&&(t.onmessage=t.onclose=t.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},n.enabled=function(){return!!a},n.transportName="websocket",n.roundTrips=2,e.exports=n},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:void 0,events:3,inherits:54}],39:[function(t,e){"use strict";function n(t){if(!a.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",s,a)}var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./xdr-streaming"),s=t("./receiver/xhr"),a=t("./sender/xdr");r(n,i),n.enabled=o.enabled,n.transportName="xdr-polling",n.roundTrips=2,e.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:54}],40:[function(t,e){"use strict";function n(t){if(!s.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr_streaming",o,s)}var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./receiver/xhr"),s=t("./sender/xdr");r(n,i),n.enabled=function(t){return!t.cookie_needed&&!t.nullOrigin&&s.enabled&&t.sameScheme},n.transportName="xdr-streaming",n.roundTrips=2,e.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:54}],41:[function(t,e){"use strict";function n(t){if(!a.enabled&&!s.enabled)throw new Error("Transport created when disabled");i.call(this,t,"/xhr",o,s)}var r=t("inherits"),i=t("./lib/ajax-based"),o=t("./receiver/xhr"),s=t("./sender/xhr-cors"),a=t("./sender/xhr-local");r(n,i),n.enabled=function(t){return!t.nullOrigin&&(!(!a.enabled||!t.sameOrigin)||s.enabled)},n.transportName="xhr-polling",n.roundTrips=2,e.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:54}],42:[function(t,e){(function(n){"use strict";function r(t){if(!u.enabled&&!a.enabled)throw new Error("Transport created when disabled");o.call(this,t,"/xhr_streaming",s,a)}var i=t("inherits"),o=t("./lib/ajax-based"),s=t("./receiver/xhr"),a=t("./sender/xhr-cors"),u=t("./sender/xhr-local"),l=t("../utils/browser");i(r,o),r.enabled=function(t){return!t.nullOrigin&&!l.isOpera()&&a.enabled},r.transportName="xhr-streaming",r.roundTrips=2,r.needBody=!!n.document,e.exports=r}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:54}],43:[function(t,e){(function(t){"use strict";e.exports.randomBytes=t.crypto&&t.crypto.getRandomValues?function(e){var n=new Uint8Array(e);return t.crypto.getRandomValues(n),n}:function(t){for(var e=new Array(t),n=0;t>n;n++)e[n]=Math.floor(256*Math.random());return e}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],44:[function(t,e){(function(t){"use strict";e.exports={isOpera:function(){return t.navigator&&/opera/i.test(t.navigator.userAgent)},isKonqueror:function(){return t.navigator&&/konqueror/i.test(t.navigator.userAgent)},hasDomain:function(){if(!t.document)return!0;try{return!!t.document.domain}catch(e){return!1}}}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(t,e){"use strict";var n,r=t("json3"),i=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;e.exports={quote:function(t){var e=r.stringify(t);return i.lastIndex=0,i.test(e)?(n||(n=function(t){var e,n={},r=[];for(e=0;65536>e;e++)r.push(String.fromCharCode(e));return t.lastIndex=0,r.join("").replace(t,function(t){return n[t]="\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4),""}),t.lastIndex=0,n}(i)),e.replace(i,function(t){return n[t]})):e}}},{json3:55}],46:[function(t,e){(function(n){"use strict";var r=t("./random"),i={},o=!1,s=n.chrome&&n.chrome.app&&n.chrome.app.runtime;e.exports={attachEvent:function(t,e){void 0!==n.addEventListener?n.addEventListener(t,e,!1):n.document&&n.attachEvent&&(n.document.attachEvent("on"+t,e),n.attachEvent("on"+t,e))},detachEvent:function(t,e){void 0!==n.addEventListener?n.removeEventListener(t,e,!1):n.document&&n.detachEvent&&(n.document.detachEvent("on"+t,e),n.detachEvent("on"+t,e))},unloadAdd:function(t){if(s)return null;var e=r.string(8);return i[e]=t,o&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in i&&delete i[t]},triggerUnloadCallbacks:function(){for(var t in i)i[t](),delete i[t]}},s||e.exports.attachEvent("unload",function(){o||(o=!0,e.exports.triggerUnloadCallbacks())})}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./random":50}],47:[function(t,e){(function(n){"use strict";var r=t("./event"),i=t("json3"),o=t("./browser");e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefix in n||(n[e.exports.WPrefix]={})},postMessage:function(t,r){n.parent!==n&&n.parent.postMessage(i.stringify({windowId:e.exports.currentWindowId,type:t,data:r||""}),"*")},createIframe:function(t,e){var i,o,s=n.document.createElement("iframe"),a=function(){clearTimeout(i);try{s.onload=null}catch(t){}s.onerror=null},u=function(){s&&(a(),setTimeout(function(){s&&s.parentNode.removeChild(s),s=null},0),r.unloadDel(o))},l=function(t){s&&(u(),e(t))};return s.src=t,s.style.display="none",s.style.position="absolute",s.onerror=function(){l("onerror")},s.onload=function(){clearTimeout(i),i=setTimeout(function(){l("onload timeout")},2e3)},n.document.body.appendChild(s),i=setTimeout(function(){l("timeout")},15e3),o=r.unloadAdd(u),{post:function(t,e){try{setTimeout(function(){s&&s.contentWindow&&s.contentWindow.postMessage(t,e)},0)}catch(n){}},cleanup:u,loaded:a}},createHtmlfile:function(t,i){var o,s,a,u=["Active"].concat("Object").join("X"),l=new n[u]("htmlfile"),c=function(){clearTimeout(o),a.onerror=null},f=function(){l&&(c(),r.unloadDel(s),a.parentNode.removeChild(a),a=l=null,CollectGarbage())},h=function(t){l&&(f(),i(t))};l.open(),l.write('<html><script>document.domain="'+n.document.domain+'";<\/script></html>'),l.close(),l.parentWindow[e.exports.WPrefix]=n[e.exports.WPrefix];var p=l.createElement("div");return l.body.appendChild(p),a=l.createElement("iframe"),p.appendChild(a),a.src=t,a.onerror=function(){h("onerror")},o=setTimeout(function(){h("timeout")},15e3),s=r.unloadAdd(f),{post:function(t,e){try{setTimeout(function(){a&&a.contentWindow&&a.contentWindow.postMessage(t,e)},0)}catch(n){}},cleanup:f,loaded:c}}},e.exports.iframeEnabled=!1,n.document&&(e.exports.iframeEnabled=("function"==typeof n.postMessage||"object"==typeof n.postMessage)&&!o.isKonqueror())}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./browser":44,"./event":46,debug:void 0,json3:55}],48:[function(t,e){(function(t){"use strict";var n={};["log","debug","warn"].forEach(function(e){var r;try{r=t.console&&t.console[e]&&t.console[e].apply}catch(i){}n[e]=r?function(){return t.console[e].apply(t.console,arguments)}:"log"===e?function(){}:n.log}),e.exports=n}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],49:[function(t,e){"use strict";e.exports={isObject:function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},extend:function(t){if(!this.isObject(t))return t;for(var e,n,r=1,i=arguments.length;i>r;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}},{}],50:[function(t,e){"use strict";var n=t("crypto"),r="abcdefghijklmnopqrstuvwxyz012345";e.exports={string:function(t){for(var e=r.length,i=n.randomBytes(t),o=[],s=0;t>s;s++)o.push(r.substr(i[s]%e,1));return o.join("")},number:function(t){return Math.floor(Math.random()*t)},numberString:function(t){var e=(""+(t-1)).length,n=new Array(e+1).join("0");return(n+this.number(t)).slice(-e)}}},{crypto:43}],51:[function(t,e){"use strict";e.exports=function(t){return{filterToEnabled:function(e,n){var r={main:[],facade:[]};return e?"string"==typeof e&&(e=[e]):e=[],t.forEach(function(t){t&&("websocket"!==t.transportName||!1!==n.websocket)&&(e.length&&-1===e.indexOf(t.transportName)||t.enabled(n)&&(r.main.push(t),t.facadeTransport&&r.facade.push(t.facadeTransport)))}),r}}}},{debug:void 0}],52:[function(t,e){"use strict";var n=t("url-parse");e.exports={getOrigin:function(t){if(!t)return null;var e=new n(t);if("file:"===e.protocol)return null;var r=e.port;return r||(r="https:"===e.protocol?"443":"80"),e.protocol+"//"+e.hostname+":"+r},isOriginEqual:function(t,e){var n=this.getOrigin(t)===this.getOrigin(e);return n},isSchemeEqual:function(t,e){return t.split(":")[0]===e.split(":")[0]},addPath:function(t,e){var n=t.split("?");return n[0]+e+(n[1]?"?"+n[1]:"")},addQuery:function(t,e){return t+(-1===t.indexOf("?")?"?"+e:"&"+e)}}},{debug:void 0,"url-parse":56}],53:[function(t,e){e.exports="1.1.0"},{}],54:[function(t,e){e.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],55:[function(e,n,r){(function(e){(function(){function i(t,e){function n(t){if(n[t]!==m)return n[t];var i;if("bug-string-char-index"==t)i="a"!="a"[0];else if("json"==t)i=n("json-stringify")&&n("json-parse");else{var s,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var u=e.stringify,c="function"==typeof u&&g;if(c){(s=function(){return 1}).toJSON=s;try{c="0"===u(0)&&"0"===u(new r)&&'""'==u(new o)&&u(b)===m&&u(m)===m&&u()===m&&"1"===u(s)&&"[1]"==u([s])&&"[null]"==u([m])&&"null"==u(null)&&"[null,null,null]"==u([m,b,null])&&u({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==a&&"1"===u(null,s)&&"[\n 1,\n 2\n]"==u([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==u(new l(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==u(new l(864e13))&&'"-000001-01-01T00:00:00.000Z"'==u(new l(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==u(new l(-1))}catch(f){c=!1}}i=c}if("json-parse"==t){var h=e.parse;if("function"==typeof h)try{if(0===h("0")&&!h(!1)){var d=5==(s=h(a)).a.length&&1===s.a[0];if(d){try{d=!h('"\t"')}catch(f){}if(d)try{d=1!==h("01")}catch(f){}if(d)try{d=1!==h("1.")}catch(f){}}}}catch(f){d=!1}i=d}}return n[t]=!!i}t||(t=u.Object()),e||(e=u.Object());var r=t.Number||u.Number,o=t.String||u.String,a=t.Object||u.Object,l=t.Date||u.Date,c=t.SyntaxError||u.SyntaxError,f=t.TypeError||u.TypeError,h=t.Math||u.Math,d=t.JSON||u.JSON;"object"==typeof d&&d&&(e.stringify=d.stringify,e.parse=d.parse);var p,v,m,y=a.prototype,b=y.toString,g=new l(-0xc782b5b800cec);try{g=-109252==g.getUTCFullYear()&&0===g.getUTCMonth()&&1===g.getUTCDate()&&10==g.getUTCHours()&&37==g.getUTCMinutes()&&6==g.getUTCSeconds()&&708==g.getUTCMilliseconds()}catch(w){}if(!n("json")){var x="[object Function]",E="[object Number]",j="[object String]",T="[object Array]",O=n("bug-string-char-index");if(!g)var C=h.floor,A=[0,31,59,90,120,151,181,212,243,273,304,334],N=function(t,e){return A[e]+365*(t-1970)+C((t-1969+(e=+(e>1)))/4)-C((t-1901+e)/100)+C((t-1601+e)/400)};if((p=y.hasOwnProperty)||(p=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=b?p=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,p=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,p.call(this,t)}),v=function(t,e){var n,r,i,o=0;for(i in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)p.call(r,i)&&o++;return n=r=null,o?v=2==o?function(t,e){var n,r={},i=b.call(t)==x;for(n in t)i&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(t,n)||e(n)}:function(t,e){var n,r,i=b.call(t)==x;for(n in t)i&&"prototype"==n||!p.call(t,n)||(r="constructor"===n)||e(n);(r||p.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(t,e){var n,i,o=b.call(t)==x,a=!o&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||p;for(n in t)o&&"prototype"==n||!a.call(t,n)||e(n);for(i=r.length;n=r[--i];a.call(t,n)&&e(n));}),v(t,e)},!n("json-stringify")){var k={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},P=function(t,e){return("000000"+(e||0)).slice(-t)},R=function(t){for(var e='"',n=0,r=t.length,i=!O||r>10,o=i&&(O?t.split(""):t);r>n;n++){var s=t.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=k[s];break;default:if(32>s){e+="\\u00"+P(2,s.toString(16));break}e+=i?o[n]:t.charAt(n)}}return e+'"'},U=function(t,e,n,r,i,o,s){var a,u,l,c,h,d,y,g,w,x,O,A,k,I,L,M;try{a=e[t]}catch(q){}if("object"==typeof a&&a)if("[object Date]"!=(u=b.call(a))||p.call(a,"toJSON"))"function"==typeof a.toJSON&&(u!=E&&u!=j&&u!=T||p.call(a,"toJSON"))&&(a=a.toJSON(t));else if(a>-1/0&&1/0>a){if(N){for(h=C(a/864e5),l=C(h/365.2425)+1970-1;N(l+1,0)<=h;l++);for(c=C((h-N(l,0))/30.42);N(l,c+1)<=h;c++);h=1+h-N(l,c),y=C((d=(a%864e5+864e5)%864e5)/36e5)%24,g=C(d/6e4)%60,w=C(d/1e3)%60,x=d%1e3}else l=a.getUTCFullYear(),c=a.getUTCMonth(),h=a.getUTCDate(),y=a.getUTCHours(),g=a.getUTCMinutes(),w=a.getUTCSeconds(),x=a.getUTCMilliseconds();a=(0>=l||l>=1e4?(0>l?"-":"+")+P(6,0>l?-l:l):P(4,l))+"-"+P(2,c+1)+"-"+P(2,h)+"T"+P(2,y)+":"+P(2,g)+":"+P(2,w)+"."+P(3,x)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if("[object Boolean]"==(u=b.call(a)))return""+a;if(u==E)return a>-1/0&&1/0>a?""+a:"null";if(u==j)return R(""+a);if("object"==typeof a){for(I=s.length;I--;)if(s[I]===a)throw f();if(s.push(a),O=[],L=o,o+=i,u==T){for(k=0,I=a.length;I>k;k++)A=U(k,a,n,r,i,o,s),O.push(A===m?"null":A);M=O.length?i?"[\n"+o+O.join(",\n"+o)+"\n"+L+"]":"["+O.join(",")+"]":"[]"}else v(r||a,function(t){var e=U(t,a,n,r,i,o,s);e!==m&&O.push(R(t)+":"+(i?" ":"")+e)}),M=O.length?i?"{\n"+o+O.join(",\n"+o)+"\n"+L+"}":"{"+O.join(",")+"}":"{}";return s.pop(),M}};e.stringify=function(t,e,n){var r,i,o,a;if(s[typeof e]&&e)if((a=b.call(e))==x)i=e;else if(a==T){o={};for(var u,l=0,c=e.length;c>l;u=e[l++],((a=b.call(u))==j||a==E)&&(o[u]=1));}if(n)if((a=b.call(n))==E){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else a==j&&(r=n.length<=10?n:n.slice(0,10));return U("",((u={})[""]=t,u),i,o,r,"",[])}}if(!n("json-parse")){var M,q,D=o.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},J=function(){throw M=q=null,c()},B=function(){for(var t,e,n,r,i,o=q,s=o.length;s>M;)switch(i=o.charCodeAt(M)){case 9:case 10:case 13:case 32:M++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=O?o.charAt(M):o[M],M++,t;case 34:for(t="@",M++;s>M;)if(32>(i=o.charCodeAt(M)))J();else if(92==i)switch(i=o.charCodeAt(++M)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=W[i],M++;break;case 117:for(e=++M,n=M+4;n>M;M++)(i=o.charCodeAt(M))>=48&&57>=i||i>=97&&102>=i||i>=65&&70>=i||J();t+=D("0x"+o.slice(e,M));break;default:J()}else{if(34==i)break;for(i=o.charCodeAt(M),e=M;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++M);t+=o.slice(e,M)}if(34==o.charCodeAt(M))return M++,t;J();default:if(e=M,45==i&&(r=!0,i=o.charCodeAt(++M)),i>=48&&57>=i){for(48==i&&(i=o.charCodeAt(M+1))>=48&&57>=i&&J(),r=!1;s>M&&(i=o.charCodeAt(M))>=48&&57>=i;M++);if(46==o.charCodeAt(M)){for(n=++M;s>n&&(i=o.charCodeAt(n))>=48&&57>=i;n++);n==M&&J(),M=n}if(101==(i=o.charCodeAt(M))||69==i){for((43==(i=o.charCodeAt(++M))||45==i)&&M++,n=M;s>n&&(i=o.charCodeAt(n))>=48&&57>=i;n++);n==M&&J(),M=n}return+o.slice(e,M)}if(r&&J(),"true"==o.slice(M,M+4))return M+=4,!0;if("false"==o.slice(M,M+5))return M+=5,!1;if("null"==o.slice(M,M+4))return M+=4,null;J()}return"$"},G=function(t){var e,n;if("$"==t&&J(),"string"==typeof t){if("@"==(O?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=B());n||(n=!0))n&&(","==t?"]"==(t=B())&&J():J()),","==t&&J(),e.push(G(t));return e}if("{"==t){for(e={};"}"!=(t=B());n||(n=!0))n&&(","==t?"}"==(t=B())&&J():J()),(","==t||"string"!=typeof t||"@"!=(O?t.charAt(0):t[0])||":"!=B())&&J(),e[t.slice(1)]=G(B());return e}J()}return t},F=function(t,e,n){var r=H(t,e,n);r===m?delete t[e]:t[e]=r},H=function(t,e,n){var r,i=t[e];if("object"==typeof i&&i)if(b.call(i)==T)for(r=i.length;r--;)F(i,r,n);else v(i,function(t){F(i,t,n)});return n.call(t,e,i)};e.parse=function(t,e){var n,r;return M=0,q=""+t,n=G(B()),"$"!=B()&&J(),M=q=null,e&&b.call(e)==x?H(((r={})[""]=n,r),"",e):n}}}return e.runInContext=i,e}var s={function:!0,object:!0},a=s[typeof r]&&r&&!r.nodeType&&r,u=s[typeof window]&&window||this,l=a&&s[typeof n]&&n&&!n.nodeType&&"object"==typeof e&&e;if(!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),a)i(u,a);else{var c=u.JSON,f=u.JSON3,h=!1,d=i(u,u.JSON3={noConflict:function(){return h||(h=!0,u.JSON=c,u.JSON3=f,c=f=null),d}});u.JSON={parse:d.parse,stringify:d.stringify}}}).call(this)}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],56:[function(t,e){"use strict";function n(t,e,u){if(!(this instanceof n))return new n(t,e,u);var l,c,f,h,d=s.test(t),p=typeof e,v=this,m=0;for("object"!==p&&"string"!==p&&(u=e,e=null),u&&"function"!=typeof u&&(u=o.parse),e=i(e);m<a.length;m++)c=a[m],l=c[0],h=c[1],l!=l?v[h]=t:"string"==typeof l?~(f=t.indexOf(l))&&("number"==typeof c[2]?(v[h]=t.slice(0,f),t=t.slice(f+c[2])):(v[h]=t.slice(f),t=t.slice(0,f))):(f=l.exec(t))&&(v[h]=f[1],t=t.slice(0,t.length-f[0].length)),v[h]=v[h]||(c[3]||"port"===h&&d)&&e[h]||"",c[4]&&(v[h]=v[h].toLowerCase());u&&(v.query=u(v.query)),r(v.port,v.protocol)||(v.host=v.hostname,v.port=""),v.username=v.password="",v.auth&&(c=v.auth.split(":"),v.username=c[0]||"",v.password=c[1]||""),v.href=v.toString()}var r=t("requires-port"),i=t("./lolcation"),o=t("querystringify"),s=/^\/(?!\/)/,a=[["#","hash"],["?","query"],["//","protocol",2,1,1],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/\:(\d+)$/,"port"],[NaN,"hostname",void 0,1,1]];n.prototype.set=function(t,e,n){var i=this;return"query"===t?("string"==typeof e&&(e=(n||o.parse)(e)),i[t]=e):"port"===t?(i[t]=e,r(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="")):"hostname"===t?(i[t]=e,i.port&&(e+=":"+i.port),i.host=e):"host"===t?(i[t]=e,/\:\d+/.test(e)&&(e=e.split(":"),i.hostname=e[0],i.port=e[1])):i[t]=e,i.href=i.toString(),i},n.prototype.toString=function(t){t&&"function"==typeof t||(t=o.stringify);var e,n=this,r=n.protocol+"//";return n.username&&(r+=n.username,n.password&&(r+=":"+n.password),r+="@"),r+=n.hostname,n.port&&(r+=":"+n.port),r+=n.pathname,n.query&&(e="object"==typeof n.query?t(n.query):n.query,r+=("?"===e.charAt(0)?"":"?")+e),n.hash&&(r+=n.hash),r},n.qs=o,n.location=i,e.exports=n},{"./lolcation":57,querystringify:58,"requires-port":59}],57:[function(t,e){(function(n){"use strict";var r,i={hash:1,query:1};e.exports=function(e){e=e||n.location||{},r=r||t("./");var o,s={},a=typeof e;if("blob:"===e.protocol)s=new r(unescape(e.pathname),{});else if("string"===a)for(o in s=new r(e,{}),i)delete s[o];else if("object"===a)for(o in e)o in i||(s[o]=e[o]);return s}}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./":56}],58:[function(t,e,n){"use strict";var o=Object.prototype.hasOwnProperty;n.stringify=function(t,e){e=e||"";var n=[];for(var r in"string"!=typeof e&&(e="?"),t)o.call(t,r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n.length?e+n.join("&"):""},n.parse=function(t){for(var e,n=/([^=?&]+)=([^&]*)/g,r={};e=n.exec(t);r[decodeURIComponent(e[1])]=decodeURIComponent(e[2]));return r}},{}],59:[function(t,e){"use strict";e.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 22!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},{}]},{},[1])(1)}).call(this,__webpack_require__(7))},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;
/*!
  hey, [be]Lazy.js - v1.8.2 - 2016.10.25
  A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy)
  (c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy
*/void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){"use strict";var _source,_viewport,_isRetina,_supportClosest,_attrSrc="src",_attrSrcset="srcset";return function(options){if(!document.querySelectorAll){var s=document.createStyleSheet();document.querySelectorAll=function(r,c,i,j,a){for(a=document.all,c=[],r=r.replace(/\[for\b/gi,"[htmlFor").split(","),i=r.length;i--;){for(s.addRule(r[i],"k:v"),j=a.length;j--;)a[j].currentStyle.k&&c.push(a[j]);s.removeRule(0)}return c}}var scope=this,util=scope._util={};util.elements=[],util.destroyed=!0,scope.options=options||{},scope.options.error=scope.options.error||!1,scope.options.offset=scope.options.offset||100,scope.options.root=scope.options.root||document,scope.options.success=scope.options.success||!1,scope.options.selector=scope.options.selector||".b-lazy",scope.options.separator=scope.options.separator||"|",scope.options.containerClass=scope.options.container,scope.options.container=!!scope.options.containerClass&&document.querySelectorAll(scope.options.containerClass),scope.options.errorClass=scope.options.errorClass||"b-error",scope.options.breakpoints=scope.options.breakpoints||!1,scope.options.loadInvisible=scope.options.loadInvisible||!1,scope.options.successClass=scope.options.successClass||"b-loaded",scope.options.validateDelay=scope.options.validateDelay||25,scope.options.saveViewportOffsetDelay=scope.options.saveViewportOffsetDelay||50,scope.options.srcset=scope.options.srcset||"data-srcset",scope.options.src=_source=scope.options.src||"data-src",_supportClosest=Element.prototype.closest,_isRetina=window.devicePixelRatio>1,(_viewport={}).top=0-scope.options.offset,_viewport.left=0-scope.options.offset,scope.revalidate=function(){initialize(scope)},scope.load=function(elements,force){var opt=this.options;elements&&void 0===elements.length?loadElement(elements,force,opt):each(elements,function(element){loadElement(element,force,opt)})},scope.destroy=function(){var util=scope._util;scope.options.container&&each(scope.options.container,function(object){unbindEvent(object,"scroll",util.validateT)}),unbindEvent(window,"scroll",util.validateT),unbindEvent(window,"resize",util.validateT),unbindEvent(window,"resize",util.saveViewportOffsetT),util.count=0,util.elements.length=0,util.destroyed=!0},util.validateT=throttle(function(){validate(scope)},scope.options.validateDelay,scope),util.saveViewportOffsetT=throttle(function(){saveViewportOffset(scope.options.offset)},scope.options.saveViewportOffsetDelay,scope),saveViewportOffset(scope.options.offset),each(scope.options.breakpoints,function(object){if(object.width>=window.screen.width)return _source=object.src,!1}),setTimeout(function(){initialize(scope)})};function initialize(self){var util=self._util;util.elements=function(options){for(var array=[],nodelist=options.root.querySelectorAll(options.selector),i=nodelist.length;i--;array.unshift(nodelist[i]));return array}(self.options),util.count=util.elements.length,util.destroyed&&(util.destroyed=!1,self.options.container&&each(self.options.container,function(object){bindEvent(object,"scroll",util.validateT)}),bindEvent(window,"resize",util.saveViewportOffsetT),bindEvent(window,"resize",util.validateT),bindEvent(window,"scroll",util.validateT)),validate(self)}function validate(self){for(var util=self._util,i=0;i<util.count;i++){var element=util.elements[i];(elementInView(element,self.options)||hasClass(element,self.options.successClass))&&(self.load(element),util.elements.splice(i,1),util.count--,i--)}0===util.count&&self.destroy()}function elementInView(ele,options){var rect=ele.getBoundingClientRect();if(options.container&&_supportClosest){var elementContainer=ele.closest(options.containerClass);if(elementContainer){var containerRect=elementContainer.getBoundingClientRect();if(inView(containerRect,_viewport)){var top=containerRect.top-options.offset,right=containerRect.right+options.offset,bottom=containerRect.bottom+options.offset,left=containerRect.left-options.offset,containerRectWithOffset={top:top>_viewport.top?top:_viewport.top,right:right<_viewport.right?right:_viewport.right,bottom:bottom<_viewport.bottom?bottom:_viewport.bottom,left:left>_viewport.left?left:_viewport.left};return inView(rect,containerRectWithOffset)}return!1}}return inView(rect,_viewport)}function inView(rect,viewport){return rect.right>=viewport.left&&rect.bottom>=viewport.top&&rect.left<=viewport.right&&rect.top<=viewport.bottom}function loadElement(ele,force,options){if(!hasClass(ele,options.successClass)&&(force||options.loadInvisible||ele.offsetWidth>0&&ele.offsetHeight>0)){var dataSrc=getAttr(ele,_source)||getAttr(ele,options.src);if(dataSrc){var dataSrcSplitted=dataSrc.split(options.separator),src=dataSrcSplitted[_isRetina&&dataSrcSplitted.length>1?1:0],srcset=getAttr(ele,options.srcset),isImage=equal(ele,"img"),parent=ele.parentNode,isPicture=parent&&equal(parent,"picture");if(isImage||void 0===ele.src){var img=new Image,onErrorHandler=function(){options.error&&options.error(ele,"invalid"),addClass(ele,options.errorClass),unbindEvent(img,"error",onErrorHandler),unbindEvent(img,"load",onLoadHandler)},onLoadHandler=function(){isImage?isPicture||handleSources(ele,src,srcset):ele.style.backgroundImage='url("'+src+'")',itemLoaded(ele,options),unbindEvent(img,"load",onLoadHandler),unbindEvent(img,"error",onErrorHandler)};isPicture&&(img=ele,each(parent.getElementsByTagName("source"),function(source){handleSource(source,_attrSrcset,options.srcset)})),bindEvent(img,"error",onErrorHandler),bindEvent(img,"load",onLoadHandler),handleSources(img,src,srcset)}else ele.src=src,itemLoaded(ele,options)}else equal(ele,"video")?(each(ele.getElementsByTagName("source"),function(source){handleSource(source,_attrSrc,options.src)}),ele.load(),itemLoaded(ele,options)):(options.error&&options.error(ele,"missing"),addClass(ele,options.errorClass))}}function itemLoaded(ele,options){addClass(ele,options.successClass),options.success&&options.success(ele),removeAttr(ele,options.src),removeAttr(ele,options.srcset),each(options.breakpoints,function(object){removeAttr(ele,object.src)})}function handleSource(ele,attr,dataAttr){var dataSrc=getAttr(ele,dataAttr);dataSrc&&(setAttr(ele,attr,dataSrc),removeAttr(ele,dataAttr))}function handleSources(ele,src,srcset){srcset&&setAttr(ele,_attrSrcset,srcset),ele.src=src}function setAttr(ele,attr,value){ele.setAttribute(attr,value)}function getAttr(ele,attr){return ele.getAttribute(attr)}function removeAttr(ele,attr){ele.removeAttribute(attr)}function equal(ele,str){return ele.nodeName.toLowerCase()===str}function hasClass(ele,className){return-1!==(" "+ele.className+" ").indexOf(" "+className+" ")}function addClass(ele,className){hasClass(ele,className)||(ele.className+=" "+className)}function saveViewportOffset(offset){_viewport.bottom=(window.innerHeight||document.documentElement.clientHeight)+offset,_viewport.right=(window.innerWidth||document.documentElement.clientWidth)+offset}function bindEvent(ele,type,fn){ele.attachEvent?ele.attachEvent&&ele.attachEvent("on"+type,fn):ele.addEventListener(type,fn,{capture:!1,passive:!0})}function unbindEvent(ele,type,fn){ele.detachEvent?ele.detachEvent&&ele.detachEvent("on"+type,fn):ele.removeEventListener(type,fn,{capture:!1,passive:!0})}function each(object,fn){if(object&&fn)for(var l=object.length,i=0;i<l&&!1!==fn(object[i],i);i++);}function throttle(fn,minDelay,scope){var lastCall=0;return function(){var now=+new Date;now-lastCall<minDelay||(lastCall=now,fn.apply(scope,arguments))}}})?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__(67);var utility=__webpack_require__(0);!function(){utility.b(document,"click",function(event){var evt=event||window.event,target=evt.target||evt.srcElement;if("A"!==target.tagName){var parent=utility.k(target,"a");parent&&(target=parent)}if(("true"===target.getAttribute("data-popup")||"window"===target.getAttribute("target"))&&(utility.E(event),target.href)){var title=utility.s("title",target.href),width=utility.s("width",target.href),height=utility.s("height",target.href),top=utility.s("top",target.href),left=utility.s("left",target.href);switch(title=title||target.getAttribute("data-popup-title")||"windowName",width=width||target.getAttribute("data-popup-width")||800,height=height||target.getAttribute("data-popup-height")||600,top=top||target.getAttribute("data-popup-top")||0,left=left||target.getAttribute("data-popup-left")||0,target.getAttribute("data-popup-position")){case"center":var pos=function(w,h){var left=screen.width/2-w/2;return{top:screen.height/2-h/2,left:left}}(width,height);top=pos.top,left=pos.left}!function(url,title,options){var defaults={toolbar:"no",location:"no",directories:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",copyhistory:"no"};for(var name in options=options||{},defaults)void 0===options[name]&&(options[name]=defaults[name]);var template=[];for(var option in options)void 0!==options[option]&&""!==options[option]&&template.push(option+"="+options[option]);var popup=window.open(url,title,template);if(window.focus)try{popup.focus()}catch(e){}}(target.href,title,{width:width,height:height,top:top,left:left})}})}();var resize=function(){var screenSize,body=document.querySelector("body"),windowWidth=window.outerWidth,screenClass=["screen-small","screen-medium","screen-large"];screenSize=windowWidth>=1900?screenClass[2]:windowWidth>=1600?screenClass[1]:screenClass[0],screenClass.map(function(d){utility.H(body,d)}),utility.a(body,screenSize)};resize(),utility.b(window,"resize",function(){setTimeout(function(){resize()},50)});var version=__webpack_require__(9),reqwest=(__webpack_require__(68),__webpack_require__(70),__webpack_require__(71),__webpack_require__(2)),reqwest_default=__webpack_require__.n(reqwest),navigo=__webpack_require__(17),router_Router=function(){function Router(){this.router=new navigo,this.options={"scroll-to-top":!0,"process-url-generators":function(url,type){return url},"main-components":["main"],"router-active-link-class":!0},this.componentStack=[]}return Router.prototype.setOption=function(key,option){this.options[key]=option},Router.prototype.generateRoute=function(id,method,options){void 0===options&&(options={});var language=this.getLanguage();options.lang&&(language=options.lang);var url="/"+language+"/api/plugins/component/route/"+id+"/"+method,useBrand=this.setBrandPath(language);return useBrand&&(url=useBrand+"/plugins/component/route/"+id+"/"+method),url=this.addQueryParams(url),this.options["process-url-generators"](url,"component")},Router.prototype.generateModuleRoute=function(id,method){var url="/"+this.getLanguage()+"/api/plugins/module/route/"+id+"/"+method,useBrand=this.setBrandPath();return useBrand&&(url=useBrand+"/plugins/module/route/"+id+"/"+method),url=this.addQueryParams(url),this.options["process-url-generators"](url,"module")},Router.prototype.generateModuleListRoute=function(){var url="/"+this.getLanguage()+"/api/plugins/module",useBrand=this.setBrandPath();return useBrand&&(url=useBrand+"/plugins/module"),url=this.addQueryParams(url),this.options["process-url-generators"](url,"module-list")},Router.prototype.generateRenderRoute=function(id,path){void 0===path&&(path=window.location.pathname+window.location.search);var useBrand=this.setBrandPath(),tmpPath=path;return useBrand&&null!==id?(path=useBrand+"/component/"+id,id&&(path=utility.d(tmpPath,"component-data-widget",id))):path=utility.d(path,"component-data-widget",id),this.options["process-url-generators"](path,"render")},Router.prototype.init=function(){this.activateListener(),this.listenHistoryChanges()},Router.prototype.navigate=function(url,components,options){var _this=this;if(-1!==components.indexOf("*")&&(components=this.options["main-components"]),url=this.addQueryParams(url),options&&void 0!==options.removeParams)for(var _i=0,_a=options.removeParams;_i<_a.length;_i++){var param=_a[_i];url=utility.L(url,param)}this.componentStack=this.componentStack.concat(components),utility.x(document,Router.beforeNavigate,{components:components,url:url}),options&&void 0!==options.language&&this.setLanguage(options.language),"reload"!==this.getNavigationMode()?manager.refreshComponents(components,function(response){if(!options||void 0===options["is-request-valid"]||options["is-request-valid"](url,response)){document.title=response.querySelector("title").innerHTML;var body=response.querySelector("body"),attributes=body.dataset;for(var attribute in attributes)attributes.hasOwnProperty(attribute)&&document.body.setAttribute("data-"+attribute,attributes[attribute]);var bodyClass=document.body.className;document.body.className=bodyClass.replace(/mobile-[a-z\-_]*/,document.body.getAttribute("data-product")),_this.setRoute(body.getAttribute("data-route")),options&&void 0!==options["disable-navigate"]&&!0===options["disable-navigate"]||_this.router.navigate(url,!0,{components:components,url:url}),_this.options["scroll-to-top"]&&window.scrollTo(0,0),utility.x(document,Router.afterNavigate,{components:components,url:url}),_this.addActiveClass(document.body)}},function(error,message,response){utility.x(document,Router.navigateError,{components:components,url:url,response:response})},url):window.location.href=url},Router.prototype.on=function(event,handler){utility.C(document,event,handler)},Router.prototype.getLanguage=function(){return document.body.getAttribute("data-language")},Router.prototype.getNavigationMode=function(){return document.body.getAttribute("data-navigation-mode")},Router.prototype.route=function(){return document.body.getAttribute("data-route")},Router.prototype.getBaseUrl=function(){return document.body.getAttribute("data-base-url")},Router.prototype.getBrand=function(){return document.body.getAttribute("data-product")},Router.prototype.isApiCall=function(){return!!document.body.getAttribute("data-render-api")},Router.prototype.getAllowedBrands=function(){return["faqs"]},Router.prototype.setLanguage=function(language){document.body.setAttribute("data-language",language)},Router.prototype.setRoute=function(path){document.body.setAttribute("data-route",path)},Router.prototype.activateListener=function(){var _this=this;utility.C(document,"components.finish",function(event,target){_this.addActiveClass(document.body)}),utility.C(document,"components.reload",function(event,src,data){_this.activateMenuLink(data.stack)}),utility.C(document,"click",function(event,target){if("A"!==target.tagName&&(target=utility.k(target,"A".toLowerCase(),5)),target&&"A"===target.tagName&&target.getAttribute("data-router")){var components=[],href=target.getAttribute("href"),refresh=target.getAttribute("data-router-refresh");if(target.getAttribute("target"))return;if(0===href.indexOf("#"))return;if(!utility.z(href)){event.preventDefault();try{components=JSON.parse(refresh)}catch(error){components=[refresh]}if(href&&components&&components.length>0)try{_this.navigate(href,components)}catch(error){window.location.replace(href)}}}})},Router.prototype.listenHistoryChanges=function(){var _this=this;window.onpopstate=function(event){event.state&&void 0!==event.state.url&&_this.navigate(event.state.url,_this.options["main-components"],{"disable-navigate":!0,"is-request-valid":function(url,response){return window.location.href===utility.P(event.state.url)}})}},Router.prototype.addQueryParams=function(url){var params=utility.t(window.location.search),blockedParams=["password"];for(var key in params)""!==key&&blockedParams.indexOf(key)<0&&""!==params[key]&&(url=utility.d(url,key,params[key]));return url},Router.prototype.activateMenuLink=function(ids){if(this.options["router-active-link-class"])for(var id in ids)ids.hasOwnProperty(id)&&this.addActiveClass(manager.getComponent(ids[id]))},Router.prototype.addActiveClass=function(element){var menus=element.querySelectorAll("[data-router-active-link-class]");if(menus)for(var key in menus)if(menus.hasOwnProperty(key)){var menu=menus[key],url=utility.K(menu.getAttribute("href"));utility.H(menu,menu.getAttribute("data-router-active-link-class")),utility.T(url,"/")===utility.T(window.location.pathname,"/")&&utility.a(menu,menu.getAttribute("data-router-active-link-class"))}},Router.prototype.setBrandPath=function(lang){void 0===lang&&(lang="");var allowedBrands=this.getAllowedBrands(),isApiCall=this.isApiCall(),toAbs="",baseUrl=this.getBaseUrl(),brand=this.getBrand();if(brand=brand.split("-")[0],-1!==allowedBrands.indexOf(brand)){var language=this.getLanguage();return lang&&(language=lang),baseUrl&&isApiCall&&(toAbs=baseUrl),toAbs+"/"+language+"/"+brand+"/api"}return!1},Router.beforeNavigate="routerbeforenavigate",Router.afterNavigate="routerafternavigate",Router.navigateError="routererrornavigate",Router}(),router=new router_Router,manager=new(function(){function ComponentManager(){this.components={},this.modules={},this.events={},this.options={"module-response-handle-redirect":function(request){return!1},"module-response-handle-error":function(request){}}}return ComponentManager.prototype.setOption=function(key,option){this.options[key]=option},ComponentManager.prototype.setComponents=function(components){this.components=components},ComponentManager.prototype.setModules=function(modules){this.modules=modules},ComponentManager.prototype.init=function(){var _this=this;utility.G(function(){_this.doLoadModules(function(){_this.doInitComponentsAsync(),_this.doInitComponents()})})},ComponentManager.prototype.getComponents=function(){return this.components},ComponentManager.prototype.getComponentInstance=function(id){return this.components[id]},ComponentManager.prototype.getActiveComponents=function(){var list=[],widgets=(this.getComponents(),document.querySelectorAll("[data-component-widget-class]"));for(var key in widgets)if(widgets.hasOwnProperty(key)){var id=widgets[key].getAttribute("data-component-widget-alias");-1===list.indexOf(id)&&list.push(id)}return list},ComponentManager.prototype.getRenderedComponents=function(){var list=[],widgets=(this.getComponents(),document.querySelectorAll("[data-component-widget-class]"));for(var key in widgets)if(widgets.hasOwnProperty(key)){var element=widgets[key],id=element.getAttribute("data-component-widget-alias"),mode=element.getAttribute("data-component-widget-mode");-1===list.indexOf(id)&&"prerender"!==mode&&list.push(id)}return list},ComponentManager.prototype.getUnderenderedComponents=function(){var list=[],widgets=(this.getComponents(),document.querySelectorAll("[data-component-widget-class]"));for(var key in widgets)if(widgets.hasOwnProperty(key)){var element=widgets[key],id=element.getAttribute("data-component-widget-alias"),mode=element.getAttribute("data-component-widget-mode");-1===list.indexOf(id)&&"prerender"===mode&&list.push(id)}return list},ComponentManager.prototype.getComponent=function(id,wrapper){void 0===wrapper&&(wrapper=document);var element=wrapper.querySelector('[data-component-widget-class="'+id+'"]');return element||(element=wrapper.querySelector('[data-component-widget-alias="'+id+'"]')),element},ComponentManager.prototype.doLoadComponent=function(id){var items=this.getComponents(),element=this.getComponent(id);if(element){var attachments=this.getAttachment(element);items[id].onLoad(element,attachments)}},ComponentManager.prototype.doInitComponents=function(wrapper){void 0===wrapper&&(wrapper=document);for(var items=this.getComponents(),stack=[],_i=0,widgets_1=this.getRenderedComponents();_i<widgets_1.length;_i++){var id=widgets_1[_i],element=this.getComponent(id),attachments=this.getAttachment(element),alias=element.getAttribute("data-component-widget-class");alias in items&&(stack.push(alias),items[alias].onLoad(element,attachments))}var isPendingComponents=this.getUnderenderedComponents();this.broadcast("components.load",{stack:stack}),0===isPendingComponents.length&&this.broadcast("components.finish"),history.replaceState({components:stack,url:window.location.href},"",window.location.href)},ComponentManager.prototype.doInitComponentsAsync=function(success){for(var markup,_this=this,ids=this.getUnderenderedComponents(),reload=[],list=ids.slice(0),_loop_1=function(id){var url=router.generateRenderRoute(id);reqwest({url:url}).then(function(response){var html=_this.getDomFromString(response),body=_this.getComponent(id,html);body&&reload.push({id:id,body:body}),html&&(markup=html),_this.checkComponentState(list,id,function(){success&&success(markup);for(var stack=[],_i=0,reload_1=reload;_i<reload_1.length;_i++){var item=reload_1[_i],element=_this.getComponent(item.id);element&&(element.outerHTML=item.body.outerHTML,stack=stack.concat(_this.doLoadComponentsAsync(_this.getComponent(item.id))))}stack.length>0&&_this.broadcast("components.load",{stack:stack}),_this.broadcast("components.finish")})}).fail(function(error,message){})},_i=0,ids_1=ids;_i<ids_1.length;_i++){_loop_1(ids_1[_i])}},ComponentManager.prototype.doLoadComponentAsync=function(element){var stack=[],items=this.getComponents(),id=element.getAttribute("data-component-widget-class");if(id&&id in items){var attachments=this.getAttachment(element);items[id].onLoad(element,attachments),stack.push(id)}return stack},ComponentManager.prototype.doLoadComponentsAsync=function(wrapper){void 0===wrapper&&(wrapper=document);for(var stack=this.doLoadComponentAsync(wrapper),items=this.getComponents(),widgets=wrapper.querySelectorAll("[data-component-widget-class]"),i=0;i<widgets.length;++i){var id=widgets[i].getAttribute("data-component-widget-class");if(id in items){var attachments=this.getAttachment(widgets[i]);stack.push(id),items[id].onLoad(widgets[i],attachments)}}return stack},ComponentManager.prototype.doReloadComponent=function(element){var stack=[],items=this.getComponents(),id=element.getAttribute("data-component-widget-class");if(id&&id in items){var attachments=this.getAttachment(element);items[id].onReload(element,attachments),stack.push(id)}return stack},ComponentManager.prototype.doReloadComponents=function(wrapper){void 0===wrapper&&(wrapper=document);for(var stack=this.doReloadComponent(wrapper),items=this.getComponents(),widgets=wrapper.querySelectorAll("[data-component-widget-class]"),i=0;i<widgets.length;++i){var id=widgets[i].getAttribute("data-component-widget-class");if(id in items){var attachments=this.getAttachment(widgets[i]);stack.push(id),items[id].onReload(widgets[i],attachments)}}return stack},ComponentManager.prototype.refreshComponents=function(ids,success,fail,path){var _this=this;if("reload"!==router.getNavigationMode()){var markup;-1!==ids.indexOf("*")&&(ids=this.getActiveComponents());for(var reload=[],list=ids.slice(0),_loop_2=function(id){var url=void 0;url=path?router.generateRenderRoute(id,path):router.generateRenderRoute(id);var responseObj=reqwest({url:url,withCredentials:!0}).then(function(response){var html=_this.getDomFromString(response),body=_this.getComponent(id,html);if(body&&reload.push({id:id,body:body}),html&&(markup=html),0===reload.length&&fail)return fail(500,"Invalid response",responseObj);_this.checkComponentState(list,id,function(){success&&success(markup);for(var stack=[],_i=0,reload_2=reload;_i<reload_2.length;_i++){var item=reload_2[_i],element=_this.getComponent(item.id);element&&(element.outerHTML=item.body.outerHTML,stack=stack.concat(_this.doReloadComponents(_this.getComponent(item.id))))}stack.length>0&&_this.broadcast("components.reload",{stack:stack,response:responseObj})})}).fail(function(error,message){fail&&fail(error,message,responseObj)})},_i=0,ids_2=ids;_i<ids_2.length;_i++){_loop_2(ids_2[_i])}}else window.location.reload()},ComponentManager.prototype.refreshComponent=function(id,success,fail,path){var _this=this;reqwest({url:router.generateRenderRoute(id,path)}).then(function(response){var html=_this.getDomFromString(response),element=_this.getComponent(id),body=_this.getComponent(id,html);body&&(element.outerHTML=body.outerHTML,_this.doReloadComponents(_this.getComponent(id)),success&&success(html))}).fail(function(error,message){fail&&fail(error,message)})},ComponentManager.prototype.getModules=function(){return this.modules},ComponentManager.prototype.getModuleInstance=function(id){return this.modules[id]},ComponentManager.prototype.getResponseUrl=function(request,response){var origin=window.location.origin,requestUrl=-1!==request.url.indexOf(origin)?request.url:origin+request.url;return request.request.responseURL?request.request.responseURL:requestUrl},ComponentManager.prototype.doLoadModules=function(success){var _this=this,handleRedirect=this.options["module-response-handle-redirect"],handleError=this.options["module-response-handle-error"],request=reqwest({url:router.generateModuleListRoute(),crossOrigin:!0,withCredentials:!0}).then(function(response){if(utility.P(request.url)===_this.getResponseUrl(request,response)||handleRedirect(request.request))if(response.modules){var items=_this.getModules();for(var key in response.modules)if(response.modules.hasOwnProperty(key)){var module=response.modules[key];key in items&&items[key].onLoad(module.component_module_attachments)}success&&success()}else handleError(request.request)}).fail(function(error,message){handleError(error)})},ComponentManager.prototype.subscribe=function(event,handler){var handle=utility.C(document,event,handler);utility.x(document,"components.subscribe",{event:event}),this.events[event]||(this.events[event]=[]),this.events[event].push(handle)},ComponentManager.prototype.unsubscribe=function(event){if(void 0!==this.events[event])for(var _i=0,_a=this.events[event];_i<_a.length;_i++){var handler=_a[_i];utility.J(document,event,handler)}},ComponentManager.prototype.broadcast=function(event,data){utility.x(document,"components.broadcast",{event:event,data:data}),utility.x(document,event,data)},ComponentManager.prototype.getAttribute=function(key){return document.body.getAttribute("data-"+key)},ComponentManager.prototype.setAPIAttributes=function(){var path=window.location.pathname;this.setLanguage(path),this.setRoute(path),this.setAttribFromCookie("base-url"),this.setAttribFromCookie("product"),this.setQueryParamToCookie(),this.setSEO()},ComponentManager.prototype.setLanguage=function(path){var lang=path.split("/")[1],mapping=this.options["language-mapping"];Object.keys(mapping).forEach(function(key){key==lang&&(lang=mapping[key])}),document.body.setAttribute("data-language",lang)},ComponentManager.prototype.setRoute=function(path){var route=this.options["default-attributes"][0],product=this.options["default-attributes"][1],keyword=this.options["default-attributes"][2],keywords=this.options["product-keywords"],override=this.options["product-override"];override?(route="/"+override,product=override,keyword=override):path.split("/")[2]&&(-1!==keywords.indexOf(path.split("/")[2])&&(keyword=path.split("/")[2],product=keywords[0]),route+=path.replace(/^\/[\w\d]+\//,"").replace(/\/$/,"")),document.body.setAttribute("data-route",route),document.body.setAttribute("data-site-product",product),document.body.setAttribute("data-site-keyword",keyword)},ComponentManager.prototype.setAttribFromCookie=function(attribute){if(utility.q(attribute)){var data=utility.q(attribute);document.body.setAttribute("data-"+attribute,data)}},ComponentManager.prototype.setQueryParamToCookie=function(){var domain="."+window.location.hostname.split(".").slice(-2).join(".");if(window.location.search){var params=encodeURIComponent(window.location.search.substr(1));utility.O("query-param",params,null,"/",domain)}},ComponentManager.prototype.setSEO=function(){if(document.querySelector("[data-widget-id='seo']")){for(var widget=document.querySelector("[data-widget-id='seo']");widget.firstChild;)document.head.appendChild(widget.firstChild);widget.remove()}},ComponentManager.prototype.checkComponentState=function(list,current,fn){var index=list.indexOf(current);index>-1&&list.splice(index,1),0===list.length&&fn()},ComponentManager.prototype.getAttachment=function(element){var attachments={},scripts=element.getAttribute("data-component-widget-attachments");return scripts&&(attachments=JSON.parse(scripts)),attachments},ComponentManager.prototype.getDomFromString=function(body){var element=document.createElement("html");return element.innerHTML=body,element},ComponentManager}()),modal_modal=new(function(){function Modal(){}return Modal.prototype.listen=function(selector){var _this=this;utility.C(document.body,"click",function(event,src){utility.v(src,selector.replace(".",""))&&(_this.open(src.getAttribute("href")),event.preventDefault())})},Modal.prototype.open=function(selector,height){void 0===height&&(height=500);var element=document.querySelector(selector);if(utility.x(document,"modal.open"),utility.a(element,"modal-active"),document.body.style.overflow="hidden",!element.querySelector(".modal-overlay")){var overlay=document.createElement("div");overlay.className="modal-overlay",element.insertBefore(overlay,element.firstChild),utility.v(element,"modal-active")&&(document.body.style.overflow="hidden")}this.listenOnClose(selector,element)},Modal.prototype.close=function(selector){var element=document.querySelector(selector);utility.v(element,"modal-active")&&(utility.H(element,"modal-active"),utility.x(document,"modal.close",element),document.body.style.overflow="inherit")},Modal.prototype.listenOnClose=function(selector,element){var _this=this;utility.C(element,"click",function(event,src){(utility.v(src,"modal-overlay")||utility.v(src,"modal-close"))&&(_this.close(selector),event.preventDefault(),manager.broadcast("modal.closed",{element:element,selector:selector}))})},Modal}()),accessdenied_handlebars=__webpack_require__(18),script_AccessDeniedComponent=function(){function AccessDeniedComponent(){}return AccessDeniedComponent.prototype.onLoad=function(element,attachments){this.element=element,this.getAccessDenied()},AccessDeniedComponent.prototype.onReload=function(element,attachments){this.element=element,this.getAccessDenied()},AccessDeniedComponent.prototype.getAccessDenied=function(){var _this=this,product=manager.getAttribute("product"),productUrl=utility.d(router.generateRoute("access_denied","accessDenied"),"product",product);reqwest({url:productUrl,type:"json"}).then(function(response){_this.accessDeniedData=response,_this.generateAccessDeniedMarkup(_this.accessDeniedData)})},AccessDeniedComponent.prototype.generateAccessDeniedMarkup=function(data){var accessDenied=this.element.querySelector("#page-not-found"),template=accessdenied_handlebars({data:data});accessDenied.innerHTML=template},AccessDeniedComponent}(),maintenance_handlebars=__webpack_require__(19),script_MaintenanceComponent=function(){function MaintenanceComponent(){}return MaintenanceComponent.prototype.onLoad=function(element,attachments){this.element=element,this.getMaintenance()},MaintenanceComponent.prototype.onReload=function(element,attachments){this.element=element,this.getMaintenance()},MaintenanceComponent.prototype.getMaintenance=function(){var _this=this,product=manager.getAttribute("product"),productUrl=utility.d(router.generateRoute("maintenance","maintenance"),"product",product);reqwest({url:productUrl,type:"json"}).then(function(response){_this.maintenanceData=response,_this.generateMaintenanceMarkup(_this.maintenanceData),_this.highlightMenu()})},MaintenanceComponent.prototype.generateMaintenanceMarkup=function(data){var maintenance=this.element.querySelector("#maintenance"),template=maintenance_handlebars({data:data});maintenance.innerHTML=template},MaintenanceComponent.prototype.highlightMenu=function(){var product=manager.getAttribute("product");product=product.replace("mobile-","product-"),manager.broadcast("menu.highlight",{menu:product})},MaintenanceComponent}();var flex_menu=function(selector,more){var menuContainer=document.querySelector(".navbar .container > .pull-left"),secondaryMenuWidth=document.querySelector(selector).clientWidth,containerWidth=(document.querySelector(".footer .grid")||document.querySelector(".footer .row")).clientWidth;menuContainer.style.width=containerWidth-secondaryMenuWidth-56+"px"},checkbox_styler_CheckboxStyler=function(){function CheckboxStyler(el,className){void 0===className&&(className="checkbox-styler"),this.el=el,this.className=className}return CheckboxStyler.prototype.init=function(){this.generateMarkup(),this.bindEvent(),this.checker()},CheckboxStyler.prototype.checker=function(){this.el.checked?(utility.a(this.el.parentNode,"checked"),utility.H(this.el.parentNode,"unchecked")):(utility.a(this.el.parentNode,"unchecked"),utility.H(this.el.parentNode,"checked"))},CheckboxStyler.prototype.generateMarkup=function(){if(!utility.v(this.el,"wrapped")){var wrapper=document.createElement("span"),hand=document.createElement("span");utility.a(wrapper,this.className),utility.a(this.el,"wrapped"),wrapper.appendChild(hand),this.el.parentNode.insertBefore(wrapper,this.el),wrapper.appendChild(this.el)}},CheckboxStyler.prototype.bindEvent=function(){var _this=this;utility.b(this.el,"click",function(e){_this.checker()})},CheckboxStyler}(),login_modal_loginModal=new(function(){function LoginModal(){this.selector="#loginFormLightBox"}return LoginModal.prototype.open=function(){if(this.element=document.querySelector(this.selector),utility.x(document,"modal.open"),utility.a(this.element,"modal-active"),this.showLoginForm(),!this.element.querySelector(".modal-overlay")){var overlay=document.createElement("div");overlay.className="modal-overlay",this.element.insertBefore(overlay,this.element.firstChild)}this.listenOnClose(this.element)},LoginModal.prototype.close=function(){utility.v(this.element,"modal-active")&&(utility.H(this.element,"modal-active"),utility.H(this.form,"modal-active"),utility.x(document,"modal.close",this.element),document.body.style.overflow="inherit",this.closeLoginForm())},LoginModal.prototype.showLoginForm=function(){this.resetFields(),this.form=document.querySelector("#loginForm .login-form");var loginFormModal=document.getElementById("loginFormLightBox");this.lightboxBlurb=this.form.querySelector(".login-form-lightbox-blurb"),this.addRememberUsername(),utility.H(this.lightboxBlurb,"hidden"),utility.H(this.form,"login-form"),utility.a(this.form,"login-form-lightbox"),loginFormModal.querySelector(".modal-body").appendChild(this.form),utility.a(this.form,"modal-active"),this.setUsernameFromStorage()},LoginModal.prototype.closeLoginForm=function(){this.resetFields(),this.resetErrors();var hr=this.form.querySelector("hr"),buttons=this.form.querySelectorAll(".btn"),remember=this.form.querySelector(".login-remember-username");utility.a(this.lightboxBlurb,"hidden"),utility.a(hr,"hidden"),utility.a(remember,"hidden"),utility.m(buttons,function(el,i){utility.a(el,"btn-small"),utility.H(el,"btn-block")}),utility.H(this.form,"login-form-lightbox"),utility.a(this.form,"login-form");var container=document.getElementById("loginForm");container&&container.appendChild(this.form)},LoginModal.prototype.addRememberUsername=function(){var rememberUsername=document.querySelector(".login-remember-username");utility.H(rememberUsername,"hidden");var rememberCheckbox=document.querySelector(".login-remember-username input");rememberCheckbox&&new checkbox_styler_CheckboxStyler(rememberCheckbox).init()},LoginModal.prototype.listenOnClose=function(element){var _this=this;utility.C(this.element,"click",function(event,src){(utility.v(src,"modal-overlay")||utility.v(src,"modal-close"))&&(_this.close(),event.preventDefault())}),utility.b(document.body,"keydown",function(event){27===(event=event||window.event).keyCode&&(_this.close(),event.preventDefault())})},LoginModal.prototype.resetFields=function(){var form=document.querySelector(".login-form");if(form){var username=form.querySelector("input[type=text]"),password=form.querySelector("input[type=password]");username&&(username.value=""),password&&(password.value="")}},LoginModal.prototype.resetErrors=function(){var form=document.querySelector(".login-form"),error=form?form.querySelector(".login-error"):null,errorCapslock=form?form.querySelector(".capslock-notification"):null;error&&error.remove(),errorCapslock&&errorCapslock.remove()},LoginModal.prototype.setUsernameFromStorage=function(){var rememberUsername=this.element.querySelector(".login-remember-username .input"),username=this.element.querySelector('[name="username"]'),remember=this.element.querySelector('[name="remember"]');(utility.q("remember-username")&&username&&remember&&(username.value=utility.q("remember-username"),remember.checked=!0),rememberUsername)&&new checkbox_styler_CheckboxStyler(rememberUsername).init()},LoginModal}()),priority_nav=__webpack_require__(20),priority_nav_default=__webpack_require__.n(priority_nav),dcoin_balance_tooltip_handlebars=__webpack_require__(21),dcoin_balance_tooltip_handlebars_default=__webpack_require__.n(dcoin_balance_tooltip_handlebars);function DafacoinMenu(options){this.options=null,this.elements=null,this.dafacoinMenuStatus="closed",this.balanceToggleStatus="loading",this.walletToggleStatus={},this.walletChanges={};const _default={selectors:{header:"header",balanceMenuBtn:".balance-menu-btn",balanceMenuDiv:"#balance-menu-div",balanceArrowHead:".cashier-arrowhead",balanceRefreshIcon:".balance-refresh-icon",balanceMobileContainer:".total-balance-container",balanceMenuOverlay:"#dafacoin-overlay",saveButton:"#balance-save-btn",closeButton:"#balance-close-btn",popupYesButton:"#popup-yes-btn",popupNoButton:"#popup-no-btn",popupOverlay:"#dafacoin-warning-overlay",warningPopup:"#dafacoin-warning",balanceMenuShade:"#balance-menu-shade",savedCloseButton:"#dafacoin-saved-close-btn",cashierMenu:".cashier-menu",cashierBalance:"#cashier-balance",cashierMenuLoader:".cashier-menu-loader",cashierBalanceAnchorMobile:".cashier-anchor-mobile",cashierBalanceAnchorDesktop:".cashier-anchor-desktop",cashierBalanceAccountAmount:".cashier-account-balance-amount",cashierBalanceAccountCurrency:".cashier-account-balance-currency",cashierBalanceAccountFormatted:".cashier-account-balance-formatted",toggleCheckbox:".token_toggle input.checkbox",toggleAllAnchor:".cashier-menu-toggle-all-container .btn-holder",savedOverlay:"#dafacoin-saved-overlay",setPrioritySuccessPopupMessage:".dafacoin-priority-set-success",setPriorityFailurePopupMessage:".dafacoin-priority-set-failure"},attachments:{},anchors:{anchorBalanceMenuX:!0,anchorBalanceMenuY:!0},balanceUrl:"/ajax/detailed-total-balance",balancePriorityUrl:"/ajax/set-wallet-priority",product:"",language:"en"};"undefined"!=typeof app&&(_default.attachments=app.settings.dafacoin_menu),this.options=Object.assign({},_default,"object"!=typeof options?{}:options)}DafacoinMenu.prototype.init=function(){this.element=document.querySelector(this.options.selectors.header),this.element.querySelector(this.options.selectors.balanceMenuDiv)&&(this.anchorBalanceMenu(),this.bindEvents(),this.refreshBalance())},DafacoinMenu.prototype.bindEvents=function(){const self=this,balanceMenuBtn=this.element.querySelector(this.options.selectors.balanceMenuBtn),balanceMenuDiv=this.element.querySelector(this.options.selectors.balanceMenuDiv),balanceRefreshIcon=this.element.querySelector(this.options.selectors.balanceRefreshIcon),saveButton=this.element.querySelector(this.options.selectors.saveButton),closeButton=this.element.querySelector(this.options.selectors.closeButton),popupYesButton=this.element.querySelector(this.options.selectors.popupYesButton),popupNoButton=this.element.querySelector(this.options.selectors.popupNoButton),balanceMenuOverlay=this.element.querySelector(this.options.selectors.balanceMenuOverlay),popupOverlay=this.element.querySelector(this.options.selectors.popupOverlay),savedCloseButton=this.element.querySelector(this.options.selectors.savedCloseButton),toggleAllButton=this.element.querySelector(this.options.selectors.toggleAllAnchor);window.addEventListener("resize",function(){self.anchorBalanceMenu()},!0),this.applyToAllElements(this.options.selectors.balanceMenuBtn,function(element){element.addEventListener("click",function(event){event.stopPropagation(),self.toggleDafacoinMenu()})}),saveButton&&saveButton.addEventListener("click",function(){self.toggleButtonLoader(saveButton),self.setWalletPriorities().then(function(response){self.openSavedPopup(response&&"ok"===response.status)}).finally(function(){self.toggleButtonLoader(saveButton,!1),self.closeDafacoinPopup(),self.closeDafacoinMenu()})}),closeButton&&closeButton.addEventListener("click",function(event){self.haveWalletsChanged()?self.openDafacoinPopup():self.closeDafacoinMenu()}),balanceMenuDiv&&balanceMenuDiv.addEventListener("click",function(event){event.stopPropagation()}),popupOverlay&&popupOverlay.addEventListener("click",function(event){event.stopPropagation()}),popupYesButton&&popupYesButton.addEventListener("click",function(event){event.stopPropagation(),self.closeDafacoinPopup(),self.closeDafacoinMenu(),self.resetWalletCheckboxes(),self.updateSaveButton(!1)}),popupNoButton&&popupNoButton.addEventListener("click",function(event){event.stopPropagation(),self.closeDafacoinPopup()}),balanceMenuOverlay&&balanceMenuOverlay.addEventListener("click",function(event){event.stopPropagation(),self.closeDafacoinMenu()}),document.addEventListener("click",function(event){if("closed"===self.dafacoinMenuStatus)return;const target=(event=event||window.event).target||event.srcElement;!balanceMenuDiv.contains(target)&&!balanceMenuBtn.contains(target)&&(event.stopPropagation(),self.closeDafacoinMenu())}),savedCloseButton&&savedCloseButton.addEventListener("click",function(){self.closeSavedPopup()}),balanceRefreshIcon&&balanceRefreshIcon.addEventListener("click",function(){self.toggleBalance("loading"),clearTimeout(self.timer),self.timer=setTimeout(function(){self.refreshBalance()},1500)}),toggleAllButton&&toggleAllButton.addEventListener("click",function(evt){var individualToggles=self.element.querySelectorAll(".token_toggle"),dcStatus=Array.from(evt.target.classList).includes("active");Array.from(individualToggles).filter(function(toggle){return toggle.querySelector("input.checkbox").checked===dcStatus}).map(function(toggle){self.toggleWallet(toggle)})})},DafacoinMenu.prototype.applyToAllElements=function(selector,callback){document.querySelectorAll(selector).forEach(function(elem){callback(elem)})},DafacoinMenu.prototype.updateSaveButton=function(changesExist){const saveButton=this.element.querySelector("#balance-save-btn");saveButton.disabled=!changesExist},DafacoinMenu.prototype.toggleDafacoinMenu=function(){"closed"===this.dafacoinMenuStatus?this.openDafacoinMenu():this.closeDafacoinMenu()},DafacoinMenu.prototype.toggleButtonLoader=function(element,setLoading=!0,disable=!0){const loaderImage=this.element.querySelector(this.options.selectors.cashierMenuLoader+" > img");if(loaderImage){var wasSetLoading=element.hasAttribute("data-is-loading-label");!0===setLoading&&!1===wasSetLoading&&(element.setAttribute("data-is-loading-label",element.innerHTML),element.innerHTML='<img src="'+loaderImage.getAttribute("src")+'" style="height: 1em;" />',disable&&(element.setAttribute("data-is-loading-disabled",element.getAttribute("disabled")),element.disabled=!0)),!1===setLoading&&!0===wasSetLoading&&(element.innerHTML=element.getAttribute("data-is-loading-label"),element.removeAttribute("data-is-loading-label"),element.hasAttribute("data-is-loading-disabled")&&(element.disabled=element.getAttribute("data-is-loading-disabled"),element.removeAttribute("data-is-loading-disabled")))}},DafacoinMenu.prototype.closeDafacoinMenu=function(){const balanceMenuDiv=this.element.querySelector(this.options.selectors.balanceMenuDiv);utility.a(balanceMenuDiv,"hidden"),this.applyToAllElements(this.options.selectors.balanceArrowHead,function(element){element.innerHTML="&#8964;",utility.H(element,"up-arrowhead"),utility.a(element,"down-arrowhead")});const dafacoinOverlay=this.element.querySelector(this.options.selectors.balanceMenuOverlay);utility.a(dafacoinOverlay,"hidden"),this.dafacoinMenuStatus="closed"},DafacoinMenu.prototype.openDafacoinMenu=function(){const balanceMenuDiv=this.element.querySelector(this.options.selectors.balanceMenuDiv);utility.H(balanceMenuDiv,"hidden"),this.applyToAllElements(this.options.selectors.balanceArrowHead,function(element){element.innerHTML="&#8963;",utility.H(element,"down-arrowhead"),utility.a(element,"up-arrowhead")});const dafacoinOverlay=this.element.querySelector(this.options.selectors.balanceMenuOverlay);utility.H(dafacoinOverlay,"hidden"),this.dafacoinMenuStatus="open"},DafacoinMenu.prototype.closeDafacoinPopup=function(){const dafacoinWarning=this.element.querySelector(this.options.selectors.warningPopup),dafacoinWarningOverlay=this.element.querySelector(this.options.selectors.popupOverlay),balanceMenuShade=this.element.querySelector(this.options.selectors.balanceMenuShade);utility.a(dafacoinWarning,"hidden"),utility.a(dafacoinWarningOverlay,"hidden"),utility.H(balanceMenuShade,"div-shade")},DafacoinMenu.prototype.openDafacoinPopup=function(){const dafacoinOverlay=this.element.querySelector(this.options.selectors.warningPopup),dafacoinWarningOverlay=this.element.querySelector(this.options.selectors.popupOverlay),balanceMenuShade=this.element.querySelector(this.options.selectors.balanceMenuShade);utility.H(dafacoinOverlay,"hidden"),utility.H(dafacoinWarningOverlay,"hidden"),utility.a(balanceMenuShade,"div-shade")},DafacoinMenu.prototype.openSavedPopup=function(success){success=void 0===success||success;const dafacoinSavedPopup=this.element.querySelector(this.options.selectors.savedOverlay);utility.H(dafacoinSavedPopup,"hidden");var showClass=success?this.options.selectors.setPrioritySuccessPopupMessage:this.options.selectors.setPriorityFailurePopupMessage;dafacoinSavedPopup.querySelector(showClass).classList.remove("hidden"),setTimeout(this.closeSavedPopup.bind(this),1e3*this.options.attachments.notificationPopupDisplayTime)},DafacoinMenu.prototype.closeSavedPopup=function(){const dafacoinSavedPopup=this.element.querySelector(this.options.selectors.savedOverlay);utility.a(dafacoinSavedPopup,"hidden"),this.applyToAllElements(".dafacoin-saved-text > *",function(element){element.classList.add("hidden")})},DafacoinMenu.prototype.anchorBalanceMenu=function(){const dcoinmenu=document.querySelector(this.options.selectors.cashierBalance);var selector=this.options.selectors.cashierBalanceAnchorDesktop,offset=8;"mobile"!==this.getUserDevice()||this.isHidden(document.querySelector(this.options.selectors.cashierBalanceAnchorMobile))||(selector=this.options.selectors.cashierBalanceAnchorMobile),"mobile"===this.getUserDevice()&&this.isHidden(document.querySelector(this.options.selectors.cashierBalanceAnchorMobile))&&(offset=36);const anchor=document.querySelector(selector);if(null===anchor)return;const coord=anchor.getBoundingClientRect(),scrollbarWidth=window.innerWidth-document.documentElement.clientWidth;this.options.anchors.anchorBalanceMenuX&&(dcoinmenu.style.right=Math.round(window.innerWidth-coord.x-offset-(scrollbarWidth>0?scrollbarWidth:0))+"px"),this.options.anchors.anchorBalanceMenuY&&(dcoinmenu.style.top=Math.round(coord.y+10)+"px")},DafacoinMenu.prototype.isHidden=function(el){return el&&null===el.offsetParent},DafacoinMenu.prototype.getUserDevice=function(){return window.innerWidth<=1024?"mobile":"desktop"},DafacoinMenu.prototype.compileApiUrl=function(destination){var url="";return url+=this.options.language?"/"+this.options.language:"/en",url+=this.options.product?"/"+this.options.product:"",url+=destination},DafacoinMenu.prototype.setWalletPriorities=function(){var self=this,fullUrl=self.compileApiUrl(self.options.balancePriorityUrl);const shouldToggleAllWallets=this.shouldToggleAllWallets();return fetch(fullUrl,{method:"POST",body:JSON.stringify({priorities:self.walletChanges,toggleAll:shouldToggleAllWallets}),headers:{"Content-type":"application/json; charset=UTF-8"}}).then(function(response){return response.json()}).then(function(response){return self.resetWalletCheckboxes(),response}).catch(function(error){console.warn(error)}).finally(function(){self.refreshBalance()})},DafacoinMenu.prototype.refreshBalance=function(){var self=this;this.innerBalance=document.querySelector("#inner-total-balance"),this.innerBalanceRows=document.querySelector(".cashier-menu-wallet-rows");const enablePerWalletToggles=this.options.attachments.enablePerWalletToggles;var excludedWallets=this.options.attachments.balanceExclusion?this.options.attachments.balanceExclusion.map(function(walletId){return["ignore[]",walletId]}):[];this.toggleBalance("loading");var urlParams=new URLSearchParams(excludedWallets),fullUrl=self.compileApiUrl(this.options.balanceUrl);fullUrl+=Array.from(urlParams).length>0?"?"+urlParams.toString():"",fetch(fullUrl).then(function(response){return response.json()}).then(function(response){if(void 0===response.total)return Promise.reject(response);var replacements={"{total}":response.total,"{currency}":response.currency},formattedBalance=response.format;Object.entries(replacements).forEach(function(element){formattedBalance=formattedBalance.replace(element[0],element[1])}),self.applyToAllElements(self.options.selectors.cashierBalanceAccountAmount,function(element){element.innerHTML=response.total}),self.applyToAllElements(self.options.selectors.cashierBalanceAccountCurrency,function(element){element.innerHTML=response.currency}),self.applyToAllElements(self.options.selectors.cashierBalanceAccountFormatted,function(element){element.innerHTML=formattedBalance}),self.innerBalance.innerHTML=response.total;var filteredBreakDown=response.breakdown.filter(function(el){return!["block","uc","ignore"].includes(el.visibility)}).map(function(el){return null!==el.total&&""!==el.total.trim()||(el.total="N/A"),null!==el.totalToken&&""!==el.totalToken.trim()||(el.totalToken="N/A"),self.walletToggleStatus[el.wallet]=el.tokenFlag,el}),tokenLabel=response.tokenLabel;self.innerBalanceRows.innerHTML=dcoin_balance_tooltip_handlebars_default()({currency:response.rawCurrency,breakdown:filteredBreakDown,tokenLabel:tokenLabel,fetchErrors:self.options.attachments.fetchErrors,labels:{dc:self.options.attachments.labels.walletRowsHeaderDC,switch:self.options.attachments.labels.walletRowsHeaderSwitch}});var allBtns=self.innerBalanceRows.querySelectorAll(".token_toggle");enablePerWalletToggles&&allBtns.forEach(function(btn){btn.addEventListener("click",function(evt){self.toggleWallet(evt.target)}),btn.style.cursor="pointer"}),self.setToggleAllBtn()}).catch(function(error){console.warn(error)}).finally(function(){self.toggleBalance("display")})},DafacoinMenu.prototype.shouldToggleAllWallets=function(){var checkboxes=this.element.querySelectorAll(this.options.selectors.toggleCheckbox),numberOfFiatToggles=Array.from(checkboxes).filter(function(checkbox){return!0!==checkbox.checked}).length;return 0===numberOfFiatToggles||numberOfFiatToggles===checkboxes.length},DafacoinMenu.prototype.toggleWallet=function(switchElement){this.tokenToggle(switchElement),this.updateSaveButton(this.haveWalletsChanged()),this.setToggleAllBtn()},DafacoinMenu.prototype.toggleBalance=function(status){status=void 0===status?{}:status,("loading"===this.balanceToggleStatus&&null===status||"display"===status)&&(this.applyToAllElements(this.options.selectors.cashierMenu,function(element){utility.H(element,"hidden")}),this.applyToAllElements(this.options.selectors.cashierMenuLoader,function(element){utility.a(element,"hidden")}),this.balanceToggleStatus="display"),("display"===this.balanceToggleStatus&&null===status||"loading"===status)&&(this.applyToAllElements(this.options.selectors.cashierMenu,function(element){utility.a(element,"hidden")}),this.applyToAllElements(this.options.selectors.cashierMenuLoader,function(element){utility.H(element,"hidden")}),this.balanceToggleStatus="loading"),this.anchorBalanceMenu()},DafacoinMenu.prototype.formatBalance=function(balance){return balance.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},DafacoinMenu.prototype.tokenToggle=function(btn){var fiatLabel=btn.querySelector(".fiat"),dcLabel=btn.querySelector(".dafacoin"),checkbox=btn.querySelector("input.checkbox");fiatLabel.classList.toggle("active"),dcLabel.classList.toggle("active");var dcActive=dcLabel.classList.contains("active");if(checkbox.checked=dcActive,this.walletToggleStatus[checkbox.dataset.walletId]===dcActive)delete this.walletChanges[checkbox.dataset.walletId];else{var currentAddition={};currentAddition[checkbox.dataset.walletId]=dcActive,Object.assign(this.walletChanges,currentAddition)}},DafacoinMenu.prototype.haveWalletsChanged=function(){return Object.keys(this.walletChanges).length>0},DafacoinMenu.prototype.setToggleAllBtn=function(){var checkboxes=this.element.querySelectorAll(this.options.selectors.toggleCheckbox);const toggleAllButton=this.element.querySelector(this.options.selectors.toggleAllAnchor);Array.from(checkboxes).filter(function(checkbox){return!0!==checkbox.checked}).length>0?toggleAllButton.classList.remove("active"):toggleAllButton.classList.add("active")},DafacoinMenu.prototype.resetWalletCheckboxes=function(){var self=this,changes=self.walletChanges;Object.entries(changes).forEach(function(change){var toggleButton=document.querySelector('input[data-wallet-id="'+change[0]+'"]').parentElement;self.toggleWallet(toggleButton)}),self.walletChanges={},self.updateSaveButton(!1),self.setToggleAllBtn()};var dafacoin_menu=DafacoinMenu;function SessionStorage(){var storage={};function isSupported(){return!!sessionStorage}this.get=function(index){return isSupported()?sessionStorage.getItem(index):storage[index]?storage[index]:null},this.set=function(index,value){return isSupported()?sessionStorage.setItem(index,value):(storage[index]=value,!0)},this.remove=function(index){return isSupported()?sessionStorage.removeItem(index):!!storage[index]&&(delete storage[index],!0)}}var browser_detect=__webpack_require__(3);var balance_Balance=function(){function Balance(options){this.options={},this.ignore={};var defaults={preFetch:!1,postFetch:!1,onSuccess:!1,onFail:!1};for(var name_1 in this.ignore=[],this.options=options||{},defaults)void 0===options[name_1]&&(options[name_1]=defaults[name_1])}return Balance.prototype.addIgnore=function(balanceId){balanceId=Number(balanceId),this.ignore.push(balanceId)},Balance.prototype.removeIgnore=function(balanceId){if(balanceId=Number(balanceId),Array.prototype.indexOf)this.ignore.splice(this.ignore.indexOf(balanceId),1);else for(var i=0;i<this.ignore.length;i++)if(balanceId===this.ignore[i]){this.ignore.splice(i,1);break}},Balance.prototype.getBalance=function(){this.triggerCallback("preFetch",[]),this.fetchBalance()},Balance.prototype.fetchBalance=function(){var _this=this;reqwest_default()({url:router.generateModuleRoute("balance","balances"),type:"json",data:{nocache:(new Date).getTime(),ignore:this.ignore,site_product:manager.getAttribute("site-product")},crossOrigin:!0,withCredentials:!0}).then(function(response){_this.triggerCallback("onSuccess",[response]),function(balance){var mobileHolder=document.querySelector(".mobile-balance");if(mobileHolder){var link=mobileHolder.querySelector("a"),loader=mobileHolder.querySelector(".mobile-balance-loader");mobileHolder.querySelector(".mobile-balance-amount").innerHTML=balance,utility.H(link,"hidden"),utility.a(loader,"hidden"),setTimeout(function(){document.querySelector(".total-balance-container").innerHTML=document.querySelector("#player-balance").innerHTML},50)}}(response.total)}).fail(function(err,msg){_this.triggerCallback("onFail",[err,msg])}).always(function(response){_this.triggerCallback("postFetch",[response])})},Balance.prototype.triggerCallback=function(e,args){"function"==typeof this.options[e]&&this.options[e].apply(this,args)},Balance}(),balance_tooltip_handlebars=__webpack_require__(11),balance_tooltip_handlebars_default=__webpack_require__.n(balance_tooltip_handlebars),balance_refresh_handlebars=__webpack_require__(12),balance_refresh_handlebars_default=__webpack_require__.n(balance_refresh_handlebars),balance_togglable_BalanceToggle=function(){function BalanceToggle(element,attachments){this.storage=new SessionStorage,this.element=element,this.attachments=attachments}return BalanceToggle.prototype.init=function(){this.username=utility.q("username"),this.accountSection=this.element.querySelector(".account-section"),this.accountBalance=this.element.querySelector(".account-balance"),this.refreshControl=this.element.querySelector("#balance-control"),this.breakDownWrapper=this.element.querySelector("#balance-tooltip"),this.totalBalanceHolder=this.element.querySelector("#player-balance"),this.productBalanceHolder=this.element.querySelector("#product-balance"),this.productBalanceWrapper=this.element.querySelector("#product-balance"),this.checkbox=this.element.querySelector("#toggable-checkbox"),this.isBalanceActivated=!1,this.loaderImage=this.attachments.balanceLoader,null!==this.checkbox&&(this.activateToggle(),this.checkbox.checked&&this.activateBalance())},BalanceToggle.prototype.onPrefetch=function(){this.clearBalances(),this.refreshControl&&utility.e(this.refreshControl,this.createLoader())},BalanceToggle.prototype.onSuccess=function(response){if(this.clearBalances(),void 0===response.breakdown||void 0===response.total||null===response.total)utility.e(this.totalBalanceHolder,document.createTextNode(this.attachments.balanceError)),this.productBalanceHolder.innerHTML="";else{var totalLabel=response.label.total_balance_label;if(response.product&&response.product.length>0){for(var _i=0,_a=response.product;_i<_a.length;_i++){var product=_a[_i];if(null!==product.wallet){var span=document.createElement("span");if(product.label){var productBalance=this.attachments.balanceErrorProduct;product.total&&(productBalance=utility.M({"{total}":product.total,"{currency}":response.currency},response.format)),span.innerText=product.label+": "+productBalance}utility.e(this.productBalanceWrapper,span)}}utility.a(this.accountSection,"has-product-balance-"+response.product.length)}else utility.a(this.accountSection,"no-product-balance");var totalBalance=utility.M({"{total}":response.total,"{currency}":response.currency},response.format);totalLabel&&(totalBalance=totalLabel+": <span class='balance-amount'>"+totalBalance+"</span>"),this.totalBalanceHolder&&(this.totalBalanceHolder.innerHTML=totalBalance);var mobileBalanceHolder=document.getElementsByClassName("mobile-menu-header-amount")[0];for(var i in mobileBalanceHolder&&(mobileBalanceHolder.innerHTML=totalBalance),response.breakdown)if(null===response.breakdown[i].total){if("block"===response.breakdown[i].visibility||"uc"===response.breakdown[i].visibility){delete response.breakdown[i];continue}if("ignore"===response.breakdown[i].visibility){response.breakdown[i].total=balance_refresh_handlebars_default()({id:response.breakdown[i].wallet});continue}response.breakdown[i].total=this.attachments.balanceErrorProduct}this.breakDownWrapper&&(this.breakDownWrapper.innerHTML=balance_tooltip_handlebars_default()(response))}},BalanceToggle.prototype.onFail=function(){this.clearBalances(),utility.e(this.totalBalanceHolder,document.createTextNode(this.attachments.balanceError))},BalanceToggle.prototype.onPostfetch=function(){this.refreshControl&&utility.e(this.refreshControl,this.createRefresh())},BalanceToggle.prototype.activateBalance=function(){var _this=this;if(this.balanceClass=new balance_Balance({preFetch:function(){_this.onPrefetch()},onSuccess:function(response){_this.onSuccess(response)},onFail:function(){_this.onFail()},postFetch:function(){_this.onPostfetch()}}),this.isBalanceActivated=!0,utility.b(this.accountBalance,"click",function(event,src){var target=(event=event||window.event).target||event.srcElement;if(utility.v(target,"refresh-balance")){var product=target.getAttribute("product-id");return event.preventDefault(),_this.balanceClass.removeIgnore(product),_this.balanceClass.getBalance(),!1}}),void 0!==this.attachments.balanceExclusion&&this.attachments.balanceExclusion)for(var _i=0,_a=this.attachments.balanceExclusion;_i<_a.length;_i++){var balanceExclusion=_a[_i];this.balanceClass.addIgnore(balanceExclusion)}this.balanceClass.getBalance()},BalanceToggle.prototype.clearBalances=function(){this.refreshControl&&utility.g(this.refreshControl),this.totalBalanceHolder&&utility.g(this.totalBalanceHolder),this.breakDownWrapper&&utility.g(this.breakDownWrapper),this.productBalanceWrapper&&utility.g(this.productBalanceWrapper)},BalanceToggle.prototype.createLoader=function(){var loader=document.createElement("img");return loader.src=this.loaderImage,utility.a(loader,"refresh-loading"),loader},BalanceToggle.prototype.createRefresh=function(){var refresh=document.createElement("SPAN");return utility.a(refresh,"refresh-balance"),utility.a(refresh,"refresh-icon"),utility.a(refresh,"inline-block"),refresh.setAttribute("style","display: inline-block"),refresh},BalanceToggle.prototype.activateToggle=function(){var eventType,_this=this,accountSection=this.element.querySelector(".account-section"),balanceToggle=this.element.querySelector(".balance-checkbox"),styledCheckbox=new checkbox_styler_CheckboxStyler(this.checkbox,"balance-checkbox");this.initState(),balanceToggle||styledCheckbox.init(),this.checkbox.checked?utility.H(accountSection,"hide-balance"):utility.a(accountSection,"hide-balance"),eventType=8===Object(browser_detect.a)()?"click":"change";try{utility.b(this.checkbox,eventType,function(event,src){_this.checkbox.checked?(utility.H(_this.accountSection,"hide-balance"),utility.H(_this.refreshControl,"none"),_this.setState("true"),_this.checkbox.checked=!0,_this.isBalanceActivated||_this.activateBalance()):(utility.a(_this.accountSection,"hide-balance"),utility.a(_this.refreshControl,"none"),_this.setState("false"),_this.checkbox.checked=!1)})}catch(e){console.log(e)}},BalanceToggle.prototype.initState=function(){var state=this.getState();state&&("true"===state?this.checkbox.checked=!0:"false"===state?this.checkbox.checked=!1:(this.checkbox.checked=!0,this.setState("true"))),state||(this.checkbox.checked?this.setState("true"):this.setState("false"))},BalanceToggle.prototype.getState=function(){return this.storage.get("showBalance:"+this.username)},BalanceToggle.prototype.setState=function(value){return this.storage.set("showBalance:"+this.username,value)},BalanceToggle}(),balance_view_BalanceView=function(){function BalanceView(element,attachments){this.element=element,this.attachments=attachments}return BalanceView.prototype.init=function(){var _this=this;if(this.accountBalance=this.element.querySelector(".account-balance"),this.refreshControl=this.element.querySelector("#balance-control"),this.breakDownWrapper=this.element.querySelector("#balance-tooltip"),this.totalBalanceHolder=this.element.querySelector("#player-balance"),this.loaderImage=this.attachments.balanceLoader,this.balanceClass=new balance_Balance({preFetch:function(){_this.onPrefetch()},onSuccess:function(response){_this.onSuccess(response)},onFail:function(){_this.onFail()},postFetch:function(){_this.onPostfetch()}}),utility.b(this.accountBalance,"click",function(event,src){var target=(event=event||window.event).target||event.srcElement;if(utility.v(target,"refresh-balance")){var product=target.getAttribute("product-id");return event.preventDefault(),_this.balanceClass.removeIgnore(product),_this.balanceClass.getBalance(),!1}}),void 0!==this.attachments.balanceExclusion&&this.attachments.balanceExclusion)for(var _i=0,_a=this.attachments.balanceExclusion;_i<_a.length;_i++){var balanceExclusion=_a[_i];this.balanceClass.addIgnore(balanceExclusion)}this.balanceClass.getBalance()},BalanceView.prototype.onPrefetch=function(){this.clearBalances(),utility.e(this.refreshControl,this.createLoader())},BalanceView.prototype.onSuccess=function(response){if(this.clearBalances(),void 0===response.breakdown||void 0===response.total||null===response.total)utility.e(this.totalBalanceHolder,document.createTextNode(this.attachments.balanceError));else{var replacements={"{total}":response.total,"{currency}":response.currency},totalBalance=utility.M(replacements,response.format);utility.e(this.totalBalanceHolder,document.createTextNode(totalBalance));for(var _i=0,_a=response.breakdown;_i<_a.length;_i++){var breakdown=_a[_i];if(null===breakdown.total){if("block"===breakdown.visibility||"uc"===breakdown.visibility){breakdown=null;continue}if("ignore"===breakdown.visibility){breakdown.total=balance_refresh_handlebars_default()({id:breakdown.wallet});continue}breakdown.total=this.attachments.balanceErrorProduct}}this.breakDownWrapper&&(this.breakDownWrapper.innerHTML=balance_tooltip_handlebars_default()(response))}},BalanceView.prototype.onFail=function(){this.clearBalances();var errMsg=this.attachments.balanceError?this.attachments.balanceError:this.element.querySelector(".error-balance").value;utility.e(this.totalBalanceHolder,document.createTextNode(errMsg))},BalanceView.prototype.onPostfetch=function(){utility.e(this.refreshControl,this.createRefresh())},BalanceView.prototype.clearBalances=function(){utility.g(this.refreshControl),utility.g(this.totalBalanceHolder),this.breakDownWrapper&&utility.g(this.breakDownWrapper)},BalanceView.prototype.createLoader=function(){var loader;return this.loaderImage?(loader=document.createElement("img")).src=this.loaderImage:loader=document.createElement("span"),utility.a(loader,"refresh-loading"),loader},BalanceView.prototype.createRefresh=function(){var refresh=document.createElement("SPAN");return utility.a(refresh,"refresh-balance"),utility.a(refresh,"refresh-icon"),utility.a(refresh,"inline-block"),refresh.setAttribute("style","display: inline-block"),refresh},BalanceView}(),script_HeaderComponent=function(){function HeaderComponent(){}return HeaderComponent.prototype.onLoad=function(element,attachments){var _this=this;this.element=element,this.isLogin=attachments.authenticated,this.attachments=attachments,this.isDcoinEnabled=attachments.useDafacoinBalanceMenu,this.isNativeApp(),this.attachProduct(),this.menuOnLoad(),this.updateJoinButton(),this.refreshBalance(),this.componentFinish(),this.initDafacoinMenu(),router.on(router_Router.afterNavigate,function(event){if(_this.attachments.authenticated){var wrapper=_this.element.querySelector(".account-balance"),link=wrapper.querySelector("a"),loader=wrapper.querySelector("div");utility.a(link,"hidden"),utility.H(loader,"hidden"),_this.refreshBalance(),_this.componentFinish()}else _this.attachProduct();_this.componentFinish()}),utility.C(document,"click",function(e,$e){if(utility.v($e,"login-trigger")&&!_this.attachments.authenticated){e.preventDefault(),login_modal_loginModal.open();var joinButton=document.getElementById("loginFormLightBox").querySelector(".join-now"),lang=utility.q("mhlanguage");joinButton.setAttribute("href",window.location.origin+"/"+lang+"/join/mobile?regVia=9")}})},HeaderComponent.prototype.onReload=function(element,attachments){var _this=this;this.element=element,this.isLogin=attachments.authenticated,this.attachments=attachments,this.isDcoinEnabled=attachments.useDafacoinBalanceMenu,this.isNativeApp(),this.attachProduct(),this.refreshBalance(),this.componentFinish(),this.menuOnLoad(),this.updateJoinButton(),this.initDafacoinMenu(),utility.C(document,"click",function(e,$e){utility.v($e,"login-trigger")&&!_this.attachments.authenticated&&(e.preventDefault(),login_modal_loginModal.open())})},HeaderComponent.prototype.updateJoinButton=function(){var joinButton=document.getElementsByClassName("btn-mobile-join-now")[0];if(joinButton){var lang=utility.q("mhlanguage");joinButton.setAttribute("href",window.location.origin+"/"+lang+"/join/mobile?regVia=9")}},HeaderComponent.prototype.menuOnLoad=function(){var _this=this;new flex_menu(".main-menu.pull-right",this.attachments.more),utility.C(window,"resize",function(event){new flex_menu(".main-menu.pull-right",_this.attachments.more)});var eventIn="ontouchstart"in window?"touchend":"mouseenter",eventOut="ontouchstart"in window?"touchend":"mousemove";priority_nav_default.a.init({mainNavWrapper:".navbar nav",navDropdownLabel:this.attachments.more?this.attachments.more:"More",dropdownEventIn:eventIn,dropdownEventOut:eventOut,breakPoint:0})},HeaderComponent.prototype.setActiveMenu=function(urls){var _this=this,anchorLinks=document.querySelectorAll("#main-menu > li > a");utility.m(anchorLinks,function(anchorLink){try{_this.productName=anchorLink.href.split("/")[4].split("?")[0],_this.locationProduct=window.location.href.split("/")[4].split("?")[0]}catch(e){_this.productName=anchorLink.href.split("/")[4],_this.locationProduct=window.location.href.split("/")[4]}(urls.length>0?urls:_this.isHomepage()).indexOf(_this.productName)>-1&&!_this.activeSecondaryMenu&&(utility.a(utility.k(anchorLink,"li"),"active"),_this.productName?anchorLink.href=anchorLink.href.replace(_this.productName,_this.locationProduct):anchorLink.href=anchorLink.href+_this.locationProduct)})},HeaderComponent.prototype.isHomepage=function(){var homeKeywords=["","entry","home"];return void 0===this.locationProduct?this.locationProduct="":-1===homeKeywords.indexOf(this.locationProduct)&&(this.locationProduct=this.productName),homeKeywords},HeaderComponent.prototype.componentFinish=function(){manager.broadcast("token.parse",{element:this.element,method:"parseLink",selector:"[href*=ticket\\.token]"})},HeaderComponent.prototype.refreshBalance=function(){!1===this.isDcoinEnabled&&manager.broadcast("balance.return",{element:this.element})},HeaderComponent.prototype.attachProduct=function(){var product=manager.getAttribute("product"),loginButton=this.element.querySelector(".login-trigger");if(loginButton)if("faqs"!==product){if(this.attachments.products&&this.attachments.products.hasOwnProperty(product)){var currentProduct=this.attachments.products[product];loginButton.setAttribute("data-product-login-via",currentProduct.login_via),loginButton.setAttribute("data-product-reg-via",currentProduct.reg_via)}}else loginButton.setAttribute("data-product-login-via",""),loginButton.setAttribute("data-product-reg-via","")},HeaderComponent.prototype.formatBalance=function(balance){return balance.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},HeaderComponent.prototype.isNativeApp=function(){var url=window.location.search,isNativeApp=new URLSearchParams(url).get("x-bypass-id"),nativeApp=utility.q("x-bypass-id");1!==parseInt(isNativeApp,2)&&1!==parseInt(nativeApp,2)||(this.hideHeaderForNativeApp(),nativeApp||utility.O("x-bypass-id",1,null,"/"))},HeaderComponent.prototype.hideHeaderForNativeApp=function(){document.getElementsByTagName("header")[0].setAttribute("class","hidden")},HeaderComponent.prototype.initDafacoinMenu=function(){if(this.isLogin&&this.attachments.useDafacoinBalanceMenu){this.dafacoinMenu=new dafacoin_menu({product:"faqs",balanceUrl:"/api/plugins/component/route/balance/getdetailedbalances",balancePriorityUrl:"/api/plugins/component/route/dafacoin/setwalletpriority",language:manager.getAttribute("language"),attachments:this.attachments.dafacoin_menu}),this.dafacoinMenu.init();var headerSection=document.querySelector('[data-component-widget-alias="header"]');(utility.v(document.querySelector(".account-section"),"toggable")?new balance_togglable_BalanceToggle(headerSection,this.attachments):new balance_view_BalanceView(headerSection,this.attachments)).init()}},HeaderComponent}(),menu_Menu=function(){function Menu(element){this.element=element}return Menu.prototype.activate=function(){this.bindEvents(),this.closeEvents()},Menu.prototype.bindEvents=function(){var _this=this;manager.subscribe(utility.h(),function(src,target){var icon=_this.element.querySelector(".mobile-menu-icon");target===icon||target.parentNode===icon?_this.openMenu():utility.v(target,"mobile-menu-overlay")&&(utility.v(target,"mobile-meni-item")||src.preventDefault(),_this.closeMenu())})},Menu.prototype.closeEvents=function(){var _this=this;manager.subscribe("click",function(src,target){var icon=_this.element.querySelector(".mobile-menu-icon");target===icon||target.parentNode===icon?_this.openMenu():(utility.v(target,"close-svg")||utility.v(target,"menu-item-internal",!0)||utility.v(target,"logo-img"))&&_this.closeMenu()})},Menu.prototype.openMenu=function(){var _this=this;utility.a(this.element,"menu-open"),setTimeout(function(){utility.H(_this.element.querySelector(".close-svg"),"hidden")},100),this.createOverlay()},Menu.prototype.closeMenu=function(){utility.H(this.element,"menu-open"),utility.a(this.element.querySelector(".close-svg"),"hidden")},Menu.prototype.createOverlay=function(){if(!this.element.querySelector(".mobile-menu-overlay")){var overlay=document.createElement("div"),menu=this.element.querySelector(".mobile-menu");utility.a(overlay,"mobile-menu-overlay"),menu.parentNode.insertBefore(overlay,menu)}},Menu}(),push_notification_PushNotification=function(){function PushNotification(){}return PushNotification.prototype.handleOnLoad=function(element,attachments){this.element=element,this.count=0,attachments.authenticated?(this.listenPushnxCount(),this.listenNewMessage(),this.listenPushnxModal()):this.unbindListener()},PushNotification.prototype.listenPushnxModal=function(){var _this=this,src=this.element.querySelector(".notification-trigger");utility.C(src,"click",function(e){e.preventDefault(),manager.broadcast("pushnx.modal.open"),_this.count<=0&&_this.hideIndicator()})},PushNotification.prototype.listenPushnxCount=function(){var _this=this;manager.subscribe("pushnx.count.message",function(event){event.customData.count||manager.broadcast("pushnx.modal.close"),_this.count=event.customData.count,_this.renderMessageCounter(_this.count)})},PushNotification.prototype.renderMessageCounter=function(ctr){var notifCount=this.element.querySelector("#notification-count");notifCount&&ctr>0?(notifCount.innerHTML=ctr,utility.H(notifCount,"hidden")):(this.hideIndicator(),utility.a(notifCount,"hidden"))},PushNotification.prototype.listenNewMessage=function(){var _this=this;manager.subscribe("pushnx.new.message",function(event){event.customData.count&&_this.showIndicator()})},PushNotification.prototype.showIndicator=function(){var indicator=this.element.querySelector(".mobile-menu-indicator");utility.H(indicator,"hidden")},PushNotification.prototype.hideIndicator=function(){var announcementCount=this.element.querySelector("#announcement-count"),indicator=this.element.querySelector(".mobile-menu-indicator");this.count<=0&&announcementCount.innerHTML<=0&&utility.a(indicator,"hidden")},PushNotification.prototype.unbindListener=function(){manager.unsubscribe("pushnx.count.message"),manager.unsubscribe("pushnx.new.message")},PushNotification}();var equal_height=function(selector){this.init=function(){var elements=document.querySelectorAll(selector),maxHeight=this.getHeights(elements);utility.m(elements,function(elem){elem.style.height=maxHeight+"px"})},this.getHeights=function(elems){var maxHeight=0;return utility.m(elems,function(elem){var elemHeight=elem.offsetHeight;elemHeight>maxHeight&&(maxHeight=elemHeight)}),maxHeight}},script_MenuComponent=function(){function MenuComponent(){this.isDcoinEnabled=!1,this.pushNotification=new push_notification_PushNotification}return MenuComponent.prototype.onLoad=function(element,attachments){var _this=this;this.element=element,this.language=manager.getAttribute("language"),this.equalizeProductHeight(),this.equalizeQuicklinksHeight(),this.toggleLogoutLink(),this.isLogin=attachments.authenticated,this.products=attachments.products,this.joinUrl=attachments.join_now_url,this.activateMenu(element),this.attachProduct(),this.attachProductToLogin(),this.reloadBalance(),this.pushNotification.handleOnLoad(element,attachments),this.listenAnnouncementCount(),this.listenHighlightMenu(),this.listenToPartnerMatrixFilter(),this.isDcoinEnabled=attachments.useDafacoinBalanceMenu,manager.subscribe("session.prelogin",function(event,src,data){_this.isLogin=!0}),manager.subscribe("session.logout",function(event){_this.isLogin=!1}),this.menuReady(),router.on(router_Router.afterNavigate,function(event){_this.attachProduct(),_this.attachProductToLogin(),_this.reloadBalance(),_this.menuReady()})},MenuComponent.prototype.onReload=function(element,attachments){this.element=element,this.equalizeProductHeight(),this.equalizeQuicklinksHeight(),this.products=attachments.products,this.joinUrl=attachments.join_now_url,this.isDcoinEnabled=attachments.useDafacoinBalanceMenu,this.activateMenu(element),this.attachProduct(),this.attachProductToLogin(),this.reloadBalance(),this.pushNotification.handleOnLoad(element,attachments)},MenuComponent.prototype.menuReady=function(){manager.broadcast("token.parse",{element:this.element,method:"parseLink",selector:"[href*=ticket\\.token]"}),manager.broadcast("menu.ready")},MenuComponent.prototype.equalizeProductHeight=function(){new equal_height(".mobile-menu-item a").init()},MenuComponent.prototype.equalizeQuicklinksHeight=function(){new equal_height(".menu-display-internal .icon-thumbnail-item a").init()},MenuComponent.prototype.activateMenu=function(element){new menu_Menu(element).activate(),this.menuReady()},MenuComponent.prototype.toggleLogoutLink=function(){var _this=this;manager.subscribe("menu.logout.hide",function(event,src,data){var logoutLink=_this.element.querySelector(data.selector);logoutLink&&(logoutLink.parentNode.style.display="none")}),manager.subscribe("menu.logout.show",function(event,src,data){var logoutLink=_this.element.querySelector(data.selector);logoutLink&&(logoutLink.parentNode.style.display="block")})},MenuComponent.prototype.reloadBalance=function(){var _this=this;this.isLogin&&!1===this.isDcoinEnabled&&utility.A()&&manager.broadcast("balance.return",{success:function(response){var headerBalance=_this.element.querySelector(".mobile-menu-amount");if(headerBalance&&void 0!==response.balance){var formatedBalance=void 0;(formatedBalance=response.format)&&(formatedBalance=(formatedBalance=formatedBalance.replace("{currency}",response.currency)).replace("{total}",response.balance),headerBalance.innerHTML=formatedBalance)}}})},MenuComponent.prototype.listenAnnouncementCount=function(){var _this=this;manager.subscribe("announcement.update.count",function(event,target,data){var countElement=_this.element.querySelector("#announcement-count");if(countElement)if(countElement.innerHTML=data.count,parseInt(data.count,10)>0)utility.H(countElement,"hidden"),utility.H(_this.element.querySelector(".mobile-menu-indicator"),"hidden");else{var notifCountElement=_this.element.querySelector("#notification-count");(notifCountElement?parseInt(notifCountElement.innerHTML,10):0)<=0&&utility.a(_this.element.querySelector(".mobile-menu-indicator"),"hidden"),utility.a(countElement,"hidden")}})},MenuComponent.prototype.listenToPartnerMatrixFilter=function(){var _this=this;manager.subscribe("post.login.partner.matrix.filter",function(event,target,data){if(data.disabled_products){var products=_this.element.querySelectorAll(".menu-display-product li a");for(var productMenu in products)if(products.hasOwnProperty(productMenu)){var instanceID=products[productMenu].getAttribute("data-product-instance-id");data.disabled_products.indexOf(instanceID)>-1&&utility.a(products[productMenu],"hidden")}}if(data.disabled_links){_this.partnerMatrixHideLinks(data.disabled_links);var btnCashier=_this.element.querySelector(".btn-cashier");btnCashier&&(btnCashier.style.width="97%")}})},MenuComponent.prototype.partnerMatrixHideLinks=function(disabledLinks){for(var linkContainer in disabledLinks)if(disabledLinks.hasOwnProperty(linkContainer)){var linkContainerArr=linkContainer.split("|"),links=this.element.querySelectorAll("."+linkContainerArr[0]+" a");for(var link in links)if(links.hasOwnProperty(link)){var search=links[link].getAttribute(linkContainerArr[1]);new RegExp(disabledLinks[linkContainer].join("|")).test(search)&&utility.a(links[link],"hidden")}}},MenuComponent.prototype.listenHighlightMenu=function(){var _this=this;manager.subscribe("menu.highlight",function(event,target,data){var parentMenu,links=_this.element.querySelectorAll("a."+data.menu),category=utility.r(window.location.href),hasCategory=!1;for(var link in links)if(links.hasOwnProperty(link)){var activeClass=links[link].getAttribute("data-router-active-link-class"),menuLink=links[link].getAttribute("href"),menuCategory=utility.r(menuLink);utility.H(links[link],activeClass),category!==window.location.href&&category===menuCategory&&(utility.a(links[link],activeClass),hasCategory=!0),(menuCategory===menuLink||"#"===menuLink&&utility.v(links[link],data.menu))&&(parentMenu=links[link])}parentMenu&&!hasCategory&&utility.a(parentMenu,parentMenu.getAttribute("data-router-active-link-class"))})},MenuComponent.prototype.attachProduct=function(){var product=manager.getAttribute("product"),menus=this.element.querySelectorAll(".attach-product");if(menus)for(var key in menus)if(menus.hasOwnProperty(key)){var menu=menus[key],url=utility.K(menu.getAttribute("href"));"faqs"!==product&&(url=utility.c(url,product.replace("mobile-",""))),menu.setAttribute("href",url)}},MenuComponent.prototype.attachProductToLogin=function(){manager.getAttribute("product"),this.element.querySelector(".login-trigger");var joinButton=this.element.querySelector(".join-btn");if(joinButton){var lang=utility.q("mhlanguage");joinButton.setAttribute("href",window.location.origin+"/"+lang+"/join/mobile?regVia=9")}},MenuComponent}(),script_MetaComponent=function(){function MetaComponent(){}return MetaComponent.prototype.onLoad=function(element,attachments){this.element=element,this.listenToHeader()},MetaComponent.prototype.onReload=function(element,attachments){this.element=element,this.removeMetaElement()},MetaComponent.prototype.listenToHeader=function(){var _this=this;manager.subscribe("components.finish",function(){_this.removeMetaElement()}),router.on(router_Router.navigateError,function(event){_this.removeMetaElement()})},MetaComponent.prototype.removeMetaElement=function(){var meta=this.element.querySelector(".meta");meta&&meta.remove()},MetaComponent}(),lib=__webpack_require__(22);function SyncEvents(options){this.options=options}SyncEvents.prototype={execute:function(events,data){events=events||[];var loopback=function(index){if(index<events.length){var cast=events[index](data);(cast=Promise.resolve(cast)).then(function(){loopback(index+1)}),cast.catch(function(){loopback(index+1)})}};loopback(0)},executeWithArgs:function(events,args){events=events||[];var loopback=function(index){if(index<events.length){var cast=events[index].apply(null,args);(cast=Promise.resolve(cast)).then(function(){loopback(index+1)}),cast.catch(function(){loopback(index+1)})}};loopback(0)},executeWithArgsWithException:function(events,args){events=events||[];var loopback=function(index){if(index<events.length){var cast=events[index].apply(null,args);(cast=Promise.resolve(cast)).then(function(){loopback(index+1)}).catch(function(){})}};loopback(0)}};var sync_events=SyncEvents,runtime=__webpack_require__(1),loader_handlebars=__webpack_require__(23),loader_Loader=function(){function Loader(target,overlay,opacity){void 0===opacity&&(opacity=1),this.target=target,this.overlay=overlay,this.loader=this.target.querySelector(".loader")||this.createLoader(),this.opacity=opacity}return Loader.prototype.createLoader=function(){runtime.registerHelper("equals",function(value,compare,options){return value===compare?options.fn(this):options.inverse(this)});var loader=document.createElement("div"),container=document.createElement("div");return container.innerHTML=loader_handlebars({lang:router.getLanguage()}),utility.a(container,"loader-container"),utility.a(loader,"loader"),loader.appendChild(container),loader},Loader.prototype.show=function(){var opacity=this.opacity.toString(),overlayClass=document.querySelector(".faqs-api-component");utility.H(this.loader,"hidden"),this.loader.style.background="rgba(0, 0, 0, "+opacity+")",utility.a(overlayClass,"loader-overflow"),this.overlay&&utility.a(this.target,"loader-overlay"),this.target.appendChild(this.loader)},Loader.prototype.hide=function(){var overlayClass=document.querySelector(".faqs-api-component");this.loader&&(utility.a(this.loader,"hidden"),utility.H(overlayClass,"loader-overflow"))},Loader}();function PasswordMask(input){if(input&&utility.v(input,"password-mask-enabled")){var icon=utility.l(input,".password-mask-icon");utility.H(icon,"hidden"),utility.b(icon,"click",function(input){var icon=utility.l(input,".password-mask-icon");"password"===input.type?input.setAttribute("type","text"):input.setAttribute("type","password");utility.Q(icon,"password-unmask")}.bind(null,input))}}var login_Login=function(){function Login(){this.productCheckPreference=["mobile-casino","mobile-casino-gold"],this.products=[],this.loginEvents=[],this.productVia=!1,this.action=!1,this.loader=new loader_Loader(document.body,!0),this.sync=new sync_events,this.listenLoginEvents()}return Login.prototype.handleOnLoad=function(element,attachments){this.element=element,this.isLogin=attachments.authenticated,this.listenLogin(),this.listenLogout(),this.activateLogin(element),this.bindLoginForm(element,attachments),this.updateLoginLayout()},Login.prototype.handleOnReload=function(element,attachments){this.isLogin&&!attachments.authenticated&&manager.broadcast("session.logout"),this.isLogin=attachments.authenticated,this.element=element,this.activateLogin(element),this.bindLoginForm(element,attachments),this.updateLoginLayout()},Login.prototype.activateLogin=function(element){element.querySelector(".login-remember-username input");var username=element.querySelector('[name="username"]'),remember=element.querySelector('[name="remember"]');utility.q("remember-username")&&username&&remember&&(username.value=utility.q("remember-username"),remember.checked=!0),PasswordMask(element.querySelector(".login-field-password"))},Login.prototype.bindLoginForm=function(element,attachments){var _this=this,form=element.querySelector(".login-form");utility.C(form,"submit",function(event,src){if(src.isValid){var username=src.querySelector('[name="username"]').value,password=src.querySelector('[name="password"]').value;event.preventDefault(),modal_modal.close("#loginFormLightBox"),_this.loader.show();var events=_this.loginEvents.slice(0);events.push(function(){return new lib(function(resolve,reject){_this.doLoginRequest(form,src),resolve()})}),_this.sync.executeWithArgs(events,[username,password])}})},Login.prototype.doLoginRequest=function(form,src){var _this=this,username=src.querySelector('[name="username"]').value,password=src.querySelector('[name="password"]').value,loginButton=src.querySelector(".login-submit");loginButton.setAttribute("disabled",!0);var data={username:username,password:password};this.productVia&&(data.product=this.productVia),reqwest({url:router.generateRoute("header_login","authenticate"),type:"json",method:"post",data:data}).then(function(response){if(response&&response.success){var remember=src.querySelector('[name="remember"]');if(remember){var isChecked=remember.checked;utility.I("remember-username"),isChecked&&utility.O("remember-username",username,null,"/")}if(manager.broadcast("session.prelogin",{src:_this.srcElement,username:username,password:password,response:response}),_this.action)(0,_this.action)(_this.srcElement,username,password),manager.broadcast("session.login",{src:_this.srcElement,username:username,password:password,response:response});else manager.refreshComponents(["header","menu","main","announcement","push_notification","language","floating_banner","footer"],function(){manager.broadcast("session.login",{src:_this.srcElement,username:username,password:password,response:response}),_this.loader.hide()})}}).fail(function(error){loginButton.removeAttribute("disabled",!0),document.getElementsByClassName("login-form-lightbox")[0]&&modal_modal.open("#loginFormLightBox"),manager.broadcast("session.failed",{error:error,form:form}),_this.loader.hide()})},Login.prototype.listenLoginEvents=function(){var _this=this;manager.subscribe("session.events.push",function(event,src,data){data&&void 0!==data.event&&_this.loginEvents.push(data.event)})},Login.prototype.listenLogin=function(){var _this=this;manager.subscribe("session.login",function(event,src){_this.isLogin=!0}),manager.subscribe("click",function(event,src){if(!_this.isLogin){var element=utility.v(src,"login-trigger",!0),product=manager.getAttribute("product"),loginModal=_this.element.querySelector("#loginFormLightbox");element&&(utility.a(loginModal,product+"-modal"),event.preventDefault(),element.getAttribute("data-product-login-via")&&element.getAttribute("data-product-reg-via")?manager.broadcast("header.login",{src:element,productVia:element.getAttribute("data-product-login-via"),regVia:element.getAttribute("data-product-reg-via"),loginStyle:product}):manager.broadcast("header.login",{src:element,loginStyle:product}))}}),manager.subscribe("header.login",function(event,src,data){_this.productVia=!1,_this.srcElement=null,_this.action=!1;var form=_this.element.querySelector(".login-form"),btnJoin=_this.element.querySelector(".btn-join");form&&form.removeAttribute("data-login-via"),btnJoin&&btnJoin.setAttribute("href",btnJoin.getAttribute("data-join-url")),data&&void 0!==data.src&&(_this.srcElement=data.src),data&&void 0!==data.productVia&&(_this.productVia=data.productVia,form&&form.setAttribute("data-login-via",_this.productVia)),data&&void 0!==data.fromGameLaunch&&form&&form.setAttribute("data-from-game-launch",data.fromGameLaunch),data&&void 0!==data.regVia&&data.regVia&&btnJoin&&(btnJoin.setAttribute("href",data.regVia),btnJoin.setAttribute("data-join-url",data.regVia)),data&&void 0!==data.action&&(_this.action=data.action),_this.isLogin||modal_modal.open("#loginFormLightBox")})},Login.prototype.listenLogout=function(){var _this=this;manager.subscribe("click",function(event,src){if(_this.isLogin){var element=utility.v(src,"btn-logout",!0);element&&(event.preventDefault(),manager.broadcast("session.logout",{src:element}))}}),manager.subscribe("session.logout",function(event){_this.isLogin=!1,_this.loader.show(),reqwest({url:router.generateRoute("header_login","logout"),type:"json",method:"get"}).always(function(response){manager.refreshComponents(["header","menu","main","announcement","push_notification","language","floating_banner","footer"],function(){_this.loader.hide(),manager.broadcast("session.logout.finished")})})})},Login.prototype.updateLoginLayout=function(){var _this=this;manager.subscribe("login.update.layout.component",function(event,src,data){var loginModal=_this.element.querySelector("#login-lightbox");setTimeout(function(){utility.H(loginModal,"mobile-soda-casino-modal")},300)})},Login}(),validate=__webpack_require__(10),validation_Validation=function(){function Validation(){this.rules=[{name:"username",rules:{callback_user_required:[],callback_check_mobile_format:[],callback_min_length:["3"],callback_max_length:["15"]}},{name:"password",rules:{callback_pass_required:[],callback_min_length:["6"],callback_max_length:["15"]}}]}return Validation.prototype.handleOnLoad=function(element,attachments){this.attachments=attachments,this.bindLoginValidation(attachments),this.bindClearErrorMessage(element),this.listenSessionHasFailed()},Validation.prototype.handleOnReload=function(element,attachments){this.attachments=attachments,this.bindLoginValidation(attachments),this.bindClearErrorMessage(element)},Validation.prototype.bindLoginValidation=function(attachments){for(var _this=this,ruleset=[],_i=0,_a=this.rules;_i<_a.length;_i++){var rule=_a[_i];ruleset.push({name:rule.name,rules:Object.keys(rule.rules).join("|"),args:rule.rules})}var validator=new validate("login-form",ruleset,function(errors,event){_this.doValidate(errors,event,attachments)});validator.registerCallback("user_required",function(value,param,field){return null!==(value=value.trim())&&""!==value}),validator.registerCallback("pass_required",function(value,param,field){return null!==value&&""!==value}),validator.registerCallback("min_length",function(value,param,field){return(value=value.trim()).length>=param[0]}),validator.registerCallback("max_length",function(value,param,field){return(value=value.trim()).length<=param[0]}),validator.registerCallback("check_mobile_format",function(value,param,field){return/^.+$/i.test(value)}),validator.setMessage("user_required",attachments.error_messages.blank_username),validator.setMessage("pass_required",attachments.error_messages.blank_password),validator.setMessage("min_length",attachments.error_messages.invalid_passname),validator.setMessage("max_length",attachments.error_messages.invalid_passname),validator.setMessage("check_mobile_format",attachments.error_messages.invalid_passname)},Validation.prototype.doValidate=function(errors,event,attachments){if(errors.length>0){event.preventDefault(),event.stopPropagation();var form=utility.u(event),userFlag=!1,passFlag=!1;for(var key in errors)if(errors.hasOwnProperty(key)){var error=errors[key];"user_required"===error.rule&&(utility.a(form.querySelector('[name="username"]'),"invalid"),this.addErrorMessage(error.message),userFlag=!0),"pass_required"===error.rule&&(utility.a(form.querySelector('[name="password"]'),"invalid"),this.addErrorMessage(error.message),passFlag=!0),userFlag||(utility.a(form.querySelector('[name="password"]'),"invalid"),this.addErrorMessage(error.message)),userFlag&&passFlag&&this.addErrorMessage(attachments.error_messages.blank_passname)}}},Validation.prototype.bindClearErrorMessage=function(element){var form=element.querySelector(".login-form");utility.C(element,"click",function(event,src){utility.v(src,"login-form")&&(utility.H(form.querySelector('[name="username"]'),"invalid"),utility.H(form.querySelector('[name="password"]'),"invalid"))})},Validation.prototype.listenSessionHasFailed=function(){var _this=this;manager.subscribe("session.failed",function(event,src,data){var errorMessage={200:_this.attachments.error_messages.error_message_restricted_country,401:_this.attachments.error_messages.invalid_passname,402:_this.attachments.error_messages.account_suspended,403:_this.attachments.error_messages.account_locked,421:_this.attachments.error_messages.error_message_restricted_country,500:_this.attachments.error_messages.service_not_available};utility.a(data.form.querySelector('[name="username"]'),"invalid"),utility.a(data.form.querySelector('[name="password"]'),"invalid"),_this.addErrorMessage(errorMessage.hasOwnProperty(data.error.status)?errorMessage[data.error.status]:errorMessage[500])})},Validation.prototype.addErrorMessage=function(errorMessage){var loginErrorDivElement=document.querySelector(".login-error"),ErrorMessageElement=document.createTextNode(errorMessage);if(null===loginErrorDivElement){var targetElement=document.querySelector(".loginform-textfield-wrapper"),loginErrorElement=document.createElement("div"),capsLockNotification=targetElement.querySelector(".capslock-notification");utility.a(loginErrorElement,"login-error"),loginErrorElement.appendChild(ErrorMessageElement),capsLockNotification&&capsLockNotification.remove(),targetElement.appendChild(loginErrorElement)}else loginErrorDivElement.innerHTML="",loginErrorDivElement.appendChild(ErrorMessageElement)},Validation}(),script_LoginComponent=function(){function LoginComponent(){this.validationService=new validation_Validation,this.loginService=new login_Login}return LoginComponent.prototype.onLoad=function(element,attachments){this.validationService.handleOnLoad(element,attachments),this.loginService.handleOnLoad(element,attachments)},LoginComponent.prototype.onReload=function(element,attachments){this.validationService.handleOnReload(element,attachments),this.loginService.handleOnReload(element,attachments)},LoginComponent}(),storage=__webpack_require__(6),announcement_handlebars=__webpack_require__(24);var vendor_scrollbot=function(e,w){var _this=this;this.orgPar=document.querySelector(e),this.bodyTag=document.body,this.init=function(){this.sbw=null==w?5:w,this.scrollSpeed=200,this.parContent=this.orgPar.innerHTML,this.orgPar.innerHTML="",this.newPar=document.createElement("div"),this.sbContainer=document.createElement("div"),this.scrollBarHolder=document.createElement("div"),this.scrollBar=document.createElement("div"),this.inP=document.createElement("div"),this.newPar.className="scrollbot-outer-parent",this.scrollBarHolder.className="scrollbot-scrollbar-holder",this.scrollBar.className="scrollbot-scrollbar",this.inP.className="scrollbot-inner-parent",this.newPar.style.position="relative",this.newPar.style.paddingRight=this.sbw+"px",this.newPar.style.zIndex="9999999",this.newPar.style.height="100%",this.newPar.style.overflow="hidden",this.inPWidth=this.orgPar.clientWidth-this.sbw+"px",this.inP.style.cssText="height:100%;overflow-y:auto;overflow-x:hidden;padding-right:"+(this.sbw+20)+"px;width:100%;box-sizing:content-box;",this.inP.innerHTML=this.parContent,this.inP.style.height="100%",this.newPar.appendChild(this.inP),this.scrollBarHolder.appendChild(this.scrollBar),this.newPar.appendChild(this.scrollBarHolder),this.orgPar.appendChild(this.newPar),this.sbHeight=100*this.inP.clientHeight/this.inP.scrollHeight,this.mdown=!1,this.customHeight=!1,this.scrollElement=this.inP,this.orgPar.style.height=this.orgPar.offsetHeight+"px",this.onScroll=function(f){_this.onScrollF=f},this.sB={height:_this.sbHeight+"%"},this.inP.addEventListener?this.inP.addEventListener("scroll",function(){_this.onScrollEvent()}):this.inP.attachEvent("onscroll",function(){_this.onScrollEvent()}),this.onScrollEvent=function(){_this.scrollBar.style.top=100*_this.inP.scrollTop/_this.inP.scrollHeight+(_this.sbHeight-parseFloat(_this.sB.height))*_this.inP.scrollTop/(_this.inP.scrollHeight-_this.inP.clientHeight)+"%","onScrollF"in _this&&_this.onScrollF()},this.setScroll=function(p,d){(null==d||d<=0)&&(d=500),p>=_this.inP.scrollHeight-_this.inP.clientHeight&&(p=_this.inP.scrollHeight-_this.inP.clientHeight);var perTick=(p-_this.inP.scrollTop)/d*10;setTimeout(function(){_this.inP.scrollTop+=perTick,Math.abs(p-_this.inP.scrollTop)<5||_this.setScroll(p,d-10)},10)},this.bodyTag.addEventListener?(this.scrollBarHolder.addEventListener("mousedown",function(e){_this.scrollBarHolderMouseDown(e)}),this.scrollBar.addEventListener("mousedown",function(e){_this.scrollbarMouseDown(e)}),this.bodyTag.addEventListener("mousemove",function(e){_this.mousemove(e)})):(this.scrollBarHolder.attachEvent("onmousedown",function(e){_this.scrollBarHolderMouseDown(e)}),this.scrollBar.attachEvent("onmousedown",function(e){_this.scrollbarMouseDown(e)}),this.bodyTag.attachEvent("onmousemove",function(e){_this.mousemove(e)})),this.scrollBarHolderMouseDown=function(e){if(((e=e||window.event).target||e.srcElement)==this.scrollBarHolder){var relPos=100*(e.clientY-_this.scrollBarHolder.getBoundingClientRect().top)/_this.scrollBarHolder.clientHeight;_this.setScroll(_this.inP.scrollHeight*relPos/100,_this.scrollSpeed)}},this.scrollbarMouseDown=function(e){return _this.mdown=!0,_this.posCorrection=e.clientY-_this.scrollBar.getBoundingClientRect().top,_this.btmCorrection=100*_this.scrollBar.clientHeight/_this.newPar.clientHeight,!1},this.bodyTag.onmouseup=function(){_this.mdown=!1},this.mousemove=function(e){if(!_this.mdown)return!1;document.selection?document.selection.empty():window.getSelection().removeAllRanges(),_this.relY=e.clientY-_this.newPar.getBoundingClientRect().top,_this.pC=100*(_this.relY-_this.posCorrection)/_this.newPar.clientHeight,_this.pC>=0&&_this.pC+_this.btmCorrection<=100?(_this.scrollBar.style.top=_this.pC+"%",_this.inP.scrollTop=(parseFloat(_this.scrollBar.style.top)-(_this.sbHeight-parseFloat(_this.sB.height))*_this.inP.scrollTop/(_this.inP.scrollHeight-_this.inP.clientHeight))*_this.inP.scrollHeight/100):_this.pC<0&&parseFloat(_this.scrollBar.style.top)>0&&(_this.scrollBar.style.top="0%",_this.inP.scrollTop=0),"onScrollF"in _this&&_this.onScrollF()},this.refresh=function(){_this.sbHeight=100*_this.inP.clientHeight/_this.inP.scrollHeight,_this.sbHeight>=100?_this.scrollBarHolder.style.display="none":_this.scrollBarHolder.style.display="block",_this.sbHeight=100*this.inP.clientHeight/this.inP.scrollHeight,_this.sB.height=_this.customHeight?_this.sB.height:_this.sbHeight+"%",_this.inP.scrollHeight>_this.inP.clientHeight&&(_this.scrollBar.style.height=_this.sB.height)},this.refresh()},this.destroy=function(){_this.orgPar.innerHTML=_this.parContent,_this.orgPar.style.overflow="auto",_this.init=null},_this.init()},script_AnnouncementComponent=function(){function AnnouncementComponent(){this.refreshInterval=3e5,this.storage=new storage.a}return AnnouncementComponent.prototype.onLoad=function(element,attachments){var _this=this;this.element=element,this.attachments=attachments,this.showAnnouncementBar=!0,this.triggerAnnouncement="pageLoad",this.loadFunctions(),router.on(router_Router.afterNavigate,function(event){_this.language!==manager.getAttribute("language")?(_this.showAnnouncementBar=!0,_this.language=manager.getAttribute("language")):(_this.showAnnouncementBar=!1,_this.getAnnouncements())})},AnnouncementComponent.prototype.onReload=function(element,attachments){this.element=element,this.triggerAnnouncement="pageLoad",this.loadFunctions()},AnnouncementComponent.prototype.loadFunctions=function(){this.showAnnouncementBar=!0,this.language=manager.getAttribute("language"),this.getAnnouncements(),this.listenModalClose(),this.listenAnnouncementLightbox()},AnnouncementComponent.prototype.getAnnouncements=function(){var _this=this;reqwest({url:router.generateRoute("announcement","getAnnouncements"),type:"json"}).then(function(response){_this.generateAnnouncementMarkup(response)})},AnnouncementComponent.prototype.generateAnnouncementMarkup=function(data){var _this=this,announcement=this.element.querySelector("#announcements-container"),template=announcement_handlebars({announcementData:data});if(announcement.innerHTML=template,this.attachments.isApiCall){var images=announcement.querySelectorAll(".announcement-item img");utility.m(images,function(elem){var src=elem.getAttribute("src");elem.setAttribute("src",_this.attachments.baseUrl+src)})}this.scrollObj=null,this.modalHeightRefresh(this.element),this.activateAnnouncementBar(this.element),this.bindDismissButton(this.element),this.listenAutoRefresh(this.element),this.getUnread(this.element)},AnnouncementComponent.prototype.modalHeightRefresh=function(element){var mBody=element.querySelector(".modal-body"),container=element.querySelector(".announcement--container");container&&(container.clientHeight>500?(utility.A()||(mBody.style.height="500px"),this.scrollObj||(this.scrollObj=new vendor_scrollbot("#announcementLightbox .modal-body"))):mBody.style.height="auto",this.scrollObj&&(this.scrollObj.refresh(),this.scrollObj.setScroll(0,100)))},AnnouncementComponent.prototype.activateAnnouncementBar=function(element){var readItems=[],activeItem=element.querySelector(".announcement-list");activeItem&&(this.showAnnouncementBar=!1,readItems=this.getReadItems(),activeItem=activeItem.getAttribute("data"),readItems.length>0&&readItems.indexOf(activeItem)>-1?utility.a(element.querySelector(".mount-announcement"),"hidden"):utility.H(element.querySelector(".mount-announcement"),"hidden"),this.readAnnounceBarItem())},AnnouncementComponent.prototype.bindDismissButton=function(element){var _this=this;utility.f(element,".btn-dismiss","click",function(event,src){event.preventDefault(),_this.showAnnouncementBar=!1,_this.readAnnounceBarItem(),utility.a(_this.element.querySelector(".mount-announcement"),"hidden"),_this.getUnread(_this.element)},!0)},AnnouncementComponent.prototype.readAnnounceBarItem=function(){var activeItem=this.element.querySelector(".announcement-list");if(activeItem&&!this.showAnnouncementBar){var activeItemID=activeItem.getAttribute("data");this.setReadItems(activeItemID)}},AnnouncementComponent.prototype.listenAutoRefresh=function(element){var _this=this;null!==this.timer&&clearInterval(this.timer),this.timer=setInterval(function(){utility.v(element.querySelector("#announcementLightbox"),"modal-active")||(_this.triggerAnnouncement="modalClose",_this.loadFunctions())},this.refreshInterval)},AnnouncementComponent.prototype.listenModalClose=function(){var _this=this;manager.unsubscribe("modal.close"),manager.subscribe("modal.close",function(event,src,data){utility.v(data,"announcement")&&(_this.triggerAnnouncement="modalClose",_this.loadFunctions())})},AnnouncementComponent.prototype.readAllItems=function(){var items=this.element.querySelectorAll(".announcement-item");for(var key in items)if(items.hasOwnProperty(key)){var activeItem=items[key].getAttribute("data");this.setReadItems(activeItem)}},AnnouncementComponent.prototype.listenAnnouncementLightbox=function(){var _this=this;manager.subscribe("click",function(event,src){utility.v(src,"announcement-trigger",!0)&&(event.preventDefault(),_this.anounncementLightbox())})},AnnouncementComponent.prototype.anounncementLightbox=function(){this.readAllItems(),modal_modal.open("#announcementLightbox")},AnnouncementComponent.prototype.getUnread=function(element){for(var _this=this,counter=0,_i=0,_a=element.querySelectorAll(".announcement-item");_i<_a.length;_i++){var activeItem=_a[_i].getAttribute("data");this.getReadItems().indexOf(activeItem)<0&&counter++}setTimeout(function(){counter>0&&"pageLoad"===_this.triggerAnnouncement?_this.anounncementLightbox():manager.broadcast("announcement.update.count",{count:counter})},300)},AnnouncementComponent.prototype.getReadItems=function(){var data=[];return this.storage.get("ReadItems")&&(data=JSON.parse(this.storage.get("ReadItems"))),data},AnnouncementComponent.prototype.setReadItems=function(newItem){var prevReadItems=[];(prevReadItems=this.getReadItems()).indexOf(newItem)<0&&(prevReadItems.push(newItem),this.storage.set("ReadItems",JSON.stringify(prevReadItems)))},AnnouncementComponent}();var debug=function(enabled,notify){this.console=function(obj,title,message,type){if(enabled){var dateNow=(new Date).toLocaleTimeString();if(type=type||"log",message=message||!1,title=title||"DEBUG",console.groupCollapsed("["+dateNow+"] "+title),message&&console.log(message),obj)switch(type){case"log":console.log(obj);break;case"warn":console.warn(obj);break;case"error":console.error(obj);break;case"info":console.info(obj);break;default:console.log(obj)}console.groupEnd()}},this.notify=function(n){var $container=document.getElementById("debug-notif")||!1;if(enabled&&notify){if($container)$container.innerHTML+="<br/>"+n;else{var div=document.createElement("div");div.id="debug-notif",div.style.position="absolute",div.style.zIndex="99999",div.style.margin="0 auto",div.style.width="100%",div.style.background="brown",div.style.color="white",div.style.textAlign="center",div.style.padding="5px",div.style.opacity="0.7",div.innerHTML=n;var s=document.body.firstChild;s.parentNode.insertBefore(div,s)}$container&&utility.b($container,"click",function(){this.remove()})}else $container&&$container.remove()}},DateFormat=__webpack_require__(87);var helper=function(options){var pushnx_debug=(options||{}).debug||{};this.isExpired=function(date,msgId){if(!this.isDateInMilli(date,msgId))return pushnx_debug.console(date,"Is Expired","Message Id "+msgId+" is not yet expired."),!1;var now=new Date,utcDate=Date.UTC(now.getUTCFullYear(),now.getUTCMonth(),now.getUTCDate(),now.getUTCHours(),now.getUTCMinutes(),now.getUTCSeconds()),expiryDate=new Date(1*date.match(/\d+/)[0]).getTime();return!!(expiryDate&&utcDate>expiryDate)},this.isDateInMilli=function(pushDate,msgId){return msgId=msgId||"",pushDate?!(pushDate.indexOf("-")>-1&&(pushnx_debug.console(pushDate,"ExpiryDate Format","ExpiryDate format of Message Id "+msgId+" is based on Phase1"),1)):(pushnx_debug.console(pushDate,"ExpiryDate Format","Invalid Date Format","warn"),!1)},this.formatDateTime=function(dateString,format,offset){if(!this.isDateInMilli(dateString))return"";var date=1*dateString.match(/\d+/)[0],utc=date+6e4*new Date(date).getTimezoneOffset(),dateWithOffset=new Date(utc+36e5*offset);return DateFormat(dateWithOffset,format)+" (GMT"+offset+")"},this.configUrl=function(path,option){var url="",source="",param={},opt=option||{},token=opt.token||!1,override=this.scriptParam("pushnx");return override.url&&(opt.url=override.url),override.lang&&(opt.lang=override.lang),override.product&&(opt.product=override.product),override.token&&(token=override.token),opt.url&&(url=opt.url),opt.lang&&(param.lang=opt.lang),opt.product&&(param.product=opt.product),token&&(source+="?token="+token),{xdomain:!!url,url:url+utility.U(path,param)+source,token:token}},this.scriptParam=function(script){var p={},sel=document.querySelector("script[data-pushnx]");if(sel)for(var pa=sel.getAttribute("data-pushnx").split("?").pop().split("&"),j=0;j<pa.length;j++){var kv=pa[j].split("=");p[kv[0]]=kv[1]}return p},this.validSession=function(isLogin){var is404=utility.v(document.body,"page-404");return!(!isLogin||is404)},this.excludePage=function(validPath){var current=window.location.href;if(validPath)for(var i=0;i<validPath.length;i++)if(current.match(validPath[i]))return!0;return!1},this.setcookie=function(cname,cvalue,days){var d=new Date;d.setTime(d.getTime()+24*days*60*60*1e3);var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"}},body_handlebars=__webpack_require__(25),body_handlebars_default=__webpack_require__.n(body_handlebars),action_handlebars=__webpack_require__(26),action_handlebars_default=__webpack_require__.n(action_handlebars),message_handlebars=__webpack_require__(27),message_handlebars_default=__webpack_require__.n(message_handlebars),expiration_date_handlebars=__webpack_require__(28),expiration_date_handlebars_default=__webpack_require__.n(expiration_date_handlebars),expired_message_handlebars=__webpack_require__(29),expired_message_handlebars_default=__webpack_require__.n(expired_message_handlebars),dismiss_message_handlebars=__webpack_require__(30),dismiss_message_handlebars_default=__webpack_require__.n(dismiss_message_handlebars),title_message_handlebars=__webpack_require__(31),title_message_handlebars_default=__webpack_require__.n(title_message_handlebars);var push_notification_template=function(tpl){var template={body:tpl.template.body||!1,action:tpl.template.action||!1,message:tpl.template.message||!1,title:tpl.template.title||!1,expirationDate:tpl.template.expirationDate||!1,expiredMessage:tpl.template.expiredMessage||!1,dismissAllMessage:tpl.template.dismissAllMessage||!1,icon:tpl.icon||!1};this.bodyTemplate=function(data){return template.body?template.body(data):body_handlebars_default()(data)},this.actionTemplate=function(data){return template.action?template.action(data):action_handlebars_default()(data)},this.messageTemplate=function(data){return template.message?template.message(data):message_handlebars_default()(data)},this.titleTemplate=function(data){return template.title?template.title(data):title_message_handlebars_default()(data)},this.expirationDateTemplate=function(data){return template.expirationDate?template.expirationDate(data):expiration_date_handlebars_default()(data)},this.expiredMessageTemplate=function(data){return template.expiredMessage?template.expiredMessage(data):expired_message_handlebars_default()(data)},this.dismissAllTemplate=function(data){return template.dismissAllMessage?template.dismissAllMessage(data):dismiss_message_handlebars_default()(data)},this.iconTemplate=function(data){var prod=data.icon;if(template.icon&&template.icon[prod])return template.icon[prod](data)}};var renderer=function(option){var template=new push_notification_template(option||{});this.dismissAll=function(option){return template.dismissAllTemplate({message:option.message,yes:option.yes,no:option.no})},this.expirationDate=function(option){return option.displayExpiryDate?template.expirationDateTemplate({debugClass:option.debugClass,expirationLabel:option.label,formattedDate:option.formattedDate,Phase1Date:option.Phase1Date}):""},this.expiredMessage=function(option){return option.isexpired?template.expiredMessageTemplate({isexpired:option.isexpired,messageClass:option.messageClass,message:option.message}):option.isexpired},this.messageAction=function(option){for(var allowToAuto=["proceed"],msgActions="",objLen=option.actions.length,actionIndex=0;actionIndex<objLen;actionIndex++){var actionText=option.actions[actionIndex].Name;if(void 0!==actionText){var action_key=actionText.toLowerCase(),actClass="action",autoAcknowledge=!1;if(utility.w(action_key,allowToAuto)&&(autoAcknowledge=!0),void 0!==option.cta.buttons[action_key]&&null!==option.cta.buttons[action_key]){void 0!==option.actionClass[action_key]&&(actClass=option.actionClass[action_key]);var data={class:actClass,id:option.actionId,messageId:option.id,actionId:option.actions[actionIndex].Id,actionKey:option.cta.buttons[action_key].label,action:option.cta.buttons[action_key].action,source:option.src,acknowledge:autoAcknowledge};msgActions+=template.actionTemplate(data)}}}return msgActions},this.messageTitle=function(option){return template.titleTemplate({title:option.title})},this.pushMessage=function(option){return template.messageTemplate({messageId:option.messageId,icon:option.icon,genericIcon:option.genericIcon,title:option.title,content:option.content,expiryDate:option.expiryDate,actions:option.actions,publishDate:option.publishDate,expirationLabel:option.expirationLabel})},this.pushTemplate=function(option){return template.bodyTemplate({title:option.title,messages:option.messages||{},dismiss:option.dismiss})},this.messageIcon=function(option){return template.iconTemplate({icon:option.icon})}},closeOverlayId=[],escapeCloseId=[];function components_modal_modal(options){var defaults={selector:".modal-trigger",closeOverlayClick:!0,closeTriggerClass:".modal-close",escapeClose:!0,id:null,onClose:null,maxHeight:500};for(var name in options=options||{},defaults)void 0===options[name]&&(options[name]=defaults[name]);options.id&&!options.closeOverlayClick&&closeOverlayId.push(options.id),options.id&&!options.escapeClose&&escapeCloseId.push(options.id);var bodyTag=document.body,$this=this;function openModal(){utility.b(bodyTag,"click",function(evt){for(var target=(evt=evt||window.event).target||evt.srcElement;target&&"A"!==target.tagName;)target=target.parentNode;utility.n(options.selector,function(elem){if(target===elem){var targetId=elem.getAttribute("href").substr(1),modalWindow=document.getElementById(targetId),$modalScrollable="#"+targetId+" .modal-body",modalScrollContainer=document.querySelector($modalScrollable).children[0];modalWindow&&!utility.v(modalWindow,"modal-active")&&(utility.R(modalWindow,"modal.open"),utility.a(modalWindow,"modal-active"),bodyTag.style.overflow="hidden",utility.E(evt),utility.v(modalScrollContainer,"modal--container")&&function(modalWindow,$modalScrollable){setTimeout(function(){var scrollObj=null,mBody=modalWindow.querySelector(".modal-body"),containerHeight=mBody.querySelector(".modal--container").clientHeight;containerHeight>options.maxHeight?(mBody.style.height=options.maxHeight+"px",scrollObj||(scrollObj=new vendor_scrollbot($modalScrollable))):mBody.style.height="auto",scrollObj&&(scrollObj.refresh(),scrollObj.setScroll(0,100)),8!==Object(browser_detect.a)()&&9!==Object(browser_detect.a)()||$this.centerModalContent(modalWindow)},1)}(modalWindow,$modalScrollable))}})})}function centerModalContent(){utility.n(".modal-content",function(elem){setTimeout(function(){var modalContentHeight=elem.clientHeight;elem.style.marginTop=-modalContentHeight/2+"px"},500)})}function closeModalWindow(modalWindow,target){utility.H(modalWindow,"modal-active"),utility.R(modalWindow,"modalclose",target),bodyTag.style.overflow="inherit",options.onClose&&"function"==typeof options.onClose&&options.onClose()}utility.G(function(){utility.n(".modal",function(elem){if(!elem.querySelector(".modal-overlay")){var overlay=document.createElement("div");overlay.className="modal-overlay",elem.insertBefore(overlay,elem.firstChild),utility.v(elem,"modal-active")&&(bodyTag.style.overflow="hidden")}}),openModal(),utility.b(bodyTag,"click",function(evt){var target=(evt=evt||window.event).target||evt.srcElement,buttonClass=options.closeTriggerClass.replace(".",""),modal=utility.k(target,".modal-active");utility.v(target,buttonClass)&&modal&&(utility.E(evt),closeModalWindow(modal,target))}),utility.b(bodyTag,"click",function(evt){var target=(evt=evt||window.event).target||evt.srcElement;utility.v(target,"modal-overlay")&&-1===closeOverlayId.indexOf(target.parentNode.id)&&(closeModalWindow(target.parentNode,target),utility.E(evt))}),utility.b(bodyTag,"keydown",function(evt){27===(evt=evt||window.event).keyCode&&utility.n(".modal-overlay",function(elem){-1===escapeCloseId.indexOf(elem.parentNode.id)&&closeModalWindow(elem.parentNode)})}),utility.n(".modal-trigger-onload",function(elem){utility.R(elem,"click")}),8!==Object(browser_detect.a)()&&9!==Object(browser_detect.a)()||centerModalContent()}),this.centerModalContent=centerModalContent}var push_notification_modal=function(option){var self=this,opt=option||{},isActive=opt.isactive||!1,defaultScroll=opt.scrollbot,modalControl=opt.control,pushnx_debug=opt.debug||{},bodyTag=document.body,$pnxMessages=document.getElementById("pushnxMessages"),$modalId=document.getElementById("pushnxLightbox"),scrollObj=null,storedMessage=[],msgsHeight=opt.height||450,modalPushnx=new components_modal_modal({closeOverlayClick:!1,escapeClose:!1,id:"pushnxLightbox"});this.modalOpen=function(messages){var $msgWrapper=document.querySelector(".messages");if(!messages.existing&&$msgWrapper)$msgWrapper.innerHTML=messages.content,modalControl&&(utility.a($modalId,"modal-active"),bodyTag.style.overflow="hidden"),defaultScroll&&(scrollObj=new vendor_scrollbot(".messages"));else{var msgWrapper=document.querySelector(".messages .scrollbot-inner-parent")||document.querySelector(".messages");$modalId&&msgWrapper&&(isActive?msgWrapper.innerHTML+=messages.content:msgWrapper.innerHTML=messages.content)}self.modalHeightRefresh()},this.modalClose=function(force){!force&&document.querySelector("#push-notification .message")||(storedMessage=[],$pnxMessages.innerHTML="",pushnx_debug.console(storedMessage,"Modal Close","Close Modal and clear message variable."),utility.H($modalId,"modal-active"),bodyTag.style.overflow="inherit"),self.modalHeightRefresh()},this.modalHeightRefresh=function(){setTimeout(function(){var msgSelector=document.querySelectorAll(".message-pnx"),msgsSelector=document.querySelector(".messages-pnx"),msgHeighTotal=0;if(msgsSelector){for(var msgsIndex=0;msgsIndex<msgSelector.length;msgsIndex++)msgHeighTotal+=msgSelector[msgsIndex].offsetHeight;msgsSelector.style.height=msgHeighTotal<msgsHeight?"auto":msgsHeight+"px",null!==scrollObj&&scrollObj.refresh(),8===Object(browser_detect.a)()&&modalPushnx.centerModalContent(document.getElementById("pushnxLightbox"))}},1)}};var push_notification_dismiss=function(options){var self=this,$modalId=document.getElementById("pushnxDismissLightbox"),$pnxMessages=document.querySelector("#pushnxDismissLightbox .modal-body"),opt=options||{},message=opt.content||!1,yes=opt.yes||!1,no=opt.no||!1,pushnx_global=opt.global||{},pushnx_message=opt.message||{},pushnx_socket=opt.socket||{},pushnx_render=opt.render||{},isAllowToDismiss=["icore"];new components_modal_modal({closeOverlayClick:!1,escapeClose:!1,id:"pushnxDismissLightbox"}),this.enable=function(){var dismissAll=document.querySelector(".pushnx-lightbox-dismiss-all");utility.b(dismissAll,"click",self.dismissModal)},this.dismissModal=function(){var dismissMessage=pushnx_render.dismissAll({message:message.value,yes:yes,no:no});$pnxMessages.innerHTML=dismissMessage,utility.a($modalId,"modal-active"),document.body.style.overflow="hidden";var dismissYes=document.getElementById("dismiss-yes"),dismissNo=document.getElementById("dismiss-no");dismissYes&&utility.b(dismissYes,"click",self.dismissMessages),dismissNo&&utility.b(dismissNo,"click",self.closeDismissModal)},this.closeDismissModal=function(){utility.H($modalId,"modal-active"),document.body.style.overflow="inherit"},this.dismissMessages=function(){var msgIds=pushnx_message.getDismissableMessage(),extracted=self.extractDismissIds(msgIds);self.sendReply(extracted),self.closeDismissModal()},this.extractDismissIds=function(msgIds){for(var tmp=[],a=0;a<msgIds.length;a++){var src=self.isAllowToDismiss(msgIds[a])||"icore";if(src){var msgId=msgIds[a].replace(src,"");tmp.push(parseInt(msgId))}}return tmp},this.sendReply=function(msgIds){var parameters={secureToken:pushnx_global.settings.token,clientIP:pushnx_global.settings.clientIP,playerId:pushnx_global.settings.playerId,id:"-1",actionId:"-1",msgs:msgIds};reqwest_default()({url:pushnx_global.settings.replyUri,method:"post",data:JSON.stringify(parameters),type:"json",crossOrigin:pushnx_socket.hasWebsocket(),contentType:"text/plain",complete:function(response){if(424!==response.status&&200!==response.status)pushnx_global.settings.retryCount&&setTimeout(function(){self.sendReply(parameters,pushnx_global.settings.retryCount-1)},pushnx_global.settings.delayCount);else for(var index=0;index<msgIds[index];index++){var src=self.isAllowToDismiss(msgIds[index])||"icore";pushnx_message.removeMessage(msgIds[index],src)}}})},this.isAllowToDismiss=function(msgId){for(var i=0;i<isAllowToDismiss.length;i++)if(-1!==msgId.indexOf(isAllowToDismiss[i]))return isAllowToDismiss[i];return!1}};var push_notification_alert=function(option){var pushnx_debug=option.debug,pushnx_global=option.global,newMsg=0;this.newMessageAlert=function(count){pushnx_global.notify&&(document.getElementById("pushnxLightbox").className.match("modal-active")&&(newMsg=0),newMsg>0?newMsg+=count:newMsg=count,utility.R(document,"pushnx.new.message",{count:newMsg}),pushnx_debug.notify("triggered pushnx.new.message: "+newMsg))},this.updateMessageAlert=function(count){pushnx_global.counter&&(utility.R(document,"pushnx.count.message",{count:count}),pushnx_debug.notify("triggered pushnx.count.message: "+count))}};var action_hook=function(options){var opt=options||{},pushnx_debug=opt.debug||{},pushnx_global=opt.global||{},dontBindClick=["avaya"],self=this;this.contentHook=function(ids){if(ids.length)for(var z=0;z<ids.length;z++)self.setAutoAcknowledge(ids[z]),self.bindLinkToAcknowledge(ids[z]),self.bindContentHook(ids[z])},this.bindContentHook=function(id){for(var contentAction=document.querySelectorAll("#message"+id+" .content [data-action]"),i=0;i<contentAction.length;i++){var element=contentAction[i],isAutoAcknowledge=element.getAttribute("data-auto-acknowledge");if(element&&!isAutoAcknowledge){element.setAttribute("data-hook-id",id),self.customDataAttribute(id,element,"data-custom-attribute");var action=element.getAttribute("data-action"),setaction=self.extractAction(action);pushnx_debug.console(setaction,"Set action",setaction),setaction.target&&!utility.w(setaction.target,dontBindClick)?(utility.b(document.body,"click",self.processContent),pushnx_debug.console(element,"Bind content action Hook",id)):self.addDataParameters(id,element)}}},this.setAutoAcknowledge=function(id){for(var links=document.querySelectorAll("#message"+id+' .content a[href="#"]'),i=0;i<links.length;i++)links[i]&&(links[i].getAttribute("data-auto-acknowledge")||links[i].setAttribute("data-auto-acknowledge",!0))},this.bindLinkToAcknowledge=function(id){var atrigger=document.querySelectorAll("#message"+id+' .content [data-auto-acknowledge="true"]');if(atrigger)for(var x=0;x<atrigger.length;x++){var el=atrigger[x];if(el){var target=document.querySelector("#message"+id+' [data-default-acknowledge="true"]'),actionId=target.getAttribute("data-id"),msgId=target.getAttribute("data-msg-id"),src=target.getAttribute("data-msg-src");el.setAttribute("data-id",actionId),el.setAttribute("data-msg-id",msgId),el.setAttribute("data-msg-src",src),null===el.getAttribute("data-action-override")&&el.setAttribute("data-action-override",!1),pushnx_debug.console(el,"Set data id",actionId),pushnx_debug.console(el,"Set data msg-id",msgId),pushnx_debug.console(el,"Set data msg-src",src),pushnx_debug.console(el,"Set default data action-override",!1)}}},this.addDataParameters=function(msgId,element){var dataId=element.getAttribute("data-id"),customParam=self.overrideCTA(dataId,msgId,"data-parameters");customParam&&(element.setAttribute("data-parameters",customParam),pushnx_debug.console(element,"Set data parameters",customParam))},this.customDataAttribute=function(msgId,element,dataAttr){var dataId=element.getAttribute("data-id"),customParam=self.overrideCTA(dataId,msgId,dataAttr);if(customParam)for(var attr=customParam.split("&"),a=0;a<attr.length;a++)if(attr[a].indexOf("=")){var custom=attr[a].split("=");void 0!==custom[0]&&void 0!==custom[1]&&(element.setAttribute(custom[0],custom[1]),pushnx_debug.console(element,"Set data attribute",custom[0]+" "+custom[1]))}},this.processContent=function(evt){var target=(evt=evt||window.event).target||evt.srcElement,isCTA=utility.v(target,"action");if(pushnx_debug.console(target,"is CTA button and hasClass .action",isCTA),!isCTA){var dataId=target.getAttribute("data-id"),id=target.getAttribute("data-hook-id"),action=target.getAttribute("data-action"),params=target.getAttribute("data-parameters");pushnx_debug.console(target,"dataId: "+dataId+" id: "+id+" action: "+action+" params: "+params);var setaction=self.extractAction(action);self.actionHook(id,setaction,params,target)}},this.doActionHook=function(param,callback){var setaction=self.extractAction(param.action),doOverride=!param.ctaride||"false"!==param.ctaride,params="";pushnx_debug.console(param.ctaride,"Lets do override CTA "+doOverride,doOverride),params=doOverride?self.overrideCTA(param.actionId,param.id,"data-parameters"):param.target.getAttribute("data-parameters"),(param.ctaButton&&200===param.status||!param.ctaButton)&&(pushnx_debug.console(setaction,"is target exists and on list to bind",dontBindClick),setaction.target&&!utility.w(setaction.target,dontBindClick)&&self.actionHook(param.id,setaction,params)),callback()},this.actionHook=function(msgId,action,params,targetElement){var targetEl=targetElement||!1;if(pushnx_debug.console(action,"Action Hook","Message id: "+msgId),action){var key=action.key,target=action.target;switch(key){case"copy":pushnx_debug.console(key,"Action Hook","Message id: "+msgId+", target: "+target),self.doCopy(msgId,target),self.showTooltip(msgId,target,targetEl);break;case"redirect":pushnx_debug.console(key,"Action Hook","Message id: "+msgId+", target: "+target),self.doRedirect(msgId,target,params,"_self");break;case"popup":pushnx_debug.console(key,"Action Hook","Message id: "+msgId+", target: "+target),self.doPopup(msgId,target,params);break;case"newtab":pushnx_debug.console(key,"Action Hook","Message id: "+msgId+", target: "+target),self.doRedirect(msgId,target,params,"_blank")}}},this.showTooltip=function(msgId,targetElementId,appendParentElement){var globalNotif=!1;pushnx_global.lightboxNotif&&(globalNotif=document.querySelector(pushnx_global.lightboxNotif));var lightboxMsg=globalNotif||appendParentElement;if(lightboxMsg){var copyMsg=pushnx_global.translations.copy_to_clipboard||"Copied to Clipboard",span=document.createElement("span");span.className="tooltip",span.id="tooltip"+msgId+targetElementId;var copyMessage=document.createTextNode(copyMsg);span.appendChild(copyMessage),document.querySelector("#tooltip"+msgId+targetElementId)?utility.H(document.querySelector("#tooltip"+msgId+targetElementId),"hidden"):lightboxMsg.appendChild(span),setTimeout(function(){document.querySelector("#tooltip"+msgId+targetElementId)&&utility.a(document.querySelector("#tooltip"+msgId+targetElementId),"hidden")},3e3)}},this.extractAction=function(action){if(action&&-1!==action.indexOf("::")){var arr=action.split("::");if(pushnx_debug.console(arr,"Action Hook data"),void 0!==arr[0]&&void 0!==arr[1])return{key:arr[0],target:arr[1]}}return{key:!1,target:!1}},this.mappedKey=function(key){return pushnx_debug.console(key,"Domain Mapped "+pushnx_global.domains[key]),pushnx_global.domains[key]||key},this.doCopy=function(id,target){var select=document.querySelector("#message"+id+" #"+target);if(pushnx_debug.console(select,"Action Hook target "+target),select){var input=document.createElement("input");input.type="text",input.style.position="absolute",input.style.left="-10000px",input.style.right="-10000px",input.id="copy"+id,input.value=select.innerHTML,document.querySelector("#message"+id).appendChild(input);var toselect=document.getElementById("copy"+id);return pushnx_debug.console(toselect,"Action Hook copy target "+toselect),toselect.select(),document.execCommand("copy")&&toselect.remove(),document.execCommand("copy")}return!1},this.doPopup=function(id,target,params){var w,h,urltarget=self.mappedKey(target),buildUrl=self.buildUrl(urltarget,params);pushnx_debug.console(buildUrl,"action hook do Popup "),w=utility.s("width",urltarget)||820,h=utility.s("height",urltarget)||700;var dualScreenLeft=void 0!==window.screenLeft?window.screenLeft:screen.left,dualScreenTop=void 0!==window.screenTop?window.screenTop:screen.top,left=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-w/2+dualScreenLeft,top=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-h/2+dualScreenTop,newWindow=window.open(buildUrl,"","scrollbars=1,toolbar=0,menubar=0,location=0,resizable=1,status=1, width="+w+", height="+h+", top="+top+", left="+left);window.focus()&&newWindow.focus()},this.doRedirect=function(id,target,params,type){var urltarget=self.mappedKey(target),buildUrl=self.buildUrl(urltarget,params);pushnx_debug.console(buildUrl,"action hook do Redirect "),window.open(buildUrl,type).focus()},this.buildUrl=function(url,param){var newparam="";return param&&(newparam=param),-1!==url.indexOf("?")&&""!==newparam?url+"&"+newparam:-1===url.indexOf("?")&&""!==newparam?url+"?"+newparam:url},this.overrideCTA=function(actionId,msgId,dataParam){var rideParams=!1,override=document.querySelector("#message"+msgId+' .content [data-id-override="'+actionId+'"]');return override&&(rideParams=override.getAttribute(dataParam)),pushnx_debug.console(override,"override params "+rideParams),rideParams}};var push_notification_message=function(option){var self=this,opt=option||{},pushnx_global=opt.global||{},pushnx_debug=opt.console||{},pushnx_support=opt.support||{},pushnx_socket=opt.socket||{},push_notif_eb=opt.eb||{},push_notif_server_address=opt.server||{},pushnx_render=new renderer({template:opt.template,icon:opt.icontemplate}),islogin=opt.islogin||!1,isActive=!1,useModal=void 0===opt.modal.enable||opt.modal.enable,control=void 0===opt.modal.control||opt.modal.control,modalHeight=void 0!==opt.modal.height&&opt.modal.height,pushnx_action_hook=new action_hook({global:pushnx_global,debug:pushnx_debug}),pushnx_modal=new push_notification_modal({isactive:isActive,scrollbot:opt.scrollbot,control:control,height:modalHeight,debug:pushnx_debug});if(opt.dismiss)var pushnx_dismiss=new push_notification_dismiss({content:pushnx_global.dismiss.content,yes:pushnx_global.dismiss.yes,no:pushnx_global.dismiss.no,render:pushnx_render,global:pushnx_global,support:pushnx_support,socket:pushnx_socket,message:self,debug:pushnx_debug});var pushnx_alert=new push_notification_alert({global:pushnx_global,debug:pushnx_debug});pushnx_debug.console(opt,"Fetched Config",opt,"warn");var date_format=pushnx_global.settings.dateformat.format,offset=pushnx_global.settings.dateformat.offset,storedMessage=[],incomingMessages=[],newMessage=[],removedMessages=[],dismissableMessages=[],hookAction=[],validSession=pushnx_support.validSession(islogin)||!1,$container=document.getElementById("pushnxMessages")||!1;this.acknowledge=function(evt){var target=(evt=evt||window.event).target||evt.srcElement;if(void 0!==target.getAttribute("data-msg-id")&&null!==target.getAttribute("data-msg-id")){var ctaButton=!1,overRide=!1,actionId=target.getAttribute("data-id"),msgId=target.getAttribute("data-msg-id"),container=document.getElementById("actions"+msgId),expiry=container.getAttribute("data-expiry"),action=target.getAttribute("data-action"),src=target.getAttribute("data-msg-src")||"icore",ctaride=target.getAttribute("data-action-override")||!1;null===target.getAttribute("data-auto-acknowledge")&&(ctaButton=!0);var over=document.querySelector('[data-id-override="'+actionId+'"]');(ctaride&&over||ctaButton&&over)&&(overRide=!0),pushnx_debug.console("Message Id: "+msgId+", Action Id: "+actionId+", Retry Count config: "+pushnx_global.settings.retryCount+", Message Expiration: "+expiry,"Message Acknowledged Action");var errorMsg=pushnx_render.expiredMessage({isexpired:pushnx_support.isExpired(expiry,msgId),messageClass:pushnx_global.css.expiredMessage,message:pushnx_global.translations.expired_message});errorMsg&&(container.innerHTML=errorMsg,pushnx_debug.console(errorMsg,"Message Acknowledged Action","Error Message Display on Action container."));var messageId=msgId.replace(src,""),parameters={secureToken:pushnx_global.settings.token,clientIP:pushnx_global.settings.clientIP,playerId:parseInt(pushnx_global.settings.playerId),id:parseInt(messageId),actionId:actionId,src:src};self.updateMessageStatus(),removedMessages.push(parseInt(msgId)),pushnx_debug.console(removedMessages,"Removed Messages","Remove message id: "+msgId),self.sendReply(parameters,pushnx_global.settings.retryCount,action,ctaride,overRide,ctaButton,target)}},this.sendReply=function(parameters,retryCount,action,ctaride,overRide,ctaButton,target){pushnx_debug.console(validSession,"is Valid Session for reply "+validSession,"ctaButton: "+ctaButton),validSession&&(isActive=!0,reqwest_default()({url:pushnx_global.settings.replyUri,method:"post",data:JSON.stringify(parameters),type:"json",crossOrigin:pushnx_socket.hasWebsocket(),contentType:"text/plain",complete:function(response){if(200!==response.status&&424!==response.status)retryCount?setTimeout(function(){self.sendReply(parameters,retryCount-1,action,ctaride,overRide,ctaButton,target)},pushnx_global.settings.delayCount):self.closeMessage(!0);else{var actionParam={id:parameters.src+parameters.id,actionId:parameters.actionId,action:action,ctaride:ctaride,overRide:overRide,ctaButton:ctaButton,status:response.status,target:target};pushnx_action_hook.doActionHook(actionParam,function(){self.removeMessage(parameters.id,parameters.src),pushnx_debug.notify("Response: "+response.status+", Removed message id: "+parameters.id)})}}}))},this.action=function(){islogin&&utility.b(document.body,"click",this.acknowledge)},this.unbindAction=function(){utility.J(document.body,"click",this.acknowledge)},this.generateMessage=function(message){var formattedMsg="",msgTemp="",objLen=message.length;if(objLen)for(var gmIndex=0;gmIndex<objLen;gmIndex++){var ExpiryDate=0,publishDate="6666",isexpired=!1,msg=message[gmIndex],msgContent={};if(msgContent.messageId=msg.Id,msgContent.actions=msg.Actions,msgContent.content=msg.Contents,msg.hasOwnProperty("ExpiryDate")&&(ExpiryDate=msg.ExpiryDate,isexpired=pushnx_support.isExpired(ExpiryDate,msg.Id)),msgContent.expiryDate=msg.ExpiryDate,msgContent.expirationLabel=pushnx_render.expirationDate({displayExpiryDate:pushnx_global.settings.displayExpiryDate,label:pushnx_global.label.expiration_date,formattedDate:pushnx_support.formatDateTime(ExpiryDate,date_format,offset),debugClass:isexpired?pushnx_global.css.dateExpired:pushnx_global.css.dateActive,Phase1Date:pushnx_support.isDateInMilli(ExpiryDate,msg.Id)?"":" (Phase1 date format) "}),pushnx_debug.console(msgContent.expirationLabel,"Prepare Expiration Date Template","Expiration Date Template for message id "+msgContent.messageId),msg.hasOwnProperty("Contents")&&msg.hasOwnProperty("Actions")){isexpired&&utility.w(msg.Id,removedMessages)?(pushnx_debug.console(removedMessages,"Filter Removed Messages","is expired and msg id: "+msg.Id+" is existing on remove ids"),msgContent.actions=pushnx_render.expiredMessage({isexpired:pushnx_support.isExpired(ExpiryDate,msg.Id),messageClass:pushnx_global.css.expiredMessage,message:pushnx_global.translations.expired_message})):(pushnx_debug.console(removedMessages,"Filter Removed Messages","is not expired and message id "+msg.Id+" is not existing on remove ids"),msgContent.actions=pushnx_render.messageAction({id:msg.Id,actions:msg.Actions,cta:pushnx_global.cta,actionClass:pushnx_global.css.actionClass,actionId:pushnx_global.css.actionId,src:msg.Src||"icore"})),pushnx_debug.console(msgContent.actions,"Prepare Expired Message Template","Expired message Template for message id "+msgContent.messageId),msg.hasOwnProperty("DateTriggered")?publishDate=msg.DateTriggered:msg.hasOwnProperty("receivedDate")&&(publishDate=msg.receivedDate);var productTypeId=(msg.Parameters||{}).ProductTypeId||"0",msgIcon=self.iconMessage(productTypeId);msgIcon&&(msgContent.genericIcon="generic"===msgIcon||null,msgContent.icon=pushnx_render.messageIcon({icon:msgIcon})),msgContent.publishDate=pushnx_support.formatDateTime(publishDate,date_format,offset),msgContent.title=pushnx_render.messageTitle({title:self.messageTitle(productTypeId)}),pushnx_debug.console(msgContent.title,"Prepare Message Title Template","Message title Template for message id "+msgContent.messageId),msgTemp=pushnx_render.pushMessage(msgContent),pushnx_debug.console(msgTemp,"Prepare Message Template","Message Template for message id "+msgContent.messageId),hookAction.push(msgContent.messageId),formattedMsg+=[msgTemp].join("\n")}}return self.constructMessage(formattedMsg)},this.constructMessage=function(messages){return messages?{existing:!1,content:messages}:{existing:!0,content:messages}},this.sendMessages=function(messages){var fetchMessage="",incomingMsg="";self.containerMessage(),self.messageReady(!1),pushnx_debug.console(isActive,"Active Browser?"),pushnx_debug.console(storedMessage,"storedMessage is empty?","storedMessage.length: "+storedMessage.length);var filteredMsg=self.removeExpiredMessage(messages);newMessage=self.getMessages(filteredMsg),isActive&&storedMessage.length>0?(incomingMsg=newMessage,pushnx_debug.console(incomingMsg,"New Messages","new message received from server.")):(incomingMsg=filteredMsg,storedMessage=filteredMsg,pushnx_debug.console(storedMessage,"Update storedMessage","Replace storedMessage value.")),"object"==typeof storedMessage?utility.y(storedMessage)||utility.y(incomingMsg)?utility.y(storedMessage)&&(pushnx_debug.console("closeMessage has been triggered.","Empty Message"),pushnx_debug.notify("Empty message: "+storedMessage.length),pushnx_alert.updateMessageAlert(!1),self.closeMessage(!0)):(pushnx_debug.console(incomingMsg,"Generate Message","Generate Message for Player Id: "+pushnx_global.settings.playerId),pushnx_alert.updateMessageAlert(storedMessage.length),fetchMessage=self.generateMessage(incomingMsg),pushnx_debug.console(fetchMessage,"Generate HTML Message","Generate Message for Player Id: "+pushnx_global.settings.playerId),self.openMessage(fetchMessage),pushnx_alert.newMessageAlert(newMessage.length),isActive=!1):(pushnx_debug.console(storedMessage,"Message(s)","Invalid Format."),pushnx_debug.notify("Empty message: "+storedMessage.length))},this.getMessages=function(messages){incomingMessages=[],pushnx_debug.console(messages,"Incoming Messages"),utility.y(messages)&&pushnx_debug.console(messages,"Incoming Message(s)","is empty");for(var newMsg=messages,objLen=newMsg.length,msgIndex=0;msgIndex<objLen;msgIndex++)"empty"===self.findStoredMessage(newMsg[msgIndex].Id)?(pushnx_debug.console(newMsg[msgIndex],"Incoming Message","Message Id: "+newMsg[msgIndex].Id),incomingMessages=self.addToMessages(newMsg[msgIndex])):pushnx_debug.console("Message Id: "+newMsg[msgIndex].Id+" is already existing.","Existing Message");return pushnx_debug.console(incomingMessages,"Incoming Messages"),incomingMessages},this.addToMessages=function(addMessage){var tmpAddMsg=[];if(pushnx_global.settings.displayAllMessage)if(pushnx_debug.console(pushnx_global.settings.displayAllMessage,"Filter Expired Messages"),void 0!==addMessage.ExpiryDate){pushnx_debug.console(addMessage.ExpiryDate,"Message ExpiryDate","Message Id: "+addMessage.Id+" expiry date is defined");var foundMsg=self.findStoredMessage(addMessage.Id);pushnx_support.isExpired(addMessage.ExpiryDate,addMessage.Id)||"empty"!==foundMsg||(storedMessage.push(addMessage),tmpAddMsg.push(addMessage),pushnx_debug.console(addMessage,"Add Message","Message Id: "+addMessage.Id+" has been added."))}else pushnx_debug.console(addMessage.ExpiryDate,"Message ExpiryDate","Message Id: "+addMessage.Id+" expiry date is undefined"),storedMessage.push(addMessage),tmpAddMsg.push(addMessage),pushnx_debug.console(addMessage,"Add Message","Message Id: "+addMessage.Id+" has been added.");else storedMessage.push(addMessage),tmpAddMsg.push(addMessage),pushnx_debug.console(addMessage,"Add Message","Message Id: "+addMessage.Id+" has been added.");return self.setDismissableMessage(addMessage),self.updateMessageStatus(),tmpAddMsg},this.removeMessage=function(msgId,src){var selectorId=src+msgId,expiryDelayCount=pushnx_global.settings.expiryDelayCount||1e3,actionElement=document.getElementById("actions"+selectorId),msgElement=document.getElementById("message"+selectorId);actionElement&&msgElement&&pushnx_support.isExpired(actionElement.getAttribute("data-expiry"),selectorId)?setTimeout(function(){self.removeStoredMessage(selectorId),document.getElementById("message"+selectorId)&&(pushnx_debug.console("Message Id: "+selectorId+" will be remove in "+expiryDelayCount+"ms.","Remove Expired Message"),document.getElementById("message"+selectorId).remove(),self.closeMessage(!1),useModal&&pushnx_modal.modalHeightRefresh())},expiryDelayCount):msgElement&&(self.removeStoredMessage(selectorId),msgElement.remove(),pushnx_debug.console("Message Id: "+selectorId+" will be remove immediately","Removed Message"),self.closeMessage(!1))},this.removeStoredMessage=function(msgId){if(!(msgId<0)){var msgKey=self.findStoredMessage(msgId);return"empty"!==msgKey&&storedMessage.splice(msgKey,1)&&pushnx_debug.console("Removed Message Id: "+msgId+" on list","Removed Message"),self.removeDismissableMessage(msgId),self.updateMessageStatus(),pushnx_debug.console(storedMessage,"Updated Message","post remove message"),isActive=!1,pushnx_alert.updateMessageAlert(storedMessage.length),storedMessage}pushnx_debug.console(msgId,"Remove Message","Message Id: "+msgId+" is empty")},this.removeExpiredMessage=function(rmExpiredMsg){var messages=[];if(rmExpiredMsg){var objLen=rmExpiredMsg.length;if(!pushnx_global.settings.displayAllMessage)return rmExpiredMsg;pushnx_debug.console(rmExpiredMsg,"Start to Remove Expired Message","Messages has "+rmExpiredMsg.length+" items."),pushnx_debug.console(pushnx_global.settings.displayAllMessage,"Removing Expired Message","Checking config... Filter Expired Messages?");for(var expIndex=0;expIndex<objLen;expIndex++){var msg=rmExpiredMsg[expIndex];if(msg&&msg.ExpiryDate){var isexpired=pushnx_support.isExpired(msg.ExpiryDate,msg.Id);isexpired?isexpired&&!isActive&&self.removeStoredMessage(msg.Id):messages.push(msg)}else messages.push(msg)}}return messages},this.updateMessageStatus=function(){if(pushnx_global.settings.displayExpiryDate)for(var objLen=storedMessage.length,statusIndex=0;statusIndex<objLen;statusIndex++){var isexpired=pushnx_support.isExpired(storedMessage[statusIndex].ExpiryDate,storedMessage[statusIndex].Id);if(pushnx_debug.console("Message Id: "+storedMessage[statusIndex].Id+" is expired: "+isexpired,"Update Messages Status"),isexpired){var span=document.querySelector("#message"+storedMessage[statusIndex].Id+" .time span");utility.H(span,"debug-active"),utility.a(span,"debug-expired"),pushnx_debug.console("Message Id: "+storedMessage[statusIndex].Id+" is expired.","Update Message Status")}}},this.extractMessage=function(messages){var result=!1,parsedJson=JSON.parse(messages),extractedJson=!1;return parsedJson.hasOwnProperty("body")?(pushnx_debug.console(parsedJson,"Extracted Messages","Validate Message Format. Message Format is messages.body.body"),extractedJson=parsedJson.body):Object.keys(parsedJson).length>=0?(pushnx_debug.console(parsedJson,"Extracted Messages","Validate Message Format. Message Format is messages.body"),extractedJson=parsedJson):pushnx_debug.console(parsedJson,"Extracted Messages","Invalid Message Format from Server","error"),extractedJson&&(result=this.touchMessage(extractedJson)),result},this.touchMessage=function(messages){var tMsg=[],tLen=messages.length;if(!utility.y(messages))for(var tIndex=0;tIndex<tLen;tIndex++){var tmMsg=messages[tIndex],src=messages[tIndex].Src||"icore";tmMsg.Id=src+tmMsg.Id,tMsg.push(tmMsg)}return tMsg},this.findMessageByProductTypeId=function(messages){var filterMsg=[],objLen=messages.length;if(utility.y(messages))pushnx_debug.console(messages,"Searching Messages by Product Type Id","messages is empty");else for(var filterIndex=0;filterIndex<objLen;filterIndex++){var msg=messages[filterIndex],msgParam=msg.Parameters,productTypeId=msgParam.ProductTypeId||"0";pushnx_debug.console(productTypeId,"Product Type Id is undefined?","Product Type Id"),pushnx_debug.console("Searching for: "+pushnx_global.settings.productTypeId+", Search Index: "+filterIndex+", Search Product Type Id: "+productTypeId,"Product Type Id found?"),!msgParam.hasOwnProperty("ProductTypeId")||utility.w(productTypeId,pushnx_global.settings.productTypeId)?(pushnx_debug.console(productTypeId,"Search Message by Product Type Id result","Product Type Id is "+productTypeId+", Result found at index "+filterIndex),pushnx_debug.console(pushnx_global.settings.disableBonusAward,"Disable Bonus Awarded","Bonus Awarded status: "+pushnx_global.settings.disableBonusAward),(!pushnx_global.settings.disableBonusAward||pushnx_global.settings.disableBonusAward&&"BonusIsAwarded"!==msg.TransactionalMessageName)&&filterMsg.push(msg)):pushnx_debug.console(msg.Id,"Search Message by Product Type Id result","Product Type Id not found")}return filterMsg},this.findStoredMessage=function(msgId){var objLen=storedMessage.length;if(pushnx_debug.console(storedMessage,"Start Searching Message on storedMessage","Message Id: "+msgId),utility.y(storedMessage))pushnx_debug.console(storedMessage,"Searching Messages by ID","messages is empty","warn");else for(var fsmIndex=0;fsmIndex<objLen;fsmIndex++)if(storedMessage[fsmIndex].Id===msgId)return pushnx_debug.console(storedMessage[fsmIndex].Id,"Search Message result","Message Id found at index "+fsmIndex),fsmIndex;return"empty"},this.violatileMessage=function(msgId){if(push_notif_eb){var json={playerId:pushnx_global.settings.playerId,violatileMsgId:msgId};push_notif_eb.publish(push_notif_server_address,json,{"content-type":"application/json"}),pushnx_debug.console(json,"Violatile Message","Published to "+push_notif_server_address)}},this.productMessage=function(messages){return self.findMessageByProductTypeId(messages)},this.containerMessage=function(){if(!document.getElementById("push-notification")&&$container){var content=[pushnx_render.pushTemplate({title:pushnx_global.translations.title?pushnx_global.translations.title:pushnx_global.label.modal_title,messages:pushnx_global.translations.empty,dismiss:!(!pushnx_global.dismiss||!pushnx_global.dismiss.button_label)&&pushnx_global.dismiss.button_label})].join("\n");$container.innerHTML=content,pushnx_debug.console(content,"Render Body Template","body template is not existing looking for id: push-notification on "+$container)}},this.openMessage=function(messages){if(messages){var $msgWrapper=document.querySelector(".messages .scrollbot-inner-parent")||document.querySelector(".messages");useModal?(pushnx_debug.console(opt.modal,"Render in Modal","Modal enabled: "+opt.modal.enable),pushnx_modal.modalOpen(messages)):$container&&(pushnx_debug.console(opt.modal,"Render in non-modal","Modal enabled: "+opt.modal.enable),$msgWrapper.innerHTML=messages.content),$msgWrapper&&this.messageReady(!0),pushnx_action_hook.contentHook(hookAction)}opt.dismiss&&pushnx_dismiss.enable()},this.closeMessage=function(force){useModal?pushnx_modal.modalClose(force):self.emptyMessage(),self.containerMessage(),pushnx_alert.updateMessageAlert(storedMessage.length)},this.emptyMessage=function(){var $messages=document.querySelector(".messages")||!1;utility.y(storedMessage)&&$messages&&($messages.innerHTML=pushnx_global.translations.empty||"There are no new notifications.")},this.iconMessage=function(productTypeId){return pushnx_global.icon?pushnx_global.settings.productDetails[productTypeId].icon||"generic":null},this.messageTitle=function(productTypeId){return pushnx_global.settings.productDetails[productTypeId].label?pushnx_global.settings.productDetails[productTypeId].label:""},this.messageReady=function(status){utility.R(document,"pushnx.message",{ready:status})},this.setDismissableMessage=function(message){var index=(message.Parameters||{}).ProductTypeId||"0",msgid=message.Id;pushnx_global.settings.productDetails[index].allowtodismiss||dismissableMessages.push(msgid)},this.getDismissableMessage=function(){return dismissableMessages},this.removeDismissableMessage=function(msgId){var msgKey=self.findDismissableMessage(msgId);"empty"!==msgKey&&dismissableMessages.splice(msgKey,1)&&pushnx_debug.console("Removed Dismissable Message Id: "+msgId+" on list","Removed Message")},this.findDismissableMessage=function(msgId){var objLen=dismissableMessages.length;if(pushnx_debug.console(dismissableMessages,"Start Searching Message on dismissableMessages"),utility.y(dismissableMessages))pushnx_debug.console(dismissableMessages,"Searching Messages by ID","messages is empty","warn");else for(var fsmIndex=0;fsmIndex<objLen;fsmIndex++)if(dismissableMessages[fsmIndex].Id===msgId)return pushnx_debug.console(dismissableMessages[fsmIndex].Id,"Search Message result","Message Id found at index "+fsmIndex),fsmIndex;return"empty"}};var socket=function(){var isconnected=!1,pushnx_debug={},push_notif_eb={};this.connect=function(option){var self=this,opt=option||{},pushnx_global=opt.global||{},pushnx_message=opt.message||{};push_notif_eb=opt.eb||{},pushnx_debug=opt.console||{};var push_notif_player_address=opt.playerServer||{},push_notif_server_address=opt.notifServer||{};pushnx_debug.notify("Eventbus: "+push_notif_eb),pushnx_debug.notify("Supports WebSocket: "+self.hasWebsocket()),push_notif_eb.onopen=function(){var json={playerId:pushnx_global.settings.playerId,productId:pushnx_global.settings.productId},headers={"content-type":"application/json"};pushnx_debug.notify("Socket Connected: trying to register the player."),pushnx_debug.notify("Server: "+push_notif_server_address),pushnx_debug.notify("JSON: "+json),pushnx_debug.notify("Headers: "+headers),push_notif_eb.publish(push_notif_server_address,json,headers),pushnx_debug.console(json,"Publish to Server","Published to "+push_notif_server_address),pushnx_debug.notify("Player: "+json.playerId),pushnx_debug.console(push_notif_player_address+pushnx_global.settings.playerId,"Register to channel"),pushnx_debug.notify("trying to register on channel "+push_notif_player_address+pushnx_global.settings.playerId),push_notif_eb.registerHandler(push_notif_player_address+pushnx_global.settings.playerId,function(err,msg){if(err&&(pushnx_debug.console(err,"Registration error"),pushnx_debug.notify("Error: "+err)),pushnx_debug.console(msg,"Message Received from Server"),pushnx_debug.notify("Message(s) received from Push Service!"),pushnx_debug.notify(msg.body.length),null!==msg.body){isconnected=!0,self.isConnected(),pushnx_debug.console(msg.body,"Raw Messages");var extractedMsg=pushnx_message.extractMessage(msg.body),productMsg=pushnx_message.productMessage(extractedMsg);pushnx_debug.console(productMsg,"Filtered Messages by Product","Product Type Id: "+pushnx_global.settings.productTypeId),utility.R(document,"pnxMessagesByProduct",{count:productMsg.length}),pushnx_message.sendMessages(productMsg)}})},this.bindSocketClose()},this.isConnected=function(){utility.R(document,"pushnx.connected",{status:isconnected})},this.hasWebsocket=function(){return"WebSocket"in window},this.closeSocket=function(e){e.customData.close&&push_notif_eb&&(push_notif_eb.close(),pushnx_debug.notify("Close WebSocket!"))},this.bindSocketClose=function(){utility.b(document,"pushnx.close",this.closeSocket)},this.unbindSocketClose=function(){utility.J(document,"pushnx.close",this.closeSocket)}},EventBus=__webpack_require__(88);var push_notification=function(option){var opt=option||{},enable=void 0===opt.enable||opt.enable,scrollbot=void 0===opt.scrollbot||opt.scrollbot,use_modal=void 0===opt.modal?{enable:!0}:opt.modal,tpl=opt.template||{},dismiss=void 0!==opt.dismiss&&opt.dismiss,counter=void 0!==opt.counter&&opt.counter,notify=void 0!==opt.notify&&opt.notify,action=void 0===opt.action||opt.action,buttons=void 0===opt.buttons?"action":opt.buttons,icons=void 0!==opt.icons&&opt.icons,iconTpl=void 0!==opt.iconsvg&&opt.iconsvg,config=void 0!==opt.config&&opt.config,lang=void 0!==opt.lang&&opt.lang,lightboxNotif=void 0!==opt.lightboxNotif&&opt.lightboxNotif,pushnxAuth={},push_notif_eb={},login=!1;"undefined"!=typeof app&&void 0!==app.settings&&void 0!==app.settings.login&&(login=app.settings.login);var isLogin=void 0===opt.islogin?login:opt.islogin,token=void 0!==opt.token&&opt.token,is404=utility.v(document.body,"page-404"),pushnx_socket=new socket,pushnx_support=new helper,pushnx_debug={},pushnx_global={},pushnx_message={};pushnx_global.icon=icons,pushnx_global.css={dateExpired:"debug-expired",dateActive:"debug-active",actionClass:buttons,actionId:"",expiredMessage:"expired"},pushnx_global.label={modal_title:"Notifications",expiration_date:"Expiration Date: "},this.enable=function(){if(lang&&(opt.lang=lang),((pushnxAuth=pushnx_support.configUrl("ajax/pushnx/config",opt)).token||token)&&(isLogin=!0),!is404&&isLogin)if(config&&config.enabled){var eventBus,replyUri,override={};override=config,pushnx_socket.hasWebsocket()?(eventBus=config.connection.socket.eventBus,replyUri=config.connection.socket.replyUri):(eventBus=config.connection.fallback.eventBus,replyUri=config.connection.fallback.replyUri),override.eventBus=eventBus,override.replyUri=replyUri,this.overrideDefault(override)}else config||this.useDefault()},this.overrideDefault=function(settings){settings.enabled&&this.bindService(settings)},this.useDefault=function(){var self=this,params={ws:pushnx_socket.hasWebsocket(),path:encodeURIComponent("/"),t:Date.now()};(pushnxAuth.token||token)&&(params.token=token),reqwest_default()({url:pushnxAuth.url,type:"json",crossOrigin:pushnxAuth.xdomain,data:params,complete:function(res){res.enabled&&self.bindService(res)}})},this.bindService=function(settings){pushnx_global.settings=settings,pushnx_global.translations=pushnx_global.settings.texts,pushnx_global.excluded=pushnx_global.settings.excludedPages,pushnx_global.cta=pushnx_global.settings.cta,pushnx_global.domains=pushnx_global.settings.pushnx_domains,pushnx_global.lightboxNotif=lightboxNotif,dismiss&&(pushnx_global.dismiss=pushnx_global.settings.dismiss),counter&&(pushnx_global.counter=counter),notify&&(pushnx_global.notify=notify),(pushnx_debug=new debug(pushnx_global.settings.logging,notify)).console(settings,"Settings"),(pushnx_support=new helper({debug:pushnx_debug})).excludePage(pushnx_global.excluded)?pushnx_debug.console(pushnx_global.excluded,"Excluded Page"):(push_notif_eb=new EventBus(pushnx_global.settings.eventBus,{vertxbus_ping_interval:5e3,transports:["websocket","xhr-polling","iframe-xhr-polling"]}),pushnx_socket=new socket,pushnx_message=new push_notification_message({global:pushnx_global,modal:use_modal,scrollbot:scrollbot,console:pushnx_debug,support:pushnx_support,socket:pushnx_socket,dismiss:dismiss,template:tpl,icontemplate:iconTpl,eb:push_notif_eb,server:"chat.to.server",islogin:isLogin}),action&&pushnx_message.action(),pushnx_socket.connect({console:pushnx_debug,global:pushnx_global,message:pushnx_message,eb:push_notif_eb,playerServer:"chat.to.client",notifServer:"chat.to.server"}))},this.bindCloseService=function(){utility.R(document,"pushnx.close",{close:!0})},this.bindAction=function(){void 0!==pushnx_message.action&&pushnx_message.action()},this.closeModal=function(){var $modalId=document.getElementById("pushnxLightbox"),$msgWrapper=document.querySelector(".messages");$modalId&&$msgWrapper&&(utility.a($modalId,"modal-close"),utility.H($modalId,"modal-active"))},this.openModal=function(){var $modalId=document.getElementById("pushnxLightbox"),$msgWrapper=document.querySelector(".messages");$modalId&&$msgWrapper&&(utility.H($modalId,"modal-close"),utility.a($modalId,"modal-active"))},this.listenToMessage=function(){utility.b(document,"pushnx.message",this.readyMessage)},this.readyMessage=function(e){utility.R(document,"pushnx.message.ready",{ready:e.customData.ready})},this.unbindEvents=function(){utility.J(document,"pushnx.message",this.readyMessage),void 0!==pushnx_message.unbindAction&&pushnx_message.unbindAction(),void 0!==pushnx_socket.unbindSocketClose&&pushnx_socket.unbindSocketClose()},enable&&this.enable(),isLogin?this.listenToMessage():this.unbindEvents()},pushnx_action_handlebars=__webpack_require__(32),pushnx_body_handlebars=__webpack_require__(33),pushnx_dismiss_message_handlebars=__webpack_require__(34),pushnx_expiration_date_handlebars=__webpack_require__(35),pushnx_expired_message_handlebars=__webpack_require__(36),pushnx_message_handlebars=__webpack_require__(37),pushnx_title_message_handlebars=__webpack_require__(38),product_arcade_handlebars=__webpack_require__(39),product_casino_gold_handlebars=__webpack_require__(40),product_casino_handlebars=__webpack_require__(41),product_dafasports_handlebars=__webpack_require__(42),product_exchange_handlebars=__webpack_require__(43),product_fish_hunter_handlebars=__webpack_require__(44),product_games_handlebars=__webpack_require__(45),product_keno_handlebars=__webpack_require__(46),product_live_dealer_handlebars=__webpack_require__(47),product_livechat_handlebars=__webpack_require__(48),product_lottery_handlebars=__webpack_require__(49),product_owsports_handlebars=__webpack_require__(50),product_poker_handlebars=__webpack_require__(51),product_promotions_handlebars=__webpack_require__(52),product_virtuals_handlebars=__webpack_require__(53),product_wallet_handlebars=__webpack_require__(54),product_alpine_handlebars=__webpack_require__(55),product_lbt_handlebars=__webpack_require__(56),product_generic_handlebars=__webpack_require__(57),scripts_push_notification_PushNotification=function(){function PushNotification(element,attachments){var _this=this;this.element=element,this.isconnected=!1,this.listenSessionLogin(),attachments.authenticated&&reqwest({url:router.generateRoute("push_notification","pushnx",{lang:attachments.regLang}),type:"json",method:"post"}).then(function(response){response.enabled&&_this.startPushNx(attachments.authenticated,attachments.regLang,response)})}return PushNotification.prototype.startPushNx=function(login,language,pushnx){this.pushnx=new push_notification({islogin:login,lang:language,enable:!0,scrollbot:!1,modal:{enable:!0,control:!1,height:"auto"},dismiss:!0,counter:!0,notify:!0,action:!1,buttons:{ok:"btn btn-small btn-yellow pushnx-lightbox-btn-ok",accept:"btn btn-small btn-medium btn-yellow pushnx-lightbox-btn-accept",decline:"btn btn-small btn-medium btn-red pushnx-lightbox-btn-decline",proceed:"btn btn-small btn-medium btn-yellow pushnx-lightbox-btn-proceed",no:"btn btn-small btn-medium btn-red pushnx-lightbox-btn-no-thanks"},icons:!0,iconsvg:{arcade:product_arcade_handlebars,casinogold:product_casino_gold_handlebars,casino:product_casino_handlebars,dafasports:product_dafasports_handlebars,exchange:product_exchange_handlebars,fishhunter:product_fish_hunter_handlebars,games:product_games_handlebars,generic:product_generic_handlebars,keno:product_keno_handlebars,livedealer:product_live_dealer_handlebars,livechat:product_livechat_handlebars,lottery:product_lottery_handlebars,owsports:product_owsports_handlebars,poker:product_poker_handlebars,promotions:product_promotions_handlebars,virtuals:product_virtuals_handlebars,wallet:product_wallet_handlebars,alpine:product_alpine_handlebars,lbt:product_lbt_handlebars},template:{body:pushnx_body_handlebars,action:pushnx_action_handlebars,message:pushnx_message_handlebars,title:pushnx_title_message_handlebars,expirationDate:pushnx_expiration_date_handlebars,expiredMessage:pushnx_expired_message_handlebars,dismissAllMessage:pushnx_dismiss_message_handlebars},lightboxNotif:"#lightboxNotif",config:pushnx}),this.attachAction(),this.listenSessionLogout(),this.socketConnected(),this.messageListener(),this.listenOpenModal(),this.listenCloseModal()},PushNotification.prototype.attachAction=function(){this.pushnx.bindAction()},PushNotification.prototype.listenSessionLogout=function(){var _this=this;manager.subscribe("session.logout",function(event){_this.pushnx.bindCloseService(),_this.isconnected=!1})},PushNotification.prototype.listenSessionLogin=function(){var _this=this;manager.subscribe("session.login",function(event){_this.setCookie("pushnx.initial.login",!0,7),_this.readyMessage()})},PushNotification.prototype.readyMessage=function(){manager.subscribe("pushnx.message.ready",this.initialProcess.bind(this))},PushNotification.prototype.initialProcess=function(event){utility.q("pushnx.initial.login")&&event.customData.ready&&(utility.I("pushnx.initial.login"),this.isconnected=!0,this.openModal()),setTimeout(function(){utility.I("pushnx.initial.login")},3e3)},PushNotification.prototype.listenCloseModal=function(){var _this=this;manager.subscribe("pushnx.modal.close",function(event,src,data){_this.closeModal()})},PushNotification.prototype.closeModal=function(){modal_modal.close("#pushnxLightbox")},PushNotification.prototype.listenOpenModal=function(){var _this=this;manager.subscribe("pushnx.modal.open",function(event,src){_this.openModal()})},PushNotification.prototype.openModal=function(){this.isconnected&&modal_modal.open("#pushnxLightbox")},PushNotification.prototype.socketConnected=function(){var _this=this;manager.subscribe("pushnx.connected",function(e){e.customData.status&&(_this.isconnected=e.customData.status)})},PushNotification.prototype.messageListener=function(){var _this=this;manager.subscribe("pushnx.count.message",function(event){_this.emptyMessage(event.customData.count)})},PushNotification.prototype.emptyMessage=function(ctr){var pushnx=this.element.querySelector("#push-notification");ctr?utility.H(pushnx,"no-notification"):utility.a(pushnx,"no-notification")},PushNotification.prototype.unbindEvents=function(){this.pushnx&&(manager.unsubscribe("pushnx.connected"),manager.unsubscribe("pushnx.message.ready"),manager.unsubscribe("pushnx.count.message"),manager.unsubscribe("pushnx.modal.open"),manager.unsubscribe("pushnx.modal.close"),this.pushnx.unbindEvents())},PushNotification.prototype.setCookie=function(cname,cvalue,days){var d=new Date;d.setTime(d.getTime()+24*days*60*60*1e3);var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"},PushNotification}(),script_PushNotificationComponent=function(){function PushNotificationComponent(){}return PushNotificationComponent.prototype.onLoad=function(element,attachments){this.bindInstance(element,attachments)},PushNotificationComponent.prototype.onReload=function(element,attachments){this.bindInstance(element,attachments)},PushNotificationComponent.prototype.bindInstance=function(element,attachments){this.pushnx&&(this.pushnx.unbindEvents(),delete this.pushnx),this.pushnx=new scripts_push_notification_PushNotification(element,attachments)},PushNotificationComponent}();function accordion_accordion(element,options){var defaults={collapsible:!1,openByDefault:null},ckeditorAccordion=element.querySelectorAll(".ckeditor-accordion"),doc=element;if(ckeditorAccordion.length>0){for(var name in options=options||{},defaults)void 0===options[name]&&(options[name]=defaults[name]);utility.m(ckeditorAccordion,function(elem){var accordion=elem,dt=accordion.querySelectorAll("dt"),dd=accordion.querySelectorAll("dd");utility.m(dt,function(item,i){var wrap=document.createElement("div"),divs=[item,utility.D(item)],spanTag=document.createElement("span");utility.a(spanTag,"arrow"),item.appendChild(spanTag),wrap.className="ckeditor-wrapper",utility.m(divs,function(item){wrap.appendChild(item)}),"true"===item.getAttribute("data-transition-top")&&wrap.appendChild(item),accordion.appendChild(wrap)}),utility.m(dd,function(item){var wrapper=document.createElement("div");wrapper.className="dd_wrapper",wrapper.innerHTML=item.innerHTML,item.innerHTML="",item.appendChild(wrapper),item.style.height=0,item.style.overflow="hidden",item.style.transition="height .4s"}),utility.m(dt,function(item,i){(utility.v(item,"active")||options.openByDefault===i)&&setActive(item)})}),utility.b(doc,"click",function(e){var target=(e=e||window.event).target||e.srcElement;"DT"!==target.tagName&&null!==target.parentNode&&"DT"===target.parentNode.tagName&&(target=target.parentNode),"DT"===target.tagName&&setActive(target)})}function setActive(dt){var active_accordionWrapper=dt.parentNode,active_dd=active_accordionWrapper.querySelector("dd"),active_dd_height=active_dd.scrollHeight,accordionWrapper=dt.parentNode.parentNode.querySelectorAll(".ckeditor-wrapper");options.collapsible?utility.v(active_accordionWrapper,"active")||(utility.m(accordionWrapper,function(item){utility.H(item,"active"),utility.H(item.querySelector("dt"),"active"),utility.H(item.querySelector("dd"),"active"),item.querySelector("dd").style.height=0}),utility.a(active_accordionWrapper,"active"),utility.a(active_dd,"active"),active_dd.style.height=active_dd_height+"px"):(utility.Q(active_accordionWrapper,"active"),utility.Q(active_dd,"active"),0===active_dd_height?active_dd.style.height=active_dd_height+"px":utility.v(active_dd,"active")?active_dd.style.height=active_dd_height+"px":active_dd.style.height=0)}}var script_NodeComponent=function(){function NodeComponent(){}return NodeComponent.prototype.onLoad=function(element,attachments){this.element=element,this.equalizeStickyHeight(),this.accordion(element),this.parseOptin(element)},NodeComponent.prototype.onReload=function(element,attachments){this.equalizeStickyHeight(),this.accordion(element)},NodeComponent.prototype.equalizeStickyHeight=function(){new equal_height(".sticky-box").init()},NodeComponent.prototype.accordion=function(element){new accordion_accordion(element)},NodeComponent.prototype.parseOptin=function(main){var _this=this,regex=new RegExp(/\{webform:([^}]+)\}/g);main.innerHTML.replace(regex,function(match,id){main.innerHTML=_this.buildIframe(main,id)});var iframes=main.querySelectorAll("[class^='optin-form']");iframes&&utility.m(iframes,function(iframe){iframe.onload=function(){var form=iframe.contentWindow.document.querySelector(".form-optin");_this.setDimensions(iframe,form),utility.C(form,"reset",function(){_this.setDimensions(iframe,form)})}})},NodeComponent.prototype.buildIframe=function(main,id){var iframe="<iframe src='"+(window.location.origin+"/opt-in/"+id)+"' class='optin-form'></iframe>";return main.innerHTML.replace("{webform:"+id+"}",iframe)},NodeComponent.prototype.setDimensions=function(iframe,form){var height=form.clientHeight,width=form.clientWidth;iframe.setAttribute("height",height),iframe.setAttribute("width",width)},NodeComponent}(),language_handlebars=__webpack_require__(58);function Dropdown(options){var defaults={selector:".dropdown-trigger",transitionSpeed:2,hideDropdownOnClick:!1,hideDropdownOnMouseOut:!1,hideDropdownOnClickOutside:!0};for(var name in this.options=options||{},defaults)void 0===this.options[name]&&(this.options[name]=defaults[name]);this.dropdownButtons=document.querySelectorAll(this.options.selector),this.dropdownContents=[],this.dropdownContentHeights=[]}Dropdown.prototype.init=function(){this.initializeDropdownContents(),this.eventTriggered()},Dropdown.prototype.initializeDropdownContents=function(){var $this=this;utility.m($this.dropdownButtons,function(buttonItem){if(buttonItem.nextElementSibling||utility.D(buttonItem)){var dropdownContent=buttonItem.nextElementSibling||utility.D(buttonItem),dropdownContentHeight=dropdownContent.clientHeight;$this.dropdownContents.push(dropdownContent),$this.dropdownContentHeights.push(dropdownContentHeight),dropdownContent.style.height=0,dropdownContent.style.overflow="hidden",dropdownContent.style.transition="height ."+$this.options.transitionSpeed+"s"}})},Dropdown.prototype.eventTriggered=function(){var $this=this;utility.b(document,"click",function(e){var target=(e=e||window.event).target||e.srcElement;$this.setActive(target),utility.m($this.dropdownButtons,function(triggerElem){target!==triggerElem&&target.parentNode!==triggerElem&&target.parentNode.parentNode!==triggerElem||utility.E(e)})}),$this.options.hideDropdownOnMouseOut&&utility.b(document,"mouseout",function(e){var target=(e=e||window.event).target||e.srcElement;utility.m($this.dropdownContents,function(contentItem){target===contentItem&&$this.closeDropdown(utility.F(contentItem),contentItem)})})},Dropdown.prototype.setActive=function(target){var $this=this;"string"==typeof target&&(target=document.querySelectorAll(target)),utility.n($this.options.selector,function(buttonElem,index){var dropdownItem=$this.dropdownContents[index],dropdownHeight=$this.dropdownContentHeights[index],isCollapse="0px"===dropdownItem.style.height,dropdownTarget=target===dropdownItem||target.parentNode===dropdownItem||target.parentNode.parentNode===dropdownItem?dropdownItem:null;(buttonElem.nextElementSibling||utility.D(buttonElem))&&(target===buttonElem||target.parentNode===buttonElem||target.parentNode.parentNode===buttonElem?isCollapse?$this.openDropdown(buttonElem,dropdownItem,dropdownHeight):$this.closeDropdown(buttonElem,dropdownItem):(isCollapse||!dropdownTarget||$this.options.hideDropdownOnClick)&&($this.options.hideDropdownOnClickOutside||isCollapse||dropdownTarget)?isCollapse||$this.closeDropdown(buttonElem,dropdownItem):$this.openDropdown(buttonElem,dropdownItem,dropdownHeight))})},Dropdown.prototype.openDropdown=function(dropdownButton,dropdownContent,dropdownContentHeight){dropdownContent.style.height=dropdownContentHeight+"px",utility.a(dropdownButton,"active"),utility.a(dropdownContent,"active")},Dropdown.prototype.closeDropdown=function(dropdownButton,dropdownContent){dropdownContent.style.height=0,utility.H(dropdownButton,"active"),utility.H(dropdownContent,"active")};var script_LanguageComponent=function(){function LanguageComponent(){}return LanguageComponent.prototype.onLoad=function(element,attachments){var _this=this;this.element=element,this.attachments=attachments,this.getLanguage(),router.on(router_Router.afterNavigate,function(event){_this.refreshLanguage()})},LanguageComponent.prototype.onReload=function(element,attachments){this.element=element,this.attachments=attachments,this.getLanguage()},LanguageComponent.prototype.generateLanguageUrl=function(element,attachments){var wrapper=element.querySelector(".language-switcher");if(wrapper){new Dropdown({selector:".lang-btn",hideDropdownOnClick:!0,arrowTop:!0}).init(),wrapper.getElementsByTagName("ul")[0].style.opacity="1";for(var _i=0,langDropdownList_1=wrapper.querySelectorAll("li");_i<langDropdownList_1.length;_i++){langDropdownList_1[_i].onclick=function(e){utility.E(e);var selectedLang=this.getAttribute("data-lang"),alternateLang=this.getAttribute("data-alternate-lang");if(attachments.isApiCall){var domain="."+window.location.hostname.split(".").slice(-2).join(".");utility.O("language",alternateLang,null,"/",domain)}var hostname=window.location.hostname,regexp=new RegExp(hostname+"/"+attachments.currentLanguage+"(/?.*)$","i"),redirectionUrl=window.location.href.replace(regexp,hostname+"/"+selectedLang+"$1");manager.broadcast("language.change"),utility.O("mhlanguage",selectedLang,null,"/"),window.location.href=redirectionUrl,router.navigate(redirectionUrl,["*"],{language:selectedLang})}}}},LanguageComponent.prototype.refreshLanguage=function(){var product=manager.getAttribute("site-product");this.product!==product&&(this.product=product,manager.refreshComponent("language"))},LanguageComponent.prototype.getLanguage=function(){var _this=this;reqwest({url:router.generateRoute("language","language"),type:"json"}).then(function(response){_this.languageData=response,_this.processLanguage()})},LanguageComponent.prototype.processLanguage=function(){this.generateLanguageMarkup(this.languageData),this.product=manager.getAttribute("site-product"),this.generateLanguageUrl(this.element,this.attachments)},LanguageComponent.prototype.generateLanguageMarkup=function(data){var currentId,currentPrefix,language=this.element.querySelector(".language-switcher"),languageList=[];for(var langKey in data.language)if(data.language.hasOwnProperty(langKey)){var lang=data.language[langKey];lang.prefix===data.currentLanguage?(currentId=lang.id,currentPrefix=lang.prefix):languageList.push(lang)}var template=language_handlebars({currentLangId:currentId,currentLangPrefix:currentPrefix,languageData:languageList});language.innerHTML=template},LanguageComponent}();function utils_modal_Modal(options){var defaults={beforeOpen:null,beforeClose:null,afterOpen:null,afterClose:null};for(var name in options=options||{},defaults)void 0===options[name]&&(options[name]=defaults[name]);this.show=function(id){"function"==typeof options.beforeOpen&&options.beforeOpen();var element=document.getElementById(id);utility.a(element,"modal-active"),utility.x(document,"show.util.modal"),"function"==typeof options.afterOpen&&options.afterOpen()},this.hide=function(id){"function"==typeof options.beforeClose&&options.beforeClose();var element=document.getElementById(id);utility.H(element,"modal-active"),document.body.style.overflow="inherit",utility.x(document,"hide.util.modal"),"function"==typeof options.afterClose&&options.afterClose()}}var bLazy,floating_banner_lightbox_handlebars=__webpack_require__(59),floating_banner_lightbox_handlebars_default=__webpack_require__.n(floating_banner_lightbox_handlebars),floating_banner_handlebars=__webpack_require__(60),floating_banner_handlebars_default=__webpack_require__.n(floating_banner_handlebars),script_FloatingBannerComponent=function(){function FloatingBannerComponent(){}return FloatingBannerComponent.prototype.onLoad=function(element,attachments){this.element=element,this.attachments=attachments,this.floatBannerPositionClose="-290px",this.floatBannerPositionOpen="0px",this.floatingBanner(),this.listenModalTrigger()},FloatingBannerComponent.prototype.onReload=function(element,attachments){this.onLoad(element,attachments)},FloatingBannerComponent.prototype.floatingBanner=function(){var _this=this;reqwest({url:router.generateRoute("floating_banner","getFloatingBanner"),type:"json",data:{route:manager.getAttribute("route")}}).then(function(response){var data={data:response,lang:_this.attachments.lang},lightboxModals=new utils_modal_Modal,floatingBannerContainer=document.querySelector(".floating-banners-container"),v2IsEnabled=response.v2,atLeastOnedesktopItemrExists=!1;if(utility.m(response.items,function(item){"desktop"===item.field_platform[0].value&&Object.keys(item.field_banner_item).length>0&&(atLeastOnedesktopItemrExists=!0)}),v2IsEnabled&&atLeastOnedesktopItemrExists){var modalContainer=document.querySelector("#floating-banner-revamp");if(modalContainer){modalContainer.innerHTML=floating_banner_lightbox_handlebars_default()(data),_this.filterVisibility(modalContainer,".floating-banner-item");var title=document.querySelector(".floating-banner-lightbox-title");if(title){var titles=title.querySelectorAll("span");titles.length>1&&titles[0].append("&")}var downloads=document.querySelector(".floating-banner-lightbox-content-downloads"),helpCenter=document.querySelector(".floating-banner-lightbox-content-help-center");if(document.querySelector(".floating-banners-title").querySelector("h1").innerHTML=title.querySelector("h1").innerHTML,downloads&&helpCenter)_this.addSeparator(downloads);else if(downloads)document.querySelector(".phone").remove(),document.querySelector(".slash").remove();else{if(!helpCenter)return!1;document.querySelector(".download").remove(),document.querySelector(".slash").remove()}document.querySelector(".floating-banners-container").style.display="block"}utility.b(floatingBannerContainer,"click",function(event){document.querySelector("#floatingBannerLightbox .modal-close").addEventListener("click",function(ev){ev.preventDefault(),ev.stopPropagation(),modal_modal.close("#floatingBannerLightbox")}),event.preventDefault(),lightboxModals.show("floatingBannerLightbox")})}else{var wrapper=_this.element.querySelector(".floating-banner-container");wrapper&&(wrapper.innerHTML=floating_banner_handlebars_default()(data),_this.filterVisibility(wrapper),_this.activateSlider(),utility.R(document,"modal_init"))}floatingBannerContainer&&!atLeastOnedesktopItemrExists&&document.querySelector(".floating-banners-container").remove()})},FloatingBannerComponent.prototype.addSeparator=function(element){var separator=document.createElement("div");separator.className="floating-banner-lightbox-content-separator",separator.innerHTML="&nbsp",element.after(separator)},FloatingBannerComponent.prototype.filterVisibility=function(element,bannerElements){void 0===bannerElements&&(bannerElements=".floating-banner");var floatingBanner=this.element.querySelector(".floating-banner-container"),platform=floatingBanner.getAttribute("data-device-view"),os=floatingBanner.getAttribute("data-device-os"),banners=element.querySelectorAll(bannerElements);utility.m(banners,function(value){var bannerPlatform=value.getAttribute("data-device-platform"),bannerOS=value.getAttribute("data-device-os");if(bannerPlatform&&bannerPlatform!==platform&&(value.style.display="none"),os){var pattern=new RegExp(os,"i");bannerOS&&pattern.test(bannerOS)&&(value.style.display="none")}})},FloatingBannerComponent.prototype.activateSlider=function(){var _this=this;setTimeout(function(){_this.slideBanner("left")},50),setTimeout(function(){_this.slideBanner("right")},50)},FloatingBannerComponent.prototype.slideBanner=function(position){var _this=this,banners=this.element.querySelector(".floating-banner-container").querySelectorAll(".floating-banner--"+position);utility.m(banners,function(floatBanner){var floatBannerButton=floatBanner.querySelector(".floating-banner--title"),floatBannerDrawer=floatBanner.querySelector(".floating-banner--items"),floatBannerDrawerWrapper=floatBanner.querySelector(".floating-banner--title-wrapper");floatBanner.style.opacity="1",Object(browser_detect.a)()&&utility.a(floatBannerButton,"ie"+Object(browser_detect.a)());var items="";if(utility.v(floatBannerDrawerWrapper,"floating-banner--align__right")){var floatingBannerTitle=floatBannerButton.innerHTML,titleString=floatingBannerTitle.split(/(\s+)/);titleString=utility.i(titleString,function(e){return e.trim().length>0}),floatingBannerTitle=String(titleString).replace(/,/g," "),utility.m(floatingBannerTitle,function(item){items+=item+="<br>"}),floatBannerButton.innerHTML=items}floatBannerDrawer&&(floatBanner.style[position]=_this.floatBannerPositionClose,utility.a(floatBannerDrawer,"close"),utility.a(floatBannerButton,"close"),utility.a(floatBanner,"close"),"ontouchstart"in window?utility.b(floatBanner,"click",function(){utility.v(floatBanner,"open")?_this.floatBannerToggle(floatBannerDrawer,floatBannerButton,floatBanner,position,"close"):_this.floatBannerToggle(floatBannerDrawer,floatBannerButton,floatBanner,position,"open")}):utility.b(floatBanner,"mouseover",function(){_this.floatBannerToggle(floatBannerDrawer,floatBannerButton,floatBanner,position,"open")}),utility.b(floatBanner,"mouseout",function(){_this.floatBannerToggle(floatBannerDrawer,floatBannerButton,floatBanner,position,"close")}))})},FloatingBannerComponent.prototype.floatBannerToggle=function(floatBannerDrawer,floatBannerButton,floatBanner,position,state){floatBanner.style[position]="open"===state?this.floatBannerPositionOpen:this.floatBannerPositionClose,utility.H(floatBanner,"open"===state?"close":"open"),utility.a(floatBanner,"open"!==state?"close":"open"),utility.H(floatBannerDrawer,"open"===state?"close":"open"),utility.a(floatBannerDrawer,"open"!==state?"close":"open"),utility.H(floatBannerButton,"open"===state?"close":"open"),utility.a(floatBannerButton,"open"!==state?"close":"open")},FloatingBannerComponent.prototype.listenModalTrigger=function(){utility.b(this.element,"click",function(e){for(var target=e.target||e.srcElement;target&&"A"!==target.tagName;)target=target.parentNode;utility.n(".modal-trigger",function(elem){target===elem&&(event.preventDefault(),modal_modal.open(elem.getAttribute("href")))})})},FloatingBannerComponent}(),script_PromotionsNodeComponent=function(){function PromotionsNodeComponent(){}return PromotionsNodeComponent.prototype.onLoad=function(element,attachments){this.getCountdown(element,attachments.countdown),this.componentFinish(element)},PromotionsNodeComponent.prototype.onReload=function(element,attachments){this.getCountdown(element,attachments.countdown),this.componentFinish(element)},PromotionsNodeComponent.prototype.getCountdown=function(element,countdownFormat){if(element.querySelector(".countdown-text")){var endTime=element.querySelector(".countdown-text").getAttribute("data-end-time");if(endTime){var startTime=(new Date).getTime(),timeDiff=(new Date(endTime).getTime()-startTime)/1e3;if(timeDiff>0){var elapsed={days:Math.floor(timeDiff/86400),hours:Math.floor(timeDiff/3600%24)};if(elapsed.days>0||elapsed.hours>0){var elapsedStr=countdownFormat.replace("[days]",elapsed.days).replace("[hours]",elapsed.hours);element.querySelector(".countdown-text").innerHTML=elapsedStr,utility.H(element.querySelector(".promotions-body-banner-scheduler"),"hidden")}}}}},PromotionsNodeComponent.prototype.componentFinish=function(element){manager.broadcast("token.parse",{element:element,method:"parseLink",selector:"[href*=ticket\\.token]"})},PromotionsNodeComponent}(),script_BasicPageComponent=function(){function BasicPageComponent(){}return BasicPageComponent.prototype.onLoad=function(element,attachments){this.element=element,this.events={},this.highlightMenu(),this.highlightQuickNavMenu(),this.equalizeStickyHeight(),this.accordion(element)},BasicPageComponent.prototype.onReload=function(element,attachments){this.element=element,void 0===this.events&&(this.events={}),this.highlightMenu(),this.highlightQuickNavMenu(),this.equalizeStickyHeight(),this.accordion(element)},BasicPageComponent.prototype.equalizeStickyHeight=function(){new equal_height(".sticky-box").init()},BasicPageComponent.prototype.accordion=function(element){new accordion_accordion(element,{collapsible:!0})},BasicPageComponent.prototype.highlightQuickNavMenu=function(){var _this=this;this.checkEvent("tab_nav.ready")&&manager.subscribe("tab_nav.ready",function(event,target,data){data.ready&&_this.broadcastQuickNavKey()})},BasicPageComponent.prototype.broadcastQuickNavKey=function(){var quickNavKey=this.element.querySelector(".node-basic-page").getAttribute("data-quick-nav-key");manager.broadcast("tab_nav.highlight",{menu:quickNavKey})},BasicPageComponent.prototype.checkEvent=function(key){return!this.events.hasOwnProperty(key)&&(this.events[key]=key,!0)},BasicPageComponent.prototype.chechIfLoaded=function(){window.localStorage&&(localStorage.getItem("firstLoad")?localStorage.removeItem("firstLoad"):(localStorage.firstLoad=!0,window.location.reload()))},BasicPageComponent.prototype.highlightMenu=function(){var productClass=manager.getAttribute("product").replace("mobile","product");setTimeout(function(){manager.broadcast("menu.highlight",{menu:productClass})},200)},BasicPageComponent}(),BlankPageComponent=function(){function BlankPageComponent(){}return BlankPageComponent.prototype.onLoad=function(element,attachments){},BlankPageComponent.prototype.onReload=function(element,attachments){},BlankPageComponent}(),script_InnerPageComponent=function(){function InnerPageComponent(){}return InnerPageComponent.prototype.onLoad=function(element,attachments){this.element=element,this.events={},this.highlightMenu(),this.highlightQuickNavMenu(),this.equalizeStickyHeight(),this.accordion(element)},InnerPageComponent.prototype.onReload=function(element,attachments){this.element=element,void 0===this.events&&(this.events={}),this.highlightMenu(),this.highlightQuickNavMenu(),this.equalizeStickyHeight(),this.accordion(element)},InnerPageComponent.prototype.equalizeStickyHeight=function(){new equal_height(".sticky-box").init()},InnerPageComponent.prototype.accordion=function(element){new accordion_accordion(element,{collapsible:!0})},InnerPageComponent.prototype.highlightQuickNavMenu=function(){var _this=this;this.checkEvent("tab_nav.ready")&&manager.subscribe("tab_nav.ready",function(event,target,data){data.ready&&_this.broadcastQuickNavKey()})},InnerPageComponent.prototype.broadcastQuickNavKey=function(){var quickNavKey=this.element.querySelector(".node-inner-page").getAttribute("data-quick-nav-key");manager.broadcast("tab_nav.highlight",{menu:quickNavKey})},InnerPageComponent.prototype.checkEvent=function(key){return!this.events.hasOwnProperty(key)&&(this.events[key]=key,!0)},InnerPageComponent.prototype.highlightMenu=function(){var productClass=manager.getAttribute("product").replace("mobile","product");setTimeout(function(){manager.broadcast("menu.highlight",{menu:productClass})},200)},InnerPageComponent}(),Blazy=__webpack_require__(90);utility.G(function(){setTimeout(function(){var doc=document.body,docElem=document.documentElement,scrollX=void 0!==window.pageXOffset?window.scrollX||window.pageXOffset:(docElem||doc.parentNode||doc).scrollLeft,scrollY=void 0!==window.pageYOffset?window.scrollY||window.pageYOffset:(docElem||doc.parentNode||doc).scrollTop;window.scrollTo(scrollX,scrollY+1),window.scrollTo(scrollX,scrollY-1)},500)});var mobileMenu=document.querySelector(".btn-lazy-load");function initBlazy(){bLazy=new Blazy({successClass:"lazy-loaded",selector:".lazy-load"})}mobileMenu&&mobileMenu.addEventListener("click",function(){setTimeout(function(){bLazy.revalidate()},100)},!0),window.addEventListener("resize",function(){initBlazy()},!0),setTimeout(function(){bLazy.revalidate()},2e3),initBlazy();var menu_handlebars=__webpack_require__(61),menu_revamp_handlebars=__webpack_require__(62),dafaconnect=new(function(){function DafaConnect(){}return DafaConnect.prototype.isDafaconnect=function(){return navigator.userAgent.match("DafaConnect")},DafaConnect}()),back_to_top=function(){function BacktoTop(element){this.element=element,this.trigger=this.element.querySelector(".back-to-top")}return BacktoTop.prototype.bindEvent=function(){var _this=this;utility.b(window,"scroll",function(){document.body.scrollTop+document.documentElement.scrollTop>200?utility.H(_this.trigger,"hide"):utility.a(_this.trigger,"hide")}),utility.b(this.trigger,"click",function(){utility.N(document.body,600)})},BacktoTop.prototype.init=function(){this.bindEvent()},BacktoTop}(),script_FooterComponent=function(){function FooterComponent(){}return FooterComponent.prototype.onLoad=function(element,attachments){var _this=this;this.element=element,this.getFooter(),this.activeBackToTop(element),router.on(router_Router.afterNavigate,function(event){_this.refreshFooter()})},FooterComponent.prototype.onReload=function(element,attachments){this.element=element,this.getFooter(),this.activeBackToTop(element),this.refreshFooter()},FooterComponent.prototype.getOriginalUrl=function(){var menu=this.element.querySelector(".footer-desktop");menu&&(-1!==menu.getAttribute("href").indexOf("@product")&&(this.originalUrl=menu.getAttribute("href")))},FooterComponent.prototype.attachProduct=function(){var product=manager.getAttribute("product"),menu=this.element.querySelector(".footer-desktop");if(menu&&this.originalUrl){var url=this.originalUrl;-1!==url.indexOf("@product")&&(url="faqs"!==product?url.replace("@product",product.replace("mobile-","")):url.replace("@product","")),menu.setAttribute("href",url)}},FooterComponent.prototype.refreshFooter=function(){var product=manager.getAttribute("product");this.product!==product&&(this.product=product,manager.refreshComponent("footer"))},FooterComponent.prototype.getFooter=function(){var _this=this;reqwest({url:router.generateRoute("footer","footer"),type:"json"}).then(function(response){_this.footerData=response,_this.generateFooterMarkup(_this.footerData),_this.getOriginalUrl(),_this.attachProduct()})},FooterComponent.prototype.generateFooterMarkup=function(data){if(1===(data=this.procesFooterMenu(data)).enable_new_style){var footer=this.element.querySelector("#footer-menu"),templateFooter=menu_handlebars({footerData:data,footerMenuClass:data.quicklinks.length<=5?"footer-quicklinks-small":"footer-quicklinks-large"});footer.innerHTML=templateFooter}else{var footerEls=this.element.querySelectorAll(".footer-quicklinks-menu"),templateFooterrevamp=menu_revamp_handlebars({footerData:data});for(var key in footerEls){if(footerEls.hasOwnProperty(key))footerEls[key].innerHTML=templateFooterrevamp}}},FooterComponent.prototype.procesFooterMenu=function(data){var menus=[];for(var menu in data.footer_menu)if(data.footer_menu.hasOwnProperty(menu)){var element=data.footer_menu[menu];(!dafaconnect.isDafaconnect()||dafaconnect.isDafaconnect()&&!element.attributes.class.match("footer-desktop"))&&menus.push(element)}return data.footer_menu=menus,data},FooterComponent.prototype.activeBackToTop=function(element){new back_to_top(element).init()},FooterComponent}(),mobile_language_handlebars_handlebars=__webpack_require__(63),script_MobileLanguageComponent=function(){function MobileLanguageComponent(){}return MobileLanguageComponent.prototype.onLoad=function(element,attachments){var _this=this;this.isLogin=attachments.authenticated,this.matrix=attachments.matrix,this.element=element,this.attachments=attachments,this.getLanguage(),manager.subscribe("session.login",function(event,target,data){_this.isLogin=!0,_this.matrix=data.response.matrix}),manager.subscribe("session.logout",function(event,target,data){_this.isLogin=!1,_this.matrix=!1})},MobileLanguageComponent.prototype.onReload=function(element,attachments){this.element=element,this.attachments=attachments,this.getLanguage()},MobileLanguageComponent.prototype.generateLanguageUrl=function(element,currentLanguage){var wrapper=element.querySelector("#language-lightbox");wrapper&&utility.C(wrapper,"click",function(event,src){if(utility.v(src,"language-link")){event.preventDefault();var selectedLang=src.getAttribute("data-lang"),hostname=window.location.hostname,regexp=new RegExp(hostname+"/"+currentLanguage+"(/?.*)$","i"),redirectionUrl=window.location.href.replace(regexp,hostname+"/"+selectedLang+"$1");modal_modal.close("#language-lightbox"),manager.broadcast("language.change"),window.location.href=redirectionUrl}})},MobileLanguageComponent.prototype.bindLanguageLightbox=function(){manager.subscribe("click",function(event,src){src&&utility.v(src,"language-trigger",!0)&&(event.preventDefault(),modal_modal.open("#language-lightbox"))})},MobileLanguageComponent.prototype.getLanguage=function(){var _this=this,product=manager.getAttribute("product"),url=router.generateRoute("language","language"),uri=utility.d(url,"product",product);reqwest({url:uri,type:"json"}).then(function(response){_this.languageData=response,_this.processLanguage()})},MobileLanguageComponent.prototype.processLanguage=function(){this.generateLanguageMarkup(this.languageData),this.product=manager.getAttribute("product"),this.generateLanguageUrl(this.element,this.attachments.currentLanguage),this.bindLanguageLightbox()},MobileLanguageComponent.prototype.generateLanguageMarkup=function(data){var languageList,language=this.element.querySelector("#language"),langListArray=[],latam=["es","pt-br"];for(var langKey in data.language)if(data.language.hasOwnProperty(langKey)){var lang=data.language[langKey];if(this.matrix&&latam.includes(lang.id))continue;lang.hide||langListArray.push(lang)}var mid=Math.ceil(langListArray.length/2);languageList={left:langListArray.splice(0,mid),right:langListArray};var template=mobile_language_handlebars_handlebars({languageData:languageList,languageTitle:data.mobile_language_select?data.mobile_language_select:"Select Language",currentLanguage:data.currentLanguage});language.innerHTML=template},MobileLanguageComponent}(),script_LobbyComponent=function(){function LobbyComponent(){this.isLogin=!1,this.productDirectIntegration=[],this.loader=new loader_Loader(document.body,!0)}return LobbyComponent.prototype.onLoad=function(element,attachments){var _this=this;this.isLogin=attachments.authenticated,this.productAlias=attachments.product_alias,this.productDirectIntegration=attachments.product_direct_integration,manager.subscribe("session.prelogin",function(event,src,data){_this.isLogin=!0}),manager.subscribe("session.logout",function(event){_this.isLogin=!1}),this.listenCasinoGoldRedirect(),this.doLoginProcess(element),this.integrateProduct(element)},LobbyComponent.prototype.onReload=function(element,attachments){this.isLogin=attachments.authenticated,this.productAlias=attachments.product_alias,this.productDirectIntegration=attachments.product_direct_integration,this.doLoginProcess(element),this.integrateProduct(element)},LobbyComponent.prototype.doLoginProcess=function(element){if("/login"===router.route()){var product=utility.s("product")?utility.s("product"):"faqs",productCode=product;for(var originalProduct in this.productAlias){if(this.productAlias.hasOwnProperty(originalProduct))this.productAlias[originalProduct].includes(product)&&(productCode=originalProduct)}manager.broadcast("direct.login",{srcElement:element,productCode:productCode})}},LobbyComponent.prototype.integrateProduct=function(element){var product=manager.getAttribute("product");if(this.productDirectIntegration&&this.productDirectIntegration.hasOwnProperty(product)){var productCode=this.productDirectIntegration[product];productCode&&manager.broadcast("integrate.product",{srcElement:element,productCode:productCode})}},LobbyComponent.prototype.listenCasinoGoldRedirect=function(){manager.subscribe("redirect.postlogin.casino-gold",function(event,src,data){data.loader.hide()})},LobbyComponent}(),script_ProductsComponent=function(){function ProductsComponent(){}return ProductsComponent.prototype.onLoad=function(element,attachments){this.element=element,this.equalizeProductHeight(),this.componentFinish()},ProductsComponent.prototype.onReload=function(element,attachments){this.element||this.listenToPartnerMatrixFilter(),this.element=element,this.equalizeProductHeight(),this.componentFinish()},ProductsComponent.prototype.productsReady=function(){manager.broadcast("home.products.ready")},ProductsComponent.prototype.equalizeProductHeight=function(){new equal_height(".product-box").init()},ProductsComponent.prototype.componentFinish=function(){manager.broadcast("token.parse",{element:this.element,method:"parseLink",selector:"[href*=ticket\\.token]"})},ProductsComponent.prototype.listenToPartnerMatrixFilter=function(){var _this=this;manager.subscribe("post.login.partner.matrix.filter",function(event,target,data){var products=_this.element.querySelectorAll(".home-display li a");for(var productMenu in products)if(products.hasOwnProperty(productMenu)){var instanceID=products[productMenu].getAttribute("data-product-instance-id");data.disabled_products.indexOf(instanceID)>-1&&utility.k(products[productMenu],"li").remove()}_this.element.querySelector("li.product-promotions")&&_this.element.querySelector("li.product-promotions").remove()})},ProductsComponent.prototype.chechIfLoaded=function(){window.localStorage&&(localStorage.getItem("firstLoad")?localStorage.removeItem("firstLoad"):(localStorage.firstLoad=!0,window.location.reload()))},ProductsComponent}(),tab_navigation_handlebars=__webpack_require__(64),script_TabNavigationComponent=function(){function TabNavigationComponent(){this.events={}}return TabNavigationComponent.prototype.onLoad=function(element){var _this=this;this.element=element,this.events={},this.quickNavMenu=[],this.title=document.title,this.product=manager.getAttribute("product"),this.initQuickNav(),manager.subscribe(router_Router.beforeNavigate,function(event,src,data){_this.removeActiveMenuClass()}),manager.subscribe(router_Router.afterNavigate,function(event,src,data){_this.addActiveMenuClass()})},TabNavigationComponent.prototype.onReload=function(element){this.element=element,this.quickNavMenu=[],this.product=manager.getAttribute("product"),this.initQuickNav(),void 0===this.events&&(this.events={})},TabNavigationComponent.prototype.initQuickNav=function(){var _this=this;this.tabNavXhrRequest("quickNav",function(response){_this.quickNavMenu=response,_this.title=response.title,response.quick_nav.length>0&&(_this.populateQuickNavMenu(),_this.broadcastTabNavReady(),_this.equalizeProductHeight(),_this.addActiveMenuClass(),_this.arrowScrollingTiles(),_this.updatePageTitle())})},TabNavigationComponent.prototype.tabNavXhrRequest=function(method,callback){reqwest({url:router.generateRoute("tab_navigation",method),type:"json",data:{product:this.product,keyword:router.route()}}).then(function(response){callback(response)}).fail(function(error,message){console.log(error)})},TabNavigationComponent.prototype.updatePageTitle=function(){"404"===document.title&&(document.title=this.title)},TabNavigationComponent.prototype.equalizeProductHeight=function(){new equal_height(".quick-nav-item").init()},TabNavigationComponent.prototype.populateQuickNavMenu=function(){var template=tab_navigation_handlebars({menus:this.quickNavMenu.quick_nav,router_refresh:JSON.stringify(["main"])});this.element.querySelector(".quick-nav-menu").innerHTML=template},TabNavigationComponent.prototype.addActiveMenuClass=function(){var product="product-"+window.location.href.split("/")[5],menu=document.getElementsByClassName(product)[0];menu.getAttribute("class").includes(product)&&menu.classList.add("active")},TabNavigationComponent.prototype.removeActiveMenuClass=function(){var product="product-"+window.location.href.split("/")[5],menu=document.getElementsByClassName(product)[0];menu.getAttribute("class").includes(product)&&menu.classList.remove("active")},TabNavigationComponent.prototype.broadcastTabNavReady=function(){manager.broadcast("tab_nav.ready",{ready:!0})},TabNavigationComponent.prototype.checkEvent=function(key){return!this.events.hasOwnProperty(key)&&(this.events[key]=key,!0)},TabNavigationComponent.prototype.arrowScrollingTiles=function(){var buttonLeft=document.getElementById("left-slide"),buttonRight=document.getElementById("right-slide"),elementWidth=document.getElementById("quicknav-item").offsetWidth;buttonRight.onclick=function(){document.getElementById("quicknav-slider").scrollLeft+=elementWidth},buttonLeft.onclick=function(){document.getElementById("quicknav-slider").scrollLeft+=-elementWidth}},TabNavigationComponent}(),script_SEOComponent=function(){function SEOComponent(){}return SEOComponent.prototype.onLoad=function(element,attachments){router.on(router_Router.afterNavigate,function(event){manager.refreshComponent("seo")})},SEOComponent.prototype.onReload=function(element,attachments){},SEOComponent}(),dsb_widget_handlebars=__webpack_require__(65),script_CricketComponent=function(){function CricketComponent(){}return CricketComponent.prototype.onLoad=function(element,attachments){this.fetchDsb()},CricketComponent.prototype.onReload=function(element,attachments){},CricketComponent.prototype.fetchDsb=function(){var _this=this,sportsbookUrl=this.createDsbUrl();reqwest({url:sportsbookUrl,type:"json"}).then(function(response){var dsbId={};response.forEach(function(element){var responseResult=element.eventPaths,key=responseResult.slice(-1)[0].id+"|"+responseResult.slice(-1)[0].description,dsbEvents={date:_this.generateMatchDate(element),hours:new Date(element.eventDate).toTimeString().substring(0,5),teamOne:element.markets[0].outcomes[0].description,teamTwo:element.markets[0].outcomes[1].description,priceOne:element.markets[0].outcomes[0].consolidatedPrice.currentPrice.format,priceTwo:element.markets[0].outcomes[1].consolidatedPrice.currentPrice.format};(dsbId[key]=dsbId[key]||[]).push(dsbEvents)});var dsbDataKeys=Object.keys(dsbId).slice(0,3),dsbDataValues=dsbDataKeys.map(function(k){return dsbId[k].slice(0,2)}),dsbDataEvents={dsbDataFirstEvents:dsbDataValues[0],dsbDataSecondEvents:dsbDataValues[1],dsbDataThirdEvents:dsbDataValues[2]},dsbDataFirstEventHeading=dsbDataKeys[0].split("|").pop(),dsbDataSecondEventHeading=dsbDataKeys[1].split("|").pop(),dsbDataThirdEventHeading=dsbDataKeys[2].split("|").pop(),sportsbookButtonText=document.getElementById("sportsbook_button_text").innerText,sportsbookButtonLink=document.getElementById("sportsbook_button_link").innerText,sportsbookButtonTarget=document.getElementById("sportsbook_button_target").innerText;document.getElementById("dsb_widget_preloader").style.display="none",document.getElementById("dsb_widget_error").style.display="none",document.getElementById("dsb_widget_include").style.display="block",_this.generateDsbWidgetMarkup(dsbDataEvents,dsbDataFirstEventHeading,dsbDataSecondEventHeading,dsbDataThirdEventHeading,sportsbookButtonLink,sportsbookButtonText,sportsbookButtonTarget)}).fail(function(){document.getElementById("dsb_widget_preloader").style.display="none",document.getElementById("dsb_widget_include").style.display="none",document.getElementById("dsb_widget_error").style.display="block"})},CricketComponent.prototype.createDsbUrl=function(){var dsbDataUrlText=document.getElementById("sportsbook_api_url").innerText,dateUrlTenDays=new Date,dateUrlNow=new Date;dateUrlTenDays.setDate(dateUrlTenDays.getDate()+10),dateUrlNow.setDate(dateUrlNow.getDate());var todayDate=dateUrlNow.getFullYear()+"-"+(dateUrlNow.getMonth()+1)+"-"+dateUrlNow.getDate(),futureDate=dateUrlTenDays.getFullYear()+"-"+(dateUrlTenDays.getMonth()+1)+"-"+dateUrlTenDays.getDate();return dsbDataUrlText.replace("{dateFrom}",todayDate).replace("{dateTo}",futureDate)},CricketComponent.prototype.generateDsbWidgetMarkup=function(dsbDataEvents,dsbDataFirstEventHeading,dsbDataSecondEventHeading,dsbDataThirdEventHeading,buttonLink,buttonText,buttonTarget){var dsbWidgetDiv=document.getElementById("dsb_widget_include"),template=dsb_widget_handlebars({dsbDataEvents:dsbDataEvents,dsbDataFirstEventHeading:dsbDataFirstEventHeading,dsbDataSecondEventHeading:dsbDataSecondEventHeading,dsbDataThirdEventHeading:dsbDataThirdEventHeading,buttonLink:buttonLink,buttonText:buttonText,buttonTarget:buttonTarget});dsbWidgetDiv.innerHTML=template},CricketComponent.prototype.generateMatchDate=function(matchDate){var getDsbFullMonthName=new Date(matchDate.eventDate).toLocaleString("default",{month:"long"}),getDsbDayInMonth=new Date(matchDate.eventDate).getDate(),todayDay=(new Date).getDate(),tomorrowDay=(new Date).getDate()+1;return todayDay===getDsbDayInMonth?"Today":tomorrowDay===getDsbDayInMonth?"Tomorrow":getDsbDayInMonth+" "+getDsbFullMonthName},CricketComponent}(),script_CricketPageComponent=function(){function CricketPageComponent(){}return CricketPageComponent.prototype.onLoad=function(element,attachments){this.getDsbResults()},CricketPageComponent.prototype.onReload=function(element,attachments){},CricketPageComponent.prototype.getDsbResults=function(){return(new script_CricketComponent).fetchDsb()},CricketPageComponent}();function popup_PopupWindow(url,title,options){var defaults={toolbar:"no",location:"no",directories:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",copyhistory:"no"};for(var name_1 in options=options||{},defaults)void 0===options[name_1]&&(options[name_1]=defaults[name_1]);var template=[];for(var option in options)void 0!==options[option]&&""!==options[option]&&template.push(option+"="+options[option]);if(navigator.standalone||window.matchMedia("(display-mode: standalone)").matches)return window;var popup=window.open(url,title,template.join(","));if(window.focus)try{popup.focus()}catch(e){}return popup}manager.setComponents({access_denied:new script_AccessDeniedComponent,maintenance:new script_MaintenanceComponent,header:new script_HeaderComponent,menu:new script_MenuComponent,meta:new script_MetaComponent,seo:new script_SEOComponent,header_login:new script_LoginComponent,floating_banner:new script_FloatingBannerComponent,announcement:new script_AnnouncementComponent,push_notification:new script_PushNotificationComponent,lobby:new script_LobbyComponent,home_products:new script_ProductsComponent,node:new script_NodeComponent,language:new script_LanguageComponent,language_mobile:new script_MobileLanguageComponent,node_promotions:new script_PromotionsNodeComponent,node_basic_page:new script_BasicPageComponent,node_blank_page:new BlankPageComponent,node_inner_page:new script_InnerPageComponent,footer:new script_FooterComponent,tab_navigation:new script_TabNavigationComponent,cricket:new script_CricketComponent,node_cricket_page:new script_CricketPageComponent});var avaya_Avaya=function(){function Avaya(options,attachments){this.store=new storage.a,this.flag=0,this.avayaStorage="avaya.storage",this.options={},this.storageData={expires:0,token:""},this.attachments=attachments;var defaults={apiUrl:this.attachments.urlPost,validity:1800,timeout:5e3,nonce:!1,preFetch:!1,postFetch:!1,onSuccess:!1,onFail:!1};for(var name_1 in this.options=options||{},defaults)void 0===options[name_1]&&(options[name_1]=defaults[name_1]);this.store.remove(this.avayaStorage)}return Avaya.prototype.setToken=function(token){this.options.nonce=token},Avaya.prototype.setOnSuccess=function(success){this.options.onSuccess=success},Avaya.prototype.setOnFail=function(fail){this.options.onFail=fail},Avaya.prototype.getAvayaToken=function($e){var token;return 1!==this.flag&&(!1===this.options.nonce?(this.store.remove(this.avayaStorage),this.triggerCallback("onFail",["invalid nonce"]),!1):(this.triggerCallback("preFetch",[]),!1!==(token=this.checkStorage())?(this.triggerCallback("onSuccess",[token]),this.flag=0,!1):(this.flag=1,void this.fetchToken())))},Avaya.prototype.fetchToken=function(){var _this=this;reqwest({url:this.options.apiUrl,type:"json",method:"post",contentType:"text/plain",crossOrigin:!0,timeout:this.options.timeout,data:this.options.nonce}).then(function(response){void 0!==response.s?(_this.triggerCallback("onSuccess",[response.s]),_this.storeToken(response.s)):_this.triggerCallback("onFail",["empty token"])}).fail(function(err,msg){_this.triggerCallback("onFail",[err,msg])}).always(function(response){_this.flag=0,_this.triggerCallback("postFetch",[response])})},Avaya.prototype.triggerCallback=function(e,args){"function"==typeof this.options[e]&&this.options[e].apply(this,args)},Avaya.prototype.storeToken=function(jwttoken){this.storageData={expires:1e3*this.options.validity,token:jwttoken},this.store.set(this.avayaStorage,JSON.stringify(this.storageData))},Avaya.prototype.checkStorage=function(){var data=this.storageData;return(new Date).getTime()>=(data=JSON.parse(this.store.get(this.avayaStorage))||data).expires?(this.store.remove(this.avayaStorage),!1):data.token},Avaya}(),script_AvayaModule=function(){function AvayaModule(){this.windowTitle="avayaWindow",this.openBehavior="popup",this.options={}}return AvayaModule.prototype.onLoad=function(attachments){var _this=this;this.baseUrl=attachments.baseUrl,this.options={apiUrl:attachments.urlPost,validity:attachments.validity,nonce:attachments.jwtKey||!1,timeout:attachments.postTimeout||5e3,onSuccess:function(token){_this.updatePopupWindow(utility.d(_this.baseUrl,"s",token))},onFail:function(error){_this.updatePopupWindow(_this.baseUrl)}},this.avayaClass=new avaya_Avaya(this.options,attachments),manager.subscribe("click",function(event,src,data){_this.getAvayaToken(event,src,data)}),manager.subscribe("session.login",function(event,src){_this.setJWT()}),manager.subscribe("session.logout",function(event,src){_this.avayaClass.setToken(!1)}),router.on(router_Router.afterNavigate,function(event){_this.setJWT()})},AvayaModule.prototype.setJWT=function(callback){var _this=this;reqwest({url:router.generateModuleRoute("avaya","jwt"),type:"json"}).then(function(response){_this.avayaClass.setToken(response.jwt);var baseUrl=response.baseUrl;response.vipLevel&&(baseUrl=utility.d(baseUrl,"level",response.vipLevel)),_this.avayaClass.setOnSuccess(function(token){_this.updatePopupWindow(utility.d(baseUrl,"s",token))}),_this.avayaClass.setOnFail(function(error){_this.updatePopupWindow(baseUrl)}),callback&&callback(response)}).fail(function(err,msg){})},AvayaModule.prototype.updatePopupWindow=function(url){try{var updatedUrl=url=this.attachProduct(url);if("about:blank"===this.windowObject.location.href||url!==this.avayaLink||this.windowObject.closed){if(this.urlQryStr)updatedUrl=-1!==url.indexOf("?")?url+"&"+this.urlQryStr:url+"?"+this.urlQryStr;this.dataSrc&&(updatedUrl=updatedUrl.replace("mc-desktop",this.dataSrc)),this.avayaLink=updatedUrl,this.windowObject.location.href=updatedUrl}else this.windowObject.focus()}catch(e){url!==this.avayaLink&&(this.avayaLink=url,this.windowObject.location.href=url),this.windowObject&&this.windowObject.focus()}},AvayaModule.prototype.attachProduct=function(url){var product=manager.getAttribute("product");manager.getAttribute("language");return"entry"!==product?utility.d(url,"product",product):url},AvayaModule.prototype.getAvayaToken=function(event,src,data){var _this=this,target=utility.j(src,function(el){if("A"===el.tagName){var href=el.getAttribute("href");if(href)return-1!==href.indexOf("linkto:avaya")||"true"===el.getAttribute("data-avayalink")}});if(target){if(event.preventDefault(),this.urlQryStr=target.getAttribute("data-parameters")||!1,this.dataSrc=target.getAttribute("data-src")||!1,"_self"===(target=(target=utility.s("target",target.href))||this.openBehavior))this.windowObject=window;else if("_blank"===target)this.windowObject=window.open("","_blank");else{var title=utility.s("title",target.href);title=title||this.windowTitle;var prop=this.popUpProperties(target);try{this.windowObject&&!this.windowObject.closed&&"about:blank"!==this.windowObject.location.href?this.windowObject.focus():this.windowObject=popup_PopupWindow("",title,prop)}catch(e){this.windowObject&&this.windowObject.focus()}}this.setJWT(function(response){return _this.avayaClass.getAvayaToken(target),!1})}},AvayaModule.prototype.popUpProperties=function(target){var defaults={width:360,height:720,scrollbars:1,scrollable:1,resizable:1},properties={};for(var i in defaults)if(defaults.hasOwnProperty(i)){var property=utility.s(i,target.href)||defaults[i];properties[i]=property}return properties},AvayaModule}();function Counter(seconds,options){var $storage,$counter,$this=this;function count(){var elapsed=$storage.get("elapsed");switch(elapsed+=1,$storage.set("elapsed",elapsed),!0){case elapsed>=seconds:"function"==typeof options.onBeforeStop&&options.onBeforeStop($this),$this.stop()}"function"==typeof options.onCount&&options.onCount($this,elapsed)}!function(){var defaults={refresh:1e3,storage:new VariableStorage,onCount:!1,onReset:!1,onRestart:!1,onBeforeStop:!1,onStop:!1};for(var name in options=options||{},defaults)void 0===options[name]&&(options[name]=defaults[name]);($storage=options.storage).set("elapsed",0)}(),this.start=function(){$counter=setInterval(count,options.refresh)},this.restart=function(){"function"==typeof options.onRestart&&options.onRestart($this,$storage.get("elapsed")),$this.kill(),$this.start()},this.reset=function(){"function"==typeof options.onReset&&options.onReset($this,$storage.get("elapsed")),$storage.set("elapsed",0)},this.kill=function(){clearInterval($counter),$storage.set("elapsed",0)},this.stop=function(){clearInterval($counter),"function"==typeof options.onStop&&options.onStop($this)}}function VariableStorage(){var $store={};this.get=function(index){if(void 0!==$store[index])return $store[index]},this.set=function(index,value){return $store[index]=value},this.remove=function(index){void 0!==$store[index]&&delete $store[index]}}var console_console=new function(){this.items=[],this.push=function(key,value,group){utility.x(document,"console.push",{key:key,value:value,group:group}),this.items.push({key:key,value:value,group:group})},this.getItems=function(){return this.items}};window.utilConsole=console_console;var session_Session=function(){function Session(timeout){void 0===timeout&&(timeout=300);var _this=this;this.timeout=timeout,this.counter=new Counter(timeout,{onCount:function(counter,time){_this.onCounterCount(counter,time)},onRestart:function(){_this.onCounterRestart()},onStop:function(){_this.onCounterStop()}})}return Session.prototype.init=function(){this.counter.start(),this.attachEvents()},Session.prototype.restart=function(){this.counter.restart()},Session.prototype.stop=function(){this.counter.kill()},Session.prototype.onCounterRestart=function(){console_console.push("Session Module","Starting session count with "+this.timeout+" seconds")},Session.prototype.onCounterStop=function(){manager.broadcast("session.logout"),console_console.push("Session Module","Session has been terminated")},Session.prototype.onCounterCount=function(counter,time){},Session.prototype.attachEvents=function(){var _this=this;utility.G(function(){_this.counter.restart()}),manager.subscribe("session.login",function(event){_this.counter.restart()}),manager.subscribe("session.logout",function(event){_this.counter.kill()}),manager.subscribe("click",function(event){_this.counter.reset()}),manager.subscribe("scroll",function(event){_this.counter.reset()}),manager.subscribe("keypress",function(event){_this.counter.reset()}),manager.subscribe("touchstart",function(event){_this.counter.reset()})},Session}(),script_SessionModule=function(){function SessionModule(){this.isSessionStarted=!1,this.isLogin=!1,this.hasLogout=!1}return SessionModule.prototype.onLoad=function(attachments){var _this=this,timeout=attachments.timeout?attachments.timeout:15;this.session=new session_Session(60*timeout),attachments.authenticated&&(this.enableSession(),this.isLogin=!0,this.hash=attachments.hash),manager.subscribe("session.login",function(event,src,data){_this.enableSession()}),manager.subscribe("session.prelogin",function(event,src,data){_this.isLogin=!0,_this.hash=data.response.hash}),manager.subscribe("session.logout",function(event,src){_this.isLogin=!1,_this.hasLogout=!0}),router.setOption("process-url-generators",function(url,type){_this.isLogin&&(url=utility.d(url,"authenticated","true"),_this.hash&&(url=utility.d(url,"hash",_this.hash))),_this.hasLogout&&(url=utility.d(url,"authenticated","false"));var affiliates=utility.q("affiliates");return affiliates&&(url=utility.d(url,"aff",utility.o(affiliates))),url})},SessionModule.prototype.enableSession=function(){this.isSessionStarted||(this.session.init(),this.isSessionStarted=!0)},SessionModule}(),web_rtc_WebRtc=function(){function WebRtc(options,attachments){this.store=new storage.a,this.flag=0,this.webrtcStorage="webrtc.storage",this.options={},this.storageData={expires:0,token:""},this.attachments=attachments;var defaults={apiUrl:this.attachments.urlPost,validity:1800,timeout:5e3,nonce:!1,preFetch:!1,postFetch:!1,onSuccess:!1,onFail:!1};for(var name_1 in this.options=options||{},defaults)void 0===options[name_1]&&(options[name_1]=defaults[name_1]);this.store.remove(this.webrtcStorage)}return WebRtc.prototype.setToken=function(token){this.options.nonce=token},WebRtc.prototype.setOnSuccess=function(success){this.options.onSuccess=success},WebRtc.prototype.setOnFail=function(fail){this.options.onFail=fail},WebRtc.prototype.getWebRtcToken=function($e){var token;return 1!==this.flag&&(!1===this.options.nonce?(this.store.remove(this.webrtcStorage),this.triggerCallback("onFail",["invalid nonce"]),!1):(this.triggerCallback("preFetch",[]),!1!==(token=this.checkStorage())?(this.triggerCallback("onSuccess",[token]),this.flag=0,!1):(this.flag=1,void this.fetchToken())))},WebRtc.prototype.fetchToken=function(){var _this=this;reqwest({url:this.options.apiUrl,type:"json",method:"post",contentType:"text/plain",crossOrigin:!0,timeout:this.options.timeout,data:this.options.nonce}).then(function(response){void 0!==response.s?(_this.triggerCallback("onSuccess",[response.s]),_this.storeToken(response.s)):_this.triggerCallback("onFail",["empty token"])}).fail(function(err,msg){_this.triggerCallback("onFail",[err,msg])}).always(function(response){_this.flag=0,_this.triggerCallback("postFetch",[response])})},WebRtc.prototype.triggerCallback=function(e,args){"function"==typeof this.options[e]&&this.options[e].apply(this,args)},WebRtc.prototype.storeToken=function(jwttoken){this.storageData={expires:1e3*this.options.validity,token:jwttoken},this.store.set(this.webrtcStorage,JSON.stringify(this.storageData))},WebRtc.prototype.checkStorage=function(){var data=this.storageData;return(new Date).getTime()>=(data=JSON.parse(this.store.get(this.webrtcStorage))||data).expires?(this.store.remove(this.webrtcStorage),!1):data.token},WebRtc}(),script_WebRtcModule=function(){function WebRtcModule(){this.windowTitle="WebrtcWindow",this.openBehavior="popup",this.options={}}return WebRtcModule.prototype.onLoad=function(attachments){var _this=this;this.options={apiUrl:attachments.urlPost,validity:attachments.validity,nonce:attachments.jwtKey||!1,timeout:attachments.postTimeout||5e3,webrtcUrl:attachments.webrtcUrl,onSuccess:function(token){_this.updatePopupWindow(utility.d(_this.callUrl,"s",token))},onFail:function(error){_this.updatePopupWindow(_this.callUrl)}},this.webRtcClass=new web_rtc_WebRtc(this.options,attachments),manager.subscribe("click",function(event,src){_this.getWebRtcToken(event,src)}),manager.subscribe("session.login",function(event,src){_this.setJWT()}),manager.subscribe("session.logout",function(event,src){_this.webRtcClass.setToken(!1)}),router.on(router_Router.afterNavigate,function(event){_this.setJWT()})},WebRtcModule.prototype.setJWT=function(callback){var _this=this;reqwest({url:router.generateModuleRoute("web_rtc","jwt"),type:"json"}).then(function(response){_this.webRtcClass.setToken(response.jwt),_this.webRtcClass.setOnSuccess(function(token){var baseUrl=_this.callUrl;response.vipLevel&&(baseUrl=utility.d(baseUrl,"level",response.vipLevel)),_this.updatePopupWindow(utility.d(baseUrl,"s",token))}),_this.webRtcClass.setOnFail(function(error){_this.updatePopupWindow(_this.callUrl)}),callback&&callback(response)}).fail(function(err,msg){})},WebRtcModule.prototype.updatePopupWindow=function(url){try{var updatedUrl=url=this.attachProduct(url);if("about:blank"===this.windowObject.location.href||url!==this.webRtcLink||this.windowObject.closed){if(this.urlQryStr)updatedUrl=-1!==url.indexOf("?")?url+"&"+this.urlQryStr:url+"?"+this.urlQryStr;this.dataSrc&&(updatedUrl=updatedUrl.replace("mc-desktop",this.dataSrc)),this.webRtcLink=updatedUrl;var params=utility.t(window.location.href);if(dafaconnect.isDafaconnect()||params.clientflag)return void window.open(updatedUrl);this.windowObject.location.href=updatedUrl}else this.windowObject.focus()}catch(e){url!==this.webRtcLink&&(this.webRtcLink=url,this.windowObject.location.href=url),this.windowObject&&this.windowObject.focus()}},WebRtcModule.prototype.attachProduct=function(url){var product=manager.getAttribute("product");return"mobile-entrypage"===product?url:"mobile-soda-casino"===product?utility.d(url,"product","ptplus"):utility.d(url,"product",product.replace("mobile-",""))},WebRtcModule.prototype.getWebRtcToken=function(event,src){var _this=this,target=utility.j(src,function(el){if("A"===el.tagName){var href=el.getAttribute("href");if(href)return-1!==href.indexOf(_this.options.webrtcUrl)}});if(target){event.preventDefault(),this.callUrl=target.href,this.urlQryStr=target.getAttribute("data-parameters")||!1,this.dataSrc=target.getAttribute("data-src")||!1,target=(target=utility.s("target",target.href))||this.openBehavior;var params=utility.t(window.location.href);if("_self"===target)this.windowObject=window;else if("_blank"===target)this.windowObject=window.open("","_blank");else if(dafaconnect.isDafaconnect()||params.clientflag)this.windowObject=window;else{var title=utility.s("title",target.href);title=title||this.windowTitle;var prop=this.popUpProperties(target);try{this.windowObject&&!this.windowObject.closed&&"about:blank"!==this.windowObject.location.href?this.windowObject.focus():this.windowObject=popup_PopupWindow("",title,prop)}catch(e){this.windowObject&&this.windowObject.focus()}}this.setJWT(function(response){return _this.webRtcClass.getWebRtcToken(target),!1})}},WebRtcModule.prototype.popUpProperties=function(target){var defaults={width:360,height:720,scrollbars:1,scrollable:1,resizable:1},properties={};for(var i in defaults)if(defaults.hasOwnProperty(i)){var property=utility.s(i,target.href)||defaults[i];properties[i]=property}return properties},WebRtcModule}(),script_BalanceModule=function(){function BalanceModule(){this.isLogin=!1,this.balanceStatus=!1}return BalanceModule.prototype.onLoad=function(attachments){var _this=this;this.attachments=attachments,this.attachments.authenticated&&(this.isLogin=!0),manager.subscribe("session.prelogin",function(event,src,data){_this.isLogin=!0,_this.balanceStatus=!1}),manager.subscribe("session.logout",function(event,src){_this.isLogin=!1}),manager.subscribe("language.change",function(event,src,data){_this.balanceStatus=!1}),manager.subscribe("balance.return",function(event,src,data){_this.isLogin&&!_this.balanceStatus&&_this.getBalance(data.element)})},BalanceModule.prototype.getBalance=function(element){var accountSection=element.querySelector(".account-section");(utility.v(accountSection,"toggable")?new balance_togglable_BalanceToggle(element,this.attachments):new balance_view_BalanceView(element,this.attachments)).init(),this.balanceStatus=!0},BalanceModule}(),script_TokenParserModule=function(){function TokenParserModule(){var _this=this;this.methods={parseLink:function(element,selector){_this.parseLink(element,selector)}}}return TokenParserModule.prototype.onLoad=function(attachments){var _this=this;attachments.authenticated&&(this.token=attachments.token),manager.subscribe("token.parse",function(event,src,data){_this.methods[data.method](data.element,data.selector)}),manager.subscribe("session.prelogin",function(event,src,data){_this.token=data.response.token}),manager.subscribe("session.logout",function(event,src){_this.token=!1})},TokenParserModule.prototype.parseLink=function(element,selector){var _this=this,els=element.querySelectorAll(selector);els&&els.forEach(function(el){el.href=decodeURIComponent(el.href).replace("{ticket.token}",_this.token)})},TokenParserModule}();manager.setModules({avaya:new script_AvayaModule,session:new script_SessionModule,balance:new script_BalanceModule,web_rtc:new script_WebRtcModule,token_parser:new script_TokenParserModule});var loader_loader=new loader_Loader(document.body,!0);document.body.setAttribute("style",""),"/game/loader"!==router.route()&&loader_loader.show(),manager.subscribe("components.finish",function(){loader_loader.hide()}),router.on(router_Router.beforeNavigate,function(event){loader_loader.show()}),router.on(router_Router.afterNavigate,function(event){loader_loader.hide()}),router.on(router_Router.navigateError,function(event){loader_loader.hide()});var deferredPrompt,browser=__webpack_require__(66).getParser(window.navigator.userAgent);browser.getBrowser();browser.satisfies({chrome:">=20","android browser":">=3.10","samsung internet for android":">=5.2"})?"serviceWorker"in window.navigator&&window.addEventListener("load",function(){var path="",lang="en";utility.q("baseUrl")&&(path=utility.q("baseUrl"),lang=utility.q("mhlanguage")),navigator.serviceWorker.register(path+"/"+lang+"/faqs/js/sw.js")}):document.querySelector("link[rel='manifest']").remove();window.addEventListener("beforeinstallprompt",function(event){event.preventDefault(),deferredPrompt=event}),utility.C(document.body,"click",function(event,src){utility.v(src,"btn-add-to-home",!0)&&deferredPrompt&&(event.preventDefault(),deferredPrompt.prompt(),deferredPrompt.userChoice.then(function(choiceResult){deferredPrompt=null}))});version.a;manager.setOption("module-response-handle-redirect",function(request){window.location.href=request.responseURL}),manager.setOption("module-response-handle-error",function(request){var page=request.getResponseHeader("x-page-error-type");"maintenance"===page?window.location.replace("/maintenance"):"restricted"===page&&window.location.replace("/restricted")}),manager.subscribe(router_Router.navigateError,function(event,src,data){var page;data.response.request&&(page=data.response.request.getResponseHeader("x-page-error-type")),"maintenance"===page?window.location.replace("/maintenance"):"restricted"===page&&window.location.replace("/restricted")}),router.setOption("main-components",["header","seo","main","menu","footer","language","language_mobile","push_notification","announcement","tab_navigation"]),manager.init(),router.init(),modal_modal.listen(".modal-trigger")}]);