PageSourceSearch

https://hype.news/js/481.556cbcad.js

js hype.news collected 2026-09-24 06:34:14 UTC 14,070 bytes, 2 lines download raw bytes

1(self["webpackChunk_hypefactors_hypenews"]=self["webpackChunk_hypefactors_hypenews"]||[]).push([[481],{80481(e){(function(t){if("undefined"!==typeof window){var n=!0,o=10,i="",r=0,a="",u=null,c="",s=!1,d={resize:1,click:1},l=128,f=!0,m=1,h="bodyOffset",g=h,p=!0,v="",y={},w=32,b=null,T=!1,E=!1,O="[iFrameSizer]",S=O.length,M="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},N="child",A=!0,C=window.parent,k="*",z=0,R=!1,x=null,L=16,F=1,P="scroll",D=P,j=window,q=function(){ne("onMessage function not defined")},H=function(){},W=function(){},B={height:function(){return ne("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ne("Custom width calculation function not defined"),document.body.scrollWidth}},J={},U=!1;try{var _=Object.create({},{passive:{get:function(){U=!0}}});window.addEventListener("test",K,_),window.removeEventListener("test",K,_)}catch(He){}var V={bodyOffset:function(){return document.body.offsetHeight+Ie("marginTop")+Ie("marginBottom")},offset:function(){return V.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return B.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,Ce(V))},min:function(){return Math.min.apply(null,Ce(V))},grow:function(){return V.max()},lowestElement:function(){return Math.max(V.bodyOffset()||V.documentElementOffset(),Ae("bottom",ze()))},taggedElement:function(){return ke("bottom","data-iframe-height")}},X={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return B.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(X.bodyScroll(),X.documentElementScroll())},max:function(){return Math.max.apply(null,Ce(X))},min:function(){return Math.min.apply(null,Ce(X))},rightMostElement:function(){return Ae("right",ze())},taggedElement:function(){return ke("right","data-iframe-width")}},Y=$(Re);"iframeResizer"in window||(window.iframeChildListener=function(e){je({data:e,sameDomian:!0})},Q(window,"message",je),Q(window,"readystatechange",qe),qe())}function K(){}function Q(e,t,n,o){e.addEventListener(t,n,!!U&&(o||{}))}function G(e,t,n){e.removeEventListener(t,n,!1)}function Z(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $(e){var t,n,o,i=null,r=0,a=function(){r=Date.now(),i=null,o=e.apply(t,n),i||(t=n=null)};return function(){var u=Date.now();r||(r=u);var c=L-(u-r);return t=this,n=arguments,c<=0||c>L?(i&&(clearTimeout(i),i=null),r=u,o=e.apply(t,n),i||(t=n=null)):i||(i=setTimeout(a,c)),o}}function ee(e){return O+"["+M+"] "+e}function te(e){T&&"object"===typeof window.console&&console.log(ee(e))}function ne(e){"object"===typeof window.console&&console.warn(ee(e))}function oe(){ie(),te("Initialising iFrame ("+window.location.href+")"),ae(),se(),ce("background",i),ce("padding",c),we(),he(),ge(),de(),Ee(),Te(),pe(),y=be(),xe("init","Init message from host page"),H()}function ie(){function e(e){return"true"===e}var o=v.slice(S).split(":");M=o[0],r=t===o[1]?r:Number(o[1]),s=t===o[2]?s:e(o[2]),T=t===o[3]?T:e(o[3]),w=t===o[4]?w:Number(o[4]),n=t===o[6]?n:e(o[6]),a=o[7],g=t===o[8]?g:o[8],i=o[9],c=o[10],z=t===o[11]?z:Number(o[11]),y.enable=t!==o[12]&&e(o[12]),N=t===o[13]?N:o[13],D=t===o[14]?D:o[14],E=t===o[15]?E:e(o[15])}function re(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ne("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ae(){function e(){var e=window.iFrameResizer;te("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(re,e),q="onMessage"in e?e.onMessage:q,H="onReady"in e?e.onReady:H,k="targetOrigin"in e?e.targetOrigin:k,g="heightCalculationMethod"in e?e.heightCalculationMethod:g,D="widthCalculationMethod"in e?e.widthCalculationMethod:D}function t(e,t){return"function"===typeof e&&(te("Setup custom "+t+"CalcMethod"),B[t]=e,e="
1custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),g=t(g,"height"),D=t(D,"width")),te("TargetOrigin for parent set to: "+k)}function ue(e,t){return-1!==t.indexOf("-")&&(ne("Negative CSS value ignored for "+e),t=""),t}function ce(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,te("Body "+e+' set to "'+n+'"'))}function se(){t===a&&(a=r+"px"),ce("margin",ue("margin",a))}function de(){document.documentElement.style.height="",document.body.style.height="",te('HTML & body height set to "auto"')}function le(e){var t={add:function(t){function n(){xe(e.eventName,e.eventType)}J[t]=n,Q(window,t,n,{passive:!0})},remove:function(e){var t=J[e];delete J[e],G(window,e,t)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),te(Z(e.method)+" event listener: "+e.eventType)}function fe(e){le({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),le({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),le({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),le({method:e,eventType:"Input",eventName:"input"}),le({method:e,eventType:"Mouse Up",eventName:"mouseup"}),le({method:e,eventType:"Mouse Down",eventName:"mousedown"}),le({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),le({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),le({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),le({method:e,eventType:"Touch Start",eventName:"touchstart"}),le({method:e,eventType:"Touch End",eventName:"touchend"}),le({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),le({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),le({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),le({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===N&&le({method:e,eventType:"IFrame Resized",eventName:"resize"})}function me(e,t,n,o){return t!==e&&(e in n||(ne(e+" is not a valid option for "+o+"CalculationMethod."),e=t),te(o+' calculation method set to "'+e+'"')),e}function he(){g=me(g,h,V,"height")}function ge(){D=me(D,P,X,"width")}function pe(){!0===n?(fe("add"),Me()):te("Auto Resize disabled")}function ve(){null!==u&&u.disconnect()}function ye(){fe("remove"),ve(),clearInterval(b)}function we(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}function be(){function e(){return{x:window.pageXOffset===t?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===t?document.documentElement.scrollTop:window.pageYOffset}}function n(t){var n=t.getBoundingClientRect(),o=e();return{x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}}function o(e){function o(e){var t=n(e);te("Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),De(t.y,t.x,"scrollToOffset")}var i=e.split("#")[1]||e,r=decodeURIComponent(i),a=document.getElementById(r)||document.getElementsByName(r)[0];t===a?(te("In page link (#"+i+") not found in iFrame, so sending to parent"),De(0,0,"inPageLink","#"+i)):o(a)}function i(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&Q(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){Q(window,"hashchange",i)}function u(){setTimeout(i,l)}function c(){Array.prototype.forEach&&document.querySelectorAll?(te("Setting up location.hash handlers"),r(),a(),u()):ne("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return y.enable?c():te("In page linking not enabled"),{findTarget:o}}function Te(){function e(e){De(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){te("Add event listener: "+n),Q(window.document,t,e)}!0===E&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}function Ee(){te("Enable public methods"),j.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,pe()):!1===e&&!0===n&&(n=!1,ye()),De(0,0,"autoResize",JSON.stringify(n)),n},close:function(){De(0,0,"close")},getId:function(){return M},getPageInfo:function(e){"function"===typeof e?(W=e,De(0,0,"pageInfo")):(W=function(){},De(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){Pe("parentIFrame.reset")},scrollTo:function(e,t){De(t,e,"scrollTo")},scrollToOffset:function(e,t){De(t,e,"scrollToOffset")},sendMessage:function(e,t){De(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){g=e,he()},setWidthCalculationMethod:function(e){D=e,ge()},setTargetOrigin:function(e){te("Set targetOrigin: "+e),k=e},size:function(e,t){var n=(e||"")+(t?","+t:"");xe("size","parentIFrame.size("+n+")",e,t)}}}function Oe(){0!==w&&(te("setInterval: "+w+"ms"),b=setInterval(function(){xe("interval","setInterval: "+w)},Math.abs(w)))}function Se(){function e(e){function t(e){!1===e.complete&&(te("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),c.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){c.splice(c.indexOf(e),1)}function n(e){te("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),t(e)}function o(e,t,o){n(e.target),xe(t,o+": "+e.target.src)}function i(e){o(e,"imageLoad","Image loaded")}function r(e){o(e,"imageLoadFailed","Image load failed")}function a(t){xe("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function u(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new s(a),te("Create body MutationObserver"),d.observe(e,t),d}var c=[],s=window.MutationObserver||window.WebKitMutationObserver,d=u();return{disconnect:function(){"disconnect"in d&&(te("Disconnect body MutationObserver"),d.disconnect(),c.forEac
1h(n))}}}function Me(){var e=0>w;window.MutationObserver||window.WebKitMutationObserver?e?Oe():u=Se():(te("MutationObserver not supported in this browser!"),Oe())}function Ie(e,t){var n=0;return t=t||document.body,n=document.defaultView.getComputedStyle(t,null),n=null===n?0:n[e],parseInt(n,o)}function Ne(e){e>L/2&&(L=2*e,te("Event throttle increased to "+L+"ms"))}function Ae(e,t){for(var n=t.length,o=0,i=0,r=Z(e),a=Date.now(),u=0;u<n;u++)o=t[u].getBoundingClientRect()[e]+Ie("margin"+r,t[u]),o>i&&(i=o);return a=Date.now()-a,te("Parsed "+n+" HTML elements"),te("Element position calculated in "+a+"ms"),Ne(a),i}function Ce(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ke(e,t){function n(){return ne("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}var o=document.querySelectorAll("["+t+"]");return 0===o.length&&n(),Ae(e,o)}function ze(){return document.querySelectorAll("body *")}function Re(e,n,o,i){function r(){m=f,F=h,De(m,F,e)}function a(){function e(e,t){var n=Math.abs(e-t)<=z;return!n}return f=t===o?V[g]():o,h=t===i?X[D]():i,e(m,f)||s&&e(F,h)}function u(){return!(e in{init:1,interval:1,size:1})}function c(){return g in I||s&&D in I}function d(){te("No change in size detected")}function l(){u()&&c()?Pe(n):e in{interval:1}||d()}var f,h;a()||"init"===e?(Le(),r()):l()}function xe(e,t,n,o){function i(){e in{reset:1,resetPage:1,init:1}||te("Trigger event: "+t)}function r(){return R&&e in d}r()?te("Trigger event cancelled: "+e):(i(),"init"===e?Re(e,t,n,o):Y(e,t,n,o))}function Le(){R||(R=!0,te("Trigger event lock on")),clearTimeout(x),x=setTimeout(function(){R=!1,te("Trigger event lock off"),te("--")},l)}function Fe(e){m=V[g](),F=X[D](),De(m,F,e)}function Pe(e){var t=g;g=h,te("Reset trigger event: "+e),Le(),Fe("reset"),g=t}function De(e,n,o,i,r){function a(){t===r?r=k:te("Message targetOrigin: "+r)}function u(){var a=e+":"+n,u=M+":"+a+":"+o+(t===i?"":":"+i);te("Sending message to host page ("+u+")"),C.postMessage(O+u,r)}!0===A&&(a(),u())}function je(n){var o={init:function(){v=n.data,C=n.source,oe(),f=!1,setTimeout(function(){p=!1},l)},reset:function(){p?te("Page reset ignored by init"):(te("Page size reset by host page"),Fe("resetPage"))},resize:function(){xe("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(a())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=a();te("PageInfoFromParent called from parent: "+e),W(JSON.parse(e)),te(" --")},message:function(){var e=a();te("onMessage called from parent: "+e),q(JSON.parse(e)),te(" --")}};function i(){return O===(""+n.data).slice(0,S)}function r(){return n.data.split("]")[1].split(":")[0]}function a(){return n.data.slice(n.data.indexOf(":")+1)}function u(){return!e.exports&&"iFrameResize"in window||window.jQuery!==t&&"iFrameResize"in window.jQuery.prototype}function c(){return n.data.split(":")[2]in{true:1,false:1}}function s(){var e=r();e in o?o[e]():u()||c()||ne("Unexpected message ("+n.data+")")}function d(){!1===f?s():c()?o.init():te('Ignored message of type "'+r()+'". Received before initialization.')}i()&&d()}function qe(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}})()}}]);
2//# sourceMappingURL=481.556cbcad.js.map

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.