cas-ds-web-components 1.2.105 → 1.2.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cas-ds-web-components.js +70 -67
- package/build/cas-header.js +59 -56
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(T,k1){typeof exports=="object"&&typeof module<"u"?k1(exports):typeof define=="function"&&define.amd?define(["exports"],k1):(T=typeof globalThis<"u"?globalThis:T||self,k1(T["all-components"]={}))})(this,function(T){"use strict";var nw=Object.defineProperty;var lw=(T,k1,r3)=>k1 in T?nw(T,k1,{enumerable:!0,configurable:!0,writable:!0,value:r3}):T[k1]=r3;var b=(T,k1,r3)=>(lw(T,typeof k1!="symbol"?k1+"":k1,r3),r3);var w6,Po;(()=>{const o=document.createElement("link");o.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),o.setAttribute("rel","stylesheet"),document.head.appendChild(o)})();const W8={name:"@eloisa-ds/all-components",version:"1.0.
|
|
1
|
+
(function(T,k1){typeof exports=="object"&&typeof module<"u"?k1(exports):typeof define=="function"&&define.amd?define(["exports"],k1):(T=typeof globalThis<"u"?globalThis:T||self,k1(T["all-components"]={}))})(this,function(T){"use strict";var nw=Object.defineProperty;var lw=(T,k1,r3)=>k1 in T?nw(T,k1,{enumerable:!0,configurable:!0,writable:!0,value:r3}):T[k1]=r3;var b=(T,k1,r3)=>(lw(T,typeof k1!="symbol"?k1+"":k1,r3),r3);var w6,Po;(()=>{const o=document.createElement("link");o.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),o.setAttribute("rel","stylesheet"),document.head.appendChild(o)})();const W8={name:"@eloisa-ds/all-components",version:"1.0.109",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -7525,7 +7525,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
7525
7525
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
7526
7526
|
* Google as part of the polymer project is also subject to an additional IP
|
|
7527
7527
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7528
|
-
*/let $5=0;const A5=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},YC="__computeInfo",Yp=/[A-Z]/;function N4(o,C,t){let e=o[C];if(!e)e=o[C]={};else if(!o.hasOwnProperty(C)&&(e=o[C]=Object.create(o[C]),t))for(let i in e){let s=e[i],a=e[i]=Array(s.length);for(let l=0;l<s.length;l++)a[l]=s[l]}return e}function S5(o,C,t,e,i,s){if(C){let a=!1;const l=$5++;for(let r in t){let h=i?E2(r):r,d=C[h];if(d)for(let c=0,p=d.length,L;c<p&&(L=d[c]);c++)(!L.info||L.info.lastRun!==l)&&(!i||R4(r,L.trigger))&&(L.info&&(L.info.lastRun=l),L.fn(o,r,t,e,L.info,i,s),a=!0)}return a}return!1}function Gp(o,C,t,e,i,s,a,l){let r=!1,h=a?E2(e):e,d=C[h];if(d)for(let c=0,p=d.length,L;c<p&&(L=d[c]);c++)(!L.info||L.info.lastRun!==t)&&(!a||R4(e,L.trigger))&&(L.info&&(L.info.lastRun=t),L.fn(o,e,i,s,L.info,a,l),r=!0);return r}function R4(o,C){if(C){let t=C.name;return t==o||!!(C.structured&&bp(t,o))||!!(C.wildcard&&U6(t,o))}else return!0}function GC(o,C,t,e,i){let s=typeof i.method=="string"?o[i.method]:i.method,a=i.property;s?s.call(o,o.__data[a],e[a]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Kp(o,C,t,e,i){let s=o[O.NOTIFY],a,l=$5++;for(let h in C)C[h]&&(s&&Gp(o,s,l,h,t,e,i)||i&&Xp(o,h,t))&&(a=!0);let r;a&&(r=o.__dataHost)&&r._invalidateProperties&&r._invalidateProperties()}function Xp(o,C,t){let e=E2(C);if(e!==C){let i=Y6(e)+"-changed";return KC(o,i,t[C],C),!0}return!1}function KC(o,C,t,e){let i={value:t,queueProperty:!0};e&&(i.path=e),B2(o).dispatchEvent(new CustomEvent(C,{detail:i}))}function Jp(o,C,t,e,i,s){let l=(s?E2(C):C)!=C?C:null,r=l?u1(o,l):o.__data[C];l&&r===void 0&&(r=t[C]),KC(o,i.eventName,r,l)}function Qp(o,C,t,e,i){let s,a=o.detail,l=a&&a.path;l?(e=q6(t,e,l),s=a&&a.value):s=o.currentTarget[t],s=i?!s:s,(!C[O.READ_ONLY]||!C[O.READ_ONLY][e])&&C._setPendingPropertyOrPath(e,s,!0,!!l)&&(!a||!a.queueProperty)&&C._invalidateProperties()}function Cv(o,C,t,e,i){let s=o.__data[C];j6&&(s=j6(s,i.attrName,"attribute",o)),o._propertyToAttribute(C,i.attrName,s)}function tv(o,C,t,e){let i=o[O.COMPUTE];if(i)if(up){$5++;const s=iv(o),a=[];for(let r in C)XC(r,i,a,s,e);let l;for(;l=a.shift();)JC(o,"",C,t,l)&&XC(l.methodInfo,i,a,s,e);Object.assign(t,o.__dataOld),Object.assign(C,o.__dataPending),o.__dataPending=null}else{let s=C;for(;S5(o,i,s,t,e);)Object.assign(t,o.__dataOld),Object.assign(C,o.__dataPending),s=o.__dataPending,o.__dataPending=null}}const ev=(o,C,t)=>{let e=0,i=C.length-1,s=-1;for(;e<=i;){const a=e+i>>1,l=t.get(C[a].methodInfo)-t.get(o.methodInfo);if(l<0)e=a+1;else if(l>0)i=a-1;else{s=a;break}}s<0&&(s=i+1),C.splice(s,0,o)},XC=(o,C,t,e,i)=>{const s=i?E2(o):o,a=C[s];if(a)for(let l=0;l<a.length;l++){const r=a[l];r.info.lastRun!==$5&&(!i||R4(o,r.trigger))&&(r.info.lastRun=$5,ev(r.info,t,e))}};function iv(o){let C=o.constructor.__orderedComputedDeps;if(!C){C=new Map;const t=o[O.COMPUTE];let{counts:e,ready:i,total:s}=ov(o),a;for(;a=i.shift();){C.set(a,C.size);const l=t[a];l&&l.forEach(r=>{const h=r.info.methodInfo;--s,--e[h]===0&&i.push(h)})}s!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=C}return C}function ov(o){const C=o[YC],t={},e=o[O.COMPUTE],i=[];let s=0;for(let a in C){const l=C[a];s+=t[a]=l.args.filter(r=>!r.literal).length+(l.dynamicFn?1:0)}for(let a in e)C[a]||i.push(a);return{counts:t,ready:i,total:s}}function JC(o,C,t,e,i){let s=U4(o,C,t,e,i);if(s===A5)return!1;let a=i.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[a]?o._setPendingProperty(a,s,!0):(o[a]=s,!1)}function sv(o,C,t){let e=o.__dataLinkedPaths;if(e){let i;for(let s in e){let a=e[s];U6(s,C)?(i=q6(s,a,C),o._setPendingPropertyOrPath(i,t,!0,!0)):U6(a,C)&&(i=q6(a,s,C),o._setPendingPropertyOrPath(i,t,!0,!0))}}}function j4(o,C,t,e,i,s,a){t.bindings=t.bindings||[];let l={kind:e,target:i,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(l),hv(l)){let{event:h,negate:d}=l.parts[0];l.listenerEvent=h||Y6(i)+"-changed",l.listenerNegate=d}let r=C.nodeInfoList.length;for(let h=0;h<l.parts.length;h++){let d=l.parts[h];d.compoundIndex=h,av(o,C,l,d,r)}}function av(o,C,t,e,i){if(!e.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=e.dependencies,a={index:i,binding:t,part:e,evaluator:o};for(let l=0;l<s.length;l++){let r=s[l];typeof r=="string"&&(r=ot(r),r.wildcard=!0),o._addTemplatePropertyEffect(C,r.rootProperty,{fn:nv,info:a,trigger:r})}}}function nv(o,C,t,e,i,s,a){let l=a[i.index],r=i.binding,h=i.part;if(s&&h.source&&C.length>h.source.length&&r.kind=="property"&&!r.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[r.target]){let d=t[C];C=q6(h.source,r.target,C),l._setPendingPropertyOrPath(C,d,!1,!0)&&o._enqueueClient(l)}else{let d=i.evaluator._evaluateBinding(o,h,C,t,e,s);d!==A5&&lv(o,l,r,h,d)}}function lv(o,C,t,e,i){if(i=rv(C,i,t,e),j6&&(i=j6(i,t.target,t.kind,C)),t.kind=="attribute")o._valueToNodeAttribute(C,i,t.target);else{let s=t.target;C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[s]?(!C[O.READ_ONLY]||!C[O.READ_ONLY][s])&&C._setPendingProperty(s,i)&&o._enqueueClient(C):o._setUnmanagedPropertyToNode(C,s,i)}}function rv(o,C,t,e){if(t.isCompound){let i=o.__dataCompoundStorage[t.target];i[e.compoundIndex]=C,C=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(C=C??""),C}function hv(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function dv(o,C){let{nodeList:t,nodeInfoList:e}=C;if(e.length)for(let i=0;i<e.length;i++){let s=e[i],a=t[i],l=s.bindings;if(l)for(let r=0;r<l.length;r++){let h=l[r];cv(a,h),pv(a,o,h)}a.__dataHost=o}}function cv(o,C){if(C.isCompound){let t=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),e=C.parts,i=new Array(e.length);for(let a=0;a<e.length;a++)i[a]=e[a].literal;let s=C.target;t[s]=i,C.literal&&C.kind=="property"&&(s==="className"&&(o=B2(o)),o[s]=C.literal)}}function pv(o,C,t){if(t.listenerEvent){let e=t.parts[0];o.addEventListener(t.listenerEvent,function(i){Qp(i,C,t.target,e.source,e.negate)})}}function QC(o,C,t,e,i,s){s=C.static||s&&(typeof s!="object"||s[C.methodName]);let a={methodName:C.methodName,args:C.args,methodInfo:i,dynamicFn:s};for(let l=0,r;l<C.args.length&&(r=C.args[l]);l++)r.literal||o._addPropertyEffect(r.rootProperty,t,{fn:e,info:a,trigger:r});return s&&o._addPropertyEffect(C.methodName,t,{fn:e,info:a}),a}function U4(o,C,t,e,i){let s=o._methodHost||o,a=s[i.methodName];if(a){let l=o._marshalArgs(i.args,C,t);return l===A5?A5:a.apply(s,l)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const vv=[],Ct="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Lv="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",gv="(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")",tt="(?:("+Ct+"|"+Lv+"|"+gv+")\\s*)",uv="(?:\\(\\s*(?:"+("(?:"+tt+"(?:,\\s*"+tt+")*)")+"?)\\)\\s*)",Mv="("+Ct+"\\s*"+uv+"?)",fv="(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+Mv+"(?:]]|}})",et=new RegExp(fv,"g");function it(o){let C="";for(let t=0;t<o.length;t++){let e=o[t].literal;C+=e||""}return C}function q4(o){let C=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(C){let e={methodName:C[1],static:!0,args:vv};if(C[2].trim()){let i=C[2].replace(/\\,/g,",").split(",");return wv(i,e)}else return e}return null}function wv(o,C){return C.args=o.map(function(t){let e=ot(t);return e.literal||(C.static=!1),e},this),C}function ot(o){let C=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:C,value:"",literal:!1},e=C[0];switch(e==="-"&&(e=C[1]),e>="0"&&e<="9"&&(e="#"),e){case"'":case'"':t.value=C.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(C),t.literal=!0;break}return t.literal||(t.rootProperty=E2(C),t.structured=F4(C),t.structured&&(t.wildcard=C.slice(-2)==".*",t.wildcard&&(t.name=C.slice(0,-2)))),t}function st(o,C,t){let e=u1(o,t);return e===void 0&&(e=C[t]),e}function at(o,C,t,e){const i={indexSplices:e};I4&&!o._overrideLegacyUndefined&&(C.splices=i),o.notifyPath(t+".splices",i),o.notifyPath(t+".length",C.length),I4&&!o._overrideLegacyUndefined&&(i.indexSplices=[])}function B5(o,C,t,e,i,s){at(o,C,t,[{index:e,addedCount:i,removed:s,object:C,type:"splice"}])}function mv(o){return o[0].toUpperCase()+o.substring(1)}const Hv=t1(o=>{const C=Wp(Pp(o));class t extends C{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return O}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(E5.length){let i=E5[E5.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[O.READ_ONLY];for(let a in i)(!s||!s[a])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=i[a])}_addPropertyEffect(i,s,a){this._createPropertyAccessor(i,s==O.READ_ONLY);let l=N4(this,s,!0)[i];l||(l=this[s][i]=[]),l.push(a)}_removePropertyEffect(i,s,a){let l=N4(this,s,!0)[i],r=l.indexOf(a);r>=0&&l.splice(r,1)}_hasPropertyEffect(i,s){let a=this[s];return!!(a&&a[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,O.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,O.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,O.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,O.COMPUTE)}_setPendingPropertyOrPath(i,s,a,l){if(l||E2(Array.isArray(i)?i[0]:i)!==i){if(!l){let r=u1(this,i);if(i=OC(this,i,s),!i||!super._shouldPropertyChange(i,s,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,a))return sv(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,a);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,a){(a!==i[s]||typeof a=="object")&&(s==="className"&&(i=B2(i)),i[s]=a)}_setPendingProperty(i,s,a){let l=this.__dataHasPaths&&F4(i),r=l?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,r[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),l?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(l||this[O.NOTIFY]&&this[O.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=a),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let a=i[s];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let a in i)(s||!this[O.READ_ONLY]||!this[O.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,i[a],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,a){let l=this.__dataHasPaths;this.__dataHasPaths=!1;let r;tv(this,s,a,l),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,l),this._flushClients(),S5(this,this[O.REFLECT],s,a,l),S5(this,this[O.OBSERVE],s,a,l),r&&Kp(this,r,s,a,l),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,a){this[O.PROPAGATE]&&S5(this,this[O.PROPAGATE],i,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,a)}_runEffectsForTemplate(i,s,a,l){const r=(h,d)=>{S5(this,i.propertyEffects,h,a,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,a,d)};i.runEffects?i.runEffects(r,s,l):r(s,l)}linkPaths(i,s){i=k5(i),s=k5(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=k5(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let a={path:""},l=u1(this,i,a);at(this,l,a.path,s)}get(i,s){return u1(s||this,i)}set(i,s,a){a?OC(a,i,s):(!this[O.READ_ONLY]||!this[O.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let a={path:""},l=u1(this,i,a),r=l.length,h=l.push(...s);return s.length&&B5(this,l,a.path,r,s.length,[]),h}pop(i){let s={path:""},a=u1(this,i,s),l=!!a.length,r=a.pop();return l&&B5(this,a,s.path,a.length,0,[r]),r}splice(i,s,a,...l){let r={path:""},h=u1(this,i,r);s<0?s=h.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=h.splice(s):d=h.splice(s,a,...l),(l.length||d.length)&&B5(this,h,r.path,s,l.length,d),d}shift(i){let s={path:""},a=u1(this,i,s),l=!!a.length,r=a.shift();return l&&B5(this,a,s.path,0,0,[r]),r}unshift(i,...s){let a={path:""},l=u1(this,i,a),r=l.unshift(...s);return s.length&&B5(this,l,a.path,0,s.length,[]),r}notifyPath(i,s){let a;if(arguments.length==1){let l={path:""};s=u1(this,i,l),a=l.path}else Array.isArray(i)?a=k5(i):a=i;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,O.READ_ONLY),s&&(this["_set"+mv(i)]=function(a){this._setProperty(i,a)})}_createPropertyObserver(i,s,a){let l={property:i,method:s,dynamicFn:!!a};this._addPropertyEffect(i,O.OBSERVE,{fn:GC,info:l,trigger:{name:i}}),a&&this._addPropertyEffect(s,O.OBSERVE,{fn:GC,info:l,trigger:{name:s}})}_createMethodObserver(i,s){let a=q4(i);if(!a)throw new Error("Malformed observer expression '"+i+"'");QC(this,a,O.OBSERVE,U4,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,O.NOTIFY,{fn:Jp,info:{eventName:Y6(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,O.REFLECT,{fn:Cv,info:{attrName:s}})}_createComputedProperty(i,s,a){let l=q4(s);if(!l)throw new Error("Malformed computed expression '"+s+"'");const r=QC(this,l,O.COMPUTE,JC,i,a);N4(this,YC)[i]=r}_marshalArgs(i,s,a){const l=this.__data,r=[];for(let h=0,d=i.length;h<d;h++){let{name:c,structured:p,wildcard:L,value:g,literal:v}=i[h];if(!v)if(L){const u=U6(c,s),M=st(l,a,u?s:c);g={path:u?s:c,value:M,base:u?u1(l,c):M}}else g=p?st(l,a,c):l[c];if(I4&&!this._overrideLegacyUndefined&&g===void 0&&i.length>1)return A5;r[h]=g}return r}static addPropertyEffect(i,s,a){this.prototype._addPropertyEffect(i,s,a)}static createPropertyObserver(i,s,a){this.prototype._createPropertyObserver(i,s,a)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,a){this.prototype._createComputedProperty(i,s,a)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let a=this.constructor._parseTemplate(i),l=this.__preBoundTemplateInfo==a;if(!l)for(let r in a.propertyEffects)this._createPropertyAccessor(r);if(s)if(a=Object.create(a),a.wasPreBound=l,!this.__templateInfo)this.__templateInfo=a;else{const r=i._parentTemplateInfo||this.__templateInfo,h=r.lastChild;a.parent=r,r.lastChild=a,a.previousSibling=h,h?h.nextSibling=a:r.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(i,s,a){let l=i.hostProps=i.hostProps||{};l[s]=!0;let r=i.propertyEffects=i.propertyEffects||{};(r[s]=r[s]||[]).push(a)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),E5.push(this);let a=super._stampTemplate(i,s);if(E5.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let l=s.childNodes=[];for(let r=a.firstChild;r;r=r.nextSibling)l.push(r)}return a.templateInfo=s,dv(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:a,nextSibling:l,parent:r}=s;a?a.nextSibling=l:r&&(r.firstChild=l),l?l.previousSibling=a:r&&(r.lastChild=a),s.nextSibling=s.previousSibling=null;let h=s.childNodes;for(let d=0;d<h.length;d++){let c=h[d];B2(B2(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,s,a){let l=C._parseTemplateNode.call(this,i,s,a);if(i.nodeType===Node.TEXT_NODE){let r=this._parseBindings(i.textContent,s);r&&(i.textContent=it(r)||" ",j4(this,s,a,"text","textContent",r),l=!0)}return l}static _parseTemplateNodeAttribute(i,s,a,l,r){let h=this._parseBindings(r,s);if(h){let d=l,c="property";Yp.test(l)?c="attribute":l[l.length-1]=="$"&&(l=l.slice(0,-1),c="attribute");let p=it(h);return p&&c=="attribute"&&(l=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(l)),i.setAttribute(l,p)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(l,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(l=FC(l)),j4(this,s,a,c,l,h,p),!0}else return C._parseTemplateNodeAttribute.call(this,i,s,a,l,r)}static _parseTemplateNestedTemplate(i,s,a){let l=C._parseTemplateNestedTemplate.call(this,i,s,a);const r=i.parentNode,h=a.templateInfo,d=r.localName==="dom-if",c=r.localName==="dom-repeat";zC&&(d||c)&&(r.removeChild(i),a=a.parentInfo,a.templateInfo=h,a.noted=!0,l=!1);let p=h.hostProps;if(Mp&&d)p&&(s.hostProps=Object.assign(s.hostProps||{},p),zC||(a.parentInfo.noted=!0));else{let L="{";for(let g in p){let v=[{mode:L,source:g,dependencies:[g],hostProp:!0}];j4(this,s,a,"property","_host_"+g,v)}}return l}static _parseBindings(i,s){let a=[],l=0,r;for(;(r=et.exec(i))!==null;){r.index>l&&a.push({literal:i.slice(l,r.index)});let h=r[1][0],d=!!r[2],c=r[3].trim(),p=!1,L="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(L=c.substring(g+2),c=c.substring(0,g),p=!0);let v=q4(c),u=[];if(v){let{args:M,methodName:f}=v;for(let Z=0;Z<M.length;Z++){let _=M[Z];_.literal||u.push(_)}let w=s.dynamicFns;(w&&w[f]||v.static)&&(u.push(f),v.dynamicFn=!0)}else u.push(c);a.push({source:c,mode:h,negate:d,customEvent:p,signature:v,dependencies:u,event:L}),l=et.lastIndex}if(l&&l<i.length){let h=i.substring(l);h&&a.push({literal:h})}return a.length?a:null}static _evaluateBinding(i,s,a,l,r,h){let d;return s.signature?d=U4(i,a,l,r,s.signature):a!=s.source?d=u1(i,s.source):h&&F4(a)?d=u1(i,a):d=i.__data[a],s.negate&&(d=!d),d}}return t}),E5=[];/**
|
|
7528
|
+
*/let $5=0;const A5=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},YC="__computeInfo",Yp=/[A-Z]/;function N4(o,C,t){let e=o[C];if(!e)e=o[C]={};else if(!o.hasOwnProperty(C)&&(e=o[C]=Object.create(o[C]),t))for(let i in e){let s=e[i],a=e[i]=Array(s.length);for(let l=0;l<s.length;l++)a[l]=s[l]}return e}function S5(o,C,t,e,i,s){if(C){let a=!1;const l=$5++;for(let r in t){let h=i?E2(r):r,d=C[h];if(d)for(let c=0,p=d.length,L;c<p&&(L=d[c]);c++)(!L.info||L.info.lastRun!==l)&&(!i||R4(r,L.trigger))&&(L.info&&(L.info.lastRun=l),L.fn(o,r,t,e,L.info,i,s),a=!0)}return a}return!1}function Gp(o,C,t,e,i,s,a,l){let r=!1,h=a?E2(e):e,d=C[h];if(d)for(let c=0,p=d.length,L;c<p&&(L=d[c]);c++)(!L.info||L.info.lastRun!==t)&&(!a||R4(e,L.trigger))&&(L.info&&(L.info.lastRun=t),L.fn(o,e,i,s,L.info,a,l),r=!0);return r}function R4(o,C){if(C){let t=C.name;return t==o||!!(C.structured&&bp(t,o))||!!(C.wildcard&&U6(t,o))}else return!0}function GC(o,C,t,e,i){let s=typeof i.method=="string"?o[i.method]:i.method,a=i.property;s?s.call(o,o.__data[a],e[a]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Kp(o,C,t,e,i){let s=o[O.NOTIFY],a,l=$5++;for(let h in C)C[h]&&(s&&Gp(o,s,l,h,t,e,i)||i&&Xp(o,h,t))&&(a=!0);let r;a&&(r=o.__dataHost)&&r._invalidateProperties&&r._invalidateProperties()}function Xp(o,C,t){let e=E2(C);if(e!==C){let i=Y6(e)+"-changed";return KC(o,i,t[C],C),!0}return!1}function KC(o,C,t,e){let i={value:t,queueProperty:!0};e&&(i.path=e),B2(o).dispatchEvent(new CustomEvent(C,{detail:i}))}function Jp(o,C,t,e,i,s){let l=(s?E2(C):C)!=C?C:null,r=l?u1(o,l):o.__data[C];l&&r===void 0&&(r=t[C]),KC(o,i.eventName,r,l)}function Qp(o,C,t,e,i){let s,a=o.detail,l=a&&a.path;l?(e=q6(t,e,l),s=a&&a.value):s=o.currentTarget[t],s=i?!s:s,(!C[O.READ_ONLY]||!C[O.READ_ONLY][e])&&C._setPendingPropertyOrPath(e,s,!0,!!l)&&(!a||!a.queueProperty)&&C._invalidateProperties()}function Cv(o,C,t,e,i){let s=o.__data[C];j6&&(s=j6(s,i.attrName,"attribute",o)),o._propertyToAttribute(C,i.attrName,s)}function tv(o,C,t,e){let i=o[O.COMPUTE];if(i)if(up){$5++;const s=iv(o),a=[];for(let r in C)XC(r,i,a,s,e);let l;for(;l=a.shift();)JC(o,"",C,t,l)&&XC(l.methodInfo,i,a,s,e);Object.assign(t,o.__dataOld),Object.assign(C,o.__dataPending),o.__dataPending=null}else{let s=C;for(;S5(o,i,s,t,e);)Object.assign(t,o.__dataOld),Object.assign(C,o.__dataPending),s=o.__dataPending,o.__dataPending=null}}const ev=(o,C,t)=>{let e=0,i=C.length-1,s=-1;for(;e<=i;){const a=e+i>>1,l=t.get(C[a].methodInfo)-t.get(o.methodInfo);if(l<0)e=a+1;else if(l>0)i=a-1;else{s=a;break}}s<0&&(s=i+1),C.splice(s,0,o)},XC=(o,C,t,e,i)=>{const s=i?E2(o):o,a=C[s];if(a)for(let l=0;l<a.length;l++){const r=a[l];r.info.lastRun!==$5&&(!i||R4(o,r.trigger))&&(r.info.lastRun=$5,ev(r.info,t,e))}};function iv(o){let C=o.constructor.__orderedComputedDeps;if(!C){C=new Map;const t=o[O.COMPUTE];let{counts:e,ready:i,total:s}=ov(o),a;for(;a=i.shift();){C.set(a,C.size);const l=t[a];l&&l.forEach(r=>{const h=r.info.methodInfo;--s,--e[h]===0&&i.push(h)})}s!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=C}return C}function ov(o){const C=o[YC],t={},e=o[O.COMPUTE],i=[];let s=0;for(let a in C){const l=C[a];s+=t[a]=l.args.filter(r=>!r.literal).length+(l.dynamicFn?1:0)}for(let a in e)C[a]||i.push(a);return{counts:t,ready:i,total:s}}function JC(o,C,t,e,i){let s=U4(o,C,t,e,i);if(s===A5)return!1;let a=i.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[a]?o._setPendingProperty(a,s,!0):(o[a]=s,!1)}function sv(o,C,t){let e=o.__dataLinkedPaths;if(e){let i;for(let s in e){let a=e[s];U6(s,C)?(i=q6(s,a,C),o._setPendingPropertyOrPath(i,t,!0,!0)):U6(a,C)&&(i=q6(a,s,C),o._setPendingPropertyOrPath(i,t,!0,!0))}}}function j4(o,C,t,e,i,s,a){t.bindings=t.bindings||[];let l={kind:e,target:i,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(l),hv(l)){let{event:h,negate:d}=l.parts[0];l.listenerEvent=h||Y6(i)+"-changed",l.listenerNegate=d}let r=C.nodeInfoList.length;for(let h=0;h<l.parts.length;h++){let d=l.parts[h];d.compoundIndex=h,av(o,C,l,d,r)}}function av(o,C,t,e,i){if(!e.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=e.dependencies,a={index:i,binding:t,part:e,evaluator:o};for(let l=0;l<s.length;l++){let r=s[l];typeof r=="string"&&(r=ot(r),r.wildcard=!0),o._addTemplatePropertyEffect(C,r.rootProperty,{fn:nv,info:a,trigger:r})}}}function nv(o,C,t,e,i,s,a){let l=a[i.index],r=i.binding,h=i.part;if(s&&h.source&&C.length>h.source.length&&r.kind=="property"&&!r.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[r.target]){let d=t[C];C=q6(h.source,r.target,C),l._setPendingPropertyOrPath(C,d,!1,!0)&&o._enqueueClient(l)}else{let d=i.evaluator._evaluateBinding(o,h,C,t,e,s);d!==A5&&lv(o,l,r,h,d)}}function lv(o,C,t,e,i){if(i=rv(C,i,t,e),j6&&(i=j6(i,t.target,t.kind,C)),t.kind=="attribute")o._valueToNodeAttribute(C,i,t.target);else{let s=t.target;C.__isPropertyEffectsClient&&C.__dataHasAccessor&&C.__dataHasAccessor[s]?(!C[O.READ_ONLY]||!C[O.READ_ONLY][s])&&C._setPendingProperty(s,i)&&o._enqueueClient(C):o._setUnmanagedPropertyToNode(C,s,i)}}function rv(o,C,t,e){if(t.isCompound){let i=o.__dataCompoundStorage[t.target];i[e.compoundIndex]=C,C=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(C=C??""),C}function hv(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function dv(o,C){let{nodeList:t,nodeInfoList:e}=C;if(e.length)for(let i=0;i<e.length;i++){let s=e[i],a=t[i],l=s.bindings;if(l)for(let r=0;r<l.length;r++){let h=l[r];cv(a,h),pv(a,o,h)}a.__dataHost=o}}function cv(o,C){if(C.isCompound){let t=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),e=C.parts,i=new Array(e.length);for(let a=0;a<e.length;a++)i[a]=e[a].literal;let s=C.target;t[s]=i,C.literal&&C.kind=="property"&&(s==="className"&&(o=B2(o)),o[s]=C.literal)}}function pv(o,C,t){if(t.listenerEvent){let e=t.parts[0];o.addEventListener(t.listenerEvent,function(i){Qp(i,C,t.target,e.source,e.negate)})}}function QC(o,C,t,e,i,s){s=C.static||s&&(typeof s!="object"||s[C.methodName]);let a={methodName:C.methodName,args:C.args,methodInfo:i,dynamicFn:s};for(let l=0,r;l<C.args.length&&(r=C.args[l]);l++)r.literal||o._addPropertyEffect(r.rootProperty,t,{fn:e,info:a,trigger:r});return s&&o._addPropertyEffect(C.methodName,t,{fn:e,info:a}),a}function U4(o,C,t,e,i){let s=o._methodHost||o,a=s[i.methodName];if(a){let l=o._marshalArgs(i.args,C,t);return l===A5?A5:a.apply(s,l)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const vv=[],Ct="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Lv="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",gv="(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")",tt="(?:("+Ct+"|"+Lv+"|"+gv+")\\s*)",uv="(?:\\(\\s*(?:"+("(?:"+tt+"(?:,\\s*"+tt+")*)")+"?)\\)\\s*)",Mv="("+Ct+"\\s*"+uv+"?)",fv="(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+Mv+"(?:]]|}})",et=new RegExp(fv,"g");function it(o){let C="";for(let t=0;t<o.length;t++){let e=o[t].literal;C+=e||""}return C}function q4(o){let C=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(C){let e={methodName:C[1],static:!0,args:vv};if(C[2].trim()){let i=C[2].replace(/\\,/g,",").split(",");return wv(i,e)}else return e}return null}function wv(o,C){return C.args=o.map(function(t){let e=ot(t);return e.literal||(C.static=!1),e},this),C}function ot(o){let C=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:C,value:"",literal:!1},e=C[0];switch(e==="-"&&(e=C[1]),e>="0"&&e<="9"&&(e="#"),e){case"'":case'"':t.value=C.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(C),t.literal=!0;break}return t.literal||(t.rootProperty=E2(C),t.structured=F4(C),t.structured&&(t.wildcard=C.slice(-2)==".*",t.wildcard&&(t.name=C.slice(0,-2)))),t}function st(o,C,t){let e=u1(o,t);return e===void 0&&(e=C[t]),e}function at(o,C,t,e){const i={indexSplices:e};I4&&!o._overrideLegacyUndefined&&(C.splices=i),o.notifyPath(t+".splices",i),o.notifyPath(t+".length",C.length),I4&&!o._overrideLegacyUndefined&&(i.indexSplices=[])}function B5(o,C,t,e,i,s){at(o,C,t,[{index:e,addedCount:i,removed:s,object:C,type:"splice"}])}function mv(o){return o[0].toUpperCase()+o.substring(1)}const Hv=t1(o=>{const C=Wp(Pp(o));class t extends C{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return O}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(E5.length){let i=E5[E5.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let s=this[O.READ_ONLY];for(let a in i)(!s||!s[a])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=i[a])}_addPropertyEffect(i,s,a){this._createPropertyAccessor(i,s==O.READ_ONLY);let l=N4(this,s,!0)[i];l||(l=this[s][i]=[]),l.push(a)}_removePropertyEffect(i,s,a){let l=N4(this,s,!0)[i],r=l.indexOf(a);r>=0&&l.splice(r,1)}_hasPropertyEffect(i,s){let a=this[s];return!!(a&&a[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,O.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,O.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,O.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,O.COMPUTE)}_setPendingPropertyOrPath(i,s,a,l){if(l||E2(Array.isArray(i)?i[0]:i)!==i){if(!l){let r=u1(this,i);if(i=OC(this,i,s),!i||!super._shouldPropertyChange(i,s,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,a))return sv(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,a);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,a){(a!==i[s]||typeof a=="object")&&(s==="className"&&(i=B2(i)),i[s]=a)}_setPendingProperty(i,s,a){let l=this.__dataHasPaths&&F4(i),r=l?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,r[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),l?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(l||this[O.NOTIFY]&&this[O.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=a),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let s=0;s<i.length;s++){let a=i[s];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let a in i)(s||!this[O.READ_ONLY]||!this[O.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,i[a],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,a){let l=this.__dataHasPaths;this.__dataHasPaths=!1;let r;tv(this,s,a,l),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,l),this._flushClients(),S5(this,this[O.REFLECT],s,a,l),S5(this,this[O.OBSERVE],s,a,l),r&&Kp(this,r,s,a,l),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,a){this[O.PROPAGATE]&&S5(this,this[O.PROPAGATE],i,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,a)}_runEffectsForTemplate(i,s,a,l){const r=(h,d)=>{S5(this,i.propertyEffects,h,a,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,h,a,d)};i.runEffects?i.runEffects(r,s,l):r(s,l)}linkPaths(i,s){i=k5(i),s=k5(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=k5(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let a={path:""},l=u1(this,i,a);at(this,l,a.path,s)}get(i,s){return u1(s||this,i)}set(i,s,a){a?OC(a,i,s):(!this[O.READ_ONLY]||!this[O.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let a={path:""},l=u1(this,i,a),r=l.length,h=l.push(...s);return s.length&&B5(this,l,a.path,r,s.length,[]),h}pop(i){let s={path:""},a=u1(this,i,s),l=!!a.length,r=a.pop();return l&&B5(this,a,s.path,a.length,0,[r]),r}splice(i,s,a,...l){let r={path:""},h=u1(this,i,r);s<0?s=h.length-Math.floor(-s):s&&(s=Math.floor(s));let d;return arguments.length===2?d=h.splice(s):d=h.splice(s,a,...l),(l.length||d.length)&&B5(this,h,r.path,s,l.length,d),d}shift(i){let s={path:""},a=u1(this,i,s),l=!!a.length,r=a.shift();return l&&B5(this,a,s.path,0,0,[r]),r}unshift(i,...s){let a={path:""},l=u1(this,i,a),r=l.unshift(...s);return s.length&&B5(this,l,a.path,0,s.length,[]),r}notifyPath(i,s){let a;if(arguments.length==1){let l={path:""};s=u1(this,i,l),a=l.path}else Array.isArray(i)?a=k5(i):a=i;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,O.READ_ONLY),s&&(this["_set"+mv(i)]=function(a){this._setProperty(i,a)})}_createPropertyObserver(i,s,a){let l={property:i,method:s,dynamicFn:!!a};this._addPropertyEffect(i,O.OBSERVE,{fn:GC,info:l,trigger:{name:i}}),a&&this._addPropertyEffect(s,O.OBSERVE,{fn:GC,info:l,trigger:{name:s}})}_createMethodObserver(i,s){let a=q4(i);if(!a)throw new Error("Malformed observer expression '"+i+"'");QC(this,a,O.OBSERVE,U4,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,O.NOTIFY,{fn:Jp,info:{eventName:Y6(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,O.REFLECT,{fn:Cv,info:{attrName:s}})}_createComputedProperty(i,s,a){let l=q4(s);if(!l)throw new Error("Malformed computed expression '"+s+"'");const r=QC(this,l,O.COMPUTE,JC,i,a);N4(this,YC)[i]=r}_marshalArgs(i,s,a){const l=this.__data,r=[];for(let h=0,d=i.length;h<d;h++){let{name:c,structured:p,wildcard:L,value:g,literal:v}=i[h];if(!v)if(L){const u=U6(c,s),M=st(l,a,u?s:c);g={path:u?s:c,value:M,base:u?u1(l,c):M}}else g=p?st(l,a,c):l[c];if(I4&&!this._overrideLegacyUndefined&&g===void 0&&i.length>1)return A5;r[h]=g}return r}static addPropertyEffect(i,s,a){this.prototype._addPropertyEffect(i,s,a)}static createPropertyObserver(i,s,a){this.prototype._createPropertyObserver(i,s,a)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,a){this.prototype._createComputedProperty(i,s,a)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let a=this.constructor._parseTemplate(i),l=this.__preBoundTemplateInfo==a;if(!l)for(let r in a.propertyEffects)this._createPropertyAccessor(r);if(s)if(a=Object.create(a),a.wasPreBound=l,!this.__templateInfo)this.__templateInfo=a;else{const r=i._parentTemplateInfo||this.__templateInfo,h=r.lastChild;a.parent=r,r.lastChild=a,a.previousSibling=h,h?h.nextSibling=a:r.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(i,s,a){let l=i.hostProps=i.hostProps||{};l[s]=!0;let r=i.propertyEffects=i.propertyEffects||{};(r[s]=r[s]||[]).push(a)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),E5.push(this);let a=super._stampTemplate(i,s);if(E5.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let l=s.childNodes=[];for(let r=a.firstChild;r;r=r.nextSibling)l.push(r)}return a.templateInfo=s,dv(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:a,nextSibling:l,parent:r}=s;a?a.nextSibling=l:r&&(r.firstChild=l),l?l.previousSibling=a:r&&(r.lastChild=a),s.nextSibling=s.previousSibling=null;let h=s.childNodes;for(let d=0;d<h.length;d++){let c=h[d];B2(B2(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,s,a){let l=C._parseTemplateNode.call(this,i,s,a);if(i.nodeType===Node.TEXT_NODE){let r=this._parseBindings(i.textContent,s);r&&(i.textContent=it(r)||" ",j4(this,s,a,"text","textContent",r),l=!0)}return l}static _parseTemplateNodeAttribute(i,s,a,l,r){let h=this._parseBindings(r,s);if(h){let d=l,c="property";Yp.test(l)?c="attribute":l[l.length-1]=="$"&&(l=l.slice(0,-1),c="attribute");let p=it(h);return p&&c=="attribute"&&(l=="class"&&i.hasAttribute("class")&&(p+=" "+i.getAttribute(l)),i.setAttribute(l,p)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(l,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(l=FC(l)),j4(this,s,a,c,l,h,p),!0}else return C._parseTemplateNodeAttribute.call(this,i,s,a,l,r)}static _parseTemplateNestedTemplate(i,s,a){let l=C._parseTemplateNestedTemplate.call(this,i,s,a);const r=i.parentNode,h=a.templateInfo,d=r.localName==="dom-if",c=r.localName==="dom-repeat";zC&&(d||c)&&(r.removeChild(i),a=a.parentInfo,a.templateInfo=h,a.noted=!0,l=!1);let p=h.hostProps;if(Mp&&d)p&&(s.hostProps=Object.assign(s.hostProps||{},p),zC||(a.parentInfo.noted=!0));else{let L="{";for(let g in p){let v=[{mode:L,source:g,dependencies:[g],hostProp:!0}];j4(this,s,a,"property","_host_"+g,v)}}return l}static _parseBindings(i,s){let a=[],l=0,r;for(;(r=et.exec(i))!==null;){r.index>l&&a.push({literal:i.slice(l,r.index)});let h=r[1][0],d=!!r[2],c=r[3].trim(),p=!1,L="",g=-1;h=="{"&&(g=c.indexOf("::"))>0&&(L=c.substring(g+2),c=c.substring(0,g),p=!0);let v=q4(c),u=[];if(v){let{args:M,methodName:f}=v;for(let V=0;V<M.length;V++){let _=M[V];_.literal||u.push(_)}let w=s.dynamicFns;(w&&w[f]||v.static)&&(u.push(f),v.dynamicFn=!0)}else u.push(c);a.push({source:c,mode:h,negate:d,customEvent:p,signature:v,dependencies:u,event:L}),l=et.lastIndex}if(l&&l<i.length){let h=i.substring(l);h&&a.push({literal:h})}return a.length?a:null}static _evaluateBinding(i,s,a,l,r,h){let d;return s.signature?d=U4(i,a,l,r,s.signature):a!=s.source?d=u1(i,s.source):h&&F4(a)?d=u1(i,a):d=i.__data[a],s.negate&&(d=!d),d}}return t}),E5=[];/**
|
|
7529
7529
|
@license
|
|
7530
7530
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
7531
7531
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -11179,7 +11179,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11179
11179
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
11180
11180
|
* Club GSAP members, the agreement issued with that membership.
|
|
11181
11181
|
* @author: Jack Doyle, jack@greensock.com
|
|
11182
|
-
*/var _1={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},N3={duration:.5,overwrite:!1,delay:0},D7,d1,j,$1=1e8,N=1/$1,N7=Math.PI*2,ku=N7/4,$u=0,si=Math.sqrt,Au=Math.cos,Su=Math.sin,a1=function(C){return typeof C=="string"},W=function(C){return typeof C=="function"},G1=function(C){return typeof C=="number"},R7=function(C){return typeof C>"u"},I1=function(C){return typeof C=="object"},M1=function(C){return C!==!1},j7=function(){return typeof window<"u"},Z8=function(C){return W(C)||a1(C)},ai=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},c1=Array.isArray,U7=/(?:-?\.?\d|\.)+/gi,ni=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,R3=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,q7=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,li=/[+-]=-?[.\d]+/,ri=/[^,'"\[\]\s]+/gi,Bu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,U,O1,W7,Y7,x1={},_8={},hi,di=function(C){return(_8=X2(C,x1))&&m1},G7=function(C,t){return console.warn("Invalid property",C,"set to",t,"Missing plugin? gsap.registerPlugin()")},Q5=function(C,t){return!t&&console.warn(C)},ci=function(C,t){return C&&(x1[C]=t)&&_8&&(_8[C]=t)||x1},C6=function(){return 0},Eu={suppressEvents:!0,isStart:!0,kill:!1},x8={suppressEvents:!0,kill:!1},Tu={suppressEvents:!0},K7={},p2=[],X7={},pi,b1={},J7={},vi=30,b8=[],Q7="",C9=function(C){var t=C[0],e,i;if(I1(t)||W(t)||(C=[C]),!(e=(t._gsap||{}).harness)){for(i=b8.length;i--&&!b8[i].targetTest(t););e=b8[i]}for(i=C.length;i--;)C[i]&&(C[i]._gsap||(C[i]._gsap=new Ri(C[i],e)))||C.splice(i,1);return C},K2=function(C){return C._gsap||C9(B1(C))[0]._gsap},Li=function(C,t,e){return(e=C[t])&&W(e)?C[t]():R7(e)&&C.getAttribute&&C.getAttribute(t)||e},f1=function(C,t){return(C=C.split(",")).forEach(t)||C},Y=function(C){return Math.round(C*1e5)/1e5||0},n1=function(C){return Math.round(C*1e7)/1e7||0},j3=function(C,t){var e=t.charAt(0),i=parseFloat(t.substr(2));return C=parseFloat(C),e==="+"?C+i:e==="-"?C-i:e==="*"?C*i:C/i},Pu=function(C,t){for(var e=t.length,i=0;C.indexOf(t[i])<0&&++i<e;);return i<e},y8=function(){var C=p2.length,t=p2.slice(0),e,i;for(X7={},p2.length=0,e=0;e<C;e++)i=t[e],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},gi=function(C,t,e,i){p2.length&&!d1&&y8(),C.render(t,e,d1&&t<0&&(C._initted||C._startAt)),p2.length&&!d1&&y8()},ui=function(C){var t=parseFloat(C);return(t||t===0)&&(C+"").match(ri).length<2?t:a1(C)?C.trim():C},Mi=function(C){return C},A1=function(C,t){for(var e in t)e in C||(C[e]=t[e]);return C},Iu=function(C){return function(t,e){for(var i in e)i in t||i==="duration"&&C||i==="ease"||(t[i]=e[i])}},X2=function(C,t){for(var e in t)C[e]=t[e];return C},fi=function o(C,t){for(var e in t)e!=="__proto__"&&e!=="constructor"&&e!=="prototype"&&(C[e]=I1(t[e])?o(C[e]||(C[e]={}),t[e]):t[e]);return C},z8=function(C,t){var e={},i;for(i in C)i in t||(e[i]=C[i]);return e},t6=function(C){var t=C.parent||U,e=C.keyframes?Iu(c1(C.keyframes)):A1;if(M1(C.inherit))for(;t;)e(C,t.vars.defaults),t=t.parent||t._dp;return C},Ou=function(C,t){for(var e=C.length,i=e===t.length;i&&e--&&C[e]===t[e];);return e<0},wi=function(C,t,e,i,s){var a=C[i],l;if(s)for(l=t[s];a&&a[s]>l;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=C[e],C[e]=t),t._next?t._next._prev=t:C[i]=t,t._prev=a,t.parent=t._dp=C,t},k8=function(C,t,e,i){e===void 0&&(e="_first"),i===void 0&&(i="_last");var s=t._prev,a=t._next;s?s._next=a:C[e]===t&&(C[e]=a),a?a._prev=s:C[i]===t&&(C[i]=s),t._next=t._prev=t.parent=null},v2=function(C,t){C.parent&&(!t||C.parent.autoRemoveChildren)&&C.parent.remove&&C.parent.remove(C),C._act=0},J2=function(C,t){if(C&&(!t||t._end>C._dur||t._start<0))for(var e=C;e;)e._dirty=1,e=e.parent;return C},Fu=function(C){for(var t=C.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return C},t9=function(C,t,e,i){return C._startAt&&(d1?C._startAt.revert(x8):C.vars.immediateRender&&!C.vars.autoRevert||C._startAt.render(t,!0,i))},Du=function o(C){return!C||C._ts&&o(C.parent)},mi=function(C){return C._repeat?U3(C._tTime,C=C.duration()+C._rDelay)*C:0},U3=function(C,t){var e=Math.floor(C/=t);return C&&e===C?e-1:e},$8=function(C,t){return(C-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},A8=function(C){return C._end=n1(C._start+(C._tDur/Math.abs(C._ts||C._rts||N)||0))},S8=function(C,t){var e=C._dp;return e&&e.smoothChildTiming&&C._ts&&(C._start=n1(e._time-(C._ts>0?t/C._ts:((C._dirty?C.totalDuration():C._tDur)-t)/-C._ts)),A8(C),e._dirty||J2(e,C)),C},Hi=function(C,t){var e;if((t._time||!t._dur&&t._initted||t._start<C._time&&(t._dur||!t.add))&&(e=$8(C.rawTime(),t),(!t._dur||i6(0,t.totalDuration(),e)-t._tTime>N)&&t.render(e,!0)),J2(C,t)._dp&&C._initted&&C._time>=C._dur&&C._ts){if(C._dur<C.duration())for(e=C;e._dp;)e.rawTime()>=0&&e.totalTime(e._tTime),e=e._dp;C._zTime=-N}},F1=function(C,t,e,i){return t.parent&&v2(t),t._start=n1((G1(e)?e:e||C!==U?S1(C,e,t):C._time)+t._delay),t._end=n1(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),wi(C,t,"_first","_last",C._sort?"_start":0),e9(t)||(C._recent=t),i||Hi(C,t),C._ts<0&&S8(C,C._tTime),C},Vi=function(C,t){return(x1.ScrollTrigger||G7("scrollTrigger",t))&&x1.ScrollTrigger.create(t,C)},Zi=function(C,t,e,i,s){if(d9(C,t,s),!C._initted)return 1;if(!e&&C._pt&&!d1&&(C._dur&&C.vars.lazy!==!1||!C._dur&&C.vars.lazy)&&pi!==z1.frame)return p2.push(C),C._lazy=[s,i],1},Nu=function o(C){var t=C.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||o(t))},e9=function(C){var t=C.data;return t==="isFromStart"||t==="isStart"},Ru=function(C,t,e,i){var s=C.ratio,a=t<0||!t&&(!C._start&&Nu(C)&&!(!C._initted&&e9(C))||(C._ts<0||C._dp._ts<0)&&!e9(C))?0:1,l=C._rDelay,r=0,h,d,c;if(l&&C._repeat&&(r=i6(0,C._tDur,t),d=U3(r,l),C._yoyo&&d&1&&(a=1-a),d!==U3(C._tTime,l)&&(s=1-a,C.vars.repeatRefresh&&C._initted&&C.invalidate())),a!==s||d1||i||C._zTime===N||!t&&C._zTime){if(!C._initted&&Zi(C,t,i,e,r))return;for(c=C._zTime,C._zTime=t||(e?N:0),e||(e=t&&!c),C.ratio=a,C._from&&(a=1-a),C._time=0,C._tTime=r,h=C._pt;h;)h.r(a,h.d),h=h._next;t<0&&t9(C,t,e,!0),C._onUpdate&&!e&&y1(C,"onUpdate"),r&&C._repeat&&!e&&C.parent&&y1(C,"onRepeat"),(t>=C._tDur||t<0)&&C.ratio===a&&(a&&v2(C,1),!e&&!d1&&(y1(C,a?"onComplete":"onReverseComplete",!0),C._prom&&C._prom()))}else C._zTime||(C._zTime=t)},ju=function(C,t,e){var i;if(e>t)for(i=C._first;i&&i._start<=e;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=C._last;i&&i._start>=e;){if(i.data==="isPause"&&i._start<t)return i;i=i._prev}},q3=function(C,t,e,i){var s=C._repeat,a=n1(t)||0,l=C._tTime/C._tDur;return l&&!i&&(C._time*=a/C._dur),C._dur=a,C._tDur=s?s<0?1e10:n1(a*(s+1)+C._rDelay*s):a,l>0&&!i&&S8(C,C._tTime=C._tDur*l),C.parent&&A8(C),e||J2(C.parent,C),C},_i=function(C){return C instanceof v1?J2(C):q3(C,C._dur)},Uu={_start:0,endTime:C6,totalDuration:C6},S1=function o(C,t,e){var i=C.labels,s=C._recent||Uu,a=C.duration()>=$1?s.endTime(!1):C._dur,l,r,h;return a1(t)&&(isNaN(t)||t in i)?(r=t.charAt(0),h=t.substr(-1)==="%",l=t.indexOf("="),r==="<"||r===">"?(l>=0&&(t=t.replace(/=/,"")),(r==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(h?(l<0?s:e).totalDuration()/100:1)):l<0?(t in i||(i[t]=a),i[t]):(r=parseFloat(t.charAt(l-1)+t.substr(l+1)),h&&e&&(r=r/100*(c1(e)?e[0]:e).totalDuration()),l>1?o(C,t.substr(0,l-1),e)+r:a+r)):t==null?a:+t},e6=function(C,t,e){var i=G1(t[1]),s=(i?2:1)+(C<2?0:1),a=t[s],l,r;if(i&&(a.duration=t[1]),a.parent=e,C){for(l=a,r=e;r&&!("immediateRender"in l);)l=r.vars.defaults||{},r=M1(r.vars.inherit)&&r.parent;a.immediateRender=M1(l.immediateRender),C<2?a.runBackwards=1:a.startAt=t[s-1]}return new Q(t[0],a,t[s+1])},L2=function(C,t){return C||C===0?t(C):t},i6=function(C,t,e){return e<C?C:e>t?t:e},p1=function(C,t){return!a1(C)||!(t=Bu.exec(C))?"":t[1]},qu=function(C,t,e){return L2(e,function(i){return i6(C,t,i)})},i9=[].slice,xi=function(C,t){return C&&I1(C)&&"length"in C&&(!t&&!C.length||C.length-1 in C&&I1(C[0]))&&!C.nodeType&&C!==O1},Wu=function(C,t,e){return e===void 0&&(e=[]),C.forEach(function(i){var s;return a1(i)&&!t||xi(i,1)?(s=e).push.apply(s,B1(i)):e.push(i)})||e},B1=function(C,t,e){return j&&!t&&j.selector?j.selector(C):a1(C)&&!e&&(W7||!Y3())?i9.call((t||Y7).querySelectorAll(C),0):c1(C)?Wu(C,e):xi(C)?i9.call(C,0):C?[C]:[]},o9=function(C){return C=B1(C)[0]||Q5("Invalid scope")||{},function(t){var e=C.current||C.nativeElement||C;return B1(t,e.querySelectorAll?e:e===C?Q5("Invalid scope")||Y7.createElement("div"):C)}},bi=function(C){return C.sort(function(){return .5-Math.random()})},yi=function(C){if(W(C))return C;var t=I1(C)?C:{each:C},e=Q2(t.ease),i=t.from||0,s=parseFloat(t.base)||0,a={},l=i>0&&i<1,r=isNaN(i)||l,h=t.axis,d=i,c=i;return a1(i)?d=c={center:.5,edges:.5,end:1}[i]||0:!l&&r&&(d=i[0],c=i[1]),function(p,L,g){var v=(g||t).length,u=a[v],M,f,w,Z,_,z,m,V,x;if(!u){if(x=t.grid==="auto"?0:(t.grid||[1,$1])[1],!x){for(m=-$1;m<(m=g[x++].getBoundingClientRect().left)&&x<v;);x<v&&x--}for(u=a[v]=[],M=r?Math.min(x,v)*d-.5:i%x,f=x===$1?0:r?v*c/x-.5:i/x|0,m=0,V=$1,z=0;z<v;z++)w=z%x-M,Z=f-(z/x|0),u[z]=_=h?Math.abs(h==="y"?Z:w):si(w*w+Z*Z),_>m&&(m=_),_<V&&(V=_);i==="random"&&bi(u),u.max=m-V,u.min=V,u.v=v=(parseFloat(t.amount)||parseFloat(t.each)*(x>v?v-1:h?h==="y"?v/x:x:Math.max(x,v/x))||0)*(i==="edges"?-1:1),u.b=v<0?s-v:s,u.u=p1(t.amount||t.each)||0,e=e&&v<0?Fi(e):e}return v=(u[p]-u.min)/u.max||0,n1(u.b+(e?e(v):v)*u.v)+u.u}},s9=function(C){var t=Math.pow(10,((C+"").split(".")[1]||"").length);return function(e){var i=n1(Math.round(parseFloat(e)/C)*C*t);return(i-i%1)/t+(G1(e)?0:p1(e))}},zi=function(C,t){var e=c1(C),i,s;return!e&&I1(C)&&(i=e=C.radius||$1,C.values?(C=B1(C.values),(s=!G1(C[0]))&&(i*=i)):C=s9(C.increment)),L2(t,e?W(C)?function(a){return s=C(a),Math.abs(s-a)<=i?s:a}:function(a){for(var l=parseFloat(s?a.x:a),r=parseFloat(s?a.y:0),h=$1,d=0,c=C.length,p,L;c--;)s?(p=C[c].x-l,L=C[c].y-r,p=p*p+L*L):p=Math.abs(C[c]-l),p<h&&(h=p,d=c);return d=!i||h<=i?C[d]:a,s||d===a||G1(a)?d:d+p1(a)}:s9(C))},ki=function(C,t,e,i){return L2(c1(C)?!t:e===!0?!!(e=0):!i,function(){return c1(C)?C[~~(Math.random()*C.length)]:(e=e||1e-5)&&(i=e<1?Math.pow(10,(e+"").length-2):1)&&Math.floor(Math.round((C-e/2+Math.random()*(t-C+e*.99))/e)*e*i)/i})},Yu=function(){for(var C=arguments.length,t=new Array(C),e=0;e<C;e++)t[e]=arguments[e];return function(i){return t.reduce(function(s,a){return a(s)},i)}},Gu=function(C,t){return function(e){return C(parseFloat(e))+(t||p1(e))}},Ku=function(C,t,e){return Ai(C,t,0,1,e)},$i=function(C,t,e){return L2(e,function(i){return C[~~t(i)]})},Xu=function o(C,t,e){var i=t-C;return c1(C)?$i(C,o(0,C.length),t):L2(e,function(s){return(i+(s-C)%i)%i+C})},Ju=function o(C,t,e){var i=t-C,s=i*2;return c1(C)?$i(C,o(0,C.length-1),t):L2(e,function(a){return a=(s+(a-C)%s)%s||0,C+(a>i?s-a:a)})},o6=function(C){for(var t=0,e="",i,s,a,l;~(i=C.indexOf("random(",t));)a=C.indexOf(")",i),l=C.charAt(i+7)==="[",s=C.substr(i+7,a-i-7).match(l?ri:U7),e+=C.substr(t,i-t)+ki(l?s:+s[0],l?0:+s[1],+s[2]||1e-5),t=a+1;return e+C.substr(t,C.length-t)},Ai=function(C,t,e,i,s){var a=t-C,l=i-e;return L2(s,function(r){return e+((r-C)/a*l||0)})},Qu=function o(C,t,e,i){var s=isNaN(C+t)?0:function(L){return(1-L)*C+L*t};if(!s){var a=a1(C),l={},r,h,d,c,p;if(e===!0&&(i=1)&&(e=null),a)C={p:C},t={p:t};else if(c1(C)&&!c1(t)){for(d=[],c=C.length,p=c-2,h=1;h<c;h++)d.push(o(C[h-1],C[h]));c--,s=function(g){g*=c;var v=Math.min(p,~~g);return d[v](g-v)},e=t}else i||(C=X2(c1(C)?[]:{},C));if(!d){for(r in t)r9.call(l,C,r,"get",t[r]);s=function(g){return v9(g,l)||(a?C.p:C)}}}return L2(e,s)},Si=function(C,t,e){var i=C.labels,s=$1,a,l,r;for(a in i)l=i[a]-t,l<0==!!e&&l&&s>(l=Math.abs(l))&&(r=a,s=l);return r},y1=function(C,t,e){var i=C.vars,s=i[t],a=j,l=C._ctx,r,h,d;if(s)return r=i[t+"Params"],h=i.callbackScope||C,e&&p2.length&&y8(),l&&(j=l),d=r?s.apply(h,r):s.call(h),j=a,d},s6=function(C){return v2(C),C.scrollTrigger&&C.scrollTrigger.kill(!!d1),C.progress()<1&&y1(C,"onInterrupt"),C},W3,Bi=[],Ei=function(C){if(C)if(C=!C.name&&C.default||C,j7()||C.headless){var t=C.name,e=W(C),i=t&&!e&&C.init?function(){this._props=[]}:C,s={init:C6,render:v9,add:r9,kill:LM,modifier:vM,rawVars:0},a={targetTest:0,get:0,getSetter:p9,aliases:{},register:0};if(Y3(),C!==i){if(b1[t])return;A1(i,A1(z8(C,s),a)),X2(i.prototype,X2(s,z8(C,a))),b1[i.prop=t]=i,C.targetTest&&(b8.push(i),K7[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ci(t,i),C.register&&C.register(m1,i,w1)}else Bi.push(C)},F=255,a6={aqua:[0,F,F],lime:[0,F,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,F],navy:[0,0,128],white:[F,F,F],olive:[128,128,0],yellow:[F,F,0],orange:[F,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[F,0,0],pink:[F,192,203],cyan:[0,F,F],transparent:[F,F,F,0]},a9=function(C,t,e){return C+=C<0?1:C>1?-1:0,(C*6<1?t+(e-t)*C*6:C<.5?e:C*3<2?t+(e-t)*(2/3-C)*6:t)*F+.5|0},Ti=function(C,t,e){var i=C?G1(C)?[C>>16,C>>8&F,C&F]:0:a6.black,s,a,l,r,h,d,c,p,L,g;if(!i){if(C.substr(-1)===","&&(C=C.substr(0,C.length-1)),a6[C])i=a6[C];else if(C.charAt(0)==="#"){if(C.length<6&&(s=C.charAt(1),a=C.charAt(2),l=C.charAt(3),C="#"+s+s+a+a+l+l+(C.length===5?C.charAt(4)+C.charAt(4):"")),C.length===9)return i=parseInt(C.substr(1,6),16),[i>>16,i>>8&F,i&F,parseInt(C.substr(7),16)/255];C=parseInt(C.substr(1),16),i=[C>>16,C>>8&F,C&F]}else if(C.substr(0,3)==="hsl"){if(i=g=C.match(U7),!t)r=+i[0]%360/360,h=+i[1]/100,d=+i[2]/100,a=d<=.5?d*(h+1):d+h-d*h,s=d*2-a,i.length>3&&(i[3]*=1),i[0]=a9(r+1/3,s,a),i[1]=a9(r,s,a),i[2]=a9(r-1/3,s,a);else if(~C.indexOf("="))return i=C.match(ni),e&&i.length<4&&(i[3]=1),i}else i=C.match(U7)||a6.transparent;i=i.map(Number)}return t&&!g&&(s=i[0]/F,a=i[1]/F,l=i[2]/F,c=Math.max(s,a,l),p=Math.min(s,a,l),d=(c+p)/2,c===p?r=h=0:(L=c-p,h=d>.5?L/(2-c-p):L/(c+p),r=c===s?(a-l)/L+(a<l?6:0):c===a?(l-s)/L+2:(s-a)/L+4,r*=60),i[0]=~~(r+.5),i[1]=~~(h*100+.5),i[2]=~~(d*100+.5)),e&&i.length<4&&(i[3]=1),i},Pi=function(C){var t=[],e=[],i=-1;return C.split(g2).forEach(function(s){var a=s.match(R3)||[];t.push.apply(t,a),e.push(i+=a.length+1)}),t.c=e,t},Ii=function(C,t,e){var i="",s=(C+i).match(g2),a=t?"hsla(":"rgba(",l=0,r,h,d,c;if(!s)return C;if(s=s.map(function(p){return(p=Ti(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),e&&(d=Pi(C),r=e.c,r.join(i)!==d.c.join(i)))for(h=C.replace(g2,"1").split(R3),c=h.length-1;l<c;l++)i+=h[l]+(~r.indexOf(l)?s.shift()||a+"0,0,0,0)":(d.length?d:s.length?s:e).shift());if(!h)for(h=C.split(g2),c=h.length-1;l<c;l++)i+=h[l]+s[l];return i+h[c]},g2=function(){var o="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",C;for(C in a6)o+="|"+C+"\\b";return new RegExp(o+")","gi")}(),CM=/hsl[a]?\(/,Oi=function(C){var t=C.join(" "),e;if(g2.lastIndex=0,g2.test(t))return e=CM.test(t),C[1]=Ii(C[1],e),C[0]=Ii(C[0],e,Pi(C[1])),!0},n6,z1=function(){var o=Date.now,C=500,t=33,e=o(),i=e,s=1e3/240,a=s,l=[],r,h,d,c,p,L,g=function v(u){var M=o()-i,f=u===!0,w,Z,_,z;if((M>C||M<0)&&(e+=M-t),i+=M,_=i-e,w=_-a,(w>0||f)&&(z=++c.frame,p=_-c.time*1e3,c.time=_=_/1e3,a+=w+(w>=s?4:s-w),Z=1),f||(r=h(v)),Z)for(L=0;L<l.length;L++)l[L](_,p,z,u)};return c={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(u){return p/(1e3/(u||60))},wake:function(){hi&&(!W7&&j7()&&(O1=W7=window,Y7=O1.document||{},x1.gsap=m1,(O1.gsapVersions||(O1.gsapVersions=[])).push(m1.version),di(_8||O1.GreenSockGlobals||!O1.gsap&&O1||{}),Bi.forEach(Ei)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,r&&c.sleep(),h=d||function(u){return setTimeout(u,a-c.time*1e3+1|0)},n6=1,g(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(r),n6=0,h=C6},lagSmoothing:function(u,M){C=u||1/0,t=Math.min(M||33,C)},fps:function(u){s=1e3/(u||240),a=c.time*1e3+s},add:function(u,M,f){var w=M?function(Z,_,z,m){u(Z,_,z,m),c.remove(w)}:u;return c.remove(u),l[f?"unshift":"push"](w),Y3(),w},remove:function(u,M){~(M=l.indexOf(u))&&l.splice(M,1)&&L>=M&&L--},_listeners:l},c}(),Y3=function(){return!n6&&z1.wake()},P={},tM=/^[\d.\-M][\d.\-,\s]/,eM=/["']/g,iM=function(C){for(var t={},e=C.substr(1,C.length-3).split(":"),i=e[0],s=1,a=e.length,l,r,h;s<a;s++)r=e[s],l=s!==a-1?r.lastIndexOf(","):r.length,h=r.substr(0,l),t[i]=isNaN(h)?h.replace(eM,"").trim():+h,i=r.substr(l+1).trim();return t},oM=function(C){var t=C.indexOf("(")+1,e=C.indexOf(")"),i=C.indexOf("(",t);return C.substring(t,~i&&i<e?C.indexOf(")",e+1):e)},sM=function(C){var t=(C+"").split("("),e=P[t[0]];return e&&t.length>1&&e.config?e.config.apply(null,~C.indexOf("{")?[iM(t[1])]:oM(C).split(",").map(ui)):P._CE&&tM.test(C)?P._CE("",C):e},Fi=function(C){return function(t){return 1-C(1-t)}},Di=function o(C,t){for(var e=C._first,i;e;)e instanceof v1?o(e,t):e.vars.yoyoEase&&(!e._yoyo||!e._repeat)&&e._yoyo!==t&&(e.timeline?o(e.timeline,t):(i=e._ease,e._ease=e._yEase,e._yEase=i,e._yoyo=t)),e=e._next},Q2=function(C,t){return C&&(W(C)?C:P[C]||sM(C))||t},C3=function(C,t,e,i){e===void 0&&(e=function(r){return 1-t(1-r)}),i===void 0&&(i=function(r){return r<.5?t(r*2)/2:1-t((1-r)*2)/2});var s={easeIn:t,easeOut:e,easeInOut:i},a;return f1(C,function(l){P[l]=x1[l]=s,P[a=l.toLowerCase()]=e;for(var r in s)P[a+(r==="easeIn"?".in":r==="easeOut"?".out":".inOut")]=P[l+"."+r]=s[r]}),s},Ni=function(C){return function(t){return t<.5?(1-C(1-t*2))/2:.5+C((t-.5)*2)/2}},n9=function o(C,t,e){var i=t>=1?t:1,s=(e||(C?.3:.45))/(t<1?t:1),a=s/N7*(Math.asin(1/i)||0),l=function(d){return d===1?1:i*Math.pow(2,-10*d)*Su((d-a)*s)+1},r=C==="out"?l:C==="in"?function(h){return 1-l(1-h)}:Ni(l);return s=N7/s,r.config=function(h,d){return o(C,h,d)},r},l9=function o(C,t){t===void 0&&(t=1.70158);var e=function(a){return a?--a*a*((t+1)*a+t)+1:0},i=C==="out"?e:C==="in"?function(s){return 1-e(1-s)}:Ni(e);return i.config=function(s){return o(C,s)},i};f1("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,C){var t=C<5?C+1:C;C3(o+",Power"+(t-1),C?function(e){return Math.pow(e,t)}:function(e){return e},function(e){return 1-Math.pow(1-e,t)},function(e){return e<.5?Math.pow(e*2,t)/2:1-Math.pow((1-e)*2,t)/2})}),P.Linear.easeNone=P.none=P.Linear.easeIn,C3("Elastic",n9("in"),n9("out"),n9()),function(o,C){var t=1/C,e=2*t,i=2.5*t,s=function(l){return l<t?o*l*l:l<e?o*Math.pow(l-1.5/C,2)+.75:l<i?o*(l-=2.25/C)*l+.9375:o*Math.pow(l-2.625/C,2)+.984375};C3("Bounce",function(a){return 1-s(1-a)},s)}(7.5625,2.75),C3("Expo",function(o){return o?Math.pow(2,10*(o-1)):0}),C3("Circ",function(o){return-(si(1-o*o)-1)}),C3("Sine",function(o){return o===1?1:-Au(o*ku)+1}),C3("Back",l9("in"),l9("out"),l9()),P.SteppedEase=P.steps=x1.SteppedEase={config:function(C,t){C===void 0&&(C=1);var e=1/C,i=C+(t?0:1),s=t?1:0,a=1-N;return function(l){return((i*i6(0,a,l)|0)+s)*e}}},N3.ease=P["quad.out"],f1("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(o){return Q7+=o+","+o+"Params,"});var Ri=function(C,t){this.id=$u++,C._gsap=this,this.target=C,this.harness=t,this.get=t?t.get:Li,this.set=t?t.getSetter:p9},l6=function(){function o(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,q3(this,+t.duration,1,1),this.data=t.data,j&&(this._ctx=j,j.data.push(this)),n6||z1.wake()}var C=o.prototype;return C.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},C.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},C.totalDuration=function(e){return arguments.length?(this._dirty=0,q3(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},C.totalTime=function(e,i){if(Y3(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(S8(this,e),!s._dp||s.parent||Hi(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&F1(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===N||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),gi(this,e,i)),this},C.time=function(e,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+mi(this))%(this._dur+this._rDelay)||(e?this._dur:0),i):this._time},C.totalProgress=function(e,i){return arguments.length?this.totalTime(this.totalDuration()*e,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},C.progress=function(e,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+mi(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},C.iteration=function(e,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*s,i):this._repeat?U3(this._tTime,s)+1:1},C.timeScale=function(e,i){if(!arguments.length)return this._rts===-N?0:this._rts;if(this._rts===e)return this;var s=this.parent&&this._ts?$8(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-N?0:this._rts,this.totalTime(i6(-Math.abs(this._delay),this._tDur,s),i!==!1),A8(this),Fu(this)},C.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Y3(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==N&&(this._tTime-=N)))),this):this._ps},C.startTime=function(e){if(arguments.length){this._start=e;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&F1(i,this,e-this._delay),this}return this._start},C.endTime=function(e){return this._start+(M1(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},C.rawTime=function(e){var i=this.parent||this._dp;return i?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$8(i.rawTime(e),this):this._tTime:this._tTime},C.revert=function(e){e===void 0&&(e=Tu);var i=d1;return d1=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!=="nested"&&e.kill!==!1&&this.kill(),d1=i,this},C.globalTime=function(e){for(var i=this,s=arguments.length?e:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(e):s},C.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,_i(this)):this._repeat===-2?1/0:this._repeat},C.repeatDelay=function(e){if(arguments.length){var i=this._time;return this._rDelay=e,_i(this),i?this.time(i):this}return this._rDelay},C.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},C.seek=function(e,i){return this.totalTime(S1(this,e),M1(i))},C.restart=function(e,i){return this.play().totalTime(e?-this._delay:0,M1(i))},C.play=function(e,i){return e!=null&&this.seek(e,i),this.reversed(!1).paused(!1)},C.reverse=function(e,i){return e!=null&&this.seek(e||this.totalDuration(),i),this.reversed(!0).paused(!1)},C.pause=function(e,i){return e!=null&&this.seek(e,i),this.paused(!0)},C.resume=function(){return this.paused(!1)},C.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-N:0)),this):this._rts<0},C.invalidate=function(){return this._initted=this._act=0,this._zTime=-N,this},C.isActive=function(){var e=this.parent||this._dp,i=this._start,s;return!!(!e||this._ts&&this._initted&&e.isActive()&&(s=e.rawTime(!0))>=i&&s<this.endTime(!0)-N)},C.eventCallback=function(e,i,s){var a=this.vars;return arguments.length>1?(i?(a[e]=i,s&&(a[e+"Params"]=s),e==="onUpdate"&&(this._onUpdate=i)):delete a[e],this):a[e]},C.then=function(e){var i=this;return new Promise(function(s){var a=W(e)?e:Mi,l=function(){var h=i.then;i.then=null,W(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=h),s(a),i.then=h};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},C.kill=function(){s6(this)},o}();A1(l6.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-N,_prom:0,_ps:!1,_rts:1});var v1=function(o){oi(C,o);function C(e,i){var s;return e===void 0&&(e={}),s=o.call(this,e)||this,s.labels={},s.smoothChildTiming=!!e.smoothChildTiming,s.autoRemoveChildren=!!e.autoRemoveChildren,s._sort=M1(e.sortChildren),U&&F1(e.parent||U,Y1(s),i),e.reversed&&s.reverse(),e.paused&&s.paused(!0),e.scrollTrigger&&Vi(Y1(s),e.scrollTrigger),s}var t=C.prototype;return t.to=function(i,s,a){return e6(0,arguments,this),this},t.from=function(i,s,a){return e6(1,arguments,this),this},t.fromTo=function(i,s,a,l){return e6(2,arguments,this),this},t.set=function(i,s,a){return s.duration=0,s.parent=this,t6(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Q(i,s,S1(this,a),1),this},t.call=function(i,s,a){return F1(this,Q.delayedCall(0,i,s),a)},t.staggerTo=function(i,s,a,l,r,h,d){return a.duration=s,a.stagger=a.stagger||l,a.onComplete=h,a.onCompleteParams=d,a.parent=this,new Q(i,a,S1(this,r)),this},t.staggerFrom=function(i,s,a,l,r,h,d){return a.runBackwards=1,t6(a).immediateRender=M1(a.immediateRender),this.staggerTo(i,s,a,l,r,h,d)},t.staggerFromTo=function(i,s,a,l,r,h,d,c){return l.startAt=a,t6(l).immediateRender=M1(l.immediateRender),this.staggerTo(i,s,l,r,h,d,c)},t.render=function(i,s,a){var l=this._time,r=this._dirty?this.totalDuration():this._tDur,h=this._dur,d=i<=0?0:n1(i),c=this._zTime<0!=i<0&&(this._initted||!h),p,L,g,v,u,M,f,w,Z,_,z,m;if(this!==U&&d>r&&i>=0&&(d=r),d!==this._tTime||a||c){if(l!==this._time&&h&&(d+=this._time-l,i+=this._time-l),p=d,Z=this._start,w=this._ts,M=!w,c&&(h||(l=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(z=this._yoyo,u=h+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(u*100+i,s,a);if(p=n1(d%u),d===r?(v=this._repeat,p=h):(v=~~(d/u),v&&v===d/u&&(p=h,v--),p>h&&(p=h)),_=U3(this._tTime,u),!l&&this._tTime&&_!==v&&this._tTime-_*u-this._dur<=0&&(_=v),z&&v&1&&(p=h-p,m=1),v!==_&&!this._lock){var V=z&&_&1,x=V===(z&&v&1);if(v<_&&(V=!V),l=V?0:d%h?h:d,this._lock=1,this.render(l||(m?0:n1(v*u)),s,!h)._lock=0,this._tTime=d,!s&&this.parent&&y1(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),l&&l!==this._time||M!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,r=this._tDur,x&&(this._lock=2,l=V?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!M)return this;Di(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=ju(this,n1(l),n1(p)),f&&(d-=p-(p=f._start))),this._tTime=d,this._time=p,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,l=0),!l&&p&&!s&&!v&&(y1(this,"onStart"),this._tTime!==d))return this;if(p>=l&&i>=0)for(L=this._first;L;){if(g=L._next,(L._act||p>=L._start)&&L._ts&&f!==L){if(L.parent!==this)return this.render(i,s,a);if(L.render(L._ts>0?(p-L._start)*L._ts:(L._dirty?L.totalDuration():L._tDur)+(p-L._start)*L._ts,s,a),p!==this._time||!this._ts&&!M){f=0,g&&(d+=this._zTime=-N);break}}L=g}else{L=this._last;for(var A=i<0?i:p;L;){if(g=L._prev,(L._act||A<=L._end)&&L._ts&&f!==L){if(L.parent!==this)return this.render(i,s,a);if(L.render(L._ts>0?(A-L._start)*L._ts:(L._dirty?L.totalDuration():L._tDur)+(A-L._start)*L._ts,s,a||d1&&(L._initted||L._startAt)),p!==this._time||!this._ts&&!M){f=0,g&&(d+=this._zTime=A?-N:N);break}}L=g}}if(f&&!s&&(this.pause(),f.render(p>=l?0:-N)._zTime=p>=l?1:-1,this._ts))return this._start=Z,A8(this),this.render(i,s,a);this._onUpdate&&!s&&y1(this,"onUpdate",!0),(d===r&&this._tTime>=this.totalDuration()||!d&&l)&&(Z===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((i||!h)&&(d===r&&this._ts>0||!d&&this._ts<0)&&v2(this,1),!s&&!(i<0&&!l)&&(d||l||!r)&&(y1(this,d===r&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<r&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(i,s){var a=this;if(G1(s)||(s=S1(this,s,i)),!(i instanceof l6)){if(c1(i))return i.forEach(function(l){return a.add(l,s)}),this;if(a1(i))return this.addLabel(i,s);if(W(i))i=Q.delayedCall(0,i);else return this}return this!==i?F1(this,i,s):this},t.getChildren=function(i,s,a,l){i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),l===void 0&&(l=-$1);for(var r=[],h=this._first;h;)h._start>=l&&(h instanceof Q?s&&r.push(h):(a&&r.push(h),i&&r.push.apply(r,h.getChildren(!0,s,a)))),h=h._next;return r},t.getById=function(i){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===i)return s[a]},t.remove=function(i){return a1(i)?this.removeLabel(i):W(i)?this.killTweensOf(i):(k8(this,i),i===this._recent&&(this._recent=this._last),J2(this))},t.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=n1(z1.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),o.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},t.addLabel=function(i,s){return this.labels[i]=S1(this,s),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,s,a){var l=Q.delayedCall(0,s||C6,a);return l.data="isPause",this._hasPause=1,F1(this,l,S1(this,i))},t.removePause=function(i){var s=this._first;for(i=S1(this,i);s;)s._start===i&&s.data==="isPause"&&v2(s),s=s._next},t.killTweensOf=function(i,s,a){for(var l=this.getTweensOf(i,a),r=l.length;r--;)u2!==l[r]&&l[r].kill(i,s);return this},t.getTweensOf=function(i,s){for(var a=[],l=B1(i),r=this._first,h=G1(s),d;r;)r instanceof Q?Pu(r._targets,l)&&(h?(!u2||r._initted&&r._ts)&&r.globalTime(0)<=s&&r.globalTime(r.totalDuration())>s:!s||r.isActive())&&a.push(r):(d=r.getTweensOf(l,s)).length&&a.push.apply(a,d),r=r._next;return a},t.tweenTo=function(i,s){s=s||{};var a=this,l=S1(a,i),r=s,h=r.startAt,d=r.onStart,c=r.onStartParams,p=r.immediateRender,L,g=Q.to(a,A1({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:s.duration||Math.abs((l-(h&&"time"in h?h.time:a._time))/a.timeScale())||N,onStart:function(){if(a.pause(),!L){var u=s.duration||Math.abs((l-(h&&"time"in h?h.time:a._time))/a.timeScale());g._dur!==u&&q3(g,u,0,1).render(g._time,!0,!0),L=1}d&&d.apply(g,c||[])}},s));return p?g.render(0):g},t.tweenFromTo=function(i,s,a){return this.tweenTo(s,A1({startAt:{time:S1(this,i)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),Si(this,S1(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),Si(this,S1(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+N)},t.shiftChildren=function(i,s,a){a===void 0&&(a=0);for(var l=this._first,r=this.labels,h;l;)l._start>=a&&(l._start+=i,l._end+=i),l=l._next;if(s)for(h in r)r[h]>=a&&(r[h]+=i);return J2(this)},t.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return o.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),J2(this)},t.totalDuration=function(i){var s=0,a=this,l=a._last,r=$1,h,d,c;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(c=a.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),d=l._start,d>r&&a._sort&&l._ts&&!a._lock?(a._lock=1,F1(a,l,d-l._delay,1)._lock=0):r=d,d<0&&l._ts&&(s-=d,(!c&&!a._dp||c&&c.smoothChildTiming)&&(a._start+=d/a._ts,a._time-=d,a._tTime-=d),a.shiftChildren(-d,!1,-1/0),r=0),l._end>s&&l._ts&&(s=l._end),l=h;q3(a,a===U&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},C.updateRoot=function(i){if(U._ts&&(gi(U,$8(i,U)),pi=z1.frame),z1.frame>=vi){vi+=_1.autoSleep||120;var s=U._first;if((!s||!s._ts)&&_1.autoSleep&&z1._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||z1.sleep()}}},C}(l6);A1(v1.prototype,{_lock:0,_hasPause:0,_forcing:0});var aM=function(C,t,e,i,s,a,l){var r=new w1(this._pt,C,t,0,1,Gi,null,s),h=0,d=0,c,p,L,g,v,u,M,f;for(r.b=e,r.e=i,e+="",i+="",(M=~i.indexOf("random("))&&(i=o6(i)),a&&(f=[e,i],a(f,C,t),e=f[0],i=f[1]),p=e.match(q7)||[];c=q7.exec(i);)g=c[0],v=i.substring(h,c.index),L?L=(L+1)%5:v.substr(-5)==="rgba("&&(L=1),g!==p[d++]&&(u=parseFloat(p[d-1])||0,r._pt={_next:r._pt,p:v||d===1?v:",",s:u,c:g.charAt(1)==="="?j3(u,g)-u:parseFloat(g)-u,m:L&&L<4?Math.round:0},h=q7.lastIndex);return r.c=h<i.length?i.substring(h,i.length):"",r.fp=l,(li.test(i)||M)&&(r.e=0),this._pt=r,r},r9=function(C,t,e,i,s,a,l,r,h,d){W(i)&&(i=i(s||0,C,a));var c=C[t],p=e!=="get"?e:W(c)?h?C[t.indexOf("set")||!W(C["get"+t.substr(3)])?t:"get"+t.substr(3)](h):C[t]():c,L=W(c)?h?dM:Wi:c9,g;if(a1(i)&&(~i.indexOf("random(")&&(i=o6(i)),i.charAt(1)==="="&&(g=j3(p,i)+(p1(p)||0),(g||g===0)&&(i=g))),!d||p!==i||h9)return!isNaN(p*i)&&i!==""?(g=new w1(this._pt,C,t,+p||0,i-(p||0),typeof c=="boolean"?pM:Yi,0,L),h&&(g.fp=h),l&&g.modifier(l,this,C),this._pt=g):(!c&&!(t in C)&&G7(t,i),aM.call(this,C,t,p,i,L,r||_1.stringFilter,h))},nM=function(C,t,e,i,s){if(W(C)&&(C=r6(C,s,t,e,i)),!I1(C)||C.style&&C.nodeType||c1(C)||ai(C))return a1(C)?r6(C,s,t,e,i):C;var a={},l;for(l in C)a[l]=r6(C[l],s,t,e,i);return a},ji=function(C,t,e,i,s,a){var l,r,h,d;if(b1[C]&&(l=new b1[C]).init(s,l.rawVars?t[C]:nM(t[C],i,s,a,e),e,i,a)!==!1&&(e._pt=r=new w1(e._pt,s,C,0,1,l.render,l,0,l.priority),e!==W3))for(h=e._ptLookup[e._targets.indexOf(s)],d=l._props.length;d--;)h[l._props[d]]=r;return l},u2,h9,d9=function o(C,t,e){var i=C.vars,s=i.ease,a=i.startAt,l=i.immediateRender,r=i.lazy,h=i.onUpdate,d=i.runBackwards,c=i.yoyoEase,p=i.keyframes,L=i.autoRevert,g=C._dur,v=C._startAt,u=C._targets,M=C.parent,f=M&&M.data==="nested"?M.vars.targets:u,w=C._overwrite==="auto"&&!D7,Z=C.timeline,_,z,m,V,x,A,S,E,I,G,l1,C1,r1;if(Z&&(!p||!s)&&(s="none"),C._ease=Q2(s,N3.ease),C._yEase=c?Fi(Q2(c===!0?s:c,N3.ease)):0,c&&C._yoyo&&!C._repeat&&(c=C._yEase,C._yEase=C._ease,C._ease=c),C._from=!Z&&!!i.runBackwards,!Z||p&&!i.stagger){if(E=u[0]?K2(u[0]).harness:0,C1=E&&i[E.prop],_=z8(i,K7),v&&(v._zTime<0&&v.progress(1),t<0&&d&&l&&!L?v.render(-1,!0):v.revert(d&&g?x8:Eu),v._lazy=0),a){if(v2(C._startAt=Q.set(u,A1({data:"isStart",overwrite:!1,parent:M,immediateRender:!0,lazy:!v&&M1(r),startAt:null,delay:0,onUpdate:h&&function(){return y1(C,"onUpdate")},stagger:0},a))),C._startAt._dp=0,C._startAt._sat=C,t<0&&(d1||!l&&!L)&&C._startAt.revert(x8),l&&g&&t<=0&&e<=0){t&&(C._zTime=t);return}}else if(d&&g&&!v){if(t&&(l=!1),m=A1({overwrite:!1,data:"isFromStart",lazy:l&&!v&&M1(r),immediateRender:l,stagger:0,parent:M},_),C1&&(m[E.prop]=C1),v2(C._startAt=Q.set(u,m)),C._startAt._dp=0,C._startAt._sat=C,t<0&&(d1?C._startAt.revert(x8):C._startAt.render(-1,!0)),C._zTime=t,!l)o(C._startAt,N,N);else if(!t)return}for(C._pt=C._ptCache=0,r=g&&M1(r)||r&&!g,z=0;z<u.length;z++){if(x=u[z],S=x._gsap||C9(u)[z]._gsap,C._ptLookup[z]=G={},X7[S.id]&&p2.length&&y8(),l1=f===u?z:f.indexOf(x),E&&(I=new E).init(x,C1||_,C,l1,f)!==!1&&(C._pt=V=new w1(C._pt,x,I.name,0,1,I.render,I,0,I.priority),I._props.forEach(function(P1){G[P1]=V}),I.priority&&(A=1)),!E||C1)for(m in _)b1[m]&&(I=ji(m,_,C,l1,x,f))?I.priority&&(A=1):G[m]=V=r9.call(C,x,m,"get",_[m],l1,f,0,i.stringFilter);C._op&&C._op[z]&&C.kill(x,C._op[z]),w&&C._pt&&(u2=C,U.killTweensOf(x,G,C.globalTime(t)),r1=!C.parent,u2=0),C._pt&&r&&(X7[S.id]=1)}A&&Ki(C),C._onInit&&C._onInit(C)}C._onUpdate=h,C._initted=(!C._op||C._pt)&&!r1,p&&t<=0&&Z.render($1,!0,!0)},lM=function(C,t,e,i,s,a,l,r){var h=(C._pt&&C._ptCache||(C._ptCache={}))[t],d,c,p,L;if(!h)for(h=C._ptCache[t]=[],p=C._ptLookup,L=C._targets.length;L--;){if(d=p[L][t],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==t&&d.fp!==t;)d=d._next;if(!d)return h9=1,C.vars[t]="+=0",d9(C,l),h9=0,r?Q5(t+" not eligible for reset"):1;h.push(d)}for(L=h.length;L--;)c=h[L],d=c._pt||c,d.s=(i||i===0)&&!s?i:d.s+(i||0)+a*d.c,d.c=e-d.s,c.e&&(c.e=Y(e)+p1(c.e)),c.b&&(c.b=d.s+p1(c.b))},rM=function(C,t){var e=C[0]?K2(C[0]).harness:0,i=e&&e.aliases,s,a,l,r;if(!i)return t;s=X2({},t);for(a in i)if(a in s)for(r=i[a].split(","),l=r.length;l--;)s[r[l]]=s[a];return s},hM=function(C,t,e,i){var s=t.ease||i||"power1.inOut",a,l;if(c1(t))l=e[C]||(e[C]=[]),t.forEach(function(r,h){return l.push({t:h/(t.length-1)*100,v:r,e:s})});else for(a in t)l=e[a]||(e[a]=[]),a==="ease"||l.push({t:parseFloat(C),v:t[a],e:s})},r6=function(C,t,e,i,s){return W(C)?C.call(t,e,i,s):a1(C)&&~C.indexOf("random(")?o6(C):C},Ui=Q7+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",qi={};f1(Ui+",id,stagger,delay,duration,paused,scrollTrigger",function(o){return qi[o]=1});var Q=function(o){oi(C,o);function C(e,i,s,a){var l;typeof i=="number"&&(s.duration=i,i=s,s=null),l=o.call(this,a?i:t6(i))||this;var r=l.vars,h=r.duration,d=r.delay,c=r.immediateRender,p=r.stagger,L=r.overwrite,g=r.keyframes,v=r.defaults,u=r.scrollTrigger,M=r.yoyoEase,f=i.parent||U,w=(c1(e)||ai(e)?G1(e[0]):"length"in i)?[e]:B1(e),Z,_,z,m,V,x,A,S;if(l._targets=w.length?C9(w):Q5("GSAP target "+e+" not found. https://gsap.com",!_1.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=L,g||p||Z8(h)||Z8(d)){if(i=l.vars,Z=l.timeline=new v1({data:"nested",defaults:v||{},targets:f&&f.data==="nested"?f.vars.targets:w}),Z.kill(),Z.parent=Z._dp=Y1(l),Z._start=0,p||Z8(h)||Z8(d)){if(m=w.length,A=p&&yi(p),I1(p))for(V in p)~Ui.indexOf(V)&&(S||(S={}),S[V]=p[V]);for(_=0;_<m;_++)z=z8(i,qi),z.stagger=0,M&&(z.yoyoEase=M),S&&X2(z,S),x=w[_],z.duration=+r6(h,Y1(l),_,x,w),z.delay=(+r6(d,Y1(l),_,x,w)||0)-l._delay,!p&&m===1&&z.delay&&(l._delay=d=z.delay,l._start+=d,z.delay=0),Z.to(x,z,A?A(_,x,w):0),Z._ease=P.none;Z.duration()?h=d=0:l.timeline=0}else if(g){t6(A1(Z.vars.defaults,{ease:"none"})),Z._ease=Q2(g.ease||i.ease||"none");var E=0,I,G,l1;if(c1(g))g.forEach(function(C1){return Z.to(w,C1,">")}),Z.duration();else{z={};for(V in g)V==="ease"||V==="easeEach"||hM(V,g[V],z,g.easeEach);for(V in z)for(I=z[V].sort(function(C1,r1){return C1.t-r1.t}),E=0,_=0;_<I.length;_++)G=I[_],l1={ease:G.e,duration:(G.t-(_?I[_-1].t:0))/100*h},l1[V]=G.v,Z.to(w,l1,E),E+=l1.duration;Z.duration()<h&&Z.to({},{duration:h-Z.duration()})}}h||l.duration(h=Z.duration())}else l.timeline=0;return L===!0&&!D7&&(u2=Y1(l),U.killTweensOf(w),u2=0),F1(f,Y1(l),s),i.reversed&&l.reverse(),i.paused&&l.paused(!0),(c||!h&&!g&&l._start===n1(f._time)&&M1(c)&&Du(Y1(l))&&f.data!=="nested")&&(l._tTime=-N,l.render(Math.max(0,-d)||0)),u&&Vi(Y1(l),u),l}var t=C.prototype;return t.render=function(i,s,a){var l=this._time,r=this._tDur,h=this._dur,d=i<0,c=i>r-N&&!d?r:i<N?0:i,p,L,g,v,u,M,f,w,Z;if(!h)Ru(this,i,s,a);else if(c!==this._tTime||!i||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d){if(p=c,w=this.timeline,this._repeat){if(v=h+this._rDelay,this._repeat<-1&&d)return this.totalTime(v*100+i,s,a);if(p=n1(c%v),c===r?(g=this._repeat,p=h):(g=~~(c/v),g&&g===n1(c/v)&&(p=h,g--),p>h&&(p=h)),M=this._yoyo&&g&1,M&&(Z=this._yEase,p=h-p),u=U3(this._tTime,v),p===l&&!a&&this._initted&&g===u)return this._tTime=c,this;g!==u&&(w&&this._yEase&&Di(w,M),this.vars.repeatRefresh&&!M&&!this._lock&&this._time!==v&&this._initted&&(this._lock=a=1,this.render(n1(v*g),!0).invalidate()._lock=0))}if(!this._initted){if(Zi(this,d?i:p,a,s,c))return this._tTime=0,this;if(l!==this._time&&!(a&&this.vars.repeatRefresh&&g!==u))return this;if(h!==this._dur)return this.render(i,s,a)}if(this._tTime=c,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(Z||this._ease)(p/h),this._from&&(this.ratio=f=1-f),p&&!l&&!s&&!g&&(y1(this,"onStart"),this._tTime!==c))return this;for(L=this._pt;L;)L.r(f,L.d),L=L._next;w&&w.render(i<0?i:w._dur*w._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(d&&t9(this,i,s,a),y1(this,"onUpdate")),this._repeat&&g!==u&&this.vars.onRepeat&&!s&&this.parent&&y1(this,"onRepeat"),(c===this._tDur||!c)&&this._tTime===c&&(d&&!this._onUpdate&&t9(this,i,!0,!0),(i||!h)&&(c===this._tDur&&this._ts>0||!c&&this._ts<0)&&v2(this,1),!s&&!(d&&!l)&&(c||l||M)&&(y1(this,c===r?"onComplete":"onReverseComplete",!0),this._prom&&!(c<r&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),o.prototype.invalidate.call(this,i)},t.resetTo=function(i,s,a,l,r){n6||z1.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||d9(this,h),d=this._ease(h/this._dur),lM(this,i,s,a,l,d,h,r)?this.resetTo(i,s,a,l,1):(S8(this,0),this.parent||wi(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?s6(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,u2&&u2.vars.overwrite!==!0)._first||s6(this),this.parent&&a!==this.timeline.totalDuration()&&q3(this,this._dur*this.timeline._tDur/a,0,1),this}var l=this._targets,r=i?B1(i):l,h=this._ptLookup,d=this._pt,c,p,L,g,v,u,M;if((!s||s==="all")&&Ou(l,r))return s==="all"&&(this._pt=0),s6(this);for(c=this._op=this._op||[],s!=="all"&&(a1(s)&&(v={},f1(s,function(f){return v[f]=1}),s=v),s=rM(l,s)),M=l.length;M--;)if(~r.indexOf(l[M])){p=h[M],s==="all"?(c[M]=s,g=p,L={}):(L=c[M]=c[M]||{},g=s);for(v in g)u=p&&p[v],u&&((!("kill"in u.d)||u.d.kill(v)===!0)&&k8(this,u,"_pt"),delete p[v]),L!=="all"&&(L[v]=1)}return this._initted&&!this._pt&&d&&s6(this),this},C.to=function(i,s){return new C(i,s,arguments[2])},C.from=function(i,s){return e6(1,arguments)},C.delayedCall=function(i,s,a,l){return new C(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:l})},C.fromTo=function(i,s,a){return e6(2,arguments)},C.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new C(i,s)},C.killTweensOf=function(i,s,a){return U.killTweensOf(i,s,a)},C}(l6);A1(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),f1("staggerTo,staggerFrom,staggerFromTo",function(o){Q[o]=function(){var C=new v1,t=i9.call(arguments,0);return t.splice(o==="staggerFromTo"?5:4,0,0),C[o].apply(C,t)}});var c9=function(C,t,e){return C[t]=e},Wi=function(C,t,e){return C[t](e)},dM=function(C,t,e,i){return C[t](i.fp,e)},cM=function(C,t,e){return C.setAttribute(t,e)},p9=function(C,t){return W(C[t])?Wi:R7(C[t])&&C.setAttribute?cM:c9},Yi=function(C,t){return t.set(t.t,t.p,Math.round((t.s+t.c*C)*1e6)/1e6,t)},pM=function(C,t){return t.set(t.t,t.p,!!(t.s+t.c*C),t)},Gi=function(C,t){var e=t._pt,i="";if(!C&&t.b)i=t.b;else if(C===1&&t.e)i=t.e;else{for(;e;)i=e.p+(e.m?e.m(e.s+e.c*C):Math.round((e.s+e.c*C)*1e4)/1e4)+i,e=e._next;i+=t.c}t.set(t.t,t.p,i,t)},v9=function(C,t){for(var e=t._pt;e;)e.r(C,e.d),e=e._next},vM=function(C,t,e,i){for(var s=this._pt,a;s;)a=s._next,s.p===i&&s.modifier(C,t,e),s=a},LM=function(C){for(var t=this._pt,e,i;t;)i=t._next,t.p===C&&!t.op||t.op===C?k8(this,t,"_pt"):t.dep||(e=1),t=i;return!e},gM=function(C,t,e,i){i.mSet(C,t,i.m.call(i.tween,e,i.mt),i)},Ki=function(C){for(var t=C._pt,e,i,s,a;t;){for(e=t._next,i=s;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:a)?t._prev._next=t:s=t,(t._next=i)?i._prev=t:a=t,t=e}C._pt=s},w1=function(){function o(t,e,i,s,a,l,r,h,d){this.t=e,this.s=s,this.c=a,this.p=i,this.r=l||Yi,this.d=r||this,this.set=h||c9,this.pr=d||0,this._next=t,t&&(t._prev=this)}var C=o.prototype;return C.modifier=function(e,i,s){this.mSet=this.mSet||this.set,this.set=gM,this.m=e,this.mt=s,this.tween=i},o}();f1(Q7+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(o){return K7[o]=1}),x1.TweenMax=x1.TweenLite=Q,x1.TimelineLite=x1.TimelineMax=v1,U=new v1({sortChildren:!1,defaults:N3,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_1.stringFilter=Oi;var t3=[],B8={},uM=[],Xi=0,MM=0,L9=function(C){return(B8[C]||uM).map(function(t){return t()})},g9=function(){var C=Date.now(),t=[];C-Xi>2&&(L9("matchMediaInit"),t3.forEach(function(e){var i=e.queries,s=e.conditions,a,l,r,h;for(l in i)a=O1.matchMedia(i[l]).matches,a&&(r=1),a!==s[l]&&(s[l]=a,h=1);h&&(e.revert(),r&&t.push(e))}),L9("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(i){return e.add(null,i)})}),Xi=C,L9("matchMedia"))},Ji=function(){function o(t,e){this.selector=e&&o9(e),this.data=[],this._r=[],this.isReverted=!1,this.id=MM++,t&&this.add(t)}var C=o.prototype;return C.add=function(e,i,s){W(e)&&(s=i,i=e,e=W);var a=this,l=function(){var h=j,d=a.selector,c;return h&&h!==a&&h.data.push(a),s&&(a.selector=o9(s)),j=a,c=i.apply(a,arguments),W(c)&&a._r.push(c),j=h,a.selector=d,a.isReverted=!1,c};return a.last=l,e===W?l(a,function(r){return a.add(null,r)}):e?a[e]=l:l},C.ignore=function(e){var i=j;j=null,e(this),j=i},C.getTweens=function(){var e=[];return this.data.forEach(function(i){return i instanceof o?e.push.apply(e,i.getTweens()):i instanceof Q&&!(i.parent&&i.parent.data==="nested")&&e.push(i)}),e},C.clear=function(){this._r.length=this.data.length=0},C.kill=function(e,i){var s=this;if(e?function(){for(var l=s.getTweens(),r=s.data.length,h;r--;)h=s.data[r],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(d){return l.splice(l.indexOf(d),1)}));for(l.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,c){return c.g-d.g||-1/0}).forEach(function(d){return d.t.revert(e)}),r=s.data.length;r--;)h=s.data[r],h instanceof v1?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Q)&&h.revert&&h.revert(e);s._r.forEach(function(d){return d(e,s)}),s.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),i)for(var a=t3.length;a--;)t3[a].id===this.id&&t3.splice(a,1)},C.revert=function(e){this.kill(e||{})},o}(),fM=function(){function o(t){this.contexts=[],this.scope=t,j&&j.data.push(this)}var C=o.prototype;return C.add=function(e,i,s){I1(e)||(e={matches:e});var a=new Ji(0,s||this.scope),l=a.conditions={},r,h,d;j&&!a.selector&&(a.selector=j.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=e;for(h in e)h==="all"?d=1:(r=O1.matchMedia(e[h]),r&&(t3.indexOf(a)<0&&t3.push(a),(l[h]=r.matches)&&(d=1),r.addListener?r.addListener(g9):r.addEventListener("change",g9)));return d&&i(a,function(c){return a.add(null,c)}),this},C.revert=function(e){this.kill(e||{})},C.kill=function(e){this.contexts.forEach(function(i){return i.kill(e,!0)})},o}(),E8={registerPlugin:function(){for(var C=arguments.length,t=new Array(C),e=0;e<C;e++)t[e]=arguments[e];t.forEach(function(i){return Ei(i)})},timeline:function(C){return new v1(C)},getTweensOf:function(C,t){return U.getTweensOf(C,t)},getProperty:function(C,t,e,i){a1(C)&&(C=B1(C)[0]);var s=K2(C||{}).get,a=e?Mi:ui;return e==="native"&&(e=""),C&&(t?a((b1[t]&&b1[t].get||s)(C,t,e,i)):function(l,r,h){return a((b1[l]&&b1[l].get||s)(C,l,r,h))})},quickSetter:function(C,t,e){if(C=B1(C),C.length>1){var i=C.map(function(d){return m1.quickSetter(d,t,e)}),s=i.length;return function(d){for(var c=s;c--;)i[c](d)}}C=C[0]||{};var a=b1[t],l=K2(C),r=l.harness&&(l.harness.aliases||{})[t]||t,h=a?function(d){var c=new a;W3._pt=0,c.init(C,e?d+e:d,W3,0,[C]),c.render(1,c),W3._pt&&v9(1,W3)}:l.set(C,r);return a?h:function(d){return h(C,r,e?d+e:d,l,1)}},quickTo:function(C,t,e){var i,s=m1.to(C,X2((i={},i[t]="+=0.1",i.paused=!0,i),e||{})),a=function(r,h,d){return s.resetTo(t,r,h,d)};return a.tween=s,a},isTweening:function(C){return U.getTweensOf(C,!0).length>0},defaults:function(C){return C&&C.ease&&(C.ease=Q2(C.ease,N3.ease)),fi(N3,C||{})},config:function(C){return fi(_1,C||{})},registerEffect:function(C){var t=C.name,e=C.effect,i=C.plugins,s=C.defaults,a=C.extendTimeline;(i||"").split(",").forEach(function(l){return l&&!b1[l]&&!x1[l]&&Q5(t+" effect requires "+l+" plugin.")}),J7[t]=function(l,r,h){return e(B1(l),A1(r||{},s),h)},a&&(v1.prototype[t]=function(l,r,h){return this.add(J7[t](l,I1(r)?r:(h=r)&&{},this),h)})},registerEase:function(C,t){P[C]=Q2(t)},parseEase:function(C,t){return arguments.length?Q2(C,t):P},getById:function(C){return U.getById(C)},exportRoot:function(C,t){C===void 0&&(C={});var e=new v1(C),i,s;for(e.smoothChildTiming=M1(C.smoothChildTiming),U.remove(e),e._dp=0,e._time=e._tTime=U._time,i=U._first;i;)s=i._next,(t||!(!i._dur&&i instanceof Q&&i.vars.onComplete===i._targets[0]))&&F1(e,i,i._start-i._delay),i=s;return F1(U,e,0),e},context:function(C,t){return C?new Ji(C,t):j},matchMedia:function(C){return new fM(C)},matchMediaRefresh:function(){return t3.forEach(function(C){var t=C.conditions,e,i;for(i in t)t[i]&&(t[i]=!1,e=1);e&&C.revert()})||g9()},addEventListener:function(C,t){var e=B8[C]||(B8[C]=[]);~e.indexOf(t)||e.push(t)},removeEventListener:function(C,t){var e=B8[C],i=e&&e.indexOf(t);i>=0&&e.splice(i,1)},utils:{wrap:Xu,wrapYoyo:Ju,distribute:yi,random:ki,snap:zi,normalize:Ku,getUnit:p1,clamp:qu,splitColor:Ti,toArray:B1,selector:o9,mapRange:Ai,pipe:Yu,unitize:Gu,interpolate:Qu,shuffle:bi},install:di,effects:J7,ticker:z1,updateRoot:v1.updateRoot,plugins:b1,globalTimeline:U,core:{PropTween:w1,globals:ci,Tween:Q,Timeline:v1,Animation:l6,getCache:K2,_removeLinkedListItem:k8,reverting:function(){return d1},context:function(C){return C&&j&&(j.data.push(C),C._ctx=j),j},suppressOverwrites:function(C){return D7=C}}};f1("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return E8[o]=Q[o]}),z1.add(v1.updateRoot),W3=E8.to({},{duration:0});var wM=function(C,t){for(var e=C._pt;e&&e.p!==t&&e.op!==t&&e.fp!==t;)e=e._next;return e},mM=function(C,t){var e=C._targets,i,s,a;for(i in t)for(s=e.length;s--;)a=C._ptLookup[s][i],a&&(a=a.d)&&(a._pt&&(a=wM(a,i)),a&&a.modifier&&a.modifier(t[i],C,e[s],i))},u9=function(C,t){return{name:C,rawVars:1,init:function(i,s,a){a._onInit=function(l){var r,h;if(a1(s)&&(r={},f1(s,function(d){return r[d]=1}),s=r),t){r={};for(h in s)r[h]=t(s[h]);s=r}mM(l,s)}}}},m1=E8.registerPlugin({name:"attr",init:function(C,t,e,i,s){var a,l,r;this.tween=e;for(a in t)r=C.getAttribute(a)||"",l=this.add(C,"setAttribute",(r||0)+"",t[a],i,s,0,0,a),l.op=a,l.b=r,this._props.push(a)},render:function(C,t){for(var e=t._pt;e;)d1?e.set(e.t,e.p,e.b,e):e.r(C,e.d),e=e._next}},{name:"endArray",init:function(C,t){for(var e=t.length;e--;)this.add(C,e,C[e]||0,t[e],0,0,0,0,0,1)}},u9("roundProps",s9),u9("modifiers"),u9("snap",zi))||E8;Q.version=v1.version=m1.version="3.12.5",hi=1,j7()&&Y3(),P.Power0,P.Power1,P.Power2,P.Power3,P.Power4,P.Linear,P.Quad,P.Cubic,P.Quart,P.Quint,P.Strong,P.Elastic,P.Back,P.SteppedEase,P.Bounce,P.Sine,P.Expo,P.Circ;/*!
|
|
11182
|
+
*/var _1={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},N3={duration:.5,overwrite:!1,delay:0},D7,d1,j,$1=1e8,N=1/$1,N7=Math.PI*2,ku=N7/4,$u=0,si=Math.sqrt,Au=Math.cos,Su=Math.sin,a1=function(C){return typeof C=="string"},W=function(C){return typeof C=="function"},G1=function(C){return typeof C=="number"},R7=function(C){return typeof C>"u"},I1=function(C){return typeof C=="object"},M1=function(C){return C!==!1},j7=function(){return typeof window<"u"},Z8=function(C){return W(C)||a1(C)},ai=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},c1=Array.isArray,U7=/(?:-?\.?\d|\.)+/gi,ni=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,R3=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,q7=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,li=/[+-]=-?[.\d]+/,ri=/[^,'"\[\]\s]+/gi,Bu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,U,O1,W7,Y7,x1={},_8={},hi,di=function(C){return(_8=X2(C,x1))&&m1},G7=function(C,t){return console.warn("Invalid property",C,"set to",t,"Missing plugin? gsap.registerPlugin()")},Q5=function(C,t){return!t&&console.warn(C)},ci=function(C,t){return C&&(x1[C]=t)&&_8&&(_8[C]=t)||x1},C6=function(){return 0},Eu={suppressEvents:!0,isStart:!0,kill:!1},x8={suppressEvents:!0,kill:!1},Tu={suppressEvents:!0},K7={},p2=[],X7={},pi,b1={},J7={},vi=30,b8=[],Q7="",C9=function(C){var t=C[0],e,i;if(I1(t)||W(t)||(C=[C]),!(e=(t._gsap||{}).harness)){for(i=b8.length;i--&&!b8[i].targetTest(t););e=b8[i]}for(i=C.length;i--;)C[i]&&(C[i]._gsap||(C[i]._gsap=new Ri(C[i],e)))||C.splice(i,1);return C},K2=function(C){return C._gsap||C9(B1(C))[0]._gsap},Li=function(C,t,e){return(e=C[t])&&W(e)?C[t]():R7(e)&&C.getAttribute&&C.getAttribute(t)||e},f1=function(C,t){return(C=C.split(",")).forEach(t)||C},Y=function(C){return Math.round(C*1e5)/1e5||0},n1=function(C){return Math.round(C*1e7)/1e7||0},j3=function(C,t){var e=t.charAt(0),i=parseFloat(t.substr(2));return C=parseFloat(C),e==="+"?C+i:e==="-"?C-i:e==="*"?C*i:C/i},Pu=function(C,t){for(var e=t.length,i=0;C.indexOf(t[i])<0&&++i<e;);return i<e},y8=function(){var C=p2.length,t=p2.slice(0),e,i;for(X7={},p2.length=0,e=0;e<C;e++)i=t[e],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},gi=function(C,t,e,i){p2.length&&!d1&&y8(),C.render(t,e,d1&&t<0&&(C._initted||C._startAt)),p2.length&&!d1&&y8()},ui=function(C){var t=parseFloat(C);return(t||t===0)&&(C+"").match(ri).length<2?t:a1(C)?C.trim():C},Mi=function(C){return C},A1=function(C,t){for(var e in t)e in C||(C[e]=t[e]);return C},Iu=function(C){return function(t,e){for(var i in e)i in t||i==="duration"&&C||i==="ease"||(t[i]=e[i])}},X2=function(C,t){for(var e in t)C[e]=t[e];return C},fi=function o(C,t){for(var e in t)e!=="__proto__"&&e!=="constructor"&&e!=="prototype"&&(C[e]=I1(t[e])?o(C[e]||(C[e]={}),t[e]):t[e]);return C},z8=function(C,t){var e={},i;for(i in C)i in t||(e[i]=C[i]);return e},t6=function(C){var t=C.parent||U,e=C.keyframes?Iu(c1(C.keyframes)):A1;if(M1(C.inherit))for(;t;)e(C,t.vars.defaults),t=t.parent||t._dp;return C},Ou=function(C,t){for(var e=C.length,i=e===t.length;i&&e--&&C[e]===t[e];);return e<0},wi=function(C,t,e,i,s){var a=C[i],l;if(s)for(l=t[s];a&&a[s]>l;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=C[e],C[e]=t),t._next?t._next._prev=t:C[i]=t,t._prev=a,t.parent=t._dp=C,t},k8=function(C,t,e,i){e===void 0&&(e="_first"),i===void 0&&(i="_last");var s=t._prev,a=t._next;s?s._next=a:C[e]===t&&(C[e]=a),a?a._prev=s:C[i]===t&&(C[i]=s),t._next=t._prev=t.parent=null},v2=function(C,t){C.parent&&(!t||C.parent.autoRemoveChildren)&&C.parent.remove&&C.parent.remove(C),C._act=0},J2=function(C,t){if(C&&(!t||t._end>C._dur||t._start<0))for(var e=C;e;)e._dirty=1,e=e.parent;return C},Fu=function(C){for(var t=C.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return C},t9=function(C,t,e,i){return C._startAt&&(d1?C._startAt.revert(x8):C.vars.immediateRender&&!C.vars.autoRevert||C._startAt.render(t,!0,i))},Du=function o(C){return!C||C._ts&&o(C.parent)},mi=function(C){return C._repeat?U3(C._tTime,C=C.duration()+C._rDelay)*C:0},U3=function(C,t){var e=Math.floor(C/=t);return C&&e===C?e-1:e},$8=function(C,t){return(C-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},A8=function(C){return C._end=n1(C._start+(C._tDur/Math.abs(C._ts||C._rts||N)||0))},S8=function(C,t){var e=C._dp;return e&&e.smoothChildTiming&&C._ts&&(C._start=n1(e._time-(C._ts>0?t/C._ts:((C._dirty?C.totalDuration():C._tDur)-t)/-C._ts)),A8(C),e._dirty||J2(e,C)),C},Hi=function(C,t){var e;if((t._time||!t._dur&&t._initted||t._start<C._time&&(t._dur||!t.add))&&(e=$8(C.rawTime(),t),(!t._dur||i6(0,t.totalDuration(),e)-t._tTime>N)&&t.render(e,!0)),J2(C,t)._dp&&C._initted&&C._time>=C._dur&&C._ts){if(C._dur<C.duration())for(e=C;e._dp;)e.rawTime()>=0&&e.totalTime(e._tTime),e=e._dp;C._zTime=-N}},F1=function(C,t,e,i){return t.parent&&v2(t),t._start=n1((G1(e)?e:e||C!==U?S1(C,e,t):C._time)+t._delay),t._end=n1(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),wi(C,t,"_first","_last",C._sort?"_start":0),e9(t)||(C._recent=t),i||Hi(C,t),C._ts<0&&S8(C,C._tTime),C},Vi=function(C,t){return(x1.ScrollTrigger||G7("scrollTrigger",t))&&x1.ScrollTrigger.create(t,C)},Zi=function(C,t,e,i,s){if(d9(C,t,s),!C._initted)return 1;if(!e&&C._pt&&!d1&&(C._dur&&C.vars.lazy!==!1||!C._dur&&C.vars.lazy)&&pi!==z1.frame)return p2.push(C),C._lazy=[s,i],1},Nu=function o(C){var t=C.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||o(t))},e9=function(C){var t=C.data;return t==="isFromStart"||t==="isStart"},Ru=function(C,t,e,i){var s=C.ratio,a=t<0||!t&&(!C._start&&Nu(C)&&!(!C._initted&&e9(C))||(C._ts<0||C._dp._ts<0)&&!e9(C))?0:1,l=C._rDelay,r=0,h,d,c;if(l&&C._repeat&&(r=i6(0,C._tDur,t),d=U3(r,l),C._yoyo&&d&1&&(a=1-a),d!==U3(C._tTime,l)&&(s=1-a,C.vars.repeatRefresh&&C._initted&&C.invalidate())),a!==s||d1||i||C._zTime===N||!t&&C._zTime){if(!C._initted&&Zi(C,t,i,e,r))return;for(c=C._zTime,C._zTime=t||(e?N:0),e||(e=t&&!c),C.ratio=a,C._from&&(a=1-a),C._time=0,C._tTime=r,h=C._pt;h;)h.r(a,h.d),h=h._next;t<0&&t9(C,t,e,!0),C._onUpdate&&!e&&y1(C,"onUpdate"),r&&C._repeat&&!e&&C.parent&&y1(C,"onRepeat"),(t>=C._tDur||t<0)&&C.ratio===a&&(a&&v2(C,1),!e&&!d1&&(y1(C,a?"onComplete":"onReverseComplete",!0),C._prom&&C._prom()))}else C._zTime||(C._zTime=t)},ju=function(C,t,e){var i;if(e>t)for(i=C._first;i&&i._start<=e;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=C._last;i&&i._start>=e;){if(i.data==="isPause"&&i._start<t)return i;i=i._prev}},q3=function(C,t,e,i){var s=C._repeat,a=n1(t)||0,l=C._tTime/C._tDur;return l&&!i&&(C._time*=a/C._dur),C._dur=a,C._tDur=s?s<0?1e10:n1(a*(s+1)+C._rDelay*s):a,l>0&&!i&&S8(C,C._tTime=C._tDur*l),C.parent&&A8(C),e||J2(C.parent,C),C},_i=function(C){return C instanceof v1?J2(C):q3(C,C._dur)},Uu={_start:0,endTime:C6,totalDuration:C6},S1=function o(C,t,e){var i=C.labels,s=C._recent||Uu,a=C.duration()>=$1?s.endTime(!1):C._dur,l,r,h;return a1(t)&&(isNaN(t)||t in i)?(r=t.charAt(0),h=t.substr(-1)==="%",l=t.indexOf("="),r==="<"||r===">"?(l>=0&&(t=t.replace(/=/,"")),(r==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(h?(l<0?s:e).totalDuration()/100:1)):l<0?(t in i||(i[t]=a),i[t]):(r=parseFloat(t.charAt(l-1)+t.substr(l+1)),h&&e&&(r=r/100*(c1(e)?e[0]:e).totalDuration()),l>1?o(C,t.substr(0,l-1),e)+r:a+r)):t==null?a:+t},e6=function(C,t,e){var i=G1(t[1]),s=(i?2:1)+(C<2?0:1),a=t[s],l,r;if(i&&(a.duration=t[1]),a.parent=e,C){for(l=a,r=e;r&&!("immediateRender"in l);)l=r.vars.defaults||{},r=M1(r.vars.inherit)&&r.parent;a.immediateRender=M1(l.immediateRender),C<2?a.runBackwards=1:a.startAt=t[s-1]}return new Q(t[0],a,t[s+1])},L2=function(C,t){return C||C===0?t(C):t},i6=function(C,t,e){return e<C?C:e>t?t:e},p1=function(C,t){return!a1(C)||!(t=Bu.exec(C))?"":t[1]},qu=function(C,t,e){return L2(e,function(i){return i6(C,t,i)})},i9=[].slice,xi=function(C,t){return C&&I1(C)&&"length"in C&&(!t&&!C.length||C.length-1 in C&&I1(C[0]))&&!C.nodeType&&C!==O1},Wu=function(C,t,e){return e===void 0&&(e=[]),C.forEach(function(i){var s;return a1(i)&&!t||xi(i,1)?(s=e).push.apply(s,B1(i)):e.push(i)})||e},B1=function(C,t,e){return j&&!t&&j.selector?j.selector(C):a1(C)&&!e&&(W7||!Y3())?i9.call((t||Y7).querySelectorAll(C),0):c1(C)?Wu(C,e):xi(C)?i9.call(C,0):C?[C]:[]},o9=function(C){return C=B1(C)[0]||Q5("Invalid scope")||{},function(t){var e=C.current||C.nativeElement||C;return B1(t,e.querySelectorAll?e:e===C?Q5("Invalid scope")||Y7.createElement("div"):C)}},bi=function(C){return C.sort(function(){return .5-Math.random()})},yi=function(C){if(W(C))return C;var t=I1(C)?C:{each:C},e=Q2(t.ease),i=t.from||0,s=parseFloat(t.base)||0,a={},l=i>0&&i<1,r=isNaN(i)||l,h=t.axis,d=i,c=i;return a1(i)?d=c={center:.5,edges:.5,end:1}[i]||0:!l&&r&&(d=i[0],c=i[1]),function(p,L,g){var v=(g||t).length,u=a[v],M,f,w,V,_,z,m,Z,x;if(!u){if(x=t.grid==="auto"?0:(t.grid||[1,$1])[1],!x){for(m=-$1;m<(m=g[x++].getBoundingClientRect().left)&&x<v;);x<v&&x--}for(u=a[v]=[],M=r?Math.min(x,v)*d-.5:i%x,f=x===$1?0:r?v*c/x-.5:i/x|0,m=0,Z=$1,z=0;z<v;z++)w=z%x-M,V=f-(z/x|0),u[z]=_=h?Math.abs(h==="y"?V:w):si(w*w+V*V),_>m&&(m=_),_<Z&&(Z=_);i==="random"&&bi(u),u.max=m-Z,u.min=Z,u.v=v=(parseFloat(t.amount)||parseFloat(t.each)*(x>v?v-1:h?h==="y"?v/x:x:Math.max(x,v/x))||0)*(i==="edges"?-1:1),u.b=v<0?s-v:s,u.u=p1(t.amount||t.each)||0,e=e&&v<0?Fi(e):e}return v=(u[p]-u.min)/u.max||0,n1(u.b+(e?e(v):v)*u.v)+u.u}},s9=function(C){var t=Math.pow(10,((C+"").split(".")[1]||"").length);return function(e){var i=n1(Math.round(parseFloat(e)/C)*C*t);return(i-i%1)/t+(G1(e)?0:p1(e))}},zi=function(C,t){var e=c1(C),i,s;return!e&&I1(C)&&(i=e=C.radius||$1,C.values?(C=B1(C.values),(s=!G1(C[0]))&&(i*=i)):C=s9(C.increment)),L2(t,e?W(C)?function(a){return s=C(a),Math.abs(s-a)<=i?s:a}:function(a){for(var l=parseFloat(s?a.x:a),r=parseFloat(s?a.y:0),h=$1,d=0,c=C.length,p,L;c--;)s?(p=C[c].x-l,L=C[c].y-r,p=p*p+L*L):p=Math.abs(C[c]-l),p<h&&(h=p,d=c);return d=!i||h<=i?C[d]:a,s||d===a||G1(a)?d:d+p1(a)}:s9(C))},ki=function(C,t,e,i){return L2(c1(C)?!t:e===!0?!!(e=0):!i,function(){return c1(C)?C[~~(Math.random()*C.length)]:(e=e||1e-5)&&(i=e<1?Math.pow(10,(e+"").length-2):1)&&Math.floor(Math.round((C-e/2+Math.random()*(t-C+e*.99))/e)*e*i)/i})},Yu=function(){for(var C=arguments.length,t=new Array(C),e=0;e<C;e++)t[e]=arguments[e];return function(i){return t.reduce(function(s,a){return a(s)},i)}},Gu=function(C,t){return function(e){return C(parseFloat(e))+(t||p1(e))}},Ku=function(C,t,e){return Ai(C,t,0,1,e)},$i=function(C,t,e){return L2(e,function(i){return C[~~t(i)]})},Xu=function o(C,t,e){var i=t-C;return c1(C)?$i(C,o(0,C.length),t):L2(e,function(s){return(i+(s-C)%i)%i+C})},Ju=function o(C,t,e){var i=t-C,s=i*2;return c1(C)?$i(C,o(0,C.length-1),t):L2(e,function(a){return a=(s+(a-C)%s)%s||0,C+(a>i?s-a:a)})},o6=function(C){for(var t=0,e="",i,s,a,l;~(i=C.indexOf("random(",t));)a=C.indexOf(")",i),l=C.charAt(i+7)==="[",s=C.substr(i+7,a-i-7).match(l?ri:U7),e+=C.substr(t,i-t)+ki(l?s:+s[0],l?0:+s[1],+s[2]||1e-5),t=a+1;return e+C.substr(t,C.length-t)},Ai=function(C,t,e,i,s){var a=t-C,l=i-e;return L2(s,function(r){return e+((r-C)/a*l||0)})},Qu=function o(C,t,e,i){var s=isNaN(C+t)?0:function(L){return(1-L)*C+L*t};if(!s){var a=a1(C),l={},r,h,d,c,p;if(e===!0&&(i=1)&&(e=null),a)C={p:C},t={p:t};else if(c1(C)&&!c1(t)){for(d=[],c=C.length,p=c-2,h=1;h<c;h++)d.push(o(C[h-1],C[h]));c--,s=function(g){g*=c;var v=Math.min(p,~~g);return d[v](g-v)},e=t}else i||(C=X2(c1(C)?[]:{},C));if(!d){for(r in t)r9.call(l,C,r,"get",t[r]);s=function(g){return v9(g,l)||(a?C.p:C)}}}return L2(e,s)},Si=function(C,t,e){var i=C.labels,s=$1,a,l,r;for(a in i)l=i[a]-t,l<0==!!e&&l&&s>(l=Math.abs(l))&&(r=a,s=l);return r},y1=function(C,t,e){var i=C.vars,s=i[t],a=j,l=C._ctx,r,h,d;if(s)return r=i[t+"Params"],h=i.callbackScope||C,e&&p2.length&&y8(),l&&(j=l),d=r?s.apply(h,r):s.call(h),j=a,d},s6=function(C){return v2(C),C.scrollTrigger&&C.scrollTrigger.kill(!!d1),C.progress()<1&&y1(C,"onInterrupt"),C},W3,Bi=[],Ei=function(C){if(C)if(C=!C.name&&C.default||C,j7()||C.headless){var t=C.name,e=W(C),i=t&&!e&&C.init?function(){this._props=[]}:C,s={init:C6,render:v9,add:r9,kill:LM,modifier:vM,rawVars:0},a={targetTest:0,get:0,getSetter:p9,aliases:{},register:0};if(Y3(),C!==i){if(b1[t])return;A1(i,A1(z8(C,s),a)),X2(i.prototype,X2(s,z8(C,a))),b1[i.prop=t]=i,C.targetTest&&(b8.push(i),K7[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ci(t,i),C.register&&C.register(m1,i,w1)}else Bi.push(C)},F=255,a6={aqua:[0,F,F],lime:[0,F,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,F],navy:[0,0,128],white:[F,F,F],olive:[128,128,0],yellow:[F,F,0],orange:[F,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[F,0,0],pink:[F,192,203],cyan:[0,F,F],transparent:[F,F,F,0]},a9=function(C,t,e){return C+=C<0?1:C>1?-1:0,(C*6<1?t+(e-t)*C*6:C<.5?e:C*3<2?t+(e-t)*(2/3-C)*6:t)*F+.5|0},Ti=function(C,t,e){var i=C?G1(C)?[C>>16,C>>8&F,C&F]:0:a6.black,s,a,l,r,h,d,c,p,L,g;if(!i){if(C.substr(-1)===","&&(C=C.substr(0,C.length-1)),a6[C])i=a6[C];else if(C.charAt(0)==="#"){if(C.length<6&&(s=C.charAt(1),a=C.charAt(2),l=C.charAt(3),C="#"+s+s+a+a+l+l+(C.length===5?C.charAt(4)+C.charAt(4):"")),C.length===9)return i=parseInt(C.substr(1,6),16),[i>>16,i>>8&F,i&F,parseInt(C.substr(7),16)/255];C=parseInt(C.substr(1),16),i=[C>>16,C>>8&F,C&F]}else if(C.substr(0,3)==="hsl"){if(i=g=C.match(U7),!t)r=+i[0]%360/360,h=+i[1]/100,d=+i[2]/100,a=d<=.5?d*(h+1):d+h-d*h,s=d*2-a,i.length>3&&(i[3]*=1),i[0]=a9(r+1/3,s,a),i[1]=a9(r,s,a),i[2]=a9(r-1/3,s,a);else if(~C.indexOf("="))return i=C.match(ni),e&&i.length<4&&(i[3]=1),i}else i=C.match(U7)||a6.transparent;i=i.map(Number)}return t&&!g&&(s=i[0]/F,a=i[1]/F,l=i[2]/F,c=Math.max(s,a,l),p=Math.min(s,a,l),d=(c+p)/2,c===p?r=h=0:(L=c-p,h=d>.5?L/(2-c-p):L/(c+p),r=c===s?(a-l)/L+(a<l?6:0):c===a?(l-s)/L+2:(s-a)/L+4,r*=60),i[0]=~~(r+.5),i[1]=~~(h*100+.5),i[2]=~~(d*100+.5)),e&&i.length<4&&(i[3]=1),i},Pi=function(C){var t=[],e=[],i=-1;return C.split(g2).forEach(function(s){var a=s.match(R3)||[];t.push.apply(t,a),e.push(i+=a.length+1)}),t.c=e,t},Ii=function(C,t,e){var i="",s=(C+i).match(g2),a=t?"hsla(":"rgba(",l=0,r,h,d,c;if(!s)return C;if(s=s.map(function(p){return(p=Ti(p,t,1))&&a+(t?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),e&&(d=Pi(C),r=e.c,r.join(i)!==d.c.join(i)))for(h=C.replace(g2,"1").split(R3),c=h.length-1;l<c;l++)i+=h[l]+(~r.indexOf(l)?s.shift()||a+"0,0,0,0)":(d.length?d:s.length?s:e).shift());if(!h)for(h=C.split(g2),c=h.length-1;l<c;l++)i+=h[l]+s[l];return i+h[c]},g2=function(){var o="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",C;for(C in a6)o+="|"+C+"\\b";return new RegExp(o+")","gi")}(),CM=/hsl[a]?\(/,Oi=function(C){var t=C.join(" "),e;if(g2.lastIndex=0,g2.test(t))return e=CM.test(t),C[1]=Ii(C[1],e),C[0]=Ii(C[0],e,Pi(C[1])),!0},n6,z1=function(){var o=Date.now,C=500,t=33,e=o(),i=e,s=1e3/240,a=s,l=[],r,h,d,c,p,L,g=function v(u){var M=o()-i,f=u===!0,w,V,_,z;if((M>C||M<0)&&(e+=M-t),i+=M,_=i-e,w=_-a,(w>0||f)&&(z=++c.frame,p=_-c.time*1e3,c.time=_=_/1e3,a+=w+(w>=s?4:s-w),V=1),f||(r=h(v)),V)for(L=0;L<l.length;L++)l[L](_,p,z,u)};return c={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(u){return p/(1e3/(u||60))},wake:function(){hi&&(!W7&&j7()&&(O1=W7=window,Y7=O1.document||{},x1.gsap=m1,(O1.gsapVersions||(O1.gsapVersions=[])).push(m1.version),di(_8||O1.GreenSockGlobals||!O1.gsap&&O1||{}),Bi.forEach(Ei)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,r&&c.sleep(),h=d||function(u){return setTimeout(u,a-c.time*1e3+1|0)},n6=1,g(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(r),n6=0,h=C6},lagSmoothing:function(u,M){C=u||1/0,t=Math.min(M||33,C)},fps:function(u){s=1e3/(u||240),a=c.time*1e3+s},add:function(u,M,f){var w=M?function(V,_,z,m){u(V,_,z,m),c.remove(w)}:u;return c.remove(u),l[f?"unshift":"push"](w),Y3(),w},remove:function(u,M){~(M=l.indexOf(u))&&l.splice(M,1)&&L>=M&&L--},_listeners:l},c}(),Y3=function(){return!n6&&z1.wake()},P={},tM=/^[\d.\-M][\d.\-,\s]/,eM=/["']/g,iM=function(C){for(var t={},e=C.substr(1,C.length-3).split(":"),i=e[0],s=1,a=e.length,l,r,h;s<a;s++)r=e[s],l=s!==a-1?r.lastIndexOf(","):r.length,h=r.substr(0,l),t[i]=isNaN(h)?h.replace(eM,"").trim():+h,i=r.substr(l+1).trim();return t},oM=function(C){var t=C.indexOf("(")+1,e=C.indexOf(")"),i=C.indexOf("(",t);return C.substring(t,~i&&i<e?C.indexOf(")",e+1):e)},sM=function(C){var t=(C+"").split("("),e=P[t[0]];return e&&t.length>1&&e.config?e.config.apply(null,~C.indexOf("{")?[iM(t[1])]:oM(C).split(",").map(ui)):P._CE&&tM.test(C)?P._CE("",C):e},Fi=function(C){return function(t){return 1-C(1-t)}},Di=function o(C,t){for(var e=C._first,i;e;)e instanceof v1?o(e,t):e.vars.yoyoEase&&(!e._yoyo||!e._repeat)&&e._yoyo!==t&&(e.timeline?o(e.timeline,t):(i=e._ease,e._ease=e._yEase,e._yEase=i,e._yoyo=t)),e=e._next},Q2=function(C,t){return C&&(W(C)?C:P[C]||sM(C))||t},C3=function(C,t,e,i){e===void 0&&(e=function(r){return 1-t(1-r)}),i===void 0&&(i=function(r){return r<.5?t(r*2)/2:1-t((1-r)*2)/2});var s={easeIn:t,easeOut:e,easeInOut:i},a;return f1(C,function(l){P[l]=x1[l]=s,P[a=l.toLowerCase()]=e;for(var r in s)P[a+(r==="easeIn"?".in":r==="easeOut"?".out":".inOut")]=P[l+"."+r]=s[r]}),s},Ni=function(C){return function(t){return t<.5?(1-C(1-t*2))/2:.5+C((t-.5)*2)/2}},n9=function o(C,t,e){var i=t>=1?t:1,s=(e||(C?.3:.45))/(t<1?t:1),a=s/N7*(Math.asin(1/i)||0),l=function(d){return d===1?1:i*Math.pow(2,-10*d)*Su((d-a)*s)+1},r=C==="out"?l:C==="in"?function(h){return 1-l(1-h)}:Ni(l);return s=N7/s,r.config=function(h,d){return o(C,h,d)},r},l9=function o(C,t){t===void 0&&(t=1.70158);var e=function(a){return a?--a*a*((t+1)*a+t)+1:0},i=C==="out"?e:C==="in"?function(s){return 1-e(1-s)}:Ni(e);return i.config=function(s){return o(C,s)},i};f1("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,C){var t=C<5?C+1:C;C3(o+",Power"+(t-1),C?function(e){return Math.pow(e,t)}:function(e){return e},function(e){return 1-Math.pow(1-e,t)},function(e){return e<.5?Math.pow(e*2,t)/2:1-Math.pow((1-e)*2,t)/2})}),P.Linear.easeNone=P.none=P.Linear.easeIn,C3("Elastic",n9("in"),n9("out"),n9()),function(o,C){var t=1/C,e=2*t,i=2.5*t,s=function(l){return l<t?o*l*l:l<e?o*Math.pow(l-1.5/C,2)+.75:l<i?o*(l-=2.25/C)*l+.9375:o*Math.pow(l-2.625/C,2)+.984375};C3("Bounce",function(a){return 1-s(1-a)},s)}(7.5625,2.75),C3("Expo",function(o){return o?Math.pow(2,10*(o-1)):0}),C3("Circ",function(o){return-(si(1-o*o)-1)}),C3("Sine",function(o){return o===1?1:-Au(o*ku)+1}),C3("Back",l9("in"),l9("out"),l9()),P.SteppedEase=P.steps=x1.SteppedEase={config:function(C,t){C===void 0&&(C=1);var e=1/C,i=C+(t?0:1),s=t?1:0,a=1-N;return function(l){return((i*i6(0,a,l)|0)+s)*e}}},N3.ease=P["quad.out"],f1("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(o){return Q7+=o+","+o+"Params,"});var Ri=function(C,t){this.id=$u++,C._gsap=this,this.target=C,this.harness=t,this.get=t?t.get:Li,this.set=t?t.getSetter:p9},l6=function(){function o(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,q3(this,+t.duration,1,1),this.data=t.data,j&&(this._ctx=j,j.data.push(this)),n6||z1.wake()}var C=o.prototype;return C.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},C.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},C.totalDuration=function(e){return arguments.length?(this._dirty=0,q3(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},C.totalTime=function(e,i){if(Y3(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(S8(this,e),!s._dp||s.parent||Hi(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&F1(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===N||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),gi(this,e,i)),this},C.time=function(e,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+mi(this))%(this._dur+this._rDelay)||(e?this._dur:0),i):this._time},C.totalProgress=function(e,i){return arguments.length?this.totalTime(this.totalDuration()*e,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},C.progress=function(e,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+mi(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},C.iteration=function(e,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*s,i):this._repeat?U3(this._tTime,s)+1:1},C.timeScale=function(e,i){if(!arguments.length)return this._rts===-N?0:this._rts;if(this._rts===e)return this;var s=this.parent&&this._ts?$8(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-N?0:this._rts,this.totalTime(i6(-Math.abs(this._delay),this._tDur,s),i!==!1),A8(this),Fu(this)},C.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Y3(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==N&&(this._tTime-=N)))),this):this._ps},C.startTime=function(e){if(arguments.length){this._start=e;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&F1(i,this,e-this._delay),this}return this._start},C.endTime=function(e){return this._start+(M1(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},C.rawTime=function(e){var i=this.parent||this._dp;return i?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$8(i.rawTime(e),this):this._tTime:this._tTime},C.revert=function(e){e===void 0&&(e=Tu);var i=d1;return d1=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!=="nested"&&e.kill!==!1&&this.kill(),d1=i,this},C.globalTime=function(e){for(var i=this,s=arguments.length?e:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(e):s},C.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,_i(this)):this._repeat===-2?1/0:this._repeat},C.repeatDelay=function(e){if(arguments.length){var i=this._time;return this._rDelay=e,_i(this),i?this.time(i):this}return this._rDelay},C.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},C.seek=function(e,i){return this.totalTime(S1(this,e),M1(i))},C.restart=function(e,i){return this.play().totalTime(e?-this._delay:0,M1(i))},C.play=function(e,i){return e!=null&&this.seek(e,i),this.reversed(!1).paused(!1)},C.reverse=function(e,i){return e!=null&&this.seek(e||this.totalDuration(),i),this.reversed(!0).paused(!1)},C.pause=function(e,i){return e!=null&&this.seek(e,i),this.paused(!0)},C.resume=function(){return this.paused(!1)},C.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-N:0)),this):this._rts<0},C.invalidate=function(){return this._initted=this._act=0,this._zTime=-N,this},C.isActive=function(){var e=this.parent||this._dp,i=this._start,s;return!!(!e||this._ts&&this._initted&&e.isActive()&&(s=e.rawTime(!0))>=i&&s<this.endTime(!0)-N)},C.eventCallback=function(e,i,s){var a=this.vars;return arguments.length>1?(i?(a[e]=i,s&&(a[e+"Params"]=s),e==="onUpdate"&&(this._onUpdate=i)):delete a[e],this):a[e]},C.then=function(e){var i=this;return new Promise(function(s){var a=W(e)?e:Mi,l=function(){var h=i.then;i.then=null,W(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=h),s(a),i.then=h};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},C.kill=function(){s6(this)},o}();A1(l6.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-N,_prom:0,_ps:!1,_rts:1});var v1=function(o){oi(C,o);function C(e,i){var s;return e===void 0&&(e={}),s=o.call(this,e)||this,s.labels={},s.smoothChildTiming=!!e.smoothChildTiming,s.autoRemoveChildren=!!e.autoRemoveChildren,s._sort=M1(e.sortChildren),U&&F1(e.parent||U,Y1(s),i),e.reversed&&s.reverse(),e.paused&&s.paused(!0),e.scrollTrigger&&Vi(Y1(s),e.scrollTrigger),s}var t=C.prototype;return t.to=function(i,s,a){return e6(0,arguments,this),this},t.from=function(i,s,a){return e6(1,arguments,this),this},t.fromTo=function(i,s,a,l){return e6(2,arguments,this),this},t.set=function(i,s,a){return s.duration=0,s.parent=this,t6(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Q(i,s,S1(this,a),1),this},t.call=function(i,s,a){return F1(this,Q.delayedCall(0,i,s),a)},t.staggerTo=function(i,s,a,l,r,h,d){return a.duration=s,a.stagger=a.stagger||l,a.onComplete=h,a.onCompleteParams=d,a.parent=this,new Q(i,a,S1(this,r)),this},t.staggerFrom=function(i,s,a,l,r,h,d){return a.runBackwards=1,t6(a).immediateRender=M1(a.immediateRender),this.staggerTo(i,s,a,l,r,h,d)},t.staggerFromTo=function(i,s,a,l,r,h,d,c){return l.startAt=a,t6(l).immediateRender=M1(l.immediateRender),this.staggerTo(i,s,l,r,h,d,c)},t.render=function(i,s,a){var l=this._time,r=this._dirty?this.totalDuration():this._tDur,h=this._dur,d=i<=0?0:n1(i),c=this._zTime<0!=i<0&&(this._initted||!h),p,L,g,v,u,M,f,w,V,_,z,m;if(this!==U&&d>r&&i>=0&&(d=r),d!==this._tTime||a||c){if(l!==this._time&&h&&(d+=this._time-l,i+=this._time-l),p=d,V=this._start,w=this._ts,M=!w,c&&(h||(l=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(z=this._yoyo,u=h+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(u*100+i,s,a);if(p=n1(d%u),d===r?(v=this._repeat,p=h):(v=~~(d/u),v&&v===d/u&&(p=h,v--),p>h&&(p=h)),_=U3(this._tTime,u),!l&&this._tTime&&_!==v&&this._tTime-_*u-this._dur<=0&&(_=v),z&&v&1&&(p=h-p,m=1),v!==_&&!this._lock){var Z=z&&_&1,x=Z===(z&&v&1);if(v<_&&(Z=!Z),l=Z?0:d%h?h:d,this._lock=1,this.render(l||(m?0:n1(v*u)),s,!h)._lock=0,this._tTime=d,!s&&this.parent&&y1(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),l&&l!==this._time||M!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,r=this._tDur,x&&(this._lock=2,l=Z?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!M)return this;Di(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=ju(this,n1(l),n1(p)),f&&(d-=p-(p=f._start))),this._tTime=d,this._time=p,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,l=0),!l&&p&&!s&&!v&&(y1(this,"onStart"),this._tTime!==d))return this;if(p>=l&&i>=0)for(L=this._first;L;){if(g=L._next,(L._act||p>=L._start)&&L._ts&&f!==L){if(L.parent!==this)return this.render(i,s,a);if(L.render(L._ts>0?(p-L._start)*L._ts:(L._dirty?L.totalDuration():L._tDur)+(p-L._start)*L._ts,s,a),p!==this._time||!this._ts&&!M){f=0,g&&(d+=this._zTime=-N);break}}L=g}else{L=this._last;for(var A=i<0?i:p;L;){if(g=L._prev,(L._act||A<=L._end)&&L._ts&&f!==L){if(L.parent!==this)return this.render(i,s,a);if(L.render(L._ts>0?(A-L._start)*L._ts:(L._dirty?L.totalDuration():L._tDur)+(A-L._start)*L._ts,s,a||d1&&(L._initted||L._startAt)),p!==this._time||!this._ts&&!M){f=0,g&&(d+=this._zTime=A?-N:N);break}}L=g}}if(f&&!s&&(this.pause(),f.render(p>=l?0:-N)._zTime=p>=l?1:-1,this._ts))return this._start=V,A8(this),this.render(i,s,a);this._onUpdate&&!s&&y1(this,"onUpdate",!0),(d===r&&this._tTime>=this.totalDuration()||!d&&l)&&(V===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((i||!h)&&(d===r&&this._ts>0||!d&&this._ts<0)&&v2(this,1),!s&&!(i<0&&!l)&&(d||l||!r)&&(y1(this,d===r&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<r&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(i,s){var a=this;if(G1(s)||(s=S1(this,s,i)),!(i instanceof l6)){if(c1(i))return i.forEach(function(l){return a.add(l,s)}),this;if(a1(i))return this.addLabel(i,s);if(W(i))i=Q.delayedCall(0,i);else return this}return this!==i?F1(this,i,s):this},t.getChildren=function(i,s,a,l){i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),l===void 0&&(l=-$1);for(var r=[],h=this._first;h;)h._start>=l&&(h instanceof Q?s&&r.push(h):(a&&r.push(h),i&&r.push.apply(r,h.getChildren(!0,s,a)))),h=h._next;return r},t.getById=function(i){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===i)return s[a]},t.remove=function(i){return a1(i)?this.removeLabel(i):W(i)?this.killTweensOf(i):(k8(this,i),i===this._recent&&(this._recent=this._last),J2(this))},t.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=n1(z1.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),o.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},t.addLabel=function(i,s){return this.labels[i]=S1(this,s),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,s,a){var l=Q.delayedCall(0,s||C6,a);return l.data="isPause",this._hasPause=1,F1(this,l,S1(this,i))},t.removePause=function(i){var s=this._first;for(i=S1(this,i);s;)s._start===i&&s.data==="isPause"&&v2(s),s=s._next},t.killTweensOf=function(i,s,a){for(var l=this.getTweensOf(i,a),r=l.length;r--;)u2!==l[r]&&l[r].kill(i,s);return this},t.getTweensOf=function(i,s){for(var a=[],l=B1(i),r=this._first,h=G1(s),d;r;)r instanceof Q?Pu(r._targets,l)&&(h?(!u2||r._initted&&r._ts)&&r.globalTime(0)<=s&&r.globalTime(r.totalDuration())>s:!s||r.isActive())&&a.push(r):(d=r.getTweensOf(l,s)).length&&a.push.apply(a,d),r=r._next;return a},t.tweenTo=function(i,s){s=s||{};var a=this,l=S1(a,i),r=s,h=r.startAt,d=r.onStart,c=r.onStartParams,p=r.immediateRender,L,g=Q.to(a,A1({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:s.duration||Math.abs((l-(h&&"time"in h?h.time:a._time))/a.timeScale())||N,onStart:function(){if(a.pause(),!L){var u=s.duration||Math.abs((l-(h&&"time"in h?h.time:a._time))/a.timeScale());g._dur!==u&&q3(g,u,0,1).render(g._time,!0,!0),L=1}d&&d.apply(g,c||[])}},s));return p?g.render(0):g},t.tweenFromTo=function(i,s,a){return this.tweenTo(s,A1({startAt:{time:S1(this,i)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),Si(this,S1(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),Si(this,S1(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+N)},t.shiftChildren=function(i,s,a){a===void 0&&(a=0);for(var l=this._first,r=this.labels,h;l;)l._start>=a&&(l._start+=i,l._end+=i),l=l._next;if(s)for(h in r)r[h]>=a&&(r[h]+=i);return J2(this)},t.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return o.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),J2(this)},t.totalDuration=function(i){var s=0,a=this,l=a._last,r=$1,h,d,c;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(c=a.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),d=l._start,d>r&&a._sort&&l._ts&&!a._lock?(a._lock=1,F1(a,l,d-l._delay,1)._lock=0):r=d,d<0&&l._ts&&(s-=d,(!c&&!a._dp||c&&c.smoothChildTiming)&&(a._start+=d/a._ts,a._time-=d,a._tTime-=d),a.shiftChildren(-d,!1,-1/0),r=0),l._end>s&&l._ts&&(s=l._end),l=h;q3(a,a===U&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},C.updateRoot=function(i){if(U._ts&&(gi(U,$8(i,U)),pi=z1.frame),z1.frame>=vi){vi+=_1.autoSleep||120;var s=U._first;if((!s||!s._ts)&&_1.autoSleep&&z1._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||z1.sleep()}}},C}(l6);A1(v1.prototype,{_lock:0,_hasPause:0,_forcing:0});var aM=function(C,t,e,i,s,a,l){var r=new w1(this._pt,C,t,0,1,Gi,null,s),h=0,d=0,c,p,L,g,v,u,M,f;for(r.b=e,r.e=i,e+="",i+="",(M=~i.indexOf("random("))&&(i=o6(i)),a&&(f=[e,i],a(f,C,t),e=f[0],i=f[1]),p=e.match(q7)||[];c=q7.exec(i);)g=c[0],v=i.substring(h,c.index),L?L=(L+1)%5:v.substr(-5)==="rgba("&&(L=1),g!==p[d++]&&(u=parseFloat(p[d-1])||0,r._pt={_next:r._pt,p:v||d===1?v:",",s:u,c:g.charAt(1)==="="?j3(u,g)-u:parseFloat(g)-u,m:L&&L<4?Math.round:0},h=q7.lastIndex);return r.c=h<i.length?i.substring(h,i.length):"",r.fp=l,(li.test(i)||M)&&(r.e=0),this._pt=r,r},r9=function(C,t,e,i,s,a,l,r,h,d){W(i)&&(i=i(s||0,C,a));var c=C[t],p=e!=="get"?e:W(c)?h?C[t.indexOf("set")||!W(C["get"+t.substr(3)])?t:"get"+t.substr(3)](h):C[t]():c,L=W(c)?h?dM:Wi:c9,g;if(a1(i)&&(~i.indexOf("random(")&&(i=o6(i)),i.charAt(1)==="="&&(g=j3(p,i)+(p1(p)||0),(g||g===0)&&(i=g))),!d||p!==i||h9)return!isNaN(p*i)&&i!==""?(g=new w1(this._pt,C,t,+p||0,i-(p||0),typeof c=="boolean"?pM:Yi,0,L),h&&(g.fp=h),l&&g.modifier(l,this,C),this._pt=g):(!c&&!(t in C)&&G7(t,i),aM.call(this,C,t,p,i,L,r||_1.stringFilter,h))},nM=function(C,t,e,i,s){if(W(C)&&(C=r6(C,s,t,e,i)),!I1(C)||C.style&&C.nodeType||c1(C)||ai(C))return a1(C)?r6(C,s,t,e,i):C;var a={},l;for(l in C)a[l]=r6(C[l],s,t,e,i);return a},ji=function(C,t,e,i,s,a){var l,r,h,d;if(b1[C]&&(l=new b1[C]).init(s,l.rawVars?t[C]:nM(t[C],i,s,a,e),e,i,a)!==!1&&(e._pt=r=new w1(e._pt,s,C,0,1,l.render,l,0,l.priority),e!==W3))for(h=e._ptLookup[e._targets.indexOf(s)],d=l._props.length;d--;)h[l._props[d]]=r;return l},u2,h9,d9=function o(C,t,e){var i=C.vars,s=i.ease,a=i.startAt,l=i.immediateRender,r=i.lazy,h=i.onUpdate,d=i.runBackwards,c=i.yoyoEase,p=i.keyframes,L=i.autoRevert,g=C._dur,v=C._startAt,u=C._targets,M=C.parent,f=M&&M.data==="nested"?M.vars.targets:u,w=C._overwrite==="auto"&&!D7,V=C.timeline,_,z,m,Z,x,A,S,E,I,G,l1,C1,r1;if(V&&(!p||!s)&&(s="none"),C._ease=Q2(s,N3.ease),C._yEase=c?Fi(Q2(c===!0?s:c,N3.ease)):0,c&&C._yoyo&&!C._repeat&&(c=C._yEase,C._yEase=C._ease,C._ease=c),C._from=!V&&!!i.runBackwards,!V||p&&!i.stagger){if(E=u[0]?K2(u[0]).harness:0,C1=E&&i[E.prop],_=z8(i,K7),v&&(v._zTime<0&&v.progress(1),t<0&&d&&l&&!L?v.render(-1,!0):v.revert(d&&g?x8:Eu),v._lazy=0),a){if(v2(C._startAt=Q.set(u,A1({data:"isStart",overwrite:!1,parent:M,immediateRender:!0,lazy:!v&&M1(r),startAt:null,delay:0,onUpdate:h&&function(){return y1(C,"onUpdate")},stagger:0},a))),C._startAt._dp=0,C._startAt._sat=C,t<0&&(d1||!l&&!L)&&C._startAt.revert(x8),l&&g&&t<=0&&e<=0){t&&(C._zTime=t);return}}else if(d&&g&&!v){if(t&&(l=!1),m=A1({overwrite:!1,data:"isFromStart",lazy:l&&!v&&M1(r),immediateRender:l,stagger:0,parent:M},_),C1&&(m[E.prop]=C1),v2(C._startAt=Q.set(u,m)),C._startAt._dp=0,C._startAt._sat=C,t<0&&(d1?C._startAt.revert(x8):C._startAt.render(-1,!0)),C._zTime=t,!l)o(C._startAt,N,N);else if(!t)return}for(C._pt=C._ptCache=0,r=g&&M1(r)||r&&!g,z=0;z<u.length;z++){if(x=u[z],S=x._gsap||C9(u)[z]._gsap,C._ptLookup[z]=G={},X7[S.id]&&p2.length&&y8(),l1=f===u?z:f.indexOf(x),E&&(I=new E).init(x,C1||_,C,l1,f)!==!1&&(C._pt=Z=new w1(C._pt,x,I.name,0,1,I.render,I,0,I.priority),I._props.forEach(function(P1){G[P1]=Z}),I.priority&&(A=1)),!E||C1)for(m in _)b1[m]&&(I=ji(m,_,C,l1,x,f))?I.priority&&(A=1):G[m]=Z=r9.call(C,x,m,"get",_[m],l1,f,0,i.stringFilter);C._op&&C._op[z]&&C.kill(x,C._op[z]),w&&C._pt&&(u2=C,U.killTweensOf(x,G,C.globalTime(t)),r1=!C.parent,u2=0),C._pt&&r&&(X7[S.id]=1)}A&&Ki(C),C._onInit&&C._onInit(C)}C._onUpdate=h,C._initted=(!C._op||C._pt)&&!r1,p&&t<=0&&V.render($1,!0,!0)},lM=function(C,t,e,i,s,a,l,r){var h=(C._pt&&C._ptCache||(C._ptCache={}))[t],d,c,p,L;if(!h)for(h=C._ptCache[t]=[],p=C._ptLookup,L=C._targets.length;L--;){if(d=p[L][t],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==t&&d.fp!==t;)d=d._next;if(!d)return h9=1,C.vars[t]="+=0",d9(C,l),h9=0,r?Q5(t+" not eligible for reset"):1;h.push(d)}for(L=h.length;L--;)c=h[L],d=c._pt||c,d.s=(i||i===0)&&!s?i:d.s+(i||0)+a*d.c,d.c=e-d.s,c.e&&(c.e=Y(e)+p1(c.e)),c.b&&(c.b=d.s+p1(c.b))},rM=function(C,t){var e=C[0]?K2(C[0]).harness:0,i=e&&e.aliases,s,a,l,r;if(!i)return t;s=X2({},t);for(a in i)if(a in s)for(r=i[a].split(","),l=r.length;l--;)s[r[l]]=s[a];return s},hM=function(C,t,e,i){var s=t.ease||i||"power1.inOut",a,l;if(c1(t))l=e[C]||(e[C]=[]),t.forEach(function(r,h){return l.push({t:h/(t.length-1)*100,v:r,e:s})});else for(a in t)l=e[a]||(e[a]=[]),a==="ease"||l.push({t:parseFloat(C),v:t[a],e:s})},r6=function(C,t,e,i,s){return W(C)?C.call(t,e,i,s):a1(C)&&~C.indexOf("random(")?o6(C):C},Ui=Q7+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",qi={};f1(Ui+",id,stagger,delay,duration,paused,scrollTrigger",function(o){return qi[o]=1});var Q=function(o){oi(C,o);function C(e,i,s,a){var l;typeof i=="number"&&(s.duration=i,i=s,s=null),l=o.call(this,a?i:t6(i))||this;var r=l.vars,h=r.duration,d=r.delay,c=r.immediateRender,p=r.stagger,L=r.overwrite,g=r.keyframes,v=r.defaults,u=r.scrollTrigger,M=r.yoyoEase,f=i.parent||U,w=(c1(e)||ai(e)?G1(e[0]):"length"in i)?[e]:B1(e),V,_,z,m,Z,x,A,S;if(l._targets=w.length?C9(w):Q5("GSAP target "+e+" not found. https://gsap.com",!_1.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=L,g||p||Z8(h)||Z8(d)){if(i=l.vars,V=l.timeline=new v1({data:"nested",defaults:v||{},targets:f&&f.data==="nested"?f.vars.targets:w}),V.kill(),V.parent=V._dp=Y1(l),V._start=0,p||Z8(h)||Z8(d)){if(m=w.length,A=p&&yi(p),I1(p))for(Z in p)~Ui.indexOf(Z)&&(S||(S={}),S[Z]=p[Z]);for(_=0;_<m;_++)z=z8(i,qi),z.stagger=0,M&&(z.yoyoEase=M),S&&X2(z,S),x=w[_],z.duration=+r6(h,Y1(l),_,x,w),z.delay=(+r6(d,Y1(l),_,x,w)||0)-l._delay,!p&&m===1&&z.delay&&(l._delay=d=z.delay,l._start+=d,z.delay=0),V.to(x,z,A?A(_,x,w):0),V._ease=P.none;V.duration()?h=d=0:l.timeline=0}else if(g){t6(A1(V.vars.defaults,{ease:"none"})),V._ease=Q2(g.ease||i.ease||"none");var E=0,I,G,l1;if(c1(g))g.forEach(function(C1){return V.to(w,C1,">")}),V.duration();else{z={};for(Z in g)Z==="ease"||Z==="easeEach"||hM(Z,g[Z],z,g.easeEach);for(Z in z)for(I=z[Z].sort(function(C1,r1){return C1.t-r1.t}),E=0,_=0;_<I.length;_++)G=I[_],l1={ease:G.e,duration:(G.t-(_?I[_-1].t:0))/100*h},l1[Z]=G.v,V.to(w,l1,E),E+=l1.duration;V.duration()<h&&V.to({},{duration:h-V.duration()})}}h||l.duration(h=V.duration())}else l.timeline=0;return L===!0&&!D7&&(u2=Y1(l),U.killTweensOf(w),u2=0),F1(f,Y1(l),s),i.reversed&&l.reverse(),i.paused&&l.paused(!0),(c||!h&&!g&&l._start===n1(f._time)&&M1(c)&&Du(Y1(l))&&f.data!=="nested")&&(l._tTime=-N,l.render(Math.max(0,-d)||0)),u&&Vi(Y1(l),u),l}var t=C.prototype;return t.render=function(i,s,a){var l=this._time,r=this._tDur,h=this._dur,d=i<0,c=i>r-N&&!d?r:i<N?0:i,p,L,g,v,u,M,f,w,V;if(!h)Ru(this,i,s,a);else if(c!==this._tTime||!i||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d){if(p=c,w=this.timeline,this._repeat){if(v=h+this._rDelay,this._repeat<-1&&d)return this.totalTime(v*100+i,s,a);if(p=n1(c%v),c===r?(g=this._repeat,p=h):(g=~~(c/v),g&&g===n1(c/v)&&(p=h,g--),p>h&&(p=h)),M=this._yoyo&&g&1,M&&(V=this._yEase,p=h-p),u=U3(this._tTime,v),p===l&&!a&&this._initted&&g===u)return this._tTime=c,this;g!==u&&(w&&this._yEase&&Di(w,M),this.vars.repeatRefresh&&!M&&!this._lock&&this._time!==v&&this._initted&&(this._lock=a=1,this.render(n1(v*g),!0).invalidate()._lock=0))}if(!this._initted){if(Zi(this,d?i:p,a,s,c))return this._tTime=0,this;if(l!==this._time&&!(a&&this.vars.repeatRefresh&&g!==u))return this;if(h!==this._dur)return this.render(i,s,a)}if(this._tTime=c,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(V||this._ease)(p/h),this._from&&(this.ratio=f=1-f),p&&!l&&!s&&!g&&(y1(this,"onStart"),this._tTime!==c))return this;for(L=this._pt;L;)L.r(f,L.d),L=L._next;w&&w.render(i<0?i:w._dur*w._ease(p/this._dur),s,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(d&&t9(this,i,s,a),y1(this,"onUpdate")),this._repeat&&g!==u&&this.vars.onRepeat&&!s&&this.parent&&y1(this,"onRepeat"),(c===this._tDur||!c)&&this._tTime===c&&(d&&!this._onUpdate&&t9(this,i,!0,!0),(i||!h)&&(c===this._tDur&&this._ts>0||!c&&this._ts<0)&&v2(this,1),!s&&!(d&&!l)&&(c||l||M)&&(y1(this,c===r?"onComplete":"onReverseComplete",!0),this._prom&&!(c<r&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),o.prototype.invalidate.call(this,i)},t.resetTo=function(i,s,a,l,r){n6||z1.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||d9(this,h),d=this._ease(h/this._dur),lM(this,i,s,a,l,d,h,r)?this.resetTo(i,s,a,l,1):(S8(this,0),this.parent||wi(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?s6(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,u2&&u2.vars.overwrite!==!0)._first||s6(this),this.parent&&a!==this.timeline.totalDuration()&&q3(this,this._dur*this.timeline._tDur/a,0,1),this}var l=this._targets,r=i?B1(i):l,h=this._ptLookup,d=this._pt,c,p,L,g,v,u,M;if((!s||s==="all")&&Ou(l,r))return s==="all"&&(this._pt=0),s6(this);for(c=this._op=this._op||[],s!=="all"&&(a1(s)&&(v={},f1(s,function(f){return v[f]=1}),s=v),s=rM(l,s)),M=l.length;M--;)if(~r.indexOf(l[M])){p=h[M],s==="all"?(c[M]=s,g=p,L={}):(L=c[M]=c[M]||{},g=s);for(v in g)u=p&&p[v],u&&((!("kill"in u.d)||u.d.kill(v)===!0)&&k8(this,u,"_pt"),delete p[v]),L!=="all"&&(L[v]=1)}return this._initted&&!this._pt&&d&&s6(this),this},C.to=function(i,s){return new C(i,s,arguments[2])},C.from=function(i,s){return e6(1,arguments)},C.delayedCall=function(i,s,a,l){return new C(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:l})},C.fromTo=function(i,s,a){return e6(2,arguments)},C.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new C(i,s)},C.killTweensOf=function(i,s,a){return U.killTweensOf(i,s,a)},C}(l6);A1(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),f1("staggerTo,staggerFrom,staggerFromTo",function(o){Q[o]=function(){var C=new v1,t=i9.call(arguments,0);return t.splice(o==="staggerFromTo"?5:4,0,0),C[o].apply(C,t)}});var c9=function(C,t,e){return C[t]=e},Wi=function(C,t,e){return C[t](e)},dM=function(C,t,e,i){return C[t](i.fp,e)},cM=function(C,t,e){return C.setAttribute(t,e)},p9=function(C,t){return W(C[t])?Wi:R7(C[t])&&C.setAttribute?cM:c9},Yi=function(C,t){return t.set(t.t,t.p,Math.round((t.s+t.c*C)*1e6)/1e6,t)},pM=function(C,t){return t.set(t.t,t.p,!!(t.s+t.c*C),t)},Gi=function(C,t){var e=t._pt,i="";if(!C&&t.b)i=t.b;else if(C===1&&t.e)i=t.e;else{for(;e;)i=e.p+(e.m?e.m(e.s+e.c*C):Math.round((e.s+e.c*C)*1e4)/1e4)+i,e=e._next;i+=t.c}t.set(t.t,t.p,i,t)},v9=function(C,t){for(var e=t._pt;e;)e.r(C,e.d),e=e._next},vM=function(C,t,e,i){for(var s=this._pt,a;s;)a=s._next,s.p===i&&s.modifier(C,t,e),s=a},LM=function(C){for(var t=this._pt,e,i;t;)i=t._next,t.p===C&&!t.op||t.op===C?k8(this,t,"_pt"):t.dep||(e=1),t=i;return!e},gM=function(C,t,e,i){i.mSet(C,t,i.m.call(i.tween,e,i.mt),i)},Ki=function(C){for(var t=C._pt,e,i,s,a;t;){for(e=t._next,i=s;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:a)?t._prev._next=t:s=t,(t._next=i)?i._prev=t:a=t,t=e}C._pt=s},w1=function(){function o(t,e,i,s,a,l,r,h,d){this.t=e,this.s=s,this.c=a,this.p=i,this.r=l||Yi,this.d=r||this,this.set=h||c9,this.pr=d||0,this._next=t,t&&(t._prev=this)}var C=o.prototype;return C.modifier=function(e,i,s){this.mSet=this.mSet||this.set,this.set=gM,this.m=e,this.mt=s,this.tween=i},o}();f1(Q7+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(o){return K7[o]=1}),x1.TweenMax=x1.TweenLite=Q,x1.TimelineLite=x1.TimelineMax=v1,U=new v1({sortChildren:!1,defaults:N3,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_1.stringFilter=Oi;var t3=[],B8={},uM=[],Xi=0,MM=0,L9=function(C){return(B8[C]||uM).map(function(t){return t()})},g9=function(){var C=Date.now(),t=[];C-Xi>2&&(L9("matchMediaInit"),t3.forEach(function(e){var i=e.queries,s=e.conditions,a,l,r,h;for(l in i)a=O1.matchMedia(i[l]).matches,a&&(r=1),a!==s[l]&&(s[l]=a,h=1);h&&(e.revert(),r&&t.push(e))}),L9("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(i){return e.add(null,i)})}),Xi=C,L9("matchMedia"))},Ji=function(){function o(t,e){this.selector=e&&o9(e),this.data=[],this._r=[],this.isReverted=!1,this.id=MM++,t&&this.add(t)}var C=o.prototype;return C.add=function(e,i,s){W(e)&&(s=i,i=e,e=W);var a=this,l=function(){var h=j,d=a.selector,c;return h&&h!==a&&h.data.push(a),s&&(a.selector=o9(s)),j=a,c=i.apply(a,arguments),W(c)&&a._r.push(c),j=h,a.selector=d,a.isReverted=!1,c};return a.last=l,e===W?l(a,function(r){return a.add(null,r)}):e?a[e]=l:l},C.ignore=function(e){var i=j;j=null,e(this),j=i},C.getTweens=function(){var e=[];return this.data.forEach(function(i){return i instanceof o?e.push.apply(e,i.getTweens()):i instanceof Q&&!(i.parent&&i.parent.data==="nested")&&e.push(i)}),e},C.clear=function(){this._r.length=this.data.length=0},C.kill=function(e,i){var s=this;if(e?function(){for(var l=s.getTweens(),r=s.data.length,h;r--;)h=s.data[r],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(d){return l.splice(l.indexOf(d),1)}));for(l.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,c){return c.g-d.g||-1/0}).forEach(function(d){return d.t.revert(e)}),r=s.data.length;r--;)h=s.data[r],h instanceof v1?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Q)&&h.revert&&h.revert(e);s._r.forEach(function(d){return d(e,s)}),s.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),i)for(var a=t3.length;a--;)t3[a].id===this.id&&t3.splice(a,1)},C.revert=function(e){this.kill(e||{})},o}(),fM=function(){function o(t){this.contexts=[],this.scope=t,j&&j.data.push(this)}var C=o.prototype;return C.add=function(e,i,s){I1(e)||(e={matches:e});var a=new Ji(0,s||this.scope),l=a.conditions={},r,h,d;j&&!a.selector&&(a.selector=j.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=e;for(h in e)h==="all"?d=1:(r=O1.matchMedia(e[h]),r&&(t3.indexOf(a)<0&&t3.push(a),(l[h]=r.matches)&&(d=1),r.addListener?r.addListener(g9):r.addEventListener("change",g9)));return d&&i(a,function(c){return a.add(null,c)}),this},C.revert=function(e){this.kill(e||{})},C.kill=function(e){this.contexts.forEach(function(i){return i.kill(e,!0)})},o}(),E8={registerPlugin:function(){for(var C=arguments.length,t=new Array(C),e=0;e<C;e++)t[e]=arguments[e];t.forEach(function(i){return Ei(i)})},timeline:function(C){return new v1(C)},getTweensOf:function(C,t){return U.getTweensOf(C,t)},getProperty:function(C,t,e,i){a1(C)&&(C=B1(C)[0]);var s=K2(C||{}).get,a=e?Mi:ui;return e==="native"&&(e=""),C&&(t?a((b1[t]&&b1[t].get||s)(C,t,e,i)):function(l,r,h){return a((b1[l]&&b1[l].get||s)(C,l,r,h))})},quickSetter:function(C,t,e){if(C=B1(C),C.length>1){var i=C.map(function(d){return m1.quickSetter(d,t,e)}),s=i.length;return function(d){for(var c=s;c--;)i[c](d)}}C=C[0]||{};var a=b1[t],l=K2(C),r=l.harness&&(l.harness.aliases||{})[t]||t,h=a?function(d){var c=new a;W3._pt=0,c.init(C,e?d+e:d,W3,0,[C]),c.render(1,c),W3._pt&&v9(1,W3)}:l.set(C,r);return a?h:function(d){return h(C,r,e?d+e:d,l,1)}},quickTo:function(C,t,e){var i,s=m1.to(C,X2((i={},i[t]="+=0.1",i.paused=!0,i),e||{})),a=function(r,h,d){return s.resetTo(t,r,h,d)};return a.tween=s,a},isTweening:function(C){return U.getTweensOf(C,!0).length>0},defaults:function(C){return C&&C.ease&&(C.ease=Q2(C.ease,N3.ease)),fi(N3,C||{})},config:function(C){return fi(_1,C||{})},registerEffect:function(C){var t=C.name,e=C.effect,i=C.plugins,s=C.defaults,a=C.extendTimeline;(i||"").split(",").forEach(function(l){return l&&!b1[l]&&!x1[l]&&Q5(t+" effect requires "+l+" plugin.")}),J7[t]=function(l,r,h){return e(B1(l),A1(r||{},s),h)},a&&(v1.prototype[t]=function(l,r,h){return this.add(J7[t](l,I1(r)?r:(h=r)&&{},this),h)})},registerEase:function(C,t){P[C]=Q2(t)},parseEase:function(C,t){return arguments.length?Q2(C,t):P},getById:function(C){return U.getById(C)},exportRoot:function(C,t){C===void 0&&(C={});var e=new v1(C),i,s;for(e.smoothChildTiming=M1(C.smoothChildTiming),U.remove(e),e._dp=0,e._time=e._tTime=U._time,i=U._first;i;)s=i._next,(t||!(!i._dur&&i instanceof Q&&i.vars.onComplete===i._targets[0]))&&F1(e,i,i._start-i._delay),i=s;return F1(U,e,0),e},context:function(C,t){return C?new Ji(C,t):j},matchMedia:function(C){return new fM(C)},matchMediaRefresh:function(){return t3.forEach(function(C){var t=C.conditions,e,i;for(i in t)t[i]&&(t[i]=!1,e=1);e&&C.revert()})||g9()},addEventListener:function(C,t){var e=B8[C]||(B8[C]=[]);~e.indexOf(t)||e.push(t)},removeEventListener:function(C,t){var e=B8[C],i=e&&e.indexOf(t);i>=0&&e.splice(i,1)},utils:{wrap:Xu,wrapYoyo:Ju,distribute:yi,random:ki,snap:zi,normalize:Ku,getUnit:p1,clamp:qu,splitColor:Ti,toArray:B1,selector:o9,mapRange:Ai,pipe:Yu,unitize:Gu,interpolate:Qu,shuffle:bi},install:di,effects:J7,ticker:z1,updateRoot:v1.updateRoot,plugins:b1,globalTimeline:U,core:{PropTween:w1,globals:ci,Tween:Q,Timeline:v1,Animation:l6,getCache:K2,_removeLinkedListItem:k8,reverting:function(){return d1},context:function(C){return C&&j&&(j.data.push(C),C._ctx=j),j},suppressOverwrites:function(C){return D7=C}}};f1("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return E8[o]=Q[o]}),z1.add(v1.updateRoot),W3=E8.to({},{duration:0});var wM=function(C,t){for(var e=C._pt;e&&e.p!==t&&e.op!==t&&e.fp!==t;)e=e._next;return e},mM=function(C,t){var e=C._targets,i,s,a;for(i in t)for(s=e.length;s--;)a=C._ptLookup[s][i],a&&(a=a.d)&&(a._pt&&(a=wM(a,i)),a&&a.modifier&&a.modifier(t[i],C,e[s],i))},u9=function(C,t){return{name:C,rawVars:1,init:function(i,s,a){a._onInit=function(l){var r,h;if(a1(s)&&(r={},f1(s,function(d){return r[d]=1}),s=r),t){r={};for(h in s)r[h]=t(s[h]);s=r}mM(l,s)}}}},m1=E8.registerPlugin({name:"attr",init:function(C,t,e,i,s){var a,l,r;this.tween=e;for(a in t)r=C.getAttribute(a)||"",l=this.add(C,"setAttribute",(r||0)+"",t[a],i,s,0,0,a),l.op=a,l.b=r,this._props.push(a)},render:function(C,t){for(var e=t._pt;e;)d1?e.set(e.t,e.p,e.b,e):e.r(C,e.d),e=e._next}},{name:"endArray",init:function(C,t){for(var e=t.length;e--;)this.add(C,e,C[e]||0,t[e],0,0,0,0,0,1)}},u9("roundProps",s9),u9("modifiers"),u9("snap",zi))||E8;Q.version=v1.version=m1.version="3.12.5",hi=1,j7()&&Y3(),P.Power0,P.Power1,P.Power2,P.Power3,P.Power4,P.Linear,P.Quad,P.Cubic,P.Quart,P.Quint,P.Strong,P.Elastic,P.Back,P.SteppedEase,P.Bounce,P.Sine,P.Expo,P.Circ;/*!
|
|
11183
11183
|
* CSSPlugin 3.12.5
|
|
11184
11184
|
* https://gsap.com
|
|
11185
11185
|
*
|
|
@@ -11187,17 +11187,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11187
11187
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
11188
11188
|
* Club GSAP members, the agreement issued with that membership.
|
|
11189
11189
|
* @author: Jack Doyle, jack@greensock.com
|
|
11190
|
-
*/var Qi,M2,G3,M9,e3,Co,f9,HM=function(){return typeof window<"u"},K1={},i3=180/Math.PI,K3=Math.PI/180,X3=Math.atan2,to=1e8,w9=/([A-Z])/g,VM=/(left|right|width|margin|padding|x)/i,ZM=/[\s,\(]\S/,D1={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},m9=function(C,t){return t.set(t.t,t.p,Math.round((t.s+t.c*C)*1e4)/1e4+t.u,t)},_M=function(C,t){return t.set(t.t,t.p,C===1?t.e:Math.round((t.s+t.c*C)*1e4)/1e4+t.u,t)},xM=function(C,t){return t.set(t.t,t.p,C?Math.round((t.s+t.c*C)*1e4)/1e4+t.u:t.b,t)},bM=function(C,t){var e=t.s+t.c*C;t.set(t.t,t.p,~~(e+(e<0?-.5:.5))+t.u,t)},eo=function(C,t){return t.set(t.t,t.p,C?t.e:t.b,t)},io=function(C,t){return t.set(t.t,t.p,C!==1?t.b:t.e,t)},yM=function(C,t,e){return C.style[t]=e},zM=function(C,t,e){return C.style.setProperty(t,e)},kM=function(C,t,e){return C._gsap[t]=e},$M=function(C,t,e){return C._gsap.scaleX=C._gsap.scaleY=e},AM=function(C,t,e,i,s){var a=C._gsap;a.scaleX=a.scaleY=e,a.renderTransform(s,a)},SM=function(C,t,e,i,s){var a=C._gsap;a[t]=e,a.renderTransform(s,a)},q="transform",H1=q+"Origin",BM=function o(C,t){var e=this,i=this.target,s=i.style,a=i._gsap;if(C in K1&&s){if(this.tfm=this.tfm||{},C!=="transform")C=D1[C]||C,~C.indexOf(",")?C.split(",").forEach(function(l){return e.tfm[l]=X1(i,l)}):this.tfm[C]=a.x?a[C]:X1(i,C),C===H1&&(this.tfm.zOrigin=a.zOrigin);else return D1.transform.split(",").forEach(function(l){return o.call(e,l,t)});if(this.props.indexOf(q)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(H1,t,"")),C=q}(s||t)&&this.props.push(C,t,s[C])},oo=function(C){C.translate&&(C.removeProperty("translate"),C.removeProperty("scale"),C.removeProperty("rotate"))},EM=function(){var C=this.props,t=this.target,e=t.style,i=t._gsap,s,a;for(s=0;s<C.length;s+=3)C[s+1]?t[C[s]]=C[s+2]:C[s+2]?e[C[s]]=C[s+2]:e.removeProperty(C[s].substr(0,2)==="--"?C[s]:C[s].replace(w9,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)i[a]=this.tfm[a];i.svg&&(i.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=f9(),(!s||!s.isStart)&&!e[q]&&(oo(e),i.zOrigin&&e[H1]&&(e[H1]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},so=function(C,t){var e={target:C,props:[],revert:EM,save:BM};return C._gsap||m1.core.getCache(C),t&&t.split(",").forEach(function(i){return e.save(i)}),e},ao,H9=function(C,t){var e=M2.createElementNS?M2.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),C):M2.createElement(C);return e&&e.style?e:M2.createElement(C)},N1=function o(C,t,e){var i=getComputedStyle(C);return i[t]||i.getPropertyValue(t.replace(w9,"-$1").toLowerCase())||i.getPropertyValue(t)||!e&&o(C,J3(t)||t,1)||""},no="O,Moz,ms,Ms,Webkit".split(","),J3=function(C,t,e){var i=t||e3,s=i.style,a=5;if(C in s&&!e)return C;for(C=C.charAt(0).toUpperCase()+C.substr(1);a--&&!(no[a]+C in s););return a<0?null:(a===3?"ms":a>=0?no[a]:"")+C},V9=function(){HM()&&window.document&&(Qi=window,M2=Qi.document,G3=M2.documentElement,e3=H9("div")||{style:{}},H9("div"),q=J3(q),H1=q+"Origin",e3.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ao=!!J3("perspective"),f9=m1.core.reverting,M9=1)},Z9=function o(C){var t=H9("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),e=this.parentNode,i=this.nextSibling,s=this.style.cssText,a;if(G3.appendChild(t),t.appendChild(this),this.style.display="block",C)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=o}catch{}else this._gsapBBox&&(a=this._gsapBBox());return e&&(i?e.insertBefore(this,i):e.appendChild(this)),G3.removeChild(t),this.style.cssText=s,a},lo=function(C,t){for(var e=t.length;e--;)if(C.hasAttribute(t[e]))return C.getAttribute(t[e])},ro=function(C){var t;try{t=C.getBBox()}catch{t=Z9.call(C,!0)}return t&&(t.width||t.height)||C.getBBox===Z9||(t=Z9.call(C,!0)),t&&!t.width&&!t.x&&!t.y?{x:+lo(C,["x","cx","x1"])||0,y:+lo(C,["y","cy","y1"])||0,width:0,height:0}:t},ho=function(C){return!!(C.getCTM&&(!C.parentNode||C.ownerSVGElement)&&ro(C))},o3=function(C,t){if(t){var e=C.style,i;t in K1&&t!==H1&&(t=q),e.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),e.removeProperty(i==="--"?t:t.replace(w9,"-$1").toLowerCase())):e.removeAttribute(t)}},f2=function(C,t,e,i,s,a){var l=new w1(C._pt,t,e,0,1,a?io:eo);return C._pt=l,l.b=i,l.e=s,C._props.push(e),l},co={deg:1,rad:1,turn:1},TM={grid:1,flex:1},w2=function o(C,t,e,i){var s=parseFloat(e)||0,a=(e+"").trim().substr((s+"").length)||"px",l=e3.style,r=VM.test(t),h=C.tagName.toLowerCase()==="svg",d=(h?"client":"offset")+(r?"Width":"Height"),c=100,p=i==="px",L=i==="%",g,v,u,M;if(i===a||!s||co[i]||co[a])return s;if(a!=="px"&&!p&&(s=o(C,t,e,"px")),M=C.getCTM&&ho(C),(L||a==="%")&&(K1[t]||~t.indexOf("adius")))return g=M?C.getBBox()[r?"width":"height"]:C[d],Y(L?s/g*c:s/100*g);if(l[r?"width":"height"]=c+(p?a:i),v=~t.indexOf("adius")||i==="em"&&C.appendChild&&!h?C:C.parentNode,M&&(v=(C.ownerSVGElement||{}).parentNode),(!v||v===M2||!v.appendChild)&&(v=M2.body),u=v._gsap,u&&L&&u.width&&r&&u.time===z1.time&&!u.uncache)return Y(s/u.width*c);if(L&&(t==="height"||t==="width")){var f=C.style[t];C.style[t]=c+i,g=C[d],f?C.style[t]=f:o3(C,t)}else(L||a==="%")&&!TM[N1(v,"display")]&&(l.position=N1(C,"position")),v===C&&(l.position="static"),v.appendChild(e3),g=e3[d],v.removeChild(e3),l.position="absolute";return r&&L&&(u=K2(v),u.time=z1.time,u.width=v[d]),Y(p?g*s/c:g&&s?c/g*s:0)},X1=function(C,t,e,i){var s;return M9||V9(),t in D1&&t!=="transform"&&(t=D1[t],~t.indexOf(",")&&(t=t.split(",")[0])),K1[t]&&t!=="transform"?(s=d6(C,i),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:P8(N1(C,H1))+" "+s.zOrigin+"px"):(s=C.style[t],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=T8[t]&&T8[t](C,t,e)||N1(C,t)||Li(C,t)||(t==="opacity"?1:0))),e&&!~(s+"").trim().indexOf(" ")?w2(C,t,s,e)+e:s},PM=function(C,t,e,i){if(!e||e==="none"){var s=J3(t,C,1),a=s&&N1(C,s,1);a&&a!==e?(t=s,e=a):t==="borderColor"&&(e=N1(C,"borderTopColor"))}var l=new w1(this._pt,C.style,t,0,1,Gi),r=0,h=0,d,c,p,L,g,v,u,M,f,w,Z,_;if(l.b=e,l.e=i,e+="",i+="",i==="auto"&&(v=C.style[t],C.style[t]=i,i=N1(C,t)||i,v?C.style[t]=v:o3(C,t)),d=[e,i],Oi(d),e=d[0],i=d[1],p=e.match(R3)||[],_=i.match(R3)||[],_.length){for(;c=R3.exec(i);)u=c[0],f=i.substring(r,c.index),g?g=(g+1)%5:(f.substr(-5)==="rgba("||f.substr(-5)==="hsla(")&&(g=1),u!==(v=p[h++]||"")&&(L=parseFloat(v)||0,Z=v.substr((L+"").length),u.charAt(1)==="="&&(u=j3(L,u)+Z),M=parseFloat(u),w=u.substr((M+"").length),r=R3.lastIndex-w.length,w||(w=w||_1.units[t]||Z,r===i.length&&(i+=w,l.e+=w)),Z!==w&&(L=w2(C,t,v,w)||0),l._pt={_next:l._pt,p:f||h===1?f:",",s:L,c:M-L,m:g&&g<4||t==="zIndex"?Math.round:0});l.c=r<i.length?i.substring(r,i.length):""}else l.r=t==="display"&&i==="none"?io:eo;return li.test(i)&&(l.e=0),this._pt=l,l},po={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},IM=function(C){var t=C.split(" "),e=t[0],i=t[1]||"50%";return(e==="top"||e==="bottom"||i==="left"||i==="right")&&(C=e,e=i,i=C),t[0]=po[e]||e,t[1]=po[i]||i,t.join(" ")},OM=function(C,t){if(t.tween&&t.tween._time===t.tween._dur){var e=t.t,i=e.style,s=t.u,a=e._gsap,l,r,h;if(s==="all"||s===!0)i.cssText="",r=1;else for(s=s.split(","),h=s.length;--h>-1;)l=s[h],K1[l]&&(r=1,l=l==="transformOrigin"?H1:q),o3(e,l);r&&(o3(e,q),a&&(a.svg&&e.removeAttribute("transform"),d6(e,1),a.uncache=1,oo(i)))}},T8={clearProps:function(C,t,e,i,s){if(s.data!=="isFromStart"){var a=C._pt=new w1(C._pt,t,e,0,0,OM);return a.u=i,a.pr=-10,a.tween=s,C._props.push(e),1}}},h6=[1,0,0,1,0,0],vo={},Lo=function(C){return C==="matrix(1, 0, 0, 1, 0, 0)"||C==="none"||!C},go=function(C){var t=N1(C,q);return Lo(t)?h6:t.substr(7).match(ni).map(Y)},_9=function(C,t){var e=C._gsap||K2(C),i=C.style,s=go(C),a,l,r,h;return e.svg&&C.getAttribute("transform")?(r=C.transform.baseVal.consolidate().matrix,s=[r.a,r.b,r.c,r.d,r.e,r.f],s.join(",")==="1,0,0,1,0,0"?h6:s):(s===h6&&!C.offsetParent&&C!==G3&&!e.svg&&(r=i.display,i.display="block",a=C.parentNode,(!a||!C.offsetParent)&&(h=1,l=C.nextElementSibling,G3.appendChild(C)),s=go(C),r?i.display=r:o3(C,"display"),h&&(l?a.insertBefore(C,l):a?a.appendChild(C):G3.removeChild(C))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},x9=function(C,t,e,i,s,a){var l=C._gsap,r=s||_9(C,!0),h=l.xOrigin||0,d=l.yOrigin||0,c=l.xOffset||0,p=l.yOffset||0,L=r[0],g=r[1],v=r[2],u=r[3],M=r[4],f=r[5],w=t.split(" "),Z=parseFloat(w[0])||0,_=parseFloat(w[1])||0,z,m,V,x;e?r!==h6&&(m=L*u-g*v)&&(V=Z*(u/m)+_*(-v/m)+(v*f-u*M)/m,x=Z*(-g/m)+_*(L/m)-(L*f-g*M)/m,Z=V,_=x):(z=ro(C),Z=z.x+(~w[0].indexOf("%")?Z/100*z.width:Z),_=z.y+(~(w[1]||w[0]).indexOf("%")?_/100*z.height:_)),i||i!==!1&&l.smooth?(M=Z-h,f=_-d,l.xOffset=c+(M*L+f*v)-M,l.yOffset=p+(M*g+f*u)-f):l.xOffset=l.yOffset=0,l.xOrigin=Z,l.yOrigin=_,l.smooth=!!i,l.origin=t,l.originIsAbsolute=!!e,C.style[H1]="0px 0px",a&&(f2(a,l,"xOrigin",h,Z),f2(a,l,"yOrigin",d,_),f2(a,l,"xOffset",c,l.xOffset),f2(a,l,"yOffset",p,l.yOffset)),C.setAttribute("data-svg-origin",Z+" "+_)},d6=function(C,t){var e=C._gsap||new Ri(C);if("x"in e&&!t&&!e.uncache)return e;var i=C.style,s=e.scaleX<0,a="px",l="deg",r=getComputedStyle(C),h=N1(C,H1)||"0",d,c,p,L,g,v,u,M,f,w,Z,_,z,m,V,x,A,S,E,I,G,l1,C1,r1,P1,q8,m6,H6,n3,Io,J1,l3;return d=c=p=v=u=M=f=w=Z=0,L=g=1,e.svg=!!(C.getCTM&&ho(C)),r.translate&&((r.translate!=="none"||r.scale!=="none"||r.rotate!=="none")&&(i[q]=(r.translate!=="none"?"translate3d("+(r.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(r.rotate!=="none"?"rotate("+r.rotate+") ":"")+(r.scale!=="none"?"scale("+r.scale.split(" ").join(",")+") ":"")+(r[q]!=="none"?r[q]:"")),i.scale=i.rotate=i.translate="none"),m=_9(C,e.svg),e.svg&&(e.uncache?(P1=C.getBBox(),h=e.xOrigin-P1.x+"px "+(e.yOrigin-P1.y)+"px",r1=""):r1=!t&&C.getAttribute("data-svg-origin"),x9(C,r1||h,!!r1||e.originIsAbsolute,e.smooth!==!1,m)),_=e.xOrigin||0,z=e.yOrigin||0,m!==h6&&(S=m[0],E=m[1],I=m[2],G=m[3],d=l1=m[4],c=C1=m[5],m.length===6?(L=Math.sqrt(S*S+E*E),g=Math.sqrt(G*G+I*I),v=S||E?X3(E,S)*i3:0,f=I||G?X3(I,G)*i3+v:0,f&&(g*=Math.abs(Math.cos(f*K3))),e.svg&&(d-=_-(_*S+z*I),c-=z-(_*E+z*G))):(l3=m[6],Io=m[7],m6=m[8],H6=m[9],n3=m[10],J1=m[11],d=m[12],c=m[13],p=m[14],V=X3(l3,n3),u=V*i3,V&&(x=Math.cos(-V),A=Math.sin(-V),r1=l1*x+m6*A,P1=C1*x+H6*A,q8=l3*x+n3*A,m6=l1*-A+m6*x,H6=C1*-A+H6*x,n3=l3*-A+n3*x,J1=Io*-A+J1*x,l1=r1,C1=P1,l3=q8),V=X3(-I,n3),M=V*i3,V&&(x=Math.cos(-V),A=Math.sin(-V),r1=S*x-m6*A,P1=E*x-H6*A,q8=I*x-n3*A,J1=G*A+J1*x,S=r1,E=P1,I=q8),V=X3(E,S),v=V*i3,V&&(x=Math.cos(V),A=Math.sin(V),r1=S*x+E*A,P1=l1*x+C1*A,E=E*x-S*A,C1=C1*x-l1*A,S=r1,l1=P1),u&&Math.abs(u)+Math.abs(v)>359.9&&(u=v=0,M=180-M),L=Y(Math.sqrt(S*S+E*E+I*I)),g=Y(Math.sqrt(C1*C1+l3*l3)),V=X3(l1,C1),f=Math.abs(V)>2e-4?V*i3:0,Z=J1?1/(J1<0?-J1:J1):0),e.svg&&(r1=C.getAttribute("transform"),e.forceCSS=C.setAttribute("transform","")||!Lo(N1(C,q)),r1&&C.setAttribute("transform",r1))),Math.abs(f)>90&&Math.abs(f)<270&&(s?(L*=-1,f+=v<=0?180:-180,v+=v<=0?180:-180):(g*=-1,f+=f<=0?180:-180)),t=t||e.uncache,e.x=d-((e.xPercent=d&&(!t&&e.xPercent||(Math.round(C.offsetWidth/2)===Math.round(-d)?-50:0)))?C.offsetWidth*e.xPercent/100:0)+a,e.y=c-((e.yPercent=c&&(!t&&e.yPercent||(Math.round(C.offsetHeight/2)===Math.round(-c)?-50:0)))?C.offsetHeight*e.yPercent/100:0)+a,e.z=p+a,e.scaleX=Y(L),e.scaleY=Y(g),e.rotation=Y(v)+l,e.rotationX=Y(u)+l,e.rotationY=Y(M)+l,e.skewX=f+l,e.skewY=w+l,e.transformPerspective=Z+a,(e.zOrigin=parseFloat(h.split(" ")[2])||!t&&e.zOrigin||0)&&(i[H1]=P8(h)),e.xOffset=e.yOffset=0,e.force3D=_1.force3D,e.renderTransform=e.svg?DM:ao?uo:FM,e.uncache=0,e},P8=function(C){return(C=C.split(" "))[0]+" "+C[1]},b9=function(C,t,e){var i=p1(t);return Y(parseFloat(t)+parseFloat(w2(C,"x",e+"px",i)))+i},FM=function(C,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,uo(C,t)},s3="0deg",c6="0px",a3=") ",uo=function(C,t){var e=t||this,i=e.xPercent,s=e.yPercent,a=e.x,l=e.y,r=e.z,h=e.rotation,d=e.rotationY,c=e.rotationX,p=e.skewX,L=e.skewY,g=e.scaleX,v=e.scaleY,u=e.transformPerspective,M=e.force3D,f=e.target,w=e.zOrigin,Z="",_=M==="auto"&&C&&C!==1||M===!0;if(w&&(c!==s3||d!==s3)){var z=parseFloat(d)*K3,m=Math.sin(z),V=Math.cos(z),x;z=parseFloat(c)*K3,x=Math.cos(z),a=b9(f,a,m*x*-w),l=b9(f,l,-Math.sin(z)*-w),r=b9(f,r,V*x*-w+w)}u!==c6&&(Z+="perspective("+u+a3),(i||s)&&(Z+="translate("+i+"%, "+s+"%) "),(_||a!==c6||l!==c6||r!==c6)&&(Z+=r!==c6||_?"translate3d("+a+", "+l+", "+r+") ":"translate("+a+", "+l+a3),h!==s3&&(Z+="rotate("+h+a3),d!==s3&&(Z+="rotateY("+d+a3),c!==s3&&(Z+="rotateX("+c+a3),(p!==s3||L!==s3)&&(Z+="skew("+p+", "+L+a3),(g!==1||v!==1)&&(Z+="scale("+g+", "+v+a3),f.style[q]=Z||"translate(0, 0)"},DM=function(C,t){var e=t||this,i=e.xPercent,s=e.yPercent,a=e.x,l=e.y,r=e.rotation,h=e.skewX,d=e.skewY,c=e.scaleX,p=e.scaleY,L=e.target,g=e.xOrigin,v=e.yOrigin,u=e.xOffset,M=e.yOffset,f=e.forceCSS,w=parseFloat(a),Z=parseFloat(l),_,z,m,V,x;r=parseFloat(r),h=parseFloat(h),d=parseFloat(d),d&&(d=parseFloat(d),h+=d,r+=d),r||h?(r*=K3,h*=K3,_=Math.cos(r)*c,z=Math.sin(r)*c,m=Math.sin(r-h)*-p,V=Math.cos(r-h)*p,h&&(d*=K3,x=Math.tan(h-d),x=Math.sqrt(1+x*x),m*=x,V*=x,d&&(x=Math.tan(d),x=Math.sqrt(1+x*x),_*=x,z*=x)),_=Y(_),z=Y(z),m=Y(m),V=Y(V)):(_=c,V=p,z=m=0),(w&&!~(a+"").indexOf("px")||Z&&!~(l+"").indexOf("px"))&&(w=w2(L,"x",a,"px"),Z=w2(L,"y",l,"px")),(g||v||u||M)&&(w=Y(w+g-(g*_+v*m)+u),Z=Y(Z+v-(g*z+v*V)+M)),(i||s)&&(x=L.getBBox(),w=Y(w+i/100*x.width),Z=Y(Z+s/100*x.height)),x="matrix("+_+","+z+","+m+","+V+","+w+","+Z+")",L.setAttribute("transform",x),f&&(L.style[q]=x)},NM=function(C,t,e,i,s){var a=360,l=a1(s),r=parseFloat(s)*(l&&~s.indexOf("rad")?i3:1),h=r-i,d=i+h+"deg",c,p;return l&&(c=s.split("_")[1],c==="short"&&(h%=a,h!==h%(a/2)&&(h+=h<0?a:-a)),c==="cw"&&h<0?h=(h+a*to)%a-~~(h/a)*a:c==="ccw"&&h>0&&(h=(h-a*to)%a-~~(h/a)*a)),C._pt=p=new w1(C._pt,t,e,i,h,_M),p.e=d,p.u="deg",C._props.push(e),p},Mo=function(C,t){for(var e in t)C[e]=t[e];return C},RM=function(C,t,e){var i=Mo({},e._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=e.style,l,r,h,d,c,p,L,g;i.svg?(h=e.getAttribute("transform"),e.setAttribute("transform",""),a[q]=t,l=d6(e,1),o3(e,q),e.setAttribute("transform",h)):(h=getComputedStyle(e)[q],a[q]=t,l=d6(e,1),a[q]=h);for(r in K1)h=i[r],d=l[r],h!==d&&s.indexOf(r)<0&&(L=p1(h),g=p1(d),c=L!==g?w2(e,r,h,g):parseFloat(h),p=parseFloat(d),C._pt=new w1(C._pt,l,r,c,p-c,m9),C._pt.u=g||0,C._props.push(r));Mo(l,i)};f1("padding,margin,Width,Radius",function(o,C){var t="Top",e="Right",i="Bottom",s="Left",a=(C<3?[t,e,i,s]:[t+s,t+e,i+e,i+s]).map(function(l){return C<2?o+l:"border"+l+o});T8[C>1?"border"+o:o]=function(l,r,h,d,c){var p,L;if(arguments.length<4)return p=a.map(function(g){return X1(l,g,h)}),L=p.join(" "),L.split(p[0]).length===5?p[0]:L;p=(d+"").split(" "),L={},a.forEach(function(g,v){return L[g]=p[v]=p[v]||p[(v-1)/2|0]}),l.init(r,L,c)}});var fo={name:"css",register:V9,targetTest:function(C){return C.style&&C.nodeType},init:function(C,t,e,i,s){var a=this._props,l=C.style,r=e.vars.startAt,h,d,c,p,L,g,v,u,M,f,w,Z,_,z,m,V;M9||V9(),this.styles=this.styles||so(C),V=this.styles.props,this.tween=e;for(v in t)if(v!=="autoRound"&&(d=t[v],!(b1[v]&&ji(v,t,e,i,C,s)))){if(L=typeof d,g=T8[v],L==="function"&&(d=d.call(e,i,C,s),L=typeof d),L==="string"&&~d.indexOf("random(")&&(d=o6(d)),g)g(this,C,v,d,e)&&(m=1);else if(v.substr(0,2)==="--")h=(getComputedStyle(C).getPropertyValue(v)+"").trim(),d+="",g2.lastIndex=0,g2.test(h)||(u=p1(h),M=p1(d)),M?u!==M&&(h=w2(C,v,h,M)+M):u&&(d+=u),this.add(l,"setProperty",h,d,i,s,0,0,v),a.push(v),V.push(v,0,l[v]);else if(L!=="undefined"){if(r&&v in r?(h=typeof r[v]=="function"?r[v].call(e,i,C,s):r[v],a1(h)&&~h.indexOf("random(")&&(h=o6(h)),p1(h+"")||h==="auto"||(h+=_1.units[v]||p1(X1(C,v))||""),(h+"").charAt(1)==="="&&(h=X1(C,v))):h=X1(C,v),p=parseFloat(h),f=L==="string"&&d.charAt(1)==="="&&d.substr(0,2),f&&(d=d.substr(2)),c=parseFloat(d),v in D1&&(v==="autoAlpha"&&(p===1&&X1(C,"visibility")==="hidden"&&c&&(p=0),V.push("visibility",0,l.visibility),f2(this,l,"visibility",p?"inherit":"hidden",c?"inherit":"hidden",!c)),v!=="scale"&&v!=="transform"&&(v=D1[v],~v.indexOf(",")&&(v=v.split(",")[0]))),w=v in K1,w){if(this.styles.save(v),Z||(_=C._gsap,_.renderTransform&&!t.parseTransform||d6(C,t.parseTransform),z=t.smoothOrigin!==!1&&_.smooth,Z=this._pt=new w1(this._pt,l,q,0,1,_.renderTransform,_,0,-1),Z.dep=1),v==="scale")this._pt=new w1(this._pt,_,"scaleY",_.scaleY,(f?j3(_.scaleY,f+c):c)-_.scaleY||0,m9),this._pt.u=0,a.push("scaleY",v),v+="X";else if(v==="transformOrigin"){V.push(H1,0,l[H1]),d=IM(d),_.svg?x9(C,d,0,z,0,this):(M=parseFloat(d.split(" ")[2])||0,M!==_.zOrigin&&f2(this,_,"zOrigin",_.zOrigin,M),f2(this,l,v,P8(h),P8(d)));continue}else if(v==="svgOrigin"){x9(C,d,1,z,0,this);continue}else if(v in vo){NM(this,_,v,p,f?j3(p,f+d):d);continue}else if(v==="smoothOrigin"){f2(this,_,"smooth",_.smooth,d);continue}else if(v==="force3D"){_[v]=d;continue}else if(v==="transform"){RM(this,d,C);continue}}else v in l||(v=J3(v)||v);if(w||(c||c===0)&&(p||p===0)&&!ZM.test(d)&&v in l)u=(h+"").substr((p+"").length),c||(c=0),M=p1(d)||(v in _1.units?_1.units[v]:u),u!==M&&(p=w2(C,v,h,M)),this._pt=new w1(this._pt,w?_:l,v,p,(f?j3(p,f+c):c)-p,!w&&(M==="px"||v==="zIndex")&&t.autoRound!==!1?bM:m9),this._pt.u=M||0,u!==M&&M!=="%"&&(this._pt.b=h,this._pt.r=xM);else if(v in l)PM.call(this,C,v,h,f?f+d:d);else if(v in C)this.add(C,v,h||C[v],f?f+d:d,i,s);else if(v!=="parseTransform"){G7(v,d);continue}w||(v in l?V.push(v,0,l[v]):V.push(v,1,h||C[v])),a.push(v)}}m&&Ki(this)},render:function(C,t){if(t.tween._time||!f9())for(var e=t._pt;e;)e.r(C,e.d),e=e._next;else t.styles.revert()},get:X1,aliases:D1,getSetter:function(C,t,e){var i=D1[t];return i&&i.indexOf(",")<0&&(t=i),t in K1&&t!==H1&&(C._gsap.x||X1(C,"x"))?e&&Co===e?t==="scale"?$M:kM:(Co=e||{})&&(t==="scale"?AM:SM):C.style&&!R7(C.style[t])?yM:~t.indexOf("-")?zM:p9(C,t)},core:{_removeProperty:o3,_getMatrix:_9}};m1.utils.checkPrefix=J3,m1.core.getStyleSaver=so,function(o,C,t,e){var i=f1(o+","+C+","+t,function(s){K1[s]=1});f1(C,function(s){_1.units[s]="deg",vo[s]=1}),D1[i[13]]=o+","+C,f1(e,function(s){var a=s.split(":");D1[a[1]]=i[a[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),f1("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){_1.units[o]="px"}),m1.registerPlugin(fo);var wo=m1.registerPlugin(fo)||m1;wo.core.Tween;const jM=ei.head,UM={newsitems:{title:"Artículos",baseUrl:"https://www.clinicaalemana.cl/articulos/detalle/"},events:{title:"Eventos",baseUrl:"https://www.clinicaalemana.cl/centro-de-extension/charlas-y-talleres/detalle/"},medicos:{title:"Profesional",baseUrl:"https://www.clinicaalemana.cl/medicos/detalle/"},centros:{title:"Centros",baseUrl:"https://www.clinicaalemana.cl/centros-medicos/detalle/"},programas:{title:"Programas",baseUrl:"https://www.clinicaalemana.cl/centros-medicos/detalle/"}},qM="https://portal-backend.clinicaalemana.cl",WM=(o,C)=>{const t=[];if(C<=5)for(let e=1;e<=C;e++)t.push(e);else o<=3?t.push(1,2,3,4,5,"...",C):o>=C-2?t.push(1,"...",C-4,C-3,C-2,C-1,C):t.push(1,"...",o-1,o,o+1,"...",C);return t},YM=()=>{const o=window.scrollY,C=800,t=performance.now();function e(i){const s=i-t,a=Math.min(s/C,1),l=1-Math.pow(1-a,3);window.scrollTo(0,o*(1-l)),s<C&&requestAnimationFrame(e)}requestAnimationFrame(e)};class I8 extends k{constructor(){super(),this.showSignin=!1,this.showSearch=!1}openBookingBox(){const C=new CustomEvent("openBookingBox");document.dispatchEvent(C)}openSignIn(){this.showSignin=!0,this.requestUpdate()}openSearch(){this.showSearch=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}closeSearch(){this.showSearch=!1,this.requestUpdate()}openMenu(){const C=new CustomEvent("openMenuMobile");document.dispatchEvent(C)}initializeMobileSearch(){let C="",t=new URLSearchParams(window.location.search),e=t.has("page")?t.get("page"):1,i=this.shadowRoot.querySelector("#searchTermInput"),s=this.shadowRoot.querySelector(".results-counter"),a=this.shadowRoot.querySelector(".search-button-mobile"),l=this.shadowRoot.querySelector(".results-container"),r=this.shadowRoot.querySelector(".page-numbers"),h=this.shadowRoot.querySelector(".search-bar"),d=this.shadowRoot.querySelector(".navigation-container");const c=v=>{e=v,YM()},p=async()=>fetch(`${qM}/search?term=${C}&page=${e}`).then(v=>v.json()).then(v=>v).catch(v=>(console.error("Error fetching data",v),[])),L=v=>{let u="",M=v.pagesAmmount,f=v.page,w=wo.timeline(),Z=WM(f,M).map(V=>typeof V=="number"?`<button class="page-number ${V===f?"page-number-active":""} ">
|
|
11191
|
-
${
|
|
11192
|
-
</button>`:"<span>...</span>").join("");const _=this.shadowRoot.querySelector(".skeleton"),z=this.shadowRoot.querySelector(".results-counter"),m=this.shadowRoot.querySelector(".result-item");Object.keys(v==null?void 0:v.data).map(
|
|
11190
|
+
*/var Qi,M2,G3,M9,e3,Co,f9,HM=function(){return typeof window<"u"},K1={},i3=180/Math.PI,K3=Math.PI/180,X3=Math.atan2,to=1e8,w9=/([A-Z])/g,VM=/(left|right|width|margin|padding|x)/i,ZM=/[\s,\(]\S/,D1={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},m9=function(C,t){return t.set(t.t,t.p,Math.round((t.s+t.c*C)*1e4)/1e4+t.u,t)},_M=function(C,t){return t.set(t.t,t.p,C===1?t.e:Math.round((t.s+t.c*C)*1e4)/1e4+t.u,t)},xM=function(C,t){return t.set(t.t,t.p,C?Math.round((t.s+t.c*C)*1e4)/1e4+t.u:t.b,t)},bM=function(C,t){var e=t.s+t.c*C;t.set(t.t,t.p,~~(e+(e<0?-.5:.5))+t.u,t)},eo=function(C,t){return t.set(t.t,t.p,C?t.e:t.b,t)},io=function(C,t){return t.set(t.t,t.p,C!==1?t.b:t.e,t)},yM=function(C,t,e){return C.style[t]=e},zM=function(C,t,e){return C.style.setProperty(t,e)},kM=function(C,t,e){return C._gsap[t]=e},$M=function(C,t,e){return C._gsap.scaleX=C._gsap.scaleY=e},AM=function(C,t,e,i,s){var a=C._gsap;a.scaleX=a.scaleY=e,a.renderTransform(s,a)},SM=function(C,t,e,i,s){var a=C._gsap;a[t]=e,a.renderTransform(s,a)},q="transform",H1=q+"Origin",BM=function o(C,t){var e=this,i=this.target,s=i.style,a=i._gsap;if(C in K1&&s){if(this.tfm=this.tfm||{},C!=="transform")C=D1[C]||C,~C.indexOf(",")?C.split(",").forEach(function(l){return e.tfm[l]=X1(i,l)}):this.tfm[C]=a.x?a[C]:X1(i,C),C===H1&&(this.tfm.zOrigin=a.zOrigin);else return D1.transform.split(",").forEach(function(l){return o.call(e,l,t)});if(this.props.indexOf(q)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(H1,t,"")),C=q}(s||t)&&this.props.push(C,t,s[C])},oo=function(C){C.translate&&(C.removeProperty("translate"),C.removeProperty("scale"),C.removeProperty("rotate"))},EM=function(){var C=this.props,t=this.target,e=t.style,i=t._gsap,s,a;for(s=0;s<C.length;s+=3)C[s+1]?t[C[s]]=C[s+2]:C[s+2]?e[C[s]]=C[s+2]:e.removeProperty(C[s].substr(0,2)==="--"?C[s]:C[s].replace(w9,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)i[a]=this.tfm[a];i.svg&&(i.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=f9(),(!s||!s.isStart)&&!e[q]&&(oo(e),i.zOrigin&&e[H1]&&(e[H1]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},so=function(C,t){var e={target:C,props:[],revert:EM,save:BM};return C._gsap||m1.core.getCache(C),t&&t.split(",").forEach(function(i){return e.save(i)}),e},ao,H9=function(C,t){var e=M2.createElementNS?M2.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),C):M2.createElement(C);return e&&e.style?e:M2.createElement(C)},N1=function o(C,t,e){var i=getComputedStyle(C);return i[t]||i.getPropertyValue(t.replace(w9,"-$1").toLowerCase())||i.getPropertyValue(t)||!e&&o(C,J3(t)||t,1)||""},no="O,Moz,ms,Ms,Webkit".split(","),J3=function(C,t,e){var i=t||e3,s=i.style,a=5;if(C in s&&!e)return C;for(C=C.charAt(0).toUpperCase()+C.substr(1);a--&&!(no[a]+C in s););return a<0?null:(a===3?"ms":a>=0?no[a]:"")+C},V9=function(){HM()&&window.document&&(Qi=window,M2=Qi.document,G3=M2.documentElement,e3=H9("div")||{style:{}},H9("div"),q=J3(q),H1=q+"Origin",e3.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ao=!!J3("perspective"),f9=m1.core.reverting,M9=1)},Z9=function o(C){var t=H9("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),e=this.parentNode,i=this.nextSibling,s=this.style.cssText,a;if(G3.appendChild(t),t.appendChild(this),this.style.display="block",C)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=o}catch{}else this._gsapBBox&&(a=this._gsapBBox());return e&&(i?e.insertBefore(this,i):e.appendChild(this)),G3.removeChild(t),this.style.cssText=s,a},lo=function(C,t){for(var e=t.length;e--;)if(C.hasAttribute(t[e]))return C.getAttribute(t[e])},ro=function(C){var t;try{t=C.getBBox()}catch{t=Z9.call(C,!0)}return t&&(t.width||t.height)||C.getBBox===Z9||(t=Z9.call(C,!0)),t&&!t.width&&!t.x&&!t.y?{x:+lo(C,["x","cx","x1"])||0,y:+lo(C,["y","cy","y1"])||0,width:0,height:0}:t},ho=function(C){return!!(C.getCTM&&(!C.parentNode||C.ownerSVGElement)&&ro(C))},o3=function(C,t){if(t){var e=C.style,i;t in K1&&t!==H1&&(t=q),e.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),e.removeProperty(i==="--"?t:t.replace(w9,"-$1").toLowerCase())):e.removeAttribute(t)}},f2=function(C,t,e,i,s,a){var l=new w1(C._pt,t,e,0,1,a?io:eo);return C._pt=l,l.b=i,l.e=s,C._props.push(e),l},co={deg:1,rad:1,turn:1},TM={grid:1,flex:1},w2=function o(C,t,e,i){var s=parseFloat(e)||0,a=(e+"").trim().substr((s+"").length)||"px",l=e3.style,r=VM.test(t),h=C.tagName.toLowerCase()==="svg",d=(h?"client":"offset")+(r?"Width":"Height"),c=100,p=i==="px",L=i==="%",g,v,u,M;if(i===a||!s||co[i]||co[a])return s;if(a!=="px"&&!p&&(s=o(C,t,e,"px")),M=C.getCTM&&ho(C),(L||a==="%")&&(K1[t]||~t.indexOf("adius")))return g=M?C.getBBox()[r?"width":"height"]:C[d],Y(L?s/g*c:s/100*g);if(l[r?"width":"height"]=c+(p?a:i),v=~t.indexOf("adius")||i==="em"&&C.appendChild&&!h?C:C.parentNode,M&&(v=(C.ownerSVGElement||{}).parentNode),(!v||v===M2||!v.appendChild)&&(v=M2.body),u=v._gsap,u&&L&&u.width&&r&&u.time===z1.time&&!u.uncache)return Y(s/u.width*c);if(L&&(t==="height"||t==="width")){var f=C.style[t];C.style[t]=c+i,g=C[d],f?C.style[t]=f:o3(C,t)}else(L||a==="%")&&!TM[N1(v,"display")]&&(l.position=N1(C,"position")),v===C&&(l.position="static"),v.appendChild(e3),g=e3[d],v.removeChild(e3),l.position="absolute";return r&&L&&(u=K2(v),u.time=z1.time,u.width=v[d]),Y(p?g*s/c:g&&s?c/g*s:0)},X1=function(C,t,e,i){var s;return M9||V9(),t in D1&&t!=="transform"&&(t=D1[t],~t.indexOf(",")&&(t=t.split(",")[0])),K1[t]&&t!=="transform"?(s=d6(C,i),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:P8(N1(C,H1))+" "+s.zOrigin+"px"):(s=C.style[t],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=T8[t]&&T8[t](C,t,e)||N1(C,t)||Li(C,t)||(t==="opacity"?1:0))),e&&!~(s+"").trim().indexOf(" ")?w2(C,t,s,e)+e:s},PM=function(C,t,e,i){if(!e||e==="none"){var s=J3(t,C,1),a=s&&N1(C,s,1);a&&a!==e?(t=s,e=a):t==="borderColor"&&(e=N1(C,"borderTopColor"))}var l=new w1(this._pt,C.style,t,0,1,Gi),r=0,h=0,d,c,p,L,g,v,u,M,f,w,V,_;if(l.b=e,l.e=i,e+="",i+="",i==="auto"&&(v=C.style[t],C.style[t]=i,i=N1(C,t)||i,v?C.style[t]=v:o3(C,t)),d=[e,i],Oi(d),e=d[0],i=d[1],p=e.match(R3)||[],_=i.match(R3)||[],_.length){for(;c=R3.exec(i);)u=c[0],f=i.substring(r,c.index),g?g=(g+1)%5:(f.substr(-5)==="rgba("||f.substr(-5)==="hsla(")&&(g=1),u!==(v=p[h++]||"")&&(L=parseFloat(v)||0,V=v.substr((L+"").length),u.charAt(1)==="="&&(u=j3(L,u)+V),M=parseFloat(u),w=u.substr((M+"").length),r=R3.lastIndex-w.length,w||(w=w||_1.units[t]||V,r===i.length&&(i+=w,l.e+=w)),V!==w&&(L=w2(C,t,v,w)||0),l._pt={_next:l._pt,p:f||h===1?f:",",s:L,c:M-L,m:g&&g<4||t==="zIndex"?Math.round:0});l.c=r<i.length?i.substring(r,i.length):""}else l.r=t==="display"&&i==="none"?io:eo;return li.test(i)&&(l.e=0),this._pt=l,l},po={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},IM=function(C){var t=C.split(" "),e=t[0],i=t[1]||"50%";return(e==="top"||e==="bottom"||i==="left"||i==="right")&&(C=e,e=i,i=C),t[0]=po[e]||e,t[1]=po[i]||i,t.join(" ")},OM=function(C,t){if(t.tween&&t.tween._time===t.tween._dur){var e=t.t,i=e.style,s=t.u,a=e._gsap,l,r,h;if(s==="all"||s===!0)i.cssText="",r=1;else for(s=s.split(","),h=s.length;--h>-1;)l=s[h],K1[l]&&(r=1,l=l==="transformOrigin"?H1:q),o3(e,l);r&&(o3(e,q),a&&(a.svg&&e.removeAttribute("transform"),d6(e,1),a.uncache=1,oo(i)))}},T8={clearProps:function(C,t,e,i,s){if(s.data!=="isFromStart"){var a=C._pt=new w1(C._pt,t,e,0,0,OM);return a.u=i,a.pr=-10,a.tween=s,C._props.push(e),1}}},h6=[1,0,0,1,0,0],vo={},Lo=function(C){return C==="matrix(1, 0, 0, 1, 0, 0)"||C==="none"||!C},go=function(C){var t=N1(C,q);return Lo(t)?h6:t.substr(7).match(ni).map(Y)},_9=function(C,t){var e=C._gsap||K2(C),i=C.style,s=go(C),a,l,r,h;return e.svg&&C.getAttribute("transform")?(r=C.transform.baseVal.consolidate().matrix,s=[r.a,r.b,r.c,r.d,r.e,r.f],s.join(",")==="1,0,0,1,0,0"?h6:s):(s===h6&&!C.offsetParent&&C!==G3&&!e.svg&&(r=i.display,i.display="block",a=C.parentNode,(!a||!C.offsetParent)&&(h=1,l=C.nextElementSibling,G3.appendChild(C)),s=go(C),r?i.display=r:o3(C,"display"),h&&(l?a.insertBefore(C,l):a?a.appendChild(C):G3.removeChild(C))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},x9=function(C,t,e,i,s,a){var l=C._gsap,r=s||_9(C,!0),h=l.xOrigin||0,d=l.yOrigin||0,c=l.xOffset||0,p=l.yOffset||0,L=r[0],g=r[1],v=r[2],u=r[3],M=r[4],f=r[5],w=t.split(" "),V=parseFloat(w[0])||0,_=parseFloat(w[1])||0,z,m,Z,x;e?r!==h6&&(m=L*u-g*v)&&(Z=V*(u/m)+_*(-v/m)+(v*f-u*M)/m,x=V*(-g/m)+_*(L/m)-(L*f-g*M)/m,V=Z,_=x):(z=ro(C),V=z.x+(~w[0].indexOf("%")?V/100*z.width:V),_=z.y+(~(w[1]||w[0]).indexOf("%")?_/100*z.height:_)),i||i!==!1&&l.smooth?(M=V-h,f=_-d,l.xOffset=c+(M*L+f*v)-M,l.yOffset=p+(M*g+f*u)-f):l.xOffset=l.yOffset=0,l.xOrigin=V,l.yOrigin=_,l.smooth=!!i,l.origin=t,l.originIsAbsolute=!!e,C.style[H1]="0px 0px",a&&(f2(a,l,"xOrigin",h,V),f2(a,l,"yOrigin",d,_),f2(a,l,"xOffset",c,l.xOffset),f2(a,l,"yOffset",p,l.yOffset)),C.setAttribute("data-svg-origin",V+" "+_)},d6=function(C,t){var e=C._gsap||new Ri(C);if("x"in e&&!t&&!e.uncache)return e;var i=C.style,s=e.scaleX<0,a="px",l="deg",r=getComputedStyle(C),h=N1(C,H1)||"0",d,c,p,L,g,v,u,M,f,w,V,_,z,m,Z,x,A,S,E,I,G,l1,C1,r1,P1,q8,m6,H6,n3,Io,J1,l3;return d=c=p=v=u=M=f=w=V=0,L=g=1,e.svg=!!(C.getCTM&&ho(C)),r.translate&&((r.translate!=="none"||r.scale!=="none"||r.rotate!=="none")&&(i[q]=(r.translate!=="none"?"translate3d("+(r.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(r.rotate!=="none"?"rotate("+r.rotate+") ":"")+(r.scale!=="none"?"scale("+r.scale.split(" ").join(",")+") ":"")+(r[q]!=="none"?r[q]:"")),i.scale=i.rotate=i.translate="none"),m=_9(C,e.svg),e.svg&&(e.uncache?(P1=C.getBBox(),h=e.xOrigin-P1.x+"px "+(e.yOrigin-P1.y)+"px",r1=""):r1=!t&&C.getAttribute("data-svg-origin"),x9(C,r1||h,!!r1||e.originIsAbsolute,e.smooth!==!1,m)),_=e.xOrigin||0,z=e.yOrigin||0,m!==h6&&(S=m[0],E=m[1],I=m[2],G=m[3],d=l1=m[4],c=C1=m[5],m.length===6?(L=Math.sqrt(S*S+E*E),g=Math.sqrt(G*G+I*I),v=S||E?X3(E,S)*i3:0,f=I||G?X3(I,G)*i3+v:0,f&&(g*=Math.abs(Math.cos(f*K3))),e.svg&&(d-=_-(_*S+z*I),c-=z-(_*E+z*G))):(l3=m[6],Io=m[7],m6=m[8],H6=m[9],n3=m[10],J1=m[11],d=m[12],c=m[13],p=m[14],Z=X3(l3,n3),u=Z*i3,Z&&(x=Math.cos(-Z),A=Math.sin(-Z),r1=l1*x+m6*A,P1=C1*x+H6*A,q8=l3*x+n3*A,m6=l1*-A+m6*x,H6=C1*-A+H6*x,n3=l3*-A+n3*x,J1=Io*-A+J1*x,l1=r1,C1=P1,l3=q8),Z=X3(-I,n3),M=Z*i3,Z&&(x=Math.cos(-Z),A=Math.sin(-Z),r1=S*x-m6*A,P1=E*x-H6*A,q8=I*x-n3*A,J1=G*A+J1*x,S=r1,E=P1,I=q8),Z=X3(E,S),v=Z*i3,Z&&(x=Math.cos(Z),A=Math.sin(Z),r1=S*x+E*A,P1=l1*x+C1*A,E=E*x-S*A,C1=C1*x-l1*A,S=r1,l1=P1),u&&Math.abs(u)+Math.abs(v)>359.9&&(u=v=0,M=180-M),L=Y(Math.sqrt(S*S+E*E+I*I)),g=Y(Math.sqrt(C1*C1+l3*l3)),Z=X3(l1,C1),f=Math.abs(Z)>2e-4?Z*i3:0,V=J1?1/(J1<0?-J1:J1):0),e.svg&&(r1=C.getAttribute("transform"),e.forceCSS=C.setAttribute("transform","")||!Lo(N1(C,q)),r1&&C.setAttribute("transform",r1))),Math.abs(f)>90&&Math.abs(f)<270&&(s?(L*=-1,f+=v<=0?180:-180,v+=v<=0?180:-180):(g*=-1,f+=f<=0?180:-180)),t=t||e.uncache,e.x=d-((e.xPercent=d&&(!t&&e.xPercent||(Math.round(C.offsetWidth/2)===Math.round(-d)?-50:0)))?C.offsetWidth*e.xPercent/100:0)+a,e.y=c-((e.yPercent=c&&(!t&&e.yPercent||(Math.round(C.offsetHeight/2)===Math.round(-c)?-50:0)))?C.offsetHeight*e.yPercent/100:0)+a,e.z=p+a,e.scaleX=Y(L),e.scaleY=Y(g),e.rotation=Y(v)+l,e.rotationX=Y(u)+l,e.rotationY=Y(M)+l,e.skewX=f+l,e.skewY=w+l,e.transformPerspective=V+a,(e.zOrigin=parseFloat(h.split(" ")[2])||!t&&e.zOrigin||0)&&(i[H1]=P8(h)),e.xOffset=e.yOffset=0,e.force3D=_1.force3D,e.renderTransform=e.svg?DM:ao?uo:FM,e.uncache=0,e},P8=function(C){return(C=C.split(" "))[0]+" "+C[1]},b9=function(C,t,e){var i=p1(t);return Y(parseFloat(t)+parseFloat(w2(C,"x",e+"px",i)))+i},FM=function(C,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,uo(C,t)},s3="0deg",c6="0px",a3=") ",uo=function(C,t){var e=t||this,i=e.xPercent,s=e.yPercent,a=e.x,l=e.y,r=e.z,h=e.rotation,d=e.rotationY,c=e.rotationX,p=e.skewX,L=e.skewY,g=e.scaleX,v=e.scaleY,u=e.transformPerspective,M=e.force3D,f=e.target,w=e.zOrigin,V="",_=M==="auto"&&C&&C!==1||M===!0;if(w&&(c!==s3||d!==s3)){var z=parseFloat(d)*K3,m=Math.sin(z),Z=Math.cos(z),x;z=parseFloat(c)*K3,x=Math.cos(z),a=b9(f,a,m*x*-w),l=b9(f,l,-Math.sin(z)*-w),r=b9(f,r,Z*x*-w+w)}u!==c6&&(V+="perspective("+u+a3),(i||s)&&(V+="translate("+i+"%, "+s+"%) "),(_||a!==c6||l!==c6||r!==c6)&&(V+=r!==c6||_?"translate3d("+a+", "+l+", "+r+") ":"translate("+a+", "+l+a3),h!==s3&&(V+="rotate("+h+a3),d!==s3&&(V+="rotateY("+d+a3),c!==s3&&(V+="rotateX("+c+a3),(p!==s3||L!==s3)&&(V+="skew("+p+", "+L+a3),(g!==1||v!==1)&&(V+="scale("+g+", "+v+a3),f.style[q]=V||"translate(0, 0)"},DM=function(C,t){var e=t||this,i=e.xPercent,s=e.yPercent,a=e.x,l=e.y,r=e.rotation,h=e.skewX,d=e.skewY,c=e.scaleX,p=e.scaleY,L=e.target,g=e.xOrigin,v=e.yOrigin,u=e.xOffset,M=e.yOffset,f=e.forceCSS,w=parseFloat(a),V=parseFloat(l),_,z,m,Z,x;r=parseFloat(r),h=parseFloat(h),d=parseFloat(d),d&&(d=parseFloat(d),h+=d,r+=d),r||h?(r*=K3,h*=K3,_=Math.cos(r)*c,z=Math.sin(r)*c,m=Math.sin(r-h)*-p,Z=Math.cos(r-h)*p,h&&(d*=K3,x=Math.tan(h-d),x=Math.sqrt(1+x*x),m*=x,Z*=x,d&&(x=Math.tan(d),x=Math.sqrt(1+x*x),_*=x,z*=x)),_=Y(_),z=Y(z),m=Y(m),Z=Y(Z)):(_=c,Z=p,z=m=0),(w&&!~(a+"").indexOf("px")||V&&!~(l+"").indexOf("px"))&&(w=w2(L,"x",a,"px"),V=w2(L,"y",l,"px")),(g||v||u||M)&&(w=Y(w+g-(g*_+v*m)+u),V=Y(V+v-(g*z+v*Z)+M)),(i||s)&&(x=L.getBBox(),w=Y(w+i/100*x.width),V=Y(V+s/100*x.height)),x="matrix("+_+","+z+","+m+","+Z+","+w+","+V+")",L.setAttribute("transform",x),f&&(L.style[q]=x)},NM=function(C,t,e,i,s){var a=360,l=a1(s),r=parseFloat(s)*(l&&~s.indexOf("rad")?i3:1),h=r-i,d=i+h+"deg",c,p;return l&&(c=s.split("_")[1],c==="short"&&(h%=a,h!==h%(a/2)&&(h+=h<0?a:-a)),c==="cw"&&h<0?h=(h+a*to)%a-~~(h/a)*a:c==="ccw"&&h>0&&(h=(h-a*to)%a-~~(h/a)*a)),C._pt=p=new w1(C._pt,t,e,i,h,_M),p.e=d,p.u="deg",C._props.push(e),p},Mo=function(C,t){for(var e in t)C[e]=t[e];return C},RM=function(C,t,e){var i=Mo({},e._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=e.style,l,r,h,d,c,p,L,g;i.svg?(h=e.getAttribute("transform"),e.setAttribute("transform",""),a[q]=t,l=d6(e,1),o3(e,q),e.setAttribute("transform",h)):(h=getComputedStyle(e)[q],a[q]=t,l=d6(e,1),a[q]=h);for(r in K1)h=i[r],d=l[r],h!==d&&s.indexOf(r)<0&&(L=p1(h),g=p1(d),c=L!==g?w2(e,r,h,g):parseFloat(h),p=parseFloat(d),C._pt=new w1(C._pt,l,r,c,p-c,m9),C._pt.u=g||0,C._props.push(r));Mo(l,i)};f1("padding,margin,Width,Radius",function(o,C){var t="Top",e="Right",i="Bottom",s="Left",a=(C<3?[t,e,i,s]:[t+s,t+e,i+e,i+s]).map(function(l){return C<2?o+l:"border"+l+o});T8[C>1?"border"+o:o]=function(l,r,h,d,c){var p,L;if(arguments.length<4)return p=a.map(function(g){return X1(l,g,h)}),L=p.join(" "),L.split(p[0]).length===5?p[0]:L;p=(d+"").split(" "),L={},a.forEach(function(g,v){return L[g]=p[v]=p[v]||p[(v-1)/2|0]}),l.init(r,L,c)}});var fo={name:"css",register:V9,targetTest:function(C){return C.style&&C.nodeType},init:function(C,t,e,i,s){var a=this._props,l=C.style,r=e.vars.startAt,h,d,c,p,L,g,v,u,M,f,w,V,_,z,m,Z;M9||V9(),this.styles=this.styles||so(C),Z=this.styles.props,this.tween=e;for(v in t)if(v!=="autoRound"&&(d=t[v],!(b1[v]&&ji(v,t,e,i,C,s)))){if(L=typeof d,g=T8[v],L==="function"&&(d=d.call(e,i,C,s),L=typeof d),L==="string"&&~d.indexOf("random(")&&(d=o6(d)),g)g(this,C,v,d,e)&&(m=1);else if(v.substr(0,2)==="--")h=(getComputedStyle(C).getPropertyValue(v)+"").trim(),d+="",g2.lastIndex=0,g2.test(h)||(u=p1(h),M=p1(d)),M?u!==M&&(h=w2(C,v,h,M)+M):u&&(d+=u),this.add(l,"setProperty",h,d,i,s,0,0,v),a.push(v),Z.push(v,0,l[v]);else if(L!=="undefined"){if(r&&v in r?(h=typeof r[v]=="function"?r[v].call(e,i,C,s):r[v],a1(h)&&~h.indexOf("random(")&&(h=o6(h)),p1(h+"")||h==="auto"||(h+=_1.units[v]||p1(X1(C,v))||""),(h+"").charAt(1)==="="&&(h=X1(C,v))):h=X1(C,v),p=parseFloat(h),f=L==="string"&&d.charAt(1)==="="&&d.substr(0,2),f&&(d=d.substr(2)),c=parseFloat(d),v in D1&&(v==="autoAlpha"&&(p===1&&X1(C,"visibility")==="hidden"&&c&&(p=0),Z.push("visibility",0,l.visibility),f2(this,l,"visibility",p?"inherit":"hidden",c?"inherit":"hidden",!c)),v!=="scale"&&v!=="transform"&&(v=D1[v],~v.indexOf(",")&&(v=v.split(",")[0]))),w=v in K1,w){if(this.styles.save(v),V||(_=C._gsap,_.renderTransform&&!t.parseTransform||d6(C,t.parseTransform),z=t.smoothOrigin!==!1&&_.smooth,V=this._pt=new w1(this._pt,l,q,0,1,_.renderTransform,_,0,-1),V.dep=1),v==="scale")this._pt=new w1(this._pt,_,"scaleY",_.scaleY,(f?j3(_.scaleY,f+c):c)-_.scaleY||0,m9),this._pt.u=0,a.push("scaleY",v),v+="X";else if(v==="transformOrigin"){Z.push(H1,0,l[H1]),d=IM(d),_.svg?x9(C,d,0,z,0,this):(M=parseFloat(d.split(" ")[2])||0,M!==_.zOrigin&&f2(this,_,"zOrigin",_.zOrigin,M),f2(this,l,v,P8(h),P8(d)));continue}else if(v==="svgOrigin"){x9(C,d,1,z,0,this);continue}else if(v in vo){NM(this,_,v,p,f?j3(p,f+d):d);continue}else if(v==="smoothOrigin"){f2(this,_,"smooth",_.smooth,d);continue}else if(v==="force3D"){_[v]=d;continue}else if(v==="transform"){RM(this,d,C);continue}}else v in l||(v=J3(v)||v);if(w||(c||c===0)&&(p||p===0)&&!ZM.test(d)&&v in l)u=(h+"").substr((p+"").length),c||(c=0),M=p1(d)||(v in _1.units?_1.units[v]:u),u!==M&&(p=w2(C,v,h,M)),this._pt=new w1(this._pt,w?_:l,v,p,(f?j3(p,f+c):c)-p,!w&&(M==="px"||v==="zIndex")&&t.autoRound!==!1?bM:m9),this._pt.u=M||0,u!==M&&M!=="%"&&(this._pt.b=h,this._pt.r=xM);else if(v in l)PM.call(this,C,v,h,f?f+d:d);else if(v in C)this.add(C,v,h||C[v],f?f+d:d,i,s);else if(v!=="parseTransform"){G7(v,d);continue}w||(v in l?Z.push(v,0,l[v]):Z.push(v,1,h||C[v])),a.push(v)}}m&&Ki(this)},render:function(C,t){if(t.tween._time||!f9())for(var e=t._pt;e;)e.r(C,e.d),e=e._next;else t.styles.revert()},get:X1,aliases:D1,getSetter:function(C,t,e){var i=D1[t];return i&&i.indexOf(",")<0&&(t=i),t in K1&&t!==H1&&(C._gsap.x||X1(C,"x"))?e&&Co===e?t==="scale"?$M:kM:(Co=e||{})&&(t==="scale"?AM:SM):C.style&&!R7(C.style[t])?yM:~t.indexOf("-")?zM:p9(C,t)},core:{_removeProperty:o3,_getMatrix:_9}};m1.utils.checkPrefix=J3,m1.core.getStyleSaver=so,function(o,C,t,e){var i=f1(o+","+C+","+t,function(s){K1[s]=1});f1(C,function(s){_1.units[s]="deg",vo[s]=1}),D1[i[13]]=o+","+C,f1(e,function(s){var a=s.split(":");D1[a[1]]=i[a[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),f1("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){_1.units[o]="px"}),m1.registerPlugin(fo);var wo=m1.registerPlugin(fo)||m1;wo.core.Tween;const jM=ei.head,UM={newsitems:{title:"Artículos",baseUrl:"https://www.clinicaalemana.cl/articulos/detalle/"},events:{title:"Eventos",baseUrl:"https://www.clinicaalemana.cl/centro-de-extension/charlas-y-talleres/detalle/"},medicos:{title:"Profesional",baseUrl:"https://www.clinicaalemana.cl/medicos/detalle/"},centros:{title:"Centros",baseUrl:"https://www.clinicaalemana.cl/centros-medicos/detalle/"},programas:{title:"Programas",baseUrl:"https://www.clinicaalemana.cl/centros-medicos/detalle/"}},qM="https://portal-backend.clinicaalemana.cl",WM=(o,C)=>{const t=[];if(C<=5)for(let e=1;e<=C;e++)t.push(e);else o<=3?t.push(1,2,3,4,5,"...",C):o>=C-2?t.push(1,"...",C-4,C-3,C-2,C-1,C):t.push(1,"...",o-1,o,o+1,"...",C);return t},YM=()=>{const o=window.scrollY,C=800,t=performance.now();function e(i){const s=i-t,a=Math.min(s/C,1),l=1-Math.pow(1-a,3);window.scrollTo(0,o*(1-l)),s<C&&requestAnimationFrame(e)}requestAnimationFrame(e)};class I8 extends k{constructor(){super(),this.showSignin=!1,this.showSearch=!1,this.hideSearch=window.location.href.includes("buscar")}openBookingBox(){const C=new CustomEvent("openBookingBox");document.dispatchEvent(C)}openSignIn(){this.showSignin=!0,this.requestUpdate()}openSearch(){this.showSearch=!0,this.requestUpdate()}closeSingIn(){this.showSignin=!1,this.requestUpdate()}closeSearch(){this.showSearch=!1,this.requestUpdate()}openMenu(){const C=new CustomEvent("openMenuMobile");document.dispatchEvent(C)}initializeMobileSearch(){let C="",t=new URLSearchParams(window.location.search),e=t.has("page")?t.get("page"):1,i=this.shadowRoot.querySelector("#searchTermInput"),s=this.shadowRoot.querySelector(".results-counter"),a=this.shadowRoot.querySelector(".search-button-mobile"),l=this.shadowRoot.querySelector(".results-container"),r=this.shadowRoot.querySelector(".page-numbers"),h=this.shadowRoot.querySelector(".search-bar"),d=this.shadowRoot.querySelector(".navigation-container");const c=v=>{e=v,YM()},p=async()=>fetch(`${qM}/search?term=${C}&page=${e}`).then(v=>v.json()).then(v=>v).catch(v=>(console.error("Error fetching data",v),[])),L=v=>{let u="",M=v.pagesAmmount,f=v.page,w=wo.timeline(),V=WM(f,M).map(Z=>typeof Z=="number"?`<button class="page-number ${Z===f?"page-number-active":""} ">
|
|
11191
|
+
${Z}
|
|
11192
|
+
</button>`:"<span>...</span>").join("");const _=this.shadowRoot.querySelector(".skeleton"),z=this.shadowRoot.querySelector(".results-counter"),m=this.shadowRoot.querySelector(".result-item");Object.keys(v==null?void 0:v.data).map(Z=>{let x=v==null?void 0:v.data[Z].summaryField;u=u+(v==null?void 0:v.data[Z].results.map(A=>{var E;let S="";for(let I of x)if(A[I]){let G=document.createElement("div");G.innerHTML=A[I],S=G.textContent||G.innerText||"",S=S.length>200?S.substring(0,200)+"...":S;break}return S||(S="No summary available"),`
|
|
11193
11193
|
<a href="${A==null?void 0:A.href}"
|
|
11194
11194
|
target="_blank"
|
|
11195
11195
|
class="result-item">
|
|
11196
|
-
<cas-text variant="footnote1">${(E=UM[
|
|
11196
|
+
<cas-text variant="footnote1">${(E=UM[Z])==null?void 0:E.title}</cas-text>
|
|
11197
11197
|
<cas-text variant="headline1" mobileVariant="m-headline1">${A==null?void 0:A.Title}</cas-text>
|
|
11198
11198
|
<cas-text variant="headline5" mobileVariant="m-body1">${S}</cas-text>
|
|
11199
11199
|
</a>
|
|
11200
|
-
`}).join(""))}),w.to(_,{opacity:0,duration:1,ease:"power2.out",delay:.5,stagger:.1,onComplete:()=>{s.innerHTML=`<cas-text variant="headline3">${v==null?void 0:v.total} resultados</cas-text>`,w.from(z,{opacity:0,y:10,duration:.1,ease:"power2.out"}),l.innerHTML=u,w.from(m,{opacity:0,y:10,duration:.5,stagger:.1,ease:"power2.out"}),d.classList.remove("loading"),r.style.opacity=1,r.innerHTML=
|
|
11200
|
+
`}).join(""))}),w.to(_,{opacity:0,duration:1,ease:"power2.out",delay:.5,stagger:.1,onComplete:()=>{s.innerHTML=`<cas-text variant="headline3">${v==null?void 0:v.total} resultados</cas-text>`,w.from(z,{opacity:0,y:10,duration:.1,ease:"power2.out"}),l.innerHTML=u,w.from(m,{opacity:0,y:10,duration:.5,stagger:.1,ease:"power2.out"}),d.classList.remove("loading"),r.style.opacity=1,r.innerHTML=V,this.shadowRoot.querySelectorAll(".page-number").forEach(A=>{A.addEventListener("click",()=>{r.innerHTML="",g(A.innerText),d.classList.add("loading")})});let x=this.shadowRoot.querySelectorAll(".navigation-button");x[0].disabled=f===1,x[0].addEventListener("click",()=>{f>1&&(r.innerHTML="",g(f-1),d.classList.add("loading"))}),x[1].disabled=f===M,x[1].addEventListener("click",()=>{f<M&&(r.innerHTML="",g(f+1),d.classList.add("loading"))})}})},g=v=>{c(v||e),this.shadowRoot.querySelectorAll(".pill").length>0&&this.shadowRoot.querySelectorAll(".pill").forEach(M=>{M.remove()});let u=document.createElement("div");u.classList.add("pill"),u.addEventListener("click",()=>{console.log("click en la pill"),C="",i.value="",u.remove(),c(),l.innerHTML="",s.innerHTML="",r.innerHTML="",d.innerHTML=""}),u.innerHTML=`
|
|
11201
11201
|
<cas-text variant="body1">${C}</cas-text>
|
|
11202
11202
|
<cas-icon name="flat-close" size="12" />
|
|
11203
11203
|
`,h.appendChild(u),l.innerHTML=`
|
|
@@ -11218,48 +11218,48 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11218
11218
|
<button class="navigation-button">
|
|
11219
11219
|
<cas-icon name="flat-arrowRight" size="20" ></cas-icon>
|
|
11220
11220
|
</button>
|
|
11221
|
-
`,p().then(M=>{L(M)})};t.has("searchTerm")&&this.shadowRoot.querySelector("#searchTermInput")&&(C=t.get("searchTerm"),this.shadowRoot.querySelector("#searchTermInput").value=C,g()),i.addEventListener("input",v=>{C=v.target.value}),a.addEventListener("click",async()=>{C=i.value,g()}),i.addEventListener("keypress",v=>{v.key==="Enter"&&(C=i.value,g())}),i.addEventListener("focus",()=>{let v=this.shadowRoot.querySelector(".pill");v&&(C=v.querySelector("cas-text").innerText,v.remove())})}
|
|
11221
|
+
`,p().then(M=>{L(M)})};t.has("searchTerm")&&this.shadowRoot.querySelector("#searchTermInput")&&(C=t.get("searchTerm"),this.shadowRoot.querySelector("#searchTermInput").value=C,g()),i.addEventListener("input",v=>{C=v.target.value}),a.addEventListener("click",async()=>{C=i.value,g()}),i.addEventListener("keypress",v=>{v.key==="Enter"&&(C=i.value,g())}),i.addEventListener("focus",()=>{let v=this.shadowRoot.querySelector(".pill");v&&(C=v.querySelector("cas-text").innerText,v.remove())})}initializeDesktopSearch(){let C=new URLSearchParams(window.location.search).get("searchTerm");const t=this.shadowRoot.getElementById("search-input");t.value=C||"";const e=t.closest("li"),i=this.shadowRoot.getElementById("clearSearchButton"),s=this.shadowRoot.getElementById("searchButton"),a=()=>{t.value&&(window.location.href=`/buscar?searchTerm=${t.value}`)},l=()=>{t.value?e.classList.add("has-value","focused"):e.classList.remove("has-value","focused")};s.addEventListener("click",a),t.addEventListener("keypress",r=>{r.key==="Enter"&&a()}),t.addEventListener("focus",()=>e.classList.add("focused")),t.addEventListener("blur",l),t.addEventListener("input",l),i.addEventListener("click",()=>{t.value="",l();const r=new URL(window.location.href);r.searchParams.delete("searchTerm"),window.history.pushState({},"",r)}),l()}firstUpdated(){this.hideSearch||(this.isMobile?this.showSearch&&this.initializeMobileSearch():this.initializeDesktopSearch())}updated(){const C=this.shadowRoot.querySelectorAll(".group > li");C.forEach(t=>{t.addEventListener("click",()=>{C.forEach(e=>{e.classList.remove("active")}),t.classList.add("active")})}),!this.hideSearch&&this.showSearch&&this.initializeMobileSearch()}render(){const{isMobile:C,isTablet:t,isMacbookAir:e}=this,i=jM,s=e?"Reservar":"Reservar hora";document.addEventListener("click",d=>{d.composedPath().includes(this)||this.shadowRoot.querySelectorAll(".group > li").forEach(p=>{p.classList.remove("active")})});const a=d=>{const{icon:c,name:p,text:L,url:g,login:v}=d;return y`
|
|
11222
11222
|
<li>
|
|
11223
|
-
<a href="${
|
|
11224
|
-
${
|
|
11223
|
+
<a href="${g}">
|
|
11224
|
+
${c?y`
|
|
11225
11225
|
<div class="icon">
|
|
11226
|
-
<cas-icon name="${
|
|
11226
|
+
<cas-icon name="${c}" size="20"></cas-icon>
|
|
11227
11227
|
</div>
|
|
11228
11228
|
`:null}
|
|
11229
11229
|
<div class="inner-text">
|
|
11230
|
-
<cas-text variant="footnote2">${
|
|
11231
|
-
${
|
|
11232
|
-
<cas-text variant="body2">${
|
|
11230
|
+
<cas-text variant="footnote2">${p}</cas-text>
|
|
11231
|
+
${L?y`
|
|
11232
|
+
<cas-text variant="body2">${L}</cas-text>`:null}
|
|
11233
11233
|
</div>
|
|
11234
|
-
${
|
|
11234
|
+
${v?y`
|
|
11235
11235
|
<div class="icon-login">
|
|
11236
11236
|
<cas-icon name="flat-check" size="20"></cas-icon>
|
|
11237
11237
|
</div>`:null}
|
|
11238
11238
|
</a>
|
|
11239
|
-
</li>`},l=(
|
|
11240
|
-
<cas-icon name="${
|
|
11241
|
-
${C?"":`<cas-text variant="footnote2">${
|
|
11242
|
-
${
|
|
11243
|
-
<slot name="h-item-${
|
|
11244
|
-
</${
|
|
11239
|
+
</li>`},l=(d,c)=>{const{icon:p,name:L,hasChildren:g,url:v,children:u}=d,M=g?"div":"a",f=u==null?void 0:u.map(V=>a(V)),w=`<${M} class="item" ${v?`href=${v}`:""}>
|
|
11240
|
+
<cas-icon name="${p}" size="${C?32:20}"></cas-icon>
|
|
11241
|
+
${C?"":`<cas-text variant="footnote2">${L}</cas-text>`}
|
|
11242
|
+
${g?`<cas-icon name="flat-chevronDown" size="${C?20:16}"></cas-icon>`:""}
|
|
11243
|
+
<slot name="h-item-${c}"></slot>
|
|
11244
|
+
</${M}>
|
|
11245
11245
|
`;return y`
|
|
11246
11246
|
<li>
|
|
11247
|
-
${V3(
|
|
11248
|
-
${
|
|
11247
|
+
${V3(w)}
|
|
11248
|
+
${g?y`
|
|
11249
11249
|
<div class="children">
|
|
11250
11250
|
<ul>
|
|
11251
|
-
${
|
|
11251
|
+
${f}
|
|
11252
11252
|
</ul>
|
|
11253
11253
|
</div>
|
|
11254
11254
|
`:""}
|
|
11255
11255
|
</li>
|
|
11256
|
-
`};if(C||t){const
|
|
11256
|
+
`},r=!this.hideSearch;if(C||t){const d=i.slice(0,2);return this.variant!==W1.HOME?y`
|
|
11257
11257
|
<div class="wrapped" data-theme="${this.theme}">
|
|
11258
11258
|
<div class="inner-wrapped">
|
|
11259
11259
|
<a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago"
|
|
11260
11260
|
aria-label="Volver a página de inicio de Clínica Alemana">${KM(y9[this.theme])}</a>
|
|
11261
11261
|
<ul class="actions group">
|
|
11262
|
-
${
|
|
11262
|
+
${d.map((c,p)=>l(c,p))}
|
|
11263
11263
|
</ul>
|
|
11264
11264
|
</div>
|
|
11265
11265
|
</div>
|
|
@@ -11273,11 +11273,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11273
11273
|
<cas-icon name="flat-calendarOn" size="24"></cas-icon>
|
|
11274
11274
|
<cas-text variant="caption1">Reservar</cas-text>
|
|
11275
11275
|
</button>
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11276
|
+
${r?y`<cas-icon
|
|
11277
|
+
@click="${this.openSearch}"
|
|
11278
|
+
name="flat-search"
|
|
11279
|
+
size="32"
|
|
11280
|
+
></cas-icon>`:""}
|
|
11281
|
+
|
|
11281
11282
|
<div class="mobile-signin">
|
|
11282
11283
|
<slot name="h-item-2"></slot>
|
|
11283
11284
|
<cas-icon
|
|
@@ -11355,22 +11356,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
11355
11356
|
</div>
|
|
11356
11357
|
</section>
|
|
11357
11358
|
`:null}
|
|
11358
|
-
`}const
|
|
11359
|
-
<div class="${
|
|
11359
|
+
`}const h=bu({wrapped:!0,home:this.variant==="home"});return y`
|
|
11360
|
+
<div class="${h}" data-theme="${this.theme}">
|
|
11360
11361
|
<div class="inner-wrapped">
|
|
11361
11362
|
<a href="https://www.clinicaalemana.cl" title="Clínica Alemana de Santiago"
|
|
11362
11363
|
aria-label="Volver a página de inicio de Clínica Alemana">${GM(y9[this.theme])} </a>
|
|
11363
11364
|
<ul class="group">
|
|
11364
|
-
|
|
11365
|
-
<input
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11365
|
+
${r?y`
|
|
11366
|
+
<li class="search-input-wrapper">
|
|
11367
|
+
<input
|
|
11368
|
+
id="search-input"
|
|
11369
|
+
class="search-input"
|
|
11370
|
+
placeholder="Buscar..."
|
|
11371
|
+
/>
|
|
11372
|
+
<cas-icon name="flat-search" id="searchButton" size="20"></cas-icon>
|
|
11373
|
+
<cas-icon name="flat-close" id="clearSearchButton" size="20"></cas-icon>
|
|
11374
|
+
</li>`:""}
|
|
11375
|
+
|
|
11376
|
+
${i.map((d,c)=>l(d,c))}
|
|
11374
11377
|
<div class="box-action">
|
|
11375
11378
|
<cas-button
|
|
11376
11379
|
@click="${this.openBookingBox}"
|
|
@@ -14591,8 +14594,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14591
14594
|
padding: 16px;
|
|
14592
14595
|
}
|
|
14593
14596
|
}
|
|
14594
|
-
`,Ao=(o,C)=>new Date(o,C,0).getDate(),So=({year:o,month:C,day:t})=>{const e=C<10?`0${C}`:C,i=t<10?`0${t}`:t;return`${o}-${e}-${i}`};function Xf(){const o=new Date,C=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],t=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],e=o.getFullYear(),i=o.getMonth()+1,s=[...Array(10).keys()].map(a=>a+e);return{date:o,weekdays:t,currentYear:e,currentMonth:i,month_names:C,years:s}}function Jf({month:o,year:C,selectValue:t,disablePast:e,disableWeekends:i,availableDays:s,disablePrevious:a,disableNext:l}){const r=[],h=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],d=Ao(C,o),c=new Date,p=new Date(C,o-1,1),L=new Date(C,o-1,0).getDate();for(let u=p.getDay();u>0;u--)r.push({name:L+1-u,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let u=0;u<d;u++){const M=s==null?void 0:s.includes(u+1),f=c.getDate()===u+1&&c.getMonth()===o-1,w=t===So({year:C,month:o,day:u+1}),
|
|
14595
|
-
<button type="button" class=${
|
|
14597
|
+
`,Ao=(o,C)=>new Date(o,C,0).getDate(),So=({year:o,month:C,day:t})=>{const e=C<10?`0${C}`:C,i=t<10?`0${t}`:t;return`${o}-${e}-${i}`};function Xf(){const o=new Date,C=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],t=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],e=o.getFullYear(),i=o.getMonth()+1,s=[...Array(10).keys()].map(a=>a+e);return{date:o,weekdays:t,currentYear:e,currentMonth:i,month_names:C,years:s}}function Jf({month:o,year:C,selectValue:t,disablePast:e,disableWeekends:i,availableDays:s,disablePrevious:a,disableNext:l}){const r=[],h=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],d=Ao(C,o),c=new Date,p=new Date(C,o-1,1),L=new Date(C,o-1,0).getDate();for(let u=p.getDay();u>0;u--)r.push({name:L+1-u,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let u=0;u<d;u++){const M=s==null?void 0:s.includes(u+1),f=c.getDate()===u+1&&c.getMonth()===o-1,w=t===So({year:C,month:o,day:u+1}),V=new Date(C,o-1,u+1),z=(()=>{if(a){const Z=new Date(a);if(Z.setHours(0,0,0,0),V<=Z)return!0}if(l){const Z=new Date(l);if(Z.setHours(0,0,0,0),V>Z)return!0}if(e){const Z=new Date;if(Z.setHours(0,0,0,0),V<Z)return!0}if(i){const Z=V.getDay();if(Z===0||Z===6)return!0}return!1})(),m=So({year:C,month:o,day:u+1});r.push({value:m,name:1+u,isCurrentMonth:!0,isCurrentDay:u+1===c.getDate(),isToday:f,isAvailable:M,date:V,disabled:z,selected:w})}const g=r.length%7===0?0:7-r.length%7;for(let u=0;u<g;u++)r.push({name:u+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:C,month:h[o-1],days:Ao(C,o),calendar:r}}function Qf(o){const{isAvailable:C,isCurrentMonth:t,isToday:e,disabled:i,selected:s}=o;return{dayStyles:g1({"item-day":!0,"current-month":t,available:C,today:e,disabled:i,selected:s})}}class n5 extends k{constructor(){var C;super(),this.open=!1,this.label="date picker",this.name=((C=this.getAttribute("label"))==null?void 0:C.toLowerCase().replace(" ","-"))||"date-picker",this.value="",this.year=new Date().getFullYear(),this.month=new Date().getMonth()+1,this.initialValue="",this.disabled=!1,this.disablePrevious="",this.disableNext="",this.showLegend="true"}handleOpen(){this.open=!0}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(C){this.value=C.target.value}updated(){const C=this.disabled==="true"||this.disabled===!0,t=this.shadowRoot.querySelector("cas-input");C?t==null||t.setAttribute("disabled",!0):t==null||t.removeAttribute("disabled")}render(){const{disablePast:C,disableWeekends:t,open:e,year:i,month:s,disablePrevious:a,disableNext:l}=this,{weekdays:r,month_names:h,years:d}=Xf(),c=Jf({month:s,year:i,selectValue:this.value,disablePast:C,disableWeekends:t,disablePrevious:a,disableNext:l});document.addEventListener("click",w=>{w.composedPath().includes(this)||this.handleClose()});const p=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(V=>{V.classList.remove("open")})},L=w=>{const{dayStyles:V}=Qf(w);return y`
|
|
14598
|
+
<button type="button" class=${V} @click=${z=>{if(p(),w.isCurrentMonth&&!w.disabled){const m=z.target.parentNode.querySelectorAll("button");for(let Z=0;Z<m.length;Z++)m[Z].classList.remove("selected");z.target.classList.add("selected"),this.value=w.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("callback",{detail:{value:w.value,name:this.name,message:"Success",success:!0,error:!1},bubbles:!0,composed:!0}))}else console.log("not available")}} >
|
|
14596
14599
|
${w.name}
|
|
14597
14600
|
</button>
|
|
14598
14601
|
`},g=()=>y`
|
|
@@ -14610,21 +14613,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14610
14613
|
<cas-text variant="caption2">Sin horas disponibles</cas-text>
|
|
14611
14614
|
</div>
|
|
14612
14615
|
</div>
|
|
14613
|
-
`,v=(w,
|
|
14614
|
-
<div class="item-dropdown" @click=${()=>{
|
|
14616
|
+
`,v=(w,V,_)=>y`
|
|
14617
|
+
<div class="item-dropdown" @click=${()=>{V==="year"?this.year=w:this.month=_+1,p(),this.requestUpdate()}}>
|
|
14615
14618
|
<cas-text variant="footnote2" >${w}</cas-text>
|
|
14616
14619
|
</div>
|
|
14617
|
-
`,u=({month:w,data:
|
|
14620
|
+
`,u=({month:w,data:V,mode:_})=>y`
|
|
14618
14621
|
<div class="dropdown ${_}">
|
|
14619
14622
|
<div class="head-dropdown" @click=${()=>{const m=this.shadowRoot.querySelector(`.dropdown.${_}`);m.classList.contains("open")?m.classList.remove("open"):m.classList.add("open")}} >
|
|
14620
14623
|
<cas-text variant="headline3">${w[_]}</cas-text>
|
|
14621
14624
|
<cas-icon name="flat-sortDown" size="20"></cas-icon>
|
|
14622
14625
|
</div>
|
|
14623
14626
|
<div class="dropdown-content scrollable">
|
|
14624
|
-
${
|
|
14627
|
+
${V==null?void 0:V.map((m,Z)=>v(m,_,Z))}
|
|
14625
14628
|
</div>
|
|
14626
14629
|
</div>
|
|
14627
|
-
`,M=w=>{var
|
|
14630
|
+
`,M=w=>{var V;return y`
|
|
14628
14631
|
<div class="month-container">
|
|
14629
14632
|
<div class="header-month">
|
|
14630
14633
|
<button class="prev-month" @click=${this.changeMonthPrev}>
|
|
@@ -14642,13 +14645,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14642
14645
|
${r==null?void 0:r.map(_=>y`<cas-text variant="caption1">${_}</cas-text>`)}
|
|
14643
14646
|
</div>
|
|
14644
14647
|
<div class="list-days">
|
|
14645
|
-
${(
|
|
14648
|
+
${(V=w.calendar)==null?void 0:V.map(_=>L(_))}
|
|
14646
14649
|
</div>
|
|
14647
14650
|
${this.showLegend==="true"?g():null}
|
|
14648
14651
|
</div>
|
|
14649
14652
|
`};return y`
|
|
14650
14653
|
<div class="datepicker-container">
|
|
14651
|
-
${(({name:w,value:
|
|
14654
|
+
${(({name:w,value:V})=>V===""?y`
|
|
14652
14655
|
<cas-input
|
|
14653
14656
|
label=${this.label}
|
|
14654
14657
|
icon="flat-calendarOn"
|
|
@@ -14667,7 +14670,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
14667
14670
|
textHelper="Ingresa una fecha válida"
|
|
14668
14671
|
name=${w}
|
|
14669
14672
|
label=${this.label}
|
|
14670
|
-
value=${
|
|
14673
|
+
value=${V}
|
|
14671
14674
|
icon="flat-calendarOn"
|
|
14672
14675
|
@input=${this.onChange}
|
|
14673
14676
|
@click=${this.handleOpen}
|
|
@@ -15032,8 +15035,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
15032
15035
|
width: 300px;
|
|
15033
15036
|
}
|
|
15034
15037
|
}
|
|
15035
|
-
`,Bo=(o,C)=>new Date(o,C,0).getDate(),l5=({year:o,month:C,day:t})=>{const e=C<10?`0${C}`:C,i=t<10?`0${t}`:t;return`${o}-${e}-${i}`};function tw(){const o=new Date,C=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],t=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],e=o.getFullYear(),i=o.getMonth()+1,s=[...Array(10).keys()].map(a=>a+e);return{date:o,weekdays:t,currentYear:e,currentMonth:i,month_names:C,years:s}}function Eo({month:o,year:C,selectValue:t,range:e,disablePast:i,availableDays:s}){const a=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],l=[],r=Bo(C,o),h=new Date,d=new Date(C,o-1,1),c=new Date(C,o-1,0).getDate();for(let g=d.getDay();g>0;g--)l.push({name:c+1-g,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let g=0;g<r;g++){const v=e.start.value&&e.end.value,u=v&&e.start.value<=l5({year:C,month:o,day:g+1})&&e.end.value>=l5({year:C,month:o,day:g+1}),M=v&&e.start.value===l5({year:C,month:o,day:g+1}),f=v&&e.end.value===l5({year:C,month:o,day:g+1}),w=s==null?void 0:s.includes(g+1),
|
|
15036
|
-
<button type="button" class=${
|
|
15038
|
+
`,Bo=(o,C)=>new Date(o,C,0).getDate(),l5=({year:o,month:C,day:t})=>{const e=C<10?`0${C}`:C,i=t<10?`0${t}`:t;return`${o}-${e}-${i}`};function tw(){const o=new Date,C=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],t=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],e=o.getFullYear(),i=o.getMonth()+1,s=[...Array(10).keys()].map(a=>a+e);return{date:o,weekdays:t,currentYear:e,currentMonth:i,month_names:C,years:s}}function Eo({month:o,year:C,selectValue:t,range:e,disablePast:i,availableDays:s}){const a=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],l=[],r=Bo(C,o),h=new Date,d=new Date(C,o-1,1),c=new Date(C,o-1,0).getDate();for(let g=d.getDay();g>0;g--)l.push({name:c+1-g,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let g=0;g<r;g++){const v=e.start.value&&e.end.value,u=v&&e.start.value<=l5({year:C,month:o,day:g+1})&&e.end.value>=l5({year:C,month:o,day:g+1}),M=v&&e.start.value===l5({year:C,month:o,day:g+1}),f=v&&e.end.value===l5({year:C,month:o,day:g+1}),w=s==null?void 0:s.includes(g+1),V=h.getDate()===g+1&&h.getMonth()===o-1,_=t===l5({year:C,month:o,day:g+1}),z=new Date(C,o-1,g+1),m=i&&z.setHours(0,0,0,0)<h.setHours(0,0,0,0);l.push({value:l5({year:C,month:o,day:g+1}),name:1+g,isCurrentMonth:!0,isCurrentDay:g+1===h.getDate(),isToday:V,isAvailable:w,date:z,disabled:m,selected:_,inRange:u,isStart:M,isEnd:f})}const p=42-l.length;for(let g=0;g<p;g++)l.push({name:g+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:C,month:a[o-1],days:Bo(C,o),calendar:l}}function ew(o){const{isAvailable:C,isCurrentMonth:t,isToday:e,disabled:i,selected:s,inRange:a,isStart:l,isEnd:r}=o;return{dayStyles:g1({"item-day":!0,"current-month":t,available:C,today:e,disabled:i,selected:s,range:a,start:l,end:r})}}class r5 extends k{constructor(){super(),this.open=!1,this.name="desde-hasta",this.value=[],this.year=new Date().getFullYear(),this.years=[],this.month=new Date().getMonth()+1,this.valueStart="",this.valueEnd=""}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(C){this.value=C.target.value}render(){const{disablePast:C,showLegend:t,open:e,year:i,month:s,valueStart:a,valueEnd:l}=this,{weekdays:r,month_names:h,years:d}=tw(),c={start:{value:this.valueStart,year:this.valueStart.split("-")[0],month:this.valueStart.split("-")[1],day:this.valueStart.split("-")[2]},end:{value:this.valueEnd,year:this.valueEnd.split("-")[0],month:this.valueEnd.split("-")[1],day:this.valueEnd.split("-")[2]}},p=Eo({month:s,year:i,selectValue:this.valueStart,range:c,disablePast:C}),L=Eo({month:s+1,year:i,selectValue:this.valueEnd,range:c,disablePast:C});document.addEventListener("click",m=>{m.composedPath().includes(this)||this.handleClose()});const g=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(Z=>{Z.classList.remove("open")})},v=m=>{const{dayStyles:Z}=ew(m),x=()=>{if(this.valueStart==="")this.valueStart=m.value,this.valueEnd="";else if(this.valueStart!==""&&m.value<this.valueStart)this.valueStart=m.value;else if(this.valueEnd!==""&&m.value>this.valueEnd)this.valueEnd=m.value;else if(this.valueStart!==""&&this.valueEnd===""){this.valueEnd=m.value,this.value=[this.valueStart,this.valueEnd],this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,detail:{value:`${this.valueStart} - ${this.valueEnd}`}}));const S={value:`${this.valueStart} - ${this.valueEnd}`,name:this.name,start:this.valueStart,end:this.valueEnd,message:`${this.name}: ${this.valueStart} - ${this.valueEnd}`,error:!1,success:!0};this.dispatchEvent(new CustomEvent("callback",{detail:S,bubbles:!0,composed:!0})),this.open=!1}else this.valueStart!==""&&this.valueEnd!==""?(this.valueStart=m.value,this.valueEnd=""):(this.valueStart="",this.valueEnd="");this.setAttribute("date-start",this.valueStart),this.setAttribute("date-end",this.valueEnd)};return n`
|
|
15039
|
+
<button type="button" class=${Z} @click=${S=>{if(g(),m.isCurrentMonth&&!m.disabled){const E=S.target.parentNode.querySelectorAll("button");for(let I=0;I<E.length;I++)E[I].classList.remove("selected");S.target.classList.add("selected"),x()}else console.log("not available")}} >
|
|
15037
15040
|
${m.name}
|
|
15038
15041
|
</button>
|
|
15039
15042
|
`},u=()=>n`
|
|
@@ -15051,21 +15054,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
15051
15054
|
<cas-text text="Sin horas disponibles" variant="caption2"></cas-text>
|
|
15052
15055
|
</div>
|
|
15053
15056
|
</div>
|
|
15054
|
-
`,M=(m,
|
|
15055
|
-
<div class="item-dropdown" @click=${()=>{
|
|
15057
|
+
`,M=(m,Z,x)=>n`
|
|
15058
|
+
<div class="item-dropdown" @click=${()=>{Z==="year"?this.year=m:this.month=x+1,g(),this.requestUpdate()}}>
|
|
15056
15059
|
<cas-text variant="footnote2" >${m}</cas-text>
|
|
15057
15060
|
</div>
|
|
15058
|
-
`,f=({month:m,data:
|
|
15061
|
+
`,f=({month:m,data:Z,mode:x})=>n`
|
|
15059
15062
|
<div class="dropdown ${x}">
|
|
15060
15063
|
<div class="head-dropdown" @click=${()=>{const S=this.shadowRoot.querySelector(`.dropdown.${x}`);S.classList.contains("open")?S.classList.remove("open"):S.classList.add("open")}} >
|
|
15061
15064
|
<cas-text variant="headline3">${m[x]}</cas-text>
|
|
15062
15065
|
<cas-icon name="flat-sortDown" size="20"></cas-icon>
|
|
15063
15066
|
</div>
|
|
15064
15067
|
<div class="dropdown-content scrollable">
|
|
15065
|
-
${
|
|
15068
|
+
${Z==null?void 0:Z.map((S,E)=>M(S,x,E))}
|
|
15066
15069
|
</div>
|
|
15067
15070
|
</div>
|
|
15068
|
-
`,w=m=>{var
|
|
15071
|
+
`,w=m=>{var Z;return n`
|
|
15069
15072
|
<div class="month-container">
|
|
15070
15073
|
<div class="header-month">
|
|
15071
15074
|
<button class="prev-month" @click=${this.changeMonthPrev}>
|
|
@@ -15086,11 +15089,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
15086
15089
|
${r==null?void 0:r.map(x=>n`<cas-text text=${x} variant="caption1"/>`)}
|
|
15087
15090
|
</div>
|
|
15088
15091
|
<div class="list-days">
|
|
15089
|
-
${(
|
|
15092
|
+
${(Z=m.calendar)==null?void 0:Z.map(x=>v(x))}
|
|
15090
15093
|
</div>
|
|
15091
15094
|
${t?u():null}
|
|
15092
15095
|
</div>
|
|
15093
|
-
`},
|
|
15096
|
+
`},V=({name:m,value:Z})=>{const x=()=>{this.open=!0};return Z===""?n`
|
|
15094
15097
|
<cas-input label=${m} icon="flat-calendarOn" @click=${x} alignment="trailing" readonly fullWidth></cas-input>
|
|
15095
15098
|
`:n`
|
|
15096
15099
|
<div class="datepicker">
|
|
@@ -15098,7 +15101,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
15098
15101
|
type="date"
|
|
15099
15102
|
name=${m}
|
|
15100
15103
|
label=${m}
|
|
15101
|
-
value=${
|
|
15104
|
+
value=${Z}
|
|
15102
15105
|
icon="flat-calendarOn"
|
|
15103
15106
|
@input=${this.onChange}
|
|
15104
15107
|
@click=${x}
|
|
@@ -15107,14 +15110,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
15107
15110
|
fullWidth
|
|
15108
15111
|
></cas-input>
|
|
15109
15112
|
</div>
|
|
15110
|
-
`},_=()=>{const{top:m,bottom:
|
|
15113
|
+
`},_=()=>{const{top:m,bottom:Z,left:x,right:A}=this.getBoundingClientRect();return this.alignDisplay==="right"?`position: fixed; top:${m+92}px; right:${window.innerWidth-A}px; z-index:1;`:this.alignDisplay==="top right"?`position: fixed; bottom:${window.innerHeight-(Z-72)}px; right:${window.innerWidth-A}px; z-index:1;`:`position: fixed; top:${m+92}px; left:${x}px; z-index:1;`},z=document.getElementById("form-content");return z==null||z.addEventListener("scroll",()=>{e&&this.handleClose()}),window.addEventListener("scroll",m=>{var x;const Z=this.shadowRoot.querySelector(".content");if(Z){const{top:A,bottom:S}=this.getBoundingClientRect(),E=(x=this.alignDisplay)==null?void 0:x.split(" ");E!=null&&E.find(I=>I==="top")?Z.style.bottom=`${window.innerHeight-(S-72)}px`:Z.style.top=`${A+92}px`}}),n`
|
|
15111
15114
|
<div class="datepicker-container">
|
|
15112
15115
|
<label>
|
|
15113
15116
|
<cas-text variant="tertiary2">${this.label}</cas-text>
|
|
15114
15117
|
</label>
|
|
15115
15118
|
<div class="group-datepicker">
|
|
15116
|
-
${
|
|
15117
|
-
${
|
|
15119
|
+
${V({name:"Desde",value:this.valueStart})}
|
|
15120
|
+
${V({name:"Hasta",value:this.valueEnd})}
|
|
15118
15121
|
</div>
|
|
15119
15122
|
|
|
15120
15123
|
${e?n`
|