PageSourceSearch

https://flic.io/wp-content/themes/flic-theme/dist/main-Dgz3L-WM.js?ver=7.0.2

js flic.io collected 2026-09-24 17:37:24 UTC 570,783 bytes, 167 lines download raw bytes

1var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var runtime={exports:{}},hasRequiredRuntime;function requireRuntime(){return hasRequiredRuntime||(hasRequiredRuntime=1,(function(e){var t=(function(r){var i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(S,A,P){S[A]=P.value},a,l=typeof Symbol=="function"?Symbol:{},o=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(S,A,P){return Object.defineProperty(S,A,{value:P,enumerable:!0,configurable:!0,writable:!0}),S[A]}try{d({},"")}catch(S){d=function(A,P,V){return A[P]=V}}function f(S,A,P,V){var B=A&&A.prototype instanceof g?A:g,N=Object.create(B.prototype),z=new w(V||[]);return n(N,"_invoke",{value:F(S,P,z)}),N}r.wrap=f;function y(S,A,P){try{return{type:"normal",arg:S.call(A,P)}}catch(V){return{type:"throw",arg:V}}}var m="suspendedStart",h="suspendedYield",b="executing",p="completed",v={};function g(){}function _(){}function C(){}var x={};d(x,o,function(){return this});var T=Object.getPrototypeOf,M=T&&T(T(I([])));M&&M!==i&&s.call(M,o)&&(x=M);var R=C.prototype=g.prototype=Object.create(x);_.prototype=C,n(R,"constructor",{value:C,configurable:!0}),n(C,"constructor",{value:_,configurable:!0}),_.displayName=d(C,u,"GeneratorFunction");function L(S){["next","throw","return"].forEach(function(A){d(S,A,function(P){return this._invoke(A,P)})})}r.isGeneratorFunction=function(S){var A=typeof S=="function"&&S.constructor;return A?A===_||(A.displayName||A.name)==="GeneratorFunction":!1},r.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,C):(S.__proto__=C,d(S,u,"GeneratorFunction")),S.prototype=Object.create(R),S},r.awrap=function(S){return{__await:S}};function k(S,A){function P(N,z,j,H){var K=y(S[N],S,z);if(K.type==="throw")H(K.arg);else{var Q=K.arg,J=Q.value;return J&&typeof J=="object"&&s.call(J,"__await")?A.resolve(J.__await).then(function(Y){P("next",Y,j,H)},function(Y){P("throw",Y,j,H)}):A.resolve(J).then(function(Y){Q.value=Y,j(Q)},function(Y){return P("throw",Y,j,H)})}}var V;function B(N,z){function j(){return new A(function(H,K){P(N,z,H,K)})}return V=V?V.then(j,j):j()}n(this,"_invoke",{value:B})}L(k.prototype),d(k.prototype,c,function(){return this}),r.AsyncIterator=k,r.async=function(S,A,P,V,B){B===void 0&&(B=Promise);var N=new k(f(S,A,P,V),B);return r.isGeneratorFunction(A)?N:N.next().then(function(z){return z.done?z.value:N.next()})};function F(S,A,P){var V=m;return function(N,z){if(V===b)throw new Error("Generator is already running");if(V===p){if(N==="throw")throw z;return E()}for(P.method=N,P.arg=z;;){var j=P.delegate;if(j){var H=O(j,P);if(H){if(H===v)continue;return H}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(V===m)throw V=p,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);V=b;var K=y(S,A,P);if(K.type==="normal"){if(V=P.done?p:h,K.arg===v)continue;return{value:K.arg,done:P.done}}else K.type==="throw"&&(V=p,P.method="throw",P.arg=K.arg)}}}function O(S,A){var P=A.method,V=S.iterator[P];if(V===a)return A.delegate=null,P==="throw"&&S.iterator.return&&(A.method="return",A.arg=a,O(S,A),A.method==="throw")||P!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+P+"' method")),v;var B=y(V,S.iterator,A.arg);if(B.type==="throw")return A.method="throw",A.arg=B.arg,A.delegate=null,v;var N=B.arg;if(!N)return A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,v;if(N.done)A[S.resultName]=N.value,A.next=S.nextLoc,A.method!=="return"&&(A.method="next",A.arg=a);else return N;return A.delegate=null,v}L(R),d(R,u,"Generator"),d(R,o,function(){return this}),d(R,"toString",function(){return"[object Generator]"});function D(S){var A={tryLoc:S[0]};1 in S&&(A.catchLoc=S[1]),2 in S&&(A.finallyLoc=S[2],A.afterLoc=S[3]),this.tryEntries.push(A)}function q(S){var A=S.completion||{};A.type="normal",delete A.arg,S.completion=A}function w(S){this.tryEntries=[{tryLoc:"root"}
1],S.forEach(D,this),this.reset(!0)}r.keys=function(S){var A=Object(S),P=[];for(var V in A)P.push(V);return P.reverse(),function B(){for(;P.length;){var N=P.pop();if(N in A)return B.value=N,B.done=!1,B}return B.done=!0,B}};function I(S){if(S){var A=S[o];if(A)return A.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var P=-1,V=function B(){for(;++P<S.length;)if(s.call(S,P))return B.value=S[P],B.done=!1,B;return B.value=a,B.done=!0,B};return V.next=V}}return{next:E}}r.values=I;function E(){return{value:a,done:!0}}return w.prototype={constructor:w,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(q),!S)for(var A in this)A.charAt(0)==="t"&&s.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=a)},stop:function(){this.done=!0;var S=this.tryEntries[0],A=S.completion;if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var A=this;function P(H,K){return N.type="throw",N.arg=S,A.next=H,K&&(A.method="next",A.arg=a),!!K}for(var V=this.tryEntries.length-1;V>=0;--V){var B=this.tryEntries[V],N=B.completion;if(B.tryLoc==="root")return P("end");if(B.tryLoc<=this.prev){var z=s.call(B,"catchLoc"),j=s.call(B,"finallyLoc");if(z&&j){if(this.prev<B.catchLoc)return P(B.catchLoc,!0);if(this.prev<B.finallyLoc)return P(B.finallyLoc)}else if(z){if(this.prev<B.catchLoc)return P(B.catchLoc,!0)}else if(j){if(this.prev<B.finallyLoc)return P(B.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(S,A){for(var P=this.tryEntries.length-1;P>=0;--P){var V=this.tryEntries[P];if(V.tryLoc<=this.prev&&s.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var B=V;break}}B&&(S==="break"||S==="continue")&&B.tryLoc<=A&&A<=B.finallyLoc&&(B=null);var N=B?B.completion:{};return N.type=S,N.arg=A,B?(this.method="next",this.next=B.finallyLoc,v):this.complete(N)},complete:function(S,A){if(S.type==="throw")throw S.arg;return S.type==="break"||S.type==="continue"?this.next=S.arg:S.type==="return"?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):S.type==="normal"&&A&&(this.next=A),v},finish:function(S){for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A];if(P.finallyLoc===S)return this.complete(P.completion,P.afterLoc),q(P),v}},catch:function(S){for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A];if(P.tryLoc===S){var V=P.completion;if(V.type==="throw"){var B=V.arg;q(P)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(S,A,P){return this.delegate={iterator:I(S),resultName:A,nextLoc:P},this.method==="next"&&(this.arg=a),v}},r})(e.exports);try{regeneratorRuntime=t}catch(r){typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(runtime)),runtime.exports}requireRuntime();function isObject$2(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function extend$1(e={},t={}){Object.keys(t).forEach(r=>{typeof e[r]=="undefined"?e[r]=t[r]:isObject$2(t[r])&&isObject$2(e[r])&&Object.keys(t[r]).length>0&&extend$1(e[r],t[r])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const e=typeof document!="undefined"?document:{};return extend$1(e,ssrDocument),e}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){}
1,clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout!="undefined"&&clearTimeout(e)}};function getWindow(){const e=typeof window!="undefined"?window:{};return extend$1(e,ssrWindow),e}function makeReactive(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get(){return t},set(r){t.__proto__=r}})}class Dom7 extends Array{constructor(t){typeof t=="number"?super(t):(super(...t||[]),makeReactive(this))}}function arrayFlat(e=[]){const t=[];return e.forEach(r=>{Array.isArray(r)?t.push(...arrayFlat(r)):t.push(r)}),t}function arrayFilter(e,t){return Array.prototype.filter.call(e,t)}function arrayUnique(e){const t=[];for(let r=0;r<e.length;r+=1)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function qsa(e,t){if(typeof e!="string")return[e];const r=[],i=t.querySelectorAll(e);for(let s=0;s<i.length;s+=1)r.push(i[s]);return r}function $(e,t){const r=getWindow(),i=getDocument();let s=[];if(!t&&e instanceof Dom7)return e;if(!e)return new Dom7(s);if(typeof e=="string"){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let a="div";n.indexOf("<li")===0&&(a="ul"),n.indexOf("<tr")===0&&(a="tbody"),(n.indexOf("<td")===0||n.indexOf("<th")===0)&&(a="tr"),n.indexOf("<tbody")===0&&(a="table"),n.indexOf("<option")===0&&(a="select");const l=i.createElement(a);l.innerHTML=n;for(let o=0;o<l.childNodes.length;o+=1)s.push(l.childNodes[o])}else s=qsa(e.trim(),t||i)}else if(e.nodeType||e===r||e===i)s.push(e);else if(Array.isArray(e)){if(e instanceof Dom7)return e;s=e}return new Dom7(arrayUnique(s))}$.fn=Dom7.prototype;function addClass(...e){const t=arrayFlat(e.map(r=>r.split(" ")));return this.forEach(r=>{r.classList.add(...t)}),this}function removeClass(...e){const t=arrayFlat(e.map(r=>r.split(" ")));return this.forEach(r=>{r.classList.remove(...t)}),this}function toggleClass(...e){const t=arrayFlat(e.map(r=>r.split(" ")));this.forEach(r=>{t.forEach(i=>{r.classList.toggle(i)})})}function hasClass(...e){const t=arrayFlat(e.map(r=>r.split(" ")));return arrayFilter(this,r=>t.filter(i=>r.classList.contains(i)).length>0).length>0}function attr(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(let r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(const i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this}function removeAttr(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function transform(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this}function transition$2(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration=typeof e!="string"?`${e}ms`:e;return this}function on$1(...e){let[t,r,i,s]=e;typeof e[1]=="function"&&([t,i,s]=e,r=void 0),s||(s=!1);function n(c){const u=c.target;if(!u)return;const d=c.target.dom7EventData||[];if(d.indexOf(c)<0&&d.unshift(c),$(u).is(r))i.apply(u,d);else{const f=$(u).parents();for(let y=0;y<f.length;y+=1)$(f[y]).is(r)&&i.apply(f[y],d)}}function a(c){const u=c&&c.target?c.target.dom7EventData||[]:[];u.indexOf(c)<0&&u.unshift(c),i.apply(this,u)}const l=t.split(" ");let o;for(let c=0;c<this.length;c+=1){const u=this[c];if(r)for(o=0;o<l.length;o+=1){const d=l[o];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[d]||(u.dom7LiveListeners[d]=[]),u.dom7LiveListeners[d].push({listener:i,proxyListener:n}),u.addEventListener(d,n,s)}else for(o=0;o<l.length;o+=1){const d=l[o];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[d]||(u.dom7Listeners[d]=[]),u.dom7Listeners[d].push({listener:i,proxyListener:a}),u.addEventListener(d,a,s)}}return this}function off(...e){let[t,r,i,s]=e;typeof e[1]=="function"&&([t,i,s]=e,r=void 0),s||(s=!1);const n=t.split(" ");for(let a=0;a<n.length;a+=1){const l=n[a];for(let o=0;o<this.length;o+=1){const c=this[o];let u;if(!r&&c.dom7Listeners?u=c.dom7Listeners[l]:r&&c.dom7LiveListeners&&(u=c.dom7LiveListeners[l]),u&&u.length)for(let d=u.length-1;d>=0;d-=1){const f=u[d];i&&f.listener===i||i&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===i?(c.removeEventListener(l,f.proxyListener,s),u.splice(d,1)):i||(c.removeEventListener(l,f.proxyListener,s),u.splice(d,1))}}}return this}function trigger$1(...e){const t=getWindow(),r=e[0].split(" "),i=e[1];for(let s=0;s<r.length;s+=1){const n=r[s];for(let a=0;a<this.length;a+=1){const l=this[a];if(t.CustomEvent){const o=new t.CustomEvent(n,{detail:i,bubbles:!0,cancelable:!0});l.dom7EventData=e.filter((c,u)=>u>0),l.dispatchEvent(o),l.dom7EventData=[],delete l.dom7EventData}}}return this}function transitionEnd$1(e){const t=this;function r(i){i.target===this&&(e.call(this,i),t.off("transitionend",r))}return e&&t.on("transitionend",r),this}function outerWidth(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+
1parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function outerHeight(e){if(this.length>0){if(e){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function offset(){if(this.length>0){const e=getWindow(),t=getDocument(),r=this[0],i=r.getBoundingClientRect(),s=t.body,n=r.clientTop||s.clientTop||0,a=r.clientLeft||s.clientLeft||0,l=r===e?e.scrollY:r.scrollTop,o=r===e?e.scrollX:r.scrollLeft;return{top:i.top+l-n,left:i.left+o-a}}return null}function styles(){const e=getWindow();return this[0]?e.getComputedStyle(this[0],null):{}}function css(e,t){const r=getWindow();let i;if(arguments.length===1)if(typeof e=="string"){if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(i=0;i<this.length;i+=1)for(const s in e)this[i].style[s]=e[s];return this}if(arguments.length===2&&typeof e=="string"){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this}function each(e){return e?(this.forEach((t,r)=>{e.apply(t,[t,r])}),this):this}function filter$1(e){const t=arrayFilter(this,e);return $(t)}function html(e){if(typeof e=="undefined")return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function text(e){if(typeof e=="undefined")return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function is(e){const t=getWindow(),r=getDocument(),i=this[0];let s,n;if(!i||typeof e=="undefined")return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(s=$(e),n=0;n<s.length;n+=1)if(s[n]===i)return!0;return!1}if(e===r)return i===r;if(e===t)return i===t;if(e.nodeType||e instanceof Dom7){for(s=e.nodeType?[e]:e,n=0;n<s.length;n+=1)if(s[n]===i)return!0;return!1}return!1}function index(){let e=this[0],t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function eq(e){if(typeof e=="undefined")return this;const t=this.length;if(e>t-1)return $([]);if(e<0){const r=t+e;return r<0?$([]):$([this[r]])}return $([this[e]])}function append(...e){let t;const r=getDocument();for(let i=0;i<e.length;i+=1){t=e[i];for(let s=0;s<this.length;s+=1)if(typeof t=="string"){const n=r.createElement("div");for(n.innerHTML=t;n.firstChild;)this[s].appendChild(n.firstChild)}else if(t instanceof Dom7)for(let n=0;n<t.length;n+=1)this[s].appendChild(t[n]);else this[s].appendChild(t)}return this}function prepend(e){const t=getDocument();let r,i;for(r=0;r<this.length;r+=1)if(typeof e=="string"){const s=t.createElement("div");for(s.innerHTML=e,i=s.childNodes.length-1;i>=0;i-=1)this[r].insertBefore(s.childNodes[i],this[r].childNodes[0])}else if(e instanceof Dom7)for(i=0;i<e.length;i+=1)this[r].insertBefore(e[i],this[r].childNodes[0]);else this[r].insertBefore(e,this[r].childNodes[0]);return this}function next(e){return this.length>0?e?this[0].nextElementSibling&&$(this[0].nextElementSibling).is(e)?$([this[0].nextElementSibling]):$([]):this[0].nextElementSibling?$([this[0].nextElementSibling]):$([]):$([])}function nextAll(e){const t=[];let r=this[0];if(!r)return $([]);for(;r.nextElementSibling;){const i=r.nextElementSibling;e?$(i).is(e)&&t.push(i):t.push(i),r=i}return $(t)}function prev(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&$(t.previousElementSibling).is(e)?$([t.previousElementSibling]):$([]):t.previousElementSibling?$([t.previousElementSibling]):$([])}return $([])}function prevAll(e){const t=[];let r=this[0];if(!r)return $([]);for(;r.previousElementSibling;){const i=r.previousElementSibling;e?$(i).is(e)&&t.push(i):t.push(i),r=i}return $(t)}function parent(e){const t=[];for(let r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?$(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return $(t)}function parents(e){const t=[];for(let r=0;r<this.length;r+=1){let i=this[r].parentNode;for(;i;)e?$(i).is(e)&&t.push(i):t.push(i),i=i.parentNode}return $(t)}function closest(e){let t=this;return typeof e=="undefined"?$([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function find(e){const t=[];for(let r=0;r<this.length;r+=1){const i=this[r].querySelectorAll(e);for(let s=0;s<i.length;s+=1)t.push(i[s])}return $(t)}function children(e){const t=[];for(let r=0;r<this.length;r+=1){const i=this[r].children;for(let s=0;s<i.length;s+=1)(!e||$(i[s]).is(e))&&t.push(i[s])}return $(t)}function remove(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}const Methods={addClass,removeClass,hasClass,toggleClass,attr,removeAttr,transform,transition:transition$2,on:on$1,off,trigger:trigger$1,transitionEnd:transitionEnd$1,outerWidth,outerHeight,styles,offset,css,each,html,text,is,index,eq,append,prepend,next,nextAll,prev,prevAll,parent,parents,closest,find,children,filter:filter$1,remove};
vendor: 4,196 bytes, line 1
1Object.keys(Methods).forEach(e=>{Object.defineProperty($.fn,e,{value:Methods[e],writable:!0})});function deleteProps(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch(i){}try{delete t[r]}catch(i){}})}function nextTick$1(e,t=0){return setTimeout(e,t)}function now(){return Date.now()}function getComputedStyle$1(e){const t=getWindow();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function getTranslate(e,t="x"){const r=getWindow();let i,s,n;const a=getComputedStyle$1(e);return r.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(l=>l.replace(",",".")).join(", ")),n=new r.WebKitCSSMatrix(s==="none"?"":s)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?s=n.m41:i.length===16?s=parseFloat(i[12]):s=parseFloat(i[4])),t==="y"&&(r.WebKitCSSMatrix?s=n.m42:i.length===16?s=parseFloat(i[13]):s=parseFloat(i[5])),s||0}function isObject$1(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function isNode(e){return typeof window!="undefined"&&typeof window.HTMLElement!="undefined"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function extend(...e){const t=Object(e[0]),r=["__proto__","constructor","prototype"];for(let i=1;i<e.length;i+=1){const s=e[i];if(s!=null&&!isNode(s)){const n=Object.keys(Object(s)).filter(a=>r.indexOf(a)<0);for(let a=0,l=n.length;a<l;a+=1){const o=n[a],c=Object.getOwnPropertyDescriptor(s,o);c!==void 0&&c.enumerable&&(isObject$1(t[o])&&isObject$1(s[o])?s[o].__swiper__?t[o]=s[o]:extend(t[o],s[o]):!isObject$1(t[o])&&isObject$1(s[o])?(t[o]={},s[o].__swiper__?t[o]=s[o]:extend(t[o],s[o])):t[o]=s[o])}}}return t}function setCSSProperty(e,t,r){e.style.setProperty(t,r)}function animateCSSModeScroll({swiper:e,targetPosition:t,side:r}){const i=getWindow(),s=-e.translate;let n=null,a;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const o=t>s?"next":"prev",c=(d,f)=>o==="next"&&d>=f||o==="prev"&&d<=f,u=()=>{a=new Date().getTime(),n===null&&(n=a);const d=Math.max(Math.min((a-n)/l,1),0),f=.5-Math.cos(d*Math.PI)/2;let y=s+f*(t-s);if(c(y,t)&&(y=t),e.wrapperEl.scrollTo({[r]:y}),c(y,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:y})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(u)};u()}let support;function calcSupport(){const e=getWindow(),t=getDocument();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:(function(){let i=!1;try{const s=Object.defineProperty({},"passive",{get(){i=!0}});e.addEventListener("testPassiveListener",null,s)}catch(s){}return i})(),gestures:(function(){return"ongesturestart"in e})()}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice({userAgent:e}={}){const t=getSupport(),r=getWindow(),i=r.navigator.platform,s=e||r.navigator.userAgent,n={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,o=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=i==="Win32";let y=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&y&&t.touch&&m.indexOf(`${a}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),o&&!f&&(n.os="android",n.android=!0),(c||d||u)&&(n.os="ios",n.ios=!0),n}function getDevice(e={}){return deviceCached||(deviceCached=calcDevice(e)),deviceCached}let browser;function calcBrowser(){const e=getWindow();function t(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}
vendor: 2,989 bytes, line 1
1return{isSafari:t(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize({swiper:e,on:t,emit:r}){const i=getWindow();let s=null,n=null;const a=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(u=>{n=i.requestAnimationFrame(()=>{const{width:d,height:f}=e;let y=d,m=f;u.forEach(({contentBoxSize:h,contentRect:b,target:p})=>{p&&p!==e.el||(y=b?b.width:(h[0]||h).inlineSize,m=b?b.height:(h[0]||h).blockSize)}),(y!==d||m!==f)&&a()})}),s.observe(e.el))},o=()=>{n&&i.cancelAnimationFrame(n),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},c=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver!="undefined"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),t("destroy",()=>{o(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function Observer({swiper:e,extendParams:t,on:r,emit:i}){const s=[],n=getWindow(),a=(c,u={})=>{const d=n.MutationObserver||n.WebkitMutationObserver,f=new d(y=>{if(y.length===1){i("observerUpdate",y[0]);return}const m=function(){i("observerUpdate",y[0])};n.requestAnimationFrame?n.requestAnimationFrame(m):n.setTimeout(m,0)});f.observe(c,{attributes:typeof u.attributes=="undefined"?!0:u.attributes,childList:typeof u.childList=="undefined"?!0:u.childList,characterData:typeof u.characterData=="undefined"?!0:u.characterData}),s.push(f)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=e.$el.parents();for(let u=0;u<c.length;u+=1)a(c[u])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}},o=()=>{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",o)}const eventsEmitter={on(e,t,r){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const s=r?"unshift":"push";return e.split(" ").forEach(n=>{i.eventsListeners[n]||(i.eventsListeners[n]=[]),i.eventsListeners[n][s](t)}),i},once(e,t,r){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;function s(...n){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(i,n)}return s.__emitterProxy=t,i.on(e,s,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const i=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[i](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||e.split(" ").forEach(i=>{typeof t=="undefined"?r.eventsListeners[i]=[]:r.eventsListeners[i]&&r.eventsListeners[i].forEac
1h((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&r.eventsListeners[i].splice(n,1)})}),r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let r,i,s;return typeof e[0]=="string"||Array.isArray(e[0])?(r=e[0],i=e.slice(1,e.length),s=t):(r=e[0].events,i=e[0].data,s=e[0].context||t),i.unshift(s),(Array.isArray(r)?r:r.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(s,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(l=>{l.apply(s,i)})}),t}};function updateSize(){const e=this;let t,r;const i=e.$el;typeof e.params.width!="undefined"&&e.params.width!==null?t=e.params.width:t=i[0].clientWidth,typeof e.params.height!="undefined"&&e.params.height!==null?r=e.params.height:r=i[0].clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),r=r-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function updateSlides(){const e=this;function t(L){return e.isHorizontal()?L:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[L]}function r(L,k){return parseFloat(L.getPropertyValue(t(k))||0)}const i=e.params,{$wrapperEl:s,size:n,rtlTranslate:a,wrongRTL:l}=e,o=e.virtual&&i.virtual.enabled,c=o?e.virtual.slides.length:e.slides.length,u=s.children(`.${e.params.slideClass}`),d=o?e.virtual.slides.length:u.length;let f=[];const y=[],m=[];let h=i.slidesOffsetBefore;typeof h=="function"&&(h=i.slidesOffsetBefore.call(e));let b=i.slidesOffsetAfter;typeof b=="function"&&(b=i.slidesOffsetAfter.call(e));const p=e.snapGrid.length,v=e.slidesGrid.length;let g=i.spaceBetween,_=-h,C=0,x=0;if(typeof n=="undefined")return;typeof g=="string"&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*n),e.virtualSize=-g,a?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(setCSSProperty(e.wrapperEl,"--swiper-centered-offset-before",""),setCSSProperty(e.wrapperEl,"--swiper-centered-offset-after",""));const T=i.grid&&i.grid.rows>1&&e.grid;T&&e.grid.initSlides(d);let M;const R=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(L=>typeof i.breakpoints[L].slidesPerView!="undefined").length>0;for(let L=0;L<d;L+=1){M=0;const k=u.eq(L);if(T&&e.grid.updateSlide(L,k,d,t),k.css("display")!=="none"){if(i.slidesPerView==="auto"){R&&(u[L].style[t("width")]="");const F=getComputedStyle(k[0]),O=k[0].style.transform,D=k[0].style.webkitTransform;if(O&&(k[0].style.transform="none"),D&&(k[0].style.webkitTransform="none"),i.roundLengths)M=e.isHorizontal()?k.outerWidth(!0):k.outerHeight(!0);else{const q=r(F,"width"),w=r(F,"padding-left"),I=r(F,"padding-right"),E=r(F,"margin-left"),S=r(F,"margin-right"),A=F.getPropertyValue("box-sizing");if(A&&A==="border-box")M=q+E+S;else{const{clientWidth:P,offsetWidth:V}=k[0];M=q+w+I+E+S+(V-P)}}O&&(k[0].style.transform=O),D&&(k[0].style.webkitTransform=D),i.roundLengths&&(M=Math.floor(M))}else M=(n-(i.slidesPerView-1)*g)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),u[L]&&(u[L].style[t("width")]=`${M}px`);u[L]&&(u[L].swiperSlideSize=M),m.push(M),i.centeredSlides?(_=_+M/2+C/2+g,C===0&&L!==0&&(_=_-n/2-g),L===0&&(_=_-n/2-g),Math.abs(_)<1/1e3&&(_=0),i.roundLengths&&(_=Math.floor(_)),x%i.slidesPerGroup===0&&f.push(_),y.push(_)):(i.roundLengths&&(_=Math.floor(_)),(x-Math.min(e.params.slidesPerGroupSkip,x))%e.params.slidesPerGroup===0&&f.push(_),y.push(_),_=_+M+g),e.virtualSize+=M+g,C=M,x+=1}}if(e.virtualSize=Math.max(e.virtualSize,n)+b,a&&l&&(i.effect==="slide"||i.effect==="coverflow")&&s.css({width:`${e.virtualSize+i.spaceBetween}px`}),i.setWrapperSize&&s.css({[t("width")]:`${e.virtualSize+i.spaceBetween}px`}
1),T&&e.grid.updateWrapperSize(M,f,t),!i.centeredSlides){const L=[];for(let k=0;k<f.length;k+=1){let F=f[k];i.roundLengths&&(F=Math.floor(F)),f[k]<=e.virtualSize-n&&L.push(F)}f=L,Math.floor(e.virtualSize-n)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-n)}if(f.length===0&&(f=[0]),i.spaceBetween!==0){const L=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((k,F)=>i.cssMode?F!==u.length-1:!0).css({[L]:`${g}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let L=0;m.forEach(F=>{L+=F+(i.spaceBetween?i.spaceBetween:0)}),L-=i.spaceBetween;const k=L-n;f=f.map(F=>F<0?-h:F>k?k+b:F)}if(i.centerInsufficientSlides){let L=0;if(m.forEach(k=>{L+=k+(i.spaceBetween?i.spaceBetween:0)}),L-=i.spaceBetween,L<n){const k=(n-L)/2;f.forEach((F,O)=>{f[O]=F-k}),y.forEach((F,O)=>{y[O]=F+k})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:y,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){setCSSProperty(e.wrapperEl,"--swiper-centered-offset-before",`${-f[0]}px`),setCSSProperty(e.wrapperEl,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const L=-e.snapGrid[0],k=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(F=>F+L),e.slidesGrid=e.slidesGrid.map(F=>F+k)}if(d!==c&&e.emit("slidesLengthChange"),f.length!==p&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),y.length!==v&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!o&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const L=`${i.containerModifierClass}backface-hidden`,k=e.$el.hasClass(L);d<=i.maxBackfaceHiddenSlides?k||e.$el.addClass(L):k&&e.$el.removeClass(L)}}function updateAutoHeight(e){const t=this,r=[],i=t.virtual&&t.params.virtual.enabled;let s=0,n;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=l=>i?t.slides.filter(o=>parseInt(o.getAttribute("data-swiper-slide-index"),10)===l)[0]:t.slides.eq(l)[0];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||$([])).each(l=>{r.push(l)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const l=t.activeIndex+n;if(l>t.slides.length&&!i)break;r.push(a(l))}else r.push(a(t.activeIndex));for(n=0;n<r.length;n+=1)if(typeof r[n]!="undefined"){const l=r[n].offsetHeight;s=l>s?l:s}(s||s===0)&&t.$wrapperEl.css("height",`${s}px`)}function updateSlidesOffset(){const e=this,t=e.slides;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop}function updateSlidesProgress(e=this&&this.translate||0){const t=this,r=t.params,{slides:i,rtlTranslate:s,snapGrid:n}=t;if(i.length===0)return;typeof i[0].swiperSlideOffset=="undefined"&&t.updateSlidesOffset();let a=-e;s&&(a=e),i.removeClass(r.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let l=0;l<i.length;l+=1){const o=i[l];let c=o.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(c-=i[0].swiperSlideOffset);const u=(a+(r.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+r.spaceBetween),d=(a-n[0]+(r.centeredSlides?t.minTranslate():0)-c)/(o.swiperSlideSize+r.spaceBetween),f=-(a-c),y=f+t.slidesSizesGrid[l];(f>=0&&f<t.size-1||y>1&&y<=t.size||f<=0&&y>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(l),i.eq(l).addClass(r.slideVisibleClass)),o.progress=s?-u:u,o.originalProgress=s?-d:d}t.visibleSlides=$(t.visibleSlides)}function updateProgress(e){const t=this;if(typeof e=="undefined"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const r=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:n,isEnd:a}=t;const l=n,o=a;i===0?(s=0,n=!0,a=!0):(s=(e-t.minTranslate())/i,n=s<=0,a=s>=1),Object.assign(t,{progress:s,isBeginning:n,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),n&&!l&&t.emit("reachBeginning toEdge"),a&&!o&&t.emit("reachEnd toEdge"),(l&&!n||o&&!a)&&t.emit("fromEdge"),t.emit("progress",s)}function updateSlidesClasses(){const e=this,{slides:t,params:r,$wrapperEl:i,activeIndex:s,realIndex:n}=e,a=e.virtual&&r.virtual.enabled;t.removeClass(`${r.slideActiveClass} ${r.slideNextClass} ${r.slidePrevClass} ${r.slideDuplicateActiveClass} ${r.slideDuplicateNextClass} ${r.slideDuplicatePrevClass}`);let l;a?l=e.$wrapperEl.find(`.${r.slideClass}[data-swiper-slide-index="${s}"]`):l=t.eq(s),l.addClass(r.slideActiveClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(r.slideDuplicateActiveClass):i.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(r.slideDuplicateActiveClass));let o=l.nextAll(`.${r.slideClass}`).eq(0).addClass(r.slideNextClass);r.loop&&o.length===0&&(o=t.eq(0),o.addClass(r.slideNextClass));let c=l.prevAll(`.${r.slideClass}`).eq(0).addClass(r.slidePrevClass);r.loop&&c.length===0&&(c=t.eq(-1),c.addClass(r.slidePrevClass)),r.loop&&(o.hasClass(r.slideDuplicateClass)?i.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass):i.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?i.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass):i.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass)),e.emitSlidesClasses()}function updateActiveIndex(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:s,params:n,activeIndex:a,realIndex:l,snapIndex:o}=t;let c=e,u;if(typeof c=="undefined"){for(let f=0;f<i.length;f+=1)typeof i[f+1]!="undefined"?r>=i[f]&&r<i[f+1]-(i[f+1]-i[f])/2?c=f:r>=i[f]&&r<i[f+1]&&(c=f+1):r>=i[f]&&(c=f);n.normalizeSlideIndex&&(c<0||typeof c=="undefined")&&(c=0)}if(s.indexOf(r)>=0)u=s.indexOf(r);else{const f=Math.min(n.slidesPerGroupSkip,c);u=f+Math.floor((c-f)/n.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),c===a){u!==o&&(t.snapIndex=u,t.emit("snapIndexChange"));return}const d=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:u,realIndex:d,previousIndex:a,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function updateClickedSlide(e){const t=this,r=t.params,i=$(e).closest(`.${r.slideClass}`)[0];let s=!1,n;if(i){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===i){s=!0,n=a;break}}if(i&&s)t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt($(i).attr("data-swiper-slide-index"),10):t.clickedIndex=n;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}r.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const update={updateSize,updateSlides,updateAutoHeight,updateSlidesOffset,updateSlidesProgress,updateProgress,updateSlidesClasses,updateActiveIndex,updateClickedSlide};function getSwiperTranslate(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:i,translate:s,$wrapperEl:n}=t;if(r.virtualTranslate)return i?-s:s;if(r.cssMode)return s;let a=getTranslate(n[0],e);return i&&(a=-a),a||0}function setTranslate(e,t){const r=this,{rtlTranslate:i,params:s,$wrapperEl:n,wrapperEl:a,progress:l}=r;let o=0,c=0;const u=0;r.isHorizontal()?o=i?-e:e:c=e,s.roundLengths&&(o=Math.floor(o),c=Math.floor(c)),s.cssMode?a[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-o:-c:s.virtualTranslate||n.transform(`translate3d(${o}px, ${c}px, ${u}
1px)`),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?o:c;let d;const f=r.maxTranslate()-r.minTranslate();f===0?d=0:d=(e-r.minTranslate())/f,d!==l&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function minTranslate(){return-this.snapGrid[0]}function maxTranslate(){return-this.snapGrid[this.snapGrid.length-1]}function translateTo(e=0,t=this.params.speed,r=!0,i=!0,s){const n=this,{params:a,wrapperEl:l}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const o=n.minTranslate(),c=n.maxTranslate();let u;if(i&&e>o?u=o:i&&e<c?u=c:u=e,n.updateProgress(u),a.cssMode){const d=n.isHorizontal();if(t===0)l[d?"scrollLeft":"scrollTop"]=-u;else{if(!n.support.smoothScroll)return animateCSSModeScroll({swiper:n,targetPosition:-u,side:d?"left":"top"}),!0;l.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(n.setTransition(0),n.setTranslate(u),r&&(n.emit("beforeTransitionStart",t,s),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(u),r&&(n.emit("beforeTransitionStart",t,s),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(f){!n||n.destroyed||f.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,r&&n.emit("transitionEnd"))}),n.$wrapperEl[0].addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd))),!0}const translate={getTranslate:getSwiperTranslate,setTranslate,minTranslate,maxTranslate,translateTo};function setTransition(e,t){const r=this;r.params.cssMode||r.$wrapperEl.transition(e),r.emit("setTransition",e,t)}function transitionEmit({swiper:e,runCallbacks:t,direction:r,step:i}){const{activeIndex:s,previousIndex:n}=e;let a=r;if(a||(s>n?a="next":s<n?a="prev":a="reset"),e.emit(`transition${i}`),t&&s!==n){if(a==="reset"){e.emit(`slideResetTransition${i}`);return}e.emit(`slideChangeTransition${i}`),a==="next"?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}function transitionStart(e=!0,t){const r=this,{params:i}=r;i.cssMode||(i.autoHeight&&r.updateAutoHeight(),transitionEmit({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function transitionEnd(e=!0,t){const r=this,{params:i}=r;r.animating=!1,!i.cssMode&&(r.setTransition(0),transitionEmit({swiper:r,runCallbacks:e,direction:t,step:"End"}))}const transition$1={setTransition,transitionStart,transitionEnd};function slideTo(e=0,t=this.params.speed,r=!0,i,s){if(typeof e!="number"&&typeof e!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if(typeof e=="string"){const g=parseInt(e,10);if(!isFinite(g))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=g}const n=this;let a=e;a<0&&(a=0);const{params:l,snapGrid:o,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:y,enabled:m}=n;if(n.animating&&l.preventInteractionOnTransition||!m&&!i&&!s)return!1;const h=Math.min(n.params.slidesPerGroupSkip,a);let b=h+Math.floor((a-h)/n.params.slidesPerGroup);b>=o.length&&(b=o.length-1);const p=-o[b];if(l.normalizeSlideIndex)for(let g=0;g<c.length;g+=1){const _=-Math.floor(p*100),C=Math.floor(c[g]*100),x=Math.floor(c[g+1]*100);typeof c[g+1]!="undefined"?_>=C&&_<x-(x-C)/2?a=g:_>=C&&_<x&&(a=g+1):_>=C&&(a=g)}if(n.initialized&&a!==d&&(!n.allowSlideNext&&p<n.translate&&p<n.minTranslate()||!n.allowSlidePrev&&p>n.translate&&p>n.maxTranslate()&&(d||0)!==a))return!1;a!==(u||0)&&r&&n.emit("beforeSlideChangeStart"),n.updateProgress(p);let v;if(a>d?v="next":a<d?v="prev":v="reset",f&&-p===n.translate||!f&&p===n.translate)return n.updateActiveIndex(a),l.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),l.effect!=="slide"&&n.setTranslate(p),v!=="reset"&&(n.transitionStart(r,v),n.transitionEnd(r,v)),!1;if(l.cssMode){const g=n.isHorizontal(),_=f?p:-p;if(t===0){const C=n.virtual&&n.params.virtual.enabled;C&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),y[g?"scrollLeft":"scrollTop"]=_,C&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._swiperImmediateVirtual=!1})}else{if(!n.support.smoothScroll)return animateCSSModeScroll({swiper:n,targetPosition:_,side:g?"left":"top"}),!0;
1y.scrollTo({[g?"left":"top"]:_,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(p),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,i),n.transitionStart(r,v),t===0?n.transitionEnd(r,v):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(_){!n||n.destroyed||_.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(r,v))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(e=0,t=this.params.speed,r=!0,i){if(typeof e=="string"){const a=parseInt(e,10);if(!isFinite(a))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=a}const s=this;let n=e;return s.params.loop&&(n+=s.loopedSlides),s.slideTo(n,t,r,i)}function slideNext(e=this.params.speed,t=!0,r){const i=this,{animating:s,enabled:n,params:a}=i;if(!n)return i;let l=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(l=Math.max(i.slidesPerViewDynamic("current",!0),1));const o=i.activeIndex<a.slidesPerGroupSkip?1:l;if(a.loop){if(s&&a.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return a.rewind&&i.isEnd?i.slideTo(0,e,t,r):i.slideTo(i.activeIndex+o,e,t,r)}function slidePrev(e=this.params.speed,t=!0,r){const i=this,{params:s,animating:n,snapGrid:a,slidesGrid:l,rtlTranslate:o,enabled:c}=i;if(!c)return i;if(s.loop){if(n&&s.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}const u=o?i.translate:-i.translate;function d(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const f=d(u),y=a.map(b=>d(b));let m=a[y.indexOf(f)-1];if(typeof m=="undefined"&&s.cssMode){let b;a.forEach((p,v)=>{f>=p&&(b=v)}),typeof b!="undefined"&&(m=a[b>0?b-1:b])}let h=0;if(typeof m!="undefined"&&(h=l.indexOf(m),h<0&&(h=i.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(h=h-i.slidesPerViewDynamic("previous",!0)+1,h=Math.max(h,0))),s.rewind&&i.isBeginning){const b=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(b,e,t,r)}return i.slideTo(h,e,t,r)}function slideReset(e=this.params.speed,t=!0,r){const i=this;return i.slideTo(i.activeIndex,e,t,r)}function slideToClosest(e=this.params.speed,t=!0,r,i=.5){const s=this;let n=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,n),l=a+Math.floor((n-a)/s.params.slidesPerGroup),o=s.rtlTranslate?s.translate:-s.translate;if(o>=s.snapGrid[l]){const c=s.snapGrid[l],u=s.snapGrid[l+1];o-c>(u-c)*i&&(n+=s.params.slidesPerGroup)}else{const c=s.snapGrid[l-1],u=s.snapGrid[l];o-c<=(u-c)*i&&(n-=s.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,s.slidesGrid.length-1),s.slideTo(n,e,t,r)}function slideToClickedSlide(){const e=this,{params:t,$wrapperEl:r}=e,i=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex,n;if(t.loop){if(e.animating)return;n=parseInt($(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-i/2||s>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),s=r.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),nextTick$1(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-i?(e.loopFix(),s=r.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),nextTick$1(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}const slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(){const e=this,t=getDocument(),{params:r,$wrapperEl:i}=e,s=i.children().length>0?$(i.children()[0].parentNode):i;s.children(`.${r.slideClass}.${r.slideDuplicateClass}`).remove();let n=s.children(`.${r.slideClass}`);
1if(r.loopFillGroupWithBlank){const o=r.slidesPerGroup-n.length%r.slidesPerGroup;if(o!==r.slidesPerGroup){for(let c=0;c<o;c+=1){const u=$(t.createElement("div")).addClass(`${r.slideClass} ${r.slideBlankClass}`);s.append(u)}n=s.children(`.${r.slideClass}`)}}r.slidesPerView==="auto"&&!r.loopedSlides&&(r.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(r.loopedSlides||r.slidesPerView,10)),e.loopedSlides+=r.loopAdditionalSlides,e.loopedSlides>n.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=n.length);const a=[],l=[];n.each((o,c)=>{$(o).attr("data-swiper-slide-index",c)});for(let o=0;o<e.loopedSlides;o+=1){const c=o-Math.floor(o/n.length)*n.length;l.push(n.eq(c)[0]),a.unshift(n.eq(n.length-c-1)[0])}for(let o=0;o<l.length;o+=1)s.append($(l[o].cloneNode(!0)).addClass(r.slideDuplicateClass));for(let o=a.length-1;o>=0;o-=1)s.prepend($(a[o].cloneNode(!0)).addClass(r.slideDuplicateClass))}function loopFix(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:r,loopedSlides:i,allowSlidePrev:s,allowSlideNext:n,snapGrid:a,rtlTranslate:l}=e;let o;e.allowSlidePrev=!0,e.allowSlideNext=!0;const u=-a[t]-e.getTranslate();t<i?(o=r.length-i*3+t,o+=i,e.slideTo(o,0,!1,!0)&&u!==0&&e.setTranslate((l?-e.translate:e.translate)-u)):t>=r.length-i&&(o=-r.length+t+i,o+=i,e.slideTo(o,0,!1,!0)&&u!==0&&e.setTranslate((l?-e.translate:e.translate)-u)),e.allowSlidePrev=s,e.allowSlideNext=n,e.emit("loopFix")}function loopDestroy(){const e=this,{$wrapperEl:t,params:r,slides:i}=e;t.children(`.${r.slideClass}.${r.slideDuplicateClass},.${r.slideClass}.${r.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}const loop$1={loopCreate,loopFix,loopDestroy};function setGrabCursor(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;r.style.cursor="move",r.style.cursor=e?"grabbing":"grab"}function unsetGrabCursor(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(e,t=this){function r(i){if(!i||i===getDocument()||i===getWindow())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(e);return!s&&!i.getRootNode?null:s||r(i.getRootNode().host)}return r(t)}function onTouchStart(e){const t=this,r=getDocument(),i=getWindow(),s=t.touchEventsData,{params:n,touches:a,enabled:l}=t;if(!l||t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let o=e;o.originalEvent&&(o=o.originalEvent);let c=$(o.target);if(n.touchEventsTarget==="wrapper"&&!c.closest(t.wrapperEl).length||(s.isTouchEvent=o.type==="touchstart",!s.isTouchEvent&&"which"in o&&o.which===3)||!s.isTouchEvent&&"button"in o&&o.button>0||s.isTouched&&s.isMoved)return;const u=!!n.noSwipingClass&&n.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&o.target&&o.target.shadowRoot&&d&&(c=$(d[0]));const f=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,y=!!(o.target&&o.target.shadowRoot);if(n.noSwiping&&(y?closestElement(f,c[0]):c.closest(f)[0])){t.allowClick=!0;return}if(n.swipeHandler&&!c.closest(n.swipeHandler)[0])return;a.currentX=o.type==="touchstart"?o.targetTouches[0].pageX:o.pageX,a.currentY=o.type==="touchstart"?o.targetTouches[0].pageY:o.pageY;const m=a.currentX,h=a.currentY,b=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,p=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(b&&(m<=p||m>=i.innerWidth-p))if(b==="prevent")e.preventDefault();else return;if(Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=h,s.touchStartTime=now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(s.allowThresholdMove=!1),o.type!=="touchstart"){let v=!0;c.is(s.focusableElements)&&(v=!1,c[0].nodeName==="SELECT"&&(s.isTouched=!1)),r.activeElement&&$(r.activeElement).is(s.focusableElements)&&r.activeElement!==c[0]&&r.activeElement.blur();const g=v&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||g)&&!c[0].isContentEditable&&o.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function onTouchMove(e){const t=getDocument(),r=this,i=r.touchEventsData,{params:s,touches:n,rtlTranslate:a,enabled:l}=r;if(!l)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),!i.isTouched){i.startMoving&&i.isScrolling&&r.emit("touchMoveOpposite",o);return}if(i.isTouchEvent&&o.type!=="touchmove")return;const c=o.type==="touchmove"&&o.targetTouches&&(o.targetTouches[0]||o.changedTouches[0]),u=o.type==="touchmove"?c.pageX:o.pageX,d=o.type==="touchmove"?c.pageY:o.pageY;if(o.preventedByNestedSwiper){n.startX=u,n.startY=d;return}if(!r.allowTouchMove){$(o.target).is(i.focusableElements)||(r.allowClick=!1),i.isTouched&&(Object.assign(n,{startX:u,startY:d,currentX:u,currentY:d}),i.touchStartTime=now());return}if(i.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop){if(r.isVertical()){if(d<n.startY&&r.translate<=r.maxTranslate()||d>n.startY&&r.translate>=r.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(u<n.startX&&r.translate<=r.maxTranslate()||u>n.startX&&r.translate>=r.minTranslate())return}if(i.isTouchEvent&&t.activeElement&&o.target===t.activeElement&&$(o.target).is(i.focusableElements)){i.isMoved=!0,r.allowClick=!1;return}if(i.allowTouchCallbacks&&r.emit("touchMove",o),o.targetTouches&&o.targetTouches.length>1)return;n.currentX=u,n.currentY=d;const f=n.currentX-n.startX,y=n.currentY-n.startY;if(r.params.threshold&&Math.sqrt(f**2+y**2)<r.params.threshold)return;if(typeof i.isScrolling=="undefined"){let p;r.isHorizontal()&&n.currentY===n.startY||r.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:f*f+y*y>=25&&(p=Math.atan2(Math.abs(y),Math.abs(f))*180/Math.PI,i.isScrolling=r.isH
1orizontal()?p>s.touchAngle:90-p>s.touchAngle)}if(i.isScrolling&&r.emit("touchMoveOpposite",o),typeof i.startMoving=="undefined"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(i.startMoving=!0),i.isScrolling){i.isTouched=!1;return}if(!i.startMoving)return;r.allowClick=!1,!s.cssMode&&o.cancelable&&o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),i.isMoved||(s.loop&&!s.cssMode&&r.loopFix(),i.startTranslate=r.getTranslate(),r.setTransition(0),r.animating&&r.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,s.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",o)),r.emit("sliderMove",o),i.isMoved=!0;let m=r.isHorizontal()?f:y;n.diff=m,m*=s.touchRatio,a&&(m=-m),r.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;let h=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),m>0&&i.currentTranslate>r.minTranslate()?(h=!1,s.resistance&&(i.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+i.startTranslate+m)**b)):m<0&&i.currentTranslate<r.maxTranslate()&&(h=!1,s.resistance&&(i.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-i.startTranslate-m)**b)),h&&(o.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0)if(Math.abs(m)>s.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,n.diff=r.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{i.currentTranslate=i.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&r.freeMode||s.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),r.params.freeMode&&s.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(i.currentTranslate),r.setTranslate(i.currentTranslate))}function onTouchEnd(e){const t=this,r=t.touchEventsData,{params:i,touches:s,rtlTranslate:n,slidesGrid:a,enabled:l}=t;if(!l)return;let o=e;if(o.originalEvent&&(o=o.originalEvent),r.allowTouchCallbacks&&t.emit("touchEnd",o),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=now(),u=c-r.touchStartTime;if(t.allowClick){const v=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(v&&v[0]||o.target),t.emit("tap click",o),u<300&&c-r.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(r.lastClickTime=now(),nextTick$1(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||s.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let d;if(i.followFinger?d=n?t.translate:-t.translate:d=-r.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}let f=0,y=t.slidesSizesGrid[0];for(let v=0;v<a.length;v+=v<i.slidesPerGroupSkip?1:i.slidesPerGroup){const g=v<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof a[v+g]!="undefined"?d>=a[v]&&d<a[v+g]&&(f=v,y=a[v+g]-a[v]):d>=a[v]&&(f=v,y=a[a.length-1]-a[a.length-2])}let m=null,h=null;i.rewind&&(t.isBeginning?h=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const b=(d-a[f])/y,p=f<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(b>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?m:f+p):t.slideTo(f)),t.swipeDirection==="prev"&&(b>1-i.longSwipesRatio?t.slideTo(f+p):h!==null&&b<0&&Math.abs(b)>i.longSwipesRatio?t.slideTo(h):t.slideTo(f))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(f+p):t.slideTo(f):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:f+p),t.swipeDirection==="prev"&&t.slideTo(h!==null?h:f))}}function onResize(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:n}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function onClick(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function onScroll(){const e=this,{wrapperEl:t,rtlTranslate:r,enabled:i}=e;if(!i)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const n=e.maxTranslate()-e.minTranslate();n===0?s=0:s=(e.translate-e.minTranslate())/n,s!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let dummyEventAttached=!1;function dummyEventListener(){}const events=(e,t)=>{const r=getDocument(),{params:i,touchEvents:s,el:n,wrapperEl:a,device:l,support:o}=e,c=!!i.nested,u=t==="on"?"addEventListener":"removeEventListener",d=t;if(!o.touch)n[u](s.start,e.onTouchStart,!1),r[u](s.move,e.onTouchMove,c),r[u](s.end,e.onTouchEnd,!1);else{const f=s.start==="touchstart"&&o.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;n[u](s.start,e.onTouchStart,f),n[u](s.move,e.onTouchMove,o.passiveListener?{passive:!1,capture:c}:c),n[u](s.end,e.onTouchEnd,f),s.cancel&&n[u](s.cancel,e.onTouchEnd,f)}(i.preventClicks||i.preventClicksPropagation)&&n[u]("click",e.onClick,!0),i.cssMode&&a[u]("scroll",e.onScroll),i.updateOnWindowResize?e[d](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):e[d]("observerUpdate",onResize,!0)};function attachEvents(){const e=this,t=getDocument(),{params:r,support:i}=e;
1e.onTouchStart=onTouchStart.bind(e),e.onTouchMove=onTouchMove.bind(e),e.onTouchEnd=onTouchEnd.bind(e),r.cssMode&&(e.onScroll=onScroll.bind(e)),e.onClick=onClick.bind(e),i.touch&&!dummyEventAttached&&(t.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(e,"on")}function detachEvents(){events(this,"off")}const events$1={attachEvents,detachEvents},isGridEnabled=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function setBreakpoint(){const e=this,{activeIndex:t,initialized:r,loopedSlides:i=0,params:s,$el:n}=e,a=s.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const c=(l in a?a[l]:void 0)||e.originalParams,u=isGridEnabled(e,s),d=isGridEnabled(e,c),f=s.enabled;u&&!d?(n.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&d&&(n.addClass(`${s.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&s.grid.fill==="column")&&n.addClass(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(b=>{const p=s[b]&&s[b].enabled,v=c[b]&&c[b].enabled;p&&!v&&e[b].disable(),!p&&v&&e[b].enable()});const y=c.direction&&c.direction!==s.direction,m=s.loop&&(c.slidesPerView!==s.slidesPerView||y);y&&r&&e.changeDirection(),extend(e.params,c);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!h?e.disable():!f&&h&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),m&&r&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}function getBreakpoint(e,t="window",r){if(!e||t==="container"&&!r)return;let i=!1;const s=getWindow(),n=t==="window"?s.innerHeight:r.clientHeight,a=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const o=parseFloat(l.substr(1));return{value:n*o,point:l}}return{value:l,point:l}});a.sort((l,o)=>parseInt(l.value,10)-parseInt(o.value,10));for(let l=0;l<a.length;l+=1){const{point:o,value:c}=a[l];t==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(i=o):c<=r.clientWidth&&(i=o)}return i||"max"}
1const breakpoints={setBreakpoint,getBreakpoint};function prepareClasses(e,t){const r=[];return e.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(s=>{i[s]&&r.push(t+s)}):typeof i=="string"&&r.push(t+i)}),r}function addClasses(){const e=this,{classNames:t,params:r,rtl:i,$el:s,device:n,support:a}=e,l=prepareClasses(["initialized",r.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:i},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...l),s.addClass([...t].join(" ")),e.emitContainerClasses()}function removeClasses(){const e=this,{$el:t,classNames:r}=e;t.removeClass(r.join(" ")),e.emitContainerClasses()}const classes={addClasses,removeClasses};function loadImage(e,t,r,i,s,n){const a=getWindow();let l;function o(){n&&n()}!$(e).parent("picture")[0]&&(!e.complete||!s)&&t?(l=new a.Image,l.onload=o,l.onerror=o,i&&(l.sizes=i),r&&(l.srcset=r),t&&(l.src=t)):o()}function preloadImages(){const e=this;e.imagesToLoad=e.$el.find("img");function t(){typeof e=="undefined"||e===null||!e||e.destroyed||(e.imagesLoaded!==void 0&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}for(let r=0;r<e.imagesToLoad.length;r+=1){const i=e.imagesToLoad[r];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}const images={loadImage,preloadImages};function checkOverflow(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:i}=r;if(i){const s=e.slides.length-1,n=e.slidesGrid[s]+e.slidesSizesGrid[s]+i*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;r.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),r.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const checkOverflow$1={checkOverflow},defaults={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(e,t){return function(i={}){const s=Object.keys(i)[0],n=i[s];if(typeof n!="object"||n===null){extend(t,i);return}if(["navigation","pagination","scrollbar"].indexOf(s)>
1=0&&e[s]===!0&&(e[s]={auto:!0}),!(s in e&&"enabled"in n)){extend(t,i);return}e[s]===!0&&(e[s]={enabled:!0}),typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),extend(t,i)}}const prototypes={eventsEmitter,update,translate,transition:transition$1,slide,loop:loop$1,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes,images},extendedDefaults={};class Swiper{constructor(...t){let r,i;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?i=t[0]:[r,i]=t,i||(i={}),i=extend({},i),r&&!i.el&&(i.el=r),i.el&&$(i.el).length>1){const l=[];return $(i.el).each(o=>{const c=extend({},i,{el:o});l.push(new Swiper(c))}),l}const s=this;s.__swiper__=!0,s.support=getSupport(),s.device=getDevice({userAgent:i.userAgent}),s.browser=getBrowser(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],i.modules&&Array.isArray(i.modules)&&s.modules.push(...i.modules);const n={};s.modules.forEach(l=>{l({swiper:s,extendParams:moduleExtendParams(i,n),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const a=extend({},defaults,n);return s.params=extend({},a,extendedDefaults,i),s.originalParams=extend({},s.params),s.passedParams=extend({}
1,i),s.params&&s.params.on&&Object.keys(s.params.on).forEach(l=>{s.on(l,s.params.on[l])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=$,Object.assign(s,{enabled:s.params.enabled,el:r,classNames:[],slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:(function(){const o=["touchstart","touchmove","touchend","touchcancel"],c=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:o[0],move:o[1],end:o[2],cancel:o[3]},s.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop})(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,r){const i=this;t=Math.min(Math.max(t,0),1);const s=i.minTranslate(),a=(i.maxTranslate()-s)*t+s;i.translateTo(a,typeof r=="undefined"?0:r),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=t.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",r.join(" "))}getSlideClasses(t){const r=this;return r.destroyed?"":t.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=[];t.slides.each(i=>{const s=t.getSlideClasses(i);r.push({slideEl:i,classNames:s}),t.emit("_slideClass",i,s)}),t.emit("_slideClasses",r)}slidesPerViewDynamic(t="current",r=!1){const i=this,{params:s,slides:n,slidesGrid:a,slidesSizesGrid:l,size:o,activeIndex:c}=i;let u=1;if(s.centeredSlides){let d=n[c].swiperSlideSize,f;for(let y=c+1;y<n.length;y+=1)n[y]&&!f&&(d+=n[y].swiperSlideSize,u+=1,d>o&&(f=!0));for(let y=c-1;y>=0;y-=1)n[y]&&!f&&(d+=n[y].swiperSlideSize,u+=1,d>o&&(f=!0))}else if(t==="current")for(let d=c+1;d<n.length;d+=1)(r?a[d]+l[d]-a[c]<o:a[d]-a[c]<o)&&(u+=1);else for(let d=c-1;d>=0;d-=1)a[c]-a[d]<o&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:r,params:i}=t;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const a=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let n;t.params.freeMode&&t.params.freeMode.enabled?(s(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?n=t.slideTo(t.slides.length-1,0,!1,!0):n=t.slideTo(t.activeIndex,0,!1,!0),n||s()),i.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,r=!0){const i=this,s=i.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.each(n=>{t==="vertical"?n.style.width="":n.style.height=""}),i.emit("changeDirection"),r&&i.update()),i}changeLanguageDirection(t){const r=this;r.rtl&&t==="rtl"||!r.rtl&&t==="ltr"||(r.rtl=t==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.$el.addClass(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.$el.removeClass(`${r.params.containerModifierClass}
1rtl`),r.el.dir="ltr"),r.update())}mount(t){const r=this;if(r.mounted)return!0;const i=$(t||r.params.el);if(t=i[0],!t)return!1;t.swiper=r;const s=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const l=$(t.shadowRoot.querySelector(s()));return l.children=o=>i.children(o),l}return i.children?i.children(s()):$(i).children(s())})();if(a.length===0&&r.params.createElements){const o=getDocument().createElement("div");a=$(o),o.className=r.params.wrapperClass,i.append(o),i.children(`.${r.params.slideClass}`).each(c=>{a.append(c)})}return Object.assign(r,{$el:i,el:t,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:t.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(t.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl"),wrongRTL:a.css("display")==="-webkit-box"}),!0}init(t){const r=this;return r.initialized||r.mount(t)===!1||(r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.params.loop&&r.loopCreate(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.preloadImages&&r.preloadImages(),r.params.loop?r.slideTo(r.params.initialSlide+r.loopedSlides,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.attachEvents(),r.initialized=!0,r.emit("init"),r.emit("afterInit")),r}destroy(t=!0,r=!0){const i=this,{params:s,$el:n,$wrapperEl:a,slides:l}=i;return typeof i.params=="undefined"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),r&&(i.removeClasses(),n.removeAttr("style"),a.removeAttr("style"),l&&l.length&&l.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(o=>{i.off(o)}),t!==!1&&(i.$el[0].swiper=null,deleteProps(i)),i.destroyed=!0),null}static extendDefaults(t){extend(extendedDefaults,t)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(t){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const r=Swiper.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>Swiper.installModule(r)),Swiper):(Swiper.installModule(t),Swiper)}}Object.keys(prototypes).forEach(e=>{Object.keys(prototypes[e]).forEach(t=>{Swiper.prototype[t]=prototypes[e][t]})});Swiper.use([Resize,Observer]);function createElementIfNotDefined(e,t,r,i){const s=getDocument();
1return e.params.createElements&&Object.keys(i).forEach(n=>{if(!r[n]&&r.auto===!0){let a=e.$el.children(`.${i[n]}`)[0];a||(a=s.createElement("div"),a.className=i[n],e.$el.append(a)),r[n]=a,t[n]=a}}),r}function Navigation({swiper:e,extendParams:t,on:r,emit:i}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function s(y){let m;return y&&(m=$(y),e.params.uniqueNavElements&&typeof y=="string"&&m.length>1&&e.$el.find(y).length===1&&(m=e.$el.find(y))),m}function n(y,m){const h=e.params.navigation;y&&y.length>0&&(y[m?"addClass":"removeClass"](h.disabledClass),y[0]&&y[0].tagName==="BUTTON"&&(y[0].disabled=m),e.params.watchOverflow&&e.enabled&&y[e.isLocked?"addClass":"removeClass"](h.lockClass))}function a(){if(e.params.loop)return;const{$nextEl:y,$prevEl:m}=e.navigation;n(m,e.isBeginning&&!e.params.rewind),n(y,e.isEnd&&!e.params.rewind)}function l(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function o(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function c(){const y=e.params.navigation;if(e.params.navigation=createElementIfNotDefined(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;const m=s(y.nextEl),h=s(y.prevEl);m&&m.length>0&&m.on("click",o),h&&h.length>0&&h.on("click",l),Object.assign(e.navigation,{$nextEl:m,nextEl:m&&m[0],$prevEl:h,prevEl:h&&h[0]}),e.enabled||(m&&m.addClass(y.lockClass),h&&h.addClass(y.lockClass))}function u(){const{$nextEl:y,$prevEl:m}=e.navigation;y&&y.length&&(y.off("click",o),y.removeClass(e.params.navigation.disabledClass)),m&&m.length&&(m.off("click",l),m.removeClass(e.params.navigation.disabledClass))}r("init",()=>{e.params.navigation.enabled===!1?f():(c(),a())}),r("toEdge fromEdge lock unlock",()=>{a()}),r("destroy",()=>{u()}),r("enable disable",()=>{const{$nextEl:y,$prevEl:m}=e.navigation;y&&y[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),m&&m[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)}),r("click",(y,m)=>{const{$nextEl:h,$prevEl:b}=e.navigation,p=m.target;if(e.params.navigation.hideOnClick&&!$(p).is(b)&&!$(p).is(h)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===p||e.pagination.el.contains(p)))return;let v;h?v=h.hasClass(e.params.navigation.hiddenClass):b&&(v=b.hasClass(e.params.navigation.hiddenClass)),i(v===!0?"navigationShow":"navigationHide"),h&&h.toggleClass(e.params.navigation.hiddenClass),b&&b.toggleClass(e.params.navigation.hiddenClass)}});const d=()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),a()},f=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),u()};Object.assign(e.navigation,{enable:d,disable:f,update:a,init:c,destroy:u})}function classesToSelector(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination({swiper:e,extendParams:t,on:r,emit:i}){const s="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:h=>h,formatFractionTotal:h=>h,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let n,a=0;function l(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||e.pagination.$el.length===0}function o(h,b){const{bulletActiveClass:p}=e.params.pagination;h[b]().addClass(`${p}-${b}`)[b]().addClass(`${p}-${b}-${b}`)}function c(){const h=e.rtl,b=e.params.pagination;if(l())return;const p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,v=e.pagination.$el;let g;
1const _=e.params.loop?Math.ceil((p-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(g=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),g>p-1-e.loopedSlides*2&&(g-=p-e.loopedSlides*2),g>_-1&&(g-=_),g<0&&e.params.paginationType!=="bullets"&&(g=_+g)):typeof e.snapIndex!="undefined"?g=e.snapIndex:g=e.activeIndex||0,b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const C=e.pagination.bullets;let x,T,M;if(b.dynamicBullets&&(n=C.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),v.css(e.isHorizontal()?"width":"height",`${n*(b.dynamicMainBullets+4)}px`),b.dynamicMainBullets>1&&e.previousIndex!==void 0&&(a+=g-(e.previousIndex-e.loopedSlides||0),a>b.dynamicMainBullets-1?a=b.dynamicMainBullets-1:a<0&&(a=0)),x=Math.max(g-a,0),T=x+(Math.min(C.length,b.dynamicMainBullets)-1),M=(T+x)/2),C.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(R=>`${b.bulletActiveClass}${R}`).join(" ")),v.length>1)C.each(R=>{const L=$(R),k=L.index();k===g&&L.addClass(b.bulletActiveClass),b.dynamicBullets&&(k>=x&&k<=T&&L.addClass(`${b.bulletActiveClass}-main`),k===x&&o(L,"prev"),k===T&&o(L,"next"))});else{const R=C.eq(g),L=R.index();if(R.addClass(b.bulletActiveClass),b.dynamicBullets){const k=C.eq(x),F=C.eq(T);for(let O=x;O<=T;O+=1)C.eq(O).addClass(`${b.bulletActiveClass}-main`);if(e.params.loop)if(L>=C.length){for(let O=b.dynamicMainBullets;O>=0;O-=1)C.eq(C.length-O).addClass(`${b.bulletActiveClass}-main`);C.eq(C.length-b.dynamicMainBullets-1).addClass(`${b.bulletActiveClass}-prev`)}else o(k,"prev"),o(F,"next");else o(k,"prev"),o(F,"next")}}if(b.dynamicBullets){const R=Math.min(C.length,b.dynamicMainBullets+4),L=(n*R-n)/2-M*n,k=h?"right":"left";C.css(e.isHorizontal()?k:"top",`${L}px`)}}if(b.type==="fraction"&&(v.find(classesToSelector(b.currentClass)).text(b.formatFractionCurrent(g+1)),v.find(classesToSelector(b.totalClass)).text(b.formatFractionTotal(_))),b.type==="progressbar"){let C;b.progressbarOpposite?C=e.isHorizontal()?"vertical":"horizontal":C=e.isHorizontal()?"horizontal":"vertical";const x=(g+1)/_;let T=1,M=1;C==="horizontal"?T=x:M=x,v.find(classesToSelector(b.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${T}) scaleY(${M})`).transition(e.params.speed)}b.type==="custom"&&b.renderCustom?(v.html(b.renderCustom(e,g+1,_)),i("paginationRender",v[0])):i("paginationUpdate",v[0]),e.params.watchOverflow&&e.enabled&&v[e.isLocked?"addClass":"removeClass"](b.lockClass)}function u(){const h=e.params.pagination;if(l())return;const b=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.pagination.$el;let v="";if(h.type==="bullets"){let g=e.params.loop?Math.ceil((b-e.loopedSlides*2)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&g>b&&(g=b);for(let _=0;_<g;_+=1)h.renderBullet?v+=h.renderBullet.call(e,_,h.bulletClass):v+=`<${h.bulletElement} class="${h.bulletClass}"></${h.bulletElement}>`;p.html(v),e.pagination.bullets=p.find(classesToSelector(h.bulletClass))}h.type==="fraction"&&(h.renderFraction?v=h.renderFraction.call(e,h.currentClass,h.totalClass):v=`<span class="${h.currentClass}"></span> / <span class="${h.totalClass}"></span>`,p.html(v)),h.type==="progressbar"&&(h.renderProgressbar?v=h.renderProgressbar.call(e,h.progressbarFillClass):v=`<span class="${h.progressbarFillClass}"></span>`,p.html(v)),h.type!=="custom"&&i("paginationRender",e.pagination.$el[0])}function d(){e.params.pagination=createElementIfNotDefined(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const h=e.params.pagination;if(!h.el)return;let b=$(h.el);b.length!==0&&(e.params.uniqueNavElements&&typeof h.el=="string"&&b.length>1&&(b=e.$el.find(h.el),b.length>1&&(b=b.filter(p=>$(p).parents(".swiper")[0]===e.el))),h.type==="bullets"&&h.clickable&&b.addClass(h.clickableClass),b.addClass(h.modifierClass+h.type),b.addClass(e.isHorizontal()?h.horizontalClass:h.verticalClass),h.type==="bullets"&&h.dynamicBullets&&(b.addClass(`${h.modifierClass}${h.type}-dynamic`),a=0,h.dynamicMainBullets<1&&(h.dynamicMainBullets=1)),h.type==="progressbar"&&h.progressbarOpposite&&b.addClass(h.progressbarOppositeClass),h.clickable&&b.on("click",classesToSelector(h.bulletClass),function(v){v.preventDefault();let g=$(this).index()*e.params.slidesPerGroup;e.params.loop&&(g+=e.loopedSlides),e.slideTo(g)}),Object.assign(e.pagination,{$el:b,el:b[0]}),e.enabled||b.addClass(h.lockClass))}function f(){const h=e.params.pagination;if(l())return;const b=e.pagination.$el;b.removeClass(h.hiddenClass),b.removeClass(h.modifierClass+h.type),b.removeClass(e.isHorizontal()?h.horizontalClass:h.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(h.bulletActiveClass),h.clickable&&b.off("click",classesToSelector(h.bulletClass))}r("init",()=>{e.params.pagination.enabled===!1?m():(d(),u(),c())}),r("activeIndexChange",()=>{(e.params.loop||typeof e.snapIndex=="undefined")&&c()}),r("snapIndexChange",()=>{e.params.loop||c()}),r("slidesLengthChange",()=>{e.params.loop&&(u(),c())}),r("snapGridLengthChange",()=>{e.params.loop||(u(),c())}),r("destroy",()=>{f()}),r("enable disable",()=>{const{$el:h}=e.pagination;h&&h[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)}),r("lock unlock",()=>{c()}),r("click",(h,b)=>{const p=b.target,{$el:v}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&v&&v.length>0&&!$(p).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&p===e.navigation.nextEl||e.navigation.prevEl&&p===e.navigation.prevEl))return;const g=v.hasClass(e.params.pagination.hiddenClass);i(g===!0?"paginationShow":"paginationHide"),v.toggleClass(e.params.pagination.hiddenClass)}});const y=()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),d(),u(),c()},m=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),f()};Object.assign(e.pagination,{enable:y,disable:m,render:u,update:c,init:d,destroy:f})}function Autoplay({swiper:e,extendParams:t,on:r,emit:i}){let s;
1e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function n(){if(!e.size){e.autoplay.running=!1,e.autoplay.paused=!1;return}const h=e.slides.eq(e.activeIndex);let b=e.params.autoplay.delay;h.attr("data-swiper-autoplay")&&(b=h.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(s),s=nextTick$1(()=>{let p;e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),p=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?l():(p=e.slideTo(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(p=e.slidePrev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopFix(),p=e.slideNext(e.params.speed,!0,!0),i("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?l():(p=e.slideTo(0,e.params.speed,!0,!0),i("autoplay")):(p=e.slideNext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssMode&&e.autoplay.running||p===!1)&&n()},b)}function a(){return typeof s!="undefined"||e.autoplay.running?!1:(e.autoplay.running=!0,i("autoplayStart"),n(),!0)}function l(){return!e.autoplay.running||typeof s=="undefined"?!1:(s&&(clearTimeout(s),s=void 0),e.autoplay.running=!1,i("autoplayStop"),!0)}function o(h){e.autoplay.running&&(e.autoplay.paused||(s&&clearTimeout(s),e.autoplay.paused=!0,h===0||!e.params.autoplay.waitForTransition?(e.autoplay.paused=!1,n()):["transitionend","webkitTransitionEnd"].forEach(b=>{e.$wrapperEl[0].addEventListener(b,u)})))}function c(){const h=getDocument();h.visibilityState==="hidden"&&e.autoplay.running&&o(),h.visibilityState==="visible"&&e.autoplay.paused&&(n(),e.autoplay.paused=!1)}function u(h){!e||e.destroyed||!e.$wrapperEl||h.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(b=>{e.$wrapperEl[0].removeEventListener(b,u)}),e.autoplay.paused=!1,e.autoplay.running?n():l())}function d(){e.params.autoplay.disableOnInteraction?l():(i("autoplayPause"),o()),["transitionend","webkitTransitionEnd"].forEach(h=>{e.$wrapperEl[0].removeEventListener(h,u)})}function f(){e.params.autoplay.disableOnInteraction||(e.autoplay.paused=!1,i("autoplayResume"),n())}function y(){e.params.autoplay.pauseOnMouseEnter&&(e.$el.on("mouseenter",d),e.$el.on("mouseleave",f))}function m(){e.$el.off("mouseenter",d),e.$el.off("mouseleave",f)}r("init",()=>{e.params.autoplay.enabled&&(a(),getDocument().addEventListener("visibilitychange",c),y())}),r("beforeTransitionStart",(h,b,p)=>{e.autoplay.running&&(p||!e.params.autoplay.disableOnInteraction?e.autoplay.pause(b):l())}),r("sliderFirstMove",()=>{e.autoplay.running&&(e.params.autoplay.disableOnInteraction?l():o())}),r("touchEnd",()=>{e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&n()}),r("destroy",()=>{m(),e.autoplay.running&&l(),getDocument().removeEventListener("visibilitychange",c)}),Object.assign(e.autoplay,{pause:o,run:n,start:a,stop:l})}function Thumb({swiper:e,extendParams:t,on:r}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;e.thumbs={swiper:null};function n(){const o=e.thumbs.swiper;if(!o||o.destroyed)return;const c=o.clickedIndex,u=o.clickedSlide;if(u&&$(u).hasClass(e.params.thumbs.slideThumbActiveClass)||typeof c=="undefined"||c===null)return;let d;if(o.params.loop?d=parseInt($(o.clickedSlide).attr("data-swiper-slide-index"),10):d=c,e.params.loop){let f=e.activeIndex;e.slides.eq(f).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,f=e.activeIndex);const y=e.slides.eq(f).prevAll(`[data-swiper-slide-index="${d}"]`).eq(0).index(),m=e.slides.eq(f).nextAll(`[data-swiper-slide-index="${d}"]`).eq(0).index();typeof y=="undefined"?d=m:typeof m=="undefined"?d=y:m-f<f-y?d=m:d=y}e.slideTo(d)}function a(){const{thumbs:o}=e.params;if(i)return!1;i=!0;const c=e.constructor;if(o.swiper instanceof c)e.thumbs.swiper=o.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(isObject$1(o.swiper)){const u=Object.assign({},o.swiper);Object.assign(u,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(u),s=!0}return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",n),!0}function l(o){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const u=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let d=1;const f=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),c.slides.removeClass(f),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let h=0;h<d;h+=1)c.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+h}"]`).addClass(f);else for(let h=0;h<d;h+=1)c.slides.eq(e.realIndex+h).addClass(f);const y=e.params.thumbs.autoScrollOffset,m=y&&!c.params.loop;if(e.realIndex!==c.realIndex||m){let h=c.activeIndex,b,p;if(c.params.loop){c.slides.eq(h).hasClass(c.params.slideDuplicateClass)&&(c.loopFix(),c._clientLeft=c.$wrapperEl[0].clientLeft,h=c.activeIndex);const v=c.slides.eq(h).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),g=c.slides.eq(h).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();typeof v=="undefined"?b=g:typeof g=="undefined"?b=v:g-h===h-v?b=c.params.slidesPerGroup>
11?g:h:g-h<h-v?b=g:b=v,p=e.activeIndex>e.previousIndex?"next":"prev"}else b=e.realIndex,p=b>e.previousIndex?"next":"prev";m&&(b+=p==="next"?y:-1*y),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(b)<0&&(c.params.centeredSlides?b>h?b=b-Math.floor(u/2)+1:b=b+Math.floor(u/2)-1:b>h&&c.params.slidesPerGroup,c.slideTo(b,o?0:void 0))}}r("beforeInit",()=>{const{thumbs:o}=e.params;!o||!o.swiper||(a(),l(!0))}),r("slideChange update resize observerUpdate",()=>{l()}),r("setTransition",(o,c)=>{const u=e.thumbs.swiper;!u||u.destroyed||u.setTransition(c)}),r("beforeDestroy",()=>{const o=e.thumbs.swiper;!o||o.destroyed||s&&o.destroy()}),Object.assign(e.thumbs,{init:a,update:l})}function effectInit(e){const{effect:t,swiper:r,on:i,setTranslate:s,setTransition:n,overwriteParams:a,perspective:l,recreateShadows:o,getEffectParams:c}=e;i("beforeInit",()=>{if(r.params.effect!==t)return;r.classNames.push(`${r.params.containerModifierClass}${t}`),l&&l()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const d=a?a():{};Object.assign(r.params,d),Object.assign(r.originalParams,d)}),i("setTranslate",()=>{r.params.effect===t&&s()}),i("setTransition",(d,f)=>{r.params.effect===t&&n(f)}),i("transitionEnd",()=>{if(r.params.effect===t&&o){if(!c||!c().slideShadows)return;r.slides.each(d=>{r.$(d).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),o()}});let u;i("virtualUpdate",()=>{r.params.effect===t&&(r.slides.length||(u=!0),requestAnimationFrame(()=>{u&&r.slides&&r.slides.length&&(s(),u=!1)}))})}function effectTarget(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function effectVirtualTransitionEnd({swiper:e,duration:t,transformEl:r,allSlides:i}){const{slides:s,activeIndex:n,$wrapperEl:a}=e;if(e.params.virtualTranslate&&t!==0){let l=!1,o;o=r?s.find(r):s,o.transitionEnd(()=>{if(l||!e||e.destroyed)return;l=!0,e.animating=!1;const c=["webkitTransitionEnd","transitionend"];for(let u=0;u<c.length;u+=1)a.trigger(c[u])})}}function EffectFade({swiper:e,extendParams:t,on:r}){t({fadeEffect:{crossFade:!1,transformEl:null}}),effectInit({effect:"fade",swiper:e,on:r,setTranslate:()=>{const{slides:n}=e,a=e.params.fadeEffect;for(let l=0;l<n.length;l+=1){const o=e.slides.eq(l);let u=-o[0].swiperSlideOffset;e.params.virtualTranslate||(u-=e.translate);let d=0;e.isHorizontal()||(d=u,u=0);const f=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(o[0].progress),0):1+Math.min(Math.max(o[0].progress,-1),0);effectTarget(a,o).css({opacity:f}).transform(`translate3d(${u}px, ${d}px, 0px)`)}},setTransition:n=>{const{transformEl:a}=e.params.fadeEffect;(a?e.slides.find(a):e.slides).transition(n),effectVirtualTransitionEnd({swiper:e,duration:n,transformEl:a,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1,transactionActive=!1;function scheduler(e){queueJob(e)}function startTransaction(){transactionActive=!0}function commitTransaction(){transactionActive=!1,queueFlush()}function queueJob(e){queue.includes(e)||queue.push(e),queueFlush()}function dequeueJob(e){let t=queue.indexOf(e);t!==-1&&t>lastFlushedIndex&&queue.splice(t,1)}function queueFlush(){if(!flushing&&!flushPending){if(transactionActive)return;flushPending=!0,queueMicrotask(flushJobs)}}function flushJobs(){flushPending=!1,flushing=!0;for(let e=0;e<queue.length;e++)queue[e](),lastFlushedIndex=e;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect,release,raw,shouldSchedule=!0;function disableEffectScheduling(e){shouldSchedule=!1,e(),shouldSchedule=!0}function setReactivityEngine(e){reactive=e.reactive,release=e.release,effect=t=>e.effect(t,{scheduler:r=>{shouldSchedule?scheduler(r):r()}}),raw=e.raw}function overrideEffect(e){effect=e}function elementBoundEffect(e){let t=()=>{};return[i=>{let s=effect(i);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(n=>n())}),e._x_effects.add(s),t=()=>{s!==void 0&&(e._x_effects.delete(s),release(s))},s},()=>{t()}]}function watch(e,t){let r=!0,i,s,n=effect(()=>{let a=e(),l=JSON.stringify(a);if(!r&&(typeof a=="object"||a!==i)){let o=typeof i=="object"?JSON.parse(s):i;queueMicrotask(()=>{t(a,o)})}i=a,s=l,r=!1});return()=>release(n)}async function transaction(e){startTransaction();try{await e(),await Promise.resolve()}finally{commitTransaction()}}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(e){onElAddeds.push(e)}function onElRemoved(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,onElRemoveds.push(t))}function onAttributesAdded(e){onAttributeAddeds.push(e)}function onAttributeRemoved(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function cleanupAttributes(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEac
vendor: 25,454 bytes, lines 1-5
1h(([r,i])=>{(t===void 0||t.includes(r))&&(i.forEach(s=>s()),delete e._x_attributeCleanups[r])})}function cleanupElement(e){var t,r;for((t=e._x_effects)==null||t.forEach(dequeueJob);(r=e._x_cleanups)!=null&&r.length;)e._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var queuedMutations=[];function flushObserver(){let e=observer.takeRecords();queuedMutations.push(()=>e.length>0&&onMutate(e));let t=queuedMutations.length;queueMicrotask(()=>{if(queuedMutations.length===t)for(;queuedMutations.length>0;)queuedMutations.shift()()})}function mutateDom(e){if(!currentlyObserving)return e();stopObservingMutations();let t=e();return startObservingMutations(),t}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(e){if(isCollecting){deferredMutations=deferredMutations.concat(e);return}let t=[],r=new Set,i=new Map,s=new Map;for(let n=0;n<e.length;n++)if(!e[n].target._x_ignoreMutationObserver&&(e[n].type==="childList"&&(e[n].removedNodes.forEach(a=>{a.nodeType===1&&a._x_marker&&r.add(a)}),e[n].addedNodes.forEach(a=>{if(a.nodeType===1){if(r.has(a)){r.delete(a);return}a._x_marker||t.push(a)}})),e[n].type==="attributes")){let a=e[n].target,l=e[n].attributeName,o=e[n].oldValue,c=()=>{i.has(a)||i.set(a,[]),i.get(a).push({name:l,value:a.getAttribute(l)})},u=()=>{s.has(a)||s.set(a,[]),s.get(a).push(l)};a.hasAttribute(l)&&o===null?c():a.hasAttribute(l)?(u(),c()):u()}s.forEach((n,a)=>{cleanupAttributes(a,n)}),i.forEach((n,a)=>{onAttributeAddeds.forEach(l=>l(a,n))});for(let n of r)t.some(a=>a.contains(n))||onElRemoveds.forEach(a=>a(n));for(let n of t)n.isConnected&&onElAddeds.forEach(a=>a(n));t=null,r=null,i=null,s=null}function scope(e){return mergeProxies(closestDataStack(e))}function addScopeToNode(e,t,r){return e._x_dataStack=[t,...closestDataStack(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(i=>i!==t)}}function closestDataStack(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?closestDataStack(e.host):e.parentNode?closestDataStack(e.parentNode):[]}function mergeProxies(e){return new Proxy({objects:e},mergeProxyTrap)}function keyInPrototypeChain(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:keyInPrototypeChain(Object.getPrototypeOf(e),t)}var mergeProxyTrap={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?collapseProxies:Reflect.get(e.find(i=>Reflect.has(i,t))||{},t,r)},set({objects:e},t,r,i){let s;for(const a of e)if(s=keyInPrototypeChain(a,t),s)break;s||(s=e[e.length-1]);const n=Object.getOwnPropertyDescriptor(s,t);return n!=null&&n.set&&(n!=null&&n.get)?n.set.call(i,r)||!0:Reflect.set(s,t,r)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function initInterceptors(e){let t=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,r=(i,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([n,{value:a,enumerable:l}])=>{if(l===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let o=s===""?n:`${s}.${n}`;typeof a=="object"&&a!==null&&a._x_interceptor?i[n]=a.initialize(e,o,n):t(a)&&a!==i&&!(a instanceof Element)&&r(a,o)})};return r(e)}function interceptor(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(i,s,n){return e(this.initialValue,()=>get(i,s),a=>set(i,s,a),s,n)}};return t(r),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let s=r.initialize.bind(r);r.initialize=(n,a,l)=>{let o=i.initialize(n,a,l);return r.initialValue=o,s(n,a,l)}}else r.initialValue=i;return r}}function get(e,t){return t.split(".").reduce((r,i)=>r[i],e)}function set(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),set(e[t[0]],t.slice(1),r)}}var magics={};function magic(e,t){magics[e]=t}function injectMagics(e,t){let r=getUtilities(t);return Object.entries(magics).forEach(([i,s])=>{Object.defineProperty(e,`$${i}`,{get(){return s(t,r)},enumerable:!1})}),e}function getUtilities(e){let[t,r]=getElementBoundUtilities(e),i={interceptor,...t};return onElRemoved(e,r),i}function tryCatch(e,t,r,...i){try{return r(...i)}catch(s){handleError(s,e,t)}}function handleError(...e){return errorHandler(...e)}var errorHandler=normalErrorHandler;function setErrorHandler(e){errorHandler=e}function normalErrorHandler(e,t,r=void 0){e=Object.assign(e!=null?e:{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
2
3${r?'Expression: "'+r+`"
4
5`:""}`,t),setTimeout(()=>{throw e},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(e){let t=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let r=e();return shouldAutoEvaluateFunctions=t,r}function evaluate(e,t,r={}){let i;return evaluateLater(e,t)(s=>i=s,r),i}function evaluateLater(...e){return theEvaluatorFunction(...e)}var theEvaluatorFunction=()=>{};function setEvaluator(e){theEvaluatorFunction=e}var theRawEvaluatorFunction;function setRawEvaluator(e){theRawEvaluatorFunction=e}function normalEvaluator(e,t){let r={};injectMagics(r,e);let i=[r,...closestDataStack(e)],s=typeof t=="function"?generateEvaluatorFromFunction(i,t):generateEvaluatorFromString(i,t,e);return tryCatch.bind(null,e,t,s)}function generateEvaluatorFromFunction(e,t){return(r=()=>{},{scope:i={},params:s=[],context:n}={})=>{if(!shouldAutoEvaluateFunctions){runIfTypeOfFunction(r,t,mergeProxies([i,...e]),s);return}let a=t.apply(mergeProxies([i,...e]),s);runIfTypeOfFunction(r,a)}}var evaluatorMemo={};function generateFunctionFromString(e,t){if(evaluatorMemo[e])return evaluatorMemo[e];let r=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,n=(()=>{try{let a=new r(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(a,"name",{value:`[Alpine] ${e}`}),a}catch(a){return handleError(a,t,e),Promise.resolve()}})();return evaluatorMemo[e]=n,n}function generateEvaluatorFromString(e,t,r){let i=generateFunctionFromString(t,r);return(s=()=>{},{scope:n={},params:a=[],context:l}={})=>{i.result=void 0,i.finished=!1;let o=mergeProxies([n,...e]);if(typeof i=="function"){let c=i.call(l,i,o).catch(u=>handleError(u,r,t));i.finished?(runIfTypeOfFunction(s,i.result,o,a,r),i.result=void 0):c.then(u=>{runIfTypeOfFunction(s,u,o,a,r)}).catch(u=>handleError(u,r,t)).finally(()=>i.result=void 0)}}}function runIfTypeOfFunction(e,t,r,i,s){if(shouldAutoEvaluateFunctions&&typeof t=="function"){let n=t.apply(r,i);n instanceof Promise?n.then(a=>runIfTypeOfFunction(e,a,r,i)).catch(a=>handleError(a,s,t)):e(n)}else typeof t=="object"&&t instanceof Promise?t.then(n=>e(n)):e(t)}function evaluateRaw(...e){return theRawEvaluatorFunction(...e)}function normalRawEvaluator(e,t,r={}){var l,o;let i={};injectMagics(i,e);let s=[i,...closestDataStack(e)],n=mergeProxies([(l=r.scope)!=null?l:{},...s]),a=(o=r.params)!=null?o:[];if(t.includes("await")){let c=Object.getPrototypeOf(async function(){}).constructor,u=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;return new c(["scope"],`with (scope) { let __result = ${u}; return __result }`).call(r.context,n)}else{let c=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,d=new Function(["scope"],`with (scope) { let __result = ${c}; return __result }`).call(r.context,n);return typeof d=="function"&&shouldAutoEvaluateFunctions?d.apply(n,a):d}}var prefixAsString="x-";function prefix(e=""){return prefixAsString+e}function setPrefix(e){prefixAsString=e}var directiveHandlers={};function directive(e,t){return directiveHandlers[e]=t,{before(r){if(!directiveHandlers[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}const i=directiveOrder.indexOf(r);directiveOrder.splice(i>=0?i:directiveOrder.indexOf("DEFAULT"),0,e)}}}function directiveExists(e){return Object.keys(directiveHandlers).includes(e)}function directives(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([l,o])=>({name:l,value:o})),a=attributesOnly(n);n=n.map(l=>a.find(o=>o.name===l.name)?{name:`x-bind:${l.name}`,value:`"${l.value}"`}:l),t=t.concat(n)}let i={};return t.map(toTransformedAttributes((n,a)=>i[n]=a)).filter(outNonAlpineAttributes).map(toParsedDirectives(i,r)).sort(byPriority).map(n=>getDirectiveHandler(e,n))}function attributesOnly(e){return Array.from(e).map(toTransformedAttributes()).filter(t=>!outNonAlpineAttributes(t))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(e){isDeferringHandlers=!0;let t=Symbol();currentHandlerStackKey=t,directiveHandlerStacks.set(t,[]);let r=()=>{for(;directiveHandlerStacks.get(t).length;)directiveHandlerStacks.get(t).shift()();directiveHandlerStacks.delete(t)},i=()=>{isDeferringHandlers=!1,r()};e(r),i()}function getElementBoundUtilities(e){let t=[],r=l=>t.push(l),[i,s]=elementBoundEffect(e);return t.push(s),[{Alpine:alpine_default,effect:i,cleanup:r,evaluateLater:evaluateLater.bind(evaluateLater,e),evaluate:evaluate.bind(evaluate,e)},()=>t.forEach(l=>l())]}function getDirectiveHandler(e,t){let r=()=>{},i=directiveHandlers[t.type]||r,[s,n]=getElementBoundUtilities(e);onAttributeRemoved(e,t.original,n);let a=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,s),i=i.bind(i,e,t,s),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(i):i())};return a.runCleanups=n,a}var startingWith=(e,t)=>({name:r,value:i})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:i}),into=e=>e;function toTransformedAttributes(e=()=>{}){return({name:t,value:r})=>{let{name:i,value:s}=attributeTransformers.reduce((n,a)=>a(n),{name:t,value:r});return i!==t&&e(i,t),{name:i,value:s}}}var attributeTransformers=[];function mapAttributes(e){attributeTransformers.push(e)}function outNonAlpineAttributes({name:e}){return alpineAttributeRegex().test(e)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(e,t){return({name:r,value:i})=>{r===i&&(i="");let s=r.match(alpineAttributeRegex()),n=r.match(/:([a-zA-Z0-9\-_:]+)/),a=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],l=t||e[r]||r;return{type:s?s[1]:null,value:n?n[1]:null,modifiers:a.map(o=>o.replace(".","")),expression:i,original:l}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(e,t){let r=directiveOrder.indexOf(e.type)===-1?DEFAULT:e.type,i=directiveOrder.indexOf(t.type)===-1?DEFAULT:t.type;return directiveOrder.indexOf(r)-directiveOrder.indexOf(i)}function dispatch(e,t,r={},i={}){return e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...i}))}function walk(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(s=>walk(s,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let i=e.firstElementChild;for(;i;)walk(i,t),i=i.nextElementSibling}function warn(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var started=!1;function start(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(t=>initTree(t,walk)),onElRemoved(t=>destroyTree(t)),onAttributesAdded((t,r)=>{directives(t,r).forEach(i=>i())});let e=t=>!closestRoot(t.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(e).forEach(t=>{initTree(t)}),dispatch(document,"alpine:initialized"),setTimeout(()=>{warnAboutMissingPlugins()})}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(e=>e())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(e=>e())}function addRootSelector(e){rootSelectorCallbacks.push(e)}function addInitSelector(e){initSelectorCallbacks.push(e)}function closestRoot(e,t=!1){return findClosest(e,r=>{if((t?allSelectors():rootSelectors()).some(s=>r.matches(s)))return!0})}function findClosest(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return findClosest(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return findClosest(e.parentNode.host,t);if(e.parentElement)return findClosest(e.parentElement,t)}}function isRoot(e){return rootSelectors().some(t=>e.matches(t))}var initInterceptors2=[];function interceptInit(e){initInterceptors2.push(e)}var markerDispenser=1;function initTree(e,t=walk,r=()=>{}){findClosest(e,i=>i._x_ignore)||deferHandlingDirectives(()=>{t(e,(i,s)=>{i._x_marker||(r(i,s),initInterceptors2.forEach(n=>n(i,s)),directives(i,i.attributes).forEach(n=>n()),i._x_ignore||(i._x_marker=markerDispenser++),i._x_ignore&&s())})})}function destroyTree(e,t=walk){t(e,r=>{cleanupElement(r),cleanupAttributes(r),delete r._x_marker})}function warnAboutMissingPlugins(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,r,i])=>{directiveExists(r)||i.some(s=>{if(document.querySelector(s))return warn(`found "${s}", but missing ${t} plugin`),!0})})}var tickStack=[],isHolding=!1;function nextTick(e=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(t=>{tickStack.push(()=>{e(),t()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(e,t){return Array.isArray(t)?setClassesFromString(e,t.join(" ")):typeof t=="object"&&t!==null?setClassesFromObject(e,t):typeof t=="function"?setClasses(e,t()):setClassesFromString(e,t)}function splitClasses(e){return e.split(/\s/).filter(Boolean)}function setClassesFromString(e,t){let r=s=>splitClasses(s).filter(n=>!e.classList.contains(n)).filter(Boolean),i=s=>(e.classList.add(...s),()=>{e.classList.remove(...s)});return t=t===!0?t="":t||"",i(r(t))}function setClassesFromObject(e,t){let r=Object.entries(t).flatMap(([a,l])=>l?splitClasses(a):!1).filter(Boolean),i=Object.entries(t).flatMap(([a,l])=>l?!1:splitClasses(a)).filter(Boolean),s=[],n=[];return i.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),n.push(a))}),r.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),s.push(a))}),()=>{n.forEach(a=>e.classList.add(a)),s.forEach(a=>e.classList.remove(a))}}function setStyles(e,t){return typeof t=="object"&&t!==null?setStylesFromObject(e,t):setStylesFromString(e,t)}function setStylesFromObject(e,t){let r={};return Object.entries(t).forEach(([i,s])=>{r[i]=e.style[i],i.startsWith("--")||(i=kebabCase(i)),e.style.setProperty(i,s)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{setStyles(e,r)}}function setStylesFromString(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function kebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}directive("transition",(e,{value:t,modifiers:r,expression:i},{evaluate:s})=>{typeof i=="function"&&(i=s(i)),i!==!1&&(!i||typeof i=="boolean"?registerTransitionsFromHelper(e,r,t):registerTransitionsFromClassString(e,i,t))});function registerTransitionsFromClassString(e,t,r){registerTransitionObject(e,setClasses,""),{enter:s=>{e._x_transition.enter.during=s},"enter-start":s=>{e._x_transition.enter.start=s},"enter-end":s=>{e._x_transition.enter.end=s},leave:s=>{e._x_transition.leave.during=s},"leave-start":s=>{e._x_transition.leave.start=s},"leave-end":s=>{e._x_transition.leave.end=s}}[r](t)}function registerTransitionsFromHelper(e,t,r){registerTransitionObject(e,setStyles);let i=!t.includes("in")&&!t.includes("out")&&!r,s=i||t.includes("in")||["enter"].includes(r),n=i||t.includes("out")||["leave"].includes(r);t.includes("in")&&!i&&(t=t.filter((p,v)=>v<t.indexOf("out"))),t.includes("out")&&!i&&(t=t.filter((p,v)=>v>t.indexOf("out")));let a=!t.includes("opacity")&&!t.includes("scale"),l=a||t.includes("opacity"),o=a||t.includes("scale"),c=l?0:1,u=o?modifierValue(t,"scale",95)/100:1,d=modifierValue(t,"delay",0)/1e3,f=modifierValue(t,"origin","center"),y="opacity, transform",m=modifierValue(t,"duration",150)/1e3,h=modifierValue(t,"duration",75)/1e3,b="cubic-bezier(0.4, 0.0, 0.2, 1)";s&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:y,transitionDuration:`${m}s`,transitionTimingFunction:b},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),n&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:y,transitionDuration:`${h}s`,transitionTimingFunction:b},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function registerTransitionObject(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(i=()=>{},s=()=>{}){transition(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,s)},out(i=()=>{},s=()=>{}){transition(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,s)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,i){const s=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let n=()=>s(r);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):n():e._x_transition?e._x_transition.in(r):n();return}e._x_hidePromise=e._x_transition?new Promise((a,l)=>{e._x_transition.out(()=>{},()=>a(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>l({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let a=closestHide(e);a?(a._x_hideChildren||(a._x_hideChildren=[]),a._x_hideChildren.push(e)):s(()=>{let l=o=>{let c=Promise.all([o._x_hidePromise,...(o._x_hideChildren||[]).map(l)]).then(([u])=>u==null?void 0:u());return delete o._x_hidePromise,delete o._x_hideChildren,c};l(e).catch(o=>{if(!o.isFromCancelledTransition)throw o})})})};function closestHide(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:closestHide(t)}function transition(e,t,{during:r,start:i,end:s}={},n=()=>{},a=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(i).length===0&&Object.keys(s).length===0){n(),a();return}let l,o,c;performTransition(e,{start(){l=t(e,i)},during(){o=t(e,r)},before:n,end(){l(),c=t(e,s)},after:a,cleanup(){o(),c()}})}function performTransition(e,t){let r,i,s,n=once(()=>{mutateDom(()=>{r=!0,i||t.before(),s||(t.end(),releaseNextTicks()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(a){this.beforeCancels.push(a)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();n()}),finish:n},mutateDom(()=>{t.start(),t.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(r)return;let a=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,l=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;a===0&&(a=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),mutateDom(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{r||(mutateDom(()=>{t.end()}),releaseNextTicks(),setTimeout(e._x_transitioning.finish,a+l),s=!0)})})}function modifierValue(e,t,r){if(e.indexOf(t)===-1)return r;const i=e[e.indexOf(t)+1];if(!i||t==="scale"&&isNaN(i))return r;if(t==="duration"||t==="delay"){let s=i.match(/([0-9]+)ms/);if(s)return s[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}var isCloning=!1;function skipDuringClone(e,t=()=>{}){return(...r)=>isCloning?t(...r):e(...r)}function onlyDuringClone(e){return(...t)=>isCloning&&e(...t)}var interceptors=[];function interceptClone(e){interceptors.push(e)}function cloneNode(e,t){interceptors.forEach(r=>r(e,t)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(t,(r,i)=>{i(r,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(t)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(e){let t=!1;initTree(e,(i,s)=>{walk(i,(n,a)=>{if(t&&isRoot(n))return a();t=!0,s(n,a)})})}function dontRegisterReactiveSideEffects(e){let t=effect;overrideEffect((r,i)=>{let s=t(r);return release(s),()=>{}}),e(),overrideEffect(t)}function bind(e,t,r,i=[]){switch(e._x_bindings||(e._x_bindings=reactive({})),e._x_bindings[t]=r,t=i.includes("camel")?camelCase(t):t,t){case"value":bindInputValue(e,r);break;case"style":bindStyles(e,r);break;case"class":bindClasses(e,r);break;case"selected":case"checked":bindAttributeAndProperty(e,t,r);break;default:bindAttribute(e,t,r);break}}function bindInputValue(e,t){if(isRadio(e))e.attributes.value===void 0&&(e.value=t);else if(isCheckbox(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>checkedAttrLooseCompare(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")updateSelect(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function bindClasses(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=setClasses(e,t)}function bindStyles(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=setStyles(e,t)}function bindAttributeAndProperty(e,t,r){bindAttribute(e,t,r),setPropertyIfChanged(e,t,r)}function bindAttribute(e,t,r){[null,void 0,!1].includes(r)&&attributeShouldntBePreservedIfFalsy(t)?e.removeAttribute(t):(isBooleanAttr(t)&&(r=t),setIfChanged(e,t,r))}function setIfChanged(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function setPropertyIfChanged(e,t,r){e[t]!==r&&(e[t]=r)}function updateSelect(e,t){const r=[].concat(t).map(i=>i+"");Array.from(e.options).forEach(i=>{i.selected=r.includes(i.value)})}function camelCase(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function checkedAttrLooseCompare(e,t){return e==t}function safeParseBoolean(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var booleanAttributes=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 isBooleanAttr(e){return booleanAttributes.has(e)}function attributeShouldntBePreservedIfFalsy(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function getBinding(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:getAttributeBinding(e,t,r)}function extractProp(e,t,r,i=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let s=e._x_inlineBindings[t];return s.extract=i,dontAutoEvaluateFunctions(()=>evaluate(e,s.expression))}return getAttributeBinding(e,t,r)}function getAttributeBinding(e,t,r){let i=e.getAttribute(t);return i===null?typeof r=="function"?r():r:i===""?!0:isBooleanAttr(t)?!![t,"true"].includes(i):i}function isCheckbox(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function isRadio(e){return e.type==="radio"||e.localName==="ui-radio"}function debounce$1(e,t){let r;return function(){const i=this,s=arguments,n=function(){r=null,e.apply(i,s)};clearTimeout(r),r=setTimeout(n,t)}}function throttle(e,t){let r;return function(){let i=this,s=arguments;r||(e.apply(i,s),r=!0,setTimeout(()=>r=!1,t))}}function entangle({get:e,set:t},{get:r,set:i}){let s=!0,n,a=effect(()=>{let l=e(),o=r();if(s)i(cloneIfObject(l)),s=!1;else{let c=JSON.stringify(l),u=JSON.stringify(o);c!==n?i(cloneIfObject(l)):c!==u&&t(cloneIfObject(o))}n=JSON.stringify(e()),JSON.stringify(r())});return()=>{release(a)}}function cloneIfObject(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}
5function plugin(e){(Array.isArray(e)?e:[e]).forEach(r=>r(alpine_default))}var stores={},isReactive=!1;function store(e,t){if(isReactive||(stores=reactive(stores),isReactive=!0),t===void 0)return stores[e];stores[e]=t,initInterceptors(stores[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&stores[e].init()}function getStores(){return stores}var binds={};function bind2(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?applyBindingsObject(e,r()):(binds[e]=r,()=>{})}function injectBindingProviders(e){return Object.entries(binds).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...i)=>r(...i)}})}),e}function applyBindingsObject(e,t,r){let i=[];for(;i.length;)i.pop()();let s=Object.entries(t).map(([a,l])=>({name:a,value:l})),n=attributesOnly(s);return s=s.map(a=>n.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),directives(e,s,r).map(a=>{i.push(a.runCleanups),a()}),()=>{for(;i.length;)i.pop()()}}var datas={};function data(e,t){datas[e]=t}function injectDataProviders(e,t){return Object.entries(datas).forEach(([r,i])=>{Object.defineProperty(e,r,{get(){return(...s)=>i.bind(t)(...s)},enumerable:!1})}),e}var Alpine={get reactive(){return reactive},get release(){return release},get effect(){return effect},get raw(){return raw},get transaction(){return transaction},version:"3.15.12",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,setErrorHandler,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,initInterceptors,injectMagics,setEvaluator,setRawEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive,entangle,throttle,debounce:debounce$1,evaluate,evaluateRaw,initTree,nextTick,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start,clone,cloneNode,bound:getBinding,$data:scope,watch,walk,data,bind:bind2},alpine_default=Alpine;function makeMap(e,t){const r=Object.create(null),i=e.split(",");for(let s=0;s<i.length;s++)r[i[s]]=!0;return s=>!!r[s]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isString=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject=e=>e!==null&&typeof e=="object",objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cacheStringFunction=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),hasChanged=(e,t)=>e!==t&&(e===e||t===t),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(e){return e&&e._isEffect===!0}function effect2(e,t=EMPTY_OBJ){isEffect(e)&&(e=e.raw);const r=createReactiveEffect(e,t);return t.lazy||r(),r}function stop(e){e.active&&(cleanup(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var uid=0;function createReactiveEffect(e,t){const r=function(){if(!r.active)return e();if(!effectStack.includes(r)){cleanup(r);try{return enableTracking(),effectStack.push(r),activeEffect=r,e()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return r.id=uid++,r.allowRecurse=!!t.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=t,r}function cleanup(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function track(e,t,r){if(!shouldTrack||activeEffect===void 0)return;let i=targetMap.get(e);i||targetMap.set(e,i=new Map);let s=i.get(r);s||i.set(r,s=new Set),s.has(activeEffect)||(s.add(activeEffect),activeEffect.deps.push(s),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:e,type:t,key:r}))}function trigger(e,t,r,i,s,n){const a=targetMap.get(e);if(!a)return;const l=new Set,o=u=>{u&&u.forEach(d=>{(d!==activeEffect||d.allowRecurse)&&l.add(d)})};
5if(t==="clear")a.forEach(o);else if(r==="length"&&isArray(e))a.forEach((u,d)=>{(d==="length"||d>=i)&&o(u)});else switch(r!==void 0&&o(a.get(r)),t){case"add":isArray(e)?isIntegerKey(r)&&o(a.get("length")):(o(a.get(ITERATE_KEY)),isMap(e)&&o(a.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(e)||(o(a.get(ITERATE_KEY)),isMap(e)&&o(a.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&o(a.get(ITERATE_KEY));break}const c=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:e,key:r,type:t,newValue:i,oldValue:s,oldTarget:n}),u.options.scheduler?u.options.scheduler(u):u()};l.forEach(c)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(isSymbol)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const i=toRaw(this);for(let n=0,a=this.length;n<a;n++)track(i,"get",n+"");const s=i[t](...r);return s===-1||s===!1?i[t](...r.map(toRaw)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){pauseTracking();const i=toRaw(this)[t].apply(this,r);return resetTracking(),i}}),e}function createGetter(e=!1,t=!1){return function(i,s,n){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_raw"&&n===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(i))return i;const a=isArray(i);if(!e&&a&&hasOwn(arrayInstrumentations,s))return Reflect.get(arrayInstrumentations,s,n);const l=Reflect.get(i,s,n);return(isSymbol(s)?builtInSymbols.has(s):isNonTrackableKeys(s))||(e||track(i,"get",s),t)?l:isRef(l)?!a||!isIntegerKey(s)?l.value:l:isObject(l)?e?readonly(l):reactive2(l):l}}var set2=createSetter();function createSetter(e=!1){return function(r,i,s,n){let a=r[i];if(!e&&(s=toRaw(s),a=toRaw(a),!isArray(r)&&isRef(a)&&!isRef(s)))return a.value=s,!0;const l=isArray(r)&&isIntegerKey(i)?Number(i)<r.length:hasOwn(r,i),o=Reflect.set(r,i,s,n);return r===toRaw(n)&&(l?hasChanged(s,a)&&trigger(r,"set",i,s,a):trigger(r,"add",i,s)),o}}function deleteProperty(e,t){const r=hasOwn(e,t),i=e[t],s=Reflect.deleteProperty(e,t);return s&&r&&trigger(e,"delete",t,void 0,i),s}function has(e,t){const r=Reflect.has(e,t);return(!isSymbol(t)||!builtInSymbols.has(t))&&track(e,"has",t),r}function ownKeys(e){return track(e,"iterate",isArray(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}var mutableHandlers={get:get2,set:set2,deleteProperty,has,ownKeys},readonlyHandlers={get:readonlyGet,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},toReactive=e=>isObject(e)?reactive2(e):e,toReadonly=e=>isObject(e)?readonly(e):e,toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get$1(e,t,r=!1,i=!1){e=e.__v_raw;const s=toRaw(e),n=toRaw(t);t!==n&&!r&&track(s,"get",t),!r&&track(s,"get",n);const{has:a}=getProto(s),l=i?toShallow:r?toReadonly:toReactive;if(a.call(s,t))return l(e.get(t));if(a.call(s,n))return l(e.get(n));e!==s&&e.get(t)}function has$1(e,t=!1){const r=this.__v_raw,i=toRaw(r),s=toRaw(e);return e!==s&&!t&&track(i,"has",e),!t&&track(i,"has",s),e===s?r.has(e):r.has(e)||r.has(s)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);const r=toRaw(this),{has:i,get:s}=getProto(r);let n=i.call(r,e);n?checkIdentityKeys(r,i,e):(e=toRaw(e),n=i.call(r,e));const a=s.call(r,e);return r.set(e,t),n?hasChanged(t,a)&&trigger(r,"set",e,t,a):trigger(r,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:r,get:i}=getProto(t);let s=r.call(t,e);s?checkIdentityKeys(t,r,e):(e=toRaw(e),s=r.call(t,e));const n=i?i.call(t,e):void 0,a=t.delete(e);return s&&trigger(t,"delete",e,void 0,n),a}function clear(){const e=toRaw(this),t=e.size!==0,r=isMap(e)?new Map(e):new Set(e),i=e.clear();return t&&trigger(e,"clear",void 0,void 0,r),i}function createForEach(e,t){return function(i,s){const n=this,a=n.__v_raw,l=toRaw(a),o=t?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",ITERATE_KEY),a.forEach((c,u)=>i.call(s,o(c),o(u),n))}}function createIterableMethod(e,t,r){return function(...i){const s=this.__v_raw,n=toRaw(s),a=isMap(n),l=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,c=s[e](...i),u=r?toShallow:t?toReadonly:toReactive;return!t&&track(n,"iterate",o?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${capitalize(e)} operation ${r}failed: target is readonly.`,toRaw(this))}return e==="delete"?!1:this}}function createInstrumentations(){const e={get(n){return get$1(this,n)},get size(){return size(this)}
5,has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(n){return get$1(this,n,!1,!0)},get size(){return size(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},r={get(n){return get$1(this,n,!0)},get size(){return size(this,!0)},has(n){return has$1.call(this,n,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},i={get(n){return get$1(this,n,!0,!0)},get size(){return size(this,!0)},has(n){return has$1.call(this,n,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=createIterableMethod(n,!1,!1),r[n]=createIterableMethod(n,!0,!1),t[n]=createIterableMethod(n,!1,!0),i[n]=createIterableMethod(n,!0,!0)}),[e,r,t,i]}var[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const r=e?readonlyInstrumentations:mutableInstrumentations;return(i,s,n)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(hasOwn(r,s)&&s in i?r:i,s,n)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0)};function checkIdentityKeys(e,t,r){const i=toRaw(r);if(i!==r&&t.call(e,i)){const s=toRawType(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" 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 reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive2(e){return e&&e.__v_isReadonly?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,r,i,s){if(!isObject(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=s.get(e);if(n)return n;const a=getTargetType(e);if(a===0)return e;const l=new Proxy(e,a===2?i:r);return s.set(e,l),l}function toRaw(e){return e&&toRaw(e.__v_raw)||e}function isRef(e){return!!(e&&e.__v_isRef===!0)}magic("nextTick",()=>nextTick);magic("dispatch",e=>dispatch.bind(dispatch,e));magic("watch",(e,{evaluateLater:t,cleanup:r})=>(i,s)=>{let n=t(i),l=watch(()=>{let o;return n(c=>o=c),o},s);r(l)});magic("store",getStores);magic("data",e=>scope(e));magic("root",e=>closestRoot(e));magic("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=mergeProxies(getArrayOfRefObject(e))),e._x_refs_proxy));function getArrayOfRefObject(e){let t=[];return findClosest(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var globalIdMemo={};function findAndIncrementId(e){return globalIdMemo[e]||(globalIdMemo[e]=0),++globalIdMemo[e]}function closestIdRoot(e,t){return findClosest(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function setIdRoot(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=findAndIncrementId(t))}magic("id",(e,{cleanup:t})=>(r,i=null)=>{let s=`${r}${i?`-${i}`:""}`;return cacheIdByNameOnElement(e,s,t,()=>{let n=closestIdRoot(e,r),a=n?n._x_ids[r]:findAndIncrementId(r);return i?`${r}-${a}-${i}`:`${r}-${a}`})});interceptClone((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function cacheIdByNameOnElement(e,t,r,i){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let s=i();return e._x_id[t]=s,r(()=>{delete e._x_id[t]}),s}magic("el",e=>e);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(e,t,r){magic(t,i=>warn(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,i))}directive("modelable",(e,{expression:t},{effect:r,evaluateLater:i,cleanup:s})=>{let n=i(t),a=()=>{let u;return n(d=>u=d),u},l=i(`${t} = __placeholder`),o=u=>l(()=>{},{scope:{__placeholder:u}}),c=a();o(c),queueMicrotask(()=>
vendor: 13,565 bytes, line 5
5{if(!e._x_model)return;e._x_removeModelListeners.default();let u=e._x_model.get,d=e._x_model.setWithModifiers,f=entangle({get(){return u()},set(y){d(y)}},{get(){return a()},set(y){o(y)}});s(f)})});directive("teleport",(e,{modifiers:t,expression:r},{cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",e);let s=getTarget(r),n=e.content.cloneNode(!0).firstElementChild;e._x_teleport=n,n._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),n.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(l=>{n.addEventListener(l,o=>{o.stopPropagation(),e.dispatchEvent(new o.constructor(o.type,o))})}),addScopeToNode(n,{},e);let a=(l,o,c)=>{c.includes("prepend")?o.parentNode.insertBefore(l,o):c.includes("append")?o.parentNode.insertBefore(l,o.nextSibling):o.appendChild(l)};mutateDom(()=>{skipDuringClone(()=>{a(n,s,t),initTree(n)})()}),e._x_teleportPutBack=()=>{let l=getTarget(r);mutateDom(()=>{a(e._x_teleport,l,t)})},i(()=>mutateDom(()=>{n.remove(),destroyTree(n)}))});var teleportContainerDuringClone=document.createElement("div");function getTarget(e){let t=skipDuringClone(()=>document.querySelector(e),()=>teleportContainerDuringClone)();return t||warn(`Cannot find x-teleport element for selector: "${e}"`),t}var handler=()=>{};handler.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((e,{expression:t},{effect:r})=>{r(evaluateLater(e,t))}));function on(e,t,r,i){let s=e,n=o=>i(o),a={},l=(o,c)=>u=>c(o,u);return r.includes("dot")&&(t=dotSyntax(t)),r.includes("camel")&&(t=camelCase2(t)),r.includes("capture")&&(a.capture=!0),r.includes("window")&&(s=window),r.includes("document")&&(s=document),r.includes("passive")&&(a.passive=r[r.indexOf("passive")+1]!=="false"),n=addDebounceOrThrottle(r,n),r.includes("prevent")&&(n=l(n,(o,c)=>{c.preventDefault(),o(c)})),r.includes("stop")&&(n=l(n,(o,c)=>{c.stopPropagation(),o(c)})),r.includes("once")&&(n=l(n,(o,c)=>{o(c),s.removeEventListener(t,n,a)})),(r.includes("away")||r.includes("outside"))&&(s=document,n=l(n,(o,c)=>{e.contains(c.target)||c.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&o(c))})),r.includes("self")&&(n=l(n,(o,c)=>{c.target===e&&o(c)})),t==="submit"&&(n=l(n,(o,c)=>{c.target._x_pendingModelUpdates&&c.target._x_pendingModelUpdates.forEach(u=>u()),o(c)})),(isKeyEvent(t)||isClickEvent(t))&&(n=l(n,(o,c)=>{isListeningForASpecificKeyThatHasntBeenPressed(c,r)||o(c)})),s.addEventListener(t,n,a),()=>{s.removeEventListener(t,n,a)}}function addDebounceOrThrottle(e,t){if(e.includes("debounce")){let r=e[e.indexOf("debounce")+1]||"invalid-wait",i=isNumeric(r.split("ms")[0])?Number(r.split("ms")[0]):250;t=debounce$1(t,i)}if(e.includes("throttle")){let r=e[e.indexOf("throttle")+1]||"invalid-wait",i=isNumeric(r.split("ms")[0])?Number(r.split("ms")[0]):250;t=throttle(t,i)}return t}function dotSyntax(e){return e.replace(/-/g,".")}function camelCase2(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function isNumeric(e){return!Array.isArray(e)&&!isNaN(e)}function kebabCase2(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(e){return["keydown","keyup"].includes(e)}function isClickEvent(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function isListeningForASpecificKeyThatHasntBeenPressed(e,t){let r=t.filter(n=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(n));if(r.includes("debounce")){let n=r.indexOf("debounce");r.splice(n,isNumeric((r[n+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let n=r.indexOf("throttle");r.splice(n,isNumeric((r[n+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&keyToModifiers(e.key).includes(r[0]))return!1;const s=["ctrl","shift","alt","meta","cmd","super"].filter(n=>r.includes(n));return r=r.filter(n=>!s.includes(n)),!(s.length>0&&s.filter(a=>((a==="cmd"||a==="super")&&(a="meta"),e[`${a}Key`])).length===s.length&&(isClickEvent(e.type)||keyToModifiers(e.key).includes(r[0])))}function keyToModifiers(e){if(!e)return[];e=kebabCase2(e);let t={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 t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}directive("model",(e,{modifiers:t,expression:r},{effect:i,cleanup:s})=>{let n=e;t.includes("parent")&&(n=findClosest(e,h=>h!==e));let a=evaluateLater(n,r),l;typeof r=="string"?l=evaluateLater(n,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?l=evaluateLater(n,`${r()} = __placeholder`):l=()=>{};let o=()=>{let h;return a(b=>h=b),isGetterSetter(h)?h.get():h},c=h=>{let b;a(p=>b=p),isGetterSetter(b)?b.set(h):l(()=>{},{scope:{__placeholder:h}})};typeof r=="string"&&e.type==="radio"&&mutateDom(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});let u=t.includes("change")||t.includes("lazy"),d=t.includes("blur"),f=t.includes("enter"),y=u||d||f,m;if(isCloning)m=()=>{};else if(y){let h=[],b=p=>c(getInputValue(e,t,p,o()));if(u&&h.push(on(e,"change",t,b)),d&&(h.push(on(e,"blur",t,b)),e.form)){let p=e.form,v=()=>b({target:e});p._x_pendingModelUpdates||(p._x_pendingModelUpdates=[]),p._x_pendingModelUpdates.push(v),s(()=>{p._x_pendingModelUpdates&&p._x_pendingModelUpdates.splice(p._x_pendingModelUpdates.indexOf(v),1)})}f&&h.push(on(e,"keydown",t,p=>{p.key==="Enter"&&b(p)})),m=()=>h.forEach(p=>p())}else{let h=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";m=on(e,h,t,b=>{c(getInputValue(e,t,b,o()))})}if(t.includes("fill")&&([void 0,null,""].includes(o())||isCheckbox(e)&&Array.isArray(o())||e.tagName.toLowerCase()==="select"&&e.multiple)&&c(getInputValue(e,t,{target:e},o())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=m,s(()=>e._x_removeModelListeners.default()),e.form){let h=on(e.form,"reset",[],b=>{nextTick(()=>e._x_model&&e._x_model.set(getInputValue(e,t,{target:e},o())))});s(()=>h())}e._x_model={get(){return o()},set(h){c(h)},setWithModifiers:addDebounceOrThrottle(t,c)},e._x_forceModelUpdate=h=>{h===void 0&&typeof r=="string"&&r.match(/\./)&&(h=""),mutateDom(()=>{isCheckbox(e)?Array.isArray(h)?e.checked=h.some(b=>b==e.value):e.checked=!!h:isRadio(e)?typeof h=="boolean"?e.checked=safeParseBoolean(e.value)===h:e.checked=e.value==h:bind(e,"value",h)})},i(()=>{let h=o();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(h)})});function getInputValue(e,t,r,i){return mutateDom(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(isCheckbox(e))if(Array.isArray(i)){let s=null;return t.includes("number")?s=safeParseNumber(r.target.value):t.includes("boolean")?s=safeParseBoolean(r.target.value):s=r.target.value,r.target.checked?i.includes(s)?i:i.concat([s]):i.filter(n=>!checkedAttrLooseCompare2(n,s))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map(s=>{let n=s.value||s.text;return safeParseNumber(n)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(s=>{let n=s.value||s.text;return safeParseBoolean(n)}):Array.from(r.target.selectedOptions).map(s=>s.value||s.text);{let s;return isRadio(e)?r.target.checked?s=r.target.value:s=i:s=r.target.value,t.includes("number")?safeParseNumber(s):t.includes("boolean")?safeParseBoolean(s):t.includes("trim")?s.trim():s}}})}function safeParseNumber(e){let t=e?parseFloat(e):null;return isNumeric2(t)?t:e}function checkedAttrLooseCompare2(e,t){return e==t}function isNumeric2(e){return!Array.isArray(e)&&!isNaN(e)}function isGetterSetter(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}directive("cloak",e=>queueMicrotask(()=>mutateDom(()=>e.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));directive("text",(e,{expression:t},{effect:r,evaluateLater:i})=>{let s=i(t);r(()=>{s(n=>{mutateDom(()=>{e.textContent=n})})})});directive("html",(e,{expression:t},{effect:r,evaluateLater:i})=>{let s=i(t);r(()=>{s(n=>{mutateDom(()=>{e.innerHTML=n!=null?n:"",e._x_ignoreSelf=!0,initTree(e),delete e._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(e,{value:t,modifiers:r,expression:i,original:s},{effect:n,cleanup:a})=>{if(!t){let o={};injectBindingProviders(o),evaluateLater(e,i)(u=>{applyBindingsObject(e,u,s)},{scope:o});return}if(t==="key")return storeKeyForXFor(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let l=evaluateLater(e,i);n(()=>l(o=>{o===void 0&&typeof i=="string"&&i.match(/\./)&&(o=""),mutateDom(()=>bind(e,t,o,r))})),a(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};handler2.inline=(e,{value:t,modifiers:r,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})};directive("bind",handler2);function storeKeyForXFor(e,t){e._x_keyExpression=t}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(e,{expression:t},{cleanup:r})=>{if(shouldSkipRegisteringDataDuringClone(e))return;t=t===""?"{}":t;let i={};injectMagics(i,e);let s={};injectDataProviders(s,i);let n=evaluate(e,t,{scope:s});(n===void 0||n===!0)&&(n={}),injectMagics(n,e);let a=reactive(n);initInterceptors(a);let l=addScopeToNode(e,a);a.init&&evaluate(e,a.init),r(()=>{a.destroy&&evaluate(e,a.destroy),l()})});interceptClone((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(e){return isCloning?isCloningLegacy?!0:e.hasAttribute("data-has-alpine-state"):!1}directive("show",(e,{modifiers:t,expression:r},{effect:i})=>{let s=evaluateLater(e,r);e._x_doHide||(e._x_doHide=()=>{mutateDom(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{mutateDom(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let n=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(a),o=once(d=>d?a():n(),d=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,d,a,n):d?l():n()}),c,u=!0;i(()=>s(d=>{!u&&d===c||(t.includes("immediate")&&(d?l():n()),o(d),c=d,u=!1)}))});directive("for",(e,{expression:t},{effect:r,cleanup:i})=>{let s=parseForExpression(t),n=evaluateLater(e,s.items),a=evaluateLater(e,e._x_keyExpression||"index");e._x_lookup=new Map,r(()=>loop(e,s,n,a)),i(()=>{e._x_lookup.forEach(l=>mutateDom(()=>{destroyTree(l),l.remove()})),delete e._x_lookup})});function refreshScope(e){return t=>{Object.entries(t).forEach(([r,i])=>{e[r]=i})}}function loop(e,t,r,i){r(s=>{isNumeric3(s)&&(s=Array.from({length:s},(c,u)=>u+1)),s==null&&(s=[]),s instanceof Set&&(s=Array.from(s)),s instanceof Map&&(s=Array.from(s));let n=e._x_lookup,a=new Map;e._x_lookup=a;let l=isObject2(s),o=Object.entries(s).map(([c,u])=>{l||(c=parseInt(c));let d=getIterationScopeVariables(t,u,c,s),f;return i(y=>{typeof y=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",e),n.has(y)&&(a.set(y,n.get(y)),n.delete(y)),f=y},{scope:{index:c,...d}}),[f,d]});mutateDom(()=>{n.forEach(d=>{destroyTree(d),d.remove()});let c=new Set,u=e;o.forEach(([d,f])=>{if(a.has(d)){let h=a.get(d);h._x_refreshXForScope(f),u.nextElementSibling!==h&&(u.nextElementSibling&&h.replaceWith(u.nextElementSibling),u.after(h)),u=h,h._x_currentIfEl&&(h.nextElementSibling!==h._x_currentIfEl&&u.after(h._x_currentIfEl),u=h._x_currentIfEl);return}e.content.children.length>1&&warn("x-for templates require a single root element, additional elements will be ignored.",e);let y=document.importNode(e.content,!0).firstElementChild,m=reactive(f);addScopeToNode(y,m,e),y._x_refreshXForScope=refreshScope(m),a.set(d,y),c.add(y),u.after(y),u=y}),skipDuringClone(()=>c.forEach(d=>initTree(d)))()})})}function parseForExpression(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,s=e.match(i);if(!s)return;let n={};n.items=s[2].trim();let a=s[1].replace(r,"").trim(),l=a.match(t);return l?(n.item=a.replace(t,"").trim(),n.index=l[1].trim(),l[2]&&(n.collection=l[2].trim())):n.item=a,n}function getIterationScopeVariables(e,t,r,i){let s={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(a=>a.trim()).forEach((a,l)=>{s[a]=t[l]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(a=>a.trim()).forEach(a=>{s[a]=t[a]}):s[e.item]=t,e.index&&(s[e.index]=r),e.collection&&(s[e.collection]=i),s}function isNumeric3(e){return typeof e!="object"&&!isNaN(e)}function isObject2(e){return typeof e=="object"&&!Array.isArray(e)}function handler3(){}handler3.inline=(e,{expression:t},{cleanup:r})=>{let i=closestRoot(e);
5i&&(i._x_refs||(i._x_refs={}),i._x_refs[t]=e,r(()=>delete i._x_refs[t]))};directive("ref",handler3);directive("if",(e,{expression:t},{effect:r,cleanup:i})=>{e.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",e);let s=evaluateLater(e,t),n=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let l=e.content.cloneNode(!0).firstElementChild;return addScopeToNode(l,{},e),mutateDom(()=>{e.after(l),skipDuringClone(()=>initTree(l))()}),e._x_currentIfEl=l,e._x_undoIf=()=>{mutateDom(()=>{destroyTree(l),l.remove()}),delete e._x_currentIfEl},l},a=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>s(l=>{l?n():a()})),i(()=>e._x_undoIf&&e._x_undoIf())});directive("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(s=>setIdRoot(e,s))});interceptClone((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((e,{value:t,modifiers:r,expression:i},{cleanup:s})=>{let n=i?evaluateLater(e,i):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=on(e,t,r,l=>{n(()=>{},{scope:{$event:l},params:[l]})});s(()=>a())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(e,t,r){directive(t,i=>warn(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,i))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setRawEvaluator(normalRawEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default=alpine_default,module_default=src_default,isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return isObject_1=e,isObject_1}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return _root=r,_root}var now_1,hasRequiredNow;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var e=require_root(),t=function(){return e.Date.now()};return now_1=t,now_1}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var e=/\s/;function t(r){for(var i=r.length;i--&&e.test(r.charAt(i)););return i}return _trimmedEndIndex=t,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var e=require_trimmedEndIndex(),t=/^\s+/;function r(i){return i&&i.slice(0,e(i)+1).replace(t,"")}return _baseTrim=r,_baseTrim}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root(),t=e.Symbol;return _Symbol=t,_Symbol}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,r=t.hasOwnProperty,i=t.toString,s=e?e.toStringTag:void 0;function n(a){var l=r.call(a,s),o=a[s];try{a[s]=void 0;var c=!0}catch(d){}var u=i.call(a);return c&&(l?a[s]=o:delete a[s]),u}return _getRawTag=n,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype,t=e.toString;function r(i){return t.call(i)}return _objectToString=r,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),r=require_objectToString(),i="[object Null]",s="[object Undef
5ined]",n=e?e.toStringTag:void 0;function a(l){return l==null?l===void 0?s:i:n&&n in Object(l)?t(l):r(l)}return _baseGetTag=a,_baseGetTag}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function e(t){return t!=null&&typeof t=="object"}return isObjectLike_1=e,isObjectLike_1}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var e=require_baseGetTag(),t=requireIsObjectLike(),r="[object Symbol]";function i(s){return typeof s=="symbol"||t(s)&&e(s)==r}return isSymbol_1=i,isSymbol_1}var toNumber_1,hasRequiredToNumber;function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var e=require_baseTrim(),t=requireIsObject(),r=requireIsSymbol(),i=NaN,s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;function o(c){if(typeof c=="number")return c;if(r(c))return i;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=n.test(c);return d||a.test(c)?l(c.slice(2),d?2:8):s.test(c)?i:+c}return toNumber_1=o,toNumber_1}var debounce_1,hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var e=requireIsObject(),t=requireNow(),r=requireToNumber(),i="Expected a function",s=Math.max,n=Math.min;function a(l,o,c){var u,d,f,y,m,h,b=0,p=!1,v=!1,g=!0;if(typeof l!="function")throw new TypeError(i);o=r(o)||0,e(c)&&(p=!!c.leading,v="maxWait"in c,f=v?s(r(c.maxWait)||0,o):f,g="trailing"in c?!!c.trailing:g);function _(O){var D=u,q=d;return u=d=void 0,b=O,y=l.apply(q,D),y}function C(O){return b=O,m=setTimeout(M,o),p?_(O):y}function x(O){var D=O-h,q=O-b,w=o-D;return v?n(w,f-q):w}function T(O){var D=O-h,q=O-b;return h===void 0||D>=o||D<0||v&&q>=f}function M(){var O=t();if(T(O))return R(O);m=setTimeout(M,x(O))}function R(O){return m=void 0,g&&u?_(O):(u=d=void 0,y)}function L(){m!==void 0&&clearTimeout(m),b=0,u=h=d=m=void 0}function k(){return m===void 0?y:R(t())}function F(){var O=t(),D=T(O);if(u=arguments,d=this,h=O,D){if(m===void 0)return C(h);if(v)return clearTimeout(m),m=setTimeout(M,o),_(h)}return m===void 0&&(m=setTimeout(M,o)),y}return F.cancel=L,F.flush=k,F}return debounce_1=a,debounce_1}var debounceExports=requireDebounce();const debounce=getDefaultExportFromCjs(debounceExports);var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function e(t,r){for(var i=-1,s=t==null?0:t.length,n=Array(s);++i<s;)n[i]=r(t[i],i,t);return n}return _arrayMap=e,_arrayMap}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject(),r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",n="[object Proxy]";function a(l){if(!t(l))return!1;var o=e(l);return o==i||o==s||o==r||o==n}return isFunction_1=a,isFunction_1}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root(),t=e["__core-js_shared__"];return _coreJsData=t,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e=require_coreJsData(),t=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!t&&t in i}return _isMasked=r,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype,t=e.toString;function r(i){if(i!=null){try{return t.call(i)}catch(s){}try{return i+""}catch(s){}}return""}return _toSource=r,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),r=requireIsObject(),i=require_toSource(),s=/[\\^$.*+?()[\]{}|]/g,n=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,o=a.toString,c=l.hasOwnProperty,u=RegExp("^"+o.call(c).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!r(f)||t(f))return!1;var y=e(f)?u:n;return y.test(i(f))}return _baseIsNative=d,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function e(t,r){return t==null?void 0:t[r]}return _getValue=e,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();function r(i,s){var n=t(i,s);return e(n)?n:void 0}return _getNative=r,_getNative}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative(),t=e(Object,"create");return _nativeCreate=t,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();function t(){this.__data__=e?e(null):{},this.size=0}return _hashClear=t,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return _hashDelete=e,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function s(n){var a=this.__data__;if(e){var l=a[n];return l===t?void 0:l}return i.call(a,n)?a[n]:void 0}return _hashGet=s,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype,r=t.hasOwnProperty;function i(s){var n=this.__data__;return e?n[s]!==void 0:r.call(n,s)}return _hashHas=i,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__";function r(i,s){var n=this.__data__;return this.size+=this.has(i)?0:1,n[i]=e&&s===void 0?t:s,this}return _hashSet=r,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),r=require_hashGet(),i=require_hashHas(),s=require_hashSet();function n(a){var l=-1,o=a==null?0:a.length;for(this.clear();++l<o;){var c=a[l];this.set(c[0],c[1])}}return n.prototype.clear=e,n.prototype.delete=t,n.prototype.get=r,n.prototype.has=i,n.prototype.set=s,_Hash=n,_Hash}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function e(){this.__data__=[],this.size=0}return _listCacheClear=e,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function e(t,r){return t===r||t!==t&&r!==r}return eq_1=e,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();function t(r,i){for(var s=r.length;s--;)if(e(r[s][0],i))return s;return-1}return _assocIndexOf=t,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype,r=t.splice;function i(s){var n=this.__data__,a=e(n,s);if(a<0)return!1;var l=n.length-1;return a==l?n.pop():r.call(n,a,1),--this.size,!0}return _listCacheDelete=i,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;
vendor: 4,210 bytes, line 5
5function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();function t(r){var i=this.__data__,s=e(i,r);return s<0?void 0:i[s][1]}return _listCacheGet=t,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();function t(r){return e(this.__data__,r)>-1}return _listCacheHas=t,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();function t(r,i){var s=this.__data__,n=e(s,r);return n<0?(++this.size,s.push([r,i])):s[n][1]=i,this}return _listCacheSet=t,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),r=require_listCacheGet(),i=require_listCacheHas(),s=require_listCacheSet();function n(a){var l=-1,o=a==null?0:a.length;for(this.clear();++l<o;){var c=a[l];this.set(c[0],c[1])}}return n.prototype.clear=e,n.prototype.delete=t,n.prototype.get=r,n.prototype.has=i,n.prototype.set=s,_ListCache=n,_ListCache}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative(),t=require_root(),r=e(t,"Map");return _Map=r,_Map}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),r=require_Map();function i(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return _mapCacheClear=i,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return _isKeyable=e,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();function t(r,i){var s=r.__data__;return e(i)?s[typeof i=="string"?"string":"hash"]:s.map}return _getMapData=t,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();function t(r){var i=e(this,r).delete(r);return this.size-=i?1:0,i}return _mapCacheDelete=t,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();function t(r){return e(this,r).get(r)}return _mapCacheGet=t,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();function t(r){return e(this,r).has(r)}return _mapCacheHas=t,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();function t(r,i){var s=e(this,r),n=s.size;return s.set(r,i),this.size+=s.size==n?0:1,this}return _mapCacheSet=t,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),r=require_mapCacheGet(),i=require_mapCacheHas(),s=require_mapCacheSet();function n(a){var l=-1,o=a==null?0:a.length;for(this.clear();++l<o;){var c=a[l];this.set(c[0],c[1])}}return n.prototype.clear=e,n.prototype.delete=t,n.prototype.get=r,n.prototype.has=i,n.prototype.set=s,_MapCache=n,_MapCache}var _setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return _setCacheAdd=t,_setCacheAdd}
5var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function e(t){return this.__data__.has(t)}return _setCacheHas=e,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var e=require_MapCache(),t=require_setCacheAdd(),r=require_setCacheHas();function i(s){var n=-1,a=s==null?0:s.length;for(this.__data__=new e;++n<a;)this.add(s[n])}return i.prototype.add=i.prototype.push=t,i.prototype.has=r,_SetCache=i,_SetCache}var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function e(t,r,i,s){for(var n=t.length,a=i+(s?1:-1);s?a--:++a<n;)if(r(t[a],a,t))return a;return-1}return _baseFindIndex=e,_baseFindIndex}var _baseIsNaN,hasRequired_baseIsNaN;function require_baseIsNaN(){if(hasRequired_baseIsNaN)return _baseIsNaN;hasRequired_baseIsNaN=1;function e(t){return t!==t}return _baseIsNaN=e,_baseIsNaN}var _strictIndexOf,hasRequired_strictIndexOf;function require_strictIndexOf(){if(hasRequired_strictIndexOf)return _strictIndexOf;hasRequired_strictIndexOf=1;function e(t,r,i){for(var s=i-1,n=t.length;++s<n;)if(t[s]===r)return s;return-1}return _strictIndexOf=e,_strictIndexOf}var _baseIndexOf,hasRequired_baseIndexOf;function require_baseIndexOf(){if(hasRequired_baseIndexOf)return _baseIndexOf;hasRequired_baseIndexOf=1;var e=require_baseFindIndex(),t=require_baseIsNaN(),r=require_strictIndexOf();function i(s,n,a){return n===n?r(s,n,a):e(s,t,a)}return _baseIndexOf=i,_baseIndexOf}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var e=require_baseIndexOf();function t(r,i){var s=r==null?0:r.length;return!!s&&e(r,i,0)>-1}return _arrayIncludes=t,_arrayIncludes}var _arrayIncludesWith,hasRequired_arrayIncludesWith;function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;hasRequired_arrayIncludesWith=1;function e(t,r,i){for(var s=-1,n=t==null?0:t.length;++s<n;)if(i(r,t[s]))return!0;return!1}return _arrayIncludesWith=e,_arrayIncludesWith}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function e(t){return function(r){return t(r)}}return _baseUnary=e,_baseUnary}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function e(t,r){return t.has(r)}return _cacheHas=e,_cacheHas}var _baseIntersection,hasRequired_baseIntersection;function require_baseIntersection(){if(hasRequired_baseIntersection)return _baseIntersection;hasRequired_baseIntersection=1;var e=require_SetCache(),t=require_arrayIncludes(),r=require_arrayIncludesWith(),i=require_arrayMap(),s=require_baseUnary(),n=require_cacheHas(),a=Math.min;function l(o,c,u){for(var d=u?r:t,f=o[0].length,y=o.length,m=y,h=Array(y),b=1/0,p=[];m--;){var v=o[m];m&&c&&(v=i(v,s(c))),b=a(v.length,b),h[m]=!u&&(c||f>=120&&v.length>=120)?new e(m&&v):void 0}v=o[0];var g=-1,_=h[0];e:for(;++g<f&&p.length<b;){var C=v[g],x=c?c(C):C;if(C=u||C!==0?C:0,!(_?n(_,x):d(p,x,u))){for(m=y;--m;){var T=h[m];if(!(T?n(T,x):d(o[m],x,u)))continue e}_&&_.push(x),p.push(C)}}return p}return _baseIntersection=l,_baseIntersection}var identity_1,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity_1;hasRequiredIdentity=1;function e(t){return t}return identity_1=e,identity_1}var _apply,hasRequired_apply;function require_apply(){if(hasRequired_apply)return _apply;hasRequired_apply=1;function e(t,r,i){switch(i.length){case 0:return t.call(r);case 1:return t.call(r,i[0]);case 2:return t.call(r,i[0],i[1]);case 3:return t.call(r,i[0],i[1],i[2])}return t.apply(r,i)}return _apply=e,_apply}var _overRest,hasRequired_overRest;function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var e=require_apply(),t=Math.max;function r(i,s,n){return s=t(s===void 0?i.length-1:s,0),function(){for(var a=arguments,l=-1,o=t(a.length-s,0),c=Array(o);++l<o;)c[l]=a[s+l];l=-1;for(var u=Array(s+1);++l<s;)u[l]=a[l];return u[s]=n(c),e(i,this,u)}}return _overRest=r,_overRest}var constant_1,hasRequiredConstant;function requireConstant(){if(hasRequiredConstant)return constant_1;hasRequiredConstant=1;function e(t){return function(){return t}}return constant_1=e,constant_1}var _defineProperty,hasRequired_defineProperty;function require_defineProperty(){if(hasRequired_defineProperty)return _defineProperty;hasRequired_defineProperty=1;var e=require_getNative(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch(i){}})();return _defineProperty=t,_defineProperty}var _baseSetToString,hasRequired_baseSetToString;function require_baseSetToString(){if(hasRequired_baseSetToString)return _baseSetToString;hasRequired_baseSetToString=1;var e=requireConstant(),t=require_defineProperty(),r=requireIdentity(),i=t?function(s,n){return t(s,"toString",{configurable:!0,enumerable:!1,value:e(n),writable:!0})}:r;return _baseSetToString=i,_baseSetToString}var _shortOut,hasRequired_shortOut;
5function require_shortOut(){if(hasRequired_shortOut)return _shortOut;hasRequired_shortOut=1;var e=800,t=16,r=Date.now;function i(s){var n=0,a=0;return function(){var l=r(),o=t-(l-a);if(a=l,o>0){if(++n>=e)return arguments[0]}else n=0;return s.apply(void 0,arguments)}}return _shortOut=i,_shortOut}var _setToString,hasRequired_setToString;function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var e=require_baseSetToString(),t=require_shortOut(),r=t(e);return _setToString=r,_setToString}var _baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var e=requireIdentity(),t=require_overRest(),r=require_setToString();function i(s,n){return r(t(s,n,e),s+"")}return _baseRest=i,_baseRest}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return isLength_1=t,isLength_1}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction(),t=requireIsLength();function r(i){return i!=null&&t(i.length)&&!e(i)}return isArrayLike_1=r,isArrayLike_1}var isArrayLikeObject_1,hasRequiredIsArrayLikeObject;function requireIsArrayLikeObject(){if(hasRequiredIsArrayLikeObject)return isArrayLikeObject_1;hasRequiredIsArrayLikeObject=1;var e=requireIsArrayLike(),t=requireIsObjectLike();function r(i){return t(i)&&e(i)}return isArrayLikeObject_1=r,isArrayLikeObject_1}var _castArrayLikeObject,hasRequired_castArrayLikeObject;function require_castArrayLikeObject(){if(hasRequired_castArrayLikeObject)return _castArrayLikeObject;hasRequired_castArrayLikeObject=1;var e=requireIsArrayLikeObject();function t(r){return e(r)?r:[]}return _castArrayLikeObject=t,_castArrayLikeObject}var intersection_1,hasRequiredIntersection;function requireIntersection(){if(hasRequiredIntersection)return intersection_1;hasRequiredIntersection=1;var e=require_arrayMap(),t=require_baseIntersection(),r=require_baseRest(),i=require_castArrayLikeObject(),s=r(function(n){var a=e(n,i);return a.length&&a[0]===n[0]?t(a):[]});return intersection_1=s,intersection_1}var intersectionExports=requireIntersection();const intersection=getDefaultExportFromCjs(intersectionExports),updateURL=debounce(e=>{if(typeof window=="undefined")return;let t=Object.entries(e).map(([r,i])=>(Array.isArray(i)&&(i=i.join(",")),i?`${r}=${i}`:null)).filter(r=>!!r).join("&");t&&(t=`#filter?${t}`),window.location.hash!==t&&history.replaceState({},"",t||"#")},300),applications=()=>({expandedAppId:null,filter:{search:"",appsHubs:[],devices:[],methodsOfUse:[]},smallerFilter:!1,notFoundMessageVisible:!1,async handleFilterUpdate(){updateURL(this.filter),await this.$nextTick(),this.notFoundMessageVisible=!this.$root.querySelector(".apps-item:not(.apps-item--hidden)")},handleScroll(){window.scrollY>600?this.smallerFilter||(this.smallerFilter=!0):this.smallerFilter&&(this.smallerFilter=!1)},init(){try{window.location.hash.indexOf("#filter?")===0&&(window.location.hash.replace("#filter?","").split("&").forEach(e=>{const[t,r]=e.split("=");this.filter[t]!==void 0&&r&&(this.filter[t]=Array.isArray(this.filter[t])?r.split(",").map(i=>i):r)}),this.handleFilterUpdate())}catch(e){}this.$watch("filter.search",()=>this.handleFilterUpdate()),this.$watch("filter.appsHubs",()=>this.handleFilterUpdate()),this.$watch("filter.devices",()=>this.handleFilterUpdate()),this.$watch("filter.methodsOfUse",()=>this.handleFilterUpdate()),window.addEventListener("scroll",this.handleScroll)},destroy(){window.removeEventListener("scroll",this.handleScroll)}}),applicationsItem=e=>({get expanded(){return(e==null?void 0:e.id)&&this.expandedAppId===e.id},get visible(){var n,a,l,o,c,u,d,f;const t=!this.filter.search||((a=(n=e.title)==null?void 0:n.toLowerCase())==null?void 0:a.indexOf(this.filter.search.toLowerCase()))>-1,r=!((l=this.filter.appsHubs)!=null&&l.length)||((o=intersection(e==null?void 0:e.availableFor,this.filter.appsHubs))==null?void 0:o.length)>0,i=!((c=this.filter.devices)!=null&&c.length)||this.filter.devices.includes("flic")&&(e==null?void 0:e.flicButtonControl)||this.filter.devices.includes("flic-duo")&&((e==null?void 0:e.flicButtonControl)||((u=e==null?void 0:e.flicTwistControl)==null?void 0:u.length))||this.filter.devices.includes("flic-twist")&&((d=e==null?void 0:e.flicTwistControl)==null?void 0:d.length),s=!((f=this.filter.methodsOfUse)!=null&&f.length)||intersection(e.methodsOfUse,this.filter.methodsOfUse)>0;return t&&r&&i&&s},desktopClick(){window.innerWidth>=999&&(e!=null&&e.id)&&(this.expandedAppId=e.id===this.expandedAppId?null:e.id)},mobileClick(){window.innerWidth<999&&(e!=null&&e.id)&&(this.expandedAppId=e.id===this.expandedAppId?null:e.id)}});function formatCurrency(e,t,r=!0){e=e+"";const i=e.split(".");let s=i[0],n="00";i.length>1&&(n=i[1],n.length===1?n+="0":n.length>2&&(n=n.substr(0,2)));const a=[];for(let o=0;o<s.length;o+=1)o!==0&&o%3===0&&a.unshift(" "),a.unshift(s.substr(s.length-1-o,1));s=a.join("");const l=n&&r?`${s}.${n}`:s;switch(t){case"SEK":return`${l} kr`;case"USD":return`$${l}`;case"EUR":return`€${l}`;case"GBP":return`£${l}`;case"AUD":return`$${l} ${t}`;default:return t?`${l} ${t}`:""}}
5function localizedPrice(e,t,r,i){var a,l;if(!e)return"";let s=((a=e==null?void 0:e[t])==null?void 0:a.amount)||0;const n=(l=e==null?void 0:e[t])==null?void 0:l.currencyCode;return r&&(s*=r),Number.isNaN(s)||!s&&i?"":formatCurrency(s,n)}function localizedPriceRound(e,t,r,i){var l,o;if(!e)return"";let s=((l=e==null?void 0:e[t])==null?void 0:l.amount)||0;const n=(o=e==null?void 0:e[t])==null?void 0:o.currencyCode;return s*=r,(!s&&i?"":formatCurrency(Math.round(s),n)).replace(".00","")}const cart$1=()=>({loading:!0,total:"",shipping:"",loadingTrue(){this.loading=!0},loadingFalse(){this.loading=!1},cartUpdated(e){this.loading=!1,this.total=e?formatCurrency(e.cost.totalAmount.amount,e.cost.totalAmount.currencyCode):"",this.shipping=e&&e.cost.subtotalAmount.amount!==e.cost.totalAmount.amount?formatCurrency(e.cost.totalAmount.amount-e.cost.subtotalAmount.amount,e.cost.totalAmount.currencyCode):""},init(){document.addEventListener("cart-loading-true",this.handleLoadingTrue=()=>this.loadingTrue()),document.addEventListener("cart-loading-false",this.handleLoadingFalse=()=>this.loadingFalse()),document.addEventListener("cart-updated",this.handleCartUpdate=e=>this.cartUpdated(e.detail))},destroy(){document.removeEventListener("cart-loading-true",this.handleLoadingTrue),document.removeEventListener("cart-loading-false",this.handleLoadingFalse),document.removeEventListener("cart-updated",this.handleCartUpdate)}}),accordion=()=>{document.querySelectorAll(".accordion").forEach(t=>{const r=[...t.querySelectorAll(".accordion__item")];r.forEach(i=>{const s=i.querySelector(".accordion__item-head"),n=i.querySelector(".accordion__item-text");let a;s.addEventListener("click",l=>{l.preventDefault(),clearTimeout(a);const o=r.filter(c=>c.classList.contains("expanded")||c!==i);i.querySelector(".accordion__item-content").style.height=`${n.offsetHeight}px`,o.forEach(c=>{c.querySelector(".accordion__item-content").style.height=`${c.querySelector(".accordion__item-text").offsetHeight}px`}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.contains("expanded")?(i.classList.remove("expanded"),i.querySelector(".accordion__item-content").style.height=""):(i.classList.add("expanded"),a=setTimeout(()=>{i.querySelector(".accordion__item-content").style.height=""},500)),o.forEach(c=>{c.classList.remove("expanded"),c.querySelector(".accordion__item-content").style.height=""})})})})})})},actionSlider=()=>{document.querySelectorAll(".action-slider").forEach(t=>{const r=t.querySelector(".swiper-container"),i=t.querySelectorAll(".swiper-slide"),s=new Swiper(r,{direction:"horizontal",slidesPerView:"auto",speed:1e3,initialSlide:1,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")}}),n=t.querySelectorAll(".action-slider__item-video");i.forEach((a,l)=>{const o=a.querySelector(".action-slider__play-button"),c=a.querySelector(".action-slider__item-video");!c||!o||(o.addEventListener("click",()=>{c.setAttribute("controls",""),c.paused?c.play():c.pause()}),c.addEventListener("play",()=>{n.forEach(u=>u!==c&&!c.paused&&u.pause()),o.classList.add("hidden"),s.realIndex!==l&&s.slideTo(l)}),c.addEventListener("pause",()=>{o.classList.remove("hidden")}),c.addEventListener("click",u=>{u.stopPropagation()}))})})};function validateEmail(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return e.toLowerCase().match(t)}function BFSignup(){document.querySelectorAll(".content-bf").forEach(t=>{const r=t.querySelector("#error-message"),i=t.querySelector(".content-bf__success"),s=t.querySelector("form.sign-up__form");s&&(s.setAttribute("novalidate","novalidate"),s.addEventListener("submit",n=>{n.preventDefault();const a=s.querySelector("input#EMAIL"),l=new FormData(s);if(l.append("action","sendinblue_form_submit"),l.append("request_url",s.getAttribute("action")),!validateEmail(a.value)){r.classList.add("sib-form-message-panel--active");return}fetch(window.ADMIN_AJAX_URL,{method:s.getAttribute("method"),body:l}).then(o=>{var c;if(o.status!=200){r.classList.add("sib-form-message-panel--active");return}r.classList.remove("sib-form-message-panel--active"),t.style.minHeight=t.offsetHeight+"px",setTimeout(()=>{t.style.minHeight=i.offsetHeight+"px",t.classList.add("success"),!t.classList.contains("hero-black-friday__content")&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{var d;const u=((d=t.querySelector(".content-bf__success"))==null?void 0:d.getBoundingClientRect().top)||0;window.scrollTo(0,window.scrollY+u)})})},100),setTimeout(()=>{t.style.minHeight="0"},500),(c=window==null?void 0:window.fbq)==null||c.call(window,"track","Lead")}).catch(o=>{console.log(o)})}))})}const blog=()=>
5{document.querySelectorAll(".blog-listing").forEach(e=>{const t=e.querySelector(".blog-listing__button");t==null||t.addEventListener("click",()=>{e.classList.add("show-all-posts")})})},buttonsSlider=()=>{document.querySelectorAll(".buttons-slider").forEach(t=>{const r=t.querySelector(".swiper"),i=t.querySelector(".buttons-slider__note"),s=t.querySelector(".buttons-slider__note-close");i&&s.addEventListener("click",function(){i.classList.add("close")}),new Swiper(r,{direction:"horizontal",slidesPerView:2,breakpoints:{767:{slidesPerView:"auto",loop:!0,loopedSlides:8,initialSlide:1}},spaceBetween:24,speed:1e3,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")}})})};var FileSaver_min$1={exports:{}},FileSaver_min=FileSaver_min$1.exports,hasRequiredFileSaver_min;function requireFileSaver_min(){return hasRequiredFileSaver_min||(hasRequiredFileSaver_min=1,(function(e,t){(function(r,i){i()})(FileSaver_min,function(){function r(c,u){return typeof u=="undefined"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function i(c,u,d){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){o(f.response,u,d)},f.onerror=function(){console.error("could not download file")},f.send()}function s(c){var u=new XMLHttpRequest;u.open("HEAD",c,!1);try{u.send()}catch(d){}return 200<=u.status&&299>=u.status}function n(c){try{c.dispatchEvent(new MouseEvent("click"))}catch(d){var u=document.createEvent("MouseEvents");
5u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(u)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,l=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(c,u,d){var f=a.URL||a.webkitURL,y=document.createElement("a");u=u||c.name||"download",y.download=u,y.rel="noopener",typeof c=="string"?(y.href=c,y.origin===location.origin?n(y):s(y.href)?i(c,u,d):n(y,y.target="_blank")):(y.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(y.href)},4e4),setTimeout(function(){n(y)},0))}:"msSaveOrOpenBlob"in navigator?function(c,u,d){if(u=u||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,d),u);else if(s(c))i(c,u,d);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){n(f)})}}:function(c,u,d,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return i(c,u,d);var y=c.type==="application/octet-stream",m=/constructor/i.test(a.HTMLElement)||a.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||y&&m||l)&&typeof FileReader!="undefined"){var b=new FileReader;b.onloadend=function(){var g=b.result;g=h?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=g:location=g,f=null},b.readAsDataURL(c)}else{var p=a.URL||a.webkitURL,v=p.createObjectURL(c);f?f.location=v:location.href=v,f=null,setTimeout(function(){p.revokeObjectURL(v)},4e4)}});a.saveAs=o.saveAs=o,e.exports=o})})(FileSaver_min$1)),FileSaver_min$1.exports}var FileSaver_minExports=requireFileSaver_min();const configuratorUploadsUrl="/configurator-uploads/";function createImage(e){return new Promise(t=>{const r=new Image;r.setAttribute("crossorigin","anonymous"),r.onload=()=>t(r),r.src=e})}function drawButtonImage(e,t){const r=e.getContext("2d");r.restore(),r.save(),r.setTransform(new DOMMatrix),r.clearRect(0,0,e.width,e.height),r.drawImage(t,0,0,e.width,e.height)}function drawUploadedImage({canvas:e,width:t,top:r,left:i,transform:s},n){const a=e.getContext("2d"),l=e.width/100*i,o=e.height/100*r,c=e.width/100*t,u=c,d=Math.min(c/n.width,u/n.height),f=c/2+l-n.width/2*d,y=u/2+o-n.height/2*d;
5a.restore(),a.setTransform(s?s(c/2+l,u/2+o):new DOMMatrix),a.save(),a.beginPath(),a.arc(c/2+l,u/2+o,c/2,0,2*Math.PI),a.closePath(),a.clip(),a.drawImage(n,f,y,n.width*d,n.height*d)}const configurator=()=>{document.querySelectorAll(".configurator").forEach(e=>{var q,w;let t;try{t=JSON.parse((w=(q=e.querySelector(".configurator__json"))==null?void 0:q.innerText)==null?void 0:w.trim())}catch(I){}if(!t)return;const r=[],i=[...e.querySelectorAll(".product-card__color-picker")],s=e.querySelector(".product-card__color-name"),n=e.querySelector(".configurator__download"),a=e.querySelector(".configurator__order-link"),l=e.querySelector(".configurator__image-single canvas"),o=e.querySelector(".configurator__image-multiple canvas"),c=e.querySelector(".file-upload"),u=c.querySelector(".file-upload__input"),d=u==null?void 0:u.querySelector("input"),f=c.querySelector(".file-upload__file-name"),y=c.querySelector(".file-upload__file-size"),m=e.querySelector(".file-upload-error"),h=c.querySelector(".file-upload__file-progress"),b=h.querySelector("span"),p=h.querySelector(".progressbar__inner"),v=c.querySelector(".file-upload__clear");let g;const _=[{canvas:l,width:64.5,top:18.2,left:17},{canvas:o,width:32.9,top:10.6,left:35.65},{canvas:o,width:35.9,top:38.1,left:6.7,transform(I,E){let S=new DOMMatrix;return S=S.translate(I,E),S=S.rotateSelf(62.8,1,0,0).rotate(0,-3.5).rotate(26),S=S.translate(-I,-E),S}},{canvas:o,width:37,top:40.1,left:56,transform(I,E){let S=new DOMMatrix;return S=S.translate(I,E),S=S.rotateSelf(62,1,0,0).rotate(64),S=S.translate(-I,-E),S}}];let C="white",x=!1,T;async function M(){let I=r[`single_${C}`],E=r[`multiple_${C}`];I||(I=await createImage(t[`single_${C}`]),r[`single_${C}`]=I),E||(E=await createImage(t[`multiple_${C}`]),r[`multiple_${C}`]=E),drawButtonImage(l,I),drawButtonImage(o,E),g&&_.forEach(S=>drawUploadedImage(S,g))}function R(){T==null||T.abort(),x=!1,g=null,d.value="",c.classList.remove("uploading","uploaded"),n.setAttribute("disabled",""),a.classList.add("disabled"),M()}function L(I){b.innerText=`${I}%`,p.style.width=`${I}%`}function k(I="Sorry, there was an error while uploading you file.<br/> Please check your file, it should be .ai or .eps format and the size should not exceed 50 MB."){m.innerHTML=I}function F(){m.innerHTML=""}function O(I){const E=new FormData;return E.append("file",I),new Promise(S=>{T=new XMLHttpRequest,T.upload.onprogress=A=>{if(A.lengthComputable){const P=A.loaded/A.total*100;L(P.toFixed(0))}},T.onload=()=>{if(T.status>=200&&T.status<300)try{const A=JSON.parse(T.response);A!=null&&A.error&&k(A==null?void 0:A.error),A!=null&&A.url&&S(A==null?void 0:A.url)}catch(A){console.error(A),k()}else k(),R();S()},T.onerror=()=>{k(),R(),S()},T.open("POST",configuratorUploadsUrl),T.send(E)})}async function D(I){if(!I||x)return;if(I.size>50*1024*1024){k("File size should not exceed 50 MB.");return}if(!["ai","eps","png","jpg","jpeg","svg"].includes(I.name.split(".").pop())){k("File should be .ai or .eps format.");return}x=!0,F(),L(0),f&&(f.innerText=I.name),y&&(y.innerText=`${(I.size/1024/1024).toFixed(1)} MB`),c.classList.add("uploading");const E=await O(I);E&&(n.removeAttribute("disabled"),a.classList.remove("disabled"),g=new Image,g.setAttribute("crossorigin","anonymous"),g.onload=M,g.onerror=()=>{k("Failed to load image for preview. Please try again later.")},g.src=`${configuratorUploadsUrl}${E}`)}M(),i.forEach(I=>{const E=I.getAttribute("data-color"),S=I.getAttribute("data-name");I.addEventListener("click",()=>{C!==E&&(C=E,i.forEach(A=>A.classList.remove("active")),I.classList.add("active"),s.innerText=S,M())})}),u.addEventListener("dragover",I=>{I.preventDefault()}),u.addEventListener("drop",I=>{var E;D((E=I.dataTransfer.files)==null?void 0:E[0]),I.preventDefault()}),d==null||d.addEventListener("change",()=>{var I;D((I=d.files)==null?void 0:I[0])}),v==null||v.addEventListener("click",R),n==null||n.addEventListener("click",()=>{FileSaver_minExports.saveAs(l.toDataURL("image/png"),"flic-button-preview.png"),FileSaver_minExports.saveAs(o.toDataURL("image/png"),"flic-buttons-preview.png")})})};function countdown(){document.querySelectorAll(".countdown").forEach(t=>{const r=new Date(t.getAttribute("data-deadline")).getTime(),i=t.querySelector("#countdown-days"),s=t.querySelector("#countdown-hours"),n=t.querySelector("#countdown-minutes"),a=t.querySelector("#countdown-seconds"),l=setInterval(()=>{const o=new Date().getTime();let c=r-o;c<0&&(c=0);let u=Math.floor(c/(1e3*60*60*24)),d=Math.floor(c%(1e3*60*60*24)/(1e3*60*60)),f=Math.floor(c%(1e3*60*60)/(1e3*60)),y=Math.floor(c%(1e3*60)/1e3);u<10&&(u=`0${u}`),d<10&&(d=`0${d}`),f<10&&(f=`0${f}`),y<10&&(y=`0${y}`),i.innerHTML=u,s.innerHTML=d,n.innerHTML=f,a.innerHTML=y,c<=0&&
5clearInterval(l)},1e3)})}function customerSlider(){document.querySelectorAll(".customers-slider").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:"2",speed:1e3,pagination:{el:t.querySelector(".swiper-pagination"),type:"bullets",clickable:"true"},breakpoints:{767:{slidesPerView:4}}})})}const faq=()=>{document.querySelectorAll(".faq-b2b").forEach(t=>{const r=t.querySelectorAll(".faq-b2b__item");r.forEach(i=>{i.addEventListener("click",function(){r.forEach(s=>{s!==i&&s.classList.remove("opened")}),i.classList.toggle("opened")})})})};function timeout(e){return new Promise(t=>setTimeout(t,e))}const filter=()=>{document.querySelectorAll(".products-list-filter").forEach(e=>{const t=e.querySelectorAll(".filter__item"),r=e.querySelector(".products-list__items"),i=[...e.querySelectorAll(".products-list__section")];if(!t||t.length<2||!r)return;let s=!1;async function n(l){s=!0,r.classList.add("hidden"),await timeout(200),i.forEach(o=>{var m,h;const c=o.querySelectorAll(".subfilter__item"),u=[...o.querySelectorAll(".products-list__item")],d=o.hasAttribute("data-hidden-by-default"),f=[],y=[];u.forEach(b=>{!l&&!d||b.querySelector(`.new-product[data-category-${l}], .model-item[data-category-${l}]`)?f.push(b):y.push(b)}),f.length?o.classList.remove("hidden"):o.classList.add("hidden"),f.forEach(b=>{b.style.display=""}),y.forEach(b=>{b.style.display="none"}),c.forEach(b=>{b.classList.remove("active")}),(h=(m=c==null?void 0:c[0])==null?void 0:m.classList)==null||h.add("active")}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.classList.remove("hidden"),s=!1})})}function a(l){t.forEach(o=>{o.classList.remove("active")}),t[l].classList.add("active")}t.forEach((l,o)=>{const c=l.getAttribute("data-id");l.addEventListener("click",u=>{u.preventDefault(),!(l.classList.contains("active")||s)&&(n(c),a(o))})}
5),i.forEach(l=>{const o=l.querySelectorAll(".subfilter__item"),c=[...l.querySelectorAll(".products-list__item")];o.forEach((u,d)=>{const f=u.getAttribute("data-id");u.addEventListener("click",y=>{y.preventDefault(),!(u.classList.contains("active")||s)&&(c.forEach(m=>{!f||m.querySelector(`.new-product[data-category-${f}], .model-item[data-category-${f}]`)?m.style.display="":m.style.display="none"}),o.forEach(m=>{m.classList.remove("active")}),o[d].classList.add("active"))})})})})};function fullScreenSlider(){document.querySelectorAll(".full-screen-slider").forEach(t=>{const r=t.querySelector(".swiper-container"),i=r.querySelector(".full-screen-slider__scrollbar-drag"),s=r.querySelectorAll(".full-screen-slider__bottom-item"),n=new Swiper(r,{direction:"horizontal",slidesPerView:"1",speed:1e3,init:!1});n.on("init",function(){i.style.cssText=`width: ${100/n.slides.length}%; left: ${100/n.slides.length*n.activeIndex}%;`}),n.on("slideChange",function(){i.style.cssText=`width: ${100/n.slides.length}%; left: ${100/n.slides.length*n.activeIndex}%;`;for(let a=0;a<s.length;a++)a===n.activeIndex?s[a].classList.add("active"):s[a].classList.remove("active")});for(let a=0;a<s.length;a++)s[a].addEventListener("click",()=>{s[a].classList.contains("active")||n.slideTo(a)});n.init()})}function subscribePopup$1(e){e(document).on("gform_confirmation_loaded",(t,r)=>{var s,n;const i=(s=document.getElementById(`gform_confirmation_wrapper_${r}`))==null?void 0:s.closest(".contact__form-wrapper, .contact-b2b__form-wrapper");i==null||i.classList.add("submitted"),i==null||i.scrollIntoView(),(n=window==null?void 0:window.gtag)==null||n.call(window,"event","b2b_inbound_request_submitted")})}function lazyVideo(){const e=document.querySelectorAll("video");if(!e.length)return;function t(){e.forEach(r=>{const i=r.getAttribute("data-src");!r.offsetParent||!i||(r.removeAttribute("data-src"),r.setAttribute("src",i))})}window.addEventListener("widthResize",t),t()}var lottie$3={exports:{}},lottie$2=lottie$3.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports){typeof document!="undefined"&&typeof navigator!="undefined"&&(function(e,t){module.exports=t()})(lottie$2,(function(){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(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,s;for(r=0;r<i;r+=1){s=e[r].prototype;for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(r,i){var s=0,n=[],a;switch(r){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(s=0;s<i;s+=1)n.push(a);return n}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var 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"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}
vendor: 126,920 bytes, lines 5-13
5function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,r){var i,s,n,a,l,o,c,u;switch(a=Math.floor(e*6),l=e*6-a,o=r*(1-t),c=r*(1-l*t),u=r*(1-(1-l)*t),a%6){case 0:i=r,s=u,n=o;break;case 1:i=c,s=r,n=o;break;case 2:i=o,s=r,n=u;break;case 3:i=o,s=c,n=r;break;case 4:i=u,s=o,n=r;break;case 5:i=r,s=o,n=c;break}return[i,s,n]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),s=Math.min(e,t,r),n=i-s,a,l=i===0?0:n/i,o=i/255;switch(i){case s:a=0;break;case e:a=t-r+n*(t<r?6:0),a/=6*n;break;case t:a=r-e+n*2,a/=6*n;break;case r:a=e-t+n*4,a/=6*n;break}return[a,l,o]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,n){return i<0&&(i=0),s<0&&(s=0),n<0&&(n=0),"#"+e[i]+e[s]+e[n]}})(),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};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(y){r({data:y})}},n={postMessage:function(y){s.onmessage({data:y})}};function a(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),m=URL.createObjectURL(y);return new Worker(m)}return r=f,s}function l(){i||(i=a(function(y){function m(){function b(q,w){var I,E,S=q.length,A,P,V,B;for(E=0;E<S;E+=1)if(I=q[E],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var N=I.masksProperties;for(P=N.length,A=0;A<P;A+=1)if(N[A].pt.k.i)C(N[A].pt.k);else for(B=N[A].pt.k.length,V=0;V<B;V+=1)N[A].pt.k[V].s&&C(N[A].pt.k[V].s[0]),N[A].pt.k[V].e&&C(N[A].pt.k[V].e[0])}I.ty===0?(I.layers=g(I.refId,w),b(I.layers,w)):I.ty===4?_(I.shapes):I.ty===5&&O(I)}}function p(q,w){if(q){var I=0,E=q.length;for(I=0;I<E;I+=1)q[I].t===1&&(q[I].data.layers=g(q[I].data.refId,w),b(q[I].data.layers,w))}}function v(q,w){for(var I=0,E=w.length;I<E;){if(w[I].id===q)return w[I];I+=1}return null}function g(q,w){var I=v(q,w);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function _(q){var w,I=q.length,E,S;for(w=I-1;w>=0;w-=1)if(q[w].ty==="sh")if(q[w].ks.k.i)C(q[w].ks.k);else for(S=q[w].ks.k.length,E=0;E<S;E+=1)q[w].ks.k[E].s&&C(q[w].ks.k[E].s[0]),q[w].ks.k[E].e&&C(q[w].ks.k[E].e[0]);else q[w].ty==="gr"&&_(q[w].it)}function C(q){var w,I=q.i.length;for(w=0;w<I;w+=1)q.i[w][0]+=q.v[w][0],q.i[w][1]+=q.v[w][1],q.o[w][0]+=q.v[w][0],q.o[w][1]+=q.v[w][1]}function x(q,w){var I=w?w.split("."):[100,100,100];return q[0]>I[0]?!0:I[0]>q[0]?!1:q[1]>I[1]?!0:I[1]>q[1]?!1:q[2]>I[2]?!0:I[2]>q[2]?!1:null}var T=(function(){var q=[4,4,14];function w(E){var S=E.t.d;E.t.d={k:[{s:S,t:0}]}}function I(E){var S,A=E.length;for(S=0;S<A;S+=1)E[S].ty===5&&w(E[S])}return function(E){if(x(q,E.v)&&(I(E.layers),E.assets)){var S,A=E.assets.length;for(S=0;S<A;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}})(),M=(function(){var q=[4,7,99];return function(w){if(w.chars&&!x(q,w.v)){var I,E=w.chars.length;for(I=0;I<E;I+=1){var S=w.chars[I];S.data&&S.data.shapes&&(_(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.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}},w.chars[I].t||(S.data.shapes.push({ty:"no"}),S.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"})))}}}})(),R=(function(){var q=[5,7,15];function w(E){var S=E.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function I(E){var S,A=E.length;for(S=0;S<A;S+=1)E[S].ty===5&&w(E[S])}return function(E){if(x(q,E.v)&&(I(E.layers),E.assets)){var S,A=E.assets.length;for(S=0;S<A;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}})(),L=(function(){var q=[4,1,9];function w(E){var S,A=E.length,P,V;for(S=0;S<A;S+=1)if(E[S].ty==="gr")w(E[S].it);else if(E[S].ty==="fl"||E[S].ty==="st")if(E[S].c.k&&E[S].c.k[0].i)for(V=E[S].c.k.length,P=0;P<V;P+=1)E[S].c.k[P].s&&(E[S].c.k[P].s[0]/=255,E[S].c.k[P].s[1]/=255,E[S].c.k[P].s[2]/=255,E[S].c.k[P].s[3]/=255),E[S].c.k[P].e&&(E[S].c.k[P].e[0]/=255,E[S].c.k[P].e[1]/=255,E[S].c.k[P].e[2]/=255,E[S].c.k[P].e[3]/=255);else E[S].c.k[0]/=255,E[S].c.k[1]/=255,E[S].c.k[2]/=255,E[S].c.k[3]/=255}function I(E){var S,A=E.length;for(S=0;S<A;S+=1)E[S].ty===4&&w(E[S].shapes)}return function(E){if(x(q,E.v)&&(I(E.layers),E.assets)){var S,A=E.assets.length;for(S=0;S<A;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}})(),k=(function(){var q=[4,4,18];function w(E){var S,A=E.length,P,V;for(S=A-1;S>=0;S-=1)if(E[S].ty==="sh")if(E[S].ks.k.i)E[S].ks.k.c=E[S].closed;else for(V=E[S].ks.k.length,P=0;P<V;P+=1)E[S].ks.k[P].s&&(E[S].ks.k[P].s[0].c=E[S].closed),E[S].ks.k[P].e&&(E[S].ks.k[P].e[0].c=E[S].closed);else E[S].ty==="gr"&&w(E[S].it)}function I(E){var S,A,P=E.length,V,B,N,z;for(A=0;A<P;A+=1){if(S=E[A],S.hasMask){var j=S.masksProperties;for(B=j.length,V=0;V<B;V+=1)if(j[V].pt.k.i)j[V].pt.k.c=j[V].cl;else for(z=j[V].pt.k.length,N=0;N<z;N+=1)j[V].pt.k[N].s&&(j[V].pt.k[N].s[0].c=j[V].cl),j[V].pt.k[N].e&&(j[V].pt.k[N].e[0].c=j[V].cl)}S.ty===4&&w(S.shapes)}}return function(E){if(x(q,E.v)&&(I(E.layers),E.assets)){var S,A=E.assets.length;for(S=0;S<A;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}})();function F(q){q.__complete||(L(q),T(q),M(q),R(q),k(q),b(q.layers,q.assets),p(q.chars,q.assets),q.__complete=!0)}function O(q){q.t.a.length===0&&"m"in q.t.p}var D={};return D.completeData=F,D.checkColors=L,D.checkChars=M,D.checkPathProperties=R,D.checkShapes=k,D.completeLayers=b,D}if(n.dataManager||(n.dataManager=m()),n.assetLoader||(n.assetLoader=(function(){function b(v){var g=v.getResponseHeader("content-type");return g&&v.responseType==="json"&&g.indexOf("json")!==-1||v.response&&_typeof$5(v.response)==="object"?v.response:v.response&&typeof v.response=="string"?JSON.parse(v.response):v.responseText?JSON.parse(v.responseText):null}function p(v,g,_,C){var x,T=new XMLHttpRequest;try{T.responseType="json"}catch(M){}T.onreadystatechange=function(){if(T.readyState===4)if(T.status===200)x=b(T),_(x);else try{x=b(T),_(x)}catch(M){C&&C(M)}};try{T.open(["G","E","T"].join(""),v,!0)}catch(M){T.open(["G","E","T"].join(""),g+"/"+v,!0)}T.send()}return{load:p}})()),y.data.type==="loadAnimation")n.assetLoader.load(y.data.path,y.data.fullPath,function(b){n.dataManager.completeData(b),n.postMessage({id:y.data.id,payload:b,status:"success"})},function(){n.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var h=y.data.animation;n.dataManager.completeData(h),n.postMessage({id:y.data.id,payload:h,status:"success"})}else y.data.type==="loadData"&&n.assetLoader.load(y.data.path,y.data.fullPath,function(b){n.postMessage({id:y.data.id,payload:b,status:"success"})},function(){n.postMessage({id:y.data.id,status:"error"})})}),i.onmessage=function(f){var y=f.data,m=y.id,h=t[m];t[m]=null,y.status==="success"?h.onComplete(y.payload):h.onError&&h.onError()})}function o(f,y){e+=1;var m="processId_"+e;return t[m]={onComplete:f,onError:y},m}function c(f,y,m){l();var h=o(y,m);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:h})}function u(f,y,m){l();var h=o(y,m);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:h})}function d(f,y,m){l();var h=o(y,m);i.postMessage({type:"complete",animation:f,id:h})}return{loadAnimation:c,loadData:u,completeAnimation:d}})(),ImagePreloader=(function(){var e=(function(){var p=createTag("canvas");p.width=1,p.height=1;var v=p.getContext("2d");return v.fillStyle="rgba(0,0,0,0)",v.fillRect(0,0,1,1),p})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(p,v,g){var _="";if(p.e)_=p.p;else if(v){var C=p.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),_=v+C}else _=g,_+=p.u?p.u:"",_+=p.p;return _}function s(p){var v=0,g=setInterval(function(){var _=p.getBBox();(_.width||v>500)&&(this._imageLoaded(),clearInterval(g)),v+=1}.bind(this),50)}function n(p){var v=i(p,this.assetsPath,this.path),g=createNS("image");isSafari?this.testImageLoaded(g):g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",function(){_.img=e,this._imageLoaded()}.bind(this),!1),g.setAttributeNS("http://www.w3.org/1999/xlink","href",v),this._elementHelper.append?this._elementHelper.append(g):this._elementHelper.appendChild(g);var _={img:g,assetData:p};return _}function a(p){var v=i(p,this.assetsPath,this.path),g=createTag("img");g.crossOrigin="anonymous",g.addEventListener("load",this._imageLoaded,!1),g.addEventListener("error",function(){_.img=e,this._imageLoaded()}.bind(this),!1),g.src=v;var _={img:g,assetData:p};return _}function l(p){var v={assetData:p},g=i(p,this.assetsPath,this.path);return dataManager.loadData(g,function(_){v.img=_,this._footageLoaded()}.bind(this),function(){v.img={},this._footageLoaded()}.bind(this)),v}function o(p,v){this.imagesLoadedCb=v;var g,_=p.length;for(g=0;g<_;g+=1)p[g].layers||(!p[g].t||p[g].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(p[g]))):p[g].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(p[g]))))}function c(p){this.path=p||""}function u(p){this.assetsPath=p||""}function d(p){for(var v=0,g=this.images.length;v<g;){if(this.images[v].assetData===p)return this.images[v].img;v+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function h(p,v){p==="svg"?(this._elementHelper=v,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function b(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return b.prototype={loadAssets:o,setAssetsPath:u,setPath:c,loadedImages:y,loadedFootages:m,destroy:f,getAsset:d,createImgData:a,createImageData:n,imageLoaded:t,footageLoaded:r,setCacheType:h},b})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),function(){this.removeEventListener(t,r)}.bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var r=t.split(`\r
6`),i={},s,n=0,a=0;a<r.length;a+=1)s=r[a].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),n+=1);if(n===0)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var s=t[i],n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(t[i].cm)}catch(a){try{n.payload=e(t[i].cm)}catch(l){n.payload={name:t[i].cm}}}r.push(n)}return r}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}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(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var n=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=n!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var a=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";a==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,s=e.layers,n,a=s.length;for(n=0;n<a;n+=1)for(r=0;r<i;){if(t[r].id===s[n].id){t[r]=s[n];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.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()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!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(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||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(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,r)}catch(s){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],r=0,i=0,s=0,n=!0,a=!1;function l(w){for(var I=0,E=w.target;I<i;)t[I].animation===E&&(t.splice(I,1),I-=1,i-=1,E.isPaused||d()),I+=1}function o(w,I){if(!w)return null;for(var E=0;E<i;){if(t[E].elem===w&&t[E].elem!==null)return t[E].animation;E+=1}var S=new AnimationItem;return f(S,w),S.setData(w,I),S}function c(){var w,I=t.length,E=[];for(w=0;w<I;w+=1)E.push(t[w].animation);return E}function u(){s+=1,L()}function d(){s-=1}function f(w,I){w.addEventListener("destroy",l),w.addEventListener("_active",u),w.addEventListener("_idle",d),t.push({elem:I,animation:w}),i+=1}function y(w){var I=new AnimationItem;return f(I,null),I.setParams(w),I}function m(w,I){var E;for(E=0;E<i;E+=1)t[E].animation.setSpeed(w,I)}function h(w,I){var E;for(E=0;E<i;E+=1)t[E].animation.setDirection(w,I)}function b(w){var I;for(I=0;I<i;I+=1)t[I].animation.play(w)}function p(w){var I=w-r,E;for(E=0;E<i;E+=1)t[E].animation.advanceTime(I);r=w,s&&!a?window.requestAnimationFrame(p):n=!0}function v(w){r=w,window.requestAnimationFrame(p)}function g(w){var I;for(I=0;I<i;I+=1)t[I].animation.pause(w)}function _(w,I,E){var S;for(S=0;S<i;S+=1)t[S].animation.goToAndStop(w,I,E)}function C(w){var I;for(I=0;I<i;I+=1)t[I].animation.stop(w)}function x(w){var I;for(I=0;I<i;I+=1)t[I].animation.togglePause(w)}function T(w){var I;for(I=i-1;I>=0;I-=1)t[I].animation.destroy(w)}function M(w,I,E){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),A,P=S.length;for(A=0;A<P;A+=1)E&&S[A].setAttribute("data-bm-type",E),o(S[A],w);if(I&&P===0){E||(E="svg");var V=document.getElementsByTagName("body")[0];V.innerText="";var B=createTag("div");B.style.width="100%",B.style.height="100%",B.setAttribute("data-bm-type",E),V.appendChild(B),o(B,w)}}function R(){var w;for(w=0;w<i;w+=1)t[w].animation.resize()}function L(){!a&&s&&n&&(window.requestAnimationFrame(v),n=!1)}function k(){a=!0}function F(){a=!1,L()}function O(w,I){var E;for(E=0;E<i;E+=1)t[E].animation.setVolume(w,I)}function D(w){var I;for(I=0;I<i;I+=1)t[I].animation.mute(w)}function q(w){var I;for(I=0;I<i;I+=1)t[I].animation.unmute(w)}return e.registerAnimation=o,e.loadAnimation=y,e.setSpeed=m,e.setDirection=h,e.play=b,e.pause=g,e.stop=C,e.togglePause=x,e.searchAnimations=M,e.resize=R,e.goToAndStop=_,e.destroy=T,e.freeze=k,e.unfreeze=F,e.setVolume=O,e.mute=D,e.unmute=q,e.getRegisteredAnimations=c,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=r;var t={};function r(v,g,_,C,x){var T=x||("bez_"+v+"_"+g+"_"+_+"_"+C).replace(/\./g,"p");if(t[T])return t[T];var M=new p([v,g,_,C]);return t[T]=M,M}var i=4,s=.001,n=1e-7,a=10,l=11,o=1/(l-1),c=typeof Float32Array=="function";function u(v,g){return 1-3*g+3*v}function d(v,g){return 3*g-6*v}function f(v){return 3*v}function y(v,g,_){return((u(g,_)*v+d(g,_))*v+f(g))*v}function m(v,g,_){return 3*u(g,_)*v*v+2*d(g,_)*v+f(g)}function h(v,g,_,C,x){var T,M,R=0;do M=g+(_-g)/2,T=y(M,C,x)-v,T>0?_=M:g=M;while(Math.abs(T)>n&&++R<a);return M}function b(v,g,_,C){for(var x=0;x<i;++x){var T=m(g,_,C);if(T===0)return g;var M=y(g,_,C)-v;g-=M/T}return g}function p(v){this._p=v,this._mSampleValues=c?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(g){var _=this._p[0],C=this._p[1],x=this._p[2],T=this._p[3];return this._precomputed||this._precompute(),_===C&&x===T?g:g===0?0:g===1?1:y(this._getTForX(g),C,T)},_precompute:function(){var g=this._p[0],_=this._p[1],C=this._p[2],x=this._p[3];this._precomputed=!0,(g!==_||C!==x)&&this._calcSampleValues()},_calcSampleValues:function(){for(var g=this._p[0],_=this._p[2],C=0;C<l;++C)this._mSampleValues[C]=y(C*o,g,_)},_getTForX:function(g){for(var _=this._p[0],C=this._p[2],x=this._mSampleValues,T=0,M=1,R=l-1;M!==R&&x[M]<=g;++M)T+=o;--M;var L=(g-x[M])/(x[M+1]-x[M]),k=T+L*o,F=m(k,_,C);return F>=s?b(g,k,_,C):F===0?k:h(g,T,T+o,_,C)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,r){var i=0,s=e,n=createSizedArray(s),a={newElement:l,release:o};function l(){var c;return i?(i-=1,c=n[i]):c=t(),c}function o(c){i===s&&(n=pooling.double(n),s*=2),r&&r(c),n[i]=c,i+=1}return a}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,s=r.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(f,y,m,h,b,p){var v=f*h+y*b+m*p-b*h-p*f-m*y;return v>-.001&&v<.001}function r(f,y,m,h,b,p,v,g,_){if(m===0&&p===0&&_===0)return t(f,y,h,b,v,g);var C=e.sqrt(e.pow(h-f,2)+e.pow(b-y,2)+e.pow(p-m,2)),x=e.sqrt(e.pow(v-f,2)+e.pow(g-y,2)+e.pow(_-m,2)),T=e.sqrt(e.pow(v-h,2)+e.pow(g-b,2)+e.pow(_-p,2)),M;return C>x?C>T?M=C-x-T:M=T-x-C:T>x?M=T-x-C:M=x-C-T,M>-1e-4&&M<1e-4}var i=(function(){return function(f,y,m,h){var b=getDefaultCurveSegments(),p,v,g,_,C,x=0,T,M=[],R=[],L=bezierLengthPool.newElement();for(g=m.length,p=0;p<b;p+=1){for(C=p/(b-1),T=0,v=0;v<g;v+=1)_=bmPow(1-C,3)*f[v]+3*bmPow(1-C,2)*C*m[v]+3*(1-C)*bmPow(C,2)*h[v]+bmPow(C,3)*y[v],M[v]=_,R[v]!==null&&(T+=bmPow(M[v]-R[v],2)),R[v]=M[v];T&&(T=bmSqrt(T),x+=T),L.percents[p]=C,L.lengths[p]=x}return L.addedLength=x,L}})();function s(f){var y=segmentsLengthPool.newElement(),m=f.c,h=f.v,b=f.o,p=f.i,v,g=f._length,_=y.lengths,C=0;for(v=0;v<g-1;v+=1)_[v]=i(h[v],h[v+1],b[v],p[v+1]),C+=_[v].addedLength;return m&&g&&(_[v]=i(h[v],h[0],b[v],p[0]),C+=_[v].addedLength),y.totalLength=C,y}function n(f){this.segmentLength=0,this.points=new Array(f)}function a(f,y){this.partialLength=f,this.point=y}var l=(function(){var f={};return function(y,m,h,b){var p=(y[0]+"_"+y[1]+"_"+m[0]+"_"+m[1]+"_"+h[0]+"_"+h[1]+"_"+b[0]+"_"+b[1]).replace(/\./g,"p");if(!f[p]){var v=getDefaultCurveSegments(),g,_,C,x,T,M=0,R,L,k=null;y.length===2&&(y[0]!==m[0]||y[1]!==m[1])&&t(y[0],y[1],m[0],m[1],y[0]+h[0],y[1]+h[1])&&t(y[0],y[1],m[0],m[1],m[0]+b[0],m[1]+b[1])&&(v=2);var F=new n(v);for(C=h.length,g=0;g<v;g+=1){for(L=createSizedArray(C),T=g/(v-1),R=0,_=0;_<C;_+=1)x=bmPow(1-T,3)*y[_]+3*bmPow(1-T,2)*T*(y[_]+h[_])+3*(1-T)*bmPow(T,2)*(m[_]+b[_])+bmPow(T,3)*m[_],L[_]=x,k!==null&&(R+=bmPow(L[_]-k[_],2));R=bmSqrt(R),M+=R,F.points[g]=new a(R,L),k=L}F.segmentLength=M,f[p]=F}return f[p]}})();function o(f,y){var m=y.percents,h=y.lengths,b=m.length,p=bmFloor((b-1)*f),v=f*y.addedLength,g=0;if(p===b-1||p===0||v===h[p])return m[p];for(var _=h[p]>v?-1:1,C=!0;C;)if(h[p]<=v&&h[p+1]>v?(g=(v-h[p])/(h[p+1]-h[p]),C=!1):p+=_,p<0||p>=b-1){if(p===b-1)return m[p];C=!1}return m[p]+(m[p+1]-m[p])*g}function c(f,y,m,h,b,p){var v=o(b,p),g=1-v,_=e.round((g*g*g*f[0]+(v*g*g+g*v*g+g*g*v)*m[0]+(v*v*g+g*v*v+v*g*v)*h[0]+v*v*v*y[0])*1e3)/1e3,C=e.round((g*g*g*f[1]+(v*g*g+g*v*g+g*g*v)*m[1]+(v*v*g+g*v*v+v*g*v)*h[1]+v*v*v*y[1])*1e3)/1e3;return[_,C]}var u=createTypedArray("float32",8);function d(f,y,m,h,b,p,v){b<0?b=0:b>1&&(b=1);var g=o(b,v);p=p>1?1:p;var _=o(p,v),C,x=f.length,T=1-g,M=1-_,R=T*T*T,L=g*T*T*3,k=g*g*T*3,F=g*g*g,O=T*T*M,D=g*T*M+T*g*M+T*T*_,q=g*g*M+T*g*_+g*T*_,w=g*g*_,I=T*M*M,E=g*M*M+T*_*M+T*M*_,S=g*_*M+T*_*_+g*M*_,A=g*_*_,P=M*M*M,V=_*M*M+M*_*M+M*M*_,B=_*_*M+M*_*_+_*M*_,N=_*_*_;for(C=0;C<x;C+=1)u[C*4]=e.round((R*f[C]+L*m[C]+k*h[C]+F*y[C])*1e3)/1e3,u[C*4+1]=e.round((O*f[C]+D*m[C]+q*h[C]+w*y[C])*1e3)/1e3,u[C*4+2]=e.round((I*f[C]+E*m[C]+S*h[C]+A*y[C])*1e3)/1e3,u[C*4+3]=e.round((P*f[C]+V*m[C]+B*h[C]+N*y[C])*1e3)/1e3;return u}return{getSegmentsLength:s,getNewSegment:d,getPointInSegment:c,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,n=s,a=this.keyframes.length-1,l=!0,o,c,u;l;){if(o=this.keyframes[n],c=this.keyframes[n+1],n===a-1&&e>=c.t-r){o.h&&(o=c),s=0;break}if(c.t-r>e){s=n;break}n<a-1?n+=1:(s=0,l=!1)}u=this.keyframesMetadata[n]||{};var d,f,y,m,h,b,p=c.t-r,v=o.t-r,g;if(o.to){u.bezierData||(u.bezierData=bez.buildBezierData(o.s,c.s||o.e,o.to,o.ti));var _=u.bezierData;if(e>=p||e<v){var C=e>=p?_.points.length-1:0;for(f=_.points[C].point.length,d=0;d<f;d+=1)i[d]=_.points[C].point[d]}else{u.__fnct?b=u.__fnct:(b=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,u.__fnct=b),y=b((e-v)/(p-v));var x=_.segmentLength*y,T,M=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastAddedLength:0;for(h=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastPoint:0,l=!0,m=_.points.length;l;){if(M+=_.points[h].partialLength,x===0||y===0||h===_.points.length-1){for(f=_.points[h].point.length,d=0;d<f;d+=1)i[d]=_.points[h].point[d];break}else if(x>=M&&x<M+_.points[h+1].partialLength){for(T=(x-M)/_.points[h+1].partialLength,f=_.points[h].point.length,d=0;d<f;d+=1)i[d]=_.points[h].point[d]+(_.points[h+1].point[d]-_.points[h].point[d])*T;break}h<m-1?h+=1:l=!1}t._lastPoint=h,t._lastAddedLength=M-_.points[h].partialLength,t._lastKeyframeIndex=n}}else{var R,L,k,F,O;if(a=o.s.length,g=c.s||o.e,this.sh&&o.h!==1)if(e>=p)i[0]=g[0],i[1]=g[1],i[2]=g[2];else if(e<=v)i[0]=o.s[0],i[1]=o.s[1],i[2]=o.s[2];else{var D=createQuaternion(o.s),q=createQuaternion(g),w=(e-v)/(p-v);quaternionToEuler(i,slerp(D,q,w))}else for(n=0;n<a;n+=1)o.h!==1&&(e>=p?y=1:e<v?y=0:(o.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[n]?b=u.__fnct[n]:(R=o.o.x[n]===void 0?o.o.x[0]:o.o.x[n],L=o.o.y[n]===void 0?o.o.y[0]:o.o.y[n],k=o.i.x[n]===void 0?o.i.x[0]:o.i.x[n],F=o.i.y[n]===void 0?o.i.y[0]:o.i.y[n],b=BezierFactory.getBezierEasing(R,L,k,F).get,u.__fnct[n]=b)):u.__fnct?b=u.__fnct:(R=o.o.x,L=o.o.y,k=o.i.x,F=o.i.y,b=BezierFactory.getBezierEasing(R,L,k,F).get,o.keyframeMetadata=b),y=b((e-v)/(p-v)))),g=c.s||o.e,O=o.h===1?o.s[n]:o.s[n]+(g[n]-o.s[n])*y,this.propType==="multidimensional"?i[n]=O:i=O}return t.lastIndex=s,i}function slerp(e,t,r){var i=[],s=e[0],n=e[1],a=e[2],l=e[3],o=t[0],c=t[1],u=t[2],d=t[3],f,y,m,h,b;return y=s*o+n*c+a*u+l*d,y<0&&(y=-y,o=-o,c=-c,u=-u,d=-d),1-y>1e-6?(f=Math.acos(y),m=Math.sin(f),h=Math.sin((1-r)*f)/m,b=Math.sin(r*f)/m):(h=1-r,b=r),i[0]=h*s+b*o,i[1]=h*n+b*c,i[2]=h*a+b*u,i[3]=h*l+b*d,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],s=t[2],n=t[3],a=Math.atan2(2*i*n-2*r*s,1-2*i*i-2*s*s),l=Math.asin(2*r*i+2*s*n),o=Math.atan2(2*r*n-2*i*s,1-2*r*r-2*s*s);e[0]=a/degToRads,e[1]=l/degToRads,e[2]=o/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),n=Math.cos(r/2),a=Math.cos(i/2),l=Math.sin(t/2),o=Math.sin(r/2),c=Math.sin(i/2),u=s*n*a-l*o*c,d=l*o*a+s*n*c,f=l*n*a+s*o*c,y=s*o*a-l*n*c;return[d,f,y,u]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.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(e,t,r,i){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),s=0;s<n;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.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(e,t,r,i){this.propType="multidimensional";var s,n=t.k.length,a,l,o,c;for(s=0;s<n-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(a=t.k[s].s,l=t.k[s+1].s,o=t.k[s].to,c=t.k[s].ti,(a.length===2&&!(a[0]===l[0]&&a[1]===l[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],l[0]+c[0],l[1]+c[1])||a.length===3&&!(a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],l[0]+c[0],l[1]+c[1],l[2]+c[2]))&&(t.k[s].to=null,t.k[s].ti=null),a[0]===l[0]&&a[1]===l[1]&&o[0]===0&&o[1]===0&&c[0]===0&&c[1]===0&&(a.length===2||a[2]===l[2]&&o[2]===0&&c[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),s=0;s<u;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(r,i,s,n,a){i.sid&&(i=r.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(r,i,n,a);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(r,i,n,a);else switch(s){case 0:l=new KeyframedValueProperty(r,i,n,a);break;case 1:l=new KeyframedMultidimensionalProperty(r,i,n,a);break}return l.effectsSequence.length&&a.addDynamicProperty(l),l}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;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=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();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(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},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(e,t,r,i,s){var n;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[];break}(!n[i]||n[i]&&!s)&&(n[i]=pointPool.newElement()),n[i][0]=e,n[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,s,n,a,l){this.setXYAt(e,t,"v",a,l),this.setXYAt(r,i,"o",a,l),this.setXYAt(s,n,"i",a,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var n=this._length-1,a=this._length,l;for(l=s;l<a;l+=1)e.setTripleAt(t[n][0],t[n][1],i[n][0],i[n][1],r[n][0],r[n][1],l,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var n=s._length,a;for(a=0;a<n;a+=1)pointPool.release(s.v[a]),pointPool.release(s.i[a]),pointPool.release(s.o[a]),s.v[a]=null,s.i[a]=null,s.o[a]=null;s._length=0,s.c=!1}function r(s){var n=i.newElement(),a,l=s._length===void 0?s.v.length:s._length;for(n.setLength(l),n.c=s.c,a=0;a<l;a+=1)n.setTripleAt(s.v[a][0],s.v[a][1],s.o[a][0],s.o[a][1],s.i[a][0],s.i[a][1],a);return n}var i=poolFactory(4,e,t);return i.clone=r,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:n},t=0,r=4,i=createSizedArray(r);function s(){var a;return t?(t-=1,a=i[t]):a=new ShapeCollection,a}function n(a){var l,o=a._length;for(l=0;l<o;l+=1)shapePool.release(a.shapes[l]);a._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=a,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(p,v,g){var _=g.lastIndex,C,x,T,M,R,L,k,F,O,D=this.keyframes;if(p<D[0].t-this.offsetTime)C=D[0].s[0],T=!0,_=0;else if(p>=D[D.length-1].t-this.offsetTime)C=D[D.length-1].s?D[D.length-1].s[0]:D[D.length-2].e[0],T=!0;else{for(var q=_,w=D.length-1,I=!0,E,S,A;I&&(E=D[q],S=D[q+1],!(S.t-this.offsetTime>p));)q<w-1?q+=1:I=!1;if(A=this.keyframesMetadata[q]||{},T=E.h===1,_=q,!T){if(p>=S.t-this.offsetTime)F=1;else if(p<E.t-this.offsetTime)F=0;else{var P;A.__fnct?P=A.__fnct:(P=BezierFactory.getBezierEasing(E.o.x,E.o.y,E.i.x,E.i.y).get,A.__fnct=P),F=P((p-(E.t-this.offsetTime))/(S.t-this.offsetTime-(E.t-this.offsetTime)))}x=S.s?S.s[0]:E.e[0]}C=E.s[0]}for(L=v._length,k=C.i[0].length,g.lastIndex=_,M=0;M<L;M+=1)for(R=0;R<k;R+=1)O=T?C.i[M][R]:C.i[M][R]+(x.i[M][R]-C.i[M][R])*F,v.i[M][R]=O,O=T?C.o[M][R]:C.o[M][R]+(x.o[M][R]-C.o[M][R])*F,v.o[M][R]=O,O=T?C.v[M][R]:C.v[M][R]+(x.v[M][R]-C.v[M][R])*F,v.v[M][R]=O}function r(){var p=this.comp.renderedFrame-this.offsetTime,v=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==e&&(_<v&&p<v||_>g&&p>g)||(this._caching.lastIndex=_<p?this._caching.lastIndex:0,this.interpolateShape(p,this.pv,this._caching)),this._caching.lastFrame=p,this.pv}function i(){this.paths=this.localShapeCollection}function s(p,v){if(p._length!==v._length||p.c!==v.c)return!1;var g,_=p._length;for(g=0;g<_;g+=1)if(p.v[g][0]!==v.v[g][0]||p.v[g][1]!==v.v[g][1]||p.o[g][0]!==v.o[g][0]||p.o[g][1]!==v.o[g][1]||p.i[g][0]!==v.i[g][0]||p.i[g][1]!==v.i[g][1])return!1;return!0}function n(p){s(this.v,p)||(this.v=shapePool.clone(p),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var p;this.kf?p=this.pv:this.data.ks?p=this.data.ks.k:p=this.data.pt.k;var v,g=this.effectsSequence.length;for(v=0;v<g;v+=1)p=this.effectsSequence[v](p);this.setVValue(p),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(p,v,g){this.propType="shape",this.comp=p.comp,this.container=p,this.elem=p,this.data=v,this.k=!1,this.kf=!1,this._mdf=!1;var _=g===3?v.pt.k:v.ks.k;this.v=shapePool.clone(_),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function o(p){this.effectsSequence.push(p),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=a,l.prototype.setVValue=n,l.prototype.addEffect=o;function c(p,v,g){this.propType="shape",this.comp=p.comp,this.elem=p,this.container=p,this.offsetTime=p.data.st,this.keyframes=g===3?v.pt.k:v.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.getValue=a,c.prototype.interpolateShape=t,c.prototype.setVValue=n,c.prototype.addEffect=o;var u=(function(){var p=roundCorner;function v(g,_){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=g,this.comp=g.comp,this.frameId=-1,this.initDynamicPropertyContainer(g),this.p=PropertyFactory.getProp(g,_.p,1,0,this),this.s=PropertyFactory.getProp(g,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return v.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],C=this.p.v[1],x=this.s.v[0]/2,T=this.s.v[1]/2,M=this.d!==3,R=this.v;R.v[0][0]=_,R.v[0][1]=C-T,R.v[1][0]=M?_+x:_-x,R.v[1][1]=C,R.v[2][0]=_,R.v[2][1]=C+T,R.v[3][0]=M?_-x:_+x,R.v[3][1]=C,R.i[0][0]=M?_-x*p:_+x*p,R.i[0][1]=C-T,R.i[1][0]=M?_+x:_-x,R.i[1][1]=C-T*p,R.i[2][0]=M?_+x*p:_-x*p,R.i[2][1]=C+T,R.i[3][0]=M?_-x:_+x,R.i[3][1]=C+T*p,R.o[0][0]=M?_+x*p:_-x*p,R.o[0][1]=C-T,R.o[1][0]=M?_+x:_-x,R.o[1][1]=C+T*p,R.o[2][0]=M?_-x*p:_+x*p,R.o[2][1]=C+T,R.o[3][0]=M?_-x:_+x,R.o[3][1]=C-T*p}},extendPrototype([DynamicPropertyContainer],v),v})(),d=(function(){function p(v,g){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=v,this.comp=v.comp,this.data=g,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(v),g.sy===1?(this.ir=PropertyFactory.getProp(v,g.ir,0,0,this),this.is=PropertyFactory.getProp(v,g.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(v,g.pt,0,0,this),this.p=PropertyFactory.getProp(v,g.p,1,0,this),this.r=PropertyFactory.getProp(v,g.r,0,degToRads,this),this.or=PropertyFactory.getProp(v,g.or,0,0,this),this.os=PropertyFactory.getProp(v,g.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 p.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var g=Math.floor(this.pt.v)*2,_=Math.PI*2/g,C=!0,x=this.or.v,T=this.ir.v,M=this.os.v,R=this.is.v,L=2*Math.PI*x/(g*2),k=2*Math.PI*T/(g*2),F,O,D,q,w=-Math.PI/2;w+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,F=0;F<g;F+=1){O=C?x:T,D=C?M:R,q=C?L:k;var E=O*Math.cos(w),S=O*Math.sin(w),A=E===0&&S===0?0:S/Math.sqrt(E*E+S*S),P=E===0&&S===0?0:-E/Math.sqrt(E*E+S*S);E+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(E,S,E-A*q*D*I,S-P*q*D*I,E+A*q*D*I,S+P*q*D*I,F,!0),C=!C,w+=_*I}},convertPolygonToPath:function(){var g=Math.floor(this.pt.v),_=Math.PI*2/g,C=this.or.v,x=this.os.v,T=2*Math.PI*C/(g*4),M,R=-Math.PI*.5,L=this.data.d===3?-1:1;for(R+=this.r.v,this.v._length=0,M=0;M<g;M+=1){var k=C*Math.cos(R),F=C*Math.sin(R),O=k===0&&F===0?0:F/Math.sqrt(k*k+F*F),D=k===0&&F===0?0:-k/Math.sqrt(k*k+F*F);k+=+this.p.v[0],F+=+this.p.v[1],this.v.setTripleAt(k,F,k-O*T*x*L,F-D*T*x*L,k+O*T*x*L,F+D*T*x*L,M,!0),R+=_*L}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],p),p})(),f=(function(){function p(v,g){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=v,this.comp=v.comp,this.frameId=-1,this.d=g.d,this.initDynamicPropertyContainer(v),this.p=PropertyFactory.getProp(v,g.p,1,0,this),this.s=PropertyFactory.getProp(v,g.s,1,0,this),this.r=PropertyFactory.getProp(v,g.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return p.prototype={convertRectToPath:function(){var g=this.p.v[0],_=this.p.v[1],C=this.s.v[0]/2,x=this.s.v[1]/2,T=bmMin(C,x,this.r.v),M=T*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(g+C,_-x+T,g+C,_-x+T,g+C,_-x+M,0,!0),this.v.setTripleAt(g+C,_+x-T,g+C,_+x-M,g+C,_+x-T,1,!0),T!==0?(this.v.setTripleAt(g+C-T,_+x,g+C-T,_+x,g+C-M,_+x,2,!0),this.v.setTripleAt(g-C+T,_+x,g-C+M,_+x,g-C+T,_+x,3,!0),this.v.setTripleAt(g-C,_+x-T,g-C,_+x-T,g-C,_+x-M,4,!0),this.v.setTripleAt(g-C,_-x+T,g-C,_-x+M,g-C,_-x+T,5,!0),this.v.setTripleAt(g-C+T,_-x,g-C+T,_-x,g-C+M,_-x,6,!0),this.v.setTripleAt(g+C-T,_-x,g+C-M,_-x,g+C-T,_-x,7,!0)):(this.v.setTripleAt(g-C,_+x,g-C+M,_+x,g-C,_+x,2),this.v.setTripleAt(g-C,_-x,g-C,_-x+M,g-C,_-x,3))):(this.v.setTripleAt(g+C,_-x+T,g+C,_-x+M,g+C,_-x+T,0,!0),T!==0?(this.v.setTripleAt(g+C-T,_-x,g+C-T,_-x,g+C-M,_-x,1,!0),this.v.setTripleAt(g-C+T,_-x,g-C+M,_-x,g-C+T,_-x,2,!0),this.v.setTripleAt(g-C,_-x+T,g-C,_-x+T,g-C,_-x+M,3,!0),this.v.setTripleAt(g-C,_+x-T,g-C,_+x-M,g-C,_+x-T,4,!0),this.v.setTripleAt(g-C+T,_+x,g-C+T,_+x,g-C+M,_+x,5,!0),this.v.setTripleAt(g+C-T,_+x,g+C-M,_+x,g+C-T,_+x,6,!0),this.v.setTripleAt(g+C,_+x-T,g+C,_+x-T,g+C,_+x-M,7,!0)):(this.v.setTripleAt(g-C,_-x,g-C+M,_-x,g-C,_-x,1,!0),this.v.setTripleAt(g-C,_+x,g-C,_+x-M,g-C,_+x,2,!0),this.v.setTripleAt(g+C,_+x,g+C-M,_+x,g+C,_+x,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],p),p})();function y(p,v,g){var _;if(g===3||g===4){var C=g===3?v.pt:v.ks,x=C.k;x.length?_=new c(p,v,g):_=new l(p,v,g)}else g===5?_=new f(p,v):g===6?_=new u(p,v):g===7&&(_=new d(p,v));return _.k&&p.addDynamicProperty(_),_}function m(){return l}function h(){return c}var b={};return b.getShapeProp=y,b.getConstructorFunction=m,b.getKeyframedConstructorFunction=h,b})();/*!
7 Transformation Matrix v2.0
8 (c) Epistemex 2014-2015
9 www.epistemex.com
10 By Ken Fyrstenberg
11 Contributions by leeoniya.
12 License: MIT, header required.
13 */var Matrix=(function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function s(){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 n(E){if(E===0)return this;var S=e(E),A=t(E);return this._t(S,-A,0,0,A,S,0,0,0,0,1,0,0,0,0,1)}function a(E){if(E===0)return this;var S=e(E),A=t(E);return this._t(1,0,0,0,0,S,-A,0,0,A,S,0,0,0,0,1)}function l(E){if(E===0)return this;var S=e(E),A=t(E);return this._t(S,0,A,0,0,1,0,0,-A,0,S,0,0,0,0,1)}function o(E){if(E===0)return this;var S=e(E),A=t(E);return this._t(S,-A,0,0,A,S,0,0,0,0,1,0,0,0,0,1)}function c(E,S){return this._t(1,S,E,1,0,0)}function u(E,S){return this.shear(r(E),r(S))}function d(E,S){var A=e(S),P=t(S);return this._t(A,P,0,0,-P,A,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(E),1,0,0,0,0,1,0,0,0,0,1)._t(A,-P,0,0,P,A,0,0,0,0,1,0,0,0,0,1)}function f(E,S,A){return!A&&A!==0&&(A=1),E===1&&S===1&&A===1?this:this._t(E,0,0,0,0,S,0,0,0,0,A,0,0,0,0,1)}function y(E,S,A,P,V,B,N,z,j,H,K,Q,J,Y,ee,U){return this.props[0]=E,this.props[1]=S,this.props[2]=A,this.props[3]=P,this.props[4]=V,this.props[5]=B,this.props[6]=N,this.props[7]=z,this.props[8]=j,this.props[9]=H,this.props[10]=K,this.props[11]=Q,this.props[12]=J,this.props[13]=Y,this.props[14]=ee,this.props[15]=U,this}function m(E,S,A){return A=A||0,E!==0||S!==0||A!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,E,S,A,1):this}function h(E,S,A,P,V,B,N,z,j,H,K,Q,J,Y,ee,U){var G=this.props;if(E===1&&S===0&&A===0&&P===0&&V===0&&B===1&&N===0&&z===0&&j===0&&H===0&&K===1&&Q===0)return G[12]=G[12]*E+G[15]*J,G[13]=G[13]*B+G[15]*Y,G[14]=G[14]*K+G[15]*ee,G[15]*=U,this._identityCalculated=!1,this;var re=G[0],le=G[1],ie=G[2],se=G[3],ne=G[4],ae=G[5],W=G[6],ce=G[7],Z=G[8],X=G[9],oe=G[10],te=G[11],ue=G[12],fe=G[13],he=G[14],de=G[15];return G[0]=re*E+le*V+ie*j+se*J,G[1]=re*S+le*B+ie*H+se*Y,G[2]=re*A+le*N+ie*K+se*ee,G[3]=re*P+le*z+ie*Q+se*U,G[4]=ne*E+ae*V+W*j+ce*J,G[5]=ne*S+ae*B+W*H+ce*Y,G[6]=ne*A+ae*N+W*K+ce*ee,G[7]=ne*P+ae*z+W*Q+ce*U,G[8]=Z*E+X*V+oe*j+te*J,G[9]=Z*S+X*B+oe*H+te*Y,G[10]=Z*A+X*N+oe*K+te*ee,G[11]=Z*P+X*z+oe*Q+te*U,G[12]=ue*E+fe*V+he*j+de*J,G[13]=ue*S+fe*B+he*H+de*Y,G[14]=ue*A+fe*N+he*K+de*ee,G[15]=ue*P+fe*z+he*Q+de*U,this._identityCalculated=!1,this}function b(E){var S=E.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function p(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function v(E){for(var S=0;S<16;){if(E.props[S]!==this.props[S])return!1;S+=1}return!0}function g(E){var S;for(S=0;S<16;S+=1)E.props[S]=this.props[S];return E}function _(E){var S;for(S=0;S<16;S+=1)this.props[S]=E[S]}function C(E,S,A){return{x:E*this.props[0]+S*this.props[4]+A*this.props[8]+this.props[12],y:E*this.props[1]+S*this.props[5]+A*this.props[9]+this.props[13],z:E*this.props[2]+S*this.props[6]+A*this.props[10]+this.props[14]}}function x(E,S,A){return E*this.props[0]+S*this.props[4]+A*this.props[8]+this.props[12]}function T(E,S,A){return E*this.props[1]+S*this.props[5]+A*this.props[9]+this.props[13]}function M(E,S,A){return E*this.props[2]+S*this.props[6]+A*this.props[10]+this.props[14]}function R(){var E=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/E,A=-this.props[1]/E,P=-this.props[4]/E,V=this.props[0]/E,B=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/E,N=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/E,z=new Matrix;return z.props[0]=S,z.props[1]=A,z.props[4]=P,z.props[5]=V,z.props[12]=B,z.props[13]=N,z}function L(E){var S=this.getInverseMatrix();return S.applyToPointArray(E[0],E[1],E[2]||0)}function k(E){var S,A=E.length,P=[];for(S=0;S<A;S+=1)P[S]=L(E[S]);return P}function F(E,S,A){var P=createTypedArray("float32",6);if(this.isIdentity())P[0]=E[0],P[1]=E[1],P[2]=S[0],P[3]=S[1],P[4]=A[0],P[5]=A[1];else{var V=this.props[0],B=this.props[1],N=this.props[4],z=this.props[5],j=this.props[12],H=this.props[13];P[0]=E[0]*V+E[1]*N+j,P[1]=E[0]*B+E[1]*z+H,P[2]=S[0]*V+S[1]*N+j,P[3]=S[0]*B+S[1]*z+H,P[4]=A[0]*V+A[1]*N+j,P[5]=A[0]*B+A[1]*z+H}return P}function O(E,S,A){var P;return this.isIdentity()?P=[E,S,A]:P=[E*this.props[0]+S*this.props[4]+A*this.props[8]+this.props[12],E*this.props[1]+S*this.props[5]+A*this.props[9]+this.props[13],E*this.props[2]+S*this.props[6]+A*this.props[10]+this.props[14]],P}function D(E,S){if(this.isIdentity())return E+","+S;var A=this.props;return Math.round((E*A[0]+S*A[4]+A[12])*100)/100+","+Math.round((E*A[1]+S*A[5]+A[13])*100)/100}function q(){for(var E=0,S=this.props,A="matrix3d(",P=1e4;E<16;)A+=i(S[E]*P)/P,A+=E===15?")":",",E+=1;return A}function w(E){var S=1e4;return E<1e-6&&E>0||E>-1e-6&&E<0?i(E*S)/S:E}function I(){var E=this.props,S=w(E[0]),A=w(E[1]),P=w(E[4]),V=w(E[5]),B=w(E[12]),N=w(E[13]);return"matrix("+S+","+A+","+P+","+V+","+B+","+N+")"}return function(){this.reset=s,this.rotate=n,this.rotateX=a,this.rotateY=l,this.rotateZ=o,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=f,this.setTransform=y,this.translate=m,this.transform=h,this.multiply=b,this.applyToPoint=C,this.applyToX=x,this.applyToY=T,this.applyToZ=M,this.applyToPointArray=O,this.applyToTriplePoints=F,this.applyToPointStringified=D,this.toCSS=q,this.to2dCSS=I,this.clone=g,this.cloneFromProps=_,this.equals=v,this.inversePoints=k,this.inversePoint=L,this.getInverseMatrix=R,this._t=this.transform,this.isIdentity=p,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator!="undefined"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default: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";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=r,e.getModifier=i;function r(s,n){t[s]||(t[s]=n)}function i(s,n,a){return new t[s](n,a)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),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);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,s){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a=[],l,o=n.length,c;for(l=0;l<o;l+=1)if(c=n[l],!(c.e*s<i||c.s*s>i+r)){var u,d;c.s*s<=i?u=0:u=(c.s*s-i)/r,c.e*s>=i+r?d=1:d=(c.e*s-i)/r,a.push([u,d])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var n,a,l=this.shapes.length,o,c,u,d,f,y=0;if(r===t)for(a=0;a<l;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(a=0;a<l;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var m=[],h,b;for(a=0;a<l;a+=1)if(h=this.shapes[a],!h.shape._mdf&&!this._mdf&&!e&&this.m!==2)h.shape.paths=h.localShapeCollection;else{if(n=h.shape.paths,c=n._length,f=0,!h.shape._mdf&&h.pathsData.length)f=h.totalShapeLength;else{for(u=this.releasePathsData(h.pathsData),o=0;o<c;o+=1)d=bez.getSegmentsLength(n.shapes[o]),u.push(d),f+=d.totalLength;h.totalShapeLength=f,h.pathsData=u}y+=f,h.shape._mdf=!0}var p=t,v=r,g=0,_;for(a=l-1;a>=0;a-=1)if(h=this.shapes[a],h.shape._mdf){for(b=h.localShapeCollection,b.releaseShapes(),this.m===2&&l>1?(_=this.calculateShapeEdges(t,r,h.totalShapeLength,g,y),g+=h.totalShapeLength):_=[[p,v]],c=_.length,o=0;o<c;o+=1){p=_[o][0],v=_[o][1],m.length=0,v<=1?m.push({s:h.totalShapeLength*p,e:h.totalShapeLength*v}):p>=1?m.push({s:h.totalShapeLength*(p-1),e:h.totalShapeLength*(v-1)}):(m.push({s:h.totalShapeLength*p,e:h.totalShapeLength}),m.push({s:0,e:h.totalShapeLength*(v-1)}));var C=this.addShapes(h,m[0]);if(m[0].s!==m[0].e){if(m.length>1){var x=h.shape.paths.shapes[h.shape.paths._length-1];if(x.c){var T=C.pop();this.addPaths(C,b),C=this.addShapes(h,m[1],T)}else this.addPaths(C,b),C=this.addShapes(h,m[1])}this.addPaths(C,b)}}h.shape.paths=b}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,s,n,a){s.setXYAt(t[0],t[1],"o",n),s.setXYAt(r[0],r[1],"i",n+1),a&&s.setXYAt(e[0],e[1],"v",n),s.setXYAt(i[0],i[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i=e.pathsData,s=e.shape.paths.shapes,n,a=e.shape.paths._length,l,o,c=0,u,d,f,y,m=[],h,b=!0;for(r?(d=r._length,h=r._length):(r=shapePool.newElement(),d=0,h=0),m.push(r),n=0;n<a;n+=1){for(f=i[n].lengths,r.c=s[n].c,o=s[n].c?f.length:f.length+1,l=1;l<o;l+=1)if(u=f[l-1],c+u.addedLength<t.s)c+=u.addedLength,r.c=!1;else if(c>t.e){r.c=!1;break}else t.s<=c&&t.e>=c+u.addedLength?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[l],s[n].v[l],r,d,b),b=!1):(y=bez.getNewSegment(s[n].v[l-1],s[n].v[l],s[n].o[l-1],s[n].i[l],(t.s-c)/u.addedLength,(t.e-c)/u.addedLength,f[l-1]),this.addSegmentFromArray(y,r,d,b),b=!1,r.c=!1),c+=u.addedLength,d+=1;if(s[n].c&&f.length){if(u=f[l-1],c<=t.e){var p=f[l-1].addedLength;t.s<=c&&t.e>=c+p?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[0],s[n].v[0],r,d,b),b=!1):(y=bez.getNewSegment(s[n].v[l-1],s[n].v[0],s[n].o[l-1],s[n].i[0],(t.s-c)/p,(t.e-c)/p,f[l-1]),this.addSegmentFromArray(y,r,d,b),b=!1,r.c=!1)}else r.c=!1;c+=u.addedLength,d+=1}if(r._length&&(r.setXYAt(r.v[h][0],r.v[h][1],"i",h),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),c>t.e)break;n<a-1&&(r=shapePool.newElement(),b=!0,m.push(r),d=0)}return m};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],s=e._length,n=0;for(n=0;n<s;n+=1)i[0]+=e.v[n][0],i[1]+=e.v[n][1];i[0]/=s,i[1]/=s;var a=shapePool.newElement();a.c=e.c;var l,o,c,u,d,f;for(n=0;n<s;n+=1)l=e.v[n][0]+(i[0]-e.v[n][0])*r,o=e.v[n][1]+(i[1]-e.v[n][1])*r,c=e.o[n][0]+(i[0]-e.o[n][0])*-r,u=e.o[n][1]+(i[1]-e.o[n][1])*-r,d=e.i[n][0]+(i[0]-e.i[n][0])*-r,f=e.i[n][1]+(i[1]-e.i[n][1])*-r,a.setTripleAt(l,o,c,u,d,f,n);return a},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v;if(a!==0){var l,o;for(r=0;r<i;r+=1){if(l=this.shapes[r],o=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(o.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)o.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(o){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&o.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&o.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&o.skewFromAxis(-this.sk.v,this.sa.v),this.r?o.rotate(-this.r.v):o.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?o.translate(this.px.v,this.py.v,-this.pz.v):o.translate(this.px.v,this.py.v,0):o.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(o){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||o){var c;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 u,d;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(u=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),d=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(u=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),d=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(u=this.p.pv,d=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){u=[],d=[];var f=this.px,y=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(u[0]=f.getValueAtTime((f.keyframes[0].t+.01)/c,0),u[1]=y.getValueAtTime((y.keyframes[0].t+.01)/c,0),d[0]=f.getValueAtTime(f.keyframes[0].t/c,0),d[1]=y.getValueAtTime(y.keyframes[0].t/c,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(u[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/c,0),u[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/c,0),d[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/c,0),d[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/c,0)):(u=[f.pv,y.pv],d[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/c,f.offsetTime),d[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/c,y.offsetTime))}else d=e,u=d;this.v.rotate(-Math.atan2(u[1]-d[1],u[0]-d[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}}function i(){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;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function s(){}function n(o){this._addDynamicProperty(o),this.elem.addDynamicProperty(o),this._isDirty=!0}function a(o,c,u){if(this.elem=o,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(u||o),c.p&&c.p.s?(this.px=PropertyFactory.getProp(o,c.p.x,0,0,this),this.py=PropertyFactory.getProp(o,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(o,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(o,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(o,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(o,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(o,c.rz,0,degToRads,this),c.or.k[0].ti){var d,f=c.or.k.length;for(d=0;d<f;d+=1)c.or.k[d].to=null,c.or.k[d].ti=null}this.or=PropertyFactory.getProp(o,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(o,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(o,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(o,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(o,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(o,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(o,c.o,0,.01,o):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=n,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(o,c,u){return new a(o,c,u)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,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(e,t,r,i,s,n){var a=n?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),o=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*a*s,i.p.v[1]*a*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(n?1/l:l,n?1/o:o),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,s,n,a=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var o={it:this.cloneElements(this._elements),ty:"gr"};o.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,o),this._groups.splice(0,0,o),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}n=0;var c;for(i=0;i<=this._groups.length-1;i+=1){if(c=n<l,this._groups[i]._render=c,this.changeGroupRender(this._groups[i].it,c),!c){var u=this.elemsData[i].it,d=u[u.length-1];d.transform.op.v!==0?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}n+=1}this._currentCopies=l;var f=this.o.v,y=f%1,m=f>0?Math.floor(f):Math.ceil(f),h=this.pMatrix.props,b=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v=0;if(f>0){for(;v<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),v+=y)}else if(f<0){for(;v>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),v-=y)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,n=this._currentCopies;for(var g,_;n;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,_=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),v!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),g=0;g<_;g+=1)r[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<_;g+=1)r[g]=this.matrix.props[g];v+=1,n-=1,i+=s}}else for(n=this._currentCopies,i=0,s=1;n;)t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,i+=s;return a},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var i,s=e._length,n,a,l,o,c,u,d=0,f,y,m,h,b,p;for(i=0;i<s;i+=1)n=e.v[i],l=e.o[i],a=e.i[i],n[0]===l[0]&&n[1]===l[1]&&n[0]===a[0]&&n[1]===a[1]?(i===0||i===s-1)&&!e.c?(r.setTripleAt(n[0],n[1],l[0],l[1],a[0],a[1],d),d+=1):(i===0?o=e.v[s-1]:o=e.v[i-1],c=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)),u=c?Math.min(c/2,t)/c:0,b=n[0]+(o[0]-n[0])*u,f=b,p=n[1]-(n[1]-o[1])*u,y=p,m=f-(f-n[0])*roundCorner,h=y-(y-n[1])*roundCorner,r.setTripleAt(f,y,m,h,b,p,d),d+=1,i===s-1?o=e.v[0]:o=e.v[i+1],c=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)),u=c?Math.min(c/2,t)/c:0,m=n[0]+(o[0]-n[0])*u,f=m,h=n[1]+(o[1]-n[1])*u,y=h,b=f-(f-n[0])*roundCorner,p=y-(y-n[1])*roundCorner,r.setTripleAt(f,y,m,h,b,p,d),d+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],d),d+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.rd.v;if(a!==0){var l,o;for(r=0;r<i;r+=1){if(l=this.shapes[r],o=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(o.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)o.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var i=t*t-4*e*r;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var n=Math.sqrt(i)/(2*e);return[s-n,s+n]}function polynomialCoefficients(e,t,r,i){return[-e+3*t-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var n=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),n=lerpPoint(r,i,e),a=lerpPoint(s,n,e);return[new PolynomialBezier(this.points[0],t,s,a,!0),new PolynomialBezier(a,n,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var s=i;i=r,r=s}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var l=e.point(n[a])[t];l<r?r=l:l>i&&(i=l)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,i,s,n){if(boxIntersect(e,t)){if(r>=n||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var a=splitData(e),l=splitData(t);intersectsImpl(a[0],l[0],r+1,i,s,n),intersectsImpl(a[0],l[1],r+1,i,s,n),intersectsImpl(a[1],l[0],r+1,i,s,n),intersectsImpl(a[1],l[1],r+1,i,s,n)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var s=[e[0],e[1],1],n=[t[0],t[1],1],a=[r[0],r[1],1],l=[i[0],i[1],1],o=crossProduct(crossProduct(s,n),crossProduct(a,l));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,s,n,a){var l=r-Math.PI/2,o=r+Math.PI/2,c=t[0]+Math.cos(r)*i*s,u=t[1]-Math.sin(r)*i*s;e.setTripleAt(c,u,c+Math.cos(l)*n,u-Math.sin(l)*n,c+Math.cos(o)*a,u-Math.sin(o)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[r],n=e.v[i],a=getPerpendicularVector(s,n);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,r,i,s,n,a){var l=getProjectingAngle(t,r),o=t.v[r%t._length],c=t.v[r===0?t._length-1:r-1],u=t.v[(r+1)%t._length],d=n===2?Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)):0,f=n===2?Math.sqrt(Math.pow(o[0]-u[0],2)+Math.pow(o[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],l,a,i,f/((s+1)*2),d/((s+1)*2))}function zigZagSegment(e,t,r,i,s,n){for(var a=0;a<i;a+=1){var l=(a+1)/(i+1),o=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(l),u=t.point(l);setPoint(e,u,c,n,r,o/((i+1)*2),o/((i+1)*2)),n=-n}return n}ZigZagModifier.prototype.processPath=function(e,t,r,i){var s=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(s-=1),s===0)return n;var a=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,r,i,a);for(var o=0;o<s;o+=1)a=zigZagSegment(n,l,t,r,i,-a),o===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(o+1)%s),zigZagCorner(n,e,o+1,t,r,i,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),o=this.pointsType.v;if(a!==0){var c,u;for(r=0;r<i;r+=1){if(c=this.shapes[r],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(u.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,n=c.shape.paths._length,s=0;s<n;s+=1)u.addShape(this.processPath(t[s],a,l,o));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,s,n,a,l,o;o=linearOffset(e.points[0],e.points[1],t),r=o[0],i=o[1],o=linearOffset(e.points[1],e.points[2],t),s=o[0],n=o[1],o=linearOffset(e.points[2],e.points[3],t),a=o[0],l=o[1];var c=lineIntersection(r,i,s,n);c===null&&(c=i);var u=lineIntersection(a,l,s,n);return u===null&&(u=a),new PolynomialBezier(r,c,u,l)}function joinLines(e,t,r,i,s){var n=t.points[3],a=r.points[0];if(i===3||pointEqual(n,a))return n;if(i===2){var l=-t.tangentAngle(1),o=-r.tangentAngle(0)+Math.PI,c=lineIntersection(n,polarOffset(n,l+Math.PI/2,100),a,polarOffset(a,l+Math.PI/2,100)),u=c?pointDistance(c,n):pointDistance(n,a)/2,d=polarOffset(n,l,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,o,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var f=pointEqual(n,t.points[2])?t.points[0]:t.points[2],y=pointEqual(a,r.points[1])?r.points[3]:r.points[1],m=lineIntersection(f,n,a,y);return m&&pointDistance(m,n)<s?(e.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],e.length()),m):n}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,s,n,a;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return n=e.split(r[0]),i=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(s,t)];n=e.split(r[0]),i=n[0];var l=(r[1]-r[0])/(1-r[0]);return n=n[1].split(l),a=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(a,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var s=shapePool.newElement();s.c=e.c;var n=e.length();e.c||(n-=1);var a,l,o,c=[];for(a=0;a<n;a+=1)o=PolynomialBezier.shapeSegment(e,a),c.push(offsetSegmentSplit(o,t));if(!e.c)for(a=n-1;a>=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(e,a),c.push(offsetSegmentSplit(o,t));c=pruneIntersections(c);var u=null,d=null;for(a=0;a<c.length;a+=1){var f=c[a];for(d&&(u=joinLines(s,d,f[0],r,i)),d=f[f.length-1],l=0;l<f.length;l+=1)o=f[l],u&&pointEqual(o.points[0],u)?s.setXYAt(o.points[1][0],o.points[1][1],"o",s.length()-1):s.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],s.length()),s.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],s.length()),u=o.points[3]}return c.length&&joinLines(s,d,c[0][0],r,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v,l=this.miterLimit.v,o=this.lineJoin;if(a!==0){var c,u;for(r=0;r<i;r+=1){if(c=this.shapes[r],u=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(u.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,n=c.shape.paths._length,s=0;s<n;s+=1)u.addShape(this.processPath(t[s],a,o,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",s=t.length,n,a=0;a<s;a+=1)switch(n=t[a].toLowerCase(),n){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:i,weight:e.fWeight||r}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.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,s=917631,n=917601,a=917626,l=65039,o=8205,c=127462,u=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(w){var I=w.split(","),E,S=I.length,A=[];for(E=0;E<S;E+=1)I[E]!=="sans-serif"&&I[E]!=="monospace"&&A.push(I[E]);return A.join(",")}function y(w,I){var E=createTag("span");E.setAttribute("aria-hidden",!0),E.style.fontFamily=I;var S=createTag("span");S.innerText="giItT1WQy@!-/#",E.style.position="absolute",E.style.left="-10000px",E.style.top="-10000px",E.style.fontSize="300px",E.style.fontVariant="normal",E.style.fontStyle="normal",E.style.fontWeight="normal",E.style.letterSpacing="0",E.appendChild(S),document.body.appendChild(E);var A=S.offsetWidth;return S.style.fontFamily=f(w)+", "+I,{node:S,w:A,parent:E}}function m(){var w,I=this.fonts.length,E,S,A=I;for(w=0;w<I;w+=1)this.fonts[w].loaded?A-=1:this.fonts[w].fOrigin==="n"||this.fonts[w].origin===0?this.fonts[w].loaded=!0:(E=this.fonts[w].monoCase.node,S=this.fonts[w].monoCase.w,E.offsetWidth!==S?(A-=1,this.fonts[w].loaded=!0):(E=this.fonts[w].sansCase.node,S=this.fonts[w].sansCase.w,E.offsetWidth!==S&&(A-=1,this.fonts[w].loaded=!0)),this.fonts[w].loaded&&(this.fonts[w].sansCase.parent.parentNode.removeChild(this.fonts[w].sansCase.parent),this.fonts[w].monoCase.parent.parentNode.removeChild(this.fonts[w].monoCase.parent)));A!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function h(w,I){var E=document.body&&I?"svg":"canvas",S,A=getFontProperties(w);if(E==="svg"){var P=createNS("text");P.style.fontSize="100px",P.setAttribute("font-family",w.fFamily),P.setAttribute("font-style",A.style),P.setAttribute("font-weight",A.weight),P.textContent="1",w.fClass?(P.style.fontFamily="inherit",P.setAttribute("class",w.fClass)):P.style.fontFamily=w.fFamily,I.appendChild(P),S=P}else{var V=new OffscreenCanvas(500,500).getContext("2d");V.font=A.style+" "+A.weight+" 100px "+w.fFamily,S=V}function B(N){return E==="svg"?(S.textContent=N,S.getComputedTextLength()):S.measureText(N).width}return{measureText:B}}function b(w,I){if(!w){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=w.list;return}if(!document.body){this.isLoaded=!0,w.list.forEach(function(K){K.helper=h(K),K.cache={}}),this.fonts=w.list;return}var E=w.list,S,A=E.length,P=A;for(S=0;S<A;S+=1){var V=!0,B,N;if(E[S].loaded=!1,E[S].monoCase=y(E[S].fFamily,"monospace"),E[S].sansCase=y(E[S].fFamily,"sans-serif"),!E[S].fPath)E[S].loaded=!0,P-=1;else if(E[S].fOrigin==="p"||E[S].origin===3){if(B=document.querySelectorAll('style[f-forigin="p"][f-family="'+E[S].fFamily+'"], style[f-origin="3"][f-family="'+E[S].fFamily+'"]'),B.length>0&&(V=!1),V){var z=createTag("style");z.setAttribute("f-forigin",E[S].fOrigin),z.setAttribute("f-origin",E[S].origin),z.setAttribute("f-family",E[S].fFamily),z.type="text/css",z.innerText="@font-face {font-family: "+E[S].fFamily+"; font-style: normal; src: url('"+E[S].fPath+"');}",I.appendChild(z)}}else if(E[S].fOrigin==="g"||E[S].origin===1){for(B=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),N=0;N<B.length;N+=1)B[N].href.indexOf(E[S].fPath)!==-1&&(V=!1);if(V){var j=createTag("link");j.setAttribute("f-forigin",E[S].fOrigin),j.setAttribute("f-origin",E[S].origin),j.type="text/css",j.rel="stylesheet",j.href=E[S].fPath,document.body.appendChild(j)}}else if(E[S].fOrigin==="t"||E[S].origin===2){for(B=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),N=0;N<B.length;N+=1)E[S].fPath===B[N].src&&(V=!1);if(V){var H=createTag("link");H.setAttribute("f-forigin",E[S].fOrigin),H.setAttribute("f-origin",E[S].origin),H.setAttribute("rel","stylesheet"),H.setAttribute("href",E[S].fPath),I.appendChild(H)}}E[S].helper=h(E[S],I),E[S].cache={},this.fonts.push(E[S])}P===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function p(w){if(w){this.chars||(this.chars=[]);var I,E=w.length,S,A=this.chars.length,P;for(I=0;I<E;I+=1){for(S=0,P=!1;S<A;)this.chars[S].style===w[I].style&&this.chars[S].fFamily===w[I].fFamily&&this.chars[S].ch===w[I].ch&&(P=!0),S+=1;P||(this.chars.push(w[I]),A+=1)}}}function v(w,I,E){for(var S=0,A=this.chars.length;S<A;){if(this.chars[S].ch===w&&this.chars[S].style===I&&this.chars[S].fFamily===E)return this.chars[S];S+=1}return(typeof w=="string"&&w.charCodeAt(0)!==13||!w)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",w,I,E)),t}function g(w,I,E){var S=this.getFontByName(I),A=w;if(!S.cache[A]){var P=S.helper;if(w===" "){var V=P.measureText("|"+w+"|"),B=P.measureText("||");S.cache[A]=(V-B)/100}else S.cache[A]=P.measureText(w)/100}return S.cache[A]*E}function _(w){for(var I=0,E=this.fonts.length;I<E;){if(this.fonts[I].fName===w)return this.fonts[I];I+=1}return this.fonts[0]}function C(w){var I=0,E=w.charCodeAt(0);if(E>=55296&&E<=56319){var S=w.charCodeAt(1);S>=56320&&S<=57343&&(I=(E-55296)*1024+S-56320+65536)}return I}function x(w,I){var E=w.toString(16)+I.toString(16);return d.indexOf(E)!==-1}function T(w){return w===o}function M(w){return w===l}function R(w){var I=C(w);return I>=c&&I<=u}function L(w){return R(w.substr(0,2))&&R(w.substr(2,2))}function k(w){return r.indexOf(w)!==-1}function F(w,I){var E=C(w.substr(I,2));if(E!==i)return!1;var S=0;for(I+=2;S<5;){if(E=C(w.substr(I,2)),E<n||E>a)return!1;S+=1,I+=2}return C(w.substr(I,2))===s}function O(){this.isLoaded=!0}var D=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)};D.isModifier=x,D.isZeroWidthJoiner=T,D.isFlagEmoji=L,D.isRegionalCode=R,D.isCombinedCharacter=k,D.isRegionalFlag=F,D.isVariationSelector=M,D.BLACK_FLAG_CODE_POINT=i;var q={addChars:p,addFonts:b,getCharData:v,getFontByName:_,measureText:g,checkLoadedFonts:m,setIsLoaded:O};return D.prototype=q,D})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={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"};return function(t){return e[t]||""}})();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var i,s=r.length,n;for(i=0;i<s;i+=1)n=new GroupEffect(r[i],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,s,n=this.data.ef;for(r=0;r<i;r+=1){switch(s=null,n[r].ty){case 0:s=new SliderEffect(n[r],t,this);break;case 1:s=new AngleEffect(n[r],t,this);break;case 2:s=new ColorEffect(n[r],t,this);break;case 3:s=new PointEffect(n[r],t,this);break;case 4:case 7:s=new CheckboxEffect(n[r],t,this);break;case 10:s=new LayerIndexEffect(n[r],t,this);break;case 11:s=new MaskIndexEffect(n[r],t,this);break;case 5:s=new EffectsManager(n[r],t);break;default:s=new NoValueEffect(n[r]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),a=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,i){this.globalData=r,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(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}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 e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,i,s=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,s=this.layers,n=0,a=s.length;n<a;)s[n].ind==t&&(!i[n]||i[n]===!0?(this.buildItem(n),this.addPendingElement(e)):(r.push(i[n]),i[n].setAsParent(),s[n].parent!==void 0?this.buildElementParenting(e,s[n].parent,r):e.setHierarchy(r))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}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,r=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){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,r.cloneFromProps(t),i=0;i<s;i+=1)r.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,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)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<r;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)n*=this.localTransforms[t].opacity*.01;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 r=0,i=t.length;for(r=0;r<i;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):i=!1;var n,a=r.length,l;for(n=0;n<a;n+=1)l=r[n].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var a,l=this.masksProperties,o=0,c=[],u,d,f=createElementID(),y,m,h,b,p="clipPath",v="clip-path";for(s=0;s<n;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(p="mask",v="mask"),(l[s].mode==="s"||l[s].mode==="i")&&o===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),c.push(y)):y=null,a=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:a,lastPath:""},i.appendChild(a);else{o+=1,a.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var g;if(l[s].x.k!==0?(p="mask",v="mask",b=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),g=createElementID(),m=createNS("filter"),m.setAttribute("id",g),h=createNS("feMorphology"),h.setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),m.appendChild(h),i.appendChild(m),a.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(h=null,b=null),this.storedData[s]={elem:a,x:b,expan:h,lastPath:"",lastOperator:"",filterId:g,lastRadius:0},l[s].mode==="i"){d=c.length;var _=createNS("g");for(u=0;u<d;u+=1)_.appendChild(c[u]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",f+"_"+o),C.appendChild(a),i.appendChild(C),_.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+o+")"),c.length=0,c.push(_)}else c.push(a);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:y},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(p),n=c.length,s=0;s<n;s+=1)this.maskElement.appendChild(c[s]);o>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+f+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var s=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),s.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var i=" M"+t.v[0][0]+","+t.v[0][1],s,n;for(n=t._length,s=1;s<n;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&n>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",a)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(i,s){var n=createNS("filter");return n.setAttribute("id",i),s!==!0&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas!="undefined"};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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),n=filtersFactory.createFilter(s,!0),a=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var o=e.data.ef[t].ty;if(registeredEffects$1[o]){var c=registeredEffects$1[o].effect;l=new c(n,e.effectsManager.effectElements[t],e,idPrefix+a,r),r=idPrefix+a,registeredEffects$1[o].countsAsEffect&&(a+=1)}l&&this.filters.push(l)}a&&(e.globalData.defs.appendChild(n),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}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 r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}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),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.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(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}this.data.bm!==0&&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 r=this.layerId+"_"+t,i,s,n,a;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",t===3?"luminance":"alpha"),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),a.appendChild(n),l.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var o=createNS("mask");o.setAttribute("id",r),o.setAttribute("mask-type","alpha");var c=createNS("g");o.appendChild(c),i=createElementID(),s=filtersFactory.createFilter(i);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),s.appendChild(u);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),u.appendChild(d),this.globalData.defs.appendChild(s);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("op
13acity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),c.appendChild(f),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),c.appendChild(f),a.appendChild(this.layerElement),c.appendChild(a)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,i,s){this.initFrame(),this.initBaseData(r,i,s),this.initTransform(r,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=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",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var i;for(t=r-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,s=r.length;i<s;){if(r[i].elem===t)return r[i].pos;i+=1}return 0},addProcessedElement:function(t,r){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=r;return}i.push(new ProcessedElement(t,r))},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(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,n=t.length||0,a;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:t[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&
vendor: 165,633 bytes, line 13
13!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2,s;r<i;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.01)return!1;r+=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 e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,i,s;for(t=0;t<r;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],n,a,l;for(l=t.g.p*4,a=0;a<l;a+=4)n=createNS("stop"),i.appendChild(n),s.push(n);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,n=createNS("mask"),a=createNS("path");n.appendChild(a);var l=createElementID(),o=createElementID();n.setAttribute("id",o);var c=createNS(e.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(i=e.g.p*4;i<s;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),u.push(r);a.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=n,this.ost=u,this.maskId=o,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,i,s){if(r===0)return"";var n=t.o,a=t.i,l=t.v,o,c=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(o=1;o<r;o+=1)c+=" C"+s.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+s.applyToPointStringified(a[o][0],a[o][1])+" "+s.applyToPointStringified(l[o][0],l[o][1]);return i&&r&&(c+=" C"+s.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),c+="z"),c},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:i};function i(d){switch(d.ty){case"fl":return l;case"gf":return c;case"gs":return o;case"st":return u;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return n;default:return null}}function s(d,f,y){(y||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(y||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function n(){}function a(d,f,y){var m,h,b,p,v,g,_=f.styles.length,C=f.lvl,x,T,M,R;for(g=0;g<_;g+=1){if(p=f.sh._mdf||y,f.styles[g].lvl<C){for(T=t.reset(),M=C-f.styles[g].lvl,R=f.transformers.length-1;!p&&M>0;)p=f.transformers[R].mProps._mdf||p,M-=1,R-=1;if(p)for(M=C-f.styles[g].lvl,R=f.transformers.length-1;M>0;)T.multiply(f.transformers[R].mProps.v),M-=1,R-=1}else T=e;if(x=f.sh.paths,h=x._length,p){for(b="",m=0;m<h;m+=1)v=x.shapes[m],v&&v._length&&(b+=buildShapeString(v,v._length,v.c,T));f.caches[g]=b}else b=f.caches[g];f.styles[g].d+=d.hd===!0?"":b,f.styles[g]._mdf=p||f.styles[g]._mdf}}function l(d,f,y){var m=f.style;(f.c._mdf||y)&&m.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||y)&&m.pElem.setAttribute("fill-opacity",f.o.v)}function o(d,f,y){c(d,f,y),u(d,f,y)}function c(d,f,y){var m=f.gf,h=f.g._hasOpacity,b=f.s.v,p=f.e.v;if(f.o._mdf||y){var v=d.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(v,f.o.v)}if(f.s._mdf||y){var g=d.t===1?"x1":"cx",_=g==="x1"?"y1":"cy";m.setAttribute(g,b[0]),m.setAttribute(_,b[1]),h&&!f.g._collapsable&&(f.of.setAttribute(g,b[0]),f.of.setAttribute(_,b[1]))}var C,x,T,M;if(f.g._cmdf||y){C=f.cst;var R=f.g.c;for(T=C.length,x=0;x<T;x+=1)M=C[x],M.setAttribute("offset",R[x*4]+"%"),M.setAttribute("stop-color","rgb("+R[x*4+1]+","+R[x*4+2]+","+R[x*4+3]+")")}if(h&&(f.g._omdf||y)){var L=f.g.o;for(f.g._collapsable?C=f.cst:C=f.ost,T=C.length,x=0;x<T;x+=1)M=C[x],f.g._collapsable||M.setAttribute("offset",L[x*2]+"%"),M.setAttribute("stop-opacity",L[x*2+1])}if(d.t===1)(f.e._mdf||y)&&(m.setAttribute("x2",p[0]),m.setAttribute("y2",p[1]),h&&!f.g._collapsable&&(f.of.setAttribute("x2",p[0]),f.of.setAttribute("y2",p[1])));else{var k;if((f.s._mdf||f.e._mdf||y)&&(k=Math.sqrt(Math.pow(b[0]-p[0],2)+Math.pow(b[1]-p[1],2)),m.setAttribute("r",k),h&&!f.g._collapsable&&f.of.setAttribute("r",k)),f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||y){k||(k=Math.sqrt(Math.pow(b[0]-p[0],2)+Math.pow(b[1]-p[1],2)));var F=Math.atan2(p[1]-b[1],p[0]-b[0]),O=f.h.v;O>=1?O=.99:O<=-1&&(O=-.99);var D=k*O,q=Math.cos(F+f.a.v)*D+b[0],w=Math.sin(F+f.a.v)*D+b[1];m.setAttribute("fx",q),m.setAttribute("fy",w),h&&!f.g._collapsable&&(f.of.setAttribute("fx",q),f.of.setAttribute("fy",w))}}}function u(d,f,y){var m=f.style,h=f.d;h&&(h._mdf||y)&&h.dashStr&&(m.pElem.setAttribute("stroke-dasharray",h.dashStr),m.pElem.setAttribute("stroke-dashoffset",h.dashoffset[0])),f.c&&(f.c._mdf||y)&&m.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||y)&&m.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||y)&&(m.pElem.setAttribute("stroke-width",f.w.v),m.msElem&&m.msElem.setAttribute("stroke-width",f.w.v))}return r})();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}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 e,t=this.shapes.length,r,i,s=this.stylesList.length,n,a=[],l=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],l=!1,a.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(n)!==-1&&(a.push(r),l=r._isAnimated||l);a.length>1&&l&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var n=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new n(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),n=new SVGShapeData(t,r,s);return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)t.indexOf(this.stylesList[r])===-1&&!this.stylesList[r].closed&&t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,s,n,a){var l=[].concat(n),o,c=e.length-1,u,d,f=[],y=[],m,h,b;for(o=c;o>=0;o-=1){if(b=this.searchProcessedElement(e[o]),b?t[o]=r[b-1]:e[o]._render=a,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs"||e[o].ty==="no")b?t[o].style.closed=e[o].hd:t[o]=this.createStyleElement(e[o],s),e[o]._render&&t[o].style.pElem.parentNode!==i&&i.appendChild(t[o].style.pElem),f.push(t[o].style);else if(e[o].ty==="gr"){if(!b)t[o]=this.createGroupElement(e[o]);else for(d=t[o].it.length,u=0;u<d;u+=1)t[o].prevViewData[u]=t[o].it[u];this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,s+1,l,a),e[o]._render&&t[o].gr.parentNode!==i&&i.appendChild(t[o].gr)}else e[o].ty==="tr"?(b||(t[o]=this.createTransformElement(e[o],i)),m=t[o].transform,l.push(m)):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?(b||(t[o]=this.createShapeElement(e[o],l,s)),this.setElementStyles(t[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="ms"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(b?(h=t[o],h.closed=!1):(h=ShapeModifiers.getModifier(e[o].ty),h.init(this,e[o]),t[o]=h,this.shapeModifiers.push(h)),y.push(h)):e[o].ty==="rp"&&(b?(h=t[o],h.closed=!0):(h=ShapeModifiers.getModifier(e[o].ty),t[o]=h,h.init(this,e,o,t),this.shapeModifiers.push(h),a=!1),y.push(h));this.addProcessedElement(e[o],o+1)}for(c=f.length,o=0;o<c;o+=1)f[o].closed=!0;for(c=y.length,o=0;o<c;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,i,s,n){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=s,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,i,s,n){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!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,a=!0),n.length&&(this.p[0]!==n[0]||this.p[1]!==n[1]||this.p[4]!==n[4]||this.p[5]!==n[5]||this.p[12]!==n[12]||this.p[13]!==n[13])&&(this.p=n,this._mdf.p=!0,a=!0),a};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)r!==this.keysIndex?n=this.effectsSequence[i](n,n.t):n=this.effectsSequence[i](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,s,n,a=!1,l=!1,o="";r<i;)a=l,l=!1,s=e.charCodeAt(r),o=e.charAt(r),FontManager.isCombinedCharacter(s)?a=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?o=e.substr(r,14):(n=e.charCodeAt(r+1),n>=56320&&n<=57343&&(FontManager.isModifier(s,n)?(o=e.substr(r,2),a=!0):FontManager.isFlagEmoji(e.substr(r,4))?o=e.substr(r,4):o=e.substr(r,2))):s>56319?(n=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(a=!0)):FontManager.isZeroWidthJoiner(s)&&(a=!0,l=!0),a?(t[t.length-1]+=o,a=!1):t.push(o),r+=o.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,i=[],s,n,a,l=0,o,c=r.m.g,u=0,d=0,f=0,y=[],m=0,h=0,b,p,v=t.getFontByName(e.f),g,_=0,C=getFontProperties(v);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var x=e.tr/1e3*e.finalSize,T;if(e.sz)for(var M=!0,R=e.sz[0],L=e.sz[1],k,F;M;){F=this.buildFinalText(e.t),k=0,m=0,n=F.length,x=e.tr/1e3*e.finalSize;var O=-1;for(s=0;s<n;s+=1)T=F[s].charCodeAt(0),a=!1,F[s]===" "?O=s:(T===13||T===3)&&(m=0,a=!0,k+=e.finalLineHeight||e.finalSize*1.2),t.chars?(g=t.getCharData(F[s],v.fStyle,v.fFamily),_=a?0:g.w*e.finalSize/100):_=t.measureText(F[s],e.f,e.finalSize),m+_>R&&F[s]!==" "?(O===-1?n+=1:s=O,k+=e.finalLineHeight||e.finalSize*1.2,F.splice(s,O===s?1:0,"\r"),O=-1,m=0):(m+=_,m+=x);k+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&L<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=F,n=e.finalText.length,M=!1)}m=-x,_=0;var D=0,q;for(s=0;s<n;s+=1)if(a=!1,q=e.finalText[s],T=q.charCodeAt(0),T===13||T===3?(D=0,y.push(m),h=m>h?m:h,m=-2*x,o="",a=!0,f+=1):o=q,t.chars?(g=t.getCharData(q,v.fStyle,t.getFontByName(e.f).fFamily),_=a?0:g.w*e.finalSize/100):_=t.measureText(o,e.f,e.finalSize),q===" "?D+=_+x:(m+=_+x+D,D=0),i.push({l:_,an:_,add:u,n:a,anIndexes:[],val:o,line:f,animatorJustifyOffset:0}),c==2){if(u+=_,o===""||o===" "||s===n-1){for((o===""||o===" ")&&(u-=_);d<=s;)i[d].an=u,i[d].ind=l,i[d].extra=_,d+=1;l+=1,u=0}}else if(c==3){if(u+=_,o===""||s===n-1){for(o===""&&(u-=_);d<=s;)i[d].an=u,i[d].ind=l,i[d].extra=_,d+=1;u=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,h=m>h?m:h,y.push(m),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=h,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var w=r.a,I,E;p=w.length;var S,A,P=[];for(b=0;b<p;b+=1){for(I=w[b],I.a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),A=0,S=I.s.b,s=0;s<n;s+=1)E=i[s],E.anIndexes[b]=A,(S==1&&E.val!==""||S==2&&E.val!==""&&E.val!==" "||S==3&&(E.n||E.val==" "||s==n-1)||S==4&&(E.n||s==n-1))&&(I.s.rn===1&&P.push(A),A+=1);r.a[b].s.totalChars=A;var V=-1,B;if(I.s.rn===1)for(s=0;s<n;s+=1)E=i[s],V!=E.anIndexes[b]&&(V=E.anIndexes[b],B=P.splice(Math.floor(Math.random()*P.length),1)[0]),E.anIndexes[b]=B}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,r=Math.floor;function i(n,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,a.s||{k:0},0,0,this),"e"in a?this.e=PropertyFactory.getProp(n,a.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(n,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,o=0,c=1,u=1;this.ne.v>0?l=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:u=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(l,o,c,u).get,f=0,y=this.finalS,m=this.finalE,h=this.data.sh;if(h===2)m===y?f=a>=m?1:0:f=e(0,t(.5/(m-y)+(a-y)/(m-y),1)),f=d(f);else if(h===3)m===y?f=a>=m?0:1:f=1-e(0,t(.5/(m-y)+(a-y)/(m-y),1)),f=d(f);else if(h===4)m===y?f=0:(f=e(0,t(.5/(m-y)+(a-y)/(m-y),1)),f<.5?f*=2:f=1-2*(f-.5)),f=d(f);else if(h===5){if(m===y)f=0;else{var b=m-y;a=t(e(0,a+.5-y),m-y);var p=-b/2+a,v=b/2;f=Math.sqrt(1-p*p/(v*v))}f=d(f)}else h===6?(m===y?f=0:(a=t(e(0,a+.5-y),m-y),f=(1+Math.cos(Math.PI+Math.PI*2*a/(m-y)))/2),f=d(f)):(a>=r(y)&&(a-y<0?f=e(0,t(t(m,1)-(y-a),1)):f=e(0,t(m-a,1))),f=d(f));if(this.sm.v!==100){var g=this.sm.v*.01;g===0&&(g=1e-8);var _=.5-g*.5;f<_?f=0:(f=(f-_)/g,f>1&&(f=1))}return f*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,o=this.o.v/l,c=this.s.v/l+o,u=this.e.v/l+o;if(c>u){var d=c;c=u,u=d}this.finalS=c,this.finalE=u}},extendPrototype([DynamicPropertyContainer],i);function s(n,a,l){return new i(n,a)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},s=PropertyFactory.getProp,n=t.a;this.a={r:n.r?s(e,n.r,0,degToRads,r):i,rx:n.rx?s(e,n.rx,0,degToRads,r):i,ry:n.ry?s(e,n.ry,0,degToRads,r):i,sk:n.sk?s(e,n.sk,0,degToRads,r):i,sa:n.sa?s(e,n.sa,0,degToRads,r):i,s:n.s?s(e,n.s,1,.01,r):i,a:n.a?s(e,n.a,1,0,r):i,o:n.o?s(e,n.o,0,.01,r):i,p:n.p?s(e,n.p,1,0,r):i,sw:n.sw?s(e,n.sw,0,0,r):i,sc:n.sc?s(e,n.sc,1,0,r):i,fc:n.fc?s(e,n.fc,1,0,r):i,fh:n.fh?s(e,n.fh,0,0,r):i,fs:n.fs?s(e,n.fs,0,.01,r):i,fb:n.fb?s(e,n.fb,0,.01,r):i,t:n.t?s(e,n.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,n=this.mHelper,a=this._renderType,l=this.renderedLetters.length,o,c,u,d,f=e.l,y,m,h,b,p,v,g,_,C,x,T,M,R,L,k;if(this._hasMaskedPath){if(k=this._pathData.m,!this._pathData.n||this._pathData._mdf){var F=k.v;this._pathData.r.v&&(F=F.reverse()),y={tLength:0,segments:[]},d=F._length-1;var O;for(M=0,u=0;u<d;u+=1)O=bez.buildBezierData(F.v[u],F.v[u+1],[F.o[u][0]-F.v[u][0],F.o[u][1]-F.v[u][1]],[F.i[u+1][0]-F.v[u+1][0],F.i[u+1][1]-F.v[u+1][1]]),y.tLength+=O.segmentLength,y.segments.push(O),M+=O.segmentLength;u=d,k.v.c&&(O=bez.buildBezierData(F.v[u],F.v[0],[F.o[u][0]-F.v[u][0],F.o[u][1]-F.v[u][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),y.tLength+=O.segmentLength,y.segments.push(O),M+=O.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,m=this._pathData.f.v,g=0,v=1,b=0,p=!0,x=y.segments,m<0&&k.v.c)for(y.tLength<Math.abs(m)&&(m=-Math.abs(m)%y.tLength),g=x.length-1,C=x[g].points,v=C.length-1;m<0;)m+=C[v].partialLength,v-=1,v<0&&(g-=1,C=x[g].points,v=C.length-1);C=x[g].points,_=C[v-1],h=C[v],T=h.partialLength}d=f.length,o=0,c=0;var D=e.finalSize*1.2*.714,q=!0,w,I,E,S,A;S=i.length;var P,V=-1,B,N,z,j=m,H=g,K=v,Q=-1,J,Y,ee,U,G,re,le,ie,se="",ne=this.defaultPropsArray,ae;if(e.j===2||e.j===1){var W=0,ce=0,Z=e.j===2?-.5:-1,X=0,oe=!0;for(u=0;u<d;u+=1)if(f[u].n){for(W&&(W+=ce);X<u;)f[X].animatorJustifyOffset=W,X+=1;W=0,oe=!0}else{for(E=0;E<S;E+=1)w=i[E].a,w.t.propType&&(oe&&e.j===2&&(ce+=w.t.v*Z),I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),P.length?W+=w.t.v*P[0]*Z:W+=w.t.v*P*Z);oe=!1}for(W&&(W+=ce);X<u;)f[X].animatorJustifyOffset=W,X+=1}for(u=0;u<d;u+=1){if(n.reset(),J=1,f[u].n)o=0,c+=e.yOffset,c+=q?1:0,m=j,q=!1,this._hasMaskedPath&&(g=H,v=K,C=x[g].points,_=C[v-1],h=C[v],T=h.partialLength,b=0),se="",ie="",re="",ae="",ne=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==f[u].line){switch(e.j){case 1:m+=M-e.lineWidths[f[u].line];break;case 2:m+=(M-e.lineWidths[f[u].line])/2;break}Q=f[u].line}V!==f[u].ind&&(f[V]&&(m+=f[V].extra),m+=f[u].an/2,V=f[u].ind),m+=r[0]*f[u].an*.005;var te=0;for(E=0;E<S;E+=1)w=i[E].a,w.p.propType&&(I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),P.length?te+=w.p.v[0]*P[0]:te+=w.p.v[0]*P),w.a.propType&&(I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),P.length?te+=w.a.v[0]*P[0]:te+=w.a.v[0]*P);for(p=!0,this._pathData.a.v&&(m=f[0].an*.5+(M-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*V/(d-1),m+=this._pathData.f.v);p;)b+T>=m+te||!C?(R=(m+te-b)/h.partialLength,N=_.point[0]+(h.point[0]-_.point[0])*R,z=_.point[1]+(h.point[1]-_.point[1])*R,n.translate(-r[0]*f[u].an*.005,-(r[1]*D)*.01),p=!1):C&&(b+=h.partialLength,v+=1,v>=C.length&&(v=0,g+=1,x[g]?C=x[g].points:k.v.c?(v=0,g=0,C=x[g].points):(b-=h.partialLength,C=null)),C&&(_=h,h=C[v],T=h.partialLength));B=f[u].an/2-f[u].add,n.translate(-B,0,0)}else B=f[u].an/2-f[u].add,n.translate(-B,0,0),n.translate(-r[0]*f[u].an*.005,-r[1]*D*.01,0);for(E=0;E<S;E+=1)w=i[E].a,w.t.propType&&(I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),(o!==0||e.j!==0)&&(this._hasMaskedPath?P.length?m+=w.t.v*P[0]:m+=w.t.v*P:P.length?o+=w.t.v*P[0]:o+=w.t.v*P));for(e.strokeWidthAnim&&(ee=e.sw||0),e.strokeColorAnim&&(e.sc?Y=[e.sc[0],e.sc[1],e.sc[2]]:Y=[0,0,0]),e.fillColorAnim&&e.fc&&(U=[e.fc[0],e.fc[1],e.fc[2]]),E=0;E<S;E+=1)w=i[E].a,w.a.propType&&(I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),P.length?n.translate(-w.a.v[0]*P[0],-w.a.v[1]*P[1],w.a.v[2]*P[2]):n.translate(-w.a.v[0]*P,-w.a.v[1]*P,w.a.v[2]*P));for(E=0;E<S;E+=1)w=i[E].a,w.s.propType&&(I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),P.length?n.scale(1+(w.s.v[0]-1)*P[0],1+(w.s.v[1]-1)*P[1],1):n.scale(1+(w.s.v[0]-1)*P,1+(w.s.v[1]-1)*P,1));for(E=0;E<S;E+=1){if(w=i[E].a,I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),w.sk.propType&&(P.length?n.skewFromAxis(-w.sk.v*P[0],w.sa.v*P[1]):n.skewFromAxis(-w.sk.v*P,w.sa.v*P)),w.r.propType&&(P.length?n.rotateZ(-w.r.v*P[2]):n.rotateZ(-w.r.v*P)),w.ry.propType&&(P.length?n.rotateY(w.ry.v*P[1]):n.rotateY(w.ry.v*P)),w.rx.propType&&(P.length?n.rotateX(w.rx.v*P[0]):n.rotateX(w.rx.v*P)),w.o.propType&&(P.length?J+=(w.o.v*P[0]-J)*P[0]:J+=(w.o.v*P-J)*P),e.strokeWidthAnim&&w.sw.propType&&(P.length?ee+=w.sw.v*P[0]:ee+=w.sw.v*P),e.strokeColorAnim&&w.sc.propType)for(G=0;G<3;G+=1)P.length?Y[G]+=(w.sc.v[G]-Y[G])*P[0]:Y[G]+=(w.sc.v[G]-Y[G])*P;if(e.fillColorAnim&&e.fc){if(w.fc.propType)for(G=0;G<3;G+=1)P.length?U[G]+=(w.fc.v[G]-U[G])*P[0]:U[G]+=(w.fc.v[G]-U[G])*P;w.fh.propType&&(P.length?U=addHueToRGB(U,w.fh.v*P[0]):U=addHueToRGB(U,w.fh.v*P)),w.fs.propType&&(P.length?U=addSaturationToRGB(U,w.fs.v*P[0]):U=addSaturationToRGB(U,w.fs.v*P)),w.fb.propType&&(P.length?U=addBrightnessToRGB(U,w.fb.v*P[0]):U=addBrightnessToRGB(U,w.fb.v*P))}}for(E=0;E<S;E+=1)w=i[E].a,w.p.propType&&(I=i[E].s,P=I.getMult(f[u].anIndexes[E],s.a[E].s.totalChars),this._hasMaskedPath?P.length?n.translate(0,w.p.v[1]*P[0],-w.p.v[2]*P[1]):n.translate(0,w.p.v[1]*P,-w.p.v[2]*P):P.length?n.translate(w.p.v[0]*P[0],w.p.v[1]*P[1],-w.p.v[2]*P[2]):n.translate(w.p.v[0]*P,w.p.v[1]*P,-w.p.v[2]*P));if(e.strokeWidthAnim&&(re=ee<0?0:ee),e.strokeColorAnim&&(le="rgb("+Math.round(Y[0]*255)+","+Math.round(Y[1]*255)+","+Math.round(Y[2]*255)+")"),e.fillColorAnim&&e.fc&&(ie="rgb("+Math.round(U[0]*255)+","+Math.round(U[1]*255)+","+Math.round(U[2]*255)+")"),this._hasMaskedPath){if(n.translate(0,-e.ls),n.translate(0,r[1]*D*.01+c,0),this._pathData.p.v){L=(h.point[1]-_.point[1])/(h.point[0]-_.point[0]);var ue=Math.atan(L)*180/Math.PI;h.point[0]<_.point[0]&&(ue+=180),n.rotate(-ue*Math.PI/180)}n.translate(N,z,0),m-=r[0]*f[u].an*.005,f[u+1]&&V!==f[u+1].ind&&(m+=f[u].an/2,m+=e.tr*.001*e.finalSize)}else{switch(n.translate(o,c,0),e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:n.translate(f[u].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[u].line]),0,0);break;case 2:n.translate(f[u].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[u].line])/2,0,0);break}n.translate(0,-e.ls),n.translate(B,0,0),n.translate(r[0]*f[u].an*.005,r[1]*D*.01,0),o+=f[u].l+e.tr*.001*e.finalSize}a==="html"?se=n.toCSS():a==="svg"?se=n.to2dCSS():ne=[n.props[0],n.props[1],n.props[2],n.props[3],n.props[4],n.props[5],n.props[6],n.props[7],n.props[8],n.props[9],n.props[10],n.props[11],n.props[12],n.props[13],n.props[14],n.props[15]],ae=J}l<=u?(A=new LetterProps(ae,re,le,ie,se,ne),this.renderedLetters.push(A),l+=1,this.lettersChangedFlag=!0):(A=this.renderedLetters[u],this.lettersChangedFlag=A.update(ae,re,le,ie,se,ne)||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);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i=t.length,s,n="";for(r=0;r<i;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,n+=buildShapeString(s,s.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},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(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}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(e){for(var t=0,r=e.length,i=[],s="";t<r;)e[t]==="\r"||e[t]==="�"?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var a=r.l||[],l=!!this.globalData.fontManager.chars;t=a.length;var o,c=this.mHelper,u="",d=this.data.singleShape,f=0,y=0,m=!0,h=r.tr*.001*r.finalSize;if(d&&!l&&!r.sz){var b=this.textContainer,p="start";switch(r.j){case 1:p="end";break;case 2:p="middle";break;default:p="start";break}b.setAttribute("text-anchor",p),b.setAttribute("letter-spacing",h);var v=this.buildTextContents(r.finalText);for(t=v.length,y=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)o=this.textSpans[e].span||createNS("tspan"),o.textContent=v[e],o.setAttribute("x",0),o.setAttribute("y",y),o.style.display="inherit",b.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,y+=r.finalLineHeight;this.layerElement.appendChild(b)}else{var g=this.textSpans.length,_;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||e===0){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var C=createNS("g");o.appendChild(C),this.textSpans[e].childSpan=C}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),d&&(a[e].n&&(f=-h,y+=r.yOffset,y+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(r,c,a[e].line,f,y),f+=a[e].l||0,f+=h),l){_=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var x;if(_.t===1)x=new SVGCompElement(_.data,this.globalData,this);else{var T=emptyShapeData;_.data&&_.data.shapes&&(T=this.buildShapeData(_.data,r.finalSize)),x=new SVGShapeElement(T,this.globalData,this)}if(this.textSpans[e].glyph){var M=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(M.layerElement),M.destroy()}this.textSpans[e].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[e].childSpan.appendChild(x.layerElement),_.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=a[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&o&&o.setAttribute("d",u)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=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 e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._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)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,n,a;for(e=0;e<t;e+=1)i[e].n||(s=r[e],n=this.textSpans[e].span,a=this.textSpans[e].glyph,a&&a.renderFrame(),s._mdf.m&&n.setAttribute("transform",s.m),s._mdf.o&&n.setAttribute("opacity",s.o),s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s._mdf.sc&&n.setAttribute("stroke",s.sc),s._mdf.fc&&n.setAttribute("fill",s.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!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);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var s=t[i],n=s.getMatte(this.layers[e].tt);r.setMatte(n)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],n=s.getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(r,s):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),r+=s}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var o=createNS("g");this.svgElement.appendChild(o),this.layerElement=o,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,i=t.length,s="_";for(r=0;r<i;r+=1)s+=t[r].transform.key+"_";var n=this.sequences[s];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=n,this.sequenceList.push(n)),n},processSequence:function(t,r){for(var i=0,s=t.transforms.length,n=r;i<s&&!r;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,i=null,s=null;function n(){var o=createNS("svg"),c=createNS("filter"),u=createNS("feColorMatrix");return c.setAttribute("id",t),u.setAttribute("type","matrix"),u.setAttribute("color-interpolation-filters","sRGB"),u.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"),c.appendChild(u),o.appendChild(c),o.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(o.style.display="none"),o}function a(){r||(s=n(),document.body.appendChild(s),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(o){return r||a(),r.width=o.width,r.height=o.height,i.filter="url(#"+t+")",r}return{load:a,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<r;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var n=registeredEffects[s].effect;i=new n(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,i=this.masksProperties.length,s,n,a;for(t.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),a=this.viewData[r].v,s=e.applyToPointArray(a.v[0][0],a.v[0][1],0),t.moveTo(s[0],s[1]);var l,o=a._length;for(l=1;l<o;l+=1)n=e.applyToTriplePoints(a.o[l-1],a.i[l],a.v[l]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=e.applyToTriplePoints(a.o[l-1],a.i[0],a.v[0]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);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 r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},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],r=t.getContext("2d");this.clearCanvas(r),r.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],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),n=s.getContext("2d");n.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,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)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),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;function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var n,a=r.length,l;for(n=0;n<a;n+=1)r[n].closed||(l={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(l),r[n].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}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(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,s){var n,a=e.length-1,l,o,c=[],u=[],d,f,y,m=[].concat(s);for(n=a;n>=0;n-=1){if(d=this.searchProcessedElement(e[n]),d?t[n]=r[d-1]:e[n]._shouldRender=i,e[n].ty==="fl"||e[n].ty==="st"||e[n].ty==="gf"||e[n].ty==="gs")d?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],m),c.push(t[n].style);else if(e[n].ty==="gr"){if(!d)t[n]=this.createGroupElement(e[n]);else for(o=t[n].it.length,l=0;l<o;l+=1)t[n].prevViewData[l]=t[n].it[l];this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,i,m)}else e[n].ty==="tr"?(d||(y=this.createTransformElement(e[n]),t[n]=y),m.push(t[n]),this.addTransformToStyleList(t[n])):e[n].ty==="sh"||e[n].ty==="rc"||e[n].ty==="el"||e[n].ty==="sr"?d||(t[n]=this.createShapeElement(e[n])):e[n].ty==="tm"||e[n].ty==="rd"||e[n].ty==="pb"||e[n].ty==="zz"||e[n].ty==="op"?(d?(f=t[n],f.closed=!1):(f=ShapeModifiers.getModifier(e[n].ty),f.init(this,e[n]),t[n]=f,this.shapeModifiers.push(f)),u.push(f)):e[n].ty==="rp"&&(d?(f=t[n],f.closed=!0):(f=ShapeModifiers.getModifier(e[n].ty),t[n]=f,f.init(this,e,n,t),this.shapeModifiers.push(f),i=!1),u.push(f));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),a=u.length,n=0;n<a;n+=1)u[n].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(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,i,s,n,a,l,o=this.globalData.renderer,c=this.globalData.canvasContext,u,d;for(e=0;e<t;e+=1)if(d=this.stylesList[e],u=d.type,!((u==="st"||u==="gs")&&d.wi===0||!d.data._shouldRender||d.coOp===0||this.globalData.currentGlobalAlpha===0)){for(o.save(),a=d.elements,u==="st"||u==="gs"?(o.ctxStrokeStyle(u==="st"?d.co:d.grd),o.ctxLineWidth(d.wi),o.ctxLineCap(d.lc),o.ctxLineJoin(d.lj),o.ctxMiterLimit(d.ml||0)):o.ctxFillStyle(u==="fl"?d.co:d.grd),o.ctxOpacity(d.coOp),u!=="st"&&u!=="gs"&&c.beginPath(),o.ctxTransform(d.preTransforms.finalTransform.props),i=a.length,r=0;r<i;r+=1){for((u==="st"||u==="gs")&&(c.beginPath(),d.da&&(c.setLineDash(d.da),c.lineDashOffset=d.do)),l=a[r].trNodes,n=l.length,s=0;s<n;s+=1)l[s].t==="m"?c.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?c.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):c.closePath();(u==="st"||u==="gs")&&(o.ctxStroke(),d.da&&c.setLineDash(this.dashResetter))}u!=="st"&&u!=="gs"&&this.globalData.renderer.ctxFill(d.r),o.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var s,n=t.length-1,a;for(a=e,s=n;s>=0;s-=1)t[s].ty==="tr"?(a=r[s].transform,this.renderShapeTransform(e,a)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],a):t[s].ty==="st"?this.renderStroke(t[s],r[s],a):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],a):t[s].ty==="gr"?this.renderShape(a,t[s].it,r[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,s,n,a,l=i._length;r.length=0;var o=e.transforms.finalTransform;for(a=0;a<l;a+=1){var c=i.shapes[a];if(c&&c.v){for(n=c._length,s=1;s<n;s+=1)s===1&&r.push({t:"m",p:o.applyToPointArray(c.v[0][0],c.v[0][1],0)}),r.push({t:"c",pts:o.applyToTriplePoints(c.o[s-1],c.i[s],c.v[s])});n===1&&r.push({t:"m",p:o.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(r.push({t:"c",pts:o.applyToTriplePoints(c.o[s-1],c.i[0],c.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var n=this.globalData.canvasContext,a=t.s.v,l=t.e.v;if(e.t===1)s=n.createLinearGradient(a[0],a[1],l[0],l[1]);else{var o=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),c=Math.atan2(l[1]-a[1],l[0]-a[0]),u=t.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var d=o*u,f=Math.cos(c+t.a.v)*d+a[0],y=Math.sin(c+t.a.v)*d+a[1];s=n.createRadialGradient(f,y,0,a[0],a[1],o)}var m,h=e.g.p,b=t.g.c,p=1;for(m=0;m<h;m+=1)t.g._hasOpacity&&t.g._collapsable&&(p=t.g.o[m*2+1]),s.addColorStop(b[m*4]/100,"rgba("+b[m*4+1]+","+b[m*4+2]+","+b[m*4+3]+","+p+")");i.grd=s}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,r){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(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,n,a=e.l,l=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var o,c,u,d,f,y,m,h,b,p,v=this.data.singleShape,g=e.tr*.001*e.finalSize,_=0,C=0,x=!0,T=0;for(s=0;s<n;s+=1){o=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),c=o&&o.data||{},l.reset(),v&&a[s].n&&(_=-g,C+=e.yOffset,C+=x?1:0,x=!1),f=c.shapes?c.shapes[0].it:[],m=f.length,l.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,l,a[s].line,_,C),b=createSizedArray(m-1);var M=0;for(y=0;y<m;y+=1)if(f[y].ty==="sh"){for(d=f[y].ks.k.i.length,h=f[y].ks.k,p=[],u=1;u<d;u+=1)u===1&&p.push(l.applyToX(h.v[0][0],h.v[0][1],0),l.applyToY(h.v[0][0],h.v[0][1],0)),p.push(l.applyToX(h.o[u-1][0],h.o[u-1][1],0),l.applyToY(h.o[u-1][0],h.o[u-1][1],0),l.applyToX(h.i[u][0],h.i[u][1],0),l.applyToY(h.i[u][0],h.i[u][1],0),l.applyToX(h.v[u][0],h.v[u][1],0),l.applyToY(h.v[u][0],h.v[u][1],0));p.push(l.applyToX(h.o[u-1][0],h.o[u-1][1],0),l.applyToY(h.o[u-1][0],h.o[u-1][1],0),l.applyToX(h.i[0][0],h.i[0][1],0),l.applyToY(h.i[0][0],h.i[0][1],0),l.applyToX(h.v[0][0],h.v[0][1],0),l.applyToY(h.v[0][0],h.v[0][1],0)),b[M]=p,M+=1}v&&(_+=a[s].l,_+=g),this.textSpans[T]?this.textSpans[T].elem=b:this.textSpans[T]={elem:b},T+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 t,r,i,s,n,a,l=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;r=o.length;var c,u=null,d=null,f=null,y,m,h=this.globalData.renderer;for(t=0;t<r;t+=1)if(!o[t].n){if(c=l[t],c&&(h.save(),h.ctxTransform(c.p),h.ctxOpacity(c.o)),this.fill){for(c&&c.fc?u!==c.fc&&(h.ctxFillStyle(c.fc),u=c.fc):u!==this.values.fill&&(u=this.values.fill,h.ctxFillStyle(this.values.fill)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(m=y[i],a=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(m[n],m[n+1],m[n+2],m[n+3],m[n+4],m[n+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(c&&c.sw?f!==c.sw&&(f=c.sw,h.ctxLineWidth(c.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),c&&c.sc?d!==c.sc&&(d=c.sc,h.ctxStrokeStyle(c.sc)):d!==this.values.stroke&&(d=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(m=y[i],a=m.length,this.globalData.canvasContext.moveTo(m[0],m[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(m[n],m[n+1],m[n+2],m[n+3],m[n+4],m[n+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}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 e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,i=this.img.height,s=r/i,n=this.assetData.w/this.assetData.h,a,l,o=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>n&&o==="xMidYMid slice"||s<n&&o!=="xMidYMid slice"?(l=i,a=l*n):(a=r,l=a/n),t.drawImage(this.img,(r-a)/2,(i-l)/2,a,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}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)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.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=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,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(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,i;e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var s,n;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),l=a[1]||"meet",o=a[0]||"xMidYMid",c=o.substr(0,4),u=o.substr(4);s=r/i,n=this.transformCanvas.w/this.transformCanvas.h,n>s&&l==="meet"||n<s&&l==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,u==="YMid"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:u==="YMax"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};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(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,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=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=r[i];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=r.opacity,s.fillStyle=r.fillStyle,s.strokeStyle=r.strokeStyle,s.lineWidth=r.lineWidth,s.lineCap=r.lineCap,s.lineJoin=r.lineJoin,s.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},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()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;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();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.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))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}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),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}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;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,i=e.transformers,s,n=r._length,a,l,o,c;if(!(n<=1)){for(s=0;s<n-1;s+=1)a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),o=this.getTransformedPoint(i,r.i[s+1]),c=this.getTransformedPoint(i,r.v[s+1]),this.checkBounds(a,l,o,c,t);r.c&&(a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),o=this.getTransformedPoint(i,r.i[0]),c=this.getTransformedPoint(i,r.v[0]),this.checkBounds(a,l,o,c,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,s){this.getBoundsOfCurve(e,t,r,i);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x),s.xMax=bmMax(n.right,s.xMax),s.y=bmMin(n.top,s.y),s.yMax=bmMax(n.bottom,s.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(e,t,r,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],n,a,l,o,c,u,d,f=0;f<2;++f)a=6*e[f]-12*t[f]+6*r[f],n=-3*e[f]+9*t[f]-9*r[f]+3*i[f],l=3*t[f]-3*e[f],a|=0,n|=0,l|=0,n===0&&a===0||(n===0?(o=-l/a,o>0&&o<1&&s[f].push(this.calculateF(o,e,t,r,i,f))):(c=a*a-4*l*n,c>=0&&(u=(-a+bmSqrt(c))/(2*n),u>0&&u<1&&s[f].push(this.calculateF(u,e,t,r,i,f)),d=(-a-bmSqrt(c))/(2*n),d>0&&d<1&&s[f].push(this.calculateF(d,e,t,r,i,f)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,s,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*i[n]+bmPow(e,3)*s[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,n=e.fStyle;t.fontStyle=n,t.fontWeight=s}var a,l,o=e.l;l=o.length;var c,u,d,f=this.mHelper,y,m="",h=0;for(a=0;a<l;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[h]?c=this.textPaths[h]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[h]?(u=this.textSpans[h],d=u.children[0]):(u=createTag("div"),u.style.lineHeight=0,d=createNS("svg"),d.appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[h]?this.textPaths[h]:createNS("text"):this.textSpans[h]?(u=this.textSpans[h],c=this.textPaths[h]):(u=createTag("span"),styleDiv(u),c=createTag("span"),styleDiv(c),u.appendChild(c)),this.globalData.fontManager.chars){var b=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),p;if(b?p=b.data:p=null,f.reset(),p&&p.shapes&&p.shapes.length&&(y=p.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(f,y),c.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),p&&p.shapes){document.body.appendChild(d);var v=d.getBBox();d.setAttribute("width",v.width+2),d.setAttribute("height",v.height+2),d.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var g=d.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";g.transform=_,g.webkitTransform=_,o[a].yOffset=v.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);u.appendChild(d)}}else if(c.textContent=o[a].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(u);var C=c.style,x="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=x,C.webkitTransform=x}this.isMasked?this.textSpans[h]=c:this.textSpans[h]=u,this.textSpans[h].style.display="block",this.textPaths[h]=c,h+=1}for(;h<this.textSpans.length;)this.textSpans[h].style.display="none",h+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(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),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,s=0,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;i=a.length;var l,o,c;for(r=0;r<i;r+=1)a[r].n?s+=1:(o=this.textSpans[r],c=this.textPaths[r],l=n[s],s+=1,l._mdf.m&&(this.isMasked?o.setAttribute("transform",l.m):(o.style.webkitTransform=l.m,o.style.transform=l.m)),o.style.opacity=l.o,l.sw&&l._mdf.sw&&c.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&c.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(c.setAttribute("fill",l.fc),c.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height));var d=1;if(this.currentBBox.w!==u.width+d*2||this.currentBBox.h!==u.height+d*2||this.currentBBox.x!==u.x-d||this.currentBBox.y!==u.y-d){this.currentBBox.w=u.width+d*2,this.currentBBox.h=u.height+d*2,this.currentBBox.x=u.x-d,this.currentBBox.y=u.y-d,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,n=e.ks.or.k.length;for(s=0;s<n;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,i,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,s=r.container.style;var n=this.pe.v+"px",a="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||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(r=this.hierarchy.length-1,t=r;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),a=[s[0]/n,s[1]/n,s[2]/n],l=Math.sqrt(a[2]*a[2]+a[0]*a[0]),o=Math.atan2(a[1],l),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-o)}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 u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var d,f,y;for(t=0;t<r;t+=1)if(d=this.comp.threeDElements[t],d.type==="3d"){if(u){var m=this.mat.toCSS();y=d.container.style,y.transform=m,y.webkitTransform=m}this.pe._mdf&&(f=d.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.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"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,n,a,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(a=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement(),n=l||n),s+=1;n?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,n):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,s;styleDiv(r);var n=createTag("div");if(styleDiv(n),t==="3d"){i=r.style,i.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,s=n.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}r.appendChild(n);var o={container:n,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,n;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,n,a,l;i>r?(s=e/this.globalData.compSize.w,n=e/this.globalData.compSize.w,a=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,n=t/this.globalData.compSize.h,a=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+n+",0,0,0,0,1,0,"+a+","+l+",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 e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}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(e,t){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.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"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(r){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,s=6,n=52,a="random",l=t.pow(i,s),o=t.pow(2,n),c=o*2,u=i-1,d;function f(g,_,C){var x=[];_=_===!0?{entropy:!0}:_||{};var T=b(h(_.entropy?[g,v(e)]:g===null?p():g,3),x),M=new y(x),R=function(){for(var k=M.g(s),F=l,O=0;k<o;)k=(k+O)*i,F*=i,O=M.g(1);for(;k>=c;)k/=2,F/=2,O>>>=1;return(k+O)/F};return R.int32=function(){return M.g(4)|0},R.quick=function(){return M.g(4)/4294967296},R.double=R,b(v(M.S),e),(_.pass||C||function(L,k,F,O){return O&&(O.S&&m(O,M),L.state=function(){return m(M,{})}),F?(t[a]=L,k):L})(R,T,"global"in _?_.global:this==t,_.state)}t["seed"+a]=f;function y(g){var _,C=g.length,x=this,T=0,M=x.i=x.j=0,R=x.S=[];for(C||(g=[C++]);T<i;)R[T]=T++;for(T=0;T<i;T++)R[T]=R[M=u&M+g[T%C]+(_=R[T])],R[M]=_;x.g=function(L){for(var k,F=0,O=x.i,D=x.j,q=x.S;L--;)k=q[O=u&O+1],F=F*i+q[u&(q[O]=q[D=u&D+k])+(q[D]=k)];return x.i=O,x.j=D,F}}function m(g,_){return _.i=g.i,_.j=g.j,_.S=g.S.slice(),_}function h(g,_){var C=[],x=_typeof$2(g),T;if(_&&x=="object")for(T in g)try{C.push(h(g[T],_-1))}catch(M){}return C.length?C:x=="string"?g:g+"\0"}function b(g,_){for(var C=g+"",x,T=0;T<C.length;)_[u&T]=u&(x^=_[u&T]*19)+C.charCodeAt(T++);return v(_)}function p(){try{var g=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(g),v(g)}catch(x){var _=r.navigator,C=_&&_.plugins;return[+new Date,r,C,r.screen,v(e)]}}function v(g){return String.fromCharCode.apply(0,g)}b(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,s=[];for(r=0;r<i;r+=1)s[r]=-e[r];return s}return e.propType?e.v:-e}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(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||r==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e*t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e*t[n];return s}return 0}function div(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e/t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e/t[n];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],i=e[2],s=Math.max(t,r,i),n=Math.min(t,r,i),a,l,o=(s+n)/2;if(s===n)a=0,l=0;else{var c=s-n;switch(l=o>.5?c/(2-s-n):c/(s+n),s){case t:a=(r-i)/c+(r<i?6:0);break;case r:a=(i-t)/c+2;break;case i:a=(t-r)/c+4;break}a/=6}return[a,l,o,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],s,n,a;if(r===0)s=i,a=i,n=i;else{var l=i<.5?i*(1+r):i+r-i*r,o=2*i-l;s=hue2rgb(o,l,t+1/3),n=hue2rgb(o,l,t),a=hue2rgb(o,l,t-1/3)}return[s,n,a,e[3]]}function linear(e,t,r,i,s){if((i===void 0||s===void 0)&&(i=t,s=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return i;if(e>=r)return s;var a=r===t?0:(e-t)/(r-t);if(!i.length)return i+(s-i)*a;var l,o=i.length,c=createTypedArray("float32",o);for(l=0;l<o;l+=1)c[l]=i[l]+(s[l]-i[l])*a;return c}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),n=BMMath.random();for(r=0;r<i;r+=1)s[r]=e[r]+n*(t[r]-e[r]);return s}e===void 0&&(e=0);var a=BMMath.random();return e+a*(t-e)}function createPath(e,t,r,i){var s,n=e.length,a=shapePool.newElement();a.setPathData(!!i,n);var l=[0,0],o,c;for(s=0;s<n;s+=1)o=t&&t[s]?t[s]:l,c=r&&r[s]?r[s]:l,a.setTripleAt(e[s][0],e[s][1],c[0]+e[s][0],c[1]+e[s][1],o[0]+e[s][0],o[1]+e[s][1],s,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,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||this.data.hd!==!0,wiggle=function e(t,r){var i,s,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n);t=5;var l=Math.floor(time*t);for(i=0,s=0;i<l;){for(s=0;s<n;s+=1)a[s]+=-r+r*2*BMMath.random();i+=1}var o=time*t,c=o-Math.floor(o),u=createTypedArray("float32",n);if(n>1){for(s=0;s<n;s+=1)u[s]=this.pv[s]+a[s]+(-r+r*2*BMMath.random())*c;return u}return this.pv+a[0]+(-r+r*2*BMMath.random())*c}.bind(this);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));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}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);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,i,0]}function easeOut(e,t,r,i,s){return applyEase(easeOutBez,e,t,r,i,s)}function easeIn(e,t,r,i,s){return applyEase(easeInBez,e,t,r,i,s)}function ease(e,t,r,i,s){return applyEase(easeInOutBez,e,t,r,i,s)}function applyEase(e,t,r,i,s,n){s===void 0?(s=r,n=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(s)){var l,o=s.length,c=createTypedArray("float32",o);for(l=0;l<o;l+=1)c[l]=(n[l]-s[l])*a+s[l];return c}return(n-s)*a+s}function nearestKey(e){var t,r=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var n={};return n.index=i,n.time=s/elem.comp.globalData.frameRate,n}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,r=0;r<i;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!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,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 e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var i=0,s=[];function n(){i+=1}function a(){i-=1,i===0&&o()}function l(c){s.indexOf(c)===-1&&s.push(c)}function o(){var c,u=s.length;for(c=0;c<u;c+=1)s[c].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=n,r.renderer.globalData.popExpression=a,r.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),n,a=i.viewData.length;for(n=0;n<a;n+=1)s[n]=new e(i.viewData[n],i.masksProperties[n]);var l=function(c){for(n=0;n<a;){if(i.masksProperties[n].nm===c)return s[n];n+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(a,l,o){Object.defineProperty(a,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),a.numKeys=l.keyframes?l.keyframes.length:0,a.key=function(c){if(!a.numKeys)return 0;var u="";"s"in l.keyframes[c-1]?u=l.keyframes[c-1].s:"e"in l.keyframes[c-2]?u=l.keyframes[c-2].e:u=l.keyframes[c-2].s;var d=o==="unidimensional"?new Number(u):Object.assign({},u);return d.time=l.keyframes[c-1].t/l.elem.comp.globalData.frameRate,d.value=o==="unidimensional"?u[0]:u,d},a.valueAtTime=l.getValueAtTime,a.speedAtTime=l.getSpeedAtTime,a.velocityAtTime=l.getVelocityAtTime,a.propertyGroup=l.propertyGroup}function i(a){(!a||!("pv"in a))&&(a=e);var l=1/a.mult,o=a.pv*l,c=new Number(o);return c.value=o,r(c,a,"unidimensional"),function(){return a.k&&a.getValue(),o=a.v*l,c.value!==o&&(c=new Number(o),c.value=o,c[0]=o,r(c,a,"unidimensional")),c}}function s(a){(!a||!("pv"in a))&&(a=t);var l=1/a.mult,o=a.data&&a.data.l||a.pv.length,c=createTypedArray("float32",o),u=createTypedArray("float32",o);return c.value=u,r(c,a,"multidimensional"),function(){a.k&&a.getValue();for(var d=0;d<o;d+=1)u[d]=a.v[d]*l,c[d]=u[d];return c}}function n(){return e}return function(a){return a?a.propType==="unidimensional"?i(a):s(a):n}})(),TransformExpressionInterface=(function(){return function(e){function t(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,s,n;return e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(c){var u=new Matrix;if(c!==void 0){var d=this._elem.finalTransform.mProp.getValueAtTime(c);d.clone(u)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(u)}return u}function t(c,u){var d=this.getMatrix(u);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.applyPoint(d,c)}function r(c,u){var d=this.getMatrix(u);return this.applyPoint(d,c)}function i(c,u){var d=this.getMatrix(u);return d.props[12]=0,d.props[13]=0,d.props[14]=0,this.invertPoint(d,c)}function s(c,u){var d=this.getMatrix(u);return this.invertPoint(d,c)}function n(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(u[0],u[1],u[2]||0)}function a(c,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(u)}function l(c){var u=new Matrix;if(u.reset(),this._elem.finalTransform.mProp.applyToMatrix(u),this._elem.hierarchy&&this._elem.hierarchy.length){var d,f=this._elem.hierarchy.length;for(d=0;d<f;d+=1)this._elem.hierarchy[d].finalTransform.mProp.applyToMatrix(u);return u.inversePoint(c)}return u.inversePoint(c)}function o(){return[1,1,1,1]}return function(c){var u;function d(h){y.mask=new MaskManagerInterface(h,c)}function f(h){y.effect=h}function y(h){switch(h){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=a,y.applyPoint=n,y.toWorld=r,y.toWorldVec=t,y.fromWorld=s,y.fromWorldVec=i,y.toComp=r,y.fromComp=l,y.sampleImage=o,y.sourceRectAtTime=c.sourceRectAtTime.bind(c),y._elem=c,u=TransformExpressionInterface(c.finalTransform.mProp);var m=getDescriptor(u,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),y.startTime=c.data.st,y.index=c.data.ind,y.source=c.data.refId,y.height=c.data.ty===0?c.data.h:100,y.width=c.data.ty===0?c.data.w:100,y.inPoint=c.data.ip/c.comp.globalData.frameRate,y.outPoint=c.data.op/c.comp.globalData.frameRate,y._name=c.data.nm,y.registerMaskInterface=d,y.registerEffectsInterface=f,y}})(),propertyGroupFactory=(function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}})(),PropertyInterface=(function(){return function(e,t){var r={_name:e};function i(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,n){if(s.effectsManager){var a=[],l=s.data.ef,o,c=s.effectsManager.effectElements.length;for(o=0;o<c;o+=1)a.push(r(l[o],s.effectsManager.effectElements[o],n,s));var u=s.data.ef||[],d=function(y){for(o=0,c=u.length;o<c;){if(y===u[o].nm||y===u[o].mn||y===u[o].ix)return a[o];o+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return u.length}}),d}return null}function r(s,n,a,l){function o(y){for(var m=s.ef,h=0,b=m.length;h<b;){if(y===m[h].nm||y===m[h].mn||y===m[h].ix)return m[h].ty===5?u[h]:u[h]();h+=1}throw new Error}var c=propertyGroupFactory(o,a),u=[],d,f=s.ef.length;for(d=0;d<f;d+=1)s.ef[d].ty===5?u.push(r(s.ef[d],n.effectElements[d],n.effectElements[d].propertyGroup,l)):u.push(i(n.effectElements[d],s.ef[d].ty,l,c));return s.mn==="ADBE Color Control"&&Object.defineProperty(o,"color",{get:function(){return u[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:c}}),o.enabled=s.en!==0,o.active=o.enabled,o}function i(s,n,a,l){var o=ExpressionPropertyInterface(s.p);function c(){return n===10?a.comp.compInterface(s.p.v):o()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),c}return e})(),ShapePathInterface=(function(){return function(t,r,i){var s=r.sh;function n(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?n.path:null}var a=propertyGroupFactory(n,i);return s.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n}})(),ShapeExpressionInterface=(function(){function e(m,h,b){var p=[],v,g=m?m.length:0;for(v=0;v<g;v+=1)m[v].ty==="gr"?p.push(r(m[v],h[v],b)):m[v].ty==="fl"?p.push(i(m[v],h[v],b)):m[v].ty==="st"?p.push(a(m[v],h[v],b)):m[v].ty==="tm"?p.push(l(m[v],h[v],b)):m[v].ty==="tr"||(m[v].ty==="el"?p.push(c(m[v],h[v],b)):m[v].ty==="sr"?p.push(u(m[v],h[v],b)):m[v].ty==="sh"?p.push(ShapePathInterface(m[v],h[v],b)):m[v].ty==="rc"?p.push(d(m[v],h[v],b)):m[v].ty==="rd"?p.push(f(m[v],h[v],b)):m[v].ty==="rp"?p.push(y(m[v],h[v],b)):m[v].ty==="gf"?p.push(s(m[v],h[v],b)):p.push(n(m[v],h[v])));return p}function t(m,h,b){var p,v=function(C){for(var x=0,T=p.length;x<T;){if(p[x]._name===C||p[x].mn===C||p[x].propertyIndex===C||p[x].ix===C||p[x].ind===C)return p[x];x+=1}return typeof C=="number"?p[C-1]:null};v.propertyGroup=propertyGroupFactory(v,b),p=e(m.it,h.it,v.propertyGroup),v.numProperties=p.length;var g=o(m.it[m.it.length-1],h.it[h.it.length-1],v.propertyGroup);return v.transform=g,v.propertyIndex=m.cix,v._name=m.nm,v}function r(m,h,b){var p=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return p.content;default:return p.transform}};p.propertyGroup=propertyGroupFactory(p,b);var v=t(m,h,p.propertyGroup),g=o(m.it[m.it.length-1],h.it[h.it.length-1],p.propertyGroup);return p.content=v,p.transform=g,Object.defineProperty(p,"_name",{get:function(){return m.nm}}),p.numProperties=m.np,p.propertyIndex=m.ix,p.nm=m.nm,p.mn=m.mn,p}function i(m,h,b){function p(v){return v==="Color"||v==="color"?p.color:v==="Opacity"||v==="opacity"?p.opacity:null}return Object.defineProperties(p,{color:{get:ExpressionPropertyInterface(h.c)},opacity:{get:ExpressionPropertyInterface(h.o)},_name:{value:m.nm},mn:{value:m.mn}}),h.c.setGroupProperty(PropertyInterface("Color",b)),h.o.setGroupProperty(PropertyInterface("Opacity",b)),p}function s(m,h,b){function p(v){return v==="Start Point"||v==="start point"?p.startPoint:v==="End Point"||v==="end point"?p.endPoint:v==="Opacity"||v==="opacity"?p.opacity:null}return Object.defineProperties(p,{startPoint:{get:ExpressionPropertyInterface(h.s)},endPoint:{get:ExpressionPropertyInterface(h.e)},opacity:{get:ExpressionPropertyInterface(h.o)},type:{get:function(){return"a"}},_name:{value:m.nm},mn:{value:m.mn}}),h.s.setGroupProperty(PropertyInterface("Start Point",b)),h.e.setGroupProperty(PropertyInterface("End Point",b)),h.o.setGroupProperty(PropertyInterface("Opacity",b)),p}function n(){function m(){return null}return m}function a(m,h,b){var p=propertyGroupFactory(T,b),v=propertyGroupFactory(x,p);function g(M){Object.defineProperty(x,m.d[M].nm,{get:ExpressionPropertyInterface(h.d.dataProps[M].p)})}var _,C=m.d?m.d.length:0,x={};for(_=0;_<C;_+=1)g(_),h.d.dataProps[_].p.setGroupProperty(v);function T(M){return M==="Color"||M==="color"?T.color:M==="Opacity"||M==="opacity"?T.opacity:M==="Stroke Width"||M==="stroke width"?T.strokeWidth:null}return Object.defineProperties(T,{color:{get:ExpressionPropertyInterface(h.c)},opacity:{get:ExpressionPropertyInterface(h.o)},strokeWidth:{get:ExpressionPropertyInterface(h.w)},dash:{get:function(){return x}},_name:{value:m.nm},mn:{value:m.mn}}),h.c.setGroupProperty(PropertyInterface("Color",p)),h.o.setGroupProperty(PropertyInterface("Opacity",p)),h.w.setGroupProperty(PropertyInterface("Stroke Width",p)),T}function l(m,h,b){function p(g){return g===m.e.ix||g==="End"||g==="end"?p.end:g===m.s.ix?p.start:g===m.o.ix?p.offset:null}var v=propertyGroupFactory(p,b);return p.propertyIndex=m.ix,h.s.setGroupProperty(PropertyInterface("Start",v)),h.e.setGroupProperty(PropertyInterface("End",v)),h.o.setGroupProperty(PropertyInterface("Offset",v)),p.propertyIndex=m.ix,p.propertyGroup=b,Object.defineProperties(p,{start:{get:ExpressionPropertyInterface(h.s)},end:{get:ExpressionPropertyInterface(h.e)},offset:{get:ExpressionPropertyInterface(h.o)},_name:{value:m.nm}}),p.mn=m.mn,p}function o(m,h,b){function p(g){return m.a.ix===g||g==="Anchor Point"?p.anchorPoint:m.o.ix===g||g==="Opacity"?p.opacity:m.p.ix===g||g==="Position"?p.position:m.r.ix===g||g==="Rotation"||g==="ADBE Vector Rotation"?p.rotation:m.s.ix===g||g==="Scale"?p.scale:m.sk&&m.sk.ix===g||g==="Skew"?p.skew:m.sa&&m.sa.ix===g||g==="Skew Axis"?p.skewAxis:null}var v=propertyGroupFactory(p,b);return h.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",v)),h.transform.mProps.p.setGroupProperty(PropertyInterface("Position",v)),h.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",v)),h.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",v)),h.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",v)),h.transform.mProps.sk&&(h.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",v)),h.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",v))),h.transform.op.setGroupProperty(PropertyInterface("Opacity",v)),Object.defineProperties(p,{opacity:{get:ExpressionPropertyInterface(h.transform.mProps.o)},position:{get:ExpressionPropertyInterface(h.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(h.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(h.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(h.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(h.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(h.transform.mProps.sa)},_name:{value:m.nm}}),p.ty="tr",p.mn=m.mn,p.propertyGroup=b,p}function c(m,h,b){function p(_){return m.p.ix===_?p.position:m.s.ix===_?p.size:null}var v=propertyGroupFactory(p,b);p.propertyIndex=m.ix;var g=h.sh.ty==="tm"?h.sh.prop:h.sh;return g.s.setGroupProperty(PropertyInterface("Size",v)),g.p.setGroupProperty(PropertyInterface("Position",v)),Object.defineProperties(p,{size:{get:ExpressionPropertyInterface(g.s)},position:{get:ExpressionPropertyInterface(g.p)},_name:{value:m.nm}}),p.mn=m.mn,p}function u(m,h,b){function p(_){return m.p.ix===_?p.position:m.r.ix===_?p.rotation:m.pt.ix===_?p.points:m.or.ix===_||_==="ADBE Vector Star Outer Radius"?p.outerRadius:m.os.ix===_?p.outerRoundness:m.ir&&(m.ir.ix===_||_==="ADBE Vector Star Inner Radius")?p.innerRadius:m.is&&m.is.ix===_?p.innerRoundness:null}var v=propertyGroupFactory(p,b),g=h.sh.ty==="tm"?h.sh.prop:h.sh;return p.propertyIndex=m.ix,g.or.setGroupProperty(PropertyInterface("Outer Radius",v)),g.os.setGroupProperty(PropertyInterface("Outer Roundness",v)),g.pt.setGroupProperty(PropertyInterface("Points",v)),g.p.setGroupProperty(PropertyInterface("Position",v)),g.r.setGroupProperty(PropertyInterface("Rotation",v)),m.ir&&(g.ir.setGroupProperty(PropertyInterface("Inner Radius",v)),g.is.setGroupProperty(PropertyInterface("Inner Roundness",v))),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(g.p)},rotation:{get:ExpressionPropertyInterface(g.r)},points:{get:ExpressionPropertyInterface(g.pt)},outerRadius:{get:ExpressionPropertyInterface(g.or)},outerRoundness:{get:ExpressionPropertyInterface(g.os)},innerRadius:{get:ExpressionPropertyInterface(g.ir)},innerRoundness:{get:ExpressionPropertyInterface(g.is)},_name:{value:m.nm}}),p.mn=m.mn,p}function d(m,h,b){function p(_){return m.p.ix===_?p.position:m.r.ix===_?p.roundness:m.s.ix===_||_==="Size"||_==="ADBE Vector Rect Size"?p.size:null}var v=propertyGroupFactory(p,b),g=h.sh.ty==="tm"?h.sh.prop:h.sh;return p.propertyIndex=m.ix,g.p.setGroupProperty(PropertyInterface("Position",v)),g.s.setGroupProperty(PropertyInterface("Size",v)),g.r.setGroupProperty(PropertyInterface("Rotation",v)),Object.defineProperties(p,{position:{get:ExpressionPropertyInterface(g.p)},roundness:{get:ExpressionPropertyInterface(g.r)},size:{get:ExpressionPropertyInterface(g.s)},_name:{value:m.nm}}),p.mn=m.mn,p}function f(m,h,b){function p(_){return m.r.ix===_||_==="Round Corners 1"?p.radius:null}var v=propertyGroupFactory(p,b),g=h;return p.propertyIndex=m.ix,g.rd.setGroupProperty(PropertyInterface("Radius",v)),Object.defineProperties(p,{radius:{get:ExpressionPropertyInterface(g.rd)},_name:{value:m.nm}}),p.mn=m.mn,p}function y(m,h,b){function p(_){return m.c.ix===_||_==="Copies"?p.copies:m.o.ix===_||_==="Offset"?p.offset:null}var v=propertyGroupFactory(p,b),g=h;return p.propertyIndex=m.ix,g.c.setGroupProperty(PropertyInterface("Copies",v)),g.o.setGroupProperty(PropertyInterface("Offset",v)),Object.defineProperties(p,{copies:{get:ExpressionPropertyInterface(g.c)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:m.nm}}),p.mn=m.mn,p}return function(m,h,b){var p;function v(_){if(typeof _=="number")return _=_===void 0?1:_,_===0?b:p[_-1];for(var C=0,x=p.length;C<x;){if(p[C]._name===_)return p[C];C+=1}return null}function g(){return b}return v.propertyGroup=propertyGroupFactory(v,g),p=e(m,h,v.propertyGroup),v.numProperties=p.length,v._name="Contents",v}})(),TextExpressionInterface=(function(){return function(e){var t;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var s="",n=i.getFootageData();function a(){return s="",n=i.getFootageData(),l}function l(o){if(n[o])return s=o,n=n[o],_typeof(n)==="object"?l:n;var c=o.indexOf(s);if(c!==-1){var u=parseInt(o.substr(c+s.length),10);return n=n[u],_typeof(n)==="object"?l:n}return""}return a},t=function(i){function s(n){return n==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(r){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(r),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(a,l,o){l.x&&(o.k=!0,o.x=!0,o.initiateExpression=ExpressionManager.initiateExpression,o.effectsSequence.push(o.initiateExpression(a,l,o).bind(o)))}function t(a){return a*=this.elem.globalData.frameRate,a-=this.offsetTime,a!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<a?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(a,this._cachingAtTime),this._cachingAtTime.lastFrame=a),this._cachingAtTime.value}function r(a){var l=-.01,o=this.getValueAtTime(a),c=this.getValueAtTime(a+l),u=0;if(o.length){var d;for(d=0;d<o.length;d+=1)u+=Math.pow(c[d]-o[d],2);u=Math.sqrt(u)*100}else u=0;return u}function i(a){if(this.vel!==void 0)return this.vel;var l=-.001,o=this.getValueAtTime(a),c=this.getValueAtTime(a+l),u;if(o.length){u=createTypedArray("float32",o.length);var d;for(d=0;d<o.length;d+=1)u[d]=(c[d]-o[d])/l}else u=(c-o)/l;return u}function s(){return this.pv}function n(a){this.propertyGroup=a}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:n}})();function addPropertyDecorator(){function e(f,y,m){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var h=this.comp.renderedFrame,b=this.keyframes,p=b[b.length-1].t;if(h<=p)return this.pv;var v,g;m?(y?v=Math.abs(p-this.elem.comp.globalData.frameRate*y):v=Math.max(0,p-this.elem.data.ip),g=p-v):((!y||y>b.length-1)&&(y=b.length-1),g=b[b.length-1-y].t,v=p-g);var _,C,x;if(f==="pingpong"){var T=Math.floor((h-g)/v);if(T%2!==0)return this.getValueAtTime((v-(h-g)%v+g)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var M=this.getValueAtTime(g/this.comp.globalData.frameRate,0),R=this.getValueAtTime(p/this.comp.globalData.frameRate,0),L=this.getValueAtTime(((h-g)%v+g)/this.comp.globalData.frameRate,0),k=Math.floor((h-g)/v);if(this.pv.length){for(x=new Array(M.length),C=x.length,_=0;_<C;_+=1)x[_]=(R[_]-M[_])*k+L[_];return x}return(R-M)*k+L}else if(f==="continue"){var F=this.getValueAtTime(p/this.comp.globalData.frameRate,0),O=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(F.length),C=x.length,_=0;_<C;_+=1)x[_]=F[_]+(F[_]-O[_])*((h-p)/this.comp.globalData.frameRate)/5e-4;return x}return F+(F-O)*((h-p)/.001)}return this.getValueAtTime(((h-g)%v+g)/this.comp.globalData.frameRate,0)}function t(f,y,m){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var h=this.comp.renderedFrame,b=this.keyframes,p=b[0].t;if(h>=p)return this.pv;var v,g;m?(y?v=Math.abs(this.elem.comp.globalData.frameRate*y):v=Math.max(0,this.elem.data.op-p),g=p+v):((!y||y>b.length-1)&&(y=b.length-1),g=b[y].t,v=g-p);var _,C,x;if(f==="pingpong"){var T=Math.floor((p-h)/v);if(T%2===0)return this.getValueAtTime(((p-h)%v+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var M=this.getValueAtTime(p/this.comp.globalData.frameRate,0),R=this.getValueAtTime(g/this.comp.globalData.frameRate,0),L=this.getValueAtTime((v-(p-h)%v+p)/this.comp.globalData.frameRate,0),k=Math.floor((p-h)/v)+1;if(this.pv.length){for(x=new Array(M.length),C=x.length,_=0;_<C;_+=1)x[_]=L[_]-(R[_]-M[_])*k;return x}return L-(R-M)*k}else if(f==="continue"){var F=this.getValueAtTime(p/this.comp.globalData.frameRate,0),O=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(x=new Array(F.length),C=x.length,_=0;_<C;_+=1)x[_]=F[_]+(F[_]-O[_])*(p-h)/.001;return x}return F+(F-O)*(p-h)/.001}return this.getValueAtTime((v-((p-h)%v+p))/this.comp.globalData.frameRate,0)}function r(f,y){if(!this.k)return this.pv;if(f=(f||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var m=this.comp.renderedFrame/this.comp.globalData.frameRate,h=m-f,b=m+f,p=y>1?(b-h)/(y-1):1,v=0,g=0,_;this.pv.length?_=createTypedArray("float32",this.pv.length):_=0;for(var C;v<y;){if(C=this.getValueAtTime(h+v*p),this.pv.length)for(g=0;g<this.pv.length;g+=1)_[g]+=C[g];else _+=C;v+=1}if(this.pv.length)for(g=0;g<this.pv.length;g+=1)_[g]/=y;else _/=y;return _}function i(f){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var m=this.a.getValueAtTime(f);y.translate(-m[0]*this.a.mult,-m[1]*this.a.mult,m[2]*this.a.mult)}if(this.appliedTransformations<2){var h=this.s.getValueAtTime(f);y.scale(h[0]*this.s.mult,h[1]*this.s.mult,h[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var b=this.sk.getValueAtTime(f),p=this.sa.getValueAtTime(f);y.skewFromAxis(-b*this.sk.mult,p*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var v=this.r.getValueAtTime(f);y.rotate(-v*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var g=this.rz.getValueAtTime(f),_=this.ry.getValueAtTime(f),C=this.rx.getValueAtTime(f),x=this.or.getValueAtTime(f);y.rotateZ(-g*this.rz.mult).rotateY(_*this.ry.mult).rotateX(C*this.rx.mult).rotateZ(-x[2]*this.or.mult).rotateY(x[1]*this.or.mult).rotateX(x[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var T=this.px.getValueAtTime(f),M=this.py.getValueAtTime(f);if(this.data.p.z){var R=this.pz.getValueAtTime(f);y.translate(T*this.px.mult,M*this.py.mult,-R*this.pz.mult)}else y.translate(T*this.px.mult,M*this.py.mult,0)}else{var L=this.p.getValueAtTime(f);y.translate(L[0]*this.p.mult,L[1]*this.p.mult,-L[2]*this.p.mult)}return y}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,m){var h=n(f,y,m);return h.dynamicProperties.length?h.getValueAtTime=i.bind(h):h.getValueAtTime=s.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,m,h,b){var p=a(f,y,m,h,b);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=e,p.loopIn=t,p.smooth=r,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=y.a===1?y.k.length:0,p.propertyIndex=y.ix;var v=0;return m!==0&&(v=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:v},expressionHelpers.searchExpressions(f,y,p),p.k&&b.addDynamicProperty(p),p};function l(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var o=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(y,m){this.k&&this.getValue();var h=this.v;m!==void 0&&(h=this.getValueAtTime(m,0));var b,p=h._length,v=h[y],g=h.v,_=createSizedArray(p);for(b=0;b<p;b+=1)y==="i"||y==="o"?_[b]=[v[b][0]-g[b][0],v[b][1]-g[b][1]]:_[b]=[v[b][0],v[b][1]];return _},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,m){var h=this.v;m!==void 0&&(h=this.getValueAtTime(m,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(h));for(var b=this._segmentsLength,p=b.lengths,v=b.totalLength*y,g=0,_=p.length,C=0,x;g<_;){if(C+p[g].addedLength>v){var T=g,M=h.c&&g===_-1?0:g+1,R=(v-C)/p[g].addedLength;x=bez.getPointInSegment(h.v[T],h.v[M],h.o[T],h.i[M],R,p[g]);break}else C+=p[g].addedLength;g+=1}return x||(x=h.c?[h.v[0][0],h.v[0][1]]:[h.v[h._length-1][0],h.v[h._length-1][1]]),x},vectorOnPath:function(y,m,h){y==1?y=this.v.c:y==0&&(y=.999);var b=this.pointOnPath(y,m),p=this.pointOnPath(y+.001,m),v=p[0]-b[0],g=p[1]-b[1],_=Math.sqrt(Math.pow(v,2)+Math.pow(g,2));if(_===0)return[0,0];var C=h==="tangent"?[v/_,g/_]:[-g/_,v/_];return C},tangentOnPath:function(y,m){return this.vectorOnPath(y,m,"tangent")},normalOnPath:function(y,m){return this.vectorOnPath(y,m,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],o),extendPrototype([u],c),c.prototype.getValueAtTime=l,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,m,h,b){var p=d(f,y,m,h,b);return p.propertyIndex=y.ix,p.lock=!1,m===3?expressionHelpers.searchExpressions(f,y.pt,p):m===4&&expressionHelpers.searchExpressions(f,y.ks,p),p.k&&f.addDynamicProperty(p),p}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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}TextProperty.prototype.getExpressionValue=function(t,r){var i=this.calculateExpression(r);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var s,n;for(n=0;n<r.length;n+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[n]),i.appendChild(s),i.appendChild(s);return i}};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(e,t,r,i,s){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",i+"_tint_1"),e.appendChild(n),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",i+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.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",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(r),this.elem.globalData.defs.appendChild(n);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+a+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=n,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,i,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||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 n;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,o=s.getTotalLength();n="0 0 0 "+o*a+" ";var c=o*(l-a),u=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(c/u),f;for(f=0;f<d;f+=1)n+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+o*10+" 0 0"}else n="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),e.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var l=createNS("feFuncG");l.setAttribute("type","table"),n.appendChild(l),this.feFuncG=l;var o=createNS("feFuncB");o.setAttribute("type","table"),n.appendChild(o),this.feFuncB=o,e.appendChild(n)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+t[0],n=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var s=this.filterManager.effectElements,n=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(n=createNS("feComponentTransfer"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,s){for(var n=0,a=256,l,o=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:a}),d,f=0,y=s-i,m=t-e;n<=256;)l=n/256,l<=o?d=m<0?s:i:l>=c?d=m<0?i:s:d=i+y*Math.pow((l-e)/m,1/r),u[f]=d,f+=1,n+=256/(a-1);return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,i,s){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var o=createNS("feOffset");o.setAttribute("dx","25"),o.setAttribute("dy","0"),o.setAttribute("in",i+"_drop_shadow_1"),o.setAttribute("result",i+"_drop_shadow_2"),this.feOff
13set=o,e.appendChild(o);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",i+"_drop_shadow_3"),u.setAttribute("in2",i+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),n=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i=r.children,s=0,n=i.length;s<n&&i[s]!==e.layerElement;)s+=1;var a;s<=n-2&&(a=i[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),a?r.insertBefore(l,a):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),s.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:r,n=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+n);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,n=t[3].p.v,a=s?n:t[4].p.v,l=t[5].p.v,o=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(a*.01,n*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-l*degToRads,(o+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return 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}))})(lottie$3,lottie$3.exports)),lottie$3.exports}var lottieExports=requireLottie();const lottie$1=getDefaultExportFromCjs(lottieExports),intersectionObserverAvailable=!!window.IntersectionObserver,lottie=()=>{document.querySelectorAll(".lottie").forEach(async e=>{const t=e.getAttribute("data-url"),r=parseFloat(e.getAttribute("data-start-delay")),i=parseFloat(e.getAttribute("data-loop-delay"));if(!t)return;const s=lottie$1.loadAnimation({container:e,renderer:"svg",loop:!1,autoplay:!1,path:t});function n(){r?setTimeout(()=>{s.play()},r):s.play()}s.setSpeed(1.5),s.addEventListener("complete",()=>{i?setTimeout(()=>{s.goToAndStop(0),s.play()},i):(s.goToAndStop(0),s.play())}),s.addEventListener("data_ready",()=>{if(!intersectionObserverAvailable){n();return}new IntersectionObserver((l,o)=>{l[0].isIntersecting&&(o.disconnect(),n())},{threshold:.1}).observe(e)})})},CLIENT$1="GraphQL Client",MIN_RETRIES=0,MAX_RETRIES=3,GQL_API_ERROR="An error occurred while fetching from the API. Review 'graphQLErrors' for details.",UNEXPECTED_CONTENT_TYPE_ERROR="Response returned unexpected Content-Type:",NO_DATA_OR_ERRORS_ERROR="An unknown error has occurred. The API did not return a data object or any errors in its response.",CONTENT_TYPES={json:"application/json",multipart:"multipart/mixed"},SDK_VARIANT_HEADER$1="X-SDK-Variant",SDK_VERSION_HEADER$1="X-SDK-Version",DEFAULT_SDK_VARIANT$1="shopify-graphql-client",DEFAULT_CLIENT_VERSION$1="1.4.0",RETRY_WAIT_TIME=1e3,RETRIABLE_STATUS_CODES=[429,503],DEFER_OPERATION_REGEX=/@(defer)\b/i,NEWLINE_SEPARATOR=`\r
14`,BOUNDARY_HEADER_REGEX=/boundary="?([^=";]+)"?/i,HEADER_SEPARATOR=NEWLINE_SEPARATOR+NEWLINE_SEPARATOR;function formatErrorMessage(e,t=CLIENT$1){return e.startsWith(`${t}`)?e:`${t}: ${e}`}function getErrorMessage(e){return e instanceof Error?e.message:JSON.stringify(e)}function getErrorCause(e){return e instanceof Error&&e.cause?e.cause:void 0}function combineErrors(e){return e.flatMap(({errors:t})=>t!=null?t:[])}function validateRetries({client:e,retries:t}){if(t!==void 0&&(typeof t!="number"||t<MIN_RETRIES||t>MAX_RETRIES))throw new Error(`${e}: The provided "retries" value (${t}
14) is invalid - it cannot be less than ${MIN_RETRIES} or greater than ${MAX_RETRIES}`)}function getKeyValueIfValid(e,t){return t&&(typeof t!="object"||Array.isArray(t)||typeof t=="object"&&Object.keys(t).length>0)?{[e]:t}:{}}function buildDataObjectByPath(e,t){if(e.length===0)return t;const i={[e.pop()]:t};return e.length===0?i:buildDataObjectByPath(e,i)}function combineObjects(e,t){return Object.keys(t||{}).reduce((r,i)=>(typeof t[i]=="object"||Array.isArray(t[i]))&&e[i]?(r[i]=combineObjects(e[i],t[i]),r):(r[i]=t[i],r),Array.isArray(e)?[...e]:{...e})}function buildCombinedDataObject([e,...t]){return t.reduce(combineObjects,{...e})}function generateHttpFetch({clientLogger:e,customFetchApi:t=fetch,client:r=CLIENT$1,defaultRetryWaitTime:i=RETRY_WAIT_TIME,retriableCodes:s=RETRIABLE_STATUS_CODES}){const n=async(a,l,o)=>{const c=l+1,u=o+1;let d;try{if(d=await t(...a),e({type:"HTTP-Response",content:{requestParams:a,response:d}}),!d.ok&&s.includes(d.status)&&c<=u)throw new Error;const f=(d==null?void 0:d.headers.get("X-Shopify-API-Deprecated-Reason"))||"";return f&&e({type:"HTTP-Response-GraphQL-Deprecation-Notice",content:{requestParams:a,deprecationNotice:f}}),d}catch(f){if(c<=u){const y=d==null?void 0:d.headers.get("Retry-After");return await sleep(y?parseInt(y,10):i),e({type:"HTTP-Retry",content:{requestParams:a,lastResponse:d,retryAttempt:l,maxRetries:o}}),n(a,c,o)}throw new Error(formatErrorMessage(`${o>0?`Attempted maximum number of ${o} network retries. Last message - `:""}${getErrorMessage(f)}`,r))}};return n}async function sleep(e){return new Promise(t=>setTimeout(t,e))}function createGraphQLClient({headers:e,url:t,customFetchApi:r=fetch,retries:i=0,logger:s}){validateRetries({client:CLIENT$1,retries:i});const n={headers:e,url:t,retries:i},a=generateClientLogger(s),l=generateHttpFetch({customFetchApi:r,clientLogger:a,defaultRetryWaitTime:RETRY_WAIT_TIME}),o=generateFetch(l,n),c=generateRequest(o),u=generateRequestStream(o);return{config:n,fetch:o,request:c,requestStream:u}}function generateClientLogger(e){return t=>{e&&e(t)}}async function processJSONResponse(e){const{errors:t,data:r,extensions:i}=await e.json();return{...getKeyValueIfValid("data",r),...getKeyValueIfValid("extensions",i),headers:e.headers,...t||!r?{errors:{networkStatusCode:e.status,message:formatErrorMessage(t?GQL_API_ERROR:NO_DATA_OR_ERRORS_ERROR),...getKeyValueIfValid("graphQLErrors",t),response:e}}:{}}}function generateFetch(e,{url:t,headers:r,retries:i}){return async(s,n={})=>{const{variables:a,headers:l,url:o,retries:c,keepalive:u,signal:d}=n,f=JSON.stringify({query:s,variables:a});validateRetries({client:CLIENT$1,retries:c});const y=Object.entries({...r,...l}).reduce((h,[b,p])=>(h[b]=Array.isArray(p)?p.join(", "):p.toString(),h),{});!y[SDK_VARIANT_HEADER$1]&&!y[SDK_VERSION_HEADER$1]&&(y[SDK_VARIANT_HEADER$1]=DEFAULT_SDK_VARIANT$1,y[SDK_VERSION_HEADER$1]=DEFAULT_CLIENT_VERSION$1);const m=[o!=null?o:t,{method:"POST",headers:y,body:f,signal:d,keepalive:u}];return e(m,1,c!=null?c:i)}}function generateRequest(e){return async(...t)=>{if(DEFER_OPERATION_REGEX.test(t[0]))throw new Error(formatErrorMessage("This operation will result in a streamable response - use requestStream() instead."));try{const r=await e(...t),{status:i,statusText:s}=r,n=r.headers.get("content-type")||"";return r.ok?n.includes(CONTENT_TYPES.json)?processJSONResponse(r):{errors:{networkStatusCode:i,message:formatErrorMessage(`${UNEXPECTED_CONTENT_TYPE_ERROR} ${n}`),response:r}}:{errors:{networkStatusCode:i,message:formatErrorMessage(s),response:r}}}catch(r){return{errors:{message:getErrorMessage(r)}}}}}async function*getStreamBodyIterator(e){const t=new TextDecoder;if(e.body[Symbol.asyncIterator])for await(const r of e.body)yield t.decode(r);else{const r=e.body.getReader();let i;try{for(;!(i=await r.read()).done;)yield t.decode(i.value)}finally{r.cancel()}}}function readStreamChunk(e,t){return{async*[Symbol.asyncIterator](){try{let r="";for await(const i of e)if(r+=i,r.indexOf(t)>-1){const s=r.lastIndexOf(t),a=r.slice(0,s).split(t).filter(l=>l.trim().length>0).map(l=>l.slice(l.indexOf(HEADER_SEPARATOR)+HEADER_SEPARATOR.length).trim());a.length>0&&(yield a),r=r.slice(s+t.length),r.trim()==="--"&&(r="")}}catch(r){throw new Error(`Error occured while processing stream payload - ${getErrorMessage(r)}`)}}}}function createJsonResponseAsyncIterator(e){return{async*[Symbol.asyncIterator](){yield{...await processJSONResponse(e),hasNext:!1}}}}function getResponseDataFromChunkBodies(e){return e.map(t=>{try{return JSON.parse(t)}catch(r){throw new Error(`Error in parsing multipart response - ${getErrorMessage(r)}`)}}).map(t=>{const{data:r,incremental:i,hasNext:s,extensions:n,errors:a}=t;if(!i)return{data:r||{},...getKeyValueIfValid("errors",a),...getKeyValueIfValid("extensions",n),hasNext:s};const l=i.map(({data:o,path:c,errors:u})=>({data:o&&c?buildDataObjectByPath(c,o):{},...getKeyValueIfValid("errors",u)}
14));return{data:l.length===1?l[0].data:buildCombinedDataObject([...l.map(({data:o})=>o)]),...getKeyValueIfValid("errors",combineErrors(l)),hasNext:s}})}function validateResponseData(e,t){if(e.length>0)throw new Error(GQL_API_ERROR,{cause:{graphQLErrors:e}});if(Object.keys(t).length===0)throw new Error(NO_DATA_OR_ERRORS_ERROR)}function createMultipartResponseAsyncInterator(e,t){var l,o;const r=(t!=null?t:"").match(BOUNDARY_HEADER_REGEX),i=`--${r?r[1]:"-"}`;if(!((l=e.body)!=null&&l.getReader)&&!((o=e.body)!=null&&o[Symbol.asyncIterator]))throw new Error("API multipart response did not return an iterable body",{cause:e});const s=getStreamBodyIterator(e);let n={},a;return{async*[Symbol.asyncIterator](){var c,u;try{let d=!0;for await(const f of readStreamChunk(s,i)){const y=getResponseDataFromChunkBodies(f);a=(u=(c=y.find(h=>h.extensions))==null?void 0:c.extensions)!=null?u:a;const m=combineErrors(y);n=buildCombinedDataObject([n,...y.map(({data:h})=>h)]),d=y.slice(-1)[0].hasNext,validateResponseData(m,n),yield{...getKeyValueIfValid("data",n),...getKeyValueIfValid("extensions",a),hasNext:d}}if(d)throw new Error("Response stream terminated unexpectedly")}catch(d){const f=getErrorCause(d);yield{...getKeyValueIfValid("data",n),...getKeyValueIfValid("extensions",a),errors:{message:formatErrorMessage(getErrorMessage(d)),networkStatusCode:e.status,...getKeyValueIfValid("graphQLErrors",f==null?void 0:f.graphQLErrors),response:e},hasNext:!1}}}}}function generateRequestStream(e){return async(...t)=>{if(!DEFER_OPERATION_REGEX.test(t[0]))throw new Error(formatErrorMessage("This operation does not result in a streamable response - use request() instead."));try{const r=await e(...t),{statusText:i}=r;if(!r.ok)throw new Error(i,{cause:r});const s=r.headers.get("content-type")||"";switch(!0){case s.includes(CONTENT_TYPES.json):return createJsonResponseAsyncIterator(r);case s.includes(CONTENT_TYPES.multipart):return createMultipartResponseAsyncInterator(r,s);default:throw new Error(`${UNEXPECTED_CONTENT_TYPE_ERROR} ${s}`,{cause:r})}}catch(r){return{async*[Symbol.asyncIterator](){const i=getErrorCause(r);yield{errors:{message:formatErrorMessage(getErrorMessage(r)),...getKeyValueIfValid("networkStatusCode",i==null?void 0:i.status),...getKeyValueIfValid("response",i)},hasNext:!1}}}}}}function validateDomainAndGetStoreUrl({client:e,storeDomain:t}){try{const r=t.trim(),i=r.match(/^https?:/)?r:`https://${r}`,s=new URL(i);return s.protocol="https",s.origin}catch(r){throw new Error(`${e}: a valid store domain ("${t}") must be provided`,{cause:r})}}function validateApiVersion({client:e,currentSupportedApiVersions:t,apiVersion:r,logger:i}){const s=`${e}: the provided apiVersion ("${r}")`,n=`Currently supported API versions: ${t.join(", ")}`;if(!r||typeof r!="string")throw new Error(`${s}
14 is invalid. ${n}`);const a=r.trim();t.includes(a)||(i?i({type:"Unsupported_Api_Version",content:{apiVersion:r,supportedApiVersions:t}}):console.warn(`${s} is likely deprecated or not supported. ${n}`))}function getQuarterMonth(e){const t=e*3-2;return t===10?t:`0${t}`}function getPrevousVersion(e,t,r){const i=t-r;return i<=0?`${e-1}-${getQuarterMonth(i+4)}`:`${e}-${getQuarterMonth(i)}`}function getCurrentApiVersion(){const e=new Date,t=e.getUTCMonth(),r=e.getUTCFullYear(),i=Math.floor(t/3+1);return{year:r,quarter:i,version:`${r}-${getQuarterMonth(i)}`}}function getCurrentSupportedApiVersions(){const{year:e,quarter:t,version:r}=getCurrentApiVersion(),i=t===4?`${e+1}-01`:`${e}-${getQuarterMonth(t+1)}`;return[getPrevousVersion(e,t,3),getPrevousVersion(e,t,2),getPrevousVersion(e,t,1),r,i,"unstable"]}function generateGetHeaders(e){return t=>({...t!=null?t:{},...e.headers})}function generateGetGQLClientParams({getHeaders:e,getApiUrl:t}){return(r,i)=>{const s=[r];if(i&&Object.keys(i).length>0){const{variables:n,apiVersion:a,headers:l,retries:o}=i;s.push({...n?{variables:n}:{},...l?{headers:e(l)}:{},...a?{url:t(a)}:{},...o?{retries:o}:{}})}return s}}const DEFAULT_CONTENT_TYPE="application/json",DEFAULT_SDK_VARIANT="storefront-api-client",DEFAULT_CLIENT_VERSION="1.0.8",PUBLIC_ACCESS_TOKEN_HEADER="X-Shopify-Storefront-Access-Token",SDK_VARIANT_HEADER="X-SDK-Variant",SDK_VERSION_HEADER="X-SDK-Version",SDK_VARIANT_SOURCE_HEADER="X-SDK-Variant-Source",CLIENT="Storefront API Client";function validatePrivateAccessTokenUsage(e){if(e&&typeof window!="undefined")throw new Error(`${CLIENT}: private access tokens and headers should only be used in a server-to-server implementation. Use the public API access token in nonserver environments.`)}function validateRequiredAccessTokens(e,t){if(t)throw new Error(`${CLIENT}: only provide either a public or private access token`)}function createStorefrontApiClient({storeDomain:e,apiVersion:t,publicAccessToken:r,privateAccessToken:i,clientName:s,retries:n=0,customFetchApi:a,logger:l}){const o=getCurrentSupportedApiVersions(),c=validateDomainAndGetStoreUrl({client:CLIENT,storeDomain:e}),u={client:CLIENT,currentSupportedApiVersions:o,logger:l};validateApiVersion({...u,apiVersion:t}),validateRequiredAccessTokens(r,i),validatePrivateAccessTokenUsage(i);const d=generateApiUrlFormatter(c,t,u),f={storeDomain:c,apiVersion:t,publicAccessToken:r,headers:{"Content-Type":DEFAULT_CONTENT_TYPE,Accept:DEFAULT_CONTENT_TYPE,[SDK_VARIANT_HEADER]:DEFAULT_SDK_VARIANT,[SDK_VERSION_HEADER]:DEFAULT_CLIENT_VERSION,...s?{[SDK_VARIANT_SOURCE_HEADER]:s}:{},[PUBLIC_ACCESS_TOKEN_HEADER]:r},apiUrl:d(),clientName:s},y=createGraphQLClient({headers:f.headers,url:f.apiUrl,retries:n,customFetchApi:a,logger:l}),m=generateGetHeaders(f),h=generateGetApiUrl(f,d),b=generateGetGQLClientParams({getHeaders:m,getApiUrl:h});return Object.freeze({config:f,getHeaders:m,getApiUrl:h,fetch:(...v)=>y.fetch(...b(...v)),request:(...v)=>y.request(...b(...v)),requestStream:(...v)=>y.requestStream(...b(...v))})}function generateApiUrlFormatter(e,t,r){return i=>{i&&validateApiVersion({...r,apiVersion:i});const s=(i!=null?i:t).trim();return`${e}/api/${s}/graphql.json`}}function generateGetApiUrl(e,t){return r=>r?t(r):e.apiUrl}const STOREFRONT_ACCESS_TOKEN="f9bcf65a7aa5d0474b697180d1420aab";let client;const COUNTRY_CODES={USD:"US",EUR:"DE",GBP:"GB",AUD:"AU",SEK:"SE"};function getClient(){return client||(client=createStorefrontApiClient({storeDomain:"shop.flic.io",publicAccessToken:STOREFRONT_ACCESS_TOKEN,apiVersion:"2025-04"})),client}let getAllProductsPromise,lastLoadedCountryCode;function decodeProductId(e){if(!e)return null;const t=e.split("/");return t[t.length-1].split("?")[0]}async function getAllProducts(){const e=localStorage.getItem("currentCurrencyCode"),t=COUNTRY_CODES[e]||"US";if(lastLoadedCountryCode!==t&&(getAllProductsPromise=null),lastLoadedCountryCode=t,!getAllProductsPromise){const r=getClient();getAllProductsPromise=new Promise(async i=>{var o,c;const{data:s,errors:n,extensions:a}=await r.request(`
15        fragment VariantFragment on ProductVariant {
16          id
17          title
18          sku
19          price {
20            amount
21            currencyCode
22          }
23          available: availableForSale
24          compareAtPrice {
25            amount
26            currencyCode
27          }
28          image {
29            id
30            src: url
31            altText
32            width
33            height
34          }
35          selectedOptions {
36            name
37            value
38          }
39          unitPrice {
40            amount
41            currencyCode
42          }
43        }
44
45        fragment ProductFragment on Product {
46          id
47          availableForSale
48          createdAt
49          updatedAt
50          descriptionHtml
51          description
52          handle
53          productType
54          title
55          vendor
56          options {
57            name
58            values
59          }
60          images(first: 250) {
61            pageInfo {
62              hasNextPage
63              hasPreviousPage
64            }
65            edges {
66              cursor
67              node {
68                id
69                src: url
70                altText
71                width
72                height
73              }
74            }
75          }
76          variants(first: 250) {
77            pageInfo {
78              hasNextPage
79              hasPreviousPage
80            }
81            edges {
82              cursor
83              node {
84                ...VariantFragment
85              }
86            }
87          }
88        }
89
90        query($first: Int!, $query: String, $sortKey: ProductSortKeys, $reverse: Boolean) @inContext(country: ${t}) {
91          products(first: $first, query: $query, sortKey: $sortKey, reverse: $reverse) {
92            edges {
93              node {
94                ...ProductFragment
95              }
96            }
97            pageInfo {
98              hasNextPage
99              hasPreviousPage
100            }
101          }
102        }
103      `,{variables:{first:100}}),l={};(c=(o=s==null?void 0:s.products)==null?void 0:o.edges)==null||c.forEac
103h(({node:u})=>{const d={...u,images:u.images.edges.map(({node:y})=>({...y})),variants:u.variants.edges.map(({node:y})=>({...y}))},f=decodeProductId(d.id);f&&(l[f]=d)}),i(l)})}return await getAllProductsPromise}async function getProductVariantFromElement(e){var n;if(!e)return null;const t=e.classList.contains("shopify-product")?e:e.closest("shopify-product");if(!t)return null;const r=t.getAttribute("data-shopify-product-id");let i=t.getAttribute("data-shopify-variant-index");i||(i=0);const s=await getAllProducts();return s[r]&&(((n=s[r].variants)==null?void 0:n[i])||s[r].selectedVariant)||null}async function getVariantById(e){const t=await getAllProducts();let r=null;return Object.values(t).find(({variants:i})=>i.find(s=>s.id===e?(r=s,!0):!1)),r}async function updateProductView(e){if(!e)return;const t=e.classList.contains("shopify-product")?e:e.closest("shopify-product");if(!t)return;const r=await getProductVariantFromElement(e),i=window.jQuery;r&&(i(t).find(".shopify-populate-price").each(function(){i(this).text(localizedPriceRound(r,"price",1,!1))}),i(t).find(".shopify-populate-compare-at-price").each(function(){const s=localizedPriceRound(r,"compareAtPrice",1,!0);s?i(this).text(s):i(this).text("")}),i(t).find(".out-of-stock-badge").each(function(){r!=null&&r.available?this.classList.remove("visible"):this.classList.add("visible")}))}async function getProductById(e){return e&&(await getAllProducts())[e]||null}const cartData=`
104  id
105  checkoutUrl
106  lines(first: 100) {
107    edges {
108      node {
109        id
110        quantity
111        merchandise {
112          ... on ProductVariant {
113            id
114            image {
115              src
116            }
117            product {
118              id
119              title
120            }
121          }
122        }
123      }
124    }
125  }
126  cost {
127    subtotalAmount {
128      amount
129      currencyCode
130    }
131    totalAmount {
132      amount
133      currencyCode
134    }
135  }
136  totalQuantity
137`;async function getCart(e){var l;const t=getClient(),r=localStorage.getItem("currentCurrencyCode"),i=COUNTRY_CODES[r]||"US",{data:s,errors:n,extensions:a}=await t.request(`
138    query ($id: ID!) @inContext(country: ${i}) {
139      cart(id: $id) {
140        ${cartData}
141      }
142    }
143  `,{variables:{id:e}});return s!=null&&s.cart?{...s.cart,lines:(l=s.cart.lines)==null?void 0:l.edges.map(({node:o})=>o)}:null}async function createCart(){var a,l;const e=getClient(),t=localStorage.getItem("currentCurrencyCode"),r=COUNTRY_CODES[t]||"US",{data:i,errors:s,extensions:n}=await e.request(`
144    mutation ($cartInput: CartInput) @inContext(country: ${r}) {
145      cartCreate(input: $cartInput) {
146        cart {
147          ${cartData}
148        }
149      }
150    }
151  `,{variables:{cartInput:void 0}});return(a=i==null?void 0:i.cartCreate)!=null&&a.cart?{...i.cartCreate.cart,lines:(l=i.cartCreate.cart.lines)==null?void 0:l.edges.map(({node:o})=>o)}:null}async function addToCart(e,t){var o,c;const r=getClient(),i=localStorage.getItem("currentCurrencyCode"),s=COUNTRY_CODES[i]||"US",{data:n,errors:a,extensions:l}=await r.request(`
152    mutation ($cartId: ID!, $lines: [CartLineInput!]!) @inContext(country: ${s}) {
153      cartLinesAdd(cartId: $cartId, lines: $lines) {
154        cart {
155          ${cartData}
156        }
157      }
158    }
159  `,{variables:{cartId:e,lines:t}});return(o=n==null?void 0:n.cartLinesAdd)!=null&&o.cart?{...n.cartLinesAdd.cart,lines:(c=n.cartLinesAdd.cart.lines)==null?void 0:c.edges.map(({node:u})=>u)}:null}async function updateCart(e,t){var o,c;const r=getClient(),i=localStorage.getItem("currentCurrencyCode"),s=COUNTRY_CODES[i]||"US",{data:n,errors:a,extensions:l}=await r.request(`
160    mutation ($cartId: ID!, $lines: [CartLineUpdateInput!]!) @inContext(country: ${s}) {
161      cartLinesUpdate(cartId: $cartId, lines: $lines) {
162        cart {
163          ${cartData}
164        }
165      }
166    }
167  `,{variables:{cartId:e,lines:t}});return(o=n==null?void 0:n.cartLinesUpdate)!=null&&o.cart?{...n.cartLinesUpdate.cart,lines:(c=n.cartLinesUpdate.cart.lines)==null?void 0:c.edges.map(({node:u})=>u)}:null}let ratesUSD=null;async function getExchangeRate(e){if(!ratesUSD)try{ratesUSD=(await(await fetch("https://open.er-api.com/v6/latest/USD")).json()).rates}catch(t){}return((ratesUSD==null?void 0:ratesUSD[e])||0)*1.015}let cartUpdated,cart=null,keyedProducts={},initCart=null;function addVariantToCart(e,t,r,i,s){return cart?new Promise(async(n,a)=>{var c;if(!(e!=null&&e.available)){alert("This product is currently out of stock!"),n(!1);return}let l=[{merchandiseId:e.id,quantity:parseInt(t)}];const o=decodeProductId(s==null?void 0:s.id);window.gtag&&gtag("event","add_to_cart",{currency:e.price.currencyCode,value:e.price.amount,items:[{item_id:e.sku,item_name:s.title,index:0,price:e.price.amount,quantity:parseInt(t)}]});try{cart=await addToCart(cart.id,l);let u=[];l=[],(c=window.automatically_add_to_cart)==null||c.filter(d=>
167(d==null?void 0:d.shopifyProductId)==o).forEach(d=>{var m,h,b;const f=parseInt(d==null?void 0:d.quantity),y=(m=cart.lines)==null?void 0:m.find(p=>{var v;return((v=p==null?void 0:p.merchandise)==null?void 0:v.id)===e.id});y&&((b=d==null?void 0:(h=d.add).forEach)==null||b.call(h,p=>{var x,T,M;const v=parseInt(p==null?void 0:p.quantity)*Math.floor(y.quantity/f);if(!(p!=null&&p.shopify_product_id))return;const g=keyedProducts[p==null?void 0:p.shopify_product_id];if(!(g!=null&&g.availableForSale))return;const _=(T=(x=g.variants)==null?void 0:x.find(R=>R.available))==null?void 0:T.id;if(!_)return;const C=(M=cart.lines)==null?void 0:M.find(R=>{var L;return((L=R==null?void 0:R.merchandise)==null?void 0:L.id)===_});C?u.push({id:C.id,quantity:v}):v&&l.push({merchandiseId:_,quantity:v})}))}),u.length&&(cart=await updateCart(cart.id,u)),l.length&&(cart=await addToCart(cart.id,l)),cartUpdated(),r?window.location.href="/cart-page":i?window.location.href=cart.checkoutUrl:n(!0)}catch(u){a(u)}}):!1}const shopify=e=>{var u,d,f,y;let t=localStorage.getItem("currentCurrencyCode");document.addEventListener("currency-change",async m=>{t=m.detail,keyedProducts=await getAllProducts(),initCart(!0),o(),e(".shopify-populate-cart .cart-line-items .price, .shopify-populate-cart-sum").text(""),e(".shopify-populate-cart .cart-line-items .price, .shopify-populate-cart-sum").addClass("loading")});function r(m){const h=m.closest(".shopify-product").attr("data-shopify-product-id");return keyedProducts[h]}function i(m){const h=m.closest(".shopify-product").attr("data-shopify-product-id");let b=m.closest(".shopify-product").attr("data-shopify-variant-index");return b||(b=0),keyedProducts[h]?keyedProducts[h].variants?keyedProducts[h].variants[b]:keyedProducts[h].selectedVariant:null}function s(m){return m.closest(".shopify-product").find(".quantity-select, .product-card__quantity").val()||1}let n=!1;async function a(m,h){var _,C,x;if(n)return;n=!0,document.dispatchEvent(new Event("cart-loading-true")),e(".shopify-populate-cart-sum").text("").addClass("loading");const b=decodeProductId((C=(_=m==null?void 0:m.merchandise)==null?void 0:_.product)==null?void 0:C.id),p=h-m.quantity;h<0&&(h=0);let v=[{id:m.id,quantity:h}];const g=[];cart=await updateCart(cart.id,v),v=[],(x=window.automatically_add_to_cart)==null||x.filter(T=>(T==null?void 0:T.shopifyProductId)==b).forEach(T=>{var R,L;const M=parseInt(T==null?void 0:T.quantity);(L=T==null?void 0:(R=T.add).forEach)==null||L.call(R,k=>{var w,I,E;const F=parseInt(k==null?void 0:k.quantity)*Math.floor(h/M);if(!(k!=null&&k.shopify_product_id))return;const O=keyedProducts[k==null?void 0:k.shopify_product_id];if(!(O!=null&&O.availableForSale))return;const D=(I=(w=O.variants)==null?void 0:w.find(S=>S.available))==null?void 0:I.id;if(!D)return;const q=(E=cart.lines)==null?void 0:E.find(S=>{var A;return((A=S==null?void 0:S.merchandise)==null?void 0:A.id)===D});q?v.push({id:q.id,quantity:F}):p>0&&F&&g.push({merchandiseId:D,quantity:F})})}),v.length&&(cart=await updateCart(cart.id,v)),g.length&&(cart=await addToCart(cart.id,g)),cartUpdated(!0),n=!1}async function l(m){var M,R,L,k,F,O;let h="",b="",p="",v="",g="",_="placeholder";const C=(M=m==null?void 0:m.merchandise)!=null&&M.id?await getVariantById(m.merchandise.id):null,x=parseFloat((R=C==null?void 0:C.price)==null?void 0:R.amount)===0;m&&(h=m.quantity,b=(k=(L=m.merchandise)==null?void 0:L.product)==null?void 0:k.title,p=(O=(F=m.merchandise)==null?void 0:F.image)==null?void 0:O.src,v=localizedPrice(C,"price",h,!1),g=localizedPrice(C,"compareAtPrice",h,!1),_="");const T=e('<div class="cart-line-item-outer '+_+'"><div class="cart-line-item"><div class="cart-col-1"><div class="product-image" style="background-image: url('+p+');"></div><div class="product-info"><p class="product-title-outer"><span class="product-title">'+b+'</span></p><p class="price">'+v+'</p><div class="quantity-outer"><a href="#" class="decrement'+(x?" disabled":"")+'">-</a> <input type="text" value="'+h+'" class="quantity" readonly> <a href="#" class="increment'+(x?" disabled":"")+'">+</a></div><p><a href="#" class="remove">Remove</a></p></div></div><div class="cart-col-2"><div class="quantity-outer"><a href="#" class="decrement'+(x?" disabled":"")+'">-</a> <input type="text" value="'+h+'" class="quantity" readonly> <a href="#" class="increment'+(x?" disabled":"")+'">+</a></div></div><div class="cart-col-3"><p class="price">'+v+(x&&g?`<s>${g}</s>`:"")+'</p></div><div class="clear"></div></div></div>');return m&&(T.find(".remove").click(async D=>{D.preventDefault(),await a(m,0)}
167),T.find(".increment, .decrement").click(async function(D){D.preventDefault(),T.find(".price").text("").addClass("loading");const q=e(this).hasClass("increment")?1:-1;await a(m,h+q)})),T}cartUpdated=async m=>{if(!cart)return;localStorage.setItem("currentNumItemsInCart",cart.totalQuantity),e(".shopify-populate-cart-sum").removeClass("loading"),document.dispatchEvent(new CustomEvent("cart-updated",{detail:cart})),e(".shopify-link-checkout").attr("href",cart.checkoutUrl).off("click").on("click",v=>{t==="GBP"&&cart.cost.totalAmount.amount>=145&&(v.preventDefault(),e(".duties-and-tax-popup").addClass("visible").find(".popup__btn").attr("href",v.target.getAttribute("href")))});const h=formatCurrency(cart.cost.totalAmount.amount,cart.cost.totalAmount.currencyCode);e(".shopify-populate-cart-sum").text(h);const b=150,p=t==="USD"?b:Math.floor(await getExchangeRate(t)*b);(m===void 0||m===!0)&&e(".shopify-populate-cart").each((v,g)=>{var L,k,F,O;const C=e(g).find(".cart-line-items");C.empty();const x=!!((L=cart==null?void 0:cart.lines)!=null&&L.find(D=>{var q,w,I,E,S,A,P,V,B;return((I=(w=(q=D==null?void 0:D.merchandise)==null?void 0:q.product)==null?void 0:w.title)==null?void 0:I.toLowerCase().indexOf("flic hub"))>-1||((A=(S=(E=D==null?void 0:D.merchandise)==null?void 0:E.product)==null?void 0:S.title)==null?void 0:A.toLowerCase().indexOf("flic duo | starter kit"))>-1||((B=(V=(P=D==null?void 0:D.merchandise)==null?void 0:P.product)==null?void 0:V.title)==null?void 0:B.toLowerCase().indexOf("flic twist | starter kit"))>-1})),T=!!((k=cart==null?void 0:cart.lines)!=null&&k.find(D=>{var q,w,I;return((I=(w=(q=D==null?void 0:D.merchandise)==null?void 0:q.product)==null?void 0:w.title)==null?void 0:I.toLowerCase().indexOf("twist"))>-1})),M=!!((F=cart==null?void 0:cart.lines)!=null&&F.find(D=>{var q,w,I,E,S,A,P;return((I=(w=(q=D==null?void 0:D.merchandise)==null?void 0:q.product)==null?void 0:w.title)==null?void 0:I.toLowerCase().indexOf("flic duo"))>-1||((S=(E=D==null?void 0:D.merchandise)==null?void 0:E.product)==null?void 0:S.title.toLowerCase().indexOf("all in duo"))>-1||((P=(A=D==null?void 0:D.merchandise)==null?void 0:A.product)==null?void 0:P.title.toLowerCase().indexOf(" duo "))>-1}));cart==null||cart.lines.forEach(async D=>{const q=await l(D);C.append(q)});let R=!1;if(!x){const D=e(".need-hub-popup");T?(D.find(".popup__text").text("You have a Flic Twist in your cart which requires a Flic Hub to operate. Make sure you have one already or please add one to your cart."),D.addClass("visible"),R=!0):M&&(D.find(".popup__text").text("New to Flic? To get the best experience, we recommend adding a Flic Hub!"),D.addClass("visible"),R=!0)}(O=cart==null?void 0:cart.lines)!=null&&O.length&&!R&&p&&cart.cost.totalAmount.amount<p&&(e(".free-shipping-popup-value").text(formatCurrency(p,t,!1)),e(".free-shipping-popup").addClass("visible"))}),e(".shopify-populate-addons").each(function(){var ce;const v=e(this);v.empty();const g={id:"4331111022697",title:"Flic Hub LR",text:"Recommended for all integrations and best performance"},_={id:"6960750100585",title:"Flic Hub Mini",text:"Recommended for access to all integrations"},C={id:"4331111022697",title:"Flic Hub LR",text:"A Hub LR is recommended for Flic Duo"},x={id:"6960750100585",title:"Flic Hub Mini",text:"A Hub Mini is recommended for Flic Duo"},T={id:"6945852686441",title:"Flic Hub – Power Adapter",text:"Add power adapters for your Hub to connect to any EU, US, AUS & UK wall outlets"},M={id:"9120975552854",title:"Flic Twist Metal Plate",text:"Increase the versatility and functionality of your Flic Twist with our Metal Plate"},R={id:"9424232055126",title:"Flic Duo Metal Plate",text:"Increase the versatility and functionality of your Flic Duo with our Metal Plate"},L={id:"9427727581526",title:"Flic Duo Metal Plate",text:"Increase the versatility and functionality of your Flic Duo with our Metal Plate"},k={id:"4378064289897",title:"Flic Button Sticker Sheet",text:"Get expressive with your Flics! Use stickers to tell everyone what each button does"},F={id:"9424235495766",title:"Flic Duo Sticker Sheet",text:"Get expressive with your Flics! Use stickers to tell everyone what each button does"},O={id:"8477980787030",title:"Flic Twist Sticker Sheet",text:"Get expressive with your Flics! Use stickers to tell everyone what each button does"},D={id:"1298526568553",title:"Flic Hub LR – IR Accessory",text:"IR Accessory that lets you control TVs, stereos and more"},q={id:"4335022276713",title:"Flic Button Three Pack",text:"Flic Three Pack, You can never have enough smart buttons!"},w={id:"4377927417961",title:"Flic Button Metal Clip",text:"Attach your Flic Button to your clothes or keychain with a rigid metal clip"},I={id:"9424238575958",title:"Flic Duo Silicone Case",text:"Keep your Flic Duo safe and secure"},E={id:"4335026110569",title:"Flic Button Six Pack",text:"Connect to the Flic App or to the Flic Hub for thousands of possibilities. "},S={id:"8515083665750",title:"Flic Button Starter Kit",text:"The new Flic Hub lets control devices you'd normally need multiple apps or remotes to use."},A={id:"10028125061462",title:"Flic Pro Kit",text:"Elevate your smart home experience"},P={id:"10028132991318",title:"Flic Mega Kit",text:"Elevate your smart home experience"},V=["4331111022697","4331117543529"],B=["4331110269033","4828568354921","4335022276713","4828568453225","4335026110569","4830998986857"],N=["4335022276713","4828568453225"],z=["101675152
16718262","10028085477718","10028089246038"],j=["10167511384406","10028125061462","10028126732630"],H=["10167504503126","10028132991318","10028128108886"],K=["8515090186582","8515085205846","8515088384342"];let Q=!1,J=!1,Y=!1,ee=!1,U=!1,G=!1,re=!1,le=!1,ie=!1,se=!1,ne=!1,ae=!1;(ce=cart.lines)==null||ce.forEach(Z=>{var oe,te;if(!((te=(oe=Z.merchandise)==null?void 0:oe.product)!=null&&te.id))return;const X=decodeProductId(Z.merchandise.product.id);B.includes(X)&&(Q=!0),N.includes(X)&&(J=!0),V.includes(X)&&(Y=!0),Z.merchandise.product.title.toLowerCase().indexOf("flic twist")>-1&&(ee=!0),Z.merchandise.product.title.toLowerCase().indexOf("flic duo")>-1&&(U=!0,Z.merchandise.product.title.toLowerCase().indexOf(" black")>-1&&(G=!0)),z.includes(X)&&(le=!0),j.includes(X)&&(ie=!0),H.includes(X)&&(se=!0),(z.includes(X)||j.includes(X)||H.includes(X))&&(ne=!0),K.includes(X)&&(ae=!0),Z.merchandise.product.title.toLowerCase().indexOf(" kit")>-1&&(re=!0)});const W=[];J&&(W.push(E),W.push(S)),(ae||le)&&!ie&&W.push(A),ie&&!se&&W.push(P),U&&!re?(W.push(x),W.push(C)):(!re||ne)&&(W.push(_),W.push(g)),U&&(G?W.push(L):W.push(R),W.push(I)),ee&&W.pu
167sh(M),Q?W.push(k):U?W.push(F):ee&&W.push(O),W.push(q),!U&&(Q||re)&&!ne&&!ae&&W.push(w),Y&&(W.push(T),W.push(D)),W.forEach(Z=>{const X=Z.id,oe=Z.title,te=Z.text;let ue=!1;if(cart.lines.forEach(fe=>{var he,de;decodeProductId((de=(he=fe==null?void 0:fe.merchandise)==null?void 0:he.product)==null?void 0:de.id)==X&&(ue=!0)}),!ue){const fe=e('<div class="cart-addon-outer shopify-product" data-shopify-product-id="'+X+'"><a class="cart-addon shopify-add-to-cart no-redirect" href="#"><div class="cart-addon-inner"><div class="cart-addon-image shopify-populate-image"></div><small><strong>Recommended add-on</strong></small><div class="cart-addon-title">'+oe+'</div><p class="cart-addon-description">'+te+'</p><p class="cart-addon-price shopify-populate-price"></p><div class="round-button inverted">Add</div><div style="clear: both;"></div></div></a></div>');v.find(".cart-addon").click(()=>{v.find(".cart-addon").css({opacity:0})}),v.append(fe)}}),o()})};function o(){e(".shopify-populate-price").each(function(){const m=i(e(this));e(this).text(localizedPriceRound(m,"price",1,!1))}),e(".out-of-stock-badge").each(function(){const m=i(e(this));m!=null&&m.available?this.classList.remove("visible"):this.classList.add("visible")}),e(".shopify-populate-compare-at-price").each((m,h)=>{const b=parseFloat(h.getAttribute("data-discount")),p=i(e(h)),v=parseFloat(p==null?void 0:p.price.amount),g=p==null?void 0:p.price.currencyCode;let _=v&&b?formatCurrency(Math.round(v/(100-b)*100),g):null;_=_==null?void 0:_.replace(".00",""),_?(e(h).closest(".compare-at-wrap").css("display","block"),e(h).text(_)):(e(h).closest(".compare-at-wrap").css("display","none"),e(h).text(""))}),document.querySelectorAll(".shopify-add-to-cart").forEach(m=>{const h=m.classList.contains("button");m.classList.contains("disabled")||m.disabled||m.addEventListener("click",async b=>{if(b.preventDefault(),m.classList.contains("button--loading")||m.classList.contains("button--success"))return;h&&(m.querySelector(".spinner")||e(m).append('<i class="spinner"></i>'),m.classList.add("button--loading"));const p=r(e(m)),v=i(e(m)),g=s(e(m)),_=!m.classList.contains("no-redirect")&&!h,C=m.classList.contains("navigate-to-checkout");let x=!1;try{x=await addVariantToCart(v,g,_,C,p)}catch(T){console.error(T)}requestAnimationFrame(()=>{requestAnimationFrame(()=>{m.classList.remove("button--loading"),m.classList.add(x?"button--success":"button--error"),setTimeout(()=>{cart&&m.hasAttribute("data-go-to-checkout")&&(window.location.pathname="/cart-page")},400),setTimeout(()=>{m.classList.remove(x?"button--success":"button--error")},2e3)})})})}),e(".shopify-populate-image").each(function(){var m=r(e(this));if(m){var h=e(this).attr("data-shopify-image-index")?e(this).attr("data-shopify-image-index"):0,b=m.images[h]?m.images[h].src:null;b?e(this).css({"background-image":"url("+b+")"}):e(this).css({visibility:"hidden"})}e(this).removeClass("loading")}),e(".shopify-populate-img").each(function(){var m=r(e(this));if(m){var h=m.images[0]?m.images[0].src:null;h?e(this).attr("src",h):e(this).css({visibility:"hidden"})}e(this).removeClass("loading")}),e(".shopify-product").each(function(){const m=r(e(this));m&&!m.availableForSale&&e(this).addClass("out-of-stock")})}initCart=async(m=!1)=>{var h;if(!m&&localStorage.getItem("cartId"))try{cart=await getCart(localStorage.getItem("cartId")),cart&&cartUpdated()}catch(b){console.error(b)}if(m||!cart){const b=[];(h=cart==null?void 0:cart.lines)==null||h.forEach(p=>{b.push({merchandiseId:p.merchandise.id,quantity:p.quantity})});try{cart=await createCart(),cart=await addToCart(cart.id,b),localStorage.setItem("cartId",cart.id),cartUpdated()}catch(p){console.error(p)}}},(async()=>(keyedProducts=await getAllProducts(),o(),initCart()))();const c=localStorage.getItem("currentNumItemsInCart");c<1?((d=(u=document.querySelector(".cart-section__main"))==null?void 0:u.classList)==null||d.add("hidden"),(y=(f=document.querySelector(".cart-section__empty"))==null?void 0:f.classList)==null||y.remove("hidden")):e(".shopify-populate-cart").each(async(m,h)=>{const p=e(h).find(".cart-line-items");for(let v=0;v<c;v+=1){const g=await l(null);p.append(g)}})},newProduct=()=>{const e=document.querySelectorAll(".new-product");
167if(!(e!=null&&e.length))return;async function t(r){var b,p,v,g,_,C,x;const i=r.getAttribute("data-shopify-product"),s=r.getAttribute("data-discount"),n=parseFloat(r.getAttribute("data-price-multiplier"));let a=r.getAttribute("data-product");const l=await getProductById(i),o=((b=l==null?void 0:l.variants)==null?void 0:b[0])||(l==null?void 0:l.selectedVariant);if(a)try{a=JSON.parse(a)}catch(T){a=null}if(!o)return!1;const c=r.querySelector("[data-product-image]"),u=r.querySelector(".new-product__price"),d=r.querySelector(".new-product__old-price"),f=r.querySelector(".new-product__discount"),y=r.querySelector(".new-product__badge-top");if(c)if((v=(p=l.images)==null?void 0:p[0])!=null&&v.src){let T=c.querySelector("img");T||(T=document.createElement("img"),T.setAttribute("loading","lazy"),c.append(T)),T.setAttribute("src",(_=(g=l.images)==null?void 0:g[0])==null?void 0:_.src)}else c.classList.remove("loading");const m=parseFloat(o==null?void 0:o.price.amount)*(n||1),h=o==null?void 0:o.price.currencyCode;if(u&&(u.textContent=formatCurrency(m,h).replace(".00","")),d){let T=m&&s?formatCurrency(Math.round(m/(100-s)*100),h):null;T=T==null?void 0:T.replace(".00",""),T?(d.textContent=T,(C=f==null?void 0:f.classList)==null||C.add("shown")):(d.textContent="",(x=f==null?void 0:f.classList)==null||x.remove("shown"))}return y&&(o.available?a!=null&&a.top_badge?y.innerHTML=a==null?void 0:a.top_badge:y.innerHTML=y.getAttribute("data-text"):y.innerHTML="Out of stock"),!0}e.forEach(async r=>{if(!t(r))return;const i=r.querySelector(".new-product__button"),s=r.querySelector(".new-product__quantity span"),n=r.querySelector(".new-product__quantity select"),a=r.querySelectorAll(".new-product__color-picker");n&&(s.textContent=n.value,n.addEventListener("change",l=>{s.textContent=l.target.value})),i&&!(i!=null&&i.classList.contains("disabled"))&&i.addEventListener("click",async l=>{var y;if(l.preventDefault(),i.classList.contains("button--loading")||i.classList.contains("button--success"))return;const o=r.getAttribute("data-shopify-product"),c=await getProductById(o),u=((y=c==null?void 0:c.variants)==null?void 0:y[0])||(c==null?void 0:c.selectedVariant);if(!i.querySelector(".spinner")){const m=document.createElement("i");m.classList.add("spinner"),i.append(m)}i.classList.add("button--loading");const d=(n==null?void 0:n.value)||1;let f=!1;try{f=await addVariantToCart(u,d,!1,!1,c)}catch(m){console.error(m)}requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("button--loading"),i.classList.add(f?"button--success":"button--error"),setTimeout(()=>{i.classList.remove(f?"button--success":"button--error")},2e3)})})}),a.forEach(l=>{const o=l.getAttribute("data-shopify-id");o===r.getAttribute("data-shopify-product")&&l.classList.add("active"),l.addEventListener("click",c=>{c.preventDefault(),!l.classList.contains("active")&&(a.forEach(u=>u.classList.remove("active")),l.classList.add("active"),r.setAttribute("data-shopify-product",o),t(r))})}),r.addEventListener("update",()=>{t(r)})}),document.addEventListener("currency-change",async r=>{e.forEach(async i=>{t(i)})})},partnershipsSlider=()=>{document.querySelectorAll(".partnerships-slider").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:"1",speed:1e3,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},pagination:{el:t.querySelector(".swiper-pagination"),type:"bullets",clickable:"true"}})})};function passProtectedPage(){const e=document.querySelector(".password-panel");if(!e)return;const t=["FLICVIP"].map(l=>l.toLowerCase()),r=e.querySelector("form.password-panel__form"),i=e.querySelector("#error-message"),s=document.querySelectorAll(".vip-access-content"),n=`password:${window.location.pathname}`;function a(){var l,o;e.classList.add("hidden"),i.classList.remove("visible"),(o=(l=e.closest(".with-password"))==null?void 0:l.classList)==null||o.add("opened"),document.querySelectorAll(".password-protected-content").forEach(c=>{c.classList.add("visible")}),s&&s.forEach(c=>{c.classList.add("visible"),c.style.height=`${c.scrollHeight}px`,setTimeout(()=>{c.style.height="auto"},1e3)})}t.includes(localStorage.getItem(n))&&a(),r==null||r.addEventListener("submit",l=>{var u;l.preventDefault();const c=(u=r.querySelector("input.password-panel__input").value)==null?void 0:u.toLowerCase();t.includes(c)?(localStorage.setItem(n,c),setTimeout(()=>{a()},400)):i.classList.add("visible")})}
167function popup(){document.querySelectorAll(".popup").forEach(e=>{e.querySelectorAll("[data-popup-close]").forEach(t=>{t.addEventListener("click",r=>{r.preventDefault(),e.classList.remove("visible")})})})}const productCard=()=>{var r;const e=document.querySelectorAll(".product-card");if(!e.length)return;const t=((r=window.location.hash)==null?void 0:r.substring(1))||"";e.forEach(i=>{const s=i.querySelector(".product-images"),n=i.querySelector(".product-card__color-name"),a=i.querySelectorAll(".product-card__color-picker");let l;a.forEach(o=>{const c=o.getAttribute("data-shopify-id");function u(){a.forEach(d=>{d.classList.remove("active")}),n.style.opacity="0",clearTimeout(l),l=setTimeout(()=>{n.innerHTML=o.getAttribute("data-name"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.style.opacity=""})})},300),o.classList.add("active"),i.setAttribute("data-shopify-product-id",c),s==null||s.dispatchEvent(new CustomEvent("switch-variant",{detail:{shopifyId:c}})),updateProductView(i)}o.addEventListener("click",d=>{d.preventDefault(),!o.classList.contains("active")&&u()}),t&&t===o.getAttribute("data-color")&&u()})})},productImage=async()=>{const e=document.querySelectorAll(".product-image");if(!e.length)return;const t=await getAllProducts();e.forEach(r=>{const i=[...r.querySelectorAll(".product-image__variant")];i==null||i.forEach(s=>{var c;const n=s.getAttribute("data-shopify-id"),a=t[n],l=((c=a==null?void 0:a.images)==null?void 0:c.map(u=>u==null?void 0:u.src).filter(u=>!!u))||[];if(!l.length)return;const o=s.querySelector(".product-image__main > img");o&&o.setAttribute("src",l[0])})})},productImages=async()=>{const e=document.querySelectorAll(".product-images");if(!e.length)return;const t=await getAllProducts();e.forEach(r=>{const s=r.closest(".product-card").getAttribute("data-shopify-product-id"),n=[...r.querySelectorAll(".product-images__variant")];n==null||n.forEach(a=>{var y,m,h;const l=a.getAttribute("data-shopify-id"),o=t[l],c=((y=o==null?void 0:o.images)==null?void 0:y.map(b=>b==null?void 0:b.src).filter(b=>!!b))||[];if(s&&(s===l?a.classList.add("active"):a.classList.remove("active")),!c.length)return;const u=a.querySelectorAll(".product-images__main-item"),d=[...a.querySelectorAll(".product-images__thumb")];function f(b){a.querySelectorAll("video").forEach(g=>g.pause());const v=u[b].querySelector("video");v&&(v.currentTime=0,v.play())}d.forEach((b,p)=>{if(!c[p]){b.remove();return}const v=u[p].querySelector("img"),g=b.querySelector("img");v&&!v.getAttribute("src")&&v.setAttribute("src",c[p]),g&&!(g!=null&&g.getAttribute("src"))&&g.setAttribute("src",c[p]),b.addEventListener("click",_=>{_.preventDefault(),!b.classList.contains("active")&&(f(p),d.forEach(C=>C.classList.remove("active")),b.classList.add("active"),u.forEach(C=>{C.classList.remove("active")}),u[p].classList.add("active"))})}),f(0),(m=d==null?void 0:d[0])==null||m.classList.add("active"),(h=u==null?void 0:u[0])==null||h.classList.add("active")}),r.addEventListener("switch-variant",a=>{if(!a.detail.shopifyId)return;const l=n.find(o=>o.getAttribute("data-shopify-id")==a.detail.shopifyId);l.classList.contains("active")||(n.forEach(o=>{o.classList.contains("active")&&(o.classList.remove("active"),setTimeout(()=>{var c;(c=o.querySelector(".product-images__thumb"))==null||c.click()},200))}),l.classList.add("active"))})})};var _stackClear,hasRequired_stackClear;function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var e=require_ListCache();function t(){this.__data__=new e,this.size=0}return _stackClear=t,_stackClear}var _stackDelete,hasRequired_stackDelete;function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;hasRequired_stackDelete=1;function e(t){var r=this.__data__,i=r.delete(t);return this.size=r.size,i}return _stackDelete=e,_stackDelete}var _stackGet,hasRequired_stackGet;function require_stackGet(){if(hasRequired_stackGet)return _stackGet;hasRequired_stackGet=1;function e(t){return this.__data__.get(t)}return _stackGet=e,_stackGet}var _stackHas,hasRequired_stackHas;function require_stackHas(){if(hasRequired_stackHas)return _stackHas;hasRequired_stackHas=1;function e(t){return this.__data__.has(t)}return _stackHas=e,_stackHas}var _stackSet,hasRequired_stackSet;function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var e=require_ListCache(),t=require_Map(),r=require_MapCache(),i=200;function s(n,a){var l=this.__data__;if(l instanceof e){var o=l.__data__;if(!t||o.length<i-1)return o.push([n,a]),this.size=++l.size,this;l=this.__data__=new r(o)}return l.set(n,a),this.size=l.size,this}return _stackSet=s,_stackSet}var _Stack,hasRequired_Stack;function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var e=require_ListCache(),t=require_stackClear(),r=require_stackDelete(),i=require_stackGet(),s=require_stackHas(),n=require_stackSet();function a(l){var o=this.__data__=new e(l);this.size=o.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=i,a.prototype.has=s,a.prototype.set=n,_Stack=a,_Stack}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function e(t,r){for(var i=-1,s=t==null?0:t.length;++i<s;)if(r(t[i],i,t))return!0;return!1}return _arraySome=e,_arraySome}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var e=require_SetCache(),t=require_arraySome(),r=require_cacheHas(),i=1,s=2;function n(a,l,o,c,u,d){var f=o&i,y=a.length,m=l.length;if(y!=m&&!(f&&m>y))return!1;var h=d.get(a),b=d.get(l);if(h&&b)return h==l&&b==a;var p=-1,v=!0,g=o&s?new e:void 0;for(d.set(a,l),d.set(l,a);++p<y;){var _=a[p],C=l[p];if(c)var x=f?c(C,_,p,l,a,d):c(_,C,p,a,l,d);if(x!==void 0){if(x)continue;v=!1;break}if(g){if(!t(l,function(T,M){if(!r(g,M)&&(_===T||u(_,T,o,c,d)))return g.push(M)})){v=!1;break}}else if(!(_===C||u(_,C,o,c,d))){v=!1;break}}return d.delete(a),d.delete(l),v}return _equalArrays=n,_equalArrays}var _Uint8Array,hasRequired_Uint8Array;function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var e=require_root(),t=e.Uint8Array;return _Uint8Array=t,_Uint8Array}var _mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function e(t){var r=-1,i=Array(t.size);return t.forEach(function(s,n){i[++r]=[n,s]}),i}return _mapToArray=e,_mapToArray}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function e(t){var r=-1,i=Array(t.size);return t.forEach(function(s){i[++r]=s}),i}return _setToArray=e,_setToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var e=require_Symbol(),t=require_Uint8Array(),r=requireEq(),i=require_equalArrays(),s=require_mapToArray(),n=require_setToArray(),a=1,l=2,o="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Map]",f="[object Number]",y="[object RegExp]",m="[object Set]",h="[object String]",b="[object Symbol]",p="[object ArrayBuffer]",v="[object DataView]",g=e?e.prototype:void 0,_=g?g.valueOf:void 0;function C(x,T,M,R,L,k,F){switch(M){case v:if(x.byteLength!=T.byteLength||x.byteOffset!=T.byteOffset)return!1;x=x.buffer,T=T.buffer;case p:return!(x.byteLength!=T.byteLength||!k(new t(x),new t(T)));case o:case c:case f:return r(+x,+T);case u:return x.name==T.name&&x.message==T.message;case y:case h:return x==T+"";case d:var O=s;case m:var D=R&a;
vendor: 4,211 bytes, line 167
167if(O||(O=n),x.size!=T.size&&!D)return!1;var q=F.get(x);if(q)return q==T;R|=l,F.set(x,T);var w=i(O(x),O(T),R,L,k,F);return F.delete(x),w;case b:if(_)return _.call(x)==_.call(T)}return!1}return _equalByTag=C,_equalByTag}var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function e(t,r){for(var i=-1,s=r.length,n=t.length;++i<s;)t[n+i]=r[i];return t}return _arrayPush=e,_arrayPush}var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e,isArray_1}var _baseGetAllKeys,hasRequired_baseGetAllKeys;function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var e=require_arrayPush(),t=requireIsArray();function r(i,s,n){var a=s(i);return t(i)?a:e(a,n(i))}return _baseGetAllKeys=r,_baseGetAllKeys}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function e(t,r){for(var i=-1,s=t==null?0:t.length,n=0,a=[];++i<s;){var l=t[i];r(l,i,t)&&(a[n++]=l)}return a}return _arrayFilter=e,_arrayFilter}var stubArray_1,hasRequiredStubArray;function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;hasRequiredStubArray=1;function e(){return[]}return stubArray_1=e,stubArray_1}var _getSymbols,hasRequired_getSymbols;function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var e=require_arrayFilter(),t=requireStubArray(),r=Object.prototype,i=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,n=s?function(a){return a==null?[]:(a=Object(a),e(s(a),function(l){return i.call(a,l)}))}:t;return _getSymbols=n,_getSymbols}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function e(t,r){for(var i=-1,s=Array(t);++i<t;)s[i]=r(i);return s}return _baseTimes=e,_baseTimes}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var e=require_baseGetTag(),t=requireIsObjectLike(),r="[object Arguments]";function i(s){return t(s)&&e(s)==r}return _baseIsArguments=i,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var e=require_baseIsArguments(),t=requireIsObjectLike(),r=Object.prototype,i=r.hasOwnProperty,s=r.propertyIsEnumerable,n=e((function(){return arguments})())?e:function(a){return t(a)&&i.call(a,"callee")&&!s.call(a,"callee")};return isArguments_1=n,isArguments_1}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function e(){return!1}return stubFalse_1=e,stubFalse_1}isBuffer.exports;var hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,(function(e,t){var r=require_root(),i=requireStubFalse(),s=t&&!t.nodeType&&t,n=s&&!0&&e&&!e.nodeType&&e,a=n&&n.exports===s,l=a?r.Buffer:void 0,o=l?l.isBuffer:void 0,c=o||i;e.exports=c})(isBuffer,isBuffer.exports)),isBuffer.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(i,s){var n=typeof i;return s=s==null?e:s,!!s&&(n=="number"||n!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<s}return _isIndex=r,_isIndex}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),r=requireIsObjectLike(),i="[object Arguments]",s="[object Array]",n="[object Boolean]",a="[object Date]",l="[object Error]",o="[object Function]",c="[object Map]",u="[object Number]",d="[object Object]",f="[object RegExp]",y="[object Set]",m="[object String]",h="[object WeakMap]",b="[object ArrayBuffer]",p="[object DataView]",v="[object Float32Array]",g="[object Float64Array
167]",_="[object Int8Array]",C="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",M="[object Uint8ClampedArray]",R="[object Uint16Array]",L="[object Uint32Array]",k={};k[v]=k[g]=k[_]=k[C]=k[x]=k[T]=k[M]=k[R]=k[L]=!0,k[i]=k[s]=k[b]=k[n]=k[p]=k[a]=k[l]=k[o]=k[c]=k[u]=k[d]=k[f]=k[y]=k[m]=k[h]=!1;function F(O){return r(O)&&t(O.length)&&!!k[e(O)]}return _baseIsTypedArray=F,_baseIsTypedArray}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,(function(e,t){var r=require_freeGlobal(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,n=s&&s.exports===i,a=n&&r.process,l=(function(){try{var o=s&&s.require&&s.require("util").types;return o||a&&a.binding&&a.binding("util")}catch(c){}})();e.exports=l})(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),r=require_nodeUtil(),i=r&&r.isTypedArray,s=i?t(i):e;return isTypedArray_1=s,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments(),r=requireIsArray(),i=requireIsBuffer(),s=require_isIndex(),n=requireIsTypedArray(),a=Object.prototype,l=a.hasOwnProperty;function o(c,u){var d=r(c),f=!d&&t(c),y=!d&&!f&&i(c),m=!d&&!f&&!y&&n(c),h=d||f||y||m,b=h?e(c.length,String):[],p=b.length;for(var v in c)(u||l.call(c,v))&&!(h&&(v=="length"||y&&(v=="offset"||v=="parent")||m&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||s(v,p)))&&b.push(v);return b}return _arrayLikeKeys=o,_arrayLikeKeys}var _isPrototype,hasRequired_isPrototype;function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;function t(r){var i=r&&r.constructor,s=typeof i=="function"&&i.prototype||e;return r===s}return _isPrototype=t,_isPrototype}var _overArg,hasRequired_overArg;function require_overArg(){if(hasRequired_overArg)return _overArg;hasRequired_overArg=1;function e(t,r){return function(i){return t(r(i))}}return _overArg=e,_overArg}var _nativeKeys,hasRequired_nativeKeys;function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg(),t=e(Object.keys,Object);return _nativeKeys=t,_nativeKeys}var _baseKeys,hasRequired_baseKeys;function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),r=Object.prototype,i=r.hasOwnProperty;function s(n){if(!e(n))return t(n);var a=[];for(var l in Object(n))i.call(n,l)&&l!="constructor"&&a.push(l);return a}return _baseKeys=s,_baseKeys}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),r=requireIsArrayLike();function i(s){return r(s)?e(s):t(s)}return keys_1=i,keys_1}var _getAllKeys,hasRequired_getAllKeys;function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var e=require_baseGetAllKeys(),t=require_getSymbols(),r=requireKeys();function i(s){return e(s,r,t)}return _getAllKeys=i,_getAllKeys}var _equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var e=require_getAllKeys(),t=1,r=Object.prototype,i=r.hasOwnProperty;function s(n,a,l,o,c,u){var d=l&t,f=e(n),y=f.length,m=e(a),h=m.length;if(y!=h&&!d)return!1;for(var b=y;b--;){var p=f[b];if(!(d?p in a:i.call(a,p)))return!1}var v=u.get(n),g=u.get(a);if(v&&g)return v==a&&g==n;var _=!0;u.set(n,a),u.set(a,n);for(var C=d;++b<y;){p=f[b];var x=n[p],T=a[p];if(o)var M=d?o(T,x,p,a,n,u):o(x,T,p,n,a,u);if(!(M===void 0?x===T||c(x,T,l,o,u):M)){_=!1;break}C||(C=p=="constructor")}if(_&&!C){var R=n.constructor,L=a.constructor;R!=L&&"constructor"in n&&"constructor"in a&&!(typeof R=="function"&&R instanceof R&&typeof L=="function"&&L instanceof L)&&(_=!1)}return u.delete(n),u.delete(a),_}return _equalObjects=s,_equalObjects}var _DataView,hasRequired_DataView;function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var e=require_getNative(),t=require_root(),r=e(t,"DataView");return _DataView=r,_DataView}var _Promise,hasRequired_Promise;function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var e=require_getNative(),t=require_root(),r=e(t,"Promise");return _Promise=r,_Promise}var _Set,hasRequired_Set;function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var e=require_getNative(),t=require_root(),r=e(t,"Set");return _Set=r,_Set}var _WeakMap,hasRequired_WeakMap;function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var e=require_getNative(),t=require_root(),r=e(t,"WeakMap");return _WeakMap=r,_WeakMap}var _getTag,hasRequired_getTag;function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var e=require_DataView(),t=require_Map(),r=require_Promise(),i=require_Set(),s=require_WeakMap(),n=require_baseGetTag(),a=require_toSource(),l="[object Map]",o="[object Object]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",f="[object DataView]",y=a(e),m=a(t),h=a(r),b=a(i),p=a(s),v=n;return(e&&v(new e(new ArrayBuffer(1)))!=f||t&&v(new t)!=l||r&&v(r.resolve())!=c||i&&v(new i)!=u||s&&v(new s)!=d)&&(v=function(g){var _=n(g),C=_==o?g.constructor:void 0,x=C?a(C):"";if(x)switch(x){case y:return f;case m:return l;case h:return c;case b:return u;case p:return d}return _}),_getTag=v,_getTag}var _baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var e=require_Stack(),t=require_equalArrays(),r=require_equalByTag(),i=require_equalObjects(),s=require_getTag(),n=requireIsArray(),a=requireIsBuffer(),l=requireIsTypedArray(),o=1,c="[object Arguments]",u="[object Array]",d="[object Object]",f=Object.prototype,y=f.hasOwnProperty;
167function m(h,b,p,v,g,_){var C=n(h),x=n(b),T=C?u:s(h),M=x?u:s(b);T=T==c?d:T,M=M==c?d:M;var R=T==d,L=M==d,k=T==M;if(k&&a(h)){if(!a(b))return!1;C=!0,R=!1}if(k&&!R)return _||(_=new e),C||l(h)?t(h,b,p,v,g,_):r(h,b,T,p,v,g,_);if(!(p&o)){var F=R&&y.call(h,"__wrapped__"),O=L&&y.call(b,"__wrapped__");if(F||O){var D=F?h.value():h,q=O?b.value():b;return _||(_=new e),g(D,q,p,v,_)}}return k?(_||(_=new e),i(h,b,p,v,g,_)):!1}return _baseIsEqualDeep=m,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var e=require_baseIsEqualDeep(),t=requireIsObjectLike();function r(i,s,n,a,l){return i===s?!0:i==null||s==null||!t(i)&&!t(s)?i!==i&&s!==s:e(i,s,n,a,r,l)}return _baseIsEqual=r,_baseIsEqual}var isEqual_1,hasRequiredIsEqual;function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var e=require_baseIsEqual();function t(r,i){return e(r,i)}return isEqual_1=t,isEqual_1}requireIsEqual();const productOptions=async()=>{document.querySelectorAll(".product-options").forEach(e=>{const t=JSON.parse(e.getAttribute("data-variants"));let r={};function i(s){var o;const n=t.find(c=>Object.keys(s).length===Object.entries(s).filter(([u,d])=>c[`product_variant_option_${u}`]===d).length);if(!(n!=null&&n.shopify_product_id))return!1;r=s;const a=e.closest(".product-card"),l=e.closest(".new-product");return a&&(a.setAttribute("data-shopify-product-id",n.shopify_product_id),(o=a.querySelector(".product-images"))==null||o.dispatchEvent(new CustomEvent("switch-variant",{detail:{shopifyId:n.shopify_product_id}})),updateProductView(a)),l&&(l.setAttribute("data-shopify-product",n.shopify_product_id),l.setAttribute("data-product",JSON.stringify(n)),l.dispatchEvent(new CustomEvent("update"))),!0}e.querySelectorAll(".product-options__option").forEach(s=>{const n=s.querySelectorAll(".product-options__option-color"),a=s.getAttribute("data-option-index");n.forEach(l=>{const o=l.querySelector("span[data-value]").getAttribute("data-value");l.classList.contains("active")&&(r[a]=o),l.addEventListener("click",c=>{if(c.preventDefault(),l.classList.contains("active"))return;const u={...r};u[a]=o,i(u)&&(n.forEach(d=>{d.classList.remove("active")}),l.classList.add("active"))})})})})},productReviews=()=>{const e=document.querySelectorAll(".product-reviews");let t;e.forEach(r=>{let i=null;function s(){const a=r.querySelector(".swiper");i=new Swiper(a,{direction:"horizontal",slidesPerView:1,spaceBetween:20,speed:1e3,pagination:{el:r.querySelector(".swiper-pagination"),type:"bullets",clickable:"true"},breakpoints:{767:{slidesPerView:2},999:{pagination:!1}}})}function n(){if(t!==window.innerWidth)if(t=window.innerWidth,t>998){if(!i)return;i.destroy(),i=null}else{if(i)return;s()}}window.addEventListener("resize",n),n()})};function relatedSlider(){document.querySelectorAll(".related-slider").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:"1",speed:1e3,pagination:{el:t.querySelector(".swiper-pagination"),type:"bullets",clickable:"true"},navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},breakpoints:{999:{slidesPerView:2}}})})}const solutions=()=>{const e=document.querySelectorAll(".solutions");let t;e.forEach(r=>{const i=[...r.querySelectorAll(".solutions__item")],s=r.querySelector(".solutions__text-section");i.forEach((n,a)=>{n.querySelector(".solutions__item-head");const l=n.querySelector(".solutions__item-text");let o;n.addEventListener("click",c=>{if(c.preventDefault(),t=window.innerWidth,t<768){clearTimeout(o);const u=i.filter(d=>d.classList.contains("expanded")||d!==n);n.querySelector(".solutions__item-content").style.height=`${l.offsetHeight}px`,u.forEach(d=>{d.querySelector(".solutions__item-content").style.height=`${d.querySelector(".solutions__item-text").offsetHeight}px`}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.classList.contains("expanded")?(n.classList.remove("expanded"),n.querySelector(".solutions__item-content").style.height=""):(n.classList.add("expanded"),o=setTimeout(()=>{n.querySelector(".solutions__item-content").style.height=""},500)),u.forEach(d=>{d.classList.remove("expanded"),d.querySelector(".solutions__item-content").style.height=""})})})}else{const u=s.querySelectorAll(".solutions__item-content");for(let d=0;d<u.length;d++)u[d].classList.remove("active");u[a].classList.add("active")}})})})},solutionsB2b=()=>{const e=document.querySelectorAll(".solutions-b2b");let t=window.innerWidth;const r=()=>{e.forEach(s=>{s.querySelectorAll(".solutions-b2b__item").forEach(a=>{const l=a.querySelector(".solutions-b2b__item-title");if(l){let o=l.querySelector(".arrow");a.classList.contains("active")?o||(o=document.createElement("span"),o.classList.add("arrow"),l.insertBefore(o,l.firstChild)):o&&o.remove()}})})},i=()=>{const s=window.innerWidth;(t<768&&s>=768||t>=768&&s<768)&&e.forEach(n=>{const a=n.querySelectorAll(".solutions-b2b__item"),l=n.querySelectorAll(".solutions-b2b__item-content"),o=n.querySelector(".solutions-b2b__text-section");
167if(a.forEach(c=>{c.classList.remove("active")}),l.forEach(c=>c.classList.remove("active")),s>=768){if(a.length>0){a[0].classList.add("active");const c=o.querySelector(".solutions-b2b__item-content");c&&c.classList.add("active")}}else a.length>0&&a[0].classList.add("active")}),t=s,r()};window.addEventListener("resize",i),e.forEach(s=>{const n=[...s.querySelectorAll(".solutions-b2b__item")],a=s.querySelector(".solutions-b2b__text-section");n.length>0&&(n[0].classList.add("active"),r()),n.forEach((l,o)=>{l.addEventListener("click",c=>{c.preventDefault(),n.forEach(d=>{d.classList.remove("active")}),l.classList.add("active");const u=a.querySelectorAll(".solutions-b2b__item-content");u.forEach(d=>d.classList.remove("active")),u[o]&&u[o].classList.add("active"),r()})})})};function subscribePopup(e){}const tabs=()=>{document.querySelectorAll(".tabs").forEach(t=>{const r=t.querySelectorAll(".tabs__button"),i=t.querySelector(".tabs__buttons"),s=t.querySelectorAll(".tabs__item");function n(){const a=t.querySelector(".tabs__button.active");if(a&&i){const l=i.offsetWidth,o=a.offsetLeft,c=a.offsetWidth,u=o-l/2+c/2;i.scrollTo({left:u,behavior:"smooth"})}}window.addEventListener("resize",function(){window.innerWidth<768&&n()}),window.innerWidth<768&&n(),r.forEach((a,l)=>{a.addEventListener("click",function(){r.forEach(o=>
167o.classList.remove("active")),s.forEach(o=>o.classList.remove("active")),a.classList.add("active"),s[l].classList.add("active"),window.innerWidth<768&&n()})})})};function testimonialsBusiness(){document.querySelectorAll(".testimonials-business").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:"auto",speed:1e3,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},breakpoints:{767:{enabled:!1}}})})}function testimonialsDuo(){document.querySelectorAll(".testimonials-duo").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:"1",spaceBetween:20,speed:1e3,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},pagination:{el:t.querySelector(".swiper-pagination"),type:"bullets",clickable:"true"}})})}const testimonialsSection=()=>{document.querySelectorAll(".testimonials-section").forEach(t=>{let r=null;function i(){if(r)return;const s=t.querySelector(".swiper-container");r=new Swiper(s,{direction:"horizontal",slidesPerView:"1",spaceBetween:20,speed:1e3})}window.innerWidth<=766&&i(),window.addEventListener("resize",function(){if(window.innerWidth>766){if(!r)return;r.destroy(),r=null}else i()})})};function testimonialsSimplify(){document.querySelectorAll(".testimonials-simplify").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:"1",speed:1e3,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},pagination:{el:t.querySelector(".swiper-pagination"),type:"bullets",clickable:"true"}})})}const topSubscribe=()=>{document.querySelectorAll(".top-subscribe").forEach(e=>{const t=e.querySelector(".top-subscribe__error"),r=e.querySelector(".top-subscribe__success"),i=e.querySelector("form.top-subscribe__form");i&&(i.setAttribute("novalidate","novalidate"),i.addEventListener("submit",s=>{s.preventDefault();const n=i.querySelector("input#EMAIL");if(!validateEmail(n.value)){n.classList.add("error");return}n.classList.remove("error"),i.classList.add("submitting");const a=new FormData(i);a.append("action","sendinblue_form_submit"),a.append("request_url",i.getAttribute("action")),fetch(window.ADMIN_AJAX_URL,{method:i.getAttribute("method"),body:a}).then(l=>{if(i.classList.remove("submitting"),l.status!=200){t.classList.add("visible");return}t.classList.remove("visible"),r.classList.add("visible")}).catch(l=>{console.log(l),i.classList.remove("submitting")})}))})};function twistSlider(){document.querySelectorAll(".twist-slider").forEach(t=>{const r=t.querySelector(".swiper-container");new Swiper(r,{direction:"horizontal",slidesPerView:1,centeredSlides:!0,spaceBetween:20,speed:1e3,initialSlide:1,navigation:{nextEl:t.querySelector(".swiper-button-next"),prevEl:t.querySelector(".swiper-button-prev")},breakpoints:{768:{slidesPerView:2}}})})}function windowWidthResize(){let e=window.innerWidth;window.addEventListener("resize",()=>{e!==window.innerWidth&&(e=window.innerWidth,window.dispatchEvent(new CustomEvent("widthResize")))})}function youtubeVideo(){const e=document.querySelectorAll(".youtube-video-player");if(!e.length)return;const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";const r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r),window.onYouTubeIframeAPIReady=function(){e.forEach((i,s)=>{const n=i.closest(".youtube-video-wrapper"),a=n.querySelector(".youtube-video-button"),l=i.getAttribute("data-src");if(!l)return;new YT.Player(i,{videoId:l,playerVars:{playsinline:1},events:{onReady:o,onStateChange:c}});function o(u){n.classList.add("ready"),a.addEventListener("click",()=>{n.classList.add("playing"),u.target.playVideo()})}function c(u){u.data===YT.PlayerState.ENDED&&(n.classList.remove("playing"),u.target.stopVideo())}})}}window.Alpine=module_default;module_default.data("applications",applications);module_default.data("applicationsItem",applicationsItem);module_default.data("cart",cart$1);module_default.start();Swiper.use([Autoplay,EffectFade,Navigation,Pagination,Thumb]);(function(e){const t=[accordion,actionSlider,blog,buttonsSlider,configurator,countdown,customerSlider,faq,f
167ilter,fullScreenSlider,subscribePopup$1,newProduct,partnershipsSlider,passProtectedPage,popup,productCard,productImage,productImages,productOptions,productReviews,relatedSlider,shopify,solutions,solutionsB2b,subscribePopup,tabs,testimonialsBusiness,testimonialsDuo,testimonialsSection,testimonialsSimplify,topSubscribe,twistSlider,windowWidthResize,BFSignup,lazyVideo,lottie,youtubeVideo];e(()=>{requestAnimationFrame(()=>{for(let r=0;r<t.length;r+=1)try{t[r](e)}catch(i){console.error(i)}})})})(window.jQuery);

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.