https://www.bayard.com.hk/cdn/shop/t/22/assets/vendors-DynamicSear…?v=123854776218772624161759165399
1(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{24:(function(module,exports){module.exports=debounce;function debounce(fn,delay,at_start,guarantee){var timeout,args,self;return function(){if(self=this,args=Array.prototype.slice.call(arguments),timeout&&(at_start||guarantee))return;if(!at_start)return clear(),timeout=setTimeout(run,delay),timeout;timeout=setTimeout(clear,delay),fn.apply(self,args);function run(){clear(),fn.apply(self,args)}function clear(){clearTimeout(timeout),timeout=null}}}}),26:(function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var moneyFormats={USD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"€{{amount}}",money_with_currency_format:"€{{amount}} EUR"},GBP:{money_format:"£{{amount}}",money_with_currency_format:"£{{amount}} GBP"},CAD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} CAD"},ALL:{money_format:"Lek {{amount}}",money_with_currency_format:"Lek {{amount}} ALL"},DZD:{money_format:"DA {{amount}}",money_with_currency_format:"DA {{amount}} DZD"},AOA:{money_format:"Kz{{amount}}",money_with_currency_format:"Kz{{amount}} AOA"},ARS:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} ARS"},AMD:{money_format:"{{amount}} AMD",money_with_currency_format:"{{amount}} AMD"},AWG:{money_format:"Afl{{amount}}",money_with_currency_format:"Afl{{amount}} AWG"},AUD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} AUD"},BBD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} Bds"},AZN:{money_format:"m.{{amount}}",money_with_currency_format:"m.{{amount}} AZN"},BDT:{money_format:"Tk {{amount}}",money_with_currency_format:"Tk {{amount}} BDT"},BSD:{money_format:"BS${{amount}}",money_with_currency_format:"BS${{amount}} BSD"},BHD:{money_format:"{{amount}}0 BD",money_with_currency_format:"{{amount}}0 BHD"},BYR:{money_format:"Br {{amount}}",money_with_currency_format:"Br {{amount}} BYR"},BZD:{money_format:"BZ${{amount}}",money_with_currency_format:"BZ${{amount}} BZD"},BTN:{money_format:"Nu {{amount}}",money_with_currency_format:"Nu {{amount}} BTN"},BAM:{money_format:"KM {{amount_with_comma_separator}}",money_with_currency_format:"KM {{amount_with_comma_separator}} BAM"},BRL:{money_format:"R$ {{amount_with_comma_separator}}",money_with_currency_format:"R$ {{amount_with_comma_separator}} BRL"},BOB:{money_format:"Bs{{amount_with_comma_separator}}",money_with_currency_format:"Bs{{amount_with_comma_separator}} BOB"},BWP:{money_format:"P{{amount}}",money_with_currency_format:"P{{amount}} BWP"},BND:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} BND"},BGN:{money_format:"{{amount}} \u043B\u0432",money_with_currency_format:"{{amount}} \u043B\u0432 BGN"},MMK:{money_format:"K{{amount}}",money_with_currency_format:"K{{amount}} MMK"},KHR:{money_format:"KHR{{amount}}",money_with_currency_format:"KHR{{amount}}"},KYD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} KYD"},XAF:{money_format:"FCFA{{amount}}",money_with_currency_format:"FCFA{{amount}} XAF"},CLP:{money_format:"${{amount_no_decimals}}",money_with_currency_format:"${{amount_no_decimals}} CLP"},CNY:{money_format:"¥{{amount}}",money_with_currency_format:"¥{{amount}} CNY"},COP:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} COP"},CRC:{money_format:"₡ {{amount_with_comma_separator}}",money_with_currency_format:"₡ {{amount_with_comma_separator}} CRC"},HRK:{money_format:"{{amount_with_comma_separator}} kn",money_with_currency_format:"{{amount_with_comma_separator}} kn HRK"},CZK:{money_format:"{{amount_with_comma_separator}} Kč",money_with_currency_format:"{{amount_with_comma_separator}} Kč"},DKK:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"kr.{{amount_with_comma_separator}}"},DOP:{money_format:"RD$ {{amount}}",money_with_currency_format:"RD$ {{amount}}"},XCD:{money_format:"${{amount}}",money_with_currency_format:"EC${{amount}}"},EGP:{money_format:"LE {{amount}}",money_with_currency_format:"LE {{amount}} EGP"},ETB:{money_format:"Br{{amount}}",money_with_currency_format:"Br{{amount}} ETB"},XPF:{money_format:"{{amount_no_decimals_with_comma_separator}} XPF",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} XPF"},FJD:{money_format:"${{amount}}",money_with_currency_format:"FJ${{amount}}"},GMD:{money_format:"D {{amount}}",money_with_currency_format:"D {{amount}} GMD"},GHS:{money_format:"GH₵{{amount}}",money_with_currency_format:"GH₵{{amount}}"},GTQ:{money_format:"Q{{amount}}",money_with_currency_format:"{{amount}} GTQ"},GYD:{money_format:"G${{amount}}",money_with_currency_format:"${{amount}} GYD"},GEL:{money_format:"{{amount}} GEL",money_with_currency_format:"{{amount}} GEL"},HNL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} HNL"},HKD:{money_format:"${{amount}}",money_with_currency_format:"HK${{amount}}"},HUF:{money_format:"{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} Ft"},ISK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr ISK"},INR:{money_format:"Rs. {{amount}}",money_with_currency_format:"Rs. {{amount}}"},IDR:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"Rp {{amount_with_comma_separator}}"},ILS:{money_format:"{{amount}} NIS",money_with_currency_format:"{{amount}} NIS"},JMD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} JMD"},JPY:{money_format:"¥{{amount_no_decimals}}",money_with_currency_format:"¥{{amount_no_decimals}} JPY"},JEP:{money_format:"£{{amount}}",money_with_currency_format:"£{{amount}} JEP"},JOD:{money_format:"{{amount}}0 JD",money_with_currency_format:"{{amount}}0 JOD"},KZT:{money_format:"{{amount}} KZT",money_with_currency_format:"{{amount}} KZT"},KES:{money_format:"KSh{{amount}}",money_with_currency_format:"KSh{{amount}}"},KWD:{money_format:"{{amount}}0 KD",money_with_currency_format:"{{amount}}0 KWD"},KGS:{money_format:"\u043B\u0432{{amount}}",money_with_currency_format:"\u043B\u0432{{amount}}"},LVL:{money_format:"Ls {{amount}}",money_with_currency_format:"Ls {{amount}} LVL"},LBP:{money_format:"L£{{amount}}",money_with_currency_format:"L£{{amount}} LBP"},LTL:{money_format:"{{amount}} Lt",money_with_currency_format:"{{amount}} Lt"},MGA:{money_format:"Ar {{amount}}",money_with_currency_format:"Ar {{amount}} MGA"},MKD:{money_format:"\u0434\u0435\u043D {{amount}}",money_with_currency_format:"\u0434\u0435\u043D {{amount}} MKD"},MOP:{money_format:"MOP${{amount}}",money_with_currency_format:"MOP${{amount}}"},MVR:{money_format:"Rf{{amount}}",money_with_currency_format:"Rf{{amount}} MRf"},MXN:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} MXN"},MYR:{money_format:"RM{{amount}} MYR",money_with_currency_format:"RM{{amount}} MYR"},MUR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} MUR"},MDL:{money_format:"{{amount}} MDL",money_with_currency_format:"{{amount}} MDL"},MAD:{money_format:"{{amount}} dh",money_with_currency_format:"Dh {{amount}} MAD"},MNT:{money_format:"{{amount_no_decimals}} ₮",money_with_currency_format:"{{amount_no_decimals}} MNT"},MZN:{money_format:"{{amount}} Mt",money_with_currency_format:"Mt {{amount}} MZN"},NAD:{money_format:"N${{amount}}",money_with_currency_format:"N${{amount}} NAD"},NPR:{money_format:"Rs{{amount}}",money_with_currency_format:"Rs{{amount}} NPR"},ANG:{money_format:"ƒ{{amount}}",money_with_currency_format:"{{amount}} NAƒ"},NZD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} NZD"},NIO:{money_format:"C${{amount}}",money_with_currency_format:"C${{amount}} NIO"},NGN:{money_format:"₦{{amount}}",money_with_currency_format:"₦{{amount}} NGN"},NOK:{money_format:"kr {{amount_with_comma_separator}}",money_with_currency_format:"kr {{amount_with_comma_separator}} NOK"},OMR:{money_format:"{{amount_with_comma_separator}} OMR",money_with_currency_format:"{{amount_with_comma_separator}} OMR"},PKR:{money_format:"Rs.{{amount}}",money_with_currency_format:"Rs.{{amount}} PKR"},PGK:{money_format:"K {{amount}}",money_with_currency_format:"K {{amount}} PGK"},PYG:{money_format:"Gs. {{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"Gs. {{amount_no_decimals_with_comma_separator}} PYG"},PEN:{money_format:"S/. {{amount}}",money_with_currency_format:"S/. {{amount}} PEN"},PHP:{money_format:"₱{{amount}}",money_with_currency_format:"₱{{amount}} PHP"},PLN:{money_format:"{{amount_with_comma_separator}} zl",money_with_currency_format:"{{amount_with_comma_separator}} zl PLN"},QAR:{money_format:"QAR {{amount_with_comma_separator}}",money_with_currency_format:"QAR {{amount_with_comma_separator}}"},RON:{money_format:"{{amount_with_comma_separator}} lei",money_with_currency_format:"{{amount_with_comma_separator}} lei RON"},RUB:{money_format:"руб{{amount_with_comma_separator}}",money_with_currency_format:"руб{{amount_with_comma_separator}} RUB"},RWF:{money_format:"{{amount_no_decimals}} RF",money_with_currency_format:"{{amount_no_decimals}} RWF"},WST:{money_format:"WS$ {{amount}}",money_with_currency_format:"WS$ {{amount}} WST"},SAR:{money_format:"{{amount}} SR",money_with_currency_format:"{{amount}} SAR"},STD:{money_format:"Db {{amount}}",money_with_currency_format:"Db {{amount}} STD"},RSD:{money_format:"{{amount}} RSD",money_with_currency_format:"{{amount}} RSD"},SCR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} SCR"},SGD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} SGD"},SYP:{money_format:"S£{{amount}}",money_with_currency_format:"S£{{amount}} SYP"},ZAR:{money_format:"R {{amount}}",money_with_currency_format:"R {{amount}} ZAR"},KRW:{money_format:"₩{{amount_no_decimals}}",money_with_currency_format:"₩{{amount_no_decimals}} KRW"},LKR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} LKR"},SEK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr SEK"},CHF:{money_format:"SFr. {{amount}}",money_with_currency_format:"SFr. {{amount}} CHF"},TWD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TWD"},THB:{money_format:"{{amount}} ฿",money_with_currency_format:"{{amount}} ฿ THB"},TZS:{money_format:"{{amount}} TZS",money_with_currency_format:"{{amount}} TZS"},TTD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TTD"},TND:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} DT"},TRY:{money_format:"{{amount}}TL",money_with_currency_format:"{{amount}}TL"},UGX:{money_format:"Ush {{amount_no_decimals}}",money_with_currency_format:"Ush {{amount_no_decimals}} UGX"},UAH:{money_format:"\u20B4{{amount}}",money_with_currency_format:"\u20B4{{amount}} UAH"},AED:{money_format:"Dhs. {{amount}}",money_with_currency_format:"Dhs. {{amount}} AED"},UYU:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} UYU"},VUV:{money_format:"${{amount}}",money_with_currency_format:"${{amount}}VT"},VEF:{money_format:"Bs. {{amount_with_comma_separator}}",money_with_currency_format:"Bs. {{amount_with_comma_separator}} VEF"},VND:{money_format:"{{amount_no_decimals_with_comma_separator}}₫",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} VND"},XBT:{money_format:"{{amount_no_decimals}} BTC",money_with_currency_format:"{{amount_no_decimals}} BTC"},XOF:{money_format:"CFA{{amount}}",money_with_currency_format:"CFA{{amount}} XOF"},ZMW:{money_format:"K{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"ZMW{{amount_no_decimals_with_comma_separator}}"}};function formatWithDelimiters(number){var precision=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,thousands=arguments.length>2&&arguments[2]!==void 0?arguments[2]:",",decimal=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".";if(isNaN(number)||!number)return 0;var preciseNumber=(number/100).toFixed(precision),parts=preciseNumber.split(thousands),dollarsAmount=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),centsAmount=parts[1]?decimal+parts[1]:"";return dollarsAmount+centsAmount}function formatMoney(cents,format){typeof cents=="string"&&(cents=cents.replace(".",""));var value="",placeholderRegex=/\{\{\s*(\w+)\s*\}\}/;switch(format.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2,",",".");break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",".");break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_with_apostrophe_separator":value=formatWithDelimiters(cents,2,"'",".");break;case"amount_no_decimals":value=formatWithDelimiters(cents,0,",",".");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0," ",".");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,",",".");break}return format.replace(placeholderRegex,value)}function getCentsValue(moneyAmount,format,currency){var cents=0;return format.indexOf("amount_no_decimals")!==-1?cents=moneyAmount*100:currency==="JOD"||currency==="KWD"||currency==="BHD"?cents=moneyAmount/10:cents=moneyAmount,cents}function getMoneyValue(priceEl){var price=priceEl.getAttribute("data-currency-original")||priceEl.textContent,value=parseInt(price.replace(/[^0-9]/g,""),10);return isNaN(value)?"":value}var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}})(),CurrencyConverter=(function(){function CurrencyConverter2(){classCallCheck(this,CurrencyConverter2),this.defaults={switcherSelector:"[data-currency-converter]",priceSelector:".money",shopCurrency:"",defaultCurrency:"",displayFormat:"",moneyFormat:"",moneyFormatNoCurrency:"",moneyFormatCurrency:""},this.options={},this.moneyFormats=moneyFormats,this.storage="currency",this.currentCurrency=null,this.isInitialised=!1}return createClass(CurrencyConverter2,[{key:"init",value:function(settings){var _this=this;!window.Currency||this.isInitialised||(Object.keys(this.defaults).forEac
1h(function(key){_this.options[key]=settings[key]||_this.defaults[key]}),this.currentCurrency=this._getStoredCurrency()||this.options.defaultCurrency,this.moneyFormats[this.options.shopCurrency].money_with_currency_format=this.options.moneyFormatCurrency,this.moneyFormats[this.options.shopCurrency].money_format=this.options.moneyFormatNoCurrency,this.isInitialised=!0,this._current())}},{key:"setCurrency",value:function(newCurrency){this.isInitialised&&this._convertAll(newCurrency)}},{key:"update",value:function(priceEl){if(this.isInitialised){for(var attributes=priceEl.attributes,attr=0;attr<attributes.length;attr++){var attribute=attributes[attr];attribute.name.indexOf("data-currency")===0&&priceEl.setAttribute(attribute.name,"")}this._convertEl(priceEl,this.currentCurrency)}}},{key:"_getStoredCurrency",value:function(){try{return localStorage.getItem(this.storage)}catch(error){return console.warn(error),this.options.defaultCurrency}}},{key:"_setStoredCurrency",value:function(currency){try{localStorage.setItem(this.storage,currency)}catch(error){console.warn(error)}}},{key:"_current",value:function(){for(var switchers=document.querySelectorAll(this.options.switcherSelector),i=0;i<switchers.length;i+=1)for(var switcher=switchers[i],childrenEls=switcher.querySelectorAll("option"),j=0;j<childrenEls.length;j+=1){var optionEl=childrenEls[j];optionEl.selected&&optionEl.value!==this.currentCurrency&&(optionEl.selected=!1),optionEl.value===this.currentCurrency&&(optionEl.selected=!0)}this._convertAll(this.currentCurrency)}},{key:"_convertEl",value:function(priceEl,newCurrency){var oldCurrency=this.options.shopCurrency;if(priceEl.getAttribute("data-currency")!==newCurrency){if(priceEl.getAttribute("data-currency-"+newCurrency))priceEl.innerHTML=priceEl.getAttribute("data-currency-"+newCurrency);
1else{var oldFormat=this.moneyFormats[oldCurrency][this.options.displayFormat],newFormat=this.moneyFormats[newCurrency][this.options.displayFormat],moneyValue=getMoneyValue(priceEl),centsValue=getCentsValue(moneyValue,oldFormat,oldCurrency);if(centsValue==="")return;var cents=window.Currency.convert(centsValue,oldCurrency,newCurrency),oldPriceFormatted=formatMoney(centsValue,oldFormat),priceFormatted=formatMoney(cents,newFormat);priceEl.getAttribute("data-currency-original")||priceEl.setAttribute("data-currency-original",oldPriceFormatted),priceEl.setAttribute("data-currency-"+oldCurrency,oldPriceFormatted),priceEl.setAttribute("data-currency-"+newCurrency,priceFormatted),priceEl.innerHTML=priceFormatted}priceEl.setAttribute("data-currency",newCurrency)}}},{key:"_convertAll",value:function(newCurrency){var priceEls=document.querySelectorAll(this.options.priceSelector);if(priceEls){this.currentCurrency=newCurrency,this._setStoredCurrency(newCurrency);for(var i=0;i<priceEls.length;i+=1)this._convertEl(priceEls[i],newCurrency)}}}]),CurrencyConverter2})(),singletonInstance=new CurrencyConverter;exports.default=singletonInstance,exports.CurrencyConverter=CurrencyConverter}),44:(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;/*! 2* EventEmitter2 3* https://github.com/hij1nx/EventEmitter2 4* 5* Copyright (c) 2013 hij1nx 6* Licensed under the MIT license. 7*/(function(undefined2){var isArray=Array.isArray?Array.isArray:function(obj){return Object.prototype.toString.call(obj)==="[object Array]"},defaultMaxListeners=10;function init(){this._events={},this._conf&&configure.call(this,this._conf)}function configure(conf){conf?(this._conf=conf,conf.delimiter&&(this.delimiter=conf.delimiter),this._events.maxListeners=conf.maxListeners!==undefined2?conf.maxListeners:defaultMaxListeners,conf.wildcard&&(this.wildcard=conf.wildcard),conf.newListener&&(this.newListener=conf.newListener),conf.verboseMemoryLeak&&(this.verboseMemoryLeak=conf.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._events.maxListeners=defaultMaxListeners}function logPossibleMemoryLeak(count,eventName){var errorMsg="(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.";this.verboseMemoryLeak?(errorMsg+=" Event name: %s.",console.error(errorMsg,count,eventName)):console.error(errorMsg,count),console.trace&&console.trace()}function EventEmitter(conf){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,configure.call(this,conf)}EventEmitter.EventEmitter2=EventEmitter;function searchListenerTree(handlers,type,tree,i){if(!tree)return[];var listeners=[],leaf,len,branch,xTree,xxTree,isolatedBranch,endReached,typeLength=type.length,currentType=type[i],nextType=type[i+1];if(i===typeLength&&tree._listeners){if(typeof tree._listeners=="function")return handlers&&handlers.push(tree._listeners),[tree];for(leaf=0,len=tree._listeners.length;leaf<len;leaf++)handlers&&handlers.push(tree._listeners[leaf]);return[tree]}if(currentType==="*"||currentType==="**"||tree[currentType]){if(currentType==="*"){for(branch in tree)branch!=="_listeners"&&tree.hasOwnProperty(branch)&&(listeners=listeners.concat(searchListenerTree(handlers,type,tree[branch],i+1)));return listeners}else if(currentType==="**"){endReached=i+1===typeLength||i+2===typeLength&&nextType==="*",endReached&&tree._listeners&&(listeners=listeners.concat(searchListenerTree(handlers,type,tree,typeLength)));for(branch in tree)branch!=="_listeners"&&tree.hasOwnProperty(branch)&&(branch==="*"||branch==="**"?(tree[branch]._listeners&&!endReached&&(listeners=listeners.concat(searchListenerTree(handlers,type,tree[branch],typeLength))),listeners=listeners.concat(searchListenerTree(handlers,type,tree[branch],i))):branch===nextType?listeners=listeners.concat(searchListenerTree(handlers,type,tree[branch],i+2)):listeners=listeners.concat(searchListenerTree(handlers,type,tree[branch],i)));return listeners}listeners=listeners.concat(searchListenerTree(handlers,type,tree[currentType],i+1))}if(xTree=tree["*"],xTree&&searchListenerTree(handlers,type,xTree,i+1),xxTree=tree["**"],xxTree)if(i<typeLength){xxTree._listeners&&searchListenerTree(handlers,type,xxTree,typeLength);for(branch in xxTree)branch!=="_listeners"&&xxTree.hasOwnProperty(branch)&&(branch===nextType?searchListenerTree(handlers,type,xxTree[branch],i+2):branch===currentType?searchListenerTree(handlers,type,xxTree[branch],i+1):(isolatedBranch={},isolatedBranch[branch]=xxTree[branch],searchListenerTree(handlers,type,{"**":isolatedBranch},i+1)))}else xxTree._listeners?searchListenerTree(handlers,type,xxTree,typeLength):xxTree["*"]&&xxTree["*"]._listeners&&searchListenerTree(handlers,type,xxTree["*"],typeLength);return listeners}function growListenerTree(type,listener){type=typeof type=="string"?type.split(this.delimiter):type.slice();for(var i=0,len=type.length;i+1<len;i++)if(type[i]==="**"&&type[i+1]==="**")return;for(var tree=this.listenerTree,name=type.shift();name!==undefined2;){if(tree[name]||(tree[name]={}),tree=tree[name],type.length===0)return tree._listeners?(typeof tree._listeners=="function"&&(tree._listeners=[tree._listeners]),tree._listeners.push(listener),!tree._listeners.warned&&this._events.maxListeners>0&&tree._listeners.length>this._events.maxListeners&&(tree._listeners.warned=!0,logPossibleMemoryLeak.call(this,tree._listeners.length,name))):tree._listeners=listener,!0;name=type.shift()}return!0}EventEmitter.prototype.delimiter=".",EventEmitter.prototype.setMaxListeners=function(n){n!==undefined2&&(this._events||init.call(this),this._events.maxListeners=n,this._conf||(this._conf={}),this._conf.maxListeners=n)},EventEmitter.prototype.event="",EventEmitter.prototype.once=function(event,fn){return this.many(event,1,fn),this},EventEmitter.prototype.many=function(event,ttl,fn){var self=this;if(typeof fn!="function")throw new Error("many only accepts instances of Function");function listener(){return--ttl===0&&self.off(event,listener),fn.apply(this,arguments)}return listener._origin=fn,this.on(event,listener),self},EventEmitter.prototype.emit=function(){this._events||init.call(this);var type=arguments[0];if(type==="newListener"&&!this.newListener&&!this._events.newListener)return!1;var al=arguments.length,args,l,i,j,handler;if(this._all&&this._all.length){if(handler=this._all.slice(),al>3)for(args=new Array(al),j=0;j<al;j++)args[j]=arguments[j];for(i=0,l=handler.length;i<l;i++)switch(this.event=type,al){case 1:handler[i].call(this,type);break;case 2:handler[i].call(this,type,arguments[1]);break;case 3:handler[i].call(this,type,arguments[1],arguments[2]);break;default:handler[i].apply(this,args)}}if(this.wildcard){handler=[];var ns=typeof type=="string"?type.split(this.delimiter):type.slice();searchListenerTree.call(this,handler,ns,this.listenerTree,0)}else if(handler=this._events[type],typeof handler=="function"){switch(this.event=type,al){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(args=new Array(al-1),j=1;j<al;j++)args[j-1]=arguments[j];handler.apply(this,args)}return!0}else handler&&(handler=handler.slice());if(handler&&handler.length){if(al>3)for(args=new Array(al-1),j=1;j<al;j++)args[j-1]=arguments[j];for(i=0,l=handler.length;i<l;i++)switch(this.event=type,al){case 1:handler[i].call(this);break;case 2:handler[i].call(this,arguments[1]);break;case 3:handler[i].call(this,arguments[1],arguments[2]);break;default:handler[i].apply(this,args)}return!0}else if(!this._all&&type==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},EventEmitter.prototype.emitAsync=function(){this._events||init.call(this);var type=arguments[0];if(type==="newListener"&&!this.newListener&&!this._events.newListener)return Promise.resolve([!1]);var promises=[],al=arguments.length,args,l,i,j,handler;if(this._all){if(al>3)for(args=new Array(al),j=1;j<al;j++)args[j]=arguments[j];for(i=0,l=this._all.length;i<l;i++)switch(this.event=type,al){case 1:promises.push(this._all[i].call(this,type));break;case 2:promises.push(this._all[i].call(this,type,arguments[1]));break;case 3:promises.push(this._all[i].call(this,type,arguments[1],arguments[2]));break;default:promises.push(this._all[i].apply(this,args))}}if(this.wildcard){handler=[];var ns=typeof type=="string"?type.split(this.delimiter):type.slice();searchListenerTree.call(this,handler,ns,this.listenerTree,0)}else handler=this._events[type];if(typeof handler=="function")switch(this.event=type,al){case 1:promises.push(handler.call(this));break;case 2:promises.push(handler.call(this,arguments[1]));break;case 3:promises.push(handler.call(this,arguments[1],arguments[2]));break;default:for(args=new Array(al-1),j=1;j<al;j++)args[j-1]=arguments[j];promises.push(handler.apply(this,args))}else if(handler&&handler.length){if(handler=handler.slice(),al>3)for(args=new Array(al-1),j=1;j<al;j++)args[j-1]=arguments[j];for(i=0,l=handler.length;i<l;i++)switch(this.event=type,al){case 1:promises.push(handler[i].call(this));break;case 2:promises.push(handler[i].call(this,arguments[1]));break;case 3:promises.push(handler[i].call(this,arguments[1],arguments[2]));break;default:promises.push(handler[i].apply(this,args))}}else if(!this._all&&type==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(promises)},EventEmitter.prototype.on=function(type,listener){if(typeof type=="function")return this.onAny(type),this;if(typeof listener!="function")throw new Error("on only accepts instances of Function");
7return this._events||init.call(this),this.emit("newListener",type,listener),this.wildcard?(growListenerTree.call(this,type,listener),this):(this._events[type]?(typeof this._events[type]=="function"&&(this._events[type]=[this._events[type]]),this._events[type].push(listener),!this._events[type].warned&&this._events.maxListeners>0&&this._events[type].length>this._events.maxListeners&&(this._events[type].warned=!0,logPossibleMemoryLeak.call(this,this._events[type].length,type))):this._events[type]=listener,this)},EventEmitter.prototype.onAny=function(fn){if(typeof fn!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),this._all.push(fn),this},EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prototype.off=function(type,listener){if(typeof listener!="function")throw new Error("removeListener only takes instances of Function");var handlers,leafs=[];if(this.wildcard){var ns=typeof type=="string"?type.split(this.delimiter):type.slice();leafs=searchListenerTree.call(this,null,ns,this.listenerTree,0)}else{if(!this._events[type])return this;handlers=this._events[type],leafs.push({_listeners:handlers})}for(var iLeaf=0;iLeaf<leafs.length;iLeaf++){var leaf=leafs[iLeaf];if(handlers=leaf._listeners,isArray(handlers)){for(var position=-1,i=0,length=handlers.length;i<length;i++)if(handlers[i]===listener||handlers[i].listener&&handlers[i].listener===listener||handlers[i]._origin&&handlers[i]._origin===listener){position=i;break}if(position<0)continue;return this.wildcard?leaf._listeners.splice(position,1):this._events[type].splice(position,1),handlers.length===0&&(this.wildcard?delete leaf._listeners:delete this._events[type]),this.emit("removeListener",type,listener),this}else(handlers===listener||handlers.listener&&handlers.listener===listener||handlers._origin&&handlers._origin===listener)&&(this.wildcard?delete leaf._listeners:delete this._events[type],this.emit("removeListener",type,listener))}function recursivelyGarbageCollect(root){if(root!==undefined2){var keys=Object.keys(root);for(var i2 in keys){var key=keys[i2],obj=root[key];obj instanceof Function||typeof obj!="object"||obj===null||(Object.keys(obj).length>0&&recursivelyGarbageCollect(root[key]),Object.keys(obj).length===0&&delete root[key])}}}return recursivelyGarbageCollect(this.listenerTree),this},EventEmitter.prototype.offAny=function(fn){var i=0,l=0,fns;if(fn&&this._all&&this._all.length>0){for(fns=this._all,i=0,l=fns.length;i<l;i++)if(fn===fns[i])return fns.splice(i,1),this.emit("removeListenerAny",fn),this}else{for(fns=this._all,i=0,l=fns.length;i<l;i++)this.emit("removeListenerAny",fns[i]);this._all=[]}return this},EventEmitter.prototype.removeListener=EventEmitter.prototype.off,EventEmitter.prototype.removeAllListeners=function(type){if(arguments.length===0)return!this._events||init.call(this),this;if(this.wildcard)for(var ns=typeof type=="string"?type.split(this.delimiter):type.slice(),leafs=searchListenerTree.call(this,null,ns,this.listenerTree,0),iLeaf=0;iLeaf<leafs.length;iLeaf++){var leaf=leafs[iLeaf];leaf._listeners=null}else this._events&&(this._events[type]=null);return this},EventEmitter.prototype.listeners=function(type){if(this.wildcard){var handlers=[],ns=typeof type=="string"?type.split(this.delimiter):type.slice();return searchListenerTree.call(this,handlers,ns,this.listenerTree,0),handlers}return this._events||init.call(this),this._events[type]||(this._events[type]=[]),isArray(this._events[type])||(this._events[type]=[this._events[type]]),this._events[type]},EventEmitter.prototype.listenerCount=function(type){return this.listeners(type).length},EventEmitter.prototype.listenersAny=function(){return this._all?this._all:[]},__WEBPACK_AMD_DEFINE_RESULT__=(function(){return EventEmitter}).call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined2&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)})()})}]); 8//# sourceMappingURL=/cdn/shop/t/22/assets/vendors-DynamicSearch-StaticSectionHeader.bundle.js.map?v=123854776218772624161759165399
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.