1(self.webpackChunk_roots_bud_sage=self.webpackChunk_roots_bud_sage||[]).push([[143],{
vendor: 50,144 bytes, line 1
1"../node_modules/flickity/dist/flickity.pkgd.js":function(t,e,i){var r,n,s,a,o,l,h,c,p,u,f,d,m,g,y,v,_,b,x,w,S,E,P,C,A,k,T,M,D,F,I,L,R,B,V,O,z,N,G,q,H,$,j,W,Y;!function(r){W=[i("jquery")],Y=function(t){return function(t,e){"use strict";var i=Array.prototype.slice,r=t.console,n=void 0===r?function(){}:function(t){r.error(t)};function s(r,s,o){function l(t,e,i){var s,a="$()."+r+'("'+e+'")';return t.each(function(t,l){var h=o.data(l,r);if(h){var c=h[e];if(c&&"_"!=e.charAt(0)){var p=c.apply(h,i);s=void 0===s?p:s}else n(a+" is not a valid method")}else n(r+" not initialized. Cannot call methods, i.e. "+a)}),void 0!==s?s:t}function h(t,e){t.each(function(t,i){var n=o.data(i,r);n?(n.option(e),n._init()):(n=new s(i,e),o.data(i,r,n))})}(o=o||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){o.isPlainObject(t)&&(this.options=o.extend(!0,this.options,t))}),o.fn[r]=function(t){return"string"==typeof t?l(this,t,i.call(arguments,1)):(h(this,t),this)},a(o))}function a(t){!t||t&&t.bridget||(t.bridget=s)}return a(e||t.jQuery),s}(r,t)}.apply(e,W),void 0===Y||(t.exports=Y)}(window),"undefined"!=typeof window&&window,"function"==typeof(n=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},r=i[t]=i[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var r=i.indexOf(e);return-1!=r&&i.splice(r,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n];r&&r[s]&&(this.off(t,s),delete r[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?(s={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},r=n.call(s.exports,i,s.exports,s),s.loaded=!0,void 0===r&&(r=s.exports)):r=n,window,"function"==typeof(o=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}var i="undefined"==typeof console?e:function(t){console.error(t)},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=r.length;function s(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<n;e++)t[r[e]]=0;return t}function a(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var o,l=!1;function h(){if(!l){l=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var r=a(e);o=200==Math.round(t(r.width)),c.isBoxSizeOuter=o,i.removeChild(e)}}function c(e){if(h(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var i=a(e);if("none"==i.display)return s();var l={};l.width=e.offsetWidth,l.height=e.offsetHeight;for(var c=l.isBorderBox="border-box"==i.boxSizing,p=0;p<n;p++){var u=r[p],f=i[u],d=parseFloat(f);l[u]=isNaN(d)?0:d}var m=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,y=l.marginLeft+l.marginRight,v=l.marginTop+l.marginBottom,_=l.borderLeftWidth+l.borderRightWidth,b=l.borderTopWidth+l.borderBottomWidth,x=c&&o,w=t(i.width);!1!==w&&(l.width=w+(x?0:m+_));var S=t(i.height);return!1!==S&&(l.height=S+(x?0:g+b)),l.innerWidth=l.width-(m+_),l.innerHeight=l.height-(g+b),l.outerWidth=l.width+y,l.outerHeight=l.height+v,l}}return c})?(l={id:"get-size/get-size",exports:{},loaded:!1},a=o.call(l.exports,i,l.exports,l),l.loaded=!0,void 0===a&&(a=l.exports)):a=o,function(t,e){"use strict";"function"==typeof(c=e)?(p={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},h=c.call(p.exports,i,p.exports,p),p.loaded=!0,void 0===h&&(h=p.exports)):h=c}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var r=e[i]+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}}),function(t){u=function(e){return function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},r=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?r.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,r){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(r){e(t,r)&&n.push(t);for(var i=t.querySelectorAll(r),s=0;s<i.length;s++)n.push(i[s])}else n.push(t)}),n},i.debounceMethod=function(t,e,i){i=i||100;var r=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){r.apply(s,e),delete s[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,r){i.docReady(function(){var s=i.toDashed(r),a="data-"+s,o=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+s),h=i.makeArray(o).concat(i.makeArray(l)),c=a+"-options",p=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(a)||t.getAttribute(c);try{i=s&&JSON.parse(s)}catch(e){return void(n&&n.error("Error parsing "+a+" on "+t.className+": "+e))}var o=new e(t,i);p&&p.data(t,r,o)})})},i}(t,e)}.apply(f={},W=[h]),void 0!==u||(u=f)}(window),window,void 0!==(d=function(t){return function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var r=i.prototype;return r.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},r.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},r.getSize=function(){this.size=e(this.element)},r.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},r.updateTarget=r.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},r.renderPosition=function(t){var e="left"===this.parent.originSide?1:-1,i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"},r.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},r.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},r.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},r.remove=function(){this.element.parentNode.removeChild(this.element)},i}(0,t)}.apply(m={},W=[a]))||(d=m),window,"function"==typeof(y=function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,r=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+r*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t})?(v={id:"flickity/js/slide",exports:{},loaded:!1},g=y.call(v.exports,i,v.exports,v),v.loaded=!0,void 0===g&&(g=v.exports)):g=y,window,void 0!==(_=function(t){return function(t,e){var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)==Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var r=0;r<t.length;r++){var n=t[r],s=e>0?i:0;n.wrapShift(s),e-=n.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}};return i}(0,t)}.apply(b={},W=[u]))||(_=b),function(t){x=function(e,i,r,n,s,a){return function(t,e,i,r,n,s,a){var o=t.jQuery,l=t.getComputedStyle,h=t.console;function c(t,e){for(t=r.makeArray(t);t.length;)e.appendChild(t.shift())}var p=0,u={};function f(t,e){var i=r.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var n=u[this.element.flickityGUID];return n&&n.option(e),n}o&&(this.$element=o(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e),this._create()}else h&&h.error("Bad element for Flickity: "+(i||t))}f.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},f.createMethods=[];var d=f.prototype;r.extend(d,e.prototype),d._create=function(){var e=this.guid=++p;for(var i in this.element.flickityGUID=e,u[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this),this.options.on){var r=this.options.on[i];this.on(i,r)}f.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},d.option=function(t){r.extend(this.options,t)},d.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},d._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},d._filterFindCellElements=function(t){return r.filterFindElements(t,this.options.cellSelector)},d.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},d._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new n(t,this)},this)},d.getLastCell=function(){return this.cells[this.cells.length-1]},d.getLastSlide=function(){return this.slides[this.slides.length-1]},d.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},d._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var r=this.cells.length,n=t;n<r;n++){var s=this.cells[n];s.setPosition(e),e+=s.size.outerWidth,this.maxCellHeight=Math.max(s.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=r?this.getLastSlide().target-this.slides[0].target:0},d._sizeCells=function(t){t.forEach(function(t){t.getSize()})},d.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new s(this);this.slides.push(t);var e="left"==this.originSide?"marginRight":"marginLeft",i=this._getCanCellFit();this.cells.forEach(function(r,n){if(t.cells.length){var a=t.outerWidth-t.firstMargin+(r.size.outerWidth-r.size[e]);i.call(this,n,a)||(t.updateTarget(),t=new s(this),this.slides.push(t)),t.addCell(r)}else t.addCell(r)},this),t.updateTarget(),this.updateSelectedSlide()}},d._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!==0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),r=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*r}},d._init=d.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},d.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var m={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};d.setCellAlign=function(){var t=m[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},d.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},d._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},d._getGapCells=function(t,e,i){for(var r=[];t>0;){var n=this.cells[e];if(!n)break;r.push(n),e+=i,t-=n.size.outerWidth}return r},d._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",r=this.slideableWidth-this.getLastCell().size[i],n=r<this.size.innerWidth,s=this.cursorPosition+this.cells[0].size[e],a=r-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){n?t.target=r*this.cellAlign:(t.target=Math.max(t.target,s),t.target=Math.min(t.target,a))},this)}},d.dispatchEvent=function(t,e,i){var r=e?[e].concat(i):i;if(this.emitEvent(t,r),o&&this.$element){var n=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var s=new o.Event(e);s.type=t,n=s}this.$element.trigger(n,i)}},d.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=r.modulo(t,this.slides.length)),this.slides[t])){var n=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=n&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},d._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=r.modulo(t,e),n=Math.abs(i-this.selectedIndex),s=Math.abs(i+e-this.selectedIndex),a=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&s<n?t+=e:!this.isDragSelect&&a<n&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},d.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},d.next=function(t,e){this.select(this.selectedIndex+1,t,e)},d.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},d.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},d.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},d.selectCell=function(t,e,i){var r=this.queryCell(t);if(r){var n=this.getCellSlideIndex(r);this.select(n,e,i)}},d.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){if(-1!=this.slides[e].cells.indexOf(t))return e}},d.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},d.getCells=function(t){t=r.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},d.getCellElements=function(){return this.cells.map(function(t){return t.element})},d.getParentCell=function(t){var e=this.getCell(t);return e||(t=r.getParent(t,".flickity-slider > *"),this.getCell(t))},d.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var n=[],s=e-t;s<=e+t;s++){var a=this.options.wrapAround?r.modulo(s,i):s,o=this.slides[a];o&&(n=n.concat(o.getCellElements()))}return n},d.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},d.uiChange=function(){this.emitEvent("uiChange")},d.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},d.onresize=function(){this.watchCSS(),this.resize()},r.debounceMethod(f,"onresize",150),d.resize=function(){if(this.isActive&&!this.isAnimating&&!this.isDragging){this.getSize(),this.options.wrapAround&&(this.x=r.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},d.watchCSS=function(){this.options.watchCSS&&(-1!=l(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},d.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=f.keyboardHandlers[t.keyCode];i&&i.call(this)}},f.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},d.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},d.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},d.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),o&&this.$element&&o.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},r.extend(d,a),f.data=function(t){var e=(t=r.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},r.htmlInit(f,"flickity"),o&&o.bridget&&o.bridget("flickity",f);return f.setJQuery=function(t){o=t},f.Cell=n,f.Slide=s,f}(t,e,i,r,n,s,a)}.apply(w={},W=[r,a,u,d,g,_]),void 0!==x||(x=w)}(window),function(t){S=function(e){return function(t,e){function i(){}function r(){}var n=r.prototype=Object.create(e.prototype);n.bindStartEvent=function(t){this._bindStartEvent(t,!0)},n.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},n._bindStartEvent=function(e,i){var r=(i=void 0===i||i)?"addEventListener":"removeEventListener",n="mousedown";"ontouchstart"in t?n="touchstart":t.PointerEvent&&(n="pointerdown"),e[r](n,this)},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},n.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},n.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},n.onpointerdown=function(t){this._pointerDown(t,t)},n._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},n.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var s={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return n._bindPostStartEvents=function(e){if(e){var i=s[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},n.onmousemove=function(t){this._pointerMove(t,t)},n.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},n.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},n._pointerMove=function(t,e){this.pointerMove(t,e)},n.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},n.onmouseup=function(t){this._pointerUp(t,t)},n.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},n.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},n._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},n._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},n._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},n.pointerDone=i,n.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},n.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},n._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},n.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},r.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},r}(t,e)}.apply(E={},W=[r]),void 0!==S||(S=E)}(window),function(t){P=function(e){return function(t,e){function i(){}var r=i.prototype=Object.create(e.prototype);r.bindHandles=function(){this._bindHandles(!0)},r.unbindHandles=function(){this._bindHandles(!1)},r._bindHandles=function(e){for(var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",r=e?this._touchActionValue:"",n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,e),s[i]("click",this),t.PointerEvent&&(s.style.touchAction=r)}},r._touchActionValue="none",r.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var n={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},s={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return r.okayPointerDown=function(t){var e=n[t.target.nodeName],i=s[t.target.type],r=!e||i;return r||this._pointerReset(),r},r.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},r.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},r._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},r.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},r._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},r._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},r.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},r._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},r.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},r._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},r.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},r.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},r._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},r.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}(t,e)}.apply(C={},W=[S]),void 0!==P||(P=C)}(window),function(t){A=function(e,i,r){return function(t,e,i,r){r.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var n=e.prototype;r.extend(n,i.prototype),n._touchActionValue="pan-y",n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.pointerDown=function(e,i){this.isDraggable?this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=a(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i)):this._pointerDownDefault(e,i)},n._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var s={INPUT:!0,TEXTAREA:!0,SELECT:!0};function a(){return{x:t.pageXOffset,y:t.pageYOffset}}return n.pointerDownFocus=function(t){s[t.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,r=s[t.target.nodeName];e||i||r||t.preventDefault()},n.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},n.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},n.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var r=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var n=this.dragStartPosition+i.x*r;if(!this.options.wrapAround&&this.slides.length){var s=Math.max(-this.slides[0].target,this.dragStartPosition);n=n>s?.5*(n+s):n;var a=Math.min(-this.getLastSlide().target,this.dragStartPosition);n=n<a?.5*(n+a):n}this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},n.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var r=this.getRestingPosition();this.isFreeScrolling=-r>this.slides[0].target&&-r<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},n.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),r=this._getClosestResting(t,e,-1);return i.distance<r.distance?i.index:r.index},n._getClosestResting=function(t,e,i){for(var r=this.selectedIndex,n=1/0,s=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};s(e,n)&&(r+=i,n=e,null!==(e=this.getSlideDistance(-t,r)));)e=Math.abs(e);return{distance:n,index:r-i}},n.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&i>1,s=n?r.modulo(e,i):e,a=this.slides[s];if(!a)return null;var o=n?this.slideableWidth*Math.floor(e/i):0;return t-(a.target+o)},n.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},n.staticClick=function(t,e){var i=this.getParentCell(t.target),r=i&&i.element,n=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,r,n])},n.onscroll=function(){var t=a(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}(t,e,i,r)}.apply(k={},W=[x,P,u]),void 0!==A||(A=k)}(window),window,void 0!==(T=function(t,e,i){return function(t,e,i,r){"use strict";var n="http://www.w3.org/2000/svg";function s(t,e){this.direction=t,this.parent=e,this._create()}function a(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}s.prototype=Object.create(i.prototype),s.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t=document.createElementNS(n,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(n,"path"),i=a(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},s.prototype.handleEvent=r.handleEvent,s.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},r.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var o=e.prototype;return o._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s(-1,this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},o.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},o.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=s,e}(0,t,e,i)}.apply(M={},W=[x,S,u]))||(T=M),window,void 0!==(D=function(t,e,i){return function(t,e,i,r){function n(t){this.parent=t,this._create()}n.prototype=Object.create(i.prototype),n.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},n.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},n.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},n.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},n.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],r=this.dots.length,n=r+t,s=r;s<n;s++){var a=document.createElement("li");a.className="dot",a.setAttribute("aria-label","Page dot "+(s+1)),e.appendChild(a),i.push(a)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},n.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},n.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},n.prototype.onTap=n.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},n.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=n,r.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var s=e.prototype;return s._createPageDots=function(){this.options.pageDots&&(this.pageDots=new n(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},s.activatePageDots=function(){this.pageDots.activate()},s.updateSelectedPageDots=function(){this.pageDots.updateSelected()},s.updatePageDots=function(){this.pageDots.setDots()},s.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=n,e}(0,t,e,i)}.apply(F={},W=[x,S,u]))||(D=F),window,void 0!==(I=function(t,e,i){return function(t,e,i){function r(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}r.prototype=Object.create(t.prototype),r.prototype.play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},r.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},r.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},r.prototype.clear=function(){clearTimeout(this.timeout)},r.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},r.prototype.unpause=function(){"paused"==this.state&&this.play()},r.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},r.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var n=i.prototype;return n._createPlayer=function(){this.player=new r(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},n.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},n.playPlayer=function(){this.player.play()},n.stopPlayer=function(){this.player.stop()},n.pausePlayer=function(){this.player.pause()},n.unpausePlayer=function(){this.player.unpause()},n.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},n.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},n.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=r,i}(t,e,i)}.apply(L={},W=[r,u,x]))||(I=L),window,void 0!==(R=function(t,e){return function(t,e,i){function r(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}var n=e.prototype;return n.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=r(i),a=e==n;if(a)this.slider.appendChild(s);else{var o=this.cells[e].element;this.slider.insertBefore(s,o)}if(0===e)this.cells=i.concat(this.cells);else if(a)this.cells=this.cells.concat(i);else{var l=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i),this.cellChange(e,!0)}},n.append=function(t){this.insert(t,this.cells.length)},n.prepend=function(t){this.insert(t,0)},n.remove=function(t){var e=this.getCells(t);if(e&&e.length){var r=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);r=Math.min(e,r),i.removeFrom(this.cells,t)},this),this.cellChange(r,!0)}},n.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},n.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var r=this.getCell(i);r&&(this.selectedIndex=this.getCellSlideIndex(r)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(B={},W=[x,u]))||(R=B),window,void 0!==(V=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createLazyload");var r=e.prototype;function n(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),r=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||r||n)return[t]}var s="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",a=t.querySelectorAll(s);return i.makeArray(a)}function s(t,e){this.img=t,this.flickity=e,this.load()}return r._createLazyload=function(){this.on("select",this.lazyLoad)},r.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),r=[];i.forEach(function(t){var e=n(t);r=r.concat(e)}),r.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),r=i&&i.element;this.flickity.cellSizeChange(r),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,r)},e.LazyLoader=s,e}(0,t,e)}.apply(O={},W=[x,u]))||(V=O),window,z=[x,A,T,D,I,R,V],"function"==typeof(N=function(t){return t})?void 0===(q=N.apply(G={},z))&&(q=G):q=N,window,W=[q,u],void 0===(Y="function"==typeof(H=function(t,e){t.createMethods.push("_createAsNavFor");var i=t.prototype;function r(t,e,i){return(e-t)*i+t}return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},i.setNavCompanion=function(i){i=e.getQueryElement(i);var r=t.data(i);if(r&&r!=this){this.navCompanion=r;var n=this;this.onNavCompanionSelect=function(){n.navCompanionSelect()},r.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},i.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(e){var i=e[0],n=this.navCompanion.cells.indexOf(i),s=n+e.length-1,a=Math.floor(r(n,s,this.navCompanion.cellAlign));if(this.selectCell(a,!1,t),this.removeNavSelectedElements(),!(a>=this.cells.length)){var o=this.cells.slice(n,s+1);this.navSelectedElements=o.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},i.changeNavSelectedClass=function(t){this.navSelectedElements.forEach(function(e){e.classList[t]("is-nav-selected")})},i.activateAsNavFor=function(){this.navCompanionSelect(!0)},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(t,e,i,r){"number"==typeof r&&this.navCompanion.selectCell(r)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t})?H.apply(e,W):H)||(t.exports=Y),function(t){"use strict";$=function(e){return function(t,e){var i=t.jQuery,r=t.console;function n(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function a(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?s.call(t):[t]}function o(t,e,s){if(!(this instanceof o))return new o(t,e,s);var l=t;"string"==typeof t&&(l=document.querySelectorAll(t)),l?(this.elements=a(l),this.options=n({},this.options),"function"==typeof e?s=e:n(this.options,e),s&&this.on("always",s),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(l||t))}o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),r=0;r<i.length;r++){var n=i[r];this.addImage(n)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(r=0;r<s.length;r++){var a=s[r];this.addElementBackgroundImages(a)}}}};var l={1:!0,9:!0,11:!0};function h(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,r=i.exec(e.backgroundImage);null!==r;){var n=r&&r[2];n&&this.addBackground(n,t),r=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new h(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new c(t,e);this.images.push(i)},o.prototype.check=function(){var t=this;function e(e,i,r){setTimeout(function(){t.progress(e,i,r)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},h.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(h.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((i=e).fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(i(this))})},o.makeJQueryPlugin(),o}(t,e)}.apply(j={},W=[r]),void 0!==$||($=j)}("undefined"!=typeof window?window:this),window,void 0===(Y=function(t,e){return function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var r=e.prototype;return r._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},r.imagesLoaded=function(){if(this.options.imagesLoaded){var t=this;i(this.slider).on("progress",e)}function e(e,i){var r=t.getParentCell(i.img);t.cellSizeChange(r&&r.element),t.options.freeScroll||t.positionSliderAtSelected()}},e}(0,t,e)}.apply(e,W=[q,$]))||(t.exports=Y)},
vendor: 6,445 bytes, line 1
1"../node_modules/lity/dist/lity.js":function(t,e,i){var r,n;!function(s){r=[i("jquery")],n=function(t){return function(t,e){"use strict";var i=t.document,r=e(t),n=e.Deferred,s=e("html"),a=[],o="aria-hidden",l="lity-"+o,h='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',c={esc:!0,handler:null,handlers:{image:S,inline:E,youtube:P,vimeo:C,googlemaps:k,facebookvideo:A,iframe:T},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>×</button></div></div></div>'},p=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,u=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,f=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,d=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,m=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,g=function(){var t=i.createElement("div"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in e)if(void 0!==t.style[r])return e[r];return!1}();function y(t){var e=n();return g&&t.length?(t.one(g,e.resolve),setTimeout(e.resolve,500)):e.resolve(),e.promise()}function v(t,i,r){if(1===arguments.length)return e.extend({},t);if("string"==typeof i){if(void 0===r)return void 0===t[i]?null:t[i];t[i]=r}else e.extend(t,i);return this}function _(t){for(var e,i=decodeURI(t.split("#")[0]).split("&"),r={},n=0,s=i.length;n<s;n++)i[n]&&(r[(e=i[n].split("="))[0]]=e[1]);return r}function b(t,i){return t+(t.indexOf("?")>-1?"&":"?")+e.param(i)}function x(t,e){var i=t.indexOf("#");return-1===i?e:(i>0&&(t=t.substr(i)),e+t)}function w(t){return e('<span class="lity-error"></span>').append(t)}function S(t,i){var r=i.opener()&&i.opener().data("lity-desc")||"Image with no description",s=e('<img src="'+t+'" alt="'+r+'"/>'),a=n(),o=function(){a.reject(w("Failed loading image"))};return s.on("load",function(){if(0===this.naturalWidth)return o();a.resolve(s)}).on("error",o),a.promise()}function E(t,i){var r,n,s;try{r=e(t)}catch(t){return!1}return!!r.length&&(n=e('<i style="display:none !important"></i>'),s=r.hasClass("lity-hide"),i.element().one("lity:remove",function(){n.before(r).remove(),s&&!r.closest(".lity-content").length&&r.addClass("lity-hide")}),r.removeClass("lity-hide").after(n))}function P(t){var i=u.exec(t);return!!i&&T(x(t,b("https://www.youtube"+(i[2]||"")+".com/embed/"+i[4],e.extend({autoplay:1},_(i[5]||"")))))}function C(t){var i=f.exec(t);return!!i&&T(x(t,b("https://player.vimeo.com/video/"+i[3],e.extend({autoplay:1},_(i[4]||"")))))}function A(t){var i=m.exec(t);return!!i&&(0!==t.indexOf("http")&&(t="https:"+t),T(x(t,b("https://www.facebook.com/plugins/video.php?href="+t,e.extend({autoplay:1},_(i[4]||""))))))}function k(t){var e=d.exec(t);return!!e&&T(x(t,b("https://www.google."+e[3]+"/maps?"+e[6],{output:e[6].indexOf("layer=c")>0?"svembed":"embed"})))}function T(t){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+t+'"/></div>'}function M(){return i.documentElement.clientHeight?i.documentElement.clientHeight:Math.round(r.height())}function D(t){var e=B();e&&(27===t.keyCode&&e.options("esc")&&e.close(),9===t.keyCode&&F(t,e))}function F(t,e){var r=e.element().find(h),n=r.index(i.activeElement);t.shiftKey&&n<=0?(r.get(r.length-1).focus(),t.preventDefault()):t.shiftKey||n!==r.length-1||(r.get(0).focus(),t.preventDefault())}function I(){e.each(a,function(t,e){e.resize()})}function L(t){1===a.unshift(t)&&(s.addClass("lity-active"),r.on({resize:I,keydown:D})),e("body > *").not(t.element()).addClass("lity-hidden").each(function(){var t=e(this);void 0===t.data(l)&&t.data(l,t.attr(o)||null)}).attr(o,"true")}function R(t){t.element().attr(o,"true"),1===a.length&&(s.removeClass("lity-active"),r.off({resize:I,keydown:D})),((a=e.grep(a,function(e){return t!==e})).length?a[0].element():e(".lity-hidden")).removeClass("lity-hidden").each(function(){var t=e(this),i=t.data(l);i?t.attr(o,i):t.removeAttr(o),t.removeData(l)})}function B(){return 0===a.length?null:a[0]}function V(t,i,r,n){var s,a="inline",o=e.extend({},r);return n&&o[n]?(s=o[n](t,i),a=n):(e.each(["inline","iframe"],function(t,e){delete o[e],o[e]=r[e]}),e.each(o,function(e,r){return!r||(!(!r.test||r.test(t,i))||(!1!==(s=r(t,i))?(a=e,!1):void 0))})),{handler:a,content:s||""}}function O(t,r,s,a){var l,h,p,u=this,f=!1,d=!1;function m(t){p=e(t).css("max-height",M()+"px"),h.find(".lity-loader").each(function(){var t=e(this);y(t).always(function(){t.remove()})}),h.removeClass("lity-loading").find(".lity-content").empty().append(p),f=!0,p.trigger("lity:ready",[u])}r=e.extend({},c,r),h=e(r.template),u.element=function(){return h},u.opener=function(){return s},u.options=e.proxy(v,u,r),u.handlers=e.proxy(v,u,r.handlers),u.resize=function(){f&&!d&&p.css("max-height",M()+"px").trigger("lity:resize",[u])},u.close=function(){if(f&&!d){d=!0,R(u);var t=n();if(a&&(i.activeElement===h[0]||e.contains(h[0],i.activeElement)))try{a.focus()}catch(t){}return p.trigger("lity:close",[u]),h.removeClass("lity-opened").addClass("lity-closed"),y(p.add(h)).always(function(){p.trigger("lity:remove",[u]),h.remove(),h=void 0,t.resolve()}),t.promise()}},l=V(t,u,r.handlers,r.handler),h.attr(o,"false").addClass("lity-loading lity-opened lity-"+l.handler).appendTo("body").focus().on("click","[data-lity-close]",function(t){e(t.target).is("[data-lity-close]")&&u.close()}).trigger("lity:open",[u]),L(u),e.when(l.content).always(m)}function z(t,r,n){t.preventDefault?(t.preventDefault(),t=(n=e(this)).data("lity-target")||n.attr("href")||n.attr("src")):n=e(n);var s=new O(t,e.extend({},n.data("lity-options")||n.data("lity"),r),n,i.activeElement);if(!t.preventDefault)return s}return S.test=function(t){return p.test(t)},z.version="2.4.1",z.options=e.proxy(v,z,c),z.handlers=e.proxy(v,z,c.handlers),z.current=B,e(i).on("click.lity","[data-lity]",z),z}(s,t)}.apply(e,r),void 0===n||(t.exports=n)}("undefined"!=typeof window?window:this)},
vendor: 305,436 bytes, line 1
1"../node_modules/lottie-web/build/player/lottie.js":function(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r,n=t.length;for(i=0;i<n;i+=1)for(var s in r=t[i].prototype)Object.prototype.hasOwnProperty.call(r,s)&&(e.prototype[s]=r[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,r=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var r,n,s,a,o,l,h,c;switch(l=i*(1-e),h=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),c=i*(1-(1-o)*e),a%6){case 0:r=i,n=c,s=l;break;case 1:r=h,n=i,s=l;break;case 2:r=l,n=i,s=c;break;case 3:r=l,n=h,s=i;break;case 4:r=c,n=l,s=i;break;case 5:r=i,n=l,s=h}return[r,n,s]}function RGBtoHSV(t,e,i){var r,n=Math.max(t,e,i),s=Math.min(t,e,i),a=n-s,o=0===n?0:a/n,l=n/255;switch(n){case s:r=0;break;case t:r=e-i+a*(e<i?6:0),r/=6*a;break;case e:r=i-t+2*a,r/=6*a;break;case i:r=t-e+4*a,r/=6*a}return[r,o,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,i=1,r=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){n.onmessage({data:t})}};function a(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,n}(function(t){if(s.dataManager||(s.dataManager=function(){function t(n,s){var a,o,l,h,c,u,f=n.length;for(o=0;o<f;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(h=d.length,l=0;l<h;l+=1)if(d[l].pt.k.i)r(d[l].pt.k);else for(u=d[l].pt.k.length,c=0;c<u;c+=1)d[l].pt.k[c].s&&r(d[l].pt.k[c].s[0]),d[l].pt.k[c].e&&r(d[l].pt.k[c].e[0])}0===a.ty?(a.layers=e(a.refId,s),t(a.layers,s)):4===a.ty?i(a.shapes):5===a.ty&&p(a)}}function e(t,e){var i=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(s=t[e].ks.k.length,n=0;n<s;n+=1)t[e].ks.k[n].s&&r(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&r(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function r(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var s,a=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),o=(s=[4,7,99],function(t){if(t.chars&&!n(s,t.v)){var e,r=t.chars.length;for(e=0;e<r;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(i(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var i,r,n,s=t.length;for(i=0;i<s;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,r=0;r<n;r+=1)t[i].c.k[r].s&&(t[i].c.k[r].s[0]/=255,t[i].c.k[r].s[1]/=255,t[i].c.k[r].s[2]/=255,t[i].c.k[r].s[3]/=255),t[i].c.k[r].e&&(t[i].c.k[r].e[0]/=255,t[i].c.k[r].e[1]/=255,t[i].c.k[r].e[2]/=255,t[i].c.k[r].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,r,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,r=0;r<n;r+=1)t[i].ks.k[r].s&&(t[i].ks.k[r].s[0].c=t[i].closed),t[i].ks.k[r].e&&(t[i].ks.k[r].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,r,n,s,a,o,l=t.length;for(r=0;r<l;r+=1){if((i=t[r]).hasMask){var h=i.masksProperties;for(s=h.length,n=0;n<s;n+=1)if(h[n].pt.k.i)h[n].pt.k.c=h[n].cl;else for(o=h[n].pt.k.length,a=0;a<o;a+=1)h[n].pt.k[a].s&&(h[n].pt.k[a].s[0].c=h[n].cl),h[n].pt.k[a].e&&(h[n].pt.k[a].e[0].c=h[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}();function p(t){0===t.t.a.length&&t.t.p}var u={completeData:function(i){i.__complete||(h(i),a(i),o(i),l(i),c(i),t(i.layers,i.assets),function(i,r){if(i){var n=0,s=i.length;for(n=0;n<s;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,r),t(i[n].data.layers,r))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=h,u.checkChars=o,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,r,n){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=t(a),r(s);else try{s=t(a),r(s)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,i=e.id,n=r[i];r[i]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function o(t,e){var n="processId_"+(i+=1);return r[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,i,r){a();var n=o(i,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,r){a();var n=o(i,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,r){a();var n=o(i,r);e.postMessage({type:"complete",animation:t,id:n})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,i){var r="";if(t.e)r=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),r=e+n}else r=i,r+=t.u?t.u:"",r+=t.p;return r}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;i<r;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=r(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var s={img:n,assetData:e};return s},createImageData:function(e){var i=r(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var s={img:n,assetData:e};return s},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,r-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),r={},n=0,s=0;s<i.length;s+=1)2===(e=i[s].split(":")).length&&(r[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return r}return function(e){for(var i=[],r=0;r<e.length;r+=1){var n=e[r],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[r].cm)}catch(i){try{s.payload=t(e[r].cm)}catch(t){s.payload={name:e[r].cm}}}i.push(s)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},r=t.attributes;i.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",i.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var s=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;i.autoplay="false"!==s,i.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,r=this.animationData.layers,n=r.length,s=t.layers,a=s.length;for(i=0;i<a;i+=1)for(e=0;e<n;){if(r[e].id===s[i].id){r[e]=s[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(r,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,r=t.length;for(i=0;i<r;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,r=0,n=0,s=!0,a=!1;function o(t){for(var i=0,n=t.target;i<r;)e[i].animation===n&&(e.splice(i,1),i-=1,r-=1,n.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<r;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var s=new AnimationItem;return p(s,t),s.setData(t,i),s}function h(){n+=1,d()}function c(){n-=1}function p(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",h),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),r+=1}function u(t){var o,l=t-i;for(o=0;o<r;o+=1)e[o].animation.advanceTime(l);i=t,n&&!a?window.requestAnimationFrame(u):s=!0}function f(t){i=t,window.requestAnimationFrame(u)}function d(){!a&&n&&s&&(window.requestAnimationFrame(f),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return p(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var r,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=n.length;for(r=0;r<s;r+=1)i&&n[r].setAttribute("data-bm-type",i),l(n[r],t);if(e&&0===s){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),a.appendChild(o),l(o,t)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var s;for(s=0;s<r;s+=1)e[s].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=r-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,d()},t.setVolume=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,r,n,s){var a=s||("bez_"+t+"_"+i+"_"+r+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new c([t,i,r,n]);return e[a]=o,o}},e={},i=11,r=1/(i-1),n="function"==typeof Float32Array;function s(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function o(t){return 3*t}function l(t,e,i){return((s(e,i)*t+a(e,i))*t+o(e))*t}function h(t,e,i){return 3*s(e,i)*t*t+2*a(e,i)*t+o(e)}function c(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&r===n?t:0===t?0:1===t?1:l(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=l(n*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],s=this._mSampleValues,a=0,o=1,c=i-1;o!==c&&s[o]<=t;++o)a+=r;var p=a+(t-s[--o])/(s[o+1]-s[o])*r,u=h(p,e,n);return u>=.001?function(t,e,i,r){for(var n=0;n<4;++n){var s=h(e,i,r);if(0===s)return e;e-=(l(e,i,r)-t)/s}return e}(t,p,e,n):0===u?p:function(t,e,i,r,n){var s,a,o=0;do{(s=l(a=e+(i-e)/2,r,n)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++o<10);return a}(t,a,a+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,n=t,s=createSizedArray(n);return{newElement:function(){return r?s[r-=1]:e()},release:function(t){r===n&&(s=pooling.double(s),n*=2),i&&i(t),s[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,i,r,n,s){var a=t*r+e*n+i*s-n*r-s*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,r){var n,s,a,o,l,h,c=getDefaultCurveSegments(),p=0,u=[],f=[],d=bezierLengthPool.newElement();for(a=i.length,n=0;n<c;n+=1){for(l=n/(c-1),h=0,s=0;s<a;s+=1)o=bmPow(1-l,3)*t[s]+3*bmPow(1-l,2)*l*i[s]+3*(1-l)*bmPow(l,2)*r[s]+bmPow(l,3)*e[s],u[s]=o,null!==f[s]&&(h+=bmPow(u[s]-f[s],2)),f[s]=u[s];h&&(p+=h=bmSqrt(h)),d.percents[n]=l,d.lengths[n]=p}return d.addedLength=p,d};function r(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var s,a=(s={},function(t,i,a,o){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[l]){var h,c,p,u,f,d,m,g=getDefaultCurveSegments(),y=0,v=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(g=2);var _=new r(g);for(p=a.length,h=0;h<g;h+=1){for(m=createSizedArray(p),f=h/(g-1),d=0,c=0;c<p;c+=1)u=bmPow(1-f,3)*t[c]+3*bmPow(1-f,2)*f*(t[c]+a[c])+3*(1-f)*bmPow(f,2)*(i[c]+o[c])+bmPow(f,3)*i[c],m[c]=u,null!==v&&(d+=bmPow(m[c]-v[c],2));y+=d=bmSqrt(d),_.points[h]=new n(d,m),v=m}_.segmentLength=y,s[l]=_}return s[l]});function o(t,e){var i=e.percents,r=e.lengths,n=i.length,s=bmFloor((n-1)*t),a=t*e.addedLength,o=0;if(s===n-1||0===s||a===r[s])return i[s];for(var l=r[s]>a?-1:1,h=!0;h;)if(r[s]<=a&&r[s+1]>a?(o=(a-r[s])/(r[s+1]-r[s]),h=!1):s+=l,s<0||s>=n-1){if(s===n-1)return i[s];h=!1}return i[s]+(i[s+1]-i[s])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),n=t.c,s=t.v,a=t.o,o=t.i,l=t._length,h=r.lengths,c=0;for(e=0;e<l-1;e+=1)h[e]=i(s[e],s[e+1],a[e],o[e+1]),c+=h[e].addedLength;return n&&l&&(h[e]=i(s[e],s[0],a[e],o[0]),c+=h[e].addedLength),r.totalLength=c,r},getNewSegment:function(e,i,r,n,s,a,h){s<0?s=0:s>1&&(s=1);var c,p=o(s,h),u=o(a=a>1?1:a,h),f=e.length,d=1-p,m=1-u,g=d*d*d,y=p*d*d*3,v=p*p*d*3,_=p*p*p,b=d*d*m,x=p*d*m+d*p*m+d*d*u,w=p*p*m+d*p*u+p*d*u,S=p*p*u,E=d*m*m,P=p*m*m+d*u*m+d*m*u,C=p*u*m+d*u*u+p*m*u,A=p*u*u,k=m*m*m,T=u*m*m+m*u*m+m*m*u,M=u*u*m+m*u*u+u*m*u,D=u*u*u;for(c=0;c<f;c+=1)l[4*c]=t.round(1e3*(g*e[c]+y*r[c]+v*n[c]+_*i[c]))/1e3,l[4*c+1]=t.round(1e3*(b*e[c]+x*r[c]+w*n[c]+S*i[c]))/1e3,l[4*c+2]=t.round(1e3*(E*e[c]+P*r[c]+C*n[c]+A*i[c]))/1e3,l[4*c+3]=t.round(1e3*(k*e[c]+T*r[c]+M*n[c]+D*i[c]))/1e3;return l},getPointInSegment:function(e,i,r,n,s,a){var l=o(s,a),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*r[0]+(l*l*h+h*l*l+l*h*l)*n[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*r[1]+(l*l*h+h*l*l+l*h*l)*n[1]+l*l*l*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,r,n,s,a,o,l,h,c){if(0===n&&0===o&&0===c)return e(i,r,s,a,l,h);var p,u=t.sqrt(t.pow(s-i,2)+t.pow(a-r,2)+t.pow(o-n,2)),f=t.sqrt(t.pow(l-i,2)+t.pow(h-r,2)+t.pow(c-n,2)),d=t.sqrt(t.pow(l-s,2)+t.pow(h-a,2)+t.pow(c-o,2));return(p=u>f?u>d?u-f-d:d-f-u:d>f?d-f-u:f-u-d)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,s,a,o,l,h,c,p,u,f=e.lastIndex,d=f,m=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[d],s=this.keyframes[d+1],d===m-1&&t>=s.t-r){n.h&&(n=s),f=0;break}if(s.t-r>t){f=d;break}d<m-1?d+=1:(f=0,g=!1)}a=this.keyframesMetadata[d]||{};var y,v=s.t-r,_=n.t-r;if(n.to){a.bezierData||(a.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var b=a.bezierData;if(t>=v||t<_){var x=t>=v?b.points.length-1:0;for(l=b.points[x].point.length,o=0;o<l;o+=1)i[o]=b.points[x].point[o]}else{a.__fnct?u=a.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=u),h=u((t-_)/(v-_));var w,S=b.segmentLength*h,E=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,g=!0,c=b.points.length;g;){if(E+=b.points[p].partialLength,0===S||0===h||p===b.points.length-1){for(l=b.points[p].point.length,o=0;o<l;o+=1)i[o]=b.points[p].point[o];break}if(S>=E&&S<E+b.points[p+1].partialLength){for(w=(S-E)/b.points[p+1].partialLength,l=b.points[p].point.length,o=0;o<l;o+=1)i[o]=b.points[p].point[o]+(b.points[p+1].point[o]-b.points[p].point[o])*w;break}p<c-1?p+=1:g=!1}e._lastPoint=p,e._lastAddedLength=E-b.points[p].partialLength,e._lastKeyframeIndex=d}}else{var P,C,A,k,T;if(m=n.s.length,y=s.s||n.e,this.sh&&1!==n.h)t>=v?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=_?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):quaternionToEuler(i,slerp(createQuaternion(n.s),createQuaternion(y),(t-_)/(v-_)));else for(d=0;d<m;d+=1)1!==n.h&&(t>=v?h=1:t<_?h=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[d]?u=a.__fnct[d]:(P=void 0===n.o.x[d]?n.o.x[0]:n.o.x[d],C=void 0===n.o.y[d]?n.o.y[0]:n.o.y[d],A=void 0===n.i.x[d]?n.i.x[0]:n.i.x[d],k=void 0===n.i.y[d]?n.i.y[0]:n.i.y[d],u=BezierFactory.getBezierEasing(P,C,A,k).get,a.__fnct[d]=u)):a.__fnct?u=a.__fnct:(P=n.o.x,C=n.o.y,A=n.i.x,k=n.i.y,u=BezierFactory.getBezierEasing(P,C,A,k).get,n.keyframeMetadata=u),h=u((t-_)/(v-_)))),y=s.s||n.e,T=1===n.h?n.s[d]:n.s[d]+(y[d]-n.s[d])*h,"multidimensional"===this.propType?i[d]=T:i=T}return e.lastIndex=f,i}function slerp(t,e,i){var r,n,s,a,o,l=[],h=t[0],c=t[1],p=t[2],u=t[3],f=e[0],d=e[1],m=e[2],g=e[3];return(n=h*f+c*d+p*m+u*g)<0&&(n=-n,f=-f,d=-d,m=-m,g=-g),1-n>1e-6?(r=Math.acos(n),s=Math.sin(r),a=Math.sin((1-i)*r)/s,o=Math.sin(i*r)/s):(a=1-i,o=i),l[0]=a*h+o*f,l[1]=a*c+o*d,l[2]=a*p+o*m,l[3]=a*u+o*g,l}function quaternionToEuler(t,e){var i=e[0],r=e[1],n=e[2],s=e[3],a=Math.atan2(2*r*s-2*i*n,1-2*r*r-2*n*n),o=Math.asin(2*i*r+2*n*s),l=Math.atan2(2*i*s-2*r*n,1-2*i*i-2*n*n);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,n=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(r/2),o=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(r/2);return[o*l*a+n*s*h,o*s*a+n*l*h,n*l*a-o*s*h,n*s*a-o*l*h]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,r){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),n=0;n<s;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,r){var n;this.propType="multidimensional";var s,a,o,l,h=e.k.length;for(n=0;n<h-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(s=e.k[n].s,a=e.k[n+1].s,o=e.k[n].to,l=e.k[n].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+o[0],s[1]+o[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+o[0],s[1]+o[1],s[2]+o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(e.k[n].to=null,e.k[n].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===s.length||s[2]===a[2]&&0===o[2]&&0===l[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),n=0;n<c;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,i,r,n){var s;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])s=new MultiDimensionalProperty(t,e,r,n);else switch(i){case 0:s=new KeyframedValueProperty(t,e,r,n);break;case 1:s=new KeyframedMultidimensionalProperty(t,e,r,n)}else s=new ValueProperty(t,e,r,n);return s.effectsSequence.length&&n.addDynamicProperty(s),s}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,n){var s;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[r]||s[r]&&!n)&&(s[r]=pointPool.newElement()),s[r][0]=t,s[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,r,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],i[a][0],i[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,i=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var r,n,s,a,o,l,h,c,p,u=i.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)r=f[0].s[0],s=!0,u=0;else if(t>=f[f.length-1].t-this.offsetTime)r=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],s=!0;else{for(var d,m,g,y=u,v=f.length-1,_=!0;_&&(d=f[y],!((m=f[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:_=!1;if(g=this.keyframesMetadata[y]||{},u=y,!(s=1===d.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<d.t-this.offsetTime)c=0;else{var b;g.__fnct?b=g.__fnct:(b=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=b),c=b((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}n=m.s?m.s[0]:d.e[0]}r=d.s[0]}for(l=e._length,h=r.i[0].length,i.lastIndex=u,a=0;a<l;a+=1)for(o=0;o<h;o+=1)p=s?r.i[a][o]:r.i[a][o]+(n.i[a][o]-r.i[a][o])*c,e.i[a][o]=p,p=s?r.o[a][o]:r.o[a][o]+(n.o[a][o]-r.o[a][o])*c,e.o[a][o]=p,p=s?r.v[a][o]:r.v[a][o]+(n.v[a][o]-r.v[a][o])*c,e.v[a][o]=p}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>r&&e>r)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,r=t._length;for(i=0;i<r;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=n,a.prototype.addEffect=o,l.prototype.getValue=s,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=o;var h=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-n,a.v[1][0]=s?e+r:e-r,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+n,a.v[3][0]=s?e-r:e+r,a.v[3][1]=i,a.i[0][0]=s?e-r*t:e+r*t,a.i[0][1]=i-n,a.i[1][0]=s?e+r:e-r,a.i[1][1]=i-n*t,a.i[2][0]=s?e+r*t:e-r*t,a.i[2][1]=i+n,a.i[3][0]=s?e-r:e+r,a.i[3][1]=i+n*t,a.o[0][0]=s?e+r*t:e-r*t,a.o[0][1]=i-n,a.o[1][0]=s?e+r:e-r,a.o[1][1]=i+n*t,a.o[2][0]=s?e-r*t:e+r*t,a.o[2][1]=i+n,a.o[3][0]=s?e-r:e+r,a.o[3][1]=i-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,r,n=2*Math.floor(this.pt.v),s=2*Math.PI/n,a=!0,o=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,p=2*Math.PI*o/(2*n),u=2*Math.PI*l/(2*n),f=-Math.PI/2;f+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=a?h:c,r=a?p:u;var m=(e=a?o:l)*Math.cos(f),g=e*Math.sin(f),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*i*d,g-v*r*i*d,m+y*r*i*d,g+v*r*i*d,t,!0),a=!a,f+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,n=this.os.v,s=2*Math.PI*r/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(a),h=r*Math.sin(a),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),p=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*s*n*o,h-p*s*n*o,l+c*s*n*o,h+p*s*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,n=bmMin(i,r,this.r.v),s=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+n,t+i,e-r+s,0,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-s,t+i,e+r-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+r,t+i-n,e+r,t+i-s,e+r,2,!0),this.v.setTripleAt(t-i+n,e+r,t-i+s,e+r,t-i+n,e+r,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-n,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+s,t-i,e-r+n,5,!0),this.v.setTripleAt(t-i+n,e-r,t-i+n,e-r,t-i+s,e-r,6,!0),this.v.setTripleAt(t+i-n,e-r,t+i-s,e-r,t+i-n,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+s,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+s,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+s,t+i,e-r+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-r,t+i-n,e-r,t+i-s,e-r,1,!0),this.v.setTripleAt(t-i+n,e-r,t-i+s,e-r,t-i+n,e-r,2,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+n,t-i,e-r+s,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-s,t-i,e+r-n,4,!0),this.v.setTripleAt(t-i+n,e+r,t-i+n,e+r,t-i+s,e+r,5,!0),this.v.setTripleAt(t+i-n,e+r,t+i-s,e+r,t+i-n,e+r,6,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-n,t+i,e+r-s,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+s,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-s,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-s,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}(),u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?r=new p(t,e):6===i?r=new h(t,e):7===i&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,r=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(1,0,0,0,0,r,-n,0,0,n,r,0,0,0,0,1)}function o(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,0,n,0,0,1,0,0,-n,0,r,0,0,0,0,1)}function l(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(i(t),i(e))}function p(r,n){var s=t(n),a=e(n);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(r),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function f(t,e,i,r,n,s,a,o,l,h,c,p,u,f,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=n,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=p,this.props[12]=u,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,r,n,s,a,o,l,h,c,p,u,f,d,m){var g=this.props;if(1===t&&0===e&&0===i&&0===r&&0===n&&1===s&&0===a&&0===o&&0===l&&0===h&&1===c&&0===p)return g[12]=g[12]*t+g[15]*u,g[13]=g[13]*s+g[15]*f,g[14]=g[14]*c+g[15]*d,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],_=g[2],b=g[3],x=g[4],w=g[5],S=g[6],E=g[7],P=g[8],C=g[9],A=g[10],k=g[11],T=g[12],M=g[13],D=g[14],F=g[15];return g[0]=y*t+v*n+_*l+b*u,g[1]=y*e+v*s+_*h+b*f,g[2]=y*i+v*a+_*c+b*d,g[3]=y*r+v*o+_*p+b*m,g[4]=x*t+w*n+S*l+E*u,g[5]=x*e+w*s+S*h+E*f,g[6]=x*i+w*a+S*c+E*d,g[7]=x*r+w*o+S*p+E*m,g[8]=P*t+C*n+A*l+k*u,g[9]=P*e+C*s+A*h+k*f,g[10]=P*i+C*a+A*c+k*d,g[11]=P*r+C*o+A*p+k*m,g[12]=T*t+M*n+D*l+F*u,g[13]=T*e+M*s+D*h+F*f,g[14]=T*i+M*a+D*c+F*d,g[15]=T*r+M*o+D*p+F*m,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function _(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function w(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function S(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function E(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function P(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,n=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=r,o.props[5]=n,o.props[12]=s,o.props[13]=a,o}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r[e]=C(t[e]);return r}function k(t,e,i){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=i[0],r[5]=i[1];else{var n=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];r[0]=t[0]*n+t[1]*a+l,r[1]=t[0]*s+t[1]*o+h,r[2]=e[0]*n+e[1]*a+l,r[3]=e[0]*s+e[1]*o+h,r[4]=i[0]*n+i[1]*a+l,r[5]=i[0]*s+i[1]*o+h}return r}function T(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function D(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=r(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function F(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=u,this.setTransform=f,this.translate=d,this.transform=m,this.multiply=g,this.applyToPoint=x,this.applyToX=w,this.applyToY=S,this.applyToZ=E,this.applyToPointArray=T,this.applyToTriplePoints=k,this.applyToPointStringified=M,this.toCSS=D,this.to2dCSS=I,this.clone=_,this.cloneFromProps=b,this.equals=v,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=P,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,r){return new e[t](i,r)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,n){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],h=s.length;for(a=0;a<h;a+=1){var c,p;(o=s[a]).e*n<r||o.s*n>r+i||(c=o.s*n<=r?0:(o.s*n-r)/i,p=o.e*n>=r+i?1:(o.e*n-r)/i,l.push([c,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,r,n;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(i=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,l,h,c,p,u=this.shapes.length,f=0;if(i===e)for(n=0;n<u;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var d,m,g=[];for(n=0;n<u;n+=1)if((d=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=d.shape.paths)._length,p=0,!d.shape._mdf&&d.pathsData.length)p=d.totalShapeLength;else{for(h=this.releasePathsData(d.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(r.shapes[o]),h.push(c),p+=c.totalLength;d.totalShapeLength=p,d.pathsData=h}f+=p,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,v=e,_=i,b=0;for(n=u-1;n>=0;n-=1)if((d=this.shapes[n]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&u>1?(y=this.calculateShapeEdges(e,i,d.totalShapeLength,b,f),b+=d.totalShapeLength):y=[[v,_]],l=y.length,o=0;o<l;o+=1){v=y[o][0],_=y[o][1],g.length=0,_<=1?g.push({s:d.totalShapeLength*v,e:d.totalShapeLength*_}):v>=1?g.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(_-1)}):(g.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),g.push({s:0,e:d.totalShapeLength*(_-1)}));var x=this.addShapes(d,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var w=x.pop();this.addPaths(x,m),x=this.addShapes(d,g[1],w)}else this.addPaths(x,m),x=this.addShapes(d,g[1]);this.addPaths(x,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,r,n,s,a){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(i[0],i[1],"i",s+1),a&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(r[0],r[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,n,s,a,o,l,h,c,p=t.pathsData,u=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],g=!0;for(i?(o=i._length,c=i._length):(i=shapePool.newElement(),o=0,c=0),m.push(i),r=0;r<f;r+=1){for(l=p[r].lengths,i.c=u[r].c,s=u[r].c?l.length:l.length+1,n=1;n<s;n+=1)if(d+(a=l[n-1]).addedLength<e.s)d+=a.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[n],u[r].v[n],i,o,g),g=!1):(h=bez.getNewSegment(u[r].v[n-1],u[r].v[n],u[r].o[n-1],u[r].i[n],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,l[n-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1),d+=a.addedLength,o+=1}if(u[r].c&&l.length){if(a=l[n-1],d<=e.e){var y=l[n-1].addedLength;e.s<=d&&e.e>=d+y?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[0],u[r].v[0],i,o,g),g=!1):(h=bez.getNewSegment(u[r].v[n-1],u[r].v[0],u[r].o[n-1],u[r].i[0],(e.s-d)/y,(e.e-d)/y,l[n-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1)}else i.c=!1;d+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;r<f-1&&(i=shapePool.newElement(),g=!0,m.push(i),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,r=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)r[0]+=t.v[s][0],r[1]+=t.v[s][1];r[0]/=n,r[1]/=n;var a,o,l,h,c,p,u=shapePool.newElement();for(u.c=t.c,s=0;s<n;s+=1)a=t.v[s][0]+(r[0]-t.v[s][0])*i,o=t.v[s][1]+(r[1]-t.v[s][1])*i,l=t.o[s][0]+(r[0]-t.o[s][0])*-i,h=t.o[s][1]+(r[1]-t.o[s][1])*-i,c=t.i[s][0]+(r[0]-t.i[s][0])*-i,p=t.i[s][1]+(r[1]-t.i[s][1])*-i,u.setTripleAt(a,o,l,h,c,p,s);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var r,n=e.or.k.length;for(r=0;r<n;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(r[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=s.getValueAtTime(s.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(r[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(r=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else r=n=t;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,r){return new e(t,i,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var r=e*e-4*t*i;if(r<0)return[];var n=-e/(2*t);if(0===r)return[n];var s=Math.sqrt(r)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,i,r){return[3*e-t-3*i+r,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,r,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),n&&pointEqual(i,r)&&(i=lerpPoint(t,r,2/3));var s=polynomialCoefficients(t[0],e[0],i[0],r[0]),a=polynomialCoefficients(t[1],e[1],i[1],r[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,i,r]}function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var n=r;r=i,i=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<i?i=o:o>r&&(r=o)}return{min:i,max:r}}function intersectData(t,e,i){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,r,n,s){if(boxIntersect(t,e))if(i>=s||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)n.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],i+1,r,n,s),intersectsImpl(a[0],o[1],i+1,r,n,s),intersectsImpl(a[1],o[0],i+1,r,n,s),intersectsImpl(a[1],o[1],i+1,r,n,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,r){var n=[t[0],t[1],1],s=[e[0],e[1],1],a=[i[0],i[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(n,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,r,n,s,a){var o=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*r*n,c=e[1]-Math.sin(i)*r*n;t.setTripleAt(h,c,h+Math.cos(o)*s,c-Math.sin(o)*s,h+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,r=(e+1)%t.length(),n=getPerpendicularVector(t.v[i],t.v[r]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,n,s,a){var o=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],p=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,u=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],o,a,r,u/(2*(n+1)),p/(2*(n+1)),s)}function zigZagSegment(t,e,i,r,n,s){for(var a=0;a<r;a+=1){var o=(a+1)/(r+1),l=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(o);setPoint(t,e.point(o),h,s,i,l/(2*(r+1)),l/(2*(r+1)),n),s=-s}return s}function linearOffset(t,e,i){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,i),polarOffset(e,r,i)]}function offsetSegment(t,e){var i,r,n,s,a,o,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var h=lineIntersection(i,r,n,s);null===h&&(h=r);var c=lineIntersection(a,o,n,s);return null===c&&(c=a),new PolynomialBezier(i,h,c,o)}function joinLines(t,e,i,r,n){var s=e.points[3],a=i.points[0];if(3===r)return s;if(pointEqual(s,a))return s;if(2===r){var o=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),c=h?pointDistance(h,s):pointDistance(s,a)/2,p=polarOffset(s,o,2*c*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],t.length()),a}var u=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,s)<n?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):s}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),r=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],r[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,r,n,s,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return i=(n=t.split(a[0]))[0],r=n[1],[offsetSegment(i,e),offsetSegment(r,e)];i=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(n=n[1].split(o))[0],r=n[1],[offsetSegment(i,e),offsetSegment(s,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,n,s){var a=s?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-n),l=r.s.v[1]+(1-r.s.v[1])*(1-n);t.translate(r.p.v[0]*a*n,r.p.v[1]*a*n,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*a*n),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(s?1/o:o,s?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,n,s,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,r=0;r<=this._groups.length-1;r+=1){if(o=s<l,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var c=this.elemsData[r].it,p=c[c.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}s+=1}this._currentCopies=l;var u=this.o.v,f=u%1,d=u>0?Math.floor(u):Math.ceil(u),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,_,b=0;if(u>0){for(;b<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),b+=f)}else if(u<0){for(;b>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),b-=f)}for(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,s=this._currentCopies;s;){if(_=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==b){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<_;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<_;v+=1)i[v]=this.matrix.props[v];b+=1,s-=1,r+=n}}else for(s=this._currentCopies,r=0,n=1;s;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,r+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,r=shapePool.newElement();r.c=t.c;var n,s,a,o,l,h,c,p,u,f,d,m,g=t._length,y=0;for(i=0;i<g;i+=1)n=t.v[i],a=t.o[i],s=t.i[i],n[0]===a[0]&&n[1]===a[1]&&n[0]===s[0]&&n[1]===s[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=d=n[0]+(o[0]-n[0])*h,p=m=n[1]-(n[1]-o[1])*h,u=c-(c-n[0])*roundCorner,f=p-(p-n[1])*roundCorner,r.setTripleAt(c,p,u,f,d,m,y),y+=1,o=i===g-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=u=n[0]+(o[0]-n[0])*h,p=f=n[1]+(o[1]-n[1])*h,d=c-(c-n[0])*roundCorner,m=p-(p-n[1])*roundCorner,r.setTripleAt(c,p,u,f,d,m,y),y+=1):(r.setTripleAt(n[0],n[1],a[0],a[1],s[0],s[1],y),y+=1):(r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,i,t),s=lerpPoint(i,r,t),a=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,a,!0),new PolynomialBezier(a,s,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,r){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),0===n)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,i,r,a);for(var l=0;l<n;l+=1)a=zigZagSegment(s,o,e,i,r,-a),o=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(s,t,l+1,e,i,r,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var n=shapePool.newElement();n.c=t.c;var s,a,o,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(o,e));if(!t.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(o,e));h=pruneIntersections(h);var c=null,p=null;for(s=0;s<h.length;s+=1){var u=h[s];for(p&&(c=joinLines(n,p,u[0],i,r)),p=u[u.length-1],a=0;a<u.length;a+=1)o=u[a],c&&pointEqual(o.points[0],c)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),c=o.points[3]}return h.length&&joinLines(n,p,h[0][0],i,r),n},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i);var n=r.offsetWidth;return r.style.fontFamily=function(t){var e,i=t.split(","),r=i.length,n=[];for(e=0;e<r;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:r,w:n,parent:i}}function s(t,e){var i,r=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===r){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",n.style),s.setAttribute("font-weight",n.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),i=s}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===r?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function a(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(i-55296)+r-56320+65536)}return e}function o(t){var e=a(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==r.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return o(t.substr(0,2))&&o(t.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var r=a(t.substr(e,2));if(r!==i)return!1;var n=0;for(e+=2;n<5;){if((r=a(t.substr(e,2)))<917601||r>917626)return!1;n+=1,e+=2}return 917631===a(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,r,n=t.length,s=this.chars.length;for(e=0;e<n;e+=1){for(i=0,r=!1;i<s;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(r=!0),i+=1;r||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=s(t),t.cache={}}),void(this.fonts=t.list);var i,r=t.list,a=r.length,o=a;for(i=0;i<a;i+=1){var l,h,c=!0;if(r[i].loaded=!1,r[i].monoCase=n(r[i].fFamily,"monospace"),r[i].sansCase=n(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(c=!1),c){var p=createTag("style");p.setAttribute("f-forigin",r[i].fOrigin),p.setAttribute("f-origin",r[i].origin),p.setAttribute("f-family",r[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(p)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(r[i].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",r[i].fOrigin),u.setAttribute("f-origin",r[i].origin),u.type="text/css",u.rel="stylesheet",u.href=r[i].fPath,document.body.appendChild(u)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)r[i].fPath===l[h].src&&(c=!1);if(c){var f=createTag("link");f.setAttribute("f-forigin",r[i].fOrigin),f.setAttribute("f-origin",r[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[i].fPath),e.appendChild(f)}}}else r[i].loaded=!0,o-=1;r[i].helper=s(r[i],e),r[i].cache={},this.fonts.push(r[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,r){for(var n=0,s=this.chars.length;n<s;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===r)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,r)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r=this.getFontByName(e),n=t;if(!r.cache[n]){var s=r.helper;if(" "===t){var a=s.measureText("|"+t+"|"),o=s.measureText("||");r.cache[n]=(a-o)/100}else r.cache[n]=s.measureText(t)/100}return r.cache[n]*i},checkLoadedFonts:function(){var t,e,i,r=this.fonts.length,n=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=h,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,r=t.ef||[];this.effectElements=[];var n,s=r.length;for(i=0;i<s;i+=1)n=new GroupEffect(r[i],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,n=this.data.ef.length,s=this.data.ef;for(i=0;i<n;i+=1){switch(r=null,s[i].ty){case 0:r=new SliderEffect(s[i],e,this);break;case 1:r=new AngleEffect(s[i],e,this);break;case 2:r=new ColorEffect(s[i],e,this);break;case 3:r=new PointEffect(s[i],e,this);break;case 4:case 7:r=new CheckboxEffect(s[i],e,this);break;case 10:r=new LayerIndexEffect(s[i],e,this);break;case 11:r=new MaskIndexEffect(s[i],e,this);break;case 5:r=new EffectsManager(s[i],e,this);break;default:r=new NoValueEffect(s[i],e,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),r=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,r=t.length,n=this.layers.length;for(e=0;e<r;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,n=this.layers,s=0,a=n.length;s<a;)n[s].ind==e&&(r[s]&&!0!==r[s]?(i.push(r[s]),r[s].setAsParent(),void 0!==n[s].parent?this.buildElementParenting(t,n[s].parent,i):t.setHierarchy(i)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.nm===i){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,n,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,h,c,p,u,f=this.masksProperties,d=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(r=0;r<a;r+=1)if(("a"!==f[r].mode&&"n"!==f[r].mode||f[r].inv||100!==f[r].o.k||f[r].o.x)&&(y="mask",v="mask"),"s"!==f[r].mode&&"i"!==f[r].mode||0!==d?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),m.push(h)),n=createNS("path"),"n"===f[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,f[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[r],3),elem:n,lastPath:""},s.appendChild(n);else{var _;if(d+=1,n.setAttribute("fill","s"===f[r].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==f[r].x.k?(y="mask",v="mask",u=PropertyFactory.getProp(this.element,f[r].x,0,null,this.element),_=createElementID(),(c=createNS("filter")).setAttribute("id",_),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),s.appendChild(c),n.setAttribute("stroke","s"===f[r].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[r]={elem:n,x:u,expan:p,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===f[r].mode){l=m.length;var b=createNS("g");for(o=0;o<l;o+=1)b.appendChild(m[o]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+d),x.appendChild(n),s.appendChild(x),b.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+d+")"),m.length=0,m.push(b)}else m.push(n);f[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,f[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[r],3),invRect:h},this.viewData[r].prop.k||this.drawPath(f[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(y),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);d>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var r=this.localTransforms[t].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):r=!1;var s,a=e.length;for(i=0;i<a;i+=1)s=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,i){var r,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,r=1;r<n;r+=1)s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&n>1&&(s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i,r="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,r,n,s=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(r),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),i.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(p),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[r-=1].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,n=t.length;r<n;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var s,a=e.length||0;for(n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,r,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,r=Math.round(this.prop.v[e]*i),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var n,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)n=createNS("stop"),r.appendChild(n),o.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,n,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(r=4*t.g.p;r<n;r+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),c.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";var n,s=t.o,a=t.i,o=t.v,l=" M"+r.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)l+=" C"+r.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+r.applyToPointStringified(a[n][0],a[n][1])+" "+r.applyToPointStringified(o[n][0],o[n][1]);return i&&e&&(l+=" C"+r.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function n(i,r,n){var s,a,o,l,h,c,p,u,f,d,m=r.styles.length,g=r.lvl;for(c=0;c<m;c+=1){if(l=r.sh._mdf||n,r.styles[c].lvl<g){for(u=e.reset(),f=g-r.styles[c].lvl,d=r.transformers.length-1;!l&&f>0;)l=r.transformers[d].mProps._mdf||l,f-=1,d-=1;if(l)for(f=g-r.styles[c].lvl,d=r.transformers.length-1;f>0;)u.multiply(r.transformers[d].mProps.v),f-=1,d-=1}else u=t;if(a=(p=r.sh.paths)._length,l){for(o="",s=0;s<a;s+=1)(h=p.shapes[s])&&h._length&&(o+=buildShapeString(h,h._length,h.c,u));r.caches[c]=o}else o=r.caches[c];r.styles[c].d+=!0===i.hd?"":o,r.styles[c]._mdf=l||r.styles[c]._mdf}}function s(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),l(0,e,i)}function o(t,e,i){var r,n,s,a,o,l=e.gf,h=e.g._hasOpacity,c=e.s.v,p=e.e.v;if(e.o._mdf||i){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||i){var f=1===t.t?"x1":"cx",d="x1"===f?"y1":"cy";l.setAttribute(f,c[0]),l.setAttribute(d,c[1]),h&&!e.g._collapsable&&(e.of.setAttribute(f,c[0]),e.of.setAttribute(d,c[1]))}if(e.g._cmdf||i){r=e.cst;var m=e.g.c;for(s=r.length,n=0;n<s;n+=1)(a=r[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(h&&(e.g._omdf||i)){var g=e.g.o;for(s=(r=e.g._collapsable?e.cst:e.ost).length,n=0;n<s;n+=1)a=r[n],e.g._collapsable||a.setAttribute("offset",g[2*n]+"%"),a.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)),l.setAttribute("r",o),h&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)));var y=Math.atan2(p[1]-c[1],p[0]-c[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var _=o*v,b=Math.cos(y+e.a.v)*_+c[0],x=Math.sin(y+e.a.v)*_+c[1];l.setAttribute("fx",b),l.setAttribute("fy",x),h&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",x))}}function l(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,n,s){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,r,n=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(i=0;i<s;i+=1){for(r=this.stylesList[i],o=!1,a.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,r=new SVGStyleData(t,e),n=r.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?i=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var n=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)-1!==i.indexOf(this.stylesList[e])||this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,n,s,a){var o,l,h,c,p,u,f=[].concat(s),d=t.length-1,m=[],g=[];for(o=d;o>=0;o-=1){if((u=this.searchProcessedElement(t[o]))?e[o]=i[u-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)u?e[o].style.closed=t[o].hd:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(u)for(h=e[o].it.length,l=0;l<h;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,f,a),t[o]._render&&e[o].gr.parentNode!==r&&r.appendChild(e[o].gr)}else"tr"===t[o].ty?(u||(e[o]=this.createTransformElement(t[o],r)),c=e[o].transform,f.push(c)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(u||(e[o]=this.createShapeElement(t[o],f,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(u?(p=e[o]).closed=!1:((p=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===t[o].ty&&(u?(p=e[o]).closed=!0:(p=ShapeModifiers.getModifier(t[o].ty),e[o]=p,p.init(this,t,o,e),this.shapeModifiers.push(p),a=!1),g.push(p));this.addProcessedElement(t[o],o+1)}for(d=m.length,o=0;o<d;o+=1)m[o].closed=!0;for(d=g.length,o=0;o<d;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,n,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(r=0;r<n;r+=1)s=i!==this.keysIndex?this.effectsSequence[r](s,s.t):this.effectsSequence[r](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],n=0,s=t.length,a=!1,o=!1,l="";n<s;)a=o,o=!1,e=t.charCodeAt(n),l=t.charAt(n),FontManager.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,n)?l=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(n,2),a=!0):l=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),n+=l.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,n,s,a,o,l=this.elem.globalData.fontManager,h=this.data,c=[],p=0,u=h.m.g,f=0,d=0,m=0,g=[],y=0,v=0,_=l.getFontByName(t.f),b=0,x=getFontProperties(_);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var w,S=t.tr/1e3*t.finalSize;if(t.sz)for(var E,P,C=!0,A=t.sz[0],k=t.sz[1];C;){E=0,y=0,i=(P=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<i;e+=1)w=P[e].charCodeAt(0),r=!1," "===P[e]?T=e:13!==w&&3!==w||(y=0,r=!0,E+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(P[e],_.fStyle,_.fFamily),b=r?0:o.w*t.finalSize/100):b=l.measureText(P[e],t.f,t.finalSize),y+b>A&&" "!==P[e]?(-1===T?i+=1:e=T,E+=t.finalLineHeight||1.2*t.finalSize,P.splice(e,T===e?1:0,"\r"),T=-1,y=0):(y+=b,y+=S);E+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&k<E?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=P,i=t.finalText.length,C=!1)}y=-S,b=0;var M,D=0;for(e=0;e<i;e+=1)if(r=!1,13===(w=(M=t.finalText[e]).charCodeAt(0))||3===w?(D=0,g.push(y),v=y>v?y:v,y=-2*S,n="",r=!0,m+=1):n=M,l.chars?(o=l.getCharData(M,_.fStyle,l.getFontByName(t.f).fFamily),b=r?0:o.w*t.finalSize/100):b=l.measureText(n,t.f,t.finalSize)," "===M?D+=b+S:(y+=b+S+D,D=0),c.push({l:b,an:b,add:f,n:r,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==u){if(f+=b,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(f-=b);d<=e;)c[d].an=f,c[d].ind=p,c[d].extra=b,d+=1;p+=1,f=0}}else if(3==u){if(f+=b,""===n||e===i-1){for(""===n&&(f-=b);d<=e;)c[d].an=f,c[d].ind=p,c[d].extra=b,d+=1;f=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(t.l=c,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,L,R,B=h.a;a=B.length;var V=[];for(s=0;s<a;s+=1){for((F=B[s]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),R=0,L=F.s.b,e=0;e<i;e+=1)(I=c[e]).anIndexes[s]=R,(1==L&&""!==I.val||2==L&&""!==I.val&&" "!==I.val||3==L&&(I.n||" "==I.val||e==i-1)||4==L&&(I.n||e==i-1))&&(1===F.s.rn&&V.push(R),R+=1);h.a[s].s.totalChars=R;var O,z=-1;if(1===F.s.rn)for(e=0;e<i;e+=1)z!=(I=c[e]).anIndexes[s]&&(z=I.anIndexes[s],O=V.splice(Math.floor(Math.random()*V.length),1)[0]),I.anIndexes[s]=O}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,s=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,s,a,o).get,h=0,c=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)h=l(h=p===c?r>=p?1:0:t(0,e(.5/(p-c)+(r-c)/(p-c),1)));else if(3===u)h=l(h=p===c?r>=p?0:1:1-t(0,e(.5/(p-c)+(r-c)/(p-c),1)));else if(4===u)p===c?h=0:(h=t(0,e(.5/(p-c)+(r-c)/(p-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===u){if(p===c)h=0;else{var f=p-c,d=-f/2+(r=e(t(0,r+.5-c),p-c)),m=f/2;h=Math.sqrt(1-d*d/(m*m))}h=l(h)}else 6===u?(p===c?h=0:(r=e(t(0,r+.5-c),p-c),h=(1+Math.cos(Math.PI+2*Math.PI*r/(p-c)))/2),h=l(h)):(r>=i(c)&&(h=t(0,e(r-c<0?e(p,1)-(c-r):p-r,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;h<y?h=0:(h=(h-y)/g)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,r=this.s.v/e+i,n=this.e.v/e+i;if(r>n){var s=r;r=n,n=s}this.finalS=r,this.finalE=n}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,i):r,rx:s.rx?n(t,s.rx,0,degToRads,i):r,ry:s.ry?n(t,s.ry,0,degToRads,i):r,sk:s.sk?n(t,s.sk,0,degToRads,i):r,sa:s.sa?n(t,s.sa,0,degToRads,i):r,s:s.s?n(t,s.s,1,.01,i):r,a:s.a?n(t,s.a,1,0,i):r,o:s.o?n(t,s.o,0,.01,i):r,p:s.p?n(t,s.p,1,0,i):r,sw:s.sw?n(t,s.sw,0,0,i):r,sc:s.sc?n(t,s.sc,1,0,i):r,fc:s.fc?n(t,s.fc,1,0,i):r,fh:s.fh?n(t,s.fh,0,0,i):r,fs:s.fs?n(t,s.fs,0,.01,i):r,fb:s.fb?n(t,s.fb,0,.01,i):r,t:s.t?n(t,s.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,r,n,s,a,o,l,h,c,p,u,f,d,m,g,y,v,_,b,x=this._moreOptions.alignment.v,w=this._animatorsData,S=this._textData,E=this.mHelper,P=this._renderType,C=this.renderedLetters.length,A=t.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,T=b.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},s=T._length-1,y=0,n=0;n<s;n+=1)k=bez.buildBezierData(T.v[n],T.v[n+1],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[n+1][0]-T.v[n+1][0],T.i[n+1][1]-T.v[n+1][1]]),a.tLength+=k.segmentLength,a.segments.push(k),y+=k.segmentLength;n=s,b.v.c&&(k=bez.buildBezierData(T.v[n],T.v[0],[T.o[n][0]-T.v[n][0],T.o[n][1]-T.v[n][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=k.segmentLength,a.segments.push(k),y+=k.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,u=0,p=1,h=0,c=!0,m=a.segments,o<0&&b.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),p=(d=m[u=m.length-1].points).length-1;o<0;)o+=d[p].partialLength,(p-=1)<0&&(p=(d=m[u-=1].points).length-1);f=(d=m[u].points)[p-1],g=(l=d[p]).partialLength}s=A.length,i=0,r=0;var M,D,F,I,L,R=1.2*t.finalSize*.714,B=!0;F=w.length;var V,O,z,N,G,q,H,$,j,W,Y,X,U=-1,J=o,Z=u,K=p,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,rt=0,nt=2===t.j?-.5:-1,st=0,at=!0;for(n=0;n<s;n+=1)if(A[n].n){for(it&&(it+=rt);st<n;)A[st].animatorJustifyOffset=it,st+=1;it=0,at=!0}else{for(D=0;D<F;D+=1)(M=w[D].a).t.propType&&(at&&2===t.j&&(rt+=M.t.v*nt),(L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars)).length?it+=M.t.v*L[0]*nt:it+=M.t.v*L*nt);at=!1}for(it&&(it+=rt);st<n;)A[st].animatorJustifyOffset=it,st+=1}for(n=0;n<s;n+=1){if(E.reset(),N=1,A[n].n)i=0,r+=t.yOffset,r+=B?1:0,o=J,B=!1,this._hasMaskedPath&&(p=K,f=(d=m[u=Z].points)[p-1],g=(l=d[p]).partialLength,h=0),tt="",Y="",j="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==A[n].line){switch(t.j){case 1:o+=y-t.lineWidths[A[n].line];break;case 2:o+=(y-t.lineWidths[A[n].line])/2}Q=A[n].line}U!==A[n].ind&&(A[U]&&(o+=A[U].extra),o+=A[n].an/2,U=A[n].ind),o+=x[0]*A[n].an*.005;var ot=0;for(D=0;D<F;D+=1)(M=w[D].a).p.propType&&((L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars)).length?ot+=M.p.v[0]*L[0]:ot+=M.p.v[0]*L),M.a.propType&&((L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars)).length?ot+=M.a.v[0]*L[0]:ot+=M.a.v[0]*L);for(c=!0,this._pathData.a.v&&(o=.5*A[0].an+(y-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*U/(s-1),o+=this._pathData.f.v);c;)h+g>=o+ot||!d?(v=(o+ot-h)/l.partialLength,O=f.point[0]+(l.point[0]-f.point[0])*v,z=f.point[1]+(l.point[1]-f.point[1])*v,E.translate(-x[0]*A[n].an*.005,-x[1]*R*.01),c=!1):d&&(h+=l.partialLength,(p+=1)>=d.length&&(p=0,m[u+=1]?d=m[u].points:b.v.c?(p=0,d=m[u=0].points):(h-=l.partialLength,d=null)),d&&(f=l,g=(l=d[p]).partialLength));V=A[n].an/2-A[n].add,E.translate(-V,0,0)}else V=A[n].an/2-A[n].add,E.translate(-V,0,0),E.translate(-x[0]*A[n].an*.005,-x[1]*R*.01,0);for(D=0;D<F;D+=1)(M=w[D].a).t.propType&&(L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=M.t.v*L[0]:o+=M.t.v*L:L.length?i+=M.t.v*L[0]:i+=M.t.v*L));for(t.strokeWidthAnim&&(q=t.sw||0),t.strokeColorAnim&&(G=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<F;D+=1)(M=w[D].a).a.propType&&((L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars)).length?E.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):E.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(D=0;D<F;D+=1)(M=w[D].a).s.propType&&((L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars)).length?E.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):E.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(D=0;D<F;D+=1){if(M=w[D].a,L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars),M.sk.propType&&(L.length?E.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):E.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?E.rotateZ(-M.r.v*L[2]):E.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?E.rotateY(M.ry.v*L[1]):E.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?E.rotateX(M.rx.v*L[0]):E.rotateX(M.rx.v*L)),M.o.propType&&(L.length?N+=(M.o.v*L[0]-N)*L[0]:N+=(M.o.v*L-N)*L),t.strokeWidthAnim&&M.sw.propType&&(L.length?q+=M.sw.v*L[0]:q+=M.sw.v*L),t.strokeColorAnim&&M.sc.propType)for($=0;$<3;$+=1)L.length?G[$]+=(M.sc.v[$]-G[$])*L[0]:G[$]+=(M.sc.v[$]-G[$])*L;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for($=0;$<3;$+=1)L.length?H[$]+=(M.fc.v[$]-H[$])*L[0]:H[$]+=(M.fc.v[$]-H[$])*L;M.fh.propType&&(H=L.length?addHueToRGB(H,M.fh.v*L[0]):addHueToRGB(H,M.fh.v*L)),M.fs.propType&&(H=L.length?addSaturationToRGB(H,M.fs.v*L[0]):addSaturationToRGB(H,M.fs.v*L)),M.fb.propType&&(H=L.length?addBrightnessToRGB(H,M.fb.v*L[0]):addBrightnessToRGB(H,M.fb.v*L))}}for(D=0;D<F;D+=1)(M=w[D].a).p.propType&&(L=w[D].s.getMult(A[n].anIndexes[D],S.a[D].s.totalChars),this._hasMaskedPath?L.length?E.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):E.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?E.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):E.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(t.strokeWidthAnim&&(j=q<0?0:q),t.strokeColorAnim&&(W="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(E.translate(0,-t.ls),E.translate(0,x[1]*R*.01+r,0),this._pathData.p.v){_=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var lt=180*Math.atan(_)/Math.PI;l.point[0]<f.point[0]&&(lt+=180),E.rotate(-lt*Math.PI/180)}E.translate(O,z,0),o-=x[0]*A[n].an*.005,A[n+1]&&U!==A[n+1].ind&&(o+=A[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(E.translate(i,r,0),t.ps&&E.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:E.translate(A[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[n].line]),0,0);break;case 2:E.translate(A[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[n].line])/2,0,0)}E.translate(0,-t.ls),E.translate(V,0,0),E.translate(x[0]*A[n].an*.005,x[1]*R*.01,0),i+=A[n].l+.001*t.tr*t.finalSize}"html"===P?tt=E.toCSS():"svg"===P?tt=E.to2dCSS():et=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],X=N}C<=n?(I=new LetterProps(X,j,W,Y,tt,et),this.renderedLetters.push(I),C+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(X,j,W,Y,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,r,n=e.length,s="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(r=e[i].ks.k,s+=buildShapeString(r,r.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var r=createNS("title"),n=createElementID();r.setAttribute("id",n),r.textContent=e.title,this.svgElement.appendChild(r),i+=n}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(n),n=""):n+=t[e],e+=1;return r.push(n),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var r=this.globalData.fontManager.getFontByName(i.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var n=i.fWeight,s=i.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var h=this.mHelper,c=this.data.singleShape,p=0,u=0,f=!0,d=.001*i.tr*i.finalSize;if(!c||l||i.sz){var m,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(a=g>t?this.textSpans[t].span:createNS(l?"g":"text"),g<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(h.reset(),c&&(o[t].n&&(p=-d,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,h,o[t].line,p,u),p+=o[t].l||0,p+=d),l){var v;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var _=emptyShapeData;m.data&&m.data.shapes&&(_=this.buildShapeData(m.data,i.finalSize)),v=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[t].glyph){var b=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var x=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}x.setAttribute("text-anchor",w),x.setAttribute("letter-spacing",d);var S=this.buildTextContents(i.finalText);for(e=S.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=S[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",x.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,r,n,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=s[t],r=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&r.setAttribute("transform",i.m),i._mdf.o&&r.setAttribute("opacity",i.o),i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i._mdf.sc&&r.setAttribute("stroke",i.sc),i._mdf.fc&&r.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var n=createElementID();i.setAttribute("id",n),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var n=e[r].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(r),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var r,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(i,r):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,r="_";for(e=0;e<i;e+=1)r+=t[e].transform.key+"_";var n=this.sequences[r];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var i=0,r=t.transforms.length,n=e;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null,r=null;function n(){var n,s,a;e||(n=createNS("svg"),s=createNS("filter"),a=createNS("feColorMatrix"),s.setAttribute("id",t),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),s.appendChild(a),n.appendChild(s),n.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),r=n,document.body.appendChild(r),e=createTag("canvas"),(i=e.getContext("2d")).filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:n,get:function(r){return e||n(),e.width=r.width,e.height=r.height,i.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(t){var e,i,r=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<r;e+=1){i=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(i=new(0,registeredEffects[n].effect)(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,n=!1;for(i=0;i<r;i+=1)"n"!==this.masksProperties[i].mode&&(n=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,n=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){var o;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),r=this.viewData[t].v,e=n.applyToPointArray(r.v[0][0],r.v[0][1],0),s.moveTo(e[0],e[1]);var l=r._length;for(o=1;o<l;o+=1)i=n.applyToTriplePoints(r.o[o-1],r.i[o],r.v[o]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=n.applyToTriplePoints(r.o[o-1],r.i[0],r.v[0]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,o=i.length;for(n=0;n<o;n+=1)i[n].closed||(a={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(a),i[n].elements.push(a))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(i.wi=r.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);r.d=n,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,n){var s,a,o,l,h,c,p=t.length-1,u=[],f=[],d=[].concat(n);for(s=p;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=i[l-1]:t[s]._shouldRender=r,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),u.push(e[s].style);else if("gr"===t[s].ty){if(l)for(o=e[s].it.length,a=0;a<o;a+=1)e[s].prevViewData[a]=e[s].it[a];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,r,d)}else"tr"===t[s].ty?(l||(c=this.createTransformElement(t[s]),e[s]=c),d.push(e[s]),this.addTransformToStyleList(e[s])):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?l||(e[s]=this.createShapeElement(t[s])):"tm"===t[s].ty||"rd"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"===t[s].ty&&(l?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),r=!1),f.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=f.length,s=0;s<p;s+=1)f[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,r,n,s,a,o,l,h=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(("st"!==(o=(l=this.stylesList[t]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),s=l.elements,"st"===o||"gs"===o?(c.ctxStrokeStyle("st"===o?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===o?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),i=s.length,e=0;e<i;e+=1){for("st"!==o&&"gs"!==o||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(a=s[e].trNodes).length,r=0;r<n;r+=1)"m"===a[r].t?p.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?p.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):p.closePath();"st"!==o&&"gs"!==o||(c.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){var n,s;for(s=t,n=e.length-1;n>=0;n-=1)"tr"===e[n].ty?(s=i[n].transform,this.renderShapeTransform(t,s)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],i[n]):"fl"===e[n].ty?this.renderFill(e[n],i[n],s):"st"===e[n].ty?this.renderStroke(e[n],i[n],s):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],i[n],s):"gr"===e[n].ty?this.renderShape(s,e[n].it,i[n].it):e[n].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,n,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n<o;n+=1){var h=a.shapes[n];if(h&&h.v){for(r=h._length,i=1;i<r;i+=1)1===i&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===r&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&r&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,r=e.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s,a=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(1===t.t)r=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=h*p,f=Math.cos(c+e.a.v)*u+o[0],d=Math.sin(c+e.a.v)*u+o[1];r=a.createRadialGradient(f,d,0,o[0],o[1],h)}var m=t.g.p,g=e.g.c,y=1;for(s=0;s<m;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),r.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+y+")");n.grd=r}n.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(r.da=n.dashArray,r.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,n,s,a,o,l,h,c,p,u,f,d,m=this.globalData.fontManager.getFontByName(t.f),g=t.l,y=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var v=this.data.singleShape,_=.001*t.tr*t.finalSize,b=0,x=0,w=!0,S=0;for(r=0;r<n;r+=1){a=(s=this.globalData.fontManager.getCharData(t.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&g[r].n&&(b=-_,x+=t.yOffset,x+=w?1:0,w=!1),p=(h=a.shapes?a.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,g[r].line,b,x),f=createSizedArray(p-1);var E=0;for(c=0;c<p;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,u=h[c].ks.k,d=[],o=1;o<l;o+=1)1===o&&d.push(y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),d.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[o][0],u.i[o][1],0),y.applyToY(u.i[o][0],u.i[o][1],0),y.applyToX(u.v[o][0],u.v[o][1],0),y.applyToY(u.v[o][0],u.v[o][1],0));d.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[0][0],u.i[0][1],0),y.applyToY(u.i[0][0],u.i[0][1],0),y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),f[E]=d,E+=1}v&&(b+=g[r].l,b+=_),this.textSpans[S]?this.textSpans[S].elem=f:this.textSpans[S]={elem:f},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,r,n,s;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var h,c,p=null,u=null,f=null,d=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((a=o[t])&&(d.save(),d.ctxTransform(a.p),d.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(d.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,d.ctxFillStyle(this.values.fill)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(s=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(a&&a.sw?f!==a.sw&&(f=a.sw,d.ctxLineWidth(a.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),a&&a.sc?u!==a.sc&&(u=a.sc,d.ctxStrokeStyle(a.sc)):u!==this.values.stroke&&(u=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(s=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,r=t.getContext("2d"),n=this.img.width,s=this.img.height,a=n/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===l||a<o&&"xMidYMid slice"!==l?e=(i=s)*o:i=(e=n)/o,r.drawImage(this.img,(n-e)/2,(s-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,r){this.canvasContext.fillRect(t,e,i,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,r,n,s;if(this.reset(),t?(i=t,r=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);n=i/r,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===o||s<n&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===h&&(s<n&&"meet"===o||s>n&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(s<n&&"meet"===o||s>n&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(s>n&&"meet"===o||s<n&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(s>n&&"meet"===o||s<n&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],r=i.transform,n=this.cTr.props;for(e=0;e<16;e+=1)n[e]=r[e];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,r=this.stack[this.cArrPos];for(i=0;i<16;i+=1)r.transform[i]=e[i];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,n,s,a,o=t.sh.v,l=t.transformers,h=o._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)r=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),s=this.getTransformedPoint(l,o.i[i+1]),a=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(r,n,s,a,e);o.c&&(r=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),s=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(r,n,s,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,n){this.getBoundsOfCurve(t,e,i,r);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var n,s,a,o,l,h,c,p=[[t[0],r[0]],[t[1],r[1]]],u=0;u<2;++u)s=6*t[u]-12*e[u]+6*i[u],n=-3*t[u]+9*e[u]-9*i[u]+3*r[u],a=3*e[u]-3*t[u],s|=0,a|=0,0==(n|=0)&&0===s||(0===n?(o=-a/s)>0&&o<1&&p[u].push(this.calculateF(o,t,e,i,r,u)):(l=s*s-4*a*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&p[u].push(this.calculateF(h,t,e,i,r,u)),(c=(-s-bmSqrt(l))/(2*n))>0&&c<1&&p[u].push(this.calculateF(c,t,e,i,r,u))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*i[s]+3*(1-t)*bmPow(t,2)*r[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var n=t.keyframes[r].s;n>i&&(i=n)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=n,r.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,n,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var a=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=a}var l,h,c,p=t.l;n=p.length;var u,f=this.mHelper,d="",m=0;for(r=0;r<n;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],l=this.textPaths[m]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(t.finalText[r],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=y?y.data:null,f.reset(),g&&g.shapes&&g.shapes.length&&(u=g.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(f,u),l.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),g&&g.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var _=c.style,b="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";_.transform=b,_.webkitTransform=b,p[r].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=p[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var x=l.style,w="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=w,x.webkitTransform=w}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,r,n,s,a,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(r=h.length,i=0;i<r;i+=1)h[i].n?o+=1:(s=this.textSpans[i],a=this.textPaths[i],n=l[o],o+=1,n._mdf.m&&(this.isMasked?s.setAttribute("transform",n.m):(s.style.webkitTransform=n.m,s.style.transform=n.m)),s.style.opacity=n.o,n.sw&&n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&a.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(a.setAttribute("fill",n.fc),a.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=p,t.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,r,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,r=e.container.style;var s=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s,i.webkitPerspective=s,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var p,u,f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(p=this.comp.threeDElements[t]).type){if(c){var d=this.mat.toCSS();(f=p.container.style).transform=d,f.webkitTransform=d}this.pe._mdf&&((u=p.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var n,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],n=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||n),a+=1;n?r.ddd&&this.supports3d||this.layerElement.insertBefore(i,n):r.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),"3d"===e){(i=n.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=s.style).transform=o,r.webkitTransform=o}n.appendChild(s);var l={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var n,s=this.threeDElements[i].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[i].container.insertBefore(t,n):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=n/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,i=0,r=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,r=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e],r,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var i=0,r=t.layers.length;i<r;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var i=this,r=256,n="random",s=e.pow(r,6),a=e.pow(2,52),o=2*a,l=255;function h(t){var e,i=t.length,n=this,s=0,a=n.i=n.j=0,o=n.S=[];for(i||(t=[i++]);s<r;)o[s]=s++;for(s=0;s<r;s++)o[s]=o[a=l&a+t[s%i]+(e=o[s])],o[a]=e;n.g=function(t){for(var e,i=0,s=n.i,a=n.j,o=n.S;t--;)e=o[s=l&s+1],i=i*r+o[l&(o[s]=o[a=l&a+e])+(o[a]=e)];return n.i=s,n.j=a,i}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function p(t,e){var i,r=[],n=_typeof$2(t);if(e&&"object"==n)for(i in t)try{r.push(p(t[i],e-1))}catch(t){}return r.length?r:"string"==n?t:t+"\0"}function u(t,e){for(var i,r=t+"",n=0;n<r.length;)e[l&n]=l&(i^=19*e[l&n])+r.charCodeAt(n++);return f(e)}function f(t){return String.fromCharCode.apply(0,t)}e["seed"+n]=function(l,d,m){var g=[],y=u(p((d=!0===d?{entropy:!0}:d||{}).entropy?[l,f(t)]:null===l?function(){try{var e=new Uint8Array(r);return(i.crypto||i.msCrypto).getRandomValues(e),f(e)}catch(e){var n=i.navigator,s=n&&n.plugins;return[+new Date,i,s,i.screen,f(t)]}}():l,3),g),v=new h(g),_=function(){for(var t=v.g(6),e=s,i=0;t<a;)t=(t+i)*r,e*=r,i=v.g(1);for(;t>=o;)t/=2,e/=2,i>>>=1;return(t+i)/e};return _.int32=function(){return 0|v.g(4)},_.quick=function(){return v.g(4)/4294967296},_.double=_,u(f(v.S),t),(d.pass||m||function(t,i,r,s){return s&&(s.S&&c(s,v),t.state=function(){return c(v,{})}),r?(e[n]=t,i):t})(_,y,"global"in d?d.global:this==e,d.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,r=t.length,n=[];for(i=0;i<r;i+=1)n[i]=-t[i];return n}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e)||"string"===i||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]+e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e))return"string"===i&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]-e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}function mul(t,e){var i,r,n,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]*e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,n,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]/e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var r=i;i=e,e=r}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),n=0;for(i=0;i<r;i+=1)n+=Math.pow(e[i]-t[i],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,r=t[0],n=t[1],s=t[2],a=Math.max(r,n,s),o=Math.min(r,n,s),l=(a+o)/2;if(a===o)e=0,i=0;else{var h=a-o;switch(i=l>.5?h/(2-a-o):h/(a+o),a){case r:e=(n-s)/h+(n<s?6:0);break;case n:e=(s-r)/h+2;break;case s:e=(r-n)/h+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,n=t[0],s=t[1],a=t[2];if(0===s)e=a,r=a,i=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,n+1/3),i=hue2rgb(l,o,n),r=hue2rgb(l,o,n-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,n){if(void 0!==r&&void 0!==n||(r=e,n=i,e=0,i=1),i<e){var s=i;i=e,e=s}if(t<=e)return r;if(t>=i)return n;var a,o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(n-r)*o;var l=r.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=r[a]+(n[a]-r[a])*o;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,r=e.length;t||(t=createTypedArray("float32",r));var n=createTypedArray("float32",r),s=BMMath.random();for(i=0;i<r;i+=1)n[i]=t[i]+s*(e[i]-t[i]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,r){var n,s=t.length,a=shapePool.newElement();a.setPathData(!!r,s);var o,l,h=[0,0];for(n=0;n<s;n+=1)o=e&&e[n]?e[n]:h,l=i&&i[n]?i[n]:h,a.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],o[0]+t[n][0],o[1]+t[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var i,r,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n),a=Math.floor(5*time);for(i=0,r=0;i<a;){for(r=0;r<n;r+=1)s[r]+=-e+2*e*BMMath.random();i+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",n);if(n>1){for(r=0;r<n;r+=1)h[r]=this.pv[r]+s[r]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,r,0]}function easeOut(t,e,i,r,n){return applyEase(easeOutBez,t,e,i,r,n)}function easeIn(t,e,i,r,n){return applyEase(easeInBez,t,e,i,r,n)}function ease(t,e,i,r,n){return applyEase(easeInOutBez,t,e,i,r,n)}function applyEase(t,e,i,r,n,s){void 0===n?(n=i,s=r):e=(e-i)/(r-i),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,l=n.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(s[o]-n[o])*a+n[o];return h}return(s-n)*a+n}function nearestKey(t){var e,i,r,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else i=0,r=0;var s={};return s.index=i,s.time=r/elem.comp.globalData.frameRate,s}function key(t){var e,i,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=n.length,i=0;i<r;i+=1)e[i]=n[i],e.value[i]=n[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,r=createSizedArray(e.viewData.length),n=e.viewData.length;for(i=0;i<n;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<n;){if(e.masksProperties[i].nm===t)return r[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var n="";n="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var s="unidimensional"===i?new Number(n):Object.assign({},n);return s.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===i?n[0]:n,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(n){return n?"unidimensional"===n.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,n=e.pv*r,s=new Number(n);return s.value=n,i(s,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*r,s.value!==n&&((s=new Number(n)).value=n,s[0]=n,i(s,e,"unidimensional")),s}}(n):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,n=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",n),a=createTypedArray("float32",n);return s.value=a,i(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)a[e]=t.v[e]*r,s[e]=a[e];return s}}(n):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,n,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[i(),r(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function n(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){var c;function p(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=a,p.applyPoint=s,p.toWorld=i,p.toWorldVec=e,p.fromWorld=n,p.fromWorldVec=r,p.toComp=i,p.fromComp=o,p.sampleImage=l,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var u=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=0===h.data.ty?h.data.h:100,p.width=0===h.data.ty?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(t){p.mask=new MaskManagerInterface(t,h)},p.registerEffectsInterface=function(t){p.effect=t},p}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function t(i,r,n,s){function a(t){for(var e=i.ef,r=0,n=e.length;r<n;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix)return 5===e[r].ty?h[r]:h[r]();r+=1}throw new Error}var o,l=propertyGroupFactory(a,n),h=[],c=i.ef.length;for(o=0;o<c;o+=1)5===i.ef[o].ty?h.push(t(i.ef[o],r.effectElements[o],r.effectElements[o].propertyGroup,s)):h.push(e(r.effectElements[o],i.ef[o].ty,s,l));return"ADBE Color Control"===i.mn&&Object.defineProperty(a,"color",{get:function(){return h[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:l}}),a.enabled=0!==i.en,a.active=a.enabled,a}function e(t,e,i,r){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):n()}}return{createEffectsInterface:function(e,i){if(e.effectsManager){var r,n=[],s=e.data.ef,a=e.effectsManager.effectElements.length;for(r=0;r<a;r+=1)n.push(t(s[r],e.effectsManager.effectElements[r],i,e));var o=e.data.ef||[],l=function(t){for(r=0,a=o.length;r<a;){if(t===o[r].nm||t===o[r].mn||t===o[r].ix)return n[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(t,e,i){var r=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var s=propertyGroupFactory(n,i);return r.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n},ShapeExpressionInterface=function(){function t(t,o,f){var d,m=[],g=t?t.length:0;for(d=0;d<g;d+=1)"gr"===t[d].ty?m.push(e(t[d],o[d],f)):"fl"===t[d].ty?m.push(i(t[d],o[d],f)):"st"===t[d].ty?m.push(s(t[d],o[d],f)):"tm"===t[d].ty?m.push(a(t[d],o[d],f)):"tr"===t[d].ty||("el"===t[d].ty?m.push(l(t[d],o[d],f)):"sr"===t[d].ty?m.push(h(t[d],o[d],f)):"sh"===t[d].ty?m.push(ShapePathInterface(t[d],o[d],f)):"rc"===t[d].ty?m.push(c(t[d],o[d],f)):"rd"===t[d].ty?m.push(p(t[d],o[d],f)):"rp"===t[d].ty?m.push(u(t[d],o[d],f)):"gf"===t[d].ty?m.push(r(t[d],o[d],f)):m.push(n(t[d],o[d])));return m}function e(e,i,r){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,r);var s=function(e,i,r){var n,s=function(t){for(var e=0,i=n.length;e<i;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};s.propertyGroup=propertyGroupFactory(s,r),n=t(e.it,i.it,s.propertyGroup),s.numProperties=n.length;var a=o(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.transform=a,s.propertyIndex=e.cix,s._name=e.nm,s}(e,i,n.propertyGroup),a=o(e.it[e.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.content=s,n.transform=a,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function i(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function r(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function n(){return function(){return null}}function s(t,e,i){var r,n=propertyGroupFactory(h,i),s=propertyGroupFactory(l,n);function a(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,l={};for(r=0;r<o;r+=1)a(r),e.d.dataProps[r].p.setGroupProperty(s);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),h}function a(t,e,i){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var n=propertyGroupFactory(r,i);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),r.propertyIndex=t.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function o(t,e,i){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var n=propertyGroupFactory(r,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=i,r}function l(t,e,i){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var n=propertyGroupFactory(r,i);r.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function h(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var n=propertyGroupFactory(r,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",n)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),s.pt.setGroupProperty(PropertyInterface("Points",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var n=propertyGroupFactory(r,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",n)),s.s.setGroupProperty(PropertyInterface("Size",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function p(t,e,i){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var n=propertyGroupFactory(r,i),s=e;return r.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,i){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var n=propertyGroupFactory(r,i),s=e;return r.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",n)),s.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,i,r){var n;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:n[t-1];for(var e=0,i=n.length;e<i;){if(n[e]._name===t)return n[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,function(){return r}),n=t(e,i,s.propertyGroup),s.numProperties=n.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function r(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?r:i;var n=t.indexOf(e);if(-1!==n){var s=parseInt(t.substr(n+e.length),10);return"object"===_typeof(i=i[s])?r:i}return""}return function(){return e="",i=t.getFootageData(),r}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){var n;for(n=0;n<e.length;n+=1)r+=Math.pow(i[n]-e[n],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,r=-.001,n=this.getValueAtTime(t),s=this.getValueAtTime(t+r);if(n.length)for(e=createTypedArray("float32",n.length),i=0;i<n.length;i+=1)e[i]=(s[i]-n[i])/r;else e=(s-n)/r;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,n,s,a,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?n=c-(r=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),r=c-(n=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/r)%2!=0)return this.getValueAtTime((r-(l-n)%r+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),d=Math.floor((l-n)/r);if(this.pv.length){for(a=(o=new Array(p.length)).length,s=0;s<a;s+=1)o[s]=(u[s]-p[s])*d+f[s];return o}return(u-p)*d+f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,n,s,a,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(i?n=c+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>h.length-1)&&(e=h.length-1),r=(n=h[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),f=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),d=Math.floor((c-l)/r)+1;if(this.pv.length){for(a=(o=new Array(p.length)).length,s=0;s<a;s+=1)o[s]=f[s]-(u[s]-p[s])*d;return o}return f-(u-p)*d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*(c-l)/.001;return o}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,r,n=this.comp.renderedFrame/this.comp.globalData.frameRate,s=n-t,a=e>1?(n+t-s)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(r=this.getValueAtTime(s+o*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=r[l];else i+=r;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),h=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var f=this.pz.getValueAtTime(t);e.translate(p*this.px.mult,u*this.py.mult,-f*this.pz.mult)}else e.translate(p*this.px.mult,u*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var a=s(t,e,i);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=n.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,n,s,o,l){var h=a(r,n,s,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=i,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===n.a?n.k.length:0,h.propertyIndex=n.ix;var c=0;return 0!==s&&(c=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,n,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(t,e){this.k&&this.getValue();var i,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var n=r._length,s=r[t],a=r.v,o=createSizedArray(n);for(i=0;i<n;i+=1)o[i]="i"===t||"o"===t?[s[i][0]-a[i][0],s[i][1]-a[i][1]]:[s[i][0],s[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var r,n=this._segmentsLength,s=n.lengths,a=n.totalLength*t,o=0,l=s.length,h=0;o<l;){if(h+s[o].addedLength>a){var c=o,p=i.c&&o===l-1?0:o+1,u=(a-h)/s[o].addedLength;r=bez.getPointInSegment(i.v[c],i.v[p],i.o[c],i.i[p],u,s[o]);break}h+=s[o].addedLength,o+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),s=n[0]-r[0],a=n[1]-r[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,n){var s=c(t,e,i,r,n);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var r={};return this.copyData(r,t),r.t=i.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,n=createNS("feMerge");for(n.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),n.appendChild(i),n.appendChild(i);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,r,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",r+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",r+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(r,[n,r+"_tint_1",r+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,r,n){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(c);var p=this.createMergeNode(r,[r+"_drop_shadow_4",n]);t.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,r,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&r.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();s="0 0 0 "+l*a+" ";var h,c=l*(o-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/p);for(h=0;h<u;h+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,n=r[0]+" "+i[0]+" "+e[0],s=r[1]+" "+i[1]+" "+e[1],a=r[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,n){for(var s,a,o=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),p=0,u=n-r,f=e-t;o<=256;)a=(s=o/256)<=l?f<0?n:r:s>=h?f<0?r:n:r+u*Math.pow((s-t)/f,1/i),c[p]=a,p+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=i*Math.cos(r),s=i*Math.sin(r);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",r),t.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,n=i.children,s=0,a=n.length;s<a&&n[s]!==t.layerElement;)s+=1;s<=a-2&&(r=n[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(r);var s=createNS("symbol");s.setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),n.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+i),r.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=3==i?0:e,n=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+n);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,r=e[1].p.v,n=1===e[2].p.v,s=e[3].p.v,a=n?s:e[4].p.v,o=e[5].p.v,l=e[6].p.v,h=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*a,.01*s,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},
1"./styles/app.css":()=>{},jquery:t=>{"use strict";t.exports=window.jQuery},
1"./scripts/app.js":(t,e,i)=>{"use strict";const r=t=>{window.requestAnimationFrame(async function e(){document.body?await t():window.requestAnimationFrame(e)})};var n,s,a,o,l=!1,h=!1,c=[],p=-1;function u(t){!function(t){c.includes(t)||c.push(t);h||l||(l=!0,queueMicrotask(d))}(t)}function f(t){let e=c.indexOf(t);-1!==e&&e>p&&c.splice(e,1)}function d(){l=!1,h=!0;for(let t=0;t<c.length;t++)c[t](),p=t;c.length=0,p=-1,h=!1}var m=!0;function g(t){s=t}function y(t,e){let i,r=!0,n=s(()=>{let n=t();JSON.stringify(n),r?i=n:queueMicrotask(()=>{e(n,i),i=n}),r=!1});return()=>a(n)}var v=[],_=[],b=[];function x(t,e){"function"==typeof e?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,_.push(e))}function w(t){v.push(t)}function S(t,e,i){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(i)}function E(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([i,r])=>{(void 0===e||e.includes(i))&&(r.forEach(t=>t()),delete t._x_attributeCleanups[i])})}var P=new MutationObserver(I),C=!1;function A(){P.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),C=!0}function k(){!function(){let t=P.takeRecords();T.push(()=>t.length>0&&I(t));let e=T.length;queueMicrotask(()=>{if(T.length===e)for(;T.length>0;)T.shift()()})}(),P.disconnect(),C=!1}var T=[];function M(t){if(!C)return t();k();let e=t();return A(),e}var D=!1,F=[];function I(t){if(D)return void(F=F.concat(t));let e=[],i=new Set,r=new Map,n=new Map;for(let s=0;s<t.length;s++)if(!t[s].target._x_ignoreMutationObserver&&("childList"===t[s].type&&(t[s].removedNodes.forEach(t=>{1===t.nodeType&&t._x_marker&&i.add(t)}),t[s].addedNodes.forEach(t=>{1===t.nodeType&&(i.has(t)?i.delete(t):t._x_marker||e.push(t))})),"attributes"===t[s].type)){let e=t[s].target,i=t[s].attributeName,a=t[s].oldValue,o=()=>{r.has(e)||r.set(e,[]),r.get(e).push({name:i,value:e.getAttribute(i)})},l=()=>{n.has(e)||n.set(e,[]),n.get(e).push(i)};e.hasAttribute(i)&&null===a?o():e.hasAttribute(i)?(l(),o()):l()}n.forEach((t,e)=>{E(e,t)}),r.forEach((t,e)=>{v.forEach(i=>i(e,t))});for(let t of i)e.some(e=>e.contains(t))||_.forEach(e=>e(t));for(let t of e)t.isConnected&&b.forEach(e=>e(t));e=null,i=null,r=null,n=null}function L(t){return V(B(t))}function R(t,e,i){return t._x_dataStack=[e,...B(i||t)],()=>{t._x_dataStack=t._x_dataStack.filter(t=>t!==e)}}function B(t){return t._x_dataStack?t._x_dataStack:"function"==typeof ShadowRoot&&t instanceof ShadowRoot?B(t.host):t.parentNode?B(t.parentNode):[]}function V(t){return new Proxy({objects:t},O)}var O={ownKeys:({objects:t})=>Array.from(new Set(t.flatMap(t=>Object.keys(t)))),has:({objects:t},e)=>e!=Symbol.unscopables&&t.some(t=>Object.prototype.hasOwnProperty.call(t,e)||Reflect.has(t,e)),get:({objects:t},e,i)=>"toJSON"==e?z:Reflect.get(t.find(t=>Reflect.has(t,e))||{},e,i),set({objects:t},e,i,r){const n=t.find(t=>Object.prototype.hasOwnProperty.call(t,e))||t[t.length-1],s=Object.getOwnPropertyDescriptor(n,e);return s?.set&&s?.get?s.set.call(r,i)||!0:Reflect.set(n,e,i)}};function z(){return Reflect.ownKeys(this).reduce((t,e)=>(t[e]=Reflect.get(this,e),t),{})}function N(t){let e=(i,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([n,{value:s,enumerable:a}])=>{if(!1===a||void 0===s)return;if("object"==typeof s&&null!==s&&s.__v_skip)return;let o=""===r?n:`${r}.${n}`;var l;"object"==typeof s&&null!==s&&s._x_interceptor?i[n]=s.initialize(t,o,n):"object"!=typeof(l=s)||Array.isArray(l)||null===l||s===i||s instanceof Element||e(s,o)})};return e(t)}function G(t,e=()=>{}){let i={initialValue:void 0,_x_interceptor:!0,initialize(e,i,r){return t(this.initialValue,()=>function(t,e){return e.split(".").reduce((t,e)=>t[e],t)}(e,i),t=>q(e,i,t),i,r)}};return e(i),t=>{if("object"==typeof t&&null!==t&&t._x_interceptor){let e=i.initialize.bind(i);i.initialize=(r,n,s)=>{let a=t.initialize(r,n,s);return i.initialValue=a,e(r,n,s)}}else i.initialValue=t;return i}}function q(t,e,i){if("string"==typeof e&&(e=e.split(".")),1!==e.length){if(0===e.length)throw error;return t[e[0]]||(t[e[0]]={}),q(t[e[0]],e.slice(1),i)}t[e[0]]=i}var H={};function $(t,e){H[t]=e}function j(t,e){let i=function(t){let[e,i]=pt(t),r={interceptor:G,...e};return x(t,i),r}(e);
1return Object.entries(H).forEach(([r,n])=>{Object.defineProperty(t,`$${r}`,{get:()=>n(e,i),enumerable:!1})}),t}function W(t,e,i,...r){try{return i(...r)}catch(i){Y(i,t,e)}}function Y(t,e,i=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:i}),console.warn(`Alpine Expression Error: ${t.message}\n\n${i?'Expression: "'+i+'"\n\n':""}`,e),setTimeout(()=>{throw t},0)}var X=!0;function U(t){let e=X;X=!1;let i=t();return X=e,i}function J(t,e,i={}){let r;return Z(t,e)(t=>r=t,i),r}function Z(...t){return K(...t)}var K=Q;function Q(t,e){let i={};j(i,t);let r=[i,...B(t)],n="function"==typeof e?function(t,e){return(i=()=>{},{scope:r={},params:n=[],context:s}={})=>{et(i,e.apply(V([r,...t]),n))}}(r,e):function(t,e,i){let r=function(t,e){if(tt[t])return tt[t];let i=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;const n=()=>{try{let e=new i(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(e,"name",{value:`[Alpine] ${t}`}),e}catch(i){return Y(i,e,t),Promise.resolve()}};let s=n();return tt[t]=s,s}(e,i);return(n=()=>{},{scope:s={},params:a=[],context:o}={})=>{r.result=void 0,r.finished=!1;let l=V([s,...t]);if("function"==typeof r){let t=r.call(o,r,l).catch(t=>Y(t,i,e));r.finished?(et(n,r.result,l,a,i),r.result=void 0):t.then(t=>{et(n,t,l,a,i)}).catch(t=>Y(t,i,e)).finally(()=>r.result=void 0)}}}(r,e,t);return W.bind(null,t,e,n)}var tt={};function et(t,e,i,r,n){if(X&&"function"==typeof e){let s=e.apply(i,r);s instanceof Promise?s.then(e=>et(t,e,i,r)).catch(t=>Y(t,n,e)):t(s)}else"object"==typeof e&&e instanceof Promise?e.then(e=>t(e)):t(e)}var it="x-";function rt(t=""){return it+t}var nt={};function st(t,e){return nt[t]=e,{before(e){if(!nt[e])return void console.warn(String.raw`Cannot find directive \`${e}\`. \`${t}\` will use the default order of execution`);const i=_t.indexOf(e);_t.splice(i>=0?i:_t.indexOf("DEFAULT"),0,t)}}}function at(t,e,i){if(e=Array.from(e),t._x_virtualDirectives){let i=Object.entries(t._x_virtualDirectives).map(([t,e])=>({name:t,value:e})),r=ot(i);i=i.map(t=>r.find(e=>e.name===t.name)?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t),e=e.concat(i)}let r={},n=e.map(ft((t,e)=>r[t]=e)).filter(gt).map(function(t,e){return({name:i,value:r})=>{let n=i.match(yt()),s=i.match(/:([a-zA-Z0-9\-_:]+)/),a=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=e||t[i]||i;return{type:n?n[1]:null,value:s?s[1]:null,modifiers:a.map(t=>t.replace(".","")),expression:r,original:o}}}(r,i)).sort(bt);return n.map(e=>function(t,e){let i=()=>{},r=nt[e.type]||i,[n,s]=pt(t);S(t,e.original,s);let a=()=>{t._x_ignore||t._x_ignoreSelf||(r.inline&&r.inline(t,e,n),r=r.bind(r,t,e,n),lt?ht.get(ct).push(r):r())};return a.runCleanups=s,a}(t,e))}function ot(t){return Array.from(t).map(ft()).filter(t=>!gt(t))}var lt=!1,ht=new Map,ct=Symbol();function pt(t){let e=[],[i,r]=function(t){let e=()=>{};return[i=>{let r=s(i);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(t=>t())}),t._x_effects.add(r),e=()=>{void 0!==r&&(t._x_effects.delete(r),a(r))},r},()=>{e()}]}(t);e.push(r);return[{Alpine:be,effect:i,cleanup:t=>e.push(t),evaluateLater:Z.bind(Z,t),evaluate:J.bind(J,t)},()=>e.forEach(t=>t())]}var ut=(t,e)=>({name:i,value:r})=>(i.startsWith(t)&&(i=i.replace(t,e)),{name:i,value:r});function ft(t=()=>{}){return({name:e,value:i})=>{let{name:r,value:n}=dt.reduce((t,e)=>e(t),{name:e,value:i});return r!==e&&t(r,e),{name:r,value:n}}}var dt=[];function mt(t){dt.push(t)}function gt({name:t}){return yt().test(t)}var yt=()=>new RegExp(`^${it}([^:^.]+)\\b`);var vt="DEFAULT",_t=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",vt,"teleport"];function bt(t,e){let i=-1===_t.indexOf(t.type)?vt:t.type,r=-1===_t.indexOf(e.type)?vt:e.type;return _t.indexOf(i)-_t.indexOf(r)}function xt(t,e,i={}){t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}function wt(t,e){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)return void Array.from(t.children).forEac
1h(t=>wt(t,e));let i=!1;if(e(t,()=>i=!0),i)return;let r=t.firstElementChild;for(;r;)wt(r,e),r=r.nextElementSibling}function St(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Et=!1;var Pt=[],Ct=[];function At(){return Pt.map(t=>t())}function kt(){return Pt.concat(Ct).map(t=>t())}function Tt(t){Pt.push(t)}function Mt(t){Ct.push(t)}function Dt(t,e=!1){return Ft(t,t=>{if((e?kt():At()).some(e=>t.matches(e)))return!0})}function Ft(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),t.parentElement)return Ft(t.parentElement,e)}}var It=[];var Lt=1;function Rt(t,e=wt,i=()=>{}){Ft(t,t=>t._x_ignore)||function(t){lt=!0;let e=Symbol();ct=e,ht.set(e,[]);let i=()=>{for(;ht.get(e).length;)ht.get(e).shift()();ht.delete(e)};t(i),lt=!1,i()}(()=>{e(t,(t,e)=>{t._x_marker||(i(t,e),It.forEach(i=>i(t,e)),at(t,t.attributes).forEach(t=>t()),t._x_ignore||(t._x_marker=Lt++),t._x_ignore&&e())})})}function Bt(t,e=wt){e(t,t=>{!function(t){for(t._x_effects?.forEach(f);t._x_cleanups?.length;)t._x_cleanups.pop()()}(t),E(t),delete t._x_marker})}var Vt=[],Ot=!1;function zt(t=()=>{}){return queueMicrotask(()=>{Ot||setTimeout(()=>{Nt()})}),new Promise(e=>{Vt.push(()=>{t(),e()})})}function Nt(){for(Ot=!1;Vt.length;)Vt.shift()()}function Gt(t,e){return Array.isArray(e)?qt(t,e.join(" ")):"object"==typeof e&&null!==e?function(t,e){let i=t=>t.split(" ").filter(Boolean),r=Object.entries(e).flatMap(([t,e])=>!!e&&i(t)).filter(Boolean),n=Object.entries(e).flatMap(([t,e])=>!e&&i(t)).filter(Boolean),s=[],a=[];return n.forEach(e=>{t.classList.contains(e)&&(t.classList.remove(e),a.push(e))}),r.forEach(e=>{t.classList.contains(e)||(t.classList.add(e),s.push(e))}),()=>{a.forEach(e=>
1t.classList.add(e)),s.forEach(e=>t.classList.remove(e))}}(t,e):"function"==typeof e?Gt(t,e()):qt(t,e)}function qt(t,e){return e=!0===e?e="":e||"",i=e.split(" ").filter(e=>!t.classList.contains(e)).filter(Boolean),t.classList.add(...i),()=>{t.classList.remove(...i)};var i}function Ht(t,e){return"object"==typeof e&&null!==e?function(t,e){let i={};return Object.entries(e).forEach(([e,r])=>{i[e]=t.style[e],e.startsWith("--")||(e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),t.style.setProperty(e,r)}),setTimeout(()=>{0===t.style.length&&t.removeAttribute("style")}),()=>{Ht(t,i)}}(t,e):function(t,e){let i=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",i||"")}}(t,e)}function $t(t,e=()=>{}){let i=!1;return function(){i?e.apply(this,arguments):(i=!0,t.apply(this,arguments))}}function jt(t,e,i={}){t._x_transition||(t._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(i=()=>{},r=()=>{}){Yt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,r)},out(i=()=>{},r=()=>{}){Yt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,r)}})}function Wt(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Wt(e)}function Yt(t,e,{during:i,start:r,end:n}={},s=()=>{},a=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),0===Object.keys(i).length&&0===Object.keys(r).length&&0===Object.keys(n).length)return s(),void a();let o,l,h;!function(t,e){let i,r,n,s=$t(()=>{M(()=>{i=!0,r||e.before(),n||(e.end(),Nt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(t){this.beforeCancels.push(t)},cancel:$t(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s},M(()=>{e.start(),e.during()}),Ot=!0,requestAnimationFrame(()=>{if(i)return;let s=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""));0===s&&(s=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),M(()=>{e.before()}),r=!0,requestAnimationFrame(()=>{i||(M(()=>{e.end()}),Nt(),setTimeout(t._x_transitioning.finish,s+a),n=!0)})})}(t,{start(){o=e(t,r)},during(){l=e(t,i)},before:s,end(){o(),h=e(t,n)},after:a,cleanup(){l(),h()}})}function Xt(t,e,i){if(-1===t.indexOf(e))return i;const r=t[t.indexOf(e)+1];if(!r)return i;if("scale"===e&&isNaN(r))return i;if("duration"===e||"delay"===e){let t=r.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[r,t[t.indexOf(e)+2]].join(" "):r}st("transition",(t,{value:e,modifiers:i,expression:r},{evaluate:n})=>{"function"==typeof r&&(r=n(r)),!1!==r&&(r&&"boolean"!=typeof r?function(t,e,i){jt(t,Gt,"");let r={enter:e=>{t._x_transition.enter.during=e},"enter-start":e=>{t._x_transition.enter.start=e},"enter-end":e=>{t._x_transition.enter.end=e},leave:e=>{t._x_transition.leave.during=e},"leave-start":e=>{t._x_transition.leave.start=e},"leave-end":e=>{t._x_transition.leave.end=e}};r[i](e)}(t,r,e):function(t,e,i){jt(t,Ht);let r=!e.includes("in")&&!e.includes("out")&&!i,n=r||e.includes("in")||["enter"].includes(i),s=r||e.includes("out")||["leave"].includes(i);e.includes("in")&&!r&&(e=e.filter((t,i)=>i<e.indexOf("out")));e.includes("out")&&!r&&(e=e.filter((t,i)=>i>e.indexOf("out")));let a=!e.includes("opacity")&&!e.includes("scale"),o=a||e.includes("opacity"),l=a||e.includes("scale"),h=o?0:1,c=l?Xt(e,"scale",95)/100:1,p=Xt(e,"delay",0)/1e3,u=Xt(e,"origin","center"),f="opacity, transform",d=Xt(e,"duration",150)/1e3,m=Xt(e,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";n&&(t._x_transition.enter.during={transformOrigin:u,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${d}s`,transitionTimingFunction:g},t._x_transition.enter.start={opacity:h,transform:`scale(${c})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"});s&&(t._x_transition.leave.during={transformOrigin:u,transitionDelay:`${p}s`,transitionProperty:f,transitionDuration:`${m}s`,transitionTimingFunction:g},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:h,transform:`scale(${c})`})}(t,i,e))}),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,
1i,r){const n="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let s=()=>n(i);e?t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(i):s():t._x_transition?t._x_transition.in(i):s():(t._x_hidePromise=t._x_transition?new Promise((e,i)=>{t._x_transition.out(()=>{},()=>e(r)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>i({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let e=Wt(t);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(t)):n(()=>{let e=t=>{let i=Promise.all([t._x_hidePromise,...(t._x_hideChildren||[]).map(e)]).then(([t])=>t?.());return delete t._x_hidePromise,delete t._x_hideChildren,i};e(t).catch(t=>{if(!t.isFromCancelledTransition)throw t})})}))};var Ut=!1;function Jt(t,e=()=>{}){return(...i)=>Ut?e(...i):t(...i)}var Zt=[];function Kt(t){Zt.push(t)}var Qt=!1;function te(t){let e=s;g((t,i)=>{let r=e(t);return a(r),()=>{}}),t(),g(e)}function ee(t,e,i,r=[]){switch(t._x_bindings||(t._x_bindings=n({})),t._x_bindings[e]=i,e=r.includes("camel")?e.toLowerCase().replace(/-(\w)/g,(t,e)=>e.toUpperCase()):e){case"value":!function(t,e){if(he(t))void 0===t.attributes.value&&(t.value=e),window.fromModel&&(t.checked="boolean"==typeof e?ne(t.value)===e:re(t.value,e));else if(le(t))Number.isInteger(e)?t.value=e:Array.isArray(e)||"boolean"==typeof e||[null,void 0].includes(e)?Array.isArray(e)?t.checked=e.some(e=>re(e,t.value)):t.checked=!!e:t.value=String(e);else if("SELECT"===t.tagName)!function(t,e){const i=[].concat(e).map(t=>t+"");Array.from(t.options).forEach(t=>{t.selected=i.includes(t.value)})}(t,e);else{if(t.value===e)return;t.value=void 0===e?"":e}}(t,i);break;case"style":!function(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles();t._x_undoAddedStyles=Ht(t,e)}(t,i);break;case"class":!function(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses();t._x_undoAddedClasses=Gt(t,e)}(t,i);break;case"selected":case"checked":!function(t,e,i){ie(t,e,i),function(t,e,i){t[e]!==i&&(t[e]=i)}(t,e,i)}(t,e,i);break;default:ie(t,e,i)}}function ie(t,e,i){[null,void 0,!1].includes(i)&&function(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}(e)?t.removeAttribute(e):(ae(e)&&(i=e),function(t,e,i){t.getAttribute(e)!=i&&t.setAttribute(e,i)}(t,e,i))}function re(t,e){return t==e}function ne(t){return!![1,"1","true","on","yes",!0].includes(t)||![0,"0","false","off","no",!1].includes(t)&&(t?Boolean(t):null)}var se=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function ae(t){return se.has(t)}function oe(t,e,i){let r=t.getAttribute(e);return null===r?"function"==typeof i?i():i:""===r||(ae(e)?!![e,"true"].includes(r):r)}function le(t){return"checkbox"===t.type||"ui-checkbox"===t.localName||"ui-switch"===t.localName}function he(t){return"radio"===t.type||"ui-radio"===t.localName}function ce(t,e){let i;return function(){const r=this,n=arguments;clearTimeout(i),i=setTimeout(function(){i=null,t.apply(r,n)},e)}}function pe(t,e){let i;return function(){let r=this,n=arguments;i||(t.apply(r,n),i=!0,setTimeout(()=>i=!1,e))}}function ue({get:t,set:e},{get:i,set:r}){let n,o,l=!0,h=s(()=>{let s=t(),a=i();if(l)r(fe(s)),l=!1;else{let t=JSON.stringify(s),i=JSON.stringify(a);t!==n?r(fe(s)):t!==i&&e(fe(a))}n=JSON.stringify(t()),o=JSON.stringify(i())});return()=>{a(h)}}function fe(t){return"object"==typeof t?JSON.parse(JSON.stringify(t)):t}var de={},me=!1;var ge={};function ye(t,e,i){let r=[];for(;r.length;)r.pop()();let n=Object.entries(e).map(([t,e])=>({name:t,value:e})),s=ot(n);return n=n.map(t=>s.find(e=>e.name===t.name)?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t),at(t,n,i).map(t=>{r.push(t.runCleanups),t()}),()=>{for(;r.length;)r.pop()()}}var ve={};var _e={get reactive(){return n},get release(){return a},get effect(){return s},get raw(){return o},version:"3.15.0",flushAndStopDeferringMutations:function(){D=!1,I(F),F=[]},dontAutoEvaluateFunctions:U,disableEffectScheduling:function(t){m=!1,t(),m=!0},startObservingMutations:A,stopObservingMutations:k,setReactivityEngine:function(t){n=t.reactive,a=t.release,s=e=>t.effect(e,{scheduler:t=>{m?u(t):t()}}),o=t.raw},onAttributeRemoved:S,onAttributesAdded:w,closestDataStack:B,skipDuringClone:Jt,onlyDuringClone:function(t){return(...e)=>Ut&&t(...e)},addRootSelector:Tt,addInitSelector:Mt,interceptClone:Kt,addScopeToNode:R,deferMutations:function(){D=!0},mapAttributes:mt,evaluateLater:Z,interceptInit:function(t){It.push(t)},setEvaluator:function(t){K=t}
1,mergeProxies:V,extractProp:function(t,e,i,r=!0){if(t._x_bindings&&void 0!==t._x_bindings[e])return t._x_bindings[e];if(t._x_inlineBindings&&void 0!==t._x_inlineBindings[e]){let i=t._x_inlineBindings[e];return i.extract=r,U(()=>J(t,i.expression))}return oe(t,e,i)},findClosest:Ft,onElRemoved:x,closestRoot:Dt,destroyTree:Bt,interceptor:G,transition:Yt,setStyles:Ht,mutateDom:M,directive:st,entangle:ue,throttle:pe,debounce:ce,evaluate:J,initTree:Rt,nextTick:zt,prefixed:rt,prefix:function(t){it=t},plugin:function(t){(Array.isArray(t)?t:[t]).forEach(t=>t(be))},magic:$,store:function(t,e){if(me||(de=n(de),me=!0),void 0===e)return de[t];de[t]=e,N(de[t]),"object"==typeof e&&null!==e&&e.hasOwnProperty("init")&&"function"==typeof e.init&&de[t].init()},start:function(){var t;Et&&St("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Et=!0,document.body||St("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),xt(document,"alpine:init"),xt(document,"alpine:initializing"),A(),t=t=>Rt(t,wt),b.push(t),x(t=>Bt(t)),w((t,e)=>{at(t,e).forEach(t=>t())}),Array.from(document.querySelectorAll(kt().join(","))).filter(t=>!Dt(t.parentElement,!0)).forEach(t=>{Rt(t)}),xt(document,"alpine:initialized"),setTimeout(()=>{[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,e,i])=>{var r;r=e,Object.keys(nt).includes(r)||i.some(e=>{if(document.querySelector(e))return St(`found "${e}", but missing ${t} plugin`),!0})})})},clone:function(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),Ut=!0,Qt=!0,te(()=>{!function(t){let e=!1;Rt(t,(t,i)=>{wt(t,(t,r)=>{if(e&&function(t){return At().some(e=>t.matches(e))}(t))return r();e=!0,i(t,r)})})}(e)}),Ut=!1,Qt=!1},cloneNode:function(t,e){Zt.forEach(i=>i(t,e)),Ut=!0,te(()=>{Rt(e,(t,e)=>{e(t,()=>{})})}),Ut=!1},bound:function(t,e,i){return t._x_bindings&&void 0!==t._x_bindings[e]?t._x_bindings[e]:oe(t,e,i)},$data:L,watch:y,walk:wt,data:function(t,e){ve[t]=e},bind:function(t,e){let i="function"!=typeof e?()=>e:e;return t instanceof Element?ye(t,i()):(ge[t]=i,()=>{})}},be=_e;function xe(t,e){const i=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)i[r[t]]=!0;return e?t=>!!i[t.toLowerCase()]:t=>!!i[t]}var we,Se=Object.freeze({}),Ee=(Object.freeze([]),Object.prototype.hasOwnProperty),Pe=(t,e)=>Ee.call(t,e),Ce=Array.isArray,Ae=t=>"[object Map]"===De(t),ke=t=>"symbol"==typeof t,Te=t=>null!==t&&"object"==typeof t,Me=Object.prototype.toString,De=t=>Me.call(t),Fe=t=>De(t).slice(8,-1),Ie=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Le=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},Re=/-(\w)/g,Be=(Le(t=>t.replace(Re,(t,e)=>e?e.toUpperCase():"")),/\B([A-Z])/g),Ve=(Le(t=>t.replace(Be,"-$1").toLowerCase()),Le(t=>t.charAt(0).toUpperCase()+t.slice(1))),Oe=(Le(t=>t?`on${Ve(t)}`:""),(t,e)=>t!==e&&(t==t||e==e)),ze=new WeakMap,Ne=[],Ge=Symbol("iterate"),qe=Symbol("Map key iterate");var He=0;function $e(t){const{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}var je=!0,We=[];function Ye(){const t=We.pop();je=void 0===t||t}function Xe(t,e,i){if(!je||void 0===we)return;let r=ze.get(t);r||ze.set(t,r=new Map);let n=r.get(i);n||r.set(i,n=new Set),n.has(we)||(n.add(we),we.deps.push(n),we.options.onTrack&&we.options.onTrack({effect:we,target:t,type:e,key:i}))}function Ue(t,e,i,r,n,s){const a=ze.get(t);if(!a)return;const o=new Set,l=t=>{t&&t.forEach(t=>{(t!==we||t.allowRecurse)&&o.add(t)})};if("clear"===e)a.forEach(l);else if("length"===i&&Ce(t))a.forEach((t,e)=>{("length"===e||e>=r)&&l(t)});else switch(void 0!==i&&l(a.get(i)),e){case"add":Ce(t)?Ie(i)&&l(a.get("length")):(l(a.get(Ge)),Ae(t)&&l(a.get(qe)));break;case"delete":Ce(t)||(l(a.get(Ge)),Ae(t)&&l(a.get(qe)));break;case"set":Ae(t)&&l(a.get(Ge))}o.forEach(a=>{a.options.onTrigger&&a.options.onTrigger({effect:a,target:t,key:i,type:e,newValue:r,oldValue:n,oldTarget:s}),a.options.scheduler?a.options.scheduler(a):a()})}var Je=xe("__proto__,__v_isRef,__isVue"),Ze=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(ke)),Ke=ii(),Qe=ii(!0),ti=ei();function ei(){const t={};
1return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...t){const i=Bi(this);for(let t=0,e=this.length;t<e;t++)Xe(i,"get",t+"");const r=i[e](...t);return-1===r||!1===r?i[e](...t.map(Bi)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...t){We.push(je),je=!1;const i=Bi(this)[e].apply(this,t);return Ye(),i}}),t}function ii(t=!1,e=!1){return function(i,r,n){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_raw"===r&&n===(t?e?Fi:Di:e?Mi:Ti).get(i))return i;const s=Ce(i);if(!t&&s&&Pe(ti,r))return Reflect.get(ti,r,n);const a=Reflect.get(i,r,n);if(ke(r)?Ze.has(r):Je(r))return a;if(t||Xe(i,"get",r),e)return a;if(Vi(a)){return!s||!Ie(r)?a.value:a}return Te(a)?t?Li(a):Ii(a):a}}function ri(t=!1){return function(e,i,r,n){let s=e[i];if(!t&&(r=Bi(r),s=Bi(s),!Ce(e)&&Vi(s)&&!Vi(r)))return s.value=r,!0;const a=Ce(e)&&Ie(i)?Number(i)<e.length:Pe(e,i),o=Reflect.set(e,i,r,n);return e===Bi(n)&&(a?Oe(r,s)&&Ue(e,"set",i,r,s):Ue(e,"add",i,r)),o}}var ni={get:Ke,set:ri(),deleteProperty:function(t,e){const i=Pe(t,e),r=t[e],n=Reflect.deleteProperty(t,e);return n&&i&&Ue(t,"delete",e,void 0,r),n},has:function(t,e){const i=Reflect.has(t,e);return ke(e)&&Ze.has(e)||Xe(t,"has",e),i},ownKeys:function(t){return Xe(t,"iterate",Ce(t)?"length":Ge),Reflect.ownKeys(t)}},si={get:Qe,set:(t,e)=>(console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0),deleteProperty:(t,e)=>(console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0)},ai=t=>Te(t)?Ii(t):t,oi=t=>Te(t)?Li(t):t,li=t=>t,hi=t=>Reflect.getPrototypeOf(t);function ci(t,e,i=!1,r=!1){const n=Bi(t=t.__v_raw),s=Bi(e);e!==s&&!i&&Xe(n,"get",e),!i&&Xe(n,"get",s);const{has:a}=hi(n),o=r?li:i?oi:ai;return a.call(n,e)?o(t.get(e)):a.call(n,s)?o(t.get(s)):void(t!==n&&t.get(e))}function pi(t,e=!1){const i=this.__v_raw,r=Bi(i),n=Bi(t);return t!==n&&!e&&Xe(r,"has",t),!e&&Xe(r,"has",n),t===n?i.has(t):i.has(t)||i.has(n)}function ui(t,e=!1){return t=t.__v_raw,!e&&Xe(Bi(t),"iterate",Ge),Reflect.get(t,"size",t)}function fi(t){t=Bi(t);const e=Bi(this);return hi(e).has.call(e,t)||(e.add(t),Ue(e,"add",t,t)),this}function di(t,e){e=Bi(e);const i=Bi(this),{has:r,get:n}=hi(i);let s=r.call(i,t);s?ki(i,r,t):(t=Bi(t),s=r.call(i,t));const a=n.call(i,t);return i.set(t,e),s?Oe(e,a)&&Ue(i,"set",t,e,a):Ue(i,"add",t,e),this}function mi(t){const e=Bi(this),{has:i,get:r}=hi(e);let n=i.call(e,t);n?ki(e,i,t):(t=Bi(t),n=i.call(e,t));const s=r?r.call(e,t):void 0,a=e.delete(t);return n&&Ue(e,"delete",t,void 0,s),a}function gi(){const t=Bi(this),e=0!==t.size,i=Ae(t)?new Map(t):new Set(t),r=t.clear();return e&&Ue(t,"clear",void 0,void 0,i),r}function yi(t,e){return function(i,r){const n=this,s=n.__v_raw,a=Bi(s),o=e?li:t?oi:ai;return!t&&Xe(a,"iterate",Ge),s.forEach((t,e)=>i.call(r,o(t),o(e),n))}}function vi(t,e,i){return function(...r){const n=this.__v_raw,s=Bi(n),a=Ae(s),o="entries"===t||t===Symbol.iterator&&a,l="keys"===t&&a,h=n[t](...r),c=i?li:e?oi:ai;return!e&&Xe(s,"iterate",l?qe:Ge),{next(){const{value:t,done:e}=h.next();return e?{value:t,done:e}:{value:o?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function _i(t){return function(...e){{const i=e[0]?`on key "${e[0]}" `:"";console.warn(`${Ve(t)} operation ${i}failed: target is readonly.`,Bi(this))}return"delete"!==t&&this}}function bi(){const t={get(t){return ci(this,t)},get size(){return ui(this)},has:pi,add:fi,set:di,delete:mi,clear:gi,forEach:yi(!1,!1)},e={get(t){return ci(this,t,!1,!0)},get size(){return ui(this)},has:pi,add:fi,set:di,delete:mi,clear:gi,forEach:yi(!1,!0)},i={get(t){return ci(this,t,!0)},get size(){return ui(this,!0)},has(t){return pi.call(this,t,!0)},add:_i("add"),set:_i("set"),delete:_i("delete"),clear:_i("clear"),forEach:yi(!0,!1)},r={get(t){return ci(this,t,!0,!0)},get size(){return ui(this,!0)},has(t){return pi.call(this,t,!0)},add:_i("add"),set:_i("set"),delete:_i("delete"),clear:_i("clear"),forEach:yi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=vi(n,!1,!1),i[n]=vi(n,!0,!1),e[n]=vi(n,!1,!0),r[n]=vi(n,!0,!0)}),[t,i,e,r]}var[xi,wi,Si,Ei]=bi();function Pi(t,e){const i=e?t?Ei:Si:t?wi:xi;return(e,r,n)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(Pe(i,r)&&r in e?i:e,r,n)}var Ci={get:Pi(!1,!1)},Ai={get:Pi(!0,!1)};function ki(t,e,i){const r=Bi(i);if(r!==i&&e.call(t,r)){const e=Fe(t);console.warn(`Reactive ${e} contains both the raw and reactive versions of the same object${"Map"===e?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Ti=new WeakMap,Mi=new WeakMap,Di=new WeakMap,Fi=new WeakMap;function Ii(t){return t&&t.__v_isReadonly?t:Ri(t,!1,ni,Ci,Ti)}function Li(t){return Ri(t,!0,si,Ai,Di)}function Ri(t,e,i,r,n){if(!Te(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const s=n.get(t);if(s)return s;const a=(o=t).__v_skip||!Object.isExtensible(o)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Fe(o));var o;if(0===a)return t;const l=new Proxy(t,2===a?r:i);return n.set(t,l),l}function Bi(t){return t&&Bi(t.__v_raw)||t}function Vi(t){return Boolean(t&&!0===t.__v_isRef)}$("nextTick",()=>zt),$("dispatch",t=>xt.bind(xt,t)),$("watch",(t,{evaluateLater:e,cleanup:i})=>(t,r)=>{let n=e(t),s=y(()=>{let t;return n(e=>t=e),t},r);i(s)}),$("store",function(){return de}),$("data",t=>L(t)),$("root",t=>Dt(t)),$("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=V(function(t){let e=[];return Ft(t,t=>{t._x_refs&&e.push(t._x_refs)}),e}(t))),t._x_refs_proxy));var Oi={};function zi(t){return Oi[t]||(Oi[t]=0),++Oi[t]}
1function Ni(t,e,i){$(e,r=>St(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,r))}$("id",(t,{cleanup:e})=>(i,r=null)=>function(t,e,i,r){t._x_id||(t._x_id={});if(t._x_id[e])return t._x_id[e];let n=r();return t._x_id[e]=n,i(()=>{delete t._x_id[e]}),n}(t,`${i}${r?`-${r}`:""}`,e,()=>{let e=function(t,e){return Ft(t,t=>{if(t._x_ids&&t._x_ids[e])return!0})}(t,i),n=e?e._x_ids[i]:zi(i);return r?`${i}-${n}-${r}`:`${i}-${n}`})),Kt((t,e)=>{t._x_id&&(e._x_id=t._x_id)}),$("el",t=>t),Ni("Focus","focus","focus"),Ni("Persist","persist","persist"),st("modelable",(t,{expression:e},{effect:i,evaluateLater:r,cleanup:n})=>{let s=r(e),a=()=>{let t;return s(e=>t=e),t},o=r(`${e} = __placeholder`),l=t=>o(()=>{},{scope:{__placeholder:t}}),h=a();l(h),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let e=t._x_model.get,i=t._x_model.set,r=ue({get:()=>e(),set(t){i(t)}},{get:()=>a(),set(t){l(t)}});n(r)})}),st("teleport",(t,{modifiers:e,expression:i},{cleanup:r})=>{"template"!==t.tagName.toLowerCase()&&St("x-teleport can only be used on a <template> tag",t);let n=qi(i),s=t.content.cloneNode(!0).firstElementChild;t._x_teleport=s,s._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),s.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(e=>{s.addEventListener(e,e=>{e.stopPropagation(),t.dispatchEvent(new e.constructor(e.type,e))})}),R(s,{},t);let a=(t,e,i)=>{i.includes("prepend")?e.parentNode.insertBefore(t,e):i.includes("append")?e.parentNode.insertBefore(t,e.nextSibling):e.appendChild(t)};M(()=>{a(s,n,e),Jt(()=>{Rt(s)})()}),t._x_teleportPutBack=()=>{let r=qi(i);M(()=>{a(t._x_teleport,r,e)})},r(()=>M(()=>{s.remove(),Bt(s)}))});var Gi=document.createElement("div");function qi(t){let e=Jt(()=>document.querySelector(t),()=>Gi)();return e||St(`Cannot find x-teleport element for selector: "${t}"`),e}var Hi=()=>{};function $i(t,e,i,r){let n=t,s=t=>r(t),a={},o=(t,e)=>i=>e(t,i);if(i.includes("dot")&&(e=e.replace(/-/g,".")),i.includes("camel")&&(e=function(t){return t.toLowerCase().replace(/-(\w)/g,(t,e)=>e.toUpperCase())}(e)),i.includes("passive")&&(a.passive=!0),i.includes("capture")&&(a.capture=!0),i.includes("window")&&(n=window),i.includes("document")&&(n=document),i.includes("debounce")){let t=i[i.indexOf("debounce")+1]||"invalid-wait",e=ji(t.split("ms")[0])?Number(t.split("ms")[0]):250;s=ce(s,e)}if(i.includes("throttle")){let t=i[i.indexOf("throttle")+1]||"invalid-wait",e=ji(t.split("ms")[0])?Number(t.split("ms")[0]):250;s=pe(s,e)}return i.includes("prevent")&&(s=o(s,(t,e)=>{e.preventDefault(),t(e)})),i.includes("stop")&&(s=o(s,(t,e)=>{e.stopPropagation(),t(e)})),i.includes("once")&&(s=o(s,(t,i)=>{t(i),n.removeEventListener(e,s,a)})),(i.includes("away")||i.includes("outside"))&&(n=document,s=o(s,(e,i)=>{t.contains(i.target)||!1!==i.target.isConnected&&(t.offsetWidth<1&&t.offsetHeight<1||!1!==t._x_isShown&&e(i))})),i.includes("self")&&(s=o(s,(e,i)=>{i.target===t&&e(i)})),(function(t){return["keydown","keyup"].includes(t)}(e)||Wi(e))&&(s=o(s,(t,e)=>{(function(t,e){let i=e.filter(t=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(t));if(i.includes("debounce")){let t=i.indexOf("debounce");i.splice(t,ji((i[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.includes("throttle")){let t=i.indexOf("throttle");i.splice(t,ji((i[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===i.length)return!1;if(1===i.length&&Yi(t.key).includes(i[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(t=>i.includes(t));if(i=i.filter(t=>!r.includes(t)),r.length>0){if(r.filter(e=>("cmd"!==e&&"super"!==e||(e="meta"),t[`${e}Key`])).length===r.length){if(Wi(t.type))return!1;if(Yi(t.key).includes(i[0]))return!1}}return!0})(e,i)||t(e)})),n.addEventListener(e,s,a),()=>{n.removeEventListener(e,s,a)}}function ji(t){return!Array.isArray(t)&&!isNaN(t)}function Wi(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function Yi(t){if(!t)return[];var e;t=[" ","_"].includes(e=t)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();
1let i={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return i[t]=t,Object.keys(i).map(e=>{if(i[e]===t)return e}).filter(t=>t)}function Xi(t,e,i,r){return M(()=>{if(i instanceof CustomEvent&&void 0!==i.detail)return null!==i.detail&&void 0!==i.detail?i.detail:i.target.value;if(le(t)){if(Array.isArray(r)){let t=null;return t=e.includes("number")?Ui(i.target.value):e.includes("boolean")?ne(i.target.value):i.target.value,i.target.checked?r.includes(t)?r:r.concat([t]):r.filter(e=>!(e==t))}return i.target.checked}if("select"===t.tagName.toLowerCase()&&t.multiple)return e.includes("number")?Array.from(i.target.selectedOptions).map(t=>Ui(t.value||t.text)):e.includes("boolean")?Array.from(i.target.selectedOptions).map(t=>ne(t.value||t.text)):Array.from(i.target.selectedOptions).map(t=>t.value||t.text);{let n;return n=he(t)?i.target.checked?i.target.value:r:i.target.value,e.includes("number")?Ui(n):e.includes("boolean")?ne(n):e.includes("trim")?n.trim():n}})}function Ui(t){let e=t?parseFloat(t):null;return i=e,Array.isArray(i)||isNaN(i)?t:e;var i}function Ji(t){return null!==t&&"object"==typeof t&&"function"==typeof t.get&&"function"==typeof t.set}Hi.inline=(t,{modifiers:e},{cleanup:i})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,i(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})},st("ignore",Hi),st("effect",Jt((t,{expression:e},{effect:i})=>{i(Z(t,e))})),st("model",(t,{modifiers:e,expression:i},{effect:r,cleanup:n})=>{let s=t;e.includes("parent")&&(s=t.parentNode);let a,o=Z(s,i);a="string"==typeof i?Z(s,`${i} = __placeholder`):"function"==typeof i&&"string"==typeof i()?Z(s,`${i()} = __placeholder`):()=>{};let l=()=>{let t;return o(e=>t=e),Ji(t)?t.get():t},h=t=>{let e;o(t=>e=t),Ji(e)?e.set(t):a(()=>{},{scope:{__placeholder:t}})};"string"==typeof i&&"radio"===t.type&&M(()=>{t.hasAttribute("name")||t.setAttribute("name",i)});let c="select"===t.tagName.toLowerCase()||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input",p=Ut?()=>{}:$i(t,c,e,i=>{h(Xi(t,e,i,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||le(t)&&Array.isArray(l())||"select"===t.tagName.toLowerCase()&&t.multiple)&&h(Xi(t,e,{target:t},l())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=p,n(()=>t._x_removeModelListeners.default()),t.form){let i=$i(t.form,"reset",[],i=>{zt(()=>t._x_model&&t._x_model.set(Xi(t,e,{target:t},l())))});n(()=>i())}t._x_model={get:()=>l(),set(t){h(t)}},t._x_forceModelUpdate=e=>{void 0===e&&"string"==typeof i&&i.match(/\./)&&(e=""),window.fromModel=!0,M(()=>ee(t,"value",e)),delete window.fromModel},r(()=>{let i=l();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(i)})}),st("cloak",t=>queueMicrotask(()=>M(()=>t.removeAttribute(rt("cloak"))))),Mt(()=>`[${rt("init")}]`),st("init",Jt((t,{expression:e},{evaluate:i})=>"string"==typeof e?!!e.trim()&&i(e,{},!1):i(e,{},!1))),st("text",(t,{expression:e},{effect:i,evaluateLater:r})=>{let n=r(e);i(()=>{n(e=>{M(()=>{t.textContent=e})})})}),st("html",(t,{expression:e},{effect:i,evaluateLater:r})=>{let n=r(e);i(()=>{n(e=>{M(()=>{t.innerHTML=e,t._x_ignoreSelf=!0,Rt(t),delete t._x_ignoreSelf})})})}),mt(ut(":",rt("bind:")));var Zi=(t,{value:e,modifiers:i,expression:r,original:n},{effect:s,cleanup:a})=>{if(!e){let e={};return o=e,Object.entries(ge).forEach(([t,e])=>{Object.defineProperty(o,t,{get:()=>(...t)=>e(...t)})}),void Z(t,r)(e=>{ye(t,e,n)},{scope:e})}var o;if("key"===e)return function(t,e){t._x_keyExpression=e}(t,r);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let l=Z(t,r);s(()=>l(n=>{void 0===n&&"string"==typeof r&&r.match(/\./)&&(n=""),M(()=>ee(t,e,n,i))})),a(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};function Ki(t,e,i,r){let n={};if(/^\[.*\]$/.test(t.item)&&Array.isArray(e)){t.item.replace("[","").replace("]","").split(",").map(t=>
1t.trim()).forEach((t,i)=>{n[t]=e[i]})}else if(/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&"object"==typeof e){t.item.replace("{","").replace("}","").split(",").map(t=>t.trim()).forEach(t=>{n[t]=e[t]})}else n[t.item]=e;return t.index&&(n[t.index]=i),t.collection&&(n[t.collection]=r),n}function Qi(){}function tr(t,e,i){st(e,r=>St(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,r))}Zi.inline=(t,{value:e,modifiers:i,expression:r})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:r,extract:!1})},st("bind",Zi),Tt(()=>`[${rt("data")}]`),st("data",(t,{expression:e},{cleanup:i})=>{if(function(t){return!!Ut&&(!!Qt||t.hasAttribute("data-has-alpine-state"))}(t))return;e=""===e?"{}":e;let r={};j(r,t);let s={};var a,o;a=s,o=r,Object.entries(ve).forEach(([t,e])=>{Object.defineProperty(a,t,{get:()=>(...t)=>e.bind(o)(...t),enumerable:!1})});let l=J(t,e,{scope:s});void 0!==l&&!0!==l||(l={}),j(l,t);let h=n(l);N(h);let c=R(t,h);h.init&&J(t,h.init),i(()=>{h.destroy&&J(t,h.destroy),c()})}),Kt((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))}),st("show",(t,{modifiers:e,expression:i},{effect:r})=>{let n=Z(t,i);t._x_doHide||(t._x_doHide=()=>{M(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{M(()=>{1===t.style.length&&"none"===t.style.display?t.removeAttribute("style"):t.style.removeProperty("display")})});let s,a=()=>{t._x_doHide(),t._x_isShown=!1},o=()=>{t._x_doShow(),t._x_isShown=!0},l=()=>setTimeout(o),h=$t(t=>t?o():a(),e=>{"function"==typeof t._x_toggleAndCascadeWithTransitions?t._x_toggleAndCascadeWithTransitions(t,e,o,a):e?l():a()}),c=!0;r(()=>n(t=>{(c||t!==s)&&(e.includes("immediate")&&(t?l():a()),h(t),s=t,c=!1)}))}),st("for",(t,{expression:e},{effect:i,cleanup:r})=>{let s=function(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,n=t.match(r);if(!n)return;let s={};s.items=n[2].trim();let a=n[1].replace(i,"").trim(),o=a.match(e);o?(s.item=a.replace(e,"").trim(),s.index=o[1].trim(),o[2]&&(s.collection=o[2].trim())):s.item=a;return s}(e),a=Z(t,s.items),o=Z(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},i(()=>function(t,e,i,r){let s=t=>"object"==typeof t&&!Array.isArray(t),a=t;i(i=>{var o;o=i,!Array.isArray(o)&&!isNaN(o)&&i>=0&&(i=Array.from(Array(i).keys(),t=>t+1)),void 0===i&&(i=[]);let l=t._x_lookup,h=t._x_prevKeys,c=[],p=[];if(s(i))i=Object.entries(i).map(([n,s])=>{let a=Ki(e,s,n,i);r(e=>{p.includes(e)&&St("Duplicate key on x-for",t),p.push(e)},{scope:{index:n,...a}}),c.push(a)});else for(let n=0;n<i.length;n++){let s=Ki(e,i[n],n,i);r(e=>{p.includes(e)&&St("Duplicate key on x-for",t),p.push(e)},{scope:{index:n,...s}}),c.push(s)}let u=[],f=[],d=[],m=[];for(let t=0;t<h.length;t++){let e=h[t];-1===p.indexOf(e)&&d.push(e)}h=h.filter(t=>!d.includes(t));let g="template";for(let t=0;t<p.length;t++){let e=p[t],i=h.indexOf(e);if(-1===i)h.splice(t,0,e),u.push([g,t]);else if(i!==t){let e=h.splice(t,1)[0],r=h.splice(i-1,1)[0];h.splice(t,0,r),h.splice(i,0,e),f.push([e,r])}else m.push(e);g=e}for(let t=0;t<d.length;t++){let e=d[t];e in l&&(M(()=>{Bt(l[e]),l[e].remove()}),delete l[e])}for(let t=0;t<f.length;t++){let[e,i]=f[t],r=l[e],n=l[i],s=document.createElement("div");M(()=>{n||St('x-for ":key" is undefined or invalid',a,i,l),n.after(s),r.after(n),n._x_currentIfEl&&n.after(n._x_currentIfEl),s.before(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),s.remove()}),n._x_refreshXForScope(c[p.indexOf(i)])}for(let t=0;t<u.length;t++){let[e,i]=u[t],r="template"===e?a:l[e];r._x_currentIfEl&&(r=r._x_currentIfEl);let s=c[i],o=p[i],h=document.importNode(a.content,!0).firstElementChild,f=n(s);R(h,f,a),h._x_refreshXForScope=t=>{Object.entries(t).forEach(([t,e])=>{f[t]=e})},M(()=>{r.after(h),Jt(()=>Rt(h))()}),"object"==typeof o&&St("x-for key cannot be an object, it must be a string or an integer",a),l[o]=h}for(let t=0;t<m.length;t++)l[m[t]]._x_refreshXForScope(c[p.indexOf(m[t])]);a._x_prevKeys=p})}(t,s,a,o)),r(()=>
1{Object.values(t._x_lookup).forEach(t=>M(()=>{Bt(t),t.remove()})),delete t._x_prevKeys,delete t._x_lookup})}),Qi.inline=(t,{expression:e},{cleanup:i})=>{let r=Dt(t);r._x_refs||(r._x_refs={}),r._x_refs[e]=t,i(()=>delete r._x_refs[e])},st("ref",Qi),st("if",(t,{expression:e},{effect:i,cleanup:r})=>{"template"!==t.tagName.toLowerCase()&&St("x-if can only be used on a <template> tag",t);let n=Z(t,e);i(()=>n(e=>{e?(()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let e=t.content.cloneNode(!0).firstElementChild;R(e,{},t),M(()=>{t.after(e),Jt(()=>Rt(e))()}),t._x_currentIfEl=e,t._x_undoIf=()=>{M(()=>{Bt(e),e.remove()}),delete t._x_currentIfEl}})():t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)})),r(()=>t._x_undoIf&&t._x_undoIf())}),st("id",(t,{expression:e},{evaluate:i})=>{i(e).forEach(e=>function(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=zi(e))}(t,e))}),Kt((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)}),mt(ut("@",rt("on:"))),st("on",Jt((t,{value:e,modifiers:i,expression:r},{cleanup:n})=>{let s=r?Z(t,r):()=>{};"template"===t.tagName.toLowerCase()&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let a=$i(t,e,i,t=>{s(()=>{},{scope:{$event:t},params:[t]})});n(()=>a())})),tr("Collapse","collapse","collapse"),tr("Intersect","intersect","intersect"),tr("Focus","trap","focus"),tr("Mask","mask","mask"),be.setEvaluator(Q),be.setReactivityEngine({reactive:Ii,effect:function(t,e=Se){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const i=function(t,e){const i=function(){if(!i.active)return t();if(!Ne.includes(i)){$e(i);try{return We.push(je),je=!0,Ne.push(i),we=i,t()}finally{Ne.pop(),Ye(),we=Ne[Ne.length-1]}}};return i.id=He++,i.allowRecurse=!!e.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=t,i.deps=[],i.options=e,i}(t,e);return e.lazy||i(),i},release:function(t){t.active&&($e(t),t.options.onStop&&t.options.onStop(),t.active=!1)},raw:Bi});var er=be;function ir(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var nr,sr,ar,or,lr,hr,cr,pr,ur,fr,dr,mr,gr,yr,vr,_r,br,xr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},wr={duration:.5,overwrite:!1,delay:0},Sr=1e8,Er=1e-8,Pr=2*Math.PI,Cr=Pr/4,Ar=0,kr=Math.sqrt,Tr=Math.cos,Mr=Math.sin,Dr=function(t){return"string"==typeof t},Fr=function(t){return"function"==typeof t},Ir=function(t){return"number"==typeof t},Lr=function(t){return void 0===t},Rr=function(t){return"object"==typeof t},Br=function(t){return!1!==t},Vr=function(){return"undefined"!=typeof window},Or=function(t){return Fr(t)||Dr(t)},zr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Nr=Array.isArray,Gr=/(?:-?\.?\d|\.)+/gi,qr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Hr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$r=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,jr=/[+-]=-?[.\d]+/,Wr=/[^,'"\[\]\s]+/gi,Yr=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Xr={},Ur={},Jr=function(t){return(Ur=An(t,Xr))&&ka},Zr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Kr=function(t,e){return!e&&console.warn(t)},Qr=function(t,e){return t&&(Xr[t]=e)&&Ur&&(Ur[t]=e)||Xr},tn=function(){return 0},en={suppressEvents:!0,isStart:!0,kill:!1},rn={suppressEvents:!0,kill:!1},nn={suppressEvents:!0},sn={},an=[],on={},ln={},hn={},cn=30,pn=[],un="",fn=function(t){var e,i,r=t[0];if(Rr(r)||Fr(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(i=pn.length;i--&&!pn[i].targetTest(r););e=pn[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new qs(t[i],e)))||t.splice(i,1);return t},dn=function(t){return t._gsap||fn(ss(t))[0]._gsap},mn=function(t,e,i){return(i=t[e])&&Fr(i)?t[e]():Lr(i)&&t.getAttribute&&t.getAttribute(e)||i},gn=function(t,e){return(t=t.split(",")).forEach(e)||t},yn=function(t){return Math.round(1e5*t)/1e5||0},vn=function(t){return Math.round(1e7*t)/1e7||0},_n=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===i?t+r:"-"===i?t-r:"*"===i?t*r:t/r},bn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},xn=function(){var t,e,i=an.length,r=an.slice(0);for(on={},an.length=0,t=0;t<i;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},wn=function(t){return!!(t._initted||t._startAt||t.add)}
vendor: 66,242 bytes, line 1
1,Sn=function(t,e,i,r){an.length&&!sr&&xn(),t.render(e,i,r||!!(sr&&e<0&&wn(t))),an.length&&!sr&&xn()},En=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Wr).length<2?e:Dr(t)?t.trim():t},Pn=function(t){return t},Cn=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},An=function(t,e){for(var i in e)t[i]=e[i];return t},kn=function t(e,i){for(var r in i)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Rr(i[r])?t(e[r]||(e[r]={}),i[r]):i[r]);return e},Tn=function(t,e){var i,r={};for(i in t)i in e||(r[i]=t[i]);return r},Mn=function(t){var e,i=t.parent||or,r=t.keyframes?(e=Nr(t.keyframes),function(t,i){for(var r in i)r in t||"duration"===r&&e||"ease"===r||(t[r]=i[r])}):Cn;if(Br(t.inherit))for(;i;)r(t,i.vars.defaults),i=i.parent||i._dp;return t},Dn=function(t,e,i,r,n){void 0===i&&(i="_first"),void 0===r&&(r="_last");var s,a=t[r];if(n)for(s=e[n];a&&a[n]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},Fn=function(t,e,i,r){void 0===i&&(i="_first"),void 0===r&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},In=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ln=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Rn=function(t,e,i,r){return t._startAt&&(sr?t._startAt.revert(rn):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Bn=function t(e){return!e||e._ts&&t(e.parent)},Vn=function(t){return t._repeat?On(t._tTime,t=t.duration()+t._rDelay)*t:0},On=function(t,e){var i=Math.floor(t=vn(t/e));return t&&i===t?i-1:i},zn=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Nn=function(t){return t._end=vn(t._start+(t._tDur/Math.abs(t._ts||t._rts||Er)||0))},Gn=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=vn(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Nn(t),i._dirty||Ln(i,t)),t},qn=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=zn(t.rawTime(),e),(!e._dur||ts(0,e.totalDuration(),i)-e._tTime>Er)&&e.render(i,!0)),Ln(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-1e-8}},Hn=function(t,e,i,r){return e.parent&&In(e),e._start=vn((Ir(i)?i:i||t!==or?Zn(t,i,e):t._time)+e._delay),e._end=vn(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Dn(t,e,"_first","_last",t._sort?"_start":0),Yn(e)||(t._recent=e),r||qn(t,e),t._ts<0&&Gn(t,t._tTime),t},$n=function(t,e){return(Xr.ScrollTrigger||Zr("scrollTrigger",e))&&Xr.ScrollTrigger.create(e,t)},jn=function(t,e,i,r,n){return Js(t,e,n),t._initted?!i&&t._pt&&!sr&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&ur!==Ts.frame?(an.push(t),t._lazy=[n,r],1):void 0:1},Wn=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},Yn=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Xn=function(t,e,i,r){var n=t._repeat,s=vn(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:vn(s*(n+1)+t._rDelay*n):s,a>0&&!r&&Gn(t,t._tTime=t._tDur*a),t.parent&&Nn(t),i||Ln(t.parent,t),t},Un=function(t){return t instanceof $s?Ln(t):Xn(t,t._dur)},Jn={_start:0,endTime:tn,totalDuration:tn},Zn=function t(e,i,r){var n,s,a,o=e.labels,l=e._recent||Jn,h=e.duration()>=Sr?l.endTime(!1):e._dur;return Dr(i)&&(isNaN(i)||i in o)?(s=i.charAt(0),a="%"===i.substr(-1),n=i.indexOf("="),"<"===s||">"===s?(n>=0&&(i=i.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(a?(n<0?l:r).totalDuration()/100:1)):n<0?(i in o||(o[i]=h),o[i]):(s=parseFloat(i.charAt(n-1)+i.substr(n+1)),a&&r&&(s=s/100*(Nr(r)?r[0]:r).totalDuration()),n>1?t(e,i.substr(0,n-1),r)+s:h+s)):null==i?h:+i},Kn=function(t,e,i){var r,n,s=Ir(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=i,t){for(r=o,n=i;n&&!("immediateRender"in r);)r=n.vars.defaults||{},n=Br(n.vars.inherit)&&n.parent;o.immediateRender=Br(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new ea(e[0],o,e[a+1])},Qn=function(t,e){return t||0===t?e(t):e},ts=function(t,e,i){return i<t?t:i>e?e:i},es=function(t,e){return Dr(t)&&(e=Yr.exec(t))?e[1]:""},is=[].slice,rs=function(t,e){return t&&Rr(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Rr(t[0]))&&!t.nodeType&&t!==lr},ns=function(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){var r;return Dr(t)&&!e||rs(t,1)?(r=i).push.apply(r,ss(t)):i.push(t)})||i},ss=function(t,e,i){return ar&&!e&&ar.selector?ar.selector(t):!Dr(t)||i||!hr&&Ms()?Nr(t)?ns(t,i):rs(t)?is.call(t,0):t?[t]:[]:is.call((e||cr).querySelectorAll(t),0)},as=function(t){return t=ss(t)[0]||Kr("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return ss(e,i.querySelectorAll?i:i===t?Kr("Invalid scope")||cr.createElement("div"):t)}},os=function(t){return t.sort(function(){return.5-Math.random()})},ls=function(t){if(Fr(t))return t;var e=Rr(t)?t:{each:t},i=Vs(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},a=r>0&&r<1,o=isNaN(r)||a,l=e.axis,h=r,c=r;return Dr(r)?h=c={center:.5,edges:.5,end:1}[r]||0:!a&&o&&(h=r[0],c=r[1]),function(t,a,p){var u,f,d,m,g,y,v,_,b,x=(p||e).length,w=s[x];if(!w){if(!(b="auto"===e.grid?0:(e.grid||[1,Sr])[1])){for(v=-Sr;v<(v=p[b++].getBoundingClientRect().left)&&b<x;);b<x&&b--}for(w=s[x]=[],u=o?Math.min(b,x)*h-.5:r%b,f=b===Sr?0:o?x*c/b-.5:r/b|0,v=0,_=Sr,y=0;y<x;y++)d=y%b-u,m=f-(y/b|0),w[y]=g=l?Math.abs("y"===l?m:d):kr(d*d+m*m),g>v&&(v=g),g<_&&(_=g);"random"===r&&os(w),w.max=v-_,w.min=_,w.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(b>x?x-1:l?"y"===l?x/b:b:Math.max(b,x/b))||0)*("edges"===r?-1:1),w.b=x<0?n-x:n,w.u=es(e.amount||e.each)||0,i=i&&x<0?Rs(i):i}return x=(w[t]-w.min)/w.max||0,vn(w.b+(i?i(x):x)*w.v)+w.u}},hs=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=vn(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Ir(i)?0:es(i))}},cs=function(t,e){var i,r,n=Nr(t);return!n&&Rr(t)&&(i=n=t.radius||Sr,t.values?(t=ss(t.values),(r=!Ir(t[0]))&&(i*=i)):t=hs(t.increment)),Qn(e,n?Fr(t)?function(e){return r=t(e),Math.abs(r-e)<=i?r:e}:function(e){for(var n,s,a=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),l=Sr,h=0,c=t.length;c--;)(n=r?(n=t[c].x-a)*n+(s=t[c].y-o)*s:Math.abs(t[c]-a))<l&&(l=n,h=c);return h=!i||l<=i?t[h]:e,r||h===e||Ir(e)?h:h+es(e)}:hs(t))},ps=function(t,e,i,r){return Qn(Nr(t)?!e:!0===i?!!(i=0):!r,function(){return Nr(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+.99*i))/i)*i*r)/r})},us=function(t,e,i){return Qn(i,function(i){return t[~~e(i)]})},fs=function(t){for(var e,i,r,n,s=0,a="";~(e=t.indexOf("random(",s));)r=t.indexOf(")",e),n="["===t.charAt(e+7),i=t.substr(e+7,r-e-7).match(n?Wr:Gr),a+=t.substr(s,e-s)+ps(n?i:+i[0],n?0:+i[1],+i[2]||1e-5),s=r+1;return a+t.substr(s,t.length-s)},ds=function(t,e,i,r,n){var s=e-t,a=r-i;return Qn(n,function(e){return i+((e-t)/s*a||0)})},ms=function(t,e,i){var r,n,s,a=t.labels,o=Sr;for(r in a)(n=a[r]-e)<0==!!i&&n&&o>(n=Math.abs(n))&&(s=r,o=n);return s},gs=function(t,e,i){var r,n,s,a=t.vars,o=a[e],l=ar,h=t._ctx;if(o)return r=a[e+"Params"],n=a.callbackScope||t,i&&an.length&&xn(),h&&(ar=h),s=r?o.apply(n,r):o.call(n),ar=l,s},ys=function(t){return In(t),t.scrollTrigger&&t.scrollTrigger.kill(!!sr),t.progress()<1&&gs(t,"onInterrupt"),t},vs=[],_s=function(t){if(t)if(t=!t.name&&t.default||t,Vr()||t.headless){var e=t.name,i=Fr(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:tn,render:ca,add:Xs,kill:ua,modifier:pa,rawVars:0},s={targetTest:0,get:0,getSetter:aa,aliases:{},register:0};if(Ms(),t!==r){if(ln[e])return;Cn(r,Cn(Tn(t,n),s)),An(r.prototype,An(n,Tn(t,s))),ln[r.prop=e]=r,t.targetTest&&(pn.push(r),sn[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Qr(e,r),t.register&&t.register(ka,r,ma)}else vs.push(t)},bs=255,xs={aqua:[0,bs,bs],lime:[0,bs,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bs],navy:[0,0,128],white:[bs,bs,bs],olive:[128,128,0],yellow:[bs,bs,0],orange:[bs,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bs,0,0],pink:[bs,192,203],cyan:[0,bs,bs],transparent:[bs,bs,bs,0]},ws=function(t,e,i){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*bs+.5|0},Ss=function(t,e,i){var r,n,s,a,o,l,h,c,p,u,f=t?Ir(t)?[t>>16,t>>8&bs,t&bs]:0:xs.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),xs[t])f=xs[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+r+r+n+n+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&bs,f&bs,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&bs,t&bs]}else if("hsl"===t.substr(0,3))if(f=u=t.match(Gr),e){if(~t.indexOf("="))return f=t.match(qr),i&&f.length<4&&(f[3]=1),f}else a=+f[0]%360/360,o=+f[1]/100,r=2*(l=+f[2]/100)-(n=l<=.5?l*(o+1):l+o-l*o),f.length>3&&(f[3]*=1),f[0]=ws(a+1/3,r,n),f[1]=ws(a,r,n),f[2]=ws(a-1/3,r,n);else f=t.match(Gr)||xs.transparent;f=f.map(Number)}return e&&!u&&(r=f[0]/bs,n=f[1]/bs,s=f[2]/bs,l=((h=Math.max(r,n,s))+(c=Math.min(r,n,s)))/2,h===c?a=o=0:(p=h-c,o=l>.5?p/(2-h-c):p/(h+c),a=h===r?(n-s)/p+(n<s?6:0):h===n?(s-r)/p+2:(r-n)/p+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*o+.5),f[2]=~~(100*l+.5)),i&&f.length<4&&(f[3]=1),f},Es=function(t){var e=[],i=[],r=-1;return t.split(Cs).forEach(function(t){var n=t.match(Hr)||[];e.push.apply(e,n),i.push(r+=n.length+1)}),e.c=i,e},Ps=function(t,e,i){var r,n,s,a,o="",l=(t+o).match(Cs),h=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=Ss(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),i&&(s=Es(t),(r=i.c).join(o)!==s.c.join(o)))for(a=(n=t.replace(Cs,"1").split(Hr)).length-1;c<a;c++)o+=n[c]+(~r.indexOf(c)?l.shift()||h+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!n)for(a=(n=t.split(Cs)).length-1;c<a;c++)o+=n[c]+l[c];return o+n[a]},Cs=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in xs)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),As=/hsl[a]?\(/,ks=function(t){var e,i=t.join(" ");if(Cs.lastIndex=0,Cs.test(i))return e=As.test(i),t[1]=Ps(t[1],e),t[0]=Ps(t[0],e,Es(t[1])),!0},Ts=function(){var t,e,i,r,n,s,a=Date.now,o=500,l=33,h=a(),c=h,p=1e3/240,u=p,f=[],d=function i(d){var m,g,y,v,_=a()-c,b=!0===d;if((_>o||_<0)&&(h+=_-l),((m=(y=(c+=_)-h)-u)>0||b)&&(v=++r.frame,n=y-1e3*r.time,r.time=y/=1e3,u+=m+(m>=p?4:p-m),g=1),b||(t=e(i)),g)for(s=0;s<f.length;s++)f[s](y,n,v,d)};return r={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(t){return n/(1e3/(t||60))},wake:function(){pr&&(!hr&&Vr()&&(lr=hr=window,cr=lr.document||{},Xr.gsap=ka,(lr.gsapVersions||(lr.gsapVersions=[])).push(ka.version),Jr(Ur||lr.GreenSockGlobals||!lr.gsap&&lr||{}),vs.forEach(_s)),i="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=i||function(t){return setTimeout(t,u-1e3*r.time+1|0)},dr=1,d(2))},sleep:function(){(i?cancelAnimationFrame:clearTimeout)(t),dr=0,e=tn},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){p=1e3/(t||240),u=1e3*r.time+p},add:function(t,e,i){var n=e?function(e,i,s,a){t(e,i,s,a),r.remove(n)}:t;return r.remove(t),f[i?"unshift":"push"](n),Ms(),n},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&s>=e&&s--},_listeners:f},r}(),Ms=function(){return!dr&&Ts.wake()},Ds={},Fs=/^[\d.\-M][\d.\-,\s]/,Is=/["']/g,Ls=function(t){for(var e,i,r,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o<l;o++)i=s[o],e=o!==l-1?i.lastIndexOf(","):i.length,r=i.substr(0,e),n[a]=isNaN(r)?r.replace(Is,"").trim():+r,a=i.substr(e+1).trim();return n},Rs=function(t){return function(e){return 1-t(1-e)}},Bs=function t(e,i){for(var r,n=e._first;n;)n instanceof $s?t(n,i):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===i||(n.timeline?t(n.timeline,i):(r=n._ease,n._ease=n._yEase,n._yEase=r,n._yoyo=i)),n=n._next},Vs=function(t,e){return t&&(Fr(t)?t:Ds[t]||function(t){var e,i,r,n,s=(t+"").split("("),a=Ds[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ls(s[1])]:(e=t,i=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",i),e.substring(i,~n&&n<r?e.indexOf(")",r+1):r)).split(",").map(En)):Ds._CE&&Fs.test(t)?Ds._CE("",t):a}(t))||e},Os=function(t,e,i,r){void 0===i&&(i=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 n,s={easeIn:e,easeOut:i,easeInOut:r};return gn(t,function(t){for(var e in Ds[t]=Xr[t]=s,Ds[n=t.toLowerCase()]=i,s)Ds[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ds[t+"."+e]=s[e]}),s},zs=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ns=function t(e,i,r){var n=i>=1?i:1,s=(r||(e?.3:.45))/(i<1?i:1),a=s/Pr*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*Mr((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:zs(o);return s=Pr/s,l.config=function(i,r){return t(e,i,r)},l},Gs=function t(e,i){void 0===i&&(i=1.70158);var r=function(t){return t?--t*t*((i+1)*t+i)+1:0},n="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:zs(r);return n.config=function(i){return t(e,i)},n};gn("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var i=e<5?e+1:e;Os(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2})}),Ds.Linear.easeNone=Ds.none=Ds.Linear.easeIn,Os("Elastic",Ns("in"),Ns("out"),Ns()),mr=7.5625,vr=2*(yr=1/(gr=2.75)),_r=2.5*yr,Os("Bounce",function(t){return 1-br(1-t)},br=function(t){return t<yr?mr*t*t:t<vr?mr*Math.pow(t-1.5/gr,2)+.75:t<_r?mr*(t-=2.25/gr)*t+.9375:mr*Math.pow(t-2.625/gr,2)+.984375}),Os("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Os("Circ",function(t){return-(kr(1-t*t)-1)}),Os("Sine",function(t){return 1===t?1:1-Tr(t*Cr)}),Os("Back",Gs("in"),Gs("out"),Gs()),Ds.SteppedEase=Ds.steps=Xr.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0;return function(t){return((r*ts(0,.99999999,t)|0)+n)*i}}},wr.ease=Ds["quad.out"],gn("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return un+=t+","+t+"Params,"});var qs=function(t,e){this.id=Ar++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:mn,this.set=e?e.getSetter:aa},Hs=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,Xn(this,+t.duration,1,1),this.data=t.data,ar&&(this._ctx=ar,ar.data.push(this)),dr||Ts.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,Xn(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ms(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Gn(this,t),!i._dp||i.parent||qn(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Hn(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Er||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Sn(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Vn(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)+Vn(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?On(this._tTime,i)+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 i=this.parent&&this._ts?zn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ts(-Math.abs(this._delay),this.totalDuration(),i),!1!==e),Nn(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):(Ms(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Er&&(this._tTime-=Er)))),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)&&Hn(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Br(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?zn(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=nn);var e=sr;return sr=t,wn(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),sr=e,this},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Un(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Un(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(Zn(this,t),Br(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Br(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,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-Er))},e.eventCallback=function(t,e,i){var r=this.vars;return arguments.length>1?(e?(r[t]=e,i&&(r[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise(function(i){var r=Fr(t)?t:Pn,n=function(){var t=e.then;e.then=null,Fr(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),i(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n})},e.kill=function(){ys(this)},t}();Cn(Hs.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 $s=function(t){function e(e,i){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=Br(e.sortChildren),or&&Hn(e.parent||or,ir(r),i),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&$n(ir(r),e.scrollTrigger),r}rr(e,t);var i=e.prototype;return i.to=function(t,e,i){return Kn(0,arguments,this),this},i.from=function(t,e,i){return Kn(1,arguments,this),this},i.fromTo=function(t,e,i,r){return Kn(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,Mn(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ea(t,e,Zn(this,i),1),this},i.call=function(t,e,i){return Hn(this,ea.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,r,n,s,a){return i.duration=e,i.stagger=i.stagger||r,i.onComplete=s,i.onCompleteParams=a,i.parent=this,new ea(t,i,Zn(this,n)),this},i.staggerFrom=function(t,e,i,r,n,s,a){return i.runBackwards=1,Mn(i).immediateRender=Br(i.immediateRender),this.staggerTo(t,e,i,r,n,s,a)},i.staggerFromTo=function(t,e,i,r,n,s,a,o){return r.startAt=i,Mn(r).immediateRender=Br(r.immediateRender),this.staggerTo(t,e,r,n,s,a,o)},i.render=function(t,e,i){var r,n,s,a,o,l,h,c,p,u,f,d,m=this._time,g=this._dirty?this.totalDuration():this._tDur,y=this._dur,v=t<=0?0:vn(t),_=this._zTime<0!=t<0&&(this._initted||!y);if(this!==or&&v>g&&t>=0&&(v=g),v!==this._tTime||i||_){if(m!==this._time&&y&&(v+=this._time-m,t+=this._time-m),r=v,p=this._start,l=!(c=this._ts),_&&(y||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,o=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,i);if(r=vn(v%o),v===g?(a=this._repeat,r=y):((a=~~(u=vn(v/o)))&&a===u&&(r=y,a--),r>y&&(r=y)),u=On(this._tTime,o),!m&&this._tTime&&u!==a&&this._tTime-u*o-this._dur<=0&&(u=a),f&&1&a&&(r=y-r,d=1),a!==u&&!this._lock){var b=f&&1&u,x=b===(f&&1&a);if(a<u&&(b=!b),m=b?0:v%y?y:v,this._lock=1,this.render(m||(d?0:vn(a*o)),e,!y)._lock=0,this._tTime=v,!e&&this.parent&&gs(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,g=this._tDur,x&&(this._lock=2,m=b?y:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Bs(this,d)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,vn(m),vn(r)),h&&(v-=r-(r=h._start))),this._tTime=v,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&v&&!e&&!u&&(gs(this,"onStart"),this._tTime!==v))return this;if(r>=m&&t>=0)for(n=this._first;n;){if(s=n._next,(n._act||r>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(r-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(r-n._start)*n._ts,e,i),r!==this._time||!this._ts&&!l){h=0,s&&(v+=this._zTime=-1e-8);break}}n=s}else{n=this._last;for(var w=t<0?t:r;n;){if(s=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,i||sr&&wn(n)),r!==this._time||!this._ts&&!l){h=0,s&&(v+=this._zTime=w?-1e-8:Er);break}}n=s}}if(h&&!e&&(this.pause(),h.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=p,Nn(this),this.render(t,e,i);this._onUpdate&&!e&&gs(this,"onUpdate",!0),(v===g&&this._tTime>=this.totalDuration()||!v&&m)&&(p!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(v===g&&this._ts>0||!v&&this._ts<0)&&In(this,1),e||t<0&&!m||!v&&!m&&g||(gs(this,v===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<g&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(Ir(e)||(e=Zn(this,e,t)),!(t instanceof Hs)){if(Nr(t))return t.forEach(function(t){return i.add(t,e)}),this;if(Dr(t))return this.addLabel(t,e);if(!Fr(t))return this;t=ea.delayedCall(0,t)}return this!==t?Hn(this,t,e):this},i.getChildren=function(t,e,i,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===r&&(r=-Sr);for(var n=[],s=this._first;s;)s._start>=r&&(s instanceof ea?e&&n.push(s):(i&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,i)))),s=s._next;return n},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return Dr(t)?this.removeLabel(t):Fr(t)?this.killTweensOf(t):(t.parent===this&&Fn(this,t),t===this._recent&&(this._recent=this._last),Ln(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=vn(Ts.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=Zn(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var r=ea.delayedCall(0,e||tn,i);return r.data="isPause",this._hasPause=1,Hn(this,r,Zn(this,t))},i.removePause=function(t){var e=this._first;for(t=Zn(this,t);e;)e._start===t&&"isPause"===e.data&&In(e),e=e._next},i.killTweensOf=function(t,e,i){for(var r=this.getTweensOf(t,i),n=r.length;n--;)js!==r[n]&&r[n].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,r=[],n=ss(t),s=this._first,a=Ir(e);s;)s instanceof ea?bn(s._targets,n)&&(a?(!js||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&r.push(s):(i=s.getTweensOf(n,e)).length&&r.push.apply(r,i),s=s._next;return r},i.tweenTo=function(t,e){e=e||{};var i,r=this,n=Zn(r,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,h=s.immediateRender,c=ea.to(r,Cn({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:r._time))/r.timeScale())||Er,onStart:function(){if(r.pause(),!i){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:r._time))/r.timeScale());c._dur!==t&&Xn(c,t,0,1).render(c._time,!0,!0),i=1}o&&o.apply(c,l||[])}},e));return h?c.render(0):c},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,Cn({startAt:{time:Zn(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),ms(this,Zn(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),ms(this,Zn(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Er)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var r,n=this._first,s=this.labels;n;)n._start>=i&&(n._start+=t,n._end+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return Ln(this)},i.invalidate=function(e){var i=this._first;for(this._lock=0;i;)i.invalidate(e),i=i._next;return t.prototype.invalidate.call(this,e)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ln(this)},i.totalDuration=function(t){var e,i,r,n=0,s=this,a=s._last,o=Sr;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(r=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Hn(s,a,i-a._delay,1)._lock=0):o=i,i<0&&a._ts&&(n-=i,(!r&&!s._dp||r&&r.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),o=0),a._end>n&&a._ts&&(n=a._end),a=e;Xn(s,s===or&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(or._ts&&(Sn(or,zn(t,or)),ur=Ts.frame),Ts.frame>=cn){cn+=xr.autoSleep||120;var e=or._first;if((!e||!e._ts)&&xr.autoSleep&&Ts._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ts.sleep()}}},e}(Hs);Cn($s.prototype,{_lock:0,_hasPause:0,_forcing:0});var js,Ws,Ys=function(t,e,i,r,n,s,a){var o,l,h,c,p,u,f,d,m=new ma(this._pt,t,e,0,1,ha,null,n),g=0,y=0;for(m.b=i,m.e=r,i+="",(f=~(r+="").indexOf("random("))&&(r=fs(r)),s&&(s(d=[i,r],t,e),i=d[0],r=d[1]),l=i.match($r)||[];o=$r.exec(r);)c=o[0],p=r.substring(g,o.index),h?h=(h+1)%5:"rgba("===p.substr(-5)&&(h=1),c!==l[y++]&&(u=parseFloat(l[y-1])||0,m._pt={_next:m._pt,p:p||1===y?p:",",s:u,c:"="===c.charAt(1)?_n(u,c)-u:parseFloat(c)-u,m:h&&h<4?Math.round:0},g=$r.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=a,(jr.test(r)||f)&&(m.e=0),this._pt=m,m},Xs=function(t,e,i,r,n,s,a,o,l,h){Fr(r)&&(r=r(n||0,t,s));var c,p=t[e],u="get"!==i?i:Fr(p)?l?t[e.indexOf("set")||!Fr(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():p,f=Fr(p)?l?na:ra:ia;if(Dr(r)&&(~r.indexOf("random(")&&(r=fs(r)),"="===r.charAt(1)&&((c=_n(u,r)+(es(u)||0))||0===c)&&(r=c)),!h||u!==r||Ws)return isNaN(u*r)||""===r?(!p&&!(e in t)&&Zr(e,r),Ys.call(this,t,e,u,r,f,o||xr.stringFilter,l)):(c=new ma(this._pt,t,e,+u||0,r-(u||0),"boolean"==typeof p?la:oa,0,f),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},Us=function(t,e,i,r,n,s){var a,o,l,h;if(ln[t]&&!1!==(a=new ln[t]).init(n,a.rawVars?e[t]:function(t,e,i,r,n){if(Fr(t)&&(t=Ks(t,n,e,i,r)),!Rr(t)||t.style&&t.nodeType||Nr(t)||zr(t))return Dr(t)?Ks(t,n,e,i,r):t;var s,a={};for(s in t)a[s]=Ks(t[s],n,e,i,r);return a}(e[t],r,n,s,i),i,r,s)&&(i._pt=o=new ma(i._pt,n,t,0,1,a.render,a,0,a.priority),i!==fr))for(l=i._ptLookup[i._targets.indexOf(n)],h=a._props.length;h--;)l[a._props[h]]=o;return a},Js=function t(e,i,r){var n,s,a,o,l,h,c,p,u,f,d,m,g,y=e.vars,v=y.ease,_=y.startAt,b=y.immediateRender,x=y.lazy,w=y.onUpdate,S=y.runBackwards,E=y.yoyoEase,P=y.keyframes,C=y.autoRevert,A=e._dur,k=e._startAt,T=e._targets,M=e.parent,D=M&&"nested"===M.data?M.vars.targets:T,F="auto"===e._overwrite&&!nr,I=e.timeline;if(I&&(!P||!v)&&(v="none"),e._ease=Vs(v,wr.ease),e._yEase=E?Rs(Vs(!0===E?v:E,wr.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!I&&!!y.runBackwards,!I||P&&!y.stagger){if(m=(p=T[0]?dn(T[0]).harness:0)&&y[p.prop],n=Tn(y,sn),k&&(k._zTime<0&&k.progress(1),i<0&&S&&b&&!C?k.render(-1,!0):k.revert(S&&A?rn:en),k._lazy=0),_){if(In(e._startAt=ea.set(T,Cn({data:"isStart",overwrite:!1,parent:M,immediateRender:!0,lazy:!k&&Br(x),startAt:null,delay:0,onUpdate:w&&function(){return gs(e,"onUpdate")},stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(sr||!b&&!C)&&e._startAt.revert(rn),b&&A&&i<=0&&r<=0)return void(i&&(e._zTime=i))}else if(S&&A&&!k)if(i&&(b=!1),a=Cn({overwrite:!1,data:"isFromStart",lazy:b&&!k&&Br(x),immediateRender:b,stagger:0,parent:M},n),m&&(a[p.prop]=m),In(e._startAt=ea.set(T,a)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(sr?e._startAt.revert(rn):e._startAt.render(-1,!0)),e._zTime=i,b){if(!i)return}else t(e._startAt,Er,Er);for(e._pt=e._ptCache=0,x=A&&Br(x)||x&&!A,s=0;s<T.length;s++){if(c=(l=T[s])._gsap||fn(T)[s]._gsap,e._ptLookup[s]=f={},on[c.id]&&an.length&&xn(),d=D===T?s:D.indexOf(l),p&&!1!==(u=new p).init(l,m||n,e,d,D)&&(e._pt=o=new ma(e._pt,l,u.name,0,1,u.render,u,0,u.priority),u._props.forEach(function(t){f[t]=o}),u.priority&&(h=1)),!p||m)for(a in n)ln[a]&&(u=Us(a,n,e,d,l,D))?u.priority&&(h=1):f[a]=o=Xs.call(e,l,a,"get",n[a],d,D,0,y.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),F&&e._pt&&(js=e,or.killTweensOf(l,f,e.globalTime(i)),g=!e.parent,js=0),e._pt&&x&&(on[c.id]=1)}h&&da(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!g,P&&i<=0&&I.render(Sr,!0,!0)},Zs=function(t,e,i,r){var n,s,a=e.ease||r||"power1.inOut";if(Nr(e))s=i[t]||(i[t]=[]),e.forEach(function(t,i){return s.push({t:i/(e.length-1)*100,v:t,e:a})});else for(n in e)s=i[n]||(i[n]=[]),"ease"===n||s.push({t:parseFloat(t),v:e[n],e:a})},Ks=function(t,e,i,r,n){return Fr(t)?t.call(e,i,r,n):Dr(t)&&~t.indexOf("random(")?fs(t):t},Qs=un+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ta={};gn(Qs+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ta[t]=1});var ea=function(t){function e(e,i,r,n){var s;"number"==typeof i&&(r.duration=i,i=r,r=null);var a,o,l,h,c,p,u,f,d=(s=t.call(this,n?i:Mn(i))||this).vars,m=d.duration,g=d.delay,y=d.immediateRender,v=d.stagger,_=d.overwrite,b=d.keyframes,x=d.defaults,w=d.scrollTrigger,S=d.yoyoEase,E=i.parent||or,P=(Nr(e)||zr(e)?Ir(e[0]):"length"in i)?[e]:ss(e);if(s._targets=P.length?fn(P):Kr("GSAP target "+e+" not found. https://gsap.com",!xr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=_,b||v||Or(m)||Or(g)){if(i=s.vars,(a=s.timeline=new $s({data:"nested",defaults:x||{},targets:E&&"nested"===E.data?E.vars.targets:P})).kill(),a.parent=a._dp=ir(s),a._start=0,v||Or(m)||Or(g)){if(h=P.length,u=v&&ls(v),Rr(v))for(c in v)~Qs.indexOf(c)&&(f||(f={}),f[c]=v[c]);for(o=0;o<h;o++)(l=Tn(i,ta)).stagger=0,S&&(l.yoyoEase=S),f&&An(l,f),p=P[o],l.duration=+Ks(m,ir(s),o,p,P),l.delay=(+Ks(g,ir(s),o,p,P)||0)-s._delay,!v&&1===h&&l.delay&&(s._delay=g=l.delay,s._start+=g,l.delay=0),a.to(p,l,u?u(o,p,P):0),a._ease=Ds.none;a.duration()?m=g=0:s.timeline=0}else if(b){Mn(Cn(a.vars.defaults,{ease:"none"})),a._ease=Vs(b.ease||i.ease||"none");var C,A,k,T=0;if(Nr(b))b.forEach(function(t){return a.to(P,t,">")}),a.duration();else{for(c in l={},b)"ease"===c||"easeEach"===c||Zs(c,b[c],l,b.easeEach);for(c in l)for(C=l[c].sort(function(t,e){return t.t-e.t}),T=0,o=0;o<C.length;o++)(k={ease:(A=C[o]).e,duration:(A.t-(o?C[o-1].t:0))/100*m})[c]=A.v,a.to(P,k,T),T+=k.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||s.duration(m=a.duration())}else s.timeline=0;return!0!==_||nr||(js=ir(s),or.killTweensOf(P),js=0),Hn(E,ir(s),r),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(y||!m&&!b&&s._start===vn(E._time)&&Br(y)&&Bn(ir(s))&&"nested"!==E.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-g)||0)),w&&$n(ir(s),w),s}rr(e,t);var i=e.prototype;return i.render=function(t,e,i){var r,n,s,a,o,l,h,c,p,u=this._time,f=this._tDur,d=this._dur,m=t<0,g=t>f-Er&&!m?f:t<Er?0:t;if(d){if(g!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(r=g,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*a+t,e,i);if(r=vn(g%a),g===f?(s=this._repeat,r=d):(s=~~(o=vn(g/a)))&&s===o?(r=d,s--):r>d&&(r=d),(l=this._yoyo&&1&s)&&(p=this._yEase,r=d-r),o=On(this._tTime,a),r===u&&!i&&this._initted&&s===o)return this._tTime=g,this;s!==o&&(c&&this._yEase&&Bs(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&r!==a&&this._initted&&(this._lock=i=1,this.render(vn(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(jn(this,m?t:r,i,e,g))return this._tTime=0,this;if(!(u===this._time||i&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,i)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(p||this._ease)(r/d),this._from&&(this.ratio=h=1-h),!u&&g&&!e&&!o&&(gs(this,"onStart"),this._tTime!==g))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;c&&c.render(t<0?t:c._dur*c._ease(r/this._dur),e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Rn(this,t,0,i),gs(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&gs(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Rn(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&In(this,1),e||m&&!u||!(g||u||l)||(gs(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,i,r){var n,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&Wn(t)&&(t._initted||!Yn(t))||(t._ts<0||t._dp._ts<0)&&!Yn(t))?0:1,h=t._rDelay,c=0;if(h&&t._repeat&&(c=ts(0,t._tDur,e),s=On(c,h),t._yoyo&&1&s&&(l=1-l),s!==On(t._tTime,h)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||sr||r||t._zTime===Er||!e&&t._zTime){if(!t._initted&&jn(t,e,r,i,c))return;for(a=t._zTime,t._zTime=e||(i?Er:0),i||(i=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,n=t._pt;n;)n.r(l,n.d),n=n._next;e<0&&Rn(t,e,0,!0),t._onUpdate&&!i&&gs(t,"onUpdate"),c&&t._repeat&&!i&&t.parent&&gs(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&In(t,1),i||sr||(gs(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.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)},i.resetTo=function(t,e,i,r,n){dr||Ts.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Js(this,s),function(t,e,i,r,n,s,a,o){var l,h,c,p,u=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!u)for(u=t._ptCache[e]=[],c=t._ptLookup,p=t._targets.length;p--;){if((l=c[p][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return Ws=1,t.vars[e]="+=0",Js(t,a),Ws=0,o?Kr(e+" not eligible for reset"):1;u.push(l)}for(p=u.length;p--;)(l=(h=u[p])._pt||h).s=!r&&0!==r||n?l.s+(r||0)+s*l.c:r,l.c=i-l.s,h.e&&(h.e=yn(i)+es(h.e)),h.b&&(h.b=l.s+es(h.b))}(this,t,e,i,r,this._ease(s/this._dur),s,n)?this.resetTo(t,e,i,r,1):(Gn(this,0),this.parent||Dn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ys(this):this.scrollTrigger&&this.scrollTrigger.kill(!!sr),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,js&&!0!==js.vars.overwrite)._first||ys(this),this.parent&&i!==this.timeline.totalDuration()&&Xn(this,this._dur*this.timeline._tDur/i,0,1),this}var r,n,s,a,o,l,h,c=this._targets,p=t?ss(t):c,u=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0}(c,p))return"all"===e&&(this._pt=0),ys(this);for(r=this._op=this._op||[],"all"!==e&&(Dr(e)&&(o={},gn(e,function(t){return o[t]=1}),e=o),e=function(t,e){var i,r,n,s,a=t[0]?dn(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(r in i=An({},e),o)if(r in i)for(n=(s=o[r].split(",")).length;n--;)i[s[n]]=i[r];return i}(c,e)),h=c.length;h--;)if(~p.indexOf(c[h]))for(o in n=u[h],"all"===e?(r[h]=e,a=n,s={}):(s=r[h]=r[h]||{},a=e),a)(l=n&&n[o])&&("kill"in l.d&&!0!==l.d.kill(o)||Fn(this,l,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&f&&ys(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return Kn(1,arguments)},e.delayedCall=function(t,i,r,n){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},e.fromTo=function(t,e,i){return Kn(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return or.killTweensOf(t,e,i)},e}(Hs);Cn(ea.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),gn("staggerTo,staggerFrom,staggerFromTo",function(t){ea[t]=function(){var e=new $s,i=is.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}});var ia=function(t,e,i){return t[e]=i},ra=function(t,e,i){return t[e](i)},na=function(t,e,i,r){return t[e](r.fp,i)},sa=function(t,e,i){return t.setAttribute(e,i)},aa=function(t,e){return Fr(t[e])?ra:Lr(t[e])&&t.setAttribute?sa:ia},oa=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},la=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ha=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},ca=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},pa=function(t,e,i,r){for(var n,s=this._pt;s;)n=s._next,s.p===r&&s.modifier(t,e,i),s=n},ua=function(t){for(var e,i,r=this._pt;r;)i=r._next,r.p===t&&!r.op||r.op===t?Fn(this,r,"_pt"):r.dep||(e=1),r=i;return!e},fa=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},da=function(t){for(var e,i,r,n,s=t._pt;s;){for(e=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:n)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:n=s,s=e}t._pt=r},ma=function(){function t(t,e,i,r,n,s,a,o,l){this.t=e,this.s=r,this.c=n,this.p=i,this.r=s||oa,this.d=a||this,this.set=o||ia,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=fa,this.m=t,this.mt=i,this.tween=e},t}();gn(un+"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 sn[t]=1}),Xr.TweenMax=Xr.TweenLite=ea,Xr.TimelineLite=Xr.TimelineMax=$s,or=new $s({sortChildren:!1,defaults:wr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),xr.stringFilter=ks;var ga=[],ya={},va=[],_a=0,ba=0,xa=function(t){return(ya[t]||va).map(function(t){return t()})},wa=function(){var t=Date.now(),e=[];t-_a>2&&(xa("matchMediaInit"),ga.forEach(function(t){var i,r,n,s,a=t.queries,o=t.conditions;for(r in a)(i=lr.matchMedia(a[r]).matches)&&(n=1),i!==o[r]&&(o[r]=i,s=1);s&&(t.revert(),n&&e.push(t))}),xa("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),_a=t,xa("matchMedia"))},Sa=function(){function t(t,e){this.selector=e&&as(e),this.data=[],this._r=[],this.isReverted=!1,this.id=ba++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,i){Fr(t)&&(i=e,e=t,t=Fr);var r=this,n=function(){var t,n=ar,s=r.selector;return n&&n!==r&&n.data.push(r),i&&(r.selector=as(i)),ar=r,t=e.apply(r,arguments),Fr(t)&&r._r.push(t),ar=n,r.selector=s,r.isReverted=!1,t};return r.last=n,t===Fr?n(r,function(t){return r.add(null,t)}):t?r[t]=n:n},e.ignore=function(t){var e=ar;ar=null,t(this),ar=e},e.getTweens=function(){var e=[];return this.data.forEach(function(i){return i instanceof t?e.push.apply(e,i.getTweens()):i instanceof ea&&!(i.parent&&"nested"===i.parent.data)&&e.push(i)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var i=this;if(t?function(){for(var e,r=i.getTweens(),n=i.data.length;n--;)"isFlip"===(e=i.data[n]).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)}),n=i.data.length;n--;)(e=i.data[n])instanceof $s?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof ea)&&e.revert&&e.revert(t);i._r.forEach(function(e){return e(t,i)}),i.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var r=ga.length;r--;)ga[r].id===this.id&&ga.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),Ea=function(){function t(t){this.contexts=[],this.scope=t,ar&&ar.data.push(this)}var e=t.prototype;return e.add=function(t,e,i){Rr(t)||(t={matches:t});var r,n,s,a=new Sa(0,i||this.scope),o=a.conditions={};for(n in ar&&!a.selector&&(a.selector=ar.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===n?s=1:(r=lr.matchMedia(t[n]))&&(ga.indexOf(a)<0&&ga.push(a),(o[n]=r.matches)&&(s=1),r.addListener?r.addListener(wa):r.addEventListener("change",wa));return s&&e(a,function(t){return a.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}(),Pa={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(t){return _s(t)})},timeline:function(t){return new $s(t)},getTweensOf:function(t,e){return or.getTweensOf(t,e)},getProperty:function(t,e,i,r){Dr(t)&&(t=ss(t)[0]);var n=dn(t||{}).get,s=i?Pn:En;return"native"===i&&(i=""),t?e?s((ln[e]&&ln[e].get||n)(t,e,i,r)):function(e,i,r){return s((ln[e]&&ln[e].get||n)(t,e,i,r))}:t},quickSetter:function(t,e,i){if((t=ss(t)).length>1){var r=t.map(function(t){return ka.quickSetter(t,e,i)}),n=r.length;return function(t){for(var e=n;e--;)r[e](t)}}t=t[0]||{};var s=ln[e],a=dn(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var r=new s;fr._pt=0,r.init(t,i?e+i:e,fr,0,[t]),r.render(1,r),fr._pt&&ca(1,fr)}:a.set(t,o);return s?l:function(e){return l(t,o,i?e+i:e,a,1)}},quickTo:function(t,e,i){var r,n=ka.to(t,Cn(((r={})[e]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),s=function(t,i,r){return n.resetTo(e,t,i,r)};return s.tween=n,s},isTweening:function(t){return or.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Vs(t.ease,wr.ease)),kn(wr,t||{})},config:function(t){return kn(xr,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(t){return t&&!ln[t]&&!Xr[t]&&Kr(e+" effect requires "+t+" plugin.")}),hn[e]=function(t,e,r){return i(ss(t),Cn(e||{},n),r)},s&&($s.prototype[e]=function(t,i,r){return this.add(hn[e](t,Rr(i)?i:(r=i)&&{},this),r)})},registerEase:function(t,e){Ds[t]=Vs(e)},parseEase:function(t,e){return arguments.length?Vs(t,e):Ds},getById:function(t){return or.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,r,n=new $s(t);for(n.smoothChildTiming=Br(t.smoothChildTiming),or.remove(n),n._dp=0,n._time=n._tTime=or._time,i=or._first;i;)r=i._next,!e&&!i._dur&&i instanceof ea&&i.vars.onComplete===i._targets[0]||Hn(n,i,i._start-i._delay),i=r;return Hn(or,n,0),n},context:function(t,e){return t?new Sa(t,e):ar},matchMedia:function(t){return new Ea(t)},matchMediaRefresh:function(){return ga.forEach(function(t){var e,i,r=t.conditions;for(i in r)r[i]&&(r[i]=!1,e=1);e&&t.revert()})||wa()},addEventListener:function(t,e){var i=ya[t]||(ya[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=ya[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:function t(e,i,r){var n=i-e;return Nr(e)?us(e,t(0,e.length),i):Qn(r,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,i,r){var n=i-e,s=2*n;return Nr(e)?us(e,t(0,e.length-1),i):Qn(r,function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)})},distribute:ls,random:ps,snap:cs,normalize:function(t,e,i){return ds(t,e,0,1,i)},getUnit:es,clamp:function(t,e,i){return Qn(i,function(i){return ts(t,e,i)})},splitColor:Ss,toArray:ss,selector:as,mapRange:ds,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||es(i))}},interpolate:function t(e,i,r,n){var s=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!s){var a,o,l,h,c,p=Dr(e),u={};if(!0===r&&(n=1)&&(r=null),p)e={p:e},i={p:i};else if(Nr(e)&&!Nr(i)){for(l=[],h=e.length,c=h-2,o=1;o<h;o++)l.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(c,~~t);return l[e](t-e)},r=i}else n||(e=An(Nr(e)?[]:{},e));if(!l){for(a in i)Xs.call(u,e,a,"get",i[a]);s=function(t){return ca(t,u)||(p?e.p:e)}}}return Qn(r,s)},shuffle:os},install:Jr,effects:hn,ticker:Ts,updateRoot:$s.updateRoot,plugins:ln,globalTimeline:or,core:{PropTween:ma,globals:Qr,Tween:ea,Timeline:$s,Animation:Hs,getCache:dn,_removeLinkedListItem:Fn,reverting:function(){return sr},context:function(t){return t&&ar&&(ar.data.push(t),t._ctx=ar),ar},suppressOverwrites:function(t){return nr=t}}};gn("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Pa[t]=ea[t]}),Ts.add($s.updateRoot),fr=Pa.to({},{duration:0});var Ca=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Aa=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,i,r){r._onInit=function(t){var r,n;if(Dr(i)&&(r={},gn(i,function(t){return r[t]=1}),i=r),e){for(n in r={},i)r[n]=e(i[n]);i=r}!function(t,e){var i,r,n,s=t._targets;for(i in e)for(r=s.length;r--;)(n=t._ptLookup[r][i])&&(n=n.d)&&(n._pt&&(n=Ca(n,i)),n&&n.modifier&&n.modifier(e[i],t,s[r],i))}(t,i)}}}},ka=Pa.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,a,o;for(s in this.tween=i,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],r,n,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)sr?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},Aa("roundProps",hs),Aa("modifiers"),Aa("snap",cs))||Pa;ea.version=$s.version=ka.version="3.13.0",pr=1,Vr()&&Ms();var Ta,Ma,Da,Fa,Ia,La,Ra,Ba,Va=Ds.Power0,Oa=(Ds.Power1,Ds.Power2,Ds.Power3),za=(Ds.Power4,Ds.Linear,Ds.Quad,Ds.Cubic,Ds.Quart,Ds.Quint,Ds.Strong,Ds.Elastic,Ds.Back),Na=(Ds.SteppedEase,Ds.Bounce,Ds.Sine,Ds.Expo,Ds.Circ,{}),Ga=180/Math.PI,qa=Math.PI/180,Ha=Math.atan2,$a=/([A-Z])/g,ja=/(left|right|width|margin|padding|x)/i,Wa=/[\s,\(]\S/,Ya={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Xa=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ua=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)},Ja=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)},Za=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Ka=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Qa=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},to=function(t,e,i){return t.style[e]=i},eo=function(t,e,i){return t.style.setProperty(e,i)},io=function(t,e,i){return t._gsap[e]=i},ro=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},no=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},so=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},ao="transform",oo=ao+"Origin",lo=function t(e,i){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Na&&s){if(this.tfm=this.tfm||{},"transform"===e)return Ya.transform.split(",").forEach(function(e){return t.call(r,e,i)});if(~(e=Ya[e]||e).indexOf(",")?e.split(",").forEach(function(t){return r.tfm[t]=Ao(n,t)}):this.tfm[e]=a.x?a[e]:Ao(n,e),e===oo&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(ao)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(oo,i,"")),e=ao}(s||i)&&this.props.push(e,i,s[e])},ho=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},co=function(){var t,e,i=this.props,r=this.target,n=r.style,s=r._gsap;for(t=0;t<i.length;t+=3)i[t+1]?2===i[t+1]?r[i[t]](i[t+2]):r[i[t]]=i[t+2]:i[t+2]?n[i[t]]=i[t+2]:n.removeProperty("--"===i[t].substr(0,2)?i[t]:i[t].replace($a,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Ra())&&t.isStart||n[ao]||(ho(n),s.zOrigin&&n[oo]&&(n[oo]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},po=function(t,e){var i={target:t,props:[],revert:co,save:lo};return t._gsap||ka.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return i.save(t)}),i},uo=function(t,e){var i=Ma.createElementNS?Ma.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ma.createElement(t);return i&&i.style?i:Ma.createElement(t)},fo=function t(e,i,r){var n=getComputedStyle(e);return n[i]||n.getPropertyValue(i.replace($a,"-$1").toLowerCase())||n.getPropertyValue(i)||!r&&t(e,go(i)||i,1)||""},mo="O,Moz,ms,Ms,Webkit".split(","),go=function(t,e,i){var r=(e||Ia).style,n=5;if(t in r&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(mo[n]+t in r););return n<0?null:(3===n?"ms":n>=0?mo[n]:"")+t},yo=function(){"undefined"!=typeof window&&window.document&&(Ta=window,Ma=Ta.document,Da=Ma.documentElement,Ia=uo("div")||{style:{}},uo("div"),ao=go(ao),oo=ao+"Origin",Ia.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ba=!!go("perspective"),Ra=ka.core.reverting,Fa=1)},vo=function(t){var e,i=t.ownerSVGElement,r=uo("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=t.cloneNode(!0);n.style.display="block",r.appendChild(n),Da.appendChild(r);try{e=n.getBBox()}catch(t){}return r.removeChild(n),Da.removeChild(r),e},_o=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},bo=function(t){var e,i;try{e=t.getBBox()}catch(r){e=vo(t),i=1}return e&&(e.width||e.height)||i||(e=vo(t)),!e||e.width||e.x||e.y?e:{x:+_o(t,["x","cx","x1"])||0,y:+_o(t,["y","cy","y1"])||0,width:0,height:0}},xo=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!bo(t))},wo=function(t,e){if(e){var i,r=t.style;e in Na&&e!==oo&&(e=ao),r.removeProperty?("ms"!==(i=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===i?e:e.replace($a,"-$1").toLowerCase())):r.removeAttribute(e)}},So=function(t,e,i,r,n,s){var a=new ma(t._pt,e,i,0,1,s?Qa:Ka);return t._pt=a,a.b=r,a.e=n,t._props.push(i),a},Eo={deg:1,rad:1,turn:1},Po={grid:1,flex:1},Co=function t(e,i,r,n){var s,a,o,l,h=parseFloat(r)||0,c=(r+"").trim().substr((h+"").length)||"px",p=Ia.style,u=ja.test(i),f="svg"===e.tagName.toLowerCase(),d=(f?"client":"offset")+(u?"Width":"Height"),m=100,g="px"===n,y="%"===n;if(n===c||!h||Eo[n]||Eo[c])return h;if("px"!==c&&!g&&(h=t(e,i,r,"px")),l=e.getCTM&&xo(e),(y||"%"===c)&&(Na[i]||~i.indexOf("adius")))return s=l?e.getBBox()[u?"width":"height"]:e[d],yn(y?h/s*m:h/100*s);if(p[u?"width":"height"]=m+(g?c:n),a="rem"!==n&&~i.indexOf("adius")||"em"===n&&e.appendChild&&!f?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Ma&&a.appendChild||(a=Ma.body),(o=a._gsap)&&y&&o.width&&u&&o.time===Ts.time&&!o.uncache)return yn(h/o.width*m);if(!y||"height"!==i&&"width"!==i)(y||"%"===c)&&!Po[fo(a,"display")]&&(p.position=fo(e,"position")),a===e&&(p.position="static"),a.appendChild(Ia),s=Ia[d],a.removeChild(Ia),p.position="absolute";else{var v=e.style[i];e.style[i]=m+n,s=e[d],v?e.style[i]=v:wo(e,i)}return u&&y&&((o=dn(a)).time=Ts.time,o.width=a[d]),yn(g?s*h/m:s&&h?m/s*h:0)},Ao=function(t,e,i,r){var n;return Fa||yo(),e in Ya&&"transform"!==e&&~(e=Ya[e]).indexOf(",")&&(e=e.split(",")[0]),Na[e]&&"transform"!==e?(n=zo(t,r),n="transformOrigin"!==e?n[e]:n.svg?n.origin:No(fo(t,oo))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||r||~(n+"").indexOf("calc("))&&(n=Fo[e]&&Fo[e](t,e,i)||fo(t,e)||mn(t,e)||("opacity"===e?1:0)),i&&!~(n+"").trim().indexOf(" ")?Co(t,e,n,i)+i:n},ko=function(t,e,i,r){if(!i||"none"===i){var n=go(e,t,1),s=n&&fo(t,n,1);s&&s!==i?(e=n,i=s):"borderColor"===e&&(i=fo(t,"borderTopColor"))}var a,o,l,h,c,p,u,f,d,m,g,y=new ma(this._pt,t.style,e,0,1,ha),v=0,_=0;if(y.b=i,y.e=r,i+="","var(--"===(r+="").substring(0,6)&&(r=fo(t,r.substring(4,r.indexOf(")")))),"auto"===r&&(p=t.style[e],t.style[e]=r,r=fo(t,e)||r,p?t.style[e]=p:wo(t,e)),ks(a=[i,r]),r=a[1],l=(i=a[0]).match(Hr)||[],(r.match(Hr)||[]).length){for(;o=Hr.exec(r);)u=o[0],d=r.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),u!==(p=l[_++]||"")&&(h=parseFloat(p)||0,g=p.substr((h+"").length),"="===u.charAt(1)&&(u=_n(h,u)+g),f=parseFloat(u),m=u.substr((f+"").length),v=Hr.lastIndex-m.length,m||(m=m||xr.units[e]||g,v===r.length&&(r+=m,y.e+=m)),g!==m&&(h=Co(t,e,p,m)||0),y._pt={_next:y._pt,p:d||1===_?d:",",s:h,c:f-h,m:c&&c<4||"zIndex"===e?Math.round:0});y.c=v<r.length?r.substring(v,r.length):""}else y.r="display"===e&&"none"===r?Qa:Ka;return jr.test(r)&&(y.e=0),this._pt=y,y},To={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Mo=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return"top"!==i&&"bottom"!==i&&"left"!==r&&"right"!==r||(t=i,i=r,r=t),e[0]=To[i]||i,e[1]=To[r]||r,e.join(" ")},Do=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,r,n,s=e.t,a=s.style,o=e.u,l=s._gsap;if("all"===o||!0===o)a.cssText="",r=1;else for(n=(o=o.split(",")).length;--n>-1;)i=o[n],Na[i]&&(r=1,i="transformOrigin"===i?oo:ao),wo(s,i);r&&(wo(s,ao),l&&(l.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",zo(s,1),l.uncache=1,ho(a)))}},Fo={clearProps:function(t,e,i,r,n){if("isFromStart"!==n.data){var s=t._pt=new ma(t._pt,e,i,0,0,Do);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},Io=[1,0,0,1,0,0],Lo={},Ro=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Bo=function(t){var e=fo(t,ao);return Ro(e)?Io:e.substr(7).match(qr).map(yn)},Vo=function(t,e){var i,r,n,s,a=t._gsap||dn(t),o=t.style,l=Bo(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Io:l:(l!==Io||t.offsetParent||t===Da||a.svg||(n=o.display,o.display="block",(i=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,r=t.nextElementSibling,Da.appendChild(t)),l=Bo(t),n?o.display=n:wo(t,"display"),s&&(r?i.insertBefore(t,r):i?i.appendChild(t):Da.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Oo=function(t,e,i,r,n,s){var a,o,l,h=t._gsap,c=n||Vo(t,!0),p=h.xOrigin||0,u=h.yOrigin||0,f=h.xOffset||0,d=h.yOffset||0,m=c[0],g=c[1],y=c[2],v=c[3],_=c[4],b=c[5],x=e.split(" "),w=parseFloat(x[0])||0,S=parseFloat(x[1])||0;i?c!==Io&&(o=m*v-g*y)&&(l=w*(-g/o)+S*(m/o)-(m*b-g*_)/o,w=w*(v/o)+S*(-y/o)+(y*b-v*_)/o,S=l):(w=(a=bo(t)).x+(~x[0].indexOf("%")?w/100*a.width:w),S=a.y+(~(x[1]||x[0]).indexOf("%")?S/100*a.height:S)),r||!1!==r&&h.smooth?(_=w-p,b=S-u,h.xOffset=f+(_*m+b*y)-_,h.yOffset=d+(_*g+b*v)-b):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=S,h.smooth=!!r,h.origin=e,h.originIsAbsolute=!!i,t.style[oo]="0px 0px",s&&(So(s,h,"xOrigin",p,w),So(s,h,"yOrigin",u,S),So(s,h,"xOffset",f,h.xOffset),So(s,h,"yOffset",d,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+S)},zo=function(t,e){var i=t._gsap||new qs(t);if("x"in i&&!e&&!i.uncache)return i;var r,n,s,a,o,l,h,c,p,u,f,d,m,g,y,v,_,b,x,w,S,E,P,C,A,k,T,M,D,F,I,L,R=t.style,B=i.scaleX<0,V="px",O="deg",z=getComputedStyle(t),N=fo(t,oo)||"0";return r=n=s=l=h=c=p=u=f=0,a=o=1,i.svg=!(!t.getCTM||!xo(t)),z.translate&&("none"===z.translate&&"none"===z.scale&&"none"===z.rotate||(R[ao]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[ao]?z[ao]:"")),R.scale=R.rotate=R.translate="none"),g=Vo(t,i.svg),i.svg&&(i.uncache?(A=t.getBBox(),N=i.xOrigin-A.x+"px "+(i.yOrigin-A.y)+"px",C=""):C=!e&&t.getAttribute("data-svg-origin"),Oo(t,C||N,!!C||i.originIsAbsolute,!1!==i.smooth,g)),d=i.xOrigin||0,m=i.yOrigin||0,g!==Io&&(b=g[0],x=g[1],w=g[2],S=g[3],r=E=g[4],n=P=g[5],6===g.length?(a=Math.sqrt(b*b+x*x),o=Math.sqrt(S*S+w*w),l=b||x?Ha(x,b)*Ga:0,(p=w||S?Ha(w,S)*Ga+l:0)&&(o*=Math.abs(Math.cos(p*qa))),i.svg&&(r-=d-(d*b+m*w),n-=m-(d*x+m*S))):(L=g[6],F=g[7],T=g[8],M=g[9],D=g[10],I=g[11],r=g[12],n=g[13],s=g[14],h=(y=Ha(L,D))*Ga,y&&(C=E*(v=Math.cos(-y))+T*(_=Math.sin(-y)),A=P*v+M*_,k=L*v+D*_,T=E*-_+T*v,M=P*-_+M*v,D=L*-_+D*v,I=F*-_+I*v,E=C,P=A,L=k),c=(y=Ha(-w,D))*Ga,y&&(v=Math.cos(-y),I=S*(_=Math.sin(-y))+I*v,b=C=b*v-T*_,x=A=x*v-M*_,w=k=w*v-D*_),l=(y=Ha(x,b))*Ga,y&&(C=b*(v=Math.cos(y))+x*(_=Math.sin(y)),A=E*v+P*_,x=x*v-b*_,P=P*v-E*_,b=C,E=A),h&&Math.abs(h)+Math.abs(l)>359.9&&(h=l=0,c=180-c),a=yn(Math.sqrt(b*b+x*x+w*w)),o=yn(Math.sqrt(P*P+L*L)),y=Ha(E,P),p=Math.abs(y)>2e-4?y*Ga:0,f=I?1/(I<0?-I:I):0),i.svg&&(C=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!Ro(fo(t,ao)),C&&t.setAttribute("transform",C))),Math.abs(p)>90&&Math.abs(p)<270&&(B?(a*=-1,p+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,p+=p<=0?180:-180)),e=e||i.uncache,i.x=r-((i.xPercent=r&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+V,i.y=n-((i.yPercent=n&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+V,i.z=s+V,i.scaleX=yn(a),i.scaleY=yn(o),i.rotation=yn(l)+O,i.rotationX=yn(h)+O,i.rotationY=yn(c)+O,i.skewX=p+O,i.skewY=u+O,i.transformPerspective=f+V,(i.zOrigin=parseFloat(N.split(" ")[2])||!e&&i.zOrigin||0)&&(R[oo]=No(N)),i.xOffset=i.yOffset=0,i.force3D=xr.force3D,i.renderTransform=i.svg?Yo:Ba?Wo:qo,i.uncache=0,i},No=function(t){return(t=t.split(" "))[0]+" "+t[1]},Go=function(t,e,i){var r=es(e);return yn(parseFloat(e)+parseFloat(Co(t,"x",i+"px",r)))+r},qo=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Wo(t,e)},Ho="0deg",$o="0px",jo=") ",Wo=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,h=i.rotationY,c=i.rotationX,p=i.skewX,u=i.skewY,f=i.scaleX,d=i.scaleY,m=i.transformPerspective,g=i.force3D,y=i.target,v=i.zOrigin,_="",b="auto"===g&&t&&1!==t||!0===g;if(v&&(c!==Ho||h!==Ho)){var x,w=parseFloat(h)*qa,S=Math.sin(w),E=Math.cos(w);w=parseFloat(c)*qa,x=Math.cos(w),s=Go(y,s,S*x*-v),a=Go(y,a,-Math.sin(w)*-v),o=Go(y,o,E*x*-v+v)}m!==$o&&(_+="perspective("+m+jo),(r||n)&&(_+="translate("+r+"%, "+n+"%) "),(b||s!==$o||a!==$o||o!==$o)&&(_+=o!==$o||b?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+jo),l!==Ho&&(_+="rotate("+l+jo),h!==Ho&&(_+="rotateY("+h+jo),c!==Ho&&(_+="rotateX("+c+jo),p===Ho&&u===Ho||(_+="skew("+p+", "+u+jo),1===f&&1===d||(_+="scale("+f+", "+d+jo),y.style[ao]=_||"translate(0, 0)"},Yo=function(t,e){var i,r,n,s,a,o=e||this,l=o.xPercent,h=o.yPercent,c=o.x,p=o.y,u=o.rotation,f=o.skewX,d=o.skewY,m=o.scaleX,g=o.scaleY,y=o.target,v=o.xOrigin,_=o.yOrigin,b=o.xOffset,x=o.yOffset,w=o.forceCSS,S=parseFloat(c),E=parseFloat(p);u=parseFloat(u),f=parseFloat(f),(d=parseFloat(d))&&(f+=d=parseFloat(d),u+=d),u||f?(u*=qa,f*=qa,i=Math.cos(u)*m,r=Math.sin(u)*m,n=Math.sin(u-f)*-g,s=Math.cos(u-f)*g,f&&(d*=qa,a=Math.tan(f-d),n*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),i*=a=Math.sqrt(1+a*a),r*=a)),i=yn(i),r=yn(r),n=yn(n),s=yn(s)):(i=m,s=g,r=n=0),(S&&!~(c+"").indexOf("px")||E&&!~(p+"").indexOf("px"))&&(S=Co(y,"x",c,"px"),E=Co(y,"y",p,"px")),(v||_||b||x)&&(S=yn(S+v-(v*i+_*n)+b),E=yn(E+_-(v*r+_*s)+x)),(l||h)&&(a=y.getBBox(),S=yn(S+l/100*a.width),E=yn(E+h/100*a.height)),a="matrix("+i+","+r+","+n+","+s+","+S+","+E+")",y.setAttribute("transform",a),w&&(y.style[ao]=a)},Xo=function(t,e,i,r,n){var s,a,o=360,l=Dr(n),h=parseFloat(n)*(l&&~n.indexOf("rad")?Ga:1)-r,c=r+h+"deg";return l&&("short"===(s=n.split("_")[1])&&(h%=o)!==h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new ma(t._pt,e,i,r,h,Ua),a.e=c,a.u="deg",t._props.push(i),a},Uo=function(t,e){for(var i in e)t[i]=e[i];return t},Jo=function(t,e,i){var r,n,s,a,o,l,h,c=Uo({},i._gsap),p=i.style;for(n in c.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),p[ao]=e,r=zo(i,1),wo(i,ao),i.setAttribute("transform",s)):(s=getComputedStyle(i)[ao],p[ao]=e,r=zo(i,1),p[ao]=s),Na)(s=c[n])!==(a=r[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=es(s)!==(h=es(a))?Co(i,n,s,h):parseFloat(s),l=parseFloat(a),t._pt=new ma(t._pt,r,n,o,l-o,Xa),t._pt.u=h||0,t._props.push(n));Uo(r,c)};gn("padding,margin,Width,Radius",function(t,e){var i="Top",r="Right",n="Bottom",s="Left",a=(e<3?[i,r,n,s]:[i+s,i+r,n+r,n+s]).map(function(i){return e<2?t+i:"border"+i+t});Fo[e>1?"border"+t:t]=function(t,e,i,r,n){var s,o;if(arguments.length<4)return s=a.map(function(e){return Ao(t,e,i)}),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(r+"").split(" "),o={},a.forEach(function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,o,n)}});var Zo,Ko,Qo,tl={name:"css",register:yo,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s,a,o,l,h,c,p,u,f,d,m,g,y,v,_,b,x=this._props,w=t.style,S=i.vars.startAt;for(p in Fa||yo(),this.styles=this.styles||po(t),b=this.styles.props,this.tween=i,e)if("autoRound"!==p&&(a=e[p],!ln[p]||!Us(p,e,i,r,t,n)))if(h=typeof a,c=Fo[p],"function"===h&&(h=typeof(a=a.call(i,r,t,n))),"string"===h&&~a.indexOf("random(")&&(a=fs(a)),c)c(this,t,p,a,i)&&(_=1);else if("--"===p.substr(0,2))s=(getComputedStyle(t).getPropertyValue(p)+"").trim(),a+="",Cs.lastIndex=0,Cs.test(s)||(u=es(s),f=es(a)),f?u!==f&&(s=Co(t,p,s,f)+f):u&&(a+=u),this.add(w,"setProperty",s,a,r,n,0,0,p),x.push(p),b.push(p,0,w[p]);else if("undefined"!==h){if(S&&p in S?(s="function"==typeof S[p]?S[p].call(i,r,t,n):S[p],Dr(s)&&~s.indexOf("random(")&&(s=fs(s)),es(s+"")||"auto"===s||(s+=xr.units[p]||es(Ao(t,p))||""),"="===(s+"").charAt(1)&&(s=Ao(t,p))):s=Ao(t,p),l=parseFloat(s),(d="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),p in Ya&&("autoAlpha"===p&&(1===l&&"hidden"===Ao(t,"visibility")&&o&&(l=0),b.push("visibility",0,w.visibility),So(this,w,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==p&&"transform"!==p&&~(p=Ya[p]).indexOf(",")&&(p=p.split(",")[0])),m=p in Na)if(this.styles.save(p),"string"===h&&"var(--"===a.substring(0,6)&&(a=fo(t,a.substring(4,a.indexOf(")"))),o=parseFloat(a)),g||((y=t._gsap).renderTransform&&!e.parseTransform||zo(t,e.parseTransform),v=!1!==e.smoothOrigin&&y.smooth,(g=this._pt=new ma(this._pt,w,ao,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===p)this._pt=new ma(this._pt,y,"scaleY",y.scaleY,(d?_n(y.scaleY,d+o):o)-y.scaleY||0,Xa),this._pt.u=0,x.push("scaleY",p),p+="X";else{if("transformOrigin"===p){b.push(oo,0,w[oo]),a=Mo(a),y.svg?Oo(t,a,0,v,0,this):((f=parseFloat(a.split(" ")[2])||0)!==y.zOrigin&&So(this,y,"zOrigin",y.zOrigin,f),So(this,w,p,No(s),No(a)));continue}if("svgOrigin"===p){Oo(t,a,1,v,0,this);continue}if(p in Lo){Xo(this,y,p,l,d?_n(l,d+a):a);continue}if("smoothOrigin"===p){So(this,y,"smooth",y.smooth,a);continue}if("force3D"===p){y[p]=a;continue}if("transform"===p){Jo(this,a,t);continue}}else p in w||(p=go(p)||p);if(m||(o||0===o)&&(l||0===l)&&!Wa.test(a)&&p in w)o||(o=0),(u=(s+"").substr((l+"").length))!==(f=es(a)||(p in xr.units?xr.units[p]:u))&&(l=Co(t,p,s,f)),this._pt=new ma(this._pt,m?y:w,p,l,(d?_n(l,d+o):o)-l,m||"px"!==f&&"zIndex"!==p||!1===e.autoRound?Xa:Za),this._pt.u=f||0,u!==f&&"%"!==f&&(this._pt.b=s,this._pt.r=Ja);else if(p in w)ko.call(this,t,p,s,d?d+a:a);else if(p in t)this.add(t,p,s||t[p],d?d+a:a,r,n);else if("parseTransform"!==p){Zr(p,a);continue}m||(p in w?b.push(p,0,w[p]):"function"==typeof t[p]?b.push(p,2,t[p]()):b.push(p,1,s||t[p])),x.push(p)}_&&da(this)},render:function(t,e){if(e.tween._time||!Ra())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()}
1,get:Ao,aliases:Ya,getSetter:function(t,e,i){var r=Ya[e];return r&&r.indexOf(",")<0&&(e=r),e in Na&&e!==oo&&(t._gsap.x||Ao(t,"x"))?i&&La===i?"scale"===e?ro:io:(La=i||{})&&("scale"===e?no:so):t.style&&!Lr(t.style[e])?to:~e.indexOf("-")?eo:aa(t,e)},core:{_removeProperty:wo,_getMatrix:Vo}};ka.utils.checkPrefix=go,ka.core.getStyleSaver=po,Qo=gn((Zo="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Ko="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Na[t]=1}),gn(Ko,function(t){xr.units[t]="deg",Lo[t]=1}),Ya[Qo[13]]=Zo+","+Ko,gn("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ya[e[1]]=Qo[e[0]]}),gn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){xr.units[t]="px"}),ka.registerPlugin(tl);var el=ka.registerPlugin(tl)||ka;el.core.Tween;function il(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var rl,nl,sl,al,ol,ll,hl,cl,pl,ul,fl,dl,ml,gl=function(){return rl||"undefined"!=typeof window&&(rl=window.gsap)&&rl.registerPlugin&&rl},yl=1,vl=[],_l=[],bl=[],xl=Date.now,wl=function(t,e){return e},Sl=function(t,e){return~bl.indexOf(t)&&bl[bl.indexOf(t)+1][e]},El=function(t){return!!~ul.indexOf(t)},Pl=function(t,e,i,r,n){return t.addEventListener(e,i,{passive:!1!==r,capture:!!n})},Cl=function(t,e,i,r){return t.removeEventListener(e,i,!!r)},Al="scrollLeft",kl="scrollTop",Tl=function(){return fl&&fl.isPressed||_l.cache++},Ml=function(t,e){var i=function i(r){if(r||0===r){yl&&(sl.history.scrollRestoration="manual");var n=fl&&fl.isPressed;r=i.v=Math.round(r)||(fl&&fl.iOS?1:0),t(r),i.cacheID=_l.cache,n&&wl("ss",r)}else(e||_l.cache!==i.cacheID||wl("ref"))&&(i.cacheID=_l.cache,i.v=t());return i.v+i.offset};return i.offset=0,t&&i},Dl={s:Al,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ml(function(t){return arguments.length?sl.scrollTo(t,Fl.sc()):sl.pageXOffset||al[Al]||ol[Al]||ll[Al]||0})},Fl={s:kl,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Dl,sc:Ml(function(t){return arguments.length?sl.scrollTo(Dl.sc(),t):sl.pageYOffset||al[kl]||ol[kl]||ll[kl]||0})},Il=function(t,e){return(e&&e._ctx&&e._ctx.selector||rl.utils.toArray)(t)[0]||("string"==typeof t&&!1!==rl.config().nullTargetWarn?console.warn("Element not found:",t):null)},Ll=function(t,e){var i=e.s,r=e.sc;El(t)&&(t=al.scrollingElement||ol);var n=_l.indexOf(t),s=r===Fl.sc?1:2;!~n&&(n=_l.push(t)-1),_l[n+s]||Pl(t,"scroll",Tl);var a=_l[n+s],o=a||(_l[n+s]=Ml(Sl(t,i),!0)||(El(t)?r:Ml(function(e){return arguments.length?t[i]=e:t[i]})));return o.target=t,a||(o.smooth="smooth"===rl.getProperty(t,"scrollBehavior")),o},Rl=function(t,e,i){var r=t,n=t,s=xl(),a=s,o=e||50,l=Math.max(500,3*o),h=function(t,e){var l=xl();e||l-s>o?(n=r,r=t,a=s,s=l):i?r+=t:r=n+(t-n)/(l-a)*(s-a)};return{update:h,reset:function(){n=r=i?0:r,a=s=0},getVelocity:function(t){var e=a,o=n,c=xl();return(t||0===t)&&t!==r&&h(t),s===a||c-a>l?0:(r+(i?o:-o))/((i?c:s)-e)*1e3}}},Bl=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Vl=function(t){var e=Math.max.apply(Math,t),i=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(i)?e:i},Ol=function(){(pl=rl.core.globals().ScrollTrigger)&&pl.core&&function(){var t=pl.core,e=t.bridge||{},i=t._scrollers,r=t._proxies;i.push.apply(i,_l),r.push.apply(r,bl),_l=i,bl=r,wl=function(t,i){return e[t](i)}}()},zl=function(t){return rl=t||gl(),!nl&&rl&&"undefined"!=typeof document&&document.body&&(sl=window,al=document,ol=al.documentElement,ll=al.body,ul=[sl,al,ol,ll],rl.utils.clamp,ml=rl.core.context||function(){},cl="onpointerenter"in ll?"pointer":"mouse",hl=Nl.isTouch=sl.matchMedia&&sl.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in sl||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,dl=Nl.eventTypes=("ontouchstart"in ol?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ol?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return yl=0},500),Ol(),nl=1),nl};Dl.op=Fl,_l.cache=0;var Nl=function(){function t(t){this.init(t)}var e,i,r;return t.prototype.init=function(t){nl||zl(rl)||console.warn("Please gsap.registerPlugin(Observer)"),pl||Ol();var e=t.tolerance,i=t.dragMinimum,r=t.type,n=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,l=t.onStop,h=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,u=t.event,f=t.onDragStart,d=t.onDragEnd,m=t.onDrag,g=t.onPress,y=t.onRelease,v=t.onRight,_=t.onLeft,b=t.onUp,x=t.onDown,w=t.onChangeX,S=t.onChangeY,E=t.onChange,P=t.onToggleX,C=t.onToggleY,A=t.onHover,k=t.onHoverEnd,T=t.onMove,M=t.ignoreCheck,D=t.isNormalizer,F=t.onGestureStart,I=t.onGestureEnd,L=t.onWheel,R=t.onEnable,B=t.onDisable,V=t.onClick,O=t.scrollSpeed,z=t.capture,N=t.allowClicks,G=t.lockAxis,q=t.onLockAxis;this.target=n=Il(n)||ol,this.vars=t,c&&(c=rl.utils.toArray(c)),e=e||1e-9,i=i||0,p=p||1,O=O||1,r
1=r||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(sl.getComputedStyle(ll).lineHeight)||22);var H,$,j,W,Y,X,U,J=this,Z=0,K=0,Q=t.passive||!o&&!1!==t.passive,tt=Ll(n,Dl),et=Ll(n,Fl),it=tt(),rt=et(),nt=~r.indexOf("touch")&&!~r.indexOf("pointer")&&"pointerdown"===dl[0],st=El(n),at=n.ownerDocument||al,ot=[0,0,0],lt=[0,0,0],ht=0,ct=function(){return ht=xl()},pt=function(t,e){return(J.event=t)&&c&&function(t,e){for(var i=e.length;i--;)if(e[i]===t||e[i].contains(t))return!0;return!1}(t.target,c)||e&&nt&&"touch"!==t.pointerType||M&&M(t,e)},ut=function(){var t=J.deltaX=Vl(ot),i=J.deltaY=Vl(lt),r=Math.abs(t)>=e,n=Math.abs(i)>=e;E&&(r||n)&&E(J,t,i,ot,lt),r&&(v&&J.deltaX>0&&v(J),_&&J.deltaX<0&&_(J),w&&w(J),P&&J.deltaX<0!=Z<0&&P(J),Z=J.deltaX,ot[0]=ot[1]=ot[2]=0),n&&(x&&J.deltaY>0&&x(J),b&&J.deltaY<0&&b(J),S&&S(J),C&&J.deltaY<0!=K<0&&C(J),K=J.deltaY,lt[0]=lt[1]=lt[2]=0),(W||j)&&(T&&T(J),j&&(f&&1===j&&f(J),m&&m(J),j=0),W=!1),X&&!(X=!1)&&q&&q(J),Y&&(L(J),Y=!1),H=0},ft=function(t,e,i){ot[i]+=t,lt[i]+=e,J._vx.update(t),J._vy.update(e),a?H||(H=requestAnimationFrame(ut)):ut()},dt=function(t,e){G&&!U&&(J.axis=U=Math.abs(t)>Math.abs(e)?"x":"y",X=!0),"y"!==U&&(ot[2]+=t,J._vx.update(t,!0)),"x"!==U&&(lt[2]+=e,J._vy.update(e,!0)),a?H||(H=requestAnimationFrame(ut)):ut()},mt=function(t){if(!pt(t,1)){var e=(t=Bl(t,o)).clientX,r=t.clientY,n=e-J.x,s=r-J.y,a=J.isDragging;J.x=e,J.y=r,(a||(n||s)&&(Math.abs(J.startX-e)>=i||Math.abs(J.startY-r)>=i))&&(j=a?2:1,a||(J.isDragging=!0),dt(n,s))}},gt=J.onPress=function(t){pt(t,1)||t&&t.button||(J.axis=U=null,$.pause(),J.isPressed=!0,t=Bl(t),Z=K=0,J.startX=J.x=t.clientX,J.startY=J.y=t.clientY,J._vx.reset(),J._vy.reset(),Pl(D?n:at,dl[1],mt,Q,!0),J.deltaX=J.deltaY=0,g&&g(J))},yt=J.onRelease=function(t){if(!pt(t,1)){Cl(D?n:at,dl[1],mt,!0);var e=!isNaN(J.y-J.startY),i=J.isDragging,r=i&&(Math.abs(J.x-J.startX)>3||Math.abs(J.y-J.startY)>3),s=Bl(t);!r&&e&&(J._vx.reset(),J._vy.reset(),o&&N&&rl.delayedCall(.08,function(){if(xl()-ht>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,sl,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),J.isDragging=J.isGesturing=J.isPressed=!1,l&&i&&!D&&$.restart(!0),j&&ut(),d&&i&&d(J),y&&y(J,r)}},vt=function(t){return t.touches&&t.touches.length>1&&(J.isGesturing=!0)&&F(t,J.isDragging)},_t=function(){return(J.isGesturing=!1)||I(J)},bt=function(t){if(!pt(t)){var e=tt(),i=et();ft((e-it)*O,(i-rt)*O,1),it=e,rt=i,l&&$.restart(!0)}},xt=function(t){if(!pt(t)){t=Bl(t,o),L&&(Y=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?sl.innerHeight:1)*p;ft(t.deltaX*e,t.deltaY*e,0),l&&!D&&$.restart(!0)}},wt=function(t){if(!pt(t)){var e=t.clientX,i=t.clientY,r=e-J.x,n=i-J.y;J.x=e,J.y=i,W=!0,l&&$.restart(!0),(r||n)&&dt(r,n)}},St=function(t){J.event=t,A(J)},Et=function(t){J.event=t,k(J)},Pt=function(t){return pt(t)||Bl(t,o)&&V(J)};$=J._dc=rl.delayedCall(h||.25,function(){J._vx.reset(),J._vy.reset(),$.pause(),l&&l(J)}).pause(),J.deltaX=J.deltaY=0,J._vx=Rl(0,50,!0),J._vy=Rl(0,50,!0),J.scrollX=tt,J.scrollY=et,J.isDragging=J.isGesturing=J.isPressed=!1,ml(this),J.enable=function(t){return J.isEnabled||(Pl(st?at:n,"scroll",Tl),r.indexOf("scroll")>=0&&Pl(st?at:n,"scroll",bt,Q,z),r.indexOf("wheel")>=0&&Pl(n,"wheel",xt,Q,z),(r.indexOf("touch")>=0&&hl||r.indexOf("pointer")>=0)&&(Pl(n,dl[0],gt,Q,z),Pl(at,dl[2],yt),Pl(at,dl[3],yt),N&&Pl(n,"click",ct,!0,!0),V&&Pl(n,"click",Pt),F&&Pl(at,"gesturestart",vt),I&&Pl(at,"gestureend",_t),A&&Pl(n,cl+"enter",St),k&&Pl(n,cl+"leave",Et),T&&Pl(n,cl+"move",wt)),J.isEnabled=!0,J.isDragging=J.isGesturing=J.isPressed=W=j=!1,J._vx.reset(),J._vy.reset(),it=tt(),rt=et(),t&&t.type&>(t),R&&R(J)),J},J.disable=function(){J.isEnabled&&(vl.filter(function(t){return t!==J&&El(t.target)}).length||Cl(st?at:n,"scroll",Tl),J.isPressed&&(J._vx.reset(),J._vy.reset(),Cl(D?n:at,dl[1],mt,!0)),Cl(st?at:n,"scroll",bt,z),Cl(n,"wheel",xt,z),Cl(n,dl[0],gt,z),Cl(at,dl[2],yt),Cl(at,dl[3],yt),Cl(n,"click",ct,!0),Cl(n,"click",Pt),Cl(at,"gesturestart",vt),Cl(at,"gestureend",_t),Cl(n,cl+"enter",St),Cl(n,cl+"leave",Et),Cl(n,cl+"move",wt),J.
1isEnabled=J.isPressed=J.isDragging=!1,B&&B(J))},J.kill=J.revert=function(){J.disable();var t=vl.indexOf(J);t>=0&&vl.splice(t,1),fl===J&&(fl=0)},vl.push(J),D&&El(n)&&(fl=J),J.enable(u)},e=t,(i=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&il(e.prototype,i),r&&il(e,r),t}();Nl.version="3.13.0",Nl.create=function(t){return new Nl(t)},Nl.register=zl,Nl.getAll=function(){return vl.slice()},Nl.getById=function(t){return vl.filter(function(e){return e.vars.id===t})[0]},gl()&&rl.registerPlugin(Nl);var Gl,ql,Hl,$l,jl,Wl,Yl,Xl,Ul,Jl,Zl,Kl,Ql,th,eh,ih,rh,nh,sh,ah,oh,lh,hh,ch,ph,uh,fh,dh,mh,gh,yh,vh,_h,bh,xh,wh,Sh,Eh,Ph=1,Ch=Date.now,Ah=Ch(),kh=0,Th=0,Mh=function(t,e,i){var r=$h(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return i["_"+e+"Clamp"]=r,r?t.substr(6,t.length-7):t},Dh=function(t,e){return!e||$h(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Fh=function t(){return Th&&requestAnimationFrame(t)},Ih=function(){return th=1},Lh=function(){return th=0},Rh=function(t){return t},Bh=function(t){return Math.round(1e5*t)/1e5||0},Vh=function(){return"undefined"!=typeof window},Oh=function(){return Gl||Vh()&&(Gl=window.gsap)&&Gl.registerPlugin&&Gl},zh=function(t){return!!~Yl.indexOf(t)},Nh=function(t){return("Height"===t?yh:Hl["inner"+t])||jl["client"+t]||Wl["client"+t]},Gh=function(t){return Sl(t,"getBoundingClientRect")||(zh(t)?function(){return tp.width=Hl.innerWidth,tp.height=yh,tp}:function(){return fc(t)})},qh=function(t,e){var i=e.s,r=e.d2,n=e.d,s=e.a;return Math.max(0,(i="scroll"+r)&&(s=Sl(t,i))?s()-Gh(t)()[n]:zh(t)?(jl[i]||Wl[i])-Nh(r):t[i]-t["offset"+r])},Hh=function(t,e){for(var i=0;i<sh.length;i+=3)(!e||~e.indexOf(sh[i+1]))&&t(sh[i],sh[i+1],sh[i+2])},$h=function(t){return"string"==typeof t},jh=function(t){return"function"==typeof t},Wh=function(t){return"number"==typeof t},Yh=function(t){return"object"==typeof t},Xh=function(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()},Uh=function(t,e){if(t.enabled){var i=t._ctx?t._ctx.add(function(){return e(t)}):e(t);i&&i.totalTime&&(t.callbackAnimation=i)}},Jh=Math.abs,Zh="left",Kh="right",Qh="bottom",tc="width",ec="height",ic="Right",rc="Left",nc="Top",sc="Bottom",ac="padding",oc="margin",lc="Width",hc="Height",cc="px",pc=function(t){return Hl.getComputedStyle(t)},uc=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},fc=function(t,e){var i=e&&"matrix(1, 0, 0, 1, 0, 0)"!==pc(t)[eh]&&Gl.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=t.getBoundingClientRect();return i&&i.progress(0).kill(),r},dc=function(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0},mc=function(t){var e,i=[],r=t.labels,n=t.duration();for(e in r)i.push(r[e]/n);return i},gc=function(t){var e=Gl.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort(function(t,e){return t-e});return i?function(t,r,n){var s;if(void 0===n&&(n=.001),!r)return e(t);if(r>0){for(t-=n,s=0;s<i.length;s++)if(i[s]>=t)return i[s];return i[s-1]}for(s=i.length,t+=n;s--;)if(i[s]<=t)return i[s];return i[0]}:function(i,r,n){void 0===n&&(n=.001);var s=e(i);return!r||Math.abs(s-i)<n||s-i<0==r<0?s:e(r<0?i-t:i+t)}},yc=function(t,e,i,r){return i.split(",").forEach(function(i){return t(e,i,r)})},vc=function(t,e,i,r,n){return t.addEventListener(e,i,{passive:!r,capture:!!n})},_c=function(t,e,i,r){return t.removeEventListener(e,i,!!r)},bc=function(t,e,i){(i=i&&i.wheelHandler)&&(t(e,"wheel",i),t(e,"touchmove",i))},xc={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},wc={toggleActions:"play",anticipatePin:0},Sc={top:0,left:0,center:.5,bottom:1,right:1},Ec=function(t,e){if($h(t)){var i=t.indexOf("="),r=~i?+(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(r*=e/100),t=t.substr(0,i-1)),t=r+(t in Sc?Sc[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Pc=function(t,e,i,r,n,s,a,o){var l=n.startColor,h=n.endColor,c=n.fontSize,p=n.indent,u=n.fontWeight,f=$l.createElement("div"),d=zh(i)||"fixed"===Sl(i,"pinType"),m=-1!==t.indexOf("scroller"),g=d?Wl:i,y=-1!==t.indexOf("start"),v=y?l:h,_="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return _+="position:"+((m||o)&&d?"fixed;":"absolute;
1"),(m||o||!d)&&(_+=(r===Fl?Kh:Qh)+":"+(s+parseFloat(p))+"px;"),a&&(_+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),f._isStart=y,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=_,f.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(f,g.children[0]):g.appendChild(f),f._offset=f["offset"+r.op.d2],Cc(f,0,r,y),f},Cc=function(t,e,i,r){var n={display:"block"},s=i[r?"os2":"p2"],a=i[r?"p2":"os2"];t._isFlipped=r,n[i.a+"Percent"]=r?-100:0,n[i.a]=r?"1px":0,n["border"+s+lc]=1,n["border"+a+lc]=0,n[i.p]=e+"px",Gl.set(t,n)},Ac=[],kc={},Tc=function(){return Ch()-kh>34&&(xh||(xh=requestAnimationFrame(Yc)))},Mc=function(){(!hh||!hh.isPressed||hh.startX>Wl.clientWidth)&&(_l.cache++,hh?xh||(xh=requestAnimationFrame(Yc)):Yc(),kh||Bc("scrollStart"),kh=Ch())},Dc=function(){uh=Hl.innerWidth,ph=Hl.innerHeight},Fc=function(t){_l.cache++,(!0===t||!Ql&&!lh&&!$l.fullscreenElement&&!$l.webkitFullscreenElement&&(!ch||uh!==Hl.innerWidth||Math.abs(Hl.innerHeight-ph)>.25*Hl.innerHeight))&&Xl.restart(!0)},Ic={},Lc=[],Rc=function t(){return _c(op,"scrollEnd",t)||$c(!0)},Bc=function(t){return Ic[t]&&Ic[t].map(function(t){return t()})||Lc},Vc=[],Oc=function(t){for(var e=0;e<Vc.length;e+=5)(!t||Vc[e+4]&&Vc[e+4].query===t)&&(Vc[e].style.cssText=Vc[e+1],Vc[e].getBBox&&Vc[e].setAttribute("transform",Vc[e+2]||""),Vc[e+3].uncache=1)},zc=function(t,e){var i;for(ih=0;ih<Ac.length;ih++)!(i=Ac[ih])||e&&i._ctx!==e||(t?i.kill(1):i.revert(!0,!0));vh=!0,e&&Oc(e),e||Bc("revert")},Nc=function(t,e){_l.cache++,(e||!wh)&&_l.forEach(function(t){return jh(t)&&t.cacheID++&&(t.rec=0)}),$h(t)&&(Hl.history.scrollRestoration=mh=t)},Gc=0,qc=function(){Wl.appendChild(gh),yh=!hh&&gh.offsetHeight||Hl.innerHeight,Wl.removeChild(gh)},Hc=function(t){return Ul(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},$c=function(t,e){if(jl=$l.documentElement,Wl=$l.body,Yl=[Hl,$l,jl,Wl],!kh||t||vh){qc(),wh=op.isRefreshing=!0,_l.forEach(function(t){return jh(t)&&++t.cacheID&&(t.rec=t())});var i=Bc("refreshInit");ah&&op.sort(),e||zc(),_l.forEach(function(t){jh(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),Ac.slice(0).forEach(function(t){return t.refresh()}),vh=!1,Ac.forEach(function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",i=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-i),t.refresh()}}),_h=1,Hc(!0),Ac.forEach(function(t){var e=qh(t.scroller,t._dir),i="max"===t.vars.end||t._endClamp&&t.end>e,r=t._startClamp&&t.start>=e;(i||r)&&t.setPositions(r?e-1:t.start,i?Math.max(r?e:t.start+1,e):t.end,!0)}),Hc(!1),_h=0,i.forEach(function(t){return t&&t.render&&t.render(-1)}),_l.forEach(function(t){jh(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Nc(mh,1),Xl.pause(),Gc++,wh=2,Yc(2),Ac.forEach(function(t){return jh(t.vars.onRefresh)&&t.vars.onRefresh(t)}),wh=op.isRefreshing=!1,Bc("refresh")}else vc(op,"scrollEnd",Rc)},jc=0,Wc=1,Yc=function(t){if(2===t||!wh&&!vh){op.isUpdating=!0,Eh&&Eh.update(0);var e=Ac.length,i=Ch(),r=i-Ah>=50,n=e&&Ac[0].scroll();if(Wc=jc>n?-1:1,wh||(jc=n),r&&(kh&&!th&&i-kh>200&&(kh=0,Bc("scrollEnd")),Zl=Ah,Ah=i),Wc<0){for(ih=e;ih-- >0;)Ac[ih]&&Ac[ih].update(0,r);Wc=1}
vendor: 22,082 bytes, line 1
1else for(ih=0;ih<e;ih++)Ac[ih]&&Ac[ih].update(0,r);op.isUpdating=!1}xh=0},Xc=[Zh,"top",Qh,Kh,oc+sc,oc+ic,oc+nc,oc+rc,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Uc=Xc.concat([tc,ec,"boxSizing","max"+lc,"max"+hc,"position",oc,ac,ac+nc,ac+ic,ac+sc,ac+rc]),Jc=function(t,e,i,r){if(!t._gsap.swappedIn){for(var n,s=Xc.length,a=e.style,o=t.style;s--;)a[n=Xc[s]]=i[n];a.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(a.display="inline-block"),o[Qh]=o[Kh]="auto",a.flexBasis=i.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[tc]=dc(t,Dl)+cc,a[ec]=dc(t,Fl)+cc,a[ac]=o[oc]=o.top=o[Zh]="0",Kc(r),o[tc]=o["max"+lc]=i[tc],o[ec]=o["max"+hc]=i[ec],o[ac]=i[ac],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},Zc=/([A-Z])/g,Kc=function(t){if(t){var e,i,r=t.t.style,n=t.length,s=0;for((t.t._gsap||Gl.core.getCache(t.t)).uncache=1;s<n;s+=2)i=t[s+1],e=t[s],i?r[e]=i:r[e]&&r.removeProperty(e.replace(Zc,"-$1").toLowerCase())}},Qc=function(t){for(var e=Uc.length,i=t.style,r=[],n=0;n<e;n++)r.push(Uc[n],i[Uc[n]]);return r.t=t,r},tp={left:0,top:0},ep=function(t,e,i,r,n,s,a,o,l,h,c,p,u,f){jh(t)&&(t=t(o)),$h(t)&&"max"===t.substr(0,3)&&(t=p+("="===t.charAt(4)?Ec("0"+t.substr(3),i):0));var d,m,g,y=u?u.time():0;if(u&&u.seek(0),isNaN(t)||(t=+t),Wh(t))u&&(t=Gl.utils.mapRange(u.scrollTrigger.start,u.scrollTrigger.end,0,p,t)),a&&Cc(a,i,r,!0);else{jh(e)&&(e=e(o));var v,_,b,x,w=(t||"0").split(" ");g=Il(e,o)||Wl,(v=fc(g)||{})&&(v.left||v.top)||"none"!==pc(g).display||(x=g.style.display,g.style.display="block",v=fc(g),x?g.style.display=x:g.style.removeProperty("display")),_=Ec(w[0],v[r.d]),b=Ec(w[1]||"0",i),t=v[r.p]-l[r.p]-h+_+n-b,a&&Cc(a,b,r,i-b<20||a._isStart&&b>20),i-=i-b}if(f&&(o[f]=t||-.001,t<0&&(t=0)),s){var S=t+i,E=s._isStart;d="scroll"+r.d2,Cc(s,S,r,E&&S>20||!E&&(c?Math.max(Wl[d],jl[d]):s.parentNode[d])<=S+1),c&&(l=fc(a),c&&(s.style[r.op.p]=l[r.op.p]-r.op.m-s._offset+cc))}return u&&g&&(d=fc(g),u.seek(p),m=fc(g),u._caScrollDist=d[r.p]-m[r.p],t=t/u._caScrollDist*p),u&&u.seek(y),u?t:Math.round(t)},ip=/(webkit|moz|length|cssText|inset)/i,rp=function(t,e,i,r){if(t.parentNode!==e){var n,s,a=t.style;if(e===Wl){for(n in t._stOrig=a.cssText,s=pc(t))+n||ip.test(n)||!s[n]||"string"!=typeof a[n]||"0"===n||(a[n]=s[n]);a.top=i,a.left=r}else a.cssText=t._stOrig;Gl.core.getCache(t).uncache=1,e.appendChild(t)}},np=function(t,e,i){var r=e,n=r;return function(e){var s=Math.round(t());return s!==r&&s!==n&&Math.abs(s-r)>3&&Math.abs(s-n)>3&&(e=s,i&&i()),n=r,r=Math.round(e)}},sp=function(t,e,i){var r={};r[e.p]="+="+i,Gl.set(t,r)},ap=function(t,e){var i=Ll(t,e),r="_scroll"+e.p2,n=function e(n,s,a,o,l){var h=e.tween,c=s.onComplete,p={};a=a||i();var u=np(i,a,function(){h.kill(),e.tween=0});return l=o&&l||0,o=o||n-a,h&&h.kill(),s[r]=n,s.inherit=!1,s.modifiers=p,p[r]=function(){return u(a+o*h.ratio+l*h.ratio*h.ratio)},s.onUpdate=function(){_l.cache++,e.tween&&Yc()},s.onComplete=function(){e.tween=0,c&&c.call(h)},h=e.tween=Gl.to(t,s)};return t[r]=i,i.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},vc(t,"wheel",i.wheelHandler),op.isTouch&&vc(t,"touchmove",i.wheelHandler),n},op=function(){function t(e,i){ql||t.register(Gl)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),dh(this),this.init(e,i)}return t.prototype.init=function(e,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Th){var r,n,s,a,o,l,h,c,p,u,f,d,m,g,y,v,_,b,x,w,S,E,P,C,A,k,T,M,D,F,I,L,R,B,V,O,z,N,G,q,H,$,j=e=uc($h(e)||Wh(e)||e.nodeType?{trigger:e}:e,wc),W=j.onUpdate,Y=j.toggleClass,X=j.id,U=j.onToggle,J=j.onRefresh,Z=j.scrub,K=j.trigger,Q=j.pin,tt=j.pinSpacing,et=j.invalidateOnRefresh,it=j.anticipatePin,rt=j.onScrubComplete,nt=j.onSnapComplete,st=j.once,at=j.snap,ot=j.pinReparent,lt=j.pinSpacer,ht=j.containerAnimation,ct=j.fastScrollEnd,pt=j.preventOverlaps,ut=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Dl:Fl,ft=!Z&&0!==Z,dt=Il(e.scroller||Hl),mt=Gl.core.getCache(dt),gt=zh(dt),yt="fixed"===("pinType"in e?e.pinType:Sl(dt,"pinType")||gt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],_t=ft&&e.toggleActions.split(" "),bt="markers"in e?e.markers:wc.markers,xt=gt?0:parseFloat(pc(dt)["border"+ut.p2+lc])||0,wt=this,St=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},Et=function(t,e,i){var r=i.d,n=i.d2,s=i.a;return(s=Sl(t,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(e?Nh(n):t["client"+n])||0}}(dt,gt,ut),Pt=function(t,e){return!e||~bl.indexOf(t)?Gh(t):function(){return tp}}(dt,gt),Ct=0,At=0,kt=0,Tt=Ll(dt,ut);if(wt._startClamp=wt._endClamp=!1,wt._dir=ut,it*=45,wt.scroller=dt,wt.scroll=ht?ht.time.bind(ht):Tt,a=Tt(),wt.vars=e,i=i||e.animation,"refreshPriority"in e&&(ah=1,-9999===e.refreshPriority&&(Eh=wt)),mt.tweenScroll=mt.tweenScroll||{top:ap(dt,Fl),left:ap(dt,Dl)},wt.tweenTo=r=mt.tweenScroll[ut.p],wt.scrubDuration=function(t){(R=Wh(t)&&t)?L?L.duration(t):L=Gl.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:R,paused:!0,onComplete:function(){return rt&&rt(wt)}}):(L&&L.progress(1).kill(),L=0)},i&&(i.vars.lazy=!1,i._initted&&!wt.isReverted||!1!==i.vars.immediateRender&&!1!==e.immediateRender&&i.duration()&&i.render(0,!0,!0),wt.animation=i.pause(),i.scrollTrigger=wt,wt.scrubDuration(Z),F=0,X||(X=i.vars.id)),at&&(Yh(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in Wl.style&&Gl.set(gt?[Wl,jl]:dt,{scrollBehavior:"auto"}),_l.forEach(function(t){return jh(t)&&t.target===(gt?$l.scrollingElement||jl:dt)&&(t.smooth=!1)}),s=jh(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Gl.utils.snap(mc(t),e)}}(i):"labelsDirectional"===at.snapTo?(q=i,function(t,e){return gc(mc(q))(t,e.direction)}):!1!==at.directional?function(t,e){return gc(at.snapTo)(t,Ch()-At<500?0:e.direction)}:Gl.utils.snap(at.snapTo),B=at.duration||{min:.1,max:2},B=Yh(B)?Jl(B.min,B.max):Jl(B,B),V=Gl.delayedCall(at.delay||R/2||.1,function(){var t=Tt(),e=Ch()-At<500,n=r.tween;if(!(e||Math.abs(wt.getVelocity())<10)||n||th||Ct===t)wt.isActive&&Ct!==t&&V.restart(!0);else{var a,o,c=(t-l)/g,p=i&&!ft?i.totalProgress():c,u=e?0:(p-I)/(Ch()-Zl)*1e3||0,f=Gl.utils.clamp(-c,1-c,Jh(u/2)*u/.185),d=c+(!1===at.inertia?0:f),m=at,y=m.onStart,v=m.onInterrupt,_=m.onComplete;if(a=s(d,wt),Wh(a)||(a=d),o=Math.max(0,Math.round(l+a*g)),t<=h&&t>=l&&o!==t){if(n&&!n._initted&&n.data<=Jh(o-t))return;!1===at.inertia&&(f=a-c),r(o,{duration:B(Jh(.185*Math.max(Jh(d-p),Jh(a-p))/u/.05||0)),ease:at.ease||"power3",data:Jh(o-t),onInterrupt:function(){return V.restart(!0)&&v&&v(wt)},onComplete:function(){wt.update(),Ct=Tt(),i&&!ft&&(L?L.resetTo("totalProgress",a,i._tTime/i._tDur):i.progress(a)),F=I=i&&!ft?i.totalProgress():wt.progress,nt&&nt(wt),_&&_(wt)}},t,f*g,o-t-f*g),y&&y(wt,r.tween)}}}).pause()),X&&(kc[X]=wt),(G=(K=wt.trigger=Il(K||!0!==Q&&Q))&&K._gsap&&K._gsap.stRevert)&&(G=G(wt)),Q=!0===Q?K:Il(Q),$h(Y)&&(Y={targets:K,className:Y}),Q&&(!1===tt||tt===oc||(tt=!(!tt&&Q.parentNode&&Q.parentNode.style&&"flex"===pc(Q.parentNode).display)&&ac),wt.pin=Q,(n=Gl.core.getCache(Q)).spacer?y=n.pinState:(lt&&((lt=Il(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),n.spacerIsNative=!!lt,lt&&(n.spacerState=Qc(lt))),n.spacer=b=lt||$l.createElement("div"),b.classList.add("pin-spacer"),X&&b.classList.add("pin-spacer-"+X),n.pinState=y=Qc(Q)),!1!==e.force3D&&Gl.set(Q,{force3D:!0}),wt.spacer=b=n.spacer,D=pc(Q),C=D[tt+ut.os2],w=Gl.getProperty(Q),S=Gl.quickSetter(Q,ut.a,cc),Jc(Q,b,D),_=Qc(Q)),bt){d=Yh(bt)?uc(bt,xc):xc,u=Pc("scroller-start",X,dt,ut,d,0),f=Pc("scroller-end",X,dt,ut,d,0,u),x=u["offset"+ut.op.d2];var Mt=Il(Sl(dt,"content")||dt);c=this.markerStart=Pc("start",X,Mt,ut,d,x,0,ht),p=this.markerEnd=Pc("end",X,Mt,ut,d,x,0,ht),ht&&(N=Gl.quickSetter([c,p],ut.a,cc)),yt||bl.length&&!0===Sl(dt,"fixedMarkers")||($=pc(H=gt?Wl:dt).position,H.style.position="absolute"===$||"fixed"===$?$:"relative",Gl.set([u,f],{force3D:!0}),k=Gl.quickSetter(u,ut.a,cc),M=Gl.quickSetter(f,ut.a,cc))}if(ht){var Dt=ht.vars.onUpdate,Ft=ht.vars.onUpdateParams;ht.eventCallback("onUpdate",function(){wt.update(0,0,1),Dt&&Dt.apply(ht,Ft||[])})}if(wt.previous=function(){return Ac[Ac.indexOf(wt)-1]},wt.next=function(){return Ac[Ac.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var r=!1!==t||!wt.enabled,n=Ql;r!==wt.isReverted&&(r&&(O=Math.max(Tt(),wt.scroll.rec||0),kt=wt.progress,z=i&&i.progress()),c&&[c,p,u,f].forEach(function(t){return t.style.display=r?"none":"block"}),r&&(Ql=wt,wt.update(r)),!Q||ot&&wt.isActive||(r?function(t,e,i){Kc(i);var r=t._gsap;if(r.spacerIsNative)Kc(r.spacerState);else if(t._gsap.swappedIn){var n=e.parentNode;n&&(n.insertBefore(t,e),n.removeChild(e))}t._gsap.swappedIn=!1}(Q,b,y):Jc(Q,b,pc(Q),A)),r||wt.update(r),Ql=n,wt.isReverted=r)},wt.refresh=function(n,s,d,x){if(!Ql&&wt.enabled||s)if(Q&&n&&kh)vc(t,"scrollEnd",Rc);else{!wh&&St&&St(wt),Ql=wt,r.tween&&!d&&(r.tween.kill(),r.tween=0),L&&L.pause(),et&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(t){return t.vars.immediateRender&&t.render(0,!0,!0)})),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var S,C,k,M,D,F,I,R,B,N,G,q,H,$=Et(),j=Pt(),W=ht?ht.duration():qh(dt,ut),Y=g<=.01||!g,X=0,U=x||0,Z=Yh(d)?d.end:e.end,it=e.endTrigger||K,rt=Yh(d)?d.start:e.start||(0!==e.start&&K?Q?"0 0":"0 100%":0),nt=wt.pinnedContainer=e.pinnedContainer&&Il(e.pinnedContainer,wt),st=K&&Math.max(0,Ac.indexOf(wt))||0,at=st;for(bt&&Yh(d)&&(q=Gl.getProperty(u,ut.p),H=Gl.getProperty(f,ut.p));at-- >0;)(F=Ac[at]).end||F.refresh(0,1)||(Ql=wt),!(I=F.pin)||I!==K&&I!==Q&&I!==nt||F.isReverted||(N||(N=[]),N.unshift(F),F.revert(!0,!0)),F!==Ac[at]&&(st--,at--);for(jh(rt)&&(rt=rt(wt)),rt=Mh(rt,"start",wt),l=ep(rt,K,$,ut,Tt(),c,u,wt,j,xt,yt,W,ht,wt._startClamp&&"_startClamp")||(Q?-.001:0),jh(Z)&&(Z=Z(wt)),$h(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=($h(rt)?rt.split(" ")[0]:"")+Z:(X=Ec(Z.substr(2),$),Z=$h(rt)?rt:(ht?Gl.utils.mapRange(0,ht.duration(),ht.scrollTrigger.start,ht.scrollTrigger.end,l):l)+X,it=K)),Z=Mh(Z,"end",wt),h=Math.max(l,ep(Z||(it?"100% 0":W),it,$,ut,Tt()+X,p,f,wt,j,xt,yt,W,ht,wt._endClamp&&"_endClamp"))||-.001,X=0,at=st;at--;)(I=(F=Ac[at]).pin)&&F.start-F._pinPush<=l&&!ht&&F.end>0&&(S=F.end-(wt._startClamp?Math.max(0,F.start):F.start),(I===K&&F.start-F._pinPush<l||I===nt)&&isNaN(rt)&&(X+=S*(1-F.progress)),I===Q&&(U+=S));if(l+=X,h+=X,wt._startClamp&&(wt._startClamp+=X),wt._endClamp&&!wh&&(wt._endClamp=h||-.001,h=Math.min(h,qh(dt,ut))),g=h-l||(l-=.01)&&.001,Y&&(kt=Gl.utils.clamp(0,1,Gl.utils.normalize(l,h,O))),wt._pinPush=U,c&&X&&((S={})[ut.a]="+="+X,nt&&(S[ut.p]="-="+Tt()),Gl.set([c,p],S)),!Q||_h&&wt.end>=qh(dt,ut)){if(K&&Tt()&&!ht)for(C=K.parentNode;C&&C!==Wl;)C._pinOffset&&(l-=C._pinOffset,h-=C._pinOffset),C=C.parentNode}else S=pc(Q),M=ut===Fl,k=Tt(),E=parseFloat(w(ut.a))+U,!W&&h>1&&(G={style:G=(gt?$l.scrollingElement||jl:dt).style,value:G["overflow"+ut.a.toUpperCase()]},gt&&"scroll"!==pc(Wl)["overflow"+ut.a.toUpperCase()]&&(G.style["overflow"+ut.a.toUpperCase()]="scroll")),Jc(Q,b,S),_=Qc(Q),C=fc(Q,!0),R=yt&&Ll(dt,M?Dl:Fl)(),tt?((A=[tt+ut.os2,g+U+cc]).t=b,(at=tt===ac?dc(Q,ut)+g+U:0)&&(A.push(ut.d,at+cc),"auto"!==b.style.flexBasis&&(b.style.flexBasis=at+cc)),Kc(A),nt&&Ac.forEach(function(t){t.pin===nt&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),yt&&Tt(O)):(at=dc(Q,ut))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=at+cc),yt&&((D={top:C.top+(M?k-l:R)+cc,left:C.left+(M?R:k-l)+cc,boxSizing:"border-box",position:"fixed"})[tc]=D["max"+lc]=Math.ceil(C.width)+cc,D[ec]=D["max"+hc]=Math.ceil(C.height)+cc,D[oc]=D[oc+nc]=D[oc+ic]=D[oc+sc]=D[oc+rc]="0",D[ac]=S[ac],D[ac+nc]=S[ac+nc],D[ac+ic]=S[ac+ic],D[ac+sc]=S[ac+sc],D[ac+rc]=S[ac+rc],v=function(t,e,i){for(var r,n=[],s=t.length,a=i?8:0;a<s;a+=2)r=t[a],n.push(r,r in e?e[r]:t[a+1]);return n.t=t.t,n}(y,D,ot),wh&&Tt(0)),i?(B=i._initted,oh(1),i.render(i.duration(),!0,!0),P=w(ut.a)-E+g+U,T=Math.abs(g-P)>1,yt&&T&&v.splice(v.length-2,2),i.render(0,!0,!0),B||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),oh(0)):P=g,G&&(G.value?G.style["overflow"+ut.a.toUpperCase()]=G.value:G.style.removeProperty("overflow-"+ut.a));N&&N.forEach(function(t){return t.revert(!1,!0)}),wt.start=l,wt.end=h,a=o=wh?O:Tt(),ht||wh||(a<O&&Tt(O),wt.scroll.rec=0),wt.revert(!1,!0),At=Ch(),V&&(Ct=-1,V.restart(!0)),Ql=0,i&&ft&&(i._initted||z)&&i.progress()!==z&&i.progress(z||0,!0).render(i.time(),!0,!0),(Y||kt!==wt.progress||ht||et||i&&!i._initted)&&(i&&!ft&&(i._initted||kt||!1!==i.vars.immediateRender)&&i.totalProgress(ht&&l<-.001&&!kt?Gl.utils.normalize(l,h,0):kt,!0),wt.progress=Y||(a-l)/g===kt?0:kt),Q&&tt&&(b._pinOffset=Math.round(wt.progress*P)),L&&L.invalidate(),isNaN(q)||(q-=Gl.getProperty(u,ut.p),H-=Gl.getProperty(f,ut.p),sp(u,ut,q),sp(c,ut,q-(x||0)),sp(f,ut,H),sp(p,ut,H-(x||0))),Y&&!wh&&wt.update(),!J||wh||m||(m=!0,J(wt),m=!1)}},wt.getVelocity=function(){return(Tt()-o)/(Ch()-Zl)*1e3||0},wt.endAnimation=function(){Xh(wt.callbackAnimation),i&&(L?L.progress(1):i.paused()?ft||Xh(i,wt.direction<0,1):Xh(i,i.reversed()))},wt.labelToScroll=function(t){return i&&i.labels&&(l||wt.refresh()||l)+i.labels[t]/i.duration()*g||0},wt.getTrailing=function(t){var e=Ac.indexOf(wt),i=wt.direction>0?Ac.slice(0,e).reverse():Ac.slice(e+1);return($h(t)?i.filter(function(e){return e.vars.preventOverlaps===t}):i).filter(function(t){return wt.direction>0?t.end<=l:t.start>=h})},wt.update=function(t,e,n){if(!ht||n||t){var s,c,p,f,d,m,y,x=!0===wh?O:wt.scroll(),w=t?0:(x-l)/g,A=w<0?0:w>1?1:w||0,D=wt.progress;if(e&&(o=a,a=ht?Tt():x,at&&(I=F,F=i&&!ft?i.totalProgress():A)),it&&Q&&!Ql&&!Ph&&kh&&(!A&&l<x+(x-o)/(Ch()-Zl)*it?A=1e-4:1===A&&h>x+(x-o)/(Ch()-Zl)*it&&(A=.9999)),A!==D&&wt.enabled){if(f=(d=(s=wt.isActive=!!A&&A<1)!==(!!D&&D<1))||!!A!=!!D,wt.direction=A>D?1:-1,wt.progress=A,f&&!Ql&&(c=A&&!D?0:1===A?1:1===D?2:3,ft&&(p=!d&&"none"!==_t[c+1]&&_t[c+1]||_t[c],y=i&&("complete"===p||"reset"===p||p in i))),pt&&(d||y)&&(y||Z||!i)&&(jh(pt)?pt(wt):wt.getTrailing(pt).forEach(function(t){return t.endAnimation()})),ft||(!L||Ql||Ph?i&&i.totalProgress(A,!(!Ql||!At&&!t)):(L._dp._time-L._start!==L._time&&L.render(L._dp._time-L._start),L.resetTo?L.resetTo("totalProgress",A,i._tTime/i._tDur):(L.vars.totalProgress=A,L.invalidate().restart()))),Q)if(t&&tt&&(b.style[tt+ut.os2]=C),yt){if(f){if(m=!t&&A>D&&h+1>x&&x+1>=qh(dt,ut),ot)if(t||!s&&!m)rp(Q,b);else{var R=fc(Q,!0),B=x-l;rp(Q,Wl,R.top+(ut===Fl?B:0)+cc,R.left+(ut===Fl?0:B)+cc)}Kc(s||m?v:_),T&&A<1&&s||S(E+(1!==A||m?0:P))}}else S(Bh(E+P*A));at&&!r.tween&&!Ql&&!Ph&&V.restart(!0),Y&&(d||st&&A&&(A<1||!bh))&&Ul(Y.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](Y.className)}),W&&!ft&&!t&&W(wt),f&&!Ql?(ft&&(y&&("complete"===p?i.pause().totalProgress(1):"reset"===p?i.restart(!0).pause():"restart"===p?i.restart(!0):i[p]()),W&&W(wt)),!d&&bh||(U&&d&&Uh(wt,U),vt[c]&&Uh(wt,vt[c]),st&&(1===A?wt.kill(!1,1):vt[c]=0),d||vt[c=1===A?1:3]&&Uh(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(Wh(ct)?ct:2500)&&(Xh(wt.callbackAnimation),L?L.progress(1):Xh(i,"reverse"===p?1:!A,1))):ft&&W&&!Ql&&W(wt)}if(M){var z=ht?x/ht.duration()*(ht._caScrollDist||0):x;k(z+(u._isFlipped?1:0)),M(z)}N&&N(-x/ht.duration()*(ht._caScrollDist||0))}},wt.enable=function(e,i){wt.enabled||(wt.enabled=!0,vc(dt,"resize",Fc),gt||vc(dt,"scroll",Mc),St&&vc(t,"refreshInit",St),!1!==e&&(wt.progress=kt=0,a=o=Ct=Tt()),!1!==i&&wt.refresh())},wt.getTween=function(t){return t&&r?r.tween:L},wt.setPositions=function(t,e,i,r){if(ht){var n=ht.scrollTrigger,s=ht.duration(),a=n.end-n.start;t=n.start+a*t/s,e=n.start+a*e/s}wt.refresh(!1,!1,{start:Dh(t,i&&!!wt._startClamp),end:Dh(e,i&&!!wt._endClamp)},r),wt.update()},wt.adjustPinSpacing=function(t){if(A&&t){var e=A.indexOf(ut.d)+1;A[e]=parseFloat(A[e])+t+cc,A[1]=parseFloat(A[1])+t+cc,Kc(A)}},wt.disable=function(e,i){if(wt.enabled&&(!1!==e&&wt.revert(!0,!0),wt.enabled=wt.isActive=!1,i||L&&L.pause(),O=0,n&&(n.uncache=1),St&&_c(t,"refreshInit",St),V&&(V.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!gt)){for(var s=Ac.length;s--;)if(Ac[s].scroller===dt&&Ac[s]!==wt)return;_c(dt,"resize",Fc),gt||_c(dt,"scroll",Mc)}},wt.kill=function(t,r){wt.disable(t,r),L&&!r&&L.kill(),X&&delete kc[X];var s=Ac.indexOf(wt);s>=0&&Ac.splice(s,1),s===ih&&Wc>0&&ih--,s=0,Ac.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||wh||(wt.scroll.rec=0),i&&(i.scrollTrigger=null,t&&i.revert({kill:!1}),r||i.kill()),c&&[c,p,u,f].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Eh===wt&&(Eh=0),Q&&(n&&(n.uncache=1),s=0,Ac.forEach(function(t){return t.pin===Q&&s++}),s||(n.spacer=0)),e.onKill&&e.onKill(wt)},Ac.push(wt),wt.enable(!1,!1),G&&G(wt),i&&i.add&&!g){var It=wt.update;wt.update=function(){wt.update=It,_l.cache++,l||h||wt.refresh()},Gl.delayedCall(.01,wt.update),g=.01,l=h=0}else wt.refresh();Q&&function(){if(Sh!==Gc){var t=Sh=Gc;requestAnimationFrame(function(){return t===Gc&&$c(!0)})}}()}else this.update=this.refresh=this.kill=Rh},t.register=function(e){return ql||(Gl=e||Oh(),Vh()&&window.document&&t.enable(),ql=Th),ql},t.defaults=function(t){if(t)for(var e in t)wc[e]=t[e];return wc},t.disable=function(t,e){Th=0,Ac.forEach(function(i){return i[e?"kill":"disable"](t)}),_c(Hl,"wheel",Mc),_c($l,"scroll",Mc),clearInterval(Kl),_c($l,"touchcancel",Rh),_c(Wl,"touchstart",Rh),yc(_c,$l,"pointerdown,touchstart,mousedown",Ih),yc(_c,$l,"pointerup,touchend,mouseup",Lh),Xl.kill(),Hh(_c);for(var i=0;i<_l.length;i+=3)bc(_c,_l[i],_l[i+1]),bc(_c,_l[i],_l[i+2])},t.enable=function(){if(Hl=window,$l=document,jl=$l.documentElement,Wl=$l.body,Gl&&(Ul=Gl.utils.toArray,Jl=Gl.utils.clamp,dh=Gl.core.context||Rh,oh=Gl.core.suppressOverwrites||Rh,mh=Hl.history.scrollRestoration||"auto",jc=Hl.pageYOffset||0,Gl.core.globals("ScrollTrigger",t),Wl)){Th=1,(gh=document.createElement("div")).style.height="100vh",gh.style.position="absolute",qc(),Fh(),Nl.register(Gl),t.isTouch=Nl.isTouch,fh=Nl.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ch=1===Nl.isTouch,vc(Hl,"wheel",Mc),Yl=[Hl,$l,jl,Wl],Gl.matchMedia?(t.matchMedia=function(t){var e,i=Gl.matchMedia();for(e in t)i.add(e,t[e]);return i},Gl.addEventListener("matchMediaInit",function(){return zc()}),Gl.addEventListener("matchMediaRevert",function(){return Oc()}),Gl.addEventListener("matchMedia",function(){$c(0,1),Bc("matchMedia")}),Gl.matchMedia().add("(orientation: portrait)",function(){return Dc(),Dc})):console.warn("Requires GSAP 3.11.0 or later"),Dc(),vc($l,"scroll",Mc);var e,i,r=Wl.hasAttribute("style"),n=Wl.style,s=n.borderTopStyle,a=Gl.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",e=fc(Wl),Fl.m=Math.round(e.top+Fl.sc())||0,Dl.m=Math.round(e.left+Dl.sc())||0,s?n.borderTopStyle=s:n.removeProperty("border-top-style"),r||(Wl.setAttribute("style",""),Wl.removeAttribute("style")),Kl=setInterval(Tc,250),Gl.delayedCall(.5,function(){return Ph=0}),vc($l,"touchcancel",Rh),vc(Wl,"touchstart",Rh),yc(vc,$l,"pointerdown,touchstart,mousedown",Ih),yc(vc,$l,"pointerup,touchend,mouseup",Lh),eh=Gl.utils.checkPrefix("transform"),Uc.push(eh),ql=Ch(),Xl=Gl.delayedCall(.2,$c).pause(),sh=[$l,"visibilitychange",function(){var t=Hl.innerWidth,e=Hl.innerHeight;$l.hidden?(rh=t,nh=e):rh===t&&nh===e||Fc()},$l,"DOMContentLoaded",$c,Hl,"load",$c,Hl,"resize",Fc],Hh(vc),Ac.forEach(function(t){return t.enable(0,1)}),i=0;i<_l.length;i+=3)bc(_c,_l[i],_l[i+1]),bc(_c,_l[i],_l[i+2])}},t.config=function(e){"limitCallbacks"in e&&(bh=!!e.limitCallbacks);var i=e.syncInterval;i&&clearInterval(Kl)||(Kl=i)&&setInterval(Tc,i),"ignoreMobileResize"in e&&(ch=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Hh(_c)||Hh(vc,e.autoRefreshEvents||"none"),lh=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var i=Il(t),r=_l.indexOf(i),n=zh(i);~r&&_l.splice(r,n?6:2),e&&(n?bl.unshift(Hl,e,Wl,e,jl,e):bl.unshift(i,e))},t.clearMatchMedia=function(t){Ac.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,i){var r=($h(t)?Il(t):t).getBoundingClientRect(),n=r[i?tc:ec]*e||0;return i?r.right-n>0&&r.left+n<Hl.innerWidth:r.bottom-n>0&&r.top+n<Hl.innerHeight},t.positionInViewport=function(t,e,i){$h(t)&&(t=Il(t));var r=t.getBoundingClientRect(),n=r[i?tc:ec],s=null==e?n/2:e in Sc?Sc[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0;return i?(r.left+s)/Hl.innerWidth:(r.top+s)/Hl.innerHeight},t.killAll=function(t){if(Ac.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Ic.killAll||[];Ic={},e.forEach(function(t){return t()})}},t}();op.version="3.13.0",op.saveStyles=function(t){return t?Ul(t).forEach(function(t){if(t&&t.style){var e=Vc.indexOf(t);e>=0&&Vc.splice(e,5),Vc.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Gl.core.getCache(t),dh())}}):Vc},op.revert=function(t,e){return zc(!t,e)},op.create=function(t,e){return new op(t,e)},op.refresh=function(t){return t?Fc(!0):(ql||op.register())&&$c(!0)},op.update=function(t){return++_l.cache&&Yc(!0===t?2:0)},op.clearScrollMemory=Nc,op.maxScroll=function(t,e){return qh(t,e?Dl:Fl)},op.getScrollFunc=function(t,e){return Ll(Il(t),e?Dl:Fl)},op.getById=function(t){return kc[t]},op.getAll=function(){return Ac.filter(function(t){return"ScrollSmoother"!==t.vars.id})},op.isScrolling=function(){return!!kh},op.snapDirectional=gc,op.addEventListener=function(t,e){var i=Ic[t]||(Ic[t]=[]);~i.indexOf(e)||i.push(e)},op.removeEventListener=function(t,e){var i=Ic[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},op.batch=function(t,e){var i,r=[],n={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var i=[],r=[],n=Gl.delayedCall(s,function(){e(i,r),i=[],r=[]}).pause();return function(t){i.length||n.restart(!0),i.push(t.trigger),r.push(t),a<=i.length&&n.progress(1)}};for(i in e)n[i]="on"===i.substr(0,2)&&jh(e[i])&&"onRefreshInit"!==i?o(0,e[i]):e[i];return jh(a)&&(a=a(),vc(op,"refresh",function(){return a=e.batchMax()})),Ul(t).forEach(function(t){var e={};for(i in n)e[i]=n[i];e.trigger=t,r.push(op.create(e))}),r};
1var lp,hp=function(t,e,i,r){return e>r?t(r):e<0&&t(0),i>r?(r-e)/(i-e):i<0?e/(e-i):1},cp=function t(e,i){!0===i?e.style.removeProperty("touch-action"):e.style.touchAction=!0===i?"auto":i?"pan-"+i+(Nl.isTouch?" pinch-zoom":""):"none",e===jl&&t(Wl,i)},pp={auto:1,scroll:1},up=function(t){var e,i=t.event,r=t.target,n=t.axis,s=(i.changedTouches?i.changedTouches[0]:i).target,a=s._gsap||Gl.core.getCache(s),o=Ch();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==Wl&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!pp[(e=pc(s)).overflowY]&&!pp[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==r&&!zh(s)&&(pp[(e=pc(s)).overflowY]||pp[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===n)&&(i.stopPropagation(),i._gsapAllow=!0)},fp=function(t,e,i,r){return Nl.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:r=r&&up,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return i&&vc($l,Nl.eventTypes[0],mp,!1,!0)},onDisable:function(){return _c($l,Nl.eventTypes[0],mp,!0)}})},dp=/(input|label|select|textarea)/i,mp=function(t){var e=dp.test(t.target.tagName);(e||lp)&&(t._gsapAllow=!0,lp=e)},gp=function(t){Yh(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,i,r,n,s,a,o,l,h=t,c=h.normalizeScrollX,p=h.momentum,u=h.allowNestedScroll,f=h.onRelease,d=Il(t.target)||jl,m=Gl.core.globals().ScrollSmoother,g=m&&m.get(),y=fh&&(t.content&&Il(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),v=Ll(d,Fl),_=Ll(d,Dl),b=1,x=(Nl.isTouch&&Hl.visualVie
1wport?Hl.visualViewport.scale*Hl.visualViewport.width:Hl.outerWidth)/Hl.innerWidth,w=0,S=jh(p)?function(){return p(e)}:function(){return p||2.8},E=fp(d,t.type,!0,u),P=function(){return n=!1},C=Rh,A=Rh,k=function(){i=qh(d,Fl),A=Jl(fh?1:0,i),c&&(C=Jl(0,qh(d,Dl))),r=Gc},T=function(){y._gsap.y=Bh(parseFloat(y._gsap.y)+v.offset)+"px",y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(y._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},M=function(){k(),s.isActive()&&s.vars.scrollY>i&&(v()>i?s.progress(1)&&v(i):s.resetTo("scrollY",i))};return y&&Gl.set(y,{y:"+=0"}),t.ignoreCheck=function(t){return fh&&"touchmove"===t.type&&function(){if(n){requestAnimationFrame(P);var t=Bh(e.deltaY/2),i=A(v.v-t);if(y&&i!==v.v+v.offset){v.offset=i-v.v;var r=Bh((parseFloat(y&&y._gsap.y)||0)-v.offset);y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",y._gsap.y=r+"px",v.cacheID=_l.cache,Yc()}return!0}v.offset&&T(),n=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){n=!1;var t=b;
1b=Bh((Hl.visualViewport&&Hl.visualViewport.scale||1)/x),s.pause(),t!==b&&cp(d,b>1.01||!c&&"x"),a=_(),o=v(),k(),r=Gc},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&T(),e){_l.cache++;var r,n,a=S();c&&(n=(r=_())+.05*a*-t.velocityX/.227,a*=hp(_,r,n,qh(d,Dl)),s.vars.scrollX=C(n)),n=(r=v())+.05*a*-t.velocityY/.227,a*=hp(v,r,n,qh(d,Fl)),s.vars.scrollY=A(n),s.invalidate().duration(a).play(.01),(fh&&s.vars.scrollY>=i||r>=i-1)&&Gl.to({},{onUpdate:M,duration:a})}else l.restart(!0);f&&f(t)},t.onWheel=function(){s._ts&&s.pause(),Ch()-w>1e3&&(r=0,w=Ch())},t.onChange=function(t,e,i,n,s){if(Gc!==r&&k(),e&&c&&_(C(n[2]===e?a+(t.startX-t.x):_()+e-n[1])),i){v.offset&&T();var l=s[2]===i,h=l?o+t.startY-t.y:v()+i-s[1],p=A(h);l&&h!==p&&(o+=p-h),v(p)}(i||e)&&Yc()},t.onEnable=function(){cp(d,!c&&"x"),op.addEventListener("refresh",M),vc(Hl,"resize",M),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=_.smooth=!1),E.enable()},t.onDisable=function(){cp(d,!0),_c(Hl,"resize",M),op.removeEventListener("refresh",M),E.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Nl(t)).iOS=fh,fh&&!v()&&v(1),fh&&Gl.ticker.add(Rh),l=e._dc,s=Gl.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:np(v,v(),function(){return s.pause()})},onUpdate:Yc,onComplete:l.vars.onComplete}),e};op.sort=function(t){if(jh(t))return Ac.sort(t);var e=Hl.pageYOffset||0;return op.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Hl.innerHeight}),Ac.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},op.observe=function(t){return new Nl(t)},op.normalizeScroll=function(t){if(void 0===t)return hh;if(!0===t&&hh)return hh.enable();if(!1===t)return hh&&hh.kill(),void(hh=t);var e=t instanceof Nl?t:gp(t);return hh&&hh.target===e.target&&hh.kill(),zh(e.target)&&(hh=e),e},op.core={_getVelocityProp:Rl,_inputObserver:fp,_scrollers:_l,_proxies:bl,bridge:{ss:function(){kh||Bc("scrollStart"),kh=Ch()},ref:function(){return Ql}}},Oh()&&Gl.registerPlugin(op);i("../node_modules/flickity/dist/flickity.pkgd.js");var yp,vp=i("../node_modules/lity/dist/lity.js"),_p=i("../node_modules/lottie-web/build/player/lottie.js"),bp=function(){return bp=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},bp.apply(this,arguments)},xp=function(){function t(t,e,i){var r=this;this.endVal=e,this.options=i,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){r.startTime||(r.startTime=t);var e=t-r.startTime;r.remaining=r.duration-e,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(e,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(e,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(e/r.duration);var i=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=i?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),e<r.duration?r.rAF=requestAnimationFrame(r.count):null!==r.finalEndVal?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(t){var e,i,n,s,a=t<0?"-":"";e=Math.abs(t).toFixed(r.options.decimalPlaces);var o=(e+="").split(".");if(i=o[0],n=o.length>1?r.options.decimal+o[1]:"",r.options.useGrouping){s="";for(var l=3,h=0,c=0,p=i.length;c<p;++c)r.options.useIndianSeparators&&4===c&&(l=2,h=1),0!==c&&h%l==0&&(s=r.options.separator+s),h++,s=i[p-c-1]+s;i=s}return r.options.numerals&&r.options.numerals.length&&(i=i.replace(/[0-9]/g,function(t){return r.options.numerals[+t]}),n=n.replace(/[0-9]/g,function(t){return r.options.numerals[+t]})),a+r.options.prefix+i+n+r.options.suffix}
1,this.easeOutExpo=function(t,e,i,r){return i*(1-Math.pow(2,-10*t/r))*1024/1023+e},this.options=bp(bp({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof t?document.getElementById(t):t,e=e??this.parse(this.el.innerHTML),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return r.handleScroll(r)}),window.onscroll=function(){window.onScrollFns.forEach(function(t){return t()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(t){if(t&&window&&!t.once){var e=window.innerHeight+window.scrollY,i=t.el.getBoundingClientRect(),r=i.top+window.pageYOffset,n=i.top+i.height+window.pageYOffset;n<e&&n>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>n||r>e)&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var i=this.countDown?1:-1;this.endVal=t+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var i=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,i):"INPUT"===this.el.tagName?this.el.value=i:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=i:this.el.innerHTML=i}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t.prototype.parse=function(t){var e=function(t){return t.replace(/([.,'\xa0 ])/g,"\\$1")},i=e(this.options.separator),r=e(this.options.decimal),n=t.replace(new RegExp(i,"g"),"").replace(new RegExp(r,"g"),".");return parseFloat(n)},t}();(yp=function(t){for(var e in this.conf={domain:""},this.conf)t.hasOwnProperty(e)&&(this.conf[e]=t[e]);this.links=[],this.observer=null,this.init()}).prototype.init=function(){return this.setup_mutation_observer(),this},yp.prototype.sow=function(t,e){const i=this.conf.domain,r=t.flatMap(t=>{const r=[],n=t.match(/^(https?:\/\/)?(\/)?[\w\d\/\.-\?]+(\/)?$/),s=n?.[1];if(t="/"===t.charAt(t.length-1)?t.substring(0,t.length-1):t,s)r.push([`a[href='${t}']`,`a[href='${t}/']`,`a[href^='${t}?']`,`a[href^='${t}/?']`]);else{t="/"===t.charAt(0)?t.substring(1):t;const e=["","/","?","/?"];["",`https://${i}`,`http://${i}`].forEach(i=>
1{e.forEach(e=>{const n=i?`${i}/`:"/";r.push(`a[href${e.includes("?")?"^":""}='${n}${t}${e}']`)})})}return this.links.push({uri:t,type:e,selectors:r}),r});return this.sow_elements(r,e),this},yp.prototype.sow_elements=function(t,e,i){t.length&&(i||document).querySelectorAll(t.join(",")).forEach(t=>t.setAttribute("is_conv_type",e))},yp.prototype.setup_mutation_observer=function(){if("undefined"==typeof MutationObserver)return;const t=this;this.observer=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.length>0&&e.addedNodes.forEach(function(e){e.nodeType===Node.ELEMENT_NODE&&t.handle_DOM_change(e)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})},yp.prototype.handle_DOM_change=function(t){this.links.length>0&&this.links.forEach(function(e){this.sow_elements(e.selectors,e.type,t)}.bind(this))},yp.prototype.destroy=function(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.links=[],this},window.lSower=yp,function(){var t=function(t){for(var e in this.input=null,this.inputDisplay=null,this.slider=null,this.sliderWidth=0,this.sliderLeft=0,this.pointerWidth=0,this.pointerR=null,this.pointerL=null,this.activePointer=null,this.selected=null,this.scale=null,this.step=0,this.tipL=null,this.tipR=null,this.timeout=null,this.valRange=!1,this.values={start:null,end:null},this.conf={target:null,values:null,set:null,range:!1,width:null,scale:!0,labels:!0,tooltip:!0,step:null,disabled:!1,onChange:null},this.cls={container:"rs-container",background:"rs-bg",selected:"rs-selected",pointer:"rs-pointer",scale:"rs-scale",noscale:"rs-noscale",tip:"rs-tooltip"},this.conf)t.hasOwnProperty(e)&&(this.conf[e]=t[e]);this.init()};t.prototype.init=function(){return"object"==typeof this.conf.target?this.input=this.conf.target:this.input=document.getElementById(this.conf.target.replace("#","")),this.input?(this.inputDisplay=getComputedStyle(this.input,null).display,this.input.style.display="none",this.valRange=!(this.conf.values instanceof Array),this.createSlider()):console.log("Cannot find target element...")},t.prototype.createSlider=function(){return this.slider=e("div",this.cls.container),this.slider.innerHTML='<div class="rs-bg"></div>',this.selected=e("div",this.cls.selected),this.pointerL=e("div",this.cls.pointer,["dir","left"]),this.scale=e("div",this.cls.scale),this.conf.tooltip&&(this.tipL=e("div",this.cls.tip),this.tipR=e("div",this.cls.tip),this.pointerL.appendChild(this.tipL)),this.slider.appendChild(this.selected),this.slider.appendChild(this.scale),this.slider.appendChild(this.pointerL),this.conf.range&&(this.pointerR=e("div",this.cls.pointer,["dir","right"]),this.conf.tooltip&&this.pointerR.appendChild(this.tipR),this.slider.appendChild(this.pointerR)),this.input.parentNode.insertBefore(this.slider,this.input.nextSibling),this.conf.width&&(this.slider.style.width=parseInt(this.conf.width)+"px"),this.sliderLeft=this.slider.getBoundingClientRect().left,this.sliderWidth=this.slider.clientWidth,this.pointerWidth=this.pointerL.clientWidth,this.conf.scale||this.slider.classList.add(this.cls.noscale),this.setInitialValues()},t.prototype.setInitialValues=function(){if(this.disabled(this.conf.disabled),this.valRange&&(this.conf.values=r(this.conf)),this.values.start=0,this.values.end=this.conf.range?this.conf.values.length-1:0,this.conf.set&&this.conf.set.length&&n(this.conf)){var t=this.conf.set;!this.conf.range&&a(this.conf)?this.values.end=this.conf.values.indexOf(t[0]):(this.values.start=s(this.conf)?this.conf.values.indexOf(t[0]):0,this.values.end=a(this.conf)&&this.conf.set[1]?this.conf.values.indexOf(t[1]):0)}return this.createScale()},t.prototype.createScale=function(t){this.step=this.sliderWidth/(this.conf.values.length-1);for(var i=0,r=this.conf.values.length;i<r;i++){var n=e("span"),s=e("ins");n.appendChild(s),this.scale.appendChild(n),n.style.width=i===r-1?0:this.step+"px",this.conf.labels?s.innerHTML=this.conf.values[i]:0!==i&&i!==r-1||(s.innerHTML=this.conf.values[i]),s.style.marginLeft=s.clientWidth/2*-1+"px"}return this.addEvents()},t.prototype.updateScale=function(){this.step=this.sliderWidth/(this.conf.values.length-1);for(var t=this.slider.querySelectorAll("span"),e=0,i=t.length;e<i;e++)t[e].style.width=this.step+"px";return this.setValues()},t.prototype.addEvents=function(){var t=this.slider.querySelectorAll("."+this.cls.pointer),e=this.slider.querySelectorAll("span");i(document,"mousemove touchmove",this.move.bind(this)),i(document,"mouseup touchend touchcancel",this.drop.bind(this));for(var r=0,n=t.length;r<n;r++)i(t[r],"mousedown touchstart",this.drag.bind(this));for(r=0,n=e.length;r<n;r++)i(e[r],"click",this.onClickPiece.bind(this));return window.addEventListener("resize",this.onResize.bind(this)),this.setValues()},t.prototype.drag=function(t){if(t.preventDefault(),!this.conf.disabled){var e=t.target.getAttribute("data-dir");return"left"===e&&(this.activePointer=this.pointerL),"right"===e&&(this.activePointer=this.pointerR),this.slider.classList.add("sliding")}},t.prototype.move=function(t){if(this.activePointer&&!this.conf.disabled){var e=("touchmove"===t.type?t.touches[0].clientX:t.pageX)-this.sliderLeft-this.pointerWidth/2;return(e=Math.round(e/this.step))<=0&&(e=0),e>this.conf.values.length-1&&(e=this.conf.values.length-1),this.conf.range?(this.activePointer===this.pointerL&&(this.values.start=e),this.activePointer===this.pointerR&&(this.values.end=e)):this.values.end=e,this.setValues()}},t.prototype.drop=function(){this.activePointer=null},t.prototype.setValues=function(t,e){var i=this.conf.range?"start":"end";return t&&this.conf.values.indexOf(t)>-1&&(this.values[i]=this.conf.values.indexOf(t)),e&&this.conf.values.indexOf(e)>-1&&(this.values.end=this.conf.values.indexOf(e)),this.conf.range&&this.values.start>this.values.end&&(this.values.start=this.values.end),this.pointerL.style.left=this.values[i]*this.step-this.pointerWidth/2+"px",this.conf.range?(this.conf.tooltip&&(this.tipL.innerHTML=this.conf.values[this.values.start],this.tipR.innerHTML=this.conf.values[this.values.end]),this.input.value=this.conf.values[this.values.start]+","+this.conf.values[this.values.end],this.pointerR.style.left=this.values.end*this.step-this.pointerWidth/2+"px"):(this.conf.tooltip&&(this.tipL.innerHTML=this.conf.values[this.values.end]),this.input.value=this.conf.values[this.values.end]),this.values.end>this.conf.values.length-1&&(this.values.end=this.conf.values.length-1),this.values.start<0&&(this.values.start=0),this.selected.style.width=(this.values.end-this.values.start)*this.step+"px",this.selected.style.left=this.values.start*this.step+"px",this.onChange()},t.prototype.onClickPiece=function(t){if(!this.conf.disabled){var e=Math.round((t.clientX-this.sliderLeft)/this.step);return e>this.conf.values.length-1&&(e=this.conf.values.length-1),e<0&&(e=0),this.conf.range&&e-this.values.start<=this.values.end-e?this.values.start=e:this.values.end=e,this.slider.classList.remove("sliding"),this.setValues()}},t.prototype.onChange=function(){var t=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){if(t.conf.onChange&&"function"==typeof t.conf.onChange)return t.conf.onChange(t.input.value)},100)},t.prototype.onResize=function(){return this.sliderLeft=this.slider.getBoundingClientRect().left,this.sliderWidth=this.slider.clientWidth,this.updateScale()},t.prototype.disabled=function(t){this.conf.disabled=t,this.slider.classList[t?"add":"remove"]("disabled")},t.prototype.getValue=function(){return this.input.value},t.prototype.destroy=function(){this.input.style.display=this.inputDisplay,this.slider.remove()};
1var e=function(t,e,i){var r=document.createElement(t);return e&&(r.className=e),i&&2===i.length&&r.setAttribute("data-"+i[0],i[1]),r},i=function(t,e,i){for(var r=e.split(" "),n=0,s=r.length;n<s;n++)t.addEventListener(r[n],i)},r=function(t){var e=[],i=t.values.max-t.values.min;if(!t.step)return[t.values.min,t.values.max];for(var r=0,n=i/t.step;r<n;r++)e.push(t.values.min+r*t.step);return e.indexOf(t.values.max)<0&&e.push(t.values.max),e},n=function(t){return!(!t.set||t.set.length<1)||null},s=function(t){return!(t.values.indexOf(t.set[0])<0)||null},a=function(t){return!(t.set.length<2||t.values.indexOf(t.set[1])<0)||null};window.rSlider=t}(),window.safe=window.safe||{},window.safe_components=window.safe_components||{},window.lity=t=>{vp(t)},el.registerPlugin(op);const wp=t=>window.innerHeight*(t/100);function Sp(t,e=null,i={}){if(!t)return"";const r=new Date(t);if(isNaN(r.getTime()))return"";const n=new Intl.DateTimeFormat(void 0,{...i.weekday?{weekday:"long"}:{},year:"numeric",month:"long",day:"numeric"}),s=new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit"}),a=new Intl.DateTimeFormat(void 0,{hour:"numeric",timeZoneName:"short"});let o=`${n.format(r)}, ${s.format(r)}`;if(e){const t=new Date(e);isNaN(t.getTime())||(n.format(t)===n.format(r)?o+=`\u2013${s.format(t)}`:o+=` \u2013 ${n.format(t)}, ${s.format(t)}`)}const l=a.formatToParts(r).find(t=>"timeZoneName"===t.type);return l&&l.value&&(o+=` ${l.value}`),o}function Ep(t,e,i){t.classList.remove("text-white","text-dark"),t.classList.add(e),t.classList.remove("bg-light","bg-white","bg-white-300","bg-dark"),t.classList.add(i)}function Pp(t){return window.safe.blocks||(window.safe.blocks=el.utils.toArray(".safe-block",document)),t.classList.contains("safe-block")||(t=t.closest(".safe-block")),30-window.safe.blocks.indexOf(t)}function Cp(t){return t.split(".").map(t=>t.padStart(2,"0")).join("").padEnd(10,"0")}function Ap(t){let e=[t.substring(0,4),Number(t.substring(4,6)),Number(t.substring(6,8)),Number(t.substring(8,10))];return"0"==e.slice(-1)&&e.pop(),"0"==e.slice(-1)&&e.pop(),e.join(".")}function kp(t,e){const i=new URL(window.location);e.length||"number"==typeof e&&e>0?i.searchParams.set(t,e):i.searchParams.delete(t),history.pushState(null,"",i)}function Tp(t,e,i=null){let r=new URLSearchParams(window.location.search).get(t);if(!r)return e;if(i){if(Array.isArray(e)&&!r.split(",").every(t=>i.includes(t)))return e;if(!Array.isArray(e)&&!i.includes(r))return e}return Array.isArray(e)?r.includes(",")?r.split(","):[r]:r}function Mp(t){var e=Array.from(t.querySelectorAll(".photo"));e.forEach(t=>{let e=t.parentNode;e!==document.body&&e.parentNode.parentNode.insertBefore(t,e.parentNode)});var i=window.innerWidth<768?3:2;const r=Math.ceil(e.length/i);for(let n=0;n<i;n++)Dp(e.slice(n*r,(n+1)*r),t.querySelector(".wrapper-"+(n+1)+" .photos")),t.querySelector(".wrapper-"+(n+1)).setAttribute("style","height: "+e[0].offsetHeight+"px")}function Dp(t,e){if(t&&t.length)for(var i in t[0].parentNode.insertBefore(e.parentNode,t[0]),t)e.appendChild(t[i])}window.safe.formatLocalDateTime=Sp,window.safe_components.init_dropdown=function(t=[],e=null){return{options:t,selected:e||(t.length?t[0]:null)}},window.safe.tooltip=function(t={}){return{isVisible:!1,position:t.position||"top",trigger:t.trigger||"hover",maxWidth:t.maxWidth||"200px",get positionClasses(){const t={top:"bottom-full left-1/2 transform -translate-x-1/2 mb-2",bottom:"top-full left-1/2 transform -translate-x-1/2 mt-2",left:"right-full top-1/2 transform -translate-y-1/2 mr-2",right:"left-full top-1/2 transform -translate-y-1/2 ml-2"};return t[this.position]||t.top},get arrowClasses(){const t={top:"-bottom-1 left-1/2 transform -translate-x-1/2",bottom:"-top-1 left-1/2 transform -translate-x-1/2",left:"-right-1 top-1/2 transform -translate-y-1/2",right:"-left-1 top-1/2 transform -translate-y-1/2"};return t[this.position]||t.top},show(){this.isVisible=!0,this.$nextTick(()=>{this.adjustPosition()})},hide(){this.isVisible=!1},toggle(){this.isVisible?this.hide():this.show()},adjustPosition(){const t=this.$refs.tooltip,e=this.$refs.trigger;if(!t||!e)return;const i=t.getBoundingClientRect(),r=(e.getBoundingClientRect(),window.innerWidth),n=window.innerHeight;"top"===this.position&&i.top<0?this.position="bottom":"bottom"===this.position&&i.bottom>
1n?this.position="top":"left"===this.position&&i.left<0?this.position="right":"right"===this.position&&i.right>r&&(this.position="left")},init(){"click"===this.trigger&&document.addEventListener("click",t=>{this.$refs.container.contains(t.target)||this.hide()}),document.addEventListener("keydown",t=>{"Escape"===t.key&&this.isVisible&&this.hide()})}}},window.safe.global_page_animations=function(){return{init(){if(3!=SafeWP.blog_id){var t=this.$refs.container;let e=el.utils.toArray("main > .safe-block");e.forEach(function(i,r){var n=i.getAttribute("data-text-color"),s=i.getAttribute("data-bg-color");n&&s&&op.create({trigger:i,start:()=>(r>1&&e[r-1].classList.contains("wp-block-circle-colour-transition")?"top-="+wp(60)+"px":"top")+" bottom",end:()=>(i.classList.contains("wp-block-circle-colour-transition")?"bottom-="+wp(60)+"px":"bottom")+" bottom",invalidateOnRefresh:!0,onEnterBack:()=>{Ep(t,n,s)},onEnter:()=>{Ep(t,n,s)},refreshPriority:0})})}let e=el.utils.toArray(".highlighter",t);e.length&&e.forEach(function(t,e){el.to(t,{"--width":"100%",duration:1,ease:"ease-out",scrollTrigger:{trigger:t,start:()=>"top-=150% center",end:()=>"top+=150% center",invalidateOnRefresh:!0,scrub:.1,refreshPriority:-1}})});let i=document.querySelector(".scroll-up");i&&el.fromTo(i,{opacity:"0",visibility:"invisible"},{opacity:"100",visibility:"visible",duration:1,ease:"ease-out",scrollTrigger:{trigger:document.querySelector("body"),start:()=>"top+="+wp(110)+"px bottom",end:()=>"bottom bottom",invalidateOnRefresh:!0,refreshPriority:-1,scrub:0}})}}},window.safe.license_downloader=function(t){return{machineKey:t?.machineKey||null,requestId:t?.requestId||null,retryRate:t?.retryRate||5e3,serialNumber:t?.serialNumber||null,errorCode:null,licenseUrl:t?.url||null,get licenseAvailable(){return"string"==typeof this.licenseUrl&&this.licenseUrl.length>0},get licenseError(){return!1===this.licenseUrl||null!==this.errorCode},get serialIsHomeUse(){return"H"===this.serialNumber?.charAt(0)},get serialIsStudent(){return"S"===this.serialNumber?.charAt(0)},init(){if(this.licenseAvailable)return;const t=new URL(window.location);!t.searchParams.has("req")&&this.requestId&&(t.searchParams.set("req",this.requestId),history.replaceState(null,"",t)),this.pollForLicense()},async pollForLicense(){try{console.log("checking for license...");const t=await fetch(`/wp-json/safe/v1/license?machine_key=${this.machineKey}&serial_number=${this.serialNumber}&license_request_id=${this.requestId}`),e=await t.json();console.log(t),console.log(e);const i=e?.url,r=e?.errorCode;if("string"==typeof i)return this.licenseUrl=i;"number"==typeof r?this.errorCode=r:(await new Promise(t=>{setTimeout(()=>{t()},this.retryRate)}),this.pollForLicense())}catch(t){}}}},window.safe.change_log=function(t){return{data:t.posts,search:Tp("_keyword",""),product:Tp("_change_log_product",[]),change_type:Tp("_change_log_change_type",[]),version_start:"",version_end:"",version_range:Tp("_change_log_version",[]),range_slider:null,range_init:!1,current_page:Number(Tp("_page",1)),results_per_page:8,watch_variables(){this.$watch("search",t=>kp("_keyword",t)),this.$watch("product",t=>kp("_change_log_product",t)),this.$watch("change_type",t=>kp("_change_log_change_type",t)),this.$watch("current_page",t=>kp("_page",t)),this.$watch("search, product, change_type",()=>this.jump_to_first_page()),this.$watch("version_start, version_end",()=>{this.range_init&&this.jump_to_first_page(),this.update_version_range(),this.range_init=!0}),this.$watch("version_range",()=>{this.version_start=Ap(this.version_range[0]),this.version_end=Ap(this.version_range[1])})},scroll_to_top(){const t=document.querySelector(".change-log").getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:t,behavior:"smooth"}),op.refresh(!0)},clear_filters(){const t=this.$refs.container.querySelector("#version_slider"),e=t.dataset.range.split(",");this.search="",this.product=[],this.change_type=[],this.version_start=Ap(e[0]),this.version_end=Ap(t.dataset.current_version),this.range_slider.setValues(e[0],t.dataset.current_version),this.version_range=[e[0],t.dataset.current_version],this.scroll_to_top()},filter_changelog_entry(t){const e=this.search.toLowerCase();return t.summary.toLowerCase().includes(e)&&(!this.change_type.length||this.change_type.includes(t.change_type))},get filtered_data(){const t=Number(this.version_range[0]),e=Number(this.version_range[1]);return this.data.filter(i=>i.entries.some(t=>this.filter_changelog_entry(t))&&(!this.product.length||this.product.includes(i.meta.project_key))&&Number(i.meta.version)<=e&&Number(i.meta.version)>=t).map(t=>({...t,entries:t.entries.filter(t=>this.filter_changelog_entry(t))}))},get total_pages(){return Math.ceil(this.filtered_data.length/this.results_per_page)},get paginated_data(){const t=(this.current_page-1)*this.results_per_page,e=t+this.results_per_page;return this.filtered_data.slice(t,e)}
1,prev_page(){this.current_page>1&&(this.current_page--,this.scroll_to_top())},next_page(){this.current_page<this.total_pages&&(this.current_page++,this.scroll_to_top())},jump_to_page(t){this.current_page=t,this.scroll_to_top()},jump_to_first_page(){this.current_page=1,this.scroll_to_top()},update_version_range(){this.version_range[0]=Cp(this.version_start),this.version_range[1]=Cp(this.version_end),this.range_slider.setValues(this.version_range[0],this.version_range[1])},init(){const t=this.$refs.container.querySelector("#version_slider"),e=t.dataset.range.split(",");if(this.watch_variables(),this.version_range.length){const t=e.map(t=>Number(t)).sort((t,e)=>t-e),i=Number(this.version_range[0]),r=t.find(t=>t>=i)||t[0],n=Number(this.version_range[1]),s=t.reverse().find(t=>t<=n)||t[t.length-1];this.version_range=[String(r),String(s)]}else this.version_range=[e[0],t.dataset.current_version];op.config({syncInterval:999999999}),this.range_slider=new rSlider({target:"#version_slider",values:e,set:this.version_range,range:!0,tooltip:!1,scale:!1,labels:!1,onChange:t=>{this.version_range=[t.split(",")[0],t.split(",")[1]],kp("_change_log_version",[t.split(",")[0],t.split(",")[1]])}})}}},window.safe.careers=function(t){const e={CAN:"Canada",USA:"United States",EU:"Europe"};return{jobs:t,regions:e,search:Tp("_keyword",""),filter_region:Tp("_region",[],Object.keys(e)),get search_string(){return this.search.toLowerCase()},get is_filtering(){return this.search.length||this.filter_region.length},get filtered_jobs(){const t=this.jobs.filter(t=>Object.values(t).some(t=>("string"==typeof t?t:JSON.stringify(t)).toLowerCase().includes(this.search_string)));return this.filter_region.length?t.filter(t=>t.countries.some(t=>this.filter_region.includes(t.code))):t},init(){this.is_filtering&&!location.hash&&setTimeout(()=>{this.scroll_to_job_postings()},500),this.$watch("filter_region",t=>kp("_region",t))},scroll_to_job_postings(){const t=document.querySelector("#jobs_anchor").getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:t,behavior:"smooth"})}}},window.safe.certified_user_archive=function(t){return{data:t,search:Tp("_keyword",""),filter_certification_type:Tp("_certification",[]),current_page:Number(Tp("_page",1)),results_per_page:25,sorting:{default:"name",column:Tp("_sortby",""),direction:Tp("_sort","")},get search_string(){return this.search.toLowerCase()},get result_count_string(){const t=this.filtered_users.length,e=t<=this.results_per_page?t:(this.current_page-1)*this.results_per_page+1,i=this.current_page*this.results_per_page>t?t:this.current_page*this.results_per_page;if(t<1)return"";const r=t>this.results_per_page?`- ${i} of ${t}`:"";return`${this.is_filtering&&t<this.results_per_page?"":"Showing"} ${e} ${r} ${this.is_filtering?"result"+(t>1?"s":""):""}`},get is_filtering(){return this.search.length||this.filter_certification_type.length},get filtered_users(){const t=this.data.users.filter(t=>Object.keys(t).some(e=>"certificates"===e?t.certificates.some(t=>t.class_name.toLowerCase().includes(this.search_string)):"string"==typeof t[e]?t[e].toLowerCase().includes(this.search_string):t[e].includes(this.search_string)));return this.filter_certification_type.length?t.filter(t=>t.certificates.some(t=>this.filter_certification_type.includes(t.class_name))):t},get sorted_users(){return this.filtered_users.sort((t,e)=>{const i=t[this.sorting.column],r=e[this.sorting.column];return i<r?"desc"===this.sorting.direction?1:-1:i>r?"desc"===this.sorting.direction?-1:1:0})},init(){this.$watch("search",t=>kp("_keyword",t)),this.$watch("filter_certification_type",t=>kp("_certification",t)),this.$watch("current_page",t=>kp("_page",t)),this.$watch("sorting.column",t=>kp("_sortby",t)),this.$watch("sorting.direction",t=>kp("_sort",t)),this.$watch("search, filter_certification_type",()=>this.jump_to_first_page())},toggle_sorting(t){if("desc"===this.sorting.direction)return this.sorting.column="",void(this.sorting.direction="");this.sorting.column=t,this.sorting.direction="asc"===this.sorting.direction?"desc":"asc"},get total_pages(){return Math.ceil(this.sorted_users.length/this.results_per_page)},get paginated_data(){const t=(this.current_page-1)*this.results_per_page,e=t+this.results_per_page;return this.sorted_users.slice(t,e)}
1,prev_page(){this.current_page>1&&(this.current_page--,this.scroll_to_top())},next_page(){this.current_page<this.total_pages&&(this.current_page++,this.scroll_to_top())},jump_to_page(t){this.current_page=t,this.scroll_to_top()},jump_to_first_page(){this.current_page=1,this.scroll_to_top()},scroll_to_top(){const t=document.querySelector("#certified-users").getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:t,behavior:"smooth"})}}},window.safe.download_picker=function(t,e){return{release:"2024.0",releases:[],show_releases:!1,os:"windows",operating_systems:[],platform:"win64",platforms:[],downloads:[],form_change_log:"",form_documentation_url:"",form_download:{},flow_change_log:"",flow_documentation_url:"",flow_download:{},flow_offline_docs:"",grid_download:{},engine_download:{},flexnet_windows_download:[],flexnet_mac_download:[],flexnet_linux_download:[],remote_engine_download:{},docker_download:{},current_release:{},selected_lang_docs:"en",selected_lang_pack:null,selected_grid_download:null,language_labels:{en:"English",fr:"French",de:"German",nl:"Dutch",hi:"Hindi",ja:"Japanese",zh:"Simplified Chinese",pt:"Brazilian Portuguese",es:"Spanish"},empty_download:{release_type:"",release_name:"",os_key:"",os_name:"",platform_key:"",platform_name:"",product_key:"",product_name:"",full_version:"",release_date:"",build:0,url:""},version_color:"bg-green text-black",filtering:!1,get grid_downloads(){const e=[],i=t.find(t=>t.release_name===this.current_release.release_name&&"grids"===t.product_key),r=t.find(t=>t.release_name===this.current_release.release_name&&t.product_key.startsWith("grids_exe"));return r?.url&&e.push({type:"exe",label:"Windows",url:r.url,build:r.build}),i?.url&&e.push({type:"zip",label:"All Other Platforms",url:i.url,build:i.build}),e},get current_grid_download_url(){return this.selected_grid_download?this.grid_downloads.find(t=>t.type===this.selected_grid_download)?.url||"":this.grid_downloads[0]?.url||""},get current_grid_download_build(){return this.selected_grid_download?this.grid_downloads.find(t=>t.type===this.selected_grid_download)?.build||0:this.grid_downloads[0]?.build||0},get current_offline_doc_url(){return this.offline_docs.find(t=>t.code===this.selected_lang_docs)?.url},get current_lang_pack_url(){const[t,e]=this.selected_lang_pack.split("-");return t&&e&&this.language_packs[t]?.find(i=>i.url.includes(t)&&i.url.includes(`${e}-language-pack`))?.url||""},get language_packs(){const e=t.filter(t=>t.release_name===this.current_release.release_name&&t.product_key.startsWith("lang_pack_")).map(t=>{const e=t.product_key.split("_")?.[3]||"en";return{code:e,product:t.product_key.split("_")?.[2]||"form",label:this.language_labels[e],url:t.url}}),i=(t,e)=>(t.label||"").localeCompare(e.label||"");return{form:e.filter(t=>"form"===t.product).sort(i),flow:e.filter(t=>"flow"===t.product).sort(i)}},get offline_docs(){const e=t.filter(t=>t.release_name===this.current_release.release_name&&t.product_key.startsWith("offline_docs")).reduce((t,e)=>{const i=t.get(e.product_key);return(!i||e.build>i.build)&&t.set(e.product_key,e),t},new Map).values();return Array.from(e).map(t=>{const e=t.product_key.split("_")?.[3]||"en";return{code:e,label:this.language_labels[e],url:t.url}})},set_browser_url(){let t="#beta";"beta"!=this.current_release.release_type&&(t="#v"+this.current_release.release_name),history.pushState?history.pushState(null,null,t):location.hash=t},get_unique_array:(t,e,i=!0)=>Array.from(t.reduce((t,r)=>{let n=e.map(t=>[r[t],typeof r[t]]).flat().join("-");return i&&t.has(n)?t:t.set(n,r)},new Map).values()),get_product_change_log(t){const e="/changelog/",i=new Map;switch(t){case"desktop":case"form":i.set("_change_log_product","FMEFORM");break;case"server":case"flow":i.set("_change_log_product","FMEFLOW");break;default:return e}const r=this.releases.slice(-1)[0].full_version.split(".")[0];const n=this.current_release.full_version;i.set("_change_log_version",[Cp(r),Cp(n)].join("%2C"));const s="?"+Array.from(i).map(([t,e])=>`${t}=${e}`).join("&");return e.concat(s)},get_product_docs(t){const[e,i]=this.current_release.full_version.split(".");return`https://docs.safe.com/fme/${e}.${i}/html/${(()=>this.current_release.build<23e3?["desktop","form"].includes(t)?"FME_Desktop_Documentation/FME_Help_Index.htm":"FME_Server_Documentation/Home.htm":["desktop","form"].includes(t)?"FME-Form-Documentation/FME_Help_Index.htm":"FME-Flow/Home.htm")()}`},get_product_download(t){let e=this.downloads.find(e=>e.product_key==t);return e||(e=this.empty_download),e},filter_downloads(){if(!this.filtering){this.filtering=!0,this.operating_systems=t.filter(t=>t.release_name==this.current_release.release_name&&"N/A"!=t.os_key),this.operating_systems=this.get_unique_array(this.operating_systems,["os_key"],!0),this.operating_systems.push({os_key:"kubernetes",os_name:"Kubernetes",platform_key:"kubernetes"}),this.operating_systems&&!this.operating_systems.find(t=>t.os_key==this.os)&&(this.os=this.operating_systems[0].os_key),this.platforms=t.filter(t=>t.release_name==this.current_release.release_name&&t.os_key==this.os),this.platforms=this.get_unique_array(this.platforms,["platform_key"],!0),this.platforms&&!this.platforms.find(t=>t.platform_key==this.platform)&&this.platforms[0]&&(this.platform=this.platforms[0].platform_key),this.downloads=t.filter(t=>t.release_name==this.current_release.release_name&&t.os_key==this.os&&t.platform_key==this.platform),this.form_download=this.get_product_download("desktop"),this.flow_download=this.get_product_download("server"),this.form_documentation_url=this.get_product_docs("desktop"),this.flow_documentation_url=this.get_product_docs("server"),this.form_change_log=this.get_product_change_log("desktop"),this.flow_change_log=this.get_product_change_log("server"),this.engine_download=this.get_product_download("engine"),this.remote_engine_download=this.get_product_download("engine_remote");let e=t.find(t=>t.release_name==this.current_release.release_name&&"docker"==t.os_key);this.docker_download=e||this.empty_download,this.filtering=!1}},init(){this.releases=this.get_unique_array(t,["full_version"],!0);let i=this.releases[0],r="";if(window.location.hash){var n=window.location.hash.replace("#","").replace("v","");if("beta"==n){let t=this.releases.find(t=>"beta"==t.release_type);t&&(r=t)}r||(r=this.releases.find(t=>t.release_name==n)),r&&(i=r)}this.release=i.full_version;let s=window.navigator.userAgent.toLowerCase();const a=new URLSearchParams(window.location.search);a.has("os")&&(s=a.get("os").toLowerCase()),-1!=s.indexOf("linux")?(this.os="linux",this.platform="linux"):-1!=s.indexOf("docker")?(this.os="docker",this.platform="docker"):-1!=s.indexOf("kubernetes")?(this.os="kubernetes",this.platform="kubernetes"):(this.os="windows",this.platform="win64"),this.current_release=i,this.filter_downloads(),this.update_chip_colour(),this.grid_download=t.find(t=>"grids"==t.product_key),this.selected_grid_download=this.grid_downloads[0]?.type||null,this.flexnet_windows_download=e.find(t=>t.key.includes("flexnet_windows")),this.flexnet_mac_download=e.find(t=>t.key.includes("flexnet_macos")),this.flexnet_linux_download=e.find(t=>t.key.includes("flexnet_linux"));let o=document.querySelector('a[href="#beta"]');o&&o.addEventListener("click",e=>{e.preventDefault();let i=t.find(t=>"beta"==t.release_type);if(i){this.release=i.full_version;const t=document.querySelector(".wp-block-f-m-e-downloads").getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:t,behavior:"smooth"})}}),this.$watch("release",e=>{this.show_releases=!1,this.current_release=t.find(function(t){return t.full_version==e}),this.update_chip_colour(),this.filter_downloads(),this.set_browser_url(),"linux"===this.os&&this.set_default_linux_platform(),this.selected_lang_docs="en",this.selected_grid_download=this.grid_downloads[0]?.type||null}),this.$watch("os",t=>{"kubernetes"!=this.os&&"docker"!=this.os?(this.filter_downloads(),"linux"===this.os&&this.set_default_linux_platform()):(this.form_download={},this.flow_download={},this.engine_download={},this.remote_engine_download={}),"windows"===t&&this.grid_downloads.some(t=>"exe"===t.type)?this.selected_grid_download="exe":this.grid_downloads.some(t=>"zip"===t.type)?this.selected_grid_download="zip":this.selected_grid_download=null}),this.$watch("platform",t=>{this.filter_downloads()}),this.$watch("selected_lang_docs, selected_lang_pack",()=>this.filter_downloads())},update_chip_colour(){"beta"==this.current_release.release_type?this.version_color="bg-purple text-white":"past"==this.current_release.release_type?this.version_color="bg-white-700 text-black-200":this.version_color="bg-green text-black"},set_default_linux_platform(){const t=this.releases.find(t=>t.release_name===this.current_release.release_name)?.rec_linux_distro,e=this.platforms.find(e=>e.platform_name===t);e&&(this.platform=e.platform_key)}}},window.safe.circle_colour_transition=function(){return{init(){el.timeline({ease:Oa.easeOut,scrollTrigger:{trigger:this.$refs.container.closest(".safe-block"),start:()=>"top top",end:()=>"+=150% top",scrub:.1,pin:this.$refs.container,refreshPriority:Pp(this.$refs.container),invalidateOnRefresh:!0}}).to(this.$refs.container,{"--masksize":"100%",duration:1},0)}}},window.safe.video_cursor=function(){return{init(){var t=this.$refs.container,e=t.querySelector(".cursor");t.addEventListener("mousemove",i=>{if(window.innerWidth>960){var r=t.getBoundingClientRect();e.style.transform="translate("+(i.clientX-r.left-e.clientHeight/2)+"px, "+(i.clientY-r.top-e.clientHeight/2)+"px)"}}),t.addEventListener("mouseenter",()=>{window.innerWidth>960&&(e.style.opacity=1)}),t.addEventListener("mouseleave",()=>{window.innerWidth>960&&(e.style.opacity=0)})}}},window.safe.circle_cursor_follower=function(t=1,e=!0,i="",r=0){return{init(){var n=this.$refs.container;let s=i?document.querySelector(i):n;var a=el.quickSetter(n,"--followerX","px"),o=el.quickSetter(n,"--followerY","px"),l=el.quickSetter(n,"--follower2X","px"),h=el.quickSetter(n,"--follower2Y","px"),c={x:0,y:0,offsetX:0,offsetY:0,size:0},p={x:c.x,y:c.y},u=!1,f=n.getBoundingClientRect();n.classList.add("followers-"+t),s.addEventListener("mousemove",t=>{p.x=t.x,p.y=t.y}),s.addEventListener("mouseenter",()=>{if(f=n.getBoundingClientRect(),c.size=r>0?n.offsetHeight*r:e&&1==t?1.25*n.offsetHeight:2*n.offsetHeight,e&&1==t){let t=n.parentNode.querySelector(".mask");t&&t.classList.remove("invisible")}el.to(n,{"--followerWidth":c.size+"px","--followerMargin":0,duration:.35,ease:Oa.easeInOut}),u=!0}),s.addEventListener("mouseleave",()=>{u=!1,window.innerWidth>768&&el.to(n,{"--followerWidth":0,"--followerMargin":c.size/2+"px",duration:.35,ease:Oa.easeInOut})}),el.ticker.add(()=>
1{if(u){const i=1-Math.pow(.9,el.ticker.deltaRatio());if(e?(c.x+=(p.x-f.left-c.x)*i,c.y+=(p.y-f.top-c.y)*i):(c.x+=(p.x-f.left-c.x-.5*c.size)*i,c.y+=(p.y-f.top-c.y-.5*c.size)*i),2==t){let t=f.width/2-.5*c.size,e=f.height/2-.5*c.size;l(t-(c.x-t)),h(e-(c.y-e))}a(c.x),o(c.y)}})}}},window.safe.circle_masked_block=function(t=!1){return{init(){var e=this.$refs.container,i=e.closest(".safe-block");let r=e.closest(".safe-block").querySelector(".masked-content"),n=r.cloneNode(!0);n.classList.add("text-dark"==i.dataset.textColor?"text-white":"text-dark");let s=r.getAttribute("mask-bg");s&&(n.style.backgroundImage="url("+s+")",n.style.backgroundSize="cover",n.style.zIndex="1"),e.appendChild(n);var a={x:50,y:50,offsetX:0,offsetY:0},o={x:a.x,y:a.y},l=!1,h=el.quickSetter(e,"--circle1left","%"),c=el.quickSetter(e,"--circle1top","%"),p=el.quickSetter(e,"--circle2left","%"),u=el.quickSetter(e,"--circle2top","%");if(el.to(e,{"--circle1size":"0.1px","--circle2size":"0.1px",duration:0}),h(.1),p(.1),c(.1),u(.1),el.utils.toArray("a",n).forEach(function(t,e){t.addEventListener("mouseenter",()=>{r.querySelector('a[href="'+t.href+'"]').classList.add("hovered")}),t.addEventListener("mouseleave",()=>{r.querySelector('a[href="'+t.href+'"]').classList.remove("hovered")})}),t||window.innerWidth<768){var f=window.innerWidth<768?90:133;el.to(e,{"--circle1size":f+"px","--circle2size":f+"px",duration:.5,ease:Oa.easeInOut}),el.fromTo(e,{"--circle1left":f+"px"},{"--circle1left":e.offsetWidth-f+"px",duration:7,repeat:-1,yoyo:!0,ease:"none"}),el.fromTo(e,{"--circle1top":f+"px"},{"--circle1top":e.offsetHeight-f+"px",duration:10,repeat:-1,yoyo:!0,ease:"none"}),el.fromTo(e,{"--circle2left":e.offsetWidth-f+"px"},{"--circle2left":f+"px",duration:11,repeat:-1,yoyo:!0,ease:"none"}),el.fromTo(e,{"--circle2top":e.offsetHeight-f+"px"},{"--circle2top":f+"px",duration:6,repeat:-1,yoyo:!0,ease:"none"})}else t||(e.addEventListener("mousemove",t=>{o.x=t.x,o.y=t.y}),e.addEventListener("mouseenter",t=>{l=!0;var i=window.innerWidth<768?90:133;el.to(e,{"--circle1size":i,"--circle2size":i,duration:.5,ease:Oa.easeInOut})}),e.addEventListener("mouseleave",t=>{l=!1,el.to(e,{"--circle1size":0,"--circle2size":0,duration:.5,ease:Oa.easeInOut})}),el.ticker.add(()=>{if(l){const t=1-Math.pow(.96,el.ticker.deltaRatio());a.x+=(o.x-a.x)*t,a.y+=(o.y-a.y)*t,a.offsetX=a.x/e.offsetWidth*100,a.offsetY=a.y/e.offsetHeight*100,a.offsetX=a.offsetX.toFixed(2),a.offsetY=a.offsetY.toFixed(2),h(a.offsetX),p(100-a.offsetX),c(a.offsetY),u(100-a.offsetY)}}))}}},window.safe.growing_circle=function(){return{init(){el.to(this.$refs.container.querySelectorAll(".growing-circle"),{scale:"1",ease:Oa.easeInOut,duration:1.5,scrollTrigger:{trigger:this.$refs.container,start:()=>"center+=20% bottom",end:()=>"center+=120% bottom",scrub:.2}}
1)}}},window.safe.scrolling_features=function(){return{init(){var t=this.$refs.container;let e=el.matchMedia();var i=el.utils.toArray(".item",t);e.add("(min-width: 960px)",()=>{i.forEach(function(e,r){r!=i.length-1&&el.timeline({ease:Oa.easeInOut,scrollTrigger:{trigger:e,start:()=>"center center",end:()=>"+=120% center",pin:e,pinSpacing:!1,id:e.id+"_pinning",refreshPriority:Pp(t),immediateRender:!1,scrub:.1,anticipatePin:!0}}).to(e,{zIndex:0,autoAlpha:0,yPercent:-20,scale:.8},.2)})})}}},window.safe.pinned_side_nav=function(){return{init(){let t=this.$refs.container,e=el.utils.toArray(".block-container-wrap > .safe-block:not(.wp-block-divider)",t),i=t.querySelector(".marker"),r=el.utils.toArray(".side-nav a",t);t.querySelector(".track").style.height=Array.from(document.querySelectorAll(".side-nav a")).map(t=>t.clientHeight).reduce((t,e)=>t+e,0)-12+"px",r.forEach(function(t,e){t.addEventListener("click",function(e){e.preventDefault();let i=document.querySelector(t.getAttribute("href"));window.innerWidth<=1100?window.scrollTo({behavior:"smooth",top:i.getBoundingClientRect().top+window.scrollY-140}):i.offsetHeight>.6*window.innerHeight?window.scrollTo({behavior:"smooth",top:i.getBoundingClientRect().top+window.scrollY-20}):i.scrollIntoView({behavior:"smooth",block:"center"})})}),e.length&&e.forEach(function(e,r){op.create({trigger:e,start:()=>"top center",end:()=>"bottom center",onToggle:r=>{if(r.isActive){let r=t.querySelectorAll(".side-nav a");r&&r.forEach(t=>{t.classList.remove("active"),t.setAttribute("aria-current",!1)});let n=t.querySelector('.side-nav a[href="#'+e.id+'"]');n&&(i.style.maxHeight=n.offsetHeight+"px",i.style.top=n.offsetTop+"px",n.classList.add("active"),n.setAttribute("aria-current",!0),n.closest(".mobile-nav-scroller").scrollTo({left:n.offsetLeft-17,top:0,behavior:"smooth"}))}}})})}}},window.safe.pinned_toc=function(){return{init(){let t=this.$refs.container,e=el.utils.toArray(".toc a",t),i=t.querySelector(".marker");t.querySelector(".track").style.height=Array.from(document.querySelectorAll(".toc a")).map(t=>t.clientHeight).reduce((t,e)=>t+e,0)-12+"px",e.length&&e.forEach(function(e,r){console.log(e,t.querySelector(e.getAttribute("href"))),e.addEventListener("click",function(t){t.preventDefault(),document.querySelector(e.getAttribute("href")).scrollIntoView({behavior:"smooth",block:"center"})}),op.create({trigger:t.querySelector(e.getAttribute("href")),start:()=>"top-=36 center",end:()=>"bottom center",onToggle:r=>{if(r.isActive){let r=t.querySelector(".toc a.active");r&&r.classList.remove("active"),i.style.maxHeight=e.offsetHeight+"px",i.style.top=e.offsetTop+"px",e.classList.add("active"),e.closest(".mobile-nav-scroller").scrollTo({left:e.offsetLeft-17,top:0,behavior:"smooth"})}}})})}}},window.safe.block_tabs=function(t=!1,e="fade-in-up",i=!0){function r(t,e){let i=e.querySelector(".block-inner");i&&(t.style.height=i.offsetHeight+"px")}return{init(){this.$refs.container;let n=el.utils.toArray(".tab",this.$refs.container),s=this.$refs.container.querySelector(".tab-mobile-nav"),a=el.utils.toArray(".tab-content-wrap > .safe-block, .tab-content-container > .safe-block",this.$refs.container);var o=this.$refs.container.querySelector(".tab-content-wrap");if(n.length&&a.length){if(a.forEach(function(t,i){t.classList.add("pointer-events-none","tab-content",e,"!py-0"),t.setAttribute("role","tabpanel"),n[i].setAttribute("aria-controls","panel"+n[i].dataset.id),t.setAttribute("id","panel"+n[i].dataset.id),t.setAttribute("aria-labelledby","tab"+n[i].dataset.id)}),a[0].setAttribute("aria-selected",!0),n[0].setAttribute("aria-selected",!0),n.forEac
1h(function(e,l){e.addEventListener("click",function(h){e.getAttribute("data-anchor")&&(i&&history.replaceState(null,"",e.dataset.anchor),s&&s.querySelector('option[value="'+e.dataset.anchor+'"]').setAttribute("selected",!0)),a.forEach(function(t,e){t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")}),n.forEach(function(t,e){t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1")}),a[l].setAttribute("aria-selected",!0),a[l].setAttribute("aria-hidden","false"),a[l].setAttribute("tabindex","0"),e.setAttribute("aria-selected",!0),e.setAttribute("tabindex","0"),a[l].querySelectorAll("br").forEach(function(t){t.setAttribute("aria-hidden","true")}),t&&(r(o,a[l]),setTimeout(()=>{op.refresh()},500))})}),s&&s.addEventListener("change",function(t){let e=document.querySelector('.tab[data-anchor="'+t.target.value+'"]');e&&e.click()}),window.location.hash&&setTimeout(function(){let t=document.querySelector('.tab[data-anchor="'+window.location.hash+'"]');t&&(t.click(),s&&s.querySelector('option[value="'+window.location.hash+'"]').setAttribute("selected",!0),h.scrollIntoView({behavior:"smooth"}))},400),t){let t=new ResizeObserver(function(){let t=o.querySelector('.safe-block[aria-selected="true"]');t&&r(o,t)});a.forEach(function(e){let i=e.querySelector(".block-inner");i&&t.observe(i)}),r(o,a[0])}let l=this.$refs.container.querySelector(".tabs"),h=this.$refs.container;l.setAttribute("style","max-width: 50px"),l.setAttribute("style","max-width: "+h.parentElement.offsetWidth+"px"),window.addEventListener("resize",function(t){l.setAttribute("style","max-width: 50px"),l.setAttribute("style","max-width: "+h.parentElement.offsetWidth+"px")})}}}},window.safe.talent_map=function(){return{init(){el.from(this.$refs.container.querySelectorAll(".talent-map circle"),{r:0,ease:za.easeInOut,duration:.75,stagger:{amount:1},scrollTrigger:{trigger:this.$refs.container.querySelector(".talent-map"),start:()=>"center+=20% bottom",end:()=>"bottom bottom",scrub:.2}}
1)}}},window.safe.people_hero=function(){return{init(){let t=this.$refs.container;var e=t.parentNode.nextElementSibling;let i=t.querySelector(".wrapper");var r=el.timeline({ease:Oa.easeInOut,delay:.5,refreshPriority:Pp(t)});r.to(t,{height:t.offsetHeight,duration:0}),r.fromTo(i,{maxHeight:0,visibility:"visible"},{maxHeight:t.offsetHeight,visibility:"visible",duration:.5},">"),r.fromTo(t.querySelector(".circle"),{scale:0},{scale:1,duration:.3},">"),r.fromTo(t.querySelectorAll(".intro"),{yPercent:30,autoAlpha:0},{yPercent:0,autoAlpha:1,duration:.3},"<+=0.1"),r.fromTo(t.querySelectorAll(".photo"),{autoAlpha:0},{autoAlpha:1,duration:.3},">"),r.fromTo(e,{yPercent:30,autoAlpha:0},{yPercent:0,autoAlpha:1,duration:.2},"<+=0.1"),r.to(t,{height:"auto",duration:0},">"),r.to(i,{maxHeight:"99999px",duration:0},">"),r.call(()=>{e.style.translate="",e.style.rotate="",e.style.scale="",e.style.opacity="",e.style.transform="",e.style.visibility="",op.refresh()})}}},window.safe.testimonial_bar=function(){return{init(){let t=this.$refs.container;var e=el.timeline({ease:Va.Linear,scrollTrigger:{trigger:t,start:()=>"top bottom"}});e.to(t.querySelector(".top-circle"),{scale:1,duration:.75},0),e.to(t.querySelector(".testimonial"),{color:"#000",duration:.75},.5),e.to(t.querySelector(".bottom-circle"),{bottom:0,top:"auto",left:"auto",right:0,duration:.5},">")}}},window.safe.icon_text_revealer=function(){return{init(){let t=this.$refs.container;var e=el.timeline({ease:Oa.easeOut,scrollTrigger:{trigger:t,start:()=>"top-=50% center",end:()=>"bottom+=50% center",scrub:.1}});e.to(t.querySelector("img"),{rotation:0,duration:.5},0),e.to(t.querySelector("span"),{opacity:1,xPercent:0,duration:.6},0)}}},window.safe.stats_carousel=function(){return{init(){var t=this.$refs.carousel,e=el.utils.toArray(".item",t),i=el.timeline({repeat:-1,ease:Oa.easeInOut});e.forEach(function(t,e){let r=t.querySelector(".stat_value");const n={duration:2.5,startVal:0,useEasing:!1};r.getAttribute("data-decimal")&&(n.decimalPlaces=r.getAttribute("data-decimal")),r.getAttribute("data-prefix")&&(n.prefix=r.getAttribute("data-prefix")),r.getAttribute("data-suffix")&&(n.suffix=r.getAttribute("data-suffix"));var s=new xp(r,r.getAttribute("data-value"),n);i.add(function(){s.start()},">0.5"),i.to(t,{y:0,autoAlpha:1,duration:1},">"),i.to(t,{autoAlpha:0,duration:.7},">2.4"),i.add(function(){s.reset()},">"),i.to(t,{y:"24px",duration:0},">")})}}},window.safe.growing_image_hero=function(){return{init(){let t=this.$refs.container.querySelector(".animate-image"),e=document.querySelector(".site-header");var i=this.$refs.container,r=el.timeline({ease:Oa.easeInOut,force3D:!0,scrollTrigger:{trigger:i.closest(".safe-block"),start:()=>"bottom bottom",end:()=>"bottom+="+(window.innerHeight-e.offsetHeight-64)+"px bottom",pin:i,anticipatePin:!0,scrub:.1,invalidateOnRefresh:!0,refreshPriority:Pp(i)}});r.to(t,{height:()=>window.innerHeight-e.offsetHeight-64+"px"},0);const n=document.querySelector("body");n.classList.contains("blog-1")&&n.classList.contains("home")&&r.to(e.querySelector(".shrink-logo"),{maxWidth:"210px",left:"16px"},0),el.to(i.querySelector(".fade-content"),{autoAlpha:0,ease:Oa.easeInOut,force3D:!0,scrollTrigger:{trigger:i,start:()=>"top top",end:()=>wp(40)+"px top",scrub:.1,invalidateOnRefresh:!0,refreshPriority:Pp(i)}})}}},window.safe.interactive_heading=function(){return{init(){var t=this.$refs.container;el.to(this.$refs.container.querySelectorAll(".heading"),{"--interactive_heading_bg_top_pos":"-150%","--interactive_heading_bg_bottom_pos":"50%",duration:1,force3D:!0,ease:Oa.easeInOut,scrollTrigger:{trigger:this.$refs.container.querySelectorAll(".heading"),start:()=>"-=30% bottom",end:()=>"bottom+=40% bottom",scrub:.1,invalidateOnRefresh:!0,refreshPriority:Pp(t)}})}}},window.safe.section_heading_image_shrink=function(){return{init(){let t=this.$refs.container.querySelector(".feature-image"),e=el.matchMedia();t&&e.add("(min-width: 600px)",()=>{el.to(t,{width:"280px",ease:Oa.easeOut,scrollTrigger:{trigger:this.$refs.container,scrub:.1,start:()=>"top center",end:()=>"bottom center"}})})}}},window.safe.logo_burst=function(){return{init(){var t=this.$refs.container,e=el.timeline({ease:"none",scrollTrigger:{trigger:this.$refs.container,start:()=>"top-=25% center",end:()=>"top+=50% center",scrub:.1,refreshPriority:Pp(t),invalidateOnRefresh:!0}});el.utils.toArray(".logo",t).forEach(function(t,i){e.to(t,{xPercent:0,yPercent:0,top:t.getAttribute("data-top"),left:t.getAttribute("data-left")},0)})}}},window.safe.photo_switcher=function(){return{init(){var t=el.timeline({ease:"none",repeat:-1});el.utils.toArray("img",this.$refs.container).forEach(function(e,i){t.to(e,{visibility:"visible",duration:1}),t.to(e,{visibility:"hidden",duration:0})})}}},window.safe.data_type_game=function(){function t(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t)+t)}function e(e,i=!0){let r=0,n=t(2900,3100),s=el.utils.toArray(".data-type",e);setInterval(()=>
1{"false"==e.getAttribute("data-paused")&&(s[r].classList.add("invisible"),r===s.length-1?r=0:r++,s[r].classList.remove("invisible")),i||"true"!=e.getAttribute("data-play")||(e.setAttribute("data-play","false"),setTimeout(()=>{e.setAttribute("data-paused","true")},n))},70),i&&setInterval(()=>{e.setAttribute("data-paused","false"==e.getAttribute("data-paused")?"true":"false"),n=t(2900,3100)},n)}return{init(){var t=this.$refs.container;e(t.querySelector("#data_type_looper")),e(t.querySelector("#manual_data_type_picker"),!1)}}},window.safe.we_started_with_burst=function(){return{init(){var t=this.$refs.container,e=t.parentNode.nextElementSibling,i=el.timeline({ease:"none",scrollTrigger:{trigger:t,pin:t,start:()=>"center center",end:()=>"center+=200% center",scrub:.1,pinSpacing:!0,invalidateOnRefresh:!0,anticipatePin:!0,refreshPriority:Pp(t)}}),r=el.utils.toArray(".icon",t);i.to(t.querySelector(".intro"),{y:0,autoAlpha:1,duration:.5},0),i.to(t.querySelector(".intro"),{autoAlpha:0,duration:.1},">"),i.to(t.querySelector(".outro"),{y:0,autoAlpha:1,duration:.5},">");var n=el.timeline({ease:"none",scrollTrigger:{trigger:e,start:()=>"top-=25% bottom",end:()=>"top+=40% center",scrub:.1}});window.innerWidth>=768?(n.to(r[0],{xPercent:-162,yPercent:-162,duration:1},0),n.to(r[1],{xPercent:235,yPercent:-135},"<"),n.to(r[2],{xPercent:430,yPercent:165},"<"),n.to(r[3],{xPercent:343,yPercent:417},"<"),n.to(r[4],{xPercent:-329,yPercent:366},"<"),n.to(r[5],{xPercent:-572,yPercent:182},"<"),n.to(r[6],{xPercent:-436,yPercent:-48},"<")):(n.to(r[0],{xPercent:-75,duration:1},0),n.to(r[1],{xPercent:-150},"<"),n.to(r[2],{xPercent:-225},"<"),n.to(r[3],{xPercent:75},"<"),n.to(r[4],{xPercent:150},"<"),n.to(r[5],{xPercent:225},"<"),n.to(r[6],{xPercent:300},"<"))}}},window.safe.photo_marquees=function(){return{init(){var t=this.$refs.container;Mp(t),window.addEventListener("resize",function(e){Mp(t)});var e=el.timeline({ease:"none",scrollTrigger:{trigger:this.$refs.container,start:()=>"top bottom",end:()=>"bottom top",scrub:.1}});let i=this.$refs.container.querySelector(".wrapper-1 .photos");e.to(i,{x:()=>`-${i.offsetWidth-window.innerWidth>0?i.offsetWidth-window.innerWidth:0}px`},0);let r=this.$refs.container.querySelector(".wrapper-2 .photos");e.to(r,{x:()=>(r.offsetWidth-window.innerWidth>0?r.offsetWidth-window.innerWidth:0)+"px"},0);let n=this.$refs.container.querySelector(".wrapper-3 .photos");e.to(n,{x:()=>`-${n.offsetWidth-window.innerWidth>0?n.offsetWidth-window.innerWidth:0}px`},0)}}},window.safe.gallery_grid_scroll=function(){return{init(){var t=el.timeline({ease:Oa.easeInOut,scrollTrigger:{trigger:this.$refs.container,start:()=>"top bottom",end:()=>"bottom+=50% bottom",scrub:.1,refreshPriority:Pp(this.$refs.container),invalidateOnRefresh:!0}});this.$refs.container.querySelector(".photo-5")?(t.fromTo(this.$refs.container.querySelectorAll(".photo:nth-child(2), .photo:nth-child(5)"),{y:200},{y:-75},0),t.fromTo(this.$refs.container.querySelectorAll(".photo:nth-child(3), .photo:nth-child(6), :nth-child(7)"),{y:200},{y:-75},.2),t.fromTo(this.$refs.container.querySelectorAll(".photo:nth-child(4)"),{y:200},{y:-75},.1)):(t.fromTo(this.$refs.container.querySelectorAll(".photo:nth-child(2)"),{y:200},{y:-75},0),t.fromTo(this.$refs.container.querySelectorAll(".photo:nth-child(3), .photo:nth-child(4), :nth-child(6)"),{y:200},{y:-75},.2),t.fromTo(this.$refs.container.querySelectorAll(".photo:nth-child(5)"),{y:200},{y:-75},.1))}}},window.safe.fade_in_up=function(){return{init(){null===this.$refs.container.closest(".safe-block").previousElementSibling&&el.fromTo(this.$refs.container.querySelectorAll(".fade-in-up"),{autoAlpha:0,y:75},{autoAlpha:1,y:0,duration:1.5,delay:.2,force3D:!0,ease:Oa.easeInOut,stagger:{amount:.4},scrollTrigger:{trigger:this.$refs.container,start:()=>"top-=30% center"}})}}},window.safe.footer_reveal=function(){return{init(){if(this.$refs){var t=el.timeline({ease:Oa.easeInOut,scrollTrigger:{trigger:this.$refs.container,start:()=>"top+=50% bottom",end:()=>"bottom+=50% bottom",scrub:.1}});t.to(this.$refs.container.querySelectorAll(".circle:first-child"),{top:0,yPercent:0,y:0},0),t.to(this.$refs.container.querySelectorAll(".circle:last-child"),{bottom:0,yPercent:0,y:0},0),t.to(this.$refs.container.querySelectorAll(".footer-cta"),{xPercent:0,x:0,alpha:1},0)}}}},window.safe.spin_up=function(){return{init(){el.to(this.$refs.container.querySelector(".spin-logo"),{rotation:()=>window.innerWidth<1100&&window.innerWidth>768?-180:-90,ease:Oa.easeOut,scrollTrigger:{trigger:this.$refs.container,scrub:.1,start:()=>"center center",end:()=>"bottom center"}})}}},window.safe.footer_spin=function(){return{init(){this.$refs&&el.to(this.$refs.container.querySelector(".footer-spin"),{rotation:()=>window.innerWidth<768?-270:0,force3D:!1,ease:Va.Linear,scrollTrigger:{trigger:document.querySelector("footer.site-footer"),scrub:.1,start:()=>"top+=20% bottom",end:()=>"top+=60% bottom"}})}}},window.safe.play_lottie_animation=function(t=!0,e=!1){return{init(){window.safe.num_lottie_animations||(window.safe.num_lottie_animations=document.querySelectorAll(".lottie-animation").length,window.safe.loaded_lottie_animations=0);var i={container:this.$refs.container,path:this.$refs.container.getAttribute("animation-json"),renderer:"svg",loop:e,autoplay:!t},r=_p.loadAnimation(i);r.addEventListener("data_ready",()=>{window.safe.loaded_lottie_animations++,window.safe.loaded_lottie_animations>=window.safe.num_lottie_animations&&op.refresh()}),t&&op.create({trigger:this.$refs.container,start:()=>"center bottom",end:()=>"center+="+wp(110)+"px bottom",onEnter:()=>{r.play()},onLeave:()=>{r.pause()},onEnterBack:()=>{r.play()},onLeaveBack:()=>{r.pause()}})}}},window.safe.scroll_photo_circles=function(){return{init(){var t=el.timeline({ease:Oa.easeInOut,scrollTrigger:{trigger:this.$refs.container,start:()=>"top+=50% bottom",end:()=>"bottom+="+wp(110)+" top",scrub:.1,invalidateOnRefresh:!0}});t.to(this.$refs.container.querySelectorAll(".circle:nth-child(2)"),{x:"105%"},0),t.to(this.$refs.container.querySelectorAll(".circle:nth-child(4)"),{x:"210%"},0),t.to(this.$refs.container.querySelectorAll(".circle:nth-child(3)"),{x:"-105%"},0),t.to(this.$refs.container.querySelectorAll(".circle:nth-child(5)"),{x:"-210%"},0)}}},window.safe.pin_content=function(t=!1,e=!1,i=1100){return{init(){let r=el.matchMedia(),n=t?"80px":"0";r.add("(min-width: "+i+"px)",()=>{op.create({trigger:this.$refs.container.closest(".safe-block"),pin:this.$refs.container,start:()=>`top-=${n} top`,end:()=>"+="+(this.$refs.container.parentElement.offsetHeight-this.$refs.container.offsetHeight),scrub:.1,pinSpacing:!1,invalidateOnRefresh:!0,anticipatePin:!0,refreshPriority:Pp(this.$refs.container)}),console.log("Pinning content for desktop at "+i+"px")}),e&&r.add("(max-width: "+(i-.1)+"px)",()=>{op.create({trigger:this.$refs.container.closest(".safe-block"),pin:this.$refs.container,start:()=>`top-=${n} top`,end:()=>`+=${.96*this.$refs.container.closest(".safe-block").offsetHeight}px`,scrub:.1,pinSpacing:!1,invalidateOnRefresh:!0,anticipatePin:!0,refreshPriority:Pp(this.$refs.container)}),console.log("Pinning content for desktop at "+i+"px")})}}},r(async()=>{window.Alpine=er,er.magic("localDateTime",()=>Sp),er.start(),document.querySelector("body").classList.remove("no-transition");for(var t=document.getElementsByTagName("a"),e=0;e<t.length;e++)t[e].hostname===window.location.hostname||t[e].hostname.includes("safe.com")||t[e].hostname.includes("8thwall.app")||(t[e].setAttribute("target","_blank"),t[e].setAttribute("rel","noreferer noopener nofollow"));document.addEventListener("facetwp-refresh",function(){document.activeElement&&(document.activeElement.classList.contains("facetwp-search")||document.querySelector(".facet-no-scroll"))?FWP.enable_scroll=!1:null!==FWP.active_facet&&(FWP.active_facet.nodes[0].querySelector(".facetwp-page")||FWP.active_facet.nodes[0].classList.contains("facetwp-type-pager"))?FWP.enable_scroll=!0:FWP.enable_scroll=!1,document.querySelectorAll(".facetwp-facet-webinar_order").length>0&&(FWP.facets.webinar_order=["on-demand"==FWP.facets.webinar_status?"desc":"asc"])}),document.addEventListener("facetwp-loaded",function(){op.refresh(),document.querySelectorAll(".facetwp-template [x-data]").forEach(t=>{t._x_dataStack||window.Alpine.initTree(t)}),setTimeout(function(){1==FWP.enable_scroll&&window.scrollTo({behavior:"smooth",top:document.querySelector(".facetwp-template").getBoundingClientRect().top+window.scrollY-120})},100),document.querySelectorAll(".facetwp-type-dropdown select").forEach(t=>{let e=t.querySelector('option[value=""]');e&&t.setAttribute("aria-label",e.textContent)}),document.querySelectorAll("br").forEach(t=>{t.setAttribute("aria-hidden","true")})}),location.hash&&-1===location.hash.indexOf("#v")&&(setTimeout(function(){window.scrollTo(0,0)},1),setTimeout(function(){document.querySelector(location.hash)&&window.scrollTo({behavior:"smooth",top:document.querySelector(location.hash).getBoundingClientRect().top+window.scrollY-120})},400)),document.querySelectorAll('[href="#"]').forEach(t=>{t.addEventListener("click",t=>t.preventDefault())})})}
1},t=>{var e=e=>t(t.s=e);e("./scripts/app.js"),e("./styles/app.css")}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.