well-petal 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/petal.js CHANGED
@@ -116,7 +116,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
116
116
  \**********************/
117
117
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
118
118
 
119
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_modal_modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/modal/modal */ \"./src/modules/modal/modal.ts\");\n/* harmony import */ var _modules_banner_banner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/banner/banner */ \"./src/modules/banner/banner.ts\");\n\n\nconsole.log(`🌸 Hello from Wellflow Petal v${\"0.1.2\"}`);\n(0,_modules_modal_modal__WEBPACK_IMPORTED_MODULE_0__.initializeAllModals)();\n(0,_modules_banner_banner__WEBPACK_IMPORTED_MODULE_1__.initializeBanner)();\n\n\n//# sourceURL=webpack://petal/./src/petal.ts?");
119
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_modal_modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/modal/modal */ \"./src/modules/modal/modal.ts\");\n/* harmony import */ var _modules_banner_banner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/banner/banner */ \"./src/modules/banner/banner.ts\");\n\n\nconsole.log(`🌸 Hello from Wellflow Petal v${\"0.1.3\"}`);\n(0,_modules_modal_modal__WEBPACK_IMPORTED_MODULE_0__.initializeAllModals)();\n(0,_modules_banner_banner__WEBPACK_IMPORTED_MODULE_1__.initializeBanner)();\n\n\n//# sourceURL=webpack://petal/./src/petal.ts?");
120
120
 
121
121
  /***/ })
122
122
 
package/dist/petal.min.js CHANGED
@@ -1,2 +1 @@
1
- /*! For license information please see petal.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.petal=e():t.petal=e()}(this,(()=>(()=>{"use strict";var t={56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var a={},s=[],o=0;o<t.length;o++){var u=t[o],l=r.base?u[0]+r.base:u[0],h=a[l]||0,c="".concat(l," ").concat(h);a[l]=h+1;var p=n(c),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)e[p].references++,e[p].updater(f);else{var d=i(f,r);r.byIndex=o,e.splice(o,0,{identifier:c,updater:d,references:1})}s.push(c)}return s}function i(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var a=r(t=t||[],i=i||{});return function(t){t=t||[];for(var s=0;s<a.length;s++){var o=n(a[s]);e[o].references--}for(var u=r(t,i),l=0;l<a.length;l++){var h=n(a[l]);0===e[h].references&&(e[h].updater(),e.splice(h,1))}a=u}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},123:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(601),i=n.n(r),a=n(314),s=n.n(a)()(i());s.push([t.id,'/**---------- GENERAL -------------**/\n.wf-design-mode [data-show-in-designer="true"] {\n display: block;\n}\n/**----------- BANNER -------------**/\n.petal-hide-banner {\n display: none !important;\n}\n\n/**---------- BREAKPOINTS ---------**/\n/* Desktop */\n@media (min-width: 992px) {\n [petal-hide-desktop] {\n display: none !important;\n }\n}\n\n/* Tablet */\n@media (max-width: 991px) and (min-width: 768px) {\n [petal-hide-tablet] {\n display: none !important;\n }\n}\n\n/* Mobile Landscape */\n@media (max-width: 767px) and (min-width: 480px) {\n [petal-hide-mobile-landscape] {\n display: none !important;\n }\n}\n\n/* Mobile */\n@media (max-width: 479px) {\n [petal-hide-mobile] {\n display: none !important;\n }\n}\n\n/**------------- NAV --------------**/\n\n/* Set position based on petal-position attribute */\n[petal-el="banner"][petal-position="sticky"],\n[petal-el="nav-secondary"][petal-position="sticky"],\n[petal-el="nav"][petal-position="sticky"] {\n position: sticky !important;\n}\n\n[petal-el="banner"][petal-position="static"],\n[petal-el="nav-secondary"][petal-position="static"],\n[petal-el="nav"][petal-position="static"] {\n position: static !important;\n top: 0 !important;\n}\n\n[petal-el="banner"][petal-position="relative"],\n[petal-el="nav-secondary"][petal-position="relative"],\n[petal-el="nav"][petal-position="relative"] {\n position: relative !important;\n top: 0 !important;\n}\n\n/* Initialize individual height variables */\n:root {\n --nav--banner-contribution: 0px;\n --nav--secondary-nav-contribution: 0px;\n --nav--nav-contribution: 0px;\n}\n\n/* Banner height contribution - set on :root using :has() */\n/* Visible + Sticky */\n@media (min-width: 992px) {\n :root:has([petal-el="banner"]:not(.w-condition-invisible):not(.petal-hide-banner):not([petal-hide-desktop])[petal-position="sticky"]) {\n --nav--banner-contribution: var(--nav--nav-banner-height, 0px);\n }\n :root:has([petal-el="banner"][petal-position="static"]),\n :root:has([petal-el="banner"].w-condition-invisible),\n :root:has([petal-el="banner"].petal-hide-banner),\n :root:has([petal-el="banner"][petal-hide-desktop]) {\n --nav--banner-contribution: 0px;\n }\n}\n\n@media (max-width: 991px) and (min-width: 768px) {\n :root:has([petal-el="banner"]:not(.w-condition-invisible):not(.petal-hide-banner):not([petal-hide-tablet])[petal-position="sticky"]) {\n --nav--banner-contribution: var(--nav--nav-banner-height, 0px);\n }\n :root:has([petal-el="banner"][petal-position="static"]),\n :root:has([petal-el="banner"].w-condition-invisible),\n :root:has([petal-el="banner"].petal-hide-banner),\n :root:has([petal-el="banner"][petal-hide-tablet]) {\n --nav--banner-contribution: 0px;\n }\n}\n\n@media (max-width: 767px) and (min-width: 480px) {\n :root:has([petal-el="banner"]:not(.w-condition-invisible):not(.petal-hide-banner):not([petal-hide-mobile-landscape])[petal-position="sticky"]) {\n --nav--banner-contribution: var(--nav--nav-banner-height, 0px);\n }\n :root:has([petal-el="banner"][petal-position="static"]),\n :root:has([petal-el="banner"].w-condition-invisible),\n :root:has([petal-el="banner"].petal-hide-banner),\n :root:has([petal-el="banner"][petal-hide-mobile-landscape]) {\n --nav--banner-contribution: 0px;\n }\n}\n\n@media (max-width: 479px) {\n :root:has([petal-el="banner"]:not(.w-condition-invisible):not(.petal-hide-banner):not([petal-hide-mobile])[petal-position="sticky"]) {\n --nav--banner-contribution: var(--nav--nav-banner-height, 0px);\n }\n :root:has([petal-el="banner"][petal-position="static"]),\n :root:has([petal-el="banner"].w-condition-invisible),\n :root:has([petal-el="banner"].petal-hide-banner),\n :root:has([petal-el="banner"][petal-hide-mobile]) {\n --nav--banner-contribution: 0px;\n }\n}\n\n/* Secondary Nav height contribution - set on :root using :has() */\n/* Visible + Sticky */\n@media (min-width: 992px) {\n :root:has([petal-el="nav-secondary"]:not(.w-condition-invisible):not([petal-hide-desktop])[petal-position="sticky"]) {\n --nav--secondary-nav-contribution: var(--nav--nav-secondary-height, 0px);\n }\n :root:has([petal-el="nav-secondary"][petal-position="static"]),\n :root:has([petal-el="nav-secondary"].w-condition-invisible),\n :root:has([petal-el="nav-secondary"][petal-hide-desktop]) {\n --nav--secondary-nav-contribution: 0px;\n }\n}\n\n@media (max-width: 991px) and (min-width: 768px) {\n :root:has([petal-el="nav-secondary"]:not(.w-condition-invisible):not([petal-hide-tablet])[petal-position="sticky"]) {\n --nav--secondary-nav-contribution: var(--nav--nav-secondary-height, 0px);\n }\n :root:has([petal-el="nav-secondary"][petal-position="static"]),\n :root:has([petal-el="nav-secondary"].w-condition-invisible),\n :root:has([petal-el="nav-secondary"][petal-hide-tablet]) {\n --nav--secondary-nav-contribution: 0px;\n }\n}\n\n@media (max-width: 767px) and (min-width: 480px) {\n :root:has([petal-el="nav-secondary"]:not(.w-condition-invisible):not([petal-hide-mobile-landscape])[petal-position="sticky"]) {\n --nav--secondary-nav-contribution: var(--nav--nav-secondary-height, 0px);\n }\n :root:has([petal-el="nav-secondary"][petal-position="static"]),\n :root:has([petal-el="nav-secondary"].w-condition-invisible),\n :root:has([petal-el="nav-secondary"][petal-hide-mobile-landscape]) {\n --nav--secondary-nav-contribution: 0px;\n }\n}\n\n@media (max-width: 479px) {\n :root:has([petal-el="nav-secondary"]:not(.w-condition-invisible):not([petal-hide-mobile])[petal-position="sticky"]) {\n --nav--secondary-nav-contribution: var(--nav--nav-secondary-height, 0px);\n }\n :root:has([petal-el="nav-secondary"][petal-position="static"]),\n :root:has([petal-el="nav-secondary"].w-condition-invisible),\n :root:has([petal-el="nav-secondary"][petal-hide-mobile]) {\n --nav--secondary-nav-contribution: 0px;\n }\n}\n\n/* Nav height contribution - set on :root using :has() */\n/* Sticky */\n@media (min-width: 992px) {\n :root:has([petal-el="nav"]:not([petal-hide-desktop])[petal-position="sticky"]) {\n --nav--nav-contribution: var(--nav--nav-height, 0px);\n }\n :root:has([petal-el="nav"][petal-position="static"]),\n :root:has([petal-el="nav"][petal-hide-desktop]) {\n --nav--nav-contribution: 0px;\n }\n}\n\n@media (max-width: 991px) and (min-width: 768px) {\n :root:has([petal-el="nav"]:not([petal-hide-tablet])[petal-position="sticky"]) {\n --nav--nav-contribution: var(--nav--nav-height, 0px);\n }\n :root:has([petal-el="nav"][petal-position="static"]),\n :root:has([petal-el="nav"][petal-hide-tablet]) {\n --nav--nav-contribution: 0px;\n }\n}\n\n@media (max-width: 767px) and (min-width: 480px) {\n :root:has([petal-el="nav"]:not([petal-hide-mobile-landscape])[petal-position="sticky"]) {\n --nav--nav-contribution: var(--nav--nav-height, 0px);\n }\n :root:has([petal-el="nav"][petal-position="static"]),\n :root:has([petal-el="nav"][petal-hide-mobile-landscape]) {\n --nav--nav-contribution: 0px;\n }\n}\n\n@media (max-width: 479px) {\n :root:has([petal-el="nav"]:not([petal-hide-mobile])[petal-position="sticky"]) {\n --nav--nav-contribution: var(--nav--nav-height, 0px);\n }\n :root:has([petal-el="nav"][petal-position="static"]),\n :root:has([petal-el="nav"][petal-hide-mobile]) {\n --nav--nav-contribution: 0px;\n }\n}\n\n/* Calculate total nav height */\n:root {\n --nav--nav-secondary-offset: var(--nav--banner-contribution);\n --nav--nav-offset: calc(var(--nav--banner-contribution) + var(--nav--secondary-nav-contribution));\n --nav--nav-height-total: calc(var(--nav--banner-contribution) + var(--nav--secondary-nav-contribution) + var(--nav--nav-contribution));\n}\n',""]);const o=s},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,a){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var o=0;o<this.length;o++){var u=this[o][0];null!=u&&(s[u]=!0)}for(var l=0;l<t.length;l++){var h=[].concat(t[l]);r&&s[h[0]]||(void 0!==a&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=a),n&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=n):h[2]=n),i&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=i):h[4]="".concat(i)),e.push(h))}},e}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{t.exports=function(t){return t[1]}},659:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={id:r,exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0;const r="petal",i="petal-el",a="petal-group",s="petal-state",o="petal-debug",u="trigger-close",l="modal";function h(t){return document.querySelectorAll(`[${i}='${t}']`)}function c(t,e,n){const a=function(t,e){return document.querySelectorAll(`[${r}='${t}'][${i}='${e}']`)}(e,n);return a&&a.length>0?a:function(t,e){return t.querySelectorAll(`[${i}='${e}']`)}(t,n)}function p(t,e){let n=t.parentElement;for(;n;){if(n.getAttribute(i)===e)return n;n=n.parentElement}return null}function f(t,e,n){t&&console.log(`🌸 [${e}] ${n}`)}function d(t,e,n,r){if(!t)return;const i=r instanceof NodeList?r.length:r?1:0;console.log(`🌸 [${e}] Found ${i} ${n}(s)`),i>0&&console.log(r)}function _(t,e){const n=new Date;sessionStorage.setItem(m(t,e),n.getTime().toString())}function m(t,e){return`petal_memory_${t}_${e}`}let v=0,g=0;class y{constructor(t,e){this.elements=t,this.config=e,this.open=()=>{this.config.lockScrollOnOpen&&(0===v&&(g=window.pageYOffset||document.documentElement.scrollTop,document.body.style.position="fixed",document.body.style.top=`-${g}px`,document.body.style.width="100%"),v++,this.config.debug&&console.log(`[DEBUG] Modal "${this.config.name}" - Locked scroll`)),Webflow.require("ix3").emit(this.config.animOpen)},this.close=()=>{this.config.lockScrollOnOpen&&(v>0&&v--,0===v&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,g)),this.config.debug&&console.log(`[DEBUG] Modal "${this.config.name}" - Unlocked scroll`)),this.elements.modal.querySelectorAll("video").forEach((t=>{t.paused||t.pause()})),_("modal",this.config.name),Webflow.require("ix3").emit(this.config.animClose)}}}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var w,T,k,A,O,M,E,C,S,D,P,R,z,F,L,I,N,$={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},B={duration:.5,overwrite:!1,delay:0},q=1e8,Y=1e-8,U=2*Math.PI,X=U/4,j=0,V=Math.sqrt,G=Math.cos,W=Math.sin,H=function(t){return"string"==typeof t},Q=function(t){return"function"==typeof t},Z=function(t){return"number"==typeof t},J=function(t){return void 0===t},K=function(t){return"object"==typeof t},tt=function(t){return!1!==t},et=function(){return"undefined"!=typeof window},nt=function(t){return Q(t)||H(t)},rt="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},it=Array.isArray,at=/(?:-?\.?\d|\.)+/gi,st=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ot=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ut=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,lt=/[+-]=-?[.\d]+/,ht=/[^,'"\[\]\s]+/gi,ct=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pt={},ft={},dt=function(t){return(ft=Xt(t,pt))&&jn},_t=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},mt=function(t,e){return!e&&console.warn(t)},vt=function(t,e){return t&&(pt[t]=e)&&ft&&(ft[t]=e)||pt},gt=function(){return 0},yt={suppressEvents:!0,isStart:!0,kill:!1},bt={suppressEvents:!0,kill:!1},xt={suppressEvents:!0},wt={},Tt=[],kt={},At={},Ot={},Mt=30,Et=[],Ct="",St=function(t){var e,n,r=t[0];if(K(r)||Q(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Et.length;n--&&!Et[n].targetTest(r););e=Et[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new an(t[n],e)))||t.splice(n,1);return t},Dt=function(t){return t._gsap||St(xe(t))[0]._gsap},Pt=function(t,e,n){return(n=t[e])&&Q(n)?t[e]():J(n)&&t.getAttribute&&t.getAttribute(e)||n},Rt=function(t,e){return(t=t.split(",")).forEach(e)||t},zt=function(t){return Math.round(1e5*t)/1e5||0},Ft=function(t){return Math.round(1e7*t)/1e7||0},Lt=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},It=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Nt=function(){var t,e,n=Tt.length,r=Tt.slice(0);for(kt={},Tt.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},$t=function(t){return!!(t._initted||t._startAt||t.add)},Bt=function(t,e,n,r){Tt.length&&!T&&Nt(),t.render(e,n,r||!!(T&&e<0&&$t(t))),Tt.length&&!T&&Nt()},qt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ht).length<2?e:H(t)?t.trim():t},Yt=function(t){return t},Ut=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Xt=function(t,e){for(var n in e)t[n]=e[n];return t},jt=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=K(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Vt=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Gt=function(t){var e,n=t.parent||A,r=t.keyframes?(e=it(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Ut;if(tt(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Wt=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,s=t[r];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Ht=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Qt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Zt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Jt=function(t,e,n,r){return t._startAt&&(T?t._startAt.revert(bt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Kt=function t(e){return!e||e._ts&&t(e.parent)},te=function(t){return t._repeat?ee(t._tTime,t=t.duration()+t._rDelay)*t:0},ee=function(t,e){var n=Math.floor(t=Ft(t/e));return t&&n===t?n-1:n},ne=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},re=function(t){return t._end=Ft(t._start+(t._tDur/Math.abs(t._ts||t._rts||Y)||0))},ie=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Ft(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),re(t),n._dirty||Zt(n,t)),t},ae=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=ne(t.rawTime(),e),(!e._dur||ve(0,e.totalDuration(),n)-e._tTime>Y)&&e.render(n,!0)),Zt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},se=function(t,e,n,r){return e.parent&&Qt(e),e._start=Ft((Z(n)?n:n||t!==A?de(t,n,e):t._time)+e._delay),e._end=Ft(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Wt(t,e,"_first","_last",t._sort?"_start":0),he(e)||(t._recent=e),r||ae(t,e),t._ts<0&&ie(t,t._tTime),t},oe=function(t,e){return(pt.ScrollTrigger||_t("scrollTrigger",e))&&pt.ScrollTrigger.create(e,t)},ue=function(t,e,n,r,i){return fn(t,e,i),t._initted?!n&&t._pt&&!T&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&S!==je.frame?(Tt.push(t),t._lazy=[i,r],1):void 0:1},le=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},he=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ce=function(t,e,n,r){var i=t._repeat,a=Ft(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Ft(a*(i+1)+t._rDelay*i):a,s>0&&!r&&ie(t,t._tTime=t._tDur*s),t.parent&&re(t),n||Zt(t.parent,t),t},pe=function(t){return t instanceof on?Zt(t):ce(t,t._dur)},fe={_start:0,endTime:gt,totalDuration:gt},de=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||fe,l=e.duration()>=q?u.endTime(!1):e._dur;return H(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=l),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(it(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},_e=function(t,e,n){var r,i,a=Z(e[1]),s=(a?2:1)+(t<2?0:1),o=e[s];if(a&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=tt(i.vars.inherit)&&i.parent;o.immediateRender=tt(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new gn(e[0],o,e[s+1])},me=function(t,e){return t||0===t?e(t):e},ve=function(t,e,n){return n<t?t:n>e?e:n},ge=function(t,e){return H(t)&&(e=ct.exec(t))?e[1]:""},ye=[].slice,be=function(t,e){return t&&K(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&K(t[0]))&&!t.nodeType&&t!==O},xe=function(t,e,n){return k&&!e&&k.selector?k.selector(t):!H(t)||n||!M&&Ve()?it(t)?function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return H(t)&&!e||be(t,1)?(r=n).push.apply(r,xe(t)):n.push(t)}))||n}(t,n):be(t)?ye.call(t,0):t?[t]:[]:ye.call((e||E).querySelectorAll(t),0)},we=function(t){return t=xe(t)[0]||mt("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return xe(e,n.querySelectorAll?n:n===t?mt("Invalid scope")||E.createElement("div"):t)}},Te=function(t){return t.sort((function(){return.5-Math.random()}))},ke=function(t){if(Q(t))return t;var e=K(t)?t:{each:t},n=Ke(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,l=r,h=r;return H(r)?l=h={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(l=r[0],h=r[1]),function(t,s,c){var p,f,d,_,m,v,g,y,b,x=(c||e).length,w=a[x];if(!w){if(!(b="auto"===e.grid?0:(e.grid||[1,q])[1])){for(g=-q;g<(g=c[b++].getBoundingClientRect().left)&&b<x;);b<x&&b--}for(w=a[x]=[],p=o?Math.min(b,x)*l-.5:r%b,f=b===q?0:o?x*h/b-.5:r/b|0,g=0,y=q,v=0;v<x;v++)d=v%b-p,_=f-(v/b|0),w[v]=m=u?Math.abs("y"===u?_:d):V(d*d+_*_),m>g&&(g=m),m<y&&(y=m);"random"===r&&Te(w),w.max=g-y,w.min=y,w.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(b>x?x-1:u?"y"===u?x/b:b:Math.max(b,x/b))||0)*("edges"===r?-1:1),w.b=x<0?i-x:i,w.u=ge(e.amount||e.each)||0,n=n&&x<0?Ze(n):n}return x=(w[t]-w.min)/w.max||0,Ft(w.b+(n?n(x):x)*w.v)+w.u}},Ae=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Ft(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Z(n)?0:ge(n))}},Oe=function(t,e){var n,r,i=it(t);return!i&&K(t)&&(n=i=t.radius||q,t.values?(t=xe(t.values),(r=!Z(t[0]))&&(n*=n)):t=Ae(t.increment)),me(e,i?Q(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),u=q,l=0,h=t.length;h--;)(i=r?(i=t[h].x-s)*i+(a=t[h].y-o)*a:Math.abs(t[h]-s))<u&&(u=i,l=h);return l=!n||u<=n?t[l]:e,r||l===e||Z(e)?l:l+ge(e)}:Ae(t))},Me=function(t,e,n,r){return me(it(t)?!e:!0===n?!!(n=0):!r,(function(){return it(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},Ee=function(t,e,n){return me(n,(function(n){return t[~~e(n)]}))},Ce=function(t){for(var e,n,r,i,a=0,s="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?ht:at),s+=t.substr(a,e-a)+Me(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},Se=function(t,e,n,r,i){var a=e-t,s=r-n;return me(i,(function(e){return n+((e-t)/a*s||0)}))},De=function(t,e,n){var r,i,a,s=t.labels,o=q;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},Pe=function(t,e,n){var r,i,a,s=t.vars,o=s[e],u=k,l=t._ctx;if(o)return r=s[e+"Params"],i=s.callbackScope||t,n&&Tt.length&&Nt(),l&&(k=l),a=r?o.apply(i,r):o.call(i),k=u,a},Re=function(t){return Qt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!T),t.progress()<1&&Pe(t,"onInterrupt"),t},ze=[],Fe=function(t){if(t)if(t=!t.name&&t.default||t,et()||t.headless){var e=t.name,n=Q(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:gt,render:Mn,add:cn,kill:Cn,modifier:En,rawVars:0},a={targetTest:0,get:0,getSetter:Tn,aliases:{},register:0};if(Ve(),t!==r){if(At[e])return;Ut(r,Ut(Vt(t,i),a)),Xt(r.prototype,Xt(i,Vt(t,a))),At[r.prop=e]=r,t.targetTest&&(Et.push(r),wt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}vt(e,r),t.register&&t.register(jn,r,Pn)}else ze.push(t)},Le=255,Ie={aqua:[0,Le,Le],lime:[0,Le,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Le],navy:[0,0,128],white:[Le,Le,Le],olive:[128,128,0],yellow:[Le,Le,0],orange:[Le,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Le,0,0],pink:[Le,192,203],cyan:[0,Le,Le],transparent:[Le,Le,Le,0]},Ne=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Le+.5|0},$e=function(t,e,n){var r,i,a,s,o,u,l,h,c,p,f=t?Z(t)?[t>>16,t>>8&Le,t&Le]:0:Ie.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ie[t])f=Ie[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Le,f&Le,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Le,t&Le]}else if("hsl"===t.substr(0,3))if(f=p=t.match(at),e){if(~t.indexOf("="))return f=t.match(st),n&&f.length<4&&(f[3]=1),f}else s=+f[0]%360/360,o=+f[1]/100,r=2*(u=+f[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),f.length>3&&(f[3]*=1),f[0]=Ne(s+1/3,r,i),f[1]=Ne(s,r,i),f[2]=Ne(s-1/3,r,i);else f=t.match(at)||Ie.transparent;f=f.map(Number)}return e&&!p&&(r=f[0]/Le,i=f[1]/Le,a=f[2]/Le,u=((l=Math.max(r,i,a))+(h=Math.min(r,i,a)))/2,l===h?s=o=0:(c=l-h,o=u>.5?c/(2-l-h):c/(l+h),s=l===r?(i-a)/c+(i<a?6:0):l===i?(a-r)/c+2:(r-i)/c+4,s*=60),f[0]=~~(s+.5),f[1]=~~(100*o+.5),f[2]=~~(100*u+.5)),n&&f.length<4&&(f[3]=1),f},Be=function(t){var e=[],n=[],r=-1;return t.split(Ye).forEach((function(t){var i=t.match(ot)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},qe=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(Ye),l=e?"hsla(":"rgba(",h=0;if(!u)return t;if(u=u.map((function(t){return(t=$e(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Be(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(Ye,"1").split(ot)).length-1;h<s;h++)o+=i[h]+(~r.indexOf(h)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(Ye)).length-1;h<s;h++)o+=i[h]+u[h];return o+i[s]},Ye=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ie)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ue=/hsl[a]?\(/,Xe=function(t){var e,n=t.join(" ");if(Ye.lastIndex=0,Ye.test(n))return e=Ue.test(n),t[1]=qe(t[1],e),t[0]=qe(t[0],e,Be(t[1])),!0},je=function(){var t,e,n,r,i,a,s=Date.now,o=500,u=33,l=s(),h=l,c=1e3/240,p=c,f=[],d=function n(d){var _,m,v,g,y=s()-h,b=!0===d;if((y>o||y<0)&&(l+=y-u),((_=(v=(h+=y)-l)-p)>0||b)&&(g=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,p+=_+(_>=c?4:c-_),m=1),b||(t=e(n)),m)for(a=0;a<f.length;a++)f[a](v,i,g,d)};return r={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){C&&(!M&&et()&&(O=M=window,E=O.document||{},pt.gsap=jn,(O.gsapVersions||(O.gsapVersions=[])).push(jn.version),dt(ft||O.GreenSockGlobals||!O.gsap&&O||{}),ze.forEach(Fe)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=n||function(t){return setTimeout(t,p-1e3*r.time+1|0)},P=1,d(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(t),P=0,e=gt},lagSmoothing:function(t,e){o=t||1/0,u=Math.min(e||33,o)},fps:function(t){c=1e3/(t||240),p=1e3*r.time+c},add:function(t,e,n){var i=e?function(e,n,a,s){t(e,n,a,s),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),Ve(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&a>=e&&a--},_listeners:f}}(),Ve=function(){return!P&&je.wake()},Ge={},We=/^[\d.\-M][\d.\-,\s]/,He=/["']/g,Qe=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)n=a[o],e=o!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(He,"").trim():+r,s=n.substr(e+1).trim();return i},Ze=function(t){return function(e){return 1-t(1-e)}},Je=function t(e,n){for(var r,i=e._first;i;)i instanceof on?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Ke=function(t,e){return t&&(Q(t)?t:Ge[t]||function(t){var e,n,r,i,a=(t+"").split("("),s=Ge[a[0]];return s&&a.length>1&&s.config?s.config.apply(null,~t.indexOf("{")?[Qe(a[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)).split(",").map(qt)):Ge._CE&&We.test(t)?Ge._CE("",t):s}(t))||e},tn=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return Rt(t,(function(t){for(var e in Ge[t]=pt[t]=a,Ge[i=t.toLowerCase()]=n,a)Ge[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ge[t+"."+e]=a[e]})),a},en=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},nn=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/U*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*W((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:en(o);return a=U/a,u.config=function(n,r){return t(e,n,r)},u},rn=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:en(r);return i.config=function(n){return t(e,n)},i};Rt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;tn(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Ge.Linear.easeNone=Ge.none=Ge.Linear.easeIn,tn("Elastic",nn("in"),nn("out"),nn()),R=7.5625,L=2*(F=1/(z=2.75)),I=2.5*F,tn("Bounce",(function(t){return 1-N(1-t)}),N=function(t){return t<F?R*t*t:t<L?R*Math.pow(t-1.5/z,2)+.75:t<I?R*(t-=2.25/z)*t+.9375:R*Math.pow(t-2.625/z,2)+.984375}),tn("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)})),tn("Circ",(function(t){return-(V(1-t*t)-1)})),tn("Sine",(function(t){return 1===t?1:1-G(t*X)})),tn("Back",rn("in"),rn("out"),rn()),Ge.SteppedEase=Ge.steps=pt.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*ve(0,.99999999,t)|0)+i)*n}}},B.ease=Ge["quad.out"],Rt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Ct+=t+","+t+"Params,"}));var an=function(t,e){this.id=j++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Pt,this.set=e?e.getSetter:Tn},sn=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ce(this,+t.duration,1,1),this.data=t.data,k&&(this._ctx=k,k.data.push(this)),P||je.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ce(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ve(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ie(this,t),!n._dp||n.parent||ae(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&se(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Y||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+te(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+te(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?ee(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?ne(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ve(-Math.abs(this._delay),this.totalDuration(),n),!1!==e),re(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ve(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Y&&(this._tTime-=Y)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&se(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(tt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ne(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=xt);var e=T;return T=t,$t(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),T=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,pe(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,pe(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(de(this,t),tt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,tt(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-Y))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Q(t)?t:Yt,i=function(){var t=e.then;e.then=null,Q(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Re(this)},t}();Ut(sn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var on=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=tt(e.sortChildren),A&&se(e.parent||A,b(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&oe(b(r),e.scrollTrigger),r}x(e,t);var n=e.prototype;return n.to=function(t,e,n){return _e(0,arguments,this),this},n.from=function(t,e,n){return _e(1,arguments,this),this},n.fromTo=function(t,e,n,r){return _e(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Gt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new gn(t,e,de(this,n),1),this},n.call=function(t,e,n){return se(this,gn.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new gn(t,n,de(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,Gt(n).immediateRender=tt(n.immediateRender),this.staggerTo(t,e,n,r,i,a,s)},n.staggerFromTo=function(t,e,n,r,i,a,s,o){return r.startAt=n,Gt(r).immediateRender=tt(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,l,h,c,p,f,d,_=this._time,m=this._dirty?this.totalDuration():this._tDur,v=this._dur,g=t<=0?0:Ft(t),y=this._zTime<0!=t<0&&(this._initted||!v);if(this!==A&&g>m&&t>=0&&(g=m),g!==this._tTime||n||y){if(_!==this._time&&v&&(g+=this._time-_,t+=this._time-_),r=g,c=this._start,u=!(h=this._ts),y&&(v||(_=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,n);if(r=Ft(g%o),g===m?(s=this._repeat,r=v):((s=~~(p=Ft(g/o)))&&s===p&&(r=v,s--),r>v&&(r=v)),p=ee(this._tTime,o),!_&&this._tTime&&p!==s&&this._tTime-p*o-this._dur<=0&&(p=s),f&&1&s&&(r=v-r,d=1),s!==p&&!this._lock){var b=f&&1&p,x=b===(f&&1&s);if(s<p&&(b=!b),_=b?0:g%v?v:g,this._lock=1,this.render(_||(d?0:Ft(s*o)),e,!v)._lock=0,this._tTime=g,!e&&this.parent&&Pe(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1),_&&_!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,m=this._tDur,x&&(this._lock=2,_=b?v:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Je(this,d)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Ft(_),Ft(r)),l&&(g-=r-(r=l._start))),this._tTime=g,this._time=r,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&g&&!e&&!p&&(Pe(this,"onStart"),this._tTime!==g))return this;if(r>=_&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,a&&(g+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var w=t<0?t:r;i;){if(a=i._prev,(i._act||w<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(w-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(w-i._start)*i._ts,e,n||T&&$t(i)),r!==this._time||!this._ts&&!u){l=0,a&&(g+=this._zTime=w?-1e-8:Y);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=_?0:-1e-8)._zTime=r>=_?1:-1,this._ts))return this._start=c,re(this),this.render(t,e,n);this._onUpdate&&!e&&Pe(this,"onUpdate",!0),(g===m&&this._tTime>=this.totalDuration()||!g&&_)&&(c!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(g===m&&this._ts>0||!g&&this._ts<0)&&Qt(this,1),e||t<0&&!_||!g&&!_&&m||(Pe(this,g===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(g<m&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Z(e)||(e=de(this,e,t)),!(t instanceof sn)){if(it(t))return t.forEach((function(t){return n.add(t,e)})),this;if(H(t))return this.addLabel(t,e);if(!Q(t))return this;t=gn.delayedCall(0,t)}return this!==t?se(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-q);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof gn?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return H(t)?this.removeLabel(t):Q(t)?this.killTweensOf(t):(t.parent===this&&Ht(this,t),t===this._recent&&(this._recent=this._last),Zt(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ft(je.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=de(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=gn.delayedCall(0,e||gt,n);return r.data="isPause",this._hasPause=1,se(this,r,de(this,t))},n.removePause=function(t){var e=this._first;for(t=de(this,t);e;)e._start===t&&"isPause"===e.data&&Qt(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)un!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=xe(t),a=this._first,s=Z(e);a;)a instanceof gn?It(a._targets,i)&&(s?(!un||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=de(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,l=a.immediateRender,h=gn.to(r,Ut({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||Y,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());h._dur!==t&&ce(h,t,0,1).render(h._time,!0,!0),n=1}o&&o.apply(h,u||[])}},e));return l?h.render(0):h},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Ut({startAt:{time:de(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),De(this,de(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),De(this,de(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Y)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Zt(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Zt(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=q;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,se(a,s,n-s._delay,1)._lock=0):o=n,n<0&&s._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),o=0),s._end>i&&s._ts&&(i=s._end),s=e;ce(a,a===A&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(A._ts&&(Bt(A,ne(t,A)),S=je.frame),je.frame>=Mt){Mt+=$.autoSleep||120;var e=A._first;if((!e||!e._ts)&&$.autoSleep&&je._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||je.sleep()}}},e}(sn);Ut(on.prototype,{_lock:0,_hasPause:0,_forcing:0});var un,ln,hn=function(t,e,n,r,i,a,s){var o,u,l,h,c,p,f,d,_=new Pn(this._pt,t,e,0,1,On,null,i),m=0,v=0;for(_.b=n,_.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=Ce(r)),a&&(a(d=[n,r],t,e),n=d[0],r=d[1]),u=n.match(ut)||[];o=ut.exec(r);)h=o[0],c=r.substring(m,o.index),l?l=(l+1)%5:"rgba("===c.substr(-5)&&(l=1),h!==u[v++]&&(p=parseFloat(u[v-1])||0,_._pt={_next:_._pt,p:c||1===v?c:",",s:p,c:"="===h.charAt(1)?Lt(p,h)-p:parseFloat(h)-p,m:l&&l<4?Math.round:0},m=ut.lastIndex);return _.c=m<r.length?r.substring(m,r.length):"",_.fp=s,(lt.test(r)||f)&&(_.e=0),this._pt=_,_},cn=function(t,e,n,r,i,a,s,o,u,l){Q(r)&&(r=r(i||0,t,a));var h,c=t[e],p="get"!==n?n:Q(c)?u?t[e.indexOf("set")||!Q(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():c,f=Q(c)?u?xn:bn:yn;if(H(r)&&(~r.indexOf("random(")&&(r=Ce(r)),"="===r.charAt(1)&&((h=Lt(p,r)+(ge(p)||0))||0===h)&&(r=h)),!l||p!==r||ln)return isNaN(p*r)||""===r?(!c&&!(e in t)&&_t(e,r),hn.call(this,t,e,p,r,f,o||$.stringFilter,u)):(h=new Pn(this._pt,t,e,+p||0,r-(p||0),"boolean"==typeof c?An:kn,0,f),u&&(h.fp=u),s&&h.modifier(s,this,t),this._pt=h)},pn=function(t,e,n,r,i,a){var s,o,u,l;if(At[t]&&!1!==(s=new At[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(Q(t)&&(t=_n(t,i,e,n,r)),!K(t)||t.style&&t.nodeType||it(t)||rt(t))return H(t)?_n(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=_n(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new Pn(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==D))for(u=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)u[s._props[l]]=o;return s},fn=function t(e,n,r){var i,a,s,o,u,l,h,c,p,f,d,_,m,v=e.vars,g=v.ease,y=v.startAt,b=v.immediateRender,x=v.lazy,k=v.onUpdate,O=v.runBackwards,M=v.yoyoEase,E=v.keyframes,C=v.autoRevert,S=e._dur,D=e._startAt,P=e._targets,R=e.parent,z=R&&"nested"===R.data?R.vars.targets:P,F="auto"===e._overwrite&&!w,L=e.timeline;if(L&&(!E||!g)&&(g="none"),e._ease=Ke(g,B.ease),e._yEase=M?Ze(Ke(!0===M?g:M,B.ease)):0,M&&e._yoyo&&!e._repeat&&(M=e._yEase,e._yEase=e._ease,e._ease=M),e._from=!L&&!!v.runBackwards,!L||E&&!v.stagger){if(_=(c=P[0]?Dt(P[0]).harness:0)&&v[c.prop],i=Vt(v,wt),D&&(D._zTime<0&&D.progress(1),n<0&&O&&b&&!C?D.render(-1,!0):D.revert(O&&S?bt:yt),D._lazy=0),y){if(Qt(e._startAt=gn.set(P,Ut({data:"isStart",overwrite:!1,parent:R,immediateRender:!0,lazy:!D&&tt(x),startAt:null,delay:0,onUpdate:k&&function(){return Pe(e,"onUpdate")},stagger:0},y))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(T||!b&&!C)&&e._startAt.revert(bt),b&&S&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(O&&S&&!D)if(n&&(b=!1),s=Ut({overwrite:!1,data:"isFromStart",lazy:b&&!D&&tt(x),immediateRender:b,stagger:0,parent:R},i),_&&(s[c.prop]=_),Qt(e._startAt=gn.set(P,s)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(T?e._startAt.revert(bt):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,Y,Y);for(e._pt=e._ptCache=0,x=S&&tt(x)||x&&!S,a=0;a<P.length;a++){if(h=(u=P[a])._gsap||St(P)[a]._gsap,e._ptLookup[a]=f={},kt[h.id]&&Tt.length&&Nt(),d=z===P?a:z.indexOf(u),c&&!1!==(p=new c).init(u,_||i,e,d,z)&&(e._pt=o=new Pn(e._pt,u,p.name,0,1,p.render,p,0,p.priority),p._props.forEach((function(t){f[t]=o})),p.priority&&(l=1)),!c||_)for(s in i)At[s]&&(p=pn(s,i,e,d,u,z))?p.priority&&(l=1):f[s]=o=cn.call(e,u,s,"get",i[s],d,z,0,v.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),F&&e._pt&&(un=e,A.killTweensOf(u,f,e.globalTime(n)),m=!e.parent,un=0),e._pt&&x&&(kt[h.id]=1)}l&&Dn(e),e._onInit&&e._onInit(e)}e._onUpdate=k,e._initted=(!e._op||e._pt)&&!m,E&&n<=0&&L.render(q,!0,!0)},dn=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(it(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:s})},_n=function(t,e,n,r,i){return Q(t)?t.call(e,n,r,i):H(t)&&~t.indexOf("random(")?Ce(t):t},mn=Ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",vn={};Rt(mn+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return vn[t]=1}));var gn=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,l,h,c,p,f,d=(a=t.call(this,i?n:Gt(n))||this).vars,_=d.duration,m=d.delay,v=d.immediateRender,g=d.stagger,y=d.overwrite,x=d.keyframes,T=d.defaults,k=d.scrollTrigger,O=d.yoyoEase,M=n.parent||A,E=(it(e)||rt(e)?Z(e[0]):"length"in n)?[e]:xe(e);if(a._targets=E.length?St(E):mt("GSAP target "+e+" not found. https://gsap.com",!$.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=y,x||g||nt(_)||nt(m)){if(n=a.vars,(s=a.timeline=new on({data:"nested",defaults:T||{},targets:M&&"nested"===M.data?M.vars.targets:E})).kill(),s.parent=s._dp=b(a),s._start=0,g||nt(_)||nt(m)){if(l=E.length,p=g&&ke(g),K(g))for(h in g)~mn.indexOf(h)&&(f||(f={}),f[h]=g[h]);for(o=0;o<l;o++)(u=Vt(n,vn)).stagger=0,O&&(u.yoyoEase=O),f&&Xt(u,f),c=E[o],u.duration=+_n(_,b(a),o,c,E),u.delay=(+_n(m,b(a),o,c,E)||0)-a._delay,!g&&1===l&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),s.to(c,u,p?p(o,c,E):0),s._ease=Ge.none;s.duration()?_=m=0:a.timeline=0}else if(x){Gt(Ut(s.vars.defaults,{ease:"none"})),s._ease=Ke(x.ease||n.ease||"none");var C,S,D,P=0;if(it(x))x.forEach((function(t){return s.to(E,t,">")})),s.duration();else{for(h in u={},x)"ease"===h||"easeEach"===h||dn(h,x[h],u,x.easeEach);for(h in u)for(C=u[h].sort((function(t,e){return t.t-e.t})),P=0,o=0;o<C.length;o++)(D={ease:(S=C[o]).e,duration:(S.t-(o?C[o-1].t:0))/100*_})[h]=S.v,s.to(E,D,P),P+=D.duration;s.duration()<_&&s.to({},{duration:_-s.duration()})}}_||a.duration(_=s.duration())}else a.timeline=0;return!0!==y||w||(un=b(a),A.killTweensOf(E),un=0),se(M,b(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!_&&!x&&a._start===Ft(M._time)&&tt(v)&&Kt(b(a))&&"nested"!==M.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-m)||0)),k&&oe(b(a),k),a}x(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,l,h,c,p=this._time,f=this._tDur,d=this._dur,_=t<0,m=t>f-Y&&!_?f:t<Y?0:t;if(d){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_||this._lazy){if(r=m,h=this.timeline,this._repeat){if(s=d+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*s+t,e,n);if(r=Ft(m%s),m===f?(a=this._repeat,r=d):(a=~~(o=Ft(m/s)))&&a===o?(r=d,a--):r>d&&(r=d),(u=this._yoyo&&1&a)&&(c=this._yEase,r=d-r),o=ee(this._tTime,s),r===p&&!n&&this._initted&&a===o)return this._tTime=m,this;a!==o&&(h&&this._yEase&&Je(h,u),this.vars.repeatRefresh&&!u&&!this._lock&&r!==s&&this._initted&&(this._lock=n=1,this.render(Ft(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(ue(this,_?t:r,n,e,m))return this._tTime=0,this;if(!(p===this._time||n&&this.vars.repeatRefresh&&a!==o))return this;if(d!==this._dur)return this.render(t,e,n)}if(this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(c||this._ease)(r/d),this._from&&(this.ratio=l=1-l),!p&&m&&!e&&!o&&(Pe(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;h&&h.render(t<0?t:h._dur*h._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Jt(this,t,0,n),Pe(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Pe(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(_&&!this._onUpdate&&Jt(this,t,0,!0),(t||!d)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Qt(this,1),e||_&&!p||!(m||p||u)||(Pe(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&le(t)&&(t._initted||!he(t))||(t._ts<0||t._dp._ts<0)&&!he(t))?0:1,l=t._rDelay,h=0;if(l&&t._repeat&&(h=ve(0,t._tDur,e),a=ee(h,l),t._yoyo&&1&a&&(u=1-u),a!==ee(t._tTime,l)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||T||r||t._zTime===Y||!e&&t._zTime){if(!t._initted&&ue(t,e,r,n,h))return;for(s=t._zTime,t._zTime=e||(n?Y:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=h,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Jt(t,e,0,!0),t._onUpdate&&!n&&Pe(t,"onUpdate"),h&&t._repeat&&!n&&t.parent&&Pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Qt(t,1),n||T||(Pe(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r,i){P||je.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||fn(this,a),function(t,e,n,r,i,a,s,o){var u,l,h,c,p=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!p)for(p=t._ptCache[e]=[],h=t._ptLookup,c=t._targets.length;c--;){if((u=h[c][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return ln=1,t.vars[e]="+=0",fn(t,s),ln=0,o?mt(e+" not eligible for reset"):1;p.push(u)}for(c=p.length;c--;)(u=(l=p[c])._pt||l).s=!r&&0!==r||i?u.s+(r||0)+a*u.c:r,u.c=n-u.s,l.e&&(l.e=zt(n)+ge(l.e)),l.b&&(l.b=u.s+ge(l.b))}(this,t,e,n,r,this._ease(a/this._dur),a,i)?this.resetTo(t,e,n,r,1):(ie(this,0),this.parent||Wt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Re(this):this.scrollTrigger&&this.scrollTrigger.kill(!!T),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,un&&!0!==un.vars.overwrite)._first||Re(this),this.parent&&n!==this.timeline.totalDuration()&&ce(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,l,h=this._targets,c=t?xe(t):h,p=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(h,c))return"all"===e&&(this._pt=0),Re(this);for(r=this._op=this._op||[],"all"!==e&&(H(e)&&(o={},Rt(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?Dt(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=Xt({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(h,e)),l=h.length;l--;)if(~c.indexOf(h[l]))for(o in i=p[l],"all"===e?(r[l]=e,s=i,a={}):(a=r[l]=r[l]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Ht(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&f&&Re(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return _e(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return _e(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return A.killTweensOf(t,e,n)},e}(sn);Ut(gn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Rt("staggerTo,staggerFrom,staggerFromTo",(function(t){gn[t]=function(){var e=new on,n=ye.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var yn=function(t,e,n){return t[e]=n},bn=function(t,e,n){return t[e](n)},xn=function(t,e,n,r){return t[e](r.fp,n)},wn=function(t,e,n){return t.setAttribute(e,n)},Tn=function(t,e){return Q(t[e])?bn:J(t[e])&&t.setAttribute?wn:yn},kn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},An=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},On=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Mn=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},En=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},Cn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Ht(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Sn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Dn=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},Pn=function(){function t(t,e,n,r,i,a,s,o,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||kn,this.d=s||this,this.set=o||yn,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=Sn,this.m=t,this.mt=n,this.tween=e},t}();Rt(Ct+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return wt[t]=1})),pt.TweenMax=pt.TweenLite=gn,pt.TimelineLite=pt.TimelineMax=on,A=new on({sortChildren:!1,defaults:B,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),$.stringFilter=Xe;var Rn=[],zn={},Fn=[],Ln=0,In=0,Nn=function(t){return(zn[t]||Fn).map((function(t){return t()}))},$n=function(){var t=Date.now(),e=[];t-Ln>2&&(Nn("matchMediaInit"),Rn.forEach((function(t){var n,r,i,a,s=t.queries,o=t.conditions;for(r in s)(n=O.matchMedia(s[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Nn("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Ln=t,Nn("matchMedia"))},Bn=function(){function t(t,e){this.selector=e&&we(e),this.data=[],this._r=[],this.isReverted=!1,this.id=In++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Q(t)&&(n=e,e=t,t=Q);var r=this,i=function(){var t,i=k,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=we(n)),k=r,t=e.apply(r,arguments),Q(t)&&r._r.push(t),k=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Q?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=k;k=null,t(this),k=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof gn&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){for(var e,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(e=n.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=n.data.length;i--;)(e=n.data[i])instanceof on?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof gn)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var r=Rn.length;r--;)Rn[r].id===this.id&&Rn.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),qn=function(){function t(t){this.contexts=[],this.scope=t,k&&k.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){K(t)||(t={matches:t});var r,i,a,s=new Bn(0,n||this.scope),o=s.conditions={};for(i in k&&!s.selector&&(s.selector=k.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?a=1:(r=O.matchMedia(t[i]))&&(Rn.indexOf(s)<0&&Rn.push(s),(o[i]=r.matches)&&(a=1),r.addListener?r.addListener($n):r.addEventListener("change",$n));return a&&e(s,(function(t){return s.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Yn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Fe(t)}))},timeline:function(t){return new on(t)},getTweensOf:function(t,e){return A.getTweensOf(t,e)},getProperty:function(t,e,n,r){H(t)&&(t=xe(t)[0]);var i=Dt(t||{}).get,a=n?Yt:qt;return"native"===n&&(n=""),t?e?a((At[e]&&At[e].get||i)(t,e,n,r)):function(e,n,r){return a((At[e]&&At[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=xe(t)).length>1){var r=t.map((function(t){return jn.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=At[e],s=Dt(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;D._pt=0,r.init(t,n?e+n:e,D,0,[t]),r.render(1,r),D._pt&&Mn(1,D)}:s.set(t,o);return a?u:function(e){return u(t,o,n?e+n:e,s,1)}},quickTo:function(t,e,n){var r,i=jn.to(t,Ut(((r={})[e]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return A.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ke(t.ease,B.ease)),jt(B,t||{})},config:function(t){return jt($,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!At[t]&&!pt[t]&&mt(e+" effect requires "+t+" plugin.")})),Ot[e]=function(t,e,r){return n(xe(t),Ut(e||{},i),r)},a&&(on.prototype[e]=function(t,n,r){return this.add(Ot[e](t,K(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ge[t]=Ke(e)},parseEase:function(t,e){return arguments.length?Ke(t,e):Ge},getById:function(t){return A.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new on(t);for(i.smoothChildTiming=tt(t.smoothChildTiming),A.remove(i),i._dp=0,i._time=i._tTime=A._time,n=A._first;n;)r=n._next,!e&&!n._dur&&n instanceof gn&&n.vars.onComplete===n._targets[0]||se(i,n,n._start-n._delay),n=r;return se(A,i,0),i},context:function(t,e){return t?new Bn(t,e):k},matchMedia:function(t){return new qn(t)},matchMediaRefresh:function(){return Rn.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||$n()},addEventListener:function(t,e){var n=zn[t]||(zn[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=zn[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return it(e)?Ee(e,t(0,e.length),n):me(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return it(e)?Ee(e,t(0,e.length-1),n):me(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:ke,random:Me,snap:Oe,normalize:function(t,e,n){return Se(t,e,0,1,n)},getUnit:ge,clamp:function(t,e,n){return me(n,(function(n){return ve(t,e,n)}))},splitColor:$e,toArray:xe,selector:we,mapRange:Se,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||ge(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var s,o,u,l,h,c=H(e),p={};if(!0===r&&(i=1)&&(r=null),c)e={p:e},n={p:n};else if(it(e)&&!it(n)){for(u=[],l=e.length,h=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,a=function(t){t*=l;var e=Math.min(h,~~t);return u[e](t-e)},r=n}else i||(e=Xt(it(e)?[]:{},e));if(!u){for(s in n)cn.call(p,e,s,"get",n[s]);a=function(t){return Mn(t,p)||(c?e.p:e)}}}return me(r,a)},shuffle:Te},install:dt,effects:Ot,ticker:je,updateRoot:on.updateRoot,plugins:At,globalTimeline:A,core:{PropTween:Pn,globals:vt,Tween:gn,Timeline:on,Animation:sn,getCache:Dt,_removeLinkedListItem:Ht,reverting:function(){return T},context:function(t){return t&&k&&(k.data.push(t),t._ctx=k),k},suppressOverwrites:function(t){return w=t}}};Rt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Yn[t]=gn[t]})),je.add(on.updateRoot),D=Yn.to({},{duration:0});var Un=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Xn=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(H(n)&&(r={},Rt(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Un(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},jn=Yn.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,s,o;for(a in this.tween=n,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],r,i,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)T?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Xn("roundProps",Ae),Xn("modifiers"),Xn("snap",Oe))||Yn;gn.version=on.version=jn.version="3.13.0",C=1,et()&&Ve(),Ge.Power0,Ge.Power1,Ge.Power2,Ge.Power3,Ge.Power4,Ge.Linear,Ge.Quad,Ge.Cubic,Ge.Quart,Ge.Quint,Ge.Strong,Ge.Elastic,Ge.Back,Ge.SteppedEase,Ge.Bounce,Ge.Sine,Ge.Expo,Ge.Circ;var Vn,Gn,Wn,Hn,Qn,Zn,Jn,Kn,tr={},er=180/Math.PI,nr=Math.PI/180,rr=Math.atan2,ir=/([A-Z])/g,ar=/(left|right|width|margin|padding|x)/i,sr=/[\s,\(]\S/,or={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ur=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},lr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},hr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},cr=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},pr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},fr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},dr=function(t,e,n){return t.style[e]=n},_r=function(t,e,n){return t.style.setProperty(e,n)},mr=function(t,e,n){return t._gsap[e]=n},vr=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},gr=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},yr=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},br="transform",xr=br+"Origin",wr=function t(e,n){var r=this,i=this.target,a=i.style,s=i._gsap;if(e in tr&&a){if(this.tfm=this.tfm||{},"transform"===e)return or.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=or[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Br(i,t)})):this.tfm[e]=s.x?s[e]:Br(i,e),e===xr&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(br)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(xr,n,"")),e=br}(a||n)&&this.props.push(e,n,a[e])},Tr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},kr=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?2===n[t+1]?r[n[t]](n[t+2]):r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(ir,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Jn())&&t.isStart||i[br]||(Tr(i),a.zOrigin&&i[xr]&&(i[xr]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},Ar=function(t,e){var n={target:t,props:[],revert:kr,save:wr};return t._gsap||jn.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach((function(t){return n.save(t)})),n},Or=function(t,e){var n=Gn.createElementNS?Gn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gn.createElement(t);return n&&n.style?n:Gn.createElement(t)},Mr=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ir,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Cr(n)||n,1)||""},Er="O,Moz,ms,Ms,Webkit".split(","),Cr=function(t,e,n){var r=(e||Qn).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Er[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Er[i]:"")+t},Sr=function(){"undefined"!=typeof window&&window.document&&(Vn=window,Gn=Vn.document,Wn=Gn.documentElement,Qn=Or("div")||{style:{}},Or("div"),br=Cr(br),xr=br+"Origin",Qn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Kn=!!Cr("perspective"),Jn=jn.core.reverting,Hn=1)},Dr=function(t){var e,n=t.ownerSVGElement,r=Or("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",r.appendChild(i),Wn.appendChild(r);try{e=i.getBBox()}catch(t){}return r.removeChild(i),Wn.removeChild(r),e},Pr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Rr=function(t){var e,n;try{e=t.getBBox()}catch(r){e=Dr(t),n=1}return e&&(e.width||e.height)||n||(e=Dr(t)),!e||e.width||e.x||e.y?e:{x:+Pr(t,["x","cx","x1"])||0,y:+Pr(t,["y","cy","y1"])||0,width:0,height:0}},zr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Rr(t))},Fr=function(t,e){if(e){var n,r=t.style;e in tr&&e!==xr&&(e=br),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(ir,"-$1").toLowerCase())):r.removeAttribute(e)}},Lr=function(t,e,n,r,i,a){var s=new Pn(t._pt,e,n,0,1,a?fr:pr);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},Ir={deg:1,rad:1,turn:1},Nr={grid:1,flex:1},$r=function t(e,n,r,i){var a,s,o,u,l=parseFloat(r)||0,h=(r+"").trim().substr((l+"").length)||"px",c=Qn.style,p=ar.test(n),f="svg"===e.tagName.toLowerCase(),d=(f?"client":"offset")+(p?"Width":"Height"),_=100,m="px"===i,v="%"===i;if(i===h||!l||Ir[i]||Ir[h])return l;if("px"!==h&&!m&&(l=t(e,n,r,"px")),u=e.getCTM&&zr(e),(v||"%"===h)&&(tr[n]||~n.indexOf("adius")))return a=u?e.getBBox()[p?"width":"height"]:e[d],zt(v?l/a*_:l/100*a);if(c[p?"width":"height"]=_+(m?h:i),s="rem"!==i&&~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Gn&&s.appendChild||(s=Gn.body),(o=s._gsap)&&v&&o.width&&p&&o.time===je.time&&!o.uncache)return zt(l/o.width*_);if(!v||"height"!==n&&"width"!==n)(v||"%"===h)&&!Nr[Mr(s,"display")]&&(c.position=Mr(e,"position")),s===e&&(c.position="static"),s.appendChild(Qn),a=Qn[d],s.removeChild(Qn),c.position="absolute";else{var g=e.style[n];e.style[n]=_+i,a=e[d],g?e.style[n]=g:Fr(e,n)}return p&&v&&((o=Dt(s)).time=je.time,o.width=s[d]),zt(m?a*l/_:a&&l?_/a*l:0)},Br=function(t,e,n,r){var i;return Hn||Sr(),e in or&&"transform"!==e&&~(e=or[e]).indexOf(",")&&(e=e.split(",")[0]),tr[e]&&"transform"!==e?(i=Zr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Jr(Mr(t,xr))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Xr[e]&&Xr[e](t,e,n)||Mr(t,e)||Pt(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?$r(t,e,i,n)+n:i},qr=function(t,e,n,r){if(!n||"none"===n){var i=Cr(e,t,1),a=i&&Mr(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Mr(t,"borderTopColor"))}var s,o,u,l,h,c,p,f,d,_,m,v=new Pn(this._pt,t.style,e,0,1,On),g=0,y=0;if(v.b=n,v.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=Mr(t,r.substring(4,r.indexOf(")")))),"auto"===r&&(c=t.style[e],t.style[e]=r,r=Mr(t,e)||r,c?t.style[e]=c:Fr(t,e)),Xe(s=[n,r]),r=s[1],u=(n=s[0]).match(ot)||[],(r.match(ot)||[]).length){for(;o=ot.exec(r);)p=o[0],d=r.substring(g,o.index),h?h=(h+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(h=1),p!==(c=u[y++]||"")&&(l=parseFloat(c)||0,m=c.substr((l+"").length),"="===p.charAt(1)&&(p=Lt(l,p)+m),f=parseFloat(p),_=p.substr((f+"").length),g=ot.lastIndex-_.length,_||(_=_||$.units[e]||m,g===r.length&&(r+=_,v.e+=_)),m!==_&&(l=$r(t,e,c,_)||0),v._pt={_next:v._pt,p:d||1===y?d:",",s:l,c:f-l,m:h&&h<4||"zIndex"===e?Math.round:0});v.c=g<r.length?r.substring(g,r.length):""}else v.r="display"===e&&"none"===r?fr:pr;return lt.test(r)&&(v.e=0),this._pt=v,v},Yr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ur=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)n=o[i],tr[n]&&(r=1,n="transformOrigin"===n?xr:br),Fr(a,n);r&&(Fr(a,br),u&&(u.svg&&a.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Zr(a,1),u.uncache=1,Tr(s)))}},Xr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Pn(t._pt,e,n,0,0,Ur);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},jr=[1,0,0,1,0,0],Vr={},Gr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Wr=function(t){var e=Mr(t,br);return Gr(e)?jr:e.substr(7).match(st).map(zt)},Hr=function(t,e){var n,r,i,a,s=t._gsap||Dt(t),o=t.style,u=Wr(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?jr:u:(u!==jr||t.offsetParent||t===Wn||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(a=1,r=t.nextElementSibling,Wn.appendChild(t)),u=Wr(t),i?o.display=i:Fr(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Wn.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Qr=function(t,e,n,r,i,a){var s,o,u,l=t._gsap,h=i||Hr(t,!0),c=l.xOrigin||0,p=l.yOrigin||0,f=l.xOffset||0,d=l.yOffset||0,_=h[0],m=h[1],v=h[2],g=h[3],y=h[4],b=h[5],x=e.split(" "),w=parseFloat(x[0])||0,T=parseFloat(x[1])||0;n?h!==jr&&(o=_*g-m*v)&&(u=w*(-m/o)+T*(_/o)-(_*b-m*y)/o,w=w*(g/o)+T*(-v/o)+(v*b-g*y)/o,T=u):(w=(s=Rr(t)).x+(~x[0].indexOf("%")?w/100*s.width:w),T=s.y+(~(x[1]||x[0]).indexOf("%")?T/100*s.height:T)),r||!1!==r&&l.smooth?(y=w-c,b=T-p,l.xOffset=f+(y*_+b*v)-y,l.yOffset=d+(y*m+b*g)-b):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=T,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[xr]="0px 0px",a&&(Lr(a,l,"xOrigin",c,w),Lr(a,l,"yOrigin",p,T),Lr(a,l,"xOffset",f,l.xOffset),Lr(a,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Zr=function(t,e){var n=t._gsap||new an(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,l,h,c,p,f,d,_,m,v,g,y,b,x,w,T,k,A,O,M,E,C,S,D,P,R,z,F=t.style,L=n.scaleX<0,I="px",N="deg",B=getComputedStyle(t),q=Mr(t,xr)||"0";return r=i=a=u=l=h=c=p=f=0,s=o=1,n.svg=!(!t.getCTM||!zr(t)),B.translate&&("none"===B.translate&&"none"===B.scale&&"none"===B.rotate||(F[br]=("none"!==B.translate?"translate3d("+(B.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==B.rotate?"rotate("+B.rotate+") ":"")+("none"!==B.scale?"scale("+B.scale.split(" ").join(",")+") ":"")+("none"!==B[br]?B[br]:"")),F.scale=F.rotate=F.translate="none"),m=Hr(t,n.svg),n.svg&&(n.uncache?(M=t.getBBox(),q=n.xOrigin-M.x+"px "+(n.yOrigin-M.y)+"px",O=""):O=!e&&t.getAttribute("data-svg-origin"),Qr(t,O||q,!!O||n.originIsAbsolute,!1!==n.smooth,m)),d=n.xOrigin||0,_=n.yOrigin||0,m!==jr&&(b=m[0],x=m[1],w=m[2],T=m[3],r=k=m[4],i=A=m[5],6===m.length?(s=Math.sqrt(b*b+x*x),o=Math.sqrt(T*T+w*w),u=b||x?rr(x,b)*er:0,(c=w||T?rr(w,T)*er+u:0)&&(o*=Math.abs(Math.cos(c*nr))),n.svg&&(r-=d-(d*b+_*w),i-=_-(d*x+_*T))):(z=m[6],P=m[7],C=m[8],S=m[9],D=m[10],R=m[11],r=m[12],i=m[13],a=m[14],l=(v=rr(z,D))*er,v&&(O=k*(g=Math.cos(-v))+C*(y=Math.sin(-v)),M=A*g+S*y,E=z*g+D*y,C=k*-y+C*g,S=A*-y+S*g,D=z*-y+D*g,R=P*-y+R*g,k=O,A=M,z=E),h=(v=rr(-w,D))*er,v&&(g=Math.cos(-v),R=T*(y=Math.sin(-v))+R*g,b=O=b*g-C*y,x=M=x*g-S*y,w=E=w*g-D*y),u=(v=rr(x,b))*er,v&&(O=b*(g=Math.cos(v))+x*(y=Math.sin(v)),M=k*g+A*y,x=x*g-b*y,A=A*g-k*y,b=O,k=M),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,h=180-h),s=zt(Math.sqrt(b*b+x*x+w*w)),o=zt(Math.sqrt(A*A+z*z)),v=rr(k,A),c=Math.abs(v)>2e-4?v*er:0,f=R?1/(R<0?-R:R):0),n.svg&&(O=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Gr(Mr(t,br)),O&&t.setAttribute("transform",O))),Math.abs(c)>90&&Math.abs(c)<270&&(L?(s*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,c+=c<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=zt(s),n.scaleY=zt(o),n.rotation=zt(u)+N,n.rotationX=zt(l)+N,n.rotationY=zt(h)+N,n.skewX=c+N,n.skewY=p+N,n.transformPerspective=f+I,(n.zOrigin=parseFloat(q.split(" ")[2])||!e&&n.zOrigin||0)&&(F[xr]=Jr(q)),n.xOffset=n.yOffset=0,n.force3D=$.force3D,n.renderTransform=n.svg?ai:Kn?ii:ti,n.uncache=0,n},Jr=function(t){return(t=t.split(" "))[0]+" "+t[1]},Kr=function(t,e,n){var r=ge(e);return zt(parseFloat(e)+parseFloat($r(t,"x",n+"px",r)))+r},ti=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ii(t,e)},ei="0deg",ni="0px",ri=") ",ii=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,s=n.y,o=n.z,u=n.rotation,l=n.rotationY,h=n.rotationX,c=n.skewX,p=n.skewY,f=n.scaleX,d=n.scaleY,_=n.transformPerspective,m=n.force3D,v=n.target,g=n.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(g&&(h!==ei||l!==ei)){var x,w=parseFloat(l)*nr,T=Math.sin(w),k=Math.cos(w);w=parseFloat(h)*nr,x=Math.cos(w),a=Kr(v,a,T*x*-g),s=Kr(v,s,-Math.sin(w)*-g),o=Kr(v,o,k*x*-g+g)}_!==ni&&(y+="perspective("+_+ri),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(b||a!==ni||s!==ni||o!==ni)&&(y+=o!==ni||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+ri),u!==ei&&(y+="rotate("+u+ri),l!==ei&&(y+="rotateY("+l+ri),h!==ei&&(y+="rotateX("+h+ri),c===ei&&p===ei||(y+="skew("+c+", "+p+ri),1===f&&1===d||(y+="scale("+f+", "+d+ri),v.style[br]=y||"translate(0, 0)"},ai=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,l=o.yPercent,h=o.x,c=o.y,p=o.rotation,f=o.skewX,d=o.skewY,_=o.scaleX,m=o.scaleY,v=o.target,g=o.xOrigin,y=o.yOrigin,b=o.xOffset,x=o.yOffset,w=o.forceCSS,T=parseFloat(h),k=parseFloat(c);p=parseFloat(p),f=parseFloat(f),(d=parseFloat(d))&&(f+=d=parseFloat(d),p+=d),p||f?(p*=nr,f*=nr,n=Math.cos(p)*_,r=Math.sin(p)*_,i=Math.sin(p-f)*-m,a=Math.cos(p-f)*m,f&&(d*=nr,s=Math.tan(f-d),i*=s=Math.sqrt(1+s*s),a*=s,d&&(s=Math.tan(d),n*=s=Math.sqrt(1+s*s),r*=s)),n=zt(n),r=zt(r),i=zt(i),a=zt(a)):(n=_,a=m,r=i=0),(T&&!~(h+"").indexOf("px")||k&&!~(c+"").indexOf("px"))&&(T=$r(v,"x",h,"px"),k=$r(v,"y",c,"px")),(g||y||b||x)&&(T=zt(T+g-(g*n+y*i)+b),k=zt(k+y-(g*r+y*a)+x)),(u||l)&&(s=v.getBBox(),T=zt(T+u/100*s.width),k=zt(k+l/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+T+","+k+")",v.setAttribute("transform",s),w&&(v.style[br]=s)},si=function(t,e,n,r,i){var a,s,o=360,u=H(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?er:1)-r,h=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=o)!==l%180&&(l+=l<0?o:-360),"cw"===a&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===a&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=s=new Pn(t._pt,e,n,r,l,lr),s.e=h,s.u="deg",t._props.push(n),s},oi=function(t,e){for(var n in e)t[n]=e[n];return t},ui=function(t,e,n){var r,i,a,s,o,u,l,h=oi({},n._gsap),c=n.style;for(i in h.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),c[br]=e,r=Zr(n,1),Fr(n,br),n.setAttribute("transform",a)):(a=getComputedStyle(n)[br],c[br]=e,r=Zr(n,1),c[br]=a),tr)(a=h[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=ge(a)!==(l=ge(s))?$r(n,i,a,l):parseFloat(a),u=parseFloat(s),t._pt=new Pn(t._pt,r,i,o,u-o,ur),t._pt.u=l||0,t._props.push(i));oi(r,h)};Rt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",s=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Xr[e>1?"border"+t:t]=function(t,e,n,r,i){var a,o;if(arguments.length<4)return a=s.map((function(e){return Br(t,e,n)})),5===(o=a.join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},s.forEach((function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,o,i)}}));var li,hi,ci={name:"css",register:Sr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,l,h,c,p,f,d,_,m,v,g,y,b,x,w,T,k,A=this._props,O=t.style,M=n.vars.startAt;for(c in Hn||Sr(),this.styles=this.styles||Ar(t),b=this.styles.props,this.tween=n,e)if("autoRound"!==c&&(s=e[c],!At[c]||!pn(c,e,n,r,t,i)))if(l=typeof s,h=Xr[c],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=Ce(s)),h)h(this,t,c,s,n)&&(y=1);else if("--"===c.substr(0,2))a=(getComputedStyle(t).getPropertyValue(c)+"").trim(),s+="",Ye.lastIndex=0,Ye.test(a)||(p=ge(a),f=ge(s)),f?p!==f&&(a=$r(t,c,a,f)+f):p&&(s+=p),this.add(O,"setProperty",a,s,r,i,0,0,c),A.push(c),b.push(c,0,O[c]);else if("undefined"!==l){if(M&&c in M?(a="function"==typeof M[c]?M[c].call(n,r,t,i):M[c],H(a)&&~a.indexOf("random(")&&(a=Ce(a)),ge(a+"")||"auto"===a||(a+=$.units[c]||ge(Br(t,c))||""),"="===(a+"").charAt(1)&&(a=Br(t,c))):a=Br(t,c),u=parseFloat(a),(d="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),c in or&&("autoAlpha"===c&&(1===u&&"hidden"===Br(t,"visibility")&&o&&(u=0),b.push("visibility",0,O.visibility),Lr(this,O,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==c&&"transform"!==c&&~(c=or[c]).indexOf(",")&&(c=c.split(",")[0])),_=c in tr)if(this.styles.save(c),"string"===l&&"var(--"===s.substring(0,6)&&(s=Mr(t,s.substring(4,s.indexOf(")"))),o=parseFloat(s)),m||((v=t._gsap).renderTransform&&!e.parseTransform||Zr(t,e.parseTransform),g=!1!==e.smoothOrigin&&v.smooth,(m=this._pt=new Pn(this._pt,O,br,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new Pn(this._pt,v,"scaleY",v.scaleY,(d?Lt(v.scaleY,d+o):o)-v.scaleY||0,ur),this._pt.u=0,A.push("scaleY",c),c+="X";else{if("transformOrigin"===c){b.push(xr,0,O[xr]),w=void 0,T=void 0,k=void 0,T=(w=(x=s).split(" "))[0],k=w[1]||"50%","top"!==T&&"bottom"!==T&&"left"!==k&&"right"!==k||(x=T,T=k,k=x),w[0]=Yr[T]||T,w[1]=Yr[k]||k,s=w.join(" "),v.svg?Qr(t,s,0,g,0,this):((f=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&Lr(this,v,"zOrigin",v.zOrigin,f),Lr(this,O,c,Jr(a),Jr(s)));continue}if("svgOrigin"===c){Qr(t,s,1,g,0,this);continue}if(c in Vr){si(this,v,c,u,d?Lt(u,d+s):s);continue}if("smoothOrigin"===c){Lr(this,v,"smooth",v.smooth,s);continue}if("force3D"===c){v[c]=s;continue}if("transform"===c){ui(this,s,t);continue}}else c in O||(c=Cr(c)||c);if(_||(o||0===o)&&(u||0===u)&&!sr.test(s)&&c in O)o||(o=0),(p=(a+"").substr((u+"").length))!==(f=ge(s)||(c in $.units?$.units[c]:p))&&(u=$r(t,c,a,f)),this._pt=new Pn(this._pt,_?v:O,c,u,(d?Lt(u,d+o):o)-u,_||"px"!==f&&"zIndex"!==c||!1===e.autoRound?ur:cr),this._pt.u=f||0,p!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=hr);else if(c in O)qr.call(this,t,c,a,d?d+s:s);else if(c in t)this.add(t,c,a||t[c],d?d+s:s,r,i);else if("parseTransform"!==c){_t(c,s);continue}_||(c in O?b.push(c,0,O[c]):"function"==typeof t[c]?b.push(c,2,t[c]()):b.push(c,1,a||t[c])),A.push(c)}y&&Dn(this)},render:function(t,e){if(e.tween._time||!Jn())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Br,aliases:or,getSetter:function(t,e,n){var r=or[e];return r&&r.indexOf(",")<0&&(e=r),e in tr&&e!==xr&&(t._gsap.x||Br(t,"x"))?n&&Zn===n?"scale"===e?vr:mr:(Zn=n||{})&&("scale"===e?gr:yr):t.style&&!J(t.style[e])?dr:~e.indexOf("-")?_r:Tn(t,e)},core:{_removeProperty:Fr,_getMatrix:Hr}};jn.utils.checkPrefix=Cr,jn.core.getStyleSaver=Ar,hi=Rt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(li="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){tr[t]=1})),Rt(li,(function(t){$.units[t]="deg",Vr[t]=1})),or[hi[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+li,Rt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");or[e[1]]=hi[e[0]]})),Rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){$.units[t]="px"})),jn.registerPlugin(ci);var pi=jn.registerPlugin(ci)||jn;pi.core.Tween;const fi=[];function di(t){const{overlay:e,group:n,name:i,maxOpacity:o}=t;let u=!1;if(u=n?function(t){const e=document.querySelectorAll(`[${a}="${t}"]`);return Array.from(e).some((t=>{const e=t.getAttribute(s);return"active"===e||"open"===e}))}(n):i?function(t){const e=document.querySelectorAll(`[${r}="${t}"]`);return Array.from(e).some((t=>{const e=t.getAttribute(s);return"active"===e||"open"===e}))}(i):function(t){const e=t.parentElement;if(!e)return!1;const n=e.getAttribute(s);return"active"===n||"open"===n}(e),t.currentTimeline&&(t.currentTimeline.kill(),t.currentTimeline=null),u){const n=pi.timeline();n.set(e,{display:"flex"}),n.to(e,{opacity:o,duration:.3}),t.currentTimeline=n}else{const n=pi.timeline({onComplete:()=>{pi.set(e,{display:"none"})}});n.to(e,{opacity:0,duration:.3}),t.currentTimeline=n}}var _i=n(72),mi=n.n(_i),vi=n(825),gi=n.n(vi),yi=n(659),bi=n.n(yi),xi=n(56),wi=n.n(xi),Ti=n(540),ki=n.n(Ti),Ai=n(113),Oi=n.n(Ai),Mi=n(123),Ei={};return Ei.styleTagTransform=Oi(),Ei.setAttributes=wi(),Ei.insert=bi().bind(null,"head"),Ei.domAPI=gi(),Ei.insertStyleElement=ki(),mi()(Mi.A,Ei),Mi.A&&Mi.A.locals&&Mi.A.locals,console.log("🌸 Hello from Wellflow Petal v0.0.88"),function(){const t=h(l);t.forEach(((e,n)=>{const a=e.getAttribute(r)||null,s=function(t){return{name:t.getAttribute(r)||"unknown",debug:"true"===t.getAttribute(o),lockScrollOnOpen:"false"!==t.getAttribute("petal-lock-scroll-on-open"),animOpen:t.getAttribute("petal-anim-open"),animClose:t.getAttribute("petal-anim-close")}}(e);f(s.debug,"MODAL",`Processing ${a} (${n+1}/${t.length})`),function(t){t.debug&&console.log(t)}(s);const _=function(t,e,n){const a=function(t,e){return document.querySelector(`[${r}='${t}'][${i}='${e}']`)}(e,n);return a||function(t,e){return t.querySelector(`[${i}='${e}']`)}(t,n)}(e,a,"dialog"),m=c(e,a,"trigger-open"),v=c(e,a,u);if(d(s.debug,"MODAL","open trigger",m),d(s.debug,"MODAL","close trigger",v),!_||!m||!v)return void console.error(`[ERROR] Modal "${a}" is missing required elements. Ensure dialog, open triggers, and close triggers are present.`);const g=new y({modal:e,dialog:_,openTriggers:m,closeTriggers:v},s);null==m||m.forEach(((t,e)=>{t.addEventListener("click",(()=>{g.open()}))})),null==v||v.forEach(((t,e)=>{t.addEventListener("click",(()=>{g.close()}))})),a||[...Array.from(h(u))].forEach((t=>{t.getAttribute(r)||p(t,l)===e&&t.addEventListener("click",(()=>{g.close()}))}))}))}(),h("banner").forEach((t=>{const e=t.getAttribute(r);if(!e)return void console.warn("Banner element is missing a name attribute. Each banner must have a unique name to function properly.");const n=function(t){return{allowClose:"false"!==t.getAttribute("petal-allow-close"),debug:"true"===t.getAttribute(o),sessionTTLMinutes:parseFloat(t.getAttribute("petal-session-ttl")||"30")}}(t);f(n.debug,"BANNER","Banner Configuration:"),n.debug&&console.log(n);const a=t.querySelectorAll(`[${i}="banner-close"]`);d(n.debug,"BANNER","close button",a),n.allowClose||(a.forEach((t=>{t.style.display="none"})),function(t,e){sessionStorage.removeItem(m("banner",e))}(0,e)),n.allowClose&&(function(t,e,n){const r=sessionStorage.getItem(m(t,e));if(!r)return!1;const i=parseInt(r,10);if(isNaN(i))return sessionStorage.removeItem(m(t,e)),!1;const a=new Date,s=new Date(i);return!((a.getTime()-s.getTime())/6e4>n&&(sessionStorage.removeItem(m(t,e)),1))}("banner",e,n.sessionTTLMinutes)&&t.classList.add("petal-hide-banner"),a.forEach((n=>{n.addEventListener("click",(()=>{t.classList.add("petal-hide-banner"),_("banner",e)}))})))})),h("overlay").forEach(((t,e)=>{const n=t.getAttribute(a),i=t.getAttribute(r);f("true"===t.getAttribute(o),"OVERLAY",`Overlay ${e+1} - Group: "${n}", Name: "${i}"`);const u=function(t){const e=t.getAttribute(a),n=t.getAttribute(r),i=p(t,"modal"),o=p(t,"dropdown");if(!e&&!n&&(i||o))return null;const u=parseFloat(t.getAttribute("petal-overlay-opacity")||"1"),l={overlay:t,group:e,name:n,maxOpacity:u,observer:null,currentTimeline:null,cleanup:()=>{}};pi.set(t,{opacity:0,display:"none"}),di(l);const h=new MutationObserver((i=>{i.some((i=>{if("attributes"===i.type&&i.attributeName===s){const s=i.target;return!(!e||s.getAttribute(a)!==e)||!(!n||s.getAttribute(r)!==n)||!e&&!n&&s===t.parentElement}return!1}))&&di(l)}));return h.observe(document.body,{attributes:!0,attributeFilter:[s],subtree:!0}),l.observer=h,l.cleanup=()=>{h.disconnect()},l}(t);u&&fi.push(u)})),{}})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.petal=t():e.petal=t()}(this,(()=>(()=>{"use strict";const e="petal",t="petal-el",o="petal-debug",n="petal-trigger",r="modal",l="petal-memory",i="petal-memory-expires";function s(e){return document.querySelectorAll(`[${t}='${e}']`)}function a(t,o,r){if(console.log(`Searching for triggers of type "${r}" with name "${o}"`),o){const t=document.querySelectorAll(`[${n}="${r}"][${e}="${o}"]`);if(console.log(`Global match for triggers of type "${r}" with name "${o}":`,t),t&&t.length>0)return t}return console.log(`Searching for triggers of type "${r}" within parent:`,t),t.querySelectorAll(`[${n}="${r}"]`)}function c(e){if(null===e)return;const t=e.toLowerCase();return"true"===t||"on"===t}function u(e){if(null===e)return;const t=e.match(/^(\d+(?:\.\d+)?)(ms|s|m|h|d|y)$/);if(!t)return;const o=parseFloat(t[1]),n=t[2];if(isNaN(o))return;const r=Date.now();let l=0;switch(n){case"ms":l=o;break;case"s":l=1e3*o;break;case"m":l=60*o*1e3;break;case"h":l=60*o*60*1e3;break;case"d":l=24*o*60*60*1e3;break;case"y":l=365.25*o*24*60*60*1e3;break;default:return}return new Date(r+l)}function g(e,t,o){e&&console.log(`🌸 [${t}] ${o}`)}function m(e,t,o,n){if(!e)return;const r=n instanceof NodeList?n.length:n?1:0;console.log(`🌸 [${t}] Found ${r} ${o}(s)`),r>0&&console.log(n)}function d(e,t,o){localStorage.setItem(p(e,t),o.getTime().toString())}function f(e,t){const o=localStorage.getItem(p(e,t));if(!o)return!1;const n=parseInt(o,10);return isNaN(n)?(localStorage.removeItem(p(e,t)),!1):!(Date.now()>=n&&(localStorage.removeItem(p(e,t)),1))}function p(e,t){return`petal_memory_${e}_${t}`}let b=0,y=0;class h{constructor(e,t){this.elements=e,this.config=t,this.open=()=>{this.config.lockScroll&&(0===b&&(y=window.pageYOffset||document.documentElement.scrollTop,document.body.style.position="fixed",document.body.style.top=`-${y}px`,document.body.style.width="100%"),b++,this.config.debug&&console.log(`[DEBUG] Modal "${this.config.name}" - Locked scroll`)),Webflow.require("ix3").emit(this.config.animOpen)},this.close=()=>{this.config.lockScroll&&(b>0&&b--,0===b&&(document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,y)),this.config.debug&&console.log(`[DEBUG] Modal "${this.config.name}" - Unlocked scroll`)),this.elements.modal.querySelectorAll("video").forEach((e=>{e.paused||e.pause()})),function(e,t){const o=new Date;sessionStorage.setItem(p("modal",t),o.getTime().toString())}(0,this.config.name),this.config.memory.enabled&&this.config.memory.expires&&(d("modal",this.config.name,this.config.memory.expires),this.config.debug&&console.log(`[DEBUG] Modal "${this.config.name}" - Stored in memory until ${this.config.memory.expires.toISOString()}`)),Webflow.require("ix3").emit(this.config.animClose)}}}return console.log("🌸 Hello from Wellflow Petal v0.1.3"),function(){const d=s(r);d.forEach(((s,p)=>{const b=s.getAttribute(e)||null,y=function(t){var n,r,s,a;return{name:t.getAttribute(e)||"unknown",debug:null!==(n=c(t.getAttribute(o)))&&void 0!==n&&n,lockScroll:null===(r=c(t.getAttribute("petal-lock-scroll-on-open")))||void 0===r||r,animOpen:t.getAttribute("petal-anim-open"),animClose:t.getAttribute("petal-anim-close"),autoOpen:null!==(s=c(t.getAttribute("petal-auto-open")))&&void 0!==s&&s,autoOpenDelay:u(t.getAttribute("petal-auto-open-delay")),memory:{enabled:null!==(a=c(t.getAttribute(l)))&&void 0!==a&&a,expires:u(t.getAttribute(i))}}}(s);g(y.debug,"MODAL",`Processing ${b} (${p+1}/${d.length})`),function(e){e.debug&&console.log(e)}(y);const $=function(o,n,r){const l=function(o,n){return document.querySelector(`[${e}='${o}'][${t}='${n}']`)}(n,r);return l||function(e,o){return e.querySelector(`[${t}='${o}']`)}(o,r)}(s,b,"dialog"),A=a(s,b,"open"),S=a(s,b,"close");if(m(y.debug,"MODAL","open trigger",A),m(y.debug,"MODAL","close trigger",S),!$||!A||!S)return void console.error(`[ERROR] Modal "${b}" is missing required elements. Ensure dialog, open triggers, and close triggers are present.`);const w=new h({modal:s,dialog:$,openTriggers:A,closeTriggers:S},y);if(null==A||A.forEach(((e,t)=>{e.addEventListener("click",(()=>{w.open()}))})),null==S||S.forEach(((e,t)=>{e.addEventListener("click",(()=>{w.close()}))})),b||[...Array.from(document.querySelectorAll(`[${n}="close"]`))].forEach((o=>{o.getAttribute(e)||function(e,o){let n=e.parentElement;for(;n;){if(n.getAttribute(t)===o)return n;n=n.parentElement}return null}(o,r)===s&&o.addEventListener("click",(()=>{w.close()}))})),y.autoOpen)if(y.memory.enabled&&f("modal",y.name))g(y.debug,"MODAL",`Skipping auto-open for "${b}" - still in memory`);else{const e=y.autoOpenDelay?y.autoOpenDelay.getTime()-Date.now():0;g(y.debug,"MODAL",`Auto-opening "${b}" after ${e}ms`),setTimeout((()=>{w.open()}),e)}}))}(),s("banner").forEach((n=>{const r=n.getAttribute(e);if(!r)return void console.warn("Banner element is missing a name attribute. Each banner must have a unique name to function properly.");const s=function(e){var t,n,r;return{allowClose:null===(t=c(e.getAttribute("petal-allow-close")))||void 0===t||t,debug:null!==(n=c(e.getAttribute(o)))&&void 0!==n&&n,memory:{enabled:null!==(r=c(e.getAttribute(l)))&&void 0!==r&&r,expires:u(e.getAttribute(i))}}}(n);g(s.debug,"BANNER","Banner Configuration:"),s.debug&&console.log(s);const a=n.querySelectorAll(`[${t}="banner-close"]`);if(s.allowClose||(a.forEach((e=>{e.style.display="none"})),function(e,t){sessionStorage.removeItem(p("banner",t))}(0,r),function(e,t){localStorage.removeItem(p("banner",t))}(0,r)),s.allowClose){let e=!1;s.memory.enabled&&f("banner",r)&&(e=!0,g(s.debug,"BANNER",`Banner "${r}" is in memory - hiding`)),e&&n.classList.add("petal-hide-banner"),a.forEach((e=>{e.addEventListener("click",(()=>{n.classList.add("petal-hide-banner"),s.memory.enabled&&s.memory.expires&&(d("banner",r,s.memory.expires),g(s.debug,"BANNER",`Banner "${r}" stored in memory until ${s.memory.expires.toISOString()}`))}))}))}})),{}})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "well-petal",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Webflow Popups powered by Attributes",
5
5
  "main": "dist/petal.js",
6
6
  "files": [