!function o(r,i,c){function s(t,e){if(!i[t]){if(!r[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(a)return a(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=i[t]={exports:{}},r[t][0].call(n.exports,function(e){return s(r[t][1][e]||e)},n,n.exports,o,r,i,c)}return i[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)s(c[e]);return s}({1:[function(e,t,n){"use strict";!function(){window.romd=window.romd||{cmd:[]},window.romd.cmd=window.romd.cmd||[];var i=window.romd,c="data-settings-function";i.__log=function(e,t){var n,o=!1;try{o=localStorage.getItem("romd.debug.consoleDebug")}catch(e){}o&&(o=[(n=new Date).getHours(),n.getMinutes(),n.getSeconds()].join(":"),e=(o+="."+n.getMilliseconds())+": RoxotDynamic: "+e,t?console.log(e,t):console.log(e))},i.__resetRerunTime=function(e){delete e.rerunTime},i.__calculateRerunTime=function(e){var t=e.rerunTime||50,n=e.rerunTimeLimit||1e3;return e.rerunTime=t=n<(t*=2)?n:t},i.__getSourceWidth=function(e){var t=!1;e.offsetWidth||(t=e.style.width,e.style.width="100%");var n=e.offsetWidth;return!1!==t&&(e.style.width=t),n},i.__refind=function(e){var t=i.__calculateRerunTime(e);return setTimeout(function(){i.findAndDisplay(e)},t),t},i.__isSupportPage=function(e){var t=e.pageLimit||{};if(t.alreadyChecked||!1)return t.result;var n=t.type||!1;if(!n)return!0;var e=t.patterns||[],o=!1,r=location.href;e.forEach(function(e){new RegExp(e,"i").test(r)&&(o=!0)});n="whitelist"===n;return o||(n=!n),t.alreadyChecked=!0,t.result=n},i.findAndDisplay=function(e){var t,n,o,r;i.__isSupportPage(e)?(t=e.infinityScroll||!1,o=e.selector,t&&(o+=":not(.roxot-dynamic-inited)"),(n=document.querySelector(o))?(i.__log('Found source element "'+e.selector+'".',e),e.placementId?i.__displayPlacement(n,e):i.__displayTags(n,e),o=n.getAttribute("class"),n.setAttribute("class",o+=" roxot-dynamic-inited"),t&&(i.__resetRerunTime(e),r=i.__refind(e),i.__log("Rerun infinity block "+e.selector+" block. Check again in "+r+" ms.",e))):(r=i.__refind(e),i.__log('Can not found source element "'+e.selector+'". Check again in '+r+" ms.",e))):i.__log('Block "'+e.selector+'" removed because not pass pageLimit.',e)},i.__displayTags=function(a,d){var t=i.__getSourceWidth(a);i.__log('Source element "'+d.selector+'" has size '+t+".",d);var l,e,n=d.cases.filter(function(e){return e.size<=t}).sort(function(e,t){return e.size-t.size});n.length?(e=n.pop(),i.__log("Use sizeCase with size "+e.size+" for "+d.selector+" block.",{block:d,sizeCase:e}),l=[],e.tags.forEach(function(e){var t=document.createElement("div");t.setAttribute("class","roxotDynamic"),t.style.textAlign="center",t.style.verticalAlign="top",t.style.width="100%";var n,o,r,i=a.insertAdjacentElement(d.insertPosition||"beforeend",t);for(n in e.style||{})i.style[n]=e.style[n];for(o in e.attributes||{})i.setAttribute(o,e.attributes[o]);for(r in e.data||{})i.dataset[r]=e.data[r];var c="roxotAd-"+Math.floor(1e5*Math.random()),s=e.classes||[];s.push("roxotAd");t=document.createElement("div");t.setAttribute("class",s.join(" ")),t.setAttribute("id",c),t.style.display="inline-block";i.appendChild(t);l.push({divId:c,tagId:e.tagId})}),l.length&&(window.rom=window.rom||{cmd:[]},window.rom.cmd=window.rom.cmd||[],window.rom.cmd.push(function(){l.forEach(function(e){window.rom.display(e.divId,e.tagId)})}),i.__log("Build "+l.length+" tags and run roxot manager for "+d.selector+" block.",{block:d,ads:l}))):(e=i.__refind(d),i.__log("Not found support sizeCase for "+t+" size of "+d.selector+" block. Check again in "+e+" ms.",d))},i.__displayPlacement=function(e,t){var n="roxotDynamic-"+Math.floor(1e5*Math.random()),o=document.createElement("div");o.setAttribute("class","roxotPlacementDynamic"),o.setAttribute("id",n),o.style.textAlign="center",o.style.verticalAlign="top",o.style.width="100%";var r=e.getAttribute(c);r&&o.setAttribute(c,r);r=t.insertPosition||"beforeend";"instead"===r&&(e.innerText="",r="afterbegin"),e.insertAdjacentElement(r,o),window.rom=window.rom||{cmd:[]},window.rom.cmd=window.rom.cmd||[],window.rom.cmd.push(function(){window.rom.displayPlacement(n,t.placementId)})},i.display=function(e){e.forEach(function(e){i.findAndDisplay(e)})},i.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){console.error("Error processing command",e)}else console.error("Commands written into romd.cmd must be wrapped in a function")},i.cmd.forEach(function(e){return i.cmd.push(e)})}()},{}]},{},[1]);