vendor: 4,682 bytes, lines 1-2
1/*! © 2025 Push Creative. All Rights Reserved. https://pushcreative.com.au/ */ 2var ParallaxImage=function(t){"use strict";function e(){e=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new S(r||[]);return i(a,"_invoke",{value:j(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",v="suspendedYield",d="executing",y="completed",m={};function g(){}function w(){}function b(){}var E={};u(E,s,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(H([])));_&&_!==r&&o.call(_,s)&&(E=_);var L=b.prototype=g.prototype=Object.create(E);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(r,i,a,s){var l=h(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}})}function j(e,n,r){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=k(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?y:v,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function H(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:w,configurable:!0}),w.displayName=u(b,c,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},n.awrap=function(t){return{__await:t}},O(T.prototype),u(T.prototype,l,(function(){return this})),n.AsyncIterator=T,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new T(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(L),u(L,c,"Generator"),u(L,s,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=H,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
vendor: 4,131 bytes, line 2
2h(R),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:H(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},n}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function r(){r=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,r,o){var i=new RegExp(t,r);return e.set(i,o||e.get(t)),c(i,n.prototype)}function o(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var o=r[n];if("number"==typeof o)e[n]=t[o];else{for(var i=0;void 0===t[o[i]]&&i+1<o.length;)i++;e[n]=t[o[i]]}return e}),Object.create(null))}return s(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=o(n,this);var r=n.indices;r&&(r.groups=o(r,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=e.get(this);return t[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(t,e){var n=i[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,a)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},r.apply(this,arguments)}function o(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function i(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function a(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}
2function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e,n){return f=u()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&c(o,n.prototype),o},f.apply(null,arguments)}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return f(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)},h(t)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){var e=u();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}(this,n)}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function m(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return null===e?window.getComputedStyle(t):window.getComputedStyle(t).getPropertyValue(e)}function g(t){return t instanceof NodeList||t instanceof HTMLCollection||t instanceof Array&&t.every((function(t){return t instanceof Element}))}function w(t){var e,n=r(/^([a-z]+):relay[(](.+)[)]$/i,{eventType:1,selector:2}),o=null===(e=t.toString().match(n))||void 0===e?void 0:e.groups;return o&&o.eventType&&o.selector?o:null}function b(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=w(e);if(o.eventType&&o.selector){var i=function(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{stopPropagation:!1,preventDefault:!1};return function(){var o=this,i=Array.from(arguments),a=i&&i[0]&&i[0].target;if(!a.matches(e)){if(!n)return;a=a.closest(e)}a&&i[0]instanceof Event&&(r.stopPropagation&&i[0].stopPropagation(),r.preventDefault&&i[0].preventDefault(),i[0].delegateTarget=a,i.push(a),t.apply(o,i))}}(n,o.selector,!0);t.__cowtoolsRelayedEvents=t.__cowtoolsRelayedEvents||[],t.__cowtoolsRelayedEvents[e]=t.__cowtoolsRelayedEvents[e]||[],t.__cowtoolsRelayedEvents[e].push([n,i]),t.addEventListener(o.eventType,i,r)}return t}function E(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=w(e);return o.eventType,o.selector&&t.__cowtoolsRelayedEvents&&t.__cowtoolsRelayedEvents[e]&&t.__cowtoolsRelayedEvents[e].forEach((function(e,i){e[0]===n&&t.removeEventListener(o.eventType,e[1],r),t.__cowtoolsRelayedEvents.splice(i,1)})),t}function x(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return w(e)?g(t)?t.forEach((function(t){b(t,e,n,r)})):t instanceof EventTarget&&b(t,e,n,r):g(t)?t.forEach((function(t){t.addEventListener(e,n,r)})):t instanceof EventTarget&&t.addEventListener(e,n,r),t}function _(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return w(e)?g(t)?t.forEach((function(t){E(t,e,n,r)})):t instanceof EventTarget&&E(t,e,n,r):g(t)?t.forEach((function(t){t.removeEventListener(e,n,r)})):t instanceof EventTarget&&t.removeEventListener(e,n,r),t}function L(t){return t.offsetHeight+t.offsetWidth}var O=function(t){if("none"!=m(t,"display"))return function(){};var e=t.style.cssText;return t.style.display="block",t.style.visibility="hidden",t.style.margin=0,function(){this.style.cssText=e}.bind(t)};function T(t){return L(t),function(t,e){if(!t||t.offsetHeight||t.offsetWidth)return e.call(t);for(var n=t.parentNode,r=[];n&&!n.offsetHeight&&!n.offsetWidth&&n!=document.body;)r.push(O(n)),n=n.parentNode;var o=O(t),i=e.call(t);return o(),r.forEach((function(t){t()})),i}(t,function(){var t=this,e=m(this),n=t.getBoundingClientRect();return{width:Math.ceil(n.width),height:Math.ceil(n.height),scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,boundingRect:n,margin:{top:e?parseInt(e.marginTop):0,right:e?parseInt(e.marginRight):0,bottom:e?parseInt(e.marginBottom):0,left:e?parseInt(e.marginLeft):0},padding:{top:e?parseInt(e.paddingTop):0,right:e?parseInt(e.paddingRight):0,bottom:e?parseInt(e.paddingBottom):0,left:e?parseInt(e.paddingLeft):0},border:{top:e?parseInt(e.borderTopWidth):0,right:e?parseInt(e.borderRightWidth):0,bottom:e?parseInt(e.borderBottomWidth):0,left:e?parseInt(e.borderLeftWidth):0}}}.bind(t))}function j(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.body,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"width",r=function(t){var e=t.toString().trim().match(/^([0-9.
2-]+)(cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|%|)$/);return null===e?null:{value:parseFloat(e[1]),unit:e[2]}}(t);if(null!==r){if(""==r.unit||"px"==r.unit)return r.value;if("%"==r.unit)return(e===document.body?document.body.innerWidth:T(e)[n])*(r.value/100);if("em"==r.unit||"rem"==r.unit)return r.value*parseInt(m(e,"font-size"));if("vmin"==r.unit)return r.value/100*Math.min(window.innerWidth,window.innerHeight);if("vmax"==r.unit)return r.value/100*Math.max(window.innerWidth,window.innerHeight);if("vh"==r.unit||"dvh"==r.unit||"svh"==r.unit||"lvh"==r.unit)return r.value/100*window.innerHeight;if("vw"==r.unit||"dvw"==r.unit||"svw"==r.unit||"lvw"==r.unit)return r.value/100*window.innerWidth}var o=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return Object.keys(e).forEach((function(t){"class"==t.toLowerCase()||"classname"==t.toLowerCase()?o.className=e[t]:"text"==t.toLowerCase()||"innertext"==t.toLowerCase()?""==r&&(r=htmlEntities(e[t])):"html"==t.toLowerCase()||"innerhtml"==t.toLowerCase()?""==r&&(r=e[t]):null!==e[t]&&void 0!==e[t]&&o.setAttribute(t,e[t])})),Object.keys(n).forEach((function(t){return o.style[t]=n[t]})),""!=r&&(o.innerHTML=r),o}("span",{id:"__toPixelsElement"},{visibility:"hidden",position:"absolute","font-size":t});!function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"bottom";e instanceof Element&&(!n||"bottom"===n||"inside"===n||0==e.children.length&&"top"==n?e.appendChild(t):"top"===n?e.insertBefore(t,e.firstElementChild):"after"===n?e.nextElementSibling?e.parentNode.insertBefore(t,e.nextElementSibling):e.parentNode.appendChild(t):"before"===n?e.parentNode.insertBefore(t,e):"around"===n&&function(t,e){e.parentNode.insertBefore(t,e),t.appendChild(e)}(t,e))}(o,e,"bottom");var i=m(o,"font-size");return e.removeChild(o),parseFloat(i)}var k,P="parallax-image",R=function(t){function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),a(p(t=u.call(this)),"slottedElements",{}),a(p(t),"parentDims",void 0),a(p(t),"imageDims",void 0),a(p(t),"element",void 0),a(p(t),"calculatedOverlap",void 0),a(p(t),"heightDifference",void 0),a(p(t),"image",void 0),a(p(t),"_state",{overlap:"10vmin"}),a(p(t),"_attr",{overlap:function(e){t._state.overlap=e}}),t.attachShadow({mode:"open"}).appendChild(t.loadTemplate().cloneNode(!0)),t.slots=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if(!t.shadowRoot)throw new Error("Element does not have a shadowRoot.");var n={};return t.shadowRoot.querySelectorAll("slot").forEach((function(t){n[t.getAttribute("name")||e]=t})),n}(p(t)),t.parts=function(t){if(!t.shadowRoot)throw new Error("Element does not have a shadowRoot.");var e={};return t.shadowRoot.querySelectorAll('[part]:not([part=""])').forEach((function(t){e[t.getAttribute("part")]=t})),e}(p(t)),t}s(n,t);var r,l,c,u=v(n);return r=n,l=[{key:"attributeChangedCallback",value:function(t,e,n){this._attr&&this._attr[t.toLowerCase()](n)}},{key:"overlapInPixels",get:function(){return this.calculatedOverlap||(this.calculatedOverlap=j(this.overlap,this))}},{key:"overlap",get:function(){return this._state.overlap},set:function(t){this._state.overlap=t,this.revalidateMetrics(),this.updateTransforms()}},{key:"connectedCallback",value:function(){var t=this;this.eventHandlers||(this.eventHandlers={resize:function(){t.revalidateMetrics(),t.updateTransforms()},scroll:this.updateTransforms.bind(this),slotchange:this.setupImage.bind(this)},ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver(this.eventHandlers.resize)),this.setupImage(),this.image&&this.image instanceof HTMLImageElement&&(x(window,"resize",this.eventHandlers.resize,{passive:!0}),x(window,"scroll",this.eventHandlers.scroll,{passive:!0}),x(this.slots.image,"slotchange",this.eventHandlers.slotchange,{passive:!0}),this.resizeObserver.observe(function(t){for(var e=function(t){return m(t,"overflow")+m(t,"overflow-y")+m(t,"overflow-x")},n=function(t){var e=function(t,n){return null===t.parentNode?n:e(t.parentNode,n.concat([t]))};return e(t.parentNode,[])}(t),r=0;r<n.length;r++)if(/(auto|scroll)/.test(e(n[r])))return n[r];return document.scrollingElement||window}(this),{box:"border-box"}),this.setAttribute("connected",performance.now())))}},{key:"disconnectedCallback",value:function(){this.eventHandlers&&(_(window,"resize",this.eventHandlers.resize),_(window,"scroll",this.eventHandlers.scroll),_(this.slots.image,"slotchange",this.eventHandlers.slotchange)),this.resizeObserver&&this.resizeObserver.disconnect(),this.removeAttribute("connected")}},{key:"adoptedCallback",value:function(){this.eventHandlers.resize()}},{key:"setupImage",value:function(){var t=this;return this.image=null,1==this.slots.image.assignedElements().length&&(this.image=this.slots.image.assignedElements()[0],!(this.image instanceof HTMLImageElement)&&(this.image=null)),this.image?(this.image.style.visibility="hidden",this.image.style.opacity="0",this.image.addEventListener("load",(function(){L(t),t.setupStyles(),t.revalidateMetrics(),t.updateTransforms(),window.requestAnimationFrame((function(){t.image.style.visibility="visible",t.image.style.opacity="1"}))}),{once:!0,passive:!0}),void setTimeout((function(){t.image.complete&&(L(t),t.setupStyles(),t.revalidateMetrics(),t.updateTransforms(),window.requestAnimationFrame((function(){t.image.style.visibility="visible",t.image.style.opacity="1"})))}),100)):void(console&&console.error&&console.warn("No <img> element assigned to 'image' slot"))}},{key:"updateTransforms",value:function(){var t=this;if(this.image&&this.image instanceof HTMLImageElement){var e=this.getBoundingClientRect(),n=(e.top+e.height/2-window.innerHeight/2)/window.innerHeight;window.requestAnimationFrame((function(){t.image.style.transform="translate3d(0, ".concat(n*t.heightDifference,"px, 0)")}))}}},{key:"revalidateMetrics",value:function(){this.image&&this.image instanceof HTMLImageElement&&(function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];
2if(g(t)){var r,o=y(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;for(var a in e)i.style.setProperty(a,e[a],n?"important":void 0)}}catch(t){o.e(t)}finally{o.f()}}else if(t instanceof Element)for(var s in e)t.style.setProperty(s,e[s],n?"important":void 0)}(this.parts.wrap,{inset:"-".concat(this.overlap," 0px"),position:"absolute"}),this.parentDims=T(this),this.imageDims=T(this.image),this.heightDifference=(this.imageDims.height-this.parentDims.height)/2,this.calculatedOverlap=this.overlapInPixels)}},{key:"setupStyles",value:function(){L(this)}},{key:"loadTemplate",value:function(){var t=document.createElement("template");return t.innerHTML='\n <div class="__parallax-image-wrap" part="wrap" style="position: relative;" part="image-wrap">\n <slot name="image"/>\n </div>\n <div part="content">\n <slot/>\n </div>\n <style>\n :host{display: block; overflow: hidden; position: relative;}\n :host(:not([connected])) .__parallax-image-wrap { visibility: hidden; }\n ::slotted(img),::slotted(video)\n {\n object-fit: cover;\n object-position: center center;\n inset: -1px -1px;\n width: 100% !important;\n height: 100% !important;\n position: absolute;\n }\n\n .__parallax-image-wrap\n {\n position: absolute;\n overflow: hidden;\n }\n </style>\n ',t.content}}],c=[{key:"observedAttributes",get:function(){return["overlap"]}},{key:"attach",value:function(){var t,r=(t=e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:void 0===customElements.get(P)&&customElements.define(P,n);case 1:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,l,"next",t)}function l(t){o(a,r,i,s,l,"throw",t)}s(void 0)}))});return function(){return r.apply(this,arguments)}}()}],l&&i(r.prototype,l),c&&i(r,c),Object.defineProperty(r,"prototype",{writable:!1}),n}(h(HTMLElement));return k=R.attach,window.requestAnimationFrame(k),t.ParallaxImage=R,Object.defineProperty(t,"__esModule",{value:!0}),t}({}); 3/*! © 2025 Push Creative. All Rights Reserved. https://pushcreative.com.au/ */
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.