# webappsstore2

originKey: moc.obolg.etropseobolg.:https:443
scope: moc.obolg.etropseobolg.:https:443
key: cdUserCodeGlb_v3
value:
  {"provider":"anonymous","user_code":"12306359706275760128","glb_uid":"\"WAlKihfkV_a9IgleFsgSSyg_LK8kZb4QYSqwnpkJvRU=\"","glbid":"","autorizador":"","perfilid":"","userid":""}


originKey: moc.obolg.etropseobolg.:https:443
scope: moc.obolg.etropseobolg.:https:443
key: fn-menuV2-navegacao-css
value:
  {"value":"@font-face{font-family:opensans;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/light.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/light.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/light.ttf\") format(\"truetype\");font-style:normal;font-weight:300}@font-face{font-family:opensans;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/regular.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/regular.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/regular.ttf\") format(\"truetype\");font-style:normal;font-weight:400}@font-face{font-family:opensans;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/semibold.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/semibold.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/semibold.ttf\") format(\"truetype\");font-style:normal;font-weight:600}@font-face{font-family:opensans;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/bold.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/bold.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/bold.ttf\") format(\"truetype\");font-style:normal;font-weight:700}@font-face{font-family:opensans-light;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/light.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/light.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/light.ttf\") format(\"truetype\");font-style:normal;font-weight:300}@font-face{font-family:opensans-regular;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/regular.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/regular.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/regular.ttf\") format(\"truetype\");font-style:normal;font-weight:400}@font-face{font-family:opensans-semibold;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/semibold.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/semibold.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/semibold.ttf\") format(\"truetype\");font-style:normal;font-weight:600}@font-face{font-family:opensans-bold;src:url(\"https://s3.glbimg.com/cdn/fonts/opensans/bold.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/bold.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/opensans/bold.ttf\") format(\"truetype\");font-style:normal;font-weight:700}@font-face{font-family:proximanova-bold;src:url(\"https://s3.glbimg.com/cdn/fonts/proximanova/bold.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/bold.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/bold.ttf\") format(\"truetype\");font-style:normal;font-weight:400}@font-face{font-family:proximanova-regular;src:url(\"https://s3.glbimg.com/cdn/fonts/proximanova/regular.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/regular.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/regular.ttf\") format(\"truetype\");font-style:normal;font-weight:400}@font-face{font-family:proximanova-light;src:url(\"https://s3.glbimg.com/cdn/fonts/proximanova/light.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/light.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/light.ttf\") format(\"truetype\");font-style:normal;font-weight:400}@font-face{font-family:ProximaNova;src:url(\"https://s3.glbimg.com/cdn/fonts/proximanova/regular.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/regular.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/regular.ttf\") format(\"truetype\");font-style:normal;font-weight:400}@font-face{font-family:ProximaNova;src:url(\"https://s3.glbimg.com/cdn/fonts/proximanova/bold.woff2\") format(\"woff2\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/bold.woff\") format(\"woff\"),url(\"https://s3.glbimg.com/cdn/fonts/proximanova/bold.ttf\") format(\"truetype\");font-style:normal;font-weight:700}#menu-curtain{width:100%;height:100vh;position:fixed;top:0;left:0;opacity:0;z-index:99999999990;background-color:#000;visibility:hidden;backface-visibility:hidden}#menu-curtain.menu-curtain--animate{visibility:visible;transition:opacity .5s cubic-bezier(0,0,.3,1)}#menu-curtain.menu-curtain--animate+#menu-container{position:fixed;transition:transform .5s cubic-bezier(0,0,.3,1);will-change:transform;backface-visibility:hidden}#menu-curtain.menu-curtain--opened{opacity:.7}#menu-curtain.menu-curtain--opened+#menu-container{transform:translateX(0)}#menu-curtain.menu-curtain--opened+.menu-rounder{will-change:transform}#menu-container{width:272px;overflow:hidden;position:absolute;top:0;bottom:0;transform:translateX(-272px);z-index:99999999992;overflow-y:scroll;background-color:#fafafa}.menu-rounder{width:0;left:0;transform:translateX(0);top:0;transition:transform .5s cubic-bezier(0,0,.3,1)}.menu-rounder.menu-initial{transform:translateX(-272px)}.menu-rounder--opened-all .menu-cascade .menu-level{width:272px;transform:translateX(272px);text-indent:0}.menu-rounder--opened-all .menu-cascade .menu-level:first-child{transform:translateX(0)}.menu-cascade .menu-level{width:0;transform:translateX(0);text-indent:-9999px;position:absolute;top:0}.menu-cascade .menu-level .menu-item-arrow{width:0;height:0}.menu-cascade .menu-level--opened{width:272px;transform:translateX(272px);text-indent:0;z-index:2}.menu-cascade .menu-level--opened.first-layer{top:0;left:0}.menu-cascade .menu-level--opened .menu-level:not(.menu-level--opened){display:none;transform:translateX(272px);text-indent:0}.menu-cascade .menu-level--opened.menu-level-0{transform:translateX(272px)}.menu-cascade>.menu-level{width:272px;transform:translateX(0);text-indent:0}.menu--no-scroll{overflow-y:hidden}.menu-product-logos,.menu-top{background-color:#fff;border-bottom:1px solid #eee;margin-bottom:20px;padding:0 20px}.menu-product-logos__items{display:flex;justify-content:center;height:76px;align-items:center}.menu-product-logos__items__item{width:18%;margin:2%}.menu-product-logos__items__item:first-child{margin-left:0}.menu-product-logos__items__item:last-child{margin-right:0}.menu-product-logos__items__item svg{max-width:100%}.menu-initial .menu-btn-back{opacity:0;transition:opacity .3s cubic-bezier(0,0,.3,1);background-position:0;background-repeat:no-repeat}.menu-initial.menu-loaded .menu-btn-back{opacity:1}.menu-submenu-title{background-color:#fafafa;color:#333;padding:15px 20px;margin-top:20px;font:700 16px/18px opensans;text-transform:lowercase;display:inline-block;letter-spacing:-1px}.menu-btn-back{width:100%;background-color:#fff;height:76px;-webkit-tap-highlight-color:transparent;border:0;outline:0;color:#000;font:700 20px/24px opensans;text-align:left;padding:0 14px;-webkit-font-smoothing:antialiased;box-shadow:0 1px 0 0 #eee;position:static;top:0}.menu-btn-back,.menu-btn-back__icon{display:inline-block;vertical-align:middle}.menu-btn-back__icon{width:24px;height:24px;position:relative;top:2px}.menu-btn-back__label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;width:calc(100% - 40px);vertical-align:middle;padding:3px 0;text-transform:lowercase;letter-spacing:-1.2px}.menu-btn-back svg{width:24px;height:24px;margin-right:5px;vertical-align:middle}.menu-item{height:40px}.menu-item:first-child{margin-top:24px}.menu-item-link{width:100%;position:relative;-webkit-font-smoothing:antialiased;letter-spacing:-1.2px;display:inline-block;text-transform:lowercase;font:300 20px/24px opensans;color:#666;box-sizing:border-box;padding:0 20px;height:40px;user-select:none;-webkit-tap-highlight-color:transparent}.menu-item-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:20px;display:block;height:40px;line-height:40px}.menu-item-separator{text-indent:-9999px;height:1px;padding:0;background-color:#eee;box-sizing:border-box;overflow:hidden;margin:20px}.menu-item.is-father>.menu-item-link .menu-item-arrow{width:20px;height:20px;display:inline-block;position:absolute;right:14px;top:50%;margin-top:-10px;background-size:20px}.menu-login{padding:10px 20px;font:300 16px/20px opensans;-webkit-font-smoothing:antialiased;letter-spacing:-1.2px;margin-bottom:5px}.menu-login--logged{display:none;height:32px;display:flex;align-items:center;padding-bottom:16px}.menu-login--logged .menu-login__item__name{font:700 20px/20px opensans}.menu-login--not-logged{display:none}.menu-login__item{clear:both}.menu-login__item__avatar{width:20px;height:20px;margin-right:11px}.menu-login__item__avatar img{border-radius:50%;width:100%;height:100%}.menu-login__item__name{display:block;float:left}.menu-login__item__link{color:#666;min-height:40px;display:flex;vertical-align:middle;align-items:center}.menu-login__item__link__icon{margin-right:15px;vertical-align:middle;position:relative;top:1px}.menu-login__item__icon{align-items:center;display:flex;float:left}.menu-login__item-logout__link{display:flex}.menu-login__item-logout span{float:left}.menu-login__item-login__link{line-height:20px;text-transform:lowercase;align-items:normal}.menu-login__item-login__link .menu-login__item__link__icon{top:3px}.menu-login__item-login span{font:700 16px/16px opensans;display:block}.menu-login__item-login small{font:normal 12px/14px opensans;letter-spacing:-.2px;color:#666}.menu-login__item-logout{display:none}#globoid-modal-container{z-index:99999999993}#globoid-modal-container .login-modal{z-index:99999999992}\n/*# sourceMappingURL=../../../js/componentsV2/menu/menu-7f3c44ac5a5e3cac9a11.min.map.js*/","timestamp":1603056254694}


originKey: moc.obolg.etropseobolg.:https:443
scope: moc.obolg.etropseobolg.:https:443
key: fn-menuV2-navegacao-js
value:
  {"value":"!function(e){function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p=\"\",n(n.s=53)}({14:function(e,n){},15:function(e,n,t){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,\"__esModule\",{value:!0}),n.DOM=n.applyMiddlewares=n.debounce=n.tap=void 0;var o=t(56),a=i(o),u=t(57),r=i(u),c=t(58),l=i(c),s=t(16),d=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}(s);n.tap=a.default,n.debounce=r.default,n.applyMiddlewares=l.default,n.DOM=d},16:function(e,n,t){\"use strict\";function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,\"__esModule\",{value:!0});var o=(n.qs=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector(e)},n.qsAll=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelectorAll(e)},function(e,n,t,i){n.addEventListener(e,t,i)}),a=(n.attachEvent=function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n.length)for(var a=0;a<n.length;a+=1)o(e,n[a],t,i);else o(e,n,t,i)},n.detachEvent=function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n.length)for(var o=0;o<n.length;o+=1)n[o].removeEventListener(e,t,i);else n.removeEventListener(e,n,t,i)},function(e,n){for(var t=e;function(e){return 1===e.nodeType&&!e.classList.contains(n)}(t);)t=t.parentNode;return t.classList&&t.classList.contains(n)?t:null}),u=function(e,n){return function(t){var i=a(t.target,e);i&&n.call(i,t)}},r={};n.on=function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.body,c=n+\"--\"+e;r=Object.assign({},r,i({},c,u(n,t))),a.addEventListener(e,r[c],o)},n.off=function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.body).removeEventListener(e,r[n+\"--\"+e],i)},n.toArray=function(e){return[].slice.call(e)}},53:function(e,n,t){\"use strict\";var i=t(54),o=function(){var e=function(e){window._gaq&&window._gaq.push(e)},n=(0,i.Menu)({color:glb.menuV2.color||\"#000\",handleGA:e});document.addEventListener(\"glb.mobileMenuV2.open\",function(){n.toggle()},!1)};window.glb.fnCommonReady?o():document.addEventListener(\"glb.fn.commonReady\",o,!1)},54:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0}),n.Menu=void 0,t(14);var i=t(55),o=function(e){return e&&e.__esModule?e:{default:e}}(i);n.Menu=o.default},55:function(e,n,t){\"use strict\";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,\"__esModule\",{value:!0}),t(14);var o=t(15),a=t(59),u=t(60),r=i(u),c=t(61),l=i(c),s=t(62),d=i(s),v={debug:!1,color:\"#000\",cadunServiceId:4728,cadunLoginURL:null,cadunUsePopin:!0,handleGA:function(){}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign({},v,e),t=o.DOM.qs,i=o.DOM.qsAll,u=o.DOM.attachEvent,c=o.DOM.toArray,s=o.DOM.on,m=o.DOM.off,f=(0,d.default)(n),p=document.body,h=document.documentElement,g=t(\"#menu-container\"),b=t(\"#menu-curtain\"),y=t(\".menu-level-0\",g),L=t(\".menu-level--opened\",g)||t(\".menu-level\",g),_=t(\".menu-rounder\",g),k=t(\".menu-btn-back__label\",g),w=k&&k.textContent,M=t(\".menu-btn-back__label\",L),E=M&&M.textContent,x=0,O=(0,o.applyMiddlewares)([o.debounce,o.tap]),q=+L.classList.contains(\"menu-level--opened\"),C=q,P=g.dataset.menuWidth||272,j=function(e){M&&(M.textContent=e)};j(w);var S=function(){c(i(\".menu-level--opened\",g)).forEach(function(e){e.classList.remove(\"menu-level--opened\")})},A=function(){return L.classList.add(\"menu-level--opened\")},T=function(e){_.style.transform=\"translateX(-\"+e*P+\"px)\"},D=function(){return!!(C<1&&t(\".menu-initial\",g))},U=function(){C>0||(_.classList.add(\"menu-rounder--opened-all\"),j(E))},N=function e(){var n=c(i(\".menu-level--opened\",g));n.pop().classList.remove(\"menu-level--opened\",\"first-layer\");var t=n.pop();t&&t.classList.add(\"first-layer\"),t||y.classList.add(\"first-layer\",\"menu-level--opened\"),U(),_.removeEventListener(\"transitionend\",e)},R=function(e){\"function\"==typeof e&&setTimeout(e,50)},I=O(function(){f.push(this),R(function(){C=C-1<=0?0:C-1,D()&&(C=0,_.classList.remove(\"menu-initial\")),T(C),_.addEventListener(\"transitionend\",N)})}),z=O(function(){var e=this.parentNode;if(f.push(e),!e.classList.contains(\"is-father\"))return void(this.target?window.open(this.href,this.target):window.location.href=this.href);R(function(){var n=+!!t(\".menu-level\",e);C+=n;var i=e.parentNode;\"UL\"===i.nodeName&&i.classList.remove(\"first-layer\"),t(\".menu-level\",e).classList.add(\"menu-level--opened\",\"first-layer\"),T(C)})}),X=function(e){return e.preventDefault()},G=function(){f.makeTracking(\"links clicaveis\",this.dataset.trackingLabel)},H=function(){var e=this.querySelector(\".regua-navegacao-menu-item\").textContent;f.makeTracking(\"links nao clicaveis\",e)},B=function(){s(\"click\",\"menu-btn-back\",X),s(\"click\",\"menu-btn-back\",I,{passive:!0}),s(\"touchstart\",\"menu-btn-back\",I,{passive:!0}),s(\"click\",\"menu-item-link\",X),s(\"click\",\"menu-item-link\",z,{passive:!0}),s(\"touchstart\",\"menu-item-link\",z,{passive:!0}),s(\"click\",\"menu-products-logo__link\",G),s(\"click\",\"menu-submenu-title\",H)},Y=function(){m(\"click\",\"menu-btn-back\",X),m(\"click\",\"menu-btn-back\",I,{passive:!0}),m(\"touchstart\",\"menu-btn-back\",I,{passive:!0}),m(\"click\",\"menu-item-link\",X),m(\"click\",\"menu-item-link\",z,{passive:!0}),m(\"touchstart\",\"menu-item-link\",z,{passive:!0}),m(\"click\",\"menu-products-logo__link\",G),m(\"click\",\"menu-submenu-title\",H)},F=function e(){.14===x&&(p.classList.remove(\"menu--no-scroll\"),h.classList.remove(\"menu--no-scroll\"),S(),x=0,A(),q&&_.classList.add(\"menu-initial\"),_.classList.remove(\"menu-rounder--opened-all\"),_.style.transform=\"\",C=q,j(w),b.classList.remove(\"menu-curtain--animate\"),y.classList.remove(\"menu-level--opened\"),Y(),g.removeEventListener(\"transitionend\",e))},V=function(e){b.classList.remove(\"menu-curtain--opened\"),x=.14,e?(f.makeTracking(\"interacoes menu\",\"swipe menu fechado\"),e.close()):f.makeTracking(\"interacoes menu\",\"click menu fechado\"),g.addEventListener(\"transitionend\",F)},W=(0,r.default)({onClose:function(){V(W)}}),J=function(){t(q?\".menu-level--opened\":\".menu-level-0\",g).classList.add(\"menu-level--opened\",\"first-layer\")},K=function(){q||(_.classList.add(\"menu-rounder--opened-all\"),_.classList.remove(\"menu-initial\"))},Q=function e(){J(),B(),W.open(),g.removeEventListener(\"transitionend\",e)},Z=function(){x=.33,p.classList.add(\"menu--no-scroll\"),h.classList.add(\"menu--no-scroll\"),b.classList.add(\"menu-curtain--opened\",\"menu-curtain--animate\"),K(),f.makeTracking(\"interacoes menu\",\"click menu exibido\"),g.addEventListener(\"transitionend\",Q)},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(null!==e?e:!b.classList.contains(\"menu-curtain--opened\"))?(Z(),(0,l.default)({container:g,cadunServiceId:n.cadunServiceId,cadunLoginURL:n.cadunLoginURL,cadunUsePopin:n.cadunUsePopin})):(V(),W.close())},ee=function(e){\"menu-curtain\"===e.target.id&&(V(),W.close())};return function(){K(),C&&t(\".menu-initial\",g).classList.add(\"menu-loaded\"),g.style.display=\"block\",(0,a.appendStyles)(n),u(\"touchstart\",b,O(ee),{passive:!0}),u(\"click\",b,O(ee),{passive:!0})}(),{toggle:$}};n.default=m},56:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(e){var n=this;return\"click\"!==e.type&&new Promise(function(t){var i=null,o=null,a=e.timeStamp,u=function(e){return!i&&!o&&e-a<=300},r=function(e){i=e.touches[0].clientX,o=e.touches[0].clientY},c=function e(i){n.removeEventListener(\"touchend\",e,{passive:!0}),n.removeEventListener(\"touchmove\",r,{passive:!0}),u(i.timeStamp)&&t()};n.addEventListener(\"touchmove\",r,{passive:!0}),n.addEventListener(\"touchend\",c,{passive:!0})})};n.default=i},57:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(){var e=!0;return function(){return new Promise(function(n){setTimeout(function(){e=!0},500),e&&(e=!1,n())})}}();n.default=i},58:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(n){return function(t){var i=this,o=e.map(function(e){return e.call(i,t)});return Promise.all(o).then(function(){n.call(i,t)}).catch(function(){return!1})}}};n.default=i},59:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(e,n){var t={back:'<svg fill=\"'+n+'\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"/><path d=\"M0-.5h24v24H0z\" fill=\"none\"/></svg>',next:'<svg fill=\"'+n+'\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"/><path d=\"M0-.25h24v24H0z\" fill=\"none\"/></svg>'},i=t[e]||\"\";return\"data:image/svg+xml;charset=utf8,\"+encodeURIComponent(i)},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.color,t=document.createElement(\"style\"),o=i(\"back\",n),a=document.createTextNode(\".menu-btn-back__icon { background-image: url('\"+o+\"'); }\"),u=i(\"next\",n),r=document.createTextNode(\".menu-item-arrow { background-image: url('\"+u+\"') }\"),c=document.createTextNode(\".menu-product-color { color: \"+n+\"; }\");t.appendChild(a),t.appendChild(r),t.appendChild(c),document.head.appendChild(t)};n.appendStyles=o},60:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=t(16),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=document.querySelector(\"#menu-curtain\"),t=document.querySelector(\"#menu-container\"),o=e.onClose,a=null,u=!1,r=null,c=null,l=null,s=null,d=void 0,v=!1,m=function(){v=!0},f=function e(){if(u&&!v&&(window.requestAnimationFrame(e),a&&Math.abs(a-Math.abs(l))>=30)){var i=Math.min(0,l-r),o=Math.max(0,.7+i/d);t.style.transform=\"translateX(\"+i+\"px)\",a=l,n.style.opacity=o}},p=function(e){r=e.touches[0].pageX,c=e.touches[0].pageY,l=r,s=c,a=r,u=n.classList.contains(\"menu-curtain--opened\"),(0,i.attachEvent)(\"scroll\",(0,i.qsAll)(\".menu-level\",t),m,{passive:!0}),window.requestAnimationFrame(f)},h=function(e){u&&!v&&(l=e.touches[0].pageX,s=e.touches[0].pageY)},g=function(){if(u){u=!1,v=!1,a=null;var e=Math.min(0,l-r),d=Math.abs(s-c);(0,i.detachEvent)(\"scroll\",(0,i.qsAll)(\".menu-level\",t),m,{passive:!0}),t.style.transform=\"\",n.style.opacity=\"\",d<=Math.abs(e)&&e<0&&o()}},b=function(){u=!1,v=!1,document.removeEventListener(\"touchstart\",p,{passive:!0}),document.removeEventListener(\"touchmove\",h,{passive:!0}),document.removeEventListener(\"touchend\",g,{passive:!0}),(0,i.detachEvent)(\"scroll\",(0,i.qsAll)(\".menu-level\",t),m,{passive:!0})};return{open:function(){(0,i.attachEvent)(\"scroll\",(0,i.qsAll)(\".menu-level\",t),m,{passive:!0}),document.addEventListener(\"touchstart\",p,{passive:!0}),document.addEventListener(\"touchmove\",h,{passive:!0}),document.addEventListener(\"touchend\",g,{passive:!0}),d=t.getBoundingClientRect().width},close:b}};n.default=o},61:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=t(15),o=!1,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o)return!0;var n=e.container,t=e.cadunServiceId,a=e.cadunLoginURL,u=e.cadunUsePopin,r=i.DOM.qs,c=(0,i.applyMiddlewares)([i.debounce,i.tap]),l=r(\".menu-login\",n),s=r(\"a.menu-login__item-login__link\",l),d=r(\".menu-login__item-logout\",l),v=r(\"a.menu-login__item-logout__link\",l),m=r(\".menu-login__item__name\",l),f=r(\".menu-login__item__avatar\",l),p=r(\".menu-login__item__icon--avatar\",l),h=r(\".menu-login--logged\",l),g=r(\".menu-login--not-logged\",l),b=function(){var e=window.Cadun.user.me;return\"name\"in e&&\"\"!==e.name},y=function(e){g.style.display=e[0],d.style.display=e[1],h.style.display=e[2]},L=function(){b()||y([\"block\",\"none\",\"none\"])},_=function(){window.Cadun.logout(function(){window.location.href=window.location.href})},k=function(){v.addEventListener(\"click\",function(e){return e.preventDefault()}),v.addEventListener(\"click\",c(_),{passive:!0}),v.addEventListener(\"touchstart\",c(_),{passive:!0})},w=function(e){f&&p&&(e.picture?(f.innerHTML='<img src=\"'+e.picture+'\" alt=\"'+e.name+'\">',f.style.display=\"block\",p.style.display=\"none\"):(f.innerHTML=\"\",f.style.display=\"none\",p.style.display=\"block\"))},M=function(e){b()&&(k(),y([\"none\",\"block\",\"flex\"]),w(e),m.textContent=e.name.split(\" \")[0])},E=function(e){if(e.stopPropagation(),!u&&a){var n=window.location.href,i=a+\"/login/\"+t+\"?url=\"+n;window.location.href=i}else window.Cadun.login(t,window.location.href,!1,M,void 0,{_ga:window.utag_data.galinker,glbProduct:window.utag_data.productGAId,component:\"menu_mobile\"})},x=function(){s.addEventListener(\"click\",function(e){return e.preventDefault()}),s.addEventListener(\"click\",c(E)),s.addEventListener(\"touchstart\",c(E),{passive:!0}),window.Cadun.Event.subscribe(\"userInfoAvailable\",function(){var e=window.Cadun.user.me;b()?M(e):L()})};return function(){return window.cq=window.cq||[],window.cq.push({ready:function(e){e.authorize(t,function(e){\"authorized\"===e.status?M(e):y([\"block\",\"none\",\"none\"]),x()})}}),o=!0,!0}()};n.default=a},62:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.debugMode,t=void 0!==n&&n,i=e.handleGA,o=function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return t&&(console.group(\"menu tracking\"),console.log([\"menu mobile\"].concat(n)),console.groupEnd(\"menu tracking\")),i([\"_trackEvent\",\"menu mobile\"].concat(n))},a=function(e){for(var n=[e.querySelector(\".menu-item-title\").textContent],t=e;t&&\"menu-cascade\"!==t.id;t=t.parentNode)t.classList.contains(\"is-father\")&&n.push(t.querySelector(\".menu-btn-back__label\").textContent);return n.pop(),n.reverse().join(\" > \")};return{push:function(e){var n=e.classList;if(n.contains(\"menu-btn-back\")){var t=e.querySelector(\".menu-btn-back__label\").textContent,i=e.parentElement.querySelector(\".regua-navegacao-menu-item\").textContent;o(\"navegacao\",\"back | \"+i+\" > \"+t,0,!0)}else if(n.contains(\"is-father\"))o(\"navegacao\",a(e),0,!0);else{var u=e.querySelector(\".menu-item-title\").textContent,r=a(e.parentElement.parentElement);o(\"links clicaveis\",r?r+\" > \"+u:u)}},makeTracking:o}};n.default=i}});\n//# sourceMappingURL=menu-7f3c44ac5a5e3cac9a11.min.map.js","timestamp":1603056254688}


originKey: rb.moc.oedneit.www.:https:443
scope: rb.moc.oedneit.www.:https:443
key: adagioScript
value:
  // hash: fFIKcetN5ZQh4yBBuoVPoeZjqh6FBhozb4PUqirh+adKmCx7xHmn5yfOBzgy5hhHxJPynZCnAF7O7wm6qtsVT3YibG+lYMBj5H8rUMMjiAgAonRdK0kRmGp8djjuqo3dnSlxa/ckfiY4W5R87YqaRwCtKZaLYcKY1tHKErPcPVY=
  var _ADAGIO=function(e){"use strict";try{window.top.location.href}catch(e){return!1}function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var s=Array.isArray,d="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,c=d||u||Function("return this")(),l=c.Symbol,f=Object.prototype,p=f.hasOwnProperty,v=f.toString,h=l?l.toStringTag:void 0;var g=Object.prototype.toString;var m=l?l.toStringTag:void 0;function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":m&&m in Object(e)?function(e){var t=p.call(e,h),n=e[h];try{e[h]=void 0;var i=!0}catch(e){}var r=v.call(e);return i&&(t?e[h]=n:delete e[h]),r}(e):function(e){return g.call(e)}(e)}function w(e){return null!=e&&"object"==typeof e}function y(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==b(e)}var A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;function I(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function O(e){if(!I(e))return!1;var t=b(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var D,E=c["__core-js_shared__"],U=(D=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"";var j=Function.prototype.toString;function C(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var S=/^\[object .+?Constructor\]$/,G=Function.prototype,T=Object.prototype,x=G.toString,N=T.hasOwnProperty,B=RegExp("^"+x.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(e){return!(!I(e)||(t=e,U&&U in t))&&(O(e)?B:S).test(C(e));var t}function P(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return k(n)?n:void 0}var R=P(Object,"create");var z=Object.prototype.hasOwnProperty;var V=Object.prototype.hasOwnProperty;function M(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function L(e,t){return e===t||e!=e&&t!=t}function q(e,t){for(var n=e.length;n--;)if(L(e[n][0],t))return n;return-1}M.prototype.clear=function(){this.__data__=R?R(null):{},this.size=0},M.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},M.prototype.get=function(e){var t=this.__data__;if(R){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return z.call(t,e)?t[e]:void 0},M.prototype.has=function(e){var t=this.__data__;return R?void 0!==t[e]:V.call(t,e)},M.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=R&&void 0===t?"__lodash_hash_undefined__":t,this};var F=Array.prototype.splice;function H(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}H.prototype.clear=function(){this.__data__=[],this.size=0},H.prototype.delete=function(e){var t=this.__data__,n=q(t,e);return!(n<0)&&(n==t.length-1?t.pop():F.call(t,n,1),--this.size,!0)},H.prototype.get=function(e){var t=this.__data__,n=q(t,e);return n<0?void 0:t[n][1]},H.prototype.has=function(e){return q(this.__data__,e)>-1},H.prototype.set=function(e,t){var n=this.__data__,i=q(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var $=P(c,"Map");function W(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}J.prototype.clear=function(){this.size=0,this.__data__={hash:new M,map:new($||H),string:new M}},J.prototype.delete=function(e){var t=W(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return W(this,e).get(e)},J.prototype.has=function(e){return W(this,e).has(e)},J.prototype.set=function(e,t){var n=W(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Q(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Q.Cache||J),n}Q.Cache=J;var K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/\\(\\)?/g,X=function(e){var t=Q(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(K,(function(e,n,i,r){t.push(i?r.replace(Z,"$1"):n||e)})),t}));var Y=l?l.prototype:void 0,ee=Y?Y.toString:void 0;function te(e){if("string"==typeof e)return e;if(s(e))return function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}(e,te)+"";if(y(e))return ee?ee.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ne(e,t){return s(e)?e:function(e,t){if(s(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!y(e))||(_.test(e)||!A.test(e)||null!=t&&e in Object(t))}(e,t)?[e]:X(function(e){return null==e?"":te(e)}(e))}function ie(e){if("string"==typeof e||y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function re(e,t,n){var i=null==e?void 0:function(e,t){for(var n=0,i=(t=ne(t,e)).length;null!=e&&n<i;)e=e[ie(t[n++])];return n&&n==i?e:void 0}(e,t);return void 0===i?n:i}var ae=Object.prototype.hasOwnProperty;function oe(e,t){return null!=e&&ae.call(e,t)}function se(e){return w(e)&&"[object Arguments]"==b(e)}var de=Object.prototype,ue=de.hasOwnProperty,ce=de.propertyIsEnumerable,le=se(function(){return arguments}())?se:function(e){return w(e)&&ue.call(e,"callee")&&!ce.call(e,"callee")},fe=/^(?:0|[1-9]\d*)$/;function pe(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&fe.test(e))&&e>-1&&e%1==0&&e<t}function ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function he(e,t){return null!=e&&function(e,t,n){for(var i=-1,r=(t=ne(t,e)).length,a=!1;++i<r;){var o=ie(t[i]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++i!=r?a:!!(r=null==e?0:e.length)&&ve(r)&&pe(o,r)&&(s(e)||le(e))}(e,t,oe)}var ge=function(){try{var e=P(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var me=Object.prototype.hasOwnProperty;function be(e,t,n){var i=e[t];me.call(e,t)&&L(i,n)&&(void 0!==n||t in e)||function(e,t,n){"__proto__"==t&&ge?ge(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}(e,t,n)}function we(e,t,n){return null==e?e:function(e,t,n,i){if(!I(e))return e;for(var r=-1,a=(t=ne(t,e)).length,o=a-1,s=e;null!=s&&++r<a;){var d=ie(t[r]),u=n;if(r!=o){var c=s[d];void 0===(u=i?i(c,d,s):void 0)&&(u=I(c)?c:pe(t[r+1])?[]:{})}be(s,d,u),s=s[d]}return e}(e,t,n)}var ye=new(function(){function e(){n(this,e),this.init()}return r(e,[{key:"init",value:function(){this.create()}},{key:"create",value:function(){window.top.localStorage.getItem("adagio")||window.top.localStorage.setItem("adagio",JSON.stringify({}))}},{key:"insureSchema",value:function(){var e=window.top.localStorage.getItem("adagio");try{!(!e||!JSON.parse(e))||(window.top.localStorage.removeItem("adagio"),this.create())}catch(e){window.top.localStorage.removeItem("adagio"),this.create()}}},{key:"get",value:function(e){this.insureSchema();var t=JSON.parse(window.top.localStorage.getItem("adagio"));return e?he(t,e)?re(t,e):null:t}},{key:"store",value:function(e,t){this.insureSchema();var n=JSON.parse(window.top.localStorage.getItem("adagio"));we(n,e,t),window.top.localStorage.setItem("adagio",JSON.stringify(n))}}]),e}());Object.freeze(ye);var Ae=new(function(){function e(){n(this,e),this.storage=ye,this.maxTimeSession=18e5,this.init()}return r(e,[{key:"init",value:function(){this.storage.get("navigation")?this.update():this.start()}},{key:"start",value:function(){this.lastActivityTime=Date.now();var e=this.storage.get("navigation")||{},t=parseInt(e.totalPages,10)||0,n=parseInt(e.totalSessions,10)||0;this.storage.store("navigation.session",{lastActivityTime:this.lastActivityTime,pages:1,currentPagetype:null,previousPagetype:null}),this.storage.store("navigation.totalPages",t+1),this.storage.store("navigation.totalSessions",n+1)}},{key:"update",value:function(){var e=Date.now(),t=this.storage.get("navigation"),n=this.storage.get("navigation.session"),i=parseInt(n.pages,10)||0,r=parseInt(t.totalPages,10)||0;!n||!n.lastActivityTime||e-n.lastActivityTime>this.maxTimeSession?this.start():(this.storage.store("navigation.session.lastActivityTime",e),this.storage.store("navigation.session.pages",i+1),this.storage.store("navigation.totalPages",r+1))}}]),e}());Object.freeze(Ae);var _e=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},Ie=function(){var e,t;switch(e=window.top.navigator.userAgent,/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?5:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/.test(e)?4:2){case 2:t="desktop";break;case 4:t="mobile";break;case 5:t="tablet"}return t},Oe=function(){var e=window.top,t=e.performance||e.msPerformance||e.webkitPerformance||e.mozPerformance;return t&&t.timing&&t.timing.navigationStart>0?t.timing.navigationStart:null},De=function(){var e=window.top,t=null;return e.performance&&e.performance.timing&&e.performance.timing.domContentLoadedEventStart&&(t=e.performance.timing.domContentLoadedEventStart),t},Ee=ye,Ue=function(){return Ee.get("navigation.session.currentPagetype")},je=function(){return Ee.get("navigation.session.pages")||1},Ce=function(){var e=parseInt(Ee.get("navigation.totalSessions"),10)||1;return(parseInt(Ee.get("navigation.totalPages"),10)||1)/e},Se=function(){return Ee.get("navigation.session.previousPagetype")},Ge=function(){return Ee.get("navigation.totalSessions")||1},Te=function(){var e=window.top.document.referrer,t="";e&&(t=function(e){var t=document.createElement("a"),n="",i={};t.href=e;for(var r=0,a=(n=t.search.slice(1).split("&")).length;r<a;r++){var o=n[r].split("=");i[o[0]]=o[1]}return{protocol:t.protocol,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,searchParsed:i,hash:t.hash,host:t.host}}(e).hostname);return t},xe=function(e){var t=Ue();null!=t&&Ee.store("navigation.session.previousPagetype",t),Ee.store("navigation.session.currentPagetype",e)},Ne={avw:"//c.4dex.io/avw.gif",vrate:"//c.4dex.io/vrate",bids:"//c.4dex.io/bids.gif"},Be=[],ke=!1,Pe=function(e){!0===e&&(ke=!0)},Re={default:"\n      background: #222;\n      color: #bada55;\n      border-radius: 4px 0 0 4px;\n      padding: 3px 4px 2px;\n      font-weight: normal;\n  ",reset:"\n      background: transparent;\n      color: inherit;\n      border-radius: 0;\n      padding: 0;\n      font-weight: normal;\n  ",debug:"\n      background: palegreen;\n      color: darkgreen;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",info:"\n      background: lightsteelblue;\n      color: midnightblue;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",trace:"\n      background: plum;\n      color: indigo;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",warn:"\n      background: lightcoral;\n      color: moccasin;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",error:"\n      background: firebrick;\n      color: gainsboro;\n      border-radius: 0 4px 4px 0;\n      padding: 3px 4px 2px;\n      margin-right: 10px;\n      font-weight: normal;\n  ",table:"\n    background: lightsteelblue;\n    color: midnightblue;\n    border-radius: 0 4px 4px 0;\n    padding: 3px 4px 2px;\n    margin-right: 10px;\n    font-weight: normal;\n  "},ze=function(e){e=e||"debug";for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r;"string"==typeof n[0]?n[1]?(console.log("%cADG%c".concat(e.toUpperCase()," %c%s"),Re.default,Re[e],Re.reset,n[0]),n.shift(),n.map((function(e){console.log(e)}))):console.log("%cADG%c".concat(e.toUpperCase()," %c%s"),Re.default,Re[e],Re.reset,n[0]):(r=console).log.apply(r,["%cADG%c".concat(e.toUpperCase()),Re.default,Re[e]].concat(n))},Ve=function(){return new RegExp("[?&]ADAGIO_DEBUG").test(window.top.location.search)||ke},Me=function(){return window.top&&window.top.localStorage&&window.top.localStorage.getItem("ADAGIO_DEV_DEBUG")},Le=function(){if(Ve()||Me()){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ze.apply(void 0,["info"].concat(t))}},qe=function(){if(Ve()||Me()){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ze.apply(void 0,["warn"].concat(t))}},Fe=function(){if(Ve()||Me()){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"string"==typeof n[0]?(console.group("%cADG%cINFO %c%s",Re.default,Re.table,Re.reset,n[0]),n.shift()):console.group("%cADG%cINFO",Re.default,Re.table),(e=console).table.apply(e,n),console.groupEnd()}},He=function(){if(Me()){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ze.apply(void 0,["debug"].concat(t))}},$e=!!navigator.sendBeacon,We=window.top;We.ADAGIO=We.ADAGIO||{};var Je=function(e){var t,n=function(e){var t=e.collector,n=e.data,i=e.eventType,r=[];if(!Ne[t])return!1;if(!(n="function"==typeof n?n():{}))return!1;if(n.org_id&&-1!==Be.indexOf(n.org_id))return He("Beacon cannot be sent due to blacklist"),!1;if(n.adu_code){var a=n.adu_code;delete n.adu_code,r.push(encodeURIComponent("adu_code")+"="+encodeURIComponent(a))}var o=i||n.evt||"";for(var s in delete n.evt,r.push(encodeURIComponent("evt")+"="+encodeURIComponent(o)),n)r.push(encodeURIComponent(s)+"="+encodeURIComponent(n[s]));return We.ADAGIO.versions&&(We.ADAGIO.versions.adagiojs&&r.push("adgjsv=".concat(encodeURIComponent(We.ADAGIO.versions.adagiojs))),We.ADAGIO.versions.ssp&&r.push("sspv=".concat(encodeURIComponent(We.ADAGIO.versions.ssp)))),window.top.location.protocol+Ne[t]+"?"+r.join("&")}({collector:e.collector,data:e.data,eventType:e.eventType});if(!n)return!1;try{(t=new XMLHttpRequest).onerror=function(){$e&&navigator.sendBeacon(n)},t.open("post",n),t.send()}catch(e){}},Qe=function(e){var t=e.event,n=e.collector,i=e.data,r=t.element||window.top;t._rule?"unload"===t._rule?window.top.addEventListener("unload",(function(){return Je({collector:n,data:i,eventType:"unload"})})):"visibilitychange"===t._rule&&window.top.document.addEventListener("visibilitychange",(function(){"hidden"===window.top.document.visibilityState&&Je({collector:n,data:i,eventType:"visibilitychange"})})):r.addEventListener(t.name,(function(){if("function"==typeof t.beforeSend){var e=t.beforeSend({collector:n,data:i});e&&Je(Object.assign({},e,{eventType:t.name}))}else Je({collector:n,data:i,eventType:t.name})}),!1)},Ke=function(e){var t=e.collector,n=e.data,i=e.events;if(i.length){var r=!0,a=!1,o=void 0;try{for(var s,d=i[Symbol.iterator]();!(r=(s=d.next()).done);r=!0){var u=s.value;Qe({event:u,collector:t,data:n})}}catch(e){a=!0,o=e}finally{try{r||null==d.return||d.return()}finally{if(a)throw o}}}else Je({collector:t,data:n})},Ze=new(function(){function e(){n(this,e),this._featuresByAdUnitElementId={},this.init()}return r(e,[{key:"init",value:function(){}},{key:"store",value:function(e,n,i){if("object"!==t(n)||this.get(e)&&!i)return!1;this._featuresByAdUnitElementId[e]=n}},{key:"get",value:function(e){return e?this._featuresByAdUnitElementId[e]:this._featuresByAdUnitElementId}}]),e}());Object.freeze(Ze);var Xe=window.top.location&&"www.letudiant.fr"===window.top.location.hostname?80:50,Ye=window.top.location&&"www.letudiant.fr"===window.top.location.hostname?80:50,et=["120x600","160x600","300x250","300x600","300x1050","600x250","600x600","728x90","728x94","728x315","800x600","970x90","970x250","1000x200"],tt=function e(t,n){if(!n||!n.length)return!1;var i=t.getBoundingClientRect(),r=Math.round(i.width)+"x"+Math.round(i.height);if(-1!==n.indexOf(r))return t;var a=t.querySelectorAll("*:not(script)");if(a.length){for(var o=0,s=a.length;o<s;o++)if(t=e(a[o],n))return t;return!1}return!1},nt=function(e){var t=e.getBoundingClientRect(),n=t.top,i=t.top+t.height,r=Math.max(window.top.document.documentElement.clientHeight,window.top.innerHeight||0),a=0;return n>r?a=0:i<=0?a=0:n>=0&&i<=r?a=1:n<0&&i>r?a=r/t.height:n<0&&i<=r?a=i/t.height:n>=0&&i>r&&t.height>0&&(a=(r-n)/t.height),Math.round(1e4*a)/100},it=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.right,r=i-n,a=Math.max(window.top.document.documentElement.clientWidth,window.top.innerWidth||0),o=0;return n>a?o=0:i<=0?o=0:n>=0&&i<=a?o=1:n<0&&i>a?o=a/r:n<0&&i<=a?o=i/r:n>=0&&i>a&&(o=(a-n)/r),Math.round(1e4*o)/100},rt=function(e,t,n){var i=nt(e),r=it(e);i>=Xe&&r>=Ye?t():n("adagio")},at=function(e){var t=new Date(e.detail.ts).toString(),n="";e.detail.data.event&&e.detail.data.event.slot?n=e.detail.data.event.slot.getSlotElementId():e.detail.data.args&&e.detail.data.args.slot&&(n=e.detail.data.args.slot.getSlotElementId()),n===this._adUnitElementId&&(He("GPT impressionViewable: ".concat(n," at ").concat(t)),this.viewability.adserver.visible=!0,this.viewability.adserver.viewableSince=e.detail.ts,this.viewability.adserver.exposureDelta=this.viewability.adagio.exposureDuration-1e3,this.sendBeacon({becauseOf:"vsbl_actvw"}))},ot=function(e){var t=e.detail.data.args,n=t.inViewPercentage,i=t.slot;return!!i&&(i.getSlotElementId()===this._adUnitElementId&&void(this.viewability.adserver.inViewport=n>=50))},st=function(){"hidden"===window.top.document.visibilityState&&this.sendBeacon({becauseOf:"visibilitychange"})},dt=function(){var e=Date.now();"hidden"===window.top.document.visibilityState?this.pageVisibility.ts=e:(this.pageVisibility.computedDuration+=e-this.pageVisibility.ts,this.pageVisibility.ts=!1)};function ut(e){var t=this.__data__=new H(e);this.size=t.size}ut.prototype.clear=function(){this.__data__=new H,this.size=0},ut.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ut.prototype.get=function(e){return this.__data__.get(e)},ut.prototype.has=function(e){return this.__data__.has(e)},ut.prototype.set=function(e,t){var n=this.__data__;if(n instanceof H){var i=n.__data__;if(!$||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(i)}return n.set(e,t),this.size=n.size,this};function ct(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new J;++t<n;)this.add(e[t])}function lt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}ct.prototype.add=ct.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ct.prototype.has=function(e){return this.__data__.has(e)};function ft(e,t,n,i,r,a){var o=1&n,s=e.length,d=t.length;if(s!=d&&!(o&&d>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,l=!0,f=2&n?new ct:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var p=e[c],v=t[c];if(i)var h=o?i(v,p,c,t,e,a):i(p,v,c,e,t,a);if(void 0!==h){if(h)continue;l=!1;break}if(f){if(!lt(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||r(p,e,n,i,a)))return f.push(t);var o}))){l=!1;break}}else if(p!==v&&!r(p,v,n,i,a)){l=!1;break}}return a.delete(e),a.delete(t),l}var pt=c.Uint8Array;function vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var gt=l?l.prototype:void 0,mt=gt?gt.valueOf:void 0;var bt=Object.prototype.propertyIsEnumerable,wt=Object.getOwnPropertySymbols,yt=wt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[r++]=o)}return a}(wt(e),(function(t){return bt.call(e,t)})))}:function(){return[]};var At="object"==typeof e&&e&&!e.nodeType&&e,_t=At&&"object"==typeof module&&module&&!module.nodeType&&module,It=_t&&_t.exports===At?c.Buffer:void 0,Ot=(It?It.isBuffer:void 0)||function(){return!1},Dt={};Dt["[object Float32Array]"]=Dt["[object Float64Array]"]=Dt["[object Int8Array]"]=Dt["[object Int16Array]"]=Dt["[object Int32Array]"]=Dt["[object Uint8Array]"]=Dt["[object Uint8ClampedArray]"]=Dt["[object Uint16Array]"]=Dt["[object Uint32Array]"]=!0,Dt["[object Arguments]"]=Dt["[object Array]"]=Dt["[object ArrayBuffer]"]=Dt["[object Boolean]"]=Dt["[object DataView]"]=Dt["[object Date]"]=Dt["[object Error]"]=Dt["[object Function]"]=Dt["[object Map]"]=Dt["[object Number]"]=Dt["[object Object]"]=Dt["[object RegExp]"]=Dt["[object Set]"]=Dt["[object String]"]=Dt["[object WeakMap]"]=!1;var Et,Ut="object"==typeof e&&e&&!e.nodeType&&e,jt=Ut&&"object"==typeof module&&module&&!module.nodeType&&module,Ct=jt&&jt.exports===Ut&&d.process,St=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Ct&&Ct.binding&&Ct.binding("util")}catch(e){}}(),Gt=St&&St.isTypedArray,Tt=Gt?(Et=Gt,function(e){return Et(e)}):function(e){return w(e)&&ve(e.length)&&!!Dt[b(e)]},xt=Object.prototype.hasOwnProperty;function Nt(e,t){var n=s(e),i=!n&&le(e),r=!n&&!i&&Ot(e),a=!n&&!i&&!r&&Tt(e),o=n||i||r||a,d=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],u=d.length;for(var c in e)!t&&!xt.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||pe(c,u))||d.push(c);return d}var Bt=Object.prototype;var kt=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Pt=Object.prototype.hasOwnProperty;function Rt(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Bt))return kt(e);var t,n,i=[];for(var r in Object(e))Pt.call(e,r)&&"constructor"!=r&&i.push(r);return i}function zt(e){return null!=(t=e)&&ve(t.length)&&!O(t)?Nt(e):Rt(e);var t}function Vt(e){return function(e,t,n){var i=t(e);return s(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,zt,yt)}var Mt=Object.prototype.hasOwnProperty;var Lt=P(c,"DataView"),qt=P(c,"Promise"),Ft=P(c,"Set"),Ht=P(c,"WeakMap"),$t=C(Lt),Wt=C($),Jt=C(qt),Qt=C(Ft),Kt=C(Ht),Zt=b;(Lt&&"[object DataView]"!=Zt(new Lt(new ArrayBuffer(1)))||$&&"[object Map]"!=Zt(new $)||qt&&"[object Promise]"!=Zt(qt.resolve())||Ft&&"[object Set]"!=Zt(new Ft)||Ht&&"[object WeakMap]"!=Zt(new Ht))&&(Zt=function(e){var t=b(e),n="[object Object]"==t?e.constructor:void 0,i=n?C(n):"";if(i)switch(i){case $t:return"[object DataView]";case Wt:return"[object Map]";case Jt:return"[object Promise]";case Qt:return"[object Set]";case Kt:return"[object WeakMap]"}return t});var Xt=Zt,Yt=Object.prototype.hasOwnProperty;function en(e,t,n,i,r,a){var o=s(e),d=s(t),u=o?"[object Array]":Xt(e),c=d?"[object Array]":Xt(t),l="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),p=u==c;if(p&&Ot(e)){if(!Ot(t))return!1;o=!0,l=!1}if(p&&!l)return a||(a=new ut),o||Tt(e)?ft(e,t,n,i,r,a):function(e,t,n,i,r,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new pt(e),new pt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return L(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=vt;case"[object Set]":var d=1&i;if(s||(s=ht),e.size!=t.size&&!d)return!1;var u=o.get(e);if(u)return u==t;i|=2,o.set(e,t);var c=ft(s(e),s(t),i,r,a,o);return o.delete(e),c;case"[object Symbol]":if(mt)return mt.call(e)==mt.call(t)}return!1}(e,t,u,n,i,r,a);if(!(1&n)){var v=l&&Yt.call(e,"__wrapped__"),h=f&&Yt.call(t,"__wrapped__");if(v||h){var g=v?e.value():e,m=h?t.value():t;return a||(a=new ut),r(g,m,n,i,a)}}return!!p&&(a||(a=new ut),function(e,t,n,i,r,a){var o=1&n,s=Vt(e),d=s.length;if(d!=Vt(t).length&&!o)return!1;for(var u=d;u--;){var c=s[u];if(!(o?c in t:Mt.call(t,c)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++u<d;){var v=e[c=s[u]],h=t[c];if(i)var g=o?i(h,v,c,t,e,a):i(v,h,c,e,t,a);if(!(void 0===g?v===h||r(v,h,n,i,a):g)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,i,r,a))}function tn(e,t,n,i,r){return e===t||(null==e||null==t||!w(e)&&!w(t)?e!=e&&t!=t:en(e,t,n,i,tn,r))}function nn(){return this instanceof nn?(this.datas={},this):new nn}nn.prototype.get=function(e){return this.datas[e]},nn.prototype.set=function(e){e&&(this.datas=Object.assign({},this.datas,e))};var rn,an=new nn,on=function(e,t){return!!Array.isArray(e)&&(Array.isArray(t)||(t=t.split("x").map((function(e){return parseInt(e,10)}))),e.filter((function(e){return tn(e.size,t)})))},sn=function(e,t,n){var i=an.get(e);if(!i)return!1;var r=function(e){return{vrate:e.vrate,uplift:e.uplift}};if(!Array.isArray(i))return i.vrate;if(t){var a=on(i,t);if(a&&a.length)return r(a[0].vrate)}return n?i.map((function(e){var t=e.size,n=e.vrate;return{size:t.join("x"),vrate:n.vrate,uplift:n.uplift}})):r(i[0].vrate)},dn=function(e,t,n){var i=an.get(e);if(!i)return!1;if(!Array.isArray(i))return i.timeInView;if(t){var r=on(i,t);if(r&&r.length)return r[0].timeInView}return n?i.map((function(e){var t=e.size,n=e.timeInView;return{size:t.join("x"),timeInView:n.timeInView,uplift:n.uplift}})):i[0].timeInView},un=function(e,t,n){var i=e.adUnitCode,r=e.adUnitElementId,a=e.refreshConfig,o=e.currentPrintNumber,s=e.timeout;if(window.top.googletag){var d=window.top.googletag.pubads().getSlots().filter((function(e){return e.getSlotElementId()===r}))[0],u=window.top[a.pbjs];d?(d.setTargeting("adg_refresh","true"),d.setTargeting("adg_pn",o+1),t({adUnitCode:i,adUnitElementId:r,refreshConfig:a,currentPrintNumber:o}).then((function(e){!1!==e&&n({pbjs:u,adUnitCode:i,timeout:s,bidsBackHandler:function(){window.top.googletag.pubads().refresh([d])}})}))):He("No slot detected for adunitCode "+i+" with elementId : "+r)}else qe("Can not find the property: googletag in window.top")},cn=function(e){if(!e.refreshConfig||!e.refreshConfig.beforeRefresh||"function"!=typeof e.refreshConfig.beforeRefresh)return new Promise((function(e){return e(!0)}));var t=e.refreshConfig.beforeRefresh(e);return He("Refresh: handleBeforeRefresh",t),new Promise((function(e,n){if(!(t instanceof Promise))return e(t);t.then((function(t){return e(t)})).catch((function(){return n(!1)}))}))},ln=function(e){var t=e.adUnitCode,n=e.bidsBackHandler,i=e.pbjs,r=e.timeout;i.que.push((function(){i.requestBids({timeout:r,adUnitCodes:[t],bidsBackHandler:n})}))};void 0!==window.top.document.hidden?rn="hidden":void 0!==window.top.document.msHidden?rn="msHidden":void 0!==window.top.document.webkitHidden&&(rn="webkitHidden");var fn,pn=["1012","1008"],vn={NONE:0,NOT_IAB_COMPLIANT:1},hn={page_dimensions:"pg_dims",viewport_dimensions:"vp_dims",dom_loading:"dom_l",layout:"lay",adunit_position:"adu_pos",user_timestamp:"u_ts",device:"dvc",browser:"brwsr",url:"url",print_number:"pn"},gn={organizationId:"org_id",site:"site",placement:"plcmt",adUnitCode:"adu_code",pagetype:"pgtyp",category:"cat",subcategory:"subcat",environment:"env"},mn={adsrv:"adsrv",adsrv_advrt_id:"adsrv_advrt_id",adsrv_cmpgn_id:"adsrv_cmpgn_id",adsrv_crea_id:"adsrv_crea_id",adsrv_empty:"adsrv_empty",adsrv_lnitem_id:"adsrv_lnitem_id",adsrv_size:"adsrv_size"},bn=function(){function e(t){var i=t.ts,r=t.adUnitElementId,a=t.auctionId,o=t.params,s=t.options;if(n(this,e),He("New measurer for adUnitElementId ".concat(r),{params:o,options:s}),this.params=o||{},this.options=s||{},this.auctionId=a,this.initTime=null,this.startTime=null,this.ts=i,this.navigationStart=Oe(),this.internalId=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),this.resetCounter=0,this.resetTime=null,this.beaconVersion=0,this.intervalId=!1,this.avwBeaconTimeoutId=!1,this.refreshStarted=!1,this.refreshConfig=this.options.refresh||!1,this.doNotRefresh=!1,this.gptImpressionViewable=at.bind(this),this.gptSlotVisibilityChanged=ot.bind(this),this.pageVisibility={ts:!1,computedDuration:0},this._adUnitElementId=r,this.adUnitElementId=this.options.adUnitConfig&&this.options.adUnitConfig.outerAdUnitElementId?this.options.adUnitConfig.outerAdUnitElementId:r,this.element={},this.prebidAdUnitConfig=this.options.adUnitConfig||[],Pe(this.options.debug||!1),!window.top.document.getElementById(this.adUnitElementId))return qe("Element to measure is missing in window.top: ".concat(this.adUnitElementId)),!1;this.init(),this.unbindBeaconEvents(),this.bindBeaconEvents(),this.start()}return r(e,[{key:"init",value:function(){this.initTime=Date.now(),this.measurable=!0;var e,t,n=(e=this._adUnitElementId,(t=Ze.get(e))?Fe("Freezed features(v".concat(t.version,") for ").concat(e," from adagioBidAdapter "),t.features):He("No features found for ".concat(e)),t);this.features=n&&n.features?n.features:{},this.featuresVersion=n&&n.version?n.version:"1",this.resetViewability(),this.bindAdserverEvents();var i=this.detectBestDomElement();this.setElement(i),this.startBackgroundDetection(),Le("Init measurer for adUnitElementId ".concat(this.adUnitElementId," with this detected element:"),{el:this.element.el,refresh:this.refreshConfig});var r=window.top;r.ADAGIO=r.ADAGIO||{},r.ADAGIO.doNotRefresh=function(){var e=window.top;if(e)return e.ONFOCUS=e.ONFOCUS||{},e.ONFOCUS.donotrefresh||e.onfocus_donotrefresh||e.onfocus_donotrefresh_slots||e.ONFOCUS.donotrefresh_slots}()||r.ADAGIO.doNotRefresh||[];var a=this.params.adUnitCode||!1;this.refreshConfig||(He("No refreshConfig for this Measurer: ".concat(a)),this.doNotRefresh=!0),this.refreshConfig&&!this.refreshConfig.refreshable&&(He("This adUnitCode is not refreshable: ".concat(a)),this.doNotRefresh=!0),a||(He("No adUnitCode for this Measurer: ".concat(a)),this.doNotRefresh=!0),Array.isArray(r.ADAGIO.doNotRefresh)&&-1!==r.ADAGIO.doNotRefresh.indexOf("*")&&(He("No Refresh because doNotRefresh is activate on the whole page"),this.doNotRefresh=!0),Array.isArray(r.ADAGIO.doNotRefresh)&&a&&-1!==r.ADAGIO.doNotRefresh.indexOf(a)&&(He("This adUnitCode is in the ADAGIO.doNotRefresh: ".concat(a)),this.doNotRefresh=!0)}},{key:"resetViewability",value:function(e){var t={adagio:{visible:!1,continuousCounter:0,viewableSince:null,exposureDuration:0,lastUpdateTs:!1,elementMouseOver:!1,exposureDurationOnClick:null,lastAttentionBeaconSent:0},adserver:{visible:!1,viewableSince:null,continuousCounter:0,exposureDuration:0,lastUpdateTs:!1,lastAttentionBeaconSent:0,exposureDelta:0,inViewport:!1}};e&&this.viewability&&Object.prototype.hasOwnProperty.call(this.viewability,e)?this.viewability[e]=Object.assign({},t[e]):this.viewability=Object.assign({},t)}},{key:"detectBestDomElement",value:function(){var e=window.top.document.getElementById(this.adUnitElementId),t=tt(e,et),n=!!t,i=function(e,t){return tt(e,t)}(e,this.prebidAdUnitConfig.sizes&&this.prebidAdUnitConfig.sizes.length?this.prebidAdUnitConfig.sizes.map((function(e){return e[0]+"x"+e[1]})):[]),r=!!i,a=i||t||e;return{el:a,elId:a.id,size:this.formatElementSize(a),reasonNotMeasurable:t?vn.NONE:vn.NOT_IAB_COMPLIANT,hasIABDimensions:n,hasPbjsDimensions:r}}},{key:"setElement",value:function(e){this.element=e}},{key:"hasMinPageExposureDuration",value:function(){return!!(De()&&Date.now()-De()>=3e4)}},{key:"hasMaxExposureDuration",value:function(){return"dfp"===this.options.adsrv?this.viewability.adagio.exposureDuration>9e4||this.viewability.adserver.exposureDuration>9e4||this.viewability.adagio.exposureDuration>6e4&&this.viewability.adserver.exposureDuration>6e4:this.viewability.adagio.exposureDuration>6e4}},{key:"formatElementSize",value:function(e){var t=e.getBoundingClientRect();return[Math.round(t.width),Math.round(t.height)].join("x")}},{key:"startBackgroundDetection",value:function(){if(this.element.el&&!this.element.hasIABDimensions&&!this.element.hasPbjsDimensions&&Date.now()<=this.initTime+4e3){var e=this;return setTimeout((function(){var t=e.detectBestDomElement();(t.hasIABDimensions||t.hasPbjsDimensions)&&e.resetWithElement(t),e.startBackgroundDetection()}),50),!1}}},{key:"start",value:function(){if(this.startTime=Date.now(),"function"!=typeof window.CustomEvent)return this.stop("abort"),!1;window.top.document.dispatchEvent(new CustomEvent("adagio.measure.afterStart",{detail:{measure:this}})),this.sendBeacon({becauseOf:"start"}),this.bindMeasureEvents()}},{key:"stop",value:function(e){e=e||"stop",this.unbindAdserverEvents(),this.unbindMeasureEvents(),this.unbindBeaconEvents(),this.sendBeacon({becauseOf:e}),this.sendBeacon=function(){}}},{key:"resetWithElement",value:function(e){He("Reset measurer for ".concat(this.adUnitElementId," with this element"),e),this.resetCounter++,this.resetTime=Date.now(),this.setElement(e),this.resetViewability(),this.sendBeacon({becauseOf:"reset"})}},{key:"updateExposureDurationOnClick",value:function(e){var t=this,n=this.viewability.adagio;e&&(e.addEventListener("mouseover",(function(){return n.elementMouseOver=!0})),e.addEventListener("mouseout",(function(){return n.elementMouseOver=!1})),window.addEventListener("blur",(function(){if(document.activeElement instanceof HTMLIFrameElement){var e=t.element.el.getBoundingClientRect(),i=document.activeElement.getBoundingClientRect(),r=!(e.right<i.left||e.left>i.right||e.bottom<i.top||e.top>i.bottom),a=t.element.el;a instanceof HTMLIFrameElement||(a=a.querySelector("iframe")),(document.activeElement===a||n.elementMouseOver||r)&&null==n.exposureDurationOnClick&&(n.exposureDurationOnClick=n.exposureDuration,Le("Click event detected on  ".concat(t.element.elId," :"),t))}})))}},{key:"bindAdserverEvents",value:function(){this.unbindAdserverEvents(),window.top.document.addEventListener("adagio.gpt.impressionViewable",this.gptImpressionViewable,!1),window.top.document.addEventListener("adagio.gpt.slotVisibilityChanged",this.gptSlotVisibilityChanged,!1)}},{key:"unbindAdserverEvents",value:function(){window.top.document.removeEventListener("adagio.gpt.impressionViewable",this.gptImpressionViewable),window.top.document.removeEventListener("adagio.gpt.slotVisibilityChanged",this.gptSlotVisibilityChanged)}},{key:"bindMeasureEvents",value:function(){var e=this;this.updateExposureDurationOnClick(this.element.el),rt(this.element.el,this.updateViewability.bind(this),this.resetPreViewability.bind(this)),this.intervalId=setInterval((function(){document[rn]?Object.keys(e.viewability).forEach((function(t){"adagio"!==t&&"dfp"!==e.options.adsrv||e.resetPreViewability(t)})):("dfp"===e.options.adsrv&&e.updateActiveViewViewability(),rt(e.element.el,e.updateViewability.bind(e),e.resetPreViewability.bind(e)))}),50)}},{key:"unbindMeasureEvents",value:function(){clearInterval(this.intervalId)}},{key:"bindBeaconEvents",value:function(){window.top.document.addEventListener("visibilitychange",st.bind(this),!1),window.top.document.addEventListener("visibilitychange",dt.bind(this),!1)}},{key:"unbindBeaconEvents",value:function(){window.top.document.removeEventListener("visibilitychange",st),window.top.document.removeEventListener("visibilitychange",dt)}},{key:"setBeaconTimeout",value:function(e){var t=this;e=e||"adagio";var n=this.params.organizationId,i=this.viewability[e];this.avwBeaconTimeoutId||i.visible&&i.exposureDuration-i.lastAttentionBeaconSent>1e3&&!this.hasMaxExposureDuration()&&(this.avwBeaconTimeoutId=setTimeout((function(){-1===pn.indexOf(n)&&t.sendBeacon({becauseOf:"exp_chg"}),t.avwBeaconTimeoutId=!1,i.lastAttentionBeaconSent=i.exposureDuration}),5e3))}},{key:"updateViewability",value:function(){var e=Date.now(),t=this.viewability.adagio;t.visible||t.continuousCounter>=1e3&&(t.visible=!0,t.viewableSince=e,this.sendBeacon({becauseOf:"vsbl"})),this.updateExposureDuration(e,"adagio"),t.lastUpdateTs=e,this.setBeaconTimeout("adagio"),window.top.document.dispatchEvent(new CustomEvent("adagio.measure.onUpdateViewability",{detail:{measure:this}})),!1===this.refreshStarted&&!1===this.doNotRefresh&&this.refresh()}},{key:"updateActiveViewViewability",value:function(){var e=Date.now(),t=this.viewability.adserver;t.inViewport?(this.updateExposureDuration(e,"adserver"),t.lastUpdateTs=e,!1===this.refreshStarted&&!1===this.doNotRefresh&&this.refresh("adserver"),this.setBeaconTimeout("adserver")):this.resetPreViewability("adserver")}},{key:"refresh",value:function(e){e=e||"adagio";var t=this.params.adUnitCode||!1;if(t){var n=window.top,i=!(!n.ADAGIO.adUnits||!n.ADAGIO.adUnits[t])&&n.ADAGIO.adUnits[t].printNumber,r=this.viewability[e];return i?i&&i>=this.refreshConfig.maxRefresh?(He("Stoping refresh because currentPrintNumber is >= of ".concat(this.refreshConfig.maxRefresh," maxRefresh for this adUnit: ").concat(t)),void(this.doNotRefresh=!0)):void((1!==i||this.hasMinPageExposureDuration())&&r.continuousCounter>=this.refreshConfig.minTimeToRefresh&&r.continuousCounter>=this.refreshConfig.timeToRefresh&&i<=this.refreshConfig.maxRefresh&&(this.refreshStarted=!0,He("Trying to refresh adUnitCode: "+t+" at "+r.continuousCounter+" with conf: ",this.refreshConfig),function(e){var t=e.adUnitCode,n=e.adUnitElementId,i=e.refreshConfig,r=e.currentPrintNumber,a=new CustomEvent("adagio.refresh.onBeforeRefresh",{detail:{adUnitCode:t,adUnitElementId:n,refreshConfig:i,currentPrintNumber:r},cancelable:!0});!window.top.document.dispatchEvent(a)||("gpt"===i.adServer?un(e,cn,ln):"sas"===i.adServer?qe("Adagio refresher for SAS is not implemented yet"):Le("No refresher has been defined"))}({adUnitCode:t,adUnitElementId:this.adUnitElementId,refreshConfig:this.refreshConfig,currentPrintNumber:i}))):(He("No PrintNumber to start refresh for this adUnit: ".concat(t)),void(this.doNotRefresh=!0))}He("No adUnitCode to start refresh for this adUnit: ".concat(t))}},{key:"updateExposureDuration",value:function(e,t){t=t||"adagio";var n=this.viewability[t];if(!n.lastUpdateTs)return 0;var i=e-n.lastUpdateTs;n.exposureDuration+=i,n.continuousCounter+=i}},{key:"resetPreViewability",value:function(e){e=e||"adagio";var t=this.viewability[e];t.lastUpdateTs=!1,t.visible||(t.continuousCounter=0),window.top.document.dispatchEvent(new CustomEvent("adagio.measure.onResetPreViewability",{detail:{measure:this}}))}},{key:"sendBeacon",value:function(e){var t=this,n=(e=e||{}).events||[];if(window.top.ADAGIO&&window.top.ADAGIO.spl&&!0===window.top.ADAGIO.spl.avw)return He("avw.gif ".concat(e.becauseOf," sampled")),!1;Ke({collector:"avw",data:function(){e=e||{};var n=Date.now(),i=De(),r=0;try{r=(new Date).getTimezoneOffset()}catch(e){}var a=!!t.params.adUnitCode&&function(e,t){var n=an.get(e);if(!n||!t)return!1;if(!Array.isArray(n))return n.vrate;if(t){var i=on(n,t);if(i&&i.length)return i[0].vrate}}(t.params.adUnitCode,t.element.size),o=!!t.params.adUnitCode&&dn(t.params.adUnitCode,t.element.size),s=[];t.prebidAdUnitConfig&&Array.isArray(t.prebidAdUnitConfig.sizes)&&t.prebidAdUnitConfig.sizes.map((function(e){return s.push(e.join("x"))}));var d={pv_id:window.top.ADAGIO&&window.top.ADAGIO.pageviewId?window.top.ADAGIO.pageviewId:"",adu_el_id:t.adUnitElementId,v:t.beaconVersion++,tz_off:r,evt:e.becauseOf||"",js_late:window.top.ADAGIO&&!0===window.top.ADAGIO.late?1:0,js_ts:window.top._ADAGIO&&window.top._ADAGIO.adagioStartTime?window.top._ADAGIO.adagioStartTime:"",size:t.element.size,pbjs_sizes:s.join(","),is_pbjs_size:!0===t.element.hasPbjsDimensions?1:0,is_iab_size:!0===t.element.hasIABDimensions?1:0,msrbl:!0===t.measurable?1:0,adu_exp:t.viewability.adagio.exposureDuration,pg_durat:i?n-i:0,pg_paused:t.pageVisibility.computedDuration,pg_exp:i?n-i-t.pageVisibility.computedDuration:0,vsbl:!0===t.viewability.adagio.visible?1:0,adsrv_vsbl:!0===t.viewability.adserver.visible?1:0,adsrv_att_delta:t.viewability.adserver.exposureDelta,clk_time:null!=t.viewability.adagio.exposureDurationOnClick?t.viewability.adagio.exposureDurationOnClick:"",reset:t.resetCounter,adsrv_adu_exp:t.viewability.adserver.exposureDuration,navs_ts:null!=t.navigationStart?t.navigationStart:"",trgr_ts:null!=t.ts?parseInt(t.ts,10):"",init_ts:t.initTime,start_ts:t.startTime,reset_ts:null!=t.resetTime?t.resetTime:"",vsbl_ts:null!=t.viewability.adagio.viewableSince?t.viewability.adagio.viewableSince:"",adsrv_vsbl_ts:null!=t.viewability.adserver.viewableSince?t.viewability.adserver.viewableSince:"",pred_vpkg:a&&(0===a.vrate||parseFloat(a.vrate))?a.vrate:"",pred_vpkg_raw:a&&(0===a.vrateRaw||parseFloat(a.vrateRaw))?a.vrateRaw:"",pred_vpkg_up:a&&(0===a.uplift||parseFloat(a.uplift))?a.uplift:"",pred_vpkg_up_raw:a&&(0===a.upliftRaw||parseFloat(a.upliftRaw))?a.upliftRaw:"",pred_exp:o&&(0===o.timeInView||parseFloat(o.timeInView))?o.timeInView:"",pred_exp_up:o&&(0===o.uplift||parseFloat(o.uplift))?o.uplift:"",auct_id:t.auctionId?t.auctionId:""},u={};for(var c in t.params){if(Object.prototype.hasOwnProperty.call(gn,c))u[gn[c]]=t.params[c]?t.params[c]:""}var l={featv:t.featuresVersion};for(var f in t.features){if(Object.prototype.hasOwnProperty.call(hn,f))l[hn[f]]=t.features[f];else l[f]=t.features[f]}l.pn||(l.pn=1);var p={sess_lngth:je(),avg_sess_lngth:Ce(),sess_cnt:Ge(),rfr_fqdn:Te(),prv_pgtyp:Se()},v={};for(var h in t.options){if(Object.prototype.hasOwnProperty.call(mn,h))v[mn[h]]=t.options[h]?t.options[h]:""}return Object.assign(d,l,p,u,v),t.element.reasonNotMeasurable!==vn.NONE&&qe("Not measurable element with id ".concat(d.adu_el_id," (adUnit code ").concat(d.adu_code,")"),Object.keys(vn)[t.element.reasonNotMeasurable]),d},events:n})}}]),e}(),wn=new RegExp(/(^adagio$|[_-]adagio$|^adagio[_-])/i),yn=new RegExp(/^[a-zA-Z0-9-_]{1,50}$/),An=new RegExp(/^[0-9]{4}$/),_n=function(e){return wn.test(e)},In=function(e){var t=e||{},n=t.organizationId,i=t.site;return!(!An.test(n)||!yn.test(i))},On=function(e,t){var n=!1;if(e&&e.length){var i=e.filter((function(e){return e.code===t}));i.length&&(n=i[0])}return n},Dn=function(){if(!window.top)return[];window.top.ADAGIO=window.top.ADAGIO||{};var e=void 0;if(window.top.ADAGIO.pbjsAdUnits){e=window.top.ADAGIO.pbjsAdUnits;var t=Ie();e.forEach((function(e){try{e.bids[0].params.environment||(e.bids[0].params.environment=t)}catch(e){qe(e)}}))}else{var n=function(){var e;if(fn)return fn;var t=null,n=function(e){return e&&e.getBidResponses&&e.adUnits&&e.adUnits.length&&e.adUnits.length>0};if(window.top.pbjs&&n(window.top.pbjs))e="pbjs",t=window.pbjs;else for(var i in window.top)if(isNaN(parseInt(i))){var r=window.top[i];if(n(r)){e=i,t=r;break}}if(null!=t)return Le("prebid.js found in window.top under "+e+" name."),fn=window.top[e];qe("prebid.js not found in window.top.")}();n&&n.adUnits&&(e=n.adUnits)}return e},En={EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",SET_TARGETING:"setTargeting",NO_BID:"noBid",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed"}},Un={code:"",cpm:"",net_rev:"",cur:"",ttr:"",bidder_ttr:"",sts:"",w:"",h:"",deal:"",sizes:"",timeout:"",won:"",no_bid:"",crea_id:""},jn=function(){function e(t){var i=t.adUnit;n(this,e);var r=i.code,a=i.auctionId;if(!r)throw new Error("`code` property must be provided");if(!a)throw new Error("`auctionId` property must be provided");this.code=r,this.auctionId=a,this.referrer="",this._dirty=!0,this.bidders=[],this.events=[]}return r(e,[{key:"isDirty",value:function(){return!!this._dirty}},{key:"setDirty",value:function(e){this._dirty=!!e}},{key:"get",value:function(e){return this[e]}},{key:"set",value:function(e,t){this[e]=t,this.setDirty(!0)}},{key:"getBidders",value:function(){return this.bidders||[]}},{key:"getBidder",value:function(e){return this.getBidders().find((function(t){return t.code===e}))}},{key:"setBidder",value:function(e,t){var n=this.getBidder(e);n||(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Un,{code:e}),this.bidders.push(n)),t||(t={}),Object.keys(t).filter((function(e){return"code"!==e})).forEach((function(e){n[e]=t[e]})),this.setDirty(!0)}}]),e}();window.top.ADAGIO=window.top.ADAGIO||{};var Cn=Oe();function Sn(e,t,n){return e.map((function(e){var i=e[t];return"function"==typeof n&&(i=n(i)),"string"==typeof i&&(i=i.replace(/,/,"_comma_")),i})).join(",")}var Gn=function(){function e(t){var i=t.auctionId;n(this,e),this.auctionId=i,this.auctionStart=-1,this.auctionEnd=-1,this.adUnits=[],this.beaconVersion=0,this.pageviewId=window.top.ADAGIO.pageviewId||""}return r(e,[{key:"getOrAddAdunit",value:function(e){if(!e)return!1;var t=this.adUnits.find((function(t){return t.code===e}));if(void 0===t){try{t=new jn({adUnit:{code:e,auctionId:this.auctionId}}),this.adUnits.push(t)}catch(e){qe(e)}window.top.ADAGIO.adUnits=window.top.ADAGIO.adUnits||{};var n={auctionId:this.auctionId,pageviewId:this.pageviewId};window.top.ADAGIO.adUnits[e]&&(n.printNumber=window.top.ADAGIO.adUnits[e].printNumber),window.top.ADAGIO.adUnits[e]=n}return t}},{key:"setAuctionStart",value:function(e){-1===this.auctionStart&&(this.auctionStart=e)}},{key:"setAuctionEnd",value:function(e){-1===this.auctionEnd&&(this.auctionEnd=e)}},{key:"sendAfterPrebidAuction",value:function(e){var t=this;e&&-1!==t.auctionStart&&setTimeout((function(){t.send("pbtimeout3")}),e+3e3)}},{key:"send",value:function(e,t){if(window.top.ADAGIO&&window.top.ADAGIO.spl&&!0===window.top.ADAGIO.spl.bids)return He("bids.gif sampled"),!1;if(!this.adUnits||!this.adUnits.length)return!1;var n=this,i=Date.now();this.beaconVersion++,this.adUnits.forEach((function(r){if((!t||t===r.get("code"))&&(r.getBidders().find((function(e){return _n(e.code)}))&&r.isDirty())){if(!In({organizationId:r.get("org_id"),site:r.get("site")}))return qe('bids: invalid "site" or "organizationId" in Prebid.js params'),!1;Ke({collector:"bids",data:function(){var t={ts:i,evt:e,pv_id:n.pageviewId,adu_code:r.get("code"),url:r.get("referrer"),auct_id:r.get("auctionId"),auct_start:n.auctionStart,auct_end:n.auctionEnd,v:n.beaconVersion,js_late:window.top.ADAGIO&&!0===window.top.ADAGIO.late?1:0,js_ts:window.top._ADAGIO&&window.top._ADAGIO.adagioStartTime?window.top._ADAGIO.adagioStartTime:"",navs_ts:null!=Cn?Cn:""};return t.bidders=r.getBidders().map((function(e){return e.code})).join(","),t.cpm=Sn(r.getBidders(),"cpm"),t.net_rev=Sn(r.getBidders(),"net_rev"),t.cur=Sn(r.getBidders(),"cur"),t.ttr=Sn(r.getBidders(),"ttr"),t.bttr=Sn(r.getBidders(),"bidder_ttr"),t.sts=Sn(r.getBidders(),"sts"),t.w=Sn(r.getBidders(),"w"),t.h=Sn(r.getBidders(),"h"),t.deal=Sn(r.getBidders(),"deal"),t.sizes=Sn(r.getBidders(),"sizes"),t.timeout=Sn(r.getBidders(),"timeout"),t.won=Sn(r.getBidders(),"won"),t.no_bid=Sn(r.getBidders(),"no_bid"),t.crea_id=Sn(r.getBidders(),"crea_id"),t.cat=r.get("cat")||"",t.dvc=r.get("dvc")||"",t.env=r.get("env")||"",t.org_id=r.get("org_id")||"",t.pgtyp=r.get("pgtyp")||"",t.plcmt=r.get("plcmt")||"",t.site=r.get("site")||"",t.subcat=r.get("subcat")||"",t.os=r.get("os")||"",t.brwsr=r.get("brwsr")||"",t.u_ts=r.get("u_ts")||"",t},events:[]}),r.setDirty(!1)}}))}}]),e}(),Tn=function(){"hidden"===window.top.document.visibilityState&&this.send("auct_visibilitychange")},xn={organizationId:"org_id",site:"site",placement:"plcmt",adUnitCode:"adu_code",pagetype:"pgtyp",category:"cat",subcategory:"subcat",environment:"env"},Nn={},Bn=function(e){return Object.prototype.hasOwnProperty.call(Nn,e)?Nn[e]:(Nn[e]=new Gn({auctionId:e}),Nn[e])},kn=function(e,t){var n=e.bidderCode,i=e.bids,r=void 0===i?[]:i,a=e.refererInfo;r.forEach((function(e){var i=e.adUnitCode,r=e.sizes,o=e.params,s=void 0===o?{}:o,d=e.features,u=void 0===d?{}:d,c=t.getOrAddAdunit(i);if(c.set("referrer",a.referer),c.events.push(En.AUCTION_INIT),c.setBidder(n,{sizes:Rn(r)}),_n(n)){var l=[];for(var f in s)Object.prototype.hasOwnProperty.call(xn,f)&&l.push({name:xn[f],value:s[f]});l.push({name:"dvc",value:u.device||""}),l.push({name:"os",value:u.os||""}),l.push({name:"brwsr",value:u.browser||""}),l.push({name:"u_ts",value:u.user_timestamp||""}),l.forEach((function(e){c.set(e.name,e.value)}))}}))},Pn=function(e,n,i){if(void 0!==t(i))if(n===En.EVENTS.AUCTION_INIT){var r=i.auctionId,a=i.bidderRequests,o=i.timestamp,s=Bn(r);s.setAuctionStart(o),window.top.document.removeEventListener("visibilitychange",Tn),window.top.document.addEventListener("visibilitychange",Tn.bind(s),!1),a.forEach((function(e){kn(e,s)})),setTimeout((function(){s.send("auct_1000")}),1e3),setTimeout((function(){s.send("auct_3500")}),3500),setTimeout((function(){-1!==s.auctionEnd&&s.adUnits.forEach((function(e){e.getBidders().forEach((function(t){t.bidder_ttr||e.setBidder(t.code,{bidder_ttr:5e3})}))})),s.send("auct_5000")}),5e3)}else if(n===En.EVENTS.BID_REQUESTED);else if(n===En.EVENTS.BID_RESPONSE){var d=i.auctionId;!function(e,t){var n=e.adUnitCode,i=e.bidderCode,r=e.cpm,a=void 0===r?"":r,o=e.netRevenue,s=void 0===o?"":o,d=e.currency,u=void 0===d?"":d,c=e.timeToRespond,l=void 0===c?"":c,f=e.statusMessage,p=void 0===f?"":f,v=e.width,h=void 0===v?"":v,g=e.height,m=void 0===g?"":g,b=e.dealId,w=void 0===b?"":b,y=e.creativeId,A=void 0===y?"":y;t.getOrAddAdunit(n).setBidder(i,{cpm:a,net_rev:s?1:0,cur:u,ttr:l,sts:p,w:h,h:m,deal:w,crea_id:A})}(i,Bn(d))}else if(n===En.EVENTS.BIDDER_DONE){var u=i.auctionId,c=i.bids,l=i.start,f=(new Date).getTime(),p=Bn(u);c.forEach((function(e){var t=p.getOrAddAdunit(e.adUnitCode),n=e.bidder;t&&n&&t.setBidder(n,{bidder_ttr:f-l})}))}else if(n===En.EVENTS.NO_BID){var v=i.auctionId,h=i.adUnitCode,g=i.bidder,m=Bn(v).getOrAddAdunit(h),b=g;m&&b&&m.setBidder(b,{no_bid:1})}else if(n===En.EVENTS.BID_TIMEOUT)i.forEach((function(e){var t=Bn(e.auctionId).getOrAddAdunit(e.adUnitCode),n=e.bidder;t&&n&&t.setBidder(n,{timeout:1})}));else if(n===En.EVENTS.AUCTION_END){var w=i.auctionId,y=i.auctionEnd,A=i.bidderRequests,_=Bn(w);_.setAuctionEnd(y),A.forEach((function(e){kn(e,_)}))}else if(n===En.EVENTS.BID_WON){var I=i.auctionId,O=i.adUnitCode,D=i.bidderCode,E=Bn(I).getOrAddAdunit(O);E&&D&&E.setBidder(D,{won:1})}};function Rn(e){return e.map((function(e){return"".concat(e[0],"x").concat(e[1])})).join("|")}var zn=function(e){Pn(0,e.eventType,e.args)},Vn=window.top;for(Vn.ADAGIO=Vn.ADAGIO||{},Vn.ADAGIO.PBAH=Vn.ADAGIO.PBAH||{},Vn.ADAGIO.PBAH.q=Vn.ADAGIO.PBAH.q||[],Vn.ADAGIO.PBAH.q.push=function(e){zn(e)};Vn.ADAGIO.PBAH.q.length;)zn(Vn.ADAGIO.PBAH.q.shift());var Mn=new(function(){function e(){n(this,e),this.measurers={},this.init()}return r(e,[{key:"init",value:function(){}},{key:"store",value:function(e){var t=e.params&&e.params.adUnitCode?e.params.adUnitCode:void 0;if(this.get(t))return!1;this.measurers[t]=e}},{key:"get",value:function(e){return e?this.measurers[e]:this.measurers}},{key:"has",value:function(e,t){var n=this.get(e);return n&&t?n.auctionId===t:!!n}},{key:"getByAdUnitElementId",value:function(e){var t=this,n=Object.keys(this.measurers);return!(!n||!n.length)&&n.filter((function(n){return t.measurers[n]&&t.measurers[n]._adUnitElementId===e}))}},{key:"remove",value:function(e){return delete this.measurers[e]}}]),e}());Object.freeze(Mn);var Ln=[];e.adagioStartTime=Date.now();var qn=!1,Fn=window.top,Hn=Fn._ADAGIO&&Fn._ADAGIO.queueHistory?Fn._ADAGIO.queueHistory:[],$n={default:{avw:.5,bids:.1},fromSSP:{},random:Math.random()},Wn=function(e){var t=new RegExp(/^(<iframe[a-z0-9\s-_'"=%;:]+src=["'](https?:\/\/[a-z0-9-.()#_?=&%/[\]]+)[a-z0-9\s-_'"=%;:]+><\/iframe>)(?![<])$/i),n=new RegExp(/^(<img[a-z0-9\s-_'"=%;:]+src=["'](https?:\/\/[a-z0-9-.()#_?=&%/[\]]+)[a-z0-9\s-_'"=%;:]+?\/>)(?![<])$/i),i=Fn.document.getElementsByTagName("body")[0];if(e&&Array.isArray(e.user_syncs))e.user_syncs.forEach((function(e){if(!e.html||!t.test(e.html)&&!n.test(e.html))return He("user_sync element is not valid to be added to the DOM."),!1;i.insertAdjacentHTML("beforeend",e.html)}));else if(e.user_sync&&e.user_sync.html){if(!t.test(e.user_sync.html)&&!n.test(e.user_sync.html))return He("user_sync element is not valid to be added to the DOM."),!1;i.insertAdjacentHTML("beforeend",e.user_sync.html)}},Jn=function(e){var t=Dn(),n=e.options||{};if(e.adUnitCode&&t){var i=Fn.ADAGIO.adUnits&&Fn.ADAGIO.adUnits[e.adUnitCode]&&Fn.ADAGIO.adUnits[e.adUnitCode].auctionId;if(!i)return qe("Cannot start measurer.","".concat(e.adUnitCode,": no auctionId config found in window.top.ADAGIO.adUnits")),!1;if(Fn.ADAGIO.adUnits[e.adUnitCode].pageviewId!==Fn.ADAGIO.pageviewId)return qe("Cannot start measurer.","".concat(e.adUnitCode,": non consistent pageviewId for window.top.ADAGIO.adUnits")),!1;if(Mn.has(e.adUnitCode,i))return qe("Cannot start measurer.","".concat(e.adUnitCode,": a measurer is already registred for current auction ").concat(i)),Mn.get(e.adUnitCode).stop(),Mn.remove(e.adUnitCode),!1;var r=Mn.get(e.adUnitCode);if(r&&r.auctionId!==i&&(r.stop(),Mn.remove(e.adUnitCode)),!r&&e.adUnitElementId){var a=Mn.getByAdUnitElementId(e.adUnitElementId);a&&a.map((function(e){var t=Mn.get(e);t&&(t.stop(),Mn.remove(e))}))}var o=function(e,t){var n=On(e,t),i=!1;if(n){var r=n.bids.filter((function(e){return _n(e.bidder)}));r.length&&(i=r[0])}return i}(t,e.adUnitCode);if(!o)return qe("Cannot start measurer.","".concat(e.adUnitCode,": adagio bidder has not been set (see prebid.js)")),!1;var s=function(e){if(!e||!e.params||!e.params.adUnitElementId)return!1;var t=e.params;return{adUnitElementId:t.adUnitElementId,category:t.category||"",environment:t.environment||"",organizationId:t.organizationId||"",pagetype:t.pagetype||"",placement:t.placement||"",site:t.site||"",size:t.size||"",subcategory:t.subcategory||""}}(o);if(!s)return qe("Cannot start measurer.","".concat(e.adUnitCode,": no params. Mainly due to lack of adUnitElementId in Adagio bidder params")),!1;if(s=Object.assign({},s,{adUnitCode:e.adUnitCode}),!In(s))return qe("Cannot start measurer.","".concat(e.adUnitCode,': invalid "site" or "organizationId" in Prebid.js params')),!1;var d=On(t,e.adUnitCode);s.organizationId&&s.site&&(n.refresh=Ln.find((function(t){return t.adUnitCode==e.adUnitCode}))),d&&(n.adUnitConfig=d);var u=s.adUnitElementId;new bn({ts:e.ts,adUnitElementId:u,auctionId:i,params:s,options:n})}else qe("Cannot start measurer.",{msg:"no adUnitCode or adUnitsArray"})},Qn=function(n){if(Fn._ADAGIO=Fn._ADAGIO||{},Fn._ADAGIO.queueHistory=Fn._ADAGIO.queueHistory||Hn,Fn._ADAGIO.queueHistory.push(n),Hn.length>500&&Hn.shift(),"object"!==t(n)||!n.action)return!1;if("ssp-data"===n.action||"set-predictions"===n.action){!function(e){e&&e.ssp_version&&(Fn.ADAGIO.versions.ssp=e.ssp_version)}(n.data),function(e){if(!e.predictions)return!(!e.data||!e.data.predictions)&&void an.set(e.data.predictions);an.set(e.predictions)}(n),function(e){$n.fromSSP.avw||(e&&e.adagiojs&&e.adagiojs.sampling&&e.adagiojs.sampling.avw&&(He("Apply sampling from ssp config: ".concat(e.adagiojs.sampling.avw)),Fn.ADAGIO.spl=Fn.ADAGIO.spl||{},Fn.ADAGIO.spl.avw=$n.random>e.adagiojs.sampling.avw),$n.fromSSP.avw=!0)}(n.data),Wn(n.data),function(e){if(!e||!e.refresh)return!1;e.refresh.map((function(e){Fn.ADAGIO.adUnits&&Fn.ADAGIO.adUnits[e.adUnitCode]&&!Fn.ADAGIO.adUnits[e.adUnitCode].printNumber&&(Fn.ADAGIO.adUnits[e.adUnitCode].printNumber=1),Ln.push(e)}))}(n.data);var i=Dn()[0].bids.filter((function(e){return _n(e.bidder)}))[0];i&&xe(i.params.pagetype)}else"features"===n.action?Object.keys(n.data).map((function(e){Ze.store(e,n.data[e],!0)})):"gpt-event"===n.action?function(e){if("gpt-event"!==e.action||!e.data.eventName)return!1;if(e.selfAdserverEvent||(qn=!0),!qn||!e.selfAdserverEvent){if("slotRenderEnded"===e.data.eventName){var t=e.data.args,n=t.advertiserId,i=t.campaignId,r=t.creativeId,a=t.isEmpty,o=t.lineItemId,s=t.size,d=t.slot,u=d.getSlotElementId(),c=Dn();if(!c)return void He("DFP: Could not find ADAGIO.pbjsAdUnits or pbjs.adUnits before starting a measurer for ".concat(u));var l=c.filter((function(e){return e.bids.filter((function(e){return _n(e.bidder)&&e.params.adUnitElementId===u}))[0]}));if(l.length)l=l[0].code;else{if(!(Fn.ADAGIO&&Fn.ADAGIO.pbjsAdUnits&&Fn.ADAGIO.pbjsAdUnits.length))return void He("DFP: Cannot start measurer","Could not find adUnitCode from adUnitElementId: ".concat(u));var f=d.getAdUnitPath(),p=Fn.ADAGIO.pbjsAdUnits.find((function(e){return e.code===f||e.code===u}));if(!p)return void He("DFP: Cannot start measurer","Could not find adUnitCode from adUnitElementId: ".concat(u));He("DFP: auto-detect prebid adunit","update ADAGIO.pbjsAdUnit array with adUnitElementId: ".concat(u)),p.bids[0].params.adUnitElementId=u,l=p.code}He("Start a measurer from gpt.slotRenderEnded event for ".concat(u,". Delay from queued: ").concat(Date.now()-e.ts)),Jn({ts:e.ts,adUnitCode:l,options:{adsrv:"dfp",adsrv_advrt_id:n,adsrv_cmpgn_id:i,adsrv_crea_id:r,adsrv_empty:!0===a?"1":"0",adsrv_lnitem_id:o,adsrv_size:s&&"undefined"!==s.join?s.join("x"):""}})}"function"==typeof window.CustomEvent&&Fn.document.dispatchEvent(new CustomEvent("adagio.gpt."+e.data.eventName,{detail:e}))}}(n):"adthk-event"===n.action?function(e){if("adthk-event"!==e.action||!e.data.eventName)return!1;if("renderEndedEvent"===e.data.eventName){var t=e.data.args.elementId,n=Dn();if(!n)return void He("ADTHK: Could not find ADAGIO.pbjsAdUnits or pbjs.adUnits before starting a measurer for ".concat(t));var i=n.filter((function(e){return e.bids.filter((function(e){return _n(e.bidder)&&e.params.adUnitElementId===t}))[0]}));if(!i||!i.length)return void He("ADTHK: Could not find adUnitCode from adUnitElementId ".concat(t));i=i.pop().code,He("Start a measurer from adthk.renderEndedEvent event for adUnitCode ".concat(i,". Delay from queued: ").concat(Date.now()-e.ts)),Jn({ts:e.ts,adUnitCode:i,adUnitElementId:t,options:{adsrv:"adthk",adsrv_crea_id:e.data.args.creativeId,adsrv_empty:!0===e.data.args.isEmpty?"1":"0",adsrv_size:e.data.args.size&&"undefined"!==e.data.args.size.join?e.data.args.size.join("x"):""}})}}(n):"adagio-avs-render"===n.action?function(e){if("adagio-avs-render"!==e.action||!e.data.eventName)return!1;if("renderEvent"===e.data.eventName){var t=e.data.args.elementId,n=Dn();if(!n)return void He("THM: Could not find ADAGIO.pbjsAdUnits or pbjs.adUnits before starting a measurer for ".concat(t));var i=n.filter((function(e){return e.bids.filter((function(e){return _n(e.bidder)&&e.params.adUnitElementId===t}))[0]}));if(!i||!i.length)return void He("THM: Could not find adUnitCode from adUnitElementId ".concat(t));i=i.pop().code,He("Start a measurer from THM.renderEvent event for adUnitCode ".concat(i,". Delay from queued: ").concat(Date.now()-e.ts)),Jn({ts:e.ts,adUnitCode:i,adUnitElementId:t,options:{adsrv:"thm",adsrv_crea_id:e.data.args.creativeId,adsrv_empty:!0===e.data.args.isEmpty?"1":"0",adsrv_size:e.data.args.creativeSize&&"undefined"!==e.data.args.creativeSize.join?e.data.args.creativeSize.join("x"):""}})}}(n):"sas-event"===n.action?function(e){if("sas-event"!==e.action||!e.data.eventName)return!1;if(e.selfAdserverEvent||(qn=!0),qn&&e.selfAdserverEvent)return!1;if("noad"===e.data.eventName){var t=e.data.args.formatId,n=Dn();if(!n)return void He("SAS: Could not find ADAGIO.pbjsAdUnits or pbjs.adUnits before starting a measurer for ".concat(t));n.filter((function(t){return t.code===e.data.args.tagId})).length&&(t=event.tagId),t="number"==typeof t?t.toString():t,Fn.ADAGIO.adUnits&&Fn.ADAGIO.adUnits[t]&&(Fn.ADAGIO.adUnits[t].sasNoad=!0)}if("load"===e.data.eventName){var i=e.data.args.formatId,r=Dn();if(!r)return void He("SAS: Could not find ADAGIO.pbjsAdUnits or pbjs.adUnits before starting a measurer for ".concat(i));if(r.filter((function(t){return t.code===e.data.args.tagId})).length)i=e.data.args.tagId;else{var a=r.find((function(t){return!(!t.bids||!t.bids.find((function(t){return e.data.args.tagId===t.params.adUnitElementId})))}));a&&(i=a.code)}i="number"==typeof i?i.toString():i;var o=!1;Fn.ADAGIO.adUnits&&Fn.ADAGIO.adUnits[i]&&Fn.ADAGIO.adUnits[i].sasNoad&&(o=!!Fn.ADAGIO.adUnits[i].sasNoad,delete Fn.ADAGIO.adUnits[i].sasNoad),He("Start a measurer from SAS","".concat(e.data.eventName," event for ").concat(i,". Delay from queued: ").concat(Date.now()-e.ts)),Jn({ts:e.ts,adUnitCode:i,options:{adsrv:"sas",adsrv_empty:o?"1":"0"}})}"function"==typeof window.CustomEvent&&Fn.document.dispatchEvent(new CustomEvent("adagio.sas."+e.data.eventName,{detail:e}))}(n):"ast-event"===n.action?function(e){if("ast-event"!==e.action||!e.data.eventName)return!1;if(e.selfAdserverEvent||(qn=!0),!(qn&&e.selfAdserverEvent||"adLoaded"!==e.data.eventName||"banner"!==e.data.args[0].adType)){var t=e.data.args[0],n=t.targetId,i=t.creativeId,r=t.width,a=t.height,o=Dn();if(!o)return void He("AST: Could not find ADAGIO.pbjsAdUnits or pbjs.adUnits before starting a measurer for ".concat(n));var s=o.filter((function(e){return e.bids.filter((function(e){return _n(e.bidder)&&e.params.adUnitElementId===n}))[0]}));if(!s.length)return void He("AST: Cannot start measurer","Could not find adUnitCode from adUnitElementId: ".concat(n));s=s[0].code,He("Start a measurer from ast.asLoaded event for ".concat(n,". Delay from queued: ").concat(Date.now()-e.ts)),Jn({ts:e.ts,adUnitCode:s,adUnitElementId:n,options:{adsrv:"ast",adsrv_crea_id:i,adsrv_empty:0,adsrv_size:"".concat(r,"x").concat(a)}})}}(n):"pb-analytics-event"===n.action?Pn(0,n.data.eventName,n.data.args):"reset"===n.action?function(){Le("Reset action called");var t=Mn.get();for(var n in t){var i=t[n];i.stop(),Mn.remove(i.params.adUnitCode)}e.adagioStartTime=Date.now(),Fn.ADAGIO.pageviewId=_e()}():qe('queue: Unknown action "'.concat(n.action,'" in payload ').concat(n))};return Fn.document.addEventListener("adagio.measure.afterStart",(function(e){Mn.store(e.detail.measure)})),Fn.ADAGIO=Fn.ADAGIO||{},Fn.ADAGIO.versions=Fn.ADAGIO.versions||{},Fn.ADAGIO.versions.adagiojs="1.7.8",Fn.ADAGIO.pageviewId=Fn.ADAGIO.pageviewId||_e(),Fn.ADAGIO.features=Ze,Fn.ADAGIO.spl=Fn.ADAGIO.spl||{},Fn.ADAGIO.spl.avw=Fn.ADAGIO.spl.avw||!1,Fn.ADAGIO.spl.bids=Fn.ADAGIO.spl.bids||!1,Fn.ADAGIO.getVratePrediction=Fn.ADAGIO.getVratePrediction||sn,Fn.ADAGIO.getVratePredictionForTargeting=Fn.ADAGIO.getVratePredictionForTargeting||function(e){return(sn(e,null,!0)||[]).filter((function(e){return e.vrate>0})).map((function(e){return"".concat(e.size,"_").concat(100*e.vrate)}))},Fn.ADAGIO.getTimeInViewPrediction=Fn.ADAGIO.getTimeInViewPrediction||dn,Fn.ADAGIO.queue=Fn.ADAGIO.queue||[],Fn.ADAGIO.processQueue=Fn.ADAGIO.processQueue||function(){for(;Fn.ADAGIO.queue.length;)Qn(Fn.ADAGIO.queue.shift())},Fn.ADAGIO.queue.push=function(e){Qn(e)},function(){var e=window.top;!0!==e.ADAGIO.loaded&&(e.ADAGIO.spl.avw=$n.random>$n.default.avw,e.ADAGIO.spl.bids=$n.random>$n.default.bids,qn=!1,function(){var e={GPT:{IMPRESSION_VIEWABLE:"impressionViewable",SLOT_ON_LOAD:"slotOnLoad",SLOT_RENDER_ENDED:"slotRenderEnded",SLOT_REQUESTED:"slotRequested",SLOT_RESPONSE_RECEIVED:"slotResponseReceived",SLOT_VISIBILITY_CHANGED:"slotVisibilityChanged"},SAS:{CALL:"call",CLEAN:"clean",BEFORE_RENDER:"beforeRender",CMP_ANSWERED:"CmpAnswered",CMP_CALLED:"CmpCalled",LOAD:"load",NOAD:"noad",RENDER:"render",RESET:"reset"},AST:{adRequested:"adRequested",adAvailable:"adAvailable",adBadRequest:"adBadRequest",adLoaded:"adLoaded",adNoBid:"adNoBid",adRequestFailure:"adRequestFailure",adError:"adError",adCollapse:"adCollapse"}};if(!qn){try{var t=window.self;t.googletag=t.googletag||{},t.googletag.cmd=t.googletag.cmd||[],t.googletag.cmd.push((function(){Object.keys(e.GPT).map((function(t){return e.GPT[t]})).forEach((function(e){t.googletag.pubads().addEventListener(e,(function(t){Fn.ADAGIO.queue.push({action:"gpt-event",data:{eventName:e,args:t},ts:Date.now(),selfAdserverEvent:!0})}))}))})),t.sas=t.sas||{},t.sas.cmd=t.sas.cmd||[],t.sas.cmd.push((function(){Object.keys(e.SAS).map((function(t){return e.SAS[t]})).forEach((function(e){t.sas.events.on(e,(function(t){Fn.ADAGIO.queue.push({action:"sas-event",data:{eventName:e,args:t},ts:Date.now(),selfAdserverEvent:!0})}))}))}))}catch(e){}try{var n=window.self;n.apntag=n.apntag||{},n.apntag.anq=n.apntag.anq||[],n.apntag.anq.push((function(){Object.keys(e.AST).map((function(t){return e.AST[t]})).forEach((function(e){n.apntag.onEvent(e,(function(){Fn.ADAGIO.queue.push({action:"ast-event",data:{eventName:e,args:arguments},ts:Date.now(),selfAdserverEvent:!0})}))}))}))}catch(e){}}}(),He("ADAGIO-JS LOADED: ".concat("1.7.8")),e.ADAGIO.loaded=!0)}(),e.getTimeInViewPrediction=dn,e.getVratePrediction=sn,e.measurersManager=Mn,e.queueHistory=Hn,e.setUserSync=Wn,e}({});try{window.top.location.href&&(top.ADAGIO.processQueue(),top._ADAGIO=_ADAGIO)}catch(e){}


originKey: rb.moc.oedneit.www.:https:443
scope: rb.moc.oedneit.www.:https:443
key: acceptedCookies
value:
  [{"Id":1,"Name":"ASP.NET_SessionId","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":2,"Name":"cookie-info","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":3,"Name":"city_tiendeo2","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":4,"Name":"lastcssversion","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":5,"Name":"show_down_app","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":6,"Name":"^(.*)_pw_messageDivShown$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":true},{"Id":7,"Name":"^(.*)_pw_token$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":true},{"Id":8,"Name":"^(.*)_pw_tokenId$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":true},{"Id":9,"Name":"^(pushweb_id_([a-zA-Z]{2}))$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":true},{"Id":12,"Name":"poll","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":13,"Name":"^(poll_(\\d)+)$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":true},{"Id":14,"Name":"viewedCatalogs","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":15,"Name":"usu_tiendeo","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":21,"Name":"_ga","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":22,"Name":"_gat","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":23,"Name":"_gid","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":30,"Name":"EndUserId","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":31,"Name":"AccessToken","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":34,"Name":"ExpirationAccessToken","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":37,"Name":"registerPush","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":38,"Name":"openingDate","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":41,"Name":"cip","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":42,"Name":"geoipcity_tiendeo","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":43,"Name":"^(.*)_pw_permission_requested$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":true},{"Id":47,"Name":"last-cookie-info-update","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":48,"Name":"last-js-version","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"necessary","RegexName":false},{"Id":49,"Name":"sessionId","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-es/","Group":"necessary","RegexName":false},{"Id":16,"Name":"latlon","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"performance","RegexName":false},{"Id":17,"Name":"loc","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"performance","RegexName":false},{"Id":18,"Name":"amp-experiment","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"performance","RegexName":false},{"Id":19,"Name":"viewType","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":false},{"Id":20,"Name":"favs","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":false},{"Id":24,"Name":"^(rateit_([a-zA-z]+)_(\\d)+)$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":true},{"Id":32,"Name":"^(store_integration__(.)+)$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":true},{"Id":33,"Name":"^(city_integration__(.)+)$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":true},{"Id":39,"Name":"numClicksNoModal","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":false},{"Id":40,"Name":"^(\\d+)-cuponTiendeo$","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":true},{"Id":45,"Name":"like_dislike","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":false},{"Id":46,"Name":"sb-closed","Provider":"tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"functional","RegexName":false},{"Id":25,"Name":"APISID","Provider":"google","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"targeting","RegexName":false},{"Id":26,"Name":"nombrerandom1","Provider":"Tiendeo","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"targeting","RegexName":false},{"Id":27,"Name":"nombrerandom2","Provider":"Doubleclick","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"targeting","RegexName":false},{"Id":28,"Name":"nombrerandom3","Provider":"Twitter","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"targeting","RegexName":false},{"Id":29,"Name":"nombrerandom4","Provider":"Facebook","Url":"https://www.tiendeo.com/info/cookies-policy-en/","Group":"targeting","RegexName":false}]


originKey: rb.moc.oedneit.www.:https:443
scope: rb.moc.oedneit.www.:https:443
key: adagio
value:
  {"navigation":{"session":{"lastActivityTime":1605029135566,"pages":1,"currentPagetype":null,"previousPagetype":null},"totalPages":1,"totalSessions":1}}


originKey: rb.moc.oedneit.www.:https:443
scope: rb.moc.oedneit.www.:https:443
key: cto_bundle
value:
  sQQ-kl9wZUE3STBsWTdlTTU0RnhtdzZlaDklMkJ2b2daTW9kN0JXYzk4TThmYUFDTlgyMlkySjIxTzJIc0d5dkU4bWJaSDROMW1DTVI0NTE2cEQ3JTJGS01XemNDYjZTYlFQSTlidzlwdzU3TEt2ZElhMnZmT0VYdiUyQjNPNktIYyUyRlVSTXdBREhXdUVkQTJ5dU1EdENaUGJXVEtXQVVtUXdYSVY0b0lSUXVORjFKNzByQjc3aExsbFdnajJsVE5McEtBZzBPVVY1NQ


originKey: rb.moc.oedneit.www.:https:443
scope: rb.moc.oedneit.www.:https:443
key: criteo_fast_bid
value:
  // Hash: UKS/jq5f5sKJvVNmymLMDwGtRFI6u+UqigHRKPYwYFf5w1R4TxHxnfHwbcEvBqLvyDHZfGyXWFZ2xoq1sBaWP7K2LGMeK7YgCUn5cN/wfuhz4EzdMCckxxatS1Ctlhpb5/LT3wueIxmbHDLlXfyCj4FOUfV7UwjUfJQ5IC9aCZY=
  !function(){"use strict";var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function t(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var S=function(){return(S=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};var i=(n.prototype.isAdBlocked=function(t){var e=this;this.createPixel(n.allowedPixelUrl,function(){(e.allowedPixelLoaded=!0)===e.blockedPixelFailed&&t(!0)},function(){}),this.createPixel(n.blockedPixelUrl,function(){t(!1)},function(){(e.blockedPixelFailed=!0)===e.allowedPixelLoaded&&t(!0)})},n.prototype.createPixel=function(t,e,i){var r=document.createElement("img");r.src=t,r.height=1,r.width=1,r.style.display="none",r.onload=e,r.onerror=i},n.allowedPixelUrl="https://static.criteo.net/images/pixel.gif?ch=1",n.blockedPixelUrl="https://static.criteo.net/images/pixel.gif?ch=2",n);function n(){this.allowedPixelLoaded=!1,this.blockedPixelFailed=!1}var T=(e.create=function(t){return new e(t)},e.prototype.adBlockFlagEnabled=function(){var t=e.ADBLOCK_FLAG_KEY;return null!==this.localStorageHelper.getItem(t)},e.prototype.enableAdBlockFlag=function(){var t=e.ADBLOCK_FLAG_KEY;this.localStorageHelper.setItem(t,"1",e.ADBLOCK_FLAG_LIFETIME)},e.prototype.disableAdBlockFlag=function(){var t=e.ADBLOCK_FLAG_KEY;this.localStorageHelper.removeItem(t)},e.prototype.setAdBlockFlagTimer=function(t){var e=this;this.adBlockFlagEnabled()||!this.timerEnabled||this.timerStarted||(this.timerStarted=!0,setTimeout(function(){e.timerEnabled&&(e.refreshAdblockFlag(),e.timerEnabled=!1)},t))},e.prototype.disableAdBlockFlagTimer=function(){this.timerEnabled=!1,this.adBlockFlagEnabled()&&this.refreshAdblockFlag()},e.prototype.refreshAdblockFlag=function(){var e=this;(new i).isAdBlocked(function(t){t?e.enableAdBlockFlag():e.disableAdBlockFlag()})},e.ADBLOCK_FLAG_KEY="criteo_adblock_flag",e.ADBLOCK_FLAG_LIFETIME=864e5,e);function e(t){this.timerEnabled=!0,this.timerStarted=!1,this.localStorageHelper=t}var o,a,s,A=(t(d,o=function(){}),d.prototype.ResizeFrame=function(t,e){if(this.document.defaultView&&this.document.defaultView.frameElement){var i=this.document.defaultView.frameElement;i.width=t.toString(),i.height=e.toString()}},d.prototype.Write=function(t){this.document.open(),this.document.write(t),this.document.close()},d.prototype.LoadScript=function(t){this.Write("<script type='text/javascript' src='"+t+"'><\/script>")},d);function d(t){var e=o.call(this)||this;return e.document=t,e}(s=a=a||{})[s.Error=0]="Error",s[s.Warning=1]="Warning",s[s.Debug=2]="Debug";var c=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),R=(l.Log=function(t,e){if(!(l.LOGLEVEL<t)){var i=a[t].toUpperCase(),r=window.navigator.userAgent,n=0<r.indexOf("MSIE ")||0<r.indexOf("Trident/");window.console&&(n?console.log("[PubTag] "+i+": "+e):console.log("%cPubTag",c,i+": "+e))}},l.Debug=function(t){l.Log(a.Debug,t)},l.Warning=function(t){l.Log(a.Warning,t)},l.Error=function(t){l.Log(a.Error,t)},l.LOGLEVEL=a.Error,l);function l(){}var M=(u.prototype.filterNoBidSlots=function(t){var e=this.bidManager.filterNoBidSlots(t);return this.context.shouldIgnoreSilentMode?(e.length!==t.length&&this.context.setSilentModeIgnored&&this.context.setSilentModeIgnored(),t):e},u.prototype.silentModeEnabled=function(){var t=!1;return this.silentModeManager.silentModeEnabled()&&(this.context.shouldIgnoreSilentMode&&this.context.setSilentModeIgnored?this.context.setSilentModeIgnored():t=!0),t},u.prototype.getCachedBids=function(t){return this.bidManager.getRequestCachedBids(t)},u.prototype.removeBid=function(t){this.bidManager.removeBid(t)},u.prototype.handleResponse=function(t,e,i,r){var n=i.time_to_next_call;0<n&&(R.Debug("Global silent mode enabled for "+n+" seconds"),this.silentModeManager.enableSilentMode(1e3*n));var o={};if(i.slots)for(var s=0,a=i.slots;s<a.length;s++)(g=a[s]).ttl&&(o[g.imp_id]=g.ttl);var d=[];if(e.slots)for(var c=0,l=e.slots;c<l.length;c++){var u=0;(g=l[c]).slotid in o&&(u=o[g.slotid],delete o[g.slotid]),0<u&&(R.Debug("Bid for slot '"+g.impid+"' cached for "+u+" seconds"),d.push({slot:g,ttl:u}))}this.bidManager.storeResponseBids(d);var p=[];for(var h in o)if(o.hasOwnProperty(h))for(var v=0,f=t;v<f.length;v++){var g;(g=f[v]).slotId===h&&(u=o[h],R.Debug("Silent mode for slot '"+g.impId+"' enabled for "+u+" seconds"),p.push({slot:g,ttl:u}))}this.bidManager.storeRequestNoBids(p)},u.prototype.clearExpiredItems=function(){var t=this;setTimeout(function(){t.bidManager.clearExpiredItems()},3e3)},u);function u(t,e,i){this.silentModeManager=t,this.bidManager=e,this.context=i}var p=(h.prototype.eval=function(t){},h);function h(t){this.name=t}var v,f=(t(g,v=p),g.prototype.eval=function(t){this.callback&&this.callback.apply(this)},g.NAME="genericEvent",g);function g(t){var e=v.call(this,g.NAME)||this;return e.callback=t,e}var m=(y.prototype.generateRandomId=function(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,6)},y);function y(t,e,i,r,n,o,s){this.id=this.generateRandomId(),this.slotId=t,this.impressionId=e,this.cpm=i,this.width=r,this.height=n,this.zoneId=o,this.dealCode=s}var C,P=(t(E,C=m),E.prototype.GenerateEvent=function(t){var e=this;return t.ResizeFrame(this.width,this.height),new f(function(){return t.LoadScript(e.displayUrl)})},E.prototype.GenerateMessage=function(){return{displayUrl:this.displayUrl}},E);function E(t,e,i,r,n,o,s,a){var d=C.call(this,t,e,i,r,n,o,a)||this;return d.displayUrl=s,d}var b,O=(t(I,b=m),I.prototype.GenerateEvent=function(t){var e=this;return t.ResizeFrame(this.width,this.height),new f(function(){return t.Write(e.creative)})},I.prototype.GenerateMessage=function(){return{creative:this.creative}},I);function I(t,e,i,r,n,o,s,a){var d=b.call(this,t,e,i,r,n,o,a)||this;return d.creative=s,d}var w,D=(t(_,w=m),_.prototype.GenerateEvent=function(t){var e=this;return"function"!=typeof this.nativeCallback?(R.Error("'nativeCallback' parameter is not a function in placements object"),new f(void 0)):"object"!=typeof this.nativePayload?(R.Error("'nativePayload' parameter is not an object in placements object"),new f(void 0)):new f(function(){return e.nativeCallback(e.nativePayload)})},_.prototype.GenerateMessage=function(){return{nativePayload:this.nativePayload}},_);function _(t,e,i,r,n,o,s,a,d){var c=w.call(this,t,e,i,r,n,o,d)||this;return c.nativeCallback=s,c.nativePayload=a,c}var B=99,x=function(t,e,i,r,n,o,s,a,d,c,l,u,p,h,v,f){this.publisherTagVersion=t,this.slots=e,this.elapsed=i,this.isTimeout=r,this.adapterStartElapsed=n,this.cdbCallStartElapsed=o,this.cdbCallEndElapsed=s,this.adapterEndElapsed=a,this.adapterTimeout=d,this.adapterIsTimeout=c,this.timeToFirstByte=l,this.id=u,this.silentModeRequestCount=p,this.localStorageKeyCount=h,this.connectionEstablishmentTime=v,this.domainLookupTime=f},k=function(t,e,i,r,n){this.impressionId=t,this.zoneId=e,this.adUnitId=i,this.cachedBidUsed=r,this.isDsc=n},F=(N.prototype.getMetricsManager=function(){return this.metricsManager},N.prototype.withElapsed=function(t){return this.elapsed=Math.round(t),this},N.prototype.withIsTimeout=function(t){return(this.isTimeout=t)&&this.events.push({eventId:"CdbCallTimeout"}),this},N.prototype.withAdapterStartElapsed=function(t){return this.adapterStartElapsed=Math.round(t),this.events.push({eventId:"AdapterBidStart",elapsed:this.adapterStartElapsed}),this},N.prototype.withCdbCallStartElapsed=function(t){return this.cdbCallStartElapsed=Math.round(t),this.events.push({eventId:"CdbCallStart",elapsed:this.cdbCallStartElapsed}),this},N.prototype.withCdbCallEndElapsed=function(t){return this.cdbCallEndElapsed=Math.round(t),this.events.push({eventId:"CdbCallEnd",elapsed:this.cdbCallEndElapsed}),this},N.prototype.withAdapterEndElapsed=function(t){return this.adapterEndElapsed=Math.round(t),this.events.push({eventId:"AdapterBidEnd",elapsed:this.adapterEndElapsed}),this},N.prototype.withAdapterTimeout=function(t){return this.adapterTimeout=t&&Math.round(t),this.events.push({eventId:"AdapterTimeout",elapsed:this.adapterTimeout}),this},N.prototype.withSlotIdsMatchedByCache=function(t){return 0<(this.slotIdsMatchedByCache=t).length&&this.events.push({eventId:"CachedBidUsed",slots:this.slotIdsMatchedByCache}),this},N.prototype.withTimeToFirstByte=function(t){return this.timeToFirstByte=t&&Math.round(t),this.timeToFirstByte&&this.events.push({eventId:"TimeToFirstByte",elapsed:this.timeToFirstByte}),this},N.prototype.withConnectionEstablishmentTime=function(t){return this.connectionEstablishmentTime=t&&Math.round(t),this.connectionEstablishmentTime&&this.events.push({eventId:"TcpConnectionElapsedTime",elapsed:this.connectionEstablishmentTime}),this},N.prototype.withDomainLookupTime=function(t){return this.domainLookupTime=t&&Math.round(t),this.domainLookupTime&&this.events.push({eventId:"DomainLookupElapsedTime",elapsed:this.domainLookupTime}),this},N.prototype.withUserPreviousTimestamp=function(t){return t&&this.events.push({eventId:"UserReturnTime",elapsed:(new Date).getTime()-t}),this},N.prototype.addSlot=function(e,t,i,r){var n=0<this.slotIdsMatchedByCache.filter(function(t){return t===e}).length;return this.slots.push(new k(e,t,i,n,r)),this},N.prototype.build=function(t){var e;return void 0!==this.adapterTimeout&&(e=this.adapterEndElapsed>this.adapterTimeout),new x(B,this.slots,this.elapsed,this.isTimeout,this.adapterStartElapsed,this.cdbCallStartElapsed,this.cdbCallEndElapsed,this.adapterEndElapsed,this.adapterTimeout,e,this.timeToFirstByte,t,this.metricsManager.getSilentModeRequestCount(!0),this.metricsManager.getLocalStorageKeyCount(),this.connectionEstablishmentTime,this.domainLookupTime)},N.prototype.buildEvents=function(t){if(this.events.length){var e={requestId:t,events:this.events};return void 0!==this.adapterTimeout&&this.adapterEndElapsed>this.adapterTimeout&&e.events.push({eventId:"AdapterTimeout"}),e}},N.prototype.clear=function(){this.events=[]},N);function N(t){this.elapsed=0,this.isTimeout=!1,this.adapterStartElapsed=0,this.cdbCallStartElapsed=0,this.cdbCallEndElapsed=0,this.adapterEndElapsed=0,this.slotIdsMatchedByCache=[],this.slots=[],this.events=[],this.metricsManager=t}function U(t){try{return JSON.parse(t)}catch(t){return}}var L,q,H=(K.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())},K);function K(){}function z(t){switch(t.toLowerCase()){case"amp":return L.AMP;default:return L.Unspecified}}(q=L=L||{})[q.Unspecified=0]="Unspecified",q[q.AMP=1]="AMP";var W=(G.prototype.buildUrl=function(t,e,i,r,n){void 0===i&&(i=L.Unspecified);var o=G.CRITEO_BIDDER_URL+this.getHandlerPath();return o+="?ptv=99",!0===e.isAdBlocked&&(o+="&abp=1"),o=this.appendCommonParameters(o,t,r,n),o+=e.ctoIdOnPublisherDomain?"&idcpy="+e.ctoIdOnPublisherDomain:"",o+=e.secureId?"&sid="+e.secureId:"",o+=e.isOptOut?"&optout=1":"",o+=e.bundle?"&bundle="+e.bundle:"",i!==L.Unspecified&&(o+="&im="+i),o+=e.silentModeIgnored?"&smi=1":"",o+="&cb="+String(H.generateCacheBuster()),o+=e.getContextFlags()},G.prototype.buildCsmUrl=function(t,e,i){var r=G.CRITEO_BIDDER_URL+G.CRITEO_CSM_HANDLER;return r+="?ptv=99",this.appendCommonParameters(r,t,e,i)},G.prototype.buildErrorUrl=function(){return G.CRITEO_BIDDER_URL+G.CRITEO_ERROR_HANDLER},G.prototype.buildCsmEventsUrl=function(){return G.CRITEO_BIDDER_URL+G.CRITEO_CSM_EVENTS_HANDLER},G.prototype.buildCsmCountersUrl=function(){return G.CRITEO_BIDDER_URL+G.CRITEO_CSM_COUNTERS_HANDLER},G.prototype.appendCommonParameters=function(t,e,i,r){return t+="&profileId="+String(e),void 0!==i&&(t+="&av="+String(i)),void 0!==r&&(t+="&wv="+encodeURIComponent(r)),t},G.prototype.getHandlerPath=function(){return this.auditMode?G.CRITEO_BIDDER_AUDIT_HANDLER:G.CRITEO_BIDDER_HANDLER},G.CRITEO_BIDDER_URL="https://bidder.criteo.com/",G.CRITEO_BIDDER_HANDLER="cdb",G.CRITEO_CSM_HANDLER="csm",G.CRITEO_CSM_EVENTS_HANDLER="csm/events",G.CRITEO_CSM_COUNTERS_HANDLER="csm/counters",G.CRITEO_ERROR_HANDLER="error",G.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit",G);function G(t){void 0===t&&(t=!1),this.auditMode=t}var V=(Y.prototype.getManagerMetrics=function(){var t=this.localStorageHelper.getItem(Y.MANAGER_METRICS_STORAGE_KEY);if(null==t)return{};var e=U(t);return void 0===e?{}:e},Y.prototype.setManagerMetrics=function(t){this.localStorageHelper.setItem(Y.MANAGER_METRICS_STORAGE_KEY,JSON.stringify(t))},Y.prototype.getSilentModeRequestCount=function(t){void 0===t&&(t=!1);var e=this.getManagerMetrics().silentModeRequestCount;return t&&this.resetSilentModeRequestCount(),isNaN(e)?0:e},Y.prototype.incSilentModeRequestCount=function(){var t=this.getManagerMetrics();t.silentModeRequestCount=isNaN(t.silentModeRequestCount)?1:t.silentModeRequestCount+1,this.setManagerMetrics(t)},Y.prototype.resetSilentModeRequestCount=function(){var t=this.getManagerMetrics();t.silentModeRequestCount=0,this.setManagerMetrics(t)},Y.prototype.getLocalStorageKeyCount=function(){return this.localStorageHelper.getAllItemsByPrefix("criteo_").length+this.localStorageHelper.getAllItemsByPrefix("cto_").length},Y.prototype.getPreviousBuildRequestTimestamp=function(){var t=this.getManagerMetrics().previousBuildRequestTimestamp;return isNaN(t)?void 0:t},Y.prototype.resetPreviousBuildRequestTimestamp=function(){var t=this.getManagerMetrics();t.previousBuildRequestTimestamp=(new Date).getTime().toString(),this.setManagerMetrics(t)},Y.prototype.sendMetric=function(t,e){var i={feedbacks:[t.build(e)]},r=this.urlBuilder.buildCsmUrl(this.profileId,this.adapterVersion,this.wrapperVersion),n=JSON.stringify(i);navigator.sendBeacon&&navigator.sendBeacon(r,n)},Y.prototype.sendEvents=function(t,e,i){void 0===i&&(i=!1);var r=this.urlBuilder.buildCsmEventsUrl();i&&(t.withUserPreviousTimestamp(this.getPreviousBuildRequestTimestamp()),this.resetPreviousBuildRequestTimestamp());var n=t.buildEvents(e);t.clear(),navigator.sendBeacon&&n&&navigator.sendBeacon(r,JSON.stringify(n))},Y.MANAGER_METRICS_STORAGE_KEY="criteo_pt_cdb_mngr_metrics",Y);function Y(t,e,i,r){this.urlBuilder=new W,this.profileId=e,this.adapterVersion=i,this.wrapperVersion=r,this.localStorageHelper=t}var j=(J.tryInsertPlaceholder=function(t,e,i){var r=document.getElementById(t);if(null===r)return R.Warning("Unable to insert ad placeholder : impression id "+t+" not found."),!1;if(r.appendChild(this.createPlaceholder()),!e&&this.isVisible(r))return!0;this.removePlaceholder(t,i);var n=r.parentElement;if(null===n)return!1;var o=this.createClone(r);return n.insertBefore(o,r),o.appendChild(this.createPlaceholder()),this.isVisible(o)?(i[t]=o,!0):(R.Warning("Ad placeholder created but not visible : can't render."),n.removeChild(o),!1)},J.isVisible=function(t){return 0!==t.offsetWidth&&0!==t.offsetHeight&&0!==t.getClientRects().length},J.createClone=function(t){var e=t.cloneNode(!1);return e.id=this.generateRandomId(),e.className="","none"===e.style.display&&e.style.removeProperty("display"),"SPAN"===e.tagName&&(e.style.display="block"),t.style.display="none",e},J.generateRandomId=function(){for(var t="1234567890abcdefghijklmnopqrstuvwxyz",e="",i=0;i<20;i++){var r=Math.floor(Math.random()*t.length);e+=t.charAt(r)}return e},J.createPlaceholder=function(){var t=document.createElement("div");return t.style.width="1px",t.style.height="1px",t.style.display="block",t.className=J.PLACEHOLDER_NAME,t},J.removePlaceholder=function(t,e){var i=e[t];void 0!==i&&null!==i.parentNode&&i.parentNode.removeChild(i);var r=document.getElementById(t);if(null!==r)for(var n=0,o=r.getElementsByClassName(J.PLACEHOLDER_NAME);n<o.length;n++){var s=o[n];null!==s.parentNode&&s.parentNode.removeChild(s)}},J.insertAdIFrame=function(t,e){var i,r=e[t];if(void 0!==r)i=r;else{var n=document.getElementById(t);if(null===n)return null;i=n}for(var o=0,s=i.getElementsByClassName(J.PLACEHOLDER_NAME);o<s.length;o++){for(var a=s[o],d=0,c=a.childNodes;d<c.length;d++){var l=c[d];null!==l.parentNode&&l.parentNode.removeChild(l)}var u=this.createAdIFrame();return a.appendChild(u),a.style.width="",a.style.height="",a.style.display="",u}return null},J.createAdIFrame=function(){var t=document.createElement("iframe");return t.scrolling="no",t.marginWidth="0",t.marginHeight="0",t.frameBorder="0",t.style.border="0",t.style.verticalAlign="bottom",t},J.removePlaceholders=function(t,e,i){for(var r=0,n=t;r<n.length;r++){var o=n[r].impId;-1===e.indexOf(o)&&J.removePlaceholder(o,i)}},J.tryInsertPlaceholders=function(t,e,i){for(var r=[],n=0,o=t;n<o.length;n++){var s=o[n],a=s.impId;J.tryInsertPlaceholder(a,e,i)&&r.push(s)}return r},J.PLACEHOLDER_NAME="criteo_placeholder",J);function J(){}var X=(Z.prototype.isValid=function(){return 0<this.slots.length},Z.prototype.getRequest=function(){for(var t=[],e=0,i=this.slots;e<i.length;e++){var r=i[e],n={slotid:r.slotId,impid:r.impId};if(void 0!==r.zoneId&&(n.zoneid=r.zoneId),void 0!==r.nativeCallback&&(n.native=!0),void 0!==r.transactionId&&(n.transactionid=r.transactionId),void 0!==r.publisherSubId&&(n.publishersubid=r.publisherSubId),void 0!==r.sizes){for(var o=[],s=0,a=r.sizes;s<a.length;s++){var d=a[s];o.push(d.width+"x"+d.height)}n.sizes=o}if(void 0!==r.video){var c={playersizes:this.parsePlayerSizes(r.video.playersize),mimes:r.video.mimes,protocols:r.video.protocols,maxduration:r.video.maxduration,api:r.video.api,skip:r.video.skip,placement:r.video.placement,playbackmethod:r.video.playbackmethod,minduration:r.video.minduration,startdelay:r.video.startdelay};n.video=c}if(void 0!==this.viewportComputer){var l=this.viewportComputer.getSlotPosition(r);void 0!==l&&(n.position={top:l.top,left:l.left})}void 0!==r.ext&&(n.ext=r.ext),t.push(n)}var u={ceh:this.context.ceh,uspOptout:this.context.ccpaOptout,ext:this.context.userExt},p={publisher:{url:this.context.highestAccessibleUrl,ext:this.context.publisherExt},slots:t,user:u};if(void 0!==this.networkId&&(p.publisher.networkid=this.networkId),this.privacyWrapper&&(this.privacyWrapper.gdprConsent&&(p.gdprConsent=this.privacyWrapper.gdprConsent),this.privacyWrapper.ccpaIabConsent&&(u.uspIab=this.privacyWrapper.ccpaIabConsent.uspString)),void 0!==this.viewportComputer){var h=this.viewportComputer.getViewport();p.viewport={width:h.width,height:h.height,scrollTop:h.scrollTop,scrollLeft:h.scrollLeft}}return void 0!==this.adapterTimeout&&(p.tmax=this.adapterTimeout),void 0!==this.auctionStart&&(p.auctionStart=this.auctionStart),void 0!==this.clientRequestId&&(p.id=this.clientRequestId),void 0!==this.userIds&&(p.eids=this.userIds),p},Z.parsePlayerSize=function(t){return t[0]+"x"+t[1]},Z.prototype.parsePlayerSizes=function(t){return Array.isArray(t[0])?t.map(function(t){return Z.parsePlayerSize(t)}):[Z.parsePlayerSize(t)]},Z.prototype.getUrl=function(){return this.urlBuilder.buildUrl(this.profileId,this.context,this.integrationMode,this.adapterVersion,this.wrapperVersion)},Z);function Z(t,e,i,r,n,o,s,a,d,c,l,u,p,h){this.slots=t,this.context=e,this.urlBuilder=i,this.profileId=r,this.integrationMode=n||L.Unspecified,this.networkId=o,this.adapterVersion=s,this.privacyWrapper=a,this.wrapperVersion=d,this.viewportComputer=c,this.adapterTimeout=l,this.clientRequestId=u,this.userIds=p,this.auctionStart=h}function Q(t){var e={slots:void 0,time_to_next_call:0};return void 0!==t.exd&&(void 0!==t.exd.time_to_next_call&&(e.time_to_next_call=t.exd.time_to_next_call),e.slots=t.exd.slots,delete t.exd),e}function $(){var i=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"===t?e:3&e|8).toString(16)})}var tt=function(t,e,i,r,n,o,s,a,d){this.slotId=$().replace(/-/g,""),this.impId=t,this.zoneId=e,this.nativeCallback=i,this.transactionId=r,this.sizes=n,this.publisherSubId=o,this.mediaTypes=s,this.video=a,this.ext=d},et=function(t,e,i,r,n,o,s,a,d,c){this.playersize=t,this.mimes=e,this.protocols=i,this.maxduration=r,this.api=n,this.skip=o,this.placement=s,this.playbackmethod=a,this.minduration=d,this.startdelay=c},it=(rt.CreateRunning=function(){var t=new rt;return t.start(),t},rt.CreateWithStartTime=function(t){var e=new rt(!1);return e.startTime=t,e},rt.TimeSincePageLoad=function(){if(window.performance){if(window.performance.now)return window.performance.now();if(window.performance.timing&&window.performance.timing.navigationStart)return(new Date).getTime()-performance.timing.navigationStart}return 0},rt.prototype.start=function(){this.startTime=this.now()},rt.prototype.elapsed=function(){return this.now()-this.startTime},rt);function rt(t){void 0===t&&(t=!0),t&&window.performance&&window.performance.now?this.now=window.performance.now.bind(window.performance):Date.now?this.now=Date.now:this.now=function(){return(new Date).getTime()}}var nt=(ot.prototype.sendRequest=function(t){this.url=t,this.sendTime=it.CreateRunning(),this.builder.withCdbCallStartElapsed(this.timer.elapsed())},ot.prototype.requestReceived=function(t){void 0===t&&(t=!1),this.builder.withElapsed(function(t){if(window.performance&&window.performance.getEntries)for(var e=window.performance.getEntries(),i=e.length-1;0<=i;--i){var r=e[i];if(r.name===t&&r.duration)return Math.round(r.duration)}}(this.url)||this.sendTime.elapsed()),this.builder.withCdbCallEndElapsed(this.timer.elapsed()),this.builder.withIsTimeout(t)},ot.prototype.finish=function(t){if(this.builder.withAdapterEndElapsed(this.timer.elapsed()),t&&0!==t.length)for(var e=0,i=t;e<i.length;e++){var r=i[e];this.builder.addSlot(r.imp_id,r.zone_id,r.ad_unit_id,r.is_dsc)}else this.builder.addSlot("");var n=ot.getLastCdbTiming();void 0!==n&&(this.builder.withTimeToFirstByte(ot.computeTimeToFirstByte(n)),this.builder.withConnectionEstablishmentTime(ot.computeConnectionEstablishmentTime(n)),this.builder.withDomainLookupTime(ot.computeDomainLookupTime(n)))},ot.getLastCdbTiming=function(){if(void 0!==window.performance&&void 0!==window.performance.getEntriesByType&&"function"==typeof window.performance.getEntriesByType){var t=window.performance.getEntriesByType("resource");if(void 0!==t){var e=t.filter(function(t){return 0<=t.name.indexOf("cdb")});return void 0!==e&&0<e.length?e[e.length-1]:void 0}}},ot.computeTimeToFirstByte=function(t){var e=t.responseStart,i=t.requestStart;if(void 0!==e&&void 0!==i)return e-i},ot.computeConnectionEstablishmentTime=function(t){var e=t.connectEnd-t.connectStart;return isNaN(e)?void 0:e},ot.computeDomainLookupTime=function(t){var e=t.domainLookupEnd-t.domainLookupStart;return isNaN(e)?void 0:e},ot);function ot(t,e,i){this.builder=t,this.timer=void 0!==e?it.CreateWithStartTime(e):it.CreateRunning();var r=this.timer.elapsed();this.builder.withAdapterStartElapsed(r),void 0!==i&&this.builder.withAdapterTimeout(i)}var st=(at.prototype.toString=function(){return this.width+"x"+this.height},at);function at(t,e){this.width=t,this.height=e}function dt(t){var e="number"==typeof window.PREBID_TIMEOUT?window.PREBID_TIMEOUT:void 0;return t&&e?Math.min(t,e):t||e||void 0}var ct=function(t,e){this.top=t,this.left=e},lt=function(t,e,i,r){this.width=t,this.height=e,this.scrollTop=i,this.scrollLeft=r},ut=(pt.getHighestAccessibleWindow=function(t){var e=t,i=!1;try{for(;e.parent.document!==e.document;){if(!e.parent.document){i=!0;break}e=e.parent}}catch(t){i=!0}return{topFrame:e,err:i}},pt.getHighestAccessibleUrl=function(t){var e=t.topFrame;if(!t.err)return e.location.href;try{var i=e.top.location.href;if(i)return i}catch(t){}try{var r=e.location.ancestorOrigins;if(r)return r[r.length-1]}catch(t){}return e.document.referrer},pt.inIframe=function(){try{return window.self!==window.top}catch(t){return!0}},pt);function pt(){}var ht=(vt.prototype.getViewport=function(){var t=ut.getHighestAccessibleWindow(window).topFrame,e=t.document,i=t.innerWidth||e.documentElement.clientWidth,r=t.innerHeight||e.documentElement.clientHeight,n=e.documentElement.scrollTop||e.body&&e.body.scrollTop||0,o=e.documentElement.scrollLeft||e.body&&e.body.scrollLeft||0;return new lt(i,r,n,o)},vt.prototype.getSlotPosition=function(t){var e=t.impId,i=document.getElementById(e);if(null!==i){var r=i.getBoundingClientRect();return new ct(r.top,r.left)}},vt);function vt(){}var ft=(gt.prototype.checkLocalStorage=function(t){if(!this.localStorage)return!1;var e=this.CHECK_STORAGE_KEY;try{return this.localStorage.setItem(e,e),this.localStorage.removeItem(e),!!this.checkTcfPurposeOne(t)||(R.Debug("Purpose One not granted"),!1)}catch(t){return!1}},gt.prototype.checkTcfPurposeOne=function(t){return!t||!t.purposes||!0===t.purposes[1]},gt.prototype.removeItem=function(t){this.localStorageEnabled&&(this.localStorage.removeItem(t),this.localStorage.removeItem(t+this.EXPIRE_SUFFIX))},gt.prototype.getItem=function(t,e){if(!this.localStorageEnabled)return null;var i=(new Date).getTime(),r=this.localStorage.getItem(t+this.EXPIRE_SUFFIX),n=r?parseInt(r,10):-1;return-1!==n&&n<i||e&&(-1===n||e<n-i)?(this.removeItem(t),null):this.localStorage.getItem(t)},gt.prototype.setItem=function(t,e,i){if(this.localStorageEnabled)try{if(this.localStorage.setItem(t,e),i){var r=(new Date).getTime()+i;this.localStorage.setItem(t+this.EXPIRE_SUFFIX,r.toString())}}catch(t){}},gt.prototype.getAllItemsByPrefix=function(t){var e=[];if(this.localStorageEnabled)for(var i in localStorage)0===i.indexOf(t)&&e.push(i);return e},gt);function gt(t,e){this.EXPIRE_SUFFIX="_expires",this.CHECK_STORAGE_KEY="criteo_localstorage_check",this.localStorage=function(t){try{return t.localStorage}catch(t){return}}(t||window),this.localStorageEnabled=this.checkLocalStorage(e)}var mt=(yt.prototype.silentModeEnabled=function(){var t=yt.SILENT_MODE_KEY;return null!==this.localStorageHelper.getItem(t)},yt.prototype.enableSilentMode=function(t){var e=yt.SILENT_MODE_KEY;this.localStorageHelper.setItem(e,"1",t)},yt.SILENT_MODE_KEY="criteo_silent_mode",yt);function yt(t){this.localStorageHelper=t}function Ct(){return(new Date).getTime()}var Et=(bt.prototype.toString=function(){return"ImpId"+this.impressionId},bt);function bt(t){this.impressionId=t}var It,wt=(t(_t,It=Et),_t.prototype.toString=function(){return It.prototype.toString.call(this)+"_Size"+this.size+"_NetworkId"+this.networkId},_t);function _t(t,e,i){var r=It.call(this,t)||this;return r.size=e,r.networkId=i,r}var St,Tt=(t(At,St=Et),At.prototype.toString=function(){return St.prototype.toString.call(this)+"_ZoneId"+this.zoneId},At);function At(t,e){var i=St.call(this,t)||this;return i.zoneId=e,i}var Rt=(Mt.prototype.createKeysFromSlotRequest=function(t){if(this.useZoneIdIntegration)return[new Tt(t.impId,t.zoneId)];for(var e=[],i=0,r=t.sizes;i<r.length;i++){var n=r[i];e.push(new wt(t.impId,n,this.networkId))}return e},Mt.prototype.createKeyFromSlotResponse=function(t){return this.useZoneIdIntegration?new Tt(t.impid,t.zoneid):new wt(t.impid,new st(t.width,t.height),this.networkId)},Mt.prototype.createKeyFromBid=function(t){return this.useZoneIdIntegration?new Tt(t.impressionId,t.zoneId):new wt(t.impressionId,new st(t.width,t.height),this.networkId)},Mt);function Mt(t,e){this.useZoneIdIntegration=t,this.networkId=e}var Pt=(Ot.useZoneIdIntegration=function(t,e){return void 0===e||0===t.filter(function(t){return void 0!==t.sizes&&0<t.sizes.length}).length},Ot.prototype.getBySlotKey=function(t,e){var i=e.toString();if(i in t){var r=t[i];if(void 0!==r)return void 0!==r.bid&&void 0!==r.expiration&&r.expiration<Ct()&&(r.bid=void 0,r.expiration=void 0),r}return{}},Ot.prototype.setBySlotKey=function(t,e,i){var r=e.toString();void 0!==i.bid||void 0!==i.expiration&&i.expiration>Ct()?t[r]=i:r in t&&delete t[r]},Ot.prototype.filterNoBidSlots=function(t){for(var e=[],i=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),r=i&&U(i)||{},n=0,o=t;n<o.length;n++){for(var s=o[n],a=[],d=0,c=this.slotKeyFactory.createKeysFromSlotRequest(s);d<c.length;d++){var l=c[d];this.getBidFromMap(r,l,0)!==Ot.NO_BID&&(l instanceof wt?a.push(l.size):e.push(s))}0<a.length&&(s.sizes=a,e.push(s))}return e},Ot.prototype.getRequestCachedBids=function(t,e){void 0===e&&(e=5e3);for(var i={},r=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),n=r&&U(r)||{},o=0,s=t;o<s.length;o++)for(var a=s[o],d=0,c=this.slotKeyFactory.createKeysFromSlotRequest(a);d<c.length;d++){var l=c[d],u=this.getBidFromMap(n,l,e);void 0!==u&&u!==Ot.NO_BID&&(i[a.slotId]=u)}return this.localStorageHelper.setItem(Ot.BIDCACHE_STORAGE_KEY,JSON.stringify(n)),i},Ot.prototype.getBid=function(t,e){void 0===e&&(e=5e3);var i=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),r=i&&U(i)||{},n=this.getBidFromMap(r,t,e);return this.localStorageHelper.setItem(Ot.BIDCACHE_STORAGE_KEY,JSON.stringify(r)),n},Ot.prototype.getBidFromMap=function(t,e,i){void 0===i&&(i=5e3);var r=this.getBySlotKey(t,e);return void 0===r.bid&&r.expiration&&r.expiration>Ct()?Ot.NO_BID:0<i&&void 0!==r.bid?(delete t[e.toString()],r.bid):void 0},Ot.prototype.storeResponseBids=function(t){for(var e=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),r=e&&U(e)||{},i=function(i){var t=n.slotKeyFactory.createKeyFromSlotResponse(i.slot);n.modifyCache(r,t,function(t){var e=Ct()+1e3*i.ttl;(void 0===t.expiration||t.expiration<e)&&(t.bid=i.slot,t.expiration=e)})},n=this,o=0,s=t;o<s.length;o++)i(s[o]);this.localStorageHelper.setItem(Ot.BIDCACHE_STORAGE_KEY,JSON.stringify(r))},Ot.prototype.storeRequestNoBids=function(t){for(var e=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),n=e&&U(e)||{},i=function(e){for(var t=0,i=o.slotKeyFactory.createKeysFromSlotRequest(e.slot);t<i.length;t++){var r=i[t];o.modifyCache(n,r,function(t){t.bid=void 0,t.expiration=Math.max(t.expiration||0,Ct()+1e3*e.ttl)})}},o=this,r=0,s=t;r<s.length;r++)i(s[r]);this.localStorageHelper.setItem(Ot.BIDCACHE_STORAGE_KEY,JSON.stringify(n))},Ot.prototype.removeBid=function(e){var t=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),i=t&&U(t)||{},r=this.slotKeyFactory.createKeyFromBid(e);this.modifyCache(i,r,function(t){void 0!==t.bid&&t.bid.slotid===e.slotId&&(t.bid=void 0,t.expiration=void 0)}),this.localStorageHelper.setItem(Ot.BIDCACHE_STORAGE_KEY,JSON.stringify(i))},Ot.prototype.modifyCache=function(t,e,i){var r=this.getBySlotKey(t,e);i(r),this.setBySlotKey(t,e,r)},Ot.prototype.clearExpiredItems=function(){for(var t=this.localStorageHelper.getItem(Ot.BIDCACHE_STORAGE_KEY),e=t&&U(t)||{},i=0,r=Object.keys(e);i<r.length;i++){var n=r[i],o=e[n];void 0!==o&&void 0!==o.expiration&&o.expiration<Ct()&&delete e[n]}this.localStorageHelper.setItem(Ot.BIDCACHE_STORAGE_KEY,JSON.stringify(e))},Ot.NO_BID="nobid",Ot.BIDCACHE_STORAGE_KEY="criteo_pt_cdb_bidcachemap",Ot);function Ot(t,e,i){this.localStorageHelper=t,this.slotKeyFactory=new Rt(e,i)}var Dt,Bt;(Bt=Dt=Dt||{}).Native="native",Bt.Banner="banner",Bt.Video="video";var xt=(kt.prototype.hasValidNativeParams=function(t){return!(t.nativeParams&&(t.nativeParams.image&&(!0!==t.nativeParams.image.sendId||!0===t.nativeParams.image.sendTargetingKeys)||t.nativeParams.icon&&(!0!==t.nativeParams.icon.sendId||!0===t.nativeParams.icon.sendTargetingKeys)||t.nativeParams.clickUrl&&(!0!==t.nativeParams.clickUrl.sendId||!0===t.nativeParams.clickUrl.sendTargetingKeys)||t.nativeParams.displayUrl&&(!0!==t.nativeParams.displayUrl.sendId||!0===t.nativeParams.displayUrl.sendTargetingKeys)||t.nativeParams.privacyLink&&(!0!==t.nativeParams.privacyLink.sendId||!0===t.nativeParams.privacyLink.sendTargetingKeys)||t.nativeParams.privacyIcon&&(!0!==t.nativeParams.privacyIcon.sendId||!0===t.nativeParams.privacyIcon.sendTargetingKeys)))},kt.prototype.buildCdbUrl=function(){return this.url},kt.prototype.buildCdbRequest=function(){if(this.cache.silentModeEnabled())return R.Debug("Request ignored because the global silent mode is enabled"),void this.metricsManager.incSilentModeRequestCount();if(this.requestBuilder.isValid()){var t=Math.min((this.timeout||5e3)+1e3,5e3);return this.adBlockFlagManager.setAdBlockFlagTimer(t),this.timer.sendRequest(this.url),this.requestBuilder.getRequest()}R.Debug("Request ignored because it doesnt contain any slot")},kt.GetAllAdapters=function(){return window.Criteo.prebid_adapters},kt.GetAdapter=function(t){var e="string"==typeof t?t:t.bidRequests[0].auctionId,i=kt.GetAllAdapters();if(i&&e in i)return i[e]},kt.createCriteoNativeAdWithCallback=function(t,e,i){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[t]={callback:i,payload:e},'<script type="text/javascript">\n            var win = window;\n            for (var i = 0; i < 10; ++i) {\n                win = win.parent;\n                if (win.criteo_prebid_native_slots) {\n                    var responseSlot = win.criteo_prebid_native_slots["'+t+'"];\n                    responseSlot.callback(responseSlot.payload);\n                    break;\n                }\n            }\n        <\/script>'},kt.createPrebidNativeAd=function(t){return{sendTargetingKeys:!1,title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map(function(t){return t.url})}},kt.prototype.getBidRequestForSlot=function(t){for(var e=0,i=this.bidRequests;e<i.length;e++){var r=i[e];if(r.adUnitCode===t.impid&&(!r.params.zoneId||parseInt(r.params.zoneId,10)===t.zoneid))return r}},kt.prototype.getSlotForAdUnitCode=function(t){for(var e=0,i=this.slots;e<i.length;e++){var r=i[e];if(r&&r.impId===t)return r}},kt.getVideoInfoFromBidRequest=function(t){if(kt.hasVideoMediaType(t))return new et(t.mediaTypes.video.playerSize,t.mediaTypes.video.mimes,t.mediaTypes.video.protocols,t.mediaTypes.video.maxduration,t.mediaTypes.video.api,t.params.video.skip,t.params.video.placement,t.params.video.playbackmethod,t.params.video.minduration,t.params.video.startdelay)},kt.hasVideoMediaType=function(t){return void 0!==t.params&&void 0!==t.params.video&&!(void 0===t.mediaTypes||void 0===t.mediaTypes.video)},kt.prototype.interpretResponse=function(t,e){this.timer.requestReceived(),this.adBlockFlagManager.disableAdBlockFlagTimer();var i=Q(t),r={};if(void 0!==i.slots)for(var n=0,o=i.slots;n<o.length;n++)r[(E=o[n]).imp_id]=E;var s,a,d,c,l,u,p,h,v,f,g,m=[];if(t.slots&&Array.isArray(t.slots))for(var y=0,C=t.slots;y<C.length;y++){var E=C[y],b=this.getBidRequestForSlot(E);if(b)if(!0===window.criteo_pubtag.context.isAdBlocked){if(void 0!==(s=E.slotid,a=E.impid,d=E.cpm,c=E.width,l=E.height,u=E.zoneid,p=b.params.nativeCallback,h=E.native,v=E.displayurl,f=E.creative,g=E.deal,T=void 0!==p&&void 0!==h?new D(s,a,d,c,l,u,p,h,g):void 0===v||void 0!==f&&"<script"!==f.substr(0,7)?void 0!==f?new O(s,a,d,c,l,u,f,g):void 0:new P(s,a,d,c,l,u,v,g))&&j.tryInsertPlaceholder(b.adUnitCode,!0,window.criteo_pubtag.context.cloneByImpressionId)){var I=j.insertAdIFrame(b.adUnitCode,window.criteo_pubtag.context.cloneByImpressionId);if(null!=I){var w=new A(I.contentDocument);T.GenerateEvent(w).eval(window.criteo_pubtag)}}}else{var _=b.bidId,S=E.ttl||r[E.slotid]&&r[E.slotid].ttl||60,T={requestId:_,adId:$(),cpm:E.cpm,currency:E.currency,netRevenue:!0,ttl:S,creativeId:_,width:E.width,height:E.height,dealId:E.deal};E.native?b.params.nativeCallback?T.ad=kt.createCriteoNativeAdWithCallback(_,E.native,b.params.nativeCallback):(T.native=kt.createPrebidNativeAd(E.native),T.mediaType=Dt.Native):E.video?(T.vastUrl=E.displayurl,T.mediaType=Dt.Video):T.ad=E.creative,m.push(T)}else R.Error("Unable to bid request for slot "+E)}return this.cache.handleResponse(this.slots,t,i,!1),this.timer.finish(i.slots),this.metricsManager.sendMetric(this.metricBuilder,this.clientRequestId),this.cache.clearExpiredItems(),m},kt.prototype.handleBidWon=function(){},kt.prototype.handleBidTimeout=function(){this.timer.requestReceived(!0),this.timer.finish(),this.metricsManager.sendMetric(this.metricBuilder,this.clientRequestId),this.cache.clearExpiredItems()},kt.prototype.handleSetTargeting=function(){},kt.prototype.getBannerSizes=function(t){var e,i;return(null===(i=null===(e=t.mediaTypes)||void 0===e?void 0:e.banner)||void 0===i?void 0:i.sizes)||t.sizes||[]},kt.prototype.getNativeSizes=function(t){var e,i,r;return(null===(r=null===(i=null===(e=t.mediaTypes)||void 0===e?void 0:e.native)||void 0===i?void 0:i.image)||void 0===r?void 0:r.sizes)||[]},kt.prototype.getSizes=function(t){var e,i=this.getBannerSizes(t).map(function(t){return new st(t[0],t[1])}),r=this.getNativeSizes(t).map(function(t){return new st(t[0],t[1])}),n=i.concat(r);return(null===(e=t.mediaTypes)||void 0===e?void 0:e.native)&&(0===n.length?n=[new st(2,2)]:n.forEach(function(t,e,i){void 0===t.height&&void 0===t.width&&(i[e]=new st(2,2))})),n.filter(function(t,e,i){return i.indexOf(t)===e})},kt.prototype.getFloorsForSizes=function(t,n,o){var s={},e=o.getFloor({currency:"EUR",size:"*",mediaType:n});if("EUR"!==e.currency)throw new Error("Currency for floors is not in EUR, or cannot be converted to EUR");return s["*"]=e.floor,t.forEach(function(t,e,i){var r=new st(t[0],t[1]);s[r.toString()]=o.getFloor({currency:"EUR",size:t,mediaType:n}).floor}),s},kt);function kt(t,e,i,r,n){var o,s,a;this.clientRequestId=$();var d={};r.gdprConsent&&(void 0!==r.gdprConsent.consentString&&(d.consentData=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(d.gdprApplies=!!r.gdprConsent.gdprApplies),d.version=r.gdprConsent.apiVersion);var c={uspString:r.uspConsent},l=new ft(void 0,d);this.timeout=dt(r.timeout),this.metricsManager=new V(l,t,e,n),this.metricBuilder=new F(this.metricsManager),this.timer=new nt(this.metricBuilder,r.start,this.timeout);var u,p,h=new ht;this.adBlockFlagManager=T.create(l),this.adBlockFlagManager.adBlockFlagEnabled()&&(t=280,window.criteo_pubtag.context.isAdBlocked=!0),this.auctionId=r.auctionId,this.bidRequests=i,this.slots=[];for(var v,f=!0,g=0,m=i;g<m.length;g++){var y=void 0;(I=m[g]).fpd&&I.fpd.context&&(y=I.fpd.context),I.params.ext&&(y=S(S({},y),I.params.ext)),f=this.hasValidNativeParams(I);try{var C={};if(I.getFloor&&((null===(o=I.mediaTypes)||void 0===o?void 0:o.banner)&&(C.banner=this.getFloorsForSizes(this.getBannerSizes(I),"banner",I)),(null===(s=I.mediaTypes)||void 0===s?void 0:s.native)&&(C.native=this.getFloorsForSizes(this.getNativeSizes(I),"native",I)),null===(a=I.mediaTypes)||void 0===a?void 0:a.video)){var E=I.mediaTypes.video.playerSize||[];C.video=0<E.length&&"number"==typeof E[0]?this.getFloorsForSizes([E],"video",I):this.getFloorsForSizes(E,"video",I)}Object.keys(C).length&&(y=S(S({},y),{floors:C}))}catch(t){R.Debug("Could not parse floors from Prebid: "+t)}this.slots.push(new tt(I.adUnitCode,I.params.zoneId,I.params.nativeCallback,I.transactionId,this.getSizes(I),I.params.publisherSubId,I.mediaTypes,kt.getVideoInfoFromBidRequest(I),y)),u=I.params.networkId||u,v=r.ceh,window.criteo_pubtag.context.ceh=v,I.params.integrationMode&&(p=z(I.params.integrationMode))}f||R.Warning("All native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, privacyLink, privacyIcon)");var b,I,w=new W(!1);0<i.length&&(I=i[0]).userIdAsEids&&0<I.userIdAsEids.length&&(b=I.userIdAsEids);window.criteo_pubtag.context.publisherExt=r.publisherExt,window.criteo_pubtag.context.userExt=r.userExt;var _=Pt.useZoneIdIntegration(this.slots,u);this.cache=new M(new mt(l),new Pt(l,_,u),window.criteo_pubtag.context),this.requestBuilder=new X(this.cache.filterNoBidSlots(this.slots),window.criteo_pubtag.context,w,t,p,u,e,{ccpaIabConsent:c,gdprConsent:d},n,h,this.timeout,this.clientRequestId,b,r.start),this.url=this.requestBuilder.getUrl(),window.Criteo.prebid_adapters=window.Criteo.prebid_adapters||{},window.Criteo.prebid_adapters[this.auctionId]=this}var Ft=(Nt.prototype.send=function(t,e,i,r){var n=void 0!==this.data?"POST":"GET",o=this.getXMLHttpRequest(n,t,e,i,r);if(void 0!==o)o.send(this.data);else{var s=this.getXDomainRequest(n,t,e,i,r);void 0!==s&&s.send(this.data)}},Nt.prototype.getXMLHttpRequest=function(t,e,i,r,n){var o=new XMLHttpRequest;if("withCredentials"in o)return o.open(t,this.url,!0),o.timeout=n||Nt.LOCAL_PASSBACK_TIMEOUT,this.contentType?o.setRequestHeader("Content-type",this.contentType):"POST"===t&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=this.withCredentials,o.onload=function(){4===o.readyState&&200===o.status?e(o.responseText):i(o.readyState,o.status)},o.onerror=function(){i(void 0,void 0)},r&&(o.ontimeout=r),o},Nt.prototype.getXDomainRequest=function(t,e,i,r,n){if("undefined"!=typeof XDomainRequest){var o=new XDomainRequest;return o.timeout=n||Nt.LOCAL_PASSBACK_TIMEOUT,o.open(t,this.url),o.onload=function(){void 0!==o.responseText?e(o.responseText):i(void 0,void 0)},o.onerror&&(o.onerror=function(){i(void 0,void 0)}),o.ontimeout&&r&&(o.ontimeout=r),o}},Nt.LOCAL_PASSBACK_TIMEOUT=3e4,Nt);function Nt(t,e,i,r){void 0===r&&(r=!0),this.url=t,this.data=e,this.contentType=i,this.withCredentials=r}function Ut(t){try{return JSON.parse(t)}catch(t){return}}var Lt=(qt.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__uspapiLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},qt.prototype.hasCallerFunctionInWindow=function(){return"function"==typeof this.currentWindow.__uspapi},qt.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInWindow()||void 0!==this.getCMPFrame()},qt.prototype.retrieveConsent=function(i){var r=this,n=!1,o=window.setTimeout(function(){n=!0,r.logger("Timeout: Unable to resolve CCPA consent after "+r.timeout+"ms"),i(void 0)},this.timeout);this.executeCommand("getUSPData",1,function(t,e){n||(clearTimeout(o),e?(r.logger("CCPA consent retrieved"),r.processResponseData(t,i)):(r.logger("Error retrieving CCPA consent data from CMP"),i(void 0)))})},qt.prototype.processResponseData=function(t,e){t?e(t):(this.logger("Unable to read CCPA consent data from CMP"),e(void 0))},qt.prototype.executeCommand=function(t,e,i){var o=this;if(!this.hasCallerFunctionInWindow()){this.logger("No CCPA CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__uspapi=function(t,e,i){if(!s)return o.logger("CCPA CMP not found in any frame"),void i({msg:"CCPA CMP not found in any frame"},!1);var r=Math.random().toString(10),n={__uspapiCall:{command:t,parameter:e,callId:r}};o.uspapiCallbacks[r]=i,s.postMessage(n,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?Ut(t.data):t.data;if(e&&e.__uspapiReturn&&e.__uspapiReturn.callId&&e.__uspapiReturn.returnValue){var i=e.__uspapiReturn;o.uspapiCallbacks&&o.uspapiCallbacks[i.callId]&&(o.uspapiCallbacks[i.callId](i.returnValue,i.success),delete o.uspapiCallbacks[i.callId])}},!1)}this.currentWindow.__uspapi(t,e,i)},qt.prototype.hasUserOptOut=function(t){return!(!t||!t.uspString||"1YNY"===t.uspString.toUpperCase()||"1YNN"===t.uspString.toUpperCase()||"1YN-"===t.uspString.toUpperCase()||"1-N-"===t.uspString.toUpperCase()||"1---"===t.uspString)},qt);function qt(t,e,i){void 0===i&&(i=function(t){}),this.uspapiCallbacks={},this.currentWindow=t,this.timeout=e.uspApiTimeout,this.logger=i}var Ht=(Kt.prototype.getReadyToRetrieveProvider=function(){return this.tcfv2ConsentProvider.hasCallerFunctionInFrame()?this.tcfv2ConsentProvider:this.tcfv1ConsentProvider.hasCallerFunctionInFrame()?this.tcfv1ConsentProvider:void 0!==this.tcfv2ConsentProvider.getCMPFrame()?this.tcfv2ConsentProvider:void 0!==this.tcfv1ConsentProvider.getCMPFrame()?this.tcfv1ConsentProvider:void 0},Kt.prototype.retrieveConsentForPassback=function(t){var e=this.getReadyToRetrieveProvider();void 0===e&&(this.logger("No compatible GDPR privacy provider found"),t(void 0)),e===this.tcfv1ConsentProvider?this.tcfv1ConsentProvider.retrieveConsentForPassback(t):e===this.tcfv2ConsentProvider&&this.tcfv2ConsentProvider.retrieveConsent(t)},Kt.prototype.retrieveConsent=function(t){var e=this.getReadyToRetrieveProvider();void 0===e&&(this.logger("No compatible GDPR privacy provider found"),t(void 0)),null==e||e.retrieveConsent(t)},Kt.prototype.readyToRetrieve=function(){return this.tcfv2ConsentProvider.readyToRetrieve()||this.tcfv1ConsentProvider.readyToRetrieve()},Kt);function Kt(t,e,i){void 0===i&&(i=function(t){}),this.tcfv1ConsentProvider=t,this.tcfv2ConsentProvider=e,this.logger=i}var zt=(Wt.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__cmpLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},Wt.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__cmp},Wt.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},Wt.prototype.pingWithTimeout=function(r,t,e,i){function n(t,e){o.logger(e),clearTimeout(t),i()}var o=this;return window.setTimeout(function(){var i=window.setTimeout(function(){n(r,"Timeout: Unable to get ping return after "+t+"ms")},t);o.executeCommand("ping",null,function(t,e){clearTimeout(i),e?(o.logger("GDPR CMP ping returned"),!0!==t.cmpLoaded&&n(r,"GDPR ping returned cmpLoaded which is not true"),o.logger("GDPR ping returned cmpLoaded which is true")):n(r,"Error sending ping to GDPR CMP")})},e)},Wt.prototype.retrieveConsent=function(t){this.executeRetrieveConsent("getConsentData",null,t)},Wt.prototype.retrieveConsentForPassback=function(t){this.executeRetrieveConsent("getVendorConsents",[91],t)},Wt.prototype.executeRetrieveConsent=function(t,e,i){var r=this,n=!1,o=window.setTimeout(function(){n=!0,r.logger("Timeout: Unable to resolve GDPR consent after "+r.timeout+"ms"),i(void 0)},this.timeout),s=this.pingWithTimeout(o,this.pingTimeout,this.pingDelay,function(){n=!0,r.logger("Timeout: Unable to ping GDPR API after "+r.pingTimeout+"ms"),i(void 0)});this.executeCommand(t,e,function(t,e){clearTimeout(s),n||(clearTimeout(o),e?(r.logger("GDPR consent retrieved"),r.processConsentData(t,i)):(r.logger("Error retrieving GDPR consent data from CMP"),i(void 0)))})},Wt.prototype.processConsentData=function(t,e){if(t){var i={};void 0!==t.consentData&&(i.consentData=t.consentData),void 0!==t.gdprApplies&&(i.gdprApplies=!!t.gdprApplies),e(i)}else this.logger("Unable to read GDPR consent data from CMP"),e(void 0)},Wt.prototype.executeCommand=function(t,e,i){var o=this;if(!this.hasCallerFunctionInFrame()){this.logger("No GDPR CMP defined on current frame");var s=this.getCMPFrame();this.currentWindow.__cmp=function(t,e,i){if(!s)return o.logger("GDPR CMP not found in any frame"),void i({msg:"GDPR CMP not found in any frame"},!1);var r=Math.random().toString(10),n={__cmpCall:{command:t,parameter:e,callId:r}};o.cmpCallbacks[r]=i,s.postMessage(n,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?Ut(t.data):t.data;if(e&&e.__cmpReturn&&e.__cmpReturn.callId&&e.__cmpReturn.returnValue){var i=e.__cmpReturn;o.cmpCallbacks&&o.cmpCallbacks[i.callId]&&(o.cmpCallbacks[i.callId](i.returnValue,i.success),delete o.cmpCallbacks[i.callId])}},!1)}this.currentWindow.__cmp(t,e,i)},Wt);function Wt(t,e,i){void 0===i&&(i=function(t){}),this.cmpCallbacks={},this.currentWindow=t,this.timeout=e.tcfTimeout,this.pingTimeout=e.tcfPingTimeout,this.pingDelay=e.tcfPingDelay,this.logger=i}var Gt=(Vt.prototype.getCMPFrame=function(){for(var t,e=this.currentWindow,i=0;i<10;++i){try{e.frames.__tcfapiLocator&&(t=e)}catch(t){}if(e===this.currentWindow.top)break;e=e.parent}return t},Vt.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__tcfapi},Vt.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},Vt.prototype.pingWithTimeout=function(i,t,e,r){function n(t,e){o.logger(e),clearTimeout(t),r()}var o=this;return window.setTimeout(function(){var e=window.setTimeout(function(){n(i,"Timeout: Unable to get TCFv2 ping return after "+t+"ms")},t);o.executeCommand("ping",2,function(t){clearTimeout(e),o.logger("TCFv2 CMP ping returned in ms"),"error"===t.cmpStatus?n(i,"Error status on ping to TCFv2 CMP"):!0!==t.cmpLoaded?n(i,"TCFv2 ping returned cmpLoaded = false"):o.logger("TCFv2 ping returned cmpLoaded = true")})},e)},Vt.prototype.retrieveConsent=function(i){var r=this,n=!1,o=window.setTimeout(function(){n=!0,r.logger("Timeout: Unable to resolve TCFv2 consent after "+r.timeout+"ms"),i(void 0)},this.timeout),s=this.pingWithTimeout(o,this.pingTimeout,this.pingDelay,function(){n=!0,r.logger("Timeout: Unable to ping TCFv2 API after "+r.pingTimeout+"ms"),i(void 0)});this.executeCommand("getTCData",2,function(t,e){clearTimeout(s),n||(clearTimeout(o),e?(r.logger("TCFv2 consent retrieved in ms"),r.processResponseData(t,i)):(r.logger("Error retrieving TCFv2 consent data from CMP"),i(void 0)))},[91])},Vt.prototype.processResponseData=function(t,e){var i;if(t){var r={};void 0!==t.tcString&&(r.consentData=t.tcString),void 0!==t.gdprApplies&&(r.gdprApplies=!!t.gdprApplies),r.version=t.tcfPolicyVersion?t.tcfPolicyVersion:2,r.purposes=null===(i=null==t?void 0:t.purpose)||void 0===i?void 0:i.consents,e(r)}else this.logger("Unable to read GDPR consent data from CMP"),e(void 0)},Vt.prototype.executeCommand=function(t,e,i,r){var s=this;if(!this.hasCallerFunctionInFrame()){this.logger("No TCFv2 CMP defined on current frame");var a=this.getCMPFrame();this.currentWindow.__tcfapi=function(t,e,i,r){if(!a)return s.logger("TCFv2 CMP not found in any frame"),void i({msg:"TCFv2 CMP not found in any frame"},!1);var n=Math.random().toString(10),o={__tcfapiCall:{command:t,version:e,parameter:r,callId:n}};s.cmpCallbacks[n]=i,a.postMessage(o,"*")},this.currentWindow.addEventListener("message",function(t){var e="string"==typeof t.data?Ut(t.data):t.data;if(e&&e.__tcfapiReturn&&e.__tcfapiReturn.callId&&e.__tcfapiReturn.returnValue){var i=e.__tcfapiReturn;s.cmpCallbacks&&s.cmpCallbacks[i.callId]&&"function"==typeof s.cmpCallbacks[i.callId]&&(s.cmpCallbacks[i.callId](i.returnValue,i.success),delete s.cmpCallbacks[i.callId])}},!1)}this.currentWindow.__tcfapi(t,e,i,r)},Vt);function Vt(t,e,i){void 0===i&&(i=function(t){}),this.cmpCallbacks={},this.currentWindow=t,this.timeout=e.tcfTimeout,this.pingTimeout=e.tcfPingTimeout,this.pingDelay=e.tcfPingDelay,this.logger=i}var Yt=(jt.prototype.initializeServices=function(){var r=this;this.initializing=!0,this.retrievePrivacyConsent(function(t,e){var i={localStorageHelper:new ft(r.topFrame,e),gdprConsent:e,ccpaConsentProvider:r.ccpaConsentProvider,ccpaConsent:t};r.services=i,r.initialized=!0,r.initializing=!1,r.postInitiliazeServicesCallbacks.forEach(function(t){t(i)})})},jt.prototype.getServicesAsync=function(t){this.initialized?t(this.services):(this.postInitiliazeServicesCallbacks.push(t),this.initializing||this.initializeServices())},jt.prototype.retrievePrivacyConsent=function(e){var t=this.tcfCompatibleConsentProvider.readyToRetrieve(),i=this.ccpaConsentProvider.readyToRetrieve();t||i||e(void 0,void 0);var r,n,o=[];t&&o.push(Ht),i&&o.push(Lt),t&&this.tcfCompatibleConsentProvider.retrieveConsent(function(t){o.splice(o.indexOf("TCF"),1),0===o.length?e(n,t):r=t}),i&&this.ccpaConsentProvider.retrieveConsent(function(t){o.splice(o.indexOf("CCPA"),1),0===o.length?e(t,r):n=t})},jt);function jt(t,e,i){this.initializing=!1,this.initialized=!1,this.postInitiliazeServicesCallbacks=[],this.topFrame=t||window;var r={uspApiTimeout:parseInt("50",10),tcfTimeout:parseInt("10000",10),tcfPingTimeout:Math.min(parseInt("10000",10),parseInt("50",10)),tcfPingDelay:Math.min(parseInt("10000",10),parseInt("1000",10))};this.ccpaConsentProvider=e||new Lt(window,r,R.Warning);var n=new zt(window,r,R.Warning),o=new Gt(window,r,R.Warning);this.tcfCompatibleConsentProvider=i||new Ht(n,o,R.Warning),this.initializeServices()}var Jt,Xt=(t(Zt,Jt=p),Zt.prototype.getMetricBuilder=function(){return this.metricBuilder},Zt.prototype.eval=function(t){this.evalWithTimeout(t,void 0)},Zt.prototype.evalWithTimeout=function(e,i){var r=this;(this.serviceProvider||new Yt).getServicesAsync(function(t){r.metricsManager||(r.metricsManager=new V(t.localStorageHelper,r.profileId,r.adapterVersion)),r.metricBuilder||(r.metricBuilder=new F(r.metricsManager)),r.innerEval(e,r.metricBuilder,t.gdprConsent,t.ccpaConsent,i)})},Zt.prototype.innerEval=function(r,n,t,e,i){var o=this,s=$(),a=Zt.getCriteoAdapterBidRequest(),d=Zt.getRequestAuctionStart(a),c=i||dt(a&&a.timeout),l=new nt(n,d,c),u=new X(this.slots,r.context,this.urlBuilder,this.profileId,this.integrationMode,this.networkId,this.adapterVersion,{ccpaIabConsent:e,gdprConsent:t},void 0,this.viewportComputer,c,s,void 0,Math.round(new Date/1e3));if(!u.isValid()||"undefined"==typeof JSON)return R.Debug("Request ignored because it doesnt contain any slot"),void this.callbackError(void 0,void 0);var p=u.getRequest(),h=JSON.stringify(p),v=u.getUrl(),f=new Ft(v,h,"application/x-www-form-urlencoded");l.sendRequest(v),f.send(function(t){try{l.requestReceived();var e=U(t)||{},i=Q(e);void 0!==o.callbackSuccess&&o.callbackSuccess(JSON.stringify(e),i),l.finish(i.slots),n.getMetricsManager().sendMetric(n,s)}catch(t){o.reportAsyncRequestException(r,"onSuccess",t)}r.context.remoteLogging.sendErrorReport(o.urlBuilder,s),o.metricBuilder=void 0},function(t,e){try{l.requestReceived(),void 0!==o.callbackError&&o.callbackError(t,e),l.finish(),n.getMetricsManager().sendMetric(n,s)}catch(t){o.reportAsyncRequestException(r,"onError",t)}r.context.remoteLogging.sendErrorReport(o.urlBuilder,s),o.metricBuilder=void 0},function(){try{l.requestReceived(!0),void 0!==o.callbackTimeout&&o.callbackTimeout(),l.finish(),n.getMetricsManager().sendMetric(n,s)}catch(t){o.reportAsyncRequestException(r,"onTimeout",t)}r.context.remoteLogging.sendErrorReport(o.urlBuilder,s),o.metricBuilder=void 0},this.timeout)},Zt.prototype.reportAsyncRequestException=function(t,e,i){var r=i.stack?i.stack:i.toString();t.context.remoteLogging.log("Exception","Exception caught in AsyncRequest "+e+" callback:\n"+r),R.Error("Error "+e+":\n\t"+r)},Zt.getCriteoAdapterBidRequest=function(){try{return window.pbjs._bidsRequested.find(function(t){return"criteo"===t.bidderCode})}catch(t){return}},Zt.getRequestAuctionStart=function(t){return t&&t.auctionStart},Zt.NAME="directbidding",Zt);function Zt(t,e,i,r,n,o,s,a,d,c,l,u,p){var h=Jt.call(this,Zt.NAME)||this;return h.profileId=t,h.urlBuilder=e,h.slots=i,h.callbackSuccess=r,h.callbackError=n,h.callbackTimeout=o,h.serviceProvider=s,h.timeout=d,h.networkId=c,h.integrationMode=l,h.adapterVersion=u,h.viewportComputer=p,h.metricsManager=a,h.metricsManager&&(h.metricBuilder=new F(h.metricsManager)),h}var Qt,$t=(t(te,Qt=p),te.prototype.eval=function(t){var e=this;if(this.cache.silentModeEnabled())return R.Debug("Request ignored because the global silent mode is enabled"),this.metricsManager.incSilentModeRequestCount(),void this.callbackSuccess("",void 0);setTimeout(function(){return e.onTimeout()},this.timeout||3e3),this.directBiddingEvent.evalWithTimeout(t,this.timeout)},te.prototype.onSuccess=function(t,e){if(this.hasResponded=!0,void 0!==e){var i=U(t);this.cache.handleResponse(this.slots,i,e,this.hasTimeouted)}this.hasTimeouted||this.callbackSuccess(t,e),this.cache.clearExpiredItems()},te.prototype.onError=function(t,e){this.hasResponded=!0,this.hasTimeouted||this.callbackError(t,e),this.cache.clearExpiredItems()},te.prototype.onHttpTimeout=function(){this.hasResponded=!0,this.hasTimeouted||this.callbackTimeout(),this.cache.clearExpiredItems()},te.prototype.onTimeout=function(){var t;if(!this.hasResponded){this.hasTimeouted=!0;var e=this.cache.getCachedBids(this.slots),i=Object.keys(e),r=i.map(function(t){return e[t]});0===Object.keys(e).length?this.callbackTimeout():(R.Debug("Cached bids returned because of timeout: ['"+r.map(function(t){return t.impid}).join("', '")+"']"),null===(t=this.getMetricBuilder())||void 0===t||t.withSlotIdsMatchedByCache(i),this.callbackSuccess(JSON.stringify({slots:r}),void 0))}},te.prototype.getMetricBuilder=function(){return this.directBiddingEvent.getMetricBuilder()},te.prototype.getBidCache=function(){return this.cache},te.NAME="directbidding",te);function te(t,e,i,r,n,o,s,a,d,c,l,u,p,h){var v=Qt.call(this,te.NAME)||this,f=Math.max(10*(c||3e3),3e3);return v.cache=a,v.directBiddingEvent=new Xt(t,e,v.cache.filterNoBidSlots(i),function(t,e){return v.onSuccess(t,e)},function(t,e){return v.onError(t,e)},function(){return v.onHttpTimeout()},d,s,f,l,u,p,h),v.slots=i,v.callbackSuccess=r,v.callbackError=n,v.callbackTimeout=o,v.timeout=c,v.hasTimeouted=!1,v.hasResponded=!1,v.metricsManager=s,v}var ee={prebid:"criteo_fast_bid",standalone:"criteo_fast_bid_standalone",index:"criteo_fast_bid_index"};var ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var re,ne=(function(t,e){var i;i=function(){function d(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,e=void 0,n=void 0,s=function(t,e){p[r]=t,p[r+1]=e,2===(r+=2)&&(n?n(h):y())};var t="undefined"!=typeof window?window:void 0,o=t||{},a=o.MutationObserver||o.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var t=setTimeout;return function(){return t(h,1)}}var p=new Array(1e3);function h(){for(var t=0;t<r;t+=2){(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0}r=0}var v,f,g,m,y=void 0;function C(t,e){var i=this,r=new this.constructor(I);void 0===r[b]&&F(r);var n=i._state;if(n){var o=arguments[n-1];s(function(){return x(n,r,o,i._result)})}else D(i,r,t,e);return r}function E(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(I);return R(e,t),e}y=c?function(){return process.nextTick(h)}:a?(f=0,g=new a(h),m=document.createTextNode(""),g.observe(m,{characterData:!0}),function(){m.data=f=++f%2}):l?((v=new MessageChannel).port1.onmessage=h,function(){return v.port2.postMessage(0)}):(void 0===t?function(){try{var t=Function("return this")().require("vertx");return void 0!==(e=t.runOnLoop||t.runOnContext)?function(){e(h)}:u()}catch(t){return u()}}:u)();var b=Math.random().toString(36).substring(2);function I(){}var w=void 0,_=1,S=2;function T(t,r,n){s(function(e){var i=!1,t=function(t,e,i,r){try{t.call(e,i,r)}catch(t){return t}}(n,r,function(t){i||(i=!0,(r!==t?R:P)(e,t))},function(t){i||(i=!0,O(e,t))},e._label);!i&&t&&(i=!0,O(e,t))},t)}function A(t,e,i){var r,n;e.constructor===t.constructor&&i===C&&e.constructor.resolve===E?(r=t,(n=e)._state===_?P(r,n._result):n._state===S?O(r,n._result):D(n,void 0,function(t){return R(r,t)},function(t){return O(r,t)})):void 0===i?P(t,e):d(i)?T(t,e,i):P(t,e)}function R(e,t){if(e===t)O(e,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof(r=t),null===r||"object"!=n&&"function"!=n)P(e,t);else{var i=void 0;try{i=t.then}catch(t){return void O(e,t)}A(e,t,i)}var r,n}function M(t){t._onerror&&t._onerror(t._result),B(t)}function P(t,e){t._state===w&&(t._result=e,t._state=_,0!==t._subscribers.length&&s(B,t))}function O(t,e){t._state===w&&(t._state=S,t._result=e,s(M,t))}function D(t,e,i,r){var n=t._subscribers,o=n.length;t._onerror=null,n[o]=e,n[o+_]=i,n[o+S]=r,0===o&&t._state&&s(B,t)}function B(t){var e=t._subscribers,i=t._state;if(0!==e.length){for(var r=void 0,n=void 0,o=t._result,s=0;s<e.length;s+=3)r=e[s],n=e[s+i],r?x(i,r,n,o):n(o);t._subscribers.length=0}}function x(t,e,i,r){var n=d(i),o=void 0,s=void 0,a=!0;if(n){try{o=i(r)}catch(t){a=!1,s=t}if(e===o)return void O(e,new TypeError("A promises callback cannot return that same promise."))}else o=r;e._state!==w||(n&&a?R(e,o):!1===a?O(e,s):t===_?P(e,o):t===S&&O(e,o))}var k=0;function F(t){t[b]=k++,t._state=void 0,t._result=void 0,t._subscribers=[]}var N=(U.prototype._enumerate=function(t){for(var e=0;this._state===w&&e<t.length;e++)this._eachEntry(t[e],e)},U.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,r=i.resolve;if(r===E){var n=void 0,o=void 0,s=!1;try{n=e.then}catch(t){s=!0,o=t}if(n===C&&e._state!==w)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(i===L){var a=new i(I);s?O(a,o):A(a,e,n),this._willSettleAt(a,t)}else this._willSettleAt(new i(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},U.prototype._settledAt=function(t,e,i){var r=this.promise;r._state===w&&(this._remaining--,t===S?O(r,i):this._result[e]=i),0===this._remaining&&P(r,this._result)},U.prototype._willSettleAt=function(t,e){var i=this;D(t,void 0,function(t){return i._settledAt(_,e,t)},function(t){return i._settledAt(S,e,t)})},U);function U(t,e){this._instanceConstructor=t,this.promise=new t(I),this.promise[b]||F(this.promise),i(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&P(this.promise,this._result))):O(this.promise,new Error("Array Methods must be provided an Array"))}var L=(q.prototype.catch=function(t){return this.then(null,t)},q.prototype.finally=function(e){var i=this.constructor;return d(e)?this.then(function(t){return i.resolve(e()).then(function(){return t})},function(t){return i.resolve(e()).then(function(){throw t})}):this.then(e,e)},q);function q(t){this[b]=k++,this._result=this._state=void 0,this._subscribers=[],I!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof q?function(e,t){try{t(function(t){R(e,t)},function(t){O(e,t)})}catch(t){O(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return L.prototype.then=C,L.all=function(t){return new N(this,t).promise},L.race=function(n){var o=this;return i(n)?new o(function(t,e){for(var i=n.length,r=0;r<i;r++)o.resolve(n[r]).then(t,e)}):new o(function(t,e){return e(new TypeError("You must pass an array to race."))})},L.resolve=E,L.reject=function(t){var e=new this(I);return O(e,t),e},L._setScheduler=function(t){n=t},L._setAsap=function(t){s=t},L._asap=s,L.polyfill=function(){var t=void 0;if(void 0!==ie)t=ie;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=L},L.Promise=L},t.exports=i()}(re={exports:{}},re.exports),re.exports).polyfill,oe=(se.LoadPolyfills=function(){se.DefineIsArray(),se.DefineIndexOf(),se.DefineFilter(),se.DefinePromise()},se.DefinePromise=function(){window.Promise||ne()},se.DefineIsArray=function(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)})},se.DefineIndexOf=function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(void 0===e&&(e=0),void 0===this)throw new TypeError("'this' is null or not defined");var i=this.length;if(0===i)return-1;if(i<=e)return-1;for(var r=Math.max(0<=e?e:i-Math.abs(e),0);r<i;){if(r in this&&this[r]===t)return r;r++}return-1})},se.DefineFilter=function(){Array.prototype.filter||(Array.prototype.filter=function(t){if(void 0===this||void 0===this)throw new TypeError;var e=this.length;if("function"!=typeof t)throw new TypeError;for(var i=[],r=2<=arguments.length?arguments[1]:void 0,n=0;n<e;n++)if(n in this){var o=this[n];t.call(r,o,n,this)&&i.push(o)}return i})},se);function se(){}var ae,de,ce=(le.SetCookie=function(t,e,i,r,n){void 0===n&&(n=!1);var o=r||document,s=o.location.hostname,a=new Date;a.setTime(a.getTime()+60*i*60*1e3);var d="expires="+a.toUTCString();if(!n)return le.setCookieString(t,e,d,void 0,o),s;for(var c=s.split("."),l=0;l<c.length;++l){var u=c.slice(c.length-l-1,c.length).join(".");le.setCookieString(t,e,d,u,o);var p=le.GetCookie(t,r);if(p&&p===e)return u}return s},le.DeleteCookie=function(t,e,i){void 0===i&&(i=!1),le.SetCookie(t,"",0,e,i)},le.GetCookie=function(t,e){for(var i=0,r=(e||document).cookie.split(";");i<r.length;i++){var n=r[i],o=n.substr(0,n.indexOf("=")).replace(/^\s+|\s+$/g,""),s=n.substr(n.indexOf("=")+1);if(o===t)return decodeURIComponent(s)}},le.setCookieString=function(t,e,i,r,n){var o=t+"="+encodeURIComponent(e)+";"+i+";";r&&""!==r&&(o+="domain=."+r+";"),n.cookie=o+"path=/"},le);function le(){}function ue(e,i){try{return decodeURIComponent(e)}catch(t){return void 0!==i?i:e}}(de=ae=ae||{})[de.None=0]="None",de[de.Cookie=1]="Cookie",de[de.LocalStorage=2]="LocalStorage";var pe=(he.prototype.synchronizeCriteoUid=function(t,e){var i=this;if(t&&(this.tcfV2ConsentString=t),this.topWin.addEventListener)if("complete"===this.topDoc.readyState)this.appendGumIframeIfDoesNotExist(e);else{var r=function(){i.topDoc.removeEventListener("DOMContentLoaded",r),i.topWin.removeEventListener("load",r),i.appendGumIframeIfDoesNotExist(e)};this.topWin.addEventListener("load",r,!1),this.topDoc.addEventListener("DOMContentLoaded",r,!1)}},he.prototype.appendGumIframeIfDoesNotExist=function(o){var s=this,t=this.createGumIframe();this.topDoc.getElementById(he.SYNCFRAME_ID)||(this.topWin.addEventListener("message",function(t){var e=t.data;if(e&&e.isCriteoMessage)if(t.stopImmediatePropagation(),e.optout)s.setClientSideOptOut(),s.deleteClientSideUid(),s.deleteClientSideSecureId(),s.deleteBundle();else{if(e.uid&&s.setClientSideUid(e.uid),e.callbacks)for(var i=0,r="string"==typeof e.callbacks?[e.callbacks]:e.callbacks;i<r.length;i++){var n=r[i];(new Image).src=n}else e.bundle&&(s.setBundle(e.bundle),e.enableEsp&&o&&o(e.bundle));e.removeSid?s.deleteClientSideSecureId():e.sid&&s.setClientSideSecureId(e.sid)}},!0),this.topDoc.body.appendChild(t))},he.prototype.getClientSideUid=function(){return this.getFromAllStorages(he.GUID_COOKIE_NAME)},he.prototype.setClientSideUid=function(t){this.writeOnAllStorages(he.GUID_COOKIE_NAME,t,he.GUID_RETENTION_TIME_HOUR)},he.prototype.deleteClientSideUid=function(){this.deleteFromAllStorage(he.GUID_COOKIE_NAME)},he.prototype.getBundle=function(){return this.getFromAllStorages(he.BUNDLE_COOKIE_NAME)},he.prototype.setBundle=function(t){this.writeOnAllStorages(he.BUNDLE_COOKIE_NAME,t,he.GUID_RETENTION_TIME_HOUR)},he.prototype.deleteBundle=function(){this.deleteFromAllStorage(he.BUNDLE_COOKIE_NAME)},he.prototype.getClientSideOptOut=function(){var t=this.getFromAllStorages(he.OPTOUT_COOKIE_NAME);return{value:"1"===t.value,origin:t.origin}},he.prototype.setClientSideOptOut=function(){this.writeOnAllStorages(he.OPTOUT_COOKIE_NAME,"1",he.OPTOUT_RETENTION_TIME_HOUR)},he.prototype.getClientSideSecureId=function(){return this.getFromAllStorages(he.SECURE_ID_COOKIE_NAME)},he.prototype.setClientSideSecureId=function(t){this.writeOnAllStorages(he.SECURE_ID_COOKIE_NAME,t,he.GUID_RETENTION_TIME_HOUR)},he.prototype.deleteClientSideSecureId=function(){this.deleteFromAllStorage(he.SECURE_ID_COOKIE_NAME)},he.prototype.getClientSideLocalWebId=function(){return this.getFromAllStorages(he.LOCAL_WEB_ID_COOKIE_NAME)},he.prototype.getIfa=function(){return this.getFromAllStorages(he.IFA_COOKIE_NAME)},he.prototype.checkCookiesAreWriteable=function(){var t="cto_writeable";ce.SetCookie(t,"1",1,this.topDoc,!0);var e="1"===ce.GetCookie(t,this.topDoc);return ce.DeleteCookie(t,this.topDoc,!0),e},he.prototype.createGumIframe=function(){var t=this.topDoc.createElement("iframe");return t.src=this.buildSyncframeSrc(),t.id=he.SYNCFRAME_ID,t.style.display="none",t},he.prototype.writeOnAllStorages=function(t,e,i){this.localStorageHelper.setItem(t,e),ce.SetCookie(t,e,i,this.topDoc,!0)},he.prototype.getFromAllStorages=function(t){var e=ce.GetCookie(t,this.topDoc),i=this.localStorageHelper.getItem(t)||void 0;return{value:e||i,origin:(e&&ae.Cookie)|(i&&ae.LocalStorage)}},he.prototype.deleteFromAllStorage=function(t){ce.DeleteCookie(t,this.topDoc,!0),this.localStorageHelper.removeItem(t)},he.prototype.getTld=function(){var t=ce.SetCookie(he.TLD_TEST_COOKIE_NAME,"test",1,this.topDoc,!0);return ce.DeleteCookie(he.TLD_TEST_COOKIE_NAME,this.topDoc,!0),t},he.prototype.buildSyncframeSrc=function(){var t,e,i=this.getClientSideUid(),r=this.getClientSideOptOut(),n=this.getClientSideSecureId(),o=this.getClientSideLocalWebId(),s=this.getBundle(),a=this.getIfa(),d=this.getTld(),c=encodeURIComponent((t=this.topUrl,(e=document.createElement("a")).href=t,{protocol:e.protocol,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname[0]?e.pathname.slice(1):e.pathname,search:e.search,href:e.href}).hostname),l=this.canWriteCookies,u="https://gum.criteo.com/syncframe?topUrl="+c+(this.isDebug?"&debug=1":"")+(this.tcfV2ConsentString?"&gdpr_consent="+this.tcfV2ConsentString:"");return u+="#"+JSON.stringify({optout:r,uid:i,sid:n,origin:"publishertag",version:99,lwid:o,tld:d,bundle:s,topUrl:c,cw:l,ifa:a})},he.GUID_COOKIE_NAME="cto_idcpy",he.GUID_RETENTION_TIME_HOUR=9360,he.SECURE_ID_COOKIE_NAME="cto_sid",he.LOCAL_WEB_ID_COOKIE_NAME="cto_lwid",he.BUNDLE_COOKIE_NAME="cto_bundle",he.OPTOUT_COOKIE_NAME="cto_optout",he.IFA_COOKIE_NAME="id_controller_ifa",he.OPTOUT_RETENTION_TIME_HOUR=43200,he.TLD_TEST_COOKIE_NAME="cto_pub_test_tld",he.SYNCFRAME_ID="criteo-syncframe",he);function he(t,e,i,r){this.isDebug=i,this.topWin=e,this.topDoc=e.document,this.localStorageHelper=t,this.canWriteCookies=this.checkCookiesAreWriteable(),this.topUrl=r}var ve=function(t,e){this.errorType=t,this.messages=e},fe=function(t,e,i){this.environment=t,this.errors=e,this.requestId=i},ge=(me.prototype.withMessage=function(t,e){return t in this.messages||(this.messages[t]=new Array),this.messages[t].push(e),this},me.prototype.withRequestId=function(t){return this.requestId=t,this},me.prototype.build=function(){var t=Array();for(var e in this.messages)null!=e&&t.push(new ve(e,this.messages[e]));return new fe(this.environment,t,this.requestId)},me);function me(t){this.messages={},this.environment=t}var ye,Ce,Ee=(be.prototype.reportPending=function(){return this.shouldSend},be.prototype.sendErrorReport=function(t,e){if(this.shouldSend){void 0!==e&&this.builder.withRequestId(e);var i=this.builder.build(),r=t.buildErrorUrl();r+=this.debug?"?debug=1":"";var n=JSON.stringify(i);navigator.sendBeacon&&navigator.sendBeacon(r,n),this.shouldSend=!1,this.builder=new ge(be.environment)}},be.prototype.log=function(t,e){this.shouldSend=!0,this.builder.withMessage(t,e)},be.environment="PublisherTag Version 99",be);function be(t){void 0===t&&(t=!1),this.builder=new ge(be.environment),this.shouldSend=!1,this.debug=t}function Ie(t){window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(t)}(Ce=ye=ye||{})[Ce.InFriendlyIframe=1]="InFriendlyIframe",Ce[Ce.InUnfriendlyIframe=2]="InUnfriendlyIframe",Ce[Ce.DirectIntegration=3]="DirectIntegration";var we=(_e.prototype.getContextFlags=function(){var t="";return t+=this.debugMode?"&debug=1":"",t+=this.noLog?"&nolog=1":""},_e.prototype.getDisplayContext=function(t){return ut.inIframe()?t.err?ye.InUnfriendlyIframe:ye.InFriendlyIframe:ye.DirectIntegration},_e.prototype.getQueryStringParams=function(t){var e={},i=t.split("?");if(1<i.length)for(var r=0,n=i[1].split("&");r<n.length;r++){var o=n[r].split("=");e[ue(o[0])]=ue(o[1])}return e},_e.prototype.synchronizeCriteoUid=function(t,i){var e,r=(null===(e=this.cookieSynchronizerFactory)||void 0===e?void 0:e.call(this))||new pe(t,this.highestAccessibleWindowStruct.topFrame,this.debugMode,this.highestAccessibleUrl);this.ctoIdOnPublisherDomain=r.getClientSideUid().value,this.isOptOut=r.getClientSideOptOut().value,this.secureId=r.getClientSideSecureId().value,this.bundle=r.getBundle().value;var n,o=new Promise(function(e,t){r.synchronizeCriteoUid(i,function(t){R.Debug("Resolving GPT ESP Promise"),e(t)})});n=o,Ie(function(){var t;window.googletag.encryptedSignalSource=null!==(t=window.googletag.encryptedSignalSource)&&void 0!==t?t:{},R.Debug("Promise set for GPT ESP"),window.googletag.encryptedSignalSource.criteo=function(){return R.Debug("Returning Promise to GPT"),n}})},_e.prototype.getIdfs=function(){return["",this.secureId].join(":")},_e.prototype.setIdfs=function(t){var e=t.split(":");e[1]&&(this.secureId=e[1])},_e.prototype.computeShouldIgnoreSilentMode=function(){return Math.floor(100*Math.random())<5},_e.prototype.setSilentModeIgnored=function(){this.silentModeIgnored=!0},_e);function _e(t,e,i,r){var n=this;this.cloneByImpressionId={},this.charset=t.charset||t.characterSet||"",this.highestAccessibleWindowStruct=ut.getHighestAccessibleWindow(e),this.displayContext=this.getDisplayContext(this.highestAccessibleWindowStruct),this.highestAccessibleUrl=ut.getHighestAccessibleUrl(this.highestAccessibleWindowStruct),this.cookieSynchronizerFactory=i;var o,s=this.getQueryStringParams(this.highestAccessibleUrl);this.debugMode="1"===s.pbt_debug||!1,this.noLog="1"===s.pbt_nolog||!1,this.shouldIgnoreSilentMode=this.computeShouldIgnoreSilentMode(),this.silentModeIgnored=!1,this.remoteLogging=new Ee(this.debugMode),this.debugMode&&(o=a.Debug,R.LOGLEVEL=o),this.location=e.location,this.dising=!1,this.ct0=void 0,this.wpdt0=void 0,this.isAdBlocked=void 0,this.rtaVarNames=[],this.serviceProvider=r||new Yt(this.highestAccessibleWindowStruct.topFrame),this.serviceProvider.getServicesAsync(function(t){var e,i;(null===(e=t.ccpaConsentProvider)||void 0===e?void 0:e.hasUserOptOut(t.ccpaConsent))||n.synchronizeCriteoUid(t.localStorageHelper,null===(i=t.gdprConsent)||void 0===i?void 0:i.consentData)})}var Se=function(){this.bids={},this.lineItemRanges=[],this.impIds=[]};var Te,Ae,Re=(Me.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=t;i<r.length;i++){var n=r[i];this.events.push(n)}this.evalEvents()},Me.prototype.evalEvents=function(){for(var t=0;t<this.events.length;){var e=this.events[t];if("conditionalEvent"!==e.name||e.canEval()){var i=this.events.splice(t,1);try{i[0].eval(this)}catch(t){R.Error("An exception occurred processing an event: "+t.toString())}}else t++}},Me.VERSION=B,Me);function Me(){this.standaloneBidder=new Se,this.events=[],this.context=new we(document,window),R.Debug("Publisher Tag loaded")}function Pe(t){function e(){try{return i.apply(this,arguments)}catch(t){R.Error("Exception caught: "+t.toString())}}var i=t;for(var r in e.prototype=i.prototype,i)i.hasOwnProperty(r)&&(e[r]=i[r]);return e}window.criteo_pubtag&&"serviceProvider"in window.criteo_pubtag.context||(oe.LoadPolyfills(),window.criteo_pubtag=new Re),window.Criteo=function t(e){for(var i in e)if(i in e){var r=e[i];"function"==typeof r?e[i]=Pe(r):"object"==typeof r&&(e[i]=t(r))}return e}({PubTag:{Adapters:{Prebid:xt},DirectBidding:{DirectBiddingEvent:$t,DirectBiddingSlot:tt,DirectBiddingUrlBuilder:W,Size:st}},events:window.Criteo?window.Criteo.events:[],passbackEvents:window.Criteo?window.Criteo.passbackEvents:[],usePrebidEvents:!window.Criteo||window.Criteo.usePrebidEvents}),!1!==window.Criteo.usePrebidEvents&&(window.Criteo.events=(Te=window.Criteo.events,Ae={push:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(void 0!==t)for(var i=0,r=t;i<r.length;i++){var n=r[i];"function"==typeof n&&Pe(n)()}}},Te&&Array.isArray(Te)&&Ae.push.apply(Ae,Te),Ae)),window.criteo_pubtag.context.serviceProvider.getServicesAsync(function(t){var e,i,r;e=t.localStorageHelper,r=ee[i="prebid"],null===e.getItem(r,864e5)&&new Ft("https://static.criteo.net/js/ld/publishertag."+i+".js",void 0,void 0,!1).send(function(t){e.setItem(r,t,864e5)},function(t,e){R.Error("Could not update FastBid"+(e?" ("+e+")":""))})})}();


originKey: rb.moc.oedneit.www.:https:443
scope: rb.moc.oedneit.www.:https:443
key: cto_bidid
value:
  Av_wnF9YcVpvMUxQYjR2S3VLQ3V6JTJGbGVScXdkTHolMkZudFNQayUyQjlYNTJTYjA4JTJGdGQwWlR4QXRRR1VwSG1HcEdVV29iSUExVWFVSUdDbTlyQWRHclNDaDluM3ZnJTNEJTNE


originKey: rb.moc.aihabsasac.www.:https:443
scope: rb.moc.aihabsasac.www.:https:443
key: 3ba393e9-eb9b-455a-9bd1-af3fea25ce43
value:
  {"Erro":false,"Protocolo":"238baa6a-37f6-49c3-a0e8-96e0ed5669c2","ExibeEmail":false,"ExibeTelefone":false,"Precisa2FA":false,"TicketValido":false,"UsuarioAutenticado":false,"BoletoHabilitado":false,"CarrinhoElegivelSplitPagamentoMarketplace":false,"ClienteFidelizado":false,"Compra":false,"DesabilitaCEP":false,"FlagCarrinhoAlterado":false,"IsNotValid":false,"IsUfAtacadoInvalida":false,"PercentualDescontoAVista":0,"QuantidadeParcelas":0,"SubTotalFrete":0,"SubTotalProdutos":0,"SubTotalProdutosBoleto":0,"SubTotalST":0,"SubTotalServicos":0,"TemMontagemAvulsa":false,"TemMontagemExternaAssociada":false,"TemMontagemInternaAssociada":false,"ValorCartaoPresente":0,"ValorComDescontoAVista":0,"ValorGarantia":0,"ValorParcela":0,"ValorTotal":0,"ValorTotalBoleto":0,"ValorVale":0,"flagCompreJunto":false,"isAtacado":false,"Excecoes":{},"Mensagens":{},"TipoDeErro":{},"Email":{},"IdCliente":{},"Telefone":{},"Ticket":{},"AderindoPlanoFidelizacao":{},"CelularParaEnvioDeCodigo":{},"Cep":{},"ClienteNome":{},"ClubeExtra":{},"CnpjLocker":{},"Cupom":{},"EnderecoSelecionado":{},"FatorArredondamentoBoleto":{},"FormasPagamento":{},"IdEndereco":{},"IdEnderecoLojaFisica":{},"IdFreteEntregaTipo":{},"IdTipoImposto":{},"IsEntregaIncompativel":{},"IsListaCasamento":{},"MensagemCorreios":{},"MensagemRetiraLoja24hCalculoFrete":{},"NomeFreteEntregaTipo":{},"NomesNoivos":{},"PrazoEntrega":{},"QuantidadeParcelasCrypto":{},"ResultadoEnvioAutenticacaoZeroDollar":{},"ResultadoEnvioFluxo3ds":{"Aplica3ds":false,"PedidoAprovado3ds":false,"Items":{}},"Skus":{},"TextoDescontoAVista":{},"ValorTotalCrypto":{}}


originKey: rb.moc.aihabsasac.www.:https:443
scope: rb.moc.aihabsasac.www.:https:443
key: chaordic_script_cache_https://static.chaordicsystems.com/static/casasbahia/current.js
value:
  {"data":"chaordic=chaordic||{},chaordic.modules=chaordic.modules||[],function(){var e=function(e,t,n){var r=this;this.url=e,this.params=n,this.options=t,this.callback=[],this.errback=[];var i=function(e){for(var t=0;t<r.callback.length;t++)r.callback[t].call(r,e)},s=function(e){for(var t=0;t<r.errback.length;t++)r.errback[t].call(r,e)};this.get(e,n,i,s)};e.prototype.get=function(e,t,n,r){chaordic.lib.jQuery.ajax({url:e,data:t,async:!0,traditional:!0,timeout:t.timeout||null}).done(function(e){e&&e.ok?n.call(this,e):r.call(this,e)}).fail(function(e){r.call(this,e)})},e.prototype.success=function(e){return typeof e==\"function\"&&this.callback.push(e),this},e.prototype.error=function(e){return typeof e==\"function\"&&this.errback.push(e),this};var t=function(){};t.prototype.getEventLink=function(e,t){return!t||!t.customBusiness||typeof t.customBusiness.ads!=\"object\"?\"\":e===\"page-view\"?t.customBusiness.ads.pageViewLink:e===\"view\"?t.customBusiness.ads.view:e===\"click\"?t.customBusiness.ads.clickLink:\"\"},t.prototype.sendEvents=function(t,n){var r,i,s,o=n.adsProducts||[],u=[],a=chaordic.meta.page.name,f=chaordic.meta.product||chaordic.meta.pid||{},l=f.id||f;if(!o.length)return u;if(!n.feature||!n.widgetId)return console.error(\"onsite.adsmanager, failed to send events\",t,n),u;s={placement:a,chaordicShowcaseName:n.feature.toLowerCase(),chaordicShowcaseId:n.widgetId};if(a===\"product\"||a===\"product_unavailable\")l||console.error(\"onsite.adsmanager, failed to send events, no pid found\",t,n),s.productId=l;for(r=0;r<o.length;r++)i=this.getEventLink(t,o[r]),i&&u.push(new e(i.replace(/\\/$/,\"\"),{method:\"get\",plainGet:!0},s));return u},chaordic.AdsManager=t}(),function(){var e={forEach:function(e,t){for(var n=0;n<e.length;n++)t(e[n],n,e)},filter:function(t,n){var r=[];return e.forEach(t,function(e){n(e)&&r.push(e)}),r},map:function(t,n){var r=[];return e.forEach(t,function(e){r.push(n(e))}),r},reduceRight:function(e,t,n){var r=n;for(var i=e.length-1;i>=0;i--)r=t(r,e[i],i,e);return r},reduce:function(e,t,n){var r=n;for(var i=0;i<e.length;i++)r=t(r,e[i],i,e);return r}};chaordic.Arrays=e}(),function(){var e,t,n,r=chaordic.lib,i=function(){return this}(),s=function(){var t=e.readCookie();chaordic.Config.LOG_LEVEL=t.logLevel||\"NONE\"},o=function(e){e()},u=function(){var t,n=function(){var e={\"fugly.js\":'(function(){var e=typeof exports!=\"undefined\",t={startCode:\"<$\",endCode:\"$>\",startExpr:\"<$=\"},n={code:{},text:{},expr:{}},r=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i=function(e){var r={type:n.text,content:\"\"},i=[],s,o;do o=null,r.type===n.text?(s=e.indexOf(t.startCode),s>-1&&(o=e.indexOf(t.startExpr)===s?n.expr:n.code)):(s=e.indexOf(t.endCode),s>-1&&(o=n.text)),o?(r.content=e.substr(0,s),e=e.substr(s+(o===n.expr?3:2))):(r.content=e,e=\"\"),r.content.length&&i.push(r),r={type:o,content:\"\"};while(e);return i},s=function(e){return\"write(\"+e+\");\"},o=function(e){return s(u(e))},u=function(){var e=/[\\\\\\\\\\\\\"\\\\x00-\\\\x1f\\\\x7f-\\\\x9f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,t={\"\\\\b\":\"\\\\\\\\b\",\"\t\":\"\\\\\\\\t\",\"\\\\n\":\"\\\\\\\\n\",\"\\\\f\":\"\\\\\\\\f\",\"\\\\r\":\"\\\\\\\\r\",\\'\"\\':\\'\\\\\\\\\"\\',\"\\\\\\\\\":\"\\\\\\\\\\\\\\\\\"};return function(n){return e.lastIndex=0,e.test(n)?\\'\"\\'+n.replace(e,function(e){var n=t[e];return typeof n==\"string\"?n:\"\\\\\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)})+\\'\"\\':\\'\"\\'+n+\\'\"\\'}}(),a=function(e){switch(e.type){case n.code:return e.content;case n.expr:return s(e.content);case n.text:return o(e.content)}},f=function(e){var t=i(e),n=[],s;for(var o=0,u=t.length;o<u;o++)n.push(a(t[o]));return s=new Function(\"view\",\"write\",n.join(\"\")),function(){var e={};r(e,this);var t=[];return s.call(null,e,function(e){t.push(e)}),t.join(\"\")}},l=function(t){var n={},i;this.context=function(e,t){arguments.length==1?r(n,e):n[e]=t,typeof n.window==\"undefined\"&&(n.window=window.top)},this.render=function(e){return arguments.length===1?i.call(e):i.call(n)},e&&(this.call=this.render),i=f(t)};e?(exports.Template=l,exports.compile=function(e,t){var n=new l(e);return n.context(t),n}):function(){return this}().fugly={Template:l}})()',\"json2.js\":'var JSON;JSON||(JSON={}),function(){\"use strict\";function f(e){return e<10?\"0\"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?\\'\"\\'+e.replace(escapable,function(e){var t=meta[e];return typeof t==\"string\"?t:\"\\\\\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)})+\\'\"\\':\\'\"\\'+e+\\'\"\\'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a==\"object\"&&typeof a.toJSON==\"function\"&&(a=a.toJSON(e)),typeof rep==\"function\"&&(a=rep.call(t,e,a));switch(typeof a){case\"string\":return quote(a);case\"number\":return isFinite(a)?String(a):\"null\";case\"boolean\":case\"null\":return String(a);case\"object\":if(!a)return\"null\";gap+=indent,u=[];if(Object.prototype.toString.apply(a)===\"[object Array]\"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||\"null\";return i=u.length===0?\"[]\":gap?\"[\\\\n\"+gap+u.join(\",\\\\n\"+gap)+\"\\\\n\"+o+\"]\":\"[\"+u.join(\",\")+\"]\",gap=o,i}if(rep&&typeof rep==\"object\"){s=rep.length;for(n=0;n<s;n+=1)r=rep[n],typeof r==\"string\"&&(i=str(r,a),i&&u.push(quote(r)+(gap?\": \":\":\")+i))}else for(r in a)Object.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?\": \":\":\")+i));return i=u.length===0?\"{}\":gap?\"{\\\\n\"+gap+u.join(\",\\\\n\"+gap)+\"\\\\n\"+o+\"}\":\"{\"+u.join(\",\")+\"}\",gap=o,i}}typeof Date.prototype.toJSON!=\"function\"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+\"-\"+f(this.getUTCMonth()+1)+\"-\"+f(this.getUTCDate())+\"T\"+f(this.getUTCHours())+\":\"+f(this.getUTCMinutes())+\":\"+f(this.getUTCSeconds())+\"Z\":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\\\\u0000\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,escapable=/[\\\\\\\\\\\\\"\\\\x00-\\\\x1f\\\\x7f-\\\\x9f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,gap,indent,meta={\"\\\\b\":\"\\\\\\\\b\",\"\t\":\"\\\\\\\\t\",\"\\\\n\":\"\\\\\\\\n\",\"\\\\f\":\"\\\\\\\\f\",\"\\\\r\":\"\\\\\\\\r\",\\'\"\\':\\'\\\\\\\\\"\\',\"\\\\\\\\\":\"\\\\\\\\\\\\\\\\\"},rep;typeof JSON.stringify!=\"function\"&&(JSON.stringify=function(e,t,n){var r;gap=\"\",indent=\"\";if(typeof n==\"number\")for(r=0;r<n;r+=1)indent+=\" \";else typeof n==\"string\"&&(indent=n);rep=t;if(!t||typeof t==\"function\"||typeof t==\"object\"&&typeof t.length==\"number\")return str(\"\",{\"\":e});throw new Error(\"JSON.stringify\")}),typeof JSON.parse!=\"function\"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i==\"object\")for(n in i)Object.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return\"\\\\\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\\\\],:{}\\\\s]*$/.test(text.replace(/\\\\\\\\(?:[\"\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,\"@\").replace(/\"[^\"\\\\\\\\\\\\n\\\\r]*\"|true|false|null|-?\\\\d+(?:\\\\.\\\\d*)?(?:[eE][+\\\\-]?\\\\d+)?/g,\"]\").replace(/(?:^|:|,)(?:\\\\s*\\\\[)+/g,\"\")))return j=eval(\"(\"+text+\")\"),typeof reviver==\"function\"?walk({\"\":j},\"\"):j;throw new SyntaxError(\"JSON.parse\")})}()',\"jquery-1.7.1.js\":'(function(e,t){function u(e){var t=o[e]={},n,r;e=e.split(/\\\\s+/);for(n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}function c(e,n,r){if(r===t&&e.nodeType===1){var i=\"data-\"+n.replace(l,\"-$1\").toLowerCase();r=e.getAttribute(i);if(typeof r==\"string\"){try{r=r===\"true\"?!0:r===\"false\"?!1:r===\"null\"?null:s.isNumeric(r)?parseFloat(r):f.test(r)?s.parseJSON(r):r}catch(o){}s.data(e,n,r)}else r=t}return r}function h(e){for(var t in e){if(t===\"data\"&&s.isEmptyObject(e[t]))continue;if(t!==\"toJSON\")return!1}return!0}function p(e,t,n){var r=t+\"defer\",i=t+\"queue\",o=t+\"mark\",u=s._data(e,r);u&&(n===\"queue\"||!s._data(e,i))&&(n===\"mark\"||!s._data(e,o))&&setTimeout(function(){!s._data(e,i)&&!s._data(e,o)&&(s.removeData(e,r,!0),u.fire())},0)}function H(){return!1}function B(){return!0}function W(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function X(e,t,n){t=t||0;if(s.isFunction(t))return s.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return s.grep(e,function(e,r){return e===t===n});if(typeof t==\"string\"){var r=s.grep(e,function(e){return e.nodeType===1});if(q.test(t))return s.filter(t,r,!n);t=s.filter(t,r)}return s.grep(e,function(e,r){return s.inArray(e,t)>=0===n})}function V(e){var t=$.split(\"|\"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function at(e,t){return s.nodeName(e,\"table\")?e.getElementsByTagName(\"tbody\")[0]||e.appendChild(e.ownerDocument.createElement(\"tbody\")):e}function ft(e,t){if(t.nodeType!==1||!s.hasData(e))return;var n,r,i,o=s._data(e),u=s._data(t,o),a=o.events;if(a){delete u.handle,u.events={};for(n in a)for(r=0,i=a[n].length;r<i;r++)s.event.add(t,n+(a[n][r].namespace?\".\":\"\")+a[n][r].namespace,a[n][r],a[n][r].data)}u.data&&(u.data=s.extend({},u.data))}function lt(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase();if(n===\"object\")t.outerHTML=e.outerHTML;else if(n!==\"input\"||e.type!==\"checkbox\"&&e.type!==\"radio\"){if(n===\"option\")t.selected=e.defaultSelected;else if(n===\"input\"||n===\"textarea\")t.defaultValue=e.defaultValue}else e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value);t.removeAttribute(s.expando)}function ct(e){return typeof e.getElementsByTagName!=\"undefined\"?e.getElementsByTagName(\"*\"):typeof e.querySelectorAll!=\"undefined\"?e.querySelectorAll(\"*\"):[]}function ht(e){if(e.type===\"checkbox\"||e.type===\"radio\")e.defaultChecked=e.checked}function pt(e){var t=(e.nodeName||\"\").toLowerCase();t===\"input\"?ht(e):t!==\"script\"&&typeof e.getElementsByTagName!=\"undefined\"&&s.grep(e.getElementsByTagName(\"input\"),ht)}function dt(e){var t=n.createElement(\"div\");return ut.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function vt(e,t){t.src?s.ajax({url:t.src,async:!1,dataType:\"script\"}):s.globalEval((t.text||t.textContent||t.innerHTML||\"\").replace(st,\"/*$0*/\")),t.parentNode&&t.parentNode.removeChild(t)}function Lt(e,t,n){var r=t===\"width\"?e.offsetWidth:e.offsetHeight,i=t===\"width\"?xt:Tt,o=0,u=i.length;if(r>0){if(n!==\"border\")for(;o<u;o++)n||(r-=parseFloat(s.css(e,\"padding\"+i[o]))||0),n===\"margin\"?r+=parseFloat(s.css(e,n+i[o]))||0:r-=parseFloat(s.css(e,\"border\"+i[o]+\"Width\"))||0;return r+\"px\"}r=Nt(e,t,t);if(r<0||r==null)r=e.style[t]||0;r=parseFloat(r)||0;if(n)for(;o<u;o++)r+=parseFloat(s.css(e,\"padding\"+i[o]))||0,n!==\"padding\"&&(r+=parseFloat(s.css(e,\"border\"+i[o]+\"Width\"))||0),n===\"margin\"&&(r+=parseFloat(s.css(e,n+i[o]))||0);return r+\"px\"}function Gt(e){return function(t,n){typeof t!=\"string\"&&(n=t,t=\"*\");if(s.isFunction(n)){var r=t.toLowerCase().split(Rt),i=0,o=r.length,u,a,f;for(;i<o;i++)u=r[i],f=/^\\\\+/.test(u),f&&(u=u.substr(1)||\"*\"),a=e[u]=e[u]||[],a[f?\"unshift\":\"push\"](n)}}}function Yt(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u=e[s],a=0,f=u?u.length:0,l=e===Xt,c;for(;a<f&&(l||!c);a++)c=u[a](n,r,i),typeof c==\"string\"&&(!l||o[c]?c=t:(n.dataTypes.unshift(c),c=Yt(e,n,r,i,c,o)));return(l||!c)&&!o[\"*\"]&&(c=Yt(e,n,r,i,\"*\",o)),c}function Zt(e,n){var r,i,o=s.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);i&&s.extend(!0,e,i)}function en(e,t,n,r){if(s.isArray(t))s.each(t,function(t,i){n||Ot.test(e)?r(e,i):en(e+\"[\"+(typeof i==\"object\"||s.isArray(i)?t:\"\")+\"]\",i,n,r)});else if(!n&&t!=null&&typeof t==\"object\")for(var i in t)en(e+\"[\"+i+\"]\",t[i],n,r);else r(e,t)}function tn(e,n,r){var i=e.contents,s=e.dataTypes,o=e.responseFields,u,a,f,l;for(a in o)a in r&&(n[o[a]]=r[a]);while(s[0]===\"*\")s.shift(),u===t&&(u=e.mimeType||n.getResponseHeader(\"content-type\"));if(u)for(a in i)if(i[a]&&i[a].test(u)){s.unshift(a);break}if(s[0]in r)f=s[0];else{for(a in r){if(!s[0]||e.converters[a+\" \"+s[0]]){f=a;break}l||(l=a)}f=f||l}if(f)return f!==s[0]&&s.unshift(f),r[f]}function nn(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r=e.dataTypes,i={},o,u,a=r.length,f,l=r[0],c,h,p,d,v;for(o=1;o<a;o++){if(o===1)for(u in e.converters)typeof u==\"string\"&&(i[u.toLowerCase()]=e.converters[u]);c=l,l=r[o];if(l===\"*\")l=c;else if(c!==\"*\"&&c!==l){h=c+\" \"+l,p=i[h]||i[\"* \"+l];if(!p){v=t;for(d in i){f=d.split(\" \");if(f[0]===c||f[0]===\"*\"){v=i[f[1]+\" \"+l];if(v){d=i[d],d===!0?p=v:v===!0&&(p=d);break}}}}!p&&!v&&s.error(\"No conversion from \"+h.replace(\" \",\" to \")),p!==!0&&(n=p?p(n):v(d(n)))}}return n}function fn(){try{return new e.XMLHttpRequest}catch(t){}}function ln(){try{return new e.ActiveXObject(\"Microsoft.XMLHTTP\")}catch(t){}}function bn(){return setTimeout(wn,0),yn=s.now()}function wn(){yn=t}function En(e,t){var n={};return s.each(gn.concat.apply([],gn.slice(0,t)),function(){n[this]=e}),n}function Sn(e){if(!cn[e]){var t=n.body,r=s(\"<\"+e+\">\").appendTo(t),i=r.css(\"display\");r.remove();if(i===\"none\"||i===\"\"){hn||(hn=n.createElement(\"iframe\"),hn.frameBorder=hn.width=hn.height=0),t.appendChild(hn);if(!pn||!hn.createElement)pn=(hn.contentWindow||hn.contentDocument).document,pn.write((n.compatMode===\"CSS1Compat\"?\"<!doctype html>\":\"\")+\"<html><body>\"),pn.close();r=pn.createElement(e),pn.body.appendChild(r),i=s.css(r,\"display\"),t.removeChild(hn)}cn[e]=i}return cn[e]}function Nn(e){return s.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n=e.document,r=e.navigator,i=e.location,s=function(){function H(){if(i.isReady)return;try{n.documentElement.doScroll(\"left\")}catch(e){setTimeout(H,1);return}i.ready()}var i=function(e,t){return new i.fn.init(e,t,u)},s=e.jQuery,o=e.$,u,a=/^(?:[^#<]*(<[\\\\w\\\\W]+>)[^>]*$|#([\\\\w\\\\-]*)$)/,f=/\\\\S/,l=/^\\\\s+/,c=/\\\\s+$/,h=/^<(\\\\w+)\\\\s*\\\\/?>(?:<\\\\/\\\\1>)?$/,p=/^[\\\\],:{}\\\\s]*$/,d=/\\\\\\\\(?:[\"\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/\"[^\"\\\\\\\\\\\\n\\\\r]*\"|true|false|null|-?\\\\d+(?:\\\\.\\\\d*)?(?:[eE][+\\\\-]?\\\\d+)?/g,m=/(?:^|:|,)(?:\\\\s*\\\\[)+/g,g=/(webkit)[ \\\\/]([\\\\w.]+)/,y=/(opera)(?:.*version)?[ \\\\/]([\\\\w.]+)/,b=/(msie) ([\\\\w.]+)/,w=/(mozilla)(?:.*? rv:([\\\\w.]+))?/,E=/-([a-z]|[0-9])/ig,S=/^-ms-/,x=function(e,t){return(t+\"\").toUpperCase()},T=r.userAgent,N,C,k,L=Object.prototype.toString,A=Object.prototype.hasOwnProperty,O=Array.prototype.push,M=Array.prototype.slice,_=String.prototype.trim,D=Array.prototype.indexOf,P={};return i.fn=i.prototype={constructor:i,init:function(e,r,s){var o,u,f,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(e===\"body\"&&!r&&n.body)return this.context=n,this[0]=n.body,this.selector=e,this.length=1,this;if(typeof e==\"string\"){e.charAt(0)===\"<\"&&e.charAt(e.length-1)===\">\"&&e.length>=3?o=[null,e,null]:o=a.exec(e);if(o&&(o[1]||!r)){if(o[1])return r=r instanceof i?r[0]:r,l=r?r.ownerDocument||r:n,f=h.exec(e),f?i.isPlainObject(r)?(e=[n.createElement(f[1])],i.fn.attr.call(e,r,!0)):e=[l.createElement(f[1])]:(f=i.buildFragment([o[1]],[l]),e=(f.cacheable?i.clone(f.fragment):f.fragment).childNodes),i.merge(this,e);u=n.getElementById(o[2]);if(u&&u.parentNode){if(u.id!==o[2])return s.find(e);this.length=1,this[0]=u}return this.context=n,this.selector=e,this}return!r||r.jquery?(r||s).find(e):this.constructor(r).find(e)}return i.isFunction(e)?s.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),i.makeArray(e,this))},selector:\"\",jquery:\"1.7.1\",length:0,size:function(){return this.length},toArray:function(){return M.call(this,0)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return i.isArray(e)?O.apply(r,e):i.merge(r,e),r.prevObject=this,r.context=this.context,t===\"find\"?r.selector=this.selector+(this.selector?\" \":\"\")+n:t&&(r.selector=this.selector+\".\"+t+\"(\"+n+\")\"),r},each:function(e,t){return i.each(this,e,t)},ready:function(e){return i.bindReady(),C.add(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(M.apply(this,arguments),\"slice\",M.call(arguments).join(\",\"))},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:O,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var e,n,r,s,o,u,a=arguments[0]||{},f=1,l=arguments.length,c=!1;typeof a==\"boolean\"&&(c=a,a=arguments[1]||{},f=2),typeof a!=\"object\"&&!i.isFunction(a)&&(a={}),l===f&&(a=this,--f);for(;f<l;f++)if((e=arguments[f])!=null)for(n in e){r=a[n],s=e[n];if(a===s)continue;c&&s&&(i.isPlainObject(s)||(o=i.isArray(s)))?(o?(o=!1,u=r&&i.isArray(r)?r:[]):u=r&&i.isPlainObject(r)?r:{},a[n]=i.extend(c,u,s)):s!==t&&(a[n]=s)}return a},i.extend({noConflict:function(t){return e.$===i&&(e.$=o),t&&e.jQuery===i&&(e.jQuery=s),i},isReady:!1,readyWait:1,holdReady:function(e){e?i.readyWait++:i.ready(!0)},ready:function(e){if(e===!0&&!--i.readyWait||e!==!0&&!i.isReady){if(!n.body)return setTimeout(i.ready,1);i.isReady=!0;if(e!==!0&&--i.readyWait>0)return;C.fireWith(n,[i]),i.fn.trigger&&i(n).trigger(\"ready\").off(\"ready\")}},bindReady:function(){if(C)return;C=i.Callbacks(\"once memory\");if(n.readyState===\"complete\")return setTimeout(i.ready,1);if(n.addEventListener)n.addEventListener(\"DOMContentLoaded\",k,!1),e.addEventListener(\"load\",i.ready,!1);else if(n.attachEvent){n.attachEvent(\"onreadystatechange\",k),e.attachEvent(\"onload\",i.ready);var t=!1;try{t=e.frameElement==null}catch(r){}n.documentElement.doScroll&&t&&H()}},isFunction:function(e){return i.type(e)===\"function\"},isArray:Array.isArray||function(e){return i.type(e)===\"array\"},isWindow:function(e){return e&&typeof e==\"object\"&&\"setInterval\"in e},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):P[L.call(e)]||\"object\"},isPlainObject:function(e){if(!e||i.type(e)!==\"object\"||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!A.call(e,\"constructor\")&&!A.call(e.constructor.prototype,\"isPrototypeOf\"))return!1}catch(n){return!1}var r;for(r in e);return r===t||A.call(e,r)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(t){if(typeof t!=\"string\"||!t)return null;t=i.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(p.test(t.replace(d,\"@\").replace(v,\"]\").replace(m,\"\")))return(new Function(\"return \"+t))();i.error(\"Invalid JSON: \"+t)},parseXML:function(n){var r,s;try{e.DOMParser?(s=new DOMParser,r=s.parseFromString(n,\"text/xml\")):(r=new ActiveXObject(\"Microsoft.XMLDOM\"),r.async=\"false\",r.loadXML(n))}catch(o){r=t}return(!r||!r.documentElement||r.getElementsByTagName(\"parsererror\").length)&&i.error(\"Invalid XML: \"+n),r},noop:function(){},globalEval:function(t){t&&f.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(S,\"ms-\").replace(E,x)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var s,o=0,u=e.length,a=u===t||i.isFunction(e);if(r){if(a){for(s in e)if(n.apply(e[s],r)===!1)break}else for(;o<u;)if(n.apply(e[o++],r)===!1)break}else if(a){for(s in e)if(n.call(e[s],s,e[s])===!1)break}else for(;o<u;)if(n.call(e[o],o,e[o++])===!1)break;return e},trim:_?function(e){return e==null?\"\":_.call(e)}:function(e){return e==null?\"\":e.toString().replace(l,\"\").replace(c,\"\")},makeArray:function(e,t){var n=t||[];if(e!=null){var r=i.type(e);e.length==null||r===\"string\"||r===\"function\"||r===\"regexp\"||i.isWindow(e)?O.call(n,e):i.merge(n,e)}return n},inArray:function(e,t,n){var r;if(t){if(D)return D.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=e.length,i=0;if(typeof n.length==\"number\")for(var s=n.length;i<s;i++)e[r++]=n[i];else while(n[i]!==t)e[r++]=n[i++];return e.length=r,e},grep:function(e,t,n){var r=[],i;n=!!n;for(var s=0,o=e.length;s<o;s++)i=!!t(e[s],s),n!==i&&r.push(e[s]);return r},map:function(e,n,r){var s,o,u=[],a=0,f=e.length,l=e instanceof i||f!==t&&typeof f==\"number\"&&(f>0&&e[0]&&e[f-1]||f===0||i.isArray(e));if(l)for(;a<f;a++)s=n(e[a],a,r),s!=null&&(u[u.length]=s);else for(o in e)s=n(e[o],o,r),s!=null&&(u[u.length]=s);return u.concat.apply([],u)},guid:1,proxy:function(e,n){if(typeof n==\"string\"){var r=e[n];n=e,e=r}if(!i.isFunction(e))return t;var s=M.call(arguments,2),o=function(){return e.apply(n,s.concat(M.call(arguments)))};return o.guid=e.guid=e.guid||o.guid||i.guid++,o},access:function(e,n,r,s,o,u){var a=e.length;if(typeof n==\"object\"){for(var f in n)i.access(e,f,n[f],s,o,r);return e}if(r!==t){s=!u&&s&&i.isFunction(r);for(var l=0;l<a;l++)o(e[l],n,s?r.call(e[l],l,o(e[l],n)):r,u);return e}return a?o(e[0],n):t},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=g.exec(e)||y.exec(e)||b.exec(e)||e.indexOf(\"compatible\")<0&&w.exec(e)||[];return{browser:t[1]||\"\",version:t[2]||\"0\"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}i.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,s){return s&&s instanceof i&&!(s instanceof e)&&(s=e(s)),i.fn.init.call(this,r,s,t)},e.fn.init.prototype=e.fn;var t=e(n);return e},browser:{}}),i.each(\"Boolean Number String Function Array Date RegExp Object\".split(\" \"),function(e,t){P[\"[object \"+t+\"]\"]=t.toLowerCase()}),N=i.uaMatch(T),N.browser&&(i.browser[N.browser]=!0,i.browser.version=N.version),i.browser.webkit&&(i.browser.safari=!0),f.test(\" \")&&(l=/^[\\\\s\\\\xA0]+/,c=/[\\\\s\\\\xA0]+$/),u=i(n),n.addEventListener?k=function(){n.removeEventListener(\"DOMContentLoaded\",k,!1),i.ready()}:n.attachEvent&&(k=function(){n.readyState===\"complete\"&&(n.detachEvent(\"onreadystatechange\",k),i.ready())}),i}(),o={};s.Callbacks=function(e){e=e?o[e]||u(e):{};var n=[],r=[],i,a,f,l,c,h=function(t){var r,i,o,u,a;for(r=0,i=t.length;r<i;r++)o=t[r],u=s.type(o),u===\"array\"?h(o):u===\"function\"&&(!e.unique||!d.has(o))&&n.push(o)},p=function(t,s){s=s||[],i=!e.memory||[t,s],a=!0,c=f||0,f=0,l=n.length;for(;n&&c<l;c++)if(n[c].apply(t,s)===!1&&e.stopOnFalse){i=!0;break}a=!1,n&&(e.once?i===!0?d.disable():n=[]:r&&r.length&&(i=r.shift(),d.fireWith(i[0],i[1])))},d={add:function(){if(n){var e=n.length;h(arguments),a?l=n.length:i&&i!==!0&&(f=e,p(i[0],i[1]))}return this},remove:function(){if(n){var t=arguments,r=0,i=t.length;for(;r<i;r++)for(var s=0;s<n.length;s++)if(t[r]===n[s]){a&&s<=l&&(l--,s<=c&&c--),n.splice(s--,1);if(e.unique)break}}return this},has:function(e){if(n){var t=0,r=n.length;for(;t<r;t++)if(e===n[t])return!0}return!1},empty:function(){return n=[],this},disable:function(){return n=r=i=t,this},disabled:function(){return!n},lock:function(){return r=t,(!i||i===!0)&&d.disable(),this},locked:function(){return!r},fireWith:function(t,n){return r&&(a?e.once||r.push([t,n]):(!e.once||!i)&&p(t,n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d};var a=[].slice;s.extend({Deferred:function(e){var t=s.Callbacks(\"once memory\"),n=s.Callbacks(\"once memory\"),r=s.Callbacks(\"memory\"),i=\"pending\",o={resolve:t,reject:n,notify:r},u={done:t.add,fail:n.add,progress:r.add,state:function(){return i},isResolved:t.fired,isRejected:n.fired,then:function(e,t,n){return a.done(e).fail(t).progress(n),this},always:function(){return a.done.apply(a,arguments).fail.apply(a,arguments),this},pipe:function(e,t,n){return s.Deferred(function(r){s.each({done:[e,\"resolve\"],fail:[t,\"reject\"],progress:[n,\"notify\"]},function(e,t){var n=t[0],i=t[1],o;s.isFunction(n)?a[e](function(){o=n.apply(this,arguments),o&&s.isFunction(o.promise)?o.promise().then(r.resolve,r.reject,r.notify):r[i+\"With\"](this===a?r:this,[o])}):a[e](r[i])})}).promise()},promise:function(e){if(e==null)e=u;else for(var t in u)e[t]=u[t];return e}},a=u.promise({}),f;for(f in o)a[f]=o[f].fire,a[f+\"With\"]=o[f].fireWith;return a.done(function(){i=\"resolved\"},n.disable,r.lock).fail(function(){i=\"rejected\"},t.disable,r.lock),e&&e.call(a,a),a},when:function(e){function c(e){return function(n){t[e]=arguments.length>1?a.call(arguments,0):n,--o||f.resolveWith(f,t)}}function h(e){return function(t){i[e]=arguments.length>1?a.call(arguments,0):t,f.notifyWith(l,i)}}var t=a.call(arguments,0),n=0,r=t.length,i=new Array(r),o=r,u=r,f=r<=1&&e&&s.isFunction(e.promise)?e:s.Deferred(),l=f.promise();if(r>1){for(;n<r;n++)t[n]&&t[n].promise&&s.isFunction(t[n].promise)?t[n].promise().then(c(n),f.reject,h(n)):--o;o||f.resolveWith(f,t)}else f!==e&&f.resolveWith(f,r?[e]:[]);return l}}),s.support=function(){var t,r,i,o,u,a,f,l,c,h,p,d,v,m=n.createElement(\"div\"),g=n.documentElement;m.setAttribute(\"className\",\"t\"),m.innerHTML=\"   <link/><table></table><a href=\\'/a\\' style=\\'top:1px;float:left;opacity:.55;\\'>a</a><input type=\\'checkbox\\'/>\",r=m.getElementsByTagName(\"*\"),i=m.getElementsByTagName(\"a\")[0];if(!r||!r.length||!i)return{};o=n.createElement(\"select\"),u=o.appendChild(n.createElement(\"option\")),a=m.getElementsByTagName(\"input\")[0],t={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName(\"tbody\").length,htmlSerialize:!!m.getElementsByTagName(\"link\").length,style:/top/.test(i.getAttribute(\"style\")),hrefNormalized:i.getAttribute(\"href\")===\"/a\",opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:a.value===\"on\",optSelected:u.selected,getSetAttribute:m.className!==\"t\",enctype:!!n.createElement(\"form\").enctype,html5Clone:n.createElement(\"nav\").cloneNode(!0).outerHTML!==\"<:nav></:nav>\",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!u.disabled;try{delete m.test}catch(y){t.deleteExpando=!1}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent(\"onclick\",function(){t.noCloneEvent=!1}),m.cloneNode(!0).fireEvent(\"onclick\")),a=n.createElement(\"input\"),a.value=\"t\",a.setAttribute(\"type\",\"radio\"),t.radioValue=a.value===\"t\",a.setAttribute(\"checked\",\"checked\"),m.appendChild(a),l=n.createDocumentFragment(),l.appendChild(m.lastChild),t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,l.removeChild(a),l.appendChild(m),m.innerHTML=\"\",e.getComputedStyle&&(f=n.createElement(\"div\"),f.style.width=\"0\",f.style.marginRight=\"0\",m.style.width=\"2px\",m.appendChild(f),t.reliableMarginRight=(parseInt((e.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0);if(m.attachEvent)for(d in{submit:1,change:1,focusin:1})p=\"on\"+d,v=p in m,v||(m.setAttribute(p,\"return;\"),v=typeof m[p]==\"function\"),t[d+\"Bubbles\"]=v;return l.removeChild(m),l=o=u=f=m=a=null,s(function(){var e,r,i,o,u,a,f,l,h,p,d,g=n.getElementsByTagName(\"body\")[0];if(!g)return;f=1,l=\"position:absolute;top:0;left:0;width:1px;height:1px;margin:0;\",h=\"visibility:hidden;border:0;\",p=\"style=\\'\"+l+\"border:5px solid #000;padding:0;\\'\",d=\"<div \"+p+\"><div></div></div>\"+\"<table \"+p+\" cellpadding=\\'0\\' cellspacing=\\'0\\'>\"+\"<tr><td></td></tr></table>\",e=n.createElement(\"div\"),e.style.cssText=h+\"width:0;height:0;position:static;top:0;margin-top:\"+f+\"px\",g.insertBefore(e,g.firstChild),m=n.createElement(\"div\"),e.appendChild(m),m.innerHTML=\"<table><tr><td style=\\'padding:0;border:0;display:none\\'></td><td>t</td></tr></table>\",c=m.getElementsByTagName(\"td\"),v=c[0].offsetHeight===0,c[0].style.display=\"\",c[1].style.display=\"none\",t.reliableHiddenOffsets=v&&c[0].offsetHeight===0,m.innerHTML=\"\",m.style.width=m.style.paddingLeft=\"1px\",s.boxModel=t.boxModel=m.offsetWidth===2,typeof m.style.zoom!=\"undefined\"&&(m.style.display=\"inline\",m.style.zoom=1,t.inlineBlockNeedsLayout=m.offsetWidth===2,m.style.display=\"\",m.innerHTML=\"<div style=\\'width:4px;\\'></div>\",t.shrinkWrapBlocks=m.offsetWidth!==2),m.style.cssText=l+h,m.innerHTML=d,r=m.firstChild,i=r.firstChild,u=r.nextSibling.firstChild.firstChild,a={doesNotAddBorder:i.offsetTop!==5,doesAddBorderForTableAndCells:u.offsetTop===5},i.style.position=\"fixed\",i.style.top=\"20px\",a.fixedPosition=i.offsetTop===20||i.offsetTop===15,i.style.position=i.style.top=\"\",r.style.overflow=\"hidden\",r.style.position=\"relative\",a.subtractsBorderForOverflowNotVisible=i.offsetTop===-5,a.doesNotIncludeMarginInBodyOffset=g.offsetTop!==f,g.removeChild(e),m=e=null,s.extend(t,a)}),t}();var f=/^(?:\\\\{.*\\\\}|\\\\[.*\\\\])$/,l=/([A-Z])/g;s.extend({cache:{},uuid:0,expando:\"jQuery\"+(s.fn.jquery+Math.random()).replace(/\\\\D/g,\"\"),noData:{embed:!0,object:\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\",applet:!0},hasData:function(e){return e=e.nodeType?s.cache[e[s.expando]]:e[s.expando],!!e&&!h(e)},data:function(e,n,r,i){if(!s.acceptData(e))return;var o,u,a,f=s.expando,l=typeof n==\"string\",c=e.nodeType,h=c?s.cache:e,p=c?e[f]:e[f]&&f,d=n===\"events\";if((!p||!h[p]||!d&&!i&&!h[p].data)&&l&&r===t)return;p||(c?e[f]=p=++s.uuid:p=f),h[p]||(h[p]={},c||(h[p].toJSON=s.noop));if(typeof n==\"object\"||typeof n==\"function\")i?h[p]=s.extend(h[p],n):h[p].data=s.extend(h[p].data,n);return o=u=h[p],i||(u.data||(u.data={}),u=u.data),r!==t&&(u[s.camelCase(n)]=r),d&&!u[n]?o.events:(l?(a=u[n],a==null&&(a=u[s.camelCase(n)])):a=u,a)},removeData:function(e,t,n){if(!s.acceptData(e))return;var r,i,o,u=s.expando,a=e.nodeType,f=a?s.cache:e,l=a?e[u]:u;if(!f[l])return;if(t){r=n?f[l]:f[l].data;if(r){s.isArray(t)||(t in r?t=[t]:(t=s.camelCase(t),t in r?t=[t]:t=t.split(\" \")));for(i=0,o=t.length;i<o;i++)delete r[t[i]];if(!(n?h:s.isEmptyObject)(r))return}}if(!n){delete f[l].data;if(!h(f[l]))return}s.support.deleteExpando||!f.setInterval?delete f[l]:f[l]=null,a&&(s.support.deleteExpando?delete e[u]:e.removeAttribute?e.removeAttribute(u):e[u]=null)},_data:function(e,t,n){return s.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=s.noData[e.nodeName.toLowerCase()];if(t)return t!==!0&&e.getAttribute(\"classid\")===t}return!0}}),s.fn.extend({data:function(e,n){var r,i,o,u=null;if(typeof e==\"undefined\"){if(this.length){u=s.data(this[0]);if(this[0].nodeType===1&&!s._data(this[0],\"parsedAttrs\")){i=this[0].attributes;for(var a=0,f=i.length;a<f;a++)o=i[a].name,o.indexOf(\"data-\")===0&&(o=s.camelCase(o.substring(5)),c(this[0],o,u[o]));s._data(this[0],\"parsedAttrs\",!0)}}return u}return typeof e==\"object\"?this.each(function(){s.data(this,e)}):(r=e.split(\".\"),r[1]=r[1]?\".\"+r[1]:\"\",n===t?(u=this.triggerHandler(\"getData\"+r[1]+\"!\",[r[0]]),u===t&&this.length&&(u=s.data(this[0],e),u=c(this[0],e,u)),u===t&&r[1]?this.data(r[0]):u):this.each(function(){var t=s(this),i=[r[0],n];t.triggerHandler(\"setData\"+r[1]+\"!\",i),s.data(this,e,n),t.triggerHandler(\"changeData\"+r[1]+\"!\",i)}))},removeData:function(e){return this.each(function(){s.removeData(this,e)})}}),s.extend({_mark:function(e,t){e&&(t=(t||\"fx\")+\"mark\",s._data(e,t,(s._data(e,t)||0)+1))},_unmark:function(e,t,n){e!==!0&&(n=t,t=e,e=!1);if(t){n=n||\"fx\";var r=n+\"mark\",i=e?0:(s._data(t,r)||1)-1;i?s._data(t,r,i):(s.removeData(t,r,!0),p(t,n,\"mark\"))}},queue:function(e,t,n){var r;if(e)return t=(t||\"fx\")+\"queue\",r=s._data(e,t),n&&(!r||s.isArray(n)?r=s._data(e,t,s.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||\"fx\";var n=s.queue(e,t),r=n.shift(),i={};r===\"inprogress\"&&(r=n.shift()),r&&(t===\"fx\"&&n.unshift(\"inprogress\"),s._data(e,t+\".run\",i),r.call(e,function(){s.dequeue(e,t)},i)),n.length||(s.removeData(e,t+\"queue \"+t+\".run\",!0),p(e,t,\"queue\"))}}),s.fn.extend({queue:function(e,n){return typeof e!=\"string\"&&(n=e,e=\"fx\"),n===t?s.queue(this[0],e):this.each(function(){var t=s.queue(this,e,n);e===\"fx\"&&t[0]!==\"inprogress\"&&s.dequeue(this,e)})},dequeue:function(e){return this.each(function(){s.dequeue(this,e)})},delay:function(e,t){return e=s.fx?s.fx.speeds[e]||e:e,t=t||\"fx\",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||\"fx\",[])},promise:function(e,n){function h(){--u||r.resolveWith(i,[i])}typeof e!=\"string\"&&(n=e,e=t),e=e||\"fx\";var r=s.Deferred(),i=this,o=i.length,u=1,a=e+\"defer\",f=e+\"queue\",l=e+\"mark\",c;while(o--)if(c=s.data(i[o],a,t,!0)||(s.data(i[o],f,t,!0)||s.data(i[o],l,t,!0))&&s.data(i[o],a,s.Callbacks(\"once memory\"),!0))u++,c.add(h);return h(),r.promise()}});var d=/[\\\\n\\\\t\\\\r]/g,v=/\\\\s+/,m=/\\\\r/g,g=/^(?:button|input)$/i,y=/^(?:button|input|object|select|textarea)$/i,b=/^a(?:rea)?$/i,w=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,E=s.support.getSetAttribute,S,x,T;s.fn.extend({attr:function(e,t){return s.access(this,e,t,!0,s.attr)},removeAttr:function(e){return this.each(function(){s.removeAttr(this,e)})},prop:function(e,t){return s.access(this,e,t,!0,s.prop)},removeProp:function(e){return e=s.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,u,a;if(s.isFunction(e))return this.each(function(t){s(this).addClass(e.call(this,t,this.className))});if(e&&typeof e==\"string\"){t=e.split(v);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{o=\" \"+i.className+\" \";for(u=0,a=t.length;u<a;u++)~o.indexOf(\" \"+t[u]+\" \")||(o+=t[u]+\" \");i.className=s.trim(o)}}}return this},removeClass:function(e){var n,r,i,o,u,a,f;if(s.isFunction(e))return this.each(function(t){s(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e==\"string\"||e===t){n=(e||\"\").split(v);for(r=0,i=this.length;r<i;r++){o=this[r];if(o.nodeType===1&&o.className)if(e){u=(\" \"+o.className+\" \").replace(d,\" \");for(a=0,f=n.length;a<f;a++)u=u.replace(\" \"+n[a]+\" \",\" \");o.className=s.trim(u)}else o.className=\"\"}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t==\"boolean\";return s.isFunction(e)?this.each(function(n){s(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n===\"string\"){var i,o=0,u=s(this),a=t,f=e.split(v);while(i=f[o++])a=r?a:!u.hasClass(i),u[a?\"addClass\":\"removeClass\"](i)}else if(n===\"undefined\"||n===\"boolean\")this.className&&s._data(this,\"__className__\",this.className),this.className=this.className||e===!1?\"\":s._data(this,\"__className__\")||\"\"})},hasClass:function(e){var t=\" \"+e+\" \",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(\" \"+this[n].className+\" \").replace(d,\" \").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,i,o=this[0];if(!arguments.length){if(o)return n=s.valHooks[o.nodeName.toLowerCase()]||s.valHooks[o.type],n&&\"get\"in n&&(r=n.get(o,\"value\"))!==t?r:(r=o.value,typeof r==\"string\"?r.replace(m,\"\"):r==null?\"\":r);return}return i=s.isFunction(e),this.each(function(r){var o=s(this),u;if(this.nodeType!==1)return;i?u=e.call(this,r,o.val()):u=e,u==null?u=\"\":typeof u==\"number\"?u+=\"\":s.isArray(u)&&(u=s.map(u,function(e){return e==null?\"\":e+\"\"})),n=s.valHooks[this.nodeName.toLowerCase()]||s.valHooks[this.type];if(!n||!(\"set\"in n)||n.set(this,u,\"value\")===t)this.value=u})}}),s.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,o=e.selectedIndex,u=[],a=e.options,f=e.type===\"select-one\";if(o<0)return null;n=f?o:0,r=f?o+1:a.length;for(;n<r;n++){i=a[n];if(i.selected&&(s.support.optDisabled?!i.disabled:i.getAttribute(\"disabled\")===null)&&(!i.parentNode.disabled||!s.nodeName(i.parentNode,\"optgroup\"))){t=s(i).val();if(f)return t;u.push(t)}}return f&&!u.length&&a.length?s(a[o]).val():u},set:function(e,t){var n=s.makeArray(t);return s(e).find(\"option\").each(function(){this.selected=s.inArray(s(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var o,u,a,f=e.nodeType;if(!e||f===3||f===8||f===2)return;if(i&&n in s.attrFn)return s(e)[n](r);if(typeof e.getAttribute==\"undefined\")return s.prop(e,n,r);a=f!==1||!s.isXMLDoc(e),a&&(n=n.toLowerCase(),u=s.attrHooks[n]||(w.test(n)?x:S));if(r!==t){if(r===null){s.removeAttr(e,n);return}return u&&\"set\"in u&&a&&(o=u.set(e,r,n))!==t?o:(e.setAttribute(n,\"\"+r),r)}return u&&\"get\"in u&&a&&(o=u.get(e,n))!==null?o:(o=e.getAttribute(n),o===null?t:o)},removeAttr:function(e,t){var n,r,i,o,u=0;if(t&&e.nodeType===1){r=t.toLowerCase().split(v),o=r.length;for(;u<o;u++)i=r[u],i&&(n=s.propFix[i]||i,s.attr(e,i,\"\"),e.removeAttribute(E?i:n),w.test(i)&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(g.test(e.nodeName)&&e.parentNode)s.error(\"type property can\\'t be changed\");else if(!s.support.radioValue&&t===\"radio\"&&s.nodeName(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}},value:{get:function(e,t){return S&&s.nodeName(e,\"button\")?S.get(e,t):t in e?e.value:null},set:function(e,t,n){if(S&&s.nodeName(e,\"button\"))return S.set(e,t,n);e.value=t}}},propFix:{tabindex:\"tabIndex\",readonly:\"readOnly\",\"for\":\"htmlFor\",\"class\":\"className\",maxlength:\"maxLength\",cellspacing:\"cellSpacing\",cellpadding:\"cellPadding\",rowspan:\"rowSpan\",colspan:\"colSpan\",usemap:\"useMap\",frameborder:\"frameBorder\",contenteditable:\"contentEditable\"},prop:function(e,n,r){var i,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;return u=a!==1||!s.isXMLDoc(e),u&&(n=s.propFix[n]||n,o=s.propHooks[n]),r!==t?o&&\"set\"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&\"get\"in o&&(i=o.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode(\"tabindex\");return n&&n.specified?parseInt(n.value,10):y.test(e.nodeName)||b.test(e.nodeName)&&e.href?0:t}}}}),s.attrHooks.tabindex=s.propHooks.tabIndex,x={get:function(e,n){var r,i=s.prop(e,n);return i===!0||typeof i!=\"boolean\"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?s.removeAttr(e,n):(r=s.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},E||(T={name:!0,id:!0},S=s.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(T[n]?r.nodeValue!==\"\":r.specified)?r.nodeValue:t},set:function(e,t,r){var i=e.getAttributeNode(r);return i||(i=n.createAttribute(r),e.setAttributeNode(i)),i.nodeValue=t+\"\"}},s.attrHooks.tabindex.set=S.set,s.each([\"width\",\"height\"],function(e,t){s.attrHooks[t]=s.extend(s.attrHooks[t],{set:function(e,n){if(n===\"\")return e.setAttribute(t,\"auto\"),n}})}),s.attrHooks.contenteditable={get:S.get,set:function(e,t,n){t===\"\"&&(t=\"false\"),S.set(e,t,n)}}),s.support.hrefNormalized||s.each([\"href\",\"src\",\"width\",\"height\"],function(e,n){s.attrHooks[n]=s.extend(s.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),s.support.style||(s.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=\"\"+t}}),s.support.optSelected||(s.propHooks.selected=s.extend(s.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),s.support.enctype||(s.propFix.enctype=\"encoding\"),s.support.checkOn||s.each([\"radio\",\"checkbox\"],function(){s.valHooks[this]={get:function(e){return e.getAttribute(\"value\")===null?\"on\":e.value}}}),s.each([\"radio\",\"checkbox\"],function(){s.valHooks[this]=s.extend(s.valHooks[this],{set:function(e,t){if(s.isArray(t))return e.checked=s.inArray(s(e).val(),t)>=0}})});var N=/^(?:textarea|input|select)$/i,C=/^([^\\\\.]*)?(?:\\\\.(.+))?$/,k=/\\\\bhover(\\\\.\\\\S+)?\\\\b/,L=/^key/,A=/^(?:mouse|contextmenu)|click/,O=/^(?:focusinfocus|focusoutblur)$/,M=/^(\\\\w*)(?:#([\\\\w\\\\-]+))?(?:\\\\.([\\\\w\\\\-]+))?$/,_=function(e){var t=M.exec(e);return t&&(t[1]=(t[1]||\"\").toLowerCase(),t[3]=t[3]&&new RegExp(\"(?:^|\\\\\\\\s)\"+t[3]+\"(?:\\\\\\\\s|$)\")),t},D=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n[\"class\"]||{}).value))},P=function(e){return s.event.special.hover?e:e.replace(k,\"mouseenter$1 mouseleave$1\")};s.event={add:function(e,n,r,i,o){var u,a,f,l,c,h,p,d,v,m,g,y;if(e.nodeType===3||e.nodeType===8||!n||!r||!(u=s._data(e)))return;r.handler&&(v=r,r=v.handler),r.guid||(r.guid=s.guid++),f=u.events,f||(u.events=f={}),a=u.handle,a||(u.handle=a=function(e){return typeof s==\"undefined\"||!!e&&s.event.triggered===e.type?t:s.event.dispatch.apply(a.elem,arguments)},a.elem=e),n=s.trim(P(n)).split(\" \");for(l=0;l<n.length;l++){c=C.exec(n[l])||[],h=c[1],p=(c[2]||\"\").split(\".\").sort(),y=s.event.special[h]||{},h=(o?y.delegateType:y.bindType)||h,y=s.event.special[h]||{},d=s.extend({type:h,origType:c[1],data:i,handler:r,guid:r.guid,selector:o,quick:_(o),namespace:p.join(\".\")},v),g=f[h];if(!g){g=f[h]=[],g.delegateCount=0;if(!y.setup||y.setup.call(e,i,p,a)===!1)e.addEventListener?e.addEventListener(h,a,!1):e.attachEvent&&e.attachEvent(\"on\"+h,a)}y.add&&(y.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?g.splice(g.delegateCount++,0,d):g.push(d),s.event.global[h]=!0}e=null},global:{},remove:function(e,t,n,r,i){var o=s.hasData(e)&&s._data(e),u,a,f,l,c,h,p,d,v,m,g,y;if(!o||!(d=o.events))return;t=s.trim(P(t||\"\")).split(\" \");for(u=0;u<t.length;u++){a=C.exec(t[u])||[],f=l=a[1],c=a[2];if(!f){for(f in d)s.event.remove(e,f+t[u],n,r,!0);continue}v=s.event.special[f]||{},f=(r?v.delegateType:v.bindType)||f,g=d[f]||[],h=g.length,c=c?new RegExp(\"(^|\\\\\\\\.)\"+c.split(\".\").sort().join(\"\\\\\\\\.(?:.*\\\\\\\\.)?\")+\"(\\\\\\\\.|$)\"):null;for(p=0;p<g.length;p++)y=g[p],(i||l===y.origType)&&(!n||n.guid===y.guid)&&(!c||c.test(y.namespace))&&(!r||r===y.selector||r===\"**\"&&y.selector)&&(g.splice(p--,1),y.selector&&g.delegateCount--,v.remove&&v.remove.call(e,y));g.length===0&&h!==g.length&&((!v.teardown||v.teardown.call(e,c)===!1)&&s.removeEvent(e,f,o.handle),delete d[f])}s.isEmptyObject(d)&&(m=o.handle,m&&(m.elem=null),s.removeData(e,[\"events\",\"handle\"],!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,i,o){if(!i||i.nodeType!==3&&i.nodeType!==8){var u=n.type||n,a=[],f,l,c,h,p,d,v,m,g,y;if(O.test(u+s.event.triggered))return;u.indexOf(\"!\")>=0&&(u=u.slice(0,-1),l=!0),u.indexOf(\".\")>=0&&(a=u.split(\".\"),u=a.shift(),a.sort());if((!i||s.event.customEvent[u])&&!s.event.global[u])return;n=typeof n==\"object\"?n[s.expando]?n:new s.Event(u,n):new s.Event(u),n.type=u,n.isTrigger=!0,n.exclusive=l,n.namespace=a.join(\".\"),n.namespace_re=n.namespace?new RegExp(\"(^|\\\\\\\\.)\"+a.join(\"\\\\\\\\.(?:.*\\\\\\\\.)?\")+\"(\\\\\\\\.|$)\"):null,d=u.indexOf(\":\")<0?\"on\"+u:\"\";if(!i){f=s.cache;for(c in f)f[c].events&&f[c].events[u]&&s.event.trigger(n,r,f[c].handle.elem,!0);return}n.result=t,n.target||(n.target=i),r=r!=null?s.makeArray(r):[],r.unshift(n),v=s.event.special[u]||{};if(v.trigger&&v.trigger.apply(i,r)===!1)return;g=[[i,v.bindType||u]];if(!o&&!v.noBubble&&!s.isWindow(i)){y=v.delegateType||u,h=O.test(y+u)?i:i.parentNode,p=null;for(;h;h=h.parentNode)g.push([h,y]),p=h;p&&p===i.ownerDocument&&g.push([p.defaultView||p.parentWindow||e,y])}for(c=0;c<g.length&&!n.isPropagationStopped();c++)h=g[c][0],n.type=g[c][1],m=(s._data(h,\"events\")||{})[n.type]&&s._data(h,\"handle\"),m&&m.apply(h,r),m=d&&h[d],m&&s.acceptData(h)&&m.apply(h,r)===!1&&n.preventDefault();return n.type=u,!o&&!n.isDefaultPrevented()&&(!v._default||v._default.apply(i.ownerDocument,r)===!1)&&(u!==\"click\"||!s.nodeName(i,\"a\"))&&s.acceptData(i)&&d&&i[u]&&(u!==\"focus\"&&u!==\"blur\"||n.target.offsetWidth!==0)&&!s.isWindow(i)&&(p=i[d],p&&(i[d]=null),s.event.triggered=u,i[u](),s.event.triggered=t,p&&(i[d]=p)),n.result}return},dispatch:function(n){n=s.event.fix(n||e.event);var r=(s._data(this,\"events\")||{})[n.type]||[],i=r.delegateCount,o=[].slice.call(arguments,0),u=!n.exclusive&&!n.namespace,a=[],f,l,c,h,p,d,v,m,g,y,b;o[0]=n,n.delegateTarget=this;if(i&&!n.target.disabled&&(!n.button||n.type!==\"click\")){h=s(this),h.context=this.ownerDocument||this;for(c=n.target;c!=this;c=c.parentNode||this){d={},m=[],h[0]=c;for(f=0;f<i;f++)g=r[f],y=g.selector,d[y]===t&&(d[y]=g.quick?D(c,g.quick):h.is(y)),d[y]&&m.push(g);m.length&&a.push({elem:c,matches:m})}}r.length>i&&a.push({elem:this,matches:r.slice(i)});for(f=0;f<a.length&&!n.isPropagationStopped();f++){v=a[f],n.currentTarget=v.elem;for(l=0;l<v.matches.length&&!n.isImmediatePropagationStopped();l++){g=v.matches[l];if(u||!n.namespace&&!g.namespace||n.namespace_re&&n.namespace_re.test(g.namespace))n.data=g.data,n.handleObj=g,p=((s.event.special[g.origType]||{}).handle||g.handler).apply(v.elem,o),p!==t&&(n.result=p,p===!1&&(n.preventDefault(),n.stopPropagation()))}}return n.result},props:\"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:\"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(e,r){var i,s,o,u=r.button,a=r.fromElement;return e.pageX==null&&r.clientX!=null&&(i=e.target.ownerDocument||n,s=i.documentElement,o=i.body,e.pageX=r.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=r.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?r.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[s.expando])return e;var r,i,o=e,u=s.event.fixHooks[e.type]||{},a=u.props?this.props.concat(u.props):this.props;e=s.Event(o);for(r=a.length;r;)i=a[--r],e[i]=o[i];return e.target||(e.target=o.srcElement||n),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey===t&&(e.metaKey=e.ctrlKey),u.filter?u.filter(e,o):e},special:{ready:{setup:s.bindReady},load:{noBubble:!0},focus:{delegateType:\"focusin\"},blur:{delegateType:\"focusout\"},beforeunload:{setup:function(e,t,n){s.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=s.extend(new s.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?s.event.trigger(i,null,t):s.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},s.event.handle=s.event.dispatch,s.removeEvent=n.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent(\"on\"+t,n)},s.Event=function(e,t){if(!(this instanceof s.Event))return new s.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?B:H):this.type=e,t&&s.extend(this,t),this.timeStamp=e&&e.timeStamp||s.now(),this[s.expando]=!0},s.Event.prototype={preventDefault:function(){this.isDefaultPrevented=B;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=B;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=B,this.stopPropagation()},isDefaultPrevented:H,isPropagationStopped:H,isImmediatePropagationStopped:H},s.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(e,t){s.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n=this,r=e.relatedTarget,i=e.handleObj,o=i.selector,u;if(!r||r!==n&&!s.contains(n,r))e.type=i.origType,u=i.handler.apply(this,arguments),e.type=t;return u}}}),s.support.submitBubbles||(s.event.special.submit={setup:function(){if(s.nodeName(this,\"form\"))return!1;s.event.add(this,\"click._submit keypress._submit\",function(e){var n=e.target,r=s.nodeName(n,\"input\")||s.nodeName(n,\"button\")?n.form:t;r&&!r._submit_attached&&(s.event.add(r,\"submit._submit\",function(e){this.parentNode&&!e.isTrigger&&s.event.simulate(\"submit\",this.parentNode,e,!0)}),r._submit_attached=!0)})},teardown:function(){if(s.nodeName(this,\"form\"))return!1;s.event.remove(this,\"._submit\")}}),s.support.changeBubbles||(s.event.special.change={setup:function(){if(N.test(this.nodeName)){if(this.type===\"checkbox\"||this.type===\"radio\")s.event.add(this,\"propertychange._change\",function(e){e.originalEvent.propertyName===\"checked\"&&(this._just_changed=!0)}),s.event.add(this,\"click._change\",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,s.event.simulate(\"change\",this,e,!0))});return!1}s.event.add(this,\"beforeactivate._change\",function(e){var t=e.target;N.test(t.nodeName)&&!t._change_attached&&(s.event.add(t,\"change._change\",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&s.event.simulate(\"change\",this.parentNode,e,!0)}),t._change_attached=!0)})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!==\"radio\"&&t.type!==\"checkbox\")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return s.event.remove(this,\"._change\"),N.test(this.nodeName)}}),s.support.focusinBubbles||s.each({focus:\"focusin\",blur:\"focusout\"},function(e,t){var r=0,i=function(e){s.event.simulate(t,e.target,s.event.fix(e),!0)};s.event.special[t]={setup:function(){r++===0&&n.addEventListener(e,i,!0)},teardown:function(){--r===0&&n.removeEventListener(e,i,!0)}}}),s.fn.extend({on:function(e,n,r,i,o){var u,a;if(typeof e==\"object\"){typeof n!=\"string\"&&(r=n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n==\"string\"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=H;else if(!i)return this;return o===1&&(u=i,i=function(e){return s().off(e),u.apply(this,arguments)},i.guid=u.guid||(u.guid=s.guid++)),this.each(function(){s.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on.call(this,e,t,n,r,1)},off:function(e,n,r){if(e&&e.preventDefault&&e.handleObj){var i=e.handleObj;return s(e.delegateTarget).off(i.namespace?i.type+\".\"+i.namespace:i.type,i.selector,i.handler),this}if(typeof e==\"object\"){for(var o in e)this.off(o,n,e[o]);return this}if(n===!1||typeof n==\"function\")r=n,n=t;return r===!1&&(r=H),this.each(function(){s.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return s(this.context).on(e,this.selector,t,n),this},die:function(e,t){return s(this.context).off(e,this.selector||\"**\",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length==1?this.off(e,\"**\"):this.off(t,e,n)},trigger:function(e,t){return this.each(function(){s.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return s.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||s.guid++,r=0,i=function(n){var i=(s._data(this,\"lastToggle\"+e.guid)||0)%r;return s._data(this,\"lastToggle\"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),s.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(e,t){s.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},s.attrFn&&(s.attrFn[t]=!0),L.test(t)&&(s.event.fixHooks[t]=s.event.keyHooks),A.test(t)&&(s.event.fixHooks[t]=s.event.mouseHooks)}),function(){function S(e,t,n,i,s,o){for(var u=0,a=i.length;u<a;u++){var f=i[u];if(f){var l=!1;f=f[e];while(f){if(f[r]===n){l=i[f.sizset];break}f.nodeType===1&&!o&&(f[r]=n,f.sizset=u);if(f.nodeName.toLowerCase()===t){l=f;break}f=f[e]}i[u]=l}}}function x(e,t,n,i,s,o){for(var u=0,a=i.length;u<a;u++){var f=i[u];if(f){var l=!1;f=f[e];while(f){if(f[r]===n){l=i[f.sizset];break}if(f.nodeType===1){o||(f[r]=n,f.sizset=u);if(typeof t!=\"string\"){if(f===t){l=!0;break}}else if(h.filter(t,[f]).length>0){l=f;break}}f=f[e]}i[u]=l}}}var e=/((?:\\\\((?:\\\\([^()]+\\\\)|[^()]+)+\\\\)|\\\\[(?:\\\\[[^\\\\[\\\\]]*\\\\]|[\\'\"][^\\'\"]*[\\'\"]|[^\\\\[\\\\]\\'\"]+)+\\\\]|\\\\\\\\.|[^ >+~,(\\\\[\\\\\\\\]+)+|[>+~])(\\\\s*,\\\\s*)?((?:.|\\\\r|\\\\n)*)/g,r=\"sizcache\"+(Math.random()+\"\").replace(\".\",\"\"),i=0,o=Object.prototype.toString,u=!1,a=!0,f=/\\\\\\\\/g,l=/\\\\r\\\\n/g,c=/\\\\W/;[0,0].sort(function(){return a=!1,0});var h=function(t,r,i,s){i=i||[],r=r||n;var u=r;if(r.nodeType!==1&&r.nodeType!==9)return[];if(!t||typeof t!=\"string\")return i;var a,f,l,c,p,m,g,b,w=!0,E=h.isXML(r),S=[],x=t;do{e.exec(\"\"),a=e.exec(x);if(a){x=a[3],S.push(a[1]);if(a[2]){c=a[3];break}}}while(a);if(S.length>1&&v.exec(t))if(S.length===2&&d.relative[S[0]])f=T(S[0]+S[1],r,s);else{f=d.relative[S[0]]?[r]:h(S.shift(),r);while(S.length)t=S.shift(),d.relative[t]&&(t+=S.shift()),f=T(t,f,s)}else{!s&&S.length>1&&r.nodeType===9&&!E&&d.match.ID.test(S[0])&&!d.match.ID.test(S[S.length-1])&&(p=h.find(S.shift(),r,E),r=p.expr?h.filter(p.expr,p.set)[0]:p.set[0]);if(r){p=s?{expr:S.pop(),set:y(s)}:h.find(S.pop(),S.length!==1||S[0]!==\"~\"&&S[0]!==\"+\"||!r.parentNode?r:r.parentNode,E),f=p.expr?h.filter(p.expr,p.set):p.set,S.length>0?l=y(f):w=!1;while(S.length)m=S.pop(),g=m,d.relative[m]?g=S.pop():m=\"\",g==null&&(g=r),d.relative[m](l,g,E)}else l=S=[]}l||(l=f),l||h.error(m||t);if(o.call(l)===\"[object Array]\")if(!w)i.push.apply(i,l);else if(r&&r.nodeType===1)for(b=0;l[b]!=null;b++)l[b]&&(l[b]===!0||l[b].nodeType===1&&h.contains(r,l[b]))&&i.push(f[b]);else for(b=0;l[b]!=null;b++)l[b]&&l[b].nodeType===1&&i.push(f[b]);else y(l,i);return c&&(h(c,u,i,s),h.uniqueSort(i)),i};h.uniqueSort=function(e){if(w){u=a,e.sort(w);if(u)for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1)}return e},h.matches=function(e,t){return h(e,null,null,t)},h.matchesSelector=function(e,t){return h(t,null,null,[e]).length>0},h.find=function(e,t,n){var r,i,s,o,u,a;if(!e)return[];for(i=0,s=d.order.length;i<s;i++){u=d.order[i];if(o=d.leftMatch[u].exec(e)){a=o[1],o.splice(1,1);if(a.substr(a.length-1)!==\"\\\\\\\\\"){o[1]=(o[1]||\"\").replace(f,\"\"),r=d.find[u](o,t,n);if(r!=null){e=e.replace(d.match[u],\"\");break}}}}return r||(r=typeof t.getElementsByTagName!=\"undefined\"?t.getElementsByTagName(\"*\"):[]),{set:r,expr:e}},h.filter=function(e,n,r,i){var s,o,u,a,f,l,c,p,v,m=e,g=[],y=n,b=n&&n[0]&&h.isXML(n[0]);while(e&&n.length){for(u in d.filter)if((s=d.leftMatch[u].exec(e))!=null&&s[2]){l=d.filter[u],c=s[1],o=!1,s.splice(1,1);if(c.substr(c.length-1)===\"\\\\\\\\\")continue;y===g&&(g=[]);if(d.preFilter[u]){s=d.preFilter[u](s,y,r,g,i,b);if(!s)o=a=!0;else if(s===!0)continue}if(s)for(p=0;(f=y[p])!=null;p++)f&&(a=l(f,s,p,y),v=i^a,r&&a!=null?v?o=!0:y[p]=!1:v&&(g.push(f),o=!0));if(a!==t){r||(y=g),e=e.replace(d.match[u],\"\");if(!o)return[];break}}if(e===m){if(o!=null)break;h.error(e)}m=e}return y},h.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)};var p=h.getText=function(e){var t,n,r=e.nodeType,i=\"\";if(r){if(r===1||r===9){if(typeof e.textContent==\"string\")return e.textContent;if(typeof e.innerText==\"string\")return e.innerText.replace(l,\"\");for(e=e.firstChild;e;e=e.nextSibling)i+=p(e)}else if(r===3||r===4)return e.nodeValue}else for(t=0;n=e[t];t++)n.nodeType!==8&&(i+=p(n));return i},d=h.selectors={order:[\"ID\",\"NAME\",\"TAG\"],match:{ID:/#((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)/,CLASS:/\\\\.((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)/,NAME:/\\\\[name=[\\'\"]*((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)[\\'\"]*\\\\]/,ATTR:/\\\\[\\\\s*((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)\\\\s*(?:(\\\\S?=)\\\\s*(?:([\\'\"])(.*?)\\\\3|(#?(?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)*)|)|)\\\\s*\\\\]/,TAG:/^((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\*\\\\-]|\\\\\\\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\\\\(\\\\s*(even|odd|(?:[+\\\\-]?\\\\d+|(?:[+\\\\-]?\\\\d*)?n\\\\s*(?:[+\\\\-]\\\\s*\\\\d+)?))\\\\s*\\\\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\\\\((\\\\d*)\\\\))?(?=[^\\\\-]|$)/,PSEUDO:/:((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)(?:\\\\(([\\'\"]?)((?:\\\\([^\\\\)]+\\\\)|[^\\\\(\\\\)]*)+)\\\\2\\\\))?/},leftMatch:{},attrMap:{\"class\":\"className\",\"for\":\"htmlFor\"},attrHandle:{href:function(e){return e.getAttribute(\"href\")},type:function(e){return e.getAttribute(\"type\")}},relative:{\"+\":function(e,t){var n=typeof t==\"string\",r=n&&!c.test(t),i=n&&!r;r&&(t=t.toLowerCase());for(var s=0,o=e.length,u;s<o;s++)if(u=e[s]){while((u=u.previousSibling)&&u.nodeType!==1);e[s]=i||u&&u.nodeName.toLowerCase()===t?u||!1:u===t}i&&h.filter(t,e,!0)},\">\":function(e,t){var n,r=typeof t==\"string\",i=0,s=e.length;if(r&&!c.test(t)){t=t.toLowerCase();for(;i<s;i++){n=e[i];if(n){var o=n.parentNode;e[i]=o.nodeName.toLowerCase()===t?o:!1}}}else{for(;i<s;i++)n=e[i],n&&(e[i]=r?n.parentNode:n.parentNode===t);r&&h.filter(t,e,!0)}},\"\":function(e,t,n){var r,s=i++,o=x;typeof t==\"string\"&&!c.test(t)&&(t=t.toLowerCase(),r=t,o=S),o(\"parentNode\",t,s,e,r,n)},\"~\":function(e,t,n){var r,s=i++,o=x;typeof t==\"string\"&&!c.test(t)&&(t=t.toLowerCase(),r=t,o=S),o(\"previousSibling\",t,s,e,r,n)}},find:{ID:function(e,t,n){if(typeof t.getElementById!=\"undefined\"&&!n){var r=t.getElementById(e[1]);return r&&r.parentNode?[r]:[]}},NAME:function(e,t){if(typeof t.getElementsByName!=\"undefined\"){var n=[],r=t.getElementsByName(e[1]);for(var i=0,s=r.length;i<s;i++)r[i].getAttribute(\"name\")===e[1]&&n.push(r[i]);return n.length===0?null:n}},TAG:function(e,t){if(typeof t.getElementsByTagName!=\"undefined\")return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,r,i,s){e=\" \"+e[1].replace(f,\"\")+\" \";if(s)return e;for(var o=0,u;(u=t[o])!=null;o++)u&&(i^(u.className&&(\" \"+u.className+\" \").replace(/[\\\\t\\\\n\\\\r]/g,\" \").indexOf(e)>=0)?n||r.push(u):n&&(t[o]=!1));return!1},ID:function(e){return e[1].replace(f,\"\")},TAG:function(e,t){return e[1].replace(f,\"\").toLowerCase()},CHILD:function(e){if(e[1]===\"nth\"){e[2]||h.error(e[0]),e[2]=e[2].replace(/^\\\\+|\\\\s*/g,\"\");var t=/(-?)(\\\\d*)(?:n([+\\\\-]?\\\\d*))?/.exec(e[2]===\"even\"&&\"2n\"||e[2]===\"odd\"&&\"2n+1\"||!/\\\\D/.test(e[2])&&\"0n+\"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&h.error(e[0]);return e[0]=i++,e},ATTR:function(e,t,n,r,i,s){var o=e[1]=e[1].replace(f,\"\");return!s&&d.attrMap[o]&&(e[1]=d.attrMap[o]),e[4]=(e[4]||e[5]||\"\").replace(f,\"\"),e[2]===\"~=\"&&(e[4]=\" \"+e[4]+\" \"),e},PSEUDO:function(t,n,r,i,s){if(t[1]===\"not\"){if(!((e.exec(t[3])||\"\").length>1||/^\\\\w/.test(t[3]))){var o=h.filter(t[3],n,r,!0^s);return r||i.push.apply(i,o),!1}t[3]=h(t[3],null,null,n)}else if(d.match.POS.test(t[0])||d.match.CHILD.test(t[0]))return!0;return t},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!==\"hidden\"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!h(n[3],e).length},header:function(e){return/h\\\\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute(\"type\"),n=e.type;return e.nodeName.toLowerCase()===\"input\"&&\"text\"===n&&(t===n||t===null)},radio:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"radio\"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"checkbox\"===e.type},file:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"file\"===e.type},password:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"password\"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return(t===\"input\"||t===\"button\")&&\"submit\"===e.type},image:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"image\"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return(t===\"input\"||t===\"button\")&&\"reset\"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return t===\"input\"&&\"button\"===e.type||t===\"button\"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return t===0},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var i=t[1],s=d.filters[i];if(s)return s(e,n,t,r);if(i===\"contains\")return(e.textContent||e.innerText||p([e])||\"\").indexOf(t[3])>=0;if(i===\"not\"){var o=t[3];for(var u=0,a=o.length;u<a;u++)if(o[u]===e)return!1;return!0}h.error(i)},CHILD:function(e,t){var n,i,s,o,u,a,f,l=t[1],c=e;switch(l){case\"only\":case\"first\":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(l===\"first\")return!0;c=e;case\"last\":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0;case\"nth\":n=t[2],i=t[3];if(n===1&&i===0)return!0;s=t[0],o=e.parentNode;if(o&&(o[r]!==s||!e.nodeIndex)){a=0;for(c=o.firstChild;c;c=c.nextSibling)c.nodeType===1&&(c.nodeIndex=++a);o[r]=s}return f=e.nodeIndex-i,n===0?f===0:f%n===0&&f/n>=0}},ID:function(e,t){return e.nodeType===1&&e.getAttribute(\"id\")===t},TAG:function(e,t){return t===\"*\"&&e.nodeType===1||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(\" \"+(e.className||e.getAttribute(\"class\"))+\" \").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=h.attr?h.attr(e,n):d.attrHandle[n]?d.attrHandle[n](e):e[n]!=null?e[n]:e.getAttribute(n),i=r+\"\",s=t[2],o=t[4];return r==null?s===\"!=\":!s&&h.attr?r!=null:s===\"=\"?i===o:s===\"*=\"?i.indexOf(o)>=0:s===\"~=\"?(\" \"+i+\" \").indexOf(o)>=0:o?s===\"!=\"?i!==o:s===\"^=\"?i.indexOf(o)===0:s===\"$=\"?i.substr(i.length-o.length)===o:s===\"|=\"?i===o||i.substr(0,o.length+1)===o+\"-\":!1:i&&r!==!1},POS:function(e,t,n,r){var i=t[2],s=d.setFilters[i];if(s)return s(e,n,t,r)}}},v=d.match.POS,m=function(e,t){return\"\\\\\\\\\"+(t-0+1)};for(var g in d.match)d.match[g]=new RegExp(d.match[g].source+/(?![^\\\\[]*\\\\])(?![^\\\\(]*\\\\))/.source),d.leftMatch[g]=new RegExp(/(^(?:.|\\\\r|\\\\n)*?)/.source+d.match[g].source.replace(/\\\\\\\\(\\\\d+)/g,m));var y=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(n.documentElement.childNodes,0)[0].nodeType}catch(b){y=function(e,t){var n=0,r=t||[];if(o.call(e)===\"[object Array]\")Array.prototype.push.apply(r,e);else if(typeof e.length==\"number\")for(var i=e.length;n<i;n++)r.push(e[n]);else for(;e[n];n++)r.push(e[n]);return r}}var w,E;n.documentElement.compareDocumentPosition?w=function(e,t){return e===t?(u=!0,0):!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition?-1:1:e.compareDocumentPosition(t)&4?-1:1}:(w=function(e,t){if(e===t)return u=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,a=t.parentNode,f=o;if(o===a)return E(e,t);if(!o)return-1;if(!a)return 1;while(f)i.unshift(f),f=f.parentNode;f=a;while(f)s.unshift(f),f=f.parentNode;n=i.length,r=s.length;for(var l=0;l<n&&l<r;l++)if(i[l]!==s[l])return E(i[l],s[l]);return l===n?E(e,s[l],-1):E(i[l],t,1)},E=function(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var e=n.createElement(\"div\"),r=\"script\"+(new Date).getTime(),i=n.documentElement;e.innerHTML=\"<a name=\\'\"+r+\"\\'/>\",i.insertBefore(e,i.firstChild),n.getElementById(r)&&(d.find.ID=function(e,n,r){if(typeof n.getElementById!=\"undefined\"&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||typeof i.getAttributeNode!=\"undefined\"&&i.getAttributeNode(\"id\").nodeValue===e[1]?[i]:t:[]}},d.filter.ID=function(e,t){var n=typeof e.getAttributeNode!=\"undefined\"&&e.getAttributeNode(\"id\");return e.nodeType===1&&n&&n.nodeValue===t}),i.removeChild(e),i=e=null}(),function(){var e=n.createElement(\"div\");e.appendChild(n.createComment(\"\")),e.getElementsByTagName(\"*\").length>0&&(d.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if(e[1]===\"*\"){var r=[];for(var i=0;n[i];i++)n[i].nodeType===1&&r.push(n[i]);n=r}return n}),e.innerHTML=\"<a href=\\'#\\'></a>\",e.firstChild&&typeof e.firstChild.getAttribute!=\"undefined\"&&e.firstChild.getAttribute(\"href\")!==\"#\"&&(d.attrHandle.href=function(e){return e.getAttribute(\"href\",2)}),e=null}(),n.querySelectorAll&&function(){var e=h,t=n.createElement(\"div\"),r=\"__sizzle__\";t.innerHTML=\"<p class=\\'TEST\\'></p>\";if(t.querySelectorAll&&t.querySelectorAll(\".TEST\").length===0)return;h=function(t,i,s,o){i=i||n;if(!o&&!h.isXML(i)){var u=/^(\\\\w+$)|^\\\\.([\\\\w\\\\-]+$)|^#([\\\\w\\\\-]+$)/.exec(t);if(u&&(i.nodeType===1||i.nodeType===9)){if(u[1])return y(i.getElementsByTagName(t),s);if(u[2]&&d.find.CLASS&&i.getElementsByClassName)return y(i.getElementsByClassName(u[2]),s)}if(i.nodeType===9){if(t===\"body\"&&i.body)return y([i.body],s);if(u&&u[3]){var a=i.getElementById(u[3]);if(!a||!a.parentNode)return y([],s);if(a.id===u[3])return y([a],s)}try{return y(i.querySelectorAll(t),s)}catch(f){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!==\"object\"){var l=i,c=i.getAttribute(\"id\"),p=c||r,v=i.parentNode,m=/^\\\\s*[+~]/.test(t);c?p=p.replace(/\\'/g,\"\\\\\\\\$&\"):i.setAttribute(\"id\",p),m&&v&&(i=i.parentNode);try{if(!m||v)return y(i.querySelectorAll(\"[id=\\'\"+p+\"\\'] \"+t),s)}catch(g){}finally{c||l.removeAttribute(\"id\")}}}return e(t,i,s,o)};for(var i in e)h[i]=e[i];t=null}(),function(){var e=n.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var r=!t.call(n.createElement(\"div\"),\"div\"),i=!1;try{t.call(n.documentElement,\"[test!=\\'\\']:sizzle\")}catch(s){i=!0}h.matchesSelector=function(e,n){n=n.replace(/\\\\=\\\\s*([^\\'\"\\\\]]*)\\\\s*\\\\]/g,\"=\\'$1\\']\");if(!h.isXML(e))try{if(i||!d.match.PSEUDO.test(n)&&!/!=/.test(n)){var s=t.call(e,n);if(s||!r||e.document&&e.document.nodeType!==11)return s}}catch(o){}return h(n,null,null,[e]).length>0}}}(),function(){var e=n.createElement(\"div\");e.innerHTML=\"<div class=\\'test e\\'></div><div class=\\'test\\'></div>\";if(!e.getElementsByClassName||e.getElementsByClassName(\"e\").length===0)return;e.lastChild.className=\"e\";if(e.getElementsByClassName(\"e\").length===1)return;d.order.splice(1,0,\"CLASS\"),d.find.CLASS=function(e,t,n){if(typeof t.getElementsByClassName!=\"undefined\"&&!n)return t.getElementsByClassName(e[1])},e=null}(),n.documentElement.contains?h.contains=function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:n.documentElement.compareDocumentPosition?h.contains=function(e,t){return!!(e.compareDocumentPosition(t)&16)}:h.contains=function(){return!1},h.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?t.nodeName!==\"HTML\":!1};var T=function(e,t,n){var r,i=[],s=\"\",o=t.nodeType?[t]:t;while(r=d.match.PSEUDO.exec(e))s+=r[0],e=e.replace(d.match.PSEUDO,\"\");e=d.relative[e]?e+\"*\":e;for(var u=0,a=o.length;u<a;u++)h(e,o[u],i,n);return h.filter(s,i)};h.attr=s.attr,h.selectors.attrMap={},s.find=h,s.expr=h.selectors,s.expr[\":\"]=s.expr.filters,s.unique=h.uniqueSort,s.text=h.getText,s.isXMLDoc=h.isXML,s.contains=h.contains}();var j=/Until$/,F=/^(?:parents|prevUntil|prevAll)/,I=/,/,q=/^.[^:#\\\\[\\\\.,]*$/,R=Array.prototype.slice,U=s.expr.match.POS,z={children:!0,contents:!0,next:!0,prev:!0};s.fn.extend({find:function(e){var t=this,n,r;if(typeof e!=\"string\")return s(e).filter(function(){for(n=0,r=t.length;n<r;n++)if(s.contains(t[n],this))return!0});var i=this.pushStack(\"\",\"find\",e),o,u,a;for(n=0,r=this.length;n<r;n++){o=i.length,s.find(e,this[n],i);if(n>0)for(u=o;u<i.length;u++)for(a=0;a<o;a++)if(i[a]===i[u]){i.splice(u--,1);break}}return i},has:function(e){var t=s(e);return this.filter(function(){for(var e=0,n=t.length;e<n;e++)if(s.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(X(this,e,!1),\"not\",e)},filter:function(e){return this.pushStack(X(this,e,!0),\"filter\",e)},is:function(e){return!!e&&(typeof e==\"string\"?U.test(e)?s(e,this.context).index(this[0])>=0:s.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n=[],r,i,o=this[0];if(s.isArray(e)){var u=1;while(o&&o.ownerDocument&&o!==t){for(r=0;r<e.length;r++)s(o).is(e[r])&&n.push({selector:e[r],elem:o,level:u});o=o.parentNode,u++}return n}var a=U.test(e)||typeof e!=\"string\"?s(e,t||this.context):0;for(r=0,i=this.length;r<i;r++){o=this[r];while(o){if(a?a.index(o)>-1:s.find.matchesSelector(o,e)){n.push(o);break}o=o.parentNode;if(!o||!o.ownerDocument||o===t||o.nodeType===11)break}}return n=n.length>1?s.unique(n):n,this.pushStack(n,\"closest\",e)},index:function(e){return e?typeof e==\"string\"?s.inArray(this[0],s(e)):s.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e==\"string\"?s(e,t):s.makeArray(e&&e.nodeType?[e]:e),r=s.merge(this.get(),n);return this.pushStack(W(n[0])||W(r[0])?r:s.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),s.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return s.dir(e,\"parentNode\")},parentsUntil:function(e,t,n){return s.dir(e,\"parentNode\",n)},next:function(e){return s.nth(e,2,\"nextSibling\")},prev:function(e){return s.nth(e,2,\"previousSibling\")},nextAll:function(e){return s.dir(e,\"nextSibling\")},prevAll:function(e){return s.dir(e,\"previousSibling\")},nextUntil:function(e,t,n){return s.dir(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return s.dir(e,\"previousSibling\",n)},siblings:function(e){return s.sibling(e.parentNode.firstChild,e)},children:function(e){return s.sibling(e.firstChild)},contents:function(e){return s.nodeName(e,\"iframe\")?e.contentDocument||e.contentWindow.document:s.makeArray(e.childNodes)}},function(e,t){s.fn[e]=function(n,r){var i=s.map(this,t,n);return j.test(e)||(r=n),r&&typeof r==\"string\"&&(i=s.filter(r,i)),i=this.length>1&&!z[e]?s.unique(i):i,(this.length>1||I.test(r))&&F.test(e)&&(i=i.reverse()),this.pushStack(i,e,R.call(arguments).join(\",\"))}}),s.extend({filter:function(e,t,n){return n&&(e=\":not(\"+e+\")\"),t.length===1?s.find.matchesSelector(t[0],e)?[t[0]]:[]:s.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&o.nodeType!==9&&(r===t||o.nodeType!==1||!s(o).is(r)))o.nodeType===1&&i.push(o),o=o[n];return i},nth:function(e,t,n,r){t=t||1;var i=0;for(;e;e=e[n])if(e.nodeType===1&&++i===t)break;return e},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var $=\"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",J=/ jQuery\\\\d+=\"(?:\\\\d+|null)\"/g,K=/^\\\\s+/,Q=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\\\w:]+)[^>]*)\\\\/>/ig,G=/<([\\\\w:]+)/,Y=/<tbody/i,Z=/<|&#?\\\\w+;/,et=/<(?:script|style)/i,tt=/<(?:script|object|embed|option|style)/i,nt=new RegExp(\"<(?:\"+$+\")\",\"i\"),rt=/checked\\\\s*(?:[^=]|=\\\\s*.checked.)/i,it=/\\\\/(java|ecma)script/i,st=/^\\\\s*<!(?:\\\\[CDATA\\\\[|\\\\-\\\\-)/,ot={option:[1,\"<select multiple=\\'multiple\\'>\",\"</select>\"],legend:[1,\"<fieldset>\",\"</fieldset>\"],thead:[1,\"<table>\",\"</table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],col:[2,\"<table><tbody></tbody><colgroup>\",\"</colgroup></table>\"],area:[1,\"<map>\",\"</map>\"],_default:[0,\"\",\"\"]},ut=V(n);ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td,s.support.htmlSerialize||(ot._default=[1,\"div<div>\",\"</div>\"]),s.fn.extend({text:function(e){return s.isFunction(e)?this.each(function(t){var n=s(this);n.text(e.call(this,t,n.text()))}):typeof e!=\"object\"&&e!==t?this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(e)):s.text(this)},wrapAll:function(e){if(s.isFunction(e))return this.each(function(t){s(this).wrapAll(e.call(this,t))});if(this[0]){var t=s(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return s.isFunction(e)?this.each(function(t){s(this).wrapInner(e.call(this,t))}):this.each(function(){var t=s(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=s.isFunction(e);return this.each(function(n){s(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){s.nodeName(this,\"body\")||s(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=s.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,\"before\",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,\"after\",arguments);return e.push.apply(e,s.clean(arguments)),e}},remove:function(e,t){for(var n=0,r;(r=this[n])!=null;n++)if(!e||s.filter(e,[r]).length)!t&&r.nodeType===1&&(s.cleanData(r.getElementsByTagName(\"*\")),s.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r);return this},empty:function(){for(var e=0,t;(t=this[e])!=null;e++){t.nodeType===1&&s.cleanData(t.getElementsByTagName(\"*\"));while(t.firstChild)t.removeChild(t.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return s.clone(this,e,t)})},html:function(e){if(e===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(J,\"\"):null;if(typeof e==\"string\"&&!et.test(e)&&(s.support.leadingWhitespace||!K.test(e))&&!ot[(G.exec(e)||[\"\",\"\"])[1].toLowerCase()]){e=e.replace(Q,\"<$1></$2>\");try{for(var n=0,r=this.length;n<r;n++)this[n].nodeType===1&&(s.cleanData(this[n].getElementsByTagName(\"*\")),this[n].innerHTML=e)}catch(i){this.empty().append(e)}}else s.isFunction(e)?this.each(function(t){var n=s(this);n.html(e.call(this,t,n.html()))}):this.empty().append(e);return this},replaceWith:function(e){return this[0]&&this[0].parentNode?s.isFunction(e)?this.each(function(t){var n=s(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!=\"string\"&&(e=s(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;s(this).remove(),t?s(t).before(e):s(n).append(e)})):this.length?this.pushStack(s(s.isFunction(e)?e():e),\"replaceWith\",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){var i,o,u,a,f=e[0],l=[];if(!s.support.checkClone&&arguments.length===3&&typeof f==\"string\"&&rt.test(f))return this.each(function(){s(this).domManip(e,n,r,!0)});if(s.isFunction(f))return this.each(function(i){var o=s(this);e[0]=f.call(this,i,n?o.html():t),o.domManip(e,n,r)});if(this[0]){a=f&&f.parentNode,s.support.parentNode&&a&&a.nodeType===11&&a.childNodes.length===this.length?i={fragment:a}:i=s.buildFragment(e,this,l),u=i.fragment,u.childNodes.length===1?o=u=u.firstChild:o=u.firstChild;if(o){n=n&&s.nodeName(o,\"tr\");for(var c=0,h=this.length,p=h-1;c<h;c++)r.call(n?at(this[c],o):this[c],i.cacheable||h>1&&c<p?s.clone(u,!0,!0):u)}l.length&&s.each(l,vt)}return this}}),s.buildFragment=function(e,t,r){var i,o,u,a,f=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=n),e.length===1&&typeof f==\"string\"&&f.length<512&&a===n&&f.charAt(0)===\"<\"&&!tt.test(f)&&(s.support.checkClone||!rt.test(f))&&(s.support.html5Clone||!nt.test(f))&&(o=!0,u=s.fragments[f],u&&u!==1&&(i=u)),i||(i=a.createDocumentFragment(),s.clean(e,a,i,r)),o&&(s.fragments[f]=u?i:1),{fragment:i,cacheable:o}},s.fragments={},s.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(e,t){s.fn[e]=function(n){var r=[],i=s(n),o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&i.length===1)return i[t](this[0]),this;for(var u=0,a=i.length;u<a;u++){var f=(u>0?this.clone(!0):this).get();s(i[u])[t](f),r=r.concat(f)}return this.pushStack(r,e,i.selector)}}),s.extend({clone:function(e,t,n){var r,i,o,u=s.support.html5Clone||!nt.test(\"<\"+e.nodeName)?e.cloneNode(!0):dt(e);if((!s.support.noCloneEvent||!s.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!s.isXMLDoc(e)){lt(e,u),r=ct(e),i=ct(u);for(o=0;r[o];++o)i[o]&&lt(r[o],i[o])}if(t){ft(e,u);if(n){r=ct(e),i=ct(u);for(o=0;r[o];++o)ft(r[o],i[o])}}return r=i=null,u},clean:function(e,t,r,i){var o;t=t||n,typeof t.createElement==\"undefined\"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||n);var u=[],a;for(var f=0,l;(l=e[f])!=null;f++){typeof l==\"number\"&&(l+=\"\");if(!l)continue;if(typeof l==\"string\")if(!Z.test(l))l=t.createTextNode(l);else{l=l.replace(Q,\"<$1></$2>\");var c=(G.exec(l)||[\"\",\"\"])[1].toLowerCase(),h=ot[c]||ot._default,p=h[0],d=t.createElement(\"div\");t===n?ut.appendChild(d):V(t).appendChild(d),d.innerHTML=h[1]+l+h[2];while(p--)d=d.lastChild;if(!s.support.tbody){var v=Y.test(l),m=c===\"table\"&&!v?d.firstChild&&d.firstChild.childNodes:h[1]===\"<table>\"&&!v?d.childNodes:[];for(a=m.length-1;a>=0;--a)s.nodeName(m[a],\"tbody\")&&!m[a].childNodes.length&&m[a].parentNode.removeChild(m[a])}!s.support.leadingWhitespace&&K.test(l)&&d.insertBefore(t.createTextNode(K.exec(l)[0]),d.firstChild),l=d.childNodes}var g;if(!s.support.appendChecked)if(l[0]&&typeof (g=l.length)==\"number\")for(a=0;a<g;a++)pt(l[a]);else pt(l);l.nodeType?u.push(l):u=s.merge(u,l)}if(r){o=function(e){return!e.type||it.test(e.type)};for(f=0;u[f];f++)if(i&&s.nodeName(u[f],\"script\")&&(!u[f].type||u[f].type.toLowerCase()===\"text/javascript\"))i.push(u[f].parentNode?u[f].parentNode.removeChild(u[f]):u[f]);else{if(u[f].nodeType===1){var y=s.grep(u[f].getElementsByTagName(\"script\"),o);u.splice.apply(u,[f+1,0].concat(y))}r.appendChild(u[f])}}return u},cleanData:function(e){var t,n,r=s.cache,i=s.event.special,o=s.support.deleteExpando;for(var u=0,a;(a=e[u])!=null;u++){if(a.nodeName&&s.noData[a.nodeName.toLowerCase()])continue;n=a[s.expando];if(n){t=r[n];if(t&&t.events){for(var f in t.events)i[f]?s.event.remove(a,f):s.removeEvent(a,f,t.handle);t.handle&&(t.handle.elem=null)}o?delete a[s.expando]:a.removeAttribute&&a.removeAttribute(s.expando),delete r[n]}}}});var mt=/alpha\\\\([^)]*\\\\)/i,gt=/opacity=([^)]*)/,yt=/([A-Z]|^ms)/g,bt=/^-?\\\\d+(?:px)?$/i,wt=/^-?\\\\d/,Et=/^([\\\\-+])=([\\\\-+.\\\\de]+)/,St={position:\"absolute\",visibility:\"hidden\",display:\"block\"},xt=[\"Left\",\"Right\"],Tt=[\"Top\",\"Bottom\"],Nt,Ct,kt;s.fn.css=function(e,n){return arguments.length===2&&n===t?this:s.access(this,e,n,!0,function(e,n,r){return r!==t?s.style(e,n,r):s.css(e,n)})},s.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Nt(e,\"opacity\",\"opacity\");return n===\"\"?\"1\":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":s.support.cssFloat?\"cssFloat\":\"styleFloat\"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var o,u,a=s.camelCase(n),f=e.style,l=s.cssHooks[a];n=s.cssProps[a]||a;if(r===t)return l&&\"get\"in l&&(o=l.get(e,!1,i))!==t?o:f[n];u=typeof r,u===\"string\"&&(o=Et.exec(r))&&(r=+(o[1]+1)*+o[2]+parseFloat(s.css(e,n)),u=\"number\");if(r==null||u===\"number\"&&isNaN(r))return;u===\"number\"&&!s.cssNumber[a]&&(r+=\"px\");if(!l||!(\"set\"in l)||(r=l.set(e,r))!==t)try{f[n]=r}catch(c){}},css:function(e,n,r){var i,o;n=s.camelCase(n),o=s.cssHooks[n],n=s.cssProps[n]||n,n===\"cssFloat\"&&(n=\"float\");if(o&&\"get\"in o&&(i=o.get(e,!0,r))!==t)return i;if(Nt)return Nt(e,n)},swap:function(e,t,n){var r={};for(var i in t)r[i]=e.style[i],e.style[i]=t[i];n.call(e);for(i in t)e.style[i]=r[i]}}),s.curCSS=s.css,s.each([\"height\",\"width\"],function(e,t){s.cssHooks[t]={get:function(e,n,r){var i;if(n)return e.offsetWidth!==0?Lt(e,t,r):(s.swap(e,St,function(){i=Lt(e,t,r)}),i)},set:function(e,t){if(!bt.test(t))return t;t=parseFloat(t);if(t>=0)return t+\"px\"}}}),s.support.opacity||(s.cssHooks.opacity={get:function(e,t){return gt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||\"\")?parseFloat(RegExp.$1)/100+\"\":t?\"1\":\"\"},set:function(e,t){var n=e.style,r=e.currentStyle,i=s.isNumeric(t)?\"alpha(opacity=\"+t*100+\")\":\"\",o=r&&r.filter||n.filter||\"\";n.zoom=1;if(t>=1&&s.trim(o.replace(mt,\"\"))===\"\"){n.removeAttribute(\"filter\");if(r&&!r.filter)return}n.filter=mt.test(o)?o.replace(mt,i):o+\" \"+i}}),s(function(){s.support.reliableMarginRight||(s.cssHooks.marginRight={get:function(e,t){var n;return s.swap(e,{display:\"inline-block\"},function(){t?n=Nt(e,\"margin-right\",\"marginRight\"):n=e.style.marginRight}),n}})}),n.defaultView&&n.defaultView.getComputedStyle&&(Ct=function(e,t){var n,r,i;return t=t.replace(yt,\"-$1\").toLowerCase(),(r=e.ownerDocument.defaultView)&&(i=r.getComputedStyle(e,null))&&(n=i.getPropertyValue(t),n===\"\"&&!s.contains(e.ownerDocument.documentElement,e)&&(n=s.style(e,t))),n}),n.documentElement.currentStyle&&(kt=function(e,t){var n,r,i,s=e.currentStyle&&e.currentStyle[t],o=e.style;return s===null&&o&&(i=o[t])&&(s=i),!bt.test(s)&&wt.test(s)&&(n=o.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),o.left=t===\"fontSize\"?\"1em\":s||0,s=o.pixelLeft+\"px\",o.left=n,r&&(e.runtimeStyle.left=r)),s===\"\"?\"auto\":s}),Nt=Ct||kt,s.expr&&s.expr.filters&&(s.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return t===0&&n===0||!s.support.reliableHiddenOffsets&&(e.style&&e.style.display||s.css(e,\"display\"))===\"none\"},s.expr.filters.visible=function(e){return!s.expr.filters.hidden(e)});var At=/%20/g,Ot=/\\\\[\\\\]$/,Mt=/\\\\r?\\\\n/g,_t=/#.*$/,Dt=/^(.*?):[ \\\\t]*([^\\\\r\\\\n]*)\\\\r?$/mg,Pt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ht=/^(?:about|app|app\\\\-storage|.+\\\\-extension|file|res|widget):$/,Bt=/^(?:GET|HEAD)$/,jt=/^\\\\/\\\\//,Ft=/\\\\?/,It=/<script\\\\b[^<]*(?:(?!<\\\\/script>)<[^<]*)*<\\\\/script>/gi,qt=/^(?:select|textarea)/i,Rt=/\\\\s+/,Ut=/([?&])_=[^&]*/,zt=/^([\\\\w\\\\+\\\\.\\\\-]+:)(?:\\\\/\\\\/([^\\\\/?#:]*)(?::(\\\\d+))?)?/,Wt=s.fn.load,Xt={},Vt={},$t,Jt,Kt=[\"*/\"]+[\"*\"];try{$t=i.href}catch(Qt){$t=n.createElement(\"a\"),$t.href=\"\",$t=$t.href}Jt=zt.exec($t.toLowerCase())||[],s.fn.extend({load:function(e,n,r){if(typeof e!=\"string\"&&Wt)return Wt.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(\" \");if(i>=0){var o=e.slice(i,e.length);e=e.slice(0,i)}var u=\"GET\";n&&(s.isFunction(n)?(r=n,n=t):typeof n==\"object\"&&(n=s.param(n,s.ajaxSettings.traditional),u=\"POST\"));var a=this;return s.ajax({url:e,type:u,dataType:\"html\",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),a.html(o?s(\"<div>\").append(n.replace(It,\"\")).find(o):n)),r&&a.each(r,[n,t,e])}}),this},serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?s.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||qt.test(this.nodeName)||Pt.test(this.type))}).map(function(e,t){var n=s(this).val();return n==null?null:s.isArray(n)?s.map(n,function(e,n){return{name:t.name,value:e.replace(Mt,\"\\\\r\\\\n\")}}):{name:t.name,value:n.replace(Mt,\"\\\\r\\\\n\")}}).get()}}),s.each(\"ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend\".split(\" \"),function(e,t){s.fn[t]=function(e){return this.on(t,e)}}),s.each([\"get\",\"post\"],function(e,n){s[n]=function(e,r,i,o){return s.isFunction(r)&&(o=o||i,i=r,r=t),s.ajax({type:n,url:e,data:r,success:i,dataType:o})}}),s.extend({getScript:function(e,n){return s.get(e,t,n,\"script\")},getJSON:function(e,t,n){return s.get(e,t,n,\"json\")},ajaxSetup:function(e,t){return t?Zt(e,s.ajaxSettings):(t=e,e=s.ajaxSettings),Zt(e,t),e},ajaxSettings:{url:$t,isLocal:Ht.test(Jt[1]),global:!0,type:\"GET\",contentType:\"application/x-www-form-urlencoded\",processData:!0,async:!0,accepts:{xml:\"application/xml, text/xml\",html:\"text/html\",text:\"text/plain\",json:\"application/json, text/javascript\",\"*\":Kt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\"},converters:{\"* text\":e.String,\"text html\":!0,\"text json\":s.parseJSON,\"text xml\":s.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Gt(Xt),ajaxTransport:Gt(Vt),ajax:function(e,n){function S(e,n,c,h){if(y===2)return;y=2,m&&clearTimeout(m),v=t,p=h||\"\",E.readyState=e>0?4:0;var d,g,w,S=n,x=c?tn(r,E,c):t,T,N;if(e>=200&&e<300||e===304){if(r.ifModified){if(T=E.getResponseHeader(\"Last-Modified\"))s.lastModified[l]=T;if(N=E.getResponseHeader(\"Etag\"))s.etag[l]=N}if(e===304)S=\"notmodified\",d=!0;else try{g=nn(r,x),S=\"success\",d=!0}catch(C){S=\"parsererror\",w=C}}else{w=S;if(!S||e)S=\"error\",e<0&&(e=0)}E.status=e,E.statusText=\"\"+(n||S),d?u.resolveWith(i,[g,S,E]):u.rejectWith(i,[E,S,w]),E.statusCode(f),f=t,b&&o.trigger(\"ajax\"+(d?\"Success\":\"Error\"),[E,r,d?g:w]),a.fireWith(i,[E,S]),b&&(o.trigger(\"ajaxComplete\",[E,r]),--s.active||s.event.trigger(\"ajaxStop\"))}typeof e==\"object\"&&(n=e,e=t),n=n||{};var r=s.ajaxSetup({},n),i=r.context||r,o=i!==r&&(i.nodeType||i instanceof s)?s(i):s.event,u=s.Deferred(),a=s.Callbacks(\"once memory\"),f=r.statusCode||{},l,c={},h={},p,d,v,m,g,y=0,b,w,E={readyState:0,setRequestHeader:function(e,t){if(!y){var n=e.toLowerCase();e=h[n]=h[n]||e,c[e]=t}return this},getAllResponseHeaders:function(){return y===2?p:null},getResponseHeader:function(e){var n;if(y===2){if(!d){d={};while(n=Dt.exec(p))d[n[1].toLowerCase()]=n[2]}n=d[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return y||(r.mimeType=e),this},abort:function(e){return e=e||\"abort\",v&&v.abort(e),S(0,e),this}};u.promise(E),E.success=E.done,E.error=E.fail,E.complete=a.add,E.statusCode=function(e){if(e){var t;if(y<2)for(t in e)f[t]=[f[t],e[t]];else t=e[E.status],E.then(t,t)}return this},r.url=((e||r.url)+\"\").replace(_t,\"\").replace(jt,Jt[1]+\"//\"),r.dataTypes=s.trim(r.dataType||\"*\").toLowerCase().split(Rt),r.crossDomain==null&&(g=zt.exec(r.url.toLowerCase()),r.crossDomain=!(!g||g[1]==Jt[1]&&g[2]==Jt[2]&&(g[3]||(g[1]===\"http:\"?80:443))==(Jt[3]||(Jt[1]===\"http:\"?80:443)))),r.data&&r.processData&&typeof r.data!=\"string\"&&(r.data=s.param(r.data,r.traditional)),Yt(Xt,r,n,E);if(y===2)return!1;b=r.global,r.type=r.type.toUpperCase(),r.hasContent=!Bt.test(r.type),b&&s.active++===0&&s.event.trigger(\"ajaxStart\");if(!r.hasContent){r.data&&(r.url+=(Ft.test(r.url)?\"&\":\"?\")+r.data,delete r.data),l=r.url;if(r.cache===!1){var x=s.now(),T=r.url.replace(Ut,\"$1_=\"+x);r.url=T+(T===r.url?(Ft.test(r.url)?\"&\":\"?\")+\"_=\"+x:\"\")}}(r.data&&r.hasContent&&r.contentType!==!1||n.contentType)&&E.setRequestHeader(\"Content-Type\",r.contentType),r.ifModified&&(l=l||r.url,s.lastModified[l]&&E.setRequestHeader(\"If-Modified-Since\",s.lastModified[l]),s.etag[l]&&E.setRequestHeader(\"If-None-Match\",s.etag[l])),E.setRequestHeader(\"Accept\",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+(r.dataTypes[0]!==\"*\"?\", \"+Kt+\"; q=0.01\":\"\"):r.accepts[\"*\"]);for(w in r.headers)E.setRequestHeader(w,r.headers[w]);if(!r.beforeSend||r.beforeSend.call(i,E,r)!==!1&&y!==2){for(w in{success:1,error:1,complete:1})E[w](r[w]);v=Yt(Vt,r,n,E);if(!v)S(-1,\"No Transport\");else{E.readyState=1,b&&o.trigger(\"ajaxSend\",[E,r]),r.async&&r.timeout>0&&(m=setTimeout(function(){E.abort(\"timeout\")},r.timeout));try{y=1,v.send(c,S)}catch(N){if(!(y<2))throw N;S(-1,N)}}return E}return E.abort(),!1},param:function(e,n){var r=[],i=function(e,t){t=s.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(t)};n===t&&(n=s.ajaxSettings.traditional);if(s.isArray(e)||e.jquery&&!s.isPlainObject(e))s.each(e,function(){i(this.name,this.value)});else for(var o in e)en(o,e[o],n,i);return r.join(\"&\").replace(At,\"+\")}}),s.extend({active:0,lastModified:{},etag:{}});var rn=s.now(),sn=/(\\\\=)\\\\?(&|$)|\\\\?\\\\?/i;s.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){return s.expando+\"_\"+rn++}}),s.ajaxPrefilter(\"json jsonp\",function(t,n,r){var i=t.contentType===\"application/x-www-form-urlencoded\"&&typeof t.data==\"string\";if(t.dataTypes[0]===\"jsonp\"||t.jsonp!==!1&&(sn.test(t.url)||i&&sn.test(t.data))){var o,u=t.jsonpCallback=s.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a=e[u],f=t.url,l=t.data,c=\"$1\"+u+\"$2\";return t.jsonp!==!1&&(f=f.replace(sn,c),t.url===f&&(i&&(l=l.replace(sn,c)),t.data===l&&(f+=(/\\\\?/.test(f)?\"&\":\"?\")+t.jsonp+\"=\"+u))),t.url=f,t.data=l,e[u]=function(e){o=[e]},r.always(function(){e[u]=a,o&&s.isFunction(a)&&e[u](o[0])}),t.converters[\"script json\"]=function(){return o||s.error(u+\" was not called\"),o[0]},t.dataTypes[0]=\"json\",\"script\"}}),s.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/javascript|ecmascript/},converters:{\"text script\":function(e){return s.globalEval(e),e}}}),s.ajaxPrefilter(\"script\",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\",e.global=!1)}),s.ajaxTransport(\"script\",function(e){if(e.crossDomain){var r,i=n.head||n.getElementsByTagName(\"head\")[0]||n.documentElement;return{send:function(s,o){r=n.createElement(\"script\"),r.async=\"async\",e.scriptCharset&&(r.charset=e.scriptCharset),r.src=e.url,r.onload=r.onreadystatechange=function(e,n){if(n||!r.readyState||/loaded|complete/.test(r.readyState))r.onload=r.onreadystatechange=null,i&&r.parentNode&&i.removeChild(r),r=t,n||o(200,\"success\")},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(0,1)}}}});var on=e.ActiveXObject?function(){for(var e in an)an[e](0,1)}:!1,un=0,an;s.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&fn()||ln()}:fn,function(e){s.extend(s.support,{ajax:!!e,cors:!!e&&\"withCredentials\"in e})}(s.ajaxSettings.xhr()),s.support.ajax&&s.ajaxTransport(function(n){if(!n.crossDomain||s.support.cors){var r;return{send:function(i,o){var u=n.xhr(),a,f;n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async);if(n.xhrFields)for(f in n.xhrFields)u[f]=n.xhrFields[f];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),!n.crossDomain&&!i[\"X-Requested-With\"]&&(i[\"X-Requested-With\"]=\"XMLHttpRequest\");try{for(f in i)u.setRequestHeader(f,i[f])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var f,l,c,h,p;try{if(r&&(i||u.readyState===4)){r=t,a&&(u.onreadystatechange=s.noop,on&&delete an[a]);if(i)u.readyState!==4&&u.abort();else{f=u.status,c=u.getAllResponseHeaders(),h={},p=u.responseXML,p&&p.documentElement&&(h.xml=p),h.text=u.responseText;try{l=u.statusText}catch(d){l=\"\"}!f&&n.isLocal&&!n.crossDomain?f=h.text?200:404:f===1223&&(f=204)}}}catch(v){i||o(-1,v)}h&&o(f,l,h,c)},!n.async||u.readyState===4?r():(a=++un,on&&(an||(an={},s(e).unload(on)),an[a]=r),u.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var cn={},hn,pn,dn=/^(?:toggle|show|hide)$/,vn=/^([+\\\\-]=)?([\\\\d+.\\\\-]+)([a-z%]*)$/i,mn,gn=[[\"height\",\"marginTop\",\"marginBottom\",\"paddingTop\",\"paddingBottom\"],[\"width\",\"marginLeft\",\"marginRight\",\"paddingLeft\",\"paddingRight\"],[\"opacity\"]],yn;s.fn.extend({show:function(e,t,n){var r,i;if(e||e===0)return this.animate(En(\"show\",3),e,t,n);for(var o=0,u=this.length;o<u;o++)r=this[o],r.style&&(i=r.style.display,!s._data(r,\"olddisplay\")&&i===\"none\"&&(i=r.style.display=\"\"),i===\"\"&&s.css(r,\"display\")===\"none\"&&s._data(r,\"olddisplay\",Sn(r.nodeName)));for(o=0;o<u;o++){r=this[o];if(r.style){i=r.style.display;if(i===\"\"||i===\"none\")r.style.display=s._data(r,\"olddisplay\")||\"\"}}return this},hide:function(e,t,n){if(e||e===0)return this.animate(En(\"hide\",3),e,t,n);var r,i,o=0,u=this.length;for(;o<u;o++)r=this[o],r.style&&(i=s.css(r,\"display\"),i!==\"none\"&&!s._data(r,\"olddisplay\")&&s._data(r,\"olddisplay\",i));for(o=0;o<u;o++)this[o].style&&(this[o].style.display=\"none\");return this},_toggle:s.fn.toggle,toggle:function(e,t,n){var r=typeof e==\"boolean\";return s.isFunction(e)&&s.isFunction(t)?this._toggle.apply(this,arguments):e==null||r?this.each(function(){var t=r?e:s(this).is(\":hidden\");s(this)[t?\"show\":\"hide\"]()}):this.animate(En(\"toggle\",3),e,t,n),this},fadeTo:function(e,t,n,r){return this.filter(\":hidden\").css(\"opacity\",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){function o(){i.queue===!1&&s._mark(this);var t=s.extend({},i),n=this.nodeType===1,r=n&&s(this).is(\":hidden\"),o,u,a,f,l,c,h,p,d;t.animatedProperties={};for(a in e){o=s.camelCase(a),a!==o&&(e[o]=e[a],delete e[a]),u=e[o],s.isArray(u)?(t.animatedProperties[o]=u[1],u=e[o]=u[0]):t.animatedProperties[o]=t.specialEasing&&t.specialEasing[o]||t.easing||\"swing\";if(u===\"hide\"&&r||u===\"show\"&&!r)return t.complete.call(this);n&&(o===\"height\"||o===\"width\")&&(t.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],s.css(this,\"display\")===\"inline\"&&s.css(this,\"float\")===\"none\"&&(!s.support.inlineBlockNeedsLayout||Sn(this.nodeName)===\"inline\"?this.style.display=\"inline-block\":this.style.zoom=1))}t.overflow!=null&&(this.style.overflow=\"hidden\");for(a in e)f=new s.fx(this,t,a),u=e[a],dn.test(u)?(d=s._data(this,\"toggle\"+a)||(u===\"toggle\"?r?\"show\":\"hide\":0),d?(s._data(this,\"toggle\"+a,d===\"show\"?\"hide\":\"show\"),f[d]()):f[u]()):(l=vn.exec(u),c=f.cur(),l?(h=parseFloat(l[2]),p=l[3]||(s.cssNumber[a]?\"\":\"px\"),p!==\"px\"&&(s.style(this,a,(h||1)+p),c=(h||1)/f.cur()*c,s.style(this,a,c+p)),l[1]&&(h=(l[1]===\"-=\"?-1:1)*h+c),f.custom(c,h,p)):f.custom(c,u,\"\"));return!0}var i=s.speed(t,n,r);return s.isEmptyObject(e)?this.each(i.complete,[!1]):(e=s.extend({},e),i.queue===!1?this.each(o):this.queue(i.queue,o))},stop:function(e,n,r){return typeof e!=\"string\"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||\"fx\",[]),this.each(function(){function u(e,t,n){var i=t[n];s.removeData(e,n,!0),i.stop(r)}var t,n=!1,i=s.timers,o=s._data(this);r||s._unmark(!0,this);if(e==null)for(t in o)o[t]&&o[t].stop&&t.indexOf(\".run\")===t.length-4&&u(this,o,t);else o[t=e+\".run\"]&&o[t].stop&&u(this,o,t);for(t=i.length;t--;)i[t].elem===this&&(e==null||i[t].queue===e)&&(r?i[t](!0):i[t].saveState(),n=!0,i.splice(t,1));(!r||!n)&&s.dequeue(this,e)})}}),s.each({slideDown:En(\"show\",1),slideUp:En(\"hide\",1),slideToggle:En(\"toggle\",1),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(e,t){s.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),s.extend({speed:function(e,t,n){var r=e&&typeof e==\"object\"?s.extend({},e):{complete:n||!n&&t||s.isFunction(e)&&e,duration:e,easing:n&&t||t&&!s.isFunction(t)&&t};r.duration=s.fx.off?0:typeof r.duration==\"number\"?r.duration:r.duration in s.fx.speeds?s.fx.speeds[r.duration]:s.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue=\"fx\";return r.old=r.complete,r.complete=function(e){s.isFunction(r.old)&&r.old.call(this),r.queue?s.dequeue(this,r.queue):e!==!1&&s._unmark(this)},r},easing:{linear:function(e,t,n,r){return n+r*e},swing:function(e,t,n,r){return(-Math.cos(e*Math.PI)/2+.5)*r+n}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),s.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(s.fx.step[this.prop]||s.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]==null||!!this.elem.style&&this.elem.style[this.prop]!=null){var e,t=s.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?!t||t===\"auto\"?0:t:e}return this.elem[this.prop]},custom:function(e,n,r){function u(e){return i.step(e)}var i=this,o=s.fx;this.startTime=yn||bn(),this.end=n,this.now=this.start=e,this.pos=this.state=0,this.unit=r||this.unit||(s.cssNumber[this.prop]?\"\":\"px\"),u.queue=this.options.queue,u.elem=this.elem,u.saveState=function(){i.options.hide&&s._data(i.elem,\"fxshow\"+i.prop)===t&&s._data(i.elem,\"fxshow\"+i.prop,i.start)},u()&&s.timers.push(u)&&!mn&&(mn=setInterval(o.tick,o.interval))},show:function(){var e=s._data(this.elem,\"fxshow\"+this.prop);this.options.orig[this.prop]=e||s.style(this.elem,this.prop),this.options.show=!0,e!==t?this.custom(this.cur(),e):this.custom(this.prop===\"width\"||this.prop===\"height\"?1:0,this.cur()),s(this.elem).show()},hide:function(){this.options.orig[this.prop]=s._data(this.elem,\"fxshow\"+this.prop)||s.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,r,i=yn||bn(),o=!0,u=this.elem,a=this.options;if(e||i>=a.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),a.animatedProperties[this.prop]=!0;for(t in a.animatedProperties)a.animatedProperties[t]!==!0&&(o=!1);if(o){a.overflow!=null&&!s.support.shrinkWrapBlocks&&s.each([\"\",\"X\",\"Y\"],function(e,t){u.style[\"overflow\"+t]=a.overflow[e]}),a.hide&&s(u).hide();if(a.hide||a.show)for(t in a.animatedProperties)s.style(u,t,a.orig[t]),s.removeData(u,\"fxshow\"+t,!0),s.removeData(u,\"toggle\"+t,!0);r=a.complete,r&&(a.complete=!1,r.call(u))}return!1}return a.duration==Infinity?this.now=i:(n=i-this.startTime,this.state=n/a.duration,this.pos=s.easing[a.animatedProperties[this.prop]](this.state,n,0,1,a.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},s.extend(s.fx,{tick:function(){var e,t=s.timers,n=0;for(;n<t.length;n++)e=t[n],!e()&&t[n]===e&&t.splice(n--,1);t.length||s.fx.stop()},interval:13,stop:function(){clearInterval(mn),mn=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){s.style(e.elem,\"opacity\",e.now)},_default:function(e){e.elem.style&&e.elem.style[e.prop]!=null?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),s.each([\"width\",\"height\"],function(e,t){s.fx.step[t]=function(e){s.style(e.elem,t,Math.max(0,e.now)+e.unit)}}),s.expr&&s.expr.filters&&(s.expr.filters.animated=function(e){return s.grep(s.timers,function(t){return e===t.elem}).length});var xn=/^t(?:able|d|h)$/i,Tn=/^(?:body|html)$/i;\"getBoundingClientRect\"in n.documentElement?s.fn.offset=function(e){var t=this[0],n;if(e)return this.each(function(t){s.offset.setOffset(this,e,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return s.offset.bodyOffset(t);try{n=t.getBoundingClientRect()}catch(r){}var i=t.ownerDocument,o=i.documentElement;if(!n||!s.contains(o,t))return n?{top:n.top,left:n.left}:{top:0,left:0};var u=i.body,a=Nn(i),f=o.clientTop||u.clientTop||0,l=o.clientLeft||u.clientLeft||0,c=a.pageYOffset||s.support.boxModel&&o.scrollTop||u.scrollTop,h=a.pageXOffset||s.support.boxModel&&o.scrollLeft||u.scrollLeft,p=n.top+c-f,d=n.left+h-l;return{top:p,left:d}}:s.fn.offset=function(e){var t=this[0];if(e)return this.each(function(t){s.offset.setOffset(this,e,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return s.offset.bodyOffset(t);var n,r=t.offsetParent,i=t,o=t.ownerDocument,u=o.documentElement,a=o.body,f=o.defaultView,l=f?f.getComputedStyle(t,null):t.currentStyle,c=t.offsetTop,h=t.offsetLeft;while((t=t.parentNode)&&t!==a&&t!==u){if(s.support.fixedPosition&&l.position===\"fixed\")break;n=f?f.getComputedStyle(t,null):t.currentStyle,c-=t.scrollTop,h-=t.scrollLeft,t===r&&(c+=t.offsetTop,h+=t.offsetLeft,s.support.doesNotAddBorder&&(!s.support.doesAddBorderForTableAndCells||!xn.test(t.nodeName))&&(c+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),i=r,r=t.offsetParent),s.support.subtractsBorderForOverflowNotVisible&&n.overflow!==\"visible\"&&(c+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),l=n}if(l.position===\"relative\"||l.position===\"static\")c+=a.offsetTop,h+=a.offsetLeft;return s.support.fixedPosition&&l.position===\"fixed\"&&(c+=Math.max(u.scrollTop,a.scrollTop),h+=Math.max(u.scrollLeft,a.scrollLeft)),{top:c,left:h}},s.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return s.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(s.css(e,\"marginTop\"))||0,n+=parseFloat(s.css(e,\"marginLeft\"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=s.css(e,\"position\");r===\"static\"&&(e.style.position=\"relative\");var i=s(e),o=i.offset(),u=s.css(e,\"top\"),a=s.css(e,\"left\"),f=(r===\"absolute\"||r===\"fixed\")&&s.inArray(\"auto\",[u,a])>-1,l={},c={},h,p;f?(c=i.position(),h=c.top,p=c.left):(h=parseFloat(u)||0,p=parseFloat(a)||0),s.isFunction(t)&&(t=t.call(e,n,o)),t.top!=null&&(l.top=t.top-o.top+h),t.left!=null&&(l.left=t.left-o.left+p),\"using\"in t?t.using.call(e,l):i.css(l)}},s.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=Tn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(s.css(e,\"marginTop\"))||0,n.left-=parseFloat(s.css(e,\"marginLeft\"))||0,r.top+=parseFloat(s.css(t[0],\"borderTopWidth\"))||0,r.left+=parseFloat(s.css(t[0],\"borderLeftWidth\"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||n.body;while(e&&!Tn.test(e.nodeName)&&s.css(e,\"position\")===\"static\")e=e.offsetParent;return e})}}),s.each([\"Left\",\"Top\"],function(e,n){var r=\"scroll\"+n;s.fn[r]=function(n){var i,o;return n===t?(i=this[0],i?(o=Nn(i),o?\"pageXOffset\"in o?o[e?\"pageYOffset\":\"pageXOffset\"]:s.support.boxModel&&o.document.documentElement[r]||o.document.body[r]:i[r]):null):this.each(function(){o=Nn(this),o?o.scrollTo(e?s(o).scrollLeft():n,e?n:s(o).scrollTop()):this[r]=n})}}),s.each([\"Height\",\"Width\"],function(e,n){var r=n.toLowerCase();s.fn[\"inner\"+n]=function(){var e=this[0];return e?e.style?parseFloat(s.css(e,r,\"padding\")):this[r]():null},s.fn[\"outer\"+n]=function(e){var t=this[0];return t?t.style?parseFloat(s.css(t,r,e?\"margin\":\"border\")):this[r]():null},s.fn[r]=function(e){var i=this[0];if(!i)return e==null?null:this;if(s.isFunction(e))return this.each(function(t){var n=s(this);n[r](e.call(this,t,n[r]()))});if(s.isWindow(i)){var o=i.document.documentElement[\"client\"+n],u=i.document.body;return i.document.compatMode===\"CSS1Compat\"&&o||u&&u[\"client\"+n]||o}if(i.nodeType===9)return Math.max(i.documentElement[\"client\"+n],i.body[\"scroll\"+n],i.documentElement[\"scroll\"+n],i.body[\"offset\"+n],i.documentElement[\"offset\"+n]);if(e===t){var a=s.css(i,r),f=parseFloat(a);return s.isNumeric(f)?f:a}return this.css(r,typeof e==\"string\"?e:e+\"px\")}}),e.jQuery=e.$=s,typeof define==\"function\"&&define.amd&&define.amd.jQuery&&define(\"jquery\",[],function(){return s})})(window)'};return function(t){return e[t]}}(),i=function(){var t;return function(n){t?t.push(n):(t=[n],e.createFrame(function(e){var n,r;for(n=0,r=t.length;n<r;n+=1)t[n](e);t={push:function(t){t(e)}}}))}}(),u=function(e){l(\"fugly.js\",\"fugly\",e)},a=function(e){l(\"jquery-1.7.1.js\",\"jQuery\",e)},f=function(e){i(function(t){var n=t.contentWindow,i=function(){var t=n.JSON,r=t.stringify,i=function(e,t){var r,s,o;if(!e)return e;t||(t=[]);for(r=0,s=t.length;r<s;r+=1)if(t[r]===e)throw new TypeError(\"Converting circular structure to JSON\");if(Object.prototype.toString.call(e)===\"[object Array]\"){t.push(e),o=new n.Array;for(r=0,s=e.length;r<s;r+=1)o[r]=i(e[r],t);return o}if(Object.prototype.toString.call(e)===\"[object Object]\"){t.push(e),o=new n.Object;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var a=t.splice(0);o[u]=i(e[u],a)}return o}return e};t.stringify=function(e){return r.apply(this,[i(e)].concat(Array.prototype.slice.call(arguments,1)))},o(e)};n.JSON?(r.JSON=n.JSON,i()):l(\"json2.js\",\"JSON\",i)})},l=function(e,t,s){i(function(i){var u=i.contentWindow,a=n(e);\"execScript\"in u?u.execScript(a):u.eval(a),r[t]=u[t],o(s)})};return function(n){t?t.push(n):(t=[s,n],e.ensure([u,a,f],function(){var e,n;for(e=0,n=t.length;e<n;e+=1)t[e]();t={push:function(e){e()}}}))}}(),a=function(t){chaordic.LOGGED_REMOTES.push(t),e.log(t.response.ok?\"DEBUG\":\"ERROR\",\"Remote request to: \"+t.url,t)},f={log:function(t,n,r){var i;t=t||\"DEBUG\";if(e.LOG_LEVELS[chaordic.Config.LOG_LEVEL]>chaordic.Base.LOG_LEVELS[t])return;if(typeof console==\"undefined\")return;chaordic.event.Tron.trace(t,r,n);if(typeof console[t.toLowerCase()]!=\"function\"){e.log(\"ERROR\",\"Invalid log level: \"+t,{message:n,data:r});return}i=[\"[CHAORDIC \"+t+\"] \"+n],r&&(i=i.concat([\"\\n\",r])),console[t.toLowerCase()].apply(console,i)}},l=f,c={remote:function(e,t,n,i){if(!arguments.length)throw new TypeError(\"[chaordic.Base#remote] We need an url to do a remote call.\");var s={url:e,params:t,time:{request:new Date}};t||(t={}),t.apiKey=chaordic.Config.API_KEY,n=n||function(){},i=i||function(){},r.jQuery.ajax({url:e,data:{q:chaordic.String.escapeNonAscii(r.JSON.stringify(t))},async:!0,dataType:\"jsonp\",traditional:!0}).done(function(e){if(e&&e.ok)return n.call(this,e)}).fail(function(e){return i.call(this,e)}).always(function(e,t,n){var r=new Date,i=r.getTime()-s.time.request.getTime();s.status=t,s.response=e,s.time.response=r,s.time.elapsed=i+\" ms\",a(s)})}},h=c;e={ensure3rdpartyDependencies:u,CHAORDIC_COOKIE:\"chaordic\",LOG_LEVELS:{DEBUG:0,INFO:1,WARN:2,ERROR:3,NONE:4},setLogger:function(e){l=e},restoreDefaultLogger:function(){l=f},extend:function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superClass=t.prototype,t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},log:function(e,t,n){try{l.log(e,t,n)}catch(r){if(l!==f)try{f.log(\"ERROR\",r)}catch(i){}}},logMessageProtocol:function(t,n){try{var r,i;t.ok||e.log(\"ERROR\",\"[\"+n+\"] \"+t.data);if(t.messages)for(r=0;r<t.messages.length;r+=1)i=t.messages[r],e.log(i.level,\"[\"+n+\"] \"+i.message)}catch(s){e.log(\"ERROR\",\"[\"+n+\"] \"+s)}},logMessageProtocolCallback:function(t,n){return function(r){e.logMessageProtocol(r,n),typeof t==\"function\"&&t(r)}},error:function(e){return e},remote:function(e,t,n,r){h.remote(e,t,n,r)},setRemoter:function(e){h=e},restoreDefaultRemoter:function(){h=c},onLoad:function(e){var t=chaordic.lib.jQuery,n=!1;(document.attachEvent?document.readyState===\"complete\":document.readyState!==\"loading\")?(e(),n=!0):(t(document).on(\"DOMContentLoaded\",function(){n||(e(),n=!0)}),t(document).on(\"readystatechange\",function(){!n&&(document.readyState===\"loaded\"||document.readyState===\"complete\")&&(e(),n=!0)}))},ensure:function(e,t){var n=[],r=0,i=e.length,s=function(){var e=0;while(e<i){if(!n[e])return;e+=1}o(t,0)},u=function(t){e[t](function(){n[t]=!0,s()})};if(i===0){o(t,0);return}while(r<i)n[r]=!1,u(r),r+=1},readCookie:function(){var t=chaordic.readCookie(e.CHAORDIC_COOKIE);if(t)try{var n=r.JSON.parse(t);if(Object.prototype.toString.call(n)===\"[object Object]\")return n;chaordic.Base.deleteCookie(),chaordic.Base.log(\"WARN\",\"Cookie isn't an object: \"+t)}catch(i){chaordic.Base.deleteCookie(),chaordic.Base.log(\"WARN\",\"Failed to parse chaordic cookie: \"+t+\" (\"+(i.message||i)+\")\")}return{}},deleteCookie:function(){chaordic.deleteCookie(e.CHAORDIC_COOKIE)},writeCookie:function(t){chaordic.writeCookie(e.CHAORDIC_COOKIE,r.JSON.stringify(t))},readLocalStorage:function(){var e=chaordic.getLocalStorage();return e?JSON.parse(e.getItem(\"LINX_ONSITE_CLICK_WIDGET\")||\"{}\"):{}},deleteLocalStorage:function(){var e=chaordic.getLocalStorage();e&&e.removeItem(\"LINX_ONSITE_CLICK_WIDGET\")},writeLocalStorage:function(e){var t=chaordic.getLocalStorage();t&&t.setItem(\"LINX_ONSITE_CLICK_WIDGET\",JSON.stringify(e||{clicks:[]}))},setLogLevel:function(t){var n=e.readCookie();n.logLevel=chaordic.Config.LOG_LEVEL=t||\"NONE\",e.writeCookie(n)},createMessageFrame:function(){var e=function(t){var n=r.jQuery(\"#chaordic-remote\",document);if(n.length===0){var i=document.getElementsByTagName(\"body\")[0]||document.documentElement,s=chaordic.Config,o=\"/static/postmediator\",u=s.PROTOCOL+s.DYNAMIC_HOST+o,a=document.createElement(\"iframe\");a.src=u,a.id=\"chaordic-remote\",a.scrolling=\"no\",a.frameBorder=\"0\",a.style.display=\"none\",a.allowTransparency=\"true\",i.insertBefore(a,i.firstChild),r.jQuery(a).load(function(){e=function(e){e(a)},t(a)})}else n.load(function(){t(n[0])})};return function(t){e(t)}}(),createFrame:function(e,t){var n=document.createElement(\"iframe\"),r='<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><title>chaordic</title>%IE_DOCUMENT_DOMAIN%</head><body style=\"margin: 0; border: 0; background-color: transparent;\"></body></html>',i=function(){var t=!1;try{t=n.contentWindow.document.getElementsByTagName(\"title\")[0].innerHTML===\"chaordic\"}catch(r){}t?e(n):o(i)};typeof t==\"undefined\"&&(t=document.getElementsByTagName(\"body\")[0]||document.documentElement),n.scrolling=\"no\",n.frameBorder=\"0\",n.style.display=\"none\",n.allowTransparency=\"true\",n.name=\"chaordic-\"+(new Date).getTime();if(!function(e){return e&&e[1]}(navigator.userAgent.match(/MSIE\\s([^;]*)/))||String(document.domain)===String(location.hostname)){t.insertBefore(n,t.firstChild);var s=5,u=function(){if(n.contentWindow&&s>0){s--;var e=n.contentWindow.document;e.write(r.replace(/\\%IE_DOCUMENT_DOMAIN\\%/,\"\")),e.close(),i()}else setTimeout(u,100)};u()}else{var a=r.replace(/\\%IE_DOCUMENT_DOMAIN\\%/,'<script>document.domain = \"'+document.domain+'\";</script>').replace(/\\//g,\"\\\\/\").replace(/\\\"/g,'\\\\\"').replace(/\\\\/g,\"\\\\\\\\\");n.src=\"javascript:'<script>window.onload=function (){document.write(\\\\'\"+a+\"\\\\');document.close();};</script>'\",t.insertBefore(n,t.firstChild),i()}}},chaordic.LOGGED_REMOTES=[],chaordic.Base=e}(),function(){var e={vertical:!1,animate:!0,loopScroll:!1,dynamicSize:!0,dynamicMode:\"box\",minCellSize:250,maxPages:undefined,maxVisibleItems:undefined,itemsPerPage:undefined,freeMode:!1,paginationSize:undefined,useDefaultPagination:undefined},t=function(t,n,r){var i=chaordic.lib.jQuery,s=this;this.options={},chaordic.Object.merge(this.options,e),this.eventsCallbacks={},n&&(chaordic.Object.merge(this.options,n),this.options.dynamicMode!==\"box\"&&this.options.dynamicMode!==\"margin\"&&(this.options.dynamicMode=\"box\")),typeof this.options.itemsPerPage==\"number\"&&this.options.itemsPerPage>0&&(this.options.dynamicMode=\"box\",this.options.maxVisibleItems=1);var o=this.carouselDiv=i(t);return this.scrollFunction=this.options.vertical===!0?\"scrollTop\":\"scrollLeft\",this.getTouchPos=this.options.vertical===!0?this._getTouchPositionY:this._getTouchPositionX,this.items=[],this.frame=i('<div class=\"carousel-padding\"><div class=\"carousel-list\" style=\"position: relative; width: 100%; height: 100%; overflow: hidden;\"><ul class=\"carousel-products\"></ul></div></div>'),this.list=this.frame.find(\".carousel-products\"),this.scrollList=this.frame.find(\".carousel-list\"),this.useDefaultPagination=this.options.useDefaultPagination,this.paginationSize=this.options.paginationSize,this.useDefaultPagination&&this.paginationSize!==1&&(this.useDefaultPagination=!1),o.append(this.frame),this.frame.css(\"height\",\"100%\"),this.page=1,this.cellSize=0,this.visibleItems=0,this.referenceItemIndex=0,this.previousReferenceItemPage=1,this.configureTouchScroll(),this.chaordicDiv=r,this};t.prototype.configureTouchScroll=function(){var e=this,t=this.frame.find(\".carousel-list\"),n=0,r,i,s;t.on(\"touchstart\",function(n){r=e.getTouchPos(n),s=t[e.scrollFunction]()}),this.on(\"paginationEnd\",function(){n=t[e.scrollFunction]()}),t.on(\"touchmove\",function(n){if(e.options.vertical){if(!(chaordic.lib.jQuery(window).width()>480))return;n.preventDefault()}e.list.find(\"> li\").slice(0,e.getTotalPages()*e.visibleItems).css(\"visibility\",\"visible\");var i=e.options.freeMode?s:e.getScrollOffset(),o=i+(r-e.getTouchPos(n)),u={top:i-e.frame.height(),bottom:i+e.frame.height(),left:i-e.frame.width(),right:i+e.frame.width()};!e.options.vertical&&u.left<=o&&o<=u.right?t.scrollLeft(o):e.options.vertical&&u.top<=o&&o<=u.bottom&&t.scrollTop(o)}),this.on(\"resize\",function(){n=t[e.scrollFunction]()}),t.on(\"touchend\",function(r){var i=e.page,s=e.page,o=t[e.scrollFunction](),u=o-n,a=Math.abs(u)/e.cellSize,f=.24;if(a<f)return;if(e.options.freeMode){var l=Math.round(o/e.cellSize);o=l*e.cellSize;var c={};c[e.scrollFunction]=o,t.animate(c,300,function(){o+=1,i=Math.ceil(o/(e.visibleItems*e.cellSize)),i<s&&l<=e.visibleItems*i-e.visibleItems?e.gotoPage(i):i>s&&e.gotoPage(i)})}else a>f&&(i=u>0?i+1:i-1,i>e.getTotalPages()&&i--,e.gotoPage(i))})},t.prototype._getTouchPositionX=function(e){return e.originalEvent.changedTouches[0].pageX},t.prototype._getTouchPositionY=function(e){return e.originalEvent.changedTouches[0].pageY},t.prototype.on=function(e,t){this.eventsCallbacks[e]||(this.eventsCallbacks[e]=[]),this.eventsCallbacks[e].push(t)},t.prototype.getVisibleElements=function(){if(this.options.dynamicSize===!1)return this.items.slice();var e=(this.page-1)*this.visibleItems;return e>0&&e+this.visibleItems>this.items.length&&(e=this.items.length-this.visibleItems),this.items.slice(e,e+this.visibleItems)},t.prototype.getScrollOffset=function(){var e;return this.page===this.getTotalPages()?(this.items.length-this.visibleItems)*this.cellSize:(e=(this.paginationSize||this.visibleItems)*(this.page-1)*this.cellSize,e)},t.prototype.gotoPage=function(e){var t,n,r,i;t=this;if(e<1||e>this.getTotalPages())return;n=this.page,this.page=e,t.list.find(\"> li\").slice(0,t.getTotalPages()*t.visibleItems).css(\"visibility\",\"visible\");if(this.eventsCallbacks.paginationStart)for(i=0;i<this.eventsCallbacks.paginationStart.length;i++)this.eventsCallbacks.paginationStart[i](e,n);if(this.options.animate===!0)r={},r[this.options.vertical?\"scrollTop\":\"scrollLeft\"]=this.getScrollOffset(),this.scrollList.animate(r,{complete:function(){if(t.eventsCallbacks.paginationEnd)for(i=0;i<t.eventsCallbacks.paginationEnd.length;i++)t.eventsCallbacks.paginationEnd[i](e,n);t.fixClasses()}});else{this.scrollList[this.scrollFunction](this.getScrollOffset());if(this.eventsCallbacks.paginationEnd)for(i=0;i<this.eventsCallbacks.paginationEnd.length;i++)this.eventsCallbacks.paginationEnd[i](e,n)}this.referenceItemIndex=(this.page-1)*(this.paginationSize||this.visibleItems)},t.prototype.getTotalPages=function(){var e;return this.paginationSize?e=Math.ceil((this.items.length-this.visibleItems)/this.options.paginationSize)+1:e=Math.ceil(this.items.length/this.visibleItems),typeof this.options.maxPages==\"number\"&&e>this.options.maxPages&&(e=this.options.maxPages),e},t.prototype.nextPage=function(){this.options.loopScroll===!0&&this.page===this.getTotalPages()?this.gotoPage(1):this.gotoPage(this.page+1)},t.prototype.previousPage=function(){this.options.loopScroll===!0&&this.page-1===0?this.gotoPage(this.getTotalPages()):this.gotoPage(this.page-1)},t.prototype.getPaginationInfo=function(){return{pageItems:this.visibleItems,pageIndex:this.page-1}};var n=function(e){var t,n,r=chaordic.lib.jQuery;return typeof this.options.itemsPerPage==\"number\"&&this.options.itemsPerPage>0?(n=r('<div class=\"carousel-item\">'+e+\"</div>\"),this.lastPage&&this.lastPageLength<this.options.itemsPerPage?(t=this.lastPage,this.lastPageLength++):(this.lastPageLength=1,t=this.lastPage=r(\"<li></li>\"),this.items.push(t),this.list.append(t)),t.append(n),n):(t=r('<li class=\"carousel-item\"></li>'),t.html(e),this.items.push(t),this.list.append(t),t)};t.prototype.append=function(e){if(this.options.maxPages&&this.items.length>=this.options.maxPages)return;if(chaordic.lib.jQuery.isArray(e)){var t=[];for(var r=0;r<e;r++)t.push(n.call(this,e));return t}return n.call(this,e)},t.prototype.replaceAt=function(e,t){var n=chaordic.lib.jQuery(\"<li></li>\"),r=this.items[e];return n.html(t),r.replaceWith(n),this.items.splice(e,1,n),n.attr(\"style\",r.attr(\"style\")),n},t.prototype.fixClasses=function(){var e=this.getVisibleElements(),t=this.paginationSize||this.visibleItems,n=(this.page-1)*t,r=n+this.visibleItems-1,i=chaordic.lib.jQuery;r=r>this.items.length-1?this.items.length-1:r,this.page===this.getTotalPages()&&this.page>1&&(n=this.items.length-this.visibleItems);var s=this.list.find(\">li\");s.removeClass(\"last-visible\"),s.removeClass(\"first-visible\"),this.page>1&&s.slice(0,n).css(\"visibility\",\"hidden\"),s.slice(n,r+1).css(\"visibility\",\"visible\"),this.page!==this.getTotalPages()&&s.slice(r+1).css(\"visibility\",\"hidden\"),s.eq(n).addClass(\"first-visible\"),s.eq(r).addClass(\"last-visible\"),chaordic.isMobile&&(s.on(\"touchstart\",function(e){i(\".touch-active\",s).removeClass(\"touch-active\"),i(this).addClass(\"touch-active\")}),s.on(\"touchend\",function(e){i(this).removeClass(\"touch-active\")}))},t.prototype.resize=function(){var e,t,n,r,i,s,o,u,a=chaordic.lib.jQuery;if(this.items.length===0)return;if(this.previousItemLength===this.items.length&&this.options.dynamicSize===!1)return;e=this,t=this.options.vertical===!0,n=t?a(this.items[0]).outerHeight():a(this.items[0]).outerWidth();var f=function(){if(e.eventsCallbacks.resize)for(o=0;o<e.eventsCallbacks.resize.length;o++)e.eventsCallbacks.resize[o]()};if(this.options.dynamicSize===!1){this.list.css(t?\"height\":\"width\",n*this.items.length+\"px\"),f();return}this.frame.css({\"max-width\":chaordic.lib.jQuery(this.chaordicDiv||window).width()-(parseInt(this.frame.css(\"padding-left\"))+parseInt(this.frame.css(\"padding-right\")))}),r=t?this.frame.height():this.frame.width();var l=this.options.maxVisibleItems,c=this.options.minVisibleItems;this.options.dynamicMode===\"box\"?(this.visibleItems=Math.floor(r/this.options.minCellSize)||1,l&&l<this.visibleItems&&(this.visibleItems=l),c&&c>this.visibleItems&&(this.visibleItems=c),n=this.cellSize=Math.floor(r/this.visibleItems),this.list.find(\"> li\").width(this.cellSize+\"px\")):(n>r&&(n=r),this.visibleItems=Math.floor(r/n),l&&l<this.visibleItems&&(this.visibleItems=l),c&&c>this.visibleItems&&(this.visibleItems=c),i=Math.floor((r-this.visibleItems*n)/(this.visibleItems*2)),this.cellSize=n+i*2,this.list.find(\"> li\").css(\"margin\",t?i+\"px 0\":\"0 \"+i+\"px\")),s=Math.ceil((this.referenceItemIndex+1)/this.visibleItems),this.previousReferenceItemPage!==s&&(this.page=this.previousReferenceItemPage=s),this.page>this.options.maxPages&&(this.page=this.previousReferenceItemPage=this.options.maxPages,this.referenceItemIndex=(this.page-1)*this.page.visibleItems),this.list.css(t?\"height\":\"width\",this.cellSize*this.items.length+\"px\"),this.scrollList[this.scrollFunction](this.getScrollOffset()),this.paginationSize=this.options.paginationSize,this.paginationSize>this.visibleItems&&(this.paginationSize=this.visibleItems),this.fixClasses(),f(),this.options.dynamicSize!==!1&&!this.__firstResize&&(u=this.frame[0].ownerDocument.defaultView||this.frame[0].ownerDocument.parentWindow,chaordic.lib.jQuery(u).resize(function(){e.resize.call(e)}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){e.resize.call(e)}),this.__firstResize=!0)},chaordic.Carousel=t}(),function(){var e=\"chaordic-remote-collect\",t=window.attachEvent&&!window.addEventListener,n,r;window.addEventListener?(n=function(e){window.addEventListener(\"message\",e,!1)},r=function(e){window.removeEventListener(\"message\",e,!1)}):(n=function(e){window.attachEvent(\"onmessage\",e)},r=function(e){window.detachEvent(\"onmessage\",e)});var i=function(e,t,n){var r=1,i=chaordic.Config,s=i.PROTOCOL+i.EVENT_HOST,o;if(e.origin!==s)return;try{o=JSON.parse(e.data)}catch(u){var a=new Error(\"Failed to send message\");return a.event=e,n(a)}if(o!==undefined&&t===o.messageId&&o.state===r)try{var f=JSON.parse(o.data);return f.ok?n(null,f):n(f)}catch(u){n(null,o.data)}},s=function(){var s=[],o=[];return{baseUrl:function(){return chaordic.Config.PROTOCOL+chaordic.Config.EVENT_HOST},post:function(e,t,u){var a=this;return this.getFrame(function(f){var l=a.formatPostData(e,t,u);f.contentWindow.postMessage(chaordic.lib.JSON.stringify(l),a.baseUrl()),n(function(e){i(e,l.messageId,function(e,t){var n;r(i);if(e){for(n=0;n<o.length;n++)o[n].call(a,e);return}for(n=0;n<s.length;n++)s[n].call(a,t)})})}),{success:function(e){return typeof e==\"function\"&&s.push(e),this},error:function(e){return typeof e==\"function\"&&o.push(e),this}}},formatPostData:function(e,n,r){r=r||{},t&&(r.accept=\"text/plain\"),typeof n!=\"string\"&&(n=chaordic.lib.JSON.stringify(n),r[\"Content-type\"]=\"application/json\");var i={messageId:(new Date).getTime().toString()+\"-\"+Math.random(),url:e,data:n,headers:r,method:\"POST\"};return i},getFrame:function(t){var n=document.getElementById(e);if(n){if(n.loaded===!0)return t(n);n.addEventListener(\"load\",function(){return n.loaded=!0,t(n)});return}n=document.createElement(\"iframe\"),n.id=e,n.src=this.baseUrl()+\"/static/postmediator\",n.scrolling=\"no\",n.frameBorder=\"0\",n.style.display=\"none\",n.allowTransparency=\"true\",n.loaded=!1,n.addEventListener(\"load\",function(){return n.loaded=!0,t(n)});var r=document.getElementsByTagName(\"body\")[0]||document.documentElement;r.insertBefore(n,r.firstChild)}}};chaordic.CollectServer=s}(),function(){function e(e,t){this.data=e,this.id=e.id,this.name=e.name,this.images=e.images,this.productViews=t}chaordic.Collection=e}(),function(){var e=function(e){e=e||{},this.options={decimalPlaces:typeof e.decimalPlaces==\"number\"?e.decimalPlaces:2,decimalPoint:typeof e.decimalPoint==\"string\"?e.decimalPoint:\",\",thousandsSeparator:typeof e.thousandsSeparator==\"string\"?e.thousandsSeparator:\".\",currencySymbol:typeof e.currencySymbol==\"string\"?e.currencySymbol:\"R$ \"}};e.prototype.format=function(e){e=e.toFixed(this.options.decimalPlaces);var t=e.split(\".\"),n=t[0],r=Number(t[1]||0),i=\"\";r+=Math.pow(10,this.options.decimalPlaces),r=r.toFixed().substr(1);if(this.options.thousandsSeparator.length){for(var s=n.length-1,o=0;s>-1;--s)o++%3===0&&i&&(i=this.options.thousandsSeparator+i),i=n.charAt(s)+i;i.charAt(0)===this.options.thousandsSeparator&&(i=i.substr(1))}else i=n;return i+=this.options.decimalPoint+r,this.options.currencySymbol+i},e.parseBRLNumber=function(e){if(typeof e==\"string\"){var t=e.match(/\\D*([\\d\\.]+,\\d+)/);return t?parseFloat(t[1].replace(\".\",\"\").replace(\",\",\".\")):void 0}return e},e.format=function(e){var t=chaordic.Currency.defaultFormatter;return t?t.format(e):e},chaordic.Currency=e}(),function(){\"use strict\";var e=function(e,t,n){var r=chaordic.lib.jQuery,i=0;return n=n||0,r.Deferred(function(r){var s=function(){i===0?o():setTimeout(o,n)},o=function(){t().done(function(){r.resolve.apply(this,arguments)}).fail(function(){i<e?(i++,s()):r.reject.apply(this,arguments)})};s()})};chaordic.Deferred={retriable:e}}(),function(){var e={isInViewport:function(e,t){t=t||1;var n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=r-n.top;n.top>r||n.bottom<0?i=0:n.top<0&&(i=n.bottom);var s=i/n.height;return s>=t},isNearViewport:function(e,t){t=t||0;var n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;return n.top<0?t>-n.bottom:r+t>n.top}};chaordic.Element=e}(),function(){var e={debounce:function(e,t,n){var r,i,s,o,u;return function(){s=this,i=arguments,o=new Date;var a=function(){var f=new Date-o;f<t?r=setTimeout(a,t-f):(r=null,n||(u=e.apply(s,i)))},f=n&&!r;return r||(r=setTimeout(a,t)),f&&(u=e.apply(s,i)),u}}};chaordic.Function=e}(),function(){\"use strict\";chaordic.Http={APPLICATION_JSON:\"application/json\",CONTENT_TYPE:\"Content-type\"}}(),function(){var e=function(e){try{return decodeURIComponent(e)}catch(t){if(window.unescape)return window.unescape(e)}},t={getParams:function(n){var r={},i=typeof n==\"string\"?t.getSearch(n):n.search;return String.prototype.replace.call(i,/([^=&?]+)=([^&]*)/g,function(t,n,i){if(r.hasOwnProperty(n)){var s=r[n];chaordic.lib.jQuery.isArray(s)?s.push(e(i)):r[n]=[s,e(i)]}else r[n]=e(i)}),r},getSearch:function(e){var t=String(e).split(\"?\");return t.shift(),\"?\"+t.join(\"?\")}};chaordic.Location=t}(),function(){function e(e){var n,r=t();r?(n=chaordic.Object.copy(r),n.sourceMeta=\"linxImpulse.legacyMeta\"):n=chaordic.MetaTranslator.translate(e),chaordic.meta=n}function t(){return window.linxImpulse&&window.linxImpulse.legacyMeta}chaordic.MetaInitializer={initialize:e}}(),function(){var e,t,n=function(n){var s=chaordic.Object.copy(n);return e=chaordic.Object,t=chaordic.lib.jQuery,chaordic.Config.USE_COLLECT_API&&(r(s),i(s)),s},r=function(t){typeof t.page==\"string\"&&(t.page={name:t.page}),e.moveFrom(t,\"selectedSpecs\").to(t.page),e.moveFrom(t,\"tags\").to(t.page),e.moveFrom(t,\"categories\").to(t.page),e.moveFrom(t,\"salesChannel\").to(t.page)},i=function(e){var t={cart:s,transaction:o,search:u,product:a},n=t[e.page.name];n&&n(e)},s=function(e){e.cart={},e.items&&(e.cart.items=t.map(e.items,f)),delete e.items},o=function(n){n.transaction={},e.moveFrom(n,\"id\").to(n.transaction),n.items&&(n.transaction.items=t.map(n.items,f)),n.page.name=\"confirmation\",delete n.items},u=function(n){n.search={},e.moveFrom(n,\"query\").to(n.search),n.items&&(n.search.items=t.map(n.items,l)),delete n.items},a=function(t){t.product=t.product||{},e.moveFrom(t,\"pid\").to(t.product,\"id\"),e.moveFrom(t,\"price\").to(t.product),e.moveFrom(t,\"status\").to(t.product),delete t.sku},f=function(t){var n={product:{}};return e.copyFrom(t,\"pid\").to(n.product,\"id\"),e.copyFrom(t,\"sku\").to(n.product),e.copyFrom(t,\"price\").to(n.product),e.copyFrom(t,\"quantity\").to(n),n},l=function(t){var n={};return e.copyFrom(t,\"pid\").to(n,\"id\"),e.copyFrom(t,\"sku\").to(n),e.copyFrom(t,\"price\").to(n),e.copyFrom(t,\"quantity\").to(n),n};chaordic.MetaTranslator={translate:n}}(),function(){var e={},t=chaordic.Arrays,n=function(e){return e.id+chaordic.onsite.flattenSpecs(e.selectedSpecs||{})};chaordic.NoRepeatRecs={isVisible:function(t){return Boolean(e[n(t)])},markVisible:function(t){e[n(t)]=!0},markAllVisible:function(e,t){var n,r=t?Math.min(e.length,t):e.length;for(n=0;n<r;n++)chaordic.NoRepeatRecs.markVisible(e[n])},resetVisibles:function(){e={}}};var r=function(e){var n=e.enabled&&e.result&&e.result.displays;return n&&n.length&&t.reduce(n,function(e,t){return e&&t.recs&&t.recs.length},!0)};chaordic.NoRepeatRecs.SET_UB_VISIBLE_INTERCEPTOR=function(e){e.ok&&e.widgets&&chaordic.Object.forEachOwnProperty(e.widgets,function(e){if((e.feature===\"UltimateBuy\"||e.feature===\"WishList\")&&r(e)){var t=e.probablyVisibleLength||e.minProducts;chaordic.NoRepeatRecs.markAllVisible(e.result.displays[0].recs,t)}})}}(),function(){var e=function(){var e={},t=function(n,r){return e[n]=r,t};return t.build=function(){return e},t},t={merge:function(e,n,r){if(!t.isObject(e)||!t.isObject(n))return;if(r)for(var i,s=r.length-1;s>-1;s-=1)n.hasOwnProperty(i=r[s])&&(e[i]=n[i]);else t.forEachOwnProperty(n,function(n,r){t.isObject(e[r])&&t.isObject(n)?t.merge(e[r],n):e[r]=n})},defaults:function(e,n){t.forEachOwnProperty(n,function(t,n){e[n]===void 0&&(e[n]=t)})},forEachProperty:function(e,t,n){for(var r in e)t.call(n,e[r],r,e)},forEachOwnProperty:function(e,t,n){for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)},copy:function(e){var n,r;if(null===e||typeof e!=\"object\")return e;if(e instanceof Date)return n=new Date,n.setTime(e.getTime()),n;if(t.isArray(e)){n=[];for(var i=0,s=e.length;i<s;i++)n[i]=t.copy(e[i]);return n}if(t.isObject(e)){n={};for(r in e)e.hasOwnProperty(r)&&(n[r]=t.copy(e[r]));return n}throw new Error(\"Unable to copy obj! Its type isn't supported.\")},keys:function(e){\"use strict\";if(Object.keys)return Object.keys(e);var t=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable(\"toString\"),r=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],i=r.length;if(typeof e==\"function\"||typeof e==\"object\"&&e!==null){var s=[],o,u;for(o in e)t.call(e,o)&&s.push(o);if(n)for(u=0;u<i;u++)t.call(e,r[u])&&s.push(r[u]);return s}throw new TypeError(\"Object.keys called on non-object\")},bind:function(e,t){return function(){t.apply(e,arguments)}},create:function(e){var t=function(){};t.prototype=e;var n=new t;return n.constructor=t,n},omitUndefineds:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==undefined&&(t[n]=e[n]);return t},isObject:function(e){return Object.prototype.toString.apply(e)===\"[object Object]\"},isArray:function(e){return Object.prototype.toString.apply(e)===\"[object Array]\"},copyFrom:function(e,t){return{to:function(n,r){e[t]&&(n[r||t]=e[t])}}},moveFrom:function(e,t){return{to:function(n,r){e[t]&&(n[r||t]=e[t]),delete e[t]}}},isDate:function(e){return Object.prototype.toString.call(e)===\"[object Date]\"}};chaordic.Object=t}(),function(){\"use strict\";function e(e,t){w=!1;var n=E.shift();n&&r(n.profile,n.options)}function t(e,t){E.push({profile:e,options:t})}function n(t,n){n.forEach(function(n){if(!t.hasOwnProperty(n))throw e(),new TypeError('missing \"'+n+'\" param')})}function r(t,r){var i={};w=!0,typeof t==\"object\"?r=t:(c(t),i=x[t]),r=g.extend(!0,{},b,i,r),n(r,[\"url\",\"products\",\"transformResult\",\"mode\"]),l(r.mode);var s=r.mode,u=r.url,h=r.callForEachSku?f(r.products):r.products,p=r.separator||\",\",d=r.idIdentifier||\"id\",v=r.callForEachSku&&(r.skuIdentifier||\"sku\"),m=S[s](u,h,p,r.customizeURL),y=m.map(function(e){return a({requestData:e,retries:r.retries,retryTimeout:r.retryTimeout,doRequest:r.doRequest,requestParams:r.requestParams,transformResult:r.transformResult,onComplete:r.onComplete,onFailure:r.onFailure,trackEvent:r.trackEvent,idIdentifier:d,skuIdentifier:v})}),E=r.onFinish||o;g.when.apply(g,y).always(function(){e(),E()})}function i(e,t,n,r){var i=[],s=[];t.forEach(function(e){s.push(e.id),e.sku&&i.push(e.sku)});var o=e.replace(\"%ID\",s.join(n));return o=o.replace(\"%SKU\",i.join(n)),typeof r==\"function\"&&(o=r(o,t)),[{url:o,input:t}]}function s(e,t,n,r){return t.map(function(t){var n=e.replace(\"%ID\",t.id),i=t.sku||\"\";return n=n.replace(\"%SKU\",i),typeof r==\"function\"&&(n=r(n,t)),{url:n,input:t}})}function o(){}function u(e){return e=parseInt(e),isFinite(e)?e:3}function a(e){var t=e.onComplete||p(\"missing onComplete callback\"),n=e.onFailure||p(\"missing onFailure callback\"),r=u(e.retries),i=e.retryTimeout,s=e.requestParams||{},o=e.doRequest||g.ajax,a=e.requestData.url,f=e.requestData.input,l=g.Deferred(),c=e.trackEvent!==!1,h=e.idIdentifier,v=e.skuIdentifier;return chaordic.Deferred.retriable(r,function(){var e={url:a,timeout:3e3,beforeSend:function(){this.startTime=(new Date).getTime()}};return chaordic.Object.merge(e,s),o(e)},i).always(function(){if(c){var e=(new Date).getTime()-this.startTime;chaordic.event.Tron.incrementRta(\"price-api.elapsedTime.count\"),chaordic.event.Tron.incrementRta(\"price-api.elapsedTime.total\",e),chaordic.event.Tron.percentilRta(\"price-api.elapsedTime\",e,[50,90])}}).done(function(r){c&&chaordic.event.Tron.incrementRta(\"price-api.success\"),r=e.transformResult(r,f),Array.isArray(f)&&Array.isArray(r)&&d(f,r,n,h,v),t(r,f),l.resolve()}).fail(function(e){if(c){var t=\"price-api.fail\";e.status&&(t+=\".\"+e.status),chaordic.event.Tron.incrementRta(t)}n(e,f),l.resolve()}),l}function f(e){var t=[];return e.forEach(function(e){Array.isArray(e.skus)&&e.skus.length>0?e.skus.forEach(function(n){t.push({id:e.id,sku:n.sku})}):t.push({id:e.id})}),t}function l(t){if(!y.hasOwnProperty(t))throw e(),new TypeError('invalid \"mode\" param')}function c(t){if(!x.hasOwnProperty(t))throw e(),new TypeError('invalid \"profile\" param')}function h(t){if(typeof t!=\"object\")throw e(),new TypeError(\"options param must be an object\")}function p(e){return function(){chaordic.Base.log(\"WARN\",e)}}function d(e,t,n,r,i){var s=[],o=[];t.forEach(function(e){if(i){if(e[i]&&e[r]){var t=e[r],n=e[i];s[t]||(s[t]=[]),s[t][n]=e}}else e[r]&&(s[e[r]]=e)}),e.forEach(function(e){i?e[r]&&e[i]&&(!s[e[r]]||!s[e[r]][e[i]])&&o.push(e):e[r]&&!s[e[r]]&&o.push(e)}),o.length>0&&n(null,o)}var v=\"one-at-a-time\",m=\"all-at-once\",g,y={};y[v]=!0,y[m]=!0;var b,w=!1,E=[],S={};S[v]=s,S[m]=i;var x,T={init:function(e){h(e),g=chaordic.lib.jQuery,b=e.default||{},x={};for(var t in e)e.hasOwnProperty(t)&&t!==\"default\"&&(x[t]=e[t]);chaordic.event.Tron.setEnabled(!0),this.active=!0},get:function(e,n){w?t(e,n):r(e,n)}};chaordic.PriceApi=T}(),function(){var e=function(e,t){var n=null,r=null,i=1e3,s=60*i,o=60*s,u=24*o,a=7*u,f=chaordic.Config.THEME_LANG.split(\"-\")[0];t=t||{};switch(f){case\"es\":t.minuteAgo=t.minuteAgo||\"Hace %i minuto\",t.minutesAgo=t.minutesAgo||\"Hace %i minutos\",t.hourAgo=t.hoursAgo||\"Hace %i hora\",t.hoursAgo=t.hoursAgo||\"Hace %i hora\",t.dayAgo=t.daysAgo||\"Hace %i día\",t.daysAgo=t.daysAgo||\"Hace %i días\",t.weekAgo=t.weeksAgo||\"Hace %i semana\",t.weeksAgo=t.weeksAgo||\"Hace %i semanas\";break;default:t.minuteAgo=t.minuteAgo||\"%i minuto atrás\",t.minutesAgo=t.minutesAgo||\"%i minutos atrás\",t.hourAgo=t.hoursAgo||\"%i hora atrás\",t.hoursAgo=t.hoursAgo||\"%i horas atrás\",t.dayAgo=t.daysAgo||\"%i dia atrás\",t.daysAgo=t.daysAgo||\"%i dias atrás\",t.weekAgo=t.weeksAgo||\"%i semana atrás\",t.weeksAgo=t.weeksAgo||\"%i semanas atrás\"}return e<=s?(r=1,n=t.minuteAgo):e<o?(r=e/s,n=t.minutesAgo):e<2*o?(r=e/o,n=t.hourAgo):e<u?(r=e/o,n=t.hoursAgo):e<2*u?(r=e/u,n=t.dayAgo):e<a?(r=e/u,n=t.daysAgo):e<2*a?(r=e/a,n=t.weekAgo):(r=e/a,n=t.weeksAgo),n=n.replace(\"%i\",Math.floor(r)),n},t=function(e){e&&(chaordic.Object.merge(this,e),this.update())};t.prototype.parseBRLPrice=function(){var e=chaordic.Currency.parseBRLNumber;this.price=typeof this.price==\"string\"?e(this.price):this.price,this.oldPrice=typeof this.oldPrice==\"string\"?e(this.oldPrice):this.oldPrice,this.installment&&typeof this.installment.price==\"string\"&&(this.installment.price=e(this.installment.price))},t.prototype.updateDiscount=function(){var e,t=this.price,n=this.oldPrice;t&&n?this.discount=Math.round((n-t)*100/n):this.discount=void 0},t.prototype.expandPrices=function(){var e=chaordic.Currency.format;this.oldPrice&&this.price>=this.oldPrice||!this.oldPrice?delete this.oldPrice:this.oldPrice&&(this.oldPriceString=e(this.oldPrice)),this.price&&(this.priceString=e(this.price)),this.installment&&this.installment.price&&(this.installment.priceString=e(this.installment.price))},t.prototype.update=function(){this.age&&(this.ageText=e(this.age)),this.parseBRLPrice(),this.updateDiscount(),this.expandPrices()},t.prototype.expandProductUrl=function(e,t){var n=/%THUMBNAIL_WIDTH%/g,r=/%THUMBNAIL_HEIGHT%/g,i=/%IMAGE_NAME%/g,s=/%PRODUCT_ID%/g,o=/%DETAIL_URL%/g,u=this,a=t.product;s.test(a)&&(a=a.replace(s,u.id)),o.test(a)&&(a=a.replace(o,u.url));var f=u.url;u.url.indexOf(\"http\")!==0&&(u.url=chaordic.window.location.protocol+(a.indexOf(\"//\")===0?\"\":\"//\")+a);var l=chaordic.window.location.protocol===\"https:\"&&t.image.https?t.image.https:t.image.http,c;for(var h in u.images){if(!u.images.hasOwnProperty(h))continue;var p=u.images[h];if(p.indexOf(\"http\")===0)continue;c=l,s.test(c)&&(c=c.replace(s,u.id)),o.test(c)&&(c=c.replace(o,f)),i.test(c)&&(chaordic.window.location.protocol===\"https:\"&&u.imagesSsl&&typeof u.imagesSsl==\"object\"&&(u.imagesSsl[h]||u.imagesSsl[\"default\"])&&(p=u.imagesSsl[h]||u.imagesSsl[\"default\"]),c=c.replace(i,p)),n.test(c)&&(c=c.replace(n,e.thumbnailWidth)),r.test(c)&&(c=c.replace(r,e.thumbnailHeight)),c.indexOf(\"http\")===0?u.images[h]=c:u.images[h]=chaordic.window.location.protocol+(c.indexOf(\"//\")===0?\"\":\"//\")+c}},chaordic.Product=t}(),function(){var e,t;window.addEventListener?(e=function(e){window.addEventListener(\"message\",e,!1)},t=function(e){window.removeEventListener(\"message\",e,!1)}):(e=function(e){window.attachEvent(\"onmessage\",e)},t=function(e){window.detachEvent(\"onmessage\",e)});var n={RECEIVED:0,DONE:1,ERROR:-1},r=function(e,t,n){var r=this;this.url=e,this.params=n,this.options=t,this.callback=[],this.errback=[];var i=function(e){for(var t=0;t<r.callback.length;t++)r.callback[t].call(r,e)},s=function(e){for(var t=0;t<r.errback.length;t++)r.errback[t].call(r,e)};t.method===\"post\"?this.framePost(e,n,i,s):this.jsonp(e,n,i,s)};r.prototype.jsonp=function(e,t,n,r){chaordic.lib.jQuery.ajax({url:e,data:{q:chaordic.String.escapeNonAscii(chaordic.lib.JSON.stringify(t))},async:!0,dataType:\"jsonp\",traditional:!0,timeout:t.timeout||null}).done(function(e){e&&e.ok?n.call(this,e):r.call(this,e)}).fail(function(e){r.call(this,e)})},r.prototype.framePost=function(r,i,s,o){var u=this.options,a=u.headers,f=chaordic.Config,l=chaordic.lib.JSON,c=(new Date).getTime().toString()+\"-\"+Math.random(),h=f.PROTOCOL+f.DYNAMIC_HOST,p=function(e,n){t(d),e(n)},d=function(e){var t;if(e.origin===h){try{t=l.parse(e.data)}catch(r){var i=new Error(\"Failed to send message\");return i.event=e,p(o,i)}if(t!==undefined&&c===t.messageId&&t.state===n.DONE)try{var u=l.parse(t.data);u.ok?p(s,u):p(o,u)}catch(r){p(s,t.data)}}},v=function(e){var t=chaordic.lib.JSON,n=chaordic.Http;return a&&a[n.CONTENT_TYPE]===n.APPLICATION_JSON?t.stringify(e):\"q=\"+encodeURIComponent(t.stringify(e))};chaordic.Base.createMessageFrame(function(t){var n={messageId:c,url:r,data:v(i),headers:a,method:\"POST\"};t.contentWindow.postMessage(chaordic.lib.JSON.stringify(n),f.PROTOCOL+f.DYNAMIC_HOST),e(d)})},r.prototype.success=function(e){return typeof e==\"function\"&&this.callback.push(e),this},r.prototype.error=function(e){return typeof e==\"function\"&&this.errback.push(e),this};var i=function(e,t,n){this.protocol=e,this.dynamicHost=t,this.headers=n};i.prototype.get=function(e,t){var n=chaordic.Config,i=n[this.protocol]+n[this.dynamicHost];return t=chaordic.Object.copy(t),this._fillMissingInformation(t),new r(i.replace(/\\/$/,\"\")+\"/\"+e.replace(/^\\//,\"\"),this._buildRequestOptions(\"get\"),t)},i.prototype.post=function(e,t,n){return t=chaordic.Object.copy(t),this._fillMissingInformation(t),new r(e,this._buildRequestOptions(\"post\",n),t)},i.prototype._buildRequestOptions=function(e,t){var n=this.headers||{};return chaordic.Object.merge(n,t),{method:e,headers:n}},i.prototype._fillMissingInformation=function(e){var t=chaordic.Object.copy(chaordic.meta);e.apiKey||(e.apiKey=chaordic.Config.API_KEY),!e.user&&t.user&&(e.user=t.user),!e.page&&t.page&&(e.page=t.page),e.host||(e.host=String(location.host)),e.identity||(e.identity=chaordic.Identity),e.testGroup||(e.testGroup=chaordic.Test)},chaordic.Server=i}(),function(){var e={endsWith:function(e,t){return e.lastIndexOf(t)===e.length-t.length},startsWith:function(e,t){return e.indexOf(t)===0},contains:function(e,t){return e.indexOf(t)!==-1},truncate:function(e,t,n){return e?(arguments.length<3&&(n=\"...\"),e.length>t?e.substr(0,t)+n:e):\"\"},capitalize:function(e){return e?e.length===1?e.charAt(0).toUpperCase():e.charAt(0).toUpperCase()+e.substr(1):e},camelize:function(t){if(!t)return t;var n=t.split(/[_\\-\\s]+/),r=\"\",i;for(var s=0;s<n.length;s++)i=n[s],r===\"\"?r+=i:r+=e.capitalize(i);return r===\"\"?t:r},escapeNonAscii:function(e){var t=\"\",n=e.length,r;if(!n)return e;for(r=0;r<n;r+=1){var i=e.charCodeAt(r);if(i<128){t+=e.charAt(r);continue}var s=i.toString(16);while(s.length<4)s=\"0\"+s;t+=\"\\\\u\"+s}return t},isEmpty:function(e){return!e||/^\\s*$/.test(e)},trim:function(){var e=String.prototype.trim||function(){return this.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\")};return function(t){return typeof t==\"string\"?e.call(t):\"\"}}()};chaordic.String=e}(),function(){var e={},t={},n={addTheme:function(t,n,r){n=n||\"default\",e[t]||(e[t]={}),e[t][n]=r},getTheme:function(t,n){return n=n||\"default\",e[t]?chaordic.Object.copy(e[t][n]):undefined},hasTheme:function(t,n){return n=n||\"default\",e[t]&&typeof e[t][n]!=\"undefined\"},addAsset:function(e,n){t[e]=n},hasAsset:function(e){return t.hasOwnProperty(e)},getAsset:function(e){return t[e]}};chaordic.ThemeManager=n}(),function(){var e=function(e,t){var n=t.className.split(\" \");for(var r=0;r<n.length;r++)if(e[n[r]])return e[n[r]];return null},t=function(t,n){var r=chaordic.lib.jQuery,i={},s=function(){r(\"div.chaordic:not(.page-render)\",document).each(function(r,s){var o=e(t,s),u=s.getAttribute(\"data-skin\")||null,a=s.getAttribute(\"data-category\"),f=(o||\"\")+(u||\"\")+(a||\"\");if(o===null||i[f])return;i[f]=!0;if(!chaordic.ThemeManager.hasTheme(o,u))return;var l=chaordic.ThemeManager.getTheme(o,u),c=n[o],h=new c;h.setAssets(chaordic.ThemeManager),a&&(l.requestParams=l.requestParams||{},l.requestParams.categories=[{id:a}],l.requestParams.ignoreCategoryParents=!0),h.initialize(l),s.style.display=\"none\",h.render(s)})},o=!1,u=0,a=function(){s();if(o===!1){u++;var e=u<10?100*u:1e3;setTimeout(a,e)}};(document.attachEvent?document.readyState===\"complete\":document.readyState!==\"loading\")?(s(),o=!0):(a(),r(document).on(\"DOMContentLoaded\",function(){o||(s(),o=!0)}),r(document).on(\"readystatechanged\",function(){!o&&document.readyState===\"loaded\"&&document.readyState===\"complete\"&&(s(),o=!0)}))},n=!1,r={intialize:function(e,r){chaordic.modules.push(function(){if(typeof chaordic.initializeWidgets==\"function\"){if(n===!0)return;n=!0,chaordic.initializeWidgets()}else t(e,r)})}};chaordic.WidgetSetup=r}(),function(){chaordic.collect={}}(),function(){\"use strict\";var e=\"/v7/events/views/\",t=\"/v7/events/productInteractions\",n=function(){var n=function(t,n){var i=t||chaordic.Object.copy(chaordic.getRawMeta());chaordic.Config.COLLECT_API_COMPATIBILITY_ENABLED&&(s(i),o(i),u(i),a(i),f(i));var h=i.page,p=e+h,d={};chaordic.Object.defaults(d,r()),chaordic.Object.defaults(d,n||{}),delete i.page,i.info||(i.info={}),i.info.pageViewId=chaordic.event.Listener.pageViewId,chaordic.Object.defaults(i.info,chaordic.event.Listener.collectNeemuInfo()),chaordic.event.Meta.addReferrerToInfoObj(i.info),l(h,i),c(i),chaordic.collect.Server.post(p,i,d)},i=function(e){var n=chaordic.meta,r={page:n.page.name,info:{pageViewId:chaordic.event.Listener.pageViewId}};chaordic.Object.defaults(r.info,n.info),chaordic.Object.defaults(r.info,chaordic.event.Listener.collectNeemuInfo()),chaordic.event.Meta.addReferrerToInfoObj(r.info),chaordic.Object.defaults(r,e),chaordic.collect.Server.post(t,r)},s=function(e){var t=e.page;if(typeof t!=\"object\")return;e.page=t.name,delete t.name,delete t.timestamp,chaordic.Object.defaults(e,t),e.page===\"confirmation\"&&(e.page=\"transaction\")},o=function(e){var t=e.product;if(typeof t!=\"object\")return;e.pid=t.id,delete e.product},u=function(e){var t=e.cart,n=chaordic.lib.jQuery;if(typeof t!=\"object\")return;delete e.cart,e.items=e.items||n.map(t.items,h),chaordic.Object.defaults(e,t)},a=function(e){var t=e.transaction,n=chaordic.lib.jQuery;if(typeof t!=\"object\")return;delete e.transaction,e.items=e.items||n.map(t.items,h),chaordic.Object.defaults(e,t)},f=function(e){var t=e.search,n=chaordic.lib.jQuery;if(typeof t!=\"object\")return;delete e.search,e.items=e.items||n.map(t.items,function(e){return{pid:e.id,sku:e.sku,price:e.price}}),chaordic.Object.defaults(e,t)},l=function(e,t){t.info||(t.info={});switch(e){case\"product\":case\"search\":chaordic.event.SearchInfo.addSearchInfo(t.info)}},c=function(e){e.searchId&&(e.info=e.info||{},e.info.searchId=e.searchId,delete e.searchId)},h=function(e){var t=e.product||{};return{pid:t.id,sku:t.sku,price:t.price,quantity:e.quantity}};return{logView:n,logProductInteraction:i}},r=function(){var e={\"x-ttcu\":chaordic.currentLoadedAt-chaordic.initializedAt,\"x-ttco\":chaordic.ttco,\"x-host\":String(location.host)},t=chaordic.getLocalStorage();return t!==null&&(e[\"x-hot\"]=chaordic.isHot()),e};chaordic.collect.Api=n()}(),function(){\"use strict\";var e=function(){this.collectServer=new chaordic.CollectServer};e.prototype.post=function(e,t,n){if(window.linxImpulse||chaordic.Config.ENABLE_COLLECT===!1)return;this.fillMissingInformation(t),this.collectServer.post(e,t,n)},e.prototype.fillMissingInformation=function(e){var t=chaordic.Object.copy(chaordic.getRawMeta());e.apiKey=chaordic.Config.API_KEY,e.identity=chaordic.Identity,e.source=e.source||chaordic.getPageSource(),e.url=e.url||window.location.href,t&&t.user&&(e.user=t.user),!e.testGroup&&chaordic.Test&&(e.testGroup=chaordic.Test),delete e.host},chaordic.collect.Server=new e}(),function(){chaordic.event=chaordic.event||{},chaordic.event.generateID=function(){var e=(new Date).getTime(),t=\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,function(t){var n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t===\"x\"?n:n&3|8).toString(16)});return t},chaordic.modules.push(function(){chaordic.event.Listener.initialize(),chaordic.event.Tron.setEnabled(Math.random()<chaordic.Config.TRON)})}(),function(){function e(){var e=[];return chaordic.Object.forEachOwnProperty(o,function(t){t.isAvailable()&&e.push(t)}),e}function t(e){var t=chaordic.Object.isArray(e)?e:[e];for(var r=0;r<t.length;r++)for(var i=0;i<n.length;i++)n[i].sendClick(t[r])}var n,r=50,i=r,s=function(e){var t=e.info||{},n=t.slotId,r=n?\"_\"+n:\"\";return{category:e.category||\"Vitrine Chaordic\",action:e.feature,label:e.page+r}},o={ga:{sendClick:function(e){var t=s(e);window.ga(function(){var e=window.ga.getAll();for(var n=0;n<e.length;n++)e[n].send(\"event\",t.category,t.action,t.label)})},isAvailable:function(){return window.ga}},gaq:{sendClick:function(e){var t=s(e);window._gaq.push([\"_trackEvent\",t.category,t.action,t.label])},isAvailable:function(){return window._gaq}}};chaordic.event.Analytics={sendClick:function(s){if(!chaordic.Config.SEND_ANALYTICS)return;i===0&&(i=r),n=e(),n.length?(t(s),i=r):(i--,i>0&&setTimeout(chaordic.event.Analytics.sendClick.bind({},s),20))}}}(),function(){var e=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),t=chaordic.Config,n=function(){var e=chaordic.merchant&&chaordic.merchant.Registry;e&&e.sendClicks()},r=function(){var e=function(e){var n={};chaordic.Object.defaults(n,e),delete n.sku,n.page.info=n.page.info||{},chaordic.event.SearchInfo.addSearchInfo(n.page.info),t.ORGANIC_UPDATES?chaordic.event.Server.post(\"/v5/product/viewAndSave\",n):(n.view={id:n.product.id},n.product.selectedSpecs&&(n.view.specs=n.product.selectedSpecs),delete n.product,chaordic.event.Server.post(\"/v5/product/view\",n))},n=function(e){var t={};chaordic.Object.defaults(t,e),delete t.product,t.sku.pid||(t.sku.pid=e.product.id),chaordic.event.Server.post(\"/v5/sku/view\",t)},r=function(e){var t=e.page&&e.page.info&&e.page.info.searchId;if(t)return;e=chaordic.Object.copy(e),e.page.name=\"search\",chaordic.event.SearchInfo.addSearchInfo(e.page.info),chaordic.event.Server.post(\"/v5/search/view\",e)},i=function(e){chaordic.event.Server.post(\"/v5/transaction\",e)},s=function(e){e.cart||(e.cart={}),chaordic.event.Server.post(\"/v5/cart/view\",e)},o={product:function(t){e(t),t.sku&&n(t)},search:r,emptysearch:r,confirmation:i,cart:s};return function(e){var t=e.page.name;e.page.info||(e.page.info={}),e.page.info.pageViewId=f.pageViewId,o[t]&&o[t](e)}}(),i=function(){var e=chaordic.Object.copy(chaordic.meta),n=e.page.name;e.apiKey=t.API_KEY,e.neemuInfo=a(),e.source=chaordic.getPageSource(),r(e);var i={page:e.page,apiKey:e.apiKey,user:e.user,neemuInfo:e.neemuInfo,eventInfo:e.eventInfo,anonymousUser:e.anonymousUser,ttcu:chaordic.currentLoadedAt-chaordic.initializedAt,ttco:chaordic.ttco,source:chaordic.getPageSource()};i.page.info||(i.page.info={}),i.page.info.pageViewId=f.pageViewId;var s=chaordic.getLocalStorage();s!==null&&(i.hot=chaordic.isHot()),chaordic.event.Server.post(\"/v5/page/view\",i).success(o)},s=[],o=function(e){if(!e.ok)return;chaordic.forEach(e.data.pushMessages||[],function(e){chaordic.forEach(s,function(t){t(e)})})},u=function(){setTimeout(function(){chaordic.loaderRunCount>1&&chaordic.loaderRunCount<6?chaordic.event.Tron.incrementRta(\"loaderRunCount.2-5\"):chaordic.loaderRunCount>5&&chaordic.event.Tron.incrementRta(\"loaderRunCount.6+\")},5e3)},a=function(){var e=chaordic.readCookiesMatching(/^nm_|^neemu_/);return chaordic.Object.forEachOwnProperty(e,function(t,n){(!t||t.length>100)&&delete e[n]}),e},f={pageViewId:chaordic.event.generateID(),collectNeemuInfo:a,logEvents:function(e){e||(e=1);var n=chaordic.event.Registry.readEvents(),r={apiKey:t.API_KEY,page:chaordic.meta.page,browser:{appVersion:navigator.appVersion,userAgent:navigator.userAgent,appName:navigator.appName,platform:navigator.platform},url:String(location.href),events:n};n&&n.length>0&&(chaordic.event.Registry.removeEvents(),t.HOMOLOGATION&&(r.bypass=!0),chaordic.event.Server.post(\"/v5/tracker/events\",r))},onServerMessage:function(e){s.push(e)},logClicks:function(n){var r=chaordic.event.Registry.readClicks();n||(n=1);if(r.length>0){chaordic.event.Registry.removeClicks();var i={apiKey:t.API_KEY,clicks:r,neemuInfo:a(),source:chaordic.getPageSource()};t.HOMOLOGATION&&(i.bypass=!0),e.get(\"/v5/clicks\",i).success(function(e){e.ok||(chaordic.event.Registry.storeClicks(r),n===3?chaordic.Base.log(\"WARN\",\"LogClicks failed too many times, bailing out.\"):(chaordic.Base.log(\"WARN\",\"LogClicks failed, retrying...\"),f.logClicks(n+1)))}),n===1&&chaordic.event.Analytics.sendClick(r)}},logPage:i,captureProductInteractions:function(){var e=chaordic.lib.jQuery;e(\".btn-neemu-addtocart\",document).mousedown(function(){var t=e(this),n=t.attr(\"data-pid\"),r=t.attr(\"data-sku\"),i=t.attr(\"data-sales-channel\");if(!n)return;chaordic.collect.Api.logProductInteraction({interactionType:\"ADD_TO_CART\",products:[chaordic.Object.omitUndefineds({pid:n,sku:r,salesChannel:i})]})})},initialize:function(){if(chaordic.lib.jQuery(\"script[data-listener]\",document).attr(\"data-listener\")===\"false\")return;t.USE_COLLECT_API?chaordic.collect.Api.logView():i(),f.logClicks(),f.logEvents(),f.captureProductInteractions(),n(),u()}};chaordic.event.Listener=f}(),function(){var e=\"cssearch\",t=\"chaordic_mailapi\",n=function(e){var t=e;if(chaordic.Object.isArray(e)){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r]))}else e!==null&&typeof e==\"object\"&&!chaordic.Object.isDate(e)&&(t={},chaordic.Object.forEachOwnProperty(e,function(e,r){t[chaordic.String.camelize(r)]=n(e)}));return t},r=function(e,t){var n=0,r=function(r,i){chaordic.window.location.protocol===\"https:\"&&i.indexOf(\"http:\")===0&&(i=\"https:\"+i.substr(5)),n++,chaordic.lib.jQuery.get(i,function(t){typeof t==\"string\"&&(chaordic.String.isEmpty(t)?t=null:t=chaordic.lib.JSON.parse(t)),e[r]=t}).always(function(i,s){(e[r]===null||e[r]&&s===\"error\")&&delete e[r],n--,n===0&&t()})};for(var i in e)e.hasOwnProperty(i)&&(e[i].hasOwnProperty(\"remoteUrl\")?r(i,e[i].remoteUrl):e[i].hasOwnProperty(\"remote_url\")&&r(i,e[i].remote_url));n===0&&t()},i=function(){var e=[\"categories\",\"tags\"],t=function(e,t){for(var r=0;r<e.length;r++)if(typeof e[r]==\"string\"){var i=t===\"tags\"?n(e[r]):e[r];e[r]={id:i,name:e[r]}}else!e[r].id&&e[r].name?e[r].id=e[r].name:!e[r].name&&e[r].id&&(e[r].name=e[r].id)},n=function(e){return e.toLowerCase().replace(/[àÀáÁâÂãäÄÅåª]+/g,\"a\").replace(/[èÈéÉêÊëË]+/g,\"e\").replace(/[ìÌíÍîÎïÏ]+/g,\"i\").replace(/[òÒóÓôÔõÕöÖº]+/g,\"o\").replace(/[ùÙúÚûÛüÜ]+/g,\"u\").replace(/[ýÝÿŸ]+/g,\"y\").replace(/[ñÑ]+/g,\"n\").replace(/[çÇ]+/g,\"c\").replace(/[ß]+/g,\"ss\").replace(/[Ææ]+/g,\"ae\").replace(/[Øøœ]+/g,\"oe\").replace(/[%]+/g,\"pct\").replace(/\\s+/g,\"_\").replace(\"/\",\"_\").replace(/[^\\w\\-]+/g,\"\").replace(/\\_\\_+/g,\"_\").replace(/^_+/,\"\").replace(/_+$/,\"\")},r=function(e){for(var t=0;t<e.length;t++)if(e[t].hasOwnProperty(\"parents\"))return!0},i=function(e){for(var t=1;t<e.length;t++)e[t].parents=[e[t-1].id]},s=function(n){var s,o;for(o=0;o<e.length;o++)s=e[o],typeof n[s]==\"string\"?n[s]=[{id:n[s],name:n[s]}]:typeof n[s]==\"object\"&&t(n[s],s);n.categories&&!r(n.categories)&&i(n.categories)};return function(e){e.page&&s(e.page),e.product&&s(e.product)}}(),s=function(e){var t,n,r,i;if(!e.product||!e.product.specs)return;t=e.product.specs;for(n in t)if(t.hasOwnProperty(n))for(r=0;r<t[n].length;r++)i=t[n][r],typeof i==\"string\"&&(t[n][r]={id:i,label:i})},o=function(e,t){var n=chaordic.readCookie(t),r=function(){var r=e.page;if(chaordic.Config.USE_COLLECT_API){e.info=e.info||{},e.info[t]=n;return}if(!r)return;r.info||(r.info={}),r.info[t]=n},i=function(){var r=e.transaction;if(chaordic.Config.USE_COLLECT_API){e.info=e.info||{},e.info[t]=n;return}if(!r)return;r.info||(r.info={}),r.info[t]=n};chaordic.String.isEmpty(n)||(r(),i())},u=function(e){var t=e.page;if(!t||t&&(typeof t==\"string\"||t instanceof String))return;t.info||(t.info={}),a(t.info)},a=function(e){if(!e)return;var t=window.chaordic.window.document.referrer;chaordic.String.isEmpty(t)||(e.referrer=t)},f=function(){var e=[\"utm_mail\",\"utm_email\",\"email\"],t=chaordic.Location.getParams(window.location),n,r;for(r=0;r<e.length;r++){n=e[r];if(t[n])return t[n]}},l=function(){var e=chaordic.Location.getParams(window.location),t=e.cslocalpart,n=e.csdomainpart;if(!chaordic.String.isEmpty(t)&&!chaordic.String.isEmpty(n))return t+\"@\"+n},c=function(e){var t=chaordic.Base.readCookie(),n=f()||l(),r=e.user||e.anonymous_user;if(!t.user&&!n)return;r||(r=e.anonymous_user={}),t.user&&(chaordic.Object.merge(r,t.user),delete t.user,chaordic.Base.writeCookie(t)),n&&!r.email&&(r.email=n)},h=function(e){var t=chaordic.Location.getParams(window.location).utm_user;if(Boolean(t)&&!Boolean(e.user)){var n=e.anonymous_user;Boolean(n)||(n={},e.anonymous_user=n),n.utmUser=t}},p=function(e){var t=chaordic.event.Pushables.allowPersonalization.readCookie();t&&chaordic_meta.user&&(chaordic_meta.user.allowPersonalization=t)},d=function(e){if(!e.product||!e.product.skus)return;var t=e.product.skus;t=t.filter(function(e){return e&&e.sku}),e.product.skus=t},v=function(e){chaordic.Config.USE_COLLECT_API?(e.page=e.page||\"other\",typeof e.page==\"string\"&&(e.page=chaordic.String.trim(e.page.toLowerCase()))):(e.page=e.page||{},chaordic.Object.defaults(e.page,{name:\"other\",timestamp:new Date}),e.page.name=chaordic.String.trim(e.page.name.toLowerCase()),e.page.url=chaordic.window.location.href)},m=function(e){var t=e.page;t.searchId&&(t.info=t.info||{},t.info.searchId=t.searchId,delete t.searchId)},g=function(a){var f=chaordic.getRawMeta()||{};f.host=String(location.host),r(f,function(){c(f),h(f),p(f),f=n(f),v(f),i(f),s(f),m(f),d(f),o(f,e),o(f,t),u(f),chaordic.setRawMeta(f),typeof chaordic.customMetaSetup==\"function\"&&chaordic.customMetaSetup(f),a(f)})};chaordic.event.Meta=g,chaordic.event.Meta.addReferrerToInfoObj=a,chaordic.getRawMeta=function(){return window.$chaordic_meta||window.chaordic_meta},chaordic.setRawMeta=function(e){window.$chaordic_meta?window.$chaordic_meta=e:window.chaordic_meta=e}}(),function(){var e,t=100,n=4e3,r=function(e,t){return function(n){if(chaordic.Config.USE_COLLECT_API){var r={page:e};chaordic.Object.merge(r,n);var i=chaordic.getRawMeta();i.user&&(r.user=chaordic.Object.copy(i.user)),chaordic.collect.Api.logView(r,{\"x-expand-events\":\"false\",\"x-interaction-type\":\"ajax\"})}else t.apply(this,arguments)}},i=function(e){var t=e.page=e.page||{};t.name=t.name||window.chaordic.meta.page&&window.chaordic.meta.page.name,t.info=t.info||{},t.info.interactionType=\"ajax\"},s={trackEvent:function(r){if(chaordic.Config.TRACK_EVENTS&&r){var i=encodeURIComponent(chaordic.lib.JSON.stringify(r)).length;if(i>n)return;clearTimeout(e);var s=encodeURIComponent(chaordic.lib.JSON.stringify(chaordic.Base.readCookie())).length;i+s>n&&chaordic.event.Listener.logEvents(),chaordic.event.Registry.storeEvents([r]),e=setTimeout(chaordic.event.Listener.logEvents,t)}},updateCart:r(\"cart\",function(e){var t=chaordic.Object.copy(window.chaordic.meta);t.cart=e,delete t.page.date,i(t),chaordic.event.Registry.cartView(t)}),transaction:r(\"transaction\",function(e){var t=chaordic.Object.copy(window.chaordic.meta);t.transaction=e,i(t),chaordic.event.Registry.transaction(t)}),viewProduct:r(\"product\",function(e){var t={view:e};i(t),chaordic.event.Registry.productView(t)}),viewSku:r(\"sku\",function(e){!e.pid&&window.chaordic.meta.product&&(e.pid=window.chaordic.meta.product.id);var t={sku:e};i(t),chaordic.event.Registry.skuView(t)}),updateUserEmail:function(e){for(var t in e)if(e.hasOwnProperty(t)&&t!==\"email\"&&t!==\"name\"&&t!==\"extraInfo\"){chaordic.Base.log(\"WARN\",\"Unknown user property: \"+t);return}var n=chaordic.Base.readCookie();n.user=e,chaordic.Base.writeCookie(n)},allowPersonalization:function(){var e={\"true\":1,\"false\":1},t=\"chaordic_allowPersonalization\",n=31536e3,r=n,i=function(e){chaordic.writeCookie(t,e,r)},s=function(t){var n=String(t);n in e?i(n):chaordic.Base.log(\"ERROR\",\"invalid arg: \"+t)};return s.readCookie=function(){var e=chaordic.readCookie(t);return e&&i(e),e},s}()};chaordic.event.Pushables=s}(),function(e){var t=!1,n=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),r=new chaordic.AdsManager,i={productView:function(e){chaordic.event.Server.post(\"/v5/product/view\",e)},skuView:function(e){chaordic.event.Server.post(\"/v5/sku/view\",e)},productViewAndSave:function(e){chaordic.event.Server.post(\"/v5/product/viewAndSave\",e)},cartView:function(e){chaordic.event.Server.post(\"/v5/cart/view\",e)},transaction:function(e){chaordic.event.Server.post(\"/v5/transaction\",e)},viewRecommendations:function(e,i){var s;return t||(chaordic.meta.page.timestamp instanceof Date?e.view.timeToWidget=(new Date).getTime()-chaordic.meta.page.timestamp.getTime():typeof chaordic.initializedAt==\"number\"&&(e.view.timeToWidget=(new Date).getTime()-chaordic.initializedAt),t=!0),e.page=chaordic.Object.merge({},chaordic.meta.page),chaordic.meta.page.product&&(chaordic.meta.page.product.tags&&(e.tags=chaordic.meta.page.product.tags),chaordic.meta.page.product.categories&&(e.categories=chaordic.meta.page.product.categories)),e.tags=e.tags||chaordic.meta.page.tags||null,e.categories=e.categories||chaordic.meta.page.categories||null,e.apiKey=chaordic.Config.API_KEY,e.view.info=e.view.info||{},e.view.info.vrlId=chaordic.event.generateID(),e.view.info.pageViewId=chaordic.event.Listener.pageViewId,e.source=chaordic.getPageSource(),i?(e.view.viewType=\"VIEWABLE\",s=\"view\"):(e.view.viewType=\"HIDDEN\",s=\"page-view\"),r.sendEvents(s,{feature:e.view.feature,widgetId:e.view.info.widgetId,adsProducts:e.view.adsProducts}),n.post(\"/v5/viewRecommendations\",e),e.view.info.vrlId},click:function(e){var t=chaordic.Base.readLocalStorage(),n=t.clicks||[];e.feature&&(e.feature=e.feature.toString()),e.info=e.info||{},e.info.pageViewId=chaordic.event.Listener.pageViewId,e.page=chaordic.meta.page.name,n.push(e),t.clicks=n,chaordic.Base.writeLocalStorage(t)},readClicks:function(){var e=chaordic.Base.readLocalStorage(),t=e.clicks||[];return chaordic.lib.jQuery.isArray(t)||(i.removeClicks(),t=[],i.storeClicks(t)),t},removeClicks:function(){var e=chaordic.Base.readLocalStorage();e&&(delete e.clicks,chaordic.Base.writeLocalStorage(e))},storeClicks:function(e){var t=chaordic.Base.readLocalStorage();t.clicks=(t.clicks||[]).concat(e),chaordic.Base.writeLocalStorage(t)},readEvents:function(){var e=chaordic.Base.readCookie();return e.events||[]},removeEvents:function(){var e=chaordic.Base.readCookie();e&&(delete e.events,chaordic.Base.writeCookie(e))},storeEvents:function(e){var t=chaordic.Base.readCookie();t.events=(t.events||[]).concat(e),chaordic.Base.writeCookie(t)}};chaordic.event.Registry=i}(),function(){var e=\"searchFilter:\",t={query:1,number_of_results:2,processing_time:3,suggested_query:4,number_of_and_results:5,query_correction:6,cache_use:7,page:8,query_original:9,search_response_type:10},n=chaordic.Object.keys(t).length,r=/(common|range)_filter\\[([^\\]]+)\\]/,i={typeclick:\"searchAcType\",ranking:\"searchAcRank\",p:\"searchAcPrefix\",ac_pos:\"searchAcPos\"},s=/^_set([^ ]+)PageType$/,o=function(e){if(!e)return;var r=c(function(e){return e===\"_setSearchInformation\"}),i=chaordic.window.location?chaordic.Location.getParams(chaordic.window.location):null;r&&r.length>=n?(e.searchPg=r[t.page]||\"1\",e.searchQty=r[t.number_of_results]||\"0\",e.searchQtyAnd=r[t.number_of_and_results]||\"0\",e.searchQOrig=r[t.query_original]||r[t.query],e.searchHasSuggest=r[t.suggested_query]||\"0\",r.length>t.search_response_type&&r[t.search_response_type]&&(e.searchRType=r[t.search_response_type]),u(e,i),f(e,i)):typeof window.neemuQuery==\"string\"&&(e.searchPg=i&&i.page||\"1\",e.searchQty=String(window.neemuNumResultadosTotal||\"0\"),e.searchQtyAnd=String(window.neemuNumResultadosAnd||\"0\"),e.searchQOrig=String(window.neemuQOriginal||window.neemuQuery),e.searchHasSuggest=String(window.neemuSugestaoConsulta||\"0\"),u(e,i),f(e,i)),a(e,i),l(e)},u=function(t,n){if(!n)return;var i,s,o;for(var u in n)i=r.exec(decodeURI(u)),i&&(s=i[2],o=n[u].replace(/\\+/g,\" \"),window.nmFilterInfo&&window.nmFilterInfo[s]&&window.nmFilterInfo[s].name&&window.nmFilterInfo[s].values&&window.nmFilterInfo[s].values[o]&&(o=window.nmFilterInfo[s].values[o],s=window.nmFilterInfo[s].name),t[e+s]=o)},a=function(e,t){if(!t||!t.typeclick)return;var n,r,s;for(var o in t)i[o]&&(n=i[o],s=t[o].replace(/\\+/g,\" \"),e[n]=s)},f=function(e,t){t.sort&&(e.searchSortType=t.sort)},l=function(e){if(window.neemuPgType){e.searchPgType=window.neemuPgType;return}var t=c(function(e){return s.test(e)}),n=t&&s.exec(t[0]);n&&(e.searchPgType=n[1].toLowerCase())},c=function(e){if(!chaordic.Object.isArray(window._neemu))return;var t,n;for(n=0;n<window._neemu.length;n++){t=window._neemu[n];if(chaordic.Object.isArray(t)&&t.length&&e(t[0]))return t}};chaordic.event.SearchInfo={addSearchInfo:o}}(),function(){var e=function(){this.collectServer=new chaordic.CollectServer};e.prototype.post=function(e,t,n){return this.fillMissingInformation(t),t=\"q=\"+encodeURIComponent(chaordic.lib.JSON.stringify(t)),this.collectServer.post(e,t,n)},e.prototype.fillMissingInformation=function(e){var t=chaordic.Object.copy(window.chaordic_meta);e.apiKey=chaordic.Config.API_KEY,!e.user&&t&&t.user&&(e.user=t.user),!e.page&&t&&t.page&&(e.page=t.page),e.host||(e.host=String(location.host)),e.identity||(e.identity=chaordic.Identity),!e.testGroup&&chaordic.Test&&(e.testGroup=chaordic.Test)},chaordic.event.Server=new e}(),function(){var e={fatal:5,error:4,warn:3,info:2,debug:1,trace:0},t=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),n=500,r=[],i=[],s,o=!1,u=function(e){o&&(r.push(e),f())},a=function(e){o&&(i.push(e),f())},f=function(){s!==undefined&&(clearTimeout(s),s=undefined),s=setTimeout(l,n)},l=function(){s=undefined,t.post(\"/datakeeper/trace\",{rtas:i,traces:r}),i=[],r=[]};chaordic.event.Tron={trace:function(t,n,r){t=t.toLowerCase(),t in e&&u({data:n,level:t,message:r})},incrementRta:function(e,t){a({type:\"incr\",counter:e,value:t})},percentilRta:function(e,t,n){a({type:\"pctl\",counter:e,value:t,percentage:n})},apdexRta:function(e,t,n){a({type:\"apdex\",counter:e,value:t,tolerance:n})},setEnabled:function(e){o=Boolean(e)}}}(),function(){function e(e){var t;e.ok&&e.widgets&&e.layout&&e.slots&&(e.id&&(chaordic.onsite.templateId=e.id),r(e),Object.keys(e.slots).forEach(function(t){chaordic.onsite.widgetsLoaded[t]=e.slots[t].widgets.map(s(e))}),t=new chaordic.PageRender({widgets:e.widgets,layout:e.layout,slots:e.slots}),t.render())}function t(e){var t=chaordic.widgetFallback&&chaordic.widgetFallback.load&&chaordic.widgetFallback.load.callback;t=t||n,t()}function n(){var t=window.chaordic.meta.page,n=chaordic.Config,r=chaordic.getPageSource();if(n.USE_SERVER_FALLBACK&&n.SERVER_FALLBACK_PAGES.indexOf(t.name)!==-1){var i=chaordic.Config.SERVER_FALLBACK_URL+\"/\"+chaordic.Config.API_KEY+\"/\"+r+\"/\"+t.name;if(t.name===\"product\"){var s=window.chaordic.meta.product.id;i+=\"/\"+s+\".json\"}else i+=\"/all.json\";chaordic.lib.jQuery.ajax({url:i}).done(e)}}function r(e){var t,n;Object.keys(e.widgets).forEach(function(r){t=e.widgets[r].slotIdCustom,t&&(e.slots[t]||(e.slots[t]={overflow:!1,widgets:[]},e.layout[0].rows.push({slot:t})),e.slots[t].widgets.push(r),Object.keys(e.slots).forEach(function(i){n=e.slots[i].widgets.indexOf(r),t!==i&&n!==-1&&e.slots[i].widgets.splice(n,1)}))})}chaordic.onsite=chaordic.onsite||{},chaordic.onsite.ThemeManager=chaordic.ThemeManager,chaordic.onsite.flattenSpecs=function(e){var t=[];return e&&(Object.keys(e).forEach(function(n){t.push(n+\"_\"+e[n])}),t=t.sort()),t.join(\"_\")},chaordic.onsite.widgetsLoaded={};var i={mostpopular:\"MostPopular\",new4you:\"New4You\",offers:\"Offers\",similaritems:\"SimilarItems\",ultimatebuy:\"UltimateBuy\",shoppingcart:\"ShoppingCart\",personalized:\"Personalized\",viewpersonalized:\"ViewPersonalized\",historypersonalized:\"HistoryPersonalized\",purchasepersonalized:\"PurchasePersonalized\",cartpersonalized:\"CartPersonalized\",frequentlyboughttogether:\"FrequentlyBoughtTogether\",featured:\"Featured\",push:\"Push\",wishlist:\"WishList\",hotsite:\"HotSite\",ads:\"Ads\"},s=function(e){return function(t){var n=e.widgets[t];return{widgetId:t,feature:n.feature,dataSkin:n.skin||\"\",title:n.title+(n.subTitle?\" - \"+n.subTitle:\"\")}}};chaordic.WidgetSetup.intialize(i,chaordic.onsite),chaordic.modules.push(function(){var n=chaordic.widgetFallback&&chaordic.widgetFallback.load&&chaordic.widgetFallback.load.timeout||chaordic.Config.SERVER_FALLBACK_TIMEOUT;if(!chaordic.Config.SLOTS)return;chaordic.onsite.PageService.addInterceptor(chaordic.NoRepeatRecs.SET_UB_VISIBLE_INTERCEPTOR),chaordic.onsite.PageService.getPage(n).success(e).error(t),chaordic.onsite.Discover.trackClicks()})}(),function(){function e(){}e.prototype.hasAds=function(e){return e&&e.percycleHash&&e.customBusiness&&typeof e.customBusiness.ads==\"object\"?!0:!1},e.prototype.formatProductClickUrl=function(e,t){var n,r=t.page||chaordic.meta.page.name,i=chaordic.meta.product||chaordic.meta.pid||{},s=i.id||i;try{n=e.customBusiness.ads.clickLink+\"?placement=\"+r+\"&chaordicShowcaseName=\"+t.feature.toLowerCase()+\"&chaordicShowcaseId=\"+t.widgetId;if(r===\"product\"||r===\"product_unavailable\")s||console.error(\"onsite.adsutils, failed to update product url correctly\",t),n+=\"&productId=\"+s;e.url=n}catch(o){}return n},chaordic.onsite.AdsUtils=new e}(),function(){function e(){var e=n.createElement(\"div\");return e.classList.add(\"linx-buy-collection-modal\"),n.body.appendChild(e),e}function t(e){var t=chaordic.Config.PROTOCOL+[chaordic.Config.STATIC_HOST,chaordic.Config.STATIC_CONTEXT,chaordic.Config.THEME_PATH,chaordic.Config.STATIC_API,chaordic.Config.THEME_URL].join(\"/\").replace(/\\/\\//g,\"/\"),i=n.head,s=n.createElement(\"style\");s.type=\"text/css\",i.appendChild(s);var o=r.getAsset(e);o=o.replace(/url\\([\"']?([^\\^\")]*)['\"]?\\)/g,function(e,n){return/^(\\/\\/|https?)/.test(n)?'url(\"'+n+'\")':'url(\"'+t+n+'\")'}),s.styleSheet?s.styleSheet.cssText=o:s.appendChild(n.createTextNode(o))}var n,r,i={templates:{modal:\"buy-collection-modal.fugly\",item:\"buy-collection-modal-item.fugly\",summary:\"buy-collection-modal-summary.fugly\"},style:[\"buy-collection-modal.css\"]},s={create:function(){n=chaordic.window.document,r=chaordic.ThemeManager,this.container?this.container.innerHTML=\"\":this.container=e(),this.params={};var s=r.getTheme(\"BuyCollectionModal\");chaordic.Object.merge(this.params,i),chaordic.Object.merge(this.params,s),t(this.params.style[0]),this.template=chaordic.newFuglyTemplate(r.getAsset(this.params.templates.modal)),this.summaryTemplate=chaordic.newFuglyTemplate(r.getAsset(this.params.templates.summary))},getSelectedProducts:function(){var e=[];return this.modalItems.forEach(function(t){t.isSelected()&&e.push(t.productView.product)}),e},hide:function(){n.body.style.overflow=\"\",n.documentElement.style.overflow=\"\",this.container.classList.remove(\"linx-visible\")},onAddToCartClick:function(){var e=this.getSelectedProducts(),t=!1;this.modalItems.forEach(function(e){e.isSelected()&&e.productView.product.hasInvalidSpecsSelected&&(t=!0,e.productView.clickedAddToCart=!0,e.render(),setTimeout(function(){e.productView.clickedAddToCart=!1},0))}),!t&&typeof this.params.addToCart==\"function\"&&e.length>0?(this.registerClick(\"ADD_TO_CART\"),this.hide(),this.params.addToCart.call(this,e,this.productViews)):t&&typeof this.params.invalidSelectedSpecsCallback==\"function\"&&this.params.invalidSelectedSpecsCallback.call(this)},registerClick:function(e){var t=this.getSelectedProducts().map(function(e){return{id:e.id,specs:e.selectedSpecs}}),n={interactionType:e,feature:this.widgetData.widget,info:{slotId:this.widgetData.params.customSlot||this.widgetData.params.slotId,templateId:this.widgetData.serverParams.templateId,widgetId:this.widgetData.serverParams.widgetId},products:t},r=!!this.widgetData.params.enabled||!chaordic.Config.DISABLE_METRICS||!chaordic.Config.HOMOLOGATION&&!chaordic.Config.DUMMY_RECS;r&&chaordic.event.Registry.click(n)},registerEvents:function(){var e=this,t=e.container.querySelector(\".linx-modal-overlay\");t&&t.addEventListener(\"click\",function(){e.hide()});var n=e.container.querySelector(\".linx-buy-collection-btn\");n&&n.addEventListener(\"click\",e.onAddToCartClick.bind(e));var r=e.container.querySelector(\".linx-modal-btn-close\");r&&r.addEventListener(\"click\",function(){e.hide()})},render:function(e){var t={collection:e};this.template.context(t);var n=this.template.render();this.container.innerHTML=n;var r=this.container.querySelector(\".linx-collection-items\");r&&this.renderItems(e,r),this.renderSummary(e)},renderItems:function(e,t){var r=this,i=e.productViews;r.modalItems=[],i.forEach(function(e){var i=n.createElement(\"div\");i.classList.add(\"linx-collection-item\"),t.appendChild(i);var s={};chaordic.Object.merge(s,r.params),s.afterToggleSelect=function(){var e=r.container.querySelector(\".linx-buy-collection-btn\");r.renderSummary(),e&&(r.getSelectedProducts().length===0?e.classList.add(\"linx-disabled\"):e.classList.remove(\"linx-disabled\"))};var o=new chaordic.BuyCollectionModalItem(s,e,i);o.render(),r.modalItems.push(o)})},renderSummary:function(){var e=this.container.querySelector(\".linx-collection-summary\");if(!e)return;var t=this.getSelectedProducts(),n=t.reduce(function(e,t){return e+t.price*100},0);n/=100;var r={selectedItems:t,selectedItemsCount:t.length,totalItems:this.modalItems.length,totalPrice:n,totalPriceString:chaordic.Currency.format(n)},i=this.params.beforeRenderSummary;typeof i==\"function\"&&i.call(this,r),this.summaryTemplate.context(r);var s=this.summaryTemplate.render();e.innerHTML=s},show:function(e){var t=e.collection;this.productViews=e.productViews,this.widgetData=e.widgetData||{};var r=new chaordic.Collection(t,this.productViews);this.render(r),this.registerEvents(),this.registerClick(\"PRODUCT_DETAILS\"),chaordic.event.Listener.logClicks(),this.container.classList.add(\"linx-visible\"),n.body.style.overflow=\"hidden\",n.documentElement.style.overflow=\"hidden\"}};chaordic.onsite.BuyCollectionModal=s}(),function(){function e(e,t){t.forEach(function(t){var n=r.createElement(\"option\");n.setAttribute(\"value\",t),n.innerHTML=t,e.appendChild(n)})}function t(e,t){return!!e&&t.indexOf(e)!==-1}function n(e,t,n){r=chaordic.window.document,i=chaordic.ThemeManager,this.initialize({params:e,productView:t,container:n})}var r,i;n.prototype.createSpecSelect=function(t){var n=r.createElement(\"select\");return e(n,this.specValues[t]),n.value=this.selectedSpecs[t],n},n.prototype.getSelectedProduct=function(){var e=this,t=e.skuList;e.specTypes.forEach(function(n){t=t.filterBySpec(n,{id:e.selectedSpecs[n]})});if(!t.skus[0])return e.specTypes.length>0&&(e.productView.product.hasInvalidSpecsSelected=!0),e.productView.product;var n=t.skus[0];return n.selectedSpecs=e.selectedSpecs,n},n.prototype.initialize=function(e){var t=this,n=e.container||{},r=e.params||{},s=r.autoSelectSpecs!==!1,o=r.autoSelectSingleValueSpecs;t.selected=!0,t.container=n,t.params=r,t.template=chaordic.newFuglyTemplate(i.getAsset(\"buy-collection-modal-item.fugly\")),t.productView=e.productView,t.productView.clickedAddToCart=!1,t.skuList=e.productView.skuList,t.isFirstRender=!0;var u=new chaordic.Product(t.skuList.firstAvailable());t.specTypes=Object.keys(u.specs),t.selectedSpecs={},!s&&o&&t.specTypes.forEach(function(e){var n=t.skuList.groupBy(e)||{},r=Object.keys(n),i;typeof o==\"boolean\"&&(i=o),o&&o.global!==undefined&&(i=o.global),o&&o[e]!==undefined&&(i=o[e]),i&&r.length===1&&(t.selectedSpecs[e]=n[r[0]].id)})},n.prototype.isSelected=function(){return this.selected},n.prototype.render=function(){var e=this;this.setupSpecs();var t=chaordic.lib.jQuery,n=this.getSelectedProduct(),r=this.productView.clickedAddToCart;this.productView.product=n,this.productView.selected=this.selected,this.productView.selectedSpecs=this.selectedSpecs,this.productView.isFirstRender=this.isFirstRender,this.productView.messageErrorSpec=\"\",this.selected&&r&&n.hasInvalidSpecsSelected&&this.specTypes.forEach(function(t){if(!e.selectedSpecs[t])return e.productView.messageErrorSpec=e.params.messageErrorSpecs[t]||\"\",!1}),typeof this.params.beforeRenderItem==\"function\"&&this.params.beforeRenderItem.call(this,this.productView),this.template.context(this.productView);var i=this.template.render();this.container.innerHTML=i,this.renderSpecs(this.container),this.registerCustomSpecSelectorListeners(this.container),this.renderSelector(),typeof this.params.afterDrawModalItem==\"function\"&&this.params.afterDrawModalItem.call(e,t(this.container),this.productView.product),setTimeout(function(){e.isFirstRender=!1},0)},n.prototype.renderSelector=function(){var e=this,t=e.container.querySelector(\".linx-item-checkbox\");t&&t.classList.add(\"linx-toggle-select\"),e.container.classList.add(\"linx-selected\");var n=e.container.querySelectorAll(\".linx-toggle-select\");(n||[]).forEach(function(t){t.classList.add(\"linx-selected\"),t.addEventListener(\"click\",e.toggleSelect.bind(e))})},n.prototype.renderSpecs=function(e){var t=this,n=e.querySelector(\".linx-product-specs\");if(!n)return;t.specTypes.forEach(function(e){var r=t.createSpecSelect(e);n.appendChild(r),r.addEventListener(\"change\",function(n){t.selectedSpecs[e]=n.target.value,t.render()})})},n.prototype.registerCustomSpecSelectorListeners=function(e){var t=this,n=e.querySelector(\".linx-product-specs-custom\");if(!n)return;n.querySelectorAll(\"[data-spec]\").forEach(function(e){e.addEventListener(\"click\",function(e){var n=e.target.getAttribute(\"data-spec\"),r=e.target.getAttribute(\"data-spec-id\");t.selectedSpecs[n]=r,t.render()})})},n.prototype.setupSpecs=function(){var e=this,n=e.skuList,r=this.params.autoSelectSpecs!==!1;e.specValues={},e.specTypes.forEach(function(i){var s=n.groupBy(i),o=Object.keys(s||{}),u=e.selectedSpecs[i];!t(u,o)&&r&&(u=o[0],e.selectedSpecs[i]=u),n=n.filterBySpec(i,{id:u}),e.specValues[i]=o})},n.prototype.toggleSelect=function(){var e=this,t=this.container.querySelectorAll(\".linx-toggle-select\");(t||[]).forEach(function(e){e.classList.toggle(\"linx-selected\")}),e.container.classList.toggle(\"linx-selected\"),e.selected=!e.selected,typeof e.params.afterToggleSelect==\"function\"&&e.params.afterToggleSelect.call(e)},chaordic.BuyCollectionModalItem=n}(),function(){function e(e,t){var n=\"onsite\";if(!rt.active||it)return;it=!0,rt.get(n,{products:e,onComplete:function(n){g(n,e,t)}})}function t(){return window.top.location.protocol}function n(){return t()+(J||H().baseUrl)}function r(){var e=H().div,t=e?'[linx-impulse=\"'+e+'\"]':R;return window.top.document.querySelector(t)}function i(){[0,100,500].map(function(e){setTimeout(function(){var e=s().body.offsetHeight;r().style.height=e+\"px\"},e)})}function s(){return $.contentWindow.document}function o(e){$=e;var t=s();e.style.display=\"block\",e.width=\"100%\",e.height=\"100%\";var n=t.createElement(\"base\"),r=t.getElementsByTagName(\"head\")[0],i=chaordic.Config.PROTOCOL+[chaordic.Config.STATIC_HOST,chaordic.Config.STATIC_CONTEXT,chaordic.Config.THEME_PATH,chaordic.Config.STATIC_API,chaordic.Config.THEME_URL].join(\"/\").replace(/\\/\\//g,\"/\");n.href=i,r.insertBefore(n,r.firstChild)}function u(e){return chaordic.lib.jQuery(e,s())}function a(){var e=s();return e.getElementsByTagName(\"head\")[0]||e.documentElement}function f(e,t){var n=s(),r=n.createElement(\"style\");r.type=\"text/css\",e.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(n.createTextNode(t))}function l(){var e=a();H().style.map(function(t){var n=V.getAsset(t);f(e,n)})}function c(){return u(U)}function h(e,t,n){e()?t():n<=H().maxInteraction?setTimeout(h,H().timeToWait,e,t,++n):console.error(\"onsite Discover: it was not possible to render\")}function p(e){var t={url:n(),dataType:\"json\",data:B()};chaordic.lib.jQuery.ajax(t).done(e).fail(function(){H().loadingFirstTime||b(!1)})}function d(){if(Z)return!1;var e=Q.find('[data-group=\"'+tt+'\"]').first();if(!e.length)throw new Error(\"The product card need have the attribute 'data-pid=\\\"<$= product.id $>\\\"'\");var t=u(window.top).scrollTop()+u(window.top).innerHeight();return t>=e.offset().top}function v(e){var n={url:t()+e};Z=!0,chaordic.lib.jQuery.ajax(n)}function m(e,t){var n=H(),r=new chaordic.Product(e);r.priceApiStatus=0;var i=tt+\"-\"+t,s=W[i]||{params:n,selectedSpecs:e.selectedSpecs||{},groupId:tt,productIndex:t,product:r};e.skus&&(s.skuList=new chaordic.onsite.SkuList(e)),H().beforeProductRender.call(st,s,n),typeof n.productView==\"function\"&&n.productView.call(st,s,i);var o=chaordic.newFuglyTemplate('<div data-pid=\"'+e.id+'\" data-group=\"'+tt+'\" data-productId=\"'+e.id+'\" class=\"linx-discover-product\">'+V.getAsset(H().template)+\"</div>\");return W[i]=s,o.context(s),o.render()}function g(e,t,n){it=!1;var r=Array.isArray(e)?e:[e],i,s,o=function(e){return e.id===i.product.id};for(var a=0;a<t.length;a++){var f=u('[data-pid=\"'+r[a].id+'\"][data-group\"'+n+'\"]');if(f){i=W[n+\"-\"+a];var l=r.filter(o)[0];l&&(chaordic.Object.merge(i.product,l),s=m(i.product),i.product.priceApiStatus=1,f.replaceWith(s))}}D(n)}function y(t){var n=t.products,r=\"\",i,s=[];for(i=0;i<n.length;i++)r+=m(n[i],i),s.push(W[tt+\"-\"+i].product);e(s,tt),Q&&(Q.append(r),et=t.viewUrl,Z=!1);var o=chaordic.onsite.Feature,a=u('[data-group=\"'+tt+'\"]');a.each(function(){var e=u(this);o.prototype.handleLazyLoad.call(st,e)})}function b(e){K=e,e?c().addClass(\"linx-loading\"):c().removeClass(\"linx-loading\")}function w(e){J=e.next,tt=Math.random()+(new Date).getTime(),y(e),P(),H().afterPageRender.call(st,c(),W,tt),b(!1),i()}function E(){nt++,b(!0),p(w)}function S(){var e=u(window.top).scrollTop()+u(window.top).innerHeight(),t=u(r()),n=t.offset().top+t.height();return G?e>=n-H().marginRerender:!1}function x(){var e=H(),t=e.automaticPagination&&e.automaticPagination.enabled===!0,n=e.automaticPagination&&e.automaticPagination.max,r=n&&typeof n==\"number\"?n!==-1&&nt>=n:!1;return t&&!r&&S()&&!K}function T(){x()&&E(),d()&&v(et)}function N(){var e={discover:null};localStorage.setItem(z,JSON.stringify(e))}function C(){var e=localStorage.getItem(z);return e||(N(),e=localStorage.getItem(z)),JSON.parse(e)}function k(){var e;if(chaordic.getLocalStorage()){var t=C();e=t.discover||[]}else{var n=chaordic.Base.readCookie();e=n.discover||[]}return Array.isArray(e)?e:[]}function L(e){if(chaordic.getLocalStorage()){var t=C();t.discover=e,localStorage.setItem(z,JSON.stringify(t))}else{var n=chaordic.Base.readCookie();n.discover=e,chaordic.Base.writeCookie(n)}}function A(e){var n={url:t()+e};chaordic.lib.jQuery.ajax(n)}function O(){var e=k();(e||[]).forEach(function(e){A(e)}),L(null)}function M(e){var t=k();t.push(e.clickUrl),L(t)}function _(e,t){var n=e+\"-\"+t,r=W[n];M(r)}function D(e){Y.mousedown(j);var t=Q.children('[data-group=\"'+e+'\"]');t.each(function(){var n=t.index(this);u(this).unbind(\"mousedown\").find(\".details\").mousedown(_.bind(this,e,n))}),d()&&v(et)}function P(){u(window.top.document).unbind(\"scroll\").scroll(T),D(tt)}function H(){return st.params}function B(){return J?null:{userId:(chaordic.meta.user||{}).id,deviceId:(chaordic.Identity||{}).browserId,size:H().size,productFormat:\"complete\"}}function j(){K||E()}function F(e,t){o(e),l();var n='<div id=\"widget\" linx-impulse=\"onsite-discover\">'+V.getAsset(H().initialTemplate)+\"</div>\",r=chaordic.newFuglyTemplate(n);r.context({data:t}),u(\"body\").html(r.render()),Q=c().find(\".linx-products\"),Y=c().find(\".linx-load-more\"),G=c().find(\".linx-loading-icon\"),w(t),chaordic.lib.jQuery(window).resize(function(){i()})}function I(e){var t=r();t.style.margin=\"0px\",t.style.padding=\"0px\",chaordic.Base.createFrame(function(t){F(t,e)},t),st.jqDiv=u(t)}function q(){try{var e=H(),t=window.top.document,n=t.querySelector(e.selector);if(n){var r=n.parentNode,i=t.createElement(\"DIV\");i.setAttribute(\"linx-impulse\",e.div);switch(e.selectorReference){case\"beforeElement\":r.insertBefore(i,n);break;case\"intoElement\":n.appendChild(i);break;case\"afterElement\":r.insertBefore(i,n.nextSibling);break;default:}return i}return null}catch(s){return null}}var R='[linx-impulse=\"onsite-discover\"]',U='[linx-impulse=\"onsite-discover\"]',z=\"linxOnsiteClick\",W={},X={feature:\"discover\",baseUrl:\"//recs.chaordicsystems.com/v0/discover\",template:\"product.fugly\",style:[\"theme.css\",\"discover.css\"],initialTemplate:\"discover-initial-content.fugly\",marginRerender:600,timeToWait:100,maxInteraction:20,automaticPagination:{enabled:!0,max:-1},beforeProductRender:function(e){return e},afterPageRender:function(e){}},V=chaordic.ThemeManager,$,J=null,K=!1,Q,G,Y,Z=!1,et,tt,nt=0,rt=chaordic.PriceApi,it=!1,st={feature:\"Discover\",params:{},initialize:function(e){st.params={},chaordic.Object.merge(st.params,X),chaordic.Object.merge(st.params,e),nt=0,chaordic.Currency.defaultFormatter||(chaordic.Currency.defaultFormatter=new chaordic.Currency),H().loadingFirstTime=!0,p(function(e){try{H().loadingFirstTime=!1;if(e){var t=e.slot||{};t.automaticPagination=e.automaticPagination,chaordic.Object.merge(st.params,t);var n=r();n||(n=q(),n||(st.params.div=\"onsite-discover\")),h(function(){return!!r()},function(){I(e)},0)}}catch(i){console.log(\"Discover error:\",i.message)}})},trackClicks:function(){O()},getProductViews:function(){return W}};chaordic.onsite.Discover=st}(),function(){function e(e){var t=this.priceApiOptions.waitToRender.enabled&&this.priceApiOptions.waitToRender.removeProducts.unavailable,n=this.priceApiOptions.waitToRender.enabled&&this.priceApiOptions.waitToRender.removeProducts.failedRequest,r=!0;return t&&(r=r&&(e.status||\"\").toUpperCase()===\"AVAILABLE\"),n&&(r=r&&this.priceApiStatus[e.id]!==2),r}function t(e,t){if(!e)return;t.status&&(e.status=t.status),t.price&&(e.price=t.price),t.oldPrice&&(e.oldPrice=t.oldPrice),t.installment&&(e.installment=t.installment),e.details=e.details||{},chaordic.Object.merge(e.details,t.details)}var n=[\"fallback\",\"filterRecsByPage\",\"filterRefsByPage\",\"filterRecsByBrand\",\"filterRecsByRefs\",\"filterSkuCoverage\",\"minReduction\",\"maxReduction\",\"noveltyPeriod\",\"pageForce\",\"removeBought\",\"removeFree\",\"minPrice\",\"maxPrice\",\"priceMode\",\"useCategoryWeight\",\"visibleProducts\",\"eventType\",\"enabledRec\"],r,i={waitToRender:{enabled:!1,removeProducts:{unavailable:!0,failedRequest:!1}},lazyLoading:{enabled:!1,distanceToRender:0},reRenderProduct:!0},s=chaordic.onsite.AdsUtils,o=function(){r=chaordic.PriceApi};o.prototype._callPriceApi=function(e){var t=\"onsite\";if(!r.active||this.calledPriceApi)return;this.calledPriceApi=!0,this.productMap||this._mapProducts(),this.params.priceApiOptions&&this.params.priceApiOptions.profile&&(t=this.params.priceApiOptions.profile),r.get(t,{products:this._getPriceApiInputProducts(e),onComplete:this._priceApiOnComplete.bind(this),onFailure:this._priceApiOnFailure.bind(this),onFinish:this._priceApiOnFinish.bind(this)})},o.prototype._getPriceApiInputProducts=function(e){e=e||Object.keys(this.renderedProducts);var t=this;return e.map(function(e){var n=t.renderedProducts[e];if(n)return{id:e,skus:[{sku:n.sku}]}})},o.prototype._initPriceApiOptions=function(){var e=chaordic.lib.jQuery;this.priceApiOptions=e.extend(!0,{},i,this.params.priceApiOptions);if(typeof this.priceApiOptions.lazyLoading==\"boolean\"){var t=i.lazyLoading;this.priceApiOptions.lazyLoading={enabled:t,distanceToRender:0}}},o.prototype._mapProducts=function(){var e=this,t=this.params&&this.params.data&&this.params.data.displays&&this.params.data.displays[0],n=chaordic.lib.jQuery;this.priceApiAllGets=n.Deferred(),this.priceApiGet={},this.priceApiStatus={},this.productMap={},this.skuMap={};var r=function(t){e.productMap[t.id]=t,e.priceApiStatus[t.id]=0,e.priceApiGet[t.id]=n.Deferred();if(t.skus){var r={};t.skus.forEach(function(i){r[i.sku]=i,e.priceApiStatus[t.id+i.sku]=0,e.priceApiGet[t.id+i.sku]=n.Deferred()}),e.skuMap[t.id]=r}};t.refs&&t.refs.forEach(r),t.recs&&t.recs.forEach(r),t.collections&&t.collections.forEach(function(e){(e.items||[]).forEach(r)}),Array.isArray(t.campaigns)&&t.campaigns.forEach(function(e){(e.recs||[]).forEach(r)})},o.prototype._priceApiOnComplete=function(e){var t=Array.isArray(e)?e:[e];t.forEach(this._updateProductPrice.bind(this)),typeof this.priceApiOptions.afterOnComplete==\"function\"&&this.priceApiOptions.afterOnComplete.call(this,e)},o.prototype._priceApiOnFailure=function(e,t){var n=this,r=Array.isArray(t)?t:[t];r.forEach(function(e){var t=e.sku?e.id+e.sku:e.id;n.priceApiGet.hasOwnProperty(t)&&(n.priceApiStatus[t]=2,n.priceApiStatus[e.id]=2,n.priceApiGet[t].resolve())})},o.prototype._priceApiOnFinish=function(){var t=this.params&&this.params.data&&this.params.data.displays&&this.params.data.displays[0];t&&t.refs&&t.recs&&(t.refs=t.refs.filter(e.bind(this)),t.recs=t.recs.filter(e.bind(this))),this.priceApiAllGets.resolve()},o.prototype._updateProductPrice=function(e){e=e||{};var n=this.productMap[e.id],r=this;n&&(t(n,e),this.priceApiStatus[e.id]=1,this.priceApiGet[e.id].resolve());if(Array.isArray(e.skus)){var i=this.skuMap;e.skus.forEach(function(n){var s=i&&i[e.id]&&i[e.id][n.sku];s&&(t(s,n),r.priceApiStatus[e.id+n.sku]=1,r.priceApiGet[e.id+n.sku].resolve())})}},o.prototype.getVisibleProducts=function(){var e=chaordic.lib.jQuery,t=[],n,r=(this.carousel.page-1)*this.carousel.visibleItems,i=this.productViews.length,o=r===0||r+this.carousel.visibleItems<i?this.productViews.slice(r,r+this.carousel.visibleItems):this.productViews.slice(i-this.carousel.visibleItems,i);for(var u=0;u<o.length;u++)n={id:o[u].product.id},s.hasAds(o[u].product)&&(n.customBusiness=o[u].product.customBusiness,n.percycleHash=o[u].product.percycleHash),e.isEmptyObject(o[u].selectedSpecs)?e.isEmptyObject(o[u].product.selectedSpecs)||(n.specs=o[u].product.selectedSpecs):n.specs=o[u].selectedSpecs,o[u].product.primeoffer&&o[u].product.primeoffer.campaignId&&(n.campaign=o[u].product.primeoffer.campaignId),t.push(n);return t},o.prototype.getReferenceProducts=function(){var e=[],t=this.params;if(t.referenceProducts||t.referenceProduct)e=t.referenceProducts||[t.referenceProduct];return e},o.prototype.trigger=function(e){if(this.eventsCallbacks[e])for(var t=0;t<this.eventsCallbacks[e].length;t++)this.eventsCallbacks[e][t]()},o.prototype.on=function(e,t){this.eventsCallbacks=this.eventsCallbacks||{},this.eventsCallbacks[e]||(this.eventsCallbacks[e]=[]),this.eventsCallbacks[e].push(t)},o.prototype.setAssets=function(e){this.assets=e},o.prototype.checkAssets=function(){var e=[],t=this;for(var n in this.params.templates)this.params.templates.hasOwnProperty(n)&&e.push(this.params.templates[n]);e=e.concat(this.params.style);var r=[];Object.keys(this.params.templates).forEach(function(e){t.assets.hasAsset(t.params.templates[e])||r.push(t.params.templates[e])});if(r.length>0)throw chaordic.Base.error(new TypeError(\"Missing Asset: \"+r.join(\", \")))},o.prototype.setupPagination=function(){var e,t,n=this,r=1,i=this.widgetDiv.find(\".pagination\"),s=this.carousel.items.length,o=n.carousel.useDefaultPagination;if(!i.length)return;i.empty(),t=this.carousel.getTotalPages();var u=function(){var e,r=o?n.carousel.visibleItems:1;for(var u=0;u<t;u+=r)e=chaordic.lib.jQuery('<li data-page=\"'+(u+1)+'\"><span>'+(u+1)+\"</span></li>\"),i.append(e);o&&s%n.carousel.visibleItems!==0&&(e=chaordic.lib.jQuery('<li data-page=\"'+t+'\"><span>'+t+\"</span></li>\"),i.append(e))};u(),e=i.find(\">li:first\").addClass(\"active\"),this.carousel.on(\"paginationEnd\",function(t,n){var r=i.find('li[data-page=\"'+t+'\"]');o&&r.length!==0?(e&&e.removeClass(\"active\"),e=r.addClass(\"active\")):(e&&e.removeClass(\"active\"),e=i.find('li[data-page=\"'+t+'\"]').addClass(\"active\"))});var a=function(s){r=s||(r===t?1:r+1),n.carousel.gotoPage(r),e&&e.removeClass(\"active\"),e=i.find('li[data-page=\"'+r+'\"]').addClass(\"active\")},f=function(){n.params.autoPagination===!0&&(n.autoPaginationHandlerId=setInterval(function(){a()},n.params.paginationInterval*1e3||7500)),i.find(\"> li\").click(function(){a(parseInt(this.getAttribute(\"data-page\"))),n.params.autoPagination===!0&&clearInterval(n.autoPaginationHandlerId)})};f(),this.carousel.on(\"resize\",function(){n.carousel.getTotalPages()!==t&&(t=n.carousel.getTotalPages(),i.empty(),u(),e=i.find(\">li\").eq(n.carousel.page-1).addClass(\"active\"),f())})},o.prototype.initialize=function(e){var t=this,n={},r=e.result;r&&delete e.result,this.eventsCallbacks={},this.sentVrl=[],this.initializing=!1,this.calledPriceApi=!1,this.defaultParams&&chaordic.Object.merge(n,this.defaultParams),e&&chaordic.Object.merge(n,e),this.params=n,this.widget=this.params.widget||this.feature,this.checkAssets(),typeof n.beforeInitialize==\"function\"&&n.beforeInitialize.call(t,n);if(chaordic.Config.DUMMY_RECS){var i=new RegExp(this.feature,\"gi\");this.featureUrl=this.featureUrl.replace(i,\"dummy\"),n.recsRepeat=\"yes\"}if(!this.params.data){this.initializing=!0,this.serverParams=this._buildServerParams(this.params);var s=function(e){var r=e&&e.displays&&e.displays[0],i=n.recsRepeat;if(r&&r.recs&&r.recs.length>0&&i!==\"yes\"){t.widget!==\"ultimatebuy\"&&t.widget!==\"wishlist\"&&t._filterRepeatedRecs(r,t.widget,i===\"no\"),r.recs.length<n.minProducts&&(e.message=\"Feature is disabled\");var s=n.probablyVisibleLength||n.minProducts;s&&chaordic.NoRepeatRecs.markAllVisible(r.recs,Math.min(s,r.recs.length))}t.initializing=!1,t.params.data=e,e.url&&(t.params.url=e.url),t.trigger(\"load\"),t.loaded=!0},o=function(){chaordic.widgetFallback&&chaordic.widgetFallback[t.feature]&&typeof chaordic.widgetFallback[t.feature].callback==\"function\"&&chaordic.widgetFallback[t.feature].callback(),t.initializing=!1,t.trigger(\"failfetch\")};r?s(r):this._getFeatureData(this.serverParams).success(s).error(o)}chaordic.onsite.Wishlist.injectScript()},o.prototype.notHasToSendMetrics=function(){return!this.params.enabled&&chaordic.Config.DISABLE_METRICS&&(chaordic.Config.HOMOLOGATION||chaordic.Config.DUMMY_RECS)},o.prototype._addVisibleRecs=function(){chaordic.NoRepeatRecs.markAllVisible(this.recs,this.carousel.visibleItems)},o.prototype._filterRepeatedRecs=function(e,t,n){var r,i,s=[],o=[];if(this.refreshRender)return;for(r=0;r<e.recs.length;r++)i=e.recs[r],chaordic.NoRepeatRecs.isVisible(i)&&(!i.primeoffer||t===\"push\")?s.push(i):o.push(i);n?e.recs=o:e.recs=o.concat(s)},o.prototype._getFeatureData=function(e){return chaordic.onsite.Server.get(this.featureUrl,e)},o.prototype._buildServerParams=function(e){var t,r={index:0,size:this.params.size||12,minProducts:this.params.minProducts||2,apiKey:chaordic.Config.API_KEY,page:window.chaordic.meta.page,user:window.chaordic.meta.user,widgetId:this.params.id,source:chaordic.getPageSource()},i=chaordic.meta;i.product&&i.product.id&&(r.page.product={id:i.product.id}),this.params.templateId&&(r.templateId=this.params.templateId),e.hotsiteId&&(r.hotsiteId=e.hotsiteId),!e.referenceProducts&&window.chaordic.meta.cart&&window.chaordic.meta.cart.items&&window.chaordic.meta.page.name===\"cart\"&&(e.referenceProducts=window.chaordic.meta.cart.items.map(function(e){return{id:e.product.id}})),e.referenceProduct&&(r.referenceProduct=e.referenceProduct),e.referenceProducts&&(r.referenceProducts=e.referenceProducts),typeof e.algorithm!=\"undefined\"&&(r.algorithm=e.algorithm),typeof e.requestParams!=\"undefined\"&&chaordic.Object.merge(r,e.requestParams),window.chaordic.Config.DUMMY_RECS===!0&&(r.algorithm=\"dummy\",r.feature=e.feature),window.chaordic.Config.HOMOLOGATION===!0&&(r.bypass=!0),window.chaordic.Config.DEBUG===!0&&(r.debug=!0);for(var s=0;s<n.length;s++)t=n[s],e.hasOwnProperty(t)&&(r[t]=e[t]);return i&&i.page&&i.page.name===\"search\"&&i.search&&i.search.items&&(r.items=chaordic.Arrays.filter(i.search.items,function(e){return e.id}),r.items=chaordic.Arrays.map(r.items,function(e){return{id:e.id}}),r.query=i.search.query),chaordic.widgetFallback&&chaordic.widgetFallback[this.feature]&&typeof chaordic.widgetFallback[this.feature].callback==\"function\"&&(r.timeout=chaordic.widgetFallback[this.feature].timeout||1e4),r},o.prototype._checkVisibility=function(){var e=chaordic.lib.jQuery,t=this;this.viewed=!1;var n=function(){var r=.7,i=chaordic.Element.isInViewport(t.jqDiv[0],r);i&&(t.viewed=!0,t.sentVrl=[],t.sendVRL(),e(window).unbind(\"scroll\",n))};e(window).scroll(n),n()},o.prototype.resetHeight=function(){this.jqDiv&&this.widgetDiv&&this.jqDiv.height(this.widgetDiv.outerHeight(!0))},o.prototype.render=function(e){var t=this,n=this.params,i=n.data;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!i)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!e)throw new Error(\"No valid div to render on!\");if(i.message===\"Feature is disabled\"||!i.displays||i.displays.length===0||i.displays[0].recs.length<n.minProducts)return;r.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts());var s=chaordic.lib.jQuery;this.renderedProducts={},this.jqDiv=chaordic.lib.jQuery(e);var o=!0;typeof n.beforeRender==\"function\"&&(o=n.beforeRender.call(t,n,this.jqDiv));if(o===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,i){var o=!0;for(var u=n.style.length-1;u>=0;u--)t.attachCSS(t.assets.getAsset(n.style[u]));var a=t.widgetDiv=s(\"#widget\",e.contentWindow.document),f=e.contentWindow.document,l=chaordic.newFuglyTemplate(t.assets.getAsset(n.templates.widget));l.context(n),a.html(l.render()),t.notRegisterImpression=r.active&&!t.calledPriceApi&&t.priceApiOptions.waitToRender.enabled;var c=a.find(\".carousel\")[0];c&&(t.carouselDiv=c,t.renderCarousel(c,undefined,i)),r.active&&!t.calledPriceApi&&(t.priceApiOptions.waitToRender.enabled&&(o=!1,t.jqDiv.hide(),t.priceApiAllGets.done(function(){t.render(i)}),t._callPriceApi()),t.priceApiOptions.lazyLoading.enabled||t._callPriceApi()),t.setupPagination(),typeof n.afterDrawWidget==\"function\"&&o&&n.afterDrawWidget.call(t,a),t.setMaxWidth(f,i),n.dynamicHeight===!0?(s(e.contentWindow).resize(function(){t.resetHeight()}),[0,2e3,5e3].map(function(e){setTimeout(function(){t.resetHeight()},e)})):a.find(\".carousel-products\").css(\"position\",\"absolute\"),o&&t._checkVisibility()})},o.prototype._getEventRefs=function(){var e=[],t=this.getReferenceProducts(),n,r;for(r=0;r<t.length;r++)n={id:t[r].id},t[r].selectedSpecs&&(n.specs=t[r].selectedSpecs),e.push(n);return e},o.prototype.sendVRL=function(e,t){var n=this,i=chaordic.lib.jQuery,o=this.params||{},u,a=[],f=[],l,c;if(this.notRegisterImpression||this.notHasToSendMetrics())return;e=e||this.getVisibleProducts();var h=function(e){if(typeof e==\"string\")return e;var t=e.id;return e.specs&&(t+=\"_\"+chaordic.onsite.flattenSpecs(e.specs)),t};for(l=0;l<e.length;l++)c={},chaordic.Object.merge(c,e[l]),u=h(c),i.inArray(u,this.sentVrl)===-1&&(s.hasAds(c)&&f.push({id:u,hash:c.percycleHash,customBusiness:c.customBusiness}),delete c.customBusiness,delete c.percycleHash,a.push(c),this.sentVrl.push(u));if(a.length===0)return;var p={view:{feature:n.widget,recProducts:a,adsProducts:f,paginationInfo:t||n.carousel.getPaginationInfo()}};n.params&&n.params.algorithm&&(p.view.algRef=n.params.algorithm);var d=this.jqDiv.offset(),v=n._getEventRefs(),m={widgetRect:chaordic.lib.JSON.stringify({w:this.jqDiv.width(),h:this.jqDiv.height(),t:d.top,l:d.left}),clientViewport:chaordic.lib.JSON.stringify({w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}),slotId:o.customSlot||o.slotId};chaordic.onsite.templateId&&(m.templateId=chaordic.onsite.templateId),n.serverParams.widgetId&&(m.widgetId=n.serverParams.widgetId),n.params&&n.params.algorithm&&(m.algorithm=n.params.algorithm),n.params&&n.params.hotsiteId&&(m.hotsiteId=n.params.hotsiteId),p.view.info=m,v.length&&(p.view.refProducts=v);if(r.active&&this.priceApiOptions.lazyLoading.enabled&&this.viewed){var g=p.view.recProducts.map(function(e){return e.id});if(Array.isArray(v))for(l=0;l<v.length;++l)g.push(v[l].id);g=g.filter(function(e){if(n.priceApiStatus[e]!==1)return e}),g.length>0&&(this.calledPriceApi=!1,this._callPriceApi(g))}this.lastVrlID=chaordic.event.Registry.viewRecommendations(p,this.viewed),this.viewed&&typeof this.params.afterViewableRecommendation==\"function\"&&this.params.afterViewableRecommendation.call(this,this.widgetDiv)},o.prototype.registerClickListenersByIndex=function(e,t){t=t||this.productViews,this.registerClickListeners(this.items.eq(e),t[e],{itemIndex:e})},o.prototype.registerClickListeners=function(e,t,n){var r=this,i=chaordic.lib.jQuery,s=i(e),o={id:t.product.id};if(this.notHasToSendMetrics())return;i.isEmptyObject(t.selectedSpecs)?i.isEmptyObject(t.product.selectedSpecs)||(o.specs=t.product.selectedSpecs):o.specs=t.selectedSpecs,t.product.primeoffer&&t.product.primeoffer.campaignId&&(o.campaign=t.product.primeoffer.campaignId);var u=function(e){if(e.which!==1&&e.which!==2)return;var u=n||{},a=r.params||{};chaordic.Object.merge(u,r.carousel.getPaginationInfo());var f={paginationInfo:u,interactionType:i(this).hasClass(\"details\")?\"PRODUCT_DETAILS\":\"ADD_TO_CART\",feature:r.widget,info:{vrlId:r.lastVrlID,slotId:a.customSlot||a.slotId},products:[o]};chaordic.onsite.templateId&&(f.info.templateId=chaordic.onsite.templateId),r.serverParams.widgetId&&(f.info.widgetId=r.serverParams.widgetId),r.serverParams.algorithm&&(f.info.algorithm=r.serverParams.algorithm),a.hotsiteId&&(f.info.hotsiteId=a.hotsiteId);if(typeof r.params.buy==\"function\"&&f.interactionType===\"ADD_TO_CART\"){var l=r.params.buy.call(r,t.product,t,s,f,e);if(l===!1)return}chaordic.event.Registry.click(f)};s.find(\"a.details, a.buy\").mousedown(u)};var u=function(e,t,n){var r,i,s,o,u=chaordic.lib.jQuery,a=this.params.specs||{},f=a.specOrder||[],l=a.valueOrder||{},c=function(e,t){return isNaN(e)||isNaN(t)?e>t:e-t};for(r in n.specs){u.inArray(r,f)===-1&&u.inArray(r,e)===-1&&e.push(r),t[r]||(t[r]=[]),o=n.specs[r].length;for(i=0;i<o;i++)s=n.specs[r][i],u.inArray(s.id,l[r])===-1&&u.inArray(s.id,t[r])===-1&&t[r].push(s.id);t[r].sort(c),Array.prototype.unshift.apply(t[r],l[r]||[])}e.sort(c),Array.prototype.unshift.apply(e,f)};o.prototype.setupDefaultCurrencyFormatter=function(e){var t;if(!e)return;e.currencySymbol&&(t={currencySymbol:e.currencySymbol}),chaordic.Currency.defaultFormatter=new chaordic.Currency(t)},o.prototype.renderProduct=function(e,t,n,i,o){var a=this,f=chaordic.lib.jQuery,l=this.params,c,h,p,d,v=chaordic.newFuglyTemplate(this.assets.getAsset(t||l.templates.product)),m,g,y,b,w,E={},S=this.params.specs&&this.params.specs.alias||{},x=[],T=chaordic.meta.page.name;n=n||this.productViews,i=i||this.recs,o=o||this.items,chaordic.Currency.defaultFormatter||this.setupDefaultCurrencyFormatter(l.data.client),c=i[e],c.specs&&function(){var e;for(var t in c.specs){if(!c.specs.hasOwnProperty(t))return;for(var n=0;n<c.specs[t].length;n++)e=c.specs[t][n],!e.id&&e.label&&(e.id=e.label)}}(),c.skus&&(p=new chaordic.onsite.SkuList(c)),c=new chaordic.Product(c),this.params.expandProductUrl!==!1&&c.expandProductUrl(this.params,this.params.data.client.urlTemplates),n[e]=n[e]||{selected:!0,selectedSpecs:c.selectedSpecs||{}},n[e].params=this.params,n[e].product=c,n[e].skuList=p,u.call(this,x,E,i[e]),h=n[e];if(h.skuList){y=h.skuList,!h.selectedSpecs&&h.product.selectedSpecs&&(h.selectedSpecs=h.product.selectedSpecs);for(var N=0;N<x.length;N++){b=x[N],m=h.selectedSpecs[b];if(!m)continue;g=y.filterBySpec(b,{id:m});if(!g.firstAvailable()){delete h.selectedSpecs[b];continue}y=g}c=new chaordic.Product(y.firstAvailable()||y.skus[0]),this.params.expandProductUrl!==!1&&c.expandProductUrl(this.params,this.params.data.client.urlTemplates),h.product=c}w=f(\"<div></div>\"),h.skuList&&c.status.toLowerCase()===\"available\"&&function(){var e,t,n,r,i,s,o,u,l,c;h.selected=!0;for(e=0;e<x.length;e++){r=x[e],s=f('<select data-spec=\"'+r+'\"></select>'),l=a.params.specs&&a.params.specs.forceSelection&&f.isArray(a.params.specs.forceSelection)&&f.inArray(r,a.params.specs.forceSelection)!==-1;if(typeof u==\"undefined\"&&e>0&&l&&h.product.specs[r]){s.attr(\"disabled\",\"disabled\"),s.append('<option value=\"#\">'+(S[r]||r)+\"</option>\"),w.append(f('<div class=\"selectWrapper\"></div>').append(s));continue}if(o&&!o[u])continue;o=o?o[u].skus.groupBy(r):h.skuList.groupBy(r);if(!o)continue;l&&s.append('<option value=\"#\">'+(S[r]||r)+\"</option>\"),c=!1;for(t=0;t<E[r].length;t++){n=E[r][t];if(!o[n])continue;if(o[n].status!==\"available\")continue;i=f('<option value=\"'+o[n].id+'\">'+o[n].label+\"</option>\");if(l&&h.selectedSpecs[r]===n||!l&&h.product.specs[r]&&h.product.specs[r].id===n)u=n,i.attr(\"selected\",\"selected\"),!l&&!h.selectedSpecs[r]&&(h.selectedSpecs[r]=n),c=!0;s.append(i)}h.selected=h.selected?c:!1,w.append(f('<div class=\"selectWrapper\"></div>').append(s))}}(),typeof l.productView==\"function\"&&l.productView.call(a,h,e),s.hasAds(h.product)&&s.formatProductClickUrl(h.product,{page:T,feature:h.params.feature,widgetId:h.params.id}),a.renderedProducts[h.product.id]=h.product;if(r.active){var C=h.product.sku?h.product.id+h.product.sku:h.product.id;h.priceApiStatus=this.priceApiStatus[C]||0,!this.priceApiStatus[C]&&!this.priceApiOptions.waitToRender.enabled&&this.priceApiOptions.reRenderProduct&&this.priceApiGet&&this.priceApiGet[C]&&this.priceApiGet[C].done(function(){a.renderProduct(e,t,n,i,o),a.registerClickListenersByIndex(e,n),d.find(\".specs select\").change(a.changeSpecSelect(e)),d.find(\".spec-selector\").click(a.changeSpec(e))})}v.context(h),d=o.eq(e).html(v.render()),d.attr(\"data-productid\",h.product.id),d.find(\".specs\").append(w),h.product.mostBought||d.find(\".percent-img\").remove(),typeof l.afterDrawProduct==\"function\"&&l.afterDrawProduct.call(a,d,h,a.widgetDiv,e);var k=h.product;chaordic.onsite.Wishlist.addLikeButton(d[0],{id:k.id},l.wishlist),a.handleLazyLoad(d)},o.prototype.changeSpecSelect=function(e){var t=this;return function(){var n=t.items.eq(e);this.value===\"#\"?delete t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,t.renderProduct(e),t.registerClickListenersByIndex(e),n.find(\".specs select\").change(t.changeSpecSelect(e)),n.find(\".spec-selector\").click(t.changeSpec(e))}},o.prototype.changeSpec=function(e){var t=this;return function(){var n=t.items.eq(e);this.value===\"#\"?delete t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),t.renderProduct(e),t.registerClickListenersByIndex(e),n.find(\".specs select\").change(t.changeSpecSelect(e)),n.find(\".spec-selector\").click(t.changeSpec(e))}},o.prototype.renderCarousel=function(e,t,n){var r=this,i=this.widgetDiv,s=chaordic.lib.jQuery,o=this.params,u=o.data,a=t||{},f=a.productTemplate,l=chaordic.Object.copy(o.carousel),c,h,p;chaordic.Object.merge(l,a.carousel),this.recs=a.productsData||u.displays[0].recs.slice(0),this.productViews=[],h=i.find(l.next||\".next\"),p=i.find(l.prev||\".prev\");var d=[];o.referenceProduct&&d.push(o.referenceProduct),o.referenceProducts&&(d=o.referenceProducts);var v=this.carousel=new chaordic.Carousel(e,l,n);for(c=0;c<this.recs.length;c++)v.append(\"\");this.items=s(e).find(\".carousel-products .carousel-item\");var m=function(){var e=v.getVisibleElements();typeof r.params.carousel.itemsPerPage==\"number\"&&r.params.carousel.itemsPerPage>0&&(e=e[0].find(\".carousel-item\"));var t=[];for(var n=0;n<e.length;n++)t.push(s(e[n]).attr(\"data-productid\"));r.sendVRL()};for(c=0;c<this.recs.length;c++)this.renderProduct(c,f),this.registerClickListenersByIndex(c),r.items.eq(c).find(\".specs select\").change(this.changeSpecSelect(c)),r.items.eq(c).find(\".spec-selector\").click(this.changeSpec(c));r.jqDiv.show(),v.on(\"resize\",function(){var e=v.options.loopScroll,t=v.getTotalPages(),n=v.page;a.doNotRegisterVRL||m(),h.add(p).removeClass(\"disabled\");if(!e||t===1)n===1&&p.addClass(\"disabled\"),n===t&&h.addClass(\"disabled\")}),v.options.loopScroll!==!0&&(p.addClass(\"disabled\"),h.removeClass(\"disabled\"),v.on(\"paginationStart\",function(e,t){var n=e===1,r=e===v.getTotalPages();h.toggleClass(\"disabled\",r),p.toggleClass(\"disabled\",n)}));var g=!1;return v.on(\"paginationStart\",function(e,t){g=!0,h.addClass(\"scrolling\"),p.addClass(\"scrolling\")}),v.on(\"paginationEnd\",function(e,t){a.doNotRegisterVRL||m();var n=e===1,r=e===v.getTotalPages();v.options.loopScroll!==!0&&(h.toggleClass(\"disabled\",r),p.toggleClass(\"disabled\",n)),g=!1,h.removeClass(\"scrolling\"),p.removeClass(\"scrolling\")}),v.resize(),this._addVisibleRecs(this.recs,this.carousel),setTimeout(function(){v.resize()},200),h.off(\"click\").on(\"click\",function(){if(g)return;r.autoPaginationHandlerId&&clearInterval(r.autoPaginationHandlerId),v.nextPage()}),p.off(\"click\").on(\"click\",function(){if(g)return;r.autoPaginationHandlerId&&clearInterval(r.autoPaginationHandlerId),v.previousPage()}),v},o.prototype.attachCSS=function(e){if(!this.frame)throw new TypeError(\"[chaordic.onsite.Feature] Trying to attach css to uncreated frame. Check synchronization.\");var t=this.frame.contentWindow.document,n=t.getElementsByTagName(\"head\")[0]||t.documentElement,r=t.createElement(\"style\");r.type=\"text/css\",r.appendChild(t.createTextNode(e)),n.insertBefore(r,n.firstChild)},o.prototype.setMaxWidth=function(e,t){chaordic.lib.jQuery(e).find(\"body\").css({\"max-width\":chaordic.lib.jQuery(t||window).width()})},o.prototype.createFrame=function(e,t){var n=this;chaordic.Base.createFrame(function(r){var i=r.contentWindow.document,s=window.chaordic.meta.page.name,o=[],u=\"\",a=chaordic.getPageSource(),f=window.top,l=f.screen;o.push(n.params.widgetClass||\"\"),o.push(n.feature),o.push(\"ontouchstart\"in window||navigator.maxTouchPoints?\"touch\":\"no-touch\"),o.push(\"page-\"+s),o.push(a),u=l.width<l.height?l.width:l.height,a===\"mobile\"&&o.push(u<768?\"phone\":\"tablet\"),n.widget!==n.feature&&o.push(n.widget),n.params.widgetClass=o.join(\" \"),chaordic.lib.jQuery(\"body\",i).html('<div id=\"widget\" class=\"'+n.params.widgetClass+'\"></div>'),r.style.display=\"block\",r.width=\"100%\",r.height=\"100%\",n.frame=r,n.setMaxWidth(i,e),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){n.setMaxWidth(i,e)}),chaordic.lib.jQuery(window).resize(function(){n.setMaxWidth(i,e)});var c=i.createElement(\"base\"),h=i.getElementsByTagName(\"head\")[0],p=chaordic.Config.PROTOCOL+[chaordic.Config.STATIC_HOST,chaordic.Config.STATIC_CONTEXT,chaordic.Config.THEME_PATH,chaordic.Config.STATIC_API,chaordic.Config.THEME_URL].join(\"/\").replace(/\\/\\//g,\"/\");c.href=p,h.insertBefore(c,h.firstChild),chaordic.onsite.Wishlist.injectScriptInFrame(r,n.params.wishlist),n.frame=r,t(r,e)},e)},o.prototype.handleLazyLoad=function(e){var t=this,n=chaordic.lib.jQuery,r=e.find(\".lazy-container\"),i=r&&r.find(\"img.lazy\"),s;setTimeout(function(){var e=function(e){var n=new Image,i=e.getAttribute(\"data-src\");n.onload=function(){e.src=i,e.className=e.className.replace(\"lazy\",\"\"),e.removeAttribute(\"data-src\");var t=r.length&&r[0],n=t.className;t&&n.replace(\"lazy-container\",\"\")&&(t.className=n.replace(\"lazy-container\",\"\"))},n.src=i,t.params&&t.params.dynamicHeight&&[0,2e3,5e3].map(function(e){setTimeout(function(){t.resetHeight()},e)})},o=function(){i.length&&i.each(function(t,n){e(n)})},u=function(){return t.priceApiOptions?t.priceApiOptions.lazyLoading.distanceToRender:0},a=function(){return chaordic.Element.isNearViewport(t.jqDiv[0],u())};if(a()){o();return}s=chaordic.Function.debounce(function(){a()&&(o(),n(window).unbind(\"scroll\",s))},300),n(window).bind(\"scroll\",s)})},chaordic.onsite.Feature=o}(),function(){var e=chaordic.Arrays,t=chaordic.Object.bind,n={getSlotDivs:function(){var e=chaordic.lib.jQuery,t=e(\"div[chaordic]\",chaordic.window.document),n={},r,i=document.querySelector(\"impulse-search\");if(i){var s=i.shadowRoot.querySelectorAll(\"div[chaordic]\");t=e(t.toArray().concat([].slice.call(s||[])))}if(!t.length)return;for(r=0;r<t.length;r++)n[t.eq(r).attr(\"chaordic\").trim()]=e(t[r]);return n},createWidgetDiv:function(e,t){var n=chaordic.lib.jQuery('<div class=\"chaordic page-render\"></div>',chaordic.window.document);t.feature&&n.attr(\"data-widget\",t.feature.toLowerCase()),t.skin&&n.attr(\"data-skin\",t.skin);if(t.positonInSlot!==undefined&&t.positonInSlot>=0){var r=chaordic.lib.jQuery,i=r(e).children(\":not(:empty)\").get(t.positonInSlot);i?r(i).before(n):e.append(n)}else e&&e.append(n);return n}},r=function(e){this.params=e};r.prototype.getParams=function(){var e=this.params,t=chaordic.ThemeManager.getTheme(e.feature,e.skin||null),n=(e.feature+\"count\").toLowerCase();return chaordic.widgetLoadedCount||(chaordic.widgetLoadedCount={}),chaordic.widgetLoadedCount[n]?chaordic.widgetLoadedCount[n]++:chaordic.widgetLoadedCount[n]=1,e.title||(e.title=\"\"),t&&(chaordic.Object.merge(t,e),e=t),e},r.prototype.initialize=function(e){var t=chaordic.onsite[this.params.feature],n=new t;this.widget=n,this.div=chaordic.PageDivHandler.createWidgetDiv(e.div,this.params),n.setAssets(chaordic.ThemeManager),n.initialize(this.getParams()),n.params.slotId=e.id},r.prototype.hasController=function(){return Boolean(chaordic.onsite[this.params.feature])},r.prototype.hasTheme=function(){return Boolean(chaordic.ThemeManager.hasTheme(this.params.feature,this.params.skin||null))},r.prototype.isEnable=function(){return Boolean(this.params.enabled===!0||chaordic.Config.HOMOLOGATION)},r.prototype.isAvaliable=function(){return this.hasTheme()&&this.hasController()&&this.isEnable()},r.prototype.render=function(e){var t=this.div,n=this.widget,r=function(){var r=n.params.data;r&&r.ok&&r.displays&&r.displays.length?(n.render(t),e(!0)):e(!1)};n.loaded?r():(n.on(\"load\",r),n.on(\"failfetch\",function(){e(!1)}))};var i=function(e,t,n,r,i){this.id=e,this.div=t,this.pool=n,this.size=r,this.overflow=i};i.prototype.renderFixed=function(t){var n=this,r=[],i=0,s=0,o=Math.min(this.size,this.pool.length),u=function(){r.length&&r.shift()(n,u)},a=function(){--s===0&&r.length&&r.shift()(n,u)};this.pool=this.pool.filter(function(e){return e.params&&e.params.fixed?(i++,r.push(e),!1):!0}),e.forEach(this.pool,function(e){s++,e(n,a)}),this.pool.length===0&&i&&r.shift()(n,u),t()},i.prototype.renderOverflow=function(e){var t,n,r=this,i=this.pool,s=Math.min(this.size,i.length),o=s,u=[],a=0;if(!s){e();return}var f=function(t){t?u.length?u.shift()(r,f):e():i.length>0?i.shift()(r,f):u.length?u.shift()(r,f):e()};n=function(t){t?--o-a===0?a===0?e():u.shift()(r,f):!i.length&&o&&e():i.length>0?i.shift()(r,n):u.length?u.shift()(r,f):e()};var l=null;for(t=i.length-1;t>=0;t--)l=i[t],l.params&&l.params.fixed&&(u.unshift(l),i.splice(t,1),a++);for(t=0;t<s-a;t++)i.length>0&&(l=i.shift(),l(r,n));s-a===0&&a&&u.shift()(r,f)},i.prototype.render=function(e){return this.div.empty(),this.overflow?this.renderOverflow(e):this.renderFixed(e)};var s=function(t){var n=t.widgets,s=t.slots,o=t.layout,u=function(t){var i=e.map(t,function(e){return new r(n[e])});return i=e.filter(i,function(e){return e.isAvaliable()}),i=e.map(i,function(e){var t=function(t,n){e.initialize(t),e.render(n)};return t.params=e.params,t}),i},a=function(e,t,n,r){return r.length&&(r=r.filter(function(e){return chaordic.findValueIndex(n,\"params.id\",e.params.id)===-1}),e=e.filter(function(e){return chaordic.findValueIndex(r,\"params.id\",e.params.id)===-1})),n=e.filter(function(e){return!e.params.fixed||chaordic.findValueIndex(t,\"params.id\",e.params.id)!==-1}),{pool:e,filteredPool:n}};this.columns=e.map(o,function(t){var n=t.overflow,r=[],o=[],f=[],l,c=e.map(t.rows,function(e){var t=e.slot,n=s[t],c=u(n.widgets);return c.map(function(e,t){e.params.fixed&&(e.params.positonInSlot=t)}),n.overflow&&Array.prototype.push.apply(r,c),function(e){var s=e[t];if(s)return n.overflow&&(l=a(r,c,o,f),r=l.pool,o=l.filteredPool,f=o.slice()),new i(t,s,n.overflow?o:c,c.length,n.overflow)}});return n&&n.length>0&&Array.prototype.push.apply(r,u(n)),c})};s.prototype.render=function(t){var n=this;chaordic.Base.onLoad(function(){var r=chaordic.PageDivHandler.getSlotDivs();if(!r)return;e.reduceRight(n.columns,function(t,n){return e.reduceRight(n,function(e,t){return function(){var n=t(r);n?n.render(e):e()}},t)},t||function(){})()})},chaordic.PageDivHandler=n,chaordic.WidgetRender=r,chaordic.SlotRender=i,chaordic.PageRender=s}(),function(){var e=chaordic.Arrays,t=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),n=function(e){return e&&e.product&&e.product.id},r=function(e){return{id:e.product.id}};chaordic.onsite.Server=t;var i=[];chaordic.onsite.PageService={getParams:function(t){var i=window.chaordic.meta,s=i.page,o=i.user,u={apiKey:chaordic.Config.API_KEY,page:s,user:o,source:chaordic.getPageSource()};i.product&&(u.referenceProduct={id:window.chaordic.meta.product.id},s&&s.selectedSpecs&&(u.referenceProduct.specs=chaordic.meta.page.selectedSpecs)),s&&s.name===\"cart\"&&i.cart&&i.cart.items&&(u.items=e.filter(i.cart.items,n),u.items=e.map(u.items,r)),s&&s.name===\"search\"&&i.search&&i.search.items&&(u.items=e.filter(i.search.items,function(e){return e.id}),u.items=e.map(u.items,function(e){return{id:e.id}}),u.query=i.search.query),u.page&&(u.page.url=u.page.url||window.location.href);var a=location.search;return a.indexOf(\"templateId=\")!==-1&&(u.templateId=a.split(\"templateId=\")[1].split(\"&\")[0]),chaordic.templateId&&(u.templateId=chaordic.templateId),t&&(u.timeout=t),chaordic.Config.HOMOLOGATION===!0&&(u.bypass=!0),chaordic.Config.DEBUG===!0&&(u.debug=!0),u},getURL:function(){return chaordic.Config.USE_ONE_CALL&&!chaordic.Config.DUMMY_RECS?\"/v5/recommend/all\":\"/v5/recommend\"},addInterceptor:function(e){i.push(e)},clearInterceptors:function(){return i.splice(0,i.length)},getPage:function(t){var n=chaordic.onsite.Server.get(this.getURL(),this.getParams(t));return{success:function(t){return n.success(function(n){t(e.reduce(i,function(e,t){return t(e)||e},n))}),this},error:function(e){return n.error(e),this}}}}}(),function(){var e=function(e){if(chaordic.Object.isArray(e)){this.skus=chaordic.Object.copy(e);return}this.setSkusFromProduct(e)};e.prototype.firstAvailable=function(){for(var e=0;e<this.skus.length;e++)if(this.skus[e].status.toLowerCase()===\"available\")return this.skus[e];return null},e.prototype.setSkusFromProduct=function(e){var t,n,r,i,s,o,u;this.skus=[],t=chaordic.Object.copy(e),delete t.skus,n={};for(u in t.specs){n[u]={};for(r=0;r<t.specs[u].length;r++)n[u][t.specs[u][r].id]=t.specs[u][r]}delete t.specs;for(r=0;r<e.skus.length;r++){s=chaordic.Object.copy(t),i=chaordic.Object.copy(e.skus[r]),o=i.specs,i.specs={},chaordic.Object.merge(s,i);for(u in o)n[u]&&o[u]&&(i.specs[u]=n[u][o[u]]);this.skus.push(s)}},e.prototype.groupBy=function(t){var n,r,i,s,o,u,a,f;if(chaordic.Object.isArray(t)){n={};for(a=0;a<t.length;a++)n[t[a]]=this.groupBy(t[a]);return n}s={},i={};for(a=0;a<this.skus.length;a++)r=this.skus[a],r.specs[t]&&(o=r.specs[t],i[o.id]||(i[o.id]=[],s[o.id]=o,s[o.id].status=\"unavailable\"),r.status.toLowerCase()===\"available\"&&(s[o.id].status=\"available\"),i[o.id].push(r));n={},f=!0;for(u in i)f=!1,n[u]=chaordic.Object.copy(s[u]),n[u].skus=new e(i[u]);return f?undefined:n},e.prototype.filterBySpec=function(t,n){var r,i,s,o,u=[];for(s=0;s<this.skus.length;s++){r=this.skus[s],o=!0;for(i in n)r.specs[t]&&r.specs[t][i]!==n[i]&&(o=!1);o&&u.push(r)}return new e(u)},e.prototype.getSpecs=function(e){var t,n,r,i;t=[];for(i=0;i<this.skus.length;i++)this.skus[i].specs[e]&&(n=chaordic.Object.copy(this.skus[i].specs[e]),n.status=this.skus[i].status,n.sku=this.skus[i].sku,t.push(n));return t},chaordic.onsite.SkuList=e}(),function(){\"use strict\";function e(){}e.prototype.mergeParams=function(e){var t=chaordic.Object.copy(chaordic.Config.WISHLIST||{});return chaordic.Object.merge(t,e||{}),t},e.prototype.injectScript=function(){var e=chaordic.Config.WISHLIST||{};if(e&&e.active&&!e.wasAdded){e.wasAdded=!0;var t=document.createElement(\"script\");t.src=e.scriptUrl;var n=document.getElementsByTagName(\"head\")[0];n.insertBefore(t,n.firstChild)}},e.prototype.injectScriptInFrame=function(e,t){var n=this.mergeParams(t),r,i,s;n.active&&(r=e.contentWindow.document,i=r.getElementsByTagName(\"head\")[0],s=r.createElement(\"script\"),s.src=n.scriptUrl,i.insertBefore(s,i.firstChild),e.contentWindow._nm={wishlistConfig:{iframe:{parentDocument:document,parentWindow:window}}})},e.prototype.addLikeButton=function(e,t,n){var r=this.mergeParams(n);if(r.active){var i=[{key:\"product-id\",value:t.id}];r.short&&i.push({key:\"short\",value:\"short\"}),r.likeLabel&&i.push({key:\"like-label\",value:r.likeLabel}),r.unlikeLabel&&i.push({key:\"unlike-label\",value:r.unlikeLabel});var s=document.createElement(\"like-button\");for(var o=0;o<i.length;o++)s.setAttribute(i[o].key,i[o].value);e.appendChild(s)}},chaordic.onsite.Wishlist=new e}(),function(){var e=function(){this.feature=\"ads\",this.featureUrl=\"/v5/recommend/ads\",this.defaultParams={title:\"Ads\",vertical:!1,templates:{widget:\"ads.fugly\",product:\"product.fugly\"},menuTransitionDuration:800,style:[\"theme.css\",\"ads.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){chaordic.onsite.Feature.prototype.initialize.call(this,e)},chaordic.onsite.Ads=e}(),function(){var e,t=function(){this.feature=\"collection\",this.featureUrl=\"/v5/recommend/collection\",this.defaultParams={title:\"collection\",vertical:!1,templates:{widget:\"collection-widget.fugly\",product:\"collection-product.fugly\",collection:\"collection-element.fugly\"},menuTransitionDuration:800,style:[\"theme.css\",\"collection.css\"]},this.selectedCollectionId=null,this.hideCollectionItems=!0,e=chaordic.PriceApi};t.prototype=new chaordic.onsite.Feature,t.prototype.initialize=function(e){chaordic.onsite.Feature.prototype.initialize.call(this,e)},t.prototype._getPriceApiInputProducts=function(){var e=this.productMap;return Object.keys(e).map(function(t){var n=e[t];return{id:n.id,skus:n.skus}})},t.prototype.duplicateHoverElement=function(e){var t=this.hoverCollectionDivs[e],n=this.widgetDiv.find(\".hover-collection-wrapper\"),r=t.clone(!0,!0);return n.html(\"\"),r.appendTo(n),r},t.prototype.getVisibleProducts=function(){var e=this,t=[],n=(e.carousel.page-1)*e.carousel.visibleItems,r=e.collectionsViews.length,i=n===0||n+e.carousel.visibleItems<r?e.collectionsViews.slice(n,n+e.carousel.visibleItems):e.collectionsViews.slice(r-e.carousel.visibleItems,r);return i.forEach(function(e){e.items.forEach(function(e){var n={id:e.id};t.push(n)})}),t},t.prototype.hideHoverCollection=function(){var e=this,t=e.widgetDiv.find(\".carousel\"),n=e.widgetDiv.find(\".hover-collection-wrapper\");e.isOverItem=!1,setTimeout(function(){!e.isOverItem&&e.hideCollectionItems&&(e.selectedCollectionId=null,n.html(\"\"),t.removeClass(\"hover\"),t.find(\".carousel-item.hover\").removeClass(\"hover\"))},500)},t.prototype.openBuyCollectionModal=function(e){chaordic.onsite.BuyCollectionModal.show({collection:e,productViews:this.productViews.filter(function(t){return!!e.items.filter(function(n){return t.product.idCollection===e.id&&t.product.id===n.id}).length}),widgetData:{widget:this.widget,params:this.params,serverParams:this.serverParams}})},t.prototype.setupCollectionsViews=function(e){var t=this,n=chaordic.Object.copy,r=e.map(function(e){var r=n(e);return r.items=r.items.map(function(e){(e.skus||[]).forEach(function(e){e.status=e.status.toLowerCase(),e.isAvailable=e.status===\"available\"}),t.params.removeUnavailableSpecs&&(e.skus=(e.skus||[]).filter(function(e){return e.isAvailable}));var n=new chaordic.Product(e);return n.idCollection=r.id,n.specs&&function(){var e;for(var t in n.specs){if(!n.specs.hasOwnProperty(t))return;for(var r=0;r<n.specs[t].length;r++)e=n.specs[t][r],!e.id&&e.label&&(e.id=e.label)}}(),t.params.expandProductUrl!==!1&&n.expandProductUrl(t.params,t.params.data.client.urlTemplates),n}),r});return t.collectionsViews=r,r},t.prototype.renderItem=function(e,t,n,r){var i=this,s=chaordic.lib.jQuery,o=chaordic.newFuglyTemplate(i.assets.getAsset(i.params.templates.product)),u;t.skus&&(u=new chaordic.onsite.SkuList(t)),this.productViews=this.productViews||[];var a=this.productViews[r]||{params:this.params,product:t,skuList:u,selectedSpecs:[]};this.productViews[r]||(this.productViews[r]=a),typeof this.params.productView==\"function\"&&this.params.productView.call(i,a,r),typeof i.params.beforeRenderItem==\"function\"&&i.params.beforeRenderItem.call(i,a);var f=s('<div class=\"product-link\"></div>');o.context(a),s(f).html(o.render()),this.renderedProducts[t.id]=t,s(e).append(f),i.registerClickListeners(f,{product:t}),typeof this.params.afterDrawItem==\"function\"&&this.params.afterDrawItem.call(i,f,t,e,r)},t.prototype.renderCollectionElement=function(e,t,n,r){var i=this,s=chaordic.lib.jQuery,o,u,a=t.items||[],f=chaordic.newFuglyTemplate(i.assets.getAsset(i.params.templates.collection)),l={image:t.images&&t.images[0],name:t.name};f.context(l),s(e).html(f.render()),o=s(e).find(\".collection-items\"),u=s(e).find(\".hover-collection\"),s(e).data(\"collection-id\",t.id),i.hoverCollectionDivs[t.id]=u,a.forEach(function(e,t){i.renderItem(o,e,t,r+t)}),u.mousedown(function(e){e.which===3&&(i.hideCollectionItems=!1)})},t.prototype.renderCarousel=function(e,t,n,r){var i=this,s=chaordic.lib.jQuery,o=this.carousel=new chaordic.Carousel(t,this.params.carousel,e),u,a;this.hoverCollectionDivs={},n=n||[],r=r||n.length,n=n.filter(function(e){var t=(e.items||[]).filter(function(e){return(e.status||\"\").toLowerCase()!==\"available\"});return t.length>=r?!1:!0}),n.forEach(function(){o.append(\"\")});var f=s(t).find(\".carousel-products .carousel-item\"),l=0;f.each(function(e,t){i.renderCollectionElement(t,n[e],e,l),l+=n[e].items.length}),u=this.widgetDiv.find(this.params.carousel.next||\".next\"),a=this.widgetDiv.find(this.params.carousel.prev||\".prev\");var c=function(){var e=o.getVisibleElements();typeof i.params.carousel.itemsPerPage==\"number\"&&i.params.carousel.itemsPerPage>0&&(e=e[0].find(\".carousel-item\"));var t=[];e.forEach(function(e){s(e).find(\".product-link.details\").each(function(e){t.push(s(e).attr(\"data-productid\"))})}),i.sendVRL()};o.on(\"resize\",function(){c();var e=o.options.loopScroll,t=o.getTotalPages(),n=o.page;u.add(a).removeClass(\"disabled\");if(!e||t===1)n===1&&a.addClass(\"disabled\"),n===t&&u.addClass(\"disabled\")}),o.options.loopScroll!==!0&&(a.addClass(\"disabled\"),u.removeClass(\"disabled\"),o.on(\"paginationStart\",function(e,t){var n=e===1,r=e===o.getTotalPages();u.toggleClass(\"disabled\",r),a.toggleClass(\"disabled\",n)}));var h=!1;return o.on(\"paginationStart\",function(e,t){h=!0,u.addClass(\"scrolling\"),a.addClass(\"scrolling\")}),o.on(\"paginationEnd\",function(e,t){c();var n=e===1,r=e===o.getTotalPages();o.options.loopScroll!==!0&&(u.toggleClass(\"disabled\",r),a.toggleClass(\"disabled\",n)),h=!1,u.removeClass(\"scrolling\"),a.removeClass(\"scrolling\")}),o.resize(),setTimeout(function(){o.resize()},200),u.off(\"click\").on(\"click\",function(){if(h)return;i.autoPaginationHandlerId&&clearInterval(i.autoPaginationHandlerId),o.nextPage()}),a.off(\"click\").on(\"click\",function(){if(h)return;i.autoPaginationHandlerId&&clearInterval(i.autoPaginationHandlerId),o.previousPage()}),o},t.prototype.render=function(t){var n=this,r=this.params,i=r.data,s=chaordic.lib.jQuery;this.jqDiv=chaordic.lib.jQuery(t),this.renderedProducts={};if(this.initializing){this.on(\"load\",function(){n.render(t)});return}if(!i)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!t)throw new Error(\"No valid div to render on!\");if(i.message===\"Feature is disabled\"||!i.displays||i.displays.length===0||i.displays[0].collections.length<r.minProducts)return;e.active&&!this.calledPriceApi&&(n._initPriceApiOptions(),n._mapProducts());var o=!0;typeof r.beforeRender==\"function\"&&(o=r.beforeRender.call(n,r,this.jqDiv));if(o===!1)return;r.height&&this.jqDiv.css(\"height\",r.height),r.width&&this.jqDiv.css(\"width\",r.width),this.jqDiv.html(\"\"),this.jqDiv.show(),chaordic.Currency.defaultFormatter||n.setupDefaultCurrencyFormatter(n.params.data.client),this.createFrame(this.jqDiv[0],function(t,i){var o=t.contentWindow.document,u=!0;n.widgetDiv=s(\"#widget\",t.contentWindow.document),r.style.forEach(function(e){n.attachCSS(n.assets.getAsset(e))});var a=chaordic.newFuglyTemplate(n.assets.getAsset(r.templates.widget));a.context(r),n.widgetDiv.html(a.render());var f=n.widgetDiv.find(\".carousel\")[0],l=r.data&&r.data.displays&&r.data.displays[0]&&r.data.displays[0].collections||[];n.setupCollectionsViews(l),n.renderCarousel(i,f,n.collectionsViews),e.active&&!n.calledPriceApi&&(u=!1,n.jqDiv.hide(),n.priceApiAllGets.done(function(){n.render(i)}),n._callPriceApi()),n.setupPagination(),typeof r.afterDrawWidget==\"function\"&&u&&r.afterDrawWidget.call(n,n.widgetDiv),n.setMaxWidth(o,i),r.dynamicHeight===!0&&(s(t.contentWindow).resize(function(){n.jqDiv.height(n.widgetDiv.outerHeight(!0))}),[0,2e3,5e3].map(function(e){setTimeout(function(){n.jqDiv.height(n.widgetDiv.outerHeight(!0))},e)})),u&&n._checkVisibility(),n.registerEvents(l)})},t.prototype.registerEvents=function(e){var t=this,n=chaordic.lib.jQuery,r=t.widgetDiv.find(\".buy-button\"),i=t.widgetDiv.find(\".carousel-item\"),s=t.widgetDiv.find(\".hover-collection-wrapper\"),o=t.widgetDiv.find(\".btn-arrow-collection-element\");e.forEach(function(e,n){r.eq(n).off(\"click\").on(\"click\",function(){t.openBuyCollectionModal.call(t,e)}),i.eq(n).off(\"click\").on(\"click\",function(){t.openBuyCollectionModal.call(t,e)})}),i.mouseover(function(e){t.isOverItem=!0;var r=n(e.currentTarget);t.showHoverCollection.call(t,r);var i=t.getScrollItemsCollection(),s=i.heightCo,o=i.heightEl;o>s&&t.widgetDiv.find(\".hover-collection-wrapper .btn-arrow-collection-element\").addClass(\"show-arrow\")}),i.mouseout(function(){t.hideHoverCollection.call(t)}),s.mouseover(function(){t.isOverItem=!0}),s.mouseout(function(){t.hideHoverCollection.call(t)});var u=0,a;o.on(\"mouseout, mousecancel, mouseup\",function(){clearInterval(a)}).mousedown(function(){var e=t.widgetDiv.find(\".hover-collection-wrapper .collection-items\"),r=n(this).hasClass(\"up\")?1:-1,i=t.getScrollItemsCollection(),s=i.heightCo,o=i.heightEl,f=n(this),l=t.widgetDiv.find(\".hover-collection-wrapper .btn-arrow-collection-element\");a=setInterval(function(){u>=0&&r===1?(u=0,f.addClass(\"arrived-in-the-end\"),clearInterval(a)):r===-1&&s>=o+u?(f.addClass(\"arrived-in-the-end\"),clearInterval(a)):(u+=r,l.removeClass(\"arrived-in-the-end\")),e.css(\"transform\",\"translate(0, \"+u+\"px)\")},5)}).first().addClass(\"arrived-in-the-end\"),i.mouseout(function(){u=0})},t.prototype.getScrollItemsCollection=function(){var e=this.widgetDiv.find(\".hover-collection-wrapper .collection-items\"),t=this.widgetDiv.find(\".hover-collection-wrapper .container-items-height\");return{heightCo:t.height(),heightEl:e.height()}},t.prototype.showHoverCollection=function(e){if(!chaordic.isMobile){this.isOverItem=!0;var t=e.data(\"collection-id\");if(t===this.selectedCollectionId)return;this.hideCollectionItems=!0;var n=this.duplicateHoverElement(t);this.selectedCollectionId=t;var r=this.widgetDiv.find(\".carousel\");r.addClass(\"hover\"),r.find(\".carousel-item.hover\").removeClass(\"hover\"),e.addClass(\"hover\");var i=e.offset().left,s=e.offset().top,o=e.outerHeight(),u=e.outerWidth(),a=n.outerWidth(),f=n.outerHeight(),l=i-(a-u)/2,c=s+o/2-f/2;n.offset({top:c,left:l})}},chaordic.onsite.Collection=t}(),function(){var e=function(){this.feature=\"featured\",this.featureUrl=\"/v5/recommend/featured\",this.defaultParams={title:\"\",vertical:!1,templates:{widget:\"featured.fugly\",product:\"featured-product.fugly\"},autoPagination:!0,style:[\"theme.css\",\"featured.css\"]}};e.prototype=new chaordic.onsite.Feature,chaordic.onsite.Featured=e}(),function(){var e=chaordic.onsite.AdsUtils,t=function(){this.feature=\"frequentlyboughttogether\",this.featureUrl=\"v5/recommend/frequentlyBoughtTogether\",this.defaultParams={title:\"Você está vendo\",subTitle:\"Compre junto\",vertical:!1,templates:{widget:\"frequentlyboughttogether.fugly\",product:\"frequentlyboughttogether-product.fugly\",summary:\"frequentlyboughttogether-summary.fugly\"},priceApiOptions:{waitToRender:{enabled:!0,removeProducts:{unavailable:!0,failedRequest:!0}}},style:[\"frequentlyboughttogether.css\",\"theme.css\"],visibleProducts:3},this.items=chaordic.lib.jQuery(),this.paginationCount=0,this.recs=[],this.productViews=[],this.viewedCampaignProducts={},this.productViewsLastStatus=[],this.recsLastStatus=[],this.isCampaignInserted=!1,this.disabledSkip={}};t.prototype=new chaordic.onsite.Feature,t.prototype._getPriceApiInputProducts=function(){var e=this.productMap;return Object.keys(e).map(function(t){var n=e[t];return{id:n.id,skus:n.skus}})},t.prototype.initialize=function(e){if(!e.referenceProduct){if(!chaordic.meta.product)throw new TypeError(\"Missing mandatory Product (chaordic_meta) parameter for FrequentlyBoughtTogether\");e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)}chaordic.onsite.Feature.prototype.initialize.call(this,e)},t.prototype.sendVRL=function(t){var n=chaordic.lib.jQuery,r={id:this.reference.id},i=[],s=[],o;if(this.notHasToSendMetrics())return;for(var u=1;u<this.params.visibleProducts;u++)o=this.recs[u],i.push({id:o.id}),e.hasAds(this.recs[u])&&s.push({id:o.id,percycleHash:o.percycleHash,customBusiness:o.customBusiness});if(i.length===0)return;var a=chaordic.Object.copy(window.chaordic.meta.page),f={view:{feature:this.widget,recProducts:i,adsProducts:s,refProducts:[r],paginationInfo:{pageItems:i.length,pageIndex:t||0,itemIndex:0},info:{}},page:a,apiKey:chaordic.Config.API_KEY};chaordic.onsite.templateId&&(f.view.info.templateId=chaordic.onsite.templateId),this.serverParams.widgetId&&(f.view.info.widgetId=this.serverParams.widgetId),this.serverParams.algorithm&&(f.view.info.algorithm=this.serverParams.algorithm),f.page.tags&&(f.tags=f.page.tags,delete f.page.tags),f.page.categories&&(f.categories=f.page.categories,delete f.page.categories),chaordic.event.Registry.viewRecommendations(f,this.viewed),this.viewed&&typeof this.params.afterViewableRecommendation==\"function\"&&this.params.afterViewableRecommendation.call(this,this.widgetDiv)},t.prototype.sendClickLog=function(e,t){var n={id:this.reference.id},r=[];if(this.notHasToSendMetrics())return;for(var i=1;i<this.params.visibleProducts;i++)this.productViews[i].fbtDisabled!==!0&&r.push({id:this.recs[i].id});var s={products:e,feature:this.widget,interactionType:t||\"PRODUCT_DETAILS\",paginationInfo:{pageItems:r.length,pageIndex:0,itemIndex:0},info:{}};this.params.slotId&&(s.info.slotId=this.params.slotId),chaordic.onsite.templateId&&(s.info.templateId=chaordic.onsite.templateId),this.serverParams.widgetId&&(s.info.widgetId=this.serverParams.widgetId),this.serverParams.algorithm&&(s.info.algorithm=this.serverParams.algorithm),chaordic.event.Registry.click(s)},t.prototype.render=function(e){var t=this,n=chaordic.lib.jQuery;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!this.params.data.displays||this.params.data.displays.length===0||this.params.data.displays[0].refs.length===0||this.params.data.displays[0].recs.length===0)return;if(this.params.data.message&&this.params.data.message===\"Feature is disabled\")return;chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts()),this.jqDiv=chaordic.lib.jQuery(e),this.renderedProducts={};var r=!0;typeof this.params.beforeRender==\"function\"&&(r=this.params.beforeRender.call(t,this.params,this.jqDiv));if(r===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,r){var i=t.params,s=t.assets,o=t.params.data,u=e.contentWindow.document,a,f,l,c,h=!0;t.reference=o.displays[0].refs[0],t.recs=[t.reference].concat(o.displays[0].recs),t.params.visibleProducts=t.params.visibleProducts<t.recs.length?t.params.visibleProducts:t.recs.length,t.campaignsByPosition={},(o.displays[0].campaigns||[]).forEach(function(e){t.campaignsByPosition[e.position]=e.recs,e.recs.length===1&&(t.disabledSkip[e.position]=!0)}),n.isEmptyObject(t.campaignsByPosition)||Object.keys(t.campaignsByPosition).forEach(function(e){t.viewedCampaignProducts[e]=[t.recs[e]]});for(a=0;a<i.style.length;a+=1)t.attachCSS(s.getAsset(i.style[a]));f=chaordic.lib.jQuery(\"#widget\",e.contentWindow.document),l=chaordic.newFuglyTemplate(s.getAsset(i.templates.widget)),l.context(i),f.html(l.render()),t.jqWidget=f,t.renderProducts(),t.renderSummary(c),t.jqDiv.show(),chaordic.PriceApi.active&&!t.calledPriceApi?(h=!1,t.jqDiv.hide(),t.priceApiAllGets.done(function(){t.render(r)}),t._callPriceApi()):t.sendVRL(),typeof i.afterDrawWidget==\"function\"&&h&&i.afterDrawWidget.call(t,f),t.setMaxWidth(u,r),i.dynamicHeight===!0&&(n(e.contentWindow).resize(function(){t.jqDiv.height(f.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){t.jqDiv.height(f.outerHeight(!0))}),[0,2e3,5e3].map(function(e){setTimeout(function(){t.jqDiv.height(f.outerHeight(!0))},e)})),h&&t._checkVisibility()})},t.prototype.renderSummary=function(){var e=chaordic.lib.jQuery(\"#summary\",this.jqWidget),t=this,n=0,r=0,i=!1,s,o=[],u,a;typeof t.params.beforeRenderSummary==\"function\"&&t.params.beforeRenderSummary.call(t);if(!e.length)return;for(var f=0;f<this.params.visibleProducts;f++){s=this.productViews[f].product;if(this.productViews[f].fbtDisabled===!0)continue;this.productViews[f].selected||(i=!0),o.push(s),n+=s.price,r+=s.oldPrice?s.oldPrice:s.price}a=chaordic.newFuglyTemplate(this.assets.getAsset(this.params.templates.summary)),u={price:chaordic.Currency.format(n),selectedProducts:o,disabled:i},r>n&&(u.oldPrice=chaordic.Currency.format(r),u.savings=chaordic.Currency.format(r-n)),typeof t.params.summaryView==\"function\"&&t.params.summaryView.call(t,u),a.context(u),e.html(a.render()),typeof this.params.buyTogether==\"function\"&&this.jqWidget.find(\".buy-together\").click(function(){var e=[],n=[];for(var r=0;r<t.params.visibleProducts;r++){s=t.productViews[r].product;if(t.productViews[r].fbtDisabled===!0)continue;n.push({id:s.id}),e.push(s)}var i=t.params.buyTogether.call(t,e,t.productViews);if(i===!1)return;t.sendClickLog(n,\"ADD_TO_CART\")}),typeof t.params.afterDrawSummary==\"function\"&&t.params.afterDrawSummary.call(t,t.jqWidget)},t.prototype.enabledProductsCount=function(){var e=0;for(var t=0;t<this.params.visibleProducts;t++)(typeof this.productViews[t]==\"undefined\"||this.productViews[t].fbtDisabled!==!0)&&e++;return e},t.prototype.renderProduct=function(e){var t=chaordic.lib.jQuery,n=this.items.eq(e).empty(),r=this,i,s,o,u,a,f=this.params.afterDrawProduct;this.params.afterDrawProduct=undefined,chaordic.onsite.Feature.prototype.renderProduct.call(this,e),this.params.afterDrawProduct=f,this.isCampaignInserted||(this.productViewsLastStatus=this.productViews.slice(),this.recsLastStatus=this.recs.slice()),a=this.productViews[e],i=n.find(\".skip\"),s=n.find(\".disable-product\"),o=n.find(\".enable-product\"),u=n.find(\".toggle-product\"),e>0?(r.disabledSkip.hasOwnProperty(e)?i.remove():i.click(function(){r.skipProduct(e)}),s.click(function(){r.disableProduct(e)}),o.click(function(){r.enableProduct(e)}),u.click(function(){r.toggleProduct(e)}),o.hide()):i.remove(),this.enabledProductsCount()>2&&e>0&&n.addClass(\"removable\"),this.recs.length<=this.params.visibleProducts&&i.hide(),typeof this.params.afterDrawProduct==\"function\"&&this.params.afterDrawProduct.call(this,n,a,this.jqWidget,e),n.find(\"a.details\").click(function(){var e=a.product;return function(){r.sendClickLog([{id:e.id}])}}()),n.find(\".specs select\").change(function(){this.value===\"#\"?delete r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,r.renderProduct(e),r.renderSummary()}),n.find(\".spec-selector\").click(function(){this.value===\"#\"?delete r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),r.renderProduct(e),r.renderSummary()})},t.prototype.skipProduct=function(e){if(this.recs.length<=this.params.visibleProducts)return;var t=chaordic.lib.jQuery,n,r,i,s,o,u;if(!t.isEmptyObject(this.campaignsByPosition)&&this.campaignsByPosition.hasOwnProperty(e)&&this.campaignsByPosition[e].length>0){this.isCampaignInserted=!0,o=this.viewedCampaignProducts[e].length,o<this.campaignsByPosition[e].length?(n=this.recs[e],i=this.campaignsByPosition[e][o],this.viewedCampaignProducts[e].push(i)):(n=this.recs[e],i=this.campaignsByPosition[e][0],this.viewedCampaignProducts[e]=[i],this.productViews=this.productViews.slice(0,this.params.visibleProducts));for(u=this.params.visibleProducts;u<this.params.visibleProducts+1;u++)this.productViews[u]=undefined;r=this.productViews[e],s=this.productViews[this.params.visibleProducts]}else{this.isCampaignInserted=!1,this.productViews=this.productViewsLastStatus.slice(),this.recs=this.recsLastStatus.slice();if(this.productViews.length<this.recs.length)for(u=0;u<this.recs.length;u++)this.productViews[u]||(this.productViews[u]=undefined);n=this.recs[e],r=this.productViews[e],i=this.recs[this.params.visibleProducts],s=this.productViews[this.params.visibleProducts]}this.productViews[e]=s,this.productViews.splice(this.params.visibleProducts,1),this.productViews.push(r),this.recs[e]=i,this.recs.splice(this.params.visibleProducts,1),this.recs.push(n),this.renderProduct(e),this.renderSummary(),this.sendVRL(++this.paginationCount)},t.prototype.toggleProduct=function(e){this.productViews[e].fbtDisabled===!0?this.enableProduct(e):this.disableProduct(e)},t.prototype.disableProduct=function(e){var t=this.items.eq(e),n=this;t.addClass(\"disabled\"),this.productViews[e].fbtDisabled=!0,this.enabledProductsCount()===2&&this.items.removeClass(\"removable\"),this.renderSummary()},t.prototype.enableProduct=function(e){var t=this.items.eq(e);t.removeClass(\"disabled\"),this.productViews[e].fbtDisabled=!1,this.enabledProductsCount()>2&&(this.items.addClass(\"removable\"),this.items.eq(0).removeClass(\"removable\")),this.renderSummary()},t.prototype.renderProducts=function(){var e=0,t=this.jqWidget.find(\"#thumbnails\");this.productViews=[];while(e<this.params.visibleProducts)e>0&&t.append('<span class=\"plus\">+</span>'),t.append('<div data-index=\"'+e+'\" class=\"item\"></div>'),e+=1;this.items=t.find(\"> .item\");for(e=0;e<this.params.visibleProducts;e++)this.renderProduct(e)},chaordic.onsite.FrequentlyBoughtTogether=t}(),function(){var e=function(){this.feature=\"historypersonalized\",this.featureUrl=\"/v5/recommend/historyPersonalized\",this.defaultParams={title:\"Últimos visitados\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"historypersonalized.fugly\",onlyRefs:\"widget.fugly\",product:\"product.fugly\",refProduct:\"historypersonalized-ref-product.fugly\"},style:[\"theme.css\",\"historypersonalized.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){this.assets.hasAsset(this.defaultParams.templates.onlyRefs)||(this.defaultParams.templates.onlyRefs=\"similaritems.fugly\"),chaordic.onsite.Feature.prototype.initialize.call(this,e)},e.prototype.getReferenceProducts=function(){return this.params.data.displays[0].refs},e.prototype.setCarouselOption=function(e){var t=this.params,n,r;t.enabledRec===!1?(n=chaordic.Object.copy(t.carousel),typeof t.carouselOnlyRefs==\"object\"?(r=chaordic.Object.copy(t.carouselOnlyRefs),chaordic.Object.merge(n,r)):n.maxVisibleItems+=1,e.carousel=n):chaordic.isMobile&&typeof t.carouselRefsMobile==\"object\"?(e.carousel={},chaordic.Object.merge(e.carousel,t.carousel),chaordic.Object.merge(e.carousel,t.carouselRefsMobile)):!chaordic.isMobile&&typeof t.carouselRefsDesktop==\"object\"&&chaordic.Object.merge(e.carousel,t.carouselRefsDesktop)},e.prototype.renderRecs=function(e,t){var n=this.params;typeof n.beforeRenderRecs==\"function\"&&n.beforeRenderRecs.call(this,n,this.jqDiv);var r=e.find(\".recs-frame > .carousel\"),i=r[0],s={productsData:t,carousel:{next:\".recs-next\",prev:\".recs-prev\"}};i&&(r.empty(),this.renderCarousel(i,s))},e.prototype.renderList=function(e,t){var n=this.params;typeof n.beforeRenderRecs==\"function\"&&n.beforeRenderRecs.call(this,n,this.jqDiv);var r=e.find(\".carousel\"),i=r[0],s={productsData:t};this.setCarouselOption(s),i&&(r.empty(),this.renderCarousel(i,s))},e.prototype.renderRefs=function(e,t){var n=e.find(\".refs-frame > .carousel\"),r=n[0],i=this.params,s=typeof chaordic.verticalHpRefs!=\"undefined\"?chaordic.verticalHpRefs:!0,o=typeof i.allowRefsClick!=\"undefined\"?i.allowRefsClick:!1;typeof i.beforeRenderRefs==\"function\"&&i.beforeRenderRefs.call(this,i,this.jqDiv);if(r){n.empty();var u=[],a={productsData:t,productTemplate:this.params.templates.refProduct,doNotRegisterVRL:!0,carousel:{vertical:s,dynamicMode:!chaordic.isMobile||s?\"margin\":\"box\",next:\".refs-next\",prev:\".refs-prev\"}};this.setCarouselOption(a),this.renderCarousel(r,a),o||(!chaordic.isMobile||s)&&this.attachClickHandler(e,r)}},e.prototype.attachClickHandler=function(e,t){var n=this,r=chaordic.lib.jQuery,i=r(t).find(\"li\"),s;i.click(function(t){var o=r(t.currentTarget);if(r(t.target).hasClass(\"details\"))return!0;t.preventDefault(),s=o.attr(\"data-productid\");if(n.params.referenceProduct&&n.params.referenceProduct.id===s)return;i.removeClass(\"selected\"),o.addClass(\"selected\"),n.params.referenceProduct={id:s},delete n.params.data,n.params.hideWidgetOnLoad=!1,n._getFeatureData(n._buildServerParams(n.params)).success(function(t){n.params.data=t,n.calledPriceApi=!1,n.renderedProducts={},n._mapProducts(),n.renderRecs(e,t.displays[0].recs),n.setupPagination(),chaordic.PriceApi.active&&n.priceApiOptions.waitToRender.enabled&&n.priceApiAllGets.done(function(){n.renderRecs(e,t.displays[0].recs),n.setupPagination()}),n._callPriceApi()}).error(function(){n.initializing=!1})})},e.prototype.render=function(e){var t=chaordic.lib.jQuery,n=this.params,r=n.data,i=this;if(this.initializing){this.on(\"load\",function(){i.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(r.message===\"Feature is disabled\"||!r.displays||r.displays.length===0||r.displays[0].recs.length===0||n.enabledRec!==!1&&r.displays[0].refs.length===0)return;chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts()),this.jqDiv=chaordic.lib.jQuery(e),this.renderedProducts={};var s=!0;typeof n.beforeRender==\"function\"&&(s=n.beforeRender.call(i,n,this.jqDiv));if(s===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,r){var s=!0;for(var o=n.style.length-1;o>=0;o--)i.attachCSS(i.assets.getAsset(n.style[o]));var u=i.widgetDiv=t(\"#widget\",e.contentWindow.document),a;n.enabledRec!==!1?a=chaordic.newFuglyTemplate(i.assets.getAsset(n.templates.widget)):a=chaordic.newFuglyTemplate(i.assets.getAsset(n.templates.onlyRefs));var f=e.contentWindow.document;a.context(n),u.html(a.render()),i.notRegisterImpression=chaordic.PriceApi.active&&!i.calledPriceApi&&i.priceApiOptions.waitToRender.enabled,n.enabledRec!==!1?(i.renderRefs(u,i.params.data.displays[0].refs),i.renderRecs(u,i.params.data.displays[0].recs)):i.renderList(u,i.params.data.displays[0].recs),chaordic.PriceApi.active&&!i.calledPriceApi&&(i.priceApiOptions.waitToRender.enabled&&(s=!1,i.jqDiv.hide(),i.priceApiAllGets.done(function(){i.render(r)}),i._callPriceApi()),i.priceApiOptions.lazyLoading.enabled||i._callPriceApi()),i.setupPagination(),typeof n.afterDrawWidget==\"function\"&&s&&n.afterDrawWidget.call(i,u),i.setMaxWidth(f,r),n.dynamicHeight===!0?(t(e.contentWindow).resize(function(){i.jqDiv.height(u.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){i.jqDiv.height(u.outerHeight(!0))}),[0,2e3,5e3].map(function(e){setTimeout(function(){i.jqDiv.height(u.outerHeight(!0))},e)})):u.find(\".carousel-products\").css(\"position\",\"absolute\"),s&&i._checkVisibility()})},chaordic.onsite.HistoryPersonalized=e}(),function(){var e=function(){this.feature=\"hotsite\",this.featureUrl=\"/v5/recommend/hotsite\",this.defaultParams={title:\"HotSite\",vertical:!1,templates:{widget:\"hotsite.fugly\",product:\"product.fugly\"},menuTransitionDuration:800,style:[\"theme.css\",\"hotsite.css\"]}};e.prototype=new chaordic.onsite.Feature,chaordic.onsite.HotSite=e}(),function(){var e=function(){this.feature=\"mostpopular\",this.featureUrl=\"/v5/recommend/mostPopular\",this.defaultParams={title:\"Mais Populares\",vertical:!1,templates:{widget:\"mostpopular.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"mostpopular.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){var t,n,r;t=this,typeof e.productView==\"function\"&&(n=e.productView),this.rankingCount=1,e.productView=function(){arguments[0].ranking||(arguments[0].ranking=t.rankingCount,t.rankingCount++),typeof n==\"function\"&&n.apply(t,arguments)},chaordic.meta.product&&(e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page&&chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)),chaordic.onsite.Feature.prototype.initialize.call(this,e)},e.prototype.render=function(e){var t=this,n=this.params,r=n.data;this.rankingCount=1;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(r.message===\"Feature is disabled\"||r.displays&&r.displays.length===0)return;this.params.data.displays[0].categories&&this.params.data.displays[0].categories.length>0&&(this.params.categories=this.params.data.displays[0].categories),chaordic.onsite.Feature.prototype.render.apply(this,arguments)},chaordic.onsite.MostPopular=e}(),function(){var e=function(){this.feature=\"new4you\",this.featureUrl=\"/v5/recommend/new4You\",this.defaultParams={title:\"Novidades que chegaram pra você\",vertical:!1,templates:{widget:\"new4you.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"new4you.css\"]}};e.prototype=new chaordic.onsite.Feature,chaordic.onsite.New4You=e}(),function(){var e=function(){this.feature=\"offers\",this.featureUrl=\"/v5/recommend/offers\",this.defaultParams={title:\"Produtos que baixaram de preço\",vertical:!1,templates:{widget:\"offers.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"offers.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.renderProduct=function(e,t,n,r,i){n=n||this.productViews,r=r||this.recs,i=i||this.items;var s=chaordic.Currency.parseBRLNumber,o=r[e],u=typeof o.price==\"string\"?s(o.price):o.price,a=typeof o.oldPrice==\"string\"?s(o.oldPrice):o.oldPrice,f=o.skus,l=n&&n[e],c=l&&l.selectedSpecs,h;if(!c&&f)if(o.recSku){for(h=0;h<f.length;h++)if(f[h].sku===o.recSku){o.selectedSpecs=f[h].specs;break}}else for(h=0;h<f.length;h++)if(f[h].price===u&&f[h].oldPrice===a&&f[h].status===\"available\"){o.selectedSpecs=f[h].specs,o.recSku=f[h];break}chaordic.onsite.Feature.prototype.renderProduct.apply(this,arguments)},chaordic.onsite.Offers=e}(),function(){var e={},t=function(){this.feature=\"personalized\",this.featureUrl=\"/v5/recommend/personalized\",this.defaultParams={title:\"Você visitou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};t.prototype=new chaordic.onsite.Feature,t.prototype.render=function(t){var n=this,r=chaordic.lib.jQuery,i=this.params,s=i.data,o;if(this.initializing){this.on(\"load\",function(){n.render(t)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(s.message===\"Feature is disabled\"||!s.displays||s.displays.length===0||s.displays[0].refs.length===0||s.displays[0].recs.length===0)return;var u=s.displays[0].refs[0],a=u.id;u.selectedSpecs&&(a+=\"_\"+chaordic.onsite.flattenSpecs(u.selectedSpecs));var f=(this.feature+\"count\").toLowerCase();e[a]||(e[a]=0),e[a]++;if(e[a]>1&&e[a]<=chaordic.widgetLoadedCount[f]){delete this.params.data,typeof this.params.requestParams==\"undefined\"&&(this.params.requestParams={}),this.params.requestParams.avoidProducts=[{id:u.id}],this.initialize(this.params),this.render(t);return}if(e[a]&&e[a]>1)return;this.jqDiv=chaordic.lib.jQuery(t),this.renderedProducts={},chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts());var l=!0;typeof i.beforeRender==\"function\"&&(l=i.beforeRender.call(n,i,this.jqDiv));if(l===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(t,u){var f=!0;for(var l=i.style.length-1;l>=0;l--)n.attachCSS(n.assets.getAsset(i.style[l]));var c=n.widgetDiv=r(\"#widget\",t.contentWindow.document),h=chaordic.newFuglyTemplate(n.assets.getAsset(i.templates.widget)),p=t.contentWindow.document;h.context(i),c.html(h.render()),n.notRegisterImpression=chaordic.PriceApi.active&&!n.calledPriceApi&&n.priceApiOptions.waitToRender.enabled;var d=c.find(\".action\");n.referenceProduct=s.displays[0].refs[0],i.referenceProduct={id:n.referenceProduct.id};if(d.length>0){var v=[];n.renderProduct(0,i.templates.referenceProduct,v,s.displays[0].refs,d);var m=function(){this.value===\"#\"?delete v[0].selectedSpecs[this.getAttribute(\"data-spec\")]:v[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,n.renderProduct(0,i.templates.referenceProduct,v,s.displays[0].refs,d),n.registerClickListeners(d,v[0]),d.find(\".specs select\").change(m),d.find(\".spec-selector\").click(g)},g=function(e){this.value===\"#\"?delete v[0].selectedSpecs[this.getAttribute(\"data-spec\")]:v[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),n.renderProduct(0,i.templates.referenceProduct,v,s.displays[0].refs,d),n.registerClickListeners(d,v[0]),d.find(\".specs select\").change(m),d.find(\".spec-selector\").click(g)};n.registerClickListeners(d,v[0]),d.find(\".specs select\").change(m),d.find(\".spec-selector\").click(g),typeof i.afterDrawProduct==\"function\"&&i.afterDrawProduct.call(n,d,v[0].product,c,0)}var y=c.find(\".carousel\")[0];y&&(n.carousel=o=n.renderCarousel(y,undefined,u)),chaordic.PriceApi.active&&!n.calledPriceApi&&(n.priceApiOptions.waitToRender.enabled&&(f=!1,n.refreshRender||n.jqDiv.hide(),n.priceApiAllGets.done(function(){e[a]=0,n.render(u)}),n._callPriceApi()),n.priceApiOptions.lazyLoading.enabled||n._callPriceApi());var b=c.find(\".refresh\");b.click(function(){e={},b.off(),c.addClass(\"loading\"),typeof n.params.requestParams==\"undefined\"&&(n.params.requestParams={}),n.params.requestParams.avoidProducts=[{id:n.referenceProduct.id}],delete n.params.data,n.params.hideWidgetOnLoad=!1,n.refreshRender=!0,n.initialize(n.params),n.render(n.jqDiv[0])}),n.setupPagination(),typeof i.afterDrawWidget==\"function\"&&f&&i.afterDrawWidget.call(n,c),n.setMaxWidth(p,u),i.dynamicHeight===!0?(r(t.contentWindow).resize(function(){n.jqDiv.height(c.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){n.jqDiv.height(c.outerHeight(!0))}),(this.timeoutRefs||[]).forEach(function(e){clearTimeout(e)}),this.timeoutRefs=[0,2e3,5e3].map(function(e){return setTimeout(function(){n.jqDiv.height(c.outerHeight(!0))},e)})):c.find(\".carousel-products\").css(\"position\",\"absolute\"),f&&n._checkVisibility()})},chaordic.onsite.Personalized=t}(),function(){var e,t=function(){this.feature=\"push\",this.featureUrl=\"/v5/recommend/push\",this.defaultParams={title:\"Promovidos\",vertical:!1,templates:{widget:\"push.fugly\",product:\"product.fugly\"},menuTransitionDuration:800,style:[\"theme.css\",\"push.css\"]},e=chaordic.lib.jQuery};t.prototype=new chaordic.onsite.Feature,t.prototype._loadCampaign=function(e){return this.serverParams.campaignId=e,this._getFeatureData(this.serverParams)},t.prototype._populateRenderedProducts=function(e){var t=[];e&&e.displays&&e.displays[0].recs&&(t=e.displays[0].recs.slice(0));for(var n=0;n<t.length;n++){var r=t[n],i;r.skus&&(i=new chaordic.onsite.SkuList(r)),r=new chaordic.Product(i.firstAvailable()||i.skus[0]),this.renderedProducts[r.id]=r}},t.prototype._registerMenuClickListeners=function(){var t=this;this.menu.items.click(function(n){var r=e(n.currentTarget);t._switchSelectedItem(r),t._loadCampaign(r.data(\"campaignid\")).success(function(n){t.params.data=n,t.calledPriceApi=!1,t.renderedProducts={},t._mapProducts();var i=function(){e(t.carouselDiv).empty(),t.renderCarousel(t.carouselDiv,undefined,t.jqDiv[0]),t.setupPagination(),typeof t.params.afterChangeMenuItem==\"function\"&&t.params.afterChangeMenuItem.call(t,r)};chaordic.PriceApi.active&&t.priceApiOptions.waitToRender.enabled?(t._populateRenderedProducts(n),t.priceApiAllGets.done(i)):i(),t._callPriceApi()})})},t.prototype._renderDeadline=function(){function e(){var e=t._getTimeRemaining(t.params.deadline),n=e.days*24+e.hours;n=n.toString().length===1?\"0\"+n:n,r.innerHTML=n,i.innerHTML=(\"0\"+e.minutes).slice(-2),s.innerHTML=(\"0\"+e.seconds).slice(-2),e.total<=0&&clearInterval(o)}var t=this;if(!this.widgetDiv)return;var n=this.widgetDiv.find(\".deadline-wrapper\");if(!n||!this.params.deadline)return;var r=document.createElement(\"div\");r.setAttribute(\"class\",\"hour\"),n.append(r);var i=document.createElement(\"div\");i.setAttribute(\"class\",\"minute\"),n.append(i);var s=document.createElement(\"div\");s.setAttribute(\"class\",\"second\"),n.append(s),e();var o=setInterval(e,1e3)},t.prototype._renderMenu=function(){if(!this.widgetDiv)return;var t=this.widgetDiv.find(\".menu-wrapper\");if(!t||!this.params.menu)return;var n=document.createElement(\"ul\");n.setAttribute(\"class\",\"menu\"),t.append(n);var r=[],i;this.params.menu.forEach(function(e){var t=document.createElement(\"li\");t.setAttribute(\"class\",\"menu-item\"),t.setAttribute(\"data-campaignid\",e.campaignId),t.innerHTML=e.label,e.selected&&(t.classList.add(\"selected\"),i=t),r.push(t),n.appendChild(t)}),this.menu.items=e(r),this.menu.selectedItem=e(i),typeof this.params.afterRenderMenu==\"function\"&&this.params.afterRenderMenu.call(this,e(n)),this._registerMenuClickListeners()},t.prototype._switchSelectedItem=function(e){this.menu.selectedItem.removeClass(\"selected\"),e.addClass(\"selected\"),this.menu.selectedItem=e,chaordic.isMobile&&this._centralizeSelectedItem(e)},t.prototype._centralizeSelectedItem=function(e){var t=this.widgetDiv.find(\".menu-wrapper\"),n=e.outerWidth(!0),r=e.position().left+n/2-t.width()/2;t.animate({scrollLeft:r+\"px\"},this.params.menuTransitionDuration)},t.prototype.initialize=function(e){e.id&&(typeof e.requestParams==\"undefined\"&&(e.requestParams={}),e.requestParams.algorithm=\"push_\"+e.id),chaordic.meta.product&&(e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page&&chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)),this.menu={},chaordic.onsite.Feature.prototype.initialize.call(this,e)},t.prototype.render=function(e){var t=this;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!this.params.data.displays||this.params.data.displays.length===0)return;this.params.data.displays[0].categories&&this.params.data.displays[0].categories.length>0&&(this.params.categories=this.params.data.displays[0].categories),Array.isArray(this.params.data.displays[0].menu)&&(this.params.menu=this.params.data.displays[0].menu),this.params.data.displays[0].deadline&&(this.params.deadline=this.params.data.displays[0].deadline),chaordic.onsite.Feature.prototype.render.apply(this,arguments),this._renderMenu(),this._renderDeadline()},t.prototype._getTimeRemaining=function(e){var t=Date.parse(e)-Date.parse(new Date),n=Math.floor(t/1e3%60),r=Math.floor(t/1e3/60%60),i=Math.floor(t/36e5%24),s=Math.floor(t/864e5);return{total:t,days:s>0?s:0,hours:i>0?i:0,minutes:r>0?r:0,seconds:n>0?n:0}},chaordic.onsite.Push=t}(),function(){var e=function(){this.feature=\"shoppingcart\",this.featureUrl=\"/v5/recommend/shoppingCart\",this.defaultParams={title:\"Aproveite e leve também\",vertical:!1,templates:{widget:\"shoppingcart.fugly\",product:\"product.fugly\"},priceApiOptions:{waitToRender:{enabled:!0,removeProducts:{unavailable:!0,failedRequest:!0}}},style:[\"theme.css\",\"shoppingcart.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype._getPriceApiInputProducts=function(){var e=this.productMap;return Object.keys(e).map(function(t){var n=e[t];return{id:n.id,skus:n.skus}})},e.prototype.initialize=function(e){var t;if(!e.referenceProducts&&!chaordic.meta.cart)throw new TypeError(\"Missing mandatory Cart (chaordic_meta) parameter for ShoppingCart.\");chaordic.onsite.Feature.prototype.initialize.call(this,e)},chaordic.onsite.ShoppingCart=e}(),function(){var e=function(){this.feature=\"similaritems\",this.featureUrl=\"/v5/recommend/similarItems\",this.defaultParams={title:\"Produtos visitados por quem procura este item\",vertical:!1,templates:{widget:\"similaritems.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"similaritems.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){if(!e.referenceProduct){if(!chaordic.meta.product)throw new TypeError(\"Missing mandatory Product (chaordic_meta) parameter for SimilarItems.\");e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)}chaordic.onsite.Feature.prototype.initialize.call(this,e)},chaordic.onsite.SimilarItems=e}(),function(){var e=function(){this.feature=\"ultimatebuy\",this.featureUrl=\"/v5/recommend/ultimateBuy\",this.defaultParamsOptions={ubLayout:{title:\"O que os clientes mais compram após ver este item\",vertical:!1,templates:{widget:\"ultimatebuy.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"ultimatebuy.css\"]},vpLayout:{title:\"Você visitou...\",subTitle:\"O que os clientes mais compram após ver este item\",vertical:!1,templates:{widgetPersonalized:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"ultimatebuy.css\",\"personalized.css\"]}}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){if(chaordic.meta.page.name!==\"product\")this.defaultParams=this.defaultParamsOptions.vpLayout;else{this.defaultParams=this.defaultParamsOptions.ubLayout;var t,n;if(!e.referenceProduct){if(!chaordic.meta.product)throw new TypeError(\"Missing mandatory Product (chaordic_meta) parameter for UltimateBuy.\");e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)}t=this,typeof e.productView==\"function\"&&(n=e.productView),e.productView=function(){arguments[0].isReference=chaordic.meta.product.id===arguments[0].product.id,typeof n==\"function\"&&n.apply(t,arguments)}}e.recsRepeat=\"yes\",chaordic.onsite.Feature.prototype.initialize.call(this,e)},e.prototype.render=function(e){chaordic.meta.page.name!==\"product\"?this.renderAsPersonalized(e):chaordic.onsite.Feature.prototype.render.call(this,e)},e.prototype.renderAsPersonalized=function(e){var t=this,n=chaordic.lib.jQuery,r=this.params,i=r.data,s;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(i.message===\"Feature is disabled\"||!i.displays||i.displays.length===0||i.displays[0].refs.length===0||i.displays[0].recs.length===0)return;chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts()),this.jqDiv=chaordic.lib.jQuery(e),this.renderedProducts={};var o=!0;typeof r.beforeRender==\"function\"&&(o=r.beforeRender.call(t,r,this.jqDiv));if(o===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,o){var u=!0;for(var a=r.style.length-1;a>=0;a--)t.attachCSS(t.assets.getAsset(r.style[a]));var f=t.widgetDiv=n(\"#widget\",e.contentWindow.document),l=chaordic.newFuglyTemplate(t.assets.getAsset(r.templates.widgetPersonalized)),c=e.contentWindow.document;l.context(r),f.html(l.render()),t.notRegisterImpression=chaordic.PriceApi.active&&!t.calledPriceApi&&t.priceApiOptions.waitToRender.enabled;var h=f.find(\".action\");t.referenceProduct=i.displays[0].refs[0],r.referenceProduct={id:t.referenceProduct.id};if(h.length>0){var p=[];t.renderProduct(0,r.templates.referenceProduct,p,i.displays[0].refs,h);var d=function(){this.value===\"#\"?delete p[0].selectedSpecs[this.getAttribute(\"data-spec\")]:p[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,t.renderProduct(0,r.templates.referenceProduct,p,i.displays[0].refs,h),t.registerClickListeners(h,p[0]),h.find(\".specs select\").change(d),h.find(\".spec-selector\").click(v)},v=function(e){this.value===\"#\"?delete p[0].selectedSpecs[this.getAttribute(\"data-spec\")]:p[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),t.renderProduct(0,r.templates.referenceProduct,p,i.displays[0].refs,h),t.registerClickListeners(h,p[0]),h.find(\".specs select\").change(d),h.find(\".spec-selector\").click(v)};t.registerClickListeners(h,p[0]),h.find(\".specs select\").change(d),h.find(\".spec-selector\").click(v),typeof r.afterDrawProduct==\"function\"&&r.afterDrawProduct.call(t,h,p[0].product,f,0)}var m=f.find(\".carousel\")[0];m&&(t.carousel=s=t.renderCarousel(m,undefined,o)),chaordic.PriceApi.active&&!t.calledPriceApi&&(t.priceApiOptions.waitToRender.enabled&&(u=!1,t.jqDiv.hide(),t.priceApiAllGets.done(function(){t.render(o)}),t._callPriceApi()),t.priceApiOptions.lazyLoading.enabled||t._callPriceApi());var g=f.find(\".refresh\");g.click(function(){g.off(),f.addClass(\"loading\"),typeof t.params.requestParams==\"undefined\"&&(t.params.requestParams={}),t.params.requestParams.avoidProducts=[{id:t.referenceProduct.id}],delete t.params.data,t.params.hideWidgetOnLoad=!1,t.initialize(t.params),t.render(t.jqDiv[0])}),t.setupPagination(),typeof r.afterDrawWidget==\"function\"&&u&&r.afterDrawWidget.call(t,f),t.setMaxWidth(c,o),r.dynamicHeight===!0?(n(e.contentWindow).resize(function(){t.jqDiv.height(f.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){t.jqDiv.height(f.outerHeight(!0))}),[0,2e3,5e3].map(function(e){setTimeout(function(){t.jqDiv.height(f.outerHeight(!0))},e)})):f.find(\".carousel-products\").css(\"position\",\"absolute\"),u&&t._checkVisibility()})},chaordic.onsite.UltimateBuy=e}(),function(){var e=function(){this.feature=\"cartpersonalized\",this.featureUrl=\"/v5/recommend/cartPersonalized\",this.defaultParams={title:\"Você comprou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.CartPersonalized=e}(),function(){var e=function(){this.feature=\"purchasepersonalized\",this.featureUrl=\"/v5/recommend/purchasePersonalized\",this.defaultParams={title:\"Você comprou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.PurchasePersonalized=e}(),function(){var e=function(){this.feature=\"viewpersonalized\",this.featureUrl=\"/v5/recommend/viewPersonalized\",this.defaultParams={title:\"Você visitou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.ViewPersonalized=e}(),function(){var e=function(){this.feature=\"wishlist\",this.featureUrl=\"/v5/recommend/wishList\",this.defaultParams={title:\"Você favoritou...\",subTitle:\"Quem visitou este produto acabou comprando\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\",\"ultimatebuy.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.WishList=e}(),chaordic.initializeTheme=function(){function e(){function e(e){var t=e.match(/R\\$(.*)/);if(!t||!t[1])return!1;var n=t[1].replace(/\\D/g,\"\");return n/100}function t(e){var t=e.match(/([0-9]*)x/);return!t||!t[1]?!1:Number(t[1])}function n(n,r,i){try{var s=n.find(r.installmentsSelector),o=i.installments||\"\",u=e(o),a=t(o);if(!u||!a)throw new Error(\"Installment price or count were not found\");var f=window.top.chaordic.Currency.format(u),l=\"\",c=r.installmentSufix||\"\",h=l+a+\"x de <span>\"+f+\"</span> \"+c;s.html(h)}catch(p){console.warn(p),r.setInstallmentsDOM()}}var r=this,i=\"//npreco.api-casasbahia.com.br/Produtos/PrecoVenda/\",s=\"//marketing.api-casasbahia.com.br/V3/EstrategiasVenda/Divulgacao/DestaquesMultiplos\",o=function(){var e=document.cookie.match(\"IPS-CasasBahia.com=([^;]+)\")||document.cookie.match(\"IPSI-CasasBahia.com=([^;]+)\");if(!e)return\"\";var t=e[1].split(\"&\"),n=\"\",r={Parceiro:\"utm_source\",Midia:\"utm_medium\",Campanha:\"utm_campaign\"},i=function(e){e.indexOf(s)!==-1&&(n+=\"&\"+e.replace(s,r[s]))};for(var s in r)t.forEach(i);return n}(),u=new T.API(i,s,{additionalUrlParams:o,timeout:5e3,mobile:S}),a=function(e){function t(t){try{t.length&&(t=t.filter(function(t){var r=t.id,s=e.find('[data-productid=\"'+r+'\"]');x.priceCache[r]=t;if(!s.length)return delete i[r],!1;var o=new C(s,t,{priceLabelSelector:\".nm-price-label\",priceSelector:\".nm-price-value\",oldPriceContainerSelector:\".details.old-price\",oldPriceLabelSelector:\".nm-old-price-label\",oldPriceSelector:\".nm-old-price-value\",discountSelector:\"nm-discount\",hiddenClass:\"nm-hidden\",notAvailableContainerSelector:\".nm-availability-container\"});if(t.isAvailable&&t.inStock){var u=e.hasClass(\"featured\");return u?n(s,o,t):o.setInstallmentsDOM(),o.setPriceDOM(),o.setOldPriceDOM(),o.setDiscountDOM(),t}}),o.filter(function(e){var n=e.id,r=t.find(function(e){return e.id.toString()===n.toString()});r||a(n,!0)}))}catch(r){console.error(r)}}function r(e){console.error(\"Error getting price Product\",e);for(var t in i){delete x.priceCache[t];var n=i[t];n.hasClass(\"price-api-success\")||a(t)}}if(!e)return!1;var i={},s=e.find('[data-productid]:not([data-productid=\"\"], .price-api-success)');if(!s.length)return;s.each(function(){var e=this.querySelector('img:not([src=\"\"])');e&&(e.onerror=function(){this.src!==\"../src/images/img-error.png\"&&(this.src=\"../src/images/img-error.png\")})});var o=s.map(function(){var e=E(this).attr(\"data-productid\");return i[e]=E(this),{id:e}}).get();if(!o.length)return;u.fetchPrices(o,t,r);var a=function(t,n){var r=n?\".nm-availability-container\":\".undefined\";e.find('[data-productid=\"'+t+'\"]').each(function(){var e=E(this),t=new C(e,{isAvailable:!1,inStock:!1},{notAvailableContainerSelector:r});t.setAvailabilityDOM()})}};return{fetchAPI:a}}function t(e){if(!e)return;e.forEach(function(e){if(e.skus){var t=e.details&&e.details.IdSkuPadrao;if(t){var n;e.skus.unshift(e.skus.find(function(e,r){if(String(t)===e.sku)return n=r+1,e})),e.skus.splice(n,1)}else e.skus=e.skus.sort(function(e,t){return e.price-t.price}).filter(function(e){return e.status===\"AVAILABLE\"})}})}function n(e){var t=window.top.document.querySelector('[id*=\"_divLoad\"]');if(!t)return!1;e=e||!1;var n=0,r=\"none\";e&&(n=1,r=\"block\"),t.style.opacity=n,t.style.display=r}function r(e){var t=(e.skus||[]).find(function(e){return/^available/.test(e.status)});return t}function i(e,t){var n=r(e),i=e.id,s=e.sku||n&&n.sku,o=e.details&&e.details.IdLojista||\"\";return t&&!o&&(o=n&&n.details&&n.details.IdLojista),o?D+\"/Servicos/\"+s+\"/\"+o+\"/1/?origem=PD&restricao=WN\":!1}function s(){window.location=D}function o(e,t,n,r){return e.categories&&e.categories.length>t?e.categories[t][n]:r}function u(e,t,n){return e.details&&e.details[t]?e.details[t]:n}function a(e){return e.map(function(e){var t={sku:e.sku,idProduto:e.id,nome:e.name,idLojista:u(e,\"IdLojista\",undefined),quantidadeAvaliacoes:u(e,\"ratingComents\",undefined),mediaEstrelas:parseFloat(u(e,\"rating\",\"\").replace(\",\",\".\")),preco:e.price,precoMinimo:e.price,precoMaximo:e.oldPrice,idDepartamento:o(e,0,\"id\",undefined),nomeDepartamento:o(e,0,\"name\",undefined),idLinha:o(e,1,\"id\",undefined),nomeLinha:o(e,1,\"name\",undefined),idSubLinha:o(e,2,\"id\",undefined),nomeSubLinha:o(e,2,\"name\",undefined),nomeMarca:u(e,\"marca\",undefined),idMarca:u(e,\"IdMarca\",\"\").toString(),variacao:u(e,\"Cor\",undefined),quantidade:1};return t=Object.keys(t).reduce(function(e,n){return t[n]&&(e[n]=t[n]),e},{}),t})}function f(e,t,r){function o(){return f}var u=[],f=!1,l=r[0]&&r[0].params,c=l&&l.feature;if(window.dataLayer&&c===\"FrequentlyBoughtTogether\"){var h=Array.isArray(e)?e:[e],p=a(h);window.dataLayer.push({event:\"adicionar_produto_carrinho\",ecommerce:{produto:p},eventCallback:function(){f=!0},eventTimeout:800})}return e.forEach(function(e){var n=i(e,t);n&&u.push({url:n,withCredentials:!0})}),u.length?(n(!0),x.AjaxRequests(u,function(e){x.waitForExistance(o,100,500,s)}),!0):(n(!1),b.initialize(),!1)}function l(e){if(!e)return\"\";var t=e.details&&e.details.IdLojista;if(!t&&e.skus&&e.details.IdSkuPadrao){var n=String(e.details.IdSkuPadrao);t=e.skus.reduce(function(e,t){return n===String(t.sku)?t.details&&t.details.IdLojista?t.details.IdLojista:e:e},\"\")}return t}function c(e){return!e||e&&!e.details?0:Number(e.sku||e.details.IdSkuPadrao)||0}function h(e){var t=l(e),n=c(e);if(t&&n)return{IdSku:n,IdLojista:Number(t)}}function p(e,t){function n(){return r}var r=!1,i=t[0]&&t[0].params,o=i&&i.feature;if(window.dataLayer&&o===\"FrequentlyBoughtTogether\"){var u=Array.isArray(e)?e:[e],f=a(u);window.dataLayer.push({event:\"adicionar_produto_carrinho\",ecommerce:{produto:f},eventCallback:function(){r=!0},eventTimeout:100})}if(typeof window.addToCart==\"function\"){var l=e.map(h);window.addToCart(l),x.waitForExistance(n,10,100,s)}}function d(e){return(e||[]).some(function(e){return/Coleções/.test(e&&e.params&&e.params.name)})}function v(e){if(e&&e.title){var t=e.title.split(/(\\$link:)/);e.title=t[0]||e.title,e.linkCategory=t[2]&&t[2].trim()}}function m(e){function t(){return e.find(\".buy-together\").addClass(\"nm-hidden\"),e.find(\"#summary\").find(\".nm-availability-container\").removeClass(\"nm-hidden\")}e=E(e);var n=0,r=20,i=setInterval(function(){if(n>r)return clearInterval(i),t();var s=x.priceCache,o=e.find('.item:not(\".disabled\")'),u=o.length,a=[];o=Array.prototype.map.call(o,function(e){var t=e.dataset.productid,n=s[t];return n&&a.push(n),t});if(a.length===u){var f=a.reduce(function(e,t){return e.oldPrice+=t.oldPrice?t.oldPrice:0,e.price+=t.price?t.price:0,e},{oldPrice:0,price:0}),l=e.find(\"#summary .old-price span\"),c=e.find(\"#summary .price span\");return f.oldPrice&&f.price!==f.oldPrice&&l.html(b.Currency.format(f.oldPrice)),f.price&&c.html(b.Currency.format(f.price)),!f.price&&!f.oldPrice&&t(),clearInterval(i)}n++},500)}function g(){return window.location.search.replace(\"?\",\"\").split(\"&\").reduce(function(e,t){var n=t.split(\"=\")[0],r=t.split(\"=\")[1];return e[n]=r,e},{})}function y(e){return typeof e==\"function\"}var b=window.top.chaordic,w=b.lib,E=w.jQuery,S=b.isMobile,x=b.onsite.ThemeFunctions=b.onsite.ThemeFunctions||{},T=x.viaVarejoAPI,N=T&&T.ApiFlagProduct,C=T&&T.ApiPriceProduct;x.priceCache=[],x.viaVarejo=e;var k={imageSizes:{small:\"80x80\",normal:\"290x290\",big:\"1000x1000\"},spec:{specOrder:[]},carousel:{general:{dynamicMode:\"box\",minCellSize:210,minVisibleItems:3,maxVisibleItems:4,loopScroll:!0,mobile:{minCellSize:140,maxVisibleItems:2,minVisibleItems:2}},personalized:{dynamicMode:\"box\",minCellSize:205,minVisibleItems:2,maxVisibleItems:3,loopScroll:!0,mobile:{minCellSize:139,maxVisibleItems:2,minVisibleItems:2}},featured:{dynamicMode:\"box\",minCellSize:100,maxVisibleItems:1},historyPersonalized:{dynamicMode:\"box\",minCellSize:210,minVisibleItems:2,maxVisibleItems:3,loopScroll:!0,mobile:{minCellSize:120,minVisibleItems:2,maxVisibleItems:4},refsDesktop:{dynamicMode:\"margin\",minCellSize:210,minVisibleItems:3,maxVisibleItems:3,loopScroll:!0}},shoppingCart:{dynamicMode:\"box\",minCellSize:210,minVisibleItems:2,maxVisibleItems:3,loopScroll:!0}},getCarousel:function(e,t,n){var r=function(e){var t={};for(var n in e)t[n]=e[n];return t}(this.carousel[e]||this.carousel.general);if(t&&r.mobile)for(var i in r.mobile)r[i]=r.mobile[i];if(n&&r[n])for(var s in r[n])r[s]=r[n][s];return r}},b=window.chaordic;(function(){var e=b.onsite.Personalized,n=e.prototype.render;e.prototype.render=function(e){var r=this.params&&this.params.data&&this.params.data.displays.length&&this.params.data.displays[0];r&&(t(r.recs),t(r.refs)),n.call(this,e)};var r=function(e,t){return function n(){if(arguments[0].product&&arguments[0].product.images){var r=arguments[0].product.images,i=function(e){var t=\"\";if(e)if(k.imageSizes&&k.imageSizes[e])t=i(k.imageSizes[e]);else if(r[e])t=r[e];else{var n=Object.keys(r).reduce(function(t,n){t=t.replace(/x.+/,\"\"),n=n.replace(/x.+/,\"\"),e=e.replace(/x.+/,\"\");var r=Math.abs(n-e)<Math.abs(t-e)?n:t;return r+\"x\"+r});t=r[n]}else k.imageSizes&&r[k.imageSizes.normal]?t=r[k.imageSizes.normal]:t=r[Object.keys(r)[0]];return t};arguments[0].image=i}if(b.Config.DUMMY_RECS){var n=arguments[0],s=arguments[1];if(n&&n.product){e.feature===\"mostpopular\"&&(n.ranking=s+1),e.feature===\"ultimatebuy\"&&(n.product.percentage=Math.round(Math.random()*99),s===0&&(n.product.id=e.params.referenceProduct.id,n.product.mostBought=!0)),e.feature===\"new4you\"&&(n.product.ageText=2+Math.round(Math.random()*4)+(Math.round(Math.random())?\" semanas\":\" dias\")+\" atrás\"),e.feature===\"offers\"&&(n.product.oldPrice=n.product.price+Math.random()*100,n.product.oldPriceString=b.Currency.format(n.product.oldPrice),n.product.discount=Math.round(5+Math.random()*45));if(e.feature===\"purchasepersonalized\"&&s===0){n.product.trigger=\"transaction\";var o=new Date;n.product.date=o.getDate()+\"/\"+(o.getMonth()+1)+\"/\"+o.getFullYear()}n.params.data.feature=e.feature}}typeof t==\"function\"&&t.apply(e,arguments)}},i=b.onsite.Feature,s=i.prototype.initialize;i.prototype.initialize=function(e){var t,n,i,o;t=this,typeof e.productView==\"function\"&&(n=e.productView),typeof e.afterDrawProduct==\"function\"&&(i=e.afterDrawProduct),e.productView=r(t,n),e.afterDrawProduct=function(){var e=arguments[0],n=arguments[1],r=e&&e.find(\"img\");r&&r.on(\"load\",function(){var e=t.carousel&&t.carousel.carouselDiv||t.jqWidget;e.trigger(\"resize\")}),typeof i==\"function\"&&i.apply(t,arguments)};var u=b.Carousel.prototype.resize;b.Carousel.prototype.resize=function(){var e=this.carouselDiv.parent().prev();if(e.hasClass(\"first-item-wrapper\")){e.css(\"width\",100/(this.visibleItems+1)+\"%\");var t=e.find(\".item\"),n=Number(t.css(\"padding-right\").replace(\"px\",\"\"))+Number(t.css(\"padding-left\").replace(\"px\",\"\"));t.css(\"width\",this.items[0].children().width()+n)}if(this.options.vertical&&!this.carouselDiv.parent().hasClass(\"refs-frame\")){var r=this.items.length>this.options.maxVisibleItems?this.options.maxVisibleItems:this.items.length;this.frame.css(\"height\",this.items[0].outerHeight()*r)}u.apply(this,arguments);if(e.hasClass(\"refs-frame\")&&this.items[0].find(\".thumbnail img\").height()>20){var i=this.items[0].height();i!==0&&e.css(\"height\",i),this.carouselDiv.prev().css(\"left\",this.carouselDiv.position().left)}},s.call(this,e)};var o=i.prototype.render;i.prototype.render=function(e){var n=this.params&&this.params.data&&this.params.data.displays.length&&this.params.data.displays[0];n&&(t(n.recs),t(n.refs)),o.call(this,e)};var u=b.onsite.Discover,a=u.initialize;u.initialize=function(e){var t;typeof e.productView==\"function\"&&(t=e.productView),e.productView=r(u,t),a.call(u,e)}})(),b.isPhone=function(e){return e&&(window.screen.height>window.screen.width?window.screen.width:window.screen.height)<=480}(b.isMobile),b.isTablet=b.isMobile&&!b.isPhone;var x=b.onsite.ThemeFunctions=b.onsite.ThemeFunctions||{};x.AjaxRequest=function(e,t,n){var r=Object.assign({},{method:\"GET\",async:!0,withCredentials:!1,cancelChainOnError:!1},e);if(!r.url)return n({status:!1,data:{options:r,error:\"Options must be valid and need to has a valid URL\"}});var i=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject(\"Microsoft.XMLHTTP\");i.onreadystatechange=function(){if(i.readyState===4){var e=i.responseText;switch(i.status){case 200:t({status:!0,data:{options:r,response:e}});break;default:n({status:!1,data:{options:r,response:e}})}}},i.open(r.method,r.url,r.async),i.withCredentials=r.withCredentials;for(var s in r.headers)i.setRequestHeader(s,r.headers[s]);return i.send(r.data),i},x.AjaxRequests=function(e,t){function n(){f.forEach(function(e){return e.abort()});if(typeof t==\"function\")return t({counter:l,callbacks:a,requestsChain:f,someCallFailed:u,cancelChainOnErrorEnabled:s})}function r(t){l++,a.push(t),o=l===e.length}var i=this,s=!1,o=!1,u=!1,a=[],f=[],l=0;f=e.map(function(e,t){e.cancelChainOnError!==undefined&&(s=Boolean(e.cancelChainOnError),delete e.cancelChainOnError);var a={};typeof e.callbacks!==undefined&&(a=e.callbacks,delete e.callbacks);var f=function(e){return r(e),a&&a.onSuccess&&typeof a.onSuccess==\"function\"&&a.onSuccess(e),(s&&u||o)&&n()},l=function(e){return r(e),u=!0,a&&a.onError&&typeof a.onError==\"function\"&&a.onError(e),(s||o)&&n()};return i.AjaxRequest(e,f,l)})},function(){var e=b.onsite.Feature,t=e.prototype.createFrame;e.prototype.createFrame=function(e,n){var r=n,i=this;n=function(e,t){var n=e.contentDocument,s=n.createElement(\"link\"),o=n.createElement(\"link\");s.rel=o.rel=\"preload\",s.as=o.as=\"font\",s.setAttribute(\"crossorigin\",\"\"),o.setAttribute(\"crossorigin\",\"\"),s.href=\"fonts/futurabold.woff\",s.href=\"fonts/futuralight.woff\",o.href=\"fonts/appicons.woff\",n.head.appendChild(s),n.head.appendChild(o),r.call(i,e,t)},t.call(i,e,n)}}(),x.getWidgetFullName=function(e){var t=e.params||{},n=(t.title||\"\")+\" \"+(t.subTitle||\"\");return typeof n!=\"string\"?\"\":n.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\").trim().replace(/\\s/g,\"_\").toLowerCase().replace(/<span>|<\\/span>/g,\"\")},x.configureParamsOfProductUrl=function(e,t){var n=b.isMobile?\"v\":\"w\",r=window.chaordic_meta&&window.chaordic_meta.page||\"home\",i=e&&e.product,s=i&&i.url;s&&(e.product.url+=(s.indexOf(\"?\")>-1?\"&\":\"?\")+\"recSource=\"+n+r+\"&recType=lx_\"+x.getWidgetFullName(t))},x.urlHasQueryString=function(e){return e.test(window.location.search)},function(e){b.onsite.Feature.prototype.setupDefaultCurrencyFormatter=function(){var e={currencySymbol:\"R$ \"};b.Currency.defaultFormatter=new b.Currency(e)}}(b.onsite.Feature.prototype.setupDefaultCurrencyFormatter),x.bindFlagsPopup=function(e,t){var n=t.product,r=e.find(\".nm-flags img\"),i=window.pop;if(!n||!r.length||typeof i!=\"function\")return;r.on(\"click\",function(){var e=n.details&&n.details.destaques||[];if(!e.length)return;var t=e.find(function(e){return e.Descricao===this.alt},this);if(t.LinkExplicativo)return i(t.LinkExplicativo,t.Largura,t.Altura,t.Titulo)})},x.waitForExistance=function(e,t,n,r){var i=0,s=setInterval(function(){i+=1;if(e()||i>=n)clearInterval(s),r()},t)};var L=\"casasbahia\",b=window.top.chaordic,w=b.lib,E=w.jQuery,A=b.onsite,O=A.ThemeManager,x=x||A.ThemeFunctions,S=b.isMobile,M=b.isPhone,_=b.isTablet,D=M||_?\"https://m.casasbahia.com.br/carrinho/detalhes\":\"https://carrinho.casasbahia.com.br\",P=Object.assign,H=function(e){if(S&&b.meta&&b.meta.page&&b.meta.page.name===\"cart\"){var t=h(e);if(window.addToCart&&t)return window.addToCart([t]),setTimeout(function(){window.location.reload()},1e3)}var n=i(e);return n?(window.location.href=n,!0):!1},B=function(e,t){if(!e)return;return e=Array.isArray(e)?e:[e],S?p(e,t):f(e,d(t),t)},j=function(e){v(e)},F=function(e){var t=e.product&&e.product.customBusiness&&e.product.customBusiness.ads;t&&(e.isAd=!0),x.configureParamsOfProductUrl(e,this)},I=function(e){var t=this.widgetDiv||e;t&&(new x.viaVarejo).fetchAPI(t)},q=function(e){x.fbtWidget=e,window.useCachedProducts&&(m(e),window.useCachedProducts=!1)},R=function(e){var t=[\"7478228\"],n=e&&e.product&&e.product.id;return t.indexOf(n)!==-1},U=function(e,t){R(t)&&(e.find(\"span.nm-discount.discount\").hide(),e.find(\".old-price\").html(\"\")),x.bindFlagsPopup(e,t)},z=function(e,t,n,r){var i=x.urlHasQueryString(/utm_/g);U(e,t);var s=function(e){return e&&e.feature.toLowerCase()===\"frequentlyboughttogether\"}(this);s&&(x.fbtWidget=n),e.removeClass(\"price-api-success\"),n&&i&&(new x.viaVarejo).fetchAPI(n),x.bindFlagsPopup(e,t)},W=function(e){var t=e.closest(\"#widget\"),n=x.urlHasQueryString(/utm_/g);n&&(new x.viaVarejo).fetchAPI(t)};O.addAsset(\"product.fugly\",'<$\\n    var product = view.product;\\n    var feature = view.params.feature.toLowerCase();\\n    var hasInstallments = product.installment && product.installment.count && product.installment.price && product.installment.priceString && product.installment.count > 1;\\n    var flags = product.details && product.details.destaques && product.details.destaques;\\n    var isFeatured = feature === \\'featured\\';\\n    var productMaxLength = isFeatured ? 150: 80;\\n    if (productMaxLength && product.name.length > productMaxLength) product.name = product.name.substring(0, productMaxLength) + \"...\";\\n    var isMobile = window.top.chaordic.isMobile;\\n$>\\n\\n<$ if (view.timestamp) { $>\\n    <div class=\"refresh\" title=\"Trocar\"></div>\\n<$ } $>\\n\\n\\n<div class=\"item <$=product.mostBought ? \\'most-bought\\' : \\'\\'$>\">\\n\\n    <$ if (view.ranking && feature === \"mostpopular\") { $>\\n        <div class=\"ranking\">\\n            <div class=\"number\"><$= view.ranking $>&ordm;</div>\\n        </div>\\n    <$ } $>\\n\\n    <$ if (view.isAd) { $>\\n        <div class=\"flag-ads-container\">\\n            <span>Produto Patrocinado</span>\\n        </div>\\n    <$ } $>\\n\\n    <span class=\"nm-discount discount nm-hidden\"></span>\\n\\n    <$ if (product.ageText && feature === \"new4you\") { $>\\n        <div class=\"age\">\\n            <div class=\"age-text\"><$= product.ageText $></div>\\n        </div>\\n    <$ } $>\\n\\n    <$ if (product.percentage && feature === \"ultimatebuy\") { $>\\n        <div class=\"percent\">\\n            <div class=\"percent-text\"><span><$= product.percentage $>%</span> compram</div>\\n            <$ if (product.mostBought) { $>\\n                <div class=\"percent-img\">Mais<span>comprado</span></div>\\n            <$ } $>\\n        </div>\\n    <$ } $>\\n\\n    <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details thumbnail\">\\n        <img src=\"<$= view.image && view.image(\\'default\\') $>\" onerror=\"this.onerror=null;this.src=\\'images/img-error.png\\'\">\\n\\n        <$ if (view.isReference && feature === \"ultimatebuy\") { $>\\n            <div class=\"view-ub\">Você está vendo</div>\\n        <$ } $>\\n    </a>\\n\\n    <div class=\"content\" data-sku=\"<$= product.sku $>\">\\n        <span class=\"flags\"> <!-- Deixar esta div, mesmo quando não tiver flags -->\\n            <span class=\"nm-flags\">\\n                    <$ if (flags && flags.length) { $>\\n                        <$ for (var index = 0; index < flags.length; index++) { $>\\n                            <img\\n                            <$ if (flags[index].Descricao) { $> alt=\"<$= flags[index].Descricao $>\" <$ } $>\\n                            src=\"<$= flags[index].Imagem $>\"\\n                            <$ if (flags[index].IdTipoDestaque === 3) { $> class=\"nm-seal-img\" <$ } $>\\n                            />\\n                        <$ } $>\\n                    <$} $>\\n                </span>\\n        </span>\\n\\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details product-name\">\\n            <$= product.name $>\\n        </a>\\n\\n        <div class=\"rating-container <$= (!product.rating && feature === \\'featured\\') ? \\'nm-hidden\\': \\'\\'  $>\">\\n            <$ if (product.rating) { $>\\n                <a  href=\"<$= product.url $>\"\\n                    target=\"_parent\"\\n                    class=\"details product-rating\">\\n                        <span class=\"rating r<$= product.rating.text $>\">\\n                        Avaliação dos usuários: <$= product.rating.value $>\\n                        </span>\\n                        <!-- <$= product.rating.comments $> avaliações -->\\n                </a>\\n            <$ } $>\\n        </div>\\n        <$ if(feature === \\'featured\\') { $>\\n            <div class=\"group-featured\">\\n        <$ } $>\\n        <$ if (product.trigger === \"transaction\") { $>\\n            <div class=\"purchased\">\\n                Compra realizada em <$= product.date $>\\n            </div>\\n        <$ } else { $>\\n            <div class=\"prices\">\\n                <a href=\"<$= product.url $>\" target=\"_parent\">\\n                    <div class=\"nm-availability-container nm-hidden\">\\n                        <span class=\"nm-not-available-warn nm-not-available\">Produto indisponível no momento</span>\\n                        <span class=\"nm-not-warn-me\">Avise-me quando chegar no estoque</span>\\n                    </div>\\n                    <div class=\"nm-availability-container-fail nm-hidden\">\\n                        <span class=\"nm-not-warn-me\">Clique para ver o preço</span>\\n                    </div>\\n                </a>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details nm-offer old-price\">\\n                    <span class=\"nm-old-price-label <$ if (!product.oldPriceString) { $> nm-hidden <$ } $>\">De:</span>\\n                    <span class=\"nm-old-price-value\" id=\"old-price-{{originalId}}\">\\n                        <$ if (product.oldPriceString) { $>\\n                            <$= product.oldPriceString $>\\n                        <$ } $>\\n                    </span>\\n                </a>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details nm-offer price\">\\n                    <span class=\"nm-price-label <$ if (!product.priceString) { $> nm-hidden <$ } $>\">Por<$ if(!isMobile) { $>:<$ } $> </span>\\n                    <span class=\"nm-price-value\" itemprop=\"price\">\\n                        <$ if (product.priceString) { $>\\n                            <$= product.priceString $>\\n                        <$ } $>\\n                    </span>\\n                </a>\\n                <$ if (hasInstallments) { $>\\n                    <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details nm-offer installments\">\\n                        <div class=\"nm-installment-container hidden-mobile\">\\n                            Em até <$= product.installment.count $>x de <$= product.installment.priceString $> sem juros\\n                        </div>\\n                    </a>\\n                <$ } $>\\n\\n            </div>\\n        <$ } $>\\n        \\n        <$ if(feature === \\'featured\\') { $>\\n            <a href=\"<$= product.url $>\" target=\"_top\" class=\"details buttons\">Confira</a>\\n            </div>\\n        <$ } $>\\n        \\n    </div>\\n\\n</div>\\n'),O.addAsset(\"personalized.fugly\",'<$\\nvar trigger = view.data.displays[0].refs[0].trigger;\\n$>\\n<div class=\"frame\">\\n    <div class=\"first-item-wrapper\">\\n        <div class=\"title\">\\n            <$= view.title $>\\n        </div>\\n        <ul class=\"first-item\">\\n            <div class=\"control\">\\n                <div class=\"refresh\" title=\"Trocar\"> Trocar</div>\\n            </div>\\n            <li class=\"action\"></li>\\n        </ul>\\n    </div>\\n\\n    <div class=\"carousel-wrapper\">\\n        <div class=\"title sub\">\\n            <$= view.subTitle $>\\n        </div>\\n        <div class=\"arrow prev\"><span>Anterior</span></div>\\n        <div class=\"carousel\"></div>\\n        <div class=\"arrow next\"><span>Pr&oacute;xima</span></div>\\n    </div>\\n\\n    <!-- Pagination on mobile -->\\n    <div class=\"pagination-wrapper pagination-general\">\\n        <ul class=\"pagination\"></ul>\\n    </div>\\n</div>\\n'),O.addAsset(\"featured.fugly\",'<div class=\"frame\">\\n    <div class=\"featured-mobile\">Os mais desejados</div>\\n\t<div class=\"featured-css\">\\n\t\tOs mais<span>desejados</div>\\n\t</div>\\n\t<div class=\"arrow prev\"><span>Anterior</span></div>\\n\t<div class=\"carousel\"></div>\\n\t<div class=\"arrow next\"><span>Pr&oacute;xima</span></div>\\n\t<div class=\"pagination-wrapper\">\\n\t\t<ul class=\"pagination\"></ul>\\n\t</div>\\n</div>'),O.addAsset(\"shoppingcart-product.fugly\",'<$\\n    var product = view.product;\\n    var productMaxLength = 80;\\n    var feature = view.params.data.feature;\\n    if (productMaxLength && product.name.length > productMaxLength) product.name = product.name.substring(0, productMaxLength) + \"...\";\\n    var hasInstallments = product.installment && product.installment.count && product.installment.price && product.installment.priceString && product.installment.count > 1;\\n    var isMobile = window.top.chaordic && window.top.chaordic.isMobile;\\n    var flags = product.details && product.details.destaques && product.details.destaques;\\n$>\\n\\n<div class=\"item\">\\n    <div class=\"details thumbnail\">\\n        <a href=\"<$= product.url $>\" target=\"_parent\">\\n            <span class=\"nm-discount discount nm-hidden\"></span>\\n            <img src=\"<$= view.image(\\'default\\') $>\"  onerror=\"this.onerror=null;this.src=\\'images/img-error.png\\'\">\\n            <span class=\"flags\"> <!-- Deixar esta div, mesmo quando não tiver flags -->\\n                <span class=\"nm-flags\">\\n                    <$ if (flags && flags.length) { $>\\n                        <$ for (var index = 0; index < flags.length; index++) { $>\\n                            <img\\n                            <$ if (flags[index].Descricao) { $> alt=\"<$= flags[index].Descricao $>\" <$ } $>\\n                            src=\"<$= flags[index].Imagem $>\"\\n                            <$ if (flags[index].IdTipoDestaque === 3) { $> class=\"nm-seal-img\" <$ } $>\\n                            />\\n                        <$ } $>\\n                    <$} $>\\n                </span>\\n            </span>\\n        </a>\\n    </div>\\n    <div class=\"content\" data-sku=\"<$= product.sku $>\">\\n        <a href=\"<$= product.url $>\" target=\"_parent\">\\n            <div class=\"details product-name\">\\n                <$= product.name $>\\n            </div>\\n        </a>\\n        <div class=\"rating-container <$= (!product.rating && feature === \\'featured\\') ? \\'nm-hidden\\': \\'\\'  $>\">\\n            <$ if (product.rating) { $>\\n                <a  href=\"<$= product.url $>\"\\n                    target=\"_parent\"\\n                    class=\"details product-rating\">\\n                        <span class=\"rating r<$= product.rating.text $>\">\\n                        Avaliação dos usuários: <$= product.rating.value $>\\n                        </span>\\n                        <!-- <$= product.rating.comments $> avaliações -->\\n                </a>\\n            <$ } $>\\n        </div>\\n        <div class=\"prices\">\\n            <a href=\"<$= product.url $>\" target=\"_parent\">\\n                <div class=\"nm-availability-container nm-hidden\">\\n                    <span class=\"nm-not-available-warn nm-not-available\">Produto indisponível</span>\\n                    <span class=\"nm-not-warn-me\">Avise-me</span>\\n                </div>\\n                <div class=\"nm-availability-container-fail nm-hidden\">\\n                    <span class=\"nm-not-warn-me\">Clique para ver o preço</span>\\n                </div>\\n            </a>\\n            <$ if (product.oldPrice) { $>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"old-price nm-offer\">\\n                    <span class=\"nm-old-price-label <$ if (!product.oldPriceString) { $> nm-hidden <$ } $>\">De:</span>\\n                    <span class=\"nm-old-price-value\" id=\"old-price-{{originalId}}\">\\n                        <$ if (product.oldPriceString) { $>\\n                            <$= product.oldPriceString $>\\n                        <$ } $>\\n                    </span>\\n                </a>\\n            <$ } $>\\n            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"price nm-offer\">\\n                <span class=\"nm-price-label <$ if (!product.oldPriceString) { $> nm-hidden <$ } $>\">Por: </span>\\n                <span class=\"nm-price-value\" itemprop=\"price\">\\n                    <$ if (product.priceString) { $>\\n                        <$= product.priceString $>\\n                    <$ } $>\\n                </span>\\n            </a>\\n            <$ if (hasInstallments) { $>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"installments nm-offer\">\\n                    <div class=\"nm-installment-container\">\\n                        Em até <$= product.installment.count $>x de <$= product.installment.priceString $> sem juros\\n                    </div>\\n                </a>\\n            <$ } $>\\n        </div>\\n        <div class=\"group-specs\">\\n            <div class=\"specs\"></div>\\n        </div>\\n    </div>\\n\\n    <div class=\"cta\">\\n        <a id=\"buy-<$= product.id $>\" class=\"buttons buy\" target=\"_parent\" title=\"Adicionar este item ao seu carrinho\">\\n            <span>Comprar</span>\\n        </a>\\n    </div>\\n    <div style=\"clear:both\"></div>\\n</div>\\n'),O.addAsset(\"frequentlyboughttogether.fugly\",'<div class=\"title products-<$= view.visibleProducts $>\">\\n    <$= view.subTitle $>\\n</div>\\n\\n<div class=\"frame products-<$= view.visibleProducts $>\">\\n    <div id=\"thumbnails\"></div>\\n    <span class=\"equals\">=</span>\\n    <div id=\"summary\"></div>\\n</div>\\n'),O.addAsset(\"frequentlyboughttogether-product.fugly\",'<$\\n    var product = view.product;\\n    var productMaxLength = 90;\\n    var feature = view.params.data.feature;\\n    if (productMaxLength && product.name.length > productMaxLength) product.name = product.name.substring(0, productMaxLength) + \"...\";\\n    window.itemCount++;\\n    var hasInstallments = product.installment && product.installment.count && product.installment.price && product.installment.priceString && product.installment.count > 1;\\n    var flags = product.details && product.details.destaques && product.details.destaques;\\n$>\\n<$ if(window.itemCount >= 2 && view.params.mobile) { $>\\n<span class=\"fbt-subtitle--phone\"><$= view.params.subTitle $></span>\\n<$ } $>\\n<div class=\"wrapper\" data-pid=\"<$= product.id $>\">\\n    <span class=\"nm-discount discount nm-hidden\"></span>\\n    <div class=\"controls\">\\n        <div class=\"control-skip skip\">Trocar</div>\\n        <div class=\"toggle-product\">\\n            <div class=\"control-remove disable\">Remover</div>\\n            <div class=\"control-add enable\">Trazer de Volta</div>\\n        </div>\\n    </div>\\n\\n    <div class=\"group-thumbnail\">\\n        <div class=\"title-first\"><$= view.params.title $></div>\\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details thumbnail\">\\n            <img src=\"<$= view.image(\\'default\\') $>\"  onerror=\"this.onerror=null;this.src=\\'images/img-error.png\\'\">\\n        </a>\\n    </div>\\n\\n    <div class=\"content\" data-sku=\"<$= product.sku $>\">\\n        <span class=\"flags\"> <!-- Deixar esta div, mesmo quando não tiver flags -->\\n            <span class=\"nm-flags\">\\n                <$ if (flags && flags.length) { $>\\n                    <$ for (var index = 0; index < flags.length; index++) { $>\\n                        <img\\n                        <$ if (flags[index].Descricao) { $> alt=\"<$= flags[index].Descricao $>\" <$ } $>\\n                        src=\"<$= flags[index].Imagem $>\"\\n                        <$ if (flags[index].IdTipoDestaque === 3) { $> class=\"nm-seal-img\" <$ } $>\\n                        />\\n                    <$ } $>\\n                <$} $>\\n            </span>\\n        </span>\\n        \\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details product-name\">\\n            <$= product.name $>\\n        </a>\\n        <div class=\"rating-container <$= (!product.rating && feature === \\'featured\\') ? \\'nm-hidden\\': \\'\\'  $>\">\\n            <$ if (product.rating) { $>\\n                <a  href=\"<$= product.url $>\"\\n                    target=\"_parent\"\\n                    class=\"details product-rating\">\\n                        <span class=\"rating r<$= product.rating.text $>\">\\n                        Avaliação dos usuários: <$= product.rating.value $>\\n                        </span>\\n                        <!-- <$= product.rating.comments $> avaliações -->\\n                </a>\\n            <$ } $>\\n        </div>\\n\\n        <div class=\"group-specs\">\\n            <div class=\"specs\"></div>\\n        </div>\\n\\n        <div class=\"prices\">\\n            <a href=\"<$= product.url $>\" target=\"_parent\">\\n                <div class=\"nm-availability-container nm-hidden\">\\n                    <span class=\"nm-not-available-warn nm-not-available\">Clique para ver o preço</span>\\n                </div>\\n            </a>\\n            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details nm-offer old-price\">\\n                <$ if (product.oldPrice) { $>\\n                    <span class=\"nm-old-price-label <$ if (!product.oldPriceString) { $> nm-hidden <$ } $>\">De:</span>\\n                    <span class=\"nm-old-price-value\" id=\"old-price-{{originalId}}\">\\n                        <$ if (product.oldPriceString) { $>\\n                            <$= product.oldPriceString $>\\n                        <$ } $>\\n                    </span>\\n                <$ } $>\\n            </a>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details nm-offer price\">\\n                    <span class=\"nm-price-label <$ if (!product.oldPriceString) { $> nm-hidden <$ } $>\">Por: </span>\\n                    <span class=\"nm-price-value\" itemprop=\"price\">\\n                        <$ if (product.priceString) { $>\\n                            <$= product.priceString $>\\n                        <$ } $>\\n                    </span>\\n                </a>\\n            <$ if (hasInstallments) { $>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details nm-offer installments\">\\n                    <div class=\"nm-installment-container hidden-mobile\">\\n                        Em até <$= product.installment.count $>x de <$= product.installment.priceString $> sem juros\\n                    </div>\\n                </a>\\n            <$ } $>\\n        </div>\\n\\n    </div>\\n</div>\\n'),O.addAsset(\"frequentlyboughttogether-summary.fugly\",'<$\\n    /**\\n\\n    @@@ WARNING @@@\\n    THIS THEME HAS SOME CUSTOMIZATIONS ON THEME.JS ABOUT PRICES\\n    (PRICES COME FROM API)\\n    IF YOU CHANGE PRICES CLASS HERE, FBT CAN BROKE\\n    TALK WITH A DEV BEFORE CHANGE HERE :)\\n\\n    **/\\n  var numProducts = view.selectedProducts.length;\\n$>\\n\\n<div class=\"summary-text\">\\n    Compre os <$= numProducts $> produtos\\n</div>\\n\\n<div class=\"prices\">\\n    <div class=\"old-price\">\\n      <span>\\n          <$ if (view.oldPrice) { $>\\n            <$= view.oldPrice $>\\n          <$ } $>\\n      </span>\\n    </div>\\n    <div class=\"price\">\\n      <span>\\n        <$ if (view.price) { $>\\n            <$= view.price $>\\n        <$ } $>\\n      </span>\\n    </div>\\n    <div class=\"nm-availability-container nm-hidden\">\\n        <span class=\"nm-not-available-warn nm-not-available\">\\n        Ops, um ou mais produtos estão indisponiveis ;(\\n        </span>\\n    </div>\\n</div>\\n\\n<div class=\"buttons buy-together\">Comprar Junto</div>'),O.addAsset(\"historypersonalized.fugly\",'<div class=\"refs-frame frame vertical\">\\n    <div class=\"title\">\\n        <$= view.title $>\\n    </div>\\n    <div class=\"refs-frame container\">\\n        <div class=\"refs-prev arrow prev vertical\"><span>Anterior</span></div>\\n        <div class=\"carousel\"></div>\\n        <div class=\"refs-next arrow next vertical\"><span>Pr&oacute;xima</span></div>\\n    </div>\\n</div>\\n\\n<div class=\"recs-frame frame\">\\n    <div class=\"title\">\\n        <$= view.subTitle $>\\n    </div>\\n    <div class=\"recs-prev arrow prev\"><span>Anterior</span></div>\\n    <div class=\"carousel\"></div>\\n    <div class=\"recs-next arrow next\"><span>Pr&oacute;xima</span></div>\\n</div>\\n'),O.addAsset(\"historypersonalized-mobile.fugly\",'<div class=\"title\">\\n    <$= view.title $>\\n</div>\\n<div class=\"refs-frame frame horizontal\">\\n    <div class=\"carousel\"></div>\\n    <div class=\"pagination-wrapper\">\\n\t\t<ul class=\"pagination\"></ul>\\n\t</div>\\n</div>\\n\\n\\n\\n'),O.addAsset(\"historypersonalized-ref-product-mobile.fugly\",'<$\\nvar product = view.product;\\n$>\\n\\n<div class=\"item\" data-sku=\"<$= product.sku $>\">\\n    <div class=\"thumbnail\">\\n        <a href=\"<$= product.url $>\" target=\"_parent\">\\n            <img src=\"<$= view.image(\\'default\\') $>\">\\n        </a>\\n    </div>\\n</div>\\n'),O.addAsset(\"historypersonalized-ref-product.fugly\",'<$\\n    var product = view.product;\\n    var productMaxLength = 35;\\n    if (productMaxLength && product.name.length > productMaxLength) product.name = product.name.substring(0, productMaxLength) + \"...\";    \\n$>\\n\\n<div class=\"item\">\\n\\n    <div class=\"thumbnail\">\\n        <img src=\"<$= view.image(\\'default\\') $>\">\\n    </div>\\n\\n    <div class=\"content\" data-sku=\"<$= product.sku $>\">\\n        <span class=\"product-name\">\\n            <$= product.name $>\\n        </span>\\n        <div class=\"prices\">\\n            <a href=\"<$= product.url $>\" target=\"_parent\">\\n                <div class=\"nm-availability-container nm-hidden\">\\n                    <span class=\"nm-not-available-warn nm-not-available\">Clique para ver o preço</span>\\n                </div>\\n            </a>\\n            <div class=\"price\">\\n                <span class=\"nm-price-value price\" itemprop=\"price\"></span>\\n            </div>\\n        </div>\\n        <a href=\"<$= product.url $>\" class=\"details buttons\" target=\"_parent\" title=\"Ver produto\">Ver produto</a>\\n    </div>\\n\\n</div>\\n'),O.addAsset(\"push.fugly\",'<$\\n    var view = view || {};\\n    var isMobile = window.top.chaordic && window.top.chaordic.isMobile;\\n$>\\n\\n\\n<!-- Only push with countdown, it has a different structure -->\\n<$ if (view.deadline) { $>\\n  <div class=\"frame has-deadline\">\\n    <$ if (view.title) { $>\\n        <$ if (view.url) { $>\\n          <a href=\"<$= view.url $>\" target=\"_parent\">\\n            <h1 class=\"title deadline-title\">\\n              <span><$= view.title $></span>\\n            </h1>\\n          </a>\\n        <$ } else { $>\\n          <h1 class=\"title deadline-title\">\\n            <span><$= view.title $></span>\\n          </h1>\\n        <$ } $>\\n    <$ } $>\\n\\n\\n    <$ if(isMobile) { $>  \\n      <div class=\"deadline-wrapper\">\\n        <div class=\"deadline-text\">Termina em:</div>\\n      </div>\\n      <div class=\"description\">\\n        <span>Todos os dias produtos especiais para você por tempo limitado!</span>\\n      </div>\\n    <$ } else { $>\\n      <div class=\"description\">\\n        <span>Todos os dias produtos especiais para você</span><br>\\n        <span>Mas corre que é por tempo limitado!</span>\\n      </div>\\n      <div class=\"deadline-wrapper\">\\n        <div class=\"deadline-text\">Termina em:</div>\\n      </div>\\n    <$ } $>\\n  </div>\\n\\n  <div class=\"frame has-deadline\">\\n      <div class=\"carousel-wrapper\">    \\n        <div class=\"arrow prev\"><span>Anterior</span></div>\\n        <div class=\"carousel\"></div>\\n        <div class=\"arrow next\"><span>Pr&oacute;xima</span></div>   \\n      </div>\\n\\n      <!-- Pagination on mobile -->\\n      <div class=\"pagination-wrapper pagination-general\">\\n          <ul class=\"pagination\"></ul>\\n      </div>\\n  </div>\\n<$ } else { $>\\n  <h1 class=\"title\">\\n      <span><$= view.title $></span>\\n  </h1>\\n\\n  <div class=\"frame \\n    <$= view.menu ? \\'has-menu\\' : \\'\\' $>\"\\n    >\\n    <div class=\"menu-wrapper\"></div>\\n\\n    <div class=\"carousel-wrapper\">\\n        \\n    <div class=\"arrow prev\"><span>Anterior</span></div>\\n    <div class=\"carousel\"></div>\\n    <div class=\"arrow next\"><span>Pr&oacute;xima</span></div>\\n        \\n    </div>\\n\\n    <!-- Pagination on mobile -->\\n    <div class=\"pagination-wrapper pagination-general\">\\n        <ul class=\"pagination\"></ul>\\n    </div>\\n\\n    <h1 class=\"title title-bottom\">\\n        <$ if(view.linkCategory) { $>\\n            <a href=\"<$= view.linkCategory $>\" target=\"_parent\" class=\"data-skin-link\"> > Ver todos os produtos</a>\\n        <$ } $>\\n    </h1>\\n  </div>\\n<$ } $>\\n'),O.addAsset(\"widget.fugly\",'<h1 class=\"title\"><$= view.title $></h1>\\n<div class=\"frame\">\\n    \\n    <div class=\"arrow prev\"><span>Anterior</span></div>\\n    <div class=\"carousel\"></div>\\n    <div class=\"arrow next\"><span>Pr&oacute;xima</span></div>\\n    \\n    <!-- Pagination on mobile -->\\n    <div class=\"pagination-wrapper pagination-general\">\\n        <ul class=\"pagination\"></ul>\\n    </div>\\n</div>\\n'),O.addAsset(\"theme.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");@font-face{font-family:\\'futura\\';src:url(\"./fonts/futuralight.woff\") format(\"woff\");font-weight:normal;font-style:normal}@font-face{font-family:\\'futura\\';src:url(\"./fonts/futurabold.woff\") format(\"woff\");font-weight:bold;font-style:normal}#widget{font:68.75%/1.25 \"Nunito\",Arial,Verdana,sans-serif;margin:20px auto;overflow:hidden;position:relative;background:#fff;border-radius:5px;padding:10px}#widget *{box-sizing:border-box}#widget a{outline:none;text-decoration:none;cursor:pointer}#widget a img{border:none}#widget ul{list-style:none;padding:0;margin:0}#widget .title{margin:0 0 24px;line-height:25px;display:block;font-family:\"Nunito\",Arial,Verdana,sans-serif;font-weight:bold;font-size:28px;color:#0033C6;text-transform:lowercase}#widget .title::first-letter{text-transform:uppercase}#widget .title span{font-weight:bold}#widget .frame{position:relative}#widget .carousel{height:100%;overflow:hidden}#widget .carousel-padding{padding:0;margin:0 33px}#widget .carousel-products{margin:0;padding:0;list-style:none}#widget .carousel-item{float:left}#widget .item{position:relative;height:100%;margin:0 auto 15px auto;width:216px}#widget .item .flag-ads-container{color:#BCBCBC;height:25px;font-weight:bold;font-size:12px;text-align:center}#widget .thumbnail{display:block;position:relative}#widget .thumbnail img{display:block;margin:auto;width:212px;height:212px}#widget .content{margin:0 auto}#widget .product-name{color:#333;font-size:14px;line-height:18px;display:block;margin-bottom:16px;min-height:54px}#widget .rating-container{height:auto}#widget .rating-container .rating{width:100%;max-width:82px;overflow:hidden;display:inline-block;height:0;margin:5px 0;text-indent:-999em;background-image:url(images/avaliacao-vitrine-compressed.svg);background-repeat:no-repeat;background-size:auto 180px;height:14px;margin-right:5px;margin:0}#widget .rating-container .rating.r0{background-position:0 0}#widget .rating-container .rating.r5{background-position:0 -17px}#widget .rating-container .rating.r10,#widget .rating-container .rating.r1{background-position:0 -33px}#widget .rating-container .rating.r15{background-position:0 -50px}#widget .rating-container .rating.r20,#widget .rating-container .rating.r2{background-position:0 -67px}#widget .rating-container .rating.r25{background-position:0 -83px}#widget .rating-container .rating.r30,#widget .rating-container .rating.r3{background-position:0 -100px}#widget .rating-container .rating.r35{background-position:0 -116px}#widget .rating-container .rating.r40,#widget .rating-container .rating.r4{background-position:0 -133px}#widget .rating-container .rating.r45{background-position:0 -150px}#widget .rating-container .rating.r50,#widget .rating-container .rating.r5{background-position:0 -166px}#widget .prices{margin:5px 0}#widget .nm-availability-container,#widget .nm-availability-container-fail{font-size:12px;display:block;background-color:#e5e5e5;color:#666;max-width:295px}#widget .nm-availability-container a,#widget .nm-availability-container a:visited,#widget .nm-availability-container a:hover,#widget .nm-availability-container-fail a,#widget .nm-availability-container-fail a:visited,#widget .nm-availability-container-fail a:hover{color:inherit}#widget .nm-availability-container span,#widget .nm-availability-container-fail span{display:block;padding:5px}#widget .nm-availability-container .nm-not-warn-me,#widget .nm-availability-container-fail .nm-not-warn-me{color:#0033c6}#widget .price-api-fail .price,#widget .price-api-fail .old-price,#widget .price-api-fail .installments,#widget .price-api-fail .cta{display:none !important}#widget .old-price{display:block;color:#333;font-size:14px;padding:0 5px 0 0;height:20px;font-weight:bold}#widget .old-price span{text-decoration:line-through}#widget .price{display:block;color:#0033c6;font-weight:800}#widget .price .nm-price-label{font-size:14px}#widget .price .nm-price-value{font-size:24px}#widget .installments{display:block;color:#0033c6;font-size:12px;line-height:15px;font-weight:700}#widget .group-specs{min-height:32px}#widget .specs{width:100%;clear:both;display:block}#widget .specs .selectWrapper{width:43%;display:inline-block;margin:0 0 10px 10px}#widget .specs select{height:20px;width:100%;background-color:#fff;border:1px solid #d4d4d4;color:#999;font-size:11px;padding:2px 0;margin:1px 0}#widget .specs select:disabled{color:#d4d4d4}#widget .flags{height:55px}#widget .flags span{display:block;cursor:pointer}#widget .flags img{padding:0 0 2px}#widget .flag-withdraw-fast{background:url(images/retira-selo.png) no-repeat;position:absolute;z-index:3;width:80px;height:80px;background-size:80px 80px;top:115px;left:0;cursor:pointer}#widget .flag-withdraw-fast:hover{background:url(images/retira-selo-regras.png) no-repeat;background-size:80px 80px}#widget .discount{width:40px;height:40px;position:absolute;top:8px;right:11px;background:#ffb413;text-align:center;line-height:40px;z-index:8;border-radius:80px;color:#000;font-size:12px;font-weight:bold}#widget .ranking{position:absolute;left:0;top:10px;z-index:4;padding:0 7px;width:auto;height:20px;background-color:#7dc301;border-radius:2px 2px 0 0}#widget .ranking:before{content:\" \";position:absolute;bottom:-9px;right:0;width:100%;height:11px;border-radius:0 0 30px 30px;background:#7dc301}#widget .ranking .number{text-align:center;line-height:28px;font-family:\"futura\",Arial,Verdana,sans-serif;font-weight:bold;font-size:14px;color:#FFF}#widget .age{display:none}#widget .custom_specs li{list-style:none}#widget .custom_specs .clear{clear:both;height:1px;width:100%}#widget .custom_specs .specs-holder{position:relative}@media (max-width: 2560px){#widget .custom_specs .specs-holder{clear:both}#widget .custom_specs .specs-holder:after{content:\"\";display:table;clear:both}}#widget .custom_specs .specs-holder .chslider-arrows{width:10px;position:absolute;top:0;height:100%}#widget .custom_specs .specs-holder .chslider-arrows.chslider-prev{left:0}#widget .custom_specs .specs-holder .chslider-arrows.chslider-next{right:0}#widget .custom_specs .specs-holder .chslider{margin:0px 10px 5px}#widget .custom_specs .specs-holder .chslider li{display:inline-block}#widget .custom_specs .specs-holder .chslider{max-height:40px;overflow:hidden}#widget .custom_specs .specs-holder.spec-color{height:40px}#widget .custom_specs .specs-holder.spec-size{height:20px}#widget .buttons{position:relative;text-align:center;cursor:pointer;padding:4px;background:#78828b;color:#fff}#widget .buttons.check{display:none}#widget.desktop{max-width:1255px}#widget.desktop .content{min-height:130px}#widget.desktop .carousel-padding,#widget.tablet .carousel-padding{padding:0}#widget.desktop .pagination-general,#widget.tablet .pagination-general{display:none}#widget .arrow{cursor:pointer;position:absolute;top:45%;z-index:100;background:url(svg/seta.svg) no-repeat #fff center;width:33px;height:33px;border:1px solid #0033C6;border-radius:25px;text-indent:-9999px}#widget .arrow.disabled{display:none}#widget .arrow.prev{left:0;background-position:12px 7px;background-size:9px 16px;transform:rotate(180deg)}#widget .arrow.next{right:0;background-position:12px 7px;background-size:9px 16px;transform:rotate(360deg)}#widget .arrow.next span{background-position:0 -28px !important}#widget .arrow.vertical{height:40px;width:21px;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);background-position:4px 10px;background-size:8px 16px;top:auto;bottom:6px;right:10px;left:auto;border-radius:0}#widget .arrow.vertical.prev{right:60px}#widget .arrow.vertical.next{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}#widget .pagination-wrapper{display:table;margin:0 auto}#widget .pagination-wrapper .pagination li{float:left;display:block;font-size:0;text-indent:9999px;cursor:pointer;margin-right:5px;background-color:#f5f5f5;width:12px;height:12px;border-radius:20px;border:1px solid #cccccc}#widget .pagination-wrapper .pagination li.active{background:#0033c6;border:1px solid #0033c6}#widget.no-touch .item:hover .product-name{color:#0033c6}#widget.no-touch .arrow:hover{opacity:.5}#widget .nm-hidden{display:none !important}#widget .nm-flags{display:block;position:relative;min-height:20px;margin:8px 0}#widget .nm-seal-img{position:absolute;width:55px !important;height:55px;bottom:25px;right:10px}#widget.phone .title{margin:0 0 10px;font-size:24px;line-height:1.2em;border-bottom:none;text-align:left;color:#0033c6;font-weight:bold}#widget.phone .item{width:auto;padding:8px;background:#FFF;border:0;margin:0 auto 5px auto}#widget.phone .title-first{color:#0033c6;line-height:1.2em}#widget.phone .item:first-of-type .title-first{color:#0033c6}#widget.phone .last-visible .item{border-left:0}#widget.phone .ranking{left:8px;top:26px}#widget.phone .thumbnail img{height:auto;width:100%;max-width:292px}#widget.phone .product-name{min-height:50px;max-height:50px;overflow:hidden}#widget.phone .prices,#widget.phone .purchased{min-height:70px}#widget.phone .old-price{font-size:12px}#widget.phone .price{font-size:16px;color:#0033c6}#widget.phone .price span{font-size:16px;color:#0033c6}#widget.phone .installments{display:block}#widget.phone .arrow{display:none !important}#widget.phone .carousel-padding{margin:0 auto}#widget.phone .flags img{max-width:100%}\\n'),O.addAsset(\"shoppingcart.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");#widget{max-width:100%;margin-bottom:40px;padding:0;border:1px solid #D6E5F2;border-radius:8px}#widget .title{font-family:\"Nunito\",Arial,Verdana,sans-serif;color:#069;height:40px;background:#E5F1FB;border-radius:8px 8px 0 0;font-size:16px;line-height:40px;padding-left:10px;text-transform:inherit}#widget .carousel-padding{padding:0 5px}#widget .buttons{font-size:11px;display:block;width:146px;height:27px;line-height:20px;background:url(images/btAddCart.png);margin:5px auto 0 auto;-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;transition:all 150ms ease}#widget .buttons span{display:none}#widget .buttons:hover{background-position:0 -26px}#widget .item{padding:0;width:250px}#widget .item .content{width:auto;text-align:left}#widget .thumbnail{width:100px;height:100px;max-width:calc(50% - 5px);float:left;margin-right:10px;position:relative}#widget .thumbnail img{width:100px;height:100px}#widget .content{min-height:100px}#widget .product-name{margin:0 0 5px 0;overflow:hidden;font-size:10.5px;height:47px}#widget .prices{overflow:hidden;margin:5px 0 0 0;min-height:45px}#widget .old-price{font-size:11px;display:block;margin:0}#widget .old-price span{font-size:11px;text-decoration:line-through}#widget .price{display:block;font-size:14px;font-family:\"futura\",Arial,Verdana,sans-serif}#widget .price span{font-size:14px;font-family:\"futura\",Arial,Verdana,sans-serif}#widget .price .nm-price-value{font-size:18px}#widget .installments,#widget .flags{display:none}#widget .nm-availability-container,#widget .nm-availability-container-fail{padding:2px 0}#widget .nm-availability-container span,#widget .nm-availability-container-fail span{padding:0 5px}#widget .group-specs{min-height:15px}#widget.desktop .content{min-height:121px;height:auto}#widget.phone{border:0}#widget.phone .title{margin:0 5px;font-family:\"futura\",Arial,Verdana,sans-serif;text-transform:uppercase;background:none;padding-left:0;color:#0033c6;font-weight:bold}#widget.phone .last-visible .item{border-left:none}@media (min-width: 420px){#widget.phone .last-visible .item{border-left:none}}#widget.phone .item{padding-bottom:50px;border:none}#widget.phone .thumbnail{vertical-align:middle;display:inline-block;width:50%;float:none;height:auto;margin-right:0}#widget.phone .thumbnail img{width:100%}#widget.phone .content{display:inline-block;vertical-align:middle;text-align:left;margin-left:5px;width:46%}#widget.phone .product-name{min-height:auto;height:auto;max-height:51px;font-size:12px}#widget.phone .prices{min-height:auto;font-family:\"Nunito\",Arial,Verdana,sans-serif}#widget.phone .price{font-size:15px;font-family:\"Nunito\",Arial,Verdana,sans-serif}#widget.phone .price span{font-size:15px;font-family:\"Nunito\",Arial,Verdana,sans-serif}#widget.phone .old-price{height:auto;font-family:\"Nunito\",Arial,Verdana,sans-serif}#widget.phone .buttons{position:absolute;bottom:0;left:calc(50% - 75px);background:#28b542;border-radius:4px;height:40px;padding:0}#widget.phone .buttons span{color:#fff;display:block;font-family:\"Nunito\",Arial,Verdana,sans-serif;line-height:40px;font-weight:bold;font-size:14px}\\n'),O.addAsset(\"personalized.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");#widget .title.sub{margin-left:72px}#widget .carousel-wrapper{position:relative;overflow:hidden}#widget .first-item-wrapper{float:left;width:216px !important}#widget .first-item{padding:0;position:relative;margin:0 auto;border-right:1px solid #e6e6e6}#widget .purchased{font-size:14px;margin-bottom:25px}#widget .percent-img{display:none !important}#widget .control{position:absolute;top:0;left:0;text-align:left;z-index:10;cursor:pointer}#widget .refresh{position:relative;display:inline-block;padding:4px 3px 0 15px;height:35px;line-height:28px;box-sizing:border-box;background:#0033c6;color:#fff;font-size:14px;border-radius:2px;cursor:pointer;margin-bottom:.4em;text-indent:1.7em;width:35px;overflow:hidden;transition:width .5s ease;transition:all .3s ease;white-space:nowrap}#widget .refresh:before{background-image:url(\"svg/reload.svg\");left:7px;top:5px;content:\\'\\';position:absolute;display:block;width:23px;height:23px;background-size:87%;background-repeat:no-repeat}#widget.phone .control{top:0;left:0}#widget.phone .purchased{font-size:12px;margin-bottom:0;min-height:39px}#widget.phone .sub{display:block;position:relative;background-color:none;text-align:left;line-height:1.2em;margin:10px 0;font-size:16px;border-bottom:none;border-left:0;border-right:0}@media (max-width: 2560px){#widget.phone .carousel-wrapper{clear:both}#widget.phone .carousel-wrapper:after{content:\"\";display:table;clear:both}}#widget.phone .first-item-wrapper{width:100% !important}#widget.phone .first-item-wrapper .nm-seal-img{position:absolute;width:55px !important;height:55px;bottom:-25px;right:150px}#widget.phone .first-item{margin:0 auto;border-right:none;width:100%}#widget.phone .first-item .item{width:100% !important;margin:0 auto;border:1px solid #e8e8e8}#widget.phone .first-item .thumbnail{display:inline-block;width:50%;vertical-align:middle}#widget.phone .first-item .content{display:inline-block;vertical-align:middle;text-align:left;margin-left:5px;width:46%}#widget.phone .first-item .discount{right:unset;left:10px}#widget.phone .first-item .product-name,#widget.phone .first-item .prices{min-height:auto;max-height:auto}#widget.phone .first-item .rating-container,#widget.phone .first-item .old-price{height:auto}#widget.phone .flags{height:auto}#widget.phone .nm-flags{min-height:auto}#widget.phone .control{bottom:8px;left:8px;top:auto}#widget.phone .refresh{margin-bottom:0;width:80px;height:30px;line-height:24px;padding:4px 3px 0 10px}#widget.phone .refresh:before{left:5px;top:3px;width:22px;height:22px}#widget.touch .refresh{width:80px}#widget.no-touch .refresh:hover{width:90px}\\n'),O.addAsset(\"ultimatebuy.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");#widget .most-bought .percent-img{background:#f3faff;color:#0033c6;width:54px;font-size:22px;line-height:13px;height:40px;display:block;position:absolute;left:0;top:0;padding-top:10px;box-sizing:border-box;z-index:8}#widget .most-bought .percent-img span{display:block;font-size:10px}#widget .most-bought .percent-img:before{content:\" \";position:absolute;bottom:-10px;right:0;width:0;height:0;border:solid transparent;-moz-transform:scale(0.99999);border-width:10px 27px 0 27px;border-color:#f3faff transparent transparent transparent}#widget .most-bought .percent-text{padding-left:20px;box-sizing:border-box}#widget .percent{font-size:12px;height:23px;line-height:23px;margin:0 auto;color:#0033c6;background:#f6f6f6;width:100%;text-align:center}#widget .discount{top:28px}#widget .flag-withdraw-fast{top:138px}#widget .view-ub{font-size:12px;height:23px;line-height:23px;position:absolute;bottom:0;color:#333;background:#f6f6f6;width:100%;text-align:center}#widget.page-product .next,#widget.page-product .prev{display:none}@media (max-width: 620px){#widget.horizontal .next,#widget.horizontal .prev{display:block}}#widget.phone .view-ub{text-align:center;color:#0033c6}@media (max-width: 479px){#widget.phone .most-bought .percent-img{display:none}#widget.phone .most-bought .percent-text{padding-left:0}}\\n'),O.addAsset(\"featured.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");#widget{border:1px solid #CCCCCC;border-radius:6px;display:flex;justify-content:center;align-items:center}#widget:hover{border-color:#0033c6}#widget .featured-css{width:205px;height:192px;float:left;display:block;padding:60px 30px;box-sizing:border-box;margin-right:43px;position:relative;color:#0033c6;font-size:30px;background:#f6f6f6;border-radius:6px 0 0 6px}@media (max-width: 800px){#widget .featured-css{width:220px;padding:60px 0 0 20px;font-size:29px}}#widget .featured-css:before{content:\"\";display:inline-block;vertical-align:middle;margin-right:10px;width:0;height:0;border-top:96px solid transparent;border-bottom:96px solid transparent;border-left:43px solid #f5f5f5;position:absolute;z-index:7;top:0;right:-53px}#widget .featured-css span{display:block;font-family:\"Nunito\",Arial,Verdana,sans-serif;font-weight:bold}#widget .featured-mobile{display:none}#widget .flags{height:auto;display:block}#widget .flags .nm-flags{height:20px}#widget .flags span{display:inline-block}#widget .item{text-align:left;margin:0;width:100%;display:flex;height:192px}#widget .item .flag-ads-container{position:absolute;left:24px;height:16px}#widget .item .flag-ads-container ~ .thumbnail img{margin-top:16px}#widget .item:hover .product-name{color:#575757 !important}#widget .item .discount.nm-discount{right:-60px}#widget .thumbnail{vertical-align:middle;margin:0 32px 0 24px;display:flex}#widget .thumbnail img{width:182px;height:182px}#widget .content{width:auto;margin:0 auto 0 0}#widget .content .product-name{font-family:\"Nunito\",Arial,Verdana,sans-serif;font-size:20px;line-height:29px;color:#575757;margin:5px 0;min-height:58px;max-height:58px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#widget .content .prices{display:inline-block;margin-right:20px}#widget .content .prices .old-price{color:#707070;font-size:16px;font-weight:normal}#widget .content .prices .nm-price-label,#widget .content .prices .nm-old-price-label{display:none}#widget .content .prices .nm-price-value{color:#0033c6;font-size:24px}#widget .content .prices .nm-installment-container{color:#0033c6;font-size:16px;line-height:22px}#widget .content .prices .nm-installment-container span{font-weight:bold}#widget .group-featured{display:inline-block}#widget .buttons{height:40px;width:131px;font-size:15px;line-height:31px;font-weight:bold;margin:0;background-color:#70A400;border-radius:4px;opacity:0;display:inline-block;transition:all 250ms ease-in-out;position:relative;bottom:13px}@media (max-width: 960px){#widget .buttons{display:none}}#widget .arrow{top:43%}#widget .arrow.prev{left:274px}#widget .arrow.next{right:24px}#widget .pagination-wrapper{position:absolute;bottom:20px;right:19px}#widget .pagination-wrapper .pagination li{float:left;display:block;font-size:0;text-indent:9999px;cursor:pointer;margin-right:5px;background-color:#f5f5f5;width:10px;height:10px;border-radius:20px;border:1px solid #cccccc}#widget .pagination-wrapper .pagination li.active{background:#0033c6;border:1px solid #0033c6}#widget .pagination-wrapper .pagination li{border:1px solid #CCCCCC}#widget .pagination-wrapper .pagination li.active{border:1px solid #0033c6}#widget.desktop .carousel-padding{padding:0 14px 0 16px}@media (max-width: 667px){#widget.phone{display:block}#widget.phone:hover{border-color:#CCCCCC}#widget.phone .featured-css{display:none}#widget.phone .featured-mobile{display:block;text-align:center;background-color:#F5F5F5;font-size:24px;padding:10px 0;border:0;font-weight:bold;color:#0033c6}#widget.phone .pagination-wrapper{position:relative;display:table;bottom:auto;right:auto;margin:5px auto}#widget.phone .last-visible .item{border-left:0}#widget.phone .item{padding:16px 8px 14px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;height:auto}#widget.phone .content{width:60%}#widget.phone .content .product-name{font-size:12px;line-height:18px;padding:0;-webkit-line-clamp:3}#widget.phone .content .prices{min-height:auto;margin:5px 0 0}#widget.phone .content .prices .nm-price-value{font-size:19px}#widget.phone .content .prices .nm-installment-container{font-size:12px;line-height:16px}#widget.phone .thumbnail{margin:0 10px;width:40%}#widget.phone .flags{padding-top:0;height:20px}#widget.phone .discount{width:39px;height:18px;font-size:11px;line-height:18px;top:14px;left:5px;border-radius:4px}#widget.phone .buttons{display:none}}#widget.no-touch{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}#widget.no-touch .arrow{opacity:0}#widget.no-touch .arrow.prev{transition:all 250ms ease-in-out}#widget.no-touch .arrow.next{transition:all 250ms ease-in-out}#widget.no-touch:hover .arrow{opacity:1}#widget.no-touch:hover .buttons{opacity:1}#widget.mobile.tablet .featured-css{padding:60px 10px;width:auto}#widget.mobile.tablet .carousel-padding{padding:0 14px 0 16px}#widget.mobile.tablet .thumbnail{margin:0 24px 0 16px}#widget.mobile.tablet .product-name{height:75px;font-size:12px;line-height:1.25}#widget.mobile.tablet .arrow.prev{left:231px}\\n'),O.addAsset(\"frequentlyboughttogether.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");#widget{margin:20px auto 35px auto}#widget .frame{position:relative}@media (min-width: 667px){#widget .frame{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:center}}#widget .product-name{height:48px;padding:10px 10px 0 10px;min-height:52px;line-height:1.5em;overflow:hidden}#widget .fbt-subtitle--phone{display:none}#widget .title-first{display:none}#widget .item{width:30%;margin:0 auto}#widget .item .wrapper{position:relative}#widget .item .control-add,#widget .item .control-remove{display:none}#widget .item.removable .control-remove{display:inline-block}#widget .item.disabled .wrapper:before{content:\\'\\';position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background:rgba(255,255,255,0.8)}#widget .item.disabled .control-skip{visibility:hidden}#widget .item.disabled .control-add{display:inline-block}#widget .item.disabled .control-remove{display:none}#widget .item:first-of-type .controls{display:none}#widget .item:first-of-type .title-first{display:block;font-size:12px;height:23px;line-height:23px;position:absolute;bottom:0;color:#333;background:#f6f6f6;width:100%;text-align:center;z-index:3}#widget .group-thumbnail{position:relative}#widget .controls{position:absolute;top:0;left:0;text-align:left;z-index:10;white-space:nowrap}#widget .control-skip,#widget .control-add,#widget .control-remove{position:relative;display:inline-block;padding:4px 3px 0 15px;height:35px;line-height:28px;box-sizing:border-box;background:#0033c6;color:#fff;font-size:14px;border-radius:2px;cursor:pointer;margin-bottom:.4em;text-indent:1.7em;width:35px;overflow:hidden;transition:width .5s ease}#widget .control-skip:before,#widget .control-add:before,#widget .control-remove:before{content:\\'\\';position:absolute;display:block;width:23px;height:23px;background-size:87%;background-repeat:no-repeat}#widget .control-skip:before{background-image:url(\"svg/reload.svg\");left:7px;top:5px}#widget .control-remove:before{background-image:url(\"svg/remove.svg\");background-size:78%;top:6px;left:9px}#widget .control-add{width:140px}#widget .control-add:before{top:5px;left:9px;background-image:url(\"svg/back.svg\")}#widget .plus,#widget .equals{width:45px;margin-top:130px;font-size:30px;text-align:center;color:#0033c6}#widget #thumbnails{display:flex;flex:2;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}#widget #summary{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:stretch;width:430px;background:#e5f1fb;margin:0 0 0 10px;padding:20px 10px;box-sizing:border-box;text-align:center}#widget #summary .summary-text{font-size:22px}#widget #summary .summary-text span{font-size:26px}#widget #summary .prices{margin:10px 0}#widget #summary .prices .price{font-size:18px}#widget #summary .buttons{margin:10px auto;padding:0;height:40px;line-height:40px;width:90%;border-radius:4px;background:#28aa46;font-weight:bold;font-size:14px;font-family:Tahoma,Arial,Helvetica,sans-serif}#widget .products-2 .item{width:calc(50% - (45px / 2))}#widget .products-2 #thumbnails{width:65%}#widget .products-2 #summary{width:calc(35% - 45px)}#widget.desktop .content{min-height:auto}#widget.touch .control-skip{width:90px}@media (max-width: 667px){#widget.touch .title{margin:0}#widget.touch .discount{right:calc(50% + 10px)}#widget.touch #thumbnails,#widget.touch .frame,#widget.touch #summary{display:block;width:100%}#widget.touch #summary{margin:10px 0 0 0;padding:15px 10px 10px;background-color:#eef4f8}#widget.touch #summary .summary-text{font-size:20px;font-family:\"futura\",Arial,Verdana,sans-serif;text-transform:uppercase}#widget.touch #summary .summary-text span{font-size:26px}#widget.touch #summary .prices{margin:5px 0 15px;min-height:auto}#widget.touch #summary .price span{font-size:18px;font-weight:bold}#widget.touch #summary .old-price{height:auto}#widget.touch .plus{text-align:center;width:100%;display:block;margin:0}#widget.touch .equals{display:none}#widget.touch .wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center}#widget.touch .item{width:100%}#widget.touch .item .group-thumbnail{width:calc(50% - 10px);margin-right:10px}#widget.touch .item .content{width:50%;margin:0}#widget.touch .controls{top:unset;bottom:0}#widget.touch .control-skip{width:80px;height:30px;line-height:24px;padding:4px 3px 0 12px}#widget.touch .control-skip:before{left:5px;top:3px;width:22px;height:22px}#widget.touch .product-name,#widget.touch .prices{min-height:auto;max-height:auto;height:auto}#widget.touch .rating-container,#widget.touch .old-price{height:auto}}#widget.no-touch .control-remove:hover{width:105px}#widget.no-touch .control-skip:hover{width:90px}\\n'),O.addAsset(\"historypersonalized.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");#widget .title-hp{color:#333;font-size:25px;margin:0 0 10px 10px;padding-bottom:5px}#widget .recs-frame{z-index:10}#widget .refs-frame.vertical{float:left;width:25%;height:216px;min-width:237px;min-height:400px;z-index:50;margin-left:60px}#widget .refs-frame.vertical .title{margin:0}#widget .refs-frame.vertical .container{height:100%;position:relative}#widget .refs-frame.vertical .carousel{position:absolute;left:1px;right:1px;height:100%;top:0}#widget .refs-frame.vertical .carousel-list{z-index:9999;border-bottom:1px solid #ededed}#widget .refs-frame.vertical .carousel-padding{padding:22px 0 45px 0;box-sizing:border-box}#widget .refs-frame.vertical li{overflow:hidden;position:relative;background:transparent;width:100%;cursor:pointer}#widget .refs-frame.vertical li .item{margin:0 20px 0 0;padding:5px;width:220px !important;min-height:110px}#widget .refs-frame.vertical li .item:hover{cursor:pointer}#widget .refs-frame.vertical li .item:after{content:\"\";display:table;clear:both}#widget .refs-frame.vertical li .thumbnail{display:inline-block;vertical-align:middle;margin-right:10px;width:100px}#widget .refs-frame.vertical li .thumbnail img{width:99px;height:99px}#widget .refs-frame.vertical li .content{text-align:left;min-height:auto;display:inline-block;vertical-align:middle;width:calc(100% - 115px)}#widget .refs-frame.vertical li .buttons{display:none;margin-top:5px;font-size:11px;text-transform:uppercase;padding:0;height:24px;width:90px;line-height:25px}#widget .refs-frame.vertical li.selected .item{background-color:#f7f7f7}#widget .refs-frame.vertical li.selected .item:before{content:\"\";display:block;width:0;height:0;border-top:55px solid transparent;border-bottom:55px solid transparent;border-left:15px solid #f7f7f7;position:absolute;top:0;left:100%}#widget .refs-frame.vertical li .product-name{min-height:42px;margin:0 0 6px 0;line-height:14px}#widget .refs-frame.vertical li .price{font-size:14px;font-weight:bold}#widget .refs-frame.vertical .arrow{background:url(svg/seta-hp.svg) no-repeat #0033c6 center;border:none;background-size:10px}#widget .refs-frame.horizontal .carousel-padding{padding-bottom:10px}#widget .refs-frame.horizontal .item{margin:0px auto;width:140px !important;padding:5px}#widget .refs-frame.horizontal .last-visible .item{border-left:none}#widget .refs-frame.horizontal .thumbnail img{width:100%}#widget.desktop .refs-frame.vertical .content{min-height:auto}#widget.page-cart{max-width:100%;padding:0}#widget.no-touch .buttons:hover{opacity:0.5}\\n'),O.addAsset(\"push.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");.menu-wrapper::-webkit-scrollbar{-webkit-appearance:none;width:7px;height:3px}.menu-wrapper::-webkit-scrollbar-thumb{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#ebebeb;-webkit-box-shadow:0 0 1px #ebebeb}#widget .has-menu .title{border:none;margin:0 0 10px 0}#widget .has-menu .title-bottom{margin:0}#widget .has-menu .carousel-wrapper{border:1px solid #c6c6c6;padding:10px 0}#widget .has-menu .menu-wrapper{margin:0;text-align:left;overflow-y:hidden}#widget .has-menu .item{border-color:transparent}#widget .has-menu .pagination-wrapper{margin:10px auto 0}@media (min-width: 992px){#widget .frame.left-side-menu{display:-webkit-box;display:-ms-flexbox;display:flex}#widget .frame.left-side-menu.has-menu .carousel-wrapper{width:calc(100% - 185px)}#widget .frame.left-side-menu .menu-wrapper{width:185px}#widget .frame.left-side-menu .menu{margin-bottom:0;text-align:left}#widget .frame.left-side-menu .menu-item{border-bottom:none;display:block}#widget .frame.left-side-menu .menu-item.selected{background:rgba(0,0,0,0.1);border-bottom:none;color:#0033c6}#widget .frame.left-side-menu .menu-item:hover{background:rgba(0,0,0,0.05)}}#widget .data-skin-link{float:none;bottom:auto;color:#0033c6;font-weight:bold;display:block;background:#d1e1ed;float:none;font-size:13px;text-transform:lowercase;text-decoration:none;padding:7px 0;margin:10px 0 0 0;text-align:center}#widget .data-skin-link:hover{opacity:0.5;text-decoration:none}#widget .menu-wrapper{margin:0 auto 15px 0;text-align:center;bottom:-1px;position:relative}#widget .menu{list-style:none;margin-bottom:15px;text-align:center;display:inline-block;margin:0 auto;border:none;padding:10px 0 0 0;position:relative}#widget .menu li{background:#e2e2e2;border:1px solid #e2e2e2;border-bottom:1px solid #c6c6c6;border-radius:10px 10px 0 0;margin-right:15px;padding:10px 15px}#widget .menu-item{box-sizing:border-box;cursor:pointer;display:inline-block;float:none;height:auto;list-style:none;color:#666;font-size:15px;line-height:20px}#widget .menu-item.selected{background:#FFF;border:1px solid #c6c6c6;border-bottom:1px solid #FFF;color:#0033c6}@media (max-width: 991px){#widget .menu-wrapper{overflow:auto;margin:0 auto 15px 0}#widget .menu{white-space:nowrap}}#widget.tablet .menu-item{font-size:14px;padding:4px 10px 0 10px}#widget.phone .menu-item{font-size:14px;border-right:solid 1px #e1e1e1}#widget.phone .title.deadline-title{color:#0033c6;width:auto;max-width:31%;font-size:24px;text-align:left;padding-right:20px;border-right:1px solid #CCC}#widget.phone .frame.has-deadline{display:flex;flex-wrap:wrap}#widget.phone .frame.has-deadline .description{width:100%;padding:8px 32px;border-left-width:0;border-radius:6px;font-size:14px;line-height:17px;margin-top:24px;background:#F9FAFC}#widget.phone .frame.has-deadline .description span{display:inline-block;text-align:center}#widget.phone .frame.has-deadline .description span:first-child{font-weight:400}#widget.no-touch .menu-item:hover{color:#0033c6}#widget .deadline-text{display:none}#widget .title.deadline-title{font-family:\"Nunito\",Arial,Verdana,sans-serif;font-size:28px;line-height:1em;margin:0;width:200px;text-transform:initial}#widget .frame.has-deadline{display:flex;justify-content:space-between;align-items:center}#widget .frame.has-deadline .carousel-wrapper{width:100%;margin-top:24px}#widget .frame.has-deadline .pagination-wrapper{display:none}#widget .frame.has-deadline .deadline-wrapper{position:relative;color:#575757;font-size:16px;font-family:\"Nunito\",Arial,Verdana,sans-serif;padding:0 0 0 15px;width:auto;background-color:#FFF}#widget .frame.has-deadline .deadline-wrapper .deadline-text{display:block}#widget .frame.has-deadline .deadline-wrapper:before{content:\"\";width:34px;height:100%;background:url(images/countdown.svg) center no-repeat;position:absolute;top:0;left:-40px}#widget .frame.has-deadline .description{width:50%;color:#0033c6;font-size:28px;font-family:\"Nunito\",Arial,Verdana,sans-serif;line-height:30px;border-left:1px solid #CCC;padding-left:77px}#widget .frame.has-deadline .description span:first-child{font-weight:700}#widget .frame.has-deadline .description span{width:100%}#widget.mobile>.title.deadline-title{margin-left:0%}#widget.mobile .frame.has-deadline .carousel-wrapper{width:100%}#widget.mobile .frame.has-deadline .arrow.prev{left:5px}#widget.mobile .frame.has-deadline .pagination-wrapper{display:table}#widget.mobile .frame.has-deadline .deadline-wrapper{font-size:12px;font-weight:700;margin:8px 0 0 50px;width:auto;text-align:left;padding:0}#widget.mobile .frame.has-deadline .deadline-wrapper::before{height:90%;left:-50px}#widget.mobile .frame.has-deadline .deadline-wrapper .deadline-text{padding-top:0;display:block}#widget.mobile .frame.has-deadline .deadline-wrapper .hour,#widget.mobile .frame.has-deadline .deadline-wrapper .minute,#widget.mobile .frame.has-deadline .deadline-wrapper .second{font-size:32px;line-height:43px}#widget.mobile .frame.has-deadline .deadline-wrapper .hour::after,#widget.mobile .frame.has-deadline .deadline-wrapper .minute::after,#widget.mobile .frame.has-deadline .deadline-wrapper .second::after{font-size:24px;line-height:28px}@media (max-width: 340px){#widget.mobile .title.deadline-title{font-size:20px;max-width:88px}#widget.mobile .frame.has-deadline .deadline-wrapper .hour,#widget.mobile .frame.has-deadline .deadline-wrapper .minute,#widget.mobile .frame.has-deadline .deadline-wrapper .second{font-size:32px;line-height:38px}}#widget .hour,#widget .minute{padding-right:10px}#widget .hour::after{content:\" h\"}#widget .minute::after{content:\" min\"}#widget .second::after{content:\" SEGUNDOS\"}#widget .hour,#widget .minute{color:#ed1a3b;font-size:32px;font-weight:900;display:inline-block;text-align:center}#widget .hour::after,#widget .minute::after{font-size:24px;font-weight:400;display:inline-block;white-space:pre}#widget .second{display:none}\\n'),O.addTheme(\"MostPopular\",null,{carousel:k.getCarousel(\"general\",M),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},dynamicHeight:!0,afterDrawWidget:I,productView:F,afterDrawProduct:U,widgetClass:\"horizontal\"}),O.addTheme(\"MostPopular\",\"vertical\",{carousel:k.getCarousel(\"general\",M),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},height:\"580px\",width:\"175px\",minProducts:4,size:16,widgetClass:\"vertical\",afterDrawWidget:I,afterDrawProduct:U,productView:F,style:[\"theme.css\",\"vertical.css\"]}),O.addTheme(\"SimilarItems\",null,{carousel:k.getCarousel(\"general\",M),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},afterDrawWidget:I,productView:F,afterDrawProduct:U,dynamicHeight:!0,widgetClass:\"horizontal\"});var X={carousel:k.getCarousel(\"personalized\",M),widgetClass:\"horizontal\",dynamicHeight:!0,afterDrawWidget:I,productView:F,afterDrawProduct:U};O.addTheme(\"UltimateBuy\",null,function(){return b.meta.page.name===\"product\"?{carousel:k.getCarousel(\"general\",M),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"horizontal\",afterDrawWidget:I,productView:F,afterDrawProduct:U}:X}()),O.addTheme(\"ViewPersonalized\",null,X),O.addTheme(\"PurchasePersonalized\",null,X),O.addTheme(\"CartPersonalized\",null,X),O.addTheme(\"ShoppingCart\",null,{specs:k.spec,carousel:k.getCarousel(\"shoppingCart\",M),templates:{widget:\"widget.fugly\",product:\"shoppingcart-product.fugly\"},afterDrawProduct:z,afterDrawWidget:I,productView:F,dynamicHeight:!0,widgetClass:\"horizontal\",buy:H}),window.location.search.toLowerCase().indexOf(\"idlojista\")===-1&&O.addTheme(\"FrequentlyBoughtTogether\",null,{specs:k.spec,dynamicHeight:!0,visibleProducts:S?2:3,afterDrawProduct:z,afterDrawWidget:I,productView:F,afterDrawSummary:q,mobile:S,buyTogether:B}),O.addTheme(\"Offers\",null,{carousel:k.getCarousel(\"general\",M),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},afterDrawWidget:I,productView:F,afterDrawProduct:U,dynamicHeight:!0,widgetClass:\"horizontal\"}),O.addTheme(\"Featured\",null,{carousel:k.getCarousel(\"featured\",M),templates:{widget:\"featured.fugly\",product:\"product.fugly\"},afterDrawWidget:I,productView:F,afterDrawProduct:U,width:\"100%\",dynamicHeight:!0}),O.addTheme(\"New4You\",null,{carousel:k.getCarousel(\"general\",M),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},afterDrawWidget:I,productView:F,afterDrawProduct:U,dynamicHeight:!0,widgetClass:\"horizontal\"});var V={carousel:k.getCarousel(\"historyPersonalized\",M),carouselOnlyRefs:k.getCarousel(\"general\",M),carouselRefsDesktop:k.getCarousel(\"historyPersonalized\",M,\"refsDesktop\"),dynamicHeight:!0,templates:{widget:\"historypersonalized.fugly\",onlyRefs:\"widget.fugly\",refProduct:\"historypersonalized-ref-product.fugly\"},widgetClass:\"horizontal\",afterDrawWidget:I,productView:F,afterDrawProduct:z};M&&(b.verticalHpRefs=!1,V.height=\"auto\",V.dynamicHeight=!0,V.carouselRefsMobile=k.getCarousel(\"historyPersonalized\",M),V.templates={widget:\"historypersonalized-mobile.fugly\",refProduct:\"historypersonalized-ref-product-mobile.fugly\"}),O.addTheme(\"HistoryPersonalized\",null,V),O.addTheme(\"Push\",null,{carousel:k.getCarousel(\"general\",M),templates:{widget:\"push.fugly\",product:\"product.fugly\"},afterDrawWidget:I,productView:F,afterChangeMenuItem:W,dynamicHeight:!0,widgetClass:\"horizontal\",beforeRender:j}),O.addAsset(\"discover-initial-content.fugly\",'<h1 class=\"linx-discover-title\">Você Vai Gostar</h1>\\n\\n<div class=\"linx-products\"></div>\\n\\n<p class=\"linx-loading-container\">\\n  <span class=\"linx-loading-icon\"></span>\\n</p>\\n<p class=\"linx-button-container\">\\n  <span class=\"button-chevron\"></span>\\n  <button class=\"linx-load-more\">Ver mais produtos</button>\\n</p>\\n'),O.addAsset(\"discover.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");html,body{overflow:hidden}#widget{background-color:transparent !important;max-width:1240px}[linx-impulse=\"onsite-discover\"]{padding:0 !important;margin:0 auto !important;position:relative;overflow:hidden;margin-top:0px !important;margin-bottom:0px !important;@keyframes loading-amination{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}}[linx-impulse=\"onsite-discover\"] .linx-discover-title{color:#0033c6;font-size:22px;font-family:\"Nunito\",Arial,Verdana,sans-serif;font-weight:bold;white-space:nowrap;margin:30px 10px}@media screen and (max-width: 768px){[linx-impulse=\"onsite-discover\"] .linx-discover-title{color:#0033c6;margin:16px 10px}}[linx-impulse=\"onsite-discover\"] .linx-products{overflow:auto;padding:5px 5px 0px 5px;position:relative;background:#fff;margin:0;border-radius:10px 10px 0 0}@media screen and (max-width: 768px){[linx-impulse=\"onsite-discover\"] .linx-products{padding:0;margin:0}}[linx-impulse=\"onsite-discover\"] .linx-discover-product{width:calc(25% - 20px) !important;margin:0 13.33333px !important;box-sizing:border-box;padding:10px;height:440px;position:relative;float:left;margin-bottom:10px}[linx-impulse=\"onsite-discover\"] .linx-discover-product:nth-of-type(4n+1){margin-left:0 !important;float:left !important;clear:both !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product:nth-of-type(4n){margin-right:0 !important;float:right !important;clear:none !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item{width:100% !important;margin:0 !important}@media screen and (max-width: 768px){[linx-impulse=\"onsite-discover\"] .linx-discover-product{border-bottom:1px solid #dedede;padding:20px 3px;min-height:130px;height:auto;margin:0 !important;width:calc(100% - 0px) !important;margin:0 NaNpx !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product:nth-of-type(1pxn+1){margin-left:0 !important;float:left !important;clear:both !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product:nth-of-type(1pxn){margin-right:0 !important;float:right !important;clear:none !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product:first-of-type{padding-top:3px}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .flags{display:none}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item a.thumbnail{float:left;margin-right:16px}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item a.thumbnail img{max-width:100px;height:auto !important;width:auto !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content{float:right;width:calc(100% - 116px)}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content .product-name{margin-bottom:auto !important;min-height:auto !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content .old-price{height:auto !important;font-weight:normal !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content .old-price .nm-old-price-label{display:none}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content .price{font-weight:bold !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content .price .nm-price-label{display:none}[linx-impulse=\"onsite-discover\"] .linx-discover-product .item .content .price .nm-price-value{font-size:16px !important}[linx-impulse=\"onsite-discover\"] .linx-discover-product:last-of-type{border-bottom:0}}[linx-impulse=\"onsite-discover\"] .linx-loading-icon{display:block !important;width:40px;height:40px;margin:0 auto;display:none;border:2px solid #ccc;border-radius:50%;animation:loading-amination 1s linear infinite}[linx-impulse=\"onsite-discover\"] .linx-loading-icon::after{content:\"\";position:absolute;width:2px;height:10px;display:block;background:#575757;top:0;left:50%;transform:translateX(-50%)}[linx-impulse=\"onsite-discover\"] .linx-load-more{background:#0033C6;border-radius:4px;color:#fff;font-family:\"Nunito\",Arial,Verdana,sans-serif;font-size:16px;font-weight:bold;height:40px;width:250px;text-align:center;white-space:nowrap;padding:0 60px;cursor:pointer;border:0}@media screen and (max-width: 768px){[linx-impulse=\"onsite-discover\"] .linx-load-more{background:#0033C6;color:#ffffff}}[linx-impulse=\"onsite-discover\"].linx-loading .linx-loading-container{display:block}[linx-impulse=\"onsite-discover\"].linx-loading .linx-button-container{display:none}.linx-button-container,.linx-loading-container{text-align:center;background-color:#FFF;border-radius:0 0 10px 10px;margin-top:0;padding:10px}.linx-loading-container{display:none}\\n');var $=b.onsite.Discover.initialize,J={marginRerender:800,automaticPagination:{enabled:!1,max:5}},K=new b.Currency,Q=function(e){return typeof e!=\"string\"&&(e=K.format(e)),e},G=function(e,t){x.configureParamsOfProductUrl(e,t)},Y=function(e,t,n){var r=e.find(\".linx-products\"),i=e.find('.linx-products [data-group=\"'+n+'\"]'),s=this;i.each(function(){var e=E(this),n=e.attr(\"data-pid\");z.call(s,e,{product:t[n]},r);var i=e.find('.img-wrapper img:not([src=\"\"])'),o=b.Config.PROTOCOL+[b.Config.STATIC_HOST,b.Config.STATIC_CONTEXT,b.Config.THEME_PATH,b.Config.STATIC_API,b.Config.THEME_URL].join(\"/\").replace(/\\/\\//g,\"/\");i.length>0&&i[0].addEventListener(\"error\",function(){this.src!==o+\"images/img-error.png\"&&(this.src=o+\"images/img-error.png\")})})};b.onsite.Discover.initialize=function(){var e={size:S?8:12,beforeProductRender:G,afterPageRender:Y};b.Object.merge(e,J),$(e)};var Z=b.meta.page.name;Z===\"home\"&&b.onsite.Discover.initialize(),window.chaordic&&window.chaordic.event&&window.chaordic.event.Tron&&y(window.chaordic.event.Tron.incrementRta)&&(y(window.chaordic.event.Tron.setEnabled)&&window.chaordic.event.Tron.setEnabled(!0),window.chaordic.event.Tron.incrementRta(window.location.host));var et=function(e,t){return e.length>t?e.substring(0,t)+\"...\":e},tt=function(e){var t=e.product;t.name=et(t.name,15)},nt=function(e){function t(e){return e.slice().sort(function(e,t){return e.id.localeCompare(t.id)})}e.product&&e.product.hasInvalidSpecsSelected&&delete e.product.hasInvalidSpecsSelected;var n=e.skuList.groupBy(\"cor\")||e.skuList,r=Object.keys(n).map(function(e){var t=n[e];return{id:t.id,label:t.label,status:t.status}});e.specsSizeSelect=t(r);var i=e.specsSizeSelect.find(function(e){return e.status===\"available\"});e.isFirstRender&&(e.selectedSpecs.cor=i&&i.id||\"\");var s=e.skuList.skus.find(function(t){if(t.specs&&t.specs.cor&&t.specs.cor.label&&e.selectedSpecs.cor)return t.specs.cor.label===e.selectedSpecs.cor});s&&(e.product=s)},rt=function(e){e.totalDiscount=(e.selectedItems.reduce(function(e,t){return e+(t.oldPrice||t.price)*100},0)-e.totalPrice*100)/100,e.totalDiscountString=b.Currency.format(e.totalDiscount)},it={carousel:{dynamicMode:\"box\",minCellSize:300,maxVisibleItems:1,minVisibleItems:1},templates:{widget:\"collection-widget.fugly\",product:\"collection-product.fugly\",collection:\"collection-element.fugly\"},dynamicHeight:!0,minProducts:4,size:16,widgetClass:\"horizontal home-big\",beforeRenderItem:tt,productView:F,style:[\"theme.css\",\"collection.css\"]};O.addAsset(\"buy-collection-modal.fugly\",'<div class=\"linx-modal-overlay\"></div>\\n\\n<div class=\"linx-modal-content\">\\n  <div class=\"linx-modal-btn-close\"></div>\\n\\n  <div class=\"linx-modal-body\">\\n    <div class=\"linx-collection-image\">\\n      <div class=\"linx-imgwrapper\">\\n        <img src=\"<$= view.collection.images[0] $>\" />\\n      </div>\\n    </div>\\n    <div class=\"linx-collection-content\">\\n      <div class=\"linx-modal-header\"><$= view.collection.name $></div>\\n      <span class=\"linx-subtitle\">Compre o ambiente completo ou selecione os itens que mais te agradam.</span>\\n      <div class=\"linx-collection-items\"></div>\\n    </div>\\n  </div>\\n  <div class=\"linx-modal-footer\">\\n    <div class=\"linx-collection-summary\"></div>\\n    <button class=\"linx-buy-collection-btn\">Comprar</button>\\n  </div>\\n</div>'),O.addAsset(\"buy-collection-modal-item.fugly\",'<$\\n  var product = view.product;\\n  var hasInstallments = product.installment &&\\n    product.installment.count &&\\n    product.installment.price;\\n\\n  var oldPrice = product.oldPrice;\\n  var price = product.price;\\n$>\\n\\n<div class=\"linx-collection-item-card\">\\n\\n  <div class=\"linx-thumbnail\">\\n    <div class=\"linx-item-checkbox\"></div>\\n    <img class=\"linx-toggle-select\" src=\"<$= view.image() $>\">\\n\\n    <div class=\"linx-content\">\\n      <like-button product-id=\"<$= product.id $>\"></like-button>\\n      <span class=\"linx-product-name\">\\n        <$= product.name $>\\n      </span>\\n\\n      <div class=\"linx-product-unavailable\"></div>\\n\\n      <div class=\"linx-prices\">\\n        <div class=\"linx-price\">\\n          <$= product.priceString $>\\n        </div>\\n        <$ if (oldPrice) { $>\\n          <div class=\"linx-old-price\"><$= product.oldPriceString $></div>\\n        <$ } $>\\n\\n        <$ if (hasInstallments) { $>\\n          <div class=\"linx-installments\">\\n            Em até\\n            <span class=\"linx-installment-highlight\">\\n              <$= product.installment.count $>x\\n            </span>\\n            de\\n            <span class=\"linx-installment-highlight\">\\n              <$= product.installment.priceString $>\\n            </span> sem juros*\\n          </div>\\n        <$ } $>\\n      </div>\\n    </div>\\n  </div>\\n\\n  <div class=\"linx-content\">\\n    <like-button product-id=\"<$= product.id $>\"></like-button>\\n    <span class=\"linx-product-name\">\\n      <$= product.name $>\\n    </span>\\n\\n    <div class=\"linx-product-unavailable\"></div>\\n\\n    <div class=\"linx-prices\">\\n      <div class=\"linx-price\">\\n        <$= product.priceString $>\\n      </div>\\n      <$ if (oldPrice) { $>\\n        <div class=\"linx-old-price\"><$= product.oldPriceString $></div>\\n      <$ } $>\\n\\n      <$ if (hasInstallments) { $>\\n        <div class=\"linx-installments\">\\n          Em até\\n          <span class=\"linx-installment-highlight\">\\n          <$= product.installment.count $>x</span>\\n          de\\n          <span class=\"linx-installment-highlight\"><$= product.installment.priceString $></span>\\n          sem juros*\\n        </div>\\n      <$ } $>\\n    </div>\\n\\n    <div class=\"linx-footer\">\\n      <div class=\"linx-product-specs\"></div>\\n      <div class=\"linx-product-specs-custom\">\\n\\n          <div class=\"spec-size-select\">\\n            <div class=\"spec-label\">\\n              <span>Escolha a cor:</span>\\n            </div>\\n            <ul>\\n              <$ view.specsSizeSelect.forEach(function(specSize) { $>\\n                <li\\n                  data-spec=\"cor\"\\n                  data-spec-id=\"<$= specSize.id $>\"\\n                  class=\"<$= (specSize.id == view.selectedSpecs.cor ) && \\'selected\\' $> <$= specSize.status !== \\'available\\' && \\'unavailable\\' $>\" >\\n                  <$= specSize.label $>\\n                </li>\\n              <$ }); $>\\n            </ul>\\n          </div>\\n      </div>\\n    </div>\\n  </div>\\n\\n  <div class=\"linx-block-overlay linx-toggle-select\"></div>\\n</div>'),O.addAsset(\"buy-collection-modal-summary.fugly\",'<span class=\"linx-selected-items\"></span>\\n<span class=\"linx-total-price\">\\n  Total de <$= view.selectedItemsCount $> peças por <span class=\"linx-total-price-value\"><$= view.totalPriceString $></span>\\n</span>\\n\\n<span class=\"total-installments\">Em até 10X sem juros no cartão de crédito.</span>\\n\\n<$ if (view.totalDiscount) { $>\\n  <span class=\"total-discount\">Você economizou&nbsp;<span><$= view.totalDiscountString $></span></span>\\n<$ } $>'),O.addAsset(\"collection-widget.fugly\",'<h1 class=\"title\">\\n  <$= view.title $>\\n</h1>\\n\\n<div class=\"frame\">\\n    <div class=\"arrow prev\" title=\"anterior\"></div>\\n    <div class=\"carousel\"></div>\\n  <div class=\"arrow next\" title=\"pr&oacute;ximo\"></div>\\n  <div class=\"pagination-wrapper\">\\n    <div class=\"pagination\"></div>\\n  </div>\\n\\n  <div class=\"hover-collection-wrapper\"></div>\\n</div>'),O.addAsset(\"collection-element.fugly\",'<div class=\"item\">\\n  <div class=\"wrapper\">\\n    <div class=\"imgwrapper\">\\n      <img class=\"thumbnail collection-image\" src=\"<$= view.image $>\" >\\n    </div>\\n    <div class=\"hover-collection\">\\n      <div class=\"btn-arrow-collection-element up\"></div>\\n      <div class=\"linx-container-scroll-collection\">\\n        <div class=\"container-items-height\"></div>\\n        <div class=\"collection-items\"></div>\\n      </div>\\n      <div class=\"btn-arrow-collection-element\"></div>\\n      <div class=\"buy-button\">Compre junto</div>\\n    </div>\\n  </div>\\n</div>'),O.addAsset(\"collection-product.fugly\",'<$\\n  var product = view.product || {};\\n  var isAvailable = product.status.toLowerCase() === \\'available\\';\\n$>\\n\\n<a data-productid=\"<$= product.id $>\" href=\"<$= product.url $>\" class=\"details\" target=\"_parent\">\\n  <div class=\"product <$= isAvailable ? \\'available\\' : \\'unavailable\\' $>\">\\n    <div class=\"imgwrapper\">\\n      <img class=\"product-image-small\" src=\"<$= view.image() $>\" />\\n    </div>\\n    <div class=\"product-details\">\\n      <div class=\"product-name-small\"><$= product.name $></div>\\n      <div class=\"product-price-small\"><$= product.priceString $></div>\\n    </div>\\n    <like-button product-id=\"<$= product.id $>\"></like-button>\\n  </div>\\n</a>'),O.addAsset(\"collection.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");body>div.collection .item{min-height:324px}@media screen and (min-width: 768px){body>div.collection .item{padding:0 10px}}body>div.collection .item .thumbnail{max-width:100%;height:500px;width:auto}body>div.collection .frame .pagination-wrapper{display:none !important}body>div.collection .frame .carousel.hover .carousel-item{opacity:0.4}body>div.collection .frame .carousel .carousel-item.hover{opacity:1}body>div.collection .content{height:auto !important}body>div.collection .title{margin:20px 30px !important}.carousel-item{cursor:pointer}.carousel-item .hover-collection{display:none}.carousel-item .wrapper{position:relative}#widget .item{width:100% !important}.hover-collection-wrapper .hover-collection{align-content:center;display:flex;flex-direction:column;justify-content:center;position:absolute;width:170px;left:10% !important}.hover-collection-wrapper .hover-collection .buy-button{background-color:#004a9d;color:#FFF;cursor:pointer;font-size:17px;text-align:center;text-transform:uppercase;width:100%;height:50px;line-height:50px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.12);margin-top:0;border-radius:5px;outline:0}.hover-collection-wrapper .hover-collection .collection-image{opacity:1}.hover-collection-wrapper .hover-collection .collection-items .product-link{box-shadow:0px 1px 0px 1px rgba(0,0,0,0.12);margin:0 1px;background-color:#fff;border-radius:5px}.hover-collection-wrapper .hover-collection .collection-items .product-link a{color:inherit;text-decoration:none}.hover-collection-wrapper .hover-collection .collection-items .product{align-items:center;background-color:#FFF;display:flex;margin-bottom:6px;max-height:50px;max-width:100%;padding-left:8px;padding-right:8px;position:relative;border-radius:5px}.hover-collection-wrapper .hover-collection .collection-items .product like-button{position:relative;right:initial;top:initial}.hover-collection-wrapper .hover-collection .collection-items .product-details{display:flex;flex-direction:column;height:50px}.hover-collection-wrapper .hover-collection .collection-items .product-name-small,.hover-collection-wrapper .hover-collection .collection-items .product-price-small{align-items:center;display:flex;flex-wrap:wrap;font-size:12px;overflow:hidden;padding:0 6px;text-align:left}.hover-collection-wrapper .hover-collection .collection-items .product-price-small{font-weight:700;min-width:60px;text-align:center;white-space:nowrap;font-size:14px;font-weight:600}.hover-collection-wrapper .hover-collection .collection-items .product-name-small{flex-grow:1}.hover-collection-wrapper .hover-collection .collection-items .product-image-small{max-width:40px}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element{position:relative;width:28px;height:28px;background:#FFFFFF;border:1px solid #BDBDBD;box-sizing:border-box;box-shadow:0px 4px 4px rgba(166,165,165,0.23);border-radius:50%;top:-20px;margin:0 auto;cursor:pointer;display:none}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element:before{display:block;content:\"\";background:#424242;width:2px;height:12px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element:after{content:\"\";display:block;width:12px;border:2px solid #424242;height:12px;transform:translate(-50%, -50%) rotate(45deg);position:absolute;top:50%;left:50%;border-top:0;border-left:0;margin-top:-1px}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element.up{top:15px;z-index:1;transform:rotate(180deg)}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element.show-arrow{display:initial}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element.show-arrow+.buy-button{margin-top:-20px}.hover-collection-wrapper .hover-collection .btn-arrow-collection-element.arrived-in-the-end{visibility:hidden}.hover-collection-wrapper .hover-collection .linx-container-scroll-collection{max-height:300px;overflow:hidden;position:relative}.hover-collection-wrapper .hover-collection .linx-container-scroll-collection .container-items-height{width:1px;height:100%;position:absolute;top:0;left:-1px}.imgwrapper{text-align:center}.imgwrapper img{max-width:100%}@media only screen and (max-width: 768px){.imgwrapper img{max-height:350px;display:initial !important;position:initial !important}}#widget.phone{margin:28px auto}#widget.phone .frame{max-height:200px;height:100%}#widget.phone .item{height:auto;border:1px solid cyan;min-height:100px;margin:10px auto 5px auto !important;padding:0}#widget.phone .item .wrapper{height:100%;width:100%;max-height:200px}#widget.phone .item .wrapper .thumbnail{height:auto;width:auto}#widget.phone .title{margin:0 0 10px !important}\\n'),O.addAsset(\"buy-collection-modal.css\",'@import url(\"https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap\");@keyframes collection-modal-animation{from{opacity:0}to{opacity:1}}.linx-buy-collection-modal{display:none;font-family:\"Source Sans Pro\";font-weight:200}.linx-buy-collection-modal.linx-visible{display:block}@media only screen and (max-width: 768px){.linx-buy-collection-modal.linx-visible{animation-name:collection-modal-animation;animation-duration:0.5s}}.linx-buy-collection-modal .linx-modal-overlay{background:rgba(0,0,0,0.5);height:100%;left:0;position:fixed;top:0;width:100%}.linx-buy-collection-modal .linx-modal-content{background:#fff;height:calc(100% - 20px);left:50%;max-height:700px;max-width:800px;position:fixed;top:50%;transform:translate(-50%, -50%);width:calc(100% - 20px);z-index:1001}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-content{width:100%;height:100%;max-height:100%}}.linx-buy-collection-modal .linx-collection-content{overflow:overlay;height:63%;font-family:\"Nunito\",Arial,Verdana,sans-serif}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-collection-content{height:100%;overflow:inherit;padding-left:8px}}.linx-buy-collection-modal .linx-modal-header{box-sizing:border-box;color:#0033c6;font-size:24px;font-weight:900;font-family:\"Nunito\",Arial,Verdana,sans-serif;margin:5px 0 5px 15px;text-transform:uppercase}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-header{font-size:16px;text-align:center;font-weight:900;margin-left:0}}.linx-buy-collection-modal .linx-subtitle{color:#333;font-size:16px;font-weight:400;line-height:24px;margin-left:15px}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-subtitle{margin-left:0}}.linx-buy-collection-modal .linx-modal-body{display:flex;height:calc(100% - 85px);justify-content:space-between;padding:12px 12px 0;width:100%;flex-direction:column}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body{padding:12px 12px 22px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-image{height:37%}.linx-buy-collection-modal .linx-modal-body .linx-collection-image .linx-imgwrapper{height:100%;width:100%;overflow:hidden}.linx-buy-collection-modal .linx-modal-body .linx-collection-image .linx-imgwrapper img{width:100%}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-image{display:none}.linx-buy-collection-modal .linx-modal-body .linx-collection-image+div{width:100%}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items{height:calc(100% - 80px);overflow-y:scroll;margin-left:15px}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items{margin-left:0;height:calc(100% - 60px)}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items:hover::-webkit-scrollbar-thumb{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.1);box-shadow:inset 0 0 6px rgba(0,0,0,0.1);background-color:rgba(85,85,85,0.3)}.linx-buy-collection-modal .linx-modal-body .linx-collection-items::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.linx-buy-collection-modal .linx-modal-body .linx-collection-items::-webkit-scrollbar{width:6px;background-color:transparent}.linx-buy-collection-modal .linx-modal-body .linx-collection-items::-webkit-scrollbar-thumb{border-radius:10px;background-color:transparent}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item{position:relative}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item:not(.linx-selected) .linx-add-item,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item:not(.linx-selected) .linx-block-overlay{display:block !important}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item:not(.linx-selected) .linx-remove-item{display:none !important}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item:last-child{border-bottom:none}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card{display:flex;margin-top:10px;min-height:auto;padding-bottom:10px;position:relative}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card{flex-direction:column}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-item-checkbox{background-color:#bababa;background-size:cover;cursor:pointer;display:block;height:24px;left:100px;position:absolute;top:5px;width:24px;border-radius:16px}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-item-checkbox.linx-selected{background-color:#04d483}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-item-checkbox::after,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-item-checkbox::before{content:\"\";width:2px;background-color:#FFFFFF;display:block;height:13px;position:absolute;left:12px;top:6px;transform:rotate(45deg)}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-item-checkbox::before{transform:rotate(-45deg);left:6px;height:6px;top:11px}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-item-checkbox{left:5px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-content{flex-grow:1}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-content .linx-product-name{color:#333;font-size:16px;font-weight:400;line-height:24px}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-content .linx-product-name{color:#333;font-size:12px;line-height:1.4em}}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-content like-button,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-content .linx-product-name,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-content .linx-prices{display:none}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{background:#000000;border-radius:50%;height:50px;left:5px;position:absolute;text-align:center;top:5px;width:50px;z-index:2}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount .linx-discount-text{font-size:13px;line-height:14px;color:#fff;padding-top:12px;font-weight:200}@media (min-width: 1691px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{left:35px}}@media (min-width: 1295px) and (max-width: 1690px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{left:10px}}@media (min-width: 1180px) and (max-width: 1295px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{left:30px}}@media (min-width: 1150px) and (max-width: 1180px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{left:40px}}@media (min-width: 769px) and (max-width: 1150px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{left:5px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{height:35px;left:5px;top:5px;width:35px}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount{display:none}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-discount .linx-discount-text{font-size:10px;line-height:12px;padding-top:6px}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card like-button{float:right}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card like-button :before{box-sizing:initial}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail{cursor:pointer;flex-basis:130px;flex-shrink:0;height:auto;margin:0 20px 0 0;min-height:auto}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail .linx-content{display:none}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail{flex-basis:100px;display:flex;margin:0}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail .linx-content{display:initial;margin-left:10px}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail .linx-content like-button,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail .linx-content .linx-product-name,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail .linx-content .linx-prices{display:initial}}@media only screen and (max-width: 768px) and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail .linx-content{display:flex;justify-content:center;flex-direction:column}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail img{height:auto;max-width:100%}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-thumbnail img{max-width:80px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-price{color:#004a9d;font-size:23px;font-weight:600;padding:5px 0;white-space:nowrap;display:inline-block;margin-right:15px}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-price{font-size:15px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-old-price{color:#666;font-size:16px;margin-right:5px;text-decoration-line:line-through;white-space:nowrap;display:inline-block;font-weight:400}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-old-price{font-size:12px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-installments{display:block;font-weight:200;height:16px;margin-top:1px;color:#004a9d}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-installments{font-size:12px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-footer{margin-top:10px}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs{display:none}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs select{background-color:#fff;border:1px solid #d4d4d4;color:#999;font-size:11px;padding:2px 0;margin:1px 0;background:#e9e9e9;height:25px;width:initial}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs select:disabled{color:#d4d4d4}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-label span:first-child{font-size:14px;line-height:17px;color:#4a4a4a;font-weight:400;display:block}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-label span:first-child{font-size:12px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-label span:first-child+span{font-size:14px;line-height:125.3%;color:#000000;font-weight:bold}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-color-select{margin-bottom:10px}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-color-select>img{width:35px;border:1px solid #C4C4C4;box-sizing:border-box;margin-right:5px;cursor:pointer}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-color-select>img.selected{border:1px solid #EC008C}@media screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-color-select>img{width:55px}}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-size-select ul{list-style:none;padding:0;margin:0}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-size-select ul li{background:#FFFFFF;border:1px solid #EEE;box-sizing:border-box;float:left;font-size:11px;color:#666;margin:6px 9px 0 0;text-align:center;cursor:pointer;border-radius:5px;padding:10px 10px}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-size-select ul li.selected{border-color:#04d483}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-size-select ul li.unavailable{border:2px dashed #ccc;color:#999;position:relative;pointer-events:none}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-collection-item-card .linx-product-specs-custom .spec-size-select ul li.unavailable:after{content:\\'\\';width:32px;height:1px;background:#ccc;position:absolute;top:10px;left:-6px;transform:rotate(45deg)}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-block-overlay{background:rgba(255,255,255,0.7);display:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:3}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-add-item{display:none}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-remove-item{display:block}.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-remove-item,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-add-item{cursor:pointer;margin-bottom:10px;text-align:center}@media screen and (min-width: 641px){.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-remove-item,.linx-buy-collection-modal .linx-modal-body .linx-collection-items .linx-collection-item .linx-add-item{bottom:50px;margin-bottom:0;position:absolute;right:10px;z-index:4}}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-body{height:calc(100% - 125px)}}.linx-buy-collection-modal .linx-modal-footer{font-family:\"Nunito\",Arial,Verdana,sans-serif;align-items:center;display:flex;flex-wrap:wrap;height:85px;justify-content:center;padding:12px}.linx-buy-collection-modal .linx-modal-footer .linx-buy-collection-btn{background:#004a9d;border:none;color:#fff;font-family:Roboto, sans-serif;font-size:17px;font-weight:400;margin-left:20px;padding:10px 15px;text-transform:uppercase;width:250px;border-radius:4px;cursor:pointer}.linx-buy-collection-modal .linx-modal-footer .linx-buy-collection-btn.linx-disabled{cursor:not-allowed;opacity:0.3}.linx-buy-collection-modal .linx-modal-footer .linx-collection-summary{font-size:20px;font-weight:600;color:#333}.linx-buy-collection-modal .linx-modal-footer .linx-collection-summary .linx-total-price,.linx-buy-collection-modal .linx-modal-footer .linx-collection-summary .linx-total-price-value{font-weight:900}.linx-buy-collection-modal .linx-modal-footer .total-installments,.linx-buy-collection-modal .linx-modal-footer .total-discount{font-size:18px;display:block}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-footer .total-installments,.linx-buy-collection-modal .linx-modal-footer .total-discount{font-size:13px}}@media screen and (max-width: 640px){.linx-buy-collection-modal .linx-modal-footer{height:125px}.linx-buy-collection-modal .linx-modal-footer .linx-collection-summary,.linx-buy-collection-modal .linx-modal-footer .linx-buy-collection-btn{flex-shrink:0;width:100%;text-align:center}.linx-buy-collection-modal .linx-modal-footer .linx-buy-collection-btn{margin-left:0}}.linx-buy-collection-modal .linx-modal-btn-close{position:fixed;width:27px;height:27px;top:5px;right:5px;z-index:1;display:block;border:1px solid #eee;border-radius:14px;cursor:pointer;background:#ffd900}.linx-buy-collection-modal .linx-modal-btn-close:before,.linx-buy-collection-modal .linx-modal-btn-close:after{display:block;position:absolute;top:50%;left:50%;width:2px;height:60%;content:\"\";background-color:#2b7bbf;transform:translate(-50%, -50%) rotate(45deg)}.linx-buy-collection-modal .linx-modal-btn-close:after{transform:translate(-50%, -50%) rotate(-45deg)}@media only screen and (max-width: 768px){.linx-buy-collection-modal .linx-modal-btn-close{display:initial}}\\n'),O.addTheme(\"Collection\",null,it),O.addTheme(\"BuyCollectionModal\",null,{addToCart:B,templates:{modal:\"buy-collection-modal.fugly\",item:\"buy-collection-modal-item.fugly\",summary:\"buy-collection-modal-summary.fugly\"},style:[\"buy-collection-modal.css\"],removeUnavailableSpecs:!0,beforeRenderItem:nt,beforeRenderSummary:rt})},function(){!function(e){function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=0)}([function(e,t,n){n(1),e.exports=n(6)},function(e,t,n){\"use strict\";var r=n(2),i=window.top.chaordic;(i.onsite.ThemeFunctions=i.onsite.ThemeFunctions||{}).viaVarejoAPI=r},function(e,t,n){var r=n(3),i=n(4),s=n(5);e.exports={API:r,ApiPriceProduct:i,ApiFlagProduct:s}},function(e,t){function n(e,t,n){this.pricesEndpoint=e,this.flagsEndpoint=t,n=n||{},this.additionalUrlParams=n.additionalUrlParams||\"\",this.timeout=n.timeout||600,this.isMobile=n.mobile||!1}n.prototype.sendEvent=function(e,t){window.chaordic=window.chaordic||[],window.chaordic.push(function(){window.chaordic.event.Tron.incrementRta(\"search.\"+e+\".\"+t)})},n.prototype.priceResponseHandler=function(e,t){try{var n=JSON.parse(t),r=n.PrecoProdutos,i=n.Mensagens;if(Array.isArray(r)&&r.length)return r.map(function(e){return{id:e.PrecoVenda.IdProduto,isAvailable:e.PrecoVenda.DisponibilidadeVenda,inStock:e.PrecoVenda.DisponibilidadeEstoque,installments:e.PrecoVenda.Parcelamento,price:e.PrecoVenda.Preco,oldPrice:e.PrecoVenda.PrecoDe,idLojista:e.PrecoVenda.IdLojista}});if(Array.isArray(i)&&i.length)return e.map(function(e){return{id:e.id,isAvailable:!1}});throw new Error(\"Could not find any prices for the product \"+e.id)}catch(e){throw e}},n.prototype.flagResponseHandler=function(e,t){try{var n=JSON.parse(t).Destaques;if(n)return e.flags=n.map(function(e){return e.Imagem&&(e.Imagem=e.Imagem.replace(/https?\\:\\/\\/.*\\.br\\//g,\"\")),e}),e;throw new Error(\"Could not find any flags for the product \"+e.id)}catch(e){throw e}},n.prototype.fetchPrices=function(e,t,n){if(Array.isArray(e)&&0!==e.length){var r=e.map(function(e){return e.id}),i=this.mountUrl(this.pricesEndpoint,[{key:\"idsproduto\",value:r.join(\",\")}]);this.request(\"GET\",\"price-api\",e,i,this.priceResponseHandler,t,n)}},n.prototype.fetchFlags=function(e,t,n){Array.isArray(e)&&e.length&&this.batchRequest(\"GET\",\"flag-api\",e,function(e){var t=[{key:\"IdProduto\",value:e.id},{key:\"ValorVendaSku\",value:e.price}];return this.isMobile&&t.push({key:\"IdLojistaEleito\",value:e.idLojista}),this.mountUrl(this.flagsEndpoint,t)}.bind(this),this.flagResponseHandler,t,n)},n.prototype.fetchFlagsMultiple=function(e,t,n){if(Array.isArray(e)&&e.length){var r=e.map(function(e){return e.id}),i=e.map(function(e){return e.price}),s=this.mountUrl(this.flagsEndpoint,[{key:\"IdsProdutos\",value:r.join(\",\")},{key:\"ValoresVendaSkus\",value:i.join(\",\")}]);this.request(\"GET\",\"flag-api\",e,s,this.flagResponseHandler,t,n)}},n.prototype.mountUrl=function(e,t){return t.reduce(function(t,n){return t+=t===e?\"?\"+n.key+\"=\"+n.value:\"&\"+n.key+\"=\"+n.value},e)},n.prototype.batchRequest=function(e,t,n,r,i,s,o){var u=n.shift();u&&this.request(e,t,u,r(u),i,s,o,function(){this.batchRequest(e,t,n,r,i,s,o)}.bind(this))},n.prototype.request=function(e,t,n,r,i,s,o,u){r+=this.additionalUrlParams;var a=new XMLHttpRequest;a.open(e,r),a.timeout=this.timeout,a.onload=function(e){try{s(i(n,e.srcElement.responseText)),this.sendEvent(t,\"success\")}catch(e){o(e),this.sendEvent(t,\"fail\")}finally{u&&u()}}.bind(this),a.onerror=function(e){o(e),this.sendEvent(t,\"fail\")}.bind(this),a.ontimeout=function(e){o(e),this.sendEvent(t,\"timeout\")}.bind(this),a.send()},e.exports=n},function(e,t){function n(e,t,n){this.jqItem=e,this.product=t||{},n=n||{},this.priceSelector=n.priceSelector||\".nm-price-value\",this.oldPriceSelector=n.oldPriceSelector||\".nm-old-price-value\",this.notAvailableContainerSelector=n.notAvailableContainerSelector||\".nm-availability-container\",this.notAvailableSelector=n.notAvailableSelector||\".nm-not-available\",this.offerSelector=n.offerSelector||\".nm-offer\",this.installmentsSelector=n.installmentsSelector||\".nm-installment-container\",this.installmentPrefix=n.installmentPrefix||\"Em até \",this.installmentSufix=n.installmentSufix||\" sem juros\",this.discountSelector=n.discountSelector||\".nm-discount\",this.notAvailableWarningSelector=n.notAvailableWarningSelector||\".nm-not-available-warn\",this.hiddenClass=n.hiddenClass||\"nm-hidden\",this.priceLabelSelector=n.priceLabelSelector||\".nm-price-label\",this.priceApiSuccessClass=n.priceApiSuccessClass||\"price-api-success\",this.oldPriceContainerSelector=n.oldPriceContainerSelector||\".nm-old-price-container\",this.oldPriceLabelSelector=n.oldPriceLabelSelector||\".nm-old-price-label\"}n.prototype.getFormattedPrice=function(e){return e.toLocaleString(\"pt-BR\",{minimumFractionDigits:2,style:\"currency\",currency:\"BRL\"})},n.prototype.getFormattedInstallments=function(){return this.installmentPrefix+this.product.installments+this.installmentSufix},n.prototype.getFormattedDiscount=function(){var e=100*(this.product.oldPrice-this.product.price)/this.product.oldPrice;return\"-\"+parseInt(e)+\"%\"},n.prototype.setAvailabilityDOM=function(){if(!this.product.isAvailable||!this.product.inStock){var e=this.jqItem;[this.notAvailableWarningSelector,this.offerSelector,this.discountSelector].forEach(function(t){e.find(t).addClass(this.hiddenClass)},this),e.find(this.notAvailableContainerSelector).removeClass(this.hiddenClass),e.find(this.notAvailableSelector).removeClass(this.hiddenClass)}},n.prototype.setPriceDOM=function(){this.product.price&&(this.jqItem.find(this.priceLabelSelector).removeClass(this.hiddenClass),this.jqItem.find(this.offerSelector).removeClass(this.hiddenClass),this.jqItem.find(this.notAvailableContainerSelector).addClass(this.hiddenClass),this.jqItem.find(this.priceSelector).text(this.getFormattedPrice(this.product.price)),this.jqItem.addClass(this.priceApiSuccessClass))},n.prototype.setOldPriceDOM=function(){!this.product.oldPrice||this.product.price>=this.product.oldPrice?this.jqItem.find(this.oldPriceContainerSelector).text(\"\"):(this.jqItem.find(this.oldPriceLabelSelector).removeClass(this.hiddenClass),this.jqItem.find(this.oldPriceSelector).text(this.getFormattedPrice(this.product.oldPrice)))},n.prototype.setInstallmentsDOM=function(){var e=this.jqItem.find(this.installmentsSelector);this.product.installments?e.text(this.getFormattedInstallments()):e.addClass(this.hiddenClass).text(\"\")},n.prototype.setDiscountDOM=function(){!this.product.price||!this.product.oldPrice||this.product.price>=this.product.oldPrice||this.jqItem.find(this.discountSelector).text(this.getFormattedDiscount()).removeClass(this.hiddenClass)},n.prototype.setPriceFallback=function(){var e=this.jqItem.find(this.notAvailableContainerSelector),t=this.jqItem.find(this.notAvailableSelector);e.find(this.notAvailableContainerSelector).text(\"\"),e.removeClass(this.hiddenClass),t.addClass(this.hiddenClass),this.jqItem.find(this.notAvailableWarningSelector).removeClass(this.hiddenClass),this.jqItem.find(this.offerSelector).addClass(this.hiddenClass)},e.exports=n},function(e,t){function n(e,t,n,r,i,s,o){this.jqItem=e,this.product=t||{},this.flagsUrl=r,this.flagsSelector=i||\".nm-flags\",this.flagBenefitSelector=s||\".nm-flag-benefit\",this.sealImageClass=o||\"nm-seal-img\",this.isMobile=n||!1,this.flagNumber=n?2:3}n.prototype.setFlagsDOM=function(e){if(Array.isArray(this.product.flags)&&this.product.flags.length){var t=this.jqItem.find(this.flagsSelector);t.html(\"\");var n=0;this.product.flags.forEach(function(e){e.Imagem&&n<this.flagNumber&&(t.append(this.createFlagSpan(e)),n++)},this)}},n.prototype.createFlagSpan=function(e){var t=document.createElement(\"span\"),n=document.createElement(\"img\"),r=e.Imagem||\"\";return r=r.indexOf(this.flagsUrl)>-1?r:this.flagsUrl+r,t.className=this.flagBenefitSelector,e.LinkExplicativo&&t.addEventListener(\"click\",function(t){return pop(e.LinkExplicativo,e.Largura,e.Altura,e.Titulo)}),n.alt=e.Descricao,n.src=r,e.IdTipoDestaque&&3===e.IdTipoDestaque&&(n.className=this.sealImageClass),t.appendChild(n),t},e.exports=n},function(e,t,n){\"use strict\";function f(){return a?\"mobile\":\"desktop\"}\"function\"==typeof Symbol&&Symbol.iterator;var r,i=n(7),s=(r=i)&&r.__esModule?r:{\"default\":r},o,u=window.top.chaordic,a=/^https?:\\/\\/m.*/.test(window.top.location.href);(o=window.location.search.toLowerCase()).indexOf(\"forcelinxonsite=true\")>-1?u.push(function(){u.writeCookie(\"chaordic_forcelinxonsite\",\"true\")}):o.indexOf(\"forcelinxonsite=\")>-1?u.push(function(){u.deleteCookie(\"chaordic_forcelinxonsite\")}):document.cookie.indexOf(\"chaordic_forcelinxonsite=true\"),String.prototype.includes||(String.prototype.includes=function(e,t){return\"number\"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),\"function\"!=typeof Object.assign&&(Object.assign=function(e,t){if(null===e)throw new TypeError(\"Cannot convert undefined or null to object\");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!==i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n}),u.preInitialize=function(e){window.newMeta=window.newMeta||\"\";var t=window.$chaordic_meta||window.chaordic_meta||{},n=JSON.stringify(t);if(t.salesChannel=f(),function(){try{window.chaordic.writeCookie(\"lx_sales_channel\",'[\"'+f()+'\"]')}catch(e){console.error(e)}}(),a&&window.chaordic_meta&&\"home\"===window.chaordic_meta.page){var r=document.querySelector(\".last-seen-container\"),i=document.querySelector(\".recommendations-container\");r&&r.parentNode.removeChild(r),i&&i.parentNode.removeChild(i)}!function(e){if(!a)return!1;var t=\"string\"==typeof e.page?e.page:e.page.name;(0,s.default)(t,a)}(window.$chaordic_meta||window.chaordic_meta),window.newMeta=n;var o=10,l=this,h=window.setInterval(function(){var n=/utm_/g.test(window.location.search);window.top.chaordic_meta?(window.clearInterval(h),n?function(e,n){var r=\"cart\"===t.page||\"transaction\"===t.page,i=t.items&&Array.isArray(t.items)&&t.items.length>0;if(u.isMobile&&r&&i){var s=new XMLHttpRequest,o={},a=t.items.reduce(function(e,t,n){return t.sku&&(o[t.sku]=n,e.push(t.sku)),e},[]);s.open(\"GET\",\"//npreco.api-casasbahia.com.br/Skus/PrecoVenda/?IdsSku=\"+a.join()),s.timeout=3e3,s.onload=function(){try{var t=JSON.parse(this.responseText).PrecoSkus;Array.isArray(t)&&t.length>0&&(t.forEach(function(e){var t=e.PrecoVenda.IdSku,n=e.PrecoVenda.IdProduto;if(t&&n){t=String(t),n=String(n);var i=o[t];null!=i&&(r.items[i].pid=n)}}),e.call(n))}catch(r){e.call(n)}},s.onerror=function(){e.call(n)},s.ontimeout=function(){e.call(n)},s.send()}else e.call(n)}(e,l):e.call(l),function(){if(u.isMobile&&\"subcategory\"===t.page){var e=document.querySelector('link[rel=\"canonical\"]');if(!e)return;var n=e.getAttribute(\"href\");if(!n)return;var r=n.match(\"Filtro=(.+)\");if(!r)return;var i=r[1].toLowerCase().replace(/c/g,\"\").split(\"_\");t.categories=i}}(),function(e){var t=window.chaordic||{};if(\"function\"==typeof t.readCookie&&\"function\"==typeof t.writeCookie&&e&&(\"product\"===e.page||\"product\"===e.page.name)){var n=window.chaordic.readCookie(\"click_list\"),r=[];n&&(r=n.split(\"|\")).length>=20&&(r.length=20);var i=e.pid||e.product&&e.product.id,s=r.indexOf(i);-1!==s&&r.splice(s,1),r.unshift(i),window.chaordic.writeCookie(\"click_list\",r.join(\"|\"))}}(t)):--o||(window.clearInterval(h),e.call(l))},200),p=function(e){var t=e.replace(\".\",\"\").replace(\",\",\".\").replace(/\\ *R\\$\\ */,\"\");return parseFloat(t)};!function(){if(t&&t.page&&\"product\"!==t.page)return!1;var e,n,r=document.querySelector(\"span.productDetails\"),i=r&&r.querySelector(\"#ctl00_Conteudo_ctl00_precoPorValue .price\"),s=r&&r.querySelector(\"#ctl00_Conteudo_ctl00_precoDeValue\"),o=r&&r.querySelectorAll(\"#ctl00_Conteudo_ctl00_spanParcel strong\"),u={},a=(e=window.location.search,n=/idsku=([^$&]*)/i,e&&e.match(n)&&e.match(n)[1]);if(i&&s){var f=i.innerHTML&&p(i.innerHTML),l=s.innerHTML&&p(s.innerHTML)||f;if(f){var c={count:1,price:f};o&&o.length&&2===o.length&&(c.count=parseInt(o[0].innerText),c.price=p(o[1].innerText)),(u={status:\"AVAILABLE\",price:f,oldPrice:l}).installment=c}}else document.querySelector(\"[id*=_spanProdutoTempIndisponivel]\")&&(u={status:\"UNAVAILABLE\",price:t.price,oldPrice:t.price,installment:{count:0,price:0}});t.product=a?{}:u;var h=t.sku;if(h){var d=function(e){return e&&JSON.parse(JSON.stringify(e))}(u);d.sku=h,t.product.skus=[d]}}(),function(){var e=window.chaordic_meta||{};if(u.isMobile)return!1;!function(){var t=window.location.search.toLowerCase(),n=window.top.siteMetadata,r=n&&n.page&&n.page.templateName||\"\",i=/filtro=([^&$]*)/i.exec(t),s={};if(i){var o=i[1].split(\"_\").reduce(function(e,t){return 0===t.indexOf(\"c\")&&e.push(t.replace(\"c\",\"\")),e},[]);if(o.length)return s.categories=o,1===s.categories.length?s.page=\"category\":s.page=\"subcategory\",void (window.chaordic_meta=Object.assign(e,s))}\"PAGINAVITRINE\"!==r&&\"CATALOG\"!==r||(window.chaordic_meta=Object.assign(e,{page:\"landing_page\"}),delete window.chaordic_meta.categories)}(),function(){if(\"cart\"!==e.page)return!1;$(document).ajaxComplete(function(e,t,n){var r=n.url;if(r.includes(\"/Api/checkout/Carrinho.svc/CarrinhoSku/\")){try{var i=(o=JSON.parse(t.responseText)).Skus.map(function(e){return e.Sku.IdSku.toString()},[]),s=window.top.siteMetadata.checkout.items;window.top.siteMetadata.checkout.items=s.reduce(function(e,t){return-1!==i.indexOf(t.product.idSku.toString())&&e.push(t),e},[])}catch(e){console.error(\"Error trying to parse ajax response\",e)}return!1}if(r.includes(\"/Api/checkout/Carrinho.svc/AlterarQuantidadeSku/\"))try{var o,a=(o=JSON.parse(t.responseText))&&o.Skus&&o.Skus.reduce(function(e,t){var n=t.Sku;return n.IdProduto&&n.IdSku&&n.PrecoVenda&&t.Quantidade&&e.push({pid:n.IdProduto.toString(),sku:n.IdSku.toString(),price:n.PrecoVenda,quantity:t.Quantidade}),e},[])||[],f=window.top.chaordic.meta.cart.items;window.top.chaordic_meta.items=window.top.chaordic.meta.cart.items=a,f.length!==a.length&&u.push([\"updateCart\",window.top.chaordic.meta.cart])}catch(e){console.error(\"Error trying to parse ajax response\",e)}})}()}(),function(){window._st_account=271;var e=document.createElement(\"script\");e.type=\"text/javascript\",e.async=!0,e.src=\"//app.shoptarget.com.br/js/tracking.js\";var t=document.getElementsByTagName(\"script\")[0];t.parentNode.insertBefore(e,t)}()},function(){var e=document.createElement(\"div\");e.setAttribute(\"linx-impulse\",\"onsite-discover\");var t=/^https?:\\/\\/m.*/.test(window.top.location.href),n=document.querySelectorAll(t?\".department-container\":\".area-12\")[0];n&&n.parentNode.insertBefore(e,n)}(),window.chaordic=window.chaordic||[];var l=function(e,t,n,r){if(\"function\"!=typeof e)throw new Error('The \"callback\" is not a function');var i=1;r=r||0,r=\"number\"==typeof t&&parseInt(t,10)||r,n=\"function\"==typeof n&&n||function(){return!0},t=\"function\"==typeof t&&t||function(){return!0};var s=setInterval(function(){var r=t();r&&e(),n(i,r)&&clearInterval(s),i+=1},r)};window.useCachedProducts=!0,l(function(){var e,t,n,r;e=window._st_account,t=function(e){window.chaordic_meta&&(window.chaordic_meta.user||window.chaordic_meta.anonymousUser)||u.push([\"updateUserEmail\",{email:e.email,extraInfo:{shopback:!0}}])},n=console.warn,(r=new XMLHttpRequest).open(\"GET\",\"https://click.retargeter.com.br/get.php?i=\"+e,!0),r.withCredentials=!0,r.onreadystatechange=function(){if(4===this.readyState&&200===this.status)try{var e=JSON.parse(r.responseText)||{},i=String(e.email).split(\".\");i.length>=3&&\"function\"==typeof t&&t(JSON.parse(atob(i[2])))}catch(e){\"function\"==typeof n&&n(e)}},r.send(null)},function(){return window._st_account},function(e,t){return 30===e||t},50)},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){var n=function(e,t){var n={desktop:{\"default\":{top:{selector:\".area-4-1, #defaultRecommCart, .wrapper-custom.wrapper-vitrinededestaques\",type:\"append\"},middle:{selector:\".area-5-1, #ctl00_Conteudo_3069, .fullCart, .wrapper-custom.wrapper-navegacaodepto\",type:\"append\"},bottom:{selector:\".area-8-1, #avaliacoes-produto, .department-container\",type:\"append\"}},category:{top:{selector:\".area-3, .wrapper-custom.wrapper-header\",type:\"append\"},middle:{selector:\".area-4-3-1-1, .highlight-container\",type:\"append\"},bottom:{selector:\".area-4-3-2, .wrapper-custom.wrapper-footer\",type:\"append\"}},subcategory:{top:{selector:\".area-4-1, .wrapper-custom.wrapper-recomendacaoporcategoria\",type:\"append\"},middle:{selector:\".area-4-3 .recommendation-search, .row.row-mtl\",type:\"append\"},bottom:{selector:\".area-4-3 .shelf-product, .wrapper-custom.wrapper-footer\",type:\"append\"}},search:{top:{selector:\".nm-container-top\",type:\"before\"},middle:{selector:\".nm-container-top\",type:\"before\"},bottom:{selector:\".nm-main-search-container\",type:\"after\"}},emptysearch:{top:{selector:\"#nm-not-found-page\",type:\"before\"},middle:{selector:\"#nm-not-found-page\",type:\"before\"},bottom:{selector:\"#nm-not-found-page\",type:\"after\"}}},mobile:{\"default\":{top:{selector:\".wrapper-vitrinededestaques\",type:\"before\"},middle:{selector:\".banner-mobile.banner-stack .row.no-gutter ul li:nth-child(19)\",type:\"after\"},bottom:{selector:\".banner-mobile.banner-stack .row.no-gutter ul li:nth-child(26)\",type:\"after\"}},category:{top:{selector:\".wrapper-header\",type:\"append\"},middle:{selector:\".row.row-mtl\",type:\"before\"},bottom:{selector:\".wrapper-nafaltadeprodutoconfira\",type:\"append\"}},product:{top:{selector:\".product-info-container\",type:\"after\"},middle:{selector:\".wrapper-custom.wrapper-detalhes\",type:\"append\"},bottom:{selector:\".wrapper-custom.wrapper-quemprocuraesteitemseinteressapor\",type:\"after\"}},cart:{top:{selector:\"porteiro\",type:\"after\"},middle:{selector:\".row.row-mtxl\",type:\"append\"},bottom:{selector:\".row.row-mtxl\",type:\"append\"}},search:{top:{selector:\".nm-container-top\",type:\"before\"},middle:{selector:\".nm-container-top\",type:\"before\"},bottom:{selector:\".nm-main-search-container\",type:\"after\"}},emptysearch:{top:{selector:\"#nm-not-found-page\",type:\"before\"},middle:{selector:\"#nm-not-found-page\",type:\"before\"},bottom:{selector:\"#nm-not-found-page\",type:\"after\"}}}};return n[t][e]||n[t].default}(e,t?\"mobile\":\"desktop\");n&&function(e){Object.keys(e).forEach(function(t){!function(e,t,n){var r=document.querySelector(t);if(r&&!document.querySelector('div[chaordic=\"'+e+'\"]')){var i=document.createElement(\"div\");i.setAttribute(\"chaordic\",e),i.setAttribute(\"style\",\"clear: both; flex: 100%; max-width: 100%;\"),function(e,t,n){switch(n){case\"replace\":e.parentNode.insertBefore(t,e.nextSibling),e.parentNode.removeChild(e);break;case\"append\":e.appendChild(t);break;case\"after\":e.parentNode.insertBefore(t,e.nextSibling);break;default:e.parentNode.insertBefore(t,e)}}(r,i,n)}}(t,e[t].selector,e[t].type)})}(n)}}])}(),chaordic.currentLoadedAt=(new Date).getTime(),function(){var e=chaordic.Config,t=chaordic.lib,n=\"chaordic\",r=86400,i=r*365,s=r*7,o=\"chaordic_testGroup\",u=\"chaordic_anonymousUserId\",a=\"chaordic_realUserId\",f=\"anon-\",l=\"chaordic_browserId\",c=\"chaordic_session\",h=1800,p=function(e){return e&&e[1]}(navigator.userAgent.match(/MSIE\\s([^;]*)/)),d=function(e){return Boolean(e.match(/Android/i)||e.match(/webOS/i)||e.match(/iPhone/i)||e.match(/iPad/i)||e.match(/iPod/i)||e.match(/BlackBerry/i)||e.match(/Windows Phone/i))}(navigator.userAgent),v={events:chaordic.event.Pushables},m=function(e){e+=\"=\";var t=document.cookie.split(\";\"),n,r=0,i=t.length;while(r<i){n=t[r];while(n.charAt(0)===\" \")n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length));r+=1}return null},g=function(e){var t=document.cookie.split(\";\"),n,r=0,i=t.length,s={},o,u,a;while(r<i){n=t[r];while(n.charAt(0)===\" \")n=n.substring(1,n.length);e.test(n)&&(o=n.indexOf(\"=\"),u=n.substring(0,o),a=decodeURIComponent(n.substring(o+1,n.length)),s[u]=a),r+=1}return s},y=function(e){return/[w]{1,3}\\./g.test(e)?e:\".\"+e},b=function(e,t,n){if(chaordic.Config.COOKIE_DISABLED)return;var r=e+\"=\"+encodeURIComponent(t)+\"; path=/;\",i=y(document.domain);i.indexOf(chaordic.Config.DOMAIN)>-1&&(r+=\"domain=\"+chaordic.Config.DOMAIN),arguments.length>2&&(typeof n==\"number\"?r+=\"; max-age=\"+n:n instanceof Date?r+=\"; expires=\"+n.toUTCString():r+=\"; expires=\"+n),document.cookie=r},w=function(e){var t=e+\"=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;\",n=y(document.domain);n.indexOf(chaordic.Config.DOMAIN)>-1&&(t+=\"domain=\"+chaordic.Config.DOMAIN),document.cookie=t},E=function(){return(new Date).getTime()},S=function(e,t){if(Object.prototype.toString.call(e)===\"[object Array]\")for(var n=0,r=e.length;n<r;n+=1)t(e[n],n);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t(e[i],i)},x=function(e,t){setTimeout(function(){e.apply(null,t)})},T=function(){var n=t.jQuery(\"script[data-apikey=\"+e.API_KEY+\"]\",document);return n.length!==0?n[0]:null},N=function(){S(Array.prototype.slice.call(arguments),function(e){if(chaordic.lib.jQuery.isArray(e)){var t=e.shift(),n=v.events[t],r=e;typeof n==\"function\"?x(n,r):chaordic.Base.log(\"WARN\",\"Unknown method: \"+t)}else if(typeof e==\"function\")try{e()}catch(i){chaordic.event.Tron.trace(\"ERROR\",{callback:e.toString(),erorr:i.toString()},\"Failed to run the callback function\")}else chaordic.Base.log(\"WARN\",\"Unknown argument: \"+e)})},C=function(){return p?function(e,t){var n=function(e){(\"loaded\"===e||\"complete\"===e)&&t()};n(e.readyState),e.onreadystatechange=function(){n(this.readyState)}}:/KHTML/.test(navigator.userAgent)?function(e,t){e.addEventListener(\"load\",t,!1)}:function(e,t){e.onload=t}}(),k=function(e,t){var n=document.getElementsByTagName(\"head\")[0]||document.documentElement,r=document.createElement(\"script\");return t&&C(r,t),r.setAttribute(\"charset\",\"UTF-8\"),r.setAttribute(\"async\",!0),r.src=e,n.insertBefore(r,n.firstChild),r},L=function(e,t,n){var r,i=\"_chaordicJsonp_\"+E()+parseInt(Math.random()*1e4),s=function(){try{delete window[i]}catch(e){window[i]=undefined}};chaordic.widgetFallback&&chaordic.widgetFallback.load&&typeof chaordic.widgetFallback.load.callback==\"function\"&&(r=setTimeout(function(){chaordic.widgetFallback.load.callback(),s()},chaordic.widgetFallback.load.timeout||1e4)),window[i]=function(e){try{n(e),clearTimeout(r)}finally{s()}};var o=[];t.callback=i,S(t,function(e,t){o.push(encodeURIComponent(t)+\"=\"+encodeURIComponent(e))}),o.length!==0&&(e.indexOf(\"?\")===-1&&(e+=\"?\"),e+=o.join(\"&\")),k(e)},A=function(t){var n=E(),r=e.PROTOCOL+e.DYNAMIC_HOST+\"/datakeeper/acquireBrowserId\";L(r,{q:'{\"apiKey\":\"'+e.API_KEY+'\"}'},function(e){chaordic.ttco=E()-n;if(e.ok===!1){chaordic.Base.log(\"ERROR\",\"fail to acquire browser id\",e.msg);return}e.anonymousUserId&&b(u,e.anonymousUserId,i),t(e.browserId)})},O=function(t){var n=e.PROTOCOL+e.DYNAMIC_HOST+\"/datakeeper/acquireTestGroup\";L(n,{q:'{\"apiKey\":\"'+e.API_KEY+'\"}'},function(e){t(e.testGroup)})},M=function(){var e=m(c);return e||(e=E()+\"-\"+Math.random()),b(c,e,h),e},_=function(e){P(function(t){b(l,t,i);var n=H(t);chaordic.Identity={browserId:t,anonymousUserId:n,session:M()},e()})},D=function(e){B(function(t){chaordic.Test=t,e()})},P=function(e){var t=function(t){b(l,t,i),e(t)},n=m(l);n&&n!==\"undefined\"&&n.indexOf(\"-\")!==-1?t(n):A(t)},H=function(e){var t=f+e;return b(u,t,i),t},B=function(e){var n=function(n){b(o,t.JSON.stringify(n)||\"{}\",s),e(n)},r=m(o);r?n(t.JSON.parse(r)):O(n)},j=function(){var t=String(location);t.indexOf(\"homologation=true\")!==-1?(document.cookie=\"homologation=true; path=/\",e.HOMOLOGATION=!0):t.indexOf(\"homologation=\")!==-1?(document.cookie=\"homologation=; path=/\",e.HOMOLOGATION=!1):e.HOMOLOGATION=m(\"homologation\")===\"true\"},F=function(){var t=String(location);t.indexOf(\"dbg=onsite\")!==-1?(document.cookie=\"dbg=onsite; path=/\",e.DEBUG=!0):t.indexOf(\"dbg=\")!==-1?(document.cookie=\"dbg=; path=/\",e.DEBUG=!1):e.DEBUG=m(\"dbg\")===\"onsite\"},I=function(){var t=String(location);t.indexOf(\"dummy=true\")!==-1?(document.cookie=\"dummy=true; path=/\",e.DUMMY_RECS=!0):t.indexOf(\"dummy=\")!==-1?(document.cookie=\"dummy=; path=/\",e.DUMMY_RECS=!1):e.DUMMY_RECS=m(\"dummy\")===\"true\"},q=function(){var t=String(location);t.indexOf(\"metrics=false\")!==-1?(document.cookie=\"linx_disable_metrics=true; path=/\",e.DISABLE_METRICS=!0):t.indexOf(\"metrics=\")!==-1?(document.cookie=\"linx_disable_metrics=; path=/\",e.DISABLE_METRICS=!1):e.DISABLE_METRICS=m(\"linx_disable_metrics\")===\"true\"},R=function(){if(window.NeemuSearch)return!1;var e=chaordic.meta,n=e&&e.page&&e.page.salesChannel;if(n){var r=t.jQuery.isArray(n)?n:[n];b(\"lx_sales_channel\",t.JSON.stringify(r))}else w(\"lx_sales_channel\")},U=function(){if(e.USE_EMBEDDED_LOADER)return!1;var t=document.getElementsByTagName(\"script\"),n=t.length-1,r;while(n>-1){r=t[n];if(r.getAttribute(\"data-apikey\")&&/loader\\.js/.test(r.src))return r.getAttribute(\"data-initialize\")!==\"false\";n-=1}throw new Error(\"[loader.js] Unable to find loader.js script\")},z=function(){chaordic.event.Listener.onServerMessage(function(e){e.origin===\"datakeeper.businesses.TestExperimentPublisher\"&&chaordic.Test.experiment!==e.data&&(w(o),D(function(){}))}),chaordic.event.Listener.onServerMessage(function(e){e.origin===\"datakeeper.businesses.SessionCookiePublisher\"&&b(c,chaordic.Identity.session,e.data.expiration)})},W=function(){var t=chaordic.lib.jQuery,n=e.NEEMU_SCRIPT_URL;if(!e.NEEMU_APIKEY)return;typeof n==\"string\"?k(n.replace(\"%APIKEY%\",e.NEEMU_APIKEY)):t.isArray(n)&&t.each(n,function(t,n){k(n.replace(\"%APIKEY%\",e.NEEMU_APIKEY))})},X=function(){chaordic.initializeCount+=1,j(),F(),I(),q(),chaordic.NoRepeatRecs.resetVisibles();var t=function(e){chaordic.event.Meta(function(t){chaordic.MetaInitializer.initialize(t),chaordic.meta.user?b(a,chaordic.meta.user.id):w(a),e()})},n=function(){chaordic.Base.ensure([t,_,D],function(){e.NEEMU_LOAD_STRATEGY===\"initialize\"&&W(),R(),z(),typeof chaordic.initializeTheme==\"function\"&&chaordic.initializeTheme(),chaordic.ThemeManager.hasTheme(\"BuyCollectionModal\")&&chaordic.onsite.BuyCollectionModal.create(),chaordic.push=N,S(chaordic.modules,function(e){e()});if(typeof chaordic.callbacks==\"function\"){var t=chaordic.callbacks();while(t.length>0)chaordic.push(t.shift())}})};chaordic.Base.ensure3rdpartyDependencies(function(){chaordic.preInitialize?chaordic.preInitialize(n):n()})};e.KEEP_SCOPE=!1,chaordic.window=!e.KEEP_SCOPE&&window.top.document?window.top:window,chaordic.newFuglyTemplate=function(e){var t=new chaordic.lib.fugly.Template(e);return t.context(\"window\",chaordic.window),t},chaordic.getLocalStorage=function(){var e=\"test_\"+(new Date).getTime();try{return localStorage.setItem(e,e),localStorage.removeItem(e),localStorage}catch(t){return null}},chaordic.isHot=function(){var e=chaordic.getLocalStorage();if(e!==null){var t=e.getItem(\"chaordic_hot\");return t!==\"1\"?(e.setItem(\"chaordic_hot\",\"1\"),!1):!0}},chaordic.readCookie=m,chaordic.readCookiesMatching=g,chaordic.writeCookie=b,chaordic.deleteCookie=w,chaordic.forEach=S,chaordic.isMobile=d,chaordic.getPageSource=function(){var e=window.chaordic.meta,t=\"desktop\";return e.source&&typeof e.source==\"string\"?t=e.source:chaordic.isMobile&&(t=\"mobile\"),t},chaordic.findValueIndex=function(e,t,n){var r;for(r=0;r<e.length;r++)if(chaordic.getValueByProperty(e[r],t)===n)return r;return-1},chaordic.getValueByProperty=function(e,t){t=t.split(/\\./g);var n,r=null;for(n=0;n<t.length;n++)r=(n===0?e:r)[t[n]];return r},e.DOMAIN=\"casasbahia.com.br\",e.STATIC_API=\"v0.0.119\",e.ONSITE_API=\"v7.5.0\",e.ORGANIC_UPDATES=!1,e.NEEMU_LOAD_STRATEGY=undefined,e.NEEMU_APIKEY=undefined,e.NEEMU_SCRIPT_URL=\"//laas.neemu.com/%APIKEY%/neemu.js\",e.SLOTS=!0,e.DYNAMIC_HOST=e.DYNAMIC_HOST||\"onsite.chaordicsystems.com\",e.EVENT_HOST=\"events.chaordicsystems.com\",e.SERVER_FALLBACK_URL=\"//onsite-recs-fallback.chaordicsystems.com\",e.USE_SERVER_FALLBACK=!0,e.SERVER_FALLBACK_TIMEOUT=7e3,e.SERVER_FALLBACK_PAGES=[\"home\",\"product\"],e.MARKET_DYNAMIC_HOST=\"svr.chcmkt.com\",e.TRON=2,e.ALTERNATIVES=[],e.NO_REPEAT_RULES=[],e.THEME_URL=\"src/\",e.TRACK_EVENTS=!1,e.THEME_LANG=\"pt-br\",e.SEND_ANALYTICS=!0,e.DUMMY_RECS=!1,e.USE_EMBEDDED_LOADER=!1,e.USE_COLLECT_API=!0,e.COLLECT_API_COMPATIBILITY_ENABLED=!1,e.USE_ONE_CALL=!0,e.NEEMU_LOAD_STRATEGY===\"asap\"&&W(),chaordic.initializeCount=0,function(){if(window.linxImpulse||!window.$chaordic_meta)return;if(typeof window.$chaordic_meta.page==\"string\")return;var n=\"USE_COLLECT_API\";e[n]=!1}(),chaordic.initialize=X,U()?X():typeof chaordic.last_initialize_args!=\"undefined\"&&X.apply(this,chaordic.last_initialize_args)}()","ts":1605029234641}


