1function scrollToElement(e){const n=document.getElementById(e);n&&n.scrollIntoView({behavior:"smooth"})}window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=window.gtag||function(){window.dataLayer.push(arguments)}),window.gtag("js",new Date),window.addEventListener("message",(function(e){if("https://kerastase-quiz.vercel.app"===e.origin){if("measurementId"===e.data.type){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="//www.googletagmanager.com/gtag/js?id="+e.data.value,document.getElementsByTagName("head")[0].appendChild(n),window.gtag("config",e.data.value)}"page_view"===e.data.type&&(scrollToElement("#kerastaseIframe"),window.gtag("event","page_view",JSON.parse(e.data.value))),"view_item"===e.data.type&&window.gtag("event","view_item",JSON.parse(e.data.value)),"view_item_list"===e.data.type&&window.gtag("event","view_item_list",JSON.parse(e.data.value)),"select_content"===e.data.type&&(console.log(JSON.parse(e.data.value)),window.gtag("event","select_content",JSON.parse(e.data.value))),"click"===e.data.type&&window.gtag("event","click",JSON.parse(e.data.value))}})),window.addEventListener("load",(e=>{let n=document.getElementById("#kerastaseIframe");if(n||(n=Array.from(document.getElementsByTagName("iframe")).find((e=>e.src.includes("https://kerastase-quiz.vercel.app"))),n&&(n.id="#kerastaseIframe")),!n)return void console.warn("Kerastase embed: no se encontro el iframe de Kerastase en la pagina.");n.style.zIndex=100;const t=n.parentElement;t.style.height="auto",t.style.minHeight="650px";try{iFrameResize({log:!1,checkOrigin:!1},n)}catch(i){console.log("Iframe resizer error",i)}})),function(e){var n,t,i,o,r,a,s,d,c,l,u,f,m;function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function p(e,n,t){e.removeEventListener(n,t,!1)}function h(e){return l[e]?l[e].log:t}function b(e,n){I("log",e,n,h(e))}function y(e,n){I("info",e,n,h(e))}function v(e,n){I("warn",e,n,!0)}function I(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return r+"["+(n="Host page: "+e,(n=window.top!==window.self?window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e:n)+"]");var n}(n),t)}function k(e){function n(){t("Height"),t("Width"),R((function(){N(j),E(H),I("onResized",j)}),j,"init")}function t(e){var n=Number(l[H]["max"+e]),t=Number(l[H]["min"+e]),i=(e=e.toLowerCase(),Number(j[e]));b(H,"Checking "+e+" is in range "+t+"-"+n),i<t&&(i=t,b(H,"Set "+e+" to min value")),n<i&&(i=n,b(H,"Set "+e+" to max value")),j[e]=""+i}function i(e){return C.slice(C.indexOf(":")+o+e)}function d(e,n){var t,i;t=function(){var t,i;S("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=j.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},m[i=n]||(m[i]=setTimeout((function(){m[i]=null,t()}),32))}function c(e){return e=e.getBoundingClientRect(),O(H),{x:Math.floor(Number(e.left)+Number(s.x)),y:Math.floor(Number(e.top)+Number(s.y))}}function u(e){var n=e?c(j.iframe):{x:0,y:0},t={x:Number(j.width)+n.x,y:Number(j.height)+n.y};b(H,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(s=t,f(),b(H,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):v(H,"Unable to scroll to requested position, window.parentIFrame not found")}function f(){!1===I("onScroll",s)?F():E(H)}function g(e){e=e.split("#")[1]||"";var n=decodeURIComponent(e);(n=document.getElementById(n)||document.getElementsByName(n)[0])?(n=c(n),b(H,"Moving to in page link (#"+e+") at x: "+n.x+" y: "+n.y),s={x:n.x,y:n.y},f(),b(H,"--")):window.top===window.self?b(H,"In page link #"+e+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(e):b(H,"In page link #"+e+" not found and window.parentIFrame not found")}function h(e){var n,t;t=0===Number(j.width)&&0===Number(j.height)?{x:(n=i(9).split(":"))[1],y:n[0]}:{x:j.width,y:j.height},I(e,{iframe:j.iframe,screenX:Number(t.x),screenY:Number(t.y),type:j.type})}function I(e,n){return x(H,e,n)}var k,z,C=e.data,j={},H=null;if("[iFrameResizerChild]Ready"===C)for(var L in l)S("iFrame requested init",W(L),l[L].iframe,L);else r===(""+C).slice(0,a)&&C.slice(a).split(":")[0]in l?(j=function(){var e=C.slice(a).split(":"),n=e[1]?parseInt(e[1],10):0,t=l[e[0]]&&l[e[0]].iframe,i=getComputedStyle(t);return{iframe:t,id:e[0],height:n+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e=e.paddingBottom?parseInt(e.paddingBottom,10):0)}(i)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e=e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(i),width:e[2],type:e[3]}}(),H=j.id,l[H]&&(l[H].loaded=!0),(z=j.type in{true:1,false:1,undefined:1})&&b(H,"Ignoring init message from meta parent page"),!z&&(z=!0,l[k=H]||(z=!1,v(j.type+" No settings for "+k+". Message was: "+C)),z)&&(b(H,"Received: "+C),k=!0,null===j.iframe&&(v(H,"IFrame ("+j.id+") not found"),k=!1),k&&function(){var n=e.origin,t=l[H]&&l[H].checkOrigin;if(t&&""+n!="null"&&!function(){if(t.constructor!==Array)return e=l[H]&&l[H].remoteHost,b(H,"Checking connection is from: "+e),n===e;var e,i=0,o=!1;for(b(H,"Checking connection is from allowed list of origins: "+t);i<t.length;i++)if(t[i]===n){o=!0;break}return o}())throw new Error("Unexpected message received from: "+n+" for "+j.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return 1}()&&function(){switch(l[H]&&l[H].firstRun&&l[H]&&(l[H].firstRun=!1),j.type){case"close"
1:M(j.iframe);break;case"message":r=i(6),b(H,"onMessage passed: {iframe: "+j.iframe.id+", message: "+r+"}"),I("onMessage",{iframe:j.iframe,message:JSON.parse(r)}),b(H,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":l[H].autoResize=JSON.parse(i(9));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":d(l[H]&&l[H].iframe,H),o=H,e("Add ",w),l[o]&&(l[o].stopPageInfo=t);break;case"pageInfoStop":l[H]&&l[H].stopPageInfo&&(l[H].stopPageInfo(),delete l[H].stopPageInfo);break;case"inPageLink":g(i(9));break;case"reset":T(j);break;case"init":n(),I("onInit",j.iframe);break;default:0===Number(j.width)&&0===Number(j.height)?v("Unsupported message received ("+j.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}function e(e,n){function i(){l[o]?d(l[o].iframe,o):t()}["scroll","resize"].forEach((function(t){b(o,e+t+" listener for sendPageInfo"),n(window,t,i)}))}function t(){e("Remove ",p)}var o,r}())):y(H,"Ignored: "+C)}function x(e,n,t){var i=null,o=null;if(l[e]){if("function"!=typeof(i=l[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function z(e){e=e.id,delete l[e]}function M(e){var n=e.id;if(!1===x(n,"onClose",n))b(n,"Close iframe cancelled by onClose event");else{b(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){v(e)}x(n,"onClosed",n),b(n,"--"),z(e)}}function O(n){null===s&&b(n,"Get page position: "+(s={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+s.y)}function E(e){null!==s&&(window.scrollTo(s.x,s.y),b(e,"Set page position: "+s.x+","+s.y),F())}function F(){s=null}function T(e){b(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),R((function(){N(e),S("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function n(n){var o;o=n,e.id?(e.iframe.style[o]=e[o]+"px",b(e.id,"IFrame ("+t+") "+o+" set to "+e[o]+"px")):b("undefined","messageData id not set"),function(n){var o;function r(){Object.keys(l).forEach((function(e){function n(e){return"0px"===(l[t]&&l[t].iframe.style[e])}var t;l[t=e]&&null!==l[t].iframe.offsetParent&&(n("height")||n("width"))&&S("Visibility change","resize",l[t].iframe,t)}))}!i&&"0"===e[n]&&(i=!0,b(t,"Hidden iFrame detected, creating visibility listener"),n=g())&&(o=document.querySelector("body"),new n((function(e){b("window","Mutation observed: "+e[0].target+" "+e[0].type),j(r,16)})).observe(o,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}(n)}var t=e.iframe.id;l[t]&&(l[t].sizeHeight&&n("height"),l[t].sizeWidth)&&n("width")}function R(e,n,t){t!==n.type&&d&&!window.jasmine?(b(n.id,"Requesting animation frame"),d(e)):e()}function S(e,n,t,i,o){var a=!1;i=i||t.id,l[i]&&(function(){var o;t&&"contentWindow"in t&&null!==t.contentWindow?(o=l[i]&&l[i].targetOrigin,b(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+o),t.contentWindow.postMessage(r+n,o)):v(i,"["+e+"] IFrame("+i+") not found")}(),o&&l[i]&&l[i].warningTimeout&&(l[i].msgTimeout=setTimeout((function(){!l[i]||l[i].loaded||a||(a=!0,v(i,"IFrame has not responded within "+l[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),l[i].warningTimeout)))}function W(e){return e+":"+l[e].bodyMarginV1+":"+l[e].sizeWidth+":"+l[e].log+":"+l[e].interval+":"+l[e].enablePublicMethods+":"+l[e].autoResize+":"+l[e].bodyMargin+":"+l[e].heightCalculationMethod+":"+l[e].bodyBackground+":"+l[e].bodyPadding+":"+l[e].tolerance+":"+l[e].inPageLinks+":"+l[e].resizeFrom+":"+l[e].widthCalculationMethod+":"+l[e].mouseEvents}function C(i,o){function r(e){var n=e.split("Callback");2===n.length&&(this[n="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1)]=this[e],delete this[e],v(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version."))}var a=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var r;return""===e&&(i.id=(r=o&&o.id||f.id+n++,null!==document.getElementById(r)&&(r+=n++),e=r),t=(o||{}).log,b(e,"Added missing iframe ID: "+e+" ("+i.src+")")),e}(i.id);if(a in l&&"iFrameResizer"in i)v(a,"Ignored iFrame, already setup.");else{switch(function(e){if(e=e||{},l[a]=Object.create(null),l[a].iframe=i,l[a].firstRun=!0,l[a].remoteHost=i.src&&i.src.split("/").slice(0,3).join("/"),"object"!=typeof e)throw new TypeError("Options is not an object");Object.keys(e).forEach(r,e);var n,t=e;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(l[a][n]=(Object.prototype.hasOwnProperty.call(t,n)?t:f)[n]);l[a]&&(l[a].targetOrigin=!0!==l[a].checkOrigin||""===(e=l[a].remoteHost)||null!==e.match(/^(about:blank|javascript:|file:\/\/)/)?"*":e)}
1(o),b(a,"IFrame scrolling "+(l[a]&&l[a].scrolling?"enabled":"disabled")+" for "+a),i.style.overflow=!1===(l[a]&&l[a].scrolling)?"hidden":"auto",l[a]&&l[a].scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=l[a]?l[a].scrolling:"no"}d("Height"),d("Width"),s("maxHeight"),s("minHeight"),s("maxWidth"),s("minWidth"),"number"!=typeof(l[a]&&l[a].bodyMargin)&&"0"!==(l[a]&&l[a].bodyMargin)||(l[a].bodyMarginV1=l[a].bodyMargin,l[a].bodyMargin=l[a].bodyMargin+"px"),function(n){var t=g();t&&i.parentNode&&new t((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===i&&M(i)}))}))})).observe(i.parentNode,{childList:!0}),w(i,"load",(function(){var t,o;S("iFrame.onload",n,i,e,!0),t=l[a]&&l[a].firstRun,o=l[a]&&l[a].heightCalculationMethod in c,!t&&o&&T({iframe:i,height:0,width:0,type:"init"})})),S("init",n,i,e,!0)}(W(a)),l[a]&&(l[a].iframe.iFrameResizer={close:M.bind(null,l[a].iframe),removeListeners:z.bind(null,l[a].iframe),resize:S.bind(null,"Window resize","resize",l[a].iframe),moveToAnchor:function(e){S("Move to anchor","moveToAnchor:"+e,l[a].iframe,a)},sendMessage:function(e){S("Send Message","message:"+(e=JSON.stringify(e)),l[a].iframe,a)}})}function s(e){var n=l[a][e];1/0!==n&&0!==n&&(i.style[e]="number"==typeof n?n+"px":n,b(a,"Set "+e+" = "+i.style[e]))}function d(e){if(l[a]["min"+e]>l[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}}function j(e,n){null===u&&(u=setTimeout((function(){u=null,e()}),n))}function H(){"hidden"!==document.visibilityState&&(b("document","Trigger event: Visibility change"),j((function(){L("Tab Visible","resize")}),16))}function L(e,n){Object.keys(l).forEach((function(t){var i;l[i=t]&&"parent"===l[i].resizeFrom&&l[i].autoResize&&!l[i].firstRun&&S(e,n,l[t].iframe,t)}))}function P(){w(window,"message",k),w(window,"resize",(function(){b("window","Trigger event: "+"resize"),j((function(){L("Window resize","resize")}),16)})),w(document,"visibilitychange",H),w(document,"-webkit-visibilitychange",H)}function A(){function n(e,n){if(n){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">");C(n,e),t.push(n)}}for(var t,i=["moz","webkit","o","ms"],o=0;o<i.length&&!d;o+=1)d=window[i[o]+"RequestAnimationFrame"];return d?d=d.bind(window):b("setup","RequestAnimationFrame not supported"),P(),function(i,o){var r;switch(t=[],(r=i)&&r.enablePublicMethods&&v("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}"undefined"!=typeof window&&(n=0,i=t=!1,o="message".length,a=(r="[iFrameSizer]").length,s=null,d=window.requestAnimationFrame,c=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),l={},u=null,f=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){v("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),m={},window.jQuery!==e&&function(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){C(t,e)})).end()}):y("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),"function"==typeof define&&define.amd?define([],A):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=A()),window.iFrameResize=window.iFrameResize||A())}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.