diff --git a/dist/widgets-dev.js b/dist/widgets-dev.js new file mode 100644 index 0000000..e756142 --- /dev/null +++ b/dist/widgets-dev.js @@ -0,0 +1,312 @@ +(function(){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const m5=1,_5=2,ba=4,v5=8,C5=16,b5=1,y5=2,w5=4,x5=8,L5=16,S5=1,T5=2,ya="[",Lo="[!",Ts="]",mi={},Ut=Symbol(),k5="http://www.w3.org/1999/xhtml",M5="http://www.w3.org/2000/svg",ks=!1;var wa=Array.isArray,E5=Array.prototype.indexOf,So=Array.from,To=Object.keys,ko=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,xa=Object.getOwnPropertyDescriptors,A5=Object.prototype,R5=Array.prototype,Ms=Object.getPrototypeOf,La=Object.isExtensible;function P5(n){return n()}function Es(n){for(var e=0;e{n=r,e=i});return{promise:t,resolve:n,reject:e}}const Yt=2,Mo=4,Sn=8,Ta=1<<24,kr=16,Mr=32,Wr=64,As=128,G1=512,Gt=1024,n1=2048,pr=4096,A1=8192,Er=16384,Eo=32768,vi=65536,ka=1<<17,Ma=1<<18,Ci=1<<19,Ea=1<<20,Ar=1<<25,bi=32768,Rs=1<<21,Ps=1<<22,$r=1<<23,yi=Symbol("$state"),Aa=Symbol("legacy props"),O5=Symbol(""),Wi=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},D5=1,Os=3,wi=8;function Ra(n){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function H5(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function F5(n){throw new Error("https://svelte.dev/e/effect_in_teardown")}function I5(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function V5(n){throw new Error("https://svelte.dev/e/effect_orphan")}function z5(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function B5(){throw new Error("https://svelte.dev/e/hydration_failed")}function N5(n){throw new Error("https://svelte.dev/e/props_invalid_value")}function Z5(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function q5(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function U5(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Y5(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Tn(n){console.warn("https://svelte.dev/e/hydration_mismatch")}function G5(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Ce=!1;function mr(n){Ce=n}let Oe;function Wt(n){if(n===null)throw Tn(),mi;return Oe=n}function Rr(){return Wt(lr(Oe))}function q(n){if(Ce){if(lr(Oe)!==null)throw Tn(),mi;Oe=n}}function Pr(n=1){if(Ce){for(var e=n,t=Oe;e--;)t=lr(t);Oe=t}}function Ao(n=!0){for(var e=0,t=Oe;;){if(t.nodeType===wi){var r=t.data;if(r===Ts){if(e===0)return t;e-=1}else(r===ya||r===Lo)&&(e+=1)}var i=lr(t);n&&t.remove(),t=i}}function Pa(n){if(!n||n.nodeType!==wi)throw Tn(),mi;return n.data}function Oa(n){return n===this.v}function W5(n,e){return n!=n?e==e:n!==e||n!==null&&typeof n=="object"||typeof n=="function"}function Da(n){return!W5(n,this.v)}let $i=!1,$5=!1;function X5(){$i=!0}let _t=null;function Xi(n){_t=n}function v1(n,e=!1,t){_t={p:_t,i:!1,c:null,e:null,s:n,x:null,l:$i&&!e?{s:null,u:null,$:[]}:null}}function C1(n){var e=_t,t=e.e;if(t!==null){e.e=null;for(var r of t)el(r)}return n!==void 0&&(e.x=n),e.i=!0,_t=e.p,n??{}}function kn(){return!$i||_t!==null&&_t.l===null}let xi=[];function Ha(){var n=xi;xi=[],Es(n)}function ji(n){if(xi.length===0&&!Mn){var e=xi;queueMicrotask(()=>{e===xi&&Ha()})}xi.push(n)}function j5(){for(;xi.length>0;)Ha()}function Fa(n){var e=Ve;if(e===null)return De.f|=$r,n;if((e.f&Eo)===0){if((e.f&As)===0)throw n;e.b.error(n)}else Ki(n,e)}function Ki(n,e){for(;e!==null;){if((e.f&As)!==0)try{e.b.error(n);return}catch(t){n=t}e=e.parent}throw n}const K5=-7169;function Ot(n,e){n.f=n.f&K5|e}function Ds(n){(n.f&G1)!==0||n.deps===null?Ot(n,Gt):Ot(n,pr)}function Ia(n){if(n!==null)for(const e of n)(e.f&Yt)===0||(e.f&bi)===0||(e.f^=bi,Ia(e.deps))}function Va(n,e,t){(n.f&n1)!==0?e.add(n):(n.f&pr)!==0&&t.add(n),Ia(n.deps),Ot(n,Gt)}const Ro=new Set;let bt=null,or=null,W1=[],Po=null,Hs=!1,Mn=!1;class sr{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#o=0;#s=null;#n=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#o>0}process(e){W1=[],this.apply();var t=[],r=[];for(const i of e)this.#a(i,t,r);this.is_fork||this.#f(),this.is_deferred()?(this.#l(r),this.#l(t)):(bt=null,Ba(r),Ba(t),this.#s?.resolve()),or=null}#a(e,t,r){e.f^=Gt;for(var i=e.first,o=null;i!==null;){var s=i.f,a=(s&(Mr|Wr))!==0,l=a&&(s&Gt)!==0,f=l||(s&A1)!==0||this.skipped_effects.has(i);if(!f&&i.fn!==null){a?i.f^=Gt:o!==null&&(s&(Mo|Sn|Ta))!==0?o.b.defer_effect(i):(s&Mo)!==0?t.push(i):Ji(i)&&((s&kr)!==0&&this.#n.add(i),en(i));var u=i.first;if(u!==null){i=u;continue}}var c=i.parent;for(i=i.next;i===null&&c!==null;)c===o&&(o=null),i=c.next,c=c.parent}}#l(e){for(var t=0;t0){if(za(),bt!==null&&bt!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#f(){if(this.#o===0){for(const e of this.#e)e();this.#e.clear()}this.#r===0&&this.#u()}#u(){if(Ro.size>1){this.previous.clear();var e=or,t=!0;for(const i of Ro){if(i===this){t=!1;continue}const o=[];for(const[a,l]of this.current){if(i.current.has(a))if(t&&l!==i.current.get(a))i.current.set(a,l);else continue;o.push(a)}if(o.length===0)continue;const s=[...i.current.keys()].filter(a=>!this.current.has(a));if(s.length>0){var r=W1;W1=[];const a=new Set,l=new Map;for(const f of o)Na(f,s,a,l);if(W1.length>0){bt=i,i.apply();for(const f of W1)i.#a(f,[],[]);i.deactivate()}W1=r}}bt=null,or=e}this.committed=!0,Ro.delete(this)}increment(e){this.#r+=1,e&&(this.#o+=1)}decrement(e){this.#r-=1,e&&(this.#o-=1),this.revive()}revive(){for(const e of this.#n)this.#i.delete(e),Ot(e,n1),Dr(e);for(const e of this.#i)Ot(e,pr),Dr(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#s??=Sa()).promise}static ensure(){if(bt===null){const e=bt=new sr;Ro.add(bt),Mn||sr.enqueue(()=>{bt===e&&e.flush()})}return bt}static enqueue(e){ji(e)}apply(){}}function k(n){var e=Mn;Mn=!0;try{for(var t;;){if(j5(),W1.length===0&&(bt?.flush(),W1.length===0))return Po=null,t;za()}}finally{Mn=e}}function za(){var n=Ti;Hs=!0;var e=null;try{var t=0;for(Ho(!0);W1.length>0;){var r=sr.ensure();if(t++>1e3){var i,o;Q5()}r.process(W1),Xr.clear()}}finally{Hs=!1,Ho(n),Po=null}}function Q5(){try{z5()}catch(n){Ki(n,Po)}}let Or=null;function Ba(n){var e=n.length;if(e!==0){for(var t=0;t0)){Xr.clear();for(const i of Or){if((i.f&(Er|A1))!==0)continue;const o=[i];let s=i.parent;for(;s!==null;)Or.has(s)&&(Or.delete(s),o.push(s)),s=s.parent;for(let a=o.length-1;a>=0;a--){const l=o[a];(l.f&(Er|A1))===0&&en(l)}}Or.clear()}}Or=null}}function Na(n,e,t,r){if(!t.has(n)&&(t.add(n),n.reactions!==null))for(const i of n.reactions){const o=i.f;(o&Yt)!==0?Na(i,e,t,r):(o&(Ps|kr))!==0&&(o&n1)===0&&Za(i,e,r)&&(Ot(i,n1),Dr(i))}}function Za(n,e,t){const r=t.get(n);if(r!==void 0)return r;if(n.deps!==null)for(const i of n.deps){if(e.includes(i))return!0;if((i.f&Yt)!==0&&Za(i,e,t))return t.set(i,!0),!0}return t.set(n,!1),!1}function Dr(n){for(var e=Po=n;e.parent!==null;){e=e.parent;var t=e.f;if(Hs&&e===Ve&&(t&kr)!==0&&(t&Ma)===0)return;if((t&(Wr|Mr))!==0){if((t&Gt)===0)return;e.f^=Gt}}W1.push(e)}function J5(n){let e=0,t=Li(0),r;return()=>{Zs()&&(L(t),On(()=>(e===0&&(r=Qr(()=>n(()=>Rn(t)))),e+=1,()=>{ji(()=>{e-=1,e===0&&(r?.(),r=void 0,Rn(t))})})))}}var e4=vi|Ci|As;function t4(n,e,t){new r4(n,e,t)}class r4{parent;is_pending=!1;#e;#t=Ce?Oe:null;#r;#o;#s;#n=null;#i=null;#a=null;#l=null;#f=null;#u=0;#c=0;#h=!1;#g=new Set;#p=new Set;#d=null;#b=J5(()=>(this.#d=Li(this.#u),()=>{this.#d=null}));constructor(e,t,r){this.#e=e,this.#r=t,this.#o=r,this.parent=Ve.b,this.is_pending=!!this.#r.pending,this.#s=Do(()=>{if(Ve.b=this,Ce){const o=this.#t;Rr(),o.nodeType===wi&&o.data===Lo?this.#w():(this.#y(),this.#c===0&&(this.is_pending=!1))}else{var i=this.#v();try{this.#n=X1(()=>r(i))}catch(o){this.error(o)}this.#c>0?this.#_():this.is_pending=!1}return()=>{this.#f?.remove()}},e4),Ce&&(this.#e=Oe)}#y(){try{this.#n=X1(()=>this.#o(this.#e))}catch(e){this.error(e)}}#w(){const e=this.#r.pending;e&&(this.#i=X1(()=>e(this.#e)),sr.enqueue(()=>{var t=this.#v();this.#n=this.#m(()=>(sr.ensure(),X1(()=>this.#o(t)))),this.#c>0?this.#_():(Si(this.#i,()=>{this.#i=null}),this.is_pending=!1)}))}#v(){var e=this.#e;return this.is_pending&&(this.#f=$1(),this.#e.before(this.#f),e=this.#f),e}defer_effect(e){Va(e,this.#g,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#m(e){var t=Ve,r=De,i=_t;_r(this.#s),b1(this.#s),Xi(this.#s.ctx);try{return e()}catch(o){return Fa(o),null}finally{_r(t),b1(r),Xi(i)}}#_(){const e=this.#r.pending;this.#n!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#f),ll(this.#n,this.#l)),this.#i===null&&(this.#i=X1(()=>e(this.#e)))}#C(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e);return}if(this.#c+=e,this.#c===0){this.is_pending=!1;for(const t of this.#g)Ot(t,n1),Dr(t);for(const t of this.#p)Ot(t,pr),Dr(t);this.#g.clear(),this.#p.clear(),this.#i&&Si(this.#i,()=>{this.#i=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(e){this.#C(e),this.#u+=e,this.#d&&Qi(this.#d,this.#u)}get_effect_pending(){return this.#b(),L(this.#d)}error(e){var t=this.#r.onerror;let r=this.#r.failed;if(this.#h||!t&&!r)throw e;this.#n&&(o1(this.#n),this.#n=null),this.#i&&(o1(this.#i),this.#i=null),this.#a&&(o1(this.#a),this.#a=null),Ce&&(Wt(this.#t),Pr(),Wt(Ao()));var i=!1,o=!1;const s=()=>{if(i){G5();return}i=!0,o&&Y5(),sr.ensure(),this.#u=0,this.#a!==null&&Si(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#n=this.#m(()=>(this.#h=!1,X1(()=>this.#o(this.#e)))),this.#c>0?this.#_():this.is_pending=!1};var a=De;try{b1(null),o=!0,t?.(e,s),o=!1}catch(l){Ki(l,this.#s&&this.#s.parent)}finally{b1(a)}r&&ji(()=>{this.#a=this.#m(()=>{sr.ensure(),this.#h=!0;try{return X1(()=>{r(this.#e,()=>e,()=>s)})}catch(l){return Ki(l,this.#s.parent),null}finally{this.#h=!1}})})}}function i4(n,e,t,r){const i=kn()?En:Fs;if(t.length===0&&n.length===0){r(e.map(i));return}var o=bt,s=Ve,a=n4();function l(){Promise.all(t.map(f=>o4(f))).then(f=>{a();try{r([...e.map(i),...f])}catch(u){(s.f&Er)===0&&Ki(u,s)}o?.deactivate(),Oo()}).catch(f=>{Ki(f,s)})}n.length>0?Promise.all(n).then(()=>{a();try{return l()}finally{o?.deactivate(),Oo()}}):l()}function n4(){var n=Ve,e=De,t=_t,r=bt;return function(o=!0){_r(n),b1(e),Xi(t),o&&r?.activate()}}function Oo(){_r(null),b1(null),Xi(null)}function En(n){var e=Yt|n1,t=De!==null&&(De.f&Yt)!==0?De:null;return Ve!==null&&(Ve.f|=Ci),{ctx:_t,deps:null,effects:null,equals:Oa,f:e,fn:n,reactions:null,rv:0,v:Ut,wv:0,parent:t??Ve,ac:null}}function o4(n,e,t){let r=Ve;r===null&&H5();var i=r.b,o=void 0,s=Li(Ut),a=!De,l=new Map;return g4(()=>{var f=Sa();o=f.promise;try{Promise.resolve(n()).then(f.resolve,f.reject).then(()=>{u===bt&&u.committed&&u.deactivate(),Oo()})}catch(d){f.reject(d),Oo()}var u=bt;if(a){var c=i.is_rendered();i.update_pending_count(1),u.increment(c),l.get(u)?.reject(Wi),l.delete(u),l.set(u,f)}const h=(d,p=void 0)=>{if(u.activate(),p)p!==Wi&&(s.f|=$r,Qi(s,p));else{(s.f&$r)!==0&&(s.f^=$r),Qi(s,d);for(const[g,m]of l){if(l.delete(g),g===u)break;m.reject(Wi)}}a&&(i.update_pending_count(-1),u.decrement(c))};f.promise.then(h,d=>h(null,d||"unknown"))}),qs(()=>{for(const f of l.values())f.reject(Wi)}),new Promise(f=>{function u(c){function h(){c===o?f(s):u(o)}c.then(h,h)}u(o)})}function An(n){const e=En(n);return ul(e),e}function Fs(n){const e=En(n);return e.equals=Da,e}function qa(n){var e=n.effects;if(e!==null){n.effects=null;for(var t=0;t0&&!Ya&&a4()}return e}function a4(){Ya=!1;var n=Ti;Ho(!0);const e=Array.from(Vs);try{for(const t of e)(t.f&Gt)!==0&&Ot(t,pr),Ji(t)&&en(t)}finally{Ho(n)}Vs.clear()}function Rn(n){j(n,n.v+1)}function Ga(n,e){var t=n.reactions;if(t!==null)for(var r=kn(),i=t.length,o=0;o{if(ki===o)return a();var l=De,f=ki;b1(null),dl(o);var u=a();return b1(l),dl(f),u};return r&&t.set("length",Ne(n.length)),new Proxy(n,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Z5();var u=t.get(l);return u===void 0?u=s(()=>{var c=Ne(f.value);return t.set(l,c),c}):j(u,f.value,!0),!0},deleteProperty(a,l){var f=t.get(l);if(f===void 0){if(l in a){const u=s(()=>Ne(Ut));t.set(l,u),Rn(i)}}else j(f,Ut),Rn(i);return!0},get(a,l,f){if(l===yi)return n;var u=t.get(l),c=l in a;if(u===void 0&&(!c||_i(a,l)?.writable)&&(u=s(()=>{var d=jr(c?a[l]:Ut),p=Ne(d);return p}),t.set(l,u)),u!==void 0){var h=L(u);return h===Ut?void 0:h}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=t.get(l);u&&(f.value=L(u))}else if(f===void 0){var c=t.get(l),h=c?.v;if(c!==void 0&&h!==Ut)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(a,l){if(l===yi)return!0;var f=t.get(l),u=f!==void 0&&f.v!==Ut||Reflect.has(a,l);if(f!==void 0||Ve!==null&&(!u||_i(a,l)?.writable)){f===void 0&&(f=s(()=>{var h=u?jr(a[l]):Ut,d=Ne(h);return d}),t.set(l,f));var c=L(f);if(c===Ut)return!1}return u},set(a,l,f,u){var c=t.get(l),h=l in a;if(r&&l==="length")for(var d=f;dNe(Ut)),t.set(d+"",p))}if(c===void 0)(!h||_i(a,l)?.writable)&&(c=s(()=>Ne(void 0)),j(c,jr(f)),t.set(l,c));else{h=c.v!==Ut;var g=s(()=>jr(f));j(c,g)}var m=Reflect.getOwnPropertyDescriptor(a,l);if(m?.set&&m.set.call(u,f),!h){if(r&&typeof l=="string"){var b=t.get("length"),w=Number(l);Number.isInteger(w)&&w>=b.v&&j(b,w+1)}Rn(i)}return!0},ownKeys(a){L(i);var l=Reflect.ownKeys(a).filter(c=>{var h=t.get(c);return h===void 0||h.v!==Ut});for(var[f,u]of t)u.v!==Ut&&!(f in a)&&l.push(f);return l},setPrototypeOf(){q5()}})}var Wa,$a,Xa,ja;function Bs(){if(Wa===void 0){Wa=window,$a=/Firefox/.test(navigator.userAgent);var n=Element.prototype,e=Node.prototype,t=Text.prototype;Xa=_i(e,"firstChild").get,ja=_i(e,"nextSibling").get,La(n)&&(n.__click=void 0,n.__className=void 0,n.__attributes=null,n.__style=void 0,n.__e=void 0),La(t)&&(t.__t=void 0)}}function $1(n=""){return document.createTextNode(n)}function ar(n){return Xa.call(n)}function lr(n){return ja.call(n)}function Y(n,e){if(!Ce)return ar(n);var t=ar(Oe);if(t===null)t=Oe.appendChild($1());else if(e&&t.nodeType!==Os){var r=$1();return t?.before(r),Wt(r),r}return Wt(t),t}function Pn(n,e=!1){if(!Ce){var t=ar(n);return t instanceof Comment&&t.data===""?lr(t):t}if(e&&Oe?.nodeType!==Os){var r=$1();return Oe?.before(r),Wt(r),r}return Oe}function pe(n,e=1,t=!1){let r=Ce?Oe:n;for(var i;e--;)i=r,r=lr(r);if(!Ce)return r;if(t&&r?.nodeType!==Os){var o=$1();return r===null?i?.after(o):r.before(o),Wt(o),o}return Wt(r),r}function Ka(n){n.textContent=""}function Qa(){return!1}function Ns(n){var e=De,t=Ve;b1(null),_r(null);try{return n()}finally{b1(e),_r(t)}}function Ja(n){Ve===null&&(De===null&&V5(),I5()),Kr&&F5()}function l4(n,e){var t=e.last;t===null?e.last=e.first=n:(t.next=n,n.prev=t,e.last=n)}function fr(n,e,t){var r=Ve;r!==null&&(r.f&A1)!==0&&(n|=A1);var i={ctx:_t,deps:null,nodes:null,f:n|n1|G1,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(t)try{en(i),i.f|=Eo}catch(a){throw o1(i),a}else e!==null&&Dr(i);var o=i;if(t&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Ci)===0&&(o=o.first,(n&kr)!==0&&(n&vi)!==0&&o!==null&&(o.f|=vi)),o!==null&&(o.parent=r,r!==null&&l4(o,r),De!==null&&(De.f&Yt)!==0&&(n&Wr)===0)){var s=De;(s.effects??=[]).push(o)}return i}function Zs(){return De!==null&&!ur}function qs(n){const e=fr(Sn,null,!1);return Ot(e,Gt),e.teardown=n,e}function Hr(n){Ja();var e=Ve.f,t=!De&&(e&Mr)!==0&&(e&Eo)===0;if(t){var r=_t;(r.e??=[]).push(n)}else return el(n)}function el(n){return fr(Mo|Ea,n,!1)}function f4(n){return Ja(),fr(Sn|Ea,n,!0)}function u4(n){sr.ensure();const e=fr(Wr|Ci,n,!0);return()=>{o1(e)}}function c4(n){sr.ensure();const e=fr(Wr|Ci,n,!0);return(t={})=>new Promise(r=>{t.outro?Si(e,()=>{o1(e),r(void 0)}):(o1(e),r(void 0))})}function tl(n){return fr(Mo,n,!1)}function d4(n,e){var t=_t,r={effect:null,ran:!1,deps:n};t.l.$.push(r),r.effect=On(()=>{n(),!r.ran&&(r.ran=!0,Qr(e))})}function h4(){var n=_t;On(()=>{for(var e of n.l.$){e.deps();var t=e.effect;(t.f&Gt)!==0&&t.deps!==null&&Ot(t,pr),Ji(t)&&en(t),e.ran=!1}})}function g4(n){return fr(Ps|Ci,n,!0)}function On(n,e=0){return fr(Sn|e,n,!0)}function tt(n,e=[],t=[],r=[]){i4(r,e,t,i=>{fr(Sn,()=>n(...i.map(L)),!0)})}function Do(n,e=0){var t=fr(kr|e,n,!0);return t}function X1(n){return fr(Mr|Ci,n,!0)}function rl(n){var e=n.teardown;if(e!==null){const t=Kr,r=De;fl(!0),b1(null);try{e.call(null)}finally{fl(t),b1(r)}}}function il(n,e=!1){var t=n.first;for(n.first=n.last=null;t!==null;){const i=t.ac;i!==null&&Ns(()=>{i.abort(Wi)});var r=t.next;(t.f&Wr)!==0?t.parent=null:o1(t,e),t=r}}function p4(n){for(var e=n.first;e!==null;){var t=e.next;(e.f&Mr)===0&&o1(e),e=t}}function o1(n,e=!0){var t=!1;(e||(n.f&Ma)!==0)&&n.nodes!==null&&n.nodes.end!==null&&(nl(n.nodes.start,n.nodes.end),t=!0),il(n,e&&!t),Fo(n,0),Ot(n,Er);var r=n.nodes&&n.nodes.t;if(r!==null)for(const o of r)o.stop();rl(n);var i=n.parent;i!==null&&i.first!==null&&ol(n),n.next=n.prev=n.teardown=n.ctx=n.deps=n.fn=n.nodes=n.ac=null}function nl(n,e){for(;n!==null;){var t=n===e?null:lr(n);n.remove(),n=t}}function ol(n){var e=n.parent,t=n.prev,r=n.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),e!==null&&(e.first===n&&(e.first=r),e.last===n&&(e.last=t))}function Si(n,e,t=!0){var r=[];sl(n,r,!0);var i=()=>{t&&o1(n),e&&e()},o=r.length;if(o>0){var s=()=>--o||i();for(var a of r)a.out(s)}else i()}function sl(n,e,t){if((n.f&A1)===0){n.f^=A1;var r=n.nodes&&n.nodes.t;if(r!==null)for(const a of r)(a.is_global||t)&&e.push(a);for(var i=n.first;i!==null;){var o=i.next,s=(i.f&vi)!==0||(i.f&Mr)!==0&&(n.f&kr)!==0;sl(i,e,s?t:!1),i=o}}}function Us(n){al(n,!0)}function al(n,e){if((n.f&A1)!==0){n.f^=A1,(n.f&Gt)===0&&(Ot(n,n1),Dr(n));for(var t=n.first;t!==null;){var r=t.next,i=(t.f&vi)!==0||(t.f&Mr)!==0;al(t,i?e:!1),t=r}var o=n.nodes&&n.nodes.t;if(o!==null)for(const s of o)(s.is_global||e)&&s.in()}}function ll(n,e){if(n.nodes)for(var t=n.nodes.start,r=n.nodes.end;t!==null;){var i=t===r?null:lr(t);e.append(t),t=i}}let Ti=!1;function Ho(n){Ti=n}let Kr=!1;function fl(n){Kr=n}let De=null,ur=!1;function b1(n){De=n}let Ve=null;function _r(n){Ve=n}let Fr=null;function ul(n){De!==null&&(Fr===null?Fr=[n]:Fr.push(n))}let s1=null,R1=0,j1=null;function m4(n){j1=n}let cl=1,Dn=0,ki=Dn;function dl(n){ki=n}function hl(){return++cl}function Ji(n){var e=n.f;if((e&n1)!==0)return!0;if(e&Yt&&(n.f&=~bi),(e&pr)!==0){for(var t=n.deps,r=t.length,i=0;in.wv)return!0}(e&G1)!==0&&or===null&&Ot(n,Gt)}return!1}function gl(n,e,t=!0){var r=n.reactions;if(r!==null&&!Fr?.includes(n))for(var i=0;i{n.ac.abort(Wi)}),n.ac=null);try{n.f|=Rs;var u=n.fn,c=u(),h=n.deps;if(s1!==null){var d;if(Fo(n,R1),h!==null&&R1>0)for(h.length=R1+s1.length,d=0;dt?.call(this,o))}return n.startsWith("pointer")||n.startsWith("touch")||n==="wheel"?ji(()=>{e.addEventListener(n,i,r)}):e.addEventListener(n,i,r),i}function a1(n,e,t,r,i){var o={capture:r,passive:i},s=v4(n,e,t,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&qs(()=>{e.removeEventListener(n,s,o)})}function Ws(n){for(var e=0;e{throw m});throw h}}finally{n.__root=e,delete n.currentTarget,b1(u),_r(c)}}}function wl(n){var e=document.createElement("template");return e.innerHTML=n.replaceAll("",""),e.content}function Ir(n,e){var t=Ve;t.nodes===null&&(t.nodes={start:n,end:e,a:null,t:null})}function Qe(n,e){var t=(e&S5)!==0,r=(e&T5)!==0,i,o=!n.startsWith("");return()=>{if(Ce)return Ir(Oe,null),Oe;i===void 0&&(i=wl(o?n:""+n),t||(i=ar(i)));var s=r||$a?document.importNode(i,!0):i.cloneNode(!0);if(t){var a=ar(s),l=s.lastChild;Ir(a,l)}else Ir(s,s);return s}}function C4(){if(Ce)return Ir(Oe,null),Oe;var n=document.createDocumentFragment(),e=document.createComment(""),t=$1();return n.append(e,t),Ir(e,t),n}function Ge(n,e){if(Ce){var t=Ve;((t.f&Eo)===0||t.nodes.end===null)&&(t.nodes.end=Oe),Rr();return}n!==null&&n.before(e)}const b4=["touchstart","touchmove"];function y4(n){return b4.includes(n)}function Qt(n,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(n.__t??=n.nodeValue)&&(n.__t=t,n.nodeValue=t+"")}function xl(n,e){return Ll(n,e)}function w4(n,e){Bs(),e.intro=e.intro??!1;const t=e.target,r=Ce,i=Oe;try{for(var o=ar(t);o&&(o.nodeType!==wi||o.data!==ya);)o=lr(o);if(!o)throw mi;mr(!0),Wt(o);const s=Ll(n,{...e,anchor:o});return mr(!1),s}catch(s){if(s instanceof Error&&s.message.split(` +`).some(a=>a.startsWith("https://svelte.dev/e/")))throw s;return s!==mi&&console.warn("Failed to hydrate: ",s),e.recover===!1&&B5(),Bs(),Ka(t),mr(!1),xl(n,e)}finally{mr(r),Wt(i)}}const tn=new Map;function Ll(n,{target:e,anchor:t,props:r={},events:i,context:o,intro:s=!0}){Bs();var a=new Set,l=c=>{for(var h=0;h{var c=t??e.appendChild($1());return t4(c,{pending:()=>{}},h=>{if(o){v1({});var d=_t;d.c=o}if(i&&(r.$$events=i),Ce&&Ir(h,null),f=n(h,r)||{},Ce&&(Ve.nodes.end=Oe,Oe===null||Oe.nodeType!==wi||Oe.data!==Ts))throw Tn(),mi;o&&C1()}),()=>{for(var h of a){e.removeEventListener(h,Hn);var d=tn.get(h);--d===0?(document.removeEventListener(h,Hn),tn.delete(h)):tn.set(h,d)}Gs.delete(l),c!==t&&c.parentNode?.removeChild(c)}});return $s.set(f,u),f}let $s=new WeakMap;function x4(n,e){const t=$s.get(n);return t?($s.delete(n),t(e)):Promise.resolve()}class Sl{anchor;#e=new Map;#t=new Map;#r=new Map;#o=new Set;#s=!0;constructor(e,t=!0){this.anchor=e,this.#s=t}#n=()=>{var e=bt;if(this.#e.has(e)){var t=this.#e.get(e),r=this.#t.get(t);if(r)Us(r),this.#o.delete(t);else{var i=this.#r.get(t);i&&(this.#t.set(t,i.effect),this.#r.delete(t),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,s]of this.#e){if(this.#e.delete(o),o===e)break;const a=this.#r.get(s);a&&(o1(a.effect),this.#r.delete(s))}for(const[o,s]of this.#t){if(o===t||this.#o.has(o))continue;const a=()=>{if(Array.from(this.#e.values()).includes(o)){var f=document.createDocumentFragment();ll(s,f),f.append($1()),this.#r.set(o,{effect:s,fragment:f})}else o1(s);this.#o.delete(o),this.#t.delete(o)};this.#s||!r?(this.#o.add(o),Si(s,a,!1)):a()}}};#i=e=>{this.#e.delete(e);const t=Array.from(this.#e.values());for(const[r,i]of this.#r)t.includes(r)||(o1(i.effect),this.#r.delete(r))};ensure(e,t){var r=bt,i=Qa();if(t&&!this.#t.has(e)&&!this.#r.has(e))if(i){var o=document.createDocumentFragment(),s=$1();o.append(s),this.#r.set(e,{effect:X1(()=>t(s)),fragment:o})}else this.#t.set(e,X1(()=>t(this.anchor)));if(this.#e.set(r,e),i){for(const[a,l]of this.#t)a===e?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[a,l]of this.#r)a===e?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#n),r.ondiscard(this.#i)}else Ce&&(this.anchor=Oe),this.#n()}}function Vr(n){_t===null&&Ra(),$i&&_t.l!==null?L4(_t).m.push(n):Hr(()=>{const e=Qr(n);if(typeof e=="function")return e})}function Io(n){_t===null&&Ra(),Vr(()=>()=>Qr(n))}function L4(n){var e=n.l;return e.u??={a:[],b:[],m:[]}}function y1(n,e,t=!1){Ce&&Rr();var r=new Sl(n),i=t?vi:0;function o(s,a){if(Ce){const f=Pa(n)===Lo;if(s===f){var l=Ao();Wt(l),r.anchor=l,mr(!1),r.ensure(s,a),mr(!0);return}}r.ensure(s,a)}Do(()=>{var s=!1;e((a,l=!0)=>{s=!0,o(l,a)}),s||o(!1,null)},i)}function Tl(n,e){return e}function S4(n,e,t){for(var r=[],i=e.length,o,s=e.length,a=0;a{if(o){if(o.pending.delete(c),o.done.add(c),o.pending.size===0){var h=n.outrogroups;Xs(So(o.done)),h.delete(o),h.size===0&&(n.outrogroups=null)}}else s-=1},!1)}if(s===0){var l=r.length===0&&t!==null;if(l){var f=t,u=f.parentNode;Ka(u),u.append(f),n.items.clear()}Xs(e,!l)}else o={pending:new Set(e),done:new Set},(n.outrogroups??=new Set).add(o)}function Xs(n,e=!0){for(var t=0;t{var b=t();return wa(b)?b:b==null?[]:So(b)}),h,d=!0;function p(){m.fallback=u,T4(m,h,s,e,r),u!==null&&(h.length===0?(u.f&Ar)===0?Us(u):(u.f^=Ar,Fn(u,null,s)):Si(u,()=>{u=null}))}var g=Do(()=>{h=L(c);var b=h.length;let w=!1;if(Ce){var T=Pa(s)===Lo;T!==(b===0)&&(s=Ao(),Wt(s),mr(!1),w=!0)}for(var C=new Set,S=bt,x=Qa(),v=0;vo(s)):(u=X1(()=>o(kl??=$1())),u.f|=Ar)),Ce&&b>0&&Wt(Ao()),!d)if(x){for(const[F,I]of a)C.has(F)||S.skipped_effects.add(I.e);S.oncommit(p),S.ondiscard(()=>{})}else p();w&&mr(!0),L(c)}),m={effect:g,items:a,outrogroups:null,fallback:u};d=!1,Ce&&(s=Oe)}function T4(n,e,t,r,i){var o=(r&v5)!==0,s=e.length,a=n.items,l=n.effect.first,f,u=null,c,h=[],d=[],p,g,m,b;if(o)for(b=0;b0){var P=(r&ba)!==0&&s===0?t:null;if(o){for(b=0;b{if(c!==void 0)for(m of c)m.nodes?.a?.apply()})}function k4(n,e,t,r,i,o,s,a){var l=(s&m5)!==0?(s&C5)===0?zs(t,!1,!1):Li(t):null,f=(s&_5)!==0?Li(i):null;return{v:l,i:f,e:X1(()=>(o(e,l??t,f??i,a),()=>{n.delete(r)}))}}function Fn(n,e,t){if(n.nodes)for(var r=n.nodes.start,i=n.nodes.end,o=e&&(e.f&Ar)===0?e.nodes.start:t;r!==null;){var s=lr(r);if(o.before(r),r===i)return;r=s}}function Jr(n,e,t){e===null?n.effect.first=t:e.next=t,t===null?n.effect.last=e:t.prev=e}function M4(n,e,t=!1,r=!1,i=!1){var o=n,s="";tt(()=>{var a=Ve;if(s===(s=e()??"")){Ce&&Rr();return}if(a.nodes!==null&&(nl(a.nodes.start,a.nodes.end),a.nodes=null),s!==""){if(Ce){Oe.data;for(var l=Rr(),f=l;l!==null&&(l.nodeType!==wi||l.data!=="");)f=l,l=lr(l);if(l===null)throw Tn(),mi;Ir(Oe,f),o=Wt(l);return}var u=s+"";t?u=`${u}`:r&&(u=`${u}`);var c=wl(u);if((t||r)&&(c=ar(c)),Ir(ar(c),c.lastChild),t||r)for(;ar(c);)o.before(ar(c));else o.before(c)}})}function E4(n,e,t,r,i){Ce&&Rr();var o=e.$$slots?.[t],s=!1;o===!0&&(o=e.children,s=!0),o===void 0?i!==null&&i(n):o(n,s?()=>r:r)}function A4(n,e,t,r,i,o){let s=Ce;Ce&&Rr();var a=null;Ce&&Oe.nodeType===D5&&(a=Oe,Rr());var l=Ce?Oe:n,f=new Sl(l,!1);Do(()=>{const u=e()||null;var c=u==="svg"?M5:null;if(u===null){f.ensure(null,null);return}return f.ensure(u,h=>{u&&(a=Ce?a:c?document.createElementNS(c,u):document.createElement(u),Ir(a,a),Ve.nodes.end=a,h.before(a)),Ce&&Wt(h)}),()=>{}},vi),qs(()=>{}),s&&(mr(!0),Wt(l))}function cr(n,e){tl(()=>{var t=n.getRootNode(),r=t.host?t:t.head??t.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}const El=[...` +\r\f \v\uFEFF`];function R4(n,e,t){var r=n==null?"":""+n;if(t){for(var i in t)if(t[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,s=0;(s=r.indexOf(i,s))>=0;){var a=s+o;(s===0||El.includes(r[s-1]))&&(a===r.length||El.includes(r[a]))?r=(s===0?"":r.substring(0,s))+r.substring(a+1):s=a}}return r===""?null:r}function Al(n,e=!1){var t=e?" !important;":";",r="";for(var i in n){var o=n[i];o!=null&&o!==""&&(r+=" "+i+": "+o+t)}return r}function js(n){return n[0]!=="-"||n[1]!=="-"?n.toLowerCase():n}function P4(n,e){if(e){var t="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,n){n=String(n).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,l=[];r&&l.push(...Object.keys(r).map(js)),i&&l.push(...Object.keys(i).map(js));var f=0,u=-1;const g=n.length;for(var c=0;c{var i,o;return On(()=>{i=o,o=[],Qr(()=>{n!==t(...o)&&(e(n,...o),i&&Pl(t(...i),n)&&e(null,...i))})}),()=>{ji(()=>{o&&Pl(t(...o),n)&&e(null,...o)})}}),n}function V4(n=!1){const e=_t,t=e.l.u;if(!t)return;let r=()=>Cl(e.s);if(n){let i=0,o={};const s=En(()=>{let a=!1;const l=e.s;for(const f in l)l[f]!==o[f]&&(o[f]=l[f],a=!0);return a&&i++,i});r=()=>L(s)}t.b.length&&f4(()=>{Ol(e,r),Es(t.b)}),Hr(()=>{const i=Qr(()=>t.m.map(P5));return()=>{for(const o of i)typeof o=="function"&&o()}}),t.a.length&&Hr(()=>{Ol(e,r),Es(t.a)})}function Ol(n,e){if(n.l.s)for(const t of n.l.s)L(t);e()}let zo=!1;function z4(n){var e=zo;try{return zo=!1,[n(),zo]}finally{zo=e}}function E(n,e,t,r){var i=!$i||(t&y5)!==0,o=(t&x5)!==0,s=(t&L5)!==0,a=r,l=!0,f=()=>(l&&(l=!1,a=s?Qr(r):r),a),u;if(o){var c=yi in n||Aa in n;u=_i(n,e)?.set??(c&&e in n?T=>n[e]=T:void 0)}var h,d=!1;o?[h,d]=z4(()=>n[e]):h=n[e],h===void 0&&r!==void 0&&(h=f(),u&&(i&&N5(),u(h)));var p;if(i?p=()=>{var T=n[e];return T===void 0?f():(l=!0,T)}:p=()=>{var T=n[e];return T!==void 0&&(a=void 0),T===void 0?a:T},i&&(t&w5)===0)return p;if(u){var g=n.$$legacy;return(function(T,C){return arguments.length>0?((!i||!C||g||d)&&u(C?p():T),T):p()})}var m=!1,b=((t&b5)!==0?En:Fs)(()=>(m=!1,p()));o&&L(b);var w=Ve;return(function(T,C){if(arguments.length>0){const S=C?L(b):i&&o?jr(T):T;return j(b,S),m=!0,a!==void 0&&(a=S),T}return Kr&&m||(w.f&Er)!==0?b.v:L(b)})}function B4(n){return new N4(n)}class N4{#e;#t;constructor(e){var t=new Map,r=(o,s)=>{var a=zs(s,!1,!1);return t.set(o,a),a};const i=new Proxy({...e.props||{},$$events:{}},{get(o,s){return L(t.get(s)??r(s,Reflect.get(o,s)))},has(o,s){return s===Aa?!0:(L(t.get(s)??r(s,Reflect.get(o,s))),Reflect.has(o,s))},set(o,s,a){return j(t.get(s)??r(s,a),a),Reflect.set(o,s,a)}});this.#t=(e.hydrate?w4:xl)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&k(),this.#e=i.$$events;for(const o of Object.keys(this.#t))o==="$set"||o==="$destroy"||o==="$on"||ko(this,o,{get(){return this.#t[o]},set(s){this.#t[o]=s},enumerable:!0});this.#t.$set=o=>{Object.assign(i,o)},this.#t.$destroy=()=>{x4(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];const r=(...i)=>t.call(this,...i);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(i=>i!==r)}}$destroy(){this.#t.$destroy()}}let Dl;typeof HTMLElement=="function"&&(Dl=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(n,e,t){super(),this.$$ctor=n,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(n,e,t){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(e),this.$$c){const r=this.$$c.$on(n,e);this.$$l_u.set(e,r)}super.addEventListener(n,e,t)}removeEventListener(n,e,t){if(super.removeEventListener(n,e,t),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(r){return i=>{const o=document.createElement("slot");r!=="default"&&(o.name=r),Ge(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},t=Z4(this);for(const r of this.$$s)r in t&&(r==="default"&&!this.$$d.children?(this.$$d.children=n(r),e.default=!0):e[r]=n(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Bo(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=B4({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=u4(()=>{On(()=>{this.$$r=!0;for(const r of To(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Bo(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const o=this.$$c.$on(r,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(n,e,t){this.$$r||(n=this.$$g_p(n),this.$$d[n]=Bo(n,t,this.$$p_d,"toProp"),this.$$c?.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(n){return To(this.$$p_d).find(e=>this.$$p_d[e].attribute===n||!this.$$p_d[e].attribute&&e.toLowerCase()===n)||n}});function Bo(n,e,t,r){const i=t[n]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[n])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Z4(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function P1(n,e,t,r,i,o){let s=class extends Dl{constructor(){super(n,t,i),this.$$p_d=e}static get observedAttributes(){return To(e).map(a=>(e[a].attribute||a).toLowerCase())}};return To(e).forEach(a=>{ko(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Bo(a,l,e),this.$$d[a]=l;var f=this.$$c;if(f){var u=_i(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),r.forEach(a=>{ko(s.prototype,a,{get(){return this.$$c?.[a]}})}),n.element=s,s}var q4=Qe(''),U4=Qe(''),Y4=Qe(' ',1),G4=Qe(''),W4=Qe(''),$4=Qe('

');const X4={hash:"svelte-1ed370f",code:`:host {display:block;font-family:var(--ab-font, "IBM Plex Sans", system-ui, sans-serif);color:var(--ab-text, #fffefa);}.player.svelte-1ed370f {position:relative;width:100%;height:411px;border-radius:var(--ab-border-radius, 20px);overflow:hidden;} + + @media (min-width: 900px) {.player.svelte-1ed370f {margin:auto;min-width:390px;max-width:700px;max-height:400px;} + }.bg-wrap.svelte-1ed370f {position:absolute;inset:0;height:95%;overflow:hidden;z-index:1;border-radius:var(--ab-border-radius, 20px);background:var(--ab-bg-fallback, #050f27);}.bg-wrap.svelte-1ed370f img:where(.svelte-1ed370f) {width:100%;height:auto;display:block;}.controls.svelte-1ed370f {position:absolute;inset-inline:0;bottom:0;z-index:2;background:var(--ab-surface, #0d1e45);border-radius:var(--ab-border-radius, 20px);padding-top:10px;}.title.svelte-1ed370f {margin:5px 20px;max-width:90%;font-size:var(--ab-title-size, 1.6em);font-weight:700;color:var(--ab-text, #fffefa);}.progress.svelte-1ed370f {width:calc(100% - 40px);height:20px;margin:15px auto 0;border-radius:2px;background:var(--ab-progress-bg, #ffffff30);position:relative;cursor:pointer;}.progress.svelte-1ed370f > .bar:where(.svelte-1ed370f) {height:100%;width:var(--ab-progress, 0%);border-radius:2px;background:var(--ab-progress-fill, #0066cc);}.row.svelte-1ed370f {display:flex;justify-content:space-around;align-items:center;gap:8px;padding:14px 0 18px;}button.icon.svelte-1ed370f {appearance:none;border:0;background:transparent;padding:6px;border-radius:8px;cursor:pointer;}button.icon.svelte-1ed370f:focus-visible {outline:2px solid var(--ab-accent, #5ea0ff);outline-offset:2px;}.icon-img.svelte-1ed370f {width:35px;height:35px;margin:6px;filter:var( + --ab-icon-filter, + invert(100%) sepia(59%) saturate(541%) hue-rotate(298deg) brightness(104%) + contrast(105%) + );}.kebab.svelte-1ed370f {position:relative;}.menu.svelte-1ed370f {display:none;position:absolute;right:0;bottom:calc(100% + 8px);background:var(--ab-menu-bg, #f9f9f9);color:var(--ab-menu-fg, #111);min-width:180px;box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);border-radius:8px;padding:6px;z-index:10;}.menu.open.svelte-1ed370f {display:block;}.menu.svelte-1ed370f button.item:where(.svelte-1ed370f) {display:flex;align-items:center;gap:8px;width:100%;background:transparent;border:0;text-align:left;padding:10px 12px;color:inherit;border-radius:6px;cursor:pointer;}.menu.svelte-1ed370f button.item:where(.svelte-1ed370f):hover {background:var(--ab-menu-hover-bg, #0a2458);color:var(--ab-menu-hover-fg, #fcfcfc);}.menu.svelte-1ed370f .mini-icon:where(.svelte-1ed370f) {width:1em;height:1em;filter:var(--ab-menu-icon-filter, invert(0%));transition:filter 0.15s ease; /* optional: smoother hover */} + + /* NEW: match icon to hovered item’s “light on dark” colors */.menu.svelte-1ed370f button.item:where(.svelte-1ed370f):hover .mini-icon:where(.svelte-1ed370f), + .menu.svelte-1ed370f button.item:where(.svelte-1ed370f):focus-visible .mini-icon:where(.svelte-1ed370f) {filter:var( + --ab-menu-icon-hover-filter, + invert(100%) + ); /* default: light icon */}.submenu.svelte-1ed370f {max-height:220px;overflow:auto;}.speedBtn[selected].svelte-1ed370f::before {content:"✓ ";}`};function Hl(n,e){v1(e,!0),cr(n,X4);let t=E(e,"title",7,"Audio Brief"),r=E(e,"audioSrc",7,"https://res.cloudinary.com/csisideaslab/video/upload/v1707945697/Shorthand/Global%20Forecast/G_Allen_GFAB_vF_mixdown.mp3"),i=E(e,"transcriptSrc",7,""),o=E(e,"bgImage",7,""),s=E(e,"backgroundImageAlt",7,""),a=E(e,"bgColor",7,"#050f27"),l=E(e,"fontUrl",7,""),f=E(e,"fontFamily",7,"'IBM Plex Sans', system-ui, sans-serif"),u=E(e,"iconPlay",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706117784/Shorthand/Global%20Forecast/play-svgrepo-com.svg"),c=E(e,"iconPause",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706119327/Shorthand/Global%20Forecast/pause-svgrepo-com.svg"),h=E(e,"iconSkipBack",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/backward.svg"),d=E(e,"iconSkipForward",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/forward.svg"),p=E(e,"iconSkipStart",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706117793/Shorthand/Global%20Forecast/backward-3-svgrepo-com.svg"),g=E(e,"iconSkipEnd",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706117789/Shorthand/Global%20Forecast/forward-3-svgrepo-com.svg"),m=E(e,"iconMenu",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1771450639/Shorthand/Global%20Forecast/kebab-menu.svg"),b=E(e,"iconDownload",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148613/Shorthand/Global%20Forecast/download-svgrepo-com.svg"),w=E(e,"iconShare",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148595/Shorthand/Global%20Forecast/share-alt-svgrepo-com.svg"),T=E(e,"iconBack",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148618/Shorthand/Global%20Forecast/left-arrow-svgrepo-com.svg"),C=E(e,"iconSpeed",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148589/Shorthand/Global%20Forecast/playback-speed-svgrepo-com.svg"),S=E(e,"borderRadius",7,"20px"),x=E(e,"textColor",7,"#fffefa"),v=E(e,"surface",7,"#0d1e45"),D=E(e,"accent",7,"#5ea0ff"),P=E(e,"titleSize",7,"1.6em"),R=E(e,"progressBg",7,"#ffffff30"),F=E(e,"progressFill",7,"#0066cc"),I=E(e,"menuBg",7,"#f9f9f9"),J=E(e,"menuFg",7,"#111"),U=E(e,"menuHoverBg",7,"#0a2458"),re=E(e,"menuHoverFg",7,"#fcfcfc"),ie=E(e,"iconFilter",7,"invert(100%) sepia(59%) saturate(541%) hue-rotate(298deg) brightness(104%) contrast(105%)"),O=E(e,"menuIconFilter",7,"invert(0%)"),oe=E(e,"menuIconHoverFilter",7,"invert(100%)");Hr(()=>{const ae=(L(B)?.getRootNode&&L(B).getRootNode()||document).host;ae&&ae.style.setProperty("--ab-font",f())}),Hr(()=>{if(!l())return;const M=document.head;if(!M.querySelector('link[rel="preconnect"][href="https://fonts.googleapis.com"]')){const G=document.createElement("link");G.rel="preconnect",G.href="https://fonts.googleapis.com",M.appendChild(G)}if(!M.querySelector('link[rel="preconnect"][href="https://fonts.gstatic.com"]')){const G=document.createElement("link");G.rel="preconnect",G.href="https://fonts.gstatic.com",G.crossOrigin="anonymous",M.appendChild(G)}let ae=M.querySelector(`link[rel="stylesheet"][href="${l()}"]`);ae||(ae=document.createElement("link"),ae.rel="stylesheet",ae.href=l(),M.appendChild(ae))});let B=Ne(void 0),y=Ne(!1),ne=Ne(0),Fe=Ne(!1),ve=Ne(!1),Me=Ne(1),fe,Ze;const Re=[.5,.75,1,1.25,1.5,2];function be(){L(B)&&(L(B).paused?(L(B).play(),j(y,!0)):(L(B).pause(),j(y,!1)))}function ze(M){if(!L(B))return;const ae=L(B).duration??0,G=Math.max(0,Math.min((L(B).currentTime||0)+M,Number.isFinite(ae)?ae:0));L(B).currentTime=G}function Zt(){L(B)&&(L(B).currentTime=0)}function Ct(){L(B)&&Number.isFinite(L(B).duration)&&(L(B).currentTime=L(B).duration)}function rt(){if(!L(B)||!Number.isFinite(L(B).duration)){j(ne,0);return}j(ne,L(B).currentTime/L(B).duration*100)}function se(M){if(!L(B)||!Number.isFinite(L(B).duration))return;const ae=M.currentTarget.getBoundingClientRect(),G=(M.clientX-ae.left)/ae.width;L(B).currentTime=G*L(B).duration}function Le(M){if(!L(B)||!Number.isFinite(L(B).duration))return;const ae=5;switch(M.key){case"ArrowLeft":M.preventDefault(),L(B).currentTime=Math.max(0,L(B).currentTime-ae);break;case"ArrowRight":M.preventDefault(),L(B).currentTime=Math.min(L(B).duration,L(B).currentTime+ae);break;case"Home":M.preventDefault(),L(B).currentTime=0;break;case"End":M.preventDefault(),L(B).currentTime=L(B).duration;break;case"PageDown":M.preventDefault(),L(B).currentTime=Math.max(0,L(B).currentTime-10);break;case"PageUp":M.preventDefault(),L(B).currentTime=Math.min(L(B).duration,L(B).currentTime+10);break}}function We(M){j(Me,M,!0),L(B)&&(L(B).playbackRate=M)}function Ae(M,ae){const ee=(L(B)?.getRootNode?.()||document).host;ee&&(ae==null||ae===""?ee.style.removeProperty(M):ee.style.setProperty(M,String(ae)))}Hr(()=>{L(B)&&(L(B).playbackRate=L(Me))}),Hr(()=>{function M(ae){if(!L(Fe))return;const G=ae.composedPath?.()??[],ee=fe&&G.includes(fe),me=Ze&&G.includes(Ze);!ee&&!me&&(j(Fe,!1),j(ve,!1))}return document.addEventListener("pointerdown",M,!0),()=>document.removeEventListener("pointerdown",M,!0)}),Hr(()=>{Ae("--ab-border-radius",S()),Ae("--ab-text",x()),Ae("--ab-surface",v()),Ae("--ab-accent",D()),Ae("--ab-title-size",P()),Ae("--ab-progress-bg",R()),Ae("--ab-progress-fill",F()),Ae("--ab-menu-bg",I()),Ae("--ab-menu-fg",J()),Ae("--ab-menu-hover-bg",U()),Ae("--ab-menu-hover-fg",re()),Ae("--ab-icon-filter",ie()),Ae("--ab-menu-icon-filter",O()),Ae("--ab-menu-icon-hover-filter",oe())});var A={get title(){return t()},set title(M="Audio Brief"){t(M),k()},get audioSrc(){return r()},set audioSrc(M="https://res.cloudinary.com/csisideaslab/video/upload/v1707945697/Shorthand/Global%20Forecast/G_Allen_GFAB_vF_mixdown.mp3"){r(M),k()},get transcriptSrc(){return i()},set transcriptSrc(M=""){i(M),k()},get bgImage(){return o()},set bgImage(M=""){o(M),k()},get backgroundImageAlt(){return s()},set backgroundImageAlt(M=""){s(M),k()},get bgColor(){return a()},set bgColor(M="#050f27"){a(M),k()},get fontUrl(){return l()},set fontUrl(M=""){l(M),k()},get fontFamily(){return f()},set fontFamily(M="'IBM Plex Sans', system-ui, sans-serif"){f(M),k()},get iconPlay(){return u()},set iconPlay(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706117784/Shorthand/Global%20Forecast/play-svgrepo-com.svg"){u(M),k()},get iconPause(){return c()},set iconPause(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706119327/Shorthand/Global%20Forecast/pause-svgrepo-com.svg"){c(M),k()},get iconSkipBack(){return h()},set iconSkipBack(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/backward.svg"){h(M),k()},get iconSkipForward(){return d()},set iconSkipForward(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/forward.svg"){d(M),k()},get iconSkipStart(){return p()},set iconSkipStart(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706117793/Shorthand/Global%20Forecast/backward-3-svgrepo-com.svg"){p(M),k()},get iconSkipEnd(){return g()},set iconSkipEnd(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706117789/Shorthand/Global%20Forecast/forward-3-svgrepo-com.svg"){g(M),k()},get iconMenu(){return m()},set iconMenu(M="https://res.cloudinary.com/csisideaslab/image/upload/v1771450639/Shorthand/Global%20Forecast/kebab-menu.svg"){m(M),k()},get iconDownload(){return b()},set iconDownload(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706148613/Shorthand/Global%20Forecast/download-svgrepo-com.svg"){b(M),k()},get iconShare(){return w()},set iconShare(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706148595/Shorthand/Global%20Forecast/share-alt-svgrepo-com.svg"){w(M),k()},get iconBack(){return T()},set iconBack(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706148618/Shorthand/Global%20Forecast/left-arrow-svgrepo-com.svg"){T(M),k()},get iconSpeed(){return C()},set iconSpeed(M="https://res.cloudinary.com/csisideaslab/image/upload/v1706148589/Shorthand/Global%20Forecast/playback-speed-svgrepo-com.svg"){C(M),k()},get borderRadius(){return S()},set borderRadius(M="20px"){S(M),k()},get textColor(){return x()},set textColor(M="#fffefa"){x(M),k()},get surface(){return v()},set surface(M="#0d1e45"){v(M),k()},get accent(){return D()},set accent(M="#5ea0ff"){D(M),k()},get titleSize(){return P()},set titleSize(M="1.6em"){P(M),k()},get progressBg(){return R()},set progressBg(M="#ffffff30"){R(M),k()},get progressFill(){return F()},set progressFill(M="#0066cc"){F(M),k()},get menuBg(){return I()},set menuBg(M="#f9f9f9"){I(M),k()},get menuFg(){return J()},set menuFg(M="#111"){J(M),k()},get menuHoverBg(){return U()},set menuHoverBg(M="#0a2458"){U(M),k()},get menuHoverFg(){return re()},set menuHoverFg(M="#fcfcfc"){re(M),k()},get iconFilter(){return ie()},set iconFilter(M="invert(100%) sepia(59%) saturate(541%) hue-rotate(298deg) brightness(104%) contrast(105%)"){ie(M),k()},get menuIconFilter(){return O()},set menuIconFilter(M="invert(0%)"){O(M),k()},get menuIconHoverFilter(){return oe()},set menuIconHoverFilter(M="invert(100%)"){oe(M),k()}},Xe=$4(),Lt=Y(Xe),Pt=Y(Lt);{var je=M=>{var ae=q4();tt(()=>{he(ae,"alt",s()),he(ae,"src",o()),he(ae,"aria-hidden",s()?"false":"true")}),Ge(M,ae)};y1(Pt,M=>{o()&&M(je)})}q(Lt);var ht=pe(Lt,2),Tt=Y(ht),V=Y(Tt,!0);q(Tt);var N=pe(Tt,2);K1(N,M=>j(B,M),()=>L(B));var ce=pe(N,2);ce.__click=se,ce.__keydown=Le;var ue=pe(ce,2),Ke=Y(ue);Ke.__click=Zt;var ft=Y(Ke);q(Ke);var H=pe(Ke,2);H.__click=()=>ze(-10);var qe=Y(H);q(H);var ge=pe(H,2);ge.__click=be;var ut=Y(ge);q(ge);var et=pe(ge,2);et.__click=()=>ze(10);var ct=Y(et);q(et);var Ee=pe(et,2);Ee.__click=Ct;var Ue=Y(Ee);q(Ee);var Ft=pe(Ee,2),de=Y(Ft);de.__click=()=>{j(Fe,!L(Fe)),j(ve,!1)};var It=Y(de);q(de),K1(de,M=>Ze=M,()=>Ze);var gt=pe(de,2);let Vt;var kt=Y(gt);{var E1=M=>{var ae=Y4(),G=Pn(ae);G.__click=()=>{if(!r())return;const le=document.createElement("a");le.href=r().includes("/upload/")?r().replace("upload/","upload/fl_attachment/"):r(),le.download="",le.click(),j(Fe,!1)};var ee=Y(G);Pr(),q(G);var me=pe(G,2);{var Z=le=>{var ye=U4();ye.__click=()=>{const $e=document.createElement("a");$e.href=i(),$e.target="_blank",$e.click(),j(Fe,!1)};var pt=Y(ye);Pr(),q(ye),tt(()=>he(pt,"src",b())),Ge(le,ye)};y1(me,le=>{i()&&le(Z)})}var te=pe(me,2);te.__click=async()=>{const le=r()||location.href;try{navigator.share?await navigator.share({title:t(),url:le}):navigator.clipboard&&await navigator.clipboard.writeText(le)}catch{}j(Fe,!1)};var K=Y(te);Pr(),q(te);var X=pe(te,2);X.__click=()=>{j(ve,!0)};var Ie=Y(X);Pr(),q(X),tt(()=>{he(ee,"src",b()),he(K,"src",w()),he(Ie,"src",C())}),Ge(M,ae)},U1=M=>{var ae=W4(),G=Y(ae);G.__click=()=>{j(ve,!1)};var ee=Y(G);Pr(),q(G);var me=pe(G,2);Ml(me,17,()=>Re,Tl,(Z,te)=>{var K=G4();K.__click=()=>{We(L(te))};var X=Y(K);q(K),tt(()=>{H4(K,L(te)===L(Me)),Qt(X,`${L(te)??""}x${L(te)===1?" (Normal)":""}`)}),Ge(Z,K)}),q(ae),tt(()=>he(ee,"src",T())),Ge(M,ae)};y1(kt,M=>{L(ve)?M(U1,!1):M(E1)})}return q(gt),K1(gt,M=>fe=M,()=>fe),q(Ft),q(ue),q(ht),q(Xe),tt((M,ae)=>{st(Lt,`--ab-bg-fallback:${a()}`),Qt(V,t()),he(N,"src",r()),he(N,"playbackrate",L(Me)),he(ce,"aria-valuemax",M),he(ce,"aria-valuenow",ae),st(ce,`--ab-progress:${L(ne)}%`),he(ft,"src",p()),he(qe,"src",h()),he(ge,"aria-label",L(y)?"Pause":"Play"),he(ut,"src",L(y)?c():u()),he(ct,"src",d()),he(Ue,"src",g()),he(de,"aria-expanded",L(Fe)),he(It,"src",m()),Vt=Vo(gt,1,"menu svelte-1ed370f",null,Vt,{open:L(Fe)})},[()=>Math.floor(L(B)?.duration||0),()=>Math.floor(L(B)?.currentTime||0)]),a1("timeupdate",N,rt),a1("play",N,()=>j(y,!0)),a1("pause",N,()=>j(y,!1)),Ge(n,Xe),C1(A)}Ws(["click","keydown"]),customElements.define("csis-audio-brief",P1(Hl,{title:{reflect:!0,type:"String"},audioSrc:{attribute:"audio-src",type:"String"},transcriptSrc:{attribute:"transcript-src",type:"String"},bgImage:{attribute:"bg-image",type:"String"},backgroundImageAlt:{attribute:"background-image-alt",type:"String"},bgColor:{attribute:"bg-color",type:"String"},fontUrl:{attribute:"font-url",type:"String"},fontFamily:{attribute:"font-family",type:"String"},iconPlay:{attribute:"icon-play",type:"String"},iconPause:{attribute:"icon-pause",type:"String"},iconSkipBack:{attribute:"icon-skip-back",type:"String"},iconSkipForward:{attribute:"icon-skip-forward",type:"String"},iconSkipStart:{attribute:"icon-skip-start",type:"String"},iconSkipEnd:{attribute:"icon-skip-end",type:"String"},iconMenu:{attribute:"icon-menu",type:"String"},iconDownload:{attribute:"icon-download",type:"String"},iconShare:{attribute:"icon-share",type:"String"},iconBack:{attribute:"icon-back",type:"String"},iconSpeed:{attribute:"icon-speed",type:"String"},borderRadius:{attribute:"border-radius",type:"String"},textColor:{attribute:"text",type:"String"},surface:{attribute:"surface",type:"String"},accent:{attribute:"accent",type:"String"},titleSize:{attribute:"title-size",type:"String"},progressBg:{attribute:"progress-bg",type:"String"},progressFill:{attribute:"progress-fill",type:"String"},menuBg:{attribute:"menu-bg",type:"String"},menuFg:{attribute:"menu-fg",type:"String"},menuHoverBg:{attribute:"menu-hover-bg",type:"String"},menuHoverFg:{attribute:"menu-hover-fg",type:"String"},iconFilter:{attribute:"icon-filter",type:"String"},menuIconFilter:{attribute:"menu-icon-filter",type:"String"},menuIconHoverFilter:{attribute:"menu-icon-hover-filter",type:"String"}},[],[],!0));const j4=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"}));var K4=Qe(`This Hidden Reach Snapshot uses satellite imagery to + reveal how China is quietly using submarine diplomacy to deepen its + influence along the Bay of Bengal.`,1),Q4=Qe('
');const J4={hash:"svelte-hgqz32",code:` + /* Shadow DOM styles — encapsulated by default */ + @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap");:host {display:block;font-family:"IBM Plex Sans", system-ui, sans-serif;}.callout-container.svelte-hgqz32 {display:flex;align-items:center;background-color:var(--cpp-callout-bg, #22484e);max-width:800px;margin:auto;color:var(--cpp-callout-text, #f8f7f7);}.callout-image.svelte-hgqz32 {max-height:195px;}.callout-image.svelte-hgqz32 a:where(.svelte-hgqz32) {text-decoration:none;border-bottom:none !important;}.callout-image.svelte-hgqz32 img:where(.svelte-hgqz32) {width:auto;max-height:195px;display:block;}.callout-text.svelte-hgqz32 {flex:1;font-size:1rem;margin:24px;}.callout-text.svelte-hgqz32 a:where(.svelte-hgqz32) {color:inherit;text-decoration:none;} + + /* Responsive */ + @media (max-width: 1400px) {.callout-container.svelte-hgqz32 {flex-direction:column;}.callout-image.svelte-hgqz32 {margin:0;width:100%;}.callout-image.svelte-hgqz32 img:where(.svelte-hgqz32) {width:100%;height:auto;margin-bottom:0;}.callout-text.svelte-hgqz32 {padding:24px;margin:0 24px 24px 24px; /* keep visual rhythm */} + }`};function Fl(n,e){v1(e,!0),cr(n,J4);let t=E(e,"href",7,"https://features.csis.org/snapshots/china-submarine-diplomacy/"),r=E(e,"imageSrc",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1704306843/hidden-reach/HR5-Snapshot-Header.jpg"),i=E(e,"imageAlt",7,"Callout Image"),o=E(e,"bg",7,"#22484e"),s=E(e,"textColor",7,"#ffffff"),a=E(e,"maxWidth",7,800);var l={get href(){return t()},set href(g="https://features.csis.org/snapshots/china-submarine-diplomacy/"){t(g),k()},get imageSrc(){return r()},set imageSrc(g="https://res.cloudinary.com/csisideaslab/image/upload/v1704306843/hidden-reach/HR5-Snapshot-Header.jpg"){r(g),k()},get imageAlt(){return i()},set imageAlt(g="Callout Image"){i(g),k()},get bg(){return o()},set bg(g="#22484e"){o(g),k()},get textColor(){return s()},set textColor(g="#ffffff"){s(g),k()},get maxWidth(){return a()},set maxWidth(g=800){a(g),k()}},f=Q4(),u=Y(f),c=Y(u),h=Y(c);q(c),q(u);var d=pe(u,2),p=Y(d);return E4(p,e,"default",{},g=>{var m=K4(),b=pe(Pn(m));Pr(),tt(()=>he(b,"href",t())),Ge(g,m)}),q(d),q(f),tt(()=>{st(f,`--cpp-callout-bg:${o()}; max-width:${a()}px; --cpp-callout-text:${s()}`),he(c,"href",t()),he(h,"src",r()),he(h,"alt",i())}),Ge(n,f),C1(l)}customElements.define("csis-cpp-callout",P1(Fl,{href:{type:"String"},imageSrc:{attribute:"image-src",type:"String"},imageAlt:{attribute:"image-alt",type:"String"},bg:{type:"String"},textColor:{attribute:"text-color",type:"String"},maxWidth:{attribute:"max-width",type:"Number"}},["default"],[],!0));const e9=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"}));var t9=Qe(`
`);const r9={hash:"svelte-1sqrwfu",code:` + @import url("https://use.typekit.net/tfb5hou.css");:host {--footer-bg: #4b4b4b;--footer-text: #fff;}.footer.svelte-1sqrwfu {background:var(--footer-bg);color:var(--footer-text);padding-top:1.25rem;padding-bottom:2rem;width:100%;font-family:"Arial", sans-serif;}.container.svelte-1sqrwfu {max-width:1290px;margin:auto;} + + /* two columns on desktop */.footer__main.svelte-1sqrwfu {display:grid;grid-template-columns:minmax(0, 1fr) max-content; + /* left grows, right hugs */gap:1rem 1rem;}.footer__brand.svelte-1sqrwfu {grid-column:1 / -1;display:flex;align-items:center;}.footer__brand.svelte-1sqrwfu path:where(.svelte-1sqrwfu) {fill:var(--footer-text);transition:fill 0.3s ease;}.footer__col.svelte-1sqrwfu {display:flex;flex-direction:column;align-items:flex-start;gap:1rem;} + + /*-- --------------------- Socials --------------------- --*/.footer__social.svelte-1sqrwfu {display:flex;align-items:center;gap:0.75rem;margin-top:0.25rem;max-width:162px;} + + /* make the icons inherit the link color */.footer__social.svelte-1sqrwfu a:where(.svelte-1sqrwfu) svg:where(.svelte-1sqrwfu) path:where(.svelte-1sqrwfu) {fill:currentColor !important;transition:fill 0.3s ease, + opacity 0.3s ease;} + + /* animate the color on the link itself */.footer__social.svelte-1sqrwfu a:where(.svelte-1sqrwfu) {color:var(--footer-text);opacity:0.8;transition:color 0.3s ease, + opacity 0.3s ease, + transform 0.3s ease;}.footer__social.svelte-1sqrwfu a:where(.svelte-1sqrwfu):hover {color:var(--footer-text);opacity:1;transform:translateY(-1px);} + + /*-- -------------------- Copyright -------------------- --*/.footer__copyright.svelte-1sqrwfu {font-size:0.75rem;margin-top:2rem;}.footer__copyright.svelte-1sqrwfu p:where(.svelte-1sqrwfu) {margin:0;opacity:0.6;}.footer__copyright.svelte-1sqrwfu a:where(.svelte-1sqrwfu) {color:var(--footer-text);opacity:0.8;transition:all 0.3s ease-in-out;}.footer__copyright.svelte-1sqrwfu a:where(.svelte-1sqrwfu):hover {opacity:1;} + + /*-- ------------------- Footer Text ------------------- --*/.footer__col.footer__csis.svelte-1sqrwfu {font-size:0.9375rem; + /* max-width: 688px; */max-width:950px;}.footer__col.footer__csis.svelte-1sqrwfu p:where(.svelte-1sqrwfu) {margin:0;}.footer__col.footer__address.svelte-1sqrwfu {font-size:0.875rem;max-width:200px;line-height:1.3;}.footer__col.footer__address.svelte-1sqrwfu p:where(.svelte-1sqrwfu) {margin:0;color:var(--footer-text);opacity:0.8;} + + /*-- --------------------------------------------------- --*/ + /*-- Media Queries --*/ + /*-- --------------------------------------------------- --*/ + @media screen and (max-width: 1280px) {.container.svelte-1sqrwfu {max-width:1152px;padding-left:40px;padding-right:40px;}.footer__col.footer__csis.svelte-1sqrwfu {max-width:920px;} + } + @media screen and (max-width: 1024px) {.footer.svelte-1sqrwfu {padding-top:2rem;padding-bottom:2rem;}.container.svelte-1sqrwfu {max-width:506px;}.footer__col.footer__address.svelte-1sqrwfu {margin-left:1rem;}.footer__copyright.svelte-1sqrwfu {margin-top:2rem;} + } + + @media screen and (max-width: 640px) {.footer.svelte-1sqrwfu {padding-top:1.25rem;padding-bottom:2rem;}.footer__main.svelte-1sqrwfu {grid-template-columns:1fr;}.container.svelte-1sqrwfu {max-width:320px;}.footer__col.footer__address.svelte-1sqrwfu {margin-top:1rem;margin-bottom:0;margin-left:0;}.footer__social.svelte-1sqrwfu {margin-top:0;} + }`};function Il(n,e){v1(e,!0),cr(n,r9);let t=E(e,"textColor",7,"#fff"),r=E(e,"backgroundColor",7,"#4b4b4b");var i={get textColor(){return t()},set textColor(c="#fff"){t(c),k()},get backgroundColor(){return r()},set backgroundColor(c="#4b4b4b"){r(c),k()}},o=t9(),s=Y(o),a=pe(Y(s),2),l=Y(a),f=Y(l),u=Y(f);return q(f),Pr(2),q(l),q(a),q(s),q(o),tt(c=>{st(o,`--footer-bg: ${r()}; --footer-text: ${t()};`),Qt(u,`Copyright © ${c??""} + Center for Strategic & International Studies. All rights reserved.`)},[()=>new Date().getFullYear()]),Ge(n,o),C1(i)}customElements.define("csis-shorthand-footer",P1(Il,{textColor:{attribute:"text-color",type:"String"},backgroundColor:{attribute:"background-color",type:"String"}},[],[],!0));const i9=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"}));var n9=Qe(`
`);const o9={hash:"svelte-rdmg51",code:` + @import url("https://use.typekit.net/tfb5hou.css");:host {display:block;width:100%;}.footer.svelte-rdmg51 {background:var(--footer-bg);color:var(--footer-text);padding:2.5rem 0 2rem 0;font-family:"Arial", sans-serif; + + /* NEW: make this a full-height section */min-height:min(100vh, 345.71px);display:flex;flex-direction:column;box-sizing:border-box;}.footer__grid.svelte-rdmg51 {max-width:1290px; + /* margin: 0 auto; */margin:auto auto 0 auto; /* top:auto pushes grid to bottom */padding:0;display:grid;grid-template-columns:minmax(0, 918px) minmax(0, 340px);grid-template-rows:2.232rem auto;grid-template-areas:"left-a right-a" + "left-b right-b" + "left-c right-c" + "full full";row-gap:1rem;column-gap:2rem;} + + /* Grid area mapping */ + + /* ------------------------ row 1 ----------------------- */.footer__left-a.svelte-rdmg51 {grid-area:left-a;}.footer__right-a.svelte-rdmg51 {grid-area:right-a;} + + /*hidden reach logo*/.footer__brand--hidden-reach.svelte-rdmg51 {display:block;height:1.75rem;width:auto;max-width:100%;justify-self:start;} + + /* ------------------------ row 2 ----------------------- */.footer__left-b.svelte-rdmg51 {grid-area:left-b;}.footer__left-b.svelte-rdmg51 p:where(.svelte-rdmg51) {font-size:0.9375rem; /*CSIS about text*/margin:0;}.footer__right-b.svelte-rdmg51 {grid-area:right-b;}.footer__right-b.svelte-rdmg51 p:where(.svelte-rdmg51) {font-size:0.9375rem; /*hidden reach about text*/margin:0;} + + /* ------------------------ row 3 ----------------------- */.footer__left-c.svelte-rdmg51 {grid-area:left-c;}.footer__left-c.svelte-rdmg51 p:where(.svelte-rdmg51) {font-size:0.875rem;max-width:200px;line-height:1.3;color:var(--footer-text);opacity:0.8;margin:0 0 0.875rem 0;}.footer__social.svelte-rdmg51 {display:flex;align-items:center;gap:0.75rem;margin-top:0;max-width:162px;}.footer__social.svelte-rdmg51 a:where(.svelte-rdmg51) svg:where(.svelte-rdmg51) path:where(.svelte-rdmg51) {fill:currentColor !important;transition:fill 0.3s ease, + opacity 0.3s ease;}.footer__social.svelte-rdmg51 a:where(.svelte-rdmg51) {color:var(--footer-text);opacity:0.8;transition:color 0.3s ease, + opacity 0.3s ease, + transform 0.3s ease;}.footer__social.svelte-rdmg51 a:where(.svelte-rdmg51):hover {color:var(--footer-text);opacity:1;transform:translateY(-1px);}.footer__right-c.svelte-rdmg51 {grid-area:right-c;} + + /* ------------------------ row 4 ----------------------- */ + /*copyright text*/.footer__full.svelte-rdmg51 {grid-area:full;font-size:0.75rem;margin-top:2rem;}.footer__full.svelte-rdmg51 p:where(.svelte-rdmg51) {margin:0;opacity:0.6;} + + /*privacy policy*/.footer__full.svelte-rdmg51 a:where(.svelte-rdmg51) {color:var(--footer-text);opacity:0.8;transition:all 0.3s ease-in-out;}.footer__full.svelte-rdmg51 a:where(.svelte-rdmg51):hover {opacity:1;} + + /*-- --------------------------------------------------- --*/ + /*-- Media Queries --*/ + /*-- --------------------------------------------------- --*/ + @media screen and (max-width: 1280px) {.footer__grid.svelte-rdmg51 {margin:0 4rem 0 4rem;max-width:1152px;} + } + + @media screen and (max-width: 1024px) {.footer__grid.svelte-rdmg51 {margin:0 3.25rem 0 3.25rem;max-width:920px;} + } + + @media screen and (max-width: 640px) {.footer__grid.svelte-rdmg51 {margin:0 2rem 0 2rem;max-width:576px; + + /* switch to single column */grid-template-columns:1fr; + + /* stack everything */grid-template-rows:auto; + + /* no need for column gap in 1-col */column-gap:0;row-gap:1rem; + + /* put “right column” under “left column” */grid-template-areas:"left-a" + "left-b" + "left-c" + "right-a" + "right-b" + "full";}.footer__brand--hidden-reach.svelte-rdmg51 {margin-top:2rem;} + + /* right-c is empty; keep it from reserving space */.footer__right-c.svelte-rdmg51 {display:none;} + } + + @media screen and (max-width: 320px) {.footer__grid.svelte-rdmg51 {margin:0 20px 0 20px;} + }`};function Vl(n,e){v1(e,!0),cr(n,o9);let t=E(e,"textColor",7,"#fff"),r=E(e,"backgroundColor",7,"#242424");var i={get textColor(){return t()},set textColor(c="#fff"){t(c),k()},get backgroundColor(){return r()},set backgroundColor(c="#242424"){r(c),k()}},o=n9(),s=Y(o),a=pe(Y(s),12),l=Y(a),f=Y(l),u=Y(f);return q(f),Pr(2),q(l),q(a),q(s),q(o),tt(c=>{st(o,`--footer-bg: ${r()}; --footer-text: ${t()};`),Qt(u,`Copyright © ${c??""} + Center for Strategic & International Studies. All rights reserved.`)},[()=>new Date().getFullYear()]),Ge(n,o),C1(i)}customElements.define("csis-hidden-reach-footer",P1(Vl,{textColor:{attribute:"text-color",type:"String"},backgroundColor:{attribute:"background-color",type:"String"}},[],[],!0));const s9=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"}));var a9=Qe('
');const l9={hash:"svelte-j7oa3d",code:`:host {display:block;width:100%;height:100%;}.link-image {border-bottom:none;}.img-magnifier-container {position:relative;width:100%;height:100%;}.img-magnifier-container img {display:block;max-width:100%;width:100%;}.img-magnifier-glass {position:absolute;border:3px solid var(--magnifier-border-color);border-radius:50%;cursor:none; + /*Set the size of the magnifier glass:*/width:150px;height:150px;z-index:99999;}`};function zl(n,e){v1(e,!0),cr(n,l9);let t=E(e,"bgImage",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1729626172/dev-team/smfeogcut8mzuv4rxge3.png"),r=E(e,"bgImageAlt",7,"Saint Seiya"),i=E(e,"magnifierZoom",7,2),o=E(e,"magnifierBorderColor",7,"#000"),s,a=()=>{};const l=i();Vr(()=>{if(!s)return;const h=()=>{if(!s)return;const d=document.createElement("div");d.className="img-magnifier-glass",s.parentElement.insertBefore(d,s),d.style.backgroundImage=`url('${s.src}')`,d.style.backgroundRepeat="no-repeat",d.style.backgroundSize=s.width*l+"px "+s.height*l+"px";const p=3,g=d.offsetWidth/2,m=d.offsetHeight/2;function b(C){C=C||window.event;const S=s.getBoundingClientRect();let x=C.pageX-S.left,v=C.pageY-S.top;return x=x-window.pageXOffset,v=v-window.pageYOffset,{x,y:v}}function w(C){C.preventDefault();const S=b(C);let x=S.x,v=S.y;x>s.width-g/l&&(x=s.width-g/l),xs.height-m/l&&(v=s.height-m/l),v{d.removeEventListener("mousemove",w),s.removeEventListener("mousemove",w),d.removeEventListener("touchmove",w),s.removeEventListener("touchmove",w),d.remove()}};s.complete?h():s.addEventListener("load",h,{once:!0})}),Io(()=>{a()});var f={get bgImage(){return t()},set bgImage(h="https://res.cloudinary.com/csisideaslab/image/upload/v1729626172/dev-team/smfeogcut8mzuv4rxge3.png"){t(h),k()},get bgImageAlt(){return r()},set bgImageAlt(h="Saint Seiya"){r(h),k()},get magnifierZoom(){return i()},set magnifierZoom(h=2){i(h),k()},get magnifierBorderColor(){return o()},set magnifierBorderColor(h="#000"){o(h),k()}},u=a9(),c=Y(u);return K1(c,h=>s=h,()=>s),q(u),tt(()=>{st(u,`--magnifier-border-color: ${o()};`),he(c,"src",t()),he(c,"alt",r())}),Ge(n,u),C1(f)}customElements.define("csis-magnifier",P1(zl,{bgImage:{attribute:"background-image",type:"String"},bgImageAlt:{attribute:"background-image-alt",type:"String"},magnifierZoom:{attribute:"magnifier-zoom",type:"Number"},magnifierBorderColor:{attribute:"magnifier-border-color",type:"String"}},[],[],!0));const f9=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"}));X5();function zr(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Bl(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var O1={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},rn={duration:.5,overwrite:!1,delay:0},Qs,$t,vt,Q1=1e8,at=1/Q1,Js=Math.PI*2,u9=Js/4,c9=0,Nl=Math.sqrt,d9=Math.cos,h9=Math.sin,zt=function(e){return typeof e=="string"},St=function(e){return typeof e=="function"},Br=function(e){return typeof e=="number"},e2=function(e){return typeof e>"u"},vr=function(e){return typeof e=="object"},w1=function(e){return e!==!1},t2=function(){return typeof window<"u"},No=function(e){return St(e)||zt(e)},Zl=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Jt=Array.isArray,g9=/random\([^)]+\)/g,p9=/,\s*/g,ql=/(?:-?\.?\d|\.)+/gi,Ul=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,nn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,r2=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Yl=/[+-]=-?[.\d]+/,m9=/[^,'"\[\]\s]+/gi,_9=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,yt,Cr,i2,n2,D1={},Zo={},Gl,Wl=function(e){return(Zo=sn(e,D1))&&S1},o2=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},In=function(e,t){return!t&&console.warn(e)},$l=function(e,t){return e&&(D1[e]=t)&&Zo&&(Zo[e]=t)||D1},Vn=function(){return 0},v9={suppressEvents:!0,isStart:!0,kill:!1},qo={suppressEvents:!0,kill:!1},C9={suppressEvents:!0},s2={},ei=[],a2={},Xl,H1={},l2={},jl=30,Uo=[],f2="",u2=function(e){var t=e[0],r,i;if(vr(t)||St(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=Uo.length;i--&&!Uo[i].targetTest(t););r=Uo[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new S0(e[i],r)))||e.splice(i,1);return e},Mi=function(e){return e._gsap||u2(er(e))[0]._gsap},Kl=function(e,t,r){return(r=e[t])&&St(r)?e[t]():e2(r)&&e.getAttribute&&e.getAttribute(t)||r},x1=function(e,t){return(e=e.split(",")).forEach(t)||e},Mt=function(e){return Math.round(e*1e5)/1e5||0},wt=function(e){return Math.round(e*1e7)/1e7||0},on=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},b9=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++ia;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},Wo=function(e,t,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var o=t._prev,s=t._next;o?o._next=s:e[r]===t&&(e[r]=s),s?s._prev=o:e[i]===t&&(e[i]=o),t._next=t._prev=t.parent=null},ti=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ei=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},x9=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},d2=function(e,t,r,i){return e._startAt&&($t?e._startAt.revert(qo):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},L9=function n(e){return!e||e._ts&&n(e.parent)},i0=function(e){return e._repeat?an(e._tTime,e=e.duration()+e._rDelay)*e:0},an=function(e,t){var r=Math.floor(e=wt(e/t));return e&&r===e?r-1:r},$o=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Xo=function(e){return e._end=wt(e._start+(e._tDur/Math.abs(e._ts||e._rts||at)||0))},jo=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=wt(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Xo(e),r._dirty||Ei(r,e)),e},n0=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._startat)&&t.render(r,!0)),Ei(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-at}},br=function(e,t,r,i){return t.parent&&ti(t),t._start=wt((Br(r)?r:r||e!==yt?J1(e,r,t):e._time)+t._delay),t._end=wt(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),r0(e,t,"_first","_last",e._sort?"_start":0),h2(t)||(e._recent=t),i||n0(e,t),e._ts<0&&jo(e,e._tTime),e},o0=function(e,t){return(D1.ScrollTrigger||o2("scrollTrigger",t))&&D1.ScrollTrigger.create(t,e)},s0=function(e,t,r,i,o){if(w2(e,t,o),!e._initted)return 1;if(!r&&e._pt&&!$t&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Xl!==V1.frame)return ei.push(e),e._lazy=[o,i],1},S9=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},h2=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},T9=function(e,t,r,i){var o=e.ratio,s=t<0||!t&&(!e._start&&S9(e)&&!(!e._initted&&h2(e))||(e._ts<0||e._dp._ts<0)&&!h2(e))?0:1,a=e._rDelay,l=0,f,u,c;if(a&&e._repeat&&(l=Nn(0,e._tDur,t),u=an(l,a),e._yoyo&&u&1&&(s=1-s),u!==an(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||$t||i||e._zTime===at||!t&&e._zTime){if(!e._initted&&s0(e,t,i,r,l))return;for(c=e._zTime,e._zTime=t||(r?at:0),r||(r=t&&!c),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,f=e._pt;f;)f.r(s,f.d),f=f._next;t<0&&d2(e,t,r,!0),e._onUpdate&&!r&&I1(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&I1(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&ti(e,1),!r&&!$t&&(I1(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},k9=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i&&jo(e,e._tTime=e._tDur*a),e.parent&&Xo(e),r||Ei(e.parent,e),e},a0=function(e){return e instanceof l1?Ei(e):ln(e,e._dur)},M9={_start:0,endTime:Vn,totalDuration:Vn},J1=function n(e,t,r){var i=e.labels,o=e._recent||M9,s=e.duration()>=Q1?o.endTime(!1):e._dur,a,l,f;return zt(t)&&(isNaN(t)||t in i)?(l=t.charAt(0),f=t.substr(-1)==="%",a=t.indexOf("="),l==="<"||l===">"?(a>=0&&(t=t.replace(/=/,"")),(l==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(t.substr(1))||0)*(f?(a<0?o:r).totalDuration()/100:1)):a<0?(t in i||(i[t]=s),i[t]):(l=parseFloat(t.charAt(a-1)+t.substr(a+1)),f&&r&&(l=l/100*(Jt(r)?r[0]:r).totalDuration()),a>1?n(e,t.substr(0,a-1),r)+l:s+l)):t==null?s:+t},Bn=function(e,t,r){var i=Br(t[1]),o=(i?2:1)+(e<2?0:1),s=t[o],a,l;if(i&&(s.duration=t[1]),s.parent=r,e){for(a=s,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=w1(l.vars.inherit)&&l.parent;s.immediateRender=w1(a.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new At(t[0],s,t[o+1])},ri=function(e,t){return e||e===0?t(e):t},Nn=function(e,t,r){return rt?t:r},e1=function(e,t){return!zt(e)||!(t=_9.exec(e))?"":t[1]},E9=function(e,t,r){return ri(r,function(i){return Nn(e,t,i)})},g2=[].slice,l0=function(e,t){return e&&vr(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&vr(e[0]))&&!e.nodeType&&e!==Cr},A9=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return zt(i)&&!t||l0(i,1)?(o=r).push.apply(o,er(i)):r.push(i)})||r},er=function(e,t,r){return vt&&!t&&vt.selector?vt.selector(e):zt(e)&&!r&&(i2||!un())?g2.call((t||n2).querySelectorAll(e),0):Jt(e)?A9(e,r):l0(e)?g2.call(e,0):e?[e]:[]},p2=function(e){return e=er(e)[0]||In("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return er(t,r.querySelectorAll?r:r===e?In("Invalid scope")||n2.createElement("div"):e)}},f0=function(e){return e.sort(function(){return .5-Math.random()})},u0=function(e){if(St(e))return e;var t=vr(e)?e:{each:e},r=Ai(t.ease),i=t.from||0,o=parseFloat(t.base)||0,s={},a=i>0&&i<1,l=isNaN(i)||a,f=t.axis,u=i,c=i;return zt(i)?u=c={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],c=i[1]),function(h,d,p){var g=(p||t).length,m=s[g],b,w,T,C,S,x,v,D,P;if(!m){if(P=t.grid==="auto"?0:(t.grid||[1,Q1])[1],!P){for(v=-Q1;v<(v=p[P++].getBoundingClientRect().left)&&Pv&&(v=S),Sg?g-1:f?f==="y"?g/P:P:Math.max(P,g/P))||0)*(i==="edges"?-1:1),m.b=g<0?o-g:o,m.u=e1(t.amount||t.each)||0,r=r&&g<0?w0(r):r}return g=(m[h]-m.min)/m.max||0,wt(m.b+(r?r(g):g)*m.v)+m.u}},m2=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=wt(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(Br(r)?0:e1(r))}},c0=function(e,t){var r=Jt(e),i,o;return!r&&vr(e)&&(i=r=e.radius||Q1,e.values?(e=er(e.values),(o=!Br(e[0]))&&(i*=i)):e=m2(e.increment)),ri(t,r?St(e)?function(s){return o=e(s),Math.abs(o-s)<=i?o:s}:function(s){for(var a=parseFloat(o?s.x:s),l=parseFloat(o?s.y:0),f=Q1,u=0,c=e.length,h,d;c--;)o?(h=e[c].x-a,d=e[c].y-l,h=h*h+d*d):h=Math.abs(e[c]-a),hi?o-s:s)})},Zn=function(e){return e.replace(g9,function(t){var r=t.indexOf("[")+1,i=t.substring(r||7,r?t.indexOf("]"):t.length-1).split(p9);return d0(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},g0=function(e,t,r,i,o){var s=t-e,a=i-r;return ri(o,function(l){return r+((l-e)/s*a||0)})},F9=function n(e,t,r,i){var o=isNaN(e+t)?0:function(d){return(1-d)*e+d*t};if(!o){var s=zt(e),a={},l,f,u,c,h;if(r===!0&&(i=1)&&(r=null),s)e={p:e},t={p:t};else if(Jt(e)&&!Jt(t)){for(u=[],c=e.length,h=c-2,f=1;f(a=Math.abs(a))&&(l=s,o=a);return l},I1=function(e,t,r){var i=e.vars,o=i[t],s=vt,a=e._ctx,l,f,u;if(o)return l=i[t+"Params"],f=i.callbackScope||e,r&&ei.length&&Yo(),a&&(vt=a),u=l?o.apply(f,l):o.call(f),vt=s,u},qn=function(e){return ti(e),e.scrollTrigger&&e.scrollTrigger.kill(!!$t),e.progress()<1&&I1(e,"onInterrupt"),e},fn,m0=[],_0=function(e){if(e)if(e=!e.name&&e.default||e,t2()||e.headless){var t=e.name,r=St(e),i=t&&!r&&e.init?function(){this._props=[]}:e,o={init:Vn,render:S2,add:b2,kill:Q9,modifier:K9,rawVars:0},s={targetTest:0,get:0,getSetter:L2,aliases:{},register:0};if(un(),e!==i){if(H1[t])return;F1(i,F1(Go(e,o),s)),sn(i.prototype,sn(o,Go(e,s))),H1[i.prop=t]=i,e.targetTest&&(Uo.push(i),s2[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}$l(t,i),e.register&&e.register(S1,i,L1)}else m0.push(e)},lt=255,Un={aqua:[0,lt,lt],lime:[0,lt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,lt],navy:[0,0,128],white:[lt,lt,lt],olive:[128,128,0],yellow:[lt,lt,0],orange:[lt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[lt,0,0],pink:[lt,192,203],cyan:[0,lt,lt],transparent:[lt,lt,lt,0]},_2=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*lt+.5|0},v0=function(e,t,r){var i=e?Br(e)?[e>>16,e>>8<,e<]:0:Un.black,o,s,a,l,f,u,c,h,d,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Un[e])i=Un[e];else if(e.charAt(0)==="#"){if(e.length<6&&(o=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+o+o+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8<,i<,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8<,e<]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(ql),!t)l=+i[0]%360/360,f=+i[1]/100,u=+i[2]/100,s=u<=.5?u*(f+1):u+f-u*f,o=u*2-s,i.length>3&&(i[3]*=1),i[0]=_2(l+1/3,o,s),i[1]=_2(l,o,s),i[2]=_2(l-1/3,o,s);else if(~e.indexOf("="))return i=e.match(Ul),r&&i.length<4&&(i[3]=1),i}else i=e.match(ql)||Un.transparent;i=i.map(Number)}return t&&!p&&(o=i[0]/lt,s=i[1]/lt,a=i[2]/lt,c=Math.max(o,s,a),h=Math.min(o,s,a),u=(c+h)/2,c===h?l=f=0:(d=c-h,f=u>.5?d/(2-c-h):d/(c+h),l=c===o?(s-a)/d+(se||b<0)&&(r+=b-t),i+=b,S=i-r,T=S-s,(T>0||w)&&(x=++c.frame,h=S-c.time*1e3,c.time=S=S/1e3,s+=T+(T>=o?4:o-T),C=1),w||(l=f(g)),C)for(d=0;d=b&&d--},_listeners:a},c})(),un=function(){return!Yn&&V1.wake()},He={},V9=/^[\d.\-M][\d.\-,\s]/,z9=/["']/g,B9=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),i=r[0],o=1,s=r.length,a,l,f;o1&&r.config?r.config.apply(null,~e.indexOf("{")?[B9(t[1])]:N9(e).split(",").map(Jl)):He._CE&&V9.test(e)?He._CE("",e):r},w0=function(e){return function(t){return 1-e(1-t)}},x0=function n(e,t){for(var r=e._first,i;r;)r instanceof l1?n(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?n(r.timeline,t):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=t)),r=r._next},Ai=function(e,t){return e&&(St(e)?e:He[e]||Z9(e))||t},Ri=function(e,t,r,i){r===void 0&&(r=function(l){return 1-t(1-l)}),i===void 0&&(i=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var o={easeIn:t,easeOut:r,easeInOut:i},s;return x1(e,function(a){He[a]=D1[a]=o,He[s=a.toLowerCase()]=r;for(var l in o)He[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=He[a+"."+l]=o[l]}),o},L0=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},v2=function n(e,t,r){var i=t>=1?t:1,o=(r||(e?.3:.45))/(t<1?t:1),s=o/Js*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*h9((u-s)*o)+1},l=e==="out"?a:e==="in"?function(f){return 1-a(1-f)}:L0(a);return o=Js/o,l.config=function(f,u){return n(e,f,u)},l},C2=function n(e,t){t===void 0&&(t=1.70158);var r=function(s){return s?--s*s*((t+1)*s+t)+1:0},i=e==="out"?r:e==="in"?function(o){return 1-r(1-o)}:L0(r);return i.config=function(o){return n(e,o)},i};x1("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;Ri(n+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),He.Linear.easeNone=He.none=He.Linear.easeIn,Ri("Elastic",v2("in"),v2("out"),v2()),(function(n,e){var t=1/e,r=2*t,i=2.5*t,o=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,ln(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(un(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(jo(this,r),!o._dp||o.parent||n0(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r0||!this._tDur&&!r)&&br(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===at||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Ql(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+i0(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+i0(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,i):this._repeat?an(this._tTime,o)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-at?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?$o(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-at?0:this._rts,this.totalTime(Nn(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),Xo(this),x9(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(un(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==at&&(this._tTime-=at)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=wt(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&br(i,this,this._start-this._delay),this}return this._start},e.endTime=function(r){return this._start+(w1(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$o(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=C9);var i=$t;return $t=r,c2(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),$t=i,this},e.globalTime=function(r){for(var i=this,o=arguments.length?r:i.rawTime();i;)o=i._start+o/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,a0(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,a0(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(J1(this,r),w1(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,w1(i)),this._dur||(this._zTime=-at),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-at:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-at,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=i&&o1?(i?(s[r]=i,o&&(s[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this,o=i._prom;return new Promise(function(s){var a=St(r)?r:e0,l=function(){var u=i.then;i.then=null,o&&o(),St(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=u),s(a),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){qn(this)},n})();F1(Gn.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:-at,_prom:0,_ps:!1,_rts:1});var l1=(function(n){Bl(e,n);function e(r,i){var o;return r===void 0&&(r={}),o=n.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=w1(r.sortChildren),yt&&br(r.parent||yt,zr(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&o0(zr(o),r.scrollTrigger),o}var t=e.prototype;return t.to=function(i,o,s){return Bn(0,arguments,this),this},t.from=function(i,o,s){return Bn(1,arguments,this),this},t.fromTo=function(i,o,s,a){return Bn(2,arguments,this),this},t.set=function(i,o,s){return o.duration=0,o.parent=this,zn(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new At(i,o,J1(this,s),1),this},t.call=function(i,o,s){return br(this,At.delayedCall(0,i,o),s)},t.staggerTo=function(i,o,s,a,l,f,u){return s.duration=o,s.stagger=s.stagger||a,s.onComplete=f,s.onCompleteParams=u,s.parent=this,new At(i,s,J1(this,l)),this},t.staggerFrom=function(i,o,s,a,l,f,u){return s.runBackwards=1,zn(s).immediateRender=w1(s.immediateRender),this.staggerTo(i,o,s,a,l,f,u)},t.staggerFromTo=function(i,o,s,a,l,f,u,c){return a.startAt=s,zn(a).immediateRender=w1(a.immediateRender),this.staggerTo(i,o,a,l,f,u,c)},t.render=function(i,o,s){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,f=this._dur,u=i<=0?0:wt(i),c=this._zTime<0!=i<0&&(this._initted||!f),h,d,p,g,m,b,w,T,C,S,x,v;if(this!==yt&&u>l&&i>=0&&(u=l),u!==this._tTime||s||c){if(a!==this._time&&f&&(u+=this._time-a,i+=this._time-a),h=u,C=this._start,T=this._ts,b=!T,c&&(f||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(x=this._yoyo,m=f+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,o,s);if(h=wt(u%m),u===l?(g=this._repeat,h=f):(S=wt(u/m),g=~~S,g&&g===S&&(h=f,g--),h>f&&(h=f)),S=an(this._tTime,m),!a&&this._tTime&&S!==g&&this._tTime-S*m-this._dur<=0&&(S=g),x&&g&1&&(h=f-h,v=1),g!==S&&!this._lock){var D=x&&S&1,P=D===(x&&g&1);if(g=a&&i>=0)for(d=this._first;d;){if(p=d._next,(d._act||h>=d._start)&&d._ts&&w!==d){if(d.parent!==this)return this.render(i,o,s);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,o,s),h!==this._time||!this._ts&&!b){w=0,p&&(u+=this._zTime=-at);break}}d=p}else{d=this._last;for(var R=i<0?i:h;d;){if(p=d._prev,(d._act||R<=d._end)&&d._ts&&w!==d){if(d.parent!==this)return this.render(i,o,s);if(d.render(d._ts>0?(R-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(R-d._start)*d._ts,o,s||$t&&c2(d)),h!==this._time||!this._ts&&!b){w=0,p&&(u+=this._zTime=R?-at:at);break}}d=p}}if(w&&!o&&(this.pause(),w.render(h>=a?0:-at)._zTime=h>=a?1:-1,this._ts))return this._start=C,Xo(this),this.render(i,o,s);this._onUpdate&&!o&&I1(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(C===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((i||!f)&&(u===l&&this._ts>0||!u&&this._ts<0)&&ti(this,1),!o&&!(i<0&&!a)&&(u||a||!l)&&(I1(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(i,o){var s=this;if(Br(o)||(o=J1(this,o,i)),!(i instanceof Gn)){if(Jt(i))return i.forEach(function(a){return s.add(a,o)}),this;if(zt(i))return this.addLabel(i,o);if(St(i))i=At.delayedCall(0,i);else return this}return this!==i?br(this,i,o):this},t.getChildren=function(i,o,s,a){i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),a===void 0&&(a=-Q1);for(var l=[],f=this._first;f;)f._start>=a&&(f instanceof At?o&&l.push(f):(s&&l.push(f),i&&l.push.apply(l,f.getChildren(!0,o,s)))),f=f._next;return l},t.getById=function(i){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===i)return o[s]},t.remove=function(i){return zt(i)?this.removeLabel(i):St(i)?this.killTweensOf(i):(i.parent===this&&Wo(this,i),i===this._recent&&(this._recent=this._last),Ei(this))},t.totalTime=function(i,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=wt(V1.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),n.prototype.totalTime.call(this,i,o),this._forcing=0,this):this._tTime},t.addLabel=function(i,o){return this.labels[i]=J1(this,o),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,o,s){var a=At.delayedCall(0,o||Vn,s);return a.data="isPause",this._hasPause=1,br(this,a,J1(this,i))},t.removePause=function(i){var o=this._first;for(i=J1(this,i);o;)o._start===i&&o.data==="isPause"&&ti(o),o=o._next},t.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),l=a.length;l--;)ni!==a[l]&&a[l].kill(i,o);return this},t.getTweensOf=function(i,o){for(var s=[],a=er(i),l=this._first,f=Br(o),u;l;)l instanceof At?b9(l._targets,a)&&(f?(!ni||l._initted&&l._ts)&&l.globalTime(0)<=o&&l.globalTime(l.totalDuration())>o:!o||l.isActive())&&s.push(l):(u=l.getTweensOf(a,o)).length&&s.push.apply(s,u),l=l._next;return s},t.tweenTo=function(i,o){o=o||{};var s=this,a=J1(s,i),l=o,f=l.startAt,u=l.onStart,c=l.onStartParams,h=l.immediateRender,d,p=At.to(s,F1({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(f&&"time"in f?f.time:s._time))/s.timeScale())||at,onStart:function(){if(s.pause(),!d){var m=o.duration||Math.abs((a-(f&&"time"in f?f.time:s._time))/s.timeScale());p._dur!==m&&ln(p,m,0,1).render(p._time,!0,!0),d=1}u&&u.apply(p,c||[])}},o));return h?p.render(0):p},t.tweenFromTo=function(i,o,s){return this.tweenTo(o,F1({startAt:{time:J1(this,i)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),p0(this,J1(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),p0(this,J1(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+at)},t.shiftChildren=function(i,o,s){s===void 0&&(s=0);var a=this._first,l=this.labels,f;for(i=wt(i);a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(o)for(f in l)l[f]>=s&&(l[f]+=i);return Ei(this)},t.invalidate=function(i){var o=this._first;for(this._lock=0;o;)o.invalidate(i),o=o._next;return n.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Ei(this)},t.totalDuration=function(i){var o=0,s=this,a=s._last,l=Q1,f,u,c;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(c=s.parent;a;)f=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&s._sort&&a._ts&&!s._lock?(s._lock=1,br(s,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(o-=u,(!c&&!s._dp||c&&c.smoothChildTiming)&&(s._start+=wt(u/s._ts),s._time-=u,s._tTime-=u),s.shiftChildren(-u,!1,-1/0),l=0),a._end>o&&a._ts&&(o=a._end),a=f;ln(s,s===yt&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(yt._ts&&(Ql(yt,$o(i,yt)),Xl=V1.frame),V1.frame>=jl){jl+=O1.autoSleep||120;var o=yt._first;if((!o||!o._ts)&&O1.autoSleep&&V1._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||V1.sleep()}}},e})(Gn);F1(l1.prototype,{_lock:0,_hasPause:0,_forcing:0});var q9=function(e,t,r,i,o,s,a){var l=new L1(this._pt,e,t,0,1,R0,null,o),f=0,u=0,c,h,d,p,g,m,b,w;for(l.b=r,l.e=i,r+="",i+="",(b=~i.indexOf("random("))&&(i=Zn(i)),s&&(w=[r,i],s(w,e,t),r=w[0],i=w[1]),h=r.match(r2)||[];c=r2.exec(i);)p=c[0],g=i.substring(f,c.index),d?d=(d+1)%5:g.substr(-5)==="rgba("&&(d=1),p!==h[u++]&&(m=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:m,c:p.charAt(1)==="="?on(m,p)-m:parseFloat(p)-m,m:d&&d<4?Math.round:0},f=r2.lastIndex);return l.c=f")}),C.duration();else{x={};for(D in p)D==="ease"||D==="easeEach"||W9(D,p[D],x,p.easeEach);for(D in x)for(J=x[D].sort(function(ie,O){return ie.t-O.t}),I=0,S=0;Sl-at&&!u?l:if&&(h=f)),b=this._yoyo&&p&1,b&&(C=this._yEase,h=f-h),m=an(this._tTime,g),h===a&&!s&&this._initted&&p===m)return this._tTime=c,this;p!==m&&(T&&this._yEase&&x0(T,b),this.vars.repeatRefresh&&!b&&!this._lock&&h!==g&&this._initted&&(this._lock=s=1,this.render(wt(g*p),!0).invalidate()._lock=0))}if(!this._initted){if(s0(this,u?i:h,s,o,c))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(f!==this._dur)return this.render(i,o,s)}if(this._tTime=c,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(C||this._ease)(h/f),this._from&&(this.ratio=w=1-w),!a&&c&&!o&&!m&&(I1(this,"onStart"),this._tTime!==c))return this;for(d=this._pt;d;)d.r(w,d.d),d=d._next;T&&T.render(i<0?i:T._dur*T._ease(h/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(u&&d2(this,i,o,s),I1(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!o&&this.parent&&I1(this,"onRepeat"),(c===this._tDur||!c)&&this._tTime===c&&(u&&!this._onUpdate&&d2(this,i,!0,!0),(i||!f)&&(c===this._tDur&&this._ts>0||!c&&this._ts<0)&&ti(this,1),!o&&!(u&&!a)&&(c||a||b)&&(I1(this,c===l?"onComplete":"onReverseComplete",!0),this._prom&&!(c0)&&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),n.prototype.invalidate.call(this,i)},t.resetTo=function(i,o,s,a,l){Yn||V1.wake(),this._ts||this.play();var f=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||w2(this,f),u=this._ease(f/this._dur),Y9(this,i,o,s,a,u,f,l)?this.resetTo(i,o,s,a,1):(jo(this,0),this.parent||r0(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,o){if(o===void 0&&(o="all"),!i&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?qn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!$t),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,ni&&ni.vars.overwrite!==!0)._first||qn(this),this.parent&&s!==this.timeline.totalDuration()&&ln(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,l=i?er(i):a,f=this._ptLookup,u=this._pt,c,h,d,p,g,m,b;if((!o||o==="all")&&w9(a,l))return o==="all"&&(this._pt=0),qn(this);for(c=this._op=this._op||[],o!=="all"&&(zt(o)&&(g={},x1(o,function(w){return g[w]=1}),o=g),o=G9(a,o)),b=a.length;b--;)if(~l.indexOf(a[b])){h=f[b],o==="all"?(c[b]=o,p=h,d={}):(d=c[b]=c[b]||{},p=o);for(g in p)m=h&&h[g],m&&((!("kill"in m.d)||m.d.kill(g)===!0)&&Wo(this,m,"_pt"),delete h[g]),d!=="all"&&(d[g]=1)}return this._initted&&!this._pt&&u&&qn(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return Bn(1,arguments)},e.delayedCall=function(i,o,s,a){return new e(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,o,s){return Bn(2,arguments)},e.set=function(i,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new e(i,o)},e.killTweensOf=function(i,o,s){return yt.killTweensOf(i,o,s)},e})(Gn);F1(At.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),x1("staggerTo,staggerFrom,staggerFromTo",function(n){At[n]=function(){var e=new l1,t=g2.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var x2=function(e,t,r){return e[t]=r},E0=function(e,t,r){return e[t](r)},$9=function(e,t,r,i){return e[t](i.fp,r)},X9=function(e,t,r){return e.setAttribute(t,r)},L2=function(e,t){return St(e[t])?E0:e2(e[t])&&e.setAttribute?X9:x2},A0=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},j9=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},R0=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},S2=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},K9=function(e,t,r,i){for(var o=this._pt,s;o;)s=o._next,o.p===i&&o.modifier(e,t,r),o=s},Q9=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?Wo(this,t,"_pt"):t.dep||(r=1),t=i;return!r},J9=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},P0=function(e){for(var t=e._pt,r,i,o,s;t;){for(r=t._next,i=o;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:s)?t._prev._next=t:o=t,(t._next=i)?i._prev=t:s=t,t=r}e._pt=o},L1=(function(){function n(t,r,i,o,s,a,l,f,u){this.t=r,this.s=o,this.c=s,this.p=i,this.r=a||A0,this.d=l||this,this.set=f||x2,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(r,i,o){this.mSet=this.mSet||this.set,this.set=J9,this.m=r,this.mt=o,this.tween=i},n})();x1(f2+"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(n){return s2[n]=1}),D1.TweenMax=D1.TweenLite=At,D1.TimelineLite=D1.TimelineMax=l1,yt=new l1({sortChildren:!1,defaults:rn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O1.stringFilter=y0;var Pi=[],Ko={},e6=[],O0=0,t6=0,T2=function(e){return(Ko[e]||e6).map(function(t){return t()})},k2=function(){var e=Date.now(),t=[];e-O0>2&&(T2("matchMediaInit"),Pi.forEach(function(r){var i=r.queries,o=r.conditions,s,a,l,f;for(a in i)s=Cr.matchMedia(i[a]).matches,s&&(l=1),s!==o[a]&&(o[a]=s,f=1);f&&(r.revert(),l&&t.push(r))}),T2("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),O0=e,T2("matchMedia"))},D0=(function(){function n(t,r){this.selector=r&&p2(r),this.data=[],this._r=[],this.isReverted=!1,this.id=t6++,t&&this.add(t)}var e=n.prototype;return e.add=function(r,i,o){St(r)&&(o=i,i=r,r=St);var s=this,a=function(){var f=vt,u=s.selector,c;return f&&f!==s&&f.data.push(s),o&&(s.selector=p2(o)),vt=s,c=i.apply(s,arguments),St(c)&&s._r.push(c),vt=f,s.selector=u,s.isReverted=!1,c};return s.last=a,r===St?a(s,function(l){return s.add(null,l)}):r?s[r]=a:a},e.ignore=function(r){var i=vt;vt=null,r(this),vt=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof n?r.push.apply(r,i.getTweens()):i instanceof At&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var o=this;if(r?(function(){for(var a=o.getTweens(),l=o.data.length,f;l--;)f=o.data[l],f.data==="isFlip"&&(f.revert(),f.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,c){return c.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=o.data.length;l--;)f=o.data[l],f instanceof l1?f.data!=="nested"&&(f.scrollTrigger&&f.scrollTrigger.revert(),f.kill()):!(f instanceof At)&&f.revert&&f.revert(r);o._r.forEach(function(u){return u(r,o)}),o.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=Pi.length;s--;)Pi[s].id===this.id&&Pi.splice(s,1)},e.revert=function(r){this.kill(r||{})},n})(),r6=(function(){function n(t){this.contexts=[],this.scope=t,vt&&vt.data.push(this)}var e=n.prototype;return e.add=function(r,i,o){vr(r)||(r={matches:r});var s=new D0(0,o||this.scope),a=s.conditions={},l,f,u;vt&&!s.selector&&(s.selector=vt.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(f in r)f==="all"?u=1:(l=Cr.matchMedia(r[f]),l&&(Pi.indexOf(s)<0&&Pi.push(s),(a[f]=l.matches)&&(u=1),l.addListener?l.addListener(k2):l.addEventListener("change",k2)));return u&&i(s,function(c){return s.add(null,c)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},n})(),Qo={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r1){var i=e.map(function(u){return S1.quickSetter(u,t,r)}),o=i.length;return function(u){for(var c=o;c--;)i[c](u)}}e=e[0]||{};var s=H1[t],a=Mi(e),l=a.harness&&(a.harness.aliases||{})[t]||t,f=s?function(u){var c=new s;fn._pt=0,c.init(e,r?u+r:u,fn,0,[e]),c.render(1,c),fn._pt&&S2(1,fn)}:a.set(e,l);return s?f:function(u){return f(e,l,r?u+r:u,a,1)}},quickTo:function(e,t,r){var i,o=S1.to(e,F1((i={},i[t]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(l,f,u){return o.resetTo(t,l,f,u)};return s.tween=o,s},isTweening:function(e){return yt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ai(e.ease,rn.ease)),t0(rn,e||{})},config:function(e){return t0(O1,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,o=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!H1[a]&&!D1[a]&&In(t+" effect requires "+a+" plugin.")}),l2[t]=function(a,l,f){return r(er(a),F1(l||{},o),f)},s&&(l1.prototype[t]=function(a,l,f){return this.add(l2[t](a,vr(l)?l:(f=l)&&{},this),f)})},registerEase:function(e,t){He[e]=Ai(t)},parseEase:function(e,t){return arguments.length?Ai(e,t):He},getById:function(e){return yt.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new l1(e),i,o;for(r.smoothChildTiming=w1(e.smoothChildTiming),yt.remove(r),r._dp=0,r._time=r._tTime=yt._time,i=yt._first;i;)o=i._next,(t||!(!i._dur&&i instanceof At&&i.vars.onComplete===i._targets[0]))&&br(r,i,i._start-i._delay),i=o;return br(yt,r,0),r},context:function(e,t){return e?new D0(e,t):vt},matchMedia:function(e){return new r6(e)},matchMediaRefresh:function(){return Pi.forEach(function(e){var t=e.conditions,r,i;for(i in t)t[i]&&(t[i]=!1,r=1);r&&e.revert()})||k2()},addEventListener:function(e,t){var r=Ko[e]||(Ko[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=Ko[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:D9,wrapYoyo:H9,distribute:u0,random:d0,snap:c0,normalize:O9,getUnit:e1,clamp:E9,splitColor:v0,toArray:er,selector:p2,mapRange:g0,pipe:R9,unitize:P9,interpolate:F9,shuffle:f0},install:Wl,effects:l2,ticker:V1,updateRoot:l1.updateRoot,plugins:H1,globalTimeline:yt,core:{PropTween:L1,globals:$l,Tween:At,Timeline:l1,Animation:Gn,getCache:Mi,_removeLinkedListItem:Wo,reverting:function(){return $t},context:function(e){return e&&vt&&(vt.data.push(e),e._ctx=vt),vt},suppressOverwrites:function(e){return Qs=e}}};x1("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return Qo[n]=At[n]}),V1.add(l1.updateRoot),fn=Qo.to({},{duration:0});var i6=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},n6=function(e,t){var r=e._targets,i,o,s;for(i in t)for(o=r.length;o--;)s=e._ptLookup[o][i],s&&(s=s.d)&&(s._pt&&(s=i6(s,i)),s&&s.modifier&&s.modifier(t[i],e,r[o],i))},M2=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var l,f;if(zt(o)&&(l={},x1(o,function(u){return l[u]=1}),o=l),t){l={};for(f in o)l[f]=t(o[f]);o=l}n6(a,o)}}}},S1=Qo.registerPlugin({name:"attr",init:function(e,t,r,i,o){var s,a,l;this.tween=r;for(s in t)l=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(l||0)+"",t[s],i,o,0,0,s),a.op=s,a.b=l,this._props.push(s)},render:function(e,t){for(var r=t._pt;r;)$t?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},M2("roundProps",m2),M2("modifiers"),M2("snap",c0))||Qo;At.version=l1.version=S1.version="3.14.2",Gl=1,t2()&&un(),He.Power0,He.Power1,He.Power2,He.Power3,He.Power4,He.Linear,He.Quad,He.Cubic,He.Quart,He.Quint,He.Strong,He.Elastic,He.Back,He.SteppedEase,He.Bounce,He.Sine,He.Expo,He.Circ;var H0,oi,cn,E2,Oi,F0,A2,o6=function(){return typeof window<"u"},Nr={},Di=180/Math.PI,dn=Math.PI/180,hn=Math.atan2,I0=1e8,R2=/([A-Z])/g,s6=/(left|right|width|margin|padding|x)/i,a6=/[\s,\(]\S/,yr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},P2=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},l6=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},f6=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},u6=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},c6=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},V0=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},z0=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},d6=function(e,t,r){return e.style[t]=r},h6=function(e,t,r){return e.style.setProperty(t,r)},g6=function(e,t,r){return e._gsap[t]=r},p6=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},m6=function(e,t,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},_6=function(e,t,r,i,o){var s=e._gsap;s[t]=r,s.renderTransform(o,s)},xt="transform",T1=xt+"Origin",v6=function n(e,t){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in Nr&&o){if(this.tfm=this.tfm||{},e!=="transform")e=yr[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Zr(i,a)}):this.tfm[e]=s.x?s[e]:Zr(i,e),e===T1&&(this.tfm.zOrigin=s.zOrigin);else return yr.transform.split(",").forEach(function(a){return n.call(r,a,t)});if(this.props.indexOf(xt)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(T1,t,"")),e=xt}(o||t)&&this.props.push(e,t,o[e])},B0=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},C6=function(){var e=this.props,t=this.target,r=t.style,i=t._gsap,o,s;for(o=0;o=0?q0[s]:"")+e},D2=function(){o6()&&window.document&&(H0=window,oi=H0.document,cn=oi.documentElement,Oi=O2("div")||{style:{}},O2("div"),xt=gn(xt),T1=xt+"Origin",Oi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Z0=!!gn("perspective"),A2=S1.core.reverting,E2=1)},U0=function(e){var t=e.ownerSVGElement,r=O2("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),cn.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),cn.removeChild(r),o},Y0=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},G0=function(e){var t,r;try{t=e.getBBox()}catch{t=U0(e),r=1}return t&&(t.width||t.height)||r||(t=U0(e)),t&&!t.width&&!t.x&&!t.y?{x:+Y0(e,["x","cx","x1"])||0,y:+Y0(e,["y","cy","y1"])||0,width:0,height:0}:t},W0=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&G0(e))},si=function(e,t){if(t){var r=e.style,i;t in Nr&&t!==T1&&(t=xt),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(R2,"-$1").toLowerCase())):r.removeAttribute(t)}},ai=function(e,t,r,i,o,s){var a=new L1(e._pt,t,r,0,1,s?z0:V0);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},$0={deg:1,rad:1,turn:1},b6={grid:1,flex:1},li=function n(e,t,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=Oi.style,l=s6.test(t),f=e.tagName.toLowerCase()==="svg",u=(f?"client":"offset")+(l?"Width":"Height"),c=100,h=i==="px",d=i==="%",p,g,m,b;if(i===s||!o||$0[i]||$0[s])return o;if(s!=="px"&&!h&&(o=n(e,t,r,"px")),b=e.getCTM&&W0(e),(d||s==="%")&&(Nr[t]||~t.indexOf("adius")))return p=b?e.getBBox()[l?"width":"height"]:e[u],Mt(d?o/p*c:o/100*p);if(a[l?"width":"height"]=c+(h?s:i),g=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!f?e:e.parentNode,b&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===oi||!g.appendChild)&&(g=oi.body),m=g._gsap,m&&d&&m.width&&l&&m.time===V1.time&&!m.uncache)return Mt(o/m.width*c);if(d&&(t==="height"||t==="width")){var w=e.style[t];e.style[t]=c+i,p=e[u],w?e.style[t]=w:si(e,t)}else(d||s==="%")&&!b6[z1(g,"display")]&&(a.position=z1(e,"position")),g===e&&(a.position="static"),g.appendChild(Oi),p=Oi[u],g.removeChild(Oi),a.position="absolute";return l&&d&&(m=Mi(g),m.time=V1.time,m.width=g[u]),Mt(h?p*o/c:p&&o?c/p*o:0)},Zr=function(e,t,r,i){var o;return E2||D2(),t in yr&&t!=="transform"&&(t=yr[t],~t.indexOf(",")&&(t=t.split(",")[0])),Nr[t]&&t!=="transform"?(o=Xn(e,i),o=t!=="transformOrigin"?o[t]:o.svg?o.origin:es(z1(e,T1))+" "+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=Jo[t]&&Jo[t](e,t,r)||z1(e,t)||Kl(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?li(e,t,o,r)+r:o},y6=function(e,t,r,i){if(!r||r==="none"){var o=gn(t,e,1),s=o&&z1(e,o,1);s&&s!==r?(t=o,r=s):t==="borderColor"&&(r=z1(e,"borderTopColor"))}var a=new L1(this._pt,e.style,t,0,1,R0),l=0,f=0,u,c,h,d,p,g,m,b,w,T,C,S;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=z1(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(g=e.style[t],e.style[t]=i,i=z1(e,t)||i,g?e.style[t]=g:si(e,t)),u=[r,i],y0(u),r=u[0],i=u[1],h=r.match(nn)||[],S=i.match(nn)||[],S.length){for(;c=nn.exec(i);)m=c[0],w=i.substring(l,c.index),p?p=(p+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(p=1),m!==(g=h[f++]||"")&&(d=parseFloat(g)||0,C=g.substr((d+"").length),m.charAt(1)==="="&&(m=on(d,m)+C),b=parseFloat(m),T=m.substr((b+"").length),l=nn.lastIndex-T.length,T||(T=T||O1.units[t]||C,l===i.length&&(i+=T,a.e+=T)),C!==T&&(d=li(e,t,g,T)||0),a._pt={_next:a._pt,p:w||f===1?w:",",s:d,c:b-d,m:p&&p<4||t==="zIndex"?Math.round:0});a.c=l-1;)a=o[f],Nr[a]&&(l=1,a=a==="transformOrigin"?T1:xt),si(r,a);l&&(si(r,xt),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Xn(r,1),s.uncache=1,B0(i)))}},Jo={clearProps:function(e,t,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new L1(e._pt,t,r,0,0,x6);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},$n=[1,0,0,1,0,0],j0={},K0=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Q0=function(e){var t=z1(e,xt);return K0(t)?$n:t.substr(7).match(Ul).map(Mt)},H2=function(e,t){var r=e._gsap||Mi(e),i=e.style,o=Q0(e),s,a,l,f;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,o=[l.a,l.b,l.c,l.d,l.e,l.f],o.join(",")==="1,0,0,1,0,0"?$n:o):(o===$n&&!e.offsetParent&&e!==cn&&!r.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(f=1,a=e.nextElementSibling,cn.appendChild(e)),o=Q0(e),l?i.display=l:si(e,"display"),f&&(a?s.insertBefore(e,a):s?s.appendChild(e):cn.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},F2=function(e,t,r,i,o,s){var a=e._gsap,l=o||H2(e,!0),f=a.xOrigin||0,u=a.yOrigin||0,c=a.xOffset||0,h=a.yOffset||0,d=l[0],p=l[1],g=l[2],m=l[3],b=l[4],w=l[5],T=t.split(" "),C=parseFloat(T[0])||0,S=parseFloat(T[1])||0,x,v,D,P;r?l!==$n&&(v=d*m-p*g)&&(D=C*(m/v)+S*(-g/v)+(g*w-m*b)/v,P=C*(-p/v)+S*(d/v)-(d*w-p*b)/v,C=D,S=P):(x=G0(e),C=x.x+(~T[0].indexOf("%")?C/100*x.width:C),S=x.y+(~(T[1]||T[0]).indexOf("%")?S/100*x.height:S)),i||i!==!1&&a.smooth?(b=C-f,w=S-u,a.xOffset=c+(b*d+w*g)-b,a.yOffset=h+(b*p+w*m)-w):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=S,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[T1]="0px 0px",s&&(ai(s,a,"xOrigin",f,C),ai(s,a,"yOrigin",u,S),ai(s,a,"xOffset",c,a.xOffset),ai(s,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+S)},Xn=function(e,t){var r=e._gsap||new S0(e);if("x"in r&&!t&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",l=getComputedStyle(e),f=z1(e,T1)||"0",u,c,h,d,p,g,m,b,w,T,C,S,x,v,D,P,R,F,I,J,U,re,ie,O,oe,B,y,ne,Fe,ve,Me,fe;return u=c=h=g=m=b=w=T=C=0,d=p=1,r.svg=!!(e.getCTM&&W0(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[xt]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[xt]!=="none"?l[xt]:"")),i.scale=i.rotate=i.translate="none"),v=H2(e,r.svg),r.svg&&(r.uncache?(oe=e.getBBox(),f=r.xOrigin-oe.x+"px "+(r.yOrigin-oe.y)+"px",O=""):O=!t&&e.getAttribute("data-svg-origin"),F2(e,O||f,!!O||r.originIsAbsolute,r.smooth!==!1,v)),S=r.xOrigin||0,x=r.yOrigin||0,v!==$n&&(F=v[0],I=v[1],J=v[2],U=v[3],u=re=v[4],c=ie=v[5],v.length===6?(d=Math.sqrt(F*F+I*I),p=Math.sqrt(U*U+J*J),g=F||I?hn(I,F)*Di:0,w=J||U?hn(J,U)*Di+g:0,w&&(p*=Math.abs(Math.cos(w*dn))),r.svg&&(u-=S-(S*F+x*J),c-=x-(S*I+x*U))):(fe=v[6],ve=v[7],y=v[8],ne=v[9],Fe=v[10],Me=v[11],u=v[12],c=v[13],h=v[14],D=hn(fe,Fe),m=D*Di,D&&(P=Math.cos(-D),R=Math.sin(-D),O=re*P+y*R,oe=ie*P+ne*R,B=fe*P+Fe*R,y=re*-R+y*P,ne=ie*-R+ne*P,Fe=fe*-R+Fe*P,Me=ve*-R+Me*P,re=O,ie=oe,fe=B),D=hn(-J,Fe),b=D*Di,D&&(P=Math.cos(-D),R=Math.sin(-D),O=F*P-y*R,oe=I*P-ne*R,B=J*P-Fe*R,Me=U*R+Me*P,F=O,I=oe,J=B),D=hn(I,F),g=D*Di,D&&(P=Math.cos(D),R=Math.sin(D),O=F*P+I*R,oe=re*P+ie*R,I=I*P-F*R,ie=ie*P-re*R,F=O,re=oe),m&&Math.abs(m)+Math.abs(g)>359.9&&(m=g=0,b=180-b),d=Mt(Math.sqrt(F*F+I*I+J*J)),p=Mt(Math.sqrt(ie*ie+fe*fe)),D=hn(re,ie),w=Math.abs(D)>2e-4?D*Di:0,C=Me?1/(Me<0?-Me:Me):0),r.svg&&(O=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!K0(z1(e,xt)),O&&e.setAttribute("transform",O))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(d*=-1,w+=g<=0?180:-180,g+=g<=0?180:-180):(p*=-1,w+=w<=0?180:-180)),t=t||r.uncache,r.x=u-((r.xPercent=u&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=c-((r.yPercent=c&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-c)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=h+s,r.scaleX=Mt(d),r.scaleY=Mt(p),r.rotation=Mt(g)+a,r.rotationX=Mt(m)+a,r.rotationY=Mt(b)+a,r.skewX=w+a,r.skewY=T+a,r.transformPerspective=C+s,(r.zOrigin=parseFloat(f.split(" ")[2])||!t&&r.zOrigin||0)&&(i[T1]=es(f)),r.xOffset=r.yOffset=0,r.force3D=O1.force3D,r.renderTransform=r.svg?S6:Z0?J0:L6,r.uncache=0,r},es=function(e){return(e=e.split(" "))[0]+" "+e[1]},I2=function(e,t,r){var i=e1(t);return Mt(parseFloat(t)+parseFloat(li(e,"x",r+"px",i)))+i},L6=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,J0(e,t)},Hi="0deg",jn="0px",Fi=") ",J0=function(e,t){var r=t||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.z,f=r.rotation,u=r.rotationY,c=r.rotationX,h=r.skewX,d=r.skewY,p=r.scaleX,g=r.scaleY,m=r.transformPerspective,b=r.force3D,w=r.target,T=r.zOrigin,C="",S=b==="auto"&&e&&e!==1||b===!0;if(T&&(c!==Hi||u!==Hi)){var x=parseFloat(u)*dn,v=Math.sin(x),D=Math.cos(x),P;x=parseFloat(c)*dn,P=Math.cos(x),s=I2(w,s,v*P*-T),a=I2(w,a,-Math.sin(x)*-T),l=I2(w,l,D*P*-T+T)}m!==jn&&(C+="perspective("+m+Fi),(i||o)&&(C+="translate("+i+"%, "+o+"%) "),(S||s!==jn||a!==jn||l!==jn)&&(C+=l!==jn||S?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+Fi),f!==Hi&&(C+="rotate("+f+Fi),u!==Hi&&(C+="rotateY("+u+Fi),c!==Hi&&(C+="rotateX("+c+Fi),(h!==Hi||d!==Hi)&&(C+="skew("+h+", "+d+Fi),(p!==1||g!==1)&&(C+="scale("+p+", "+g+Fi),w.style[xt]=C||"translate(0, 0)"},S6=function(e,t){var r=t||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.rotation,f=r.skewX,u=r.skewY,c=r.scaleX,h=r.scaleY,d=r.target,p=r.xOrigin,g=r.yOrigin,m=r.xOffset,b=r.yOffset,w=r.forceCSS,T=parseFloat(s),C=parseFloat(a),S,x,v,D,P;l=parseFloat(l),f=parseFloat(f),u=parseFloat(u),u&&(u=parseFloat(u),f+=u,l+=u),l||f?(l*=dn,f*=dn,S=Math.cos(l)*c,x=Math.sin(l)*c,v=Math.sin(l-f)*-h,D=Math.cos(l-f)*h,f&&(u*=dn,P=Math.tan(f-u),P=Math.sqrt(1+P*P),v*=P,D*=P,u&&(P=Math.tan(u),P=Math.sqrt(1+P*P),S*=P,x*=P)),S=Mt(S),x=Mt(x),v=Mt(v),D=Mt(D)):(S=c,D=h,x=v=0),(T&&!~(s+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(T=li(d,"x",s,"px"),C=li(d,"y",a,"px")),(p||g||m||b)&&(T=Mt(T+p-(p*S+g*v)+m),C=Mt(C+g-(p*x+g*D)+b)),(i||o)&&(P=d.getBBox(),T=Mt(T+i/100*P.width),C=Mt(C+o/100*P.height)),P="matrix("+S+","+x+","+v+","+D+","+T+","+C+")",d.setAttribute("transform",P),w&&(d.style[xt]=P)},T6=function(e,t,r,i,o){var s=360,a=zt(o),l=parseFloat(o)*(a&&~o.indexOf("rad")?Di:1),f=l-i,u=i+f+"deg",c,h;return a&&(c=o.split("_")[1],c==="short"&&(f%=s,f!==f%(s/2)&&(f+=f<0?s:-s)),c==="cw"&&f<0?f=(f+s*I0)%s-~~(f/s)*s:c==="ccw"&&f>0&&(f=(f-s*I0)%s-~~(f/s)*s)),e._pt=h=new L1(e._pt,t,r,i,f,l6),h.e=u,h.u="deg",e._props.push(r),h},e3=function(e,t){for(var r in t)e[r]=t[r];return e},k6=function(e,t,r){var i=e3({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,l,f,u,c,h,d,p;i.svg?(f=r.getAttribute("transform"),r.setAttribute("transform",""),s[xt]=t,a=Xn(r,1),si(r,xt),r.setAttribute("transform",f)):(f=getComputedStyle(r)[xt],s[xt]=t,a=Xn(r,1),s[xt]=f);for(l in Nr)f=i[l],u=a[l],f!==u&&o.indexOf(l)<0&&(d=e1(f),p=e1(u),c=d!==p?li(r,l,f,p):parseFloat(f),h=parseFloat(u),e._pt=new L1(e._pt,a,l,c,h-c,P2),e._pt.u=p||0,e._props.push(l));e3(a,i)};x1("padding,margin,Width,Radius",function(n,e){var t="Top",r="Right",i="Bottom",o="Left",s=(e<3?[t,r,i,o]:[t+o,t+r,i+r,i+o]).map(function(a){return e<2?n+a:"border"+a+n});Jo[e>1?"border"+n:n]=function(a,l,f,u,c){var h,d;if(arguments.length<4)return h=s.map(function(p){return Zr(a,p,f)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(u+"").split(" "),d={},s.forEach(function(p,g){return d[p]=h[g]=h[g]||h[(g-1)/2|0]}),a.init(l,d,c)}});var t3={name:"css",register:D2,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,o){var s=this._props,a=e.style,l=r.vars.startAt,f,u,c,h,d,p,g,m,b,w,T,C,S,x,v,D,P;E2||D2(),this.styles=this.styles||N0(e),D=this.styles.props,this.tween=r;for(g in t)if(g!=="autoRound"&&(u=t[g],!(H1[g]&&T0(g,t,r,i,e,o)))){if(d=typeof u,p=Jo[g],d==="function"&&(u=u.call(r,i,e,o),d=typeof u),d==="string"&&~u.indexOf("random(")&&(u=Zn(u)),p)p(this,e,g,u,r)&&(v=1);else if(g.substr(0,2)==="--")f=(getComputedStyle(e).getPropertyValue(g)+"").trim(),u+="",ii.lastIndex=0,ii.test(f)||(m=e1(f),b=e1(u),b?m!==b&&(f=li(e,g,f,b)+b):m&&(u+=m)),this.add(a,"setProperty",f,u,i,o,0,0,g),s.push(g),D.push(g,0,a[g]);else if(d!=="undefined"){if(l&&g in l?(f=typeof l[g]=="function"?l[g].call(r,i,e,o):l[g],zt(f)&&~f.indexOf("random(")&&(f=Zn(f)),e1(f+"")||f==="auto"||(f+=O1.units[g]||e1(Zr(e,g))||""),(f+"").charAt(1)==="="&&(f=Zr(e,g))):f=Zr(e,g),h=parseFloat(f),w=d==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),c=parseFloat(u),g in yr&&(g==="autoAlpha"&&(h===1&&Zr(e,"visibility")==="hidden"&&c&&(h=0),D.push("visibility",0,a.visibility),ai(this,a,"visibility",h?"inherit":"hidden",c?"inherit":"hidden",!c)),g!=="scale"&&g!=="transform"&&(g=yr[g],~g.indexOf(",")&&(g=g.split(",")[0]))),T=g in Nr,T){if(this.styles.save(g),P=u,d==="string"&&u.substring(0,6)==="var(--"){if(u=z1(e,u.substring(4,u.indexOf(")"))),u.substring(0,5)==="calc("){var R=e.style.perspective;e.style.perspective=u,u=z1(e,"perspective"),R?e.style.perspective=R:si(e,"perspective")}c=parseFloat(u)}if(C||(S=e._gsap,S.renderTransform&&!t.parseTransform||Xn(e,t.parseTransform),x=t.smoothOrigin!==!1&&S.smooth,C=this._pt=new L1(this._pt,a,xt,0,1,S.renderTransform,S,0,-1),C.dep=1),g==="scale")this._pt=new L1(this._pt,S,"scaleY",S.scaleY,(w?on(S.scaleY,w+c):c)-S.scaleY||0,P2),this._pt.u=0,s.push("scaleY",g),g+="X";else if(g==="transformOrigin"){D.push(T1,0,a[T1]),u=w6(u),S.svg?F2(e,u,0,x,0,this):(b=parseFloat(u.split(" ")[2])||0,b!==S.zOrigin&&ai(this,S,"zOrigin",S.zOrigin,b),ai(this,a,g,es(f),es(u)));continue}else if(g==="svgOrigin"){F2(e,u,1,x,0,this);continue}else if(g in j0){T6(this,S,g,h,w?on(h,w+u):u);continue}else if(g==="smoothOrigin"){ai(this,S,"smooth",S.smooth,u);continue}else if(g==="force3D"){S[g]=u;continue}else if(g==="transform"){k6(this,u,e);continue}}else g in a||(g=gn(g)||g);if(T||(c||c===0)&&(h||h===0)&&!a6.test(u)&&g in a)m=(f+"").substr((h+"").length),c||(c=0),b=e1(u)||(g in O1.units?O1.units[g]:m),m!==b&&(h=li(e,g,f,b)),this._pt=new L1(this._pt,T?S:a,g,h,(w?on(h,w+c):c)-h,!T&&(b==="px"||g==="zIndex")&&t.autoRound!==!1?c6:P2),this._pt.u=b||0,T&&P!==u?(this._pt.b=f,this._pt.e=P,this._pt.r=u6):m!==b&&b!=="%"&&(this._pt.b=f,this._pt.r=f6);else if(g in a)y6.call(this,e,g,f,w?w+u:u);else if(g in e)this.add(e,g,f||e[g],w?w+u:u,i,o);else if(g!=="parseTransform"){o2(g,u);continue}T||(g in a?D.push(g,0,a[g]):typeof e[g]=="function"?D.push(g,2,e[g]()):D.push(g,1,f||e[g])),s.push(g)}}v&&P0(this)},render:function(e,t){if(t.tween._time||!A2())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Zr,aliases:yr,getSetter:function(e,t,r){var i=yr[t];return i&&i.indexOf(",")<0&&(t=i),t in Nr&&t!==T1&&(e._gsap.x||Zr(e,"x"))?r&&F0===r?t==="scale"?p6:g6:(F0=r||{})&&(t==="scale"?m6:_6):e.style&&!e2(e.style[t])?d6:~t.indexOf("-")?h6:L2(e,t)},core:{_removeProperty:si,_getMatrix:H2}};S1.utils.checkPrefix=gn,S1.core.getStyleSaver=N0,(function(n,e,t,r){var i=x1(n+","+e+","+t,function(o){Nr[o]=1});x1(e,function(o){O1.units[o]="deg",j0[o]=1}),yr[i[13]]=n+","+e,x1(r,function(o){var s=o.split(":");yr[s[1]]=i[s[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"),x1("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){O1.units[n]="px"}),S1.registerPlugin(t3);var wr=S1.registerPlugin(t3)||S1;wr.core.Tween;function M6(n,e){for(var t=0;tl?(o=i,i=p,a=s,s=m):r?i+=p:i=o+(p-o)/(m-a)*(s-a)},c=function(){o=i=r?0:i,a=s=0},h=function(p){var g=a,m=o,b=Qn();return(p||p===0)&&p!==i&&u(p),s===a||b-a>f?0:(i+(r?m:-m))/((r?b:s)-g)*1e3};return{update:u,reset:c,getVelocity:h}},eo=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},a3=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},l3=function(){Kn=Xt.core.globals().ScrollTrigger,Kn&&Kn.core&&A6()},f3=function(e){return Xt=e||o3(),!ts&&Xt&&typeof document<"u"&&document.body&&(B1=window,fi=document,ui=fi.documentElement,pn=fi.body,i3=[B1,fi,ui,pn],Xt.utils.clamp,n3=Xt.core.context||function(){},Ii="onpointerenter"in pn?"pointer":"mouse",r3=Et.isTouch=B1.matchMedia&&B1.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in B1||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,dr=Et.eventTypes=("ontouchstart"in ui?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ui?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return s3=0},500),l3(),ts=1),ts};c1.op=Dt,Se.cache=0;var Et=(function(){function n(t){this.init(t)}var e=n.prototype;return e.init=function(r){ts||f3(Xt)||console.warn("Please gsap.registerPlugin(Observer)"),Kn||l3();var i=r.tolerance,o=r.dragMinimum,s=r.type,a=r.target,l=r.lineHeight,f=r.debounce,u=r.preventDefault,c=r.onStop,h=r.onStopDelay,d=r.ignore,p=r.wheelSpeed,g=r.event,m=r.onDragStart,b=r.onDragEnd,w=r.onDrag,T=r.onPress,C=r.onRelease,S=r.onRight,x=r.onLeft,v=r.onUp,D=r.onDown,P=r.onChangeX,R=r.onChangeY,F=r.onChange,I=r.onToggleX,J=r.onToggleY,U=r.onHover,re=r.onHoverEnd,ie=r.onMove,O=r.ignoreCheck,oe=r.isNormalizer,B=r.onGestureStart,y=r.onGestureEnd,ne=r.onWheel,Fe=r.onEnable,ve=r.onDisable,Me=r.onClick,fe=r.scrollSpeed,Ze=r.capture,Re=r.allowClicks,be=r.lockAxis,ze=r.onLockAxis;this.target=a=k1(a)||ui,this.vars=r,d&&(d=Xt.utils.toArray(d)),i=i||1e-9,o=o||0,p=p||1,fe=fe||1,s=s||"wheel,touch,pointer",f=f!==!1,l||(l=parseFloat(B1.getComputedStyle(pn).lineHeight)||22);var Zt,Ct,rt,se,Le,We,Ae,A=this,Xe=0,Lt=0,Pt=r.passive||!u&&r.passive!==!1,je=di(a,c1),ht=di(a,Dt),Tt=je(),V=ht(),N=~s.indexOf("touch")&&!~s.indexOf("pointer")&&dr[0]==="pointerdown",ce=Jn(a),ue=a.ownerDocument||fi,Ke=[0,0,0],ft=[0,0,0],H=0,qe=function(){return H=Qn()},ge=function(ee,me){return(A.event=ee)&&d&&R6(ee.target,d)||me&&N&&ee.pointerType!=="touch"||O&&O(ee,me)},ut=function(){A._vx.reset(),A._vy.reset(),Ct.pause(),c&&c(A)},et=function(){var ee=A.deltaX=a3(Ke),me=A.deltaY=a3(ft),Z=Math.abs(ee)>=i,te=Math.abs(me)>=i;F&&(Z||te)&&F(A,ee,me,Ke,ft),Z&&(S&&A.deltaX>0&&S(A),x&&A.deltaX<0&&x(A),P&&P(A),I&&A.deltaX<0!=Xe<0&&I(A),Xe=A.deltaX,Ke[0]=Ke[1]=Ke[2]=0),te&&(D&&A.deltaY>0&&D(A),v&&A.deltaY<0&&v(A),R&&R(A),J&&A.deltaY<0!=Lt<0&&J(A),Lt=A.deltaY,ft[0]=ft[1]=ft[2]=0),(se||rt)&&(ie&&ie(A),rt&&(m&&rt===1&&m(A),w&&w(A),rt=0),se=!1),We&&!(We=!1)&&ze&&ze(A),Le&&(ne(A),Le=!1),Zt=0},ct=function(ee,me,Z){Ke[Z]+=ee,ft[Z]+=me,A._vx.update(ee),A._vy.update(me),f?Zt||(Zt=requestAnimationFrame(et)):et()},Ee=function(ee,me){be&&!Ae&&(A.axis=Ae=Math.abs(ee)>Math.abs(me)?"x":"y",We=!0),Ae!=="y"&&(Ke[2]+=ee,A._vx.update(ee,!0)),Ae!=="x"&&(ft[2]+=me,A._vy.update(me,!0)),f?Zt||(Zt=requestAnimationFrame(et)):et()},Ue=function(ee){if(!ge(ee,1)){ee=eo(ee,u);var me=ee.clientX,Z=ee.clientY,te=me-A.x,K=Z-A.y,X=A.isDragging;A.x=me,A.y=Z,(X||(te||K)&&(Math.abs(A.startX-me)>=o||Math.abs(A.startY-Z)>=o))&&(rt||(rt=X?2:1),X||(A.isDragging=!0),Ee(te,K))}},Ft=A.onPress=function(G){ge(G,1)||G&&G.button||(A.axis=Ae=null,Ct.pause(),A.isPressed=!0,G=eo(G),Xe=Lt=0,A.startX=A.x=G.clientX,A.startY=A.y=G.clientY,A._vx.reset(),A._vy.reset(),f1(oe?a:ue,dr[1],Ue,Pt,!0),A.deltaX=A.deltaY=0,T&&T(A))},de=A.onRelease=function(G){if(!ge(G,1)){u1(oe?a:ue,dr[1],Ue,!0);var ee=!isNaN(A.y-A.startY),me=A.isDragging,Z=me&&(Math.abs(A.x-A.startX)>3||Math.abs(A.y-A.startY)>3),te=eo(G);!Z&&ee&&(A._vx.reset(),A._vy.reset(),u&&Re&&Xt.delayedCall(.08,function(){if(Qn()-H>300&&!G.defaultPrevented){if(G.target.click)G.target.click();else if(ue.createEvent){var K=ue.createEvent("MouseEvents");K.initMouseEvent("click",!0,!0,B1,1,te.screenX,te.screenY,te.clientX,te.clientY,!1,!1,!1,!1,0,null),G.target.dispatchEvent(K)}}})),A.isDragging=A.isGesturing=A.isPressed=!1,c&&me&&!oe&&Ct.restart(!0),rt&&et(),b&&me&&b(A),C&&C(A,Z)}},It=function(ee){return ee.touches&&ee.touches.length>1&&(A.isGesturing=!0)&&B(ee,A.isDragging)},gt=function(){return(A.isGesturing=!1)||y(A)},Vt=function(ee){if(!ge(ee)){var me=je(),Z=ht();ct((me-Tt)*fe,(Z-V)*fe,1),Tt=me,V=Z,c&&Ct.restart(!0)}},kt=function(ee){if(!ge(ee)){ee=eo(ee,u),ne&&(Le=!0);var me=(ee.deltaMode===1?l:ee.deltaMode===2?B1.innerHeight:1)*p;ct(ee.deltaX*me,ee.deltaY*me,0),c&&!oe&&Ct.restart(!0)}},E1=function(ee){if(!ge(ee)){var me=ee.clientX,Z=ee.clientY,te=me-A.x,K=Z-A.y;A.x=me,A.y=Z,se=!0,c&&Ct.restart(!0),(te||K)&&Ee(te,K)}},U1=function(ee){A.event=ee,U(A)},M=function(ee){A.event=ee,re(A)},ae=function(ee){return ge(ee)||eo(ee,u)&&Me(A)};Ct=A._dc=Xt.delayedCall(h||.25,ut).pause(),A.deltaX=A.deltaY=0,A._vx=B2(0,50,!0),A._vy=B2(0,50,!0),A.scrollX=je,A.scrollY=ht,A.isDragging=A.isGesturing=A.isPressed=!1,n3(this),A.enable=function(G){return A.isEnabled||(f1(ce?ue:a,"scroll",z2),s.indexOf("scroll")>=0&&f1(ce?ue:a,"scroll",Vt,Pt,Ze),s.indexOf("wheel")>=0&&f1(a,"wheel",kt,Pt,Ze),(s.indexOf("touch")>=0&&r3||s.indexOf("pointer")>=0)&&(f1(a,dr[0],Ft,Pt,Ze),f1(ue,dr[2],de),f1(ue,dr[3],de),Re&&f1(a,"click",qe,!0,!0),Me&&f1(a,"click",ae),B&&f1(ue,"gesturestart",It),y&&f1(ue,"gestureend",gt),U&&f1(a,Ii+"enter",U1),re&&f1(a,Ii+"leave",M),ie&&f1(a,Ii+"move",E1)),A.isEnabled=!0,A.isDragging=A.isGesturing=A.isPressed=se=rt=!1,A._vx.reset(),A._vy.reset(),Tt=je(),V=ht(),G&&G.type&&Ft(G),Fe&&Fe(A)),A},A.disable=function(){A.isEnabled&&(mn.filter(function(G){return G!==A&&Jn(G.target)}).length||u1(ce?ue:a,"scroll",z2),A.isPressed&&(A._vx.reset(),A._vy.reset(),u1(oe?a:ue,dr[1],Ue,!0)),u1(ce?ue:a,"scroll",Vt,Ze),u1(a,"wheel",kt,Ze),u1(a,dr[0],Ft,Ze),u1(ue,dr[2],de),u1(ue,dr[3],de),u1(a,"click",qe,!0),u1(a,"click",ae),u1(ue,"gesturestart",It),u1(ue,"gestureend",gt),u1(a,Ii+"enter",U1),u1(a,Ii+"leave",M),u1(a,Ii+"move",E1),A.isEnabled=A.isPressed=A.isDragging=!1,ve&&ve(A))},A.kill=A.revert=function(){A.disable();var G=mn.indexOf(A);G>=0&&mn.splice(G,1),qr===A&&(qr=0)},mn.push(A),oe&&Jn(a)&&(qr=A),A.enable(g)},E6(n,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),n})();Et.version="3.14.2",Et.create=function(n){return new Et(n)},Et.register=f3,Et.getAll=function(){return mn.slice()},Et.getById=function(n){return mn.filter(function(e){return e.vars.id===n})[0]},o3()&&Xt.registerPlugin(Et);var Q,_n,Te,dt,N1,Je,N2,os,to,ro,io,ss,t1,as,Z2,d1,u3,c3,vn,d3,q2,h3,h1,U2,g3,p3,hi,Y2,G2,Cn,W2,no,$2,X2,ls=1,r1=Date.now,j2=r1(),tr=0,oo=0,m3=function(e,t,r){var i=Z1(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},_3=function(e,t){return t&&(!Z1(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},P6=function n(){return oo&&requestAnimationFrame(n)},v3=function(){return as=1},C3=function(){return as=0},Lr=function(e){return e},so=function(e){return Math.round(e*1e5)/1e5||0},b3=function(){return typeof window<"u"},y3=function(){return Q||b3()&&(Q=window.gsap)&&Q.registerPlugin&&Q},Vi=function(e){return!!~N2.indexOf(e)},w3=function(e){return(e==="Height"?W2:Te["inner"+e])||N1["client"+e]||Je["client"+e]},x3=function(e){return ci(e,"getBoundingClientRect")||(Vi(e)?function(){return ys.width=Te.innerWidth,ys.height=W2,ys}:function(){return Ur(e)})},O6=function(e,t,r){var i=r.d,o=r.d2,s=r.a;return(s=ci(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(t?w3(o):e["client"+o])||0}},D6=function(e,t){return!t||~xr.indexOf(e)?x3(e):function(){return ys}},Sr=function(e,t){var r=t.s,i=t.d2,o=t.d,s=t.a;return Math.max(0,(r="scroll"+i)&&(s=ci(e,r))?s()-x3(e)()[o]:Vi(e)?(N1[r]||Je[r])-w3(i):e[r]-e["offset"+i])},fs=function(e,t){for(var r=0;r0){for(i-=s,a=0;a=i)return r[a];return r[a-1]}else for(a=r.length,i+=s;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,o,s){s===void 0&&(s=.001);var a=t(i);return!o||Math.abs(a-i)r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in gs?gs[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ms=function(e,t,r,i,o,s,a,l){var f=o.startColor,u=o.endColor,c=o.fontSize,h=o.indent,d=o.fontWeight,p=dt.createElement("div"),g=Vi(r)||ci(r,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,b=g?Je:r,w=e.indexOf("start")!==-1,T=w?f:u,C="border-color:"+T+";font-size:"+c+";color:"+T+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return C+="position:"+((m||l)&&g?"fixed;":"absolute;"),(m||l||!g)&&(C+=(i===Dt?Q2:J2)+":"+(s+parseFloat(h))+"px;"),a&&(C+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=w,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=C,p.innerText=t||t===0?e+"-"+t:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+i.op.d2],_s(p,0,i,w),p},_s=function(e,t,r,i){var o={display:"block"},s=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,o[r.a+"Percent"]=i?-100:0,o[r.a]=i?"1px":0,o["border"+s+yn]=1,o["border"+a+yn]=0,o[r.p]=t+"px",Q.set(e,o)},xe=[],ra={},go,E3=function(){return r1()-tr>34&&(go||(go=requestAnimationFrame(Yr)))},wn=function(){(!h1||!h1.isPressed||h1.startX>Je.clientWidth)&&(Se.cache++,h1?go||(go=requestAnimationFrame(Yr)):Yr(),tr||qi("scrollStart"),tr=r1())},ia=function(){p3=Te.innerWidth,g3=Te.innerHeight},po=function(e){Se.cache++,(e===!0||!t1&&!h3&&!dt.fullscreenElement&&!dt.webkitFullscreenElement&&(!U2||p3!==Te.innerWidth||Math.abs(Te.innerHeight-g3)>Te.innerHeight*.25))&&os.restart(!0)},Zi={},V6=[],A3=function n(){return Nt(_e,"scrollEnd",n)||Yi(!0)},qi=function(e){return Zi[e]&&Zi[e].map(function(t){return t()})||V6},q1=[],R3=function(e){for(var t=0;to,a=i._startClamp&&i.start>=o;(s||a)&&i.setPositions(a?o-1:i.start,s?Math.max(a?o:i.start+1,o):i.end,!0)}),F3(!1),$2=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),Se.forEach(function(i){i1(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),O3(G2,1),os.pause(),Ui++,g1=2,Yr(2),xe.forEach(function(i){return i1(i.vars.onRefresh)&&i.vars.onRefresh(i)}),g1=_e.isRefreshing=!1,qi("refresh")},oa=0,vs=1,mo,Yr=function(e){if(e===2||!g1&&!no){_e.isUpdating=!0,mo&&mo.update(0);var t=xe.length,r=r1(),i=r-j2>=50,o=t&&xe[0].scroll();if(vs=oa>o?-1:1,g1||(oa=o),i&&(tr&&!as&&r-tr>200&&(tr=0,qi("scrollEnd")),io=j2,j2=r),vs<0){for(d1=t;d1-- >0;)xe[d1]&&xe[d1].update(0,i);vs=1}else for(d1=0;d120),r-=r-x}if(p&&(l[p]=e||-.001,e<0&&(e=0)),s){var D=e+r,P=s._isStart;m="scroll"+i.d2,_s(s,D,i,P&&D>20||!P&&(c?Math.max(Je[m],N1[m]):s.parentNode[m])<=D+1),c&&(f=Ur(a),c&&(s.style[i.op.p]=f[i.op.p]-i.op.m-s._offset+Ht))}return d&&w&&(m=Ur(w),d.seek(h),b=Ur(w),d._caScrollDist=m[i.p]-b[i.p],e=e/d._caScrollDist*h),d&&d.seek(g),d?e:Math.round(e)},q6=/(webkit|moz|length|cssText|inset)/i,V3=function(e,t,r,i){if(e.parentNode!==t){var o=e.style,s,a;if(t===Je){e._stOrig=o.cssText,a=ir(e);for(s in a)!+s&&!q6.test(s)&&a[s]&&typeof o[s]=="string"&&s!=="0"&&(o[s]=a[s]);o.top=r,o.left=i}else o.cssText=e._stOrig;Q.core.getCache(e).uncache=1,t.appendChild(e)}},z3=function(e,t,r){var i=t,o=i;return function(s){var a=Math.round(e());return a!==i&&a!==o&&Math.abs(a-i)>3&&Math.abs(a-o)>3&&(s=a,r&&r()),o=i,i=Math.round(s),i}},ws=function(e,t,r){var i={};i[t.p]="+="+r,Q.set(e,i)},B3=function(e,t){var r=di(e,t),i="_scroll"+t.p2,o=function s(a,l,f,u,c){var h=s.tween,d=l.onComplete,p={};f=f||r();var g=z3(r,f,function(){h.kill(),s.tween=0});return c=u&&c||0,u=u||a-f,h&&h.kill(),l[i]=a,l.inherit=!1,l.modifiers=p,p[i]=function(){return g(f+u*h.ratio+c*h.ratio*h.ratio)},l.onUpdate=function(){Se.cache++,s.tween&&Yr()},l.onComplete=function(){s.tween=0,d&&d.call(h)},h=s.tween=Q.to(e,l),h};return e[i]=r,r.wheelHandler=function(){return o.tween&&o.tween.kill()&&(o.tween=0)},Bt(e,"wheel",r.wheelHandler),_e.isTouch&&Bt(e,"touchmove",r.wheelHandler),o},_e=(function(){function n(t,r){_n||n.register(Q)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Y2(this),this.init(t,r)}var e=n.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!oo){this.update=this.refresh=this.kill=Lr;return}r=T3(Z1(r)||ao(r)||r.nodeType?{trigger:r}:r,hs);var o=r,s=o.onUpdate,a=o.toggleClass,l=o.id,f=o.onToggle,u=o.onRefresh,c=o.scrub,h=o.trigger,d=o.pin,p=o.pinSpacing,g=o.invalidateOnRefresh,m=o.anticipatePin,b=o.onScrubComplete,w=o.onSnapComplete,T=o.once,C=o.snap,S=o.pinReparent,x=o.pinSpacer,v=o.containerAnimation,D=o.fastScrollEnd,P=o.preventOverlaps,R=r.horizontal||r.containerAnimation&&r.horizontal!==!1?c1:Dt,F=!c&&c!==0,I=k1(r.scroller||Te),J=Q.core.getCache(I),U=Vi(I),re=("pinType"in r?r.pinType:ci(I,"pinType")||U&&"fixed")==="fixed",ie=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],O=F&&r.toggleActions.split(" "),oe="markers"in r?r.markers:hs.markers,B=U?0:parseFloat(ir(I)["border"+R.p2+yn])||0,y=this,ne=r.onRefreshInit&&function(){return r.onRefreshInit(y)},Fe=O6(I,U,R),ve=D6(I,U),Me=0,fe=0,Ze=0,Re=di(I,R),be,ze,Zt,Ct,rt,se,Le,We,Ae,A,Xe,Lt,Pt,je,ht,Tt,V,N,ce,ue,Ke,ft,H,qe,ge,ut,et,ct,Ee,Ue,Ft,de,It,gt,Vt,kt,E1,U1,M;if(y._startClamp=y._endClamp=!1,y._dir=R,m*=45,y.scroller=I,y.scroll=v?v.time.bind(v):Re,Ct=Re(),y.vars=r,i=i||r.animation,"refreshPriority"in r&&(d3=1,r.refreshPriority===-9999&&(mo=y)),J.tweenScroll=J.tweenScroll||{top:B3(I,Dt),left:B3(I,c1)},y.tweenTo=be=J.tweenScroll[R.p],y.scrubDuration=function(Z){It=ao(Z)&&Z,It?de?de.duration(Z):de=Q.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:It,paused:!0,onComplete:function(){return b&&b(y)}}):(de&&de.progress(1).kill(),de=0)},i&&(i.vars.lazy=!1,i._initted&&!y.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),y.animation=i.pause(),i.scrollTrigger=y,y.scrubDuration(c),Ue=0,l||(l=i.vars.id)),C&&((!zi(C)||C.push)&&(C={snapTo:C}),"scrollBehavior"in Je.style&&Q.set(U?[Je,N1]:I,{scrollBehavior:"auto"}),Se.forEach(function(Z){return i1(Z)&&Z.target===(U?dt.scrollingElement||N1:I)&&(Z.smooth=!1)}),Zt=i1(C.snapTo)?C.snapTo:C.snapTo==="labels"?F6(i):C.snapTo==="labelsDirectional"?I6(i):C.directional!==!1?function(Z,te){return ta(C.snapTo)(Z,r1()-fe<500?0:te.direction)}:Q.utils.snap(C.snapTo),gt=C.duration||{min:.1,max:2},gt=zi(gt)?ro(gt.min,gt.max):ro(gt,gt),Vt=Q.delayedCall(C.delay||It/2||.1,function(){var Z=Re(),te=r1()-fe<500,K=be.tween;if((te||Math.abs(y.getVelocity())<10)&&!K&&!as&&Me!==Z){var X=(Z-se)/je,Ie=i&&!F?i.totalProgress():X,le=te?0:(Ie-Ft)/(r1()-io)*1e3||0,ye=Q.utils.clamp(-X,1-X,bn(le/2)*le/.185),pt=X+(C.inertia===!1?0:ye),$e,Pe,Be=C,jt=Be.onStart,it=Be.onInterrupt,qt=Be.onComplete;if($e=Zt(pt,y),ao($e)||($e=pt),Pe=Math.max(0,Math.round(se+$e*je)),Z<=Le&&Z>=se&&Pe!==Z){if(K&&!K._initted&&K.data<=bn(Pe-Z))return;C.inertia===!1&&(ye=$e-X),be(Pe,{duration:gt(bn(Math.max(bn(pt-Ie),bn($e-Ie))*.185/le/.05||0)),ease:C.ease||"power3",data:bn(Pe-Z),onInterrupt:function(){return Vt.restart(!0)&&it&&it(y)},onComplete:function(){y.update(),Me=Re(),i&&!F&&(de?de.resetTo("totalProgress",$e,i._tTime/i._tDur):i.progress($e)),Ue=Ft=i&&!F?i.totalProgress():y.progress,w&&w(y),qt&&qt(y)}},Z,ye*je,Pe-Z-ye*je),jt&&jt(y,be.tween)}}else y.isActive&&Me!==Z&&Vt.restart(!0)}).pause()),l&&(ra[l]=y),h=y.trigger=k1(h||d!==!0&&d),M=h&&h._gsap&&h._gsap.stRevert,M&&(M=M(y)),d=d===!0?h:k1(d),Z1(a)&&(a={targets:h,className:a}),d&&(p===!1||p===rr||(p=!p&&d.parentNode&&d.parentNode.style&&ir(d.parentNode).display==="flex"?!1:Rt),y.pin=d,ze=Q.core.getCache(d),ze.spacer?ht=ze.pinState:(x&&(x=k1(x),x&&!x.nodeType&&(x=x.current||x.nativeElement),ze.spacerIsNative=!!x,x&&(ze.spacerState=bs(x))),ze.spacer=N=x||dt.createElement("div"),N.classList.add("pin-spacer"),l&&N.classList.add("pin-spacer-"+l),ze.pinState=ht=bs(d)),r.force3D!==!1&&Q.set(d,{force3D:!0}),y.spacer=N=ze.spacer,Ee=ir(d),qe=Ee[p+R.os2],ue=Q.getProperty(d),Ke=Q.quickSetter(d,R.a,Ht),aa(d,N,Ee),V=bs(d)),oe){Lt=zi(oe)?T3(oe,M3):M3,A=ms("scroller-start",l,I,R,Lt,0),Xe=ms("scroller-end",l,I,R,Lt,0,A),ce=A["offset"+R.op.d2];var ae=k1(ci(I,"content")||I);We=this.markerStart=ms("start",l,ae,R,Lt,ce,0,v),Ae=this.markerEnd=ms("end",l,ae,R,Lt,ce,0,v),v&&(U1=Q.quickSetter([We,Ae],R.a,Ht)),!re&&!(xr.length&&ci(I,"fixedMarkers")===!0)&&(H6(U?Je:I),Q.set([A,Xe],{force3D:!0}),ut=Q.quickSetter(A,R.a,Ht),ct=Q.quickSetter(Xe,R.a,Ht))}if(v){var G=v.vars.onUpdate,ee=v.vars.onUpdateParams;v.eventCallback("onUpdate",function(){y.update(0,0,1),G&&G.apply(v,ee||[])})}if(y.previous=function(){return xe[xe.indexOf(y)-1]},y.next=function(){return xe[xe.indexOf(y)+1]},y.revert=function(Z,te){if(!te)return y.kill(!0);var K=Z!==!1||!y.enabled,X=t1;K!==y.isReverted&&(K&&(kt=Math.max(Re(),y.scroll.rec||0),Ze=y.progress,E1=i&&i.progress()),We&&[We,Ae,A,Xe].forEach(function(Ie){return Ie.style.display=K?"none":"block"}),K&&(t1=y,y.update(K)),d&&(!S||!y.isActive)&&(K?B6(d,N,ht):aa(d,N,ir(d),ge)),K||y.update(K),t1=X,y.isReverted=K)},y.refresh=function(Z,te,K,X){if(!((t1||!y.enabled)&&!te)){if(d&&Z&&tr){Bt(n,"scrollEnd",A3);return}!g1&&ne&&ne(y),t1=y,be.tween&&!K&&(be.tween.kill(),be.tween=0),de&&de.pause(),g&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(pi){return pi.vars.immediateRender&&pi.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),y.isReverted||y.revert(!0,!0),y._subPinOffset=!1;var Ie=Fe(),le=ve(),ye=v?v.duration():Sr(I,R),pt=je<=.01||!je,$e=0,Pe=X||0,Be=zi(K)?K.end:r.end,jt=r.endTrigger||h,it=zi(K)?K.start:r.start||(r.start===0||!h?0:d?"0 0":"0 100%"),qt=y.pinnedContainer=r.pinnedContainer&&k1(r.pinnedContainer,y),Y1=h&&Math.max(0,xe.indexOf(y))||0,W=Y1,_,z,$,nt,Ye,we,mt,Kt,gr,Gr,ot,gi,Gi;for(oe&&zi(K)&&(gi=Q.getProperty(A,R.p),Gi=Q.getProperty(Xe,R.p));W-- >0;)we=xe[W],we.end||we.refresh(0,1)||(t1=y),mt=we.pin,mt&&(mt===h||mt===d||mt===qt)&&!we.isReverted&&(Gr||(Gr=[]),Gr.unshift(we),we.revert(!0,!0)),we!==xe[W]&&(Y1--,W--);for(i1(it)&&(it=it(y)),it=m3(it,"start",y),se=I3(it,h,Ie,R,Re(),We,A,y,le,B,re,ye,v,y._startClamp&&"_startClamp")||(d?-.001:0),i1(Be)&&(Be=Be(y)),Z1(Be)&&!Be.indexOf("+=")&&(~Be.indexOf(" ")?Be=(Z1(it)?it.split(" ")[0]:"")+Be:($e=ps(Be.substr(2),Ie),Be=Z1(it)?it:(v?Q.utils.mapRange(0,v.duration(),v.scrollTrigger.start,v.scrollTrigger.end,se):se)+$e,jt=h)),Be=m3(Be,"end",y),Le=Math.max(se,I3(Be||(jt?"100% 0":ye),jt,Ie,R,Re()+$e,Ae,Xe,y,le,B,re,ye,v,y._endClamp&&"_endClamp"))||-.001,$e=0,W=Y1;W--;)we=xe[W]||{},mt=we.pin,mt&&we.start-we._pinPush<=se&&!v&&we.end>0&&(_=we.end-(y._startClamp?Math.max(0,we.start):we.start),(mt===h&&we.start-we._pinPush=Sr(I,R)))_=ir(d),nt=R===Dt,$=Re(),ft=parseFloat(ue(R.a))+Pe,!ye&&Le>1&&(ot=(U?dt.scrollingElement||N1:I).style,ot={style:ot,value:ot["overflow"+R.a.toUpperCase()]},U&&ir(Je)["overflow"+R.a.toUpperCase()]!=="scroll"&&(ot.style["overflow"+R.a.toUpperCase()]="scroll")),aa(d,N,_),V=bs(d),z=Ur(d,!0),Kt=re&&di(I,nt?c1:Dt)(),p?(ge=[p+R.os2,je+Pe+Ht],ge.t=N,W=p===Rt?us(d,R)+je+Pe:0,W&&(ge.push(R.d,W+Ht),N.style.flexBasis!=="auto"&&(N.style.flexBasis=W+Ht)),xn(ge),qt&&xe.forEach(function(pi){pi.pin===qt&&pi.vars.pinSpacing!==!1&&(pi._subPinOffset=!0)}),re&&Re(kt)):(W=us(d,R),W&&N.style.flexBasis!=="auto"&&(N.style.flexBasis=W+Ht)),re&&(Ye={top:z.top+(nt?$-se:Kt)+Ht,left:z.left+(nt?Kt:$-se)+Ht,boxSizing:"border-box",position:"fixed"},Ye[Bi]=Ye["max"+yn]=Math.ceil(z.width)+Ht,Ye[Ni]=Ye["max"+ea]=Math.ceil(z.height)+Ht,Ye[rr]=Ye[rr+co]=Ye[rr+fo]=Ye[rr+ho]=Ye[rr+uo]="0",Ye[Rt]=_[Rt],Ye[Rt+co]=_[Rt+co],Ye[Rt+fo]=_[Rt+fo],Ye[Rt+ho]=_[Rt+ho],Ye[Rt+uo]=_[Rt+uo],Tt=Z6(ht,Ye,S),g1&&Re(0)),i?(gr=i._initted,q2(1),i.render(i.duration(),!0,!0),H=ue(R.a)-ft+je+Pe,et=Math.abs(je-H)>1,re&&et&&Tt.splice(Tt.length-2,2),i.render(0,!0,!0),gr||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),q2(0)):H=je,ot&&(ot.value?ot.style["overflow"+R.a.toUpperCase()]=ot.value:ot.style.removeProperty("overflow-"+R.a));else if(h&&Re()&&!v)for(z=h.parentNode;z&&z!==Je;)z._pinOffset&&(se-=z._pinOffset,Le-=z._pinOffset),z=z.parentNode;Gr&&Gr.forEach(function(pi){return pi.revert(!1,!0)}),y.start=se,y.end=Le,Ct=rt=g1?kt:Re(),!v&&!g1&&(Ct0?xe.slice(0,te).reverse():xe.slice(te+1);return(Z1(Z)?K.filter(function(X){return X.vars.preventOverlaps===Z}):K).filter(function(X){return y.direction>0?X.end<=se:X.start>=Le})},y.update=function(Z,te,K){if(!(v&&!K&&!Z)){var X=g1===!0?kt:y.scroll(),Ie=Z?0:(X-se)/je,le=Ie<0?0:Ie>1?1:Ie||0,ye=y.progress,pt,$e,Pe,Be,jt,it,qt,Y1;if(te&&(rt=Ct,Ct=v?Re():X,C&&(Ft=Ue,Ue=i&&!F?i.totalProgress():le)),m&&d&&!t1&&!ls&&tr&&(!le&&seX+(X-rt)/(r1()-io)*m&&(le=.9999)),le!==ye&&y.enabled){if(pt=y.isActive=!!le&&le<1,$e=!!ye&&ye<1,it=pt!==$e,jt=it||!!le!=!!ye,y.direction=le>ye?1:-1,y.progress=le,jt&&!t1&&(Pe=le&&!ye?0:le===1?1:ye===1?2:3,F&&(Be=!it&&O[Pe+1]!=="none"&&O[Pe+1]||O[Pe],Y1=i&&(Be==="complete"||Be==="reset"||Be in i))),P&&(it||Y1)&&(Y1||c||!i)&&(i1(P)?P(y):y.getTrailing(P).forEach(function($){return $.endAnimation()})),F||(de&&!t1&&!ls?(de._dp._time-de._start!==de._time&&de.render(de._dp._time-de._start),de.resetTo?de.resetTo("totalProgress",le,i._tTime/i._tDur):(de.vars.totalProgress=le,de.invalidate().restart())):i&&i.totalProgress(le,!!(t1&&(fe||Z)))),d){if(Z&&p&&(N.style[p+R.os2]=qe),!re)Ke(so(ft+H*le));else if(jt){if(qt=!Z&&le>ye&&Le+1>X&&X+1>=Sr(I,R),S)if(!Z&&(pt||qt)){var W=Ur(d,!0),_=X-se;V3(d,Je,W.top+(R===Dt?_:0)+Ht,W.left+(R===Dt?0:_)+Ht)}else V3(d,N);xn(pt||qt?Tt:V),et&&le<1&&pt||Ke(ft+(le===1&&!qt?H:0))}}C&&!be.tween&&!t1&&!ls&&Vt.restart(!0),a&&(it||T&&le&&(le<1||!X2))&&to(a.targets).forEach(function($){return $.classList[pt||T?"add":"remove"](a.className)}),s&&!F&&!Z&&s(y),jt&&!t1?(F&&(Y1&&(Be==="complete"?i.pause().totalProgress(1):Be==="reset"?i.restart(!0).pause():Be==="restart"?i.restart(!0):i[Be]()),s&&s(y)),(it||!X2)&&(f&&it&&K2(y,f),ie[Pe]&&K2(y,ie[Pe]),T&&(le===1?y.kill(!1,1):ie[Pe]=0),it||(Pe=le===1?1:3,ie[Pe]&&K2(y,ie[Pe]))),D&&!pt&&Math.abs(y.getVelocity())>(ao(D)?D:2500)&&(lo(y.callbackAnimation),de?de.progress(1):lo(i,Be==="reverse"?1:!le,1))):F&&s&&!t1&&s(y)}if(ct){var z=v?X/v.duration()*(v._caScrollDist||0):X;ut(z+(A._isFlipped?1:0)),ct(z)}U1&&U1(-X/v.duration()*(v._caScrollDist||0))}},y.enable=function(Z,te){y.enabled||(y.enabled=!0,Bt(I,"resize",po),U||Bt(I,"scroll",wn),ne&&Bt(n,"refreshInit",ne),Z!==!1&&(y.progress=Ze=0,Ct=rt=Me=Re()),te!==!1&&y.refresh())},y.getTween=function(Z){return Z&&be?be.tween:de},y.setPositions=function(Z,te,K,X){if(v){var Ie=v.scrollTrigger,le=v.duration(),ye=Ie.end-Ie.start;Z=Ie.start+ye*Z/le,te=Ie.start+ye*te/le}y.refresh(!1,!1,{start:_3(Z,K&&!!y._startClamp),end:_3(te,K&&!!y._endClamp)},X),y.update()},y.adjustPinSpacing=function(Z){if(ge&&Z){var te=ge.indexOf(R.d)+1;ge[te]=parseFloat(ge[te])+Z+Ht,ge[1]=parseFloat(ge[1])+Z+Ht,xn(ge)}},y.disable=function(Z,te){if(Z!==!1&&y.revert(!0,!0),y.enabled&&(y.enabled=y.isActive=!1,te||de&&de.pause(),kt=0,ze&&(ze.uncache=1),ne&&Nt(n,"refreshInit",ne),Vt&&(Vt.pause(),be.tween&&be.tween.kill()&&(be.tween=0)),!U)){for(var K=xe.length;K--;)if(xe[K].scroller===I&&xe[K]!==y)return;Nt(I,"resize",po),U||Nt(I,"scroll",wn)}},y.kill=function(Z,te){y.disable(Z,te),de&&!te&&de.kill(),l&&delete ra[l];var K=xe.indexOf(y);K>=0&&xe.splice(K,1),K===d1&&vs>0&&d1--,K=0,xe.forEach(function(X){return X.scroller===y.scroller&&(K=1)}),K||g1||(y.scroll.rec=0),i&&(i.scrollTrigger=null,Z&&i.revert({kill:!1}),te||i.kill()),We&&[We,Ae,A,Xe].forEach(function(X){return X.parentNode&&X.parentNode.removeChild(X)}),mo===y&&(mo=0),d&&(ze&&(ze.uncache=1),K=0,xe.forEach(function(X){return X.pin===d&&K++}),K||(ze.spacer=0)),r.onKill&&r.onKill(y)},xe.push(y),y.enable(!1,!1),M&&M(y),i&&i.add&&!je){var me=y.update;y.update=function(){y.update=me,Se.cache++,se||Le||y.refresh()},Q.delayedCall(.01,y.update),je=.01,se=Le=0}else y.refresh();d&&z6()},n.register=function(r){return _n||(Q=r||y3(),b3()&&window.document&&n.enable(),_n=oo),_n},n.defaults=function(r){if(r)for(var i in r)hs[i]=r[i];return hs},n.disable=function(r,i){oo=0,xe.forEach(function(s){return s[i?"kill":"disable"](r)}),Nt(Te,"wheel",wn),Nt(dt,"scroll",wn),clearInterval(ss),Nt(dt,"touchcancel",Lr),Nt(Je,"touchstart",Lr),cs(Nt,dt,"pointerdown,touchstart,mousedown",v3),cs(Nt,dt,"pointerup,touchend,mouseup",C3),os.kill(),fs(Nt);for(var o=0;o0&&s.left+a0&&s.top+a=0&&q1.splice(t,5),q1.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Q.core.getCache(e),Y2())}}):q1},_e.revert=function(n,e){return na(!n,e)},_e.create=function(n,e){return new _e(n,e)},_e.refresh=function(n){return n?po(!0):(_n||_e.register())&&Yi(!0)},_e.update=function(n){return++Se.cache&&Yr(n===!0?2:0)},_e.clearScrollMemory=O3,_e.maxScroll=function(n,e){return Sr(n,e?c1:Dt)},_e.getScrollFunc=function(n,e){return di(k1(n),e?c1:Dt)},_e.getById=function(n){return ra[n]},_e.getAll=function(){return xe.filter(function(n){return n.vars.id!=="ScrollSmoother"})},_e.isScrolling=function(){return!!tr},_e.snapDirectional=ta,_e.addEventListener=function(n,e){var t=Zi[n]||(Zi[n]=[]);~t.indexOf(e)||t.push(e)},_e.removeEventListener=function(n,e){var t=Zi[n],r=t&&t.indexOf(e);r>=0&&t.splice(r,1)},_e.batch=function(n,e){var t=[],r={},i=e.interval||.016,o=e.batchMax||1e9,s=function(f,u){var c=[],h=[],d=Q.delayedCall(i,function(){u(c,h),c=[],h=[]}).pause();return function(p){c.length||d.restart(!0),c.push(p.trigger),h.push(p),o<=c.length&&d.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&i1(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return i1(o)&&(o=o(),Bt(_e,"refresh",function(){return o=e.batchMax()})),to(n).forEach(function(l){var f={};for(a in r)f[a]=r[a];f.trigger=l,t.push(_e.create(f))}),t};var N3=function(e,t,r,i){return t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1},la=function n(e,t){t===!0?e.style.removeProperty("touch-action"):e.style.touchAction=t===!0?"auto":t?"pan-"+t+(Et.isTouch?" pinch-zoom":""):"none",e===N1&&n(Je,t)},xs={auto:1,scroll:1},U6=function(e){var t=e.event,r=e.target,i=e.axis,o=(t.changedTouches?t.changedTouches[0]:t).target,s=o._gsap||Q.core.getCache(o),a=r1(),l;if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==Je&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!(xs[(l=ir(o)).overflowY]||xs[l.overflowX]));)o=o.parentNode;s._isScroll=o&&o!==r&&!Vi(o)&&(xs[(l=ir(o)).overflowY]||xs[l.overflowX]),s._isScrollT=a}(s._isScroll||i==="x")&&(t.stopPropagation(),t._gsapAllow=!0)},Z3=function(e,t,r,i){return Et.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&U6,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&Bt(dt,Et.eventTypes[0],U3,!1,!0)},onDisable:function(){return Nt(dt,Et.eventTypes[0],U3,!0)}})},Y6=/(input|label|select|textarea)/i,q3,U3=function(e){var t=Y6.test(e.target.tagName);(t||q3)&&(e._gsapAllow=!0,q3=t)},G6=function(e){zi(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t=e,r=t.normalizeScrollX,i=t.momentum,o=t.allowNestedScroll,s=t.onRelease,a,l,f=k1(e.target)||N1,u=Q.core.globals().ScrollSmoother,c=u&&u.get(),h=hi&&(e.content&&k1(e.content)||c&&e.content!==!1&&!c.smooth()&&c.content()),d=di(f,Dt),p=di(f,c1),g=1,m=(Et.isTouch&&Te.visualViewport?Te.visualViewport.scale*Te.visualViewport.width:Te.outerWidth)/Te.innerWidth,b=0,w=i1(i)?function(){return i(a)}:function(){return i||2.8},T,C,S=Z3(f,e.type,!0,o),x=function(){return C=!1},v=Lr,D=Lr,P=function(){l=Sr(f,Dt),D=ro(hi?1:0,l),r&&(v=ro(0,Sr(f,c1))),T=Ui},R=function(){h._gsap.y=so(parseFloat(h._gsap.y)+d.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",d.offset=d.cacheID=0},F=function(){if(C){requestAnimationFrame(x);var oe=so(a.deltaY/2),B=D(d.v-oe);if(h&&B!==d.v+d.offset){d.offset=B-d.v;var y=so((parseFloat(h&&h._gsap.y)||0)-d.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+y+", 0, 1)",h._gsap.y=y+"px",d.cacheID=Se.cache,Yr()}return!0}d.offset&&R(),C=!0},I,J,U,re,ie=function(){P(),I.isActive()&&I.vars.scrollY>l&&(d()>l?I.progress(1)&&d(l):I.resetTo("scrollY",l))};return h&&Q.set(h,{y:"+=0"}),e.ignoreCheck=function(O){return hi&&O.type==="touchmove"&&F()||g>1.05&&O.type!=="touchstart"||a.isGesturing||O.touches&&O.touches.length>1},e.onPress=function(){C=!1;var O=g;g=so((Te.visualViewport&&Te.visualViewport.scale||1)/m),I.pause(),O!==g&&la(f,g>1.01?!0:r?!1:"x"),J=p(),U=d(),P(),T=Ui},e.onRelease=e.onGestureStart=function(O,oe){if(d.offset&&R(),!oe)re.restart(!0);else{Se.cache++;var B=w(),y,ne;r&&(y=p(),ne=y+B*.05*-O.velocityX/.227,B*=N3(p,y,ne,Sr(f,c1)),I.vars.scrollX=v(ne)),y=d(),ne=y+B*.05*-O.velocityY/.227,B*=N3(d,y,ne,Sr(f,Dt)),I.vars.scrollY=D(ne),I.invalidate().duration(B).play(.01),(hi&&I.vars.scrollY>=l||y>=l-1)&&Q.to({},{onUpdate:ie,duration:B})}s&&s(O)},e.onWheel=function(){I._ts&&I.pause(),r1()-b>1e3&&(T=0,b=r1())},e.onChange=function(O,oe,B,y,ne){if(Ui!==T&&P(),oe&&r&&p(v(y[2]===oe?J+(O.startX-O.x):p()+oe-y[1])),B){d.offset&&R();var Fe=ne[2]===B,ve=Fe?U+O.startY-O.y:d()+B-ne[1],Me=D(ve);Fe&&ve!==Me&&(U+=Me-ve),d(Me)}(B||oe)&&Yr()},e.onEnable=function(){la(f,r?!1:"x"),_e.addEventListener("refresh",ie),Bt(Te,"resize",ie),d.smooth&&(d.target.style.scrollBehavior="auto",d.smooth=p.smooth=!1),S.enable()},e.onDisable=function(){la(f,!0),Nt(Te,"resize",ie),_e.removeEventListener("refresh",ie),S.kill()},e.lockAxis=e.lockAxis!==!1,a=new Et(e),a.iOS=hi,hi&&!d()&&d(1),hi&&Q.ticker.add(Lr),re=a._dc,I=Q.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:z3(d,d(),function(){return I.pause()})},onUpdate:Yr,onComplete:re.vars.onComplete}),a};_e.sort=function(n){if(i1(n))return xe.sort(n);var e=Te.pageYOffset||0;return _e.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Te.innerHeight}),xe.sort(n||function(t,r){return(t.vars.refreshPriority||0)*-1e6+(t.vars.containerAnimation?1e6:t._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})},_e.observe=function(n){return new Et(n)},_e.normalizeScroll=function(n){if(typeof n>"u")return h1;if(n===!0&&h1)return h1.enable();if(n===!1){h1&&h1.kill(),h1=n;return}var e=n instanceof Et?n:G6(n);return h1&&h1.target===e.target&&h1.kill(),Vi(e.target)&&(h1=e),e},_e.core={_getVelocityProp:B2,_inputObserver:Z3,_scrollers:Se,_proxies:xr,bridge:{ss:function(){tr||qi("scrollStart"),tr=r1()},ref:function(){return t1}}},y3()&&Q.registerPlugin(_e);var W6=Qe('
');const $6={hash:"svelte-5baesw",code:":host {display:block;width:100%;}.scroll-highlight.svelte-5baesw {display:block;width:100%;max-width:var(--max-width);margin:0 auto;color:var(--text-color);}"};function Y3(n,e){v1(e,!1),cr(n,$6);let t=E(e,"highlightStyle",12,"full"),r=E(e,"highlightColor",12,"#ffe44d"),i=E(e,"textColor",12,"#24343a"),o=E(e,"activeTextColor",12,"#000"),s=E(e,"maxWidth",12,"800"),a=E(e,"fontUrl",12,""),l=E(e,"fontFamily",12,'"Lora", Georgia, serif'),f=E(e,"fontSize",12,"1.25rem"),u=E(e,"lineHeight",12,"1.7"),c=E(e,"triggerStart",12,"top 70%"),h=E(e,"duration",12,"1s"),d=zs(),p,g=[],m;wr.registerPlugin(_e);function b(){g.forEach(O=>O.kill()),g=[]}function w(){return L(d)?.getRootNode()?.querySelector("slot")??null}function T(O){return O?O.assignedElements({flatten:!0}):[]}function C(O){const oe=T(O),B=[];return oe.forEach(y=>{y.matches?.("mark, .text-highlight, [data-highlight-text='true']")&&B.push(y),B.push(...y.querySelectorAll("mark, .text-highlight, [data-highlight-text='true']"))}),[...new Set(B)]}function S(O){const oe=T(O),B=[];return oe.forEach(y=>{y.matches?.("p, ul, ol, li, blockquote")&&B.push(y),B.push(...y.querySelectorAll("p, ul, ol, li, blockquote"))}),[...new Set(B)]}function x(O){S(O).forEach(B=>{B.style.color=i(),B.style.fontFamily=l(),B.style.fontSize=f(),B.style.lineHeight=u()})}function v(){return t()==="half"?`linear-gradient( + transparent calc(100% - 0.5em), + ${r()} 0 + )`:t()==="underline"?`linear-gradient( + transparent calc(100% - 0.15em), + ${r()} 0 + )`:`linear-gradient(${r()}, ${r()})`}function D(O){O.style.backgroundColor="transparent",O.style.backgroundRepeat="no-repeat",O.style.backgroundImage=v(),O.style.backgroundSize="0% 100%",O.style.transition=[`color calc(${h()} / 4) cubic-bezier(0.25, 1, 0.5, 1)`,`background-size ${h()} cubic-bezier(0.25, 1, 0.5, 1)`,`background-color calc(${h()} / 4) cubic-bezier(0.25, 1, 0.5, 1)`].join(", "),O.style.color=i(),O.style.padding="0",O.style.boxDecorationBreak="clone",O.style.webkitBoxDecorationBreak="clone"}function P(O){O.style.backgroundSize="100% 100%",O.style.color=o()}function R(O){b(),x(O),C(O).forEach(B=>{D(B);const y=_e.create({trigger:B,start:c(),onEnter:()=>P(B),onLeaveBack:()=>D(B)});g.push(y)}),_e.refresh()}function F(){a()&&(p&&(p.remove(),p=null),p=document.createElement("link"),p.rel="stylesheet",p.href=a(),document.head.appendChild(p))}function I(O){return O==null||O===""?"":typeof O=="number"?`${O}px`:O}Vr(()=>{F();const O=w();requestAnimationFrame(()=>{R(O)}),m=()=>{const oe=w();R(oe)},window.addEventListener("resize",m)}),Io(()=>{b(),m&&window.removeEventListener("resize",m),p&&p.remove()}),d4(()=>L(d),()=>{if(L(d)){F();const O=w();requestAnimationFrame(()=>{R(O)})}}),h4();var J={get highlightStyle(){return t()},set highlightStyle(O){t(O),k()},get highlightColor(){return r()},set highlightColor(O){r(O),k()},get textColor(){return i()},set textColor(O){i(O),k()},get activeTextColor(){return o()},set activeTextColor(O){o(O),k()},get maxWidth(){return s()},set maxWidth(O){s(O),k()},get fontUrl(){return a()},set fontUrl(O){a(O),k()},get fontFamily(){return l()},set fontFamily(O){l(O),k()},get fontSize(){return f()},set fontSize(O){f(O),k()},get lineHeight(){return u()},set lineHeight(O){u(O),k()},get triggerStart(){return c()},set triggerStart(O){c(O),k()},get duration(){return h()},set duration(O){h(O),k()}};V4();var U=W6();let re;var ie=Y(U);return A4(ie,()=>"slot"),q(U),K1(U,O=>j(d,O),()=>L(d)),tt(O=>re=st(U,"",re,O),[()=>({"--max-width":(Cl(s()),Qr(()=>I(s()))),"--text-color":i()})]),Ge(n,U),C1(J)}customElements.define("csis-scroll-highlight",P1(Y3,{highlightStyle:{attribute:"highlight-style",reflect:!0,type:"String"},highlightColor:{attribute:"highlight-color",reflect:!0,type:"String"},textColor:{attribute:"text-color",reflect:!0,type:"String"},activeTextColor:{attribute:"active-text-color",reflect:!0,type:"String"},maxWidth:{attribute:"max-width",reflect:!0,type:"Number"},fontUrl:{attribute:"font-url",reflect:!0,type:"String"},fontFamily:{attribute:"font-family",reflect:!0,type:"String"},fontSize:{attribute:"font-size",reflect:!0,type:"String"},lineHeight:{attribute:"line-height",reflect:!0,type:"String"},triggerStart:{attribute:"trigger-start",reflect:!0,type:"String"},duration:{attribute:"duration",reflect:!0,type:"String"}},[],[],!0));const X6=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"}));var j6=Qe('
');const K6={hash:"svelte-1ytef7p",code:`:host {display:block;} + + /* ====== BASE (XS: < 620px) ====== */.container.svelte-1ytef7p {display:flex;justify-content:flex-start;align-items:center;min-height:var(--min-height, 100vh);padding:0 1.5rem;background-color:var(--bg-color, #333);box-sizing:border-box;}.typing.svelte-1ytef7p {font-family:var(--typing-font-family);font-weight:bold;font-size:clamp(1rem, 5vw, var(--font-size, 2.5rem));color:var(--font-color, #000);text-align:left; + + /* ✅ this is the magic for responsiveness + blank lines */white-space:pre-wrap; /* preserves \\n and wraps */overflow-wrap:anywhere; /* prevents overflow on long tokens */max-width:100%;margin-inline:auto;} + + @keyframes svelte-1ytef7p-cursorBlink { + 0%, + 50% { + border-left-color: transparent; + } + 51%, + 100% { + border-left-color: var(--cursor-color, #000); + } + }.cursor.svelte-1ytef7p {display:inline-block;border-left:2px solid var(--cursor-color, #000);margin-left:0.08em;height:1em;vertical-align:-0.1em; + animation: svelte-1ytef7p-cursorBlink 1s step-end infinite;} + + /* Optional: if you want cursor to blink only AFTER typing is done, + remove the animation by default and enable when done is true. */.cursor.svelte-1ytef7p:not(.done) { + /* comment out next line if you want it blinking while typing */ + animation: none;}.cursor.done.svelte-1ytef7p { + animation: svelte-1ytef7p-cursorBlink 1s step-end infinite;} + + /* ====== SMALL: 620px – 899.98px ====== */ + @media (min-width: 620px) and (max-width: 899.98px) {.container.svelte-1ytef7p {padding:0 2rem;}.typing.svelte-1ytef7p {font-size:clamp(1.25rem, 3.5vw, var(--font-size, 3rem));} + } + + /* ====== MEDIUM: 900px & above ====== */ + @media (min-width: 900px) {.container.svelte-1ytef7p {padding:0 3rem;}.typing.svelte-1ytef7p {font-size:var(--font-size, 3rem);} + }`};function G3(n,e){v1(e,!0),cr(n,K6);let t=E(e,"text",7,""),r=E(e,"bgColor",7,"#ffcc00"),i=E(e,"cursorColor",7,"#000"),o=E(e,"animationDuration",7,"5s"),s=E(e,"fontUrl",7,""),a=E(e,"fontFamily",7,"'IBM Plex Sans', system-ui, sans-serif"),l=E(e,"fontSize",7,"1rem"),f=E(e,"fontColor",7,"#000"),u=E(e,"minHeight",7,"100vh");Vr(()=>{if(!s()||document.querySelector(`link[data-csis-font="${s()}"]`))return;const I=document.createElement("link");I.rel="stylesheet",I.href=s(),I.dataset.csisFont=s(),document.head.appendChild(I)});function c(F){if(!F)return 5e3;const I=String(F).trim().toLowerCase();if(I.endsWith("ms")){const U=parseFloat(I.slice(0,-2));return Number.isFinite(U)?U:5e3}if(I.endsWith("s")){const U=parseFloat(I.slice(0,-1));return Number.isFinite(U)?U*1e3:5e3}const J=parseFloat(I);return Number.isFinite(J)?J*1e3:5e3}function h(F){return String(F).replaceAll("\\r\\n",` +`).replaceAll("\\n",` +`).replaceAll("\\r",` +`)}function d(){if(t()&&String(t()).trim().length)return h(t())}let p=Ne(jr(d())),g=Ne(""),m=Ne(!1),b=null;function w(){b&&(clearInterval(b),b=null)}async function T(){w(),j(m,!1),j(g,""),await ml();const F=L(p)??"";if(!F.length){j(m,!0);return}const I=c(o()),J=Math.max(F.length,1),U=Math.max(10,Math.floor(I/J));let re=0;b=setInterval(()=>{re+=1,j(g,F.slice(0,re),!0),re>=F.length&&(w(),j(m,!0))},U)}Vr(()=>(j(p,d(),!0),T(),w));var C={get text(){return t()},set text(F=""){t(F),k()},get bgColor(){return r()},set bgColor(F="#ffcc00"){r(F),k()},get cursorColor(){return i()},set cursorColor(F="#000"){i(F),k()},get animationDuration(){return o()},set animationDuration(F="5s"){o(F),k()},get fontUrl(){return s()},set fontUrl(F=""){s(F),k()},get fontFamily(){return a()},set fontFamily(F="'IBM Plex Sans', system-ui, sans-serif"){a(F),k()},get fontSize(){return l()},set fontSize(F="1rem"){l(F),k()},get fontColor(){return f()},set fontColor(F="#000"){f(F),k()},get minHeight(){return u()},set minHeight(F="100vh"){u(F),k()}},S=j6(),x=Y(S),v=Y(x),D=Y(v,!0);q(v);var P=pe(v,2);let R;return q(x),q(S),tt(()=>{st(S,`--bg-color: ${r()}; + --font-size: ${l()}; + --font-color: ${f()}; + --typing-font-family: ${a()}; + --cursor-color: ${i()}; + --min-height: ${u()};`),Qt(D,L(g)),R=Vo(P,1,"cursor svelte-1ytef7p",null,R,{done:L(m)})}),Ge(n,S),C1(C)}customElements.define("csis-text-typing",P1(G3,{text:{attribute:"text",type:"String"},bgColor:{attribute:"bg-color",type:"String"},animationDuration:{attribute:"animation-duration",type:"String"},fontUrl:{attribute:"font-url",type:"String"},fontFamily:{attribute:"font-family",type:"String"},fontSize:{attribute:"font-size",type:"String"},fontColor:{attribute:"font-color",type:"String"},cursorColor:{attribute:"cursor-color",type:"String"},minHeight:{attribute:"min-height",type:"String"}},[],[],!0));const Q6=Object.freeze(Object.defineProperty({__proto__:null,default:G3},Symbol.toStringTag,{value:"Module"}));var J6=Qe(''),ef=Qe(''),tf=Qe(''),rf=Qe(''),nf=Qe(''),of=Qe(''),sf=Qe(''),af=Qe(''),lf=Qe(''),ff=Qe('
');const uf={hash:"svelte-1dfktg4",code:`:host {display:block;width:100%;}.wrap.svelte-1dfktg4 {width:100%;} + + /* Maintain a clean aspect ratio so images align */.stage.svelte-1dfktg4 {position:relative;width:100%;aspect-ratio:var(--aspect);background:#111;overflow:hidden;user-select:none;touch-action:none; /* we’re doing our own pointer handling */} + + /* when stacked, nudge the remaining bar sideways so it doesn’t sit under the top knob */.stage[data-stacked="true"].svelte-1dfktg4 .handle--h2:where(.svelte-1dfktg4) .bar:where(.svelte-1dfktg4) {transform:translateX(calc(-50% + 5px));}.layer.svelte-1dfktg4 {position:absolute;inset:0;}.layer.svelte-1dfktg4 img:where(.svelte-1dfktg4) {width:100%;height:100%;object-fit:cover; /* change to contain if you prefer */display:block;} + + /* ------------------------------------------------------ */ + /* Labels */ + /* ------------------------------------------------------ */.labels.svelte-1dfktg4 {position:absolute;top:10px;left:10px;right:10px;height:34px; + /* display: block; */pointer-events:none;z-index:5;overflow:hidden;}.label-slot.svelte-1dfktg4 {position:absolute;top:0;height:34px;overflow:hidden;display:flex;align-items:center;padding:0 10px;box-sizing:border-box;}.label-slot.label-a.svelte-1dfktg4 {justify-content:flex-start;}.label-slot.label-b.svelte-1dfktg4 {justify-content:flex-start;padding:0 20px;}.label-slot.label-c.svelte-1dfktg4 {justify-content:flex-start;padding:0 24px;}.label.svelte-1dfktg4 { + /* remove: position:absolute; top:0; */display:inline-flex;align-items:center;height:34px;padding:0 10px;font:600 var(--label-font-size, 12px) / 1 -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;letter-spacing:0.02em;color:#fff;background:rgba(0, 0, 0, 0.55);border:1px solid rgba(255, 255, 255, 0.18);border-radius:999px;backdrop-filter:blur(6px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} + + /* ------------------------------------------------------ */ + /* Handles */ + /* ------------------------------------------------------ */.handle.svelte-1dfktg4 {position:absolute;top:0;transform:translateX(-50%);height:100%;width:44px;background:transparent;border:0;padding:0;z-index:10;cursor:ew-resize;}.handle.svelte-1dfktg4:focus-visible .knob:where(.svelte-1dfktg4) {outline:2px solid #fff;outline-offset:2px;}.bar.svelte-1dfktg4 {position:absolute;top:0;left:50%;transform:translateX(-50%);width:2px;height:100%;background:rgba(255, 255, 255, 0.9);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.4);}.knob.svelte-1dfktg4 {position:absolute;top:50%;left:50%;transform:translate(-50%, calc(-50% + var(--knob-y, 0px)));transition:transform 120ms ease;width:28px;height:40px;border-radius:999px;background:rgba(0, 0, 0, 0.85);border:1px solid rgba(255, 255, 255, 0.25);backdrop-filter:blur(6px);}.knob.svelte-1dfktg4::before, + .knob.svelte-1dfktg4::after {content:"";position:absolute;top:50%;width:2px;height:14px;background:rgba(255, 255, 255, 0.9);transform:translateY(-50%);border-radius:2px;}.knob.svelte-1dfktg4::before {left:11px;}.knob.svelte-1dfktg4::after {right:11px;} + + /* ------------------------------------------------------ */ + /* Magnifier */ + /* ------------------------------------------------------ */.magnifier.svelte-1dfktg4 {position:absolute;left:var(--mag-left);top:var(--mag-top);width:var(--mag-size);height:var(--mag-size);transform:translate(-50%, -50%);border:3px solid var(--mag-border);border-radius:50%;overflow:hidden;z-index:20;pointer-events:none;background:rgba(0, 0, 0, 0.2);}.magnifier__inner.svelte-1dfktg4 {position:relative;width:100%;height:100%;}.mag-layer.svelte-1dfktg4 {position:absolute;left:var(--mag-off-x);top:var(--mag-off-y);width:var(--mag-img-w);height:var(--mag-img-h);object-fit:cover;display:block;user-select:none;}.mag-divider.svelte-1dfktg4 {position:absolute;top:0;bottom:0;width:2px;background:rgba(255, 255, 255, 0.9);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.4);transform:translateX(-50%);pointer-events:none;z-index:30; /* above magnified imagery */}`};function W3(n,e){v1(e,!0),cr(n,uf);let t=E(e,"imgA",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1704817682/dev-team/Screenshot_2024-01-09_at_11.26.36_AM.png"),r=E(e,"imgB",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1704817683/dev-team/Screenshot_2024-01-09_at_11.25.01_AM.png"),i=E(e,"imgC",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1770316926/dev-team/ilze-EU-F188r1Ig-unsplash.jpg"),o=E(e,"labelA",7,"Waffles"),s=E(e,"labelB",7,"Wallace and Wobbles"),a=E(e,"labelC",7,"Fluffy Cat"),l=E(e,"labelFontSize",7,"12px"),f=E(e,"showLabels",7,!1),u=E(e,"split1",7,33.333),c=E(e,"split2",7,66.666),h=E(e,"aspect",7,"16/9"),d=E(e,"magnifier",7,!1),p=E(e,"magnifierZoom",7,2),g=E(e,"magnifierSize",7,150),m=E(e,"magnifierBorderColor",7,"#fff"),b=Ne(!1),w=Ne(0),T=Ne(0),C,S=Ne(0),x=Ne(0),v;const D=()=>g()/2;let P=Ne(null),R=Ne(null),F=Ne(null),I=Ne(null);const J=(V,N,ce)=>Math.min(ce,Math.max(N,V)),U=.5,re=()=>Math.abs(c()-u())<=U,ie=1;function O(){const V=C?.getBoundingClientRect();V&&(j(S,V.width,!0),j(x,V.height,!0))}function oe(V){const N=C?.getBoundingClientRect();return N?J(V-N.left,0,N.width)/N.width*100:0}function B(){u(J(u(),0,100)),c(J(c(),0,100))}function y(V){if(!d()||!C)return;if(L(R)){j(b,!1);return}const N=C.getBoundingClientRect();let ce=V.clientX-N.left,ue=V.clientY-N.top;const Ke=D();ce=J(ce,Ke,N.width-Ke),ue=J(ue,Ke,N.height-Ke),j(w,ce,!0),j(T,ue,!0),j(b,!0)}function ne(){j(b,!1)}function Fe(V,N){j(P,V,!0),re()?(j(R,"stack"),j(F,(u()+c())/2),j(I,V,!0)):(j(R,V,!0),j(F,null),j(I,null)),N.currentTarget.setPointerCapture?.(N.pointerId),N.preventDefault()}function ve(V){if(y(V),!L(R))return;const N=oe(V.clientX);if(L(R)==="stack"){if(L(F)!=null&&L(I)==="h1"&&NL(F)+ie){j(R,"h2"),u(L(F)),c(N),B();return}u(N),c(N),B();return}L(R)==="h1"&&(N>=c()?(u(N),c(N)):u(N)),L(R)==="h2"&&(N<=u()?(c(N),u(N)):c(N)),B()}function Me(){j(P,null),j(R,null),j(F,null),j(I,null)}function fe(V,N){const ce=N.shiftKey?5:1;(N.key==="ArrowLeft"||N.key==="ArrowDown")&&(V==="h1"&&u(u()-ce),V==="h2"&&c(c()-ce),j(P,V,!0),B(),N.preventDefault()),(N.key==="ArrowRight"||N.key==="ArrowUp")&&(V==="h1"&&u(u()+ce),V==="h2"&&c(c()+ce),j(P,V,!0),B(),N.preventDefault()),N.key==="Home"&&(V==="h1"&&u(0),V==="h2"&&c(0),j(P,V,!0),B(),N.preventDefault()),N.key==="End"&&(V==="h1"&&u(100),V==="h2"&&c(100),j(P,V,!0),B(),N.preventDefault()),re()?(V==="h1"&&c(u()),V==="h2"&&u(c())):u()>c()&&u(c())}Vr(()=>{O(),v=new ResizeObserver(O),C&&v.observe(C),window.addEventListener("resize",O)}),Io(()=>{v?.disconnect(),window.removeEventListener("resize",O)}),Hr(()=>{B()});var Ze={get imgA(){return t()},set imgA(V="https://res.cloudinary.com/csisideaslab/image/upload/v1704817682/dev-team/Screenshot_2024-01-09_at_11.26.36_AM.png"){t(V),k()},get imgB(){return r()},set imgB(V="https://res.cloudinary.com/csisideaslab/image/upload/v1704817683/dev-team/Screenshot_2024-01-09_at_11.25.01_AM.png"){r(V),k()},get imgC(){return i()},set imgC(V="https://res.cloudinary.com/csisideaslab/image/upload/v1770316926/dev-team/ilze-EU-F188r1Ig-unsplash.jpg"){i(V),k()},get labelA(){return o()},set labelA(V="Waffles"){o(V),k()},get labelB(){return s()},set labelB(V="Wallace and Wobbles"){s(V),k()},get labelC(){return a()},set labelC(V="Fluffy Cat"){a(V),k()},get labelFontSize(){return l()},set labelFontSize(V="12px"){l(V),k()},get showLabels(){return f()},set showLabels(V=!1){f(V),k()},get split1(){return u()},set split1(V=33.333){u(V),k()},get split2(){return c()},set split2(V=66.666){c(V),k()},get aspect(){return h()},set aspect(V="16/9"){h(V),k()},get magnifier(){return d()},set magnifier(V=!1){d(V),k()},get magnifierZoom(){return p()},set magnifierZoom(V=2){p(V),k()},get magnifierSize(){return g()},set magnifierSize(V=150){g(V),k()},get magnifierBorderColor(){return m()},set magnifierBorderColor(V="#fff"){m(V),k()}},Re=ff(),be=Y(Re);be.__pointermove=ve,be.__pointerup=Me;var ze=Y(be),Zt=Y(ze);{var Ct=V=>{var N=J6();tt(()=>{he(N,"src",t()),he(N,"alt",o())}),Ge(V,N)};y1(Zt,V=>{t()&&V(Ct)})}q(ze);var rt=pe(ze,2);st(rt,"clip-path: inset(0 0 0 var(--split1));");var se=Y(rt);{var Le=V=>{var N=ef();tt(()=>{he(N,"src",r()),he(N,"alt",s())}),Ge(V,N)};y1(se,V=>{r()&&V(Le)})}q(rt);var We=pe(rt,2);st(We,"clip-path: inset(0 0 0 var(--split2));");var Ae=Y(We);{var A=V=>{var N=tf();tt(()=>{he(N,"src",i()),he(N,"alt",a())}),Ge(V,N)};y1(Ae,V=>{i()&&V(A)})}q(We);var Xe=pe(We,2);{var Lt=V=>{var N=rf(),ce=Y(N);st(ce,"left: 0%; width: var(--split1);");var ue=Y(ce),Ke=Y(ue,!0);q(ue),q(ce);var ft=pe(ce,2);st(ft,"left: var(--split1); width: calc(var(--split2) - var(--split1));");var H=Y(ft),qe=Y(H,!0);q(H),q(ft);var ge=pe(ft,2);st(ge,"left: var(--split2); width: calc(100% - var(--split2));");var ut=Y(ge),et=Y(ut,!0);q(ut),q(ge),q(N),tt(()=>{Qt(Ke,o()),Qt(qe,s()),Qt(et,a())}),Ge(V,N)};y1(Xe,V=>{f()&&V(Lt)})}var Pt=pe(Xe,2);{var je=V=>{var N=lf(),ce=Y(N),ue=Y(ce);{var Ke=Ee=>{var Ue=nf();tt(()=>he(Ue,"src",t())),Ge(Ee,Ue)};y1(ue,Ee=>{t()&&Ee(Ke)})}var ft=pe(ue,2);{var H=Ee=>{var Ue=of();st(Ue,"clip-path: inset(0 0 0 var(--split1));"),tt(()=>he(Ue,"src",r())),Ge(Ee,Ue)};y1(ft,Ee=>{r()&&Ee(H)})}var qe=pe(ft,2);{var ge=Ee=>{var Ue=sf();st(Ue,"clip-path: inset(0 0 0 var(--split2));"),tt(()=>he(Ue,"src",i())),Ge(Ee,Ue)};y1(qe,Ee=>{i()&&Ee(ge)})}q(ce);var ut=pe(ce,2);st(ut,"left: var(--mag-div1-x);");var et=pe(ut,2);{var ct=Ee=>{var Ue=af();st(Ue,"left: var(--mag-div2-x);"),Ge(Ee,Ue)};y1(et,Ee=>{re()||Ee(ct)})}q(N),tt(()=>st(N,` + --mag-size:${g()}px; + --mag-border:${m()}; + --mag-left:${L(w)}px; + --mag-top:${L(T)}px; + --mag-img-w:${L(S)*p()}px; + --mag-img-h:${L(x)*p()}px; + --mag-off-x:${-(L(w)*p()-g()/2)}px; + --mag-off-y:${-(L(T)*p()-g()/2)}px; + --mag-div1-x:${u()/100*(L(S)*p())+-(L(w)*p()-g()/2)}px; + --mag-div2-x:${c()/100*(L(S)*p())+-(L(w)*p()-g()/2)}px; + `)),Ge(V,N)};y1(Pt,V=>{d()&&L(b)&&V(je)})}var ht=pe(Pt,2);ht.__pointerdown=V=>Fe("h1",V),ht.__keydown=V=>fe("h1",V);var Tt=pe(ht,2);return Tt.__pointerdown=V=>Fe("h2",V),Tt.__keydown=V=>fe("h2",V),q(be),K1(be,V=>C=V,()=>C),q(Re),tt((V,N,ce)=>{st(Re,`--split1:${u()}%; --split2:${c()}%; --aspect:${h()}; --label-font-size:${l()}`),he(be,"data-stacked",V),st(ht,N),he(ht,"aria-label",`Adjust split between ${o()} and ${s()}`),st(Tt,ce),he(Tt,"aria-label",`Adjust split between ${s()} and ${a()}`)},[()=>re()?"true":"false",()=>`left: var(--split1); --knob-y: ${re()?"-28px":"0px"};`,()=>`left: var(--split2); --knob-y: ${re()?"28px":"0px"};`]),a1("pointercancel",be,Me),a1("pointerleave",be,()=>{Me(),ne()}),a1("pointerenter",be,y),Ge(n,Re),C1(Ze)}Ws(["pointermove","pointerup","pointerdown","keydown"]),customElements.define("csis-triple-compare",P1(W3,{imgA:{attribute:"img-a",type:"String"},imgB:{attribute:"img-b",type:"String"},imgC:{attribute:"img-c",type:"String"},labelA:{attribute:"label-a",type:"String"},labelB:{attribute:"label-b",type:"String"},labelC:{attribute:"label-c",type:"String"},labelFontSize:{attribute:"label-font-size",type:"String"},showLabels:{attribute:"show-labels",type:"Boolean"},split1:{attribute:"split-1",type:"Number"},split2:{attribute:"split-2",type:"Number"},aspect:{attribute:"aspect",type:"String"},magnifier:{attribute:"magnifier",type:"Boolean"},magnifierZoom:{attribute:"magnifier-zoom",type:"Number"},magnifierSize:{attribute:"magnifier-size",type:"Number"},magnifierBorderColor:{attribute:"magnifier-border-color",type:"String"}},[],[],!0));const cf=Object.freeze(Object.defineProperty({__proto__:null,default:W3},Symbol.toStringTag,{value:"Module"}));var df=Qe('');const hf={hash:"svelte-1dygfdw",code:`:host {display:block;min-height:100vh;}.svelte-1dygfdw {box-sizing:border-box;}.gallery.svelte-1dygfdw {position:relative;width:100%;height:100vh;overflow:hidden;background:#111;font-family:system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + sans-serif;}.cards.svelte-1dygfdw {position:absolute;width:14rem;height:18rem;top:40%;left:50%;transform:translate(-50%, -50%);}.cards.svelte-1dygfdw li:where(.svelte-1dygfdw) {list-style:none;padding:0;margin:0;width:14rem;height:18rem;text-align:center;line-height:18rem;font-size:2rem;position:absolute;top:0;left:0;border-radius:0.8rem;}.cards.svelte-1dygfdw li:where(.svelte-1dygfdw) img:where(.svelte-1dygfdw) {max-width:90%;opacity:0;}.actions.svelte-1dygfdw {position:absolute;bottom:25px;left:50%;transform:translateX(-50%);}button.svelte-1dygfdw {display:inline-block;outline:none;padding:12px 25px;background:#111;border:solid 2px #eee;color:#eee;border-radius:99px;font-weight:600;cursor:pointer;line-height:18px;margin:1rem;}button.svelte-1dygfdw:hover {background:#eee;color:#111;}`};function $3(n,e){v1(e,!0),cr(n,hf),wr.registerPlugin(_e);let t=E(e,"title",7,""),r=E(e,"bgImage",7,""),i=E(e,"bgImageAlt",7,""),o,s,a,l;Vr(()=>{if(!o)return;const c=wr.utils.toArray(o.querySelectorAll(".cards li")),h=o.querySelectorAll(".cards li img"),d=o.querySelector(".next"),p=o.querySelector(".prev");if(!c.length)return;wr.to(h,{opacity:1,delay:.1});let g=0;const m=.1,b=wr.utils.snap(m);l=S(c,m),a=wr.to(l,{totalTime:0,duration:.5,ease:"power3",paused:!0}),s=_e.create({start:0,end:"+=3000",trigger:o,pin:o,onUpdate(x){x.progress===1&&x.direction>0&&!x.wrapping?w(x):x.progress<1e-5&&x.direction<0&&!x.wrapping?T(x):(a.vars.totalTime=b((g+x.progress)*l.duration()),a.invalidate().restart(),x.wrapping=!1)}});function w(x){g++,x.wrapping=!0,x.scroll(x.start+1)}function T(x){g--,g<0&&(g=9,l.totalTime(l.totalTime()+l.duration()*10),a.pause()),x.wrapping=!0,x.scroll(x.end-1)}function C(x){const v=l.duration(),D=(x-v*g)/v;D>1?w(s):D<0?T(s):s.scroll(s.start+D*(s.end-s.start))}d&&d.addEventListener("click",()=>C(a.vars.totalTime+m)),p&&p.addEventListener("click",()=>C(a.vars.totalTime-m));function S(x,v){const D=Math.ceil(1/v),P=x.length*v+.5,R=(x.length+D)*v+1,F=wr.timeline({paused:!0}),I=wr.timeline({paused:!0,repeat:-1,onRepeat(){this._time===this._dur&&(this._tTime+=this._dur-.01)}}),J=x.length+D*2;wr.set(x,{xPercent:400,opacity:0,scale:0});for(let U=0;U{s&&s.kill(),a&&a.kill(),l&&l.kill(),_e.getAll().forEach(c=>c.kill())});var f={get title(){return t()},set title(c=""){t(c),k()},get bgImage(){return r()},set bgImage(c=""){r(c),k()},get bgImageAlt(){return i()},set bgImageAlt(c=""){i(c),k()}},u=df();return K1(u,c=>o=c,()=>o),Ge(n,u),C1(f)}customElements.define("csis-infinity-scroll",P1($3,{title:{attribute:"title",type:"String"},bgImage:{attribute:"bg-image",type:"String"},bgImageAlt:{attribute:"background-image-alt",type:"String"}},[],[],!0));const gf=Object.freeze(Object.defineProperty({__proto__:null,default:$3},Symbol.toStringTag,{value:"Module"}));var X3={},fa={},ua=34,_o=10,ca=13;function j3(n){return new Function("d","return {"+n.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function pf(n,e){var t=j3(n);return function(r,i){return e(t(r),i,n)}}function K3(n){var e=Object.create(null),t=[];return n.forEach(function(r){for(var i in r)i in e||t.push(e[i]=i)}),t}function M1(n,e){var t=n+"",r=t.length;return r9999?"+"+M1(n,6):M1(n,4)}function _f(n){var e=n.getUTCHours(),t=n.getUTCMinutes(),r=n.getUTCSeconds(),i=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":mf(n.getUTCFullYear())+"-"+M1(n.getUTCMonth()+1,2)+"-"+M1(n.getUTCDate(),2)+(i?"T"+M1(e,2)+":"+M1(t,2)+":"+M1(r,2)+"."+M1(i,3)+"Z":r?"T"+M1(e,2)+":"+M1(t,2)+":"+M1(r,2)+"Z":t||e?"T"+M1(e,2)+":"+M1(t,2)+"Z":"")}function Q3(n){var e=new RegExp('["'+n+` +\r]`),t=n.charCodeAt(0);function r(c,h){var d,p,g=i(c,function(m,b){if(d)return d(m,b-1);p=m,d=h?pf(m,h):j3(m)});return g.columns=p||[],g}function i(c,h){var d=[],p=c.length,g=0,m=0,b,w=p<=0,T=!1;c.charCodeAt(p-1)===_o&&--p,c.charCodeAt(p-1)===ca&&--p;function C(){if(w)return fa;if(T)return T=!1,X3;var x,v=g,D;if(c.charCodeAt(v)===ua){for(;g++=p?w=!0:(D=c.charCodeAt(g++))===_o?T=!0:D===ca&&(T=!0,c.charCodeAt(g)===_o&&++g),c.slice(v+1,x-1).replace(/""/g,'"')}for(;g{const o=(r.date||"").trim(),s=new Date(`${o}T00:00:00`).getTime();return{id:r.id?Number(r.id):i,title:r.title?.trim()||"",description:r.description?.trim()||"",date:o,timestamp:s,dateText:J3(o,!1),dateTextLongMonth:J3(o,!0),year:new Date(`${o}T00:00:00`).getFullYear(),imageLink:r.image?.trim()||"",imageAlt:r.image_alt?.trim()||""}}).filter(r=>r.date&&!Number.isNaN(r.timestamp)).sort((r,i)=>r.timestamp-i.timestamp).map((r,i,o)=>({...r,isNewYear:i===0||r.year!==o[i-1].year}))}const{entries:e5,setPrototypeOf:t5,isFrozen:Sf,getPrototypeOf:Tf,getOwnPropertyDescriptor:kf}=Object;let{freeze:p1,seal:nr,create:vo}=Object,{apply:da,construct:ha}=typeof Reflect<"u"&&Reflect;p1||(p1=function(e){return e}),nr||(nr=function(e){return e}),da||(da=function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o1?t-1:0),i=1;i1?t-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Ls;t5&&t5(n,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=t(i);o!==i&&(Sf(e)||(e[r]=o),i=o)}n[i]=!0}return n}function Of(n){for(let e=0;e/gm),Vf=nr(/\$\{[\w\W]*/gm),zf=nr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bf=nr(/^aria-[\-\w]+$/),a5=nr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nf=nr(/^(?:\w+script|data):/i),Zf=nr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),l5=nr(/^html$/i),qf=nr(/^[a-z][.\w]*(-[.\w]+)+$/i);var f5=Object.freeze({__proto__:null,ARIA_ATTR:Bf,ATTR_WHITESPACE:Zf,CUSTOM_ELEMENT:qf,DATA_ATTR:zf,DOCTYPE_NAME:l5,ERB_EXPR:If,IS_ALLOWED_URI:a5,IS_SCRIPT_OR_DATA:Nf,MUSTACHE_EXPR:Ff,TMPLIT_EXPR:Vf});const xo={element:1,text:3,progressingInstruction:7,comment:8,document:9},Uf=function(){return typeof window>"u"?null:window},Yf=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},u5=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c5(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uf();const e=W=>c5(W);if(e.version="3.4.0",e.removed=[],!n||!n.document||n.document.nodeType!==xo.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const r=t,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:f,NamedNodeMap:u=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:d}=n,p=l.prototype,g=wo(p,"cloneNode"),m=wo(p,"remove"),b=wo(p,"nextSibling"),w=wo(p,"childNodes"),T=wo(p,"parentNode");if(typeof s=="function"){const W=t.createElement("template");W.content&&W.content.ownerDocument&&(t=W.content.ownerDocument)}let C,S="";const{implementation:x,createNodeIterator:v,createDocumentFragment:D,getElementsByTagName:P}=t,{importNode:R}=r;let F=u5();e.isSupported=typeof e5=="function"&&typeof T=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:J,TMPLIT_EXPR:U,DATA_ATTR:re,ARIA_ATTR:ie,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:oe,CUSTOM_ELEMENT:B}=f5;let{IS_ALLOWED_URI:y}=f5,ne=null;const Fe=ke({},[...i5,...ma,..._a,...va,...n5]);let ve=null;const Me=ke({},[...o5,...Ca,...s5,...Ss]);let fe=Object.seal(vo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ze=null,Re=null;const be=Object.seal(vo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ze=!0,Zt=!0,Ct=!1,rt=!0,se=!1,Le=!0,We=!1,Ae=!1,A=!1,Xe=!1,Lt=!1,Pt=!1,je=!0,ht=!1;const Tt="user-content-";let V=!0,N=!1,ce={},ue=null;const Ke=ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ft=null;const H=ke({},["audio","video","img","source","image","track"]);let qe=null;const ge=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ut="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",ct="http://www.w3.org/1999/xhtml";let Ee=ct,Ue=!1,Ft=null;const de=ke({},[ut,et,ct],ga);let It=ke({},["mi","mo","mn","ms","mtext"]),gt=ke({},["annotation-xml"]);const Vt=ke({},["title","style","font","a","script"]);let kt=null;const E1=["application/xhtml+xml","text/html"],U1="text/html";let M=null,ae=null;const G=t.createElement("form"),ee=function(_){return _ instanceof RegExp||_ instanceof Function},me=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ae&&ae===_)){if((!_||typeof _!="object")&&(_={}),_=Tr(_),kt=E1.indexOf(_.PARSER_MEDIA_TYPE)===-1?U1:_.PARSER_MEDIA_TYPE,M=kt==="application/xhtml+xml"?ga:Ls,ne=hr(_,"ALLOWED_TAGS")?ke({},_.ALLOWED_TAGS,M):Fe,ve=hr(_,"ALLOWED_ATTR")?ke({},_.ALLOWED_ATTR,M):Me,Ft=hr(_,"ALLOWED_NAMESPACES")?ke({},_.ALLOWED_NAMESPACES,ga):de,qe=hr(_,"ADD_URI_SAFE_ATTR")?ke(Tr(ge),_.ADD_URI_SAFE_ATTR,M):ge,ft=hr(_,"ADD_DATA_URI_TAGS")?ke(Tr(H),_.ADD_DATA_URI_TAGS,M):H,ue=hr(_,"FORBID_CONTENTS")?ke({},_.FORBID_CONTENTS,M):Ke,Ze=hr(_,"FORBID_TAGS")?ke({},_.FORBID_TAGS,M):Tr({}),Re=hr(_,"FORBID_ATTR")?ke({},_.FORBID_ATTR,M):Tr({}),ce=hr(_,"USE_PROFILES")?_.USE_PROFILES:!1,ze=_.ALLOW_ARIA_ATTR!==!1,Zt=_.ALLOW_DATA_ATTR!==!1,Ct=_.ALLOW_UNKNOWN_PROTOCOLS||!1,rt=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=_.SAFE_FOR_TEMPLATES||!1,Le=_.SAFE_FOR_XML!==!1,We=_.WHOLE_DOCUMENT||!1,Xe=_.RETURN_DOM||!1,Lt=_.RETURN_DOM_FRAGMENT||!1,Pt=_.RETURN_TRUSTED_TYPE||!1,A=_.FORCE_BODY||!1,je=_.SANITIZE_DOM!==!1,ht=_.SANITIZE_NAMED_PROPS||!1,V=_.KEEP_CONTENT!==!1,N=_.IN_PLACE||!1,y=_.ALLOWED_URI_REGEXP||a5,Ee=_.NAMESPACE||ct,It=_.MATHML_TEXT_INTEGRATION_POINTS||It,gt=_.HTML_INTEGRATION_POINTS||gt,fe=_.CUSTOM_ELEMENT_HANDLING||vo(null),_.CUSTOM_ELEMENT_HANDLING&&ee(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&ee(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(Zt=!1),Lt&&(Xe=!0),ce&&(ne=ke({},n5),ve=vo(null),ce.html===!0&&(ke(ne,i5),ke(ve,o5)),ce.svg===!0&&(ke(ne,ma),ke(ve,Ca),ke(ve,Ss)),ce.svgFilters===!0&&(ke(ne,_a),ke(ve,Ca),ke(ve,Ss)),ce.mathMl===!0&&(ke(ne,va),ke(ve,s5),ke(ve,Ss))),be.tagCheck=null,be.attributeCheck=null,_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?be.tagCheck=_.ADD_TAGS:(ne===Fe&&(ne=Tr(ne)),ke(ne,_.ADD_TAGS,M))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?be.attributeCheck=_.ADD_ATTR:(ve===Me&&(ve=Tr(ve)),ke(ve,_.ADD_ATTR,M))),_.ADD_URI_SAFE_ATTR&&ke(qe,_.ADD_URI_SAFE_ATTR,M),_.FORBID_CONTENTS&&(ue===Ke&&(ue=Tr(ue)),ke(ue,_.FORBID_CONTENTS,M)),_.ADD_FORBID_CONTENTS&&(ue===Ke&&(ue=Tr(ue)),ke(ue,_.ADD_FORBID_CONTENTS,M)),V&&(ne["#text"]=!0),We&&ke(ne,["html","head","body"]),ne.table&&(ke(ne,["tbody"]),delete Ze.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw yo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=_.TRUSTED_TYPES_POLICY,S=C.createHTML("")}else C===void 0&&(C=Yf(d,i)),C!==null&&typeof S=="string"&&(S=C.createHTML(""));p1&&p1(_),ae=_}},Z=ke({},[...ma,..._a,...Df]),te=ke({},[...va,...Hf]),K=function(_){let z=T(_);(!z||!z.tagName)&&(z={namespaceURI:Ee,tagName:"template"});const $=Ls(_.tagName),nt=Ls(z.tagName);return Ft[_.namespaceURI]?_.namespaceURI===et?z.namespaceURI===ct?$==="svg":z.namespaceURI===ut?$==="svg"&&(nt==="annotation-xml"||It[nt]):!!Z[$]:_.namespaceURI===ut?z.namespaceURI===ct?$==="math":z.namespaceURI===et?$==="math"&>[nt]:!!te[$]:_.namespaceURI===ct?z.namespaceURI===et&&!gt[nt]||z.namespaceURI===ut&&!It[nt]?!1:!te[$]&&(Vt[$]||!Z[$]):!!(kt==="application/xhtml+xml"&&Ft[_.namespaceURI]):!1},X=function(_){bo(e.removed,{element:_});try{T(_).removeChild(_)}catch{m(_)}},Ie=function(_,z){try{bo(e.removed,{attribute:z.getAttributeNode(_),from:z})}catch{bo(e.removed,{attribute:null,from:z})}if(z.removeAttribute(_),_==="is")if(Xe||Lt)try{X(z)}catch{}else try{z.setAttribute(_,"")}catch{}},le=function(_){let z=null,$=null;if(A)_=""+_;else{const we=pa(_,/^[\r\n\t ]+/);$=we&&we[0]}kt==="application/xhtml+xml"&&Ee===ct&&(_=''+_+"");const nt=C?C.createHTML(_):_;if(Ee===ct)try{z=new h().parseFromString(nt,kt)}catch{}if(!z||!z.documentElement){z=x.createDocument(Ee,"template",null);try{z.documentElement.innerHTML=Ue?S:nt}catch{}}const Ye=z.body||z.documentElement;return _&&$&&Ye.insertBefore(t.createTextNode($),Ye.childNodes[0]||null),Ee===ct?P.call(z,We?"html":"body")[0]:We?z.documentElement:Ye},ye=function(_){return v.call(_.ownerDocument||_,_,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},pt=function(_){return _ instanceof c&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof u)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},$e=function(_){return typeof a=="function"&&_ instanceof a};function Pe(W,_,z){Co(W,$=>{$.call(e,_,z,ae)})}const Be=function(_){let z=null;if(Pe(F.beforeSanitizeElements,_,null),pt(_))return X(_),!0;const $=M(_.nodeName);if(Pe(F.uponSanitizeElement,_,{tagName:$,allowedTags:ne}),Le&&_.hasChildNodes()&&!$e(_.firstElementChild)&&m1(/<[/\w!]/g,_.innerHTML)&&m1(/<[/\w!]/g,_.textContent)||Le&&_.namespaceURI===ct&&$==="style"&&$e(_.firstElementChild)||_.nodeType===xo.progressingInstruction||Le&&_.nodeType===xo.comment&&m1(/<[/\w]/g,_.data))return X(_),!0;if(Ze[$]||!(be.tagCheck instanceof Function&&be.tagCheck($))&&!ne[$]){if(!Ze[$]&&it($)&&(fe.tagNameCheck instanceof RegExp&&m1(fe.tagNameCheck,$)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck($)))return!1;if(V&&!ue[$]){const nt=T(_)||_.parentNode,Ye=w(_)||_.childNodes;if(Ye&&nt){const we=Ye.length;for(let mt=we-1;mt>=0;--mt){const Kt=g(Ye[mt],!0);Kt.__removalCount=(_.__removalCount||0)+1,nt.insertBefore(Kt,b(_))}}}return X(_),!0}return _ instanceof l&&!K(_)||($==="noscript"||$==="noembed"||$==="noframes")&&m1(/<\/no(script|embed|frames)/i,_.innerHTML)?(X(_),!0):(se&&_.nodeType===xo.text&&(z=_.textContent,Co([I,J,U],nt=>{z=Ln(z,nt," ")}),_.textContent!==z&&(bo(e.removed,{element:_.cloneNode()}),_.textContent=z)),Pe(F.afterSanitizeElements,_,null),!1)},jt=function(_,z,$){if(Re[z]||je&&(z==="id"||z==="name")&&($ in t||$ in G))return!1;if(!(Zt&&!Re[z]&&m1(re,z))){if(!(ze&&m1(ie,z))){if(!(be.attributeCheck instanceof Function&&be.attributeCheck(z,_))){if(!ve[z]||Re[z]){if(!(it(_)&&(fe.tagNameCheck instanceof RegExp&&m1(fe.tagNameCheck,_)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(_))&&(fe.attributeNameCheck instanceof RegExp&&m1(fe.attributeNameCheck,z)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(z,_))||z==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&m1(fe.tagNameCheck,$)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck($))))return!1}else if(!qe[z]){if(!m1(y,Ln($,oe,""))){if(!((z==="src"||z==="xlink:href"||z==="href")&&_!=="script"&&Af($,"data:")===0&&ft[_])){if(!(Ct&&!m1(O,Ln($,oe,"")))){if($)return!1}}}}}}}return!0},it=function(_){return _!=="annotation-xml"&&pa(_,B)},qt=function(_){Pe(F.beforeSanitizeAttributes,_,null);const{attributes:z}=_;if(!z||pt(_))return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let nt=z.length;for(;nt--;){const Ye=z[nt],{name:we,namespaceURI:mt,value:Kt}=Ye,gr=M(we),Gr=Kt;let ot=we==="value"?Gr:Rf(Gr);if($.attrName=gr,$.attrValue=ot,$.keepAttr=!0,$.forceKeepAttr=void 0,Pe(F.uponSanitizeAttribute,_,$),ot=$.attrValue,ht&&(gr==="id"||gr==="name")&&(Ie(we,_),ot=Tt+ot),Le&&m1(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ot)){Ie(we,_);continue}if(gr==="attributename"&&pa(ot,"href")){Ie(we,_);continue}if($.forceKeepAttr)continue;if(!$.keepAttr){Ie(we,_);continue}if(!rt&&m1(/\/>/i,ot)){Ie(we,_);continue}se&&Co([I,J,U],Gi=>{ot=Ln(ot,Gi," ")});const gi=M(_.nodeName);if(!jt(gi,gr,ot)){Ie(we,_);continue}if(C&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!mt)switch(d.getAttributeType(gi,gr)){case"TrustedHTML":{ot=C.createHTML(ot);break}case"TrustedScriptURL":{ot=C.createScriptURL(ot);break}}if(ot!==Gr)try{mt?_.setAttributeNS(mt,we,ot):_.setAttribute(we,ot),pt(_)?X(_):r5(e.removed)}catch{Ie(we,_)}}Pe(F.afterSanitizeAttributes,_,null)},Y1=function(_){let z=null;const $=ye(_);for(Pe(F.beforeSanitizeShadowDOM,_,null);z=$.nextNode();)Pe(F.uponSanitizeShadowNode,z,null),Be(z),qt(z),z.content instanceof o&&Y1(z.content);Pe(F.afterSanitizeShadowDOM,_,null)};return e.sanitize=function(W){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=null,$=null,nt=null,Ye=null;if(Ue=!W,Ue&&(W=""),typeof W!="string"&&!$e(W))if(typeof W.toString=="function"){if(W=W.toString(),typeof W!="string")throw yo("dirty is not a string, aborting")}else throw yo("toString is not a function");if(!e.isSupported)return W;if(Ae||me(_),e.removed=[],typeof W=="string"&&(N=!1),N){if(W.nodeName){const Kt=M(W.nodeName);if(!ne[Kt]||Ze[Kt])throw yo("root node is forbidden and cannot be sanitized in-place")}}else if(W instanceof a)z=le(""),$=z.ownerDocument.importNode(W,!0),$.nodeType===xo.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?z=$:z.appendChild($);else{if(!Xe&&!se&&!We&&W.indexOf("<")===-1)return C&&Pt?C.createHTML(W):W;if(z=le(W),!z)return Xe?null:Pt?S:""}z&&A&&X(z.firstChild);const we=ye(N?W:z);for(;nt=we.nextNode();)Be(nt),qt(nt),nt.content instanceof o&&Y1(nt.content);if(N)return W;if(Xe){if(se){z.normalize();let Kt=z.innerHTML;Co([I,J,U],gr=>{Kt=Ln(Kt,gr," ")}),z.innerHTML=Kt}if(Lt)for(Ye=D.call(z.ownerDocument);z.firstChild;)Ye.appendChild(z.firstChild);else Ye=z;return(ve.shadowroot||ve.shadowrootmode)&&(Ye=R.call(r,Ye,!0)),Ye}let mt=We?z.outerHTML:z.innerHTML;return We&&ne["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&m1(l5,z.ownerDocument.doctype.name)&&(mt=" +`+mt),se&&Co([I,J,U],Kt=>{mt=Ln(mt,Kt," ")}),C&&Pt?C.createHTML(mt):mt},e.setConfig=function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};me(W),Ae=!0},e.clearConfig=function(){ae=null,Ae=!1},e.isValidAttribute=function(W,_,z){ae||me({});const $=M(W),nt=M(_);return jt($,nt,z)},e.addHook=function(W,_){typeof _=="function"&&bo(F[W],_)},e.removeHook=function(W,_){if(_!==void 0){const z=Mf(F[W],_);return z===-1?void 0:Ef(F[W],z,1)[0]}return r5(F[W])},e.removeHooks=function(W){F[W]=[]},e.removeAllHooks=function(){F=u5()},e}var Gf=c5(),Wf=Qe(' ',1),$f=Qe('
  • '),Xf=Qe('

      ');const jf={hash:"svelte-modf41",code:`:host {display:block;color:#111;font-family:Arial, sans-serif;}.svelte-modf41, + .svelte-modf41::before, + .svelte-modf41::after {box-sizing:border-box;}.timeline-content.svelte-modf41 {max-width:900px;margin-inline:auto;border:var(--timeline-content-border-thickness, 4px) solid var(--timeline-content-border-color, #e6332e);border-radius:var(--timeline-content-border-radius, .5rem);padding:var(--timeline-content-padding, 1rem);background-color:var(--timeline-content-background-color, gray);}.snapshot-timeline.svelte-modf41 {display:grid;gap:1.5rem; + /* height: 100vh; */}.snapshot-media.svelte-modf41 {display:block;max-width:900px;width:100%;margin-inline:auto; + /* height: 60vh; */overflow:hidden;}.snapshot-media.svelte-modf41 figure:where(.svelte-modf41) {margin:0;width:100%;height:100%;}.snapshot-media.svelte-modf41 img:where(.svelte-modf41) {display:block;width:100%;height:100%;object-fit:var(--img-object-fit, contain);}.timeline-bar.svelte-modf41 {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;max-width:900px;width:100%;height:10vh;margin-inline:auto;}.timeline-shell.svelte-modf41 {position:relative;min-width:0;}.timeline-tooltip.svelte-modf41 {position:absolute;bottom:calc(100% - 1.5rem);transform:translateX(-50%);white-space:nowrap;font-size:var(--tooltip-font-size);line-height:1.2;background:white;border:1px solid #ddd;padding:0.35rem 0.5rem;border-radius:0.375rem;box-shadow:0 4px 12px rgb(0 0 0 / 0.08); + /* z-index: 20; */pointer-events:none;}.timeline-track-wrap.svelte-modf41 {position:relative;min-height:3rem;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;}.timeline-track-wrap.svelte-modf41::-webkit-scrollbar {display:none;}.timeline-rail.svelte-modf41 {position:relative;min-height:3rem;height:3rem;}.timeline-line.svelte-modf41 {position:absolute;top:50%;height:4px;background:var(--timeline-line-color, #d9d9d9);transform:translateY(-50%);border-radius:999px;z-index:0;}.timeline-points.svelte-modf41 {position:relative;list-style:none;margin:0;padding:0;min-height:3rem;}.timeline-track-wrap.svelte-modf41, + .timeline-rail.svelte-modf41, + .timeline-points.svelte-modf41 {min-height:6.5rem;}.timeline-point.svelte-modf41 {position:absolute;top:50%;transform:translate(-50%, -50%);z-index:1;}.timeline-point.svelte-modf41 button:where(.svelte-modf41) {appearance:none;border:0;background:transparent;cursor:pointer;padding:0;font:inherit;color:inherit;position:relative;display:block;}.dot.svelte-modf41 {display:block;width:clamp(10px, var(--timeline-circle-size), 30px);height:clamp(10px, var(--timeline-circle-size), 30px);border-radius:50%;background:var(--timeline-circle-color, white);border:3px solid var(--timeline-circle-border-color, #999);position:relative;z-index:2;&:is(:where(.svelte-modf41):hover, :where(.svelte-modf41):focus-visible) {background:var(--btn-bg-hover-color, hsl(0 0% 50% / 0.05));color:var(--btn-hover-color, #dd3d3d);}}.year-tick.svelte-modf41 {display:block;width:2px;height:10px;background:var(--timeline-year-color, #fff);position:absolute;top:calc(100% + 0.25rem);left:50%;transform:translateX(-50%);}.year.svelte-modf41 {position:absolute;color:var(--timeline-year-color, gray);top:calc(100% + 1.1rem); /* pushed down below the tick */left:50%;transform:translateX(-50%);white-space:nowrap;line-height:1;font-size:0.75rem;}.timeline-point.svelte-modf41 button.selected:where(.svelte-modf41) .dot:where(.svelte-modf41) {border-color:var(--timeline-circle-selected-border-color, #dd3d3d);transform:scale(1.1);}button.left.svelte-modf41:enabled:is(:where(.svelte-modf41):hover, :where(.svelte-modf41):focus-visible) > svg:where(.svelte-modf41) { + /* animation: arrow-effect 2s; */ + animation: svelte-modf41-slide-left 2s ease-in-out 0s infinite normal none;}button.right.svelte-modf41:enabled:is(:where(.svelte-modf41):hover, :where(.svelte-modf41):focus-visible) > svg:where(.svelte-modf41) { + /* animation: arrow-effect 2s; */ + animation: svelte-modf41-slide-right 2s ease-in-out 0s infinite normal none;} + + @keyframes svelte-modf41-slide-left { + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(-10px); + } + } + + @keyframes svelte-modf41-slide-right { + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(10px); + } + }button.svelte-modf41 {display:flex;align-items:center;gap:var(--btn-gap, 0.5rem);color:var(--btn-color, hsl(0 0% 50% / 0.15));background-color:var(--btn-bg-color, hsl(0 0% 50% / 0.15));border:1px solid var(--btn-border-color, #dd3d3d);border-radius:0.25rem;transition:background 0.5s;cursor:pointer; + + /* &:is(:hover, :focus-visible) { + background: var(--btn-bg-hover-color, hsl(0 0% 50% / 0.05)); + color: var(--btn-hover-color, #dd3d3d); + } */}button.svelte-modf41 svg:where(.svelte-modf41) {fill:var(--btn-svg-color, #dd3d3d);inline-size:1em;block-size:1em;}.nav-btn.svelte-modf41 {appearance:none;border:var(--btn-border-thickness) solid var(--btn-border-color, #dd3d3d);background-color:var(--btn-bg-color, purple);padding:0.5rem 0.75rem;cursor:pointer;font:inherit;&:is(:where(.svelte-modf41):hover, :where(.svelte-modf41):focus-visible) {background-color:var(--btn-bg-hover-color, hsl(0 0% 50% / 0.05));color:var(--btn-hover-color, #dd3d3d);}}.nav-btn.svelte-modf41:disabled {opacity:0.4;cursor:not-allowed;}.snapshot-content.svelte-modf41 {font-family:var(--box-font-family, 'IBM Plex Sans', system-ui, sans-serif);max-width:900px;width:100%;margin-inline:auto; + /* text-align: left; */ + /* height: 15vh; */background-color:var(--text-box-bg-color, #ccc);border:var(--text-box-border-thickness, 2px) solid + var(--text-box-border-color, transparent);border-radius:var(--text-box-border-radius, 0.5rem);padding:1rem 1rem;}.snapshot-content.svelte-modf41 h2:where(.svelte-modf41) {color:var(--title-color, black);margin:0 0 0.5rem;font-family:inherit;font-size:var(--title-font-size, 1.5rem);text-align:var(--title-alignment, left);}.snapshot-content.svelte-modf41 em:where(.svelte-modf41) {display:block;margin-bottom:0.75rem;color:var(--date-font-color, #666);font-family:inherit;font-style:normal;font-size:var(--date-font-size, 1rem);text-align:var(--date-alignment, left);}.snapshot-content.svelte-modf41 p:where(.svelte-modf41) {margin:0;line-height:1.5;color:var(--description-font-color, black);font-family:inherit;font-size:var(--description-font-size, 1rem);text-align:var(--description-alignment, left);} + + @media (prefers-reduced-motion: no-preference) {.timeline-track-wrap.svelte-modf41 {scroll-behavior:smooth;} + } + + @media (max-width: 700px) {.timeline-tooltip.svelte-modf41 {font-size:0.8rem;}.snapshot-timeline.svelte-modf41 {gap:1rem;}.snapshot-media.svelte-modf41 {height:50vw; /* responsive height instead of auto */min-height:200px;}.snapshot-content.svelte-modf41 {height:auto;padding-left:1rem;padding-right:1rem;} + + /* Stack the timeline bar vertically, centering everything */.timeline-bar.svelte-modf41 {grid-template-columns:1fr 1fr; /* two equal columns for the buttons */grid-template-rows:auto auto; /* two rows: buttons, then timeline */height:auto;justify-items:center;} + + /* Hide the scrollable timeline on mobile */ + /* Timeline spans both columns, sits in row 1 */.timeline-shell.svelte-modf41 {grid-column:1 / -1; /* span full width */grid-row:1;width:100%; /* fill the available space */} + + /* Prev button moves to row 2, left column */.nav-btn.left.svelte-modf41 {grid-column:1;grid-row:2;justify-self:end;padding-right:1.5rem;} + + /* Next button moves to row 2, right column */.nav-btn.right.svelte-modf41 {grid-column:2;grid-row:2;justify-self:start;padding-left:1.5rem;} + }`};function d5(n,e){v1(e,!0),cr(n,jf);let t=Ne(jr([])),r=Ne(0),i=Ne(null),o=Ne(void 0),s=Ne(void 0),a=Ne(0),l=E(e,"dataURL",7,""),f=E(e,"btnColor",7,"#ccc"),u=E(e,"btnBgColor",7,"#fff"),c=E(e,"btnBorderColor",7,"#DD3D3D"),h=E(e,"btnBorderThickness",7,"1px"),d=E(e,"btnSVGColor",7,"#DD3D3D"),p=E(e,"btnGap",7,".5rem"),g=E(e,"btnHoverColor",7,"hsl(0 0% 50% / 0.05)"),m=E(e,"btnBgHoverColor",7,"white"),b=E(e,"imageObjectFit",7,"contain"),w=E(e,"tooltipFontSize",7,".8rem"),T=E(e,"timelineLineColor",7,"#d9d9d9"),C=E(e,"timelineCircleSize",7,"1rem"),S=E(e,"timelineCircleColor",7,"#d9d9d9"),x=E(e,"timelineCircleBorderColor",7,"#d9d9d9"),v=E(e,"timelineCircleSelectedBorderColor",7,"#d9d9d9"),D=E(e,"timelineYearColor",7,"#fff"),P=E(e,"timelineContentBackgroundColor",7,"#fff"),R=E(e,"timelineContentBorderThickness",7,"2px"),F=E(e,"timelineContentBorderColor",7,"#e6332e"),I=E(e,"timelineContentBorderRadius",7,".5rem"),J=E(e,"timelineContentPadding",7,"1rem"),U=E(e,"boxFontUrl",7,""),re=E(e,"boxFontFamily",7,"'IBM Plex Sans', system-ui, sans-serif"),ie=E(e,"titleColor",7,"#000"),O=E(e,"titleAlignment",7,"left"),oe=E(e,"titleFontSize",7,"1.5rem"),B=E(e,"dateFontColor",7,"#000"),y=E(e,"dateFontSize",7,"1rem"),ne=E(e,"dateAlignment",7,"left"),Fe=E(e,"descriptionFontColor",7,"#000"),ve=E(e,"descriptionFontSize",7,"1rem"),Me=E(e,"descriptionAlignment",7,"left"),fe=E(e,"textBoxBgColor",7,"white"),Ze=E(e,"textBoxBorderThickness",7,"2px"),Re=E(e,"textBoxBorderColor",7,"red"),be=E(e,"textBoxBorderRadius",7,"15px");const ze=56,Zt=56,Ct=2.25,rt=72;Vr(async()=>{if(l())try{j(t,await Lf(l()),!0),j(r,L(t).length?L(t).length-1:0,!0),await ml(),requestAnimationFrame(()=>{ht(L(r),"auto"),requestAnimationFrame(()=>{Xe()})})}catch(H){console.error("Error fetching data:",H)}}),Vr(()=>{if(!U()||document.querySelector(`link[data-csis-font="${U()}"]`))return;const qe=document.createElement("link");qe.rel="stylesheet",qe.href=U(),qe.dataset.csisFont=U(),document.head.appendChild(qe)});const se=An(()=>L(t)[L(r)]),Le=An(()=>{if(!L(t).length)return[];let H=0;return L(t).map((qe,ge)=>{if(ge===0)return{...qe,x:H};const ut=L(t)[ge-1],et=Math.max(1,Math.round((qe.timestamp-ut.timestamp)/864e5)),ct=Math.max(Zt,et*Ct);return H+=ct,{...qe,x:H}})}),We=An(()=>L(Le).length?L(Le)[L(Le).length-1].x+ze*2:ze*2),Ae=An(()=>L(i)??L(r)),A=An(()=>{const H=L(Le)[L(Ae)];if(!H||!L(s))return rt;const qe=ze+H.x-L(a),ge=L(s).clientWidth||0,ut=rt,et=Math.max(ut,ge-rt);return Math.max(ut,Math.min(qe,et))});function Xe(){j(a,L(o)?.scrollLeft??0,!0)}function Lt(H){j(r,H,!0),ht(H)}function Pt(){L(r)>0&&(j(r,L(r)-1),ht(L(r)))}function je(){L(r){Xe()})}function Tt(H){j(i,H,!0)}function V(){j(i,null)}function N(){Xe()}var ce={get dataURL(){return l()},set dataURL(H=""){l(H),k()},get btnColor(){return f()},set btnColor(H="#ccc"){f(H),k()},get btnBgColor(){return u()},set btnBgColor(H="#fff"){u(H),k()},get btnBorderColor(){return c()},set btnBorderColor(H="#DD3D3D"){c(H),k()},get btnBorderThickness(){return h()},set btnBorderThickness(H="1px"){h(H),k()},get btnSVGColor(){return d()},set btnSVGColor(H="#DD3D3D"){d(H),k()},get btnGap(){return p()},set btnGap(H=".5rem"){p(H),k()},get btnHoverColor(){return g()},set btnHoverColor(H="hsl(0 0% 50% / 0.05)"){g(H),k()},get btnBgHoverColor(){return m()},set btnBgHoverColor(H="white"){m(H),k()},get imageObjectFit(){return b()},set imageObjectFit(H="contain"){b(H),k()},get tooltipFontSize(){return w()},set tooltipFontSize(H=".8rem"){w(H),k()},get timelineLineColor(){return T()},set timelineLineColor(H="#d9d9d9"){T(H),k()},get timelineCircleSize(){return C()},set timelineCircleSize(H="1rem"){C(H),k()},get timelineCircleColor(){return S()},set timelineCircleColor(H="#d9d9d9"){S(H),k()},get timelineCircleBorderColor(){return x()},set timelineCircleBorderColor(H="#d9d9d9"){x(H),k()},get timelineCircleSelectedBorderColor(){return v()},set timelineCircleSelectedBorderColor(H="#d9d9d9"){v(H),k()},get timelineYearColor(){return D()},set timelineYearColor(H="#fff"){D(H),k()},get timelineContentBackgroundColor(){return P()},set timelineContentBackgroundColor(H="#fff"){P(H),k()},get timelineContentBorderThickness(){return R()},set timelineContentBorderThickness(H="2px"){R(H),k()},get timelineContentBorderColor(){return F()},set timelineContentBorderColor(H="#e6332e"){F(H),k()},get timelineContentBorderRadius(){return I()},set timelineContentBorderRadius(H=".5rem"){I(H),k()},get timelineContentPadding(){return J()},set timelineContentPadding(H="1rem"){J(H),k()},get boxFontUrl(){return U()},set boxFontUrl(H=""){U(H),k()},get boxFontFamily(){return re()},set boxFontFamily(H="'IBM Plex Sans', system-ui, sans-serif"){re(H),k()},get titleColor(){return ie()},set titleColor(H="#000"){ie(H),k()},get titleAlignment(){return O()},set titleAlignment(H="left"){O(H),k()},get titleFontSize(){return oe()},set titleFontSize(H="1.5rem"){oe(H),k()},get dateFontColor(){return B()},set dateFontColor(H="#000"){B(H),k()},get dateFontSize(){return y()},set dateFontSize(H="1rem"){y(H),k()},get dateAlignment(){return ne()},set dateAlignment(H="left"){ne(H),k()},get descriptionFontColor(){return Fe()},set descriptionFontColor(H="#000"){Fe(H),k()},get descriptionFontSize(){return ve()},set descriptionFontSize(H="1rem"){ve(H),k()},get descriptionAlignment(){return Me()},set descriptionAlignment(H="left"){Me(H),k()},get textBoxBgColor(){return fe()},set textBoxBgColor(H="white"){fe(H),k()},get textBoxBorderThickness(){return Ze()},set textBoxBorderThickness(H="2px"){Ze(H),k()},get textBoxBorderColor(){return Re()},set textBoxBorderColor(H="red"){Re(H),k()},get textBoxBorderRadius(){return be()},set textBoxBorderRadius(H="15px"){be(H),k()}},ue=C4(),Ke=Pn(ue);{var ft=H=>{var qe=Xf(),ge=Y(qe),ut=Y(ge),et=Y(ut);q(ut),q(ge);var ct=pe(ge,2),Ee=Y(ct);Ee.__click=Pt;var Ue=pe(Ee,2),Ft=Y(Ue),de=Y(Ft,!0);q(Ft);var It=pe(Ft,2),gt=Y(It),Vt=Y(gt),kt=pe(Vt,2);Ml(kt,21,()=>L(Le),Tl,(te,K,X)=>{var Ie=$f();let le;he(Ie,"data-index",X);var ye=Y(Ie);ye.__click=()=>Lt(X);let pt;var $e=pe(Y(ye),2);{var Pe=Be=>{var jt=Wf(),it=pe(Pn(jt),2),qt=Y(it,!0);q(it),tt(()=>Qt(qt,L(K).year)),Ge(Be,jt)};y1($e,Be=>{L(K).isNewYear&&Be(Pe)})}q(ye),q(Ie),tt(()=>{le=Vo(Ie,1,"timeline-point svelte-modf41",null,le,{selected:X===L(r)}),st(Ie,`left: ${ze+L(K).x}px;`),he(ye,"aria-current",X===L(r)?"true":void 0),he(ye,"aria-label",L(K).dateText),pt=Vo(ye,1,"svelte-modf41",null,pt,{selected:X===L(r)})}),a1("mouseenter",ye,()=>Tt(X)),a1("mouseleave",ye,V),a1("focus",ye,()=>Tt(X)),a1("blur",ye,V),Ge(te,Ie)}),q(kt),q(gt),q(It),K1(It,te=>j(o,te),()=>L(o)),q(Ue),K1(Ue,te=>j(s,te),()=>L(s));var E1=pe(Ue,2);E1.__click=je,q(ct);var U1=pe(ct,2),M=Y(U1),ae=Y(M,!0);q(M);var G=pe(M,2),ee=Y(G,!0);q(G);var me=pe(G,2),Z=Y(me);M4(Z,()=>Gf.sanitize(L(se).description)),q(me),q(U1),q(qe),tt(te=>{st(qe,` + --btn-color: ${f()}; + --btn-bg-color: ${u()}; + --btn-border-color: ${c()}; + --btn-border-thickness: ${h()}; + --btn-gap: ${p()}; + --btn-svg-color: ${d()}; + --btn-hover-color: ${g()}; + --btn-bg-hover-color: ${m()}; + --img-object-fit: ${b()}; + --tooltip-font-size: ${w()}; + --timeline-line-color: ${T()}; + --timeline-circle-size: ${C()}; + --timeline-circle-color: ${S()}; + --timeline-circle-border-color: ${x()}; + --timeline-circle-selected-border-color: ${v()}; + --timeline-year-color: ${D()}; + --box-font-family: ${re()}; + --title-color: ${ie()}; + --title-alignment: ${O()}; + --title-font-size: ${oe()}; + --date-font-size: ${y()}; + --date-font-color: ${B()}; + --date-alignment: ${ne()}; + --description-font-color: ${Fe()}; + --description-font-size: ${ve()}; + --description-alignment: ${Me()}; + --text-box-bg-color: ${fe()}; + --text-box-border-thickness: ${Ze()}; + --text-box-border-color: ${Re()}; + --text-box-border-radius: ${be()}; + --timeline-content-background-color: ${P()}; + --timeline-content-border-thickness: ${R()}; + --timeline-content-border-color: ${F()}; + --timeline-content-border-radius: ${I()}; + --timeline-content-padding: ${J()}; + `),he(et,"src",L(se).imageLink),he(et,"alt",L(se).imageAlt),Ee.disabled=L(r)===0,st(Ft,`left: ${L(A)}px;`),Qt(de,L(Le)[L(Ae)]?.dateText),st(gt,`width: ${L(We)}px;`),st(Vt,te),E1.disabled=L(r)===L(t).length-1,Qt(ae,L(se).title),Qt(ee,L(se).dateTextLongMonth)},[()=>`left: ${ze}px; width: ${Math.max(0,L(We)-ze*2)}px;`]),a1("scroll",It,N),Ge(H,qe)};y1(Ke,H=>{L(se)&&H(ft)})}return Ge(n,ue),C1(ce)}Ws(["click"]),customElements.define("csis-satellite-snapshot",P1(d5,{dataURL:{attribute:"data-url",type:"String"},btnColor:{attribute:"btn-color",type:"String"},btnBgColor:{attribute:"btn-bg-color",type:"String"},btnBorderColor:{attribute:"btn-border-color",type:"String"},btnBorderThickness:{attribute:"btn-border-thickness",type:"String"},btnGap:{attribute:"btn-gap",type:"String"},btnSVGColor:{attribute:"btn-svg-color",type:"String"},btnHoverColor:{attribute:"btn-hover-color",type:"String"},btnBgHoverColor:{attribute:"btn-bg-hover-color",type:"String"},imageObjectFit:{attribute:"img-object-fit",type:"String"},tooltipFontSize:{attribute:"tooltip-font-size",type:"String"},timelineLineColor:{attribute:"timeline-line-color",type:"String"},timelineCircleSize:{attribute:"timeline-circle-size",type:"String"},timelineCircleColor:{attribute:"timeline-circle-color",type:"String"},timelineCircleBorderColor:{attribute:"timeline-circle-border-color",type:"String"},timelineCircleSelectedBorderColor:{attribute:"timeline-circle-selected-border-color",type:"String"},timelineYearColor:{attribute:"timeline-year-color",type:"String"},timelineContentBackgroundColor:{attribute:"timeline-content-background-color",type:"String"},timelineContentBorderThickness:{attribute:"timeline-content-border-thickness",type:"String"},timelineContentBorderColor:{attribute:"timeline-content-border-color",type:"String"},timelineContentBorderRadius:{attribute:"timeline-content-border-radius",type:"String"},timelineContentPadding:{attribute:"timeline-content-padding",type:"String"},boxFontUrl:{attribute:"box-font-url",type:"String"},boxFontFamily:{attribute:"box-font-family",type:"String"},titleColor:{attribute:"title-color",type:"String"},titleAlignment:{attribute:"title-alignment",type:"String"},titleFontSize:{attribute:"title-font-size",type:"String"},dateFontColor:{attribute:"date-font-color",type:"String"},dateFontSize:{attribute:"date-font-size",type:"String"},dateAlignment:{attribute:"date-alignment",type:"String"},descriptionFontColor:{attribute:"description-font-color",type:"String"},descriptionAlignment:{attribute:"description-alignment",type:"String"},descriptionFontSize:{attribute:"description-font-size",type:"String"},textBoxBgColor:{attribute:"text-box-background-color",type:"String"},textBoxBorderThickness:{attribute:"text-box-border-thickness",type:"String"},textBoxBorderColor:{attribute:"text-box-border-color",type:"String"},textBoxBorderRadius:{attribute:"text-box-border-radius",type:"String"}},[],[],!0));const Kf=Object.freeze(Object.defineProperty({__proto__:null,default:d5},Symbol.toStringTag,{value:"Module"}));var Qf=Qe('');function h5(n,e){v1(e,!0);let t=E(e,"container",7),r=E(e,"leftTitle",7),i=E(e,"btnText",7),o=E(e,"btnLeftLink",7),s=E(e,"leftTarget",7),a;var l={get container(){return t()},set container(p){t(p),k()},get leftTitle(){return r()},set leftTitle(p){r(p),k()},get btnText(){return i()},set btnText(p){i(p),k()},get btnLeftLink(){return o()},set btnLeftLink(p){o(p),k()},get leftTarget(){return s()},set leftTarget(p){s(p),k()}},f=Qf(),u=Y(f),c=Y(u,!0);q(u);var h=pe(u,2),d=Y(h,!0);return q(h),q(f),K1(f,p=>a=p,()=>a),tt(()=>{Qt(c,r()),he(h,"href",o()),he(h,"target",s()),Qt(d,i())}),a1("mouseenter",f,()=>t()?.classList.add("hover-left")),a1("mouseleave",f,()=>t()?.classList.remove("hover-left")),Ge(n,f),C1(l)}P1(h5,{container:{},leftTitle:{},btnText:{},btnLeftLink:{},leftTarget:{}},[],[],!0);var Jf=Qe('');function g5(n,e){v1(e,!0);let t=E(e,"container",7),r=E(e,"rightTitle",7),i=E(e,"btnText",7),o=E(e,"btnRightLink",7),s=E(e,"rightTarget",7),a;var l={get container(){return t()},set container(p){t(p),k()},get rightTitle(){return r()},set rightTitle(p){r(p),k()},get btnText(){return i()},set btnText(p){i(p),k()},get btnRightLink(){return o()},set btnRightLink(p){o(p),k()},get rightTarget(){return s()},set rightTarget(p){s(p),k()}},f=Jf(),u=Y(f),c=Y(u,!0);q(u);var h=pe(u,2),d=Y(h,!0);return q(h),q(f),K1(f,p=>a=p,()=>a),tt(()=>{Qt(c,r()),he(h,"href",o()),he(h,"target",s()),Qt(d,i())}),a1("mouseenter",f,()=>t()?.classList.add("hover-right")),a1("mouseleave",f,()=>t()?.classList.remove("hover-right")),Ge(n,f),C1(l)}P1(g5,{container:{},rightTitle:{},btnText:{},btnRightLink:{},rightTarget:{}},[],[],!0);var e8=Qe('

      hola

      ',1);const t8={hash:"svelte-1ujrtpn",code:`:host {display:block;font-family:var(--ab-font, "IBM Plex Sans", system-ui, sans-serif);color:var(--ab-text, #fffefa);min-height:100vh;--container-bg-color: #333;--base-color: rgb(195 195 195 / 0.75);--left-bg-color: rgba(223, 39, 39, 0.7);--left-button-hover-color: rgba(161, 11, 11, 0.3);--right-bg-color: rgba(43, 43, 43, 0.8);--right-button-hover-color: rgba(92, 92, 92, 0.3);--hover-width: 75%;--other-width: 25%;--speed: 1000ms;}html, + body {padding:0;margin:0;font-family:"Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;width:100%;height:100%;overflow-x:hidden;}h1 {font-size:4rem;color:#fff;position:absolute;left:50%;top:20%;transform:translateX(-50%);white-space:nowrap;}.button {display:block;position:absolute;left:50%;top:40%;height:2.5rem;padding-top:1.3rem;width:15rem;text-align:center;color:#fff;border:#fff solid 0.2rem;font-size:1rem;font-weight:bold;text-transform:uppercase;text-decoration:none;transform:translateX(-50%);} + + @media (max-width: 800px) {h1 {font-size:2rem;}.button {width:12rem;} + } + + @media (max-height: 700px) {.button {top:70%;} + }.split.left .button {background-color:var(--btn-bg-color-left, --base-color);border-color:var(--btn-border-color, --left-btn-border-color);}.split.right .button {background-color:var(--btn-bg-color-right, --base-color);border-color:var(--btn-border-color, --right-btn-border-color);}.split.left .button:hover {background-color:var(--btn-hover-bg-color-left);border-color:var(--btn-hover-border-color, --left-button-hover-color);}.split.right .button:hover {background-color:var(--btn-hover-bg-color-right);border-color:var(--btn-hover-border-color, --right-button-hover-color);}.container {position:relative;width:100%;height:100vh;background:var(--container-bg-color);}.split {position:absolute;width:50%;height:100%;overflow:hidden;}.split.left {left:0;background:var(--bg-image-left) center center no-repeat;background-size:cover;}.split.left:before {position:absolute;content:"";width:100%;height:100%; + /*background: var(--left-bg-color);*/}.split.right {right:0;background:var(--bg-image-right) center center no-repeat;background-size:cover;}.split.right:before {position:absolute;content:"";width:100%;height:100%; + /*background: var(--right-bg-color);*/}.split.left, + .split.right, + .split.right:before, + .split.left:before {transition:var(--speed) all ease-in-out;}.hover-left .left {width:var(--hover-width);}.hover-left .right {width:var(--other-width);}.hover-left .right:before {z-index:2;}.hover-right .right {width:var(--hover-width);}.hover-right .left {width:var(--other-width);}.hover-right .left:before {z-index:2;}`};function p5(n,e){v1(e,!0),cr(n,t8);let t=E(e,"bgImageLeft",7,""),r=E(e,"leftTitle",7,"left title"),i=E(e,"btnLeftLink",7,"#top"),o=E(e,"leftTarget",7,"_self"),s=E(e,"btnBgColorLeft",7,"black"),a=E(e,"btnHoverBgColorLeft",7,"gray"),l=E(e,"bgImageRight",7,""),f=E(e,"rightTitle",7,"right title"),u=E(e,"btnRightLink",7,"#top"),c=E(e,"rightTarget",7,"_self"),h=E(e,"btnBgColorRight",7,"black"),d=E(e,"btnHoverBgColorRight",7,"gray"),p=E(e,"btnBorderColor",7,"red"),g=E(e,"btnHoverBorderColor",7,"blue"),m=E(e,"btnText",7,"Read More"),b=Ne(void 0);var w={get bgImageLeft(){return t()},set bgImageLeft(v=""){t(v),k()},get leftTitle(){return r()},set leftTitle(v="left title"){r(v),k()},get btnLeftLink(){return i()},set btnLeftLink(v="#top"){i(v),k()},get leftTarget(){return o()},set leftTarget(v="_self"){o(v),k()},get btnBgColorLeft(){return s()},set btnBgColorLeft(v="black"){s(v),k()},get btnHoverBgColorLeft(){return a()},set btnHoverBgColorLeft(v="gray"){a(v),k()},get bgImageRight(){return l()},set bgImageRight(v=""){l(v),k()},get rightTitle(){return f()},set rightTitle(v="right title"){f(v),k()},get btnRightLink(){return u()},set btnRightLink(v="#top"){u(v),k()},get rightTarget(){return c()},set rightTarget(v="_self"){c(v),k()},get btnBgColorRight(){return h()},set btnBgColorRight(v="black"){h(v),k()},get btnHoverBgColorRight(){return d()},set btnHoverBgColorRight(v="gray"){d(v),k()},get btnBorderColor(){return p()},set btnBorderColor(v="red"){p(v),k()},get btnHoverBorderColor(){return g()},set btnHoverBorderColor(v="blue"){g(v),k()},get btnText(){return m()},set btnText(v="Read More"){m(v),k()}},T=e8(),C=pe(Pn(T),2),S=Y(C);h5(S,{get container(){return L(b)},get leftTitle(){return r()},get btnText(){return m()},get btnLeftLink(){return i()},get leftTarget(){return o()}});var x=pe(S,2);return g5(x,{get container(){return L(b)},get rightTitle(){return f()},get btnText(){return m()},get btnRightLink(){return u()},get rightTarget(){return c()}}),q(C),K1(C,v=>j(b,v),()=>L(b)),tt(()=>st(C,` + --bg-image-left: url("${t()}"); + --btn-bg-color-left: ${s()}; + --btn-hover-bg-color-left: ${a()}; + --bg-image-right: url("${l()}"); + --btn-bg-color-right: ${h()}; + --btn-hover-bg-color-right: ${d()}; + --btn-border-color: ${p()}; + --btn-hover-border-color: ${g()}; + `)),Ge(n,T),C1(w)}customElements.define("csis-split-landing",P1(p5,{leftTitle:{attribute:"left-title",type:"String"},btnLeftLink:{attribute:"btn-left-link",type:"String"},leftTarget:{attribute:"left-target",type:"String"},bgImageLeft:{attribute:"bg-image-left",type:"String"},btnBgColorLeft:{attribute:"btn-bg-color-left",type:"String"},btnHoverBgColorLeft:{attribute:"btn-hover-bg-color-left",type:"String"},rightTitle:{attribute:"right-title",type:"String"},btnRightLink:{attribute:"btn-right-link",type:"String"},rightTarget:{attribute:"right-target",type:"String"},bgImageRight:{attribute:"bg-image-right",type:"String"},btnBgColorRight:{attribute:"btn-bg-color-right",type:"String"},btnHoverBgColorRight:{attribute:"btn-hover-bg-color-right",type:"String"},btnBorderColor:{attribute:"btn-border-color",type:"String"},btnHoverBorderColor:{attribute:"btn-hover-border-color",type:"String"},btnText:{attribute:"btn-text",type:"String"}},[],[],!0)),console.log("Loaded components:",Object.keys(Object.assign({"./lib/AudioBrief.ce.svelte":j4,"./lib/CppCallout.ce.svelte":e9,"./lib/Footer.ce.svelte":i9,"./lib/HiddenReachFooter.ce.svelte":s9,"./lib/Magnifier.ce.svelte":f9,"./lib/ScrollHighlight.ce.svelte":X6,"./lib/TextTyping.ce.svelte":Q6,"./lib/TripleSlider.ce.svelte":cf,"./lib/infinity-scroll/Infinity-Scroll.ce.svelte":gf,"./lib/satellite-image-snapshot/SatImageSnapshot.ce.svelte":Kf,"./lib/split-landing-page/Container.ce.svelte":Object.freeze(Object.defineProperty({__proto__:null,default:p5},Symbol.toStringTag,{value:"Module"}))})))})(); diff --git a/dist/widgets.js b/dist/widgets.js deleted file mode 100644 index 6f7248c..0000000 --- a/dist/widgets.js +++ /dev/null @@ -1,243 +0,0 @@ -(function(){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const oa=1,aa=2,la=16,fa=1,ua=2,ca=4,ha=8,da=16,ga=1,pa=2,D0="[",Gn="[!",j2="]",xi={},bt=Symbol(),_a="http://www.w3.org/1999/xhtml",va="http://www.w3.org/2000/svg",F0=!1;var K2=Array.isArray,Ca=Array.prototype.indexOf,Q2=Array.from,jn=Object.keys,ki=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,z0=Object.getOwnPropertyDescriptors,ma=Object.prototype,ba=Array.prototype,J2=Object.getPrototypeOf,I0=Object.isExtensible;function ya(n){return n()}function e3(n){for(var e=0;e{n=r,e=i});return{promise:t,resolve:n,reject:e}}const zt=2,t3=4,Kn=8,Nr=16,lr=32,xr=64,r3=128,w1=256,Qn=512,yt=1024,o1=2048,fr=4096,D1=8192,$r=16384,i3=32768,sn=65536,q0=1<<17,wa=1<<18,Yr=1<<19,N0=1<<20,n3=1<<21,Jn=1<<22,Ur=1<<23,Xr=Symbol("$state"),$0=Symbol("legacy props"),La=Symbol(""),Si=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xa=1,s3=3,Mi=8;function Y0(n){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ka(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sa(n){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ma(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ta(n){throw new Error("https://svelte.dev/e/effect_orphan")}function Pa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Va(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ha(n){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ea(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Oa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Aa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ra(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function e2(n){console.warn("https://svelte.dev/e/hydration_mismatch")}function Za(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let le=!1;function L1(n){le=n}let me;function It(n){if(n===null)throw e2(),xi;return me=n}function Wr(){return It(W1(me))}function I(n){if(le){if(W1(me)!==null)throw e2(),xi;me=n}}function ur(n=1){if(le){for(var e=n,t=me;e--;)t=W1(t);me=t}}function t2(n=!0){for(var e=0,t=me;;){if(t.nodeType===Mi){var r=t.data;if(r===j2){if(e===0)return t;e-=1}else(r===D0||r===Gn)&&(e+=1)}var i=W1(t);n&&t.remove(),t=i}}function U0(n){if(!n||n.nodeType!==Mi)throw e2(),xi;return n.data}function X0(n){return n===this.v}function Da(n,e){return n!=n?e==e:n!==e||n!==null&&typeof n=="object"||typeof n=="function"}function W0(n){return!Da(n,this.v)}let Ti=!1,Fa=!1;function za(){Ti=!0}let Fe=null;function Pi(n){Fe=n}function x1(n,e=!1,t){Fe={p:Fe,c:null,e:null,s:n,x:null,l:Ti&&!e?{s:null,u:null,$:[]}:null}}function k1(n){var e=Fe,t=e.e;if(t!==null){e.e=null;for(var r of t)ds(r)}return n!==void 0&&(e.x=n),Fe=e.p,n??{}}function on(){return!Ti||Fe!==null&&Fe.l===null}let Gr=[];function G0(){var n=Gr;Gr=[],e3(n)}function Vi(n){if(Gr.length===0&&!an){var e=Gr;queueMicrotask(()=>{e===Gr&&G0()})}Gr.push(n)}function Ia(){for(;Gr.length>0;)G0()}const Ba=new WeakMap;function j0(n){var e=ie;if(e===null)return he.f|=Ur,n;if((e.f&i3)===0){if((e.f&r3)===0)throw!e.parent&&n instanceof Error&&K0(n),n;e.b.error(n)}else Hi(n,e)}function Hi(n,e){for(;e!==null;){if((e.f&r3)!==0)try{e.b.error(n);return}catch(t){n=t}e=e.parent}throw n instanceof Error&&K0(n),n}function K0(n){const e=Ba.get(n);e&&(ki(n,"message",{value:e.message}),ki(n,"stack",{value:e.stack}))}const r2=new Set;let at=null,F1=null,o3=new Set,X1=[],i2=null,a3=!1,an=!1;class z1{current=new Map;#t=new Map;#e=new Set;#u=0;#s=null;#l=[];#n=[];#i=[];#r=[];#o=[];#f=[];skipped_effects=new Set;process(e){X1=[],this.apply();for(const s of e)this.#c(s);if(this.#u===0){var t=F1;this.#h();var r=this.#n,i=this.#i;this.#n=[],this.#i=[],this.#r=[],at=null,F1=t,J0(r),J0(i),this.#s?.resolve()}else this.#a(this.#n),this.#a(this.#i),this.#a(this.#r);F1=null;for(const s of this.#l)Ai(s);this.#l=[]}#c(e){e.f^=yt;for(var t=e.first;t!==null;){var r=t.f,i=(r&(lr|xr))!==0,s=i&&(r&yt)!==0,o=s||(r&D1)!==0||this.skipped_effects.has(t);if(!o&&t.fn!==null){i?t.f^=yt:(r&t3)!==0?this.#i.push(t):(r&yt)===0&&((r&Jn)!==0&&t.b?.is_pending()?this.#l.push(t):hn(t)&&((t.f&Nr)!==0&&this.#r.push(t),Ai(t)));var a=t.first;if(a!==null){t=a;continue}}var l=t.parent;for(t=t.next;t===null&&l!==null;)t=l.next,l=l.parent}}#a(e){for(const t of e)((t.f&o1)!==0?this.#o:this.#f).push(t),Pt(t,yt);e.length=0}capture(e,t){this.#t.has(e)||this.#t.set(e,t),this.current.set(e,e.v),F1?.set(e,e.v)}activate(){at=this}deactivate(){at=null,F1=null}flush(){if(X1.length>0){if(this.activate(),Q0(),at!==null&&at!==this)return}else this.#u===0&&this.#h();this.deactivate();for(const e of o3)if(o3.delete(e),e(),at!==null)break}#h(){for(const e of this.#e)e();if(this.#e.clear(),r2.size>1){this.#t.clear();let e=!0;for(const t of r2){if(t===this){e=!1;continue}const r=[];for(const[s,o]of this.current){if(t.current.has(s))if(e&&o!==t.current.get(s))t.current.set(s,o);else continue;r.push(s)}if(r.length===0)continue;const i=[...t.current.keys()].filter(s=>!this.current.has(s));if(i.length>0){for(const s of r)es(s,i);if(X1.length>0){at=t,t.apply();for(const s of X1)t.#c(s);X1=[],t.deactivate()}}}at=null}r2.delete(this)}increment(){this.#u+=1}decrement(){this.#u-=1;for(const e of this.#o)Pt(e,o1),Kr(e);for(const e of this.#f)Pt(e,fr),Kr(e);this.flush()}add_callback(e){this.#e.add(e)}settled(){return(this.#s??=B0()).promise}static ensure(){if(at===null){const e=at=new z1;r2.add(at),an||z1.enqueue(()=>{at===e&&e.flush()})}return at}static enqueue(e){Vi(e)}apply(){}}function V(n){var e=an;an=!0;try{for(var t;;){if(Ia(),X1.length===0&&(at?.flush(),X1.length===0))return i2=null,t;Q0()}}finally{an=e}}function Q0(){var n=Oi;a3=!0;try{var e=0;for(bs(!0);X1.length>0;){var t=z1.ensure();if(e++>1e3){var r,i;qa()}t.process(X1),kr.clear()}}finally{a3=!1,bs(n),i2=null}}function qa(){try{Pa()}catch(n){Hi(n,i2)}}let jr=null;function J0(n){var e=n.length;if(e!==0){for(var t=0;t0)){kr.clear();for(const i of jr)Ai(i);jr=[]}}jr=null}}function es(n,e){if(n.reactions!==null)for(const t of n.reactions){const r=t.f;(r&zt)!==0?es(t,e):(r&(Jn|Nr))!==0&&ts(t,e)&&(Pt(t,o1),Kr(t))}}function ts(n,e){if(n.deps!==null){for(const t of n.deps)if(e.includes(t)||(t.f&zt)!==0&&ts(t,e))return!0}return!1}function Kr(n){for(var e=i2=n;e.parent!==null;){e=e.parent;var t=e.f;if(a3&&e===ie&&(t&Nr)!==0)return;if((t&(xr|lr))!==0){if((t&yt)===0)return;e.f^=yt}}X1.push(e)}function Na(n){let e=0,t=Qr(0),r;return()=>{Ja()&&(P(t),un(()=>(e===0&&(r=Mr(()=>n(()=>fn(t)))),e+=1,()=>{Vi(()=>{e-=1,e===0&&(r?.(),r=void 0,fn(t))})})))}}var $a=sn|Yr|r3;function Ya(n,e,t){new Ua(n,e,t)}class Ua{parent;#t=!1;#e;#u=le?me:null;#s;#l;#n;#i=null;#r=null;#o=null;#f=null;#c=0;#a=0;#h=!1;#d=null;#v=()=>{this.#d&&ln(this.#d,this.#c)};#C=Na(()=>(this.#d=Qr(this.#c),()=>{this.#d=null}));constructor(e,t,r){this.#e=e,this.#s=t,this.#l=r,this.parent=ie.b,this.#t=!!this.#s.pending,this.#n=s2(()=>{if(ie.b=this,le){const i=this.#u;Wr(),i.nodeType===Mi&&i.data===Gn?this.#b():this.#m()}else{try{this.#i=a1(()=>r(this.#e))}catch(i){this.error(i)}this.#a>0?this.#p():this.#t=!1}},$a),le&&(this.#e=me)}#m(){try{this.#i=a1(()=>this.#l(this.#e))}catch(e){this.error(e)}this.#t=!1}#b(){const e=this.#s.pending;e&&(this.#r=a1(()=>e(this.#e)),z1.enqueue(()=>{this.#i=this.#g(()=>(z1.ensure(),a1(()=>this.#l(this.#e)))),this.#a>0?this.#p():(ti(this.#r,()=>{this.#r=null}),this.#t=!1)}))}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#g(e){var t=ie,r=he,i=Fe;G1(this.#n),Qt(this.#n),Pi(this.#n.ctx);try{return e()}catch(s){return j0(s),null}finally{G1(t),Qt(r),Pi(i)}}#p(){const e=this.#s.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),Xa(this.#i,this.#f)),this.#r===null&&(this.#r=a1(()=>e(this.#e)))}#_(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(e);return}this.#a+=e,this.#a===0&&(this.#t=!1,this.#r&&ti(this.#r,()=>{this.#r=null}),this.#f&&(this.#e.before(this.#f),this.#f=null),Vi(()=>{z1.ensure().flush()}))}update_pending_count(e){this.#_(e),this.#c+=e,o3.add(this.#v)}get_effect_pending(){return this.#C(),P(this.#d)}error(e){var t=this.#s.onerror;let r=this.#s.failed;if(this.#h||!t&&!r)throw e;this.#i&&(Kt(this.#i),this.#i=null),this.#r&&(Kt(this.#r),this.#r=null),this.#o&&(Kt(this.#o),this.#o=null),le&&(It(this.#u),ur(),It(t2()));var i=!1,s=!1;const o=()=>{if(i){Za();return}i=!0,s&&Ra(),z1.ensure(),this.#c=0,this.#o!==null&&ti(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#g(()=>(this.#h=!1,a1(()=>this.#l(this.#e)))),this.#a>0?this.#p():this.#t=!1};var a=he;try{Qt(null),s=!0,t?.(e,o),s=!1}catch(l){Hi(l,this.#n&&this.#n.parent)}finally{Qt(a)}r&&Vi(()=>{this.#o=this.#g(()=>{this.#h=!0;try{return a1(()=>{r(this.#e,()=>e,()=>o)})}catch(l){return Hi(l,this.#n.parent),null}finally{this.#h=!1}})})}}function Xa(n,e){for(var t=n.nodes_start,r=n.nodes_end;t!==null;){var i=t===r?null:W1(t);e.append(t),t=i}}function Wa(n,e,t){const r=on()?n2:f3;if(e.length===0){t(n.map(r));return}var i=at,s=ie,o=Ga(),a=le;Promise.all(e.map(l=>ja(l))).then(l=>{o();try{t([...n.map(r),...l])}catch(f){(s.f&$r)===0&&Hi(f,s)}a&&L1(!1),i?.deactivate(),l3()}).catch(l=>{Hi(l,s)})}function Ga(){var n=ie,e=he,t=Fe,r=at,i=le;if(i)var s=me;return function(){G1(n),Qt(e),Pi(t),r?.activate(),i&&(L1(!0),It(s))}}function l3(){G1(null),Qt(null),Pi(null)}function n2(n){var e=zt|o1,t=he!==null&&(he.f&zt)!==0?he:null;return ie===null||t!==null&&(t.f&w1)!==0?e|=w1:ie.f|=Yr,{ctx:Fe,deps:null,effects:null,equals:X0,f:e,fn:n,reactions:null,rv:0,v:bt,wv:0,parent:t??ie,ac:null}}function ja(n,e){let t=ie;t===null&&ka();var r=t.b,i=void 0,s=Qr(bt),o=!he,a=new Map;return sl(()=>{var l=B0();i=l.promise;try{Promise.resolve(n()).then(l.resolve,l.reject).then(l3)}catch(h){l.reject(h),l3()}var f=at,u=r.is_pending();o&&(r.update_pending_count(1),u||(f.increment(),a.get(f)?.reject(Si),a.delete(f),a.set(f,l)));const d=(h,c=void 0)=>{if(u||f.activate(),c)c!==Si&&(s.f|=Ur,ln(s,c));else{(s.f&Ur)!==0&&(s.f^=Ur),ln(s,h);for(const[p,g]of a){if(a.delete(p),p===f)break;g.reject(Si)}}o&&(r.update_pending_count(-1),u||f.decrement())};l.promise.then(d,h=>d(null,h||"unknown"))}),hs(()=>{for(const l of a.values())l.reject(Si)}),new Promise(l=>{function f(u){function d(){u===i?l(s):f(i)}u.then(d,d)}f(i)})}function f3(n){const e=n2(n);return e.equals=W0,e}function rs(n){var e=n.effects;if(e!==null){n.effects=null;for(var t=0;t{if(ii===s)return a();var l=he,f=ii;Qt(null),Ls(s);var u=a();return Qt(l),Ls(f),u};return r&&t.set("length",Me(n.length)),new Proxy(n,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ea();var u=t.get(l);return u===void 0?u=o(()=>{var d=Me(f.value);return t.set(l,d),d}):$(u,f.value,!0),!0},deleteProperty(a,l){var f=t.get(l);if(f===void 0){if(l in a){const u=o(()=>Me(bt));t.set(l,u),fn(i)}}else $(f,bt),fn(i);return!0},get(a,l,f){if(l===Xr)return n;var u=t.get(l),d=l in a;if(u===void 0&&(!d||qr(a,l)?.writable)&&(u=o(()=>{var c=Jr(d?a[l]:bt),p=Me(c);return p}),t.set(l,u)),u!==void 0){var h=P(u);return h===bt?void 0:h}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=t.get(l);u&&(f.value=P(u))}else if(f===void 0){var d=t.get(l),h=d?.v;if(d!==void 0&&h!==bt)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(a,l){if(l===Xr)return!0;var f=t.get(l),u=f!==void 0&&f.v!==bt||Reflect.has(a,l);if(f!==void 0||ie!==null&&(!u||qr(a,l)?.writable)){f===void 0&&(f=o(()=>{var h=u?Jr(a[l]):bt,c=Me(h);return c}),t.set(l,f));var d=P(f);if(d===bt)return!1}return u},set(a,l,f,u){var d=t.get(l),h=l in a;if(r&&l==="length")for(var c=f;cMe(bt)),t.set(c+"",p))}if(d===void 0)(!h||qr(a,l)?.writable)&&(d=o(()=>Me(void 0)),$(d,Jr(f)),t.set(l,d));else{h=d.v!==bt;var g=o(()=>Jr(f));$(d,g)}var _=Reflect.getOwnPropertyDescriptor(a,l);if(_?.set&&_.set.call(u,f),!h){if(r&&typeof l=="string"){var w=t.get("length"),b=Number(l);Number.isInteger(b)&&b>=w.v&&$(w,b+1)}fn(i)}return!0},ownKeys(a){P(i);var l=Reflect.ownKeys(a).filter(d=>{var h=t.get(d);return h===void 0||h.v!==bt});for(var[f,u]of t)u.v!==bt&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Oa()}})}var ss,os,as,ls;function h3(){if(ss===void 0){ss=window,os=/Firefox/.test(navigator.userAgent);var n=Element.prototype,e=Node.prototype,t=Text.prototype;as=qr(e,"firstChild").get,ls=qr(e,"nextSibling").get,I0(n)&&(n.__click=void 0,n.__className=void 0,n.__attributes=null,n.__style=void 0,n.__e=void 0),I0(t)&&(t.__t=void 0)}}function ei(n=""){return document.createTextNode(n)}function Ei(n){return as.call(n)}function W1(n){return ls.call(n)}function B(n,e){if(!le)return Ei(n);var t=Ei(me);if(t===null)t=me.appendChild(ei());else if(e&&t.nodeType!==s3){var r=ei();return t?.before(r),It(r),r}return It(t),t}function d3(n,e=!1){if(!le){var t=Ei(n);return t instanceof Comment&&t.data===""?W1(t):t}if(e&&me?.nodeType!==s3){var r=ei();return me?.before(r),It(r),r}return me}function ge(n,e=1,t=!1){let r=le?me:n;for(var i;e--;)i=r,r=W1(r);if(!le)return r;if(t&&r?.nodeType!==s3){var s=ei();return r===null?i?.after(s):r.before(s),It(s),s}return It(r),r}function fs(n){n.textContent=""}function us(){return!1}function g3(n){var e=he,t=ie;Qt(null),G1(null);try{return n()}finally{Qt(e),G1(t)}}function cs(n){ie===null&&he===null&&Ta(),he!==null&&(he.f&w1)!==0&&ie===null&&Ma(),ri&&Sa()}function Qa(n,e){var t=e.last;t===null?e.last=e.first=n:(t.next=n,n.prev=t,e.last=n)}function I1(n,e,t,r=!0){var i=ie;i!==null&&(i.f&D1)!==0&&(n|=D1);var s={ctx:Fe,deps:null,nodes_start:null,nodes_end:null,f:n|o1,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(t)try{Ai(s),s.f|=i3}catch(l){throw Kt(s),l}else e!==null&&Kr(s);if(r){var o=s;if(t&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Yr)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&Qa(o,i),he!==null&&(he.f&zt)!==0&&(n&xr)===0)){var a=he;(a.effects??=[]).push(o)}}return s}function Ja(){return he!==null&&!B1}function hs(n){const e=I1(Kn,null,!1);return Pt(e,yt),e.teardown=n,e}function cr(n){cs();var e=ie.f,t=!he&&(e&lr)!==0&&(e&i3)===0;if(t){var r=Fe;(r.e??=[]).push(n)}else return ds(n)}function ds(n){return I1(t3|N0,n,!1)}function el(n){return cs(),I1(Kn|N0,n,!0)}function tl(n){z1.ensure();const e=I1(xr|Yr,n,!0);return()=>{Kt(e)}}function rl(n){z1.ensure();const e=I1(xr|Yr,n,!0);return(t={})=>new Promise(r=>{t.outro?ti(e,()=>{Kt(e),r(void 0)}):(Kt(e),r(void 0))})}function gs(n){return I1(t3,n,!1)}function il(n,e){var t=Fe,r={effect:null,ran:!1,deps:n};t.l.$.push(r),r.effect=un(()=>{n(),!r.ran&&(r.ran=!0,Mr(e))})}function nl(){var n=Fe;un(()=>{for(var e of n.l.$){e.deps();var t=e.effect;(t.f&yt)!==0&&Pt(t,fr),hn(t)&&Ai(t),e.ran=!1}})}function sl(n){return I1(Jn|Yr,n,!0)}function un(n,e=0){return I1(Kn|e,n,!0)}function Ze(n,e=[],t=[]){Wa(e,t,r=>{I1(Kn,()=>n(...r.map(P)),!0)})}function s2(n,e=0){var t=I1(Nr|e,n,!0);return t}function a1(n,e=!0){return I1(lr|Yr,n,!0,e)}function ps(n){var e=n.teardown;if(e!==null){const t=ri,r=he;ys(!0),Qt(null);try{e.call(null)}finally{ys(t),Qt(r)}}}function _s(n,e=!1){var t=n.first;for(n.first=n.last=null;t!==null;){const i=t.ac;i!==null&&g3(()=>{i.abort(Si)});var r=t.next;(t.f&xr)!==0?t.parent=null:Kt(t,e),t=r}}function ol(n){for(var e=n.first;e!==null;){var t=e.next;(e.f&lr)===0&&Kt(e),e=t}}function Kt(n,e=!0){var t=!1;(e||(n.f&wa)!==0)&&n.nodes_start!==null&&n.nodes_end!==null&&(al(n.nodes_start,n.nodes_end),t=!0),_s(n,e&&!t),a2(n,0),Pt(n,$r);var r=n.transitions;if(r!==null)for(const s of r)s.stop();ps(n);var i=n.parent;i!==null&&i.first!==null&&vs(n),n.next=n.prev=n.teardown=n.ctx=n.deps=n.fn=n.nodes_start=n.nodes_end=n.ac=null}function al(n,e){for(;n!==null;){var t=n===e?null:W1(n);n.remove(),n=t}}function vs(n){var e=n.parent,t=n.prev,r=n.next;t!==null&&(t.next=r),r!==null&&(r.prev=t),e!==null&&(e.first===n&&(e.first=r),e.last===n&&(e.last=t))}function ti(n,e){var t=[];p3(n,t,!0),Cs(t,()=>{Kt(n),e&&e()})}function Cs(n,e){var t=n.length;if(t>0){var r=()=>--t||e();for(var i of n)i.out(r)}else e()}function p3(n,e,t){if((n.f&D1)===0){if(n.f^=D1,n.transitions!==null)for(const o of n.transitions)(o.is_global||t)&&e.push(o);for(var r=n.first;r!==null;){var i=r.next,s=(r.f&sn)!==0||(r.f&lr)!==0;p3(r,e,s?t:!1),r=i}}}function o2(n){ms(n,!0)}function ms(n,e){if((n.f&D1)!==0){n.f^=D1,(n.f&yt)===0&&(Pt(n,o1),Kr(n));for(var t=n.first;t!==null;){var r=t.next,i=(t.f&sn)!==0||(t.f&lr)!==0;ms(t,i?e:!1),t=r}if(n.transitions!==null)for(const s of n.transitions)(s.is_global||e)&&s.in()}}let Oi=!1;function bs(n){Oi=n}let ri=!1;function ys(n){ri=n}let he=null,B1=!1;function Qt(n){he=n}let ie=null;function G1(n){ie=n}let hr=null;function ll(n){he!==null&&(hr===null?hr=[n]:hr.push(n))}let Bt=null,l1=0,S1=null;function fl(n){S1=n}let ws=1,cn=0,ii=cn;function Ls(n){ii=n}let Sr=!1;function xs(){return++ws}function hn(n){var e=n.f;if((e&o1)!==0)return!0;if((e&fr)!==0){var t=n.deps,r=(e&w1)!==0;if(t!==null){var i,s,o=(e&Qn)!==0,a=r&&ie!==null&&!Sr,l=t.length;if((o||a)&&(ie===null||(ie.f&$r)===0)){var f=n,u=f.parent;for(i=0;in.wv)return!0}(!r||ie!==null&&!Sr)&&Pt(n,yt)}return!1}function ks(n,e,t=!0){var r=n.reactions;if(r!==null&&!hr?.includes(n))for(var i=0;i{n.ac.abort(Si)}),n.ac=null);try{n.f|=n3;var d=n.fn,h=d(),c=n.deps;if(Bt!==null){var p;if(a2(n,l1),c!==null&&l1>0)for(c.length=l1+Bt.length,p=0;pt?.call(this,s))}return n.startsWith("pointer")||n.startsWith("touch")||n==="wheel"?Vi(()=>{e.addEventListener(n,i,r)}):e.addEventListener(n,i,r),i}function j1(n,e,t,r,i){var s={capture:r,passive:i},o=dl(n,e,t,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&hs(()=>{e.removeEventListener(n,o,s)})}function Vs(n){for(var e=0;e{throw b});throw h}}finally{n.__root=e,delete n.currentTarget,Qt(u),G1(d)}}}function gl(n){var e=document.createElement("template");return e.innerHTML=n.replaceAll("",""),e.content}function gn(n,e){var t=ie;t.nodes_start===null&&(t.nodes_start=n,t.nodes_end=e)}function Oe(n,e){var t=(e&ga)!==0,r=(e&pa)!==0,i,s=!n.startsWith("");return()=>{if(le)return gn(me,null),me;i===void 0&&(i=gl(s?n:""+n),t||(i=Ei(i)));var o=r||os?document.importNode(i,!0):i.cloneNode(!0);if(t){var a=Ei(o),l=o.lastChild;gn(a,l)}else gn(o,o);return o}}function Te(n,e){if(le){ie.nodes_end=me,Wr();return}n!==null&&n.before(e)}const pl=["touchstart","touchmove"];function _l(n){return pl.includes(n)}function M1(n,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(n.__t??=n.nodeValue)&&(n.__t=t,n.nodeValue=t+"")}function Es(n,e){return Os(n,e)}function vl(n,e){h3(),e.intro=e.intro??!1;const t=e.target,r=le,i=me;try{for(var s=Ei(t);s&&(s.nodeType!==Mi||s.data!==D0);)s=W1(s);if(!s)throw xi;L1(!0),It(s);const o=Os(n,{...e,anchor:s});return L1(!1),o}catch(o){if(o instanceof Error&&o.message.split(` -`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==xi&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Va(),h3(),fs(t),L1(!1),Es(n,e)}finally{L1(r),It(i)}}const Ri=new Map;function Os(n,{target:e,anchor:t,props:r={},events:i,context:s,intro:o=!0}){h3();var a=new Set,l=d=>{for(var h=0;h{var d=t??e.appendChild(ei());return Ya(d,{pending:()=>{}},h=>{if(s){x1({});var c=Fe;c.c=s}if(i&&(r.$$events=i),le&&gn(h,null),f=n(h,r)||{},le&&(ie.nodes_end=me,me===null||me.nodeType!==Mi||me.data!==j2))throw e2(),xi;s&&k1()}),()=>{for(var h of a){e.removeEventListener(h,dn);var c=Ri.get(h);--c===0?(document.removeEventListener(h,dn),Ri.delete(h)):Ri.set(h,c)}v3.delete(l),d!==t&&d.parentNode?.removeChild(d)}});return C3.set(f,u),f}let C3=new WeakMap;function Cl(n,e){const t=C3.get(n);return t?(C3.delete(n),t(e)):Promise.resolve()}function Zi(n){Fe===null&&Y0(),Ti&&Fe.l!==null?ml(Fe).m.push(n):cr(()=>{const e=Mr(n);if(typeof e=="function")return e})}function m3(n){Fe===null&&Y0(),Zi(()=>()=>Mr(n))}function ml(n){var e=n.l;return e.u??={a:[],b:[],m:[]}}function T1(n,e,t=!1){le&&Wr();var r=n,i=null,s=null,o=bt,a=t?sn:0,l=!1;const f=(c,p=!0)=>{l=!0,h(p,c)};var u=null;function d(){u!==null&&(u.lastChild.remove(),r.before(u),u=null);var c=o?i:s,p=o?s:i;c&&o2(c),p&&ti(p,()=>{o?s=null:i=null})}const h=(c,p)=>{if(o===(o=c))return;let g=!1;if(le){const L=U0(r)===Gn;!!o===L&&(r=t2(),It(r),L1(!1),g=!0)}var _=us(),w=r;if(_&&(u=document.createDocumentFragment(),u.append(w=ei())),o?i??=p&&a1(()=>p(w)):s??=p&&a1(()=>p(w)),_){var b=at,y=o?i:s,C=o?s:i;y&&b.skipped_effects.delete(y),C&&b.skipped_effects.add(C),b.add_callback(d)}else d();g&&L1(!0)};s2(()=>{l=!1,e(f),l||h(null,null)},a),le&&(r=me)}function bl(n,e){return e}function yl(n,e,t){for(var r=n.items,i=[],s=e.length,o=0;o0&&i.length===0&&t!==null;if(a){var l=t.parentNode;fs(l),l.append(t),r.clear(),K1(n,e[0].prev,e[s-1].next)}Cs(i,()=>{for(var f=0;f{var g=t();return K2(g)?g:g==null?[]:Q2(g)}),h,c;function p(){Ll(c,h,a,u,o,i,e,r,t),s!==null&&(h.length===0?l?o2(l):l=a1(()=>s(o)):l!==null&&ti(l,()=>{l=null}))}s2(()=>{c??=ie,h=P(d);var g=h.length;if(f&&g===0)return;f=g===0;let _=!1;if(le){var w=U0(o)===Gn;w!==(g===0)&&(o=t2(),It(o),L1(!1),_=!0)}if(le){for(var b=null,y,C=0;C0&&It(t2())}if(le)g===0&&s&&(l=a1(()=>s(o)));else if(us()){var m=new Set,O=at;for(C=0;C0){var N=null;yl(t,A,N)}}n.first=t.first&&t.first.e,n.last=p&&p.e;for(var X of r.values())Kt(X.e);r.clear()}function As(n,e,t,r){ln(n.v,e),n.i=t}function b3(n,e,t,r,i,s,o,a,l,f,u){var d=(l&oa)!==0,h=(l&la)===0,c=d?h?c3(i,!1,!1):Qr(i):i,p=(l&aa)===0?o:Qr(o),g={i:p,v:c,k:s,a:null,e:null,prev:t,next:r};try{if(n===null){var _=document.createDocumentFragment();_.append(n=ei())}return g.e=a1(()=>a(n,c,p,f),le),g.e.prev=t&&t.e,g.e.next=r&&r.e,t===null?u||(e.first=g):(t.next=g,t.e.next=g.e),r!==null&&(r.prev=g,r.e.prev=g.e),g}finally{}}function y3(n,e,t){for(var r=n.next?n.next.e.nodes_start:t,i=e?e.e.nodes_start:t,s=n.e.nodes_start;s!==null&&s!==r;){var o=W1(s);i.before(s),s=o}}function K1(n,e,t){e===null?n.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function xl(n,e,t,r,i){le&&Wr();var s=e.$$slots?.[t],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?i!==null&&i(n):s(n,o?()=>r:r)}function kl(n,e,t,r,i,s){let o=le;le&&Wr();var a,l,f=null;le&&me.nodeType===xa&&(f=me,Wr());var u=le?me:n,d;s2(()=>{const h=e()||null;var c=h==="svg"?va:null;h!==a&&(d&&(h===null?ti(d,()=>{d=null,l=null}):h===l?o2(d):Kt(d)),h&&h!==l&&(d=a1(()=>{f=le?f:c?document.createElementNS(c,h):document.createElement(h),gn(f,f),ie.nodes_end=f,u.before(f)})),a=h,a&&(l=a))},sn),o&&(L1(!0),It(u))}function dr(n,e){gs(()=>{var t=n.getRootNode(),r=t.host?t:t.head??t.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}const Rs=[...` -\r\f \v\uFEFF`];function Sl(n,e,t){var r=n==null?"":""+n;if(t){for(var i in t)if(t[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;(o===0||Rs.includes(r[o-1]))&&(a===r.length||Rs.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Zs(n,e=!1){var t=e?" !important;":";",r="";for(var i in n){var s=n[i];s!=null&&s!==""&&(r+=" "+i+": "+s+t)}return r}function w3(n){return n[0]!=="-"||n[1]!=="-"?n.toLowerCase():n}function Ml(n,e){if(e){var t="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,n){n=String(n).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,o=0,a=!1,l=[];r&&l.push(...Object.keys(r).map(w3)),i&&l.push(...Object.keys(i).map(w3));var f=0,u=-1;const g=n.length;for(var d=0;d{var i,s;return un(()=>{i=s,s=[],Mr(()=>{n!==t(...s)&&(e(n,...s),i&&zs(t(...i),n)&&e(null,...i))})}),()=>{Vi(()=>{s&&zs(t(...s),n)&&e(null,...s)})}}),n}function Ol(n=!1){const e=Fe,t=e.l.u;if(!t)return;let r=()=>Ts(e.s);if(n){let i=0,s={};const o=n2(()=>{let a=!1;const l=e.s;for(const f in l)l[f]!==s[f]&&(s[f]=l[f],a=!0);return a&&i++,i});r=()=>P(o)}t.b.length&&el(()=>{Is(e,r),e3(t.b)}),cr(()=>{const i=Mr(()=>t.m.map(ya));return()=>{for(const s of i)typeof s=="function"&&s()}}),t.a.length&&cr(()=>{Is(e,r),e3(t.a)})}function Is(n,e){if(n.l.s)for(const t of n.l.s)P(t);e()}let l2=!1;function Al(n){var e=l2;try{return l2=!1,[n(),l2]}finally{l2=e}}function E(n,e,t,r){var i=!Ti||(t&ua)!==0,s=(t&ha)!==0,o=(t&da)!==0,a=r,l=!0,f=()=>(l&&(l=!1,a=o?Mr(r):r),a),u;if(s){var d=Xr in n||$0 in n;u=qr(n,e)?.set??(d&&e in n?y=>n[e]=y:void 0)}var h,c=!1;s?[h,c]=Al(()=>n[e]):h=n[e],h===void 0&&r!==void 0&&(h=f(),u&&(i&&Ha(),u(h)));var p;if(i?p=()=>{var y=n[e];return y===void 0?f():(l=!0,y)}:p=()=>{var y=n[e];return y!==void 0&&(a=void 0),y===void 0?a:y},i&&(t&ca)===0)return p;if(u){var g=n.$$legacy;return(function(y,C){return arguments.length>0?((!i||!C||g||c)&&u(C?p():y),y):p()})}var _=!1,w=((t&fa)!==0?n2:f3)(()=>(_=!1,p()));s&&P(w);var b=ie;return(function(y,C){if(arguments.length>0){const L=C?P(w):i&&s?Jr(y):y;return $(w,L),_=!0,a!==void 0&&(a=L),y}return ri&&_||(b.f&$r)!==0?w.v:P(w)})}function Rl(n){return new Zl(n)}class Zl{#t;#e;constructor(e){var t=new Map,r=(s,o)=>{var a=c3(o,!1,!1);return t.set(s,a),a};const i=new Proxy({...e.props||{},$$events:{}},{get(s,o){return P(t.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===$0?!0:(P(t.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return $(t.get(o)??r(o,a),a),Reflect.set(s,o,a)}});this.#e=(e.hydrate?vl:Es)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&V(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ki(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Cl(this.#e)}}$set(e){this.#e.$set(e)}$on(e,t){this.#t[e]=this.#t[e]||[];const r=(...i)=>t.call(this,...i);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Bs;typeof HTMLElement=="function"&&(Bs=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(n,e,t){super(),this.$$ctor=n,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(n,e,t){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(e),this.$$c){const r=this.$$c.$on(n,e);this.$$l_u.set(e,r)}super.addEventListener(n,e,t)}removeEventListener(n,e,t){if(super.removeEventListener(n,e,t),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Te(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},t=Dl(this);for(const r of this.$$s)r in t&&(r==="default"&&!this.$$d.children?(this.$$d.children=n(r),e.default=!0):e[r]=n(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=f2(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Rl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=tl(()=>{un(()=>{this.$$r=!0;for(const r of jn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=f2(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(n,e,t){this.$$r||(n=this.$$g_p(n),this.$$d[n]=f2(n,t,this.$$p_d,"toProp"),this.$$c?.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(n){return jn(this.$$p_d).find(e=>this.$$p_d[e].attribute===n||!this.$$p_d[e].attribute&&e.toLowerCase()===n)||n}});function f2(n,e,t,r){const i=t[n]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[n])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Dl(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function q1(n,e,t,r,i,s){let o=class extends Bs{constructor(){super(n,t,i),this.$$p_d=e}static get observedAttributes(){return jn(e).map(a=>(e[a].attribute||a).toLowerCase())}};return jn(e).forEach(a=>{ki(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=f2(a,l,e),this.$$d[a]=l;var f=this.$$c;if(f){var u=qr(f,a)?.get;u?f[a]=l:f.$set({[a]:l})}}})}),r.forEach(a=>{ki(o.prototype,a,{get(){return this.$$c?.[a]}})}),n.element=o,o}function Fl(n,e,t){P(e)&&(P(e).paused?(P(e).play(),$(t,!0)):(P(e).pause(),$(t,!1)))}function zl(n,e){P(e)&&(P(e).currentTime=0)}function Il(n,e){P(e)&&Number.isFinite(P(e).duration)&&(P(e).currentTime=P(e).duration)}function Bl(n,e){if(!P(e)||!Number.isFinite(P(e).duration))return;const t=n.currentTarget.getBoundingClientRect(),r=(n.clientX-t.left)/t.width;P(e).currentTime=r*P(e).duration}function ql(n,e){if(!P(e)||!Number.isFinite(P(e).duration))return;const t=5;switch(n.key){case"ArrowLeft":n.preventDefault(),P(e).currentTime=Math.max(0,P(e).currentTime-t);break;case"ArrowRight":n.preventDefault(),P(e).currentTime=Math.min(P(e).duration,P(e).currentTime+t);break;case"Home":n.preventDefault(),P(e).currentTime=0;break;case"End":n.preventDefault(),P(e).currentTime=P(e).duration;break;case"PageDown":n.preventDefault(),P(e).currentTime=Math.max(0,P(e).currentTime-10);break;case"PageUp":n.preventDefault(),P(e).currentTime=Math.min(P(e).duration,P(e).currentTime+10);break}}var Nl=Oe(''),$l=(n,e)=>e(-10),Yl=(n,e)=>e(10),Ul=(n,e,t)=>{$(e,!P(e)),$(t,!1)},Xl=Oe(''),Wl=async(n,e,t,r)=>{const i=e()||location.href;try{navigator.share?await navigator.share({title:t(),url:i}):navigator.clipboard&&await navigator.clipboard.writeText(i)}catch{}$(r,!1)},Gl=(n,e)=>{$(e,!0)},jl=Oe(' ',1),Kl=(n,e)=>{$(e,!1)},Ql=(n,e,t)=>{e(P(t))},Jl=Oe(''),e9=Oe(''),t9=Oe('

      ');const r9={hash:"svelte-1ed370f",code:`:host {display:block;font-family:var(--ab-font, "IBM Plex Sans", system-ui, sans-serif);color:var(--ab-text, #fffefa);}.player.svelte-1ed370f {position:relative;width:100%;height:411px;border-radius:var(--ab-border-radius, 20px);overflow:hidden;} - - @media (min-width: 900px) {.player.svelte-1ed370f {margin:auto;min-width:390px;max-width:700px;max-height:400px;} - }.bg-wrap.svelte-1ed370f {position:absolute;inset:0;height:95%;overflow:hidden;z-index:1;border-radius:var(--ab-border-radius, 20px);background:var(--ab-bg-fallback, #050f27);}.bg-wrap.svelte-1ed370f img:where(.svelte-1ed370f) {width:100%;height:auto;display:block;}.controls.svelte-1ed370f {position:absolute;inset-inline:0;bottom:0;z-index:2;background:var(--ab-surface, #0d1e45);border-radius:var(--ab-border-radius, 20px);padding-top:10px;}.title.svelte-1ed370f {margin:5px 20px;max-width:90%;font-size:var(--ab-title-size, 1.6em);font-weight:700;color:var(--ab-text, #fffefa);}.progress.svelte-1ed370f {width:calc(100% - 40px);height:20px;margin:15px auto 0;border-radius:2px;background:var(--ab-progress-bg, #ffffff30);position:relative;cursor:pointer;}.progress.svelte-1ed370f > .bar:where(.svelte-1ed370f) {height:100%;width:var(--ab-progress, 0%);border-radius:2px;background:var(--ab-progress-fill, #0066cc);}.row.svelte-1ed370f {display:flex;justify-content:space-around;align-items:center;gap:8px;padding:14px 0 18px;}button.icon.svelte-1ed370f {appearance:none;border:0;background:transparent;padding:6px;border-radius:8px;cursor:pointer;}button.icon.svelte-1ed370f:focus-visible {outline:2px solid var(--ab-accent, #5ea0ff);outline-offset:2px;}.icon-img.svelte-1ed370f {width:35px;height:35px;margin:6px;filter:var( - --ab-icon-filter, - invert(100%) sepia(59%) saturate(541%) hue-rotate(298deg) brightness(104%) - contrast(105%) - );}.kebab.svelte-1ed370f {position:relative;}.menu.svelte-1ed370f {display:none;position:absolute;right:0;bottom:calc(100% + 8px);background:var(--ab-menu-bg, #f9f9f9);color:var(--ab-menu-fg, #111);min-width:180px;box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);border-radius:8px;padding:6px;z-index:10;}.menu.open.svelte-1ed370f {display:block;}.menu.svelte-1ed370f button.item:where(.svelte-1ed370f) {display:flex;align-items:center;gap:8px;width:100%;background:transparent;border:0;text-align:left;padding:10px 12px;color:inherit;border-radius:6px;cursor:pointer;}.menu.svelte-1ed370f button.item:where(.svelte-1ed370f):hover {background:var(--ab-menu-hover-bg, #0a2458);color:var(--ab-menu-hover-fg, #fcfcfc);}.menu.svelte-1ed370f .mini-icon:where(.svelte-1ed370f) {width:1em;height:1em;filter:var(--ab-menu-icon-filter, invert(0%));transition:filter 0.15s ease; /* optional: smoother hover */} - - /* NEW: match icon to hovered item’s “light on dark” colors */.menu.svelte-1ed370f button.item:where(.svelte-1ed370f):hover .mini-icon:where(.svelte-1ed370f), - .menu.svelte-1ed370f button.item:where(.svelte-1ed370f):focus-visible .mini-icon:where(.svelte-1ed370f) {filter:var( - --ab-menu-icon-hover-filter, - invert(100%) - ); /* default: light icon */}.submenu.svelte-1ed370f {max-height:220px;overflow:auto;}.speedBtn[selected].svelte-1ed370f::before {content:"✓ ";}`};function qs(n,e){x1(e,!0),dr(n,r9);let t=E(e,"title",7,"Audio Brief"),r=E(e,"audioSrc",7,"https://res.cloudinary.com/csisideaslab/video/upload/v1707945697/Shorthand/Global%20Forecast/G_Allen_GFAB_vF_mixdown.mp3"),i=E(e,"transcriptSrc",7,""),s=E(e,"bgImage",7,""),o=E(e,"backgroundImageAlt",7,""),a=E(e,"bgColor",7,"#050f27"),l=E(e,"fontUrl",7,""),f=E(e,"fontFamily",7,"'IBM Plex Sans', system-ui, sans-serif"),u=E(e,"iconPlay",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706117784/Shorthand/Global%20Forecast/play-svgrepo-com.svg"),d=E(e,"iconPause",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706119327/Shorthand/Global%20Forecast/pause-svgrepo-com.svg"),h=E(e,"iconSkipBack",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/backward.svg"),c=E(e,"iconSkipForward",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/forward.svg"),p=E(e,"iconSkipStart",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706117793/Shorthand/Global%20Forecast/backward-3-svgrepo-com.svg"),g=E(e,"iconSkipEnd",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706117789/Shorthand/Global%20Forecast/forward-3-svgrepo-com.svg"),_=E(e,"iconMenu",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1771450639/Shorthand/Global%20Forecast/kebab-menu.svg"),w=E(e,"iconDownload",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148613/Shorthand/Global%20Forecast/download-svgrepo-com.svg"),b=E(e,"iconShare",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148595/Shorthand/Global%20Forecast/share-alt-svgrepo-com.svg"),y=E(e,"iconBack",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148618/Shorthand/Global%20Forecast/left-arrow-svgrepo-com.svg"),C=E(e,"iconSpeed",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1706148589/Shorthand/Global%20Forecast/playback-speed-svgrepo-com.svg"),L=E(e,"borderRadius",7,"20px"),k=E(e,"textColor",7,"#fffefa"),m=E(e,"surface",7,"#0d1e45"),O=E(e,"accent",7,"#5ea0ff"),S=E(e,"titleSize",7,"1.6em"),H=E(e,"progressBg",7,"#ffffff30"),Z=E(e,"progressFill",7,"#0066cc"),A=E(e,"menuBg",7,"#f9f9f9"),Y=E(e,"menuFg",7,"#111"),N=E(e,"menuHoverBg",7,"#0a2458"),X=E(e,"menuHoverFg",7,"#fcfcfc"),ee=E(e,"iconFilter",7,"invert(100%) sepia(59%) saturate(541%) hue-rotate(298deg) brightness(104%) contrast(105%)"),M=E(e,"menuIconFilter",7,"invert(0%)"),J=E(e,"menuIconHoverFilter",7,"invert(100%)");cr(()=>{const te=(P(F)?.getRootNode&&P(F).getRootNode()||document).host;te&&te.style.setProperty("--ab-font",f())}),cr(()=>{if(!l())return;const T=document.head;if(!T.querySelector('link[rel="preconnect"][href="https://fonts.googleapis.com"]')){const ce=document.createElement("link");ce.rel="preconnect",ce.href="https://fonts.googleapis.com",T.appendChild(ce)}if(!T.querySelector('link[rel="preconnect"][href="https://fonts.gstatic.com"]')){const ce=document.createElement("link");ce.rel="preconnect",ce.href="https://fonts.gstatic.com",ce.crossOrigin="anonymous",T.appendChild(ce)}let te=T.querySelector(`link[rel="stylesheet"][href="${l()}"]`);te||(te=document.createElement("link"),te.rel="stylesheet",te.href=l(),T.appendChild(te))});let F=Me(void 0),v=Me(!1),we=Me(0),He=Me(!1),Je=Me(!1),ke=Me(1),Ie,Re;const ye=[.5,.75,1,1.25,1.5,2];function We(T){if(!P(F))return;const te=P(F).duration??0,ce=Math.max(0,Math.min((P(F).currentTime||0)+T,Number.isFinite(te)?te:0));P(F).currentTime=ce}function ot(){if(!P(F)||!Number.isFinite(P(F).duration)){$(we,0);return}$(we,P(F).currentTime/P(F).duration*100)}function Z1(T){$(ke,T,!0),P(F)&&(P(F).playbackRate=T)}function _e(T,te){const St=(P(F)?.getRootNode?.()||document).host;St&&(te==null||te===""?St.style.removeProperty(T):St.style.setProperty(T,String(te)))}cr(()=>{P(F)&&(P(F).playbackRate=P(ke))}),cr(()=>{function T(te){if(!P(He))return;const ce=te.composedPath?.()??[],St=Ie&&ce.includes(Ie),m1=Re&&ce.includes(Re);!St&&!m1&&($(He,!1),$(Je,!1))}return document.addEventListener("pointerdown",T,!0),()=>document.removeEventListener("pointerdown",T,!0)}),cr(()=>{_e("--ab-border-radius",L()),_e("--ab-text",k()),_e("--ab-surface",m()),_e("--ab-accent",O()),_e("--ab-title-size",S()),_e("--ab-progress-bg",H()),_e("--ab-progress-fill",Z()),_e("--ab-menu-bg",A()),_e("--ab-menu-fg",Y()),_e("--ab-menu-hover-bg",N()),_e("--ab-menu-hover-fg",X()),_e("--ab-icon-filter",ee()),_e("--ab-menu-icon-filter",M()),_e("--ab-menu-icon-hover-filter",J())});var pt={get title(){return t()},set title(T="Audio Brief"){t(T),V()},get audioSrc(){return r()},set audioSrc(T="https://res.cloudinary.com/csisideaslab/video/upload/v1707945697/Shorthand/Global%20Forecast/G_Allen_GFAB_vF_mixdown.mp3"){r(T),V()},get transcriptSrc(){return i()},set transcriptSrc(T=""){i(T),V()},get bgImage(){return s()},set bgImage(T=""){s(T),V()},get backgroundImageAlt(){return o()},set backgroundImageAlt(T=""){o(T),V()},get bgColor(){return a()},set bgColor(T="#050f27"){a(T),V()},get fontUrl(){return l()},set fontUrl(T=""){l(T),V()},get fontFamily(){return f()},set fontFamily(T="'IBM Plex Sans', system-ui, sans-serif"){f(T),V()},get iconPlay(){return u()},set iconPlay(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706117784/Shorthand/Global%20Forecast/play-svgrepo-com.svg"){u(T),V()},get iconPause(){return d()},set iconPause(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706119327/Shorthand/Global%20Forecast/pause-svgrepo-com.svg"){d(T),V()},get iconSkipBack(){return h()},set iconSkipBack(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/backward.svg"){h(T),V()},get iconSkipForward(){return c()},set iconSkipForward(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706201954/Shorthand/Global%20Forecast/forward.svg"){c(T),V()},get iconSkipStart(){return p()},set iconSkipStart(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706117793/Shorthand/Global%20Forecast/backward-3-svgrepo-com.svg"){p(T),V()},get iconSkipEnd(){return g()},set iconSkipEnd(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706117789/Shorthand/Global%20Forecast/forward-3-svgrepo-com.svg"){g(T),V()},get iconMenu(){return _()},set iconMenu(T="https://res.cloudinary.com/csisideaslab/image/upload/v1771450639/Shorthand/Global%20Forecast/kebab-menu.svg"){_(T),V()},get iconDownload(){return w()},set iconDownload(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706148613/Shorthand/Global%20Forecast/download-svgrepo-com.svg"){w(T),V()},get iconShare(){return b()},set iconShare(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706148595/Shorthand/Global%20Forecast/share-alt-svgrepo-com.svg"){b(T),V()},get iconBack(){return y()},set iconBack(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706148618/Shorthand/Global%20Forecast/left-arrow-svgrepo-com.svg"){y(T),V()},get iconSpeed(){return C()},set iconSpeed(T="https://res.cloudinary.com/csisideaslab/image/upload/v1706148589/Shorthand/Global%20Forecast/playback-speed-svgrepo-com.svg"){C(T),V()},get borderRadius(){return L()},set borderRadius(T="20px"){L(T),V()},get textColor(){return k()},set textColor(T="#fffefa"){k(T),V()},get surface(){return m()},set surface(T="#0d1e45"){m(T),V()},get accent(){return O()},set accent(T="#5ea0ff"){O(T),V()},get titleSize(){return S()},set titleSize(T="1.6em"){S(T),V()},get progressBg(){return H()},set progressBg(T="#ffffff30"){H(T),V()},get progressFill(){return Z()},set progressFill(T="#0066cc"){Z(T),V()},get menuBg(){return A()},set menuBg(T="#f9f9f9"){A(T),V()},get menuFg(){return Y()},set menuFg(T="#111"){Y(T),V()},get menuHoverBg(){return N()},set menuHoverBg(T="#0a2458"){N(T),V()},get menuHoverFg(){return X()},set menuHoverFg(T="#fcfcfc"){X(T),V()},get iconFilter(){return ee()},set iconFilter(T="invert(100%) sepia(59%) saturate(541%) hue-rotate(298deg) brightness(104%) contrast(105%)"){ee(T),V()},get menuIconFilter(){return M()},set menuIconFilter(T="invert(0%)"){M(T),V()},get menuIconHoverFilter(){return J()},set menuIconHoverFilter(T="invert(100%)"){J(T),V()}},oe=t9(),Le=B(oe),_t=B(Le);{var xt=T=>{var te=Nl();Ze(()=>{re(te,"alt",o()),re(te,"src",s()),re(te,"aria-hidden",o()?"false":"true")}),Te(T,te)};T1(_t,T=>{s()&&T(xt)})}I(Le);var x=ge(Le,2),ut=B(x),s1=B(ut,!0);I(ut);var vt=ge(ut,2);gr(vt,T=>$(F,T),()=>P(F));var ve=ge(vt,2);ve.__click=[Bl,F],ve.__keydown=[ql,F];var kt=ge(ve,2),R=B(kt);R.__click=[zl,F];var q=B(R);I(R);var K=ge(R,2);K.__click=[$l,We];var et=B(K);I(K);var de=ge(K,2);de.__click=[Fl,F,v];var tt=B(de);I(de);var Ge=ge(de,2);Ge.__click=[Yl,We];var Gt=B(Ge);I(Ge);var Rt=ge(Ge,2);Rt.__click=[Il,F];var Se=B(Rt);I(Rt);var $1=ge(Rt,2),Ct=B($1);Ct.__click=[Ul,He,Je];var Be=B(Ct);I(Ct),gr(Ct,T=>Re=T,()=>Re);var De=ge(Ct,2);let Y1;var wr=B(De);{var ae=T=>{var te=jl(),ce=d3(te);ce.__click=()=>{if(!r())return;const D=document.createElement("a");D.href=r().includes("/upload/")?r().replace("upload/","upload/fl_attachment/"):r(),D.download="",D.click(),$(He,!1)};var St=B(ce);ur(),I(ce);var m1=ge(ce,2);{var b1=D=>{var j=Xl();j.__click=()=>{const Q=document.createElement("a");Q.href=i(),Q.target="_blank",Q.click(),$(He,!1)};var W=B(j);ur(),I(j),Ze(()=>re(W,"src",w())),Te(D,j)};T1(m1,D=>{i()&&D(b1)})}var jt=ge(m1,2);jt.__click=[Wl,r,t,He];var G=B(jt);ur(),I(jt);var U=ge(jt,2);U.__click=[Gl,Je];var be=B(U);ur(),I(U),Ze(()=>{re(St,"src",w()),re(G,"src",b()),re(be,"src",C())}),Te(T,te)},Lr=T=>{var te=e9(),ce=B(te);ce.__click=[Kl,Je];var St=B(ce);ur(),I(ce);var m1=ge(ce,2);wl(m1,17,()=>ye,bl,(b1,jt)=>{var G=Jl();G.__click=[Ql,Z1,jt];var U=B(G);I(G),Ze(()=>{Vl(G,P(jt)===P(ke)),M1(U,`${P(jt)??""}x${P(jt)===1?" (Normal)":""}`)}),Te(b1,G)}),I(te),Ze(()=>re(St,"src",y())),Te(T,te)};T1(wr,T=>{P(Je)?T(Lr,!1):T(ae)})}return I(De),gr(De,T=>Ie=T,()=>Ie),I($1),I(kt),I(x),I(oe),Ze((T,te,ce)=>{Ue(Le,`--ab-bg-fallback:${a()}`),M1(s1,t()),re(vt,"src",r()),re(vt,"playbackrate",P(ke)),re(ve,"aria-valuemax",T),re(ve,"aria-valuenow",te),Ue(ve,`--ab-progress:${P(we)}%`),re(q,"src",p()),re(et,"src",h()),re(de,"aria-label",P(v)?"Pause":"Play"),re(tt,"src",P(v)?d():u()),re(Gt,"src",c()),re(Se,"src",g()),re(Ct,"aria-expanded",P(He)),re(Be,"src",_()),Y1=Ds(De,1,"menu svelte-1ed370f",null,Y1,ce)},[()=>Math.floor(P(F)?.duration||0),()=>Math.floor(P(F)?.currentTime||0),()=>({open:P(He)})]),j1("timeupdate",vt,ot),j1("play",vt,()=>$(v,!0)),j1("pause",vt,()=>$(v,!1)),Te(n,oe),k1(pt)}Vs(["click","keydown"]),customElements.define("csis-audio-brief",q1(qs,{title:{reflect:!0,type:"String"},audioSrc:{attribute:"audio-src",type:"String"},transcriptSrc:{attribute:"transcript-src",type:"String"},bgImage:{attribute:"bg-image",type:"String"},backgroundImageAlt:{attribute:"background-image-alt",type:"String"},bgColor:{attribute:"bg-color",type:"String"},fontUrl:{attribute:"font-url",type:"String"},fontFamily:{attribute:"font-family",type:"String"},iconPlay:{attribute:"icon-play",type:"String"},iconPause:{attribute:"icon-pause",type:"String"},iconSkipBack:{attribute:"icon-skip-back",type:"String"},iconSkipForward:{attribute:"icon-skip-forward",type:"String"},iconSkipStart:{attribute:"icon-skip-start",type:"String"},iconSkipEnd:{attribute:"icon-skip-end",type:"String"},iconMenu:{attribute:"icon-menu",type:"String"},iconDownload:{attribute:"icon-download",type:"String"},iconShare:{attribute:"icon-share",type:"String"},iconBack:{attribute:"icon-back",type:"String"},iconSpeed:{attribute:"icon-speed",type:"String"},borderRadius:{attribute:"border-radius",type:"String"},textColor:{attribute:"text",type:"String"},surface:{attribute:"surface",type:"String"},accent:{attribute:"accent",type:"String"},titleSize:{attribute:"title-size",type:"String"},progressBg:{attribute:"progress-bg",type:"String"},progressFill:{attribute:"progress-fill",type:"String"},menuBg:{attribute:"menu-bg",type:"String"},menuFg:{attribute:"menu-fg",type:"String"},menuHoverBg:{attribute:"menu-hover-bg",type:"String"},menuHoverFg:{attribute:"menu-hover-fg",type:"String"},iconFilter:{attribute:"icon-filter",type:"String"},menuIconFilter:{attribute:"menu-icon-filter",type:"String"},menuIconHoverFilter:{attribute:"menu-icon-hover-filter",type:"String"}},[],[],!0));const i9=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"}));var n9=Oe(`This Hidden Reach Snapshot uses satellite imagery to - reveal how China is quietly using submarine diplomacy to deepen its - influence along the Bay of Bengal.`,1),s9=Oe('
      ');const o9={hash:"svelte-hgqz32",code:` - /* Shadow DOM styles — encapsulated by default */ - @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap");:host {display:block;font-family:"IBM Plex Sans", system-ui, sans-serif;}.callout-container.svelte-hgqz32 {display:flex;align-items:center;background-color:var(--cpp-callout-bg, #22484e);max-width:800px;margin:auto;color:var(--cpp-callout-text, #f8f7f7);}.callout-image.svelte-hgqz32 {max-height:195px;}.callout-image.svelte-hgqz32 a:where(.svelte-hgqz32) {text-decoration:none;border-bottom:none !important;}.callout-image.svelte-hgqz32 img:where(.svelte-hgqz32) {width:auto;max-height:195px;display:block;}.callout-text.svelte-hgqz32 {flex:1;font-size:1rem;margin:24px;}.callout-text.svelte-hgqz32 a:where(.svelte-hgqz32) {color:inherit;text-decoration:none;} - - /* Responsive */ - @media (max-width: 1400px) {.callout-container.svelte-hgqz32 {flex-direction:column;}.callout-image.svelte-hgqz32 {margin:0;width:100%;}.callout-image.svelte-hgqz32 img:where(.svelte-hgqz32) {width:100%;height:auto;margin-bottom:0;}.callout-text.svelte-hgqz32 {padding:24px;margin:0 24px 24px 24px; /* keep visual rhythm */} - }`};function Ns(n,e){x1(e,!0),dr(n,o9);let t=E(e,"href",7,"https://features.csis.org/snapshots/china-submarine-diplomacy/"),r=E(e,"imageSrc",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1704306843/hidden-reach/HR5-Snapshot-Header.jpg"),i=E(e,"imageAlt",7,"Callout Image"),s=E(e,"bg",7,"#22484e"),o=E(e,"textColor",7,"#ffffff"),a=E(e,"maxWidth",7,800);var l={get href(){return t()},set href(g="https://features.csis.org/snapshots/china-submarine-diplomacy/"){t(g),V()},get imageSrc(){return r()},set imageSrc(g="https://res.cloudinary.com/csisideaslab/image/upload/v1704306843/hidden-reach/HR5-Snapshot-Header.jpg"){r(g),V()},get imageAlt(){return i()},set imageAlt(g="Callout Image"){i(g),V()},get bg(){return s()},set bg(g="#22484e"){s(g),V()},get textColor(){return o()},set textColor(g="#ffffff"){o(g),V()},get maxWidth(){return a()},set maxWidth(g=800){a(g),V()}},f=s9(),u=B(f),d=B(u),h=B(d);I(d),I(u);var c=ge(u,2),p=B(c);return xl(p,e,"default",{},g=>{var _=n9(),w=ge(d3(_));ur(),Ze(()=>re(w,"href",t())),Te(g,_)}),I(c),I(f),Ze(()=>{Ue(f,`--cpp-callout-bg:${s()}; max-width:${a()}px; --cpp-callout-text:${o()}`),re(d,"href",t()),re(h,"src",r()),re(h,"alt",i())}),Te(n,f),k1(l)}customElements.define("csis-cpp-callout",q1(Ns,{href:{type:"String"},imageSrc:{attribute:"image-src",type:"String"},imageAlt:{attribute:"image-alt",type:"String"},bg:{type:"String"},textColor:{attribute:"text-color",type:"String"},maxWidth:{attribute:"max-width",type:"Number"}},["default"],[],!0));const a9=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));var l9=Oe(`
      `);const f9={hash:"svelte-1sqrwfu",code:` - @import url("https://use.typekit.net/tfb5hou.css");:host {--footer-bg: #4b4b4b;--footer-text: #fff;}.footer.svelte-1sqrwfu {background:var(--footer-bg);color:var(--footer-text);padding-top:1.25rem;padding-bottom:2rem;width:100%;font-family:"Arial", sans-serif;}.container.svelte-1sqrwfu {max-width:1290px;margin:auto;} - - /* two columns on desktop */.footer__main.svelte-1sqrwfu {display:grid;grid-template-columns:minmax(0, 1fr) max-content; - /* left grows, right hugs */gap:1rem 1rem;}.footer__brand.svelte-1sqrwfu {grid-column:1 / -1;display:flex;align-items:center;}.footer__brand.svelte-1sqrwfu path:where(.svelte-1sqrwfu) {fill:var(--footer-text);transition:fill 0.3s ease;}.footer__col.svelte-1sqrwfu {display:flex;flex-direction:column;align-items:flex-start;gap:1rem;} - - /*-- --------------------- Socials --------------------- --*/.footer__social.svelte-1sqrwfu {display:flex;align-items:center;gap:0.75rem;margin-top:0.25rem;max-width:162px;} - - /* make the icons inherit the link color */.footer__social.svelte-1sqrwfu a:where(.svelte-1sqrwfu) svg:where(.svelte-1sqrwfu) path:where(.svelte-1sqrwfu) {fill:currentColor !important;transition:fill 0.3s ease, - opacity 0.3s ease;} - - /* animate the color on the link itself */.footer__social.svelte-1sqrwfu a:where(.svelte-1sqrwfu) {color:var(--footer-text);opacity:0.8;transition:color 0.3s ease, - opacity 0.3s ease, - transform 0.3s ease;}.footer__social.svelte-1sqrwfu a:where(.svelte-1sqrwfu):hover {color:var(--footer-text);opacity:1;transform:translateY(-1px);} - - /*-- -------------------- Copyright -------------------- --*/.footer__copyright.svelte-1sqrwfu {font-size:0.75rem;margin-top:2rem;}.footer__copyright.svelte-1sqrwfu p:where(.svelte-1sqrwfu) {margin:0;opacity:0.6;}.footer__copyright.svelte-1sqrwfu a:where(.svelte-1sqrwfu) {color:var(--footer-text);opacity:0.8;transition:all 0.3s ease-in-out;}.footer__copyright.svelte-1sqrwfu a:where(.svelte-1sqrwfu):hover {opacity:1;} - - /*-- ------------------- Footer Text ------------------- --*/.footer__col.footer__csis.svelte-1sqrwfu {font-size:0.9375rem; - /* max-width: 688px; */max-width:950px;}.footer__col.footer__csis.svelte-1sqrwfu p:where(.svelte-1sqrwfu) {margin:0;}.footer__col.footer__address.svelte-1sqrwfu {font-size:0.875rem;max-width:200px;line-height:1.3;}.footer__col.footer__address.svelte-1sqrwfu p:where(.svelte-1sqrwfu) {margin:0;color:var(--footer-text);opacity:0.8;} - - /*-- --------------------------------------------------- --*/ - /*-- Media Queries --*/ - /*-- --------------------------------------------------- --*/ - @media screen and (max-width: 1280px) {.container.svelte-1sqrwfu {max-width:1152px;padding-left:40px;padding-right:40px;}.footer__col.footer__csis.svelte-1sqrwfu {max-width:920px;} - } - @media screen and (max-width: 1024px) {.footer.svelte-1sqrwfu {padding-top:2rem;padding-bottom:2rem;}.container.svelte-1sqrwfu {max-width:506px;}.footer__col.footer__address.svelte-1sqrwfu {margin-left:1rem;}.footer__copyright.svelte-1sqrwfu {margin-top:2rem;} - } - - @media screen and (max-width: 640px) {.footer.svelte-1sqrwfu {padding-top:1.25rem;padding-bottom:2rem;}.footer__main.svelte-1sqrwfu {grid-template-columns:1fr;}.container.svelte-1sqrwfu {max-width:320px;}.footer__col.footer__address.svelte-1sqrwfu {margin-top:1rem;margin-bottom:0;margin-left:0;}.footer__social.svelte-1sqrwfu {margin-top:0;} - }`};function $s(n,e){x1(e,!0),dr(n,f9);let t=E(e,"textColor",7,"#fff"),r=E(e,"backgroundColor",7,"#4b4b4b");var i={get textColor(){return t()},set textColor(d="#fff"){t(d),V()},get backgroundColor(){return r()},set backgroundColor(d="#4b4b4b"){r(d),V()}},s=l9(),o=B(s),a=ge(B(o),2),l=B(a),f=B(l),u=B(f);return I(f),ur(2),I(l),I(a),I(o),I(s),Ze(d=>{Ue(s,`--footer-bg: ${r()}; --footer-text: ${t()};`),M1(u,`Copyright © ${d??""} - Center for Strategic & International Studies. All rights reserved.`)},[()=>new Date().getFullYear()]),Te(n,s),k1(i)}customElements.define("csis-shorthand-footer",q1($s,{textColor:{attribute:"text-color",type:"String"},backgroundColor:{attribute:"background-color",type:"String"}},[],[],!0));const u9=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"}));var c9=Oe(`
      `);const h9={hash:"svelte-rdmg51",code:` - @import url("https://use.typekit.net/tfb5hou.css");:host {display:block;width:100%;}.footer.svelte-rdmg51 {background:var(--footer-bg);color:var(--footer-text);padding:2.5rem 0 2rem 0;font-family:"Arial", sans-serif; - - /* NEW: make this a full-height section */min-height:min(100vh, 345.71px);display:flex;flex-direction:column;box-sizing:border-box;}.footer__grid.svelte-rdmg51 {max-width:1290px; - /* margin: 0 auto; */margin:auto auto 0 auto; /* top:auto pushes grid to bottom */padding:0;display:grid;grid-template-columns:minmax(0, 918px) minmax(0, 340px);grid-template-rows:2.232rem auto;grid-template-areas:"left-a right-a" - "left-b right-b" - "left-c right-c" - "full full";row-gap:1rem;column-gap:2rem;} - - /* Grid area mapping */ - - /* ------------------------ row 1 ----------------------- */.footer__left-a.svelte-rdmg51 {grid-area:left-a;}.footer__right-a.svelte-rdmg51 {grid-area:right-a;} - - /*hidden reach logo*/.footer__brand--hidden-reach.svelte-rdmg51 {display:block;height:1.75rem;width:auto;max-width:100%;justify-self:start;} - - /* ------------------------ row 2 ----------------------- */.footer__left-b.svelte-rdmg51 {grid-area:left-b;}.footer__left-b.svelte-rdmg51 p:where(.svelte-rdmg51) {font-size:0.9375rem; /*CSIS about text*/margin:0;}.footer__right-b.svelte-rdmg51 {grid-area:right-b;}.footer__right-b.svelte-rdmg51 p:where(.svelte-rdmg51) {font-size:0.9375rem; /*hidden reach about text*/margin:0;} - - /* ------------------------ row 3 ----------------------- */.footer__left-c.svelte-rdmg51 {grid-area:left-c;}.footer__left-c.svelte-rdmg51 p:where(.svelte-rdmg51) {font-size:0.875rem;max-width:200px;line-height:1.3;color:var(--footer-text);opacity:0.8;margin:0 0 0.875rem 0;}.footer__social.svelte-rdmg51 {display:flex;align-items:center;gap:0.75rem;margin-top:0;max-width:162px;}.footer__social.svelte-rdmg51 a:where(.svelte-rdmg51) svg:where(.svelte-rdmg51) path:where(.svelte-rdmg51) {fill:currentColor !important;transition:fill 0.3s ease, - opacity 0.3s ease;}.footer__social.svelte-rdmg51 a:where(.svelte-rdmg51) {color:var(--footer-text);opacity:0.8;transition:color 0.3s ease, - opacity 0.3s ease, - transform 0.3s ease;}.footer__social.svelte-rdmg51 a:where(.svelte-rdmg51):hover {color:var(--footer-text);opacity:1;transform:translateY(-1px);}.footer__right-c.svelte-rdmg51 {grid-area:right-c;} - - /* ------------------------ row 4 ----------------------- */ - /*copyright text*/.footer__full.svelte-rdmg51 {grid-area:full;font-size:0.75rem;margin-top:2rem;}.footer__full.svelte-rdmg51 p:where(.svelte-rdmg51) {margin:0;opacity:0.6;} - - /*privacy policy*/.footer__full.svelte-rdmg51 a:where(.svelte-rdmg51) {color:var(--footer-text);opacity:0.8;transition:all 0.3s ease-in-out;}.footer__full.svelte-rdmg51 a:where(.svelte-rdmg51):hover {opacity:1;} - - /*-- --------------------------------------------------- --*/ - /*-- Media Queries --*/ - /*-- --------------------------------------------------- --*/ - @media screen and (max-width: 1280px) {.footer__grid.svelte-rdmg51 {margin:0 4rem 0 4rem;max-width:1152px;} - } - - @media screen and (max-width: 1024px) {.footer__grid.svelte-rdmg51 {margin:0 3.25rem 0 3.25rem;max-width:920px;} - } - - @media screen and (max-width: 640px) {.footer__grid.svelte-rdmg51 {margin:0 2rem 0 2rem;max-width:576px; - - /* switch to single column */grid-template-columns:1fr; - - /* stack everything */grid-template-rows:auto; - - /* no need for column gap in 1-col */column-gap:0;row-gap:1rem; - - /* put “right column” under “left column” */grid-template-areas:"left-a" - "left-b" - "left-c" - "right-a" - "right-b" - "full";}.footer__brand--hidden-reach.svelte-rdmg51 {margin-top:2rem;} - - /* right-c is empty; keep it from reserving space */.footer__right-c.svelte-rdmg51 {display:none;} - } - - @media screen and (max-width: 320px) {.footer__grid.svelte-rdmg51 {margin:0 20px 0 20px;} - }`};function Ys(n,e){x1(e,!0),dr(n,h9);let t=E(e,"textColor",7,"#fff"),r=E(e,"backgroundColor",7,"#242424");var i={get textColor(){return t()},set textColor(d="#fff"){t(d),V()},get backgroundColor(){return r()},set backgroundColor(d="#242424"){r(d),V()}},s=c9(),o=B(s),a=ge(B(o),12),l=B(a),f=B(l),u=B(f);return I(f),ur(2),I(l),I(a),I(o),I(s),Ze(d=>{Ue(s,`--footer-bg: ${r()}; --footer-text: ${t()};`),M1(u,`Copyright © ${d??""} - Center for Strategic & International Studies. All rights reserved.`)},[()=>new Date().getFullYear()]),Te(n,s),k1(i)}customElements.define("csis-hidden-reach-footer",q1(Ys,{textColor:{attribute:"text-color",type:"String"},backgroundColor:{attribute:"background-color",type:"String"}},[],[],!0));const d9=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"}));var g9=Oe('
      ');const p9={hash:"svelte-j7oa3d",code:`:host {display:block;width:100%;height:100%;}.link-image {border-bottom:none;}.img-magnifier-container {position:relative;width:100%;height:100%;}.img-magnifier-container img {display:block;max-width:100%;width:100%;}.img-magnifier-glass {position:absolute;border:3px solid var(--magnifier-border-color);border-radius:50%;cursor:none; - /*Set the size of the magnifier glass:*/width:150px;height:150px;z-index:99999;}`};function Us(n,e){x1(e,!0),dr(n,p9);let t=E(e,"bgImage",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1729626172/dev-team/smfeogcut8mzuv4rxge3.png"),r=E(e,"bgImageAlt",7,"Saint Seiya"),i=E(e,"magnifierZoom",7,2),s=E(e,"magnifierBorderColor",7,"#000"),o,a=()=>{};const l=i();Zi(()=>{if(!o)return;const h=()=>{if(!o)return;const c=document.createElement("div");c.className="img-magnifier-glass",o.parentElement.insertBefore(c,o),c.style.backgroundImage=`url('${o.src}')`,c.style.backgroundRepeat="no-repeat",c.style.backgroundSize=o.width*l+"px "+o.height*l+"px";const p=3,g=c.offsetWidth/2,_=c.offsetHeight/2;function w(C){C=C||window.event;const L=o.getBoundingClientRect();let k=C.pageX-L.left,m=C.pageY-L.top;return k=k-window.pageXOffset,m=m-window.pageYOffset,{x:k,y:m}}function b(C){C.preventDefault();const L=w(C);let k=L.x,m=L.y;k>o.width-g/l&&(k=o.width-g/l),ko.height-_/l&&(m=o.height-_/l),m<_/l&&(m=_/l),c.style.left=k-g+"px",c.style.top=m-_+"px",c.style.backgroundPosition="-"+(k*l-g+p)+"px -"+(m*l-_+p)+"px"}const y={passive:!1};c.addEventListener("mousemove",b),o.addEventListener("mousemove",b),c.addEventListener("touchmove",b,y),o.addEventListener("touchmove",b,y),a=()=>{c.removeEventListener("mousemove",b),o.removeEventListener("mousemove",b),c.removeEventListener("touchmove",b),o.removeEventListener("touchmove",b),c.remove()}};o.complete?h():o.addEventListener("load",h,{once:!0})}),m3(()=>{a()});var f={get bgImage(){return t()},set bgImage(h="https://res.cloudinary.com/csisideaslab/image/upload/v1729626172/dev-team/smfeogcut8mzuv4rxge3.png"){t(h),V()},get bgImageAlt(){return r()},set bgImageAlt(h="Saint Seiya"){r(h),V()},get magnifierZoom(){return i()},set magnifierZoom(h=2){i(h),V()},get magnifierBorderColor(){return s()},set magnifierBorderColor(h="#000"){s(h),V()}},u=g9(),d=B(u);return gr(d,h=>o=h,()=>o),I(u),Ze(()=>{Ue(u,`--magnifier-border-color: ${s()};`),re(d,"src",t()),re(d,"alt",r())}),Te(n,u),k1(f)}customElements.define("csis-magnifier",q1(Us,{bgImage:{attribute:"background-image",type:"String"},bgImageAlt:{attribute:"background-image-alt",type:"String"},magnifierZoom:{attribute:"magnifier-zoom",type:"Number"},magnifierBorderColor:{attribute:"magnifier-border-color",type:"String"}},[],[],!0));const _9=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"}));za();function pr(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Xs(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! - * GSAP 3.13.0 - * https://gsap.com - * - * @license Copyright 2008-2025, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license - * @author: Jack Doyle, jack@greensock.com -*/var f1={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Di={duration:.5,overwrite:!1,delay:0},x3,wt,ze,P1=1e8,Pe=1/P1,k3=Math.PI*2,v9=k3/4,C9=0,Ws=Math.sqrt,m9=Math.cos,b9=Math.sin,ht=function(e){return typeof e=="string"},Xe=function(e){return typeof e=="function"},_r=function(e){return typeof e=="number"},S3=function(e){return typeof e>"u"},Q1=function(e){return typeof e=="object"},Jt=function(e){return e!==!1},M3=function(){return typeof window<"u"},u2=function(e){return Xe(e)||ht(e)},Gs=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Vt=Array.isArray,T3=/(?:-?\.?\d|\.)+/gi,js=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Fi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,P3=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ks=/[+-]=-?[.\d]+/,Qs=/[^,'"\[\]\s]+/gi,y9=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ne,J1,V3,H3,u1={},c2={},Js,e5=function(e){return(c2=Ii(e,u1))&&r1},E3=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},pn=function(e,t){return!t&&console.warn(e)},t5=function(e,t){return e&&(u1[e]=t)&&c2&&(c2[e]=t)||u1},_n=function(){return 0},w9={suppressEvents:!0,isStart:!0,kill:!1},h2={suppressEvents:!0,kill:!1},L9={suppressEvents:!0},O3={},Tr=[],A3={},r5,c1={},R3={},i5=30,d2=[],Z3="",D3=function(e){var t=e[0],r,i;if(Q1(t)||Xe(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=d2.length;i--&&!d2[i].targetTest(t););r=d2[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new E5(e[i],r)))||e.splice(i,1);return e},ni=function(e){return e._gsap||D3(H1(e))[0]._gsap},n5=function(e,t,r){return(r=e[t])&&Xe(r)?e[t]():S3(r)&&e.getAttribute&&e.getAttribute(t)||r},e1=function(e,t){return(e=e.split(",")).forEach(t)||e},Ke=function(e){return Math.round(e*1e5)/1e5||0},it=function(e){return Math.round(e*1e7)/1e7||0},zi=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},x9=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++ia;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=o,t.parent=t._dp=e,t},_2=function(e,t,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=t._prev,o=t._next;s?s._next=o:e[r]===t&&(e[r]=o),o?o._prev=s:e[i]===t&&(e[i]=s),t._next=t._prev=t.parent=null},Pr=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},si=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},M9=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},z3=function(e,t,r,i){return e._startAt&&(wt?e._startAt.revert(h2):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},T9=function n(e){return!e||e._ts&&n(e.parent)},u5=function(e){return e._repeat?Bi(e._tTime,e=e.duration()+e._rDelay)*e:0},Bi=function(e,t){var r=Math.floor(e=it(e/t));return e&&r===e?r-1:r},v2=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},C2=function(e){return e._end=it(e._start+(e._tDur/Math.abs(e._ts||e._rts||Pe)||0))},m2=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=it(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),C2(e),r._dirty||si(r,e)),e},c5=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._startPe)&&t.render(r,!0)),si(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-Pe}},er=function(e,t,r,i){return t.parent&&Pr(t),t._start=it((_r(r)?r:r||e!==Ne?V1(e,r,t):e._time)+t._delay),t._end=it(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),f5(e,t,"_first","_last",e._sort?"_start":0),I3(t)||(e._recent=t),i||c5(e,t),e._ts<0&&m2(e,e._tTime),e},h5=function(e,t){return(u1.ScrollTrigger||E3("scrollTrigger",t))&&u1.ScrollTrigger.create(t,e)},d5=function(e,t,r,i,s){if(G3(e,t,s),!e._initted)return 1;if(!r&&e._pt&&!wt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&r5!==g1.frame)return Tr.push(e),e._lazy=[s,i],1},P9=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},I3=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},V9=function(e,t,r,i){var s=e.ratio,o=t<0||!t&&(!e._start&&P9(e)&&!(!e._initted&&I3(e))||(e._ts<0||e._dp._ts<0)&&!I3(e))?0:1,a=e._rDelay,l=0,f,u,d;if(a&&e._repeat&&(l=mn(0,e._tDur,t),u=Bi(l,a),e._yoyo&&u&1&&(o=1-o),u!==Bi(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||wt||i||e._zTime===Pe||!t&&e._zTime){if(!e._initted&&d5(e,t,i,r,l))return;for(d=e._zTime,e._zTime=t||(r?Pe:0),r||(r=t&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,f=e._pt;f;)f.r(o,f.d),f=f._next;t<0&&z3(e,t,r,!0),e._onUpdate&&!r&&d1(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&d1(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Pr(e,1),!r&&!wt&&(d1(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},H9=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i&&m2(e,e._tTime=e._tDur*a),e.parent&&C2(e),r||si(e.parent,e),e},g5=function(e){return e instanceof qt?si(e):qi(e,e._dur)},E9={_start:0,endTime:_n,totalDuration:_n},V1=function n(e,t,r){var i=e.labels,s=e._recent||E9,o=e.duration()>=P1?s.endTime(!1):e._dur,a,l,f;return ht(t)&&(isNaN(t)||t in i)?(l=t.charAt(0),f=t.substr(-1)==="%",a=t.indexOf("="),l==="<"||l===">"?(a>=0&&(t=t.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(t.substr(1))||0)*(f?(a<0?s:r).totalDuration()/100:1)):a<0?(t in i||(i[t]=o),i[t]):(l=parseFloat(t.charAt(a-1)+t.substr(a+1)),f&&r&&(l=l/100*(Vt(r)?r[0]:r).totalDuration()),a>1?n(e,t.substr(0,a-1),r)+l:o+l)):t==null?o:+t},Cn=function(e,t,r){var i=_r(t[1]),s=(i?2:1)+(e<2?0:1),o=t[s],a,l;if(i&&(o.duration=t[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Jt(l.vars.inherit)&&l.parent;o.immediateRender=Jt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[s-1]}return new nt(t[0],o,t[s+1])},Vr=function(e,t){return e||e===0?t(e):t},mn=function(e,t,r){return rt?t:r},Ht=function(e,t){return!ht(e)||!(t=y9.exec(e))?"":t[1]},O9=function(e,t,r){return Vr(r,function(i){return mn(e,t,i)})},B3=[].slice,p5=function(e,t){return e&&Q1(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Q1(e[0]))&&!e.nodeType&&e!==J1},A9=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return ht(i)&&!t||p5(i,1)?(s=r).push.apply(s,H1(i)):r.push(i)})||r},H1=function(e,t,r){return ze&&!t&&ze.selector?ze.selector(e):ht(e)&&!r&&(V3||!$i())?B3.call((t||H3).querySelectorAll(e),0):Vt(e)?A9(e,r):p5(e)?B3.call(e,0):e?[e]:[]},q3=function(e){return e=H1(e)[0]||pn("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return H1(t,r.querySelectorAll?r:r===e?pn("Invalid scope")||H3.createElement("div"):e)}},_5=function(e){return e.sort(function(){return .5-Math.random()})},v5=function(e){if(Xe(e))return e;var t=Q1(e)?e:{each:e},r=oi(t.ease),i=t.from||0,s=parseFloat(t.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,f=t.axis,u=i,d=i;return ht(i)?u=d={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],d=i[1]),function(h,c,p){var g=(p||t).length,_=o[g],w,b,y,C,L,k,m,O,S;if(!_){if(S=t.grid==="auto"?0:(t.grid||[1,P1])[1],!S){for(m=-P1;m<(m=p[S++].getBoundingClientRect().left)&&Sm&&(m=L),Lg?g-1:f?f==="y"?g/S:S:Math.max(S,g/S))||0)*(i==="edges"?-1:1),_.b=g<0?s-g:s,_.u=Ht(t.amount||t.each)||0,r=r&&g<0?P5(r):r}return g=(_[h]-_.min)/_.max||0,it(_.b+(r?r(g):g)*_.v)+_.u}},N3=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=it(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(_r(r)?0:Ht(r))}},C5=function(e,t){var r=Vt(e),i,s;return!r&&Q1(e)&&(i=r=e.radius||P1,e.values?(e=H1(e.values),(s=!_r(e[0]))&&(i*=i)):e=N3(e.increment)),Vr(t,r?Xe(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),f=P1,u=0,d=e.length,h,c;d--;)s?(h=e[d].x-a,c=e[d].y-l,h=h*h+c*c):h=Math.abs(e[d]-a),hi?s-o:o)})},bn=function(e){for(var t=0,r="",i,s,o,a;~(i=e.indexOf("random(",t));)o=e.indexOf(")",i),a=e.charAt(i+7)==="[",s=e.substr(i+7,o-i-7).match(a?Qs:T3),r+=e.substr(t,i-t)+m5(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),t=o+1;return r+e.substr(t,e.length-t)},y5=function(e,t,r,i,s){var o=t-e,a=i-r;return Vr(s,function(l){return r+((l-e)/o*a||0)})},I9=function n(e,t,r,i){var s=isNaN(e+t)?0:function(c){return(1-c)*e+c*t};if(!s){var o=ht(e),a={},l,f,u,d,h;if(r===!0&&(i=1)&&(r=null),o)e={p:e},t={p:t};else if(Vt(e)&&!Vt(t)){for(u=[],d=e.length,h=d-2,f=1;f(a=Math.abs(a))&&(l=o,s=a);return l},d1=function(e,t,r){var i=e.vars,s=i[t],o=ze,a=e._ctx,l,f,u;if(s)return l=i[t+"Params"],f=i.callbackScope||e,r&&Tr.length&&g2(),a&&(ze=a),u=l?s.apply(f,l):s.call(f),ze=o,u},yn=function(e){return Pr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!wt),e.progress()<1&&d1(e,"onInterrupt"),e},Ni,L5=[],x5=function(e){if(e)if(e=!e.name&&e.default||e,M3()||e.headless){var t=e.name,r=Xe(e),i=t&&!r&&e.init?function(){this._props=[]}:e,s={init:_n,render:Q3,add:X3,kill:r6,modifier:t6,rawVars:0},o={targetTest:0,get:0,getSetter:K3,aliases:{},register:0};if($i(),e!==i){if(c1[t])return;h1(i,h1(p2(e,s),o)),Ii(i.prototype,Ii(s,p2(e,o))),c1[i.prop=t]=i,e.targetTest&&(d2.push(i),O3[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}t5(t,i),e.register&&e.register(r1,i,t1)}else L5.push(e)},Ve=255,wn={aqua:[0,Ve,Ve],lime:[0,Ve,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ve],navy:[0,0,128],white:[Ve,Ve,Ve],olive:[128,128,0],yellow:[Ve,Ve,0],orange:[Ve,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ve,0,0],pink:[Ve,192,203],cyan:[0,Ve,Ve],transparent:[Ve,Ve,Ve,0]},$3=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*Ve+.5|0},k5=function(e,t,r){var i=e?_r(e)?[e>>16,e>>8&Ve,e&Ve]:0:wn.black,s,o,a,l,f,u,d,h,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),wn[e])i=wn[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&Ve,i&Ve,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&Ve,e&Ve]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(T3),!t)l=+i[0]%360/360,f=+i[1]/100,u=+i[2]/100,o=u<=.5?u*(f+1):u+f-u*f,s=u*2-o,i.length>3&&(i[3]*=1),i[0]=$3(l+1/3,s,o),i[1]=$3(l,s,o),i[2]=$3(l-1/3,s,o);else if(~e.indexOf("="))return i=e.match(js),r&&i.length<4&&(i[3]=1),i}else i=e.match(T3)||wn.transparent;i=i.map(Number)}return t&&!p&&(s=i[0]/Ve,o=i[1]/Ve,a=i[2]/Ve,d=Math.max(s,o,a),h=Math.min(s,o,a),u=(d+h)/2,d===h?l=f=0:(c=d-h,f=u>.5?c/(2-d-h):c/(d+h),l=d===s?(o-a)/c+(oe||w<0)&&(r+=w-t),i+=w,L=i-r,y=L-o,(y>0||b)&&(k=++d.frame,h=L-d.time*1e3,d.time=L=L/1e3,o+=y+(y>=s?4:s-y),C=1),b||(l=f(g)),C)for(c=0;c=w&&c--},_listeners:a},d})(),$i=function(){return!Ln&&g1.wake()},pe={},q9=/^[\d.\-M][\d.\-,\s]/,N9=/["']/g,$9=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,l,f;s1&&r.config?r.config.apply(null,~e.indexOf("{")?[$9(t[1])]:Y9(e).split(",").map(o5)):pe._CE&&q9.test(e)?pe._CE("",e):r},P5=function(e){return function(t){return 1-e(1-t)}},V5=function n(e,t){for(var r=e._first,i;r;)r instanceof qt?n(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?n(r.timeline,t):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=t)),r=r._next},oi=function(e,t){return e&&(Xe(e)?e:pe[e]||U9(e))||t},ai=function(e,t,r,i){r===void 0&&(r=function(l){return 1-t(1-l)}),i===void 0&&(i=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var s={easeIn:t,easeOut:r,easeInOut:i},o;return e1(e,function(a){pe[a]=u1[a]=s,pe[o=a.toLowerCase()]=r;for(var l in s)pe[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=pe[a+"."+l]=s[l]}),s},H5=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Y3=function n(e,t,r){var i=t>=1?t:1,s=(r||(e?.3:.45))/(t<1?t:1),o=s/k3*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*b9((u-o)*s)+1},l=e==="out"?a:e==="in"?function(f){return 1-a(1-f)}:H5(a);return s=k3/s,l.config=function(f,u){return n(e,f,u)},l},U3=function n(e,t){t===void 0&&(t=1.70158);var r=function(o){return o?--o*o*((t+1)*o+t)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:H5(r);return i.config=function(s){return n(e,s)},i};e1("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;ai(n+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})}),pe.Linear.easeNone=pe.none=pe.Linear.easeIn,ai("Elastic",Y3("in"),Y3("out"),Y3()),(function(n,e){var t=1/e,r=2*t,i=2.5*t,s=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,qi(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if($i(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(m2(this,r),!s._dp||s.parent||c5(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&&r0||!this._tDur&&!r)&&er(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Pe||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),s5(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+u5(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+u5(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?Bi(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-Pe?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?v2(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-Pe?0:this._rts,this.totalTime(mn(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),C2(this),M9(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):($i(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Pe&&(this._tTime-=Pe)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&er(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Jt(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?v2(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=L9);var i=wt;return wt=r,F3(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),wt=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,g5(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,g5(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(V1(this,r),Jt(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Jt(i)),this._dur||(this._zTime=-Pe),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-Pe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Pe,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this;return new Promise(function(s){var o=Xe(r)?r:a5,a=function(){var f=i.then;i.then=null,Xe(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=f),s(o),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){yn(this)},n})();h1(xn.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:-Pe,_prom:0,_ps:!1,_rts:1});var qt=(function(n){Xs(e,n);function e(r,i){var s;return r===void 0&&(r={}),s=n.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=Jt(r.sortChildren),Ne&&er(r.parent||Ne,pr(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&h5(pr(s),r.scrollTrigger),s}var t=e.prototype;return t.to=function(i,s,o){return Cn(0,arguments,this),this},t.from=function(i,s,o){return Cn(1,arguments,this),this},t.fromTo=function(i,s,o,a){return Cn(2,arguments,this),this},t.set=function(i,s,o){return s.duration=0,s.parent=this,vn(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new nt(i,s,V1(this,o),1),this},t.call=function(i,s,o){return er(this,nt.delayedCall(0,i,s),o)},t.staggerTo=function(i,s,o,a,l,f,u){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=f,o.onCompleteParams=u,o.parent=this,new nt(i,o,V1(this,l)),this},t.staggerFrom=function(i,s,o,a,l,f,u){return o.runBackwards=1,vn(o).immediateRender=Jt(o.immediateRender),this.staggerTo(i,s,o,a,l,f,u)},t.staggerFromTo=function(i,s,o,a,l,f,u,d){return a.startAt=o,vn(a).immediateRender=Jt(a.immediateRender),this.staggerTo(i,s,a,l,f,u,d)},t.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,f=this._dur,u=i<=0?0:it(i),d=this._zTime<0!=i<0&&(this._initted||!f),h,c,p,g,_,w,b,y,C,L,k,m;if(this!==Ne&&u>l&&i>=0&&(u=l),u!==this._tTime||o||d){if(a!==this._time&&f&&(u+=this._time-a,i+=this._time-a),h=u,C=this._start,y=this._ts,w=!y,d&&(f||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,_=f+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(_*100+i,s,o);if(h=it(u%_),u===l?(g=this._repeat,h=f):(L=it(u/_),g=~~L,g&&g===L&&(h=f,g--),h>f&&(h=f)),L=Bi(this._tTime,_),!a&&this._tTime&&L!==g&&this._tTime-L*_-this._dur<=0&&(L=g),k&&g&1&&(h=f-h,m=1),g!==L&&!this._lock){var O=k&&L&1,S=O===(k&&g&1);if(g=a&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||h>=c._start)&&c._ts&&b!==c){if(c.parent!==this)return this.render(i,s,o);if(c.render(c._ts>0?(h-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(h-c._start)*c._ts,s,o),h!==this._time||!this._ts&&!w){b=0,p&&(u+=this._zTime=-Pe);break}}c=p}else{c=this._last;for(var H=i<0?i:h;c;){if(p=c._prev,(c._act||H<=c._end)&&c._ts&&b!==c){if(c.parent!==this)return this.render(i,s,o);if(c.render(c._ts>0?(H-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(H-c._start)*c._ts,s,o||wt&&F3(c)),h!==this._time||!this._ts&&!w){b=0,p&&(u+=this._zTime=H?-Pe:Pe);break}}c=p}}if(b&&!s&&(this.pause(),b.render(h>=a?0:-Pe)._zTime=h>=a?1:-1,this._ts))return this._start=C,C2(this),this.render(i,s,o);this._onUpdate&&!s&&d1(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(C===this._start||Math.abs(y)!==Math.abs(this._ts))&&(this._lock||((i||!f)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Pr(this,1),!s&&!(i<0&&!a)&&(u||a||!l)&&(d1(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(i,s){var o=this;if(_r(s)||(s=V1(this,s,i)),!(i instanceof xn)){if(Vt(i))return i.forEach(function(a){return o.add(a,s)}),this;if(ht(i))return this.addLabel(i,s);if(Xe(i))i=nt.delayedCall(0,i);else return this}return this!==i?er(this,i,s):this},t.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-P1);for(var l=[],f=this._first;f;)f._start>=a&&(f instanceof nt?s&&l.push(f):(o&&l.push(f),i&&l.push.apply(l,f.getChildren(!0,s,o)))),f=f._next;return l},t.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},t.remove=function(i){return ht(i)?this.removeLabel(i):Xe(i)?this.killTweensOf(i):(i.parent===this&&_2(this,i),i===this._recent&&(this._recent=this._last),si(this))},t.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=it(g1.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),n.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},t.addLabel=function(i,s){return this.labels[i]=V1(this,s),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,s,o){var a=nt.delayedCall(0,s||_n,o);return a.data="isPause",this._hasPause=1,er(this,a,V1(this,i))},t.removePause=function(i){var s=this._first;for(i=V1(this,i);s;)s._start===i&&s.data==="isPause"&&Pr(s),s=s._next},t.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)Er!==a[l]&&a[l].kill(i,s);return this},t.getTweensOf=function(i,s){for(var o=[],a=H1(i),l=this._first,f=_r(s),u;l;)l instanceof nt?x9(l._targets,a)&&(f?(!Er||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(u=l.getTweensOf(a,s)).length&&o.push.apply(o,u),l=l._next;return o},t.tweenTo=function(i,s){s=s||{};var o=this,a=V1(o,i),l=s,f=l.startAt,u=l.onStart,d=l.onStartParams,h=l.immediateRender,c,p=nt.to(o,h1({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(f&&"time"in f?f.time:o._time))/o.timeScale())||Pe,onStart:function(){if(o.pause(),!c){var _=s.duration||Math.abs((a-(f&&"time"in f?f.time:o._time))/o.timeScale());p._dur!==_&&qi(p,_,0,1).render(p._time,!0,!0),c=1}u&&u.apply(p,d||[])}},s));return h?p.render(0):p},t.tweenFromTo=function(i,s,o){return this.tweenTo(s,h1({startAt:{time:V1(this,i)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),w5(this,V1(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),w5(this,V1(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Pe)},t.shiftChildren=function(i,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,f;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(f in l)l[f]>=o&&(l[f]+=i);return si(this)},t.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return n.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),si(this)},t.totalDuration=function(i){var s=0,o=this,a=o._last,l=P1,f,u,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(d=o.parent;a;)f=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,er(o,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(s-=u,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=f;qi(o,o===Ne&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(Ne._ts&&(s5(Ne,v2(i,Ne)),r5=g1.frame),g1.frame>=i5){i5+=f1.autoSleep||120;var s=Ne._first;if((!s||!s._ts)&&f1.autoSleep&&g1._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||g1.sleep()}}},e})(xn);h1(qt.prototype,{_lock:0,_hasPause:0,_forcing:0});var X9=function(e,t,r,i,s,o,a){var l=new t1(this._pt,e,t,0,1,F5,null,s),f=0,u=0,d,h,c,p,g,_,w,b;for(l.b=r,l.e=i,r+="",i+="",(w=~i.indexOf("random("))&&(i=bn(i)),o&&(b=[r,i],o(b,e,t),r=b[0],i=b[1]),h=r.match(P3)||[];d=P3.exec(i);)p=d[0],g=i.substring(f,d.index),c?c=(c+1)%5:g.substr(-5)==="rgba("&&(c=1),p!==h[u++]&&(_=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:_,c:p.charAt(1)==="="?zi(_,p)-_:parseFloat(p)-_,m:c&&c<4?Math.round:0},f=P3.lastIndex);return l.c=f")}),C.duration();else{k={};for(O in p)O==="ease"||O==="easeEach"||K9(O,p[O],k,p.easeEach);for(O in k)for(Y=k[O].sort(function(ee,M){return ee.t-M.t}),A=0,L=0;Ll-Pe&&!u?l:if&&(h=f)),w=this._yoyo&&p&1,w&&(C=this._yEase,h=f-h),_=Bi(this._tTime,g),h===a&&!o&&this._initted&&p===_)return this._tTime=d,this;p!==_&&(y&&this._yEase&&V5(y,w),this.vars.repeatRefresh&&!w&&!this._lock&&h!==g&&this._initted&&(this._lock=o=1,this.render(it(g*p),!0).invalidate()._lock=0))}if(!this._initted){if(d5(this,u?i:h,o,s,d))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&p!==_))return this;if(f!==this._dur)return this.render(i,s,o)}if(this._tTime=d,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(C||this._ease)(h/f),this._from&&(this.ratio=b=1-b),!a&&d&&!s&&!_&&(d1(this,"onStart"),this._tTime!==d))return this;for(c=this._pt;c;)c.r(b,c.d),c=c._next;y&&y.render(i<0?i:y._dur*y._ease(h/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&z3(this,i,s,o),d1(this,"onUpdate")),this._repeat&&p!==_&&this.vars.onRepeat&&!s&&this.parent&&d1(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(u&&!this._onUpdate&&z3(this,i,!0,!0),(i||!f)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Pr(this,1),!s&&!(u&&!a)&&(d||a||w)&&(d1(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&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),n.prototype.invalidate.call(this,i)},t.resetTo=function(i,s,o,a,l){Ln||g1.wake(),this._ts||this.play();var f=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||G3(this,f),u=this._ease(f/this._dur),G9(this,i,s,o,a,u,f,l)?this.resetTo(i,s,o,a,1):(m2(this,0),this.parent||f5(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?yn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!wt),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,Er&&Er.vars.overwrite!==!0)._first||yn(this),this.parent&&o!==this.timeline.totalDuration()&&qi(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?H1(i):a,f=this._ptLookup,u=this._pt,d,h,c,p,g,_,w;if((!s||s==="all")&&S9(a,l))return s==="all"&&(this._pt=0),yn(this);for(d=this._op=this._op||[],s!=="all"&&(ht(s)&&(g={},e1(s,function(b){return g[b]=1}),s=g),s=j9(a,s)),w=a.length;w--;)if(~l.indexOf(a[w])){h=f[w],s==="all"?(d[w]=s,p=h,c={}):(c=d[w]=d[w]||{},p=s);for(g in p)_=h&&h[g],_&&((!("kill"in _.d)||_.d.kill(g)===!0)&&_2(this,_,"_pt"),delete h[g]),c!=="all"&&(c[g]=1)}return this._initted&&!this._pt&&u&&yn(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return Cn(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return Cn(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return Ne.killTweensOf(i,s,o)},e})(xn);h1(nt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),e1("staggerTo,staggerFrom,staggerFromTo",function(n){nt[n]=function(){var e=new qt,t=B3.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var j3=function(e,t,r){return e[t]=r},Z5=function(e,t,r){return e[t](r)},Q9=function(e,t,r,i){return e[t](i.fp,r)},J9=function(e,t,r){return e.setAttribute(t,r)},K3=function(e,t){return Xe(e[t])?Z5:S3(e[t])&&e.setAttribute?J9:j3},D5=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},e6=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},F5=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},Q3=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},t6=function(e,t,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,t,r),s=o},r6=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?_2(this,t,"_pt"):t.dep||(r=1),t=i;return!r},i6=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},z5=function(e){for(var t=e._pt,r,i,s,o;t;){for(r=t._next,i=s;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:o)?t._prev._next=t:s=t,(t._next=i)?i._prev=t:o=t,t=r}e._pt=s},t1=(function(){function n(t,r,i,s,o,a,l,f,u){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||D5,this.d=l||this,this.set=f||j3,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=i6,this.m=r,this.mt=s,this.tween=i},n})();e1(Z3+"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(n){return O3[n]=1}),u1.TweenMax=u1.TweenLite=nt,u1.TimelineLite=u1.TimelineMax=qt,Ne=new qt({sortChildren:!1,defaults:Di,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),f1.stringFilter=T5;var li=[],b2={},n6=[],I5=0,s6=0,J3=function(e){return(b2[e]||n6).map(function(t){return t()})},e0=function(){var e=Date.now(),t=[];e-I5>2&&(J3("matchMediaInit"),li.forEach(function(r){var i=r.queries,s=r.conditions,o,a,l,f;for(a in i)o=J1.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,f=1);f&&(r.revert(),l&&t.push(r))}),J3("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),I5=e,J3("matchMedia"))},B5=(function(){function n(t,r){this.selector=r&&q3(r),this.data=[],this._r=[],this.isReverted=!1,this.id=s6++,t&&this.add(t)}var e=n.prototype;return e.add=function(r,i,s){Xe(r)&&(s=i,i=r,r=Xe);var o=this,a=function(){var f=ze,u=o.selector,d;return f&&f!==o&&f.data.push(o),s&&(o.selector=q3(s)),ze=o,d=i.apply(o,arguments),Xe(d)&&o._r.push(d),ze=f,o.selector=u,o.isReverted=!1,d};return o.last=a,r===Xe?a(o,function(l){return o.add(null,l)}):r?o[r]=a:a},e.ignore=function(r){var i=ze;ze=null,r(this),ze=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof n?r.push.apply(r,i.getTweens()):i instanceof nt&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?(function(){for(var a=s.getTweens(),l=s.data.length,f;l--;)f=s.data[l],f.data==="isFlip"&&(f.revert(),f.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,d){return d.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=s.data.length;l--;)f=s.data[l],f instanceof qt?f.data!=="nested"&&(f.scrollTrigger&&f.scrollTrigger.revert(),f.kill()):!(f instanceof nt)&&f.revert&&f.revert(r);s._r.forEach(function(u){return u(r,s)}),s.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=li.length;o--;)li[o].id===this.id&&li.splice(o,1)},e.revert=function(r){this.kill(r||{})},n})(),o6=(function(){function n(t){this.contexts=[],this.scope=t,ze&&ze.data.push(this)}var e=n.prototype;return e.add=function(r,i,s){Q1(r)||(r={matches:r});var o=new B5(0,s||this.scope),a=o.conditions={},l,f,u;ze&&!o.selector&&(o.selector=ze.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(f in r)f==="all"?u=1:(l=J1.matchMedia(r[f]),l&&(li.indexOf(o)<0&&li.push(o),(a[f]=l.matches)&&(u=1),l.addListener?l.addListener(e0):l.addEventListener("change",e0)));return u&&i(o,function(d){return o.add(null,d)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},n})(),y2={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r1){var i=e.map(function(u){return r1.quickSetter(u,t,r)}),s=i.length;return function(u){for(var d=s;d--;)i[d](u)}}e=e[0]||{};var o=c1[t],a=ni(e),l=a.harness&&(a.harness.aliases||{})[t]||t,f=o?function(u){var d=new o;Ni._pt=0,d.init(e,r?u+r:u,Ni,0,[e]),d.render(1,d),Ni._pt&&Q3(1,Ni)}:a.set(e,l);return o?f:function(u){return f(e,l,r?u+r:u,a,1)}},quickTo:function(e,t,r){var i,s=r1.to(e,h1((i={},i[t]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(l,f,u){return s.resetTo(t,l,f,u)};return o.tween=s,o},isTweening:function(e){return Ne.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=oi(e.ease,Di.ease)),l5(Di,e||{})},config:function(e){return l5(f1,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!c1[a]&&!u1[a]&&pn(t+" effect requires "+a+" plugin.")}),R3[t]=function(a,l,f){return r(H1(a),h1(l||{},s),f)},o&&(qt.prototype[t]=function(a,l,f){return this.add(R3[t](a,Q1(l)?l:(f=l)&&{},this),f)})},registerEase:function(e,t){pe[e]=oi(t)},parseEase:function(e,t){return arguments.length?oi(e,t):pe},getById:function(e){return Ne.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new qt(e),i,s;for(r.smoothChildTiming=Jt(e.smoothChildTiming),Ne.remove(r),r._dp=0,r._time=r._tTime=Ne._time,i=Ne._first;i;)s=i._next,(t||!(!i._dur&&i instanceof nt&&i.vars.onComplete===i._targets[0]))&&er(r,i,i._start-i._delay),i=s;return er(Ne,r,0),r},context:function(e,t){return e?new B5(e,t):ze},matchMedia:function(e){return new o6(e)},matchMediaRefresh:function(){return li.forEach(function(e){var t=e.conditions,r,i;for(i in t)t[i]&&(t[i]=!1,r=1);r&&e.revert()})||e0()},addEventListener:function(e,t){var r=b2[e]||(b2[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=b2[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:F9,wrapYoyo:z9,distribute:v5,random:m5,snap:C5,normalize:D9,getUnit:Ht,clamp:O9,splitColor:k5,toArray:H1,selector:q3,mapRange:y5,pipe:R9,unitize:Z9,interpolate:I9,shuffle:_5},install:e5,effects:R3,ticker:g1,updateRoot:qt.updateRoot,plugins:c1,globalTimeline:Ne,core:{PropTween:t1,globals:t5,Tween:nt,Timeline:qt,Animation:xn,getCache:ni,_removeLinkedListItem:_2,reverting:function(){return wt},context:function(e){return e&&ze&&(ze.data.push(e),e._ctx=ze),ze},suppressOverwrites:function(e){return x3=e}}};e1("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return y2[n]=nt[n]}),g1.add(qt.updateRoot),Ni=y2.to({},{duration:0});var a6=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},l6=function(e,t){var r=e._targets,i,s,o;for(i in t)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=a6(o,i)),o&&o.modifier&&o.modifier(t[i],e,r[s],i))},t0=function(e,t){return{name:e,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,f;if(ht(s)&&(l={},e1(s,function(u){return l[u]=1}),s=l),t){l={};for(f in s)l[f]=t(s[f]);s=l}l6(a,s)}}}},r1=y2.registerPlugin({name:"attr",init:function(e,t,r,i,s){var o,a,l;this.tween=r;for(o in t)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",t[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,t){for(var r=t._pt;r;)wt?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},t0("roundProps",N3),t0("modifiers"),t0("snap",C5))||y2;nt.version=qt.version=r1.version="3.13.0",Js=1,M3()&&$i(),pe.Power0,pe.Power1,pe.Power2,pe.Power3,pe.Power4,pe.Linear,pe.Quad,pe.Cubic,pe.Quart,pe.Quint,pe.Strong,pe.Elastic,pe.Back,pe.SteppedEase,pe.Bounce,pe.Sine,pe.Expo,pe.Circ;/*! - * CSSPlugin 3.13.0 - * https://gsap.com - * - * Copyright 2008-2025, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license - * @author: Jack Doyle, jack@greensock.com -*/var q5,Or,Yi,r0,fi,N5,i0,f6=function(){return typeof window<"u"},vr={},ui=180/Math.PI,Ui=Math.PI/180,Xi=Math.atan2,$5=1e8,n0=/([A-Z])/g,u6=/(left|right|width|margin|padding|x)/i,c6=/[\s,\(]\S/,tr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},s0=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},h6=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},d6=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},g6=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Y5=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},U5=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},p6=function(e,t,r){return e.style[t]=r},_6=function(e,t,r){return e.style.setProperty(t,r)},v6=function(e,t,r){return e._gsap[t]=r},C6=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},m6=function(e,t,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},b6=function(e,t,r,i,s){var o=e._gsap;o[t]=r,o.renderTransform(s,o)},$e="transform",i1=$e+"Origin",y6=function n(e,t){var r=this,i=this.target,s=i.style,o=i._gsap;if(e in vr&&s){if(this.tfm=this.tfm||{},e!=="transform")e=tr[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Cr(i,a)}):this.tfm[e]=o.x?o[e]:Cr(i,e),e===i1&&(this.tfm.zOrigin=o.zOrigin);else return tr.transform.split(",").forEach(function(a){return n.call(r,a,t)});if(this.props.indexOf($e)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(i1,t,"")),e=$e}(s||t)&&this.props.push(e,t,s[e])},X5=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},w6=function(){var e=this.props,t=this.target,r=t.style,i=t._gsap,s,o;for(s=0;s=0?j5[o]:"")+e},a0=function(){f6()&&window.document&&(q5=window,Or=q5.document,Yi=Or.documentElement,fi=o0("div")||{style:{}},o0("div"),$e=Wi($e),i1=$e+"Origin",fi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",G5=!!Wi("perspective"),i0=r1.core.reverting,r0=1)},K5=function(e){var t=e.ownerSVGElement,r=o0("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),s;i.style.display="block",r.appendChild(i),Yi.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),Yi.removeChild(r),s},Q5=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},J5=function(e){var t,r;try{t=e.getBBox()}catch{t=K5(e),r=1}return t&&(t.width||t.height)||r||(t=K5(e)),t&&!t.width&&!t.x&&!t.y?{x:+Q5(e,["x","cx","x1"])||0,y:+Q5(e,["y","cy","y1"])||0,width:0,height:0}:t},eo=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&J5(e))},ci=function(e,t){if(t){var r=e.style,i;t in vr&&t!==i1&&(t=$e),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(n0,"-$1").toLowerCase())):r.removeAttribute(t)}},Ar=function(e,t,r,i,s,o){var a=new t1(e._pt,t,r,0,1,o?U5:Y5);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},to={deg:1,rad:1,turn:1},L6={grid:1,flex:1},Rr=function n(e,t,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=fi.style,l=u6.test(t),f=e.tagName.toLowerCase()==="svg",u=(f?"client":"offset")+(l?"Width":"Height"),d=100,h=i==="px",c=i==="%",p,g,_,w;if(i===o||!s||to[i]||to[o])return s;if(o!=="px"&&!h&&(s=n(e,t,r,"px")),w=e.getCTM&&eo(e),(c||o==="%")&&(vr[t]||~t.indexOf("adius")))return p=w?e.getBBox()[l?"width":"height"]:e[u],Ke(c?s/p*d:s/100*p);if(a[l?"width":"height"]=d+(h?o:i),g=i!=="rem"&&~t.indexOf("adius")||i==="em"&&e.appendChild&&!f?e:e.parentNode,w&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===Or||!g.appendChild)&&(g=Or.body),_=g._gsap,_&&c&&_.width&&l&&_.time===g1.time&&!_.uncache)return Ke(s/_.width*d);if(c&&(t==="height"||t==="width")){var b=e.style[t];e.style[t]=d+i,p=e[u],b?e.style[t]=b:ci(e,t)}else(c||o==="%")&&!L6[E1(g,"display")]&&(a.position=E1(e,"position")),g===e&&(a.position="static"),g.appendChild(fi),p=fi[u],g.removeChild(fi),a.position="absolute";return l&&c&&(_=ni(g),_.time=g1.time,_.width=g[u]),Ke(h?p*s/d:p&&s?d/p*s:0)},Cr=function(e,t,r,i){var s;return r0||a0(),t in tr&&t!=="transform"&&(t=tr[t],~t.indexOf(",")&&(t=t.split(",")[0])),vr[t]&&t!=="transform"?(s=Mn(e,i),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:L2(E1(e,i1))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=w2[t]&&w2[t](e,t,r)||E1(e,t)||n5(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Rr(e,t,s,r)+r:s},x6=function(e,t,r,i){if(!r||r==="none"){var s=Wi(t,e,1),o=s&&E1(e,s,1);o&&o!==r?(t=s,r=o):t==="borderColor"&&(r=E1(e,"borderTopColor"))}var a=new t1(this._pt,e.style,t,0,1,F5),l=0,f=0,u,d,h,c,p,g,_,w,b,y,C,L;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=E1(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(g=e.style[t],e.style[t]=i,i=E1(e,t)||i,g?e.style[t]=g:ci(e,t)),u=[r,i],T5(u),r=u[0],i=u[1],h=r.match(Fi)||[],L=i.match(Fi)||[],L.length){for(;d=Fi.exec(i);)_=d[0],b=i.substring(l,d.index),p?p=(p+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(p=1),_!==(g=h[f++]||"")&&(c=parseFloat(g)||0,C=g.substr((c+"").length),_.charAt(1)==="="&&(_=zi(c,_)+C),w=parseFloat(_),y=_.substr((w+"").length),l=Fi.lastIndex-y.length,y||(y=y||f1.units[t]||C,l===i.length&&(i+=y,a.e+=y)),C!==y&&(c=Rr(e,t,g,y)||0),a._pt={_next:a._pt,p:b||f===1?b:",",s:c,c:w-c,m:p&&p<4||t==="zIndex"?Math.round:0});a.c=l-1;)a=s[f],vr[a]&&(l=1,a=a==="transformOrigin"?i1:$e),ci(r,a);l&&(ci(r,$e),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Mn(r,1),o.uncache=1,X5(i)))}},w2={clearProps:function(e,t,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new t1(e._pt,t,r,0,0,S6);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},Sn=[1,0,0,1,0,0],io={},no=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},so=function(e){var t=E1(e,$e);return no(t)?Sn:t.substr(7).match(js).map(Ke)},l0=function(e,t){var r=e._gsap||ni(e),i=e.style,s=so(e),o,a,l,f;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Sn:s):(s===Sn&&!e.offsetParent&&e!==Yi&&!r.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(f=1,a=e.nextElementSibling,Yi.appendChild(e)),s=so(e),l?i.display=l:ci(e,"display"),f&&(a?o.insertBefore(e,a):o?o.appendChild(e):Yi.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},f0=function(e,t,r,i,s,o){var a=e._gsap,l=s||l0(e,!0),f=a.xOrigin||0,u=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,c=l[0],p=l[1],g=l[2],_=l[3],w=l[4],b=l[5],y=t.split(" "),C=parseFloat(y[0])||0,L=parseFloat(y[1])||0,k,m,O,S;r?l!==Sn&&(m=c*_-p*g)&&(O=C*(_/m)+L*(-g/m)+(g*b-_*w)/m,S=C*(-p/m)+L*(c/m)-(c*b-p*w)/m,C=O,L=S):(k=J5(e),C=k.x+(~y[0].indexOf("%")?C/100*k.width:C),L=k.y+(~(y[1]||y[0]).indexOf("%")?L/100*k.height:L)),i||i!==!1&&a.smooth?(w=C-f,b=L-u,a.xOffset=d+(w*c+b*g)-w,a.yOffset=h+(w*p+b*_)-b):a.xOffset=a.yOffset=0,a.xOrigin=C,a.yOrigin=L,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[i1]="0px 0px",o&&(Ar(o,a,"xOrigin",f,C),Ar(o,a,"yOrigin",u,L),Ar(o,a,"xOffset",d,a.xOffset),Ar(o,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",C+" "+L)},Mn=function(e,t){var r=e._gsap||new E5(e);if("x"in r&&!t&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),f=E1(e,i1)||"0",u,d,h,c,p,g,_,w,b,y,C,L,k,m,O,S,H,Z,A,Y,N,X,ee,M,J,F,v,we,He,Je,ke,Ie;return u=d=h=g=_=w=b=y=C=0,c=p=1,r.svg=!!(e.getCTM&&eo(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[$e]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[$e]!=="none"?l[$e]:"")),i.scale=i.rotate=i.translate="none"),m=l0(e,r.svg),r.svg&&(r.uncache?(J=e.getBBox(),f=r.xOrigin-J.x+"px "+(r.yOrigin-J.y)+"px",M=""):M=!t&&e.getAttribute("data-svg-origin"),f0(e,M||f,!!M||r.originIsAbsolute,r.smooth!==!1,m)),L=r.xOrigin||0,k=r.yOrigin||0,m!==Sn&&(Z=m[0],A=m[1],Y=m[2],N=m[3],u=X=m[4],d=ee=m[5],m.length===6?(c=Math.sqrt(Z*Z+A*A),p=Math.sqrt(N*N+Y*Y),g=Z||A?Xi(A,Z)*ui:0,b=Y||N?Xi(Y,N)*ui+g:0,b&&(p*=Math.abs(Math.cos(b*Ui))),r.svg&&(u-=L-(L*Z+k*Y),d-=k-(L*A+k*N))):(Ie=m[6],Je=m[7],v=m[8],we=m[9],He=m[10],ke=m[11],u=m[12],d=m[13],h=m[14],O=Xi(Ie,He),_=O*ui,O&&(S=Math.cos(-O),H=Math.sin(-O),M=X*S+v*H,J=ee*S+we*H,F=Ie*S+He*H,v=X*-H+v*S,we=ee*-H+we*S,He=Ie*-H+He*S,ke=Je*-H+ke*S,X=M,ee=J,Ie=F),O=Xi(-Y,He),w=O*ui,O&&(S=Math.cos(-O),H=Math.sin(-O),M=Z*S-v*H,J=A*S-we*H,F=Y*S-He*H,ke=N*H+ke*S,Z=M,A=J,Y=F),O=Xi(A,Z),g=O*ui,O&&(S=Math.cos(O),H=Math.sin(O),M=Z*S+A*H,J=X*S+ee*H,A=A*S-Z*H,ee=ee*S-X*H,Z=M,X=J),_&&Math.abs(_)+Math.abs(g)>359.9&&(_=g=0,w=180-w),c=Ke(Math.sqrt(Z*Z+A*A+Y*Y)),p=Ke(Math.sqrt(ee*ee+Ie*Ie)),O=Xi(X,ee),b=Math.abs(O)>2e-4?O*ui:0,C=ke?1/(ke<0?-ke:ke):0),r.svg&&(M=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!no(E1(e,$e)),M&&e.setAttribute("transform",M))),Math.abs(b)>90&&Math.abs(b)<270&&(s?(c*=-1,b+=g<=0?180:-180,g+=g<=0?180:-180):(p*=-1,b+=b<=0?180:-180)),t=t||r.uncache,r.x=u-((r.xPercent=u&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=h+o,r.scaleX=Ke(c),r.scaleY=Ke(p),r.rotation=Ke(g)+a,r.rotationX=Ke(_)+a,r.rotationY=Ke(w)+a,r.skewX=b+a,r.skewY=y+a,r.transformPerspective=C+o,(r.zOrigin=parseFloat(f.split(" ")[2])||!t&&r.zOrigin||0)&&(i[i1]=L2(f)),r.xOffset=r.yOffset=0,r.force3D=f1.force3D,r.renderTransform=r.svg?T6:G5?oo:M6,r.uncache=0,r},L2=function(e){return(e=e.split(" "))[0]+" "+e[1]},u0=function(e,t,r){var i=Ht(t);return Ke(parseFloat(t)+parseFloat(Rr(e,"x",r+"px",i)))+i},M6=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,oo(e,t)},hi="0deg",Tn="0px",di=") ",oo=function(e,t){var r=t||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,f=r.rotation,u=r.rotationY,d=r.rotationX,h=r.skewX,c=r.skewY,p=r.scaleX,g=r.scaleY,_=r.transformPerspective,w=r.force3D,b=r.target,y=r.zOrigin,C="",L=w==="auto"&&e&&e!==1||w===!0;if(y&&(d!==hi||u!==hi)){var k=parseFloat(u)*Ui,m=Math.sin(k),O=Math.cos(k),S;k=parseFloat(d)*Ui,S=Math.cos(k),o=u0(b,o,m*S*-y),a=u0(b,a,-Math.sin(k)*-y),l=u0(b,l,O*S*-y+y)}_!==Tn&&(C+="perspective("+_+di),(i||s)&&(C+="translate("+i+"%, "+s+"%) "),(L||o!==Tn||a!==Tn||l!==Tn)&&(C+=l!==Tn||L?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+di),f!==hi&&(C+="rotate("+f+di),u!==hi&&(C+="rotateY("+u+di),d!==hi&&(C+="rotateX("+d+di),(h!==hi||c!==hi)&&(C+="skew("+h+", "+c+di),(p!==1||g!==1)&&(C+="scale("+p+", "+g+di),b.style[$e]=C||"translate(0, 0)"},T6=function(e,t){var r=t||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,f=r.skewX,u=r.skewY,d=r.scaleX,h=r.scaleY,c=r.target,p=r.xOrigin,g=r.yOrigin,_=r.xOffset,w=r.yOffset,b=r.forceCSS,y=parseFloat(o),C=parseFloat(a),L,k,m,O,S;l=parseFloat(l),f=parseFloat(f),u=parseFloat(u),u&&(u=parseFloat(u),f+=u,l+=u),l||f?(l*=Ui,f*=Ui,L=Math.cos(l)*d,k=Math.sin(l)*d,m=Math.sin(l-f)*-h,O=Math.cos(l-f)*h,f&&(u*=Ui,S=Math.tan(f-u),S=Math.sqrt(1+S*S),m*=S,O*=S,u&&(S=Math.tan(u),S=Math.sqrt(1+S*S),L*=S,k*=S)),L=Ke(L),k=Ke(k),m=Ke(m),O=Ke(O)):(L=d,O=h,k=m=0),(y&&!~(o+"").indexOf("px")||C&&!~(a+"").indexOf("px"))&&(y=Rr(c,"x",o,"px"),C=Rr(c,"y",a,"px")),(p||g||_||w)&&(y=Ke(y+p-(p*L+g*m)+_),C=Ke(C+g-(p*k+g*O)+w)),(i||s)&&(S=c.getBBox(),y=Ke(y+i/100*S.width),C=Ke(C+s/100*S.height)),S="matrix("+L+","+k+","+m+","+O+","+y+","+C+")",c.setAttribute("transform",S),b&&(c.style[$e]=S)},P6=function(e,t,r,i,s){var o=360,a=ht(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?ui:1),f=l-i,u=i+f+"deg",d,h;return a&&(d=s.split("_")[1],d==="short"&&(f%=o,f!==f%(o/2)&&(f+=f<0?o:-o)),d==="cw"&&f<0?f=(f+o*$5)%o-~~(f/o)*o:d==="ccw"&&f>0&&(f=(f-o*$5)%o-~~(f/o)*o)),e._pt=h=new t1(e._pt,t,r,i,f,h6),h.e=u,h.u="deg",e._props.push(r),h},ao=function(e,t){for(var r in t)e[r]=t[r];return e},V6=function(e,t,r){var i=ao({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,f,u,d,h,c,p;i.svg?(f=r.getAttribute("transform"),r.setAttribute("transform",""),o[$e]=t,a=Mn(r,1),ci(r,$e),r.setAttribute("transform",f)):(f=getComputedStyle(r)[$e],o[$e]=t,a=Mn(r,1),o[$e]=f);for(l in vr)f=i[l],u=a[l],f!==u&&s.indexOf(l)<0&&(c=Ht(f),p=Ht(u),d=c!==p?Rr(r,l,f,p):parseFloat(f),h=parseFloat(u),e._pt=new t1(e._pt,a,l,d,h-d,s0),e._pt.u=p||0,e._props.push(l));ao(a,i)};e1("padding,margin,Width,Radius",function(n,e){var t="Top",r="Right",i="Bottom",s="Left",o=(e<3?[t,r,i,s]:[t+s,t+r,i+r,i+s]).map(function(a){return e<2?n+a:"border"+a+n});w2[e>1?"border"+n:n]=function(a,l,f,u,d){var h,c;if(arguments.length<4)return h=o.map(function(p){return Cr(a,p,f)}),c=h.join(" "),c.split(h[0]).length===5?h[0]:c;h=(u+"").split(" "),c={},o.forEach(function(p,g){return c[p]=h[g]=h[g]||h[(g-1)/2|0]}),a.init(l,c,d)}});var lo={name:"css",register:a0,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,s){var o=this._props,a=e.style,l=r.vars.startAt,f,u,d,h,c,p,g,_,w,b,y,C,L,k,m,O;r0||a0(),this.styles=this.styles||W5(e),O=this.styles.props,this.tween=r;for(g in t)if(g!=="autoRound"&&(u=t[g],!(c1[g]&&O5(g,t,r,i,e,s)))){if(c=typeof u,p=w2[g],c==="function"&&(u=u.call(r,i,e,s),c=typeof u),c==="string"&&~u.indexOf("random(")&&(u=bn(u)),p)p(this,e,g,u,r)&&(m=1);else if(g.substr(0,2)==="--")f=(getComputedStyle(e).getPropertyValue(g)+"").trim(),u+="",Hr.lastIndex=0,Hr.test(f)||(_=Ht(f),w=Ht(u)),w?_!==w&&(f=Rr(e,g,f,w)+w):_&&(u+=_),this.add(a,"setProperty",f,u,i,s,0,0,g),o.push(g),O.push(g,0,a[g]);else if(c!=="undefined"){if(l&&g in l?(f=typeof l[g]=="function"?l[g].call(r,i,e,s):l[g],ht(f)&&~f.indexOf("random(")&&(f=bn(f)),Ht(f+"")||f==="auto"||(f+=f1.units[g]||Ht(Cr(e,g))||""),(f+"").charAt(1)==="="&&(f=Cr(e,g))):f=Cr(e,g),h=parseFloat(f),b=c==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),d=parseFloat(u),g in tr&&(g==="autoAlpha"&&(h===1&&Cr(e,"visibility")==="hidden"&&d&&(h=0),O.push("visibility",0,a.visibility),Ar(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),g!=="scale"&&g!=="transform"&&(g=tr[g],~g.indexOf(",")&&(g=g.split(",")[0]))),y=g in vr,y){if(this.styles.save(g),c==="string"&&u.substring(0,6)==="var(--"&&(u=E1(e,u.substring(4,u.indexOf(")"))),d=parseFloat(u)),C||(L=e._gsap,L.renderTransform&&!t.parseTransform||Mn(e,t.parseTransform),k=t.smoothOrigin!==!1&&L.smooth,C=this._pt=new t1(this._pt,a,$e,0,1,L.renderTransform,L,0,-1),C.dep=1),g==="scale")this._pt=new t1(this._pt,L,"scaleY",L.scaleY,(b?zi(L.scaleY,b+d):d)-L.scaleY||0,s0),this._pt.u=0,o.push("scaleY",g),g+="X";else if(g==="transformOrigin"){O.push(i1,0,a[i1]),u=k6(u),L.svg?f0(e,u,0,k,0,this):(w=parseFloat(u.split(" ")[2])||0,w!==L.zOrigin&&Ar(this,L,"zOrigin",L.zOrigin,w),Ar(this,a,g,L2(f),L2(u)));continue}else if(g==="svgOrigin"){f0(e,u,1,k,0,this);continue}else if(g in io){P6(this,L,g,h,b?zi(h,b+u):u);continue}else if(g==="smoothOrigin"){Ar(this,L,"smooth",L.smooth,u);continue}else if(g==="force3D"){L[g]=u;continue}else if(g==="transform"){V6(this,u,e);continue}}else g in a||(g=Wi(g)||g);if(y||(d||d===0)&&(h||h===0)&&!c6.test(u)&&g in a)_=(f+"").substr((h+"").length),d||(d=0),w=Ht(u)||(g in f1.units?f1.units[g]:_),_!==w&&(h=Rr(e,g,f,w)),this._pt=new t1(this._pt,y?L:a,g,h,(b?zi(h,b+d):d)-h,!y&&(w==="px"||g==="zIndex")&&t.autoRound!==!1?g6:s0),this._pt.u=w||0,_!==w&&w!=="%"&&(this._pt.b=f,this._pt.r=d6);else if(g in a)x6.call(this,e,g,f,b?b+u:u);else if(g in e)this.add(e,g,f||e[g],b?b+u:u,i,s);else if(g!=="parseTransform"){E3(g,u);continue}y||(g in a?O.push(g,0,a[g]):typeof e[g]=="function"?O.push(g,2,e[g]()):O.push(g,1,f||e[g])),o.push(g)}}m&&z5(this)},render:function(e,t){if(t.tween._time||!i0())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Cr,aliases:tr,getSetter:function(e,t,r){var i=tr[t];return i&&i.indexOf(",")<0&&(t=i),t in vr&&t!==i1&&(e._gsap.x||Cr(e,"x"))?r&&N5===r?t==="scale"?C6:v6:(N5=r||{})&&(t==="scale"?m6:b6):e.style&&!S3(e.style[t])?p6:~t.indexOf("-")?_6:K3(e,t)},core:{_removeProperty:ci,_getMatrix:l0}};r1.utils.checkPrefix=Wi,r1.core.getStyleSaver=W5,(function(n,e,t,r){var i=e1(n+","+e+","+t,function(s){vr[s]=1});e1(e,function(s){f1.units[s]="deg",io[s]=1}),tr[i[13]]=n+","+e,e1(r,function(s){var o=s.split(":");tr[o[1]]=i[o[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"),e1("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){f1.units[n]="px"}),r1.registerPlugin(lo);var fo=r1.registerPlugin(lo)||r1;fo.core.Tween;function H6(n,e){for(var t=0;tl?(s=i,i=p,a=o,o=_):r?i+=p:i=s+(p-s)/(_-a)*(o-a)},d=function(){s=i=r?0:i,a=o=0},h=function(p){var g=a,_=s,w=Vn();return(p||p===0)&&p!==i&&u(p),o===a||w-a>f?0:(i+(r?_:-_))/((r?w:o)-g)*1e3};return{update:u,reset:d,getVelocity:h}},En=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},_o=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},vo=function(){Pn=Lt.core.globals().ScrollTrigger,Pn&&Pn.core&&O6()},Co=function(e){return Lt=e||go(),!x2&&Lt&&typeof document<"u"&&document.body&&(p1=window,Zr=document,Dr=Zr.documentElement,Gi=Zr.body,co=[p1,Zr,Dr,Gi],Lt.utils.clamp,ho=Lt.core.context||function(){},gi="onpointerenter"in Gi?"pointer":"mouse",uo=Qe.isTouch=p1.matchMedia&&p1.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in p1||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,N1=Qe.eventTypes=("ontouchstart"in Dr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Dr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return po=0},500),vo(),x2=1),x2};Yt.op=lt,fe.cache=0;var Qe=(function(){function n(t){this.init(t)}var e=n.prototype;return e.init=function(r){x2||Co(Lt)||console.warn("Please gsap.registerPlugin(Observer)"),Pn||vo();var i=r.tolerance,s=r.dragMinimum,o=r.type,a=r.target,l=r.lineHeight,f=r.debounce,u=r.preventDefault,d=r.onStop,h=r.onStopDelay,c=r.ignore,p=r.wheelSpeed,g=r.event,_=r.onDragStart,w=r.onDragEnd,b=r.onDrag,y=r.onPress,C=r.onRelease,L=r.onRight,k=r.onLeft,m=r.onUp,O=r.onDown,S=r.onChangeX,H=r.onChangeY,Z=r.onChange,A=r.onToggleX,Y=r.onToggleY,N=r.onHover,X=r.onHoverEnd,ee=r.onMove,M=r.ignoreCheck,J=r.isNormalizer,F=r.onGestureStart,v=r.onGestureEnd,we=r.onWheel,He=r.onEnable,Je=r.onDisable,ke=r.onClick,Ie=r.scrollSpeed,Re=r.capture,ye=r.allowClicks,We=r.lockAxis,ot=r.onLockAxis;this.target=a=n1(a)||Dr,this.vars=r,c&&(c=Lt.utils.toArray(c)),i=i||1e-9,s=s||0,p=p||1,Ie=Ie||1,o=o||"wheel,touch,pointer",f=f!==!1,l||(l=parseFloat(p1.getComputedStyle(Gi).lineHeight)||22);var Z1,_e,pt,oe,Le,_t,xt,x=this,ut=0,s1=0,vt=r.passive||!u&&r.passive!==!1,ve=zr(a,Yt),kt=zr(a,lt),R=ve(),q=kt(),K=~o.indexOf("touch")&&!~o.indexOf("pointer")&&N1[0]==="pointerdown",et=Hn(a),de=a.ownerDocument||Zr,tt=[0,0,0],Ge=[0,0,0],Gt=0,Rt=function(){return Gt=Vn()},Se=function(U,be){return(x.event=U)&&c&&A6(U.target,c)||be&&K&&U.pointerType!=="touch"||M&&M(U,be)},$1=function(){x._vx.reset(),x._vy.reset(),_e.pause(),d&&d(x)},Ct=function(){var U=x.deltaX=_o(tt),be=x.deltaY=_o(Ge),D=Math.abs(U)>=i,j=Math.abs(be)>=i;Z&&(D||j)&&Z(x,U,be,tt,Ge),D&&(L&&x.deltaX>0&&L(x),k&&x.deltaX<0&&k(x),S&&S(x),A&&x.deltaX<0!=ut<0&&A(x),ut=x.deltaX,tt[0]=tt[1]=tt[2]=0),j&&(O&&x.deltaY>0&&O(x),m&&x.deltaY<0&&m(x),H&&H(x),Y&&x.deltaY<0!=s1<0&&Y(x),s1=x.deltaY,Ge[0]=Ge[1]=Ge[2]=0),(oe||pt)&&(ee&&ee(x),pt&&(_&&pt===1&&_(x),b&&b(x),pt=0),oe=!1),_t&&!(_t=!1)&&ot&&ot(x),Le&&(we(x),Le=!1),Z1=0},Be=function(U,be,D){tt[D]+=U,Ge[D]+=be,x._vx.update(U),x._vy.update(be),f?Z1||(Z1=requestAnimationFrame(Ct)):Ct()},De=function(U,be){We&&!xt&&(x.axis=xt=Math.abs(U)>Math.abs(be)?"x":"y",_t=!0),xt!=="y"&&(tt[2]+=U,x._vx.update(U,!0)),xt!=="x"&&(Ge[2]+=be,x._vy.update(be,!0)),f?Z1||(Z1=requestAnimationFrame(Ct)):Ct()},Y1=function(U){if(!Se(U,1)){U=En(U,u);var be=U.clientX,D=U.clientY,j=be-x.x,W=D-x.y,Q=x.isDragging;x.x=be,x.y=D,(Q||(j||W)&&(Math.abs(x.startX-be)>=s||Math.abs(x.startY-D)>=s))&&(pt=Q?2:1,Q||(x.isDragging=!0),De(j,W))}},wr=x.onPress=function(G){Se(G,1)||G&&G.button||(x.axis=xt=null,_e.pause(),x.isPressed=!0,G=En(G),ut=s1=0,x.startX=x.x=G.clientX,x.startY=x.y=G.clientY,x._vx.reset(),x._vy.reset(),Nt(J?a:de,N1[1],Y1,vt,!0),x.deltaX=x.deltaY=0,y&&y(x))},ae=x.onRelease=function(G){if(!Se(G,1)){$t(J?a:de,N1[1],Y1,!0);var U=!isNaN(x.y-x.startY),be=x.isDragging,D=be&&(Math.abs(x.x-x.startX)>3||Math.abs(x.y-x.startY)>3),j=En(G);!D&&U&&(x._vx.reset(),x._vy.reset(),u&&ye&&Lt.delayedCall(.08,function(){if(Vn()-Gt>300&&!G.defaultPrevented){if(G.target.click)G.target.click();else if(de.createEvent){var W=de.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,p1,1,j.screenX,j.screenY,j.clientX,j.clientY,!1,!1,!1,!1,0,null),G.target.dispatchEvent(W)}}})),x.isDragging=x.isGesturing=x.isPressed=!1,d&&be&&!J&&_e.restart(!0),pt&&Ct(),w&&be&&w(x),C&&C(x,D)}},Lr=function(U){return U.touches&&U.touches.length>1&&(x.isGesturing=!0)&&F(U,x.isDragging)},T=function(){return(x.isGesturing=!1)||v(x)},te=function(U){if(!Se(U)){var be=ve(),D=kt();Be((be-R)*Ie,(D-q)*Ie,1),R=be,q=D,d&&_e.restart(!0)}},ce=function(U){if(!Se(U)){U=En(U,u),we&&(Le=!0);var be=(U.deltaMode===1?l:U.deltaMode===2?p1.innerHeight:1)*p;Be(U.deltaX*be,U.deltaY*be,0),d&&!J&&_e.restart(!0)}},St=function(U){if(!Se(U)){var be=U.clientX,D=U.clientY,j=be-x.x,W=D-x.y;x.x=be,x.y=D,oe=!0,d&&_e.restart(!0),(j||W)&&De(j,W)}},m1=function(U){x.event=U,N(x)},b1=function(U){x.event=U,X(x)},jt=function(U){return Se(U)||En(U,u)&&ke(x)};_e=x._dc=Lt.delayedCall(h||.25,$1).pause(),x.deltaX=x.deltaY=0,x._vx=d0(0,50,!0),x._vy=d0(0,50,!0),x.scrollX=ve,x.scrollY=kt,x.isDragging=x.isGesturing=x.isPressed=!1,ho(this),x.enable=function(G){return x.isEnabled||(Nt(et?de:a,"scroll",h0),o.indexOf("scroll")>=0&&Nt(et?de:a,"scroll",te,vt,Re),o.indexOf("wheel")>=0&&Nt(a,"wheel",ce,vt,Re),(o.indexOf("touch")>=0&&uo||o.indexOf("pointer")>=0)&&(Nt(a,N1[0],wr,vt,Re),Nt(de,N1[2],ae),Nt(de,N1[3],ae),ye&&Nt(a,"click",Rt,!0,!0),ke&&Nt(a,"click",jt),F&&Nt(de,"gesturestart",Lr),v&&Nt(de,"gestureend",T),N&&Nt(a,gi+"enter",m1),X&&Nt(a,gi+"leave",b1),ee&&Nt(a,gi+"move",St)),x.isEnabled=!0,x.isDragging=x.isGesturing=x.isPressed=oe=pt=!1,x._vx.reset(),x._vy.reset(),R=ve(),q=kt(),G&&G.type&&wr(G),He&&He(x)),x},x.disable=function(){x.isEnabled&&(ji.filter(function(G){return G!==x&&Hn(G.target)}).length||$t(et?de:a,"scroll",h0),x.isPressed&&(x._vx.reset(),x._vy.reset(),$t(J?a:de,N1[1],Y1,!0)),$t(et?de:a,"scroll",te,Re),$t(a,"wheel",ce,Re),$t(a,N1[0],wr,Re),$t(de,N1[2],ae),$t(de,N1[3],ae),$t(a,"click",Rt,!0),$t(a,"click",jt),$t(de,"gesturestart",Lr),$t(de,"gestureend",T),$t(a,gi+"enter",m1),$t(a,gi+"leave",b1),$t(a,gi+"move",St),x.isEnabled=x.isPressed=x.isDragging=!1,Je&&Je(x))},x.kill=x.revert=function(){x.disable();var G=ji.indexOf(x);G>=0&&ji.splice(G,1),mr===x&&(mr=0)},ji.push(x),J&&Hn(a)&&(mr=x),x.enable(g)},E6(n,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),n})();Qe.version="3.13.0",Qe.create=function(n){return new Qe(n)},Qe.register=Co,Qe.getAll=function(){return ji.slice()},Qe.getById=function(n){return ji.filter(function(e){return e.vars.id===n})[0]},go()&&Lt.registerPlugin(Qe);/*! - * ScrollTrigger 3.13.0 - * https://gsap.com - * - * @license Copyright 2008-2025, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license - * @author: Jack Doyle, jack@greensock.com -*/var z,Ki,ue,Ae,_1,xe,g0,T2,On,An,Rn,P2,Et,V2,p0,Ut,mo,bo,Qi,yo,_0,wo,Xt,v0,Lo,xo,Ir,C0,m0,Ji,b0,H2,y0,w0,E2=1,Ot=Date.now,L0=Ot(),O1=0,Zn=0,ko=function(e,t,r){var i=v1(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},So=function(e,t){return t&&(!v1(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},R6=function n(){return Zn&&requestAnimationFrame(n)},Mo=function(){return V2=1},To=function(){return V2=0},ir=function(e){return e},Dn=function(e){return Math.round(e*1e5)/1e5||0},Po=function(){return typeof window<"u"},Vo=function(){return z||Po()&&(z=window.gsap)&&z.registerPlugin&&z},pi=function(e){return!!~g0.indexOf(e)},Ho=function(e){return(e==="Height"?b0:ue["inner"+e])||_1["client"+e]||xe["client"+e]},Eo=function(e){return Fr(e,"getBoundingClientRect")||(pi(e)?function(){return Y2.width=ue.innerWidth,Y2.height=b0,Y2}:function(){return br(e)})},Z6=function(e,t,r){var i=r.d,s=r.d2,o=r.a;return(o=Fr(e,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(t?Ho(s):e["client"+s])||0}},D6=function(e,t){return!t||~rr.indexOf(e)?Eo(e):function(){return Y2}},nr=function(e,t){var r=t.s,i=t.d2,s=t.d,o=t.a;return Math.max(0,(r="scroll"+i)&&(o=Fr(e,r))?o()-Eo(e)()[s]:pi(e)?(_1[r]||xe[r])-Ho(i):e[r]-e["offset"+i])},O2=function(e,t){for(var r=0;r0){for(i-=o,a=0;a=i)return r[a];return r[a-1]}else for(a=r.length,i+=o;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,s,o){o===void 0&&(o=.001);var a=t(i);return!s||Math.abs(a-i)r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in F2?F2[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},I2=function(e,t,r,i,s,o,a,l){var f=s.startColor,u=s.endColor,d=s.fontSize,h=s.indent,c=s.fontWeight,p=Ae.createElement("div"),g=pi(r)||Fr(r,"pinType")==="fixed",_=e.indexOf("scroller")!==-1,w=g?xe:r,b=e.indexOf("start")!==-1,y=b?f:u,C="border-color:"+y+";font-size:"+d+";color:"+y+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return C+="position:"+((_||l)&&g?"fixed;":"absolute;"),(_||l||!g)&&(C+=(i===lt?k0:S0)+":"+(o+parseFloat(h))+"px;"),a&&(C+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=C,p.innerText=t||t===0?e+"-"+t:e,w.children[0]?w.insertBefore(p,w.children[0]):w.appendChild(p),p._offset=p["offset"+i.op.d2],B2(p,0,i,b),p},B2=function(e,t,r,i){var s={display:"block"},o=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+tn]=1,s["border"+a+tn]=0,s[r.p]=t+"px",z.set(e,s)},ne=[],P0={},$n,Fo=function(){return Ot()-O1>34&&($n||($n=requestAnimationFrame(yr)))},rn=function(){(!Xt||!Xt.isPressed||Xt.startX>xe.clientWidth)&&(fe.cache++,Xt?$n||($n=requestAnimationFrame(yr)):yr(),O1||bi("scrollStart"),O1=Ot())},V0=function(){xo=ue.innerWidth,Lo=ue.innerHeight},Yn=function(e){fe.cache++,(e===!0||!Et&&!wo&&!Ae.fullscreenElement&&!Ae.webkitFullscreenElement&&(!v0||xo!==ue.innerWidth||Math.abs(ue.innerHeight-Lo)>ue.innerHeight*.25))&&T2.restart(!0)},mi={},B6=[],zo=function n(){return gt(se,"scrollEnd",n)||wi(!0)},bi=function(e){return mi[e]&&mi[e].map(function(t){return t()})||B6},C1=[],Io=function(e){for(var t=0;ts,a=i._startClamp&&i.start>=s;(o||a)&&i.setPositions(a?s-1:i.start,o?Math.max(a?s:i.start+1,s):i.end,!0)}),$o(!1),y0=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),fe.forEach(function(i){At(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),Bo(m0,1),T2.pause(),yi++,Wt=2,yr(2),ne.forEach(function(i){return At(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Wt=se.isRefreshing=!1,bi("refresh")},E0=0,q2=1,Un,yr=function(e){if(e===2||!Wt&&!H2){se.isUpdating=!0,Un&&Un.update(0);var t=ne.length,r=Ot(),i=r-L0>=50,s=t&&ne[0].scroll();if(q2=E0>s?-1:1,Wt||(E0=s),i&&(O1&&!V2&&r-O1>200&&(O1=0,bi("scrollEnd")),Rn=L0,L0=r),q2<0){for(Ut=t;Ut-- >0;)ne[Ut]&&ne[Ut].update(0,i);q2=1}else for(Ut=0;Ut20),r-=r-k}if(p&&(l[p]=e||-.001,e<0&&(e=0)),o){var O=e+r,S=o._isStart;_="scroll"+i.d2,B2(o,O,i,S&&O>20||!S&&(d?Math.max(xe[_],_1[_]):o.parentNode[_])<=O+1),d&&(f=br(a),d&&(o.style[i.op.p]=f[i.op.p]-i.op.m-o._offset+ft))}return c&&b&&(_=br(b),c.seek(h),w=br(b),c._caScrollDist=_[i.p]-w[i.p],e=e/c._caScrollDist*h),c&&c.seek(g),c?e:Math.round(e)},U6=/(webkit|moz|length|cssText|inset)/i,Uo=function(e,t,r,i){if(e.parentNode!==t){var s=e.style,o,a;if(t===xe){e._stOrig=s.cssText,a=R1(e);for(o in a)!+o&&!U6.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=r,s.left=i}else s.cssText=e._stOrig;z.core.getCache(e).uncache=1,t.appendChild(e)}},Xo=function(e,t,r){var i=t,s=i;return function(o){var a=Math.round(e());return a!==i&&a!==s&&Math.abs(a-i)>3&&Math.abs(a-s)>3&&(o=a,r&&r()),s=i,i=Math.round(o),i}},U2=function(e,t,r){var i={};i[t.p]="+="+r,z.set(e,i)},Wo=function(e,t){var r=zr(e,t),i="_scroll"+t.p2,s=function o(a,l,f,u,d){var h=o.tween,c=l.onComplete,p={};f=f||r();var g=Xo(r,f,function(){h.kill(),o.tween=0});return d=u&&d||0,u=u||a-f,h&&h.kill(),l[i]=a,l.inherit=!1,l.modifiers=p,p[i]=function(){return g(f+u*h.ratio+d*h.ratio*h.ratio)},l.onUpdate=function(){fe.cache++,o.tween&&yr()},l.onComplete=function(){o.tween=0,c&&c.call(h)},h=o.tween=z.to(e,l),h};return e[i]=r,r.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},dt(e,"wheel",r.wheelHandler),se.isTouch&&dt(e,"touchmove",r.wheelHandler),s},se=(function(){function n(t,r){Ki||n.register(z)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),C0(this),this.init(t,r)}var e=n.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Zn){this.update=this.refresh=this.kill=ir;return}r=Ro(v1(r)||Fn(r)||r.nodeType?{trigger:r}:r,D2);var s=r,o=s.onUpdate,a=s.toggleClass,l=s.id,f=s.onToggle,u=s.onRefresh,d=s.scrub,h=s.trigger,c=s.pin,p=s.pinSpacing,g=s.invalidateOnRefresh,_=s.anticipatePin,w=s.onScrubComplete,b=s.onSnapComplete,y=s.once,C=s.snap,L=s.pinReparent,k=s.pinSpacer,m=s.containerAnimation,O=s.fastScrollEnd,S=s.preventOverlaps,H=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Yt:lt,Z=!d&&d!==0,A=n1(r.scroller||ue),Y=z.core.getCache(A),N=pi(A),X=("pinType"in r?r.pinType:Fr(A,"pinType")||N&&"fixed")==="fixed",ee=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],M=Z&&r.toggleActions.split(" "),J="markers"in r?r.markers:D2.markers,F=N?0:parseFloat(R1(A)["border"+H.p2+tn])||0,v=this,we=r.onRefreshInit&&function(){return r.onRefreshInit(v)},He=Z6(A,N,H),Je=D6(A,N),ke=0,Ie=0,Re=0,ye=zr(A,H),We,ot,Z1,_e,pt,oe,Le,_t,xt,x,ut,s1,vt,ve,kt,R,q,K,et,de,tt,Ge,Gt,Rt,Se,$1,Ct,Be,De,Y1,wr,ae,Lr,T,te,ce,St,m1,b1;if(v._startClamp=v._endClamp=!1,v._dir=H,_*=45,v.scroller=A,v.scroll=m?m.time.bind(m):ye,_e=ye(),v.vars=r,i=i||r.animation,"refreshPriority"in r&&(yo=1,r.refreshPriority===-9999&&(Un=v)),Y.tweenScroll=Y.tweenScroll||{top:Wo(A,lt),left:Wo(A,Yt)},v.tweenTo=We=Y.tweenScroll[H.p],v.scrubDuration=function(D){Lr=Fn(D)&&D,Lr?ae?ae.duration(D):ae=z.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Lr,paused:!0,onComplete:function(){return w&&w(v)}}):(ae&&ae.progress(1).kill(),ae=0)},i&&(i.vars.lazy=!1,i._initted&&!v.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),v.animation=i.pause(),i.scrollTrigger=v,v.scrubDuration(d),Y1=0,l||(l=i.vars.id)),C&&((!_i(C)||C.push)&&(C={snapTo:C}),"scrollBehavior"in xe.style&&z.set(N?[xe,_1]:A,{scrollBehavior:"auto"}),fe.forEach(function(D){return At(D)&&D.target===(N?Ae.scrollingElement||_1:A)&&(D.smooth=!1)}),Z1=At(C.snapTo)?C.snapTo:C.snapTo==="labels"?z6(i):C.snapTo==="labelsDirectional"?I6(i):C.directional!==!1?function(D,j){return T0(C.snapTo)(D,Ot()-Ie<500?0:j.direction)}:z.utils.snap(C.snapTo),T=C.duration||{min:.1,max:2},T=_i(T)?An(T.min,T.max):An(T,T),te=z.delayedCall(C.delay||Lr/2||.1,function(){var D=ye(),j=Ot()-Ie<500,W=We.tween;if((j||Math.abs(v.getVelocity())<10)&&!W&&!V2&&ke!==D){var Q=(D-oe)/ve,mt=i&&!Z?i.totalProgress():Q,Ce=j?0:(mt-wr)/(Ot()-Rn)*1e3||0,rt=z.utils.clamp(-Q,1-Q,en(Ce/2)*Ce/.185),Zt=Q+(C.inertia===!1?0:rt),je,qe,Ee=C,U1=Ee.onStart,Ye=Ee.onInterrupt,y1=Ee.onComplete;if(je=Z1(Zt,v),Fn(je)||(je=Zt),qe=Math.max(0,Math.round(oe+je*ve)),D<=Le&&D>=oe&&qe!==D){if(W&&!W._initted&&W.data<=en(qe-D))return;C.inertia===!1&&(rt=je-Q),We(qe,{duration:T(en(Math.max(en(Zt-mt),en(je-mt))*.185/Ce/.05||0)),ease:C.ease||"power3",data:en(qe-D),onInterrupt:function(){return te.restart(!0)&&Ye&&Ye(v)},onComplete:function(){v.update(),ke=ye(),i&&!Z&&(ae?ae.resetTo("totalProgress",je,i._tTime/i._tDur):i.progress(je)),Y1=wr=i&&!Z?i.totalProgress():v.progress,b&&b(v),y1&&y1(v)}},D,rt*ve,qe-D-rt*ve),U1&&U1(v,We.tween)}}else v.isActive&&ke!==D&&te.restart(!0)}).pause()),l&&(P0[l]=v),h=v.trigger=n1(h||c!==!0&&c),b1=h&&h._gsap&&h._gsap.stRevert,b1&&(b1=b1(v)),c=c===!0?h:n1(c),v1(a)&&(a={targets:h,className:a}),c&&(p===!1||p===A1||(p=!p&&c.parentNode&&c.parentNode.style&&R1(c.parentNode).display==="flex"?!1:st),v.pin=c,ot=z.core.getCache(c),ot.spacer?kt=ot.pinState:(k&&(k=n1(k),k&&!k.nodeType&&(k=k.current||k.nativeElement),ot.spacerIsNative=!!k,k&&(ot.spacerState=$2(k))),ot.spacer=K=k||Ae.createElement("div"),K.classList.add("pin-spacer"),l&&K.classList.add("pin-spacer-"+l),ot.pinState=kt=$2(c)),r.force3D!==!1&&z.set(c,{force3D:!0}),v.spacer=K=ot.spacer,De=R1(c),Rt=De[p+H.os2],de=z.getProperty(c),tt=z.quickSetter(c,H.a,ft),A0(c,K,De),q=$2(c)),J){s1=_i(J)?Ro(J,Do):Do,x=I2("scroller-start",l,A,H,s1,0),ut=I2("scroller-end",l,A,H,s1,0,x),et=x["offset"+H.op.d2];var jt=n1(Fr(A,"content")||A);_t=this.markerStart=I2("start",l,jt,H,s1,et,0,m),xt=this.markerEnd=I2("end",l,jt,H,s1,et,0,m),m&&(m1=z.quickSetter([_t,xt],H.a,ft)),!X&&!(rr.length&&Fr(A,"fixedMarkers")===!0)&&(F6(N?xe:A),z.set([x,ut],{force3D:!0}),$1=z.quickSetter(x,H.a,ft),Be=z.quickSetter(ut,H.a,ft))}if(m){var G=m.vars.onUpdate,U=m.vars.onUpdateParams;m.eventCallback("onUpdate",function(){v.update(0,0,1),G&&G.apply(m,U||[])})}if(v.previous=function(){return ne[ne.indexOf(v)-1]},v.next=function(){return ne[ne.indexOf(v)+1]},v.revert=function(D,j){if(!j)return v.kill(!0);var W=D!==!1||!v.enabled,Q=Et;W!==v.isReverted&&(W&&(ce=Math.max(ye(),v.scroll.rec||0),Re=v.progress,St=i&&i.progress()),_t&&[_t,xt,x,ut].forEach(function(mt){return mt.style.display=W?"none":"block"}),W&&(Et=v,v.update(W)),c&&(!L||!v.isActive)&&(W?N6(c,K,kt):A0(c,K,R1(c),Se)),W||v.update(W),Et=Q,v.isReverted=W)},v.refresh=function(D,j,W,Q){if(!((Et||!v.enabled)&&!j)){if(c&&D&&O1){dt(n,"scrollEnd",zo);return}!Wt&&we&&we(v),Et=v,We.tween&&!W&&(We.tween.kill(),We.tween=0),ae&&ae.pause(),g&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(Br){return Br.vars.immediateRender&&Br.render(0,!0,!0)})),v.isReverted||v.revert(!0,!0),v._subPinOffset=!1;var mt=He(),Ce=Je(),rt=m?m.duration():nr(A,H),Zt=ve<=.01||!ve,je=0,qe=Q||0,Ee=_i(W)?W.end:r.end,U1=r.endTrigger||h,Ye=_i(W)?W.start:r.start||(r.start===0||!h?0:c?"0 0":"0 100%"),y1=v.pinnedContainer=r.pinnedContainer&&n1(r.pinnedContainer,v),sr=h&&Math.max(0,ne.indexOf(v))||0,Mt=sr,Tt,Dt,Li,W2,Ft,ct,or,Z0,sa,Xn,ar,Wn,G2;for(J&&_i(W)&&(Wn=z.getProperty(x,H.p),G2=z.getProperty(ut,H.p));Mt-- >0;)ct=ne[Mt],ct.end||ct.refresh(0,1)||(Et=v),or=ct.pin,or&&(or===h||or===c||or===y1)&&!ct.isReverted&&(Xn||(Xn=[]),Xn.unshift(ct),ct.revert(!0,!0)),ct!==ne[Mt]&&(sr--,Mt--);for(At(Ye)&&(Ye=Ye(v)),Ye=ko(Ye,"start",v),oe=Yo(Ye,h,mt,H,ye(),_t,x,v,Ce,F,X,rt,m,v._startClamp&&"_startClamp")||(c?-.001:0),At(Ee)&&(Ee=Ee(v)),v1(Ee)&&!Ee.indexOf("+=")&&(~Ee.indexOf(" ")?Ee=(v1(Ye)?Ye.split(" ")[0]:"")+Ee:(je=z2(Ee.substr(2),mt),Ee=v1(Ye)?Ye:(m?z.utils.mapRange(0,m.duration(),m.scrollTrigger.start,m.scrollTrigger.end,oe):oe)+je,U1=h)),Ee=ko(Ee,"end",v),Le=Math.max(oe,Yo(Ee||(U1?"100% 0":rt),U1,mt,H,ye()+je,xt,ut,v,Ce,F,X,rt,m,v._endClamp&&"_endClamp"))||-.001,je=0,Mt=sr;Mt--;)ct=ne[Mt],or=ct.pin,or&&ct.start-ct._pinPush<=oe&&!m&&ct.end>0&&(Tt=ct.end-(v._startClamp?Math.max(0,ct.start):ct.start),(or===h&&ct.start-ct._pinPush=nr(A,H)))Tt=R1(c),W2=H===lt,Li=ye(),Ge=parseFloat(de(H.a))+qe,!rt&&Le>1&&(ar=(N?Ae.scrollingElement||_1:A).style,ar={style:ar,value:ar["overflow"+H.a.toUpperCase()]},N&&R1(xe)["overflow"+H.a.toUpperCase()]!=="scroll"&&(ar.style["overflow"+H.a.toUpperCase()]="scroll")),A0(c,K,Tt),q=$2(c),Dt=br(c,!0),Z0=X&&zr(A,W2?Yt:lt)(),p?(Se=[p+H.os2,ve+qe+ft],Se.t=K,Mt=p===st?A2(c,H)+ve+qe:0,Mt&&(Se.push(H.d,Mt+ft),K.style.flexBasis!=="auto"&&(K.style.flexBasis=Mt+ft)),nn(Se),y1&&ne.forEach(function(Br){Br.pin===y1&&Br.vars.pinSpacing!==!1&&(Br._subPinOffset=!0)}),X&&ye(ce)):(Mt=A2(c,H),Mt&&K.style.flexBasis!=="auto"&&(K.style.flexBasis=Mt+ft)),X&&(Ft={top:Dt.top+(W2?Li-oe:Z0)+ft,left:Dt.left+(W2?Z0:Li-oe)+ft,boxSizing:"border-box",position:"fixed"},Ft[vi]=Ft["max"+tn]=Math.ceil(Dt.width)+ft,Ft[Ci]=Ft["max"+M0]=Math.ceil(Dt.height)+ft,Ft[A1]=Ft[A1+qn]=Ft[A1+In]=Ft[A1+Nn]=Ft[A1+Bn]="0",Ft[st]=Tt[st],Ft[st+qn]=Tt[st+qn],Ft[st+In]=Tt[st+In],Ft[st+Nn]=Tt[st+Nn],Ft[st+Bn]=Tt[st+Bn],R=Y6(kt,Ft,L),Wt&&ye(0)),i?(sa=i._initted,_0(1),i.render(i.duration(),!0,!0),Gt=de(H.a)-Ge+ve+qe,Ct=Math.abs(ve-Gt)>1,X&&Ct&&R.splice(R.length-2,2),i.render(0,!0,!0),sa||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),_0(0)):Gt=ve,ar&&(ar.value?ar.style["overflow"+H.a.toUpperCase()]=ar.value:ar.style.removeProperty("overflow-"+H.a));else if(h&&ye()&&!m)for(Dt=h.parentNode;Dt&&Dt!==xe;)Dt._pinOffset&&(oe-=Dt._pinOffset,Le-=Dt._pinOffset),Dt=Dt.parentNode;Xn&&Xn.forEach(function(Br){return Br.revert(!1,!0)}),v.start=oe,v.end=Le,_e=pt=Wt?ce:ye(),!m&&!Wt&&(_e0?ne.slice(0,j).reverse():ne.slice(j+1);return(v1(D)?W.filter(function(Q){return Q.vars.preventOverlaps===D}):W).filter(function(Q){return v.direction>0?Q.end<=oe:Q.start>=Le})},v.update=function(D,j,W){if(!(m&&!W&&!D)){var Q=Wt===!0?ce:v.scroll(),mt=D?0:(Q-oe)/ve,Ce=mt<0?0:mt>1?1:mt||0,rt=v.progress,Zt,je,qe,Ee,U1,Ye,y1,sr;if(j&&(pt=_e,_e=m?ye():Q,C&&(wr=Y1,Y1=i&&!Z?i.totalProgress():Ce)),_&&c&&!Et&&!E2&&O1&&(!Ce&&oeQ+(Q-pt)/(Ot()-Rn)*_&&(Ce=.9999)),Ce!==rt&&v.enabled){if(Zt=v.isActive=!!Ce&&Ce<1,je=!!rt&&rt<1,Ye=Zt!==je,U1=Ye||!!Ce!=!!rt,v.direction=Ce>rt?1:-1,v.progress=Ce,U1&&!Et&&(qe=Ce&&!rt?0:Ce===1?1:rt===1?2:3,Z&&(Ee=!Ye&&M[qe+1]!=="none"&&M[qe+1]||M[qe],sr=i&&(Ee==="complete"||Ee==="reset"||Ee in i))),S&&(Ye||sr)&&(sr||d||!i)&&(At(S)?S(v):v.getTrailing(S).forEach(function(Li){return Li.endAnimation()})),Z||(ae&&!Et&&!E2?(ae._dp._time-ae._start!==ae._time&&ae.render(ae._dp._time-ae._start),ae.resetTo?ae.resetTo("totalProgress",Ce,i._tTime/i._tDur):(ae.vars.totalProgress=Ce,ae.invalidate().restart())):i&&i.totalProgress(Ce,!!(Et&&(Ie||D)))),c){if(D&&p&&(K.style[p+H.os2]=Rt),!X)tt(Dn(Ge+Gt*Ce));else if(U1){if(y1=!D&&Ce>rt&&Le+1>Q&&Q+1>=nr(A,H),L)if(!D&&(Zt||y1)){var Mt=br(c,!0),Tt=Q-oe;Uo(c,xe,Mt.top+(H===lt?Tt:0)+ft,Mt.left+(H===lt?0:Tt)+ft)}else Uo(c,K);nn(Zt||y1?R:q),Ct&&Ce<1&&Zt||tt(Ge+(Ce===1&&!y1?Gt:0))}}C&&!We.tween&&!Et&&!E2&&te.restart(!0),a&&(Ye||y&&Ce&&(Ce<1||!w0))&&On(a.targets).forEach(function(Li){return Li.classList[Zt||y?"add":"remove"](a.className)}),o&&!Z&&!D&&o(v),U1&&!Et?(Z&&(sr&&(Ee==="complete"?i.pause().totalProgress(1):Ee==="reset"?i.restart(!0).pause():Ee==="restart"?i.restart(!0):i[Ee]()),o&&o(v)),(Ye||!w0)&&(f&&Ye&&x0(v,f),ee[qe]&&x0(v,ee[qe]),y&&(Ce===1?v.kill(!1,1):ee[qe]=0),Ye||(qe=Ce===1?1:3,ee[qe]&&x0(v,ee[qe]))),O&&!Zt&&Math.abs(v.getVelocity())>(Fn(O)?O:2500)&&(zn(v.callbackAnimation),ae?ae.progress(1):zn(i,Ee==="reverse"?1:!Ce,1))):Z&&o&&!Et&&o(v)}if(Be){var Dt=m?Q/m.duration()*(m._caScrollDist||0):Q;$1(Dt+(x._isFlipped?1:0)),Be(Dt)}m1&&m1(-Q/m.duration()*(m._caScrollDist||0))}},v.enable=function(D,j){v.enabled||(v.enabled=!0,dt(A,"resize",Yn),N||dt(A,"scroll",rn),we&&dt(n,"refreshInit",we),D!==!1&&(v.progress=Re=0,_e=pt=ke=ye()),j!==!1&&v.refresh())},v.getTween=function(D){return D&&We?We.tween:ae},v.setPositions=function(D,j,W,Q){if(m){var mt=m.scrollTrigger,Ce=m.duration(),rt=mt.end-mt.start;D=mt.start+rt*D/Ce,j=mt.start+rt*j/Ce}v.refresh(!1,!1,{start:So(D,W&&!!v._startClamp),end:So(j,W&&!!v._endClamp)},Q),v.update()},v.adjustPinSpacing=function(D){if(Se&&D){var j=Se.indexOf(H.d)+1;Se[j]=parseFloat(Se[j])+D+ft,Se[1]=parseFloat(Se[1])+D+ft,nn(Se)}},v.disable=function(D,j){if(v.enabled&&(D!==!1&&v.revert(!0,!0),v.enabled=v.isActive=!1,j||ae&&ae.pause(),ce=0,ot&&(ot.uncache=1),we&>(n,"refreshInit",we),te&&(te.pause(),We.tween&&We.tween.kill()&&(We.tween=0)),!N)){for(var W=ne.length;W--;)if(ne[W].scroller===A&&ne[W]!==v)return;gt(A,"resize",Yn),N||gt(A,"scroll",rn)}},v.kill=function(D,j){v.disable(D,j),ae&&!j&&ae.kill(),l&&delete P0[l];var W=ne.indexOf(v);W>=0&&ne.splice(W,1),W===Ut&&q2>0&&Ut--,W=0,ne.forEach(function(Q){return Q.scroller===v.scroller&&(W=1)}),W||Wt||(v.scroll.rec=0),i&&(i.scrollTrigger=null,D&&i.revert({kill:!1}),j||i.kill()),_t&&[_t,xt,x,ut].forEach(function(Q){return Q.parentNode&&Q.parentNode.removeChild(Q)}),Un===v&&(Un=0),c&&(ot&&(ot.uncache=1),W=0,ne.forEach(function(Q){return Q.pin===c&&W++}),W||(ot.spacer=0)),r.onKill&&r.onKill(v)},ne.push(v),v.enable(!1,!1),b1&&b1(v),i&&i.add&&!ve){var be=v.update;v.update=function(){v.update=be,fe.cache++,oe||Le||v.refresh()},z.delayedCall(.01,v.update),ve=.01,oe=Le=0}else v.refresh();c&&q6()},n.register=function(r){return Ki||(z=r||Vo(),Po()&&window.document&&n.enable(),Ki=Zn),Ki},n.defaults=function(r){if(r)for(var i in r)D2[i]=r[i];return D2},n.disable=function(r,i){Zn=0,ne.forEach(function(o){return o[i?"kill":"disable"](r)}),gt(ue,"wheel",rn),gt(Ae,"scroll",rn),clearInterval(P2),gt(Ae,"touchcancel",ir),gt(xe,"touchstart",ir),R2(gt,Ae,"pointerdown,touchstart,mousedown",Mo),R2(gt,Ae,"pointerup,touchend,mouseup",To),T2.kill(),O2(gt);for(var s=0;s0&&o.left+a0&&o.top+a=0&&C1.splice(t,5),C1.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),z.core.getCache(e),C0())}}):C1},se.revert=function(n,e){return H0(!n,e)},se.create=function(n,e){return new se(n,e)},se.refresh=function(n){return n?Yn(!0):(Ki||se.register())&&wi(!0)},se.update=function(n){return++fe.cache&&yr(n===!0?2:0)},se.clearScrollMemory=Bo,se.maxScroll=function(n,e){return nr(n,e?Yt:lt)},se.getScrollFunc=function(n,e){return zr(n1(n),e?Yt:lt)},se.getById=function(n){return P0[n]},se.getAll=function(){return ne.filter(function(n){return n.vars.id!=="ScrollSmoother"})},se.isScrolling=function(){return!!O1},se.snapDirectional=T0,se.addEventListener=function(n,e){var t=mi[n]||(mi[n]=[]);~t.indexOf(e)||t.push(e)},se.removeEventListener=function(n,e){var t=mi[n],r=t&&t.indexOf(e);r>=0&&t.splice(r,1)},se.batch=function(n,e){var t=[],r={},i=e.interval||.016,s=e.batchMax||1e9,o=function(f,u){var d=[],h=[],c=z.delayedCall(i,function(){u(d,h),d=[],h=[]}).pause();return function(p){d.length||c.restart(!0),d.push(p.trigger),h.push(p),s<=d.length&&c.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&At(e[a])&&a!=="onRefreshInit"?o(a,e[a]):e[a];return At(s)&&(s=s(),dt(se,"refresh",function(){return s=e.batchMax()})),On(n).forEach(function(l){var f={};for(a in r)f[a]=r[a];f.trigger=l,t.push(se.create(f))}),t};var Go=function(e,t,r,i){return t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1},R0=function n(e,t){t===!0?e.style.removeProperty("touch-action"):e.style.touchAction=t===!0?"auto":t?"pan-"+t+(Qe.isTouch?" pinch-zoom":""):"none",e===_1&&n(xe,t)},X2={auto:1,scroll:1},X6=function(e){var t=e.event,r=e.target,i=e.axis,s=(t.changedTouches?t.changedTouches[0]:t).target,o=s._gsap||z.core.getCache(s),a=Ot(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==xe&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(X2[(l=R1(s)).overflowY]||X2[l.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!pi(s)&&(X2[(l=R1(s)).overflowY]||X2[l.overflowX]),o._isScrollT=a}(o._isScroll||i==="x")&&(t.stopPropagation(),t._gsapAllow=!0)},jo=function(e,t,r,i){return Qe.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&X6,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&dt(Ae,Qe.eventTypes[0],Qo,!1,!0)},onDisable:function(){return gt(Ae,Qe.eventTypes[0],Qo,!0)}})},W6=/(input|label|select|textarea)/i,Ko,Qo=function(e){var t=W6.test(e.target.tagName);(t||Ko)&&(e._gsapAllow=!0,Ko=t)},G6=function(e){_i(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t=e,r=t.normalizeScrollX,i=t.momentum,s=t.allowNestedScroll,o=t.onRelease,a,l,f=n1(e.target)||_1,u=z.core.globals().ScrollSmoother,d=u&&u.get(),h=Ir&&(e.content&&n1(e.content)||d&&e.content!==!1&&!d.smooth()&&d.content()),c=zr(f,lt),p=zr(f,Yt),g=1,_=(Qe.isTouch&&ue.visualViewport?ue.visualViewport.scale*ue.visualViewport.width:ue.outerWidth)/ue.innerWidth,w=0,b=At(i)?function(){return i(a)}:function(){return i||2.8},y,C,L=jo(f,e.type,!0,s),k=function(){return C=!1},m=ir,O=ir,S=function(){l=nr(f,lt),O=An(Ir?1:0,l),r&&(m=An(0,nr(f,Yt))),y=yi},H=function(){h._gsap.y=Dn(parseFloat(h._gsap.y)+c.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},Z=function(){if(C){requestAnimationFrame(k);var J=Dn(a.deltaY/2),F=O(c.v-J);if(h&&F!==c.v+c.offset){c.offset=F-c.v;var v=Dn((parseFloat(h&&h._gsap.y)||0)-c.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",h._gsap.y=v+"px",c.cacheID=fe.cache,yr()}return!0}c.offset&&H(),C=!0},A,Y,N,X,ee=function(){S(),A.isActive()&&A.vars.scrollY>l&&(c()>l?A.progress(1)&&c(l):A.resetTo("scrollY",l))};return h&&z.set(h,{y:"+=0"}),e.ignoreCheck=function(M){return Ir&&M.type==="touchmove"&&Z()||g>1.05&&M.type!=="touchstart"||a.isGesturing||M.touches&&M.touches.length>1},e.onPress=function(){C=!1;var M=g;g=Dn((ue.visualViewport&&ue.visualViewport.scale||1)/_),A.pause(),M!==g&&R0(f,g>1.01?!0:r?!1:"x"),Y=p(),N=c(),S(),y=yi},e.onRelease=e.onGestureStart=function(M,J){if(c.offset&&H(),!J)X.restart(!0);else{fe.cache++;var F=b(),v,we;r&&(v=p(),we=v+F*.05*-M.velocityX/.227,F*=Go(p,v,we,nr(f,Yt)),A.vars.scrollX=m(we)),v=c(),we=v+F*.05*-M.velocityY/.227,F*=Go(c,v,we,nr(f,lt)),A.vars.scrollY=O(we),A.invalidate().duration(F).play(.01),(Ir&&A.vars.scrollY>=l||v>=l-1)&&z.to({},{onUpdate:ee,duration:F})}o&&o(M)},e.onWheel=function(){A._ts&&A.pause(),Ot()-w>1e3&&(y=0,w=Ot())},e.onChange=function(M,J,F,v,we){if(yi!==y&&S(),J&&r&&p(m(v[2]===J?Y+(M.startX-M.x):p()+J-v[1])),F){c.offset&&H();var He=we[2]===F,Je=He?N+M.startY-M.y:c()+F-we[1],ke=O(Je);He&&Je!==ke&&(N+=ke-Je),c(ke)}(F||J)&&yr()},e.onEnable=function(){R0(f,r?!1:"x"),se.addEventListener("refresh",ee),dt(ue,"resize",ee),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),L.enable()},e.onDisable=function(){R0(f,!0),gt(ue,"resize",ee),se.removeEventListener("refresh",ee),L.kill()},e.lockAxis=e.lockAxis!==!1,a=new Qe(e),a.iOS=Ir,Ir&&!c()&&c(1),Ir&&z.ticker.add(ir),X=a._dc,A=z.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Xo(c,c(),function(){return A.pause()})},onUpdate:yr,onComplete:X.vars.onComplete}),a};se.sort=function(n){if(At(n))return ne.sort(n);var e=ue.pageYOffset||0;return se.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+ue.innerHeight}),ne.sort(n||function(t,r){return(t.vars.refreshPriority||0)*-1e6+(t.vars.containerAnimation?1e6:t._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})},se.observe=function(n){return new Qe(n)},se.normalizeScroll=function(n){if(typeof n>"u")return Xt;if(n===!0&&Xt)return Xt.enable();if(n===!1){Xt&&Xt.kill(),Xt=n;return}var e=n instanceof Qe?n:G6(n);return Xt&&Xt.target===e.target&&Xt.kill(),pi(e.target)&&(Xt=e),e},se.core={_getVelocityProp:d0,_inputObserver:jo,_scrollers:fe,_proxies:rr,bridge:{ss:function(){O1||bi("scrollStart"),O1=Ot()},ref:function(){return Et}}},Vo()&&z.registerPlugin(se);var j6=Oe('
      ');const K6={hash:"svelte-5baesw",code:":host {display:block;width:100%;}.scroll-highlight.svelte-5baesw {display:block;width:100%;max-width:var(--max-width);margin:0 auto;color:var(--text-color);}"};function Jo(n,e){x1(e,!1),dr(n,K6);let t=E(e,"highlightStyle",12,"full"),r=E(e,"highlightColor",12,"#ffe44d"),i=E(e,"textColor",12,"#24343a"),s=E(e,"activeTextColor",12,"#000"),o=E(e,"maxWidth",12,"800"),a=E(e,"fontUrl",12,""),l=E(e,"fontFamily",12,'"Lora", Georgia, serif'),f=E(e,"fontSize",12,"1.25rem"),u=E(e,"lineHeight",12,"1.7"),d=E(e,"triggerStart",12,"top 70%"),h=E(e,"duration",12,"1s"),c=c3(),p,g=[],_;fo.registerPlugin(se);function w(){g.forEach(M=>M.kill()),g=[]}function b(){return P(c)?.getRootNode()?.querySelector("slot")??null}function y(M){return M?M.assignedElements({flatten:!0}):[]}function C(M){const J=y(M),F=[];return J.forEach(v=>{v.matches?.("mark, .text-highlight, [data-highlight-text='true']")&&F.push(v),F.push(...v.querySelectorAll("mark, .text-highlight, [data-highlight-text='true']"))}),[...new Set(F)]}function L(M){const J=y(M),F=[];return J.forEach(v=>{v.matches?.("p, ul, ol, li, blockquote")&&F.push(v),F.push(...v.querySelectorAll("p, ul, ol, li, blockquote"))}),[...new Set(F)]}function k(M){L(M).forEach(F=>{F.style.color=i(),F.style.fontFamily=l(),F.style.fontSize=f(),F.style.lineHeight=u()})}function m(){return t()==="half"?`linear-gradient( - transparent calc(100% - 0.5em), - ${r()} 0 - )`:t()==="underline"?`linear-gradient( - transparent calc(100% - 0.15em), - ${r()} 0 - )`:`linear-gradient(${r()}, ${r()})`}function O(M){M.style.backgroundColor="transparent",M.style.backgroundRepeat="no-repeat",M.style.backgroundImage=m(),M.style.backgroundSize="0% 100%",M.style.transition=[`color calc(${h()} / 4) cubic-bezier(0.25, 1, 0.5, 1)`,`background-size ${h()} cubic-bezier(0.25, 1, 0.5, 1)`,`background-color calc(${h()} / 4) cubic-bezier(0.25, 1, 0.5, 1)`].join(", "),M.style.color=i(),M.style.padding="0",M.style.boxDecorationBreak="clone",M.style.webkitBoxDecorationBreak="clone"}function S(M){M.style.backgroundSize="100% 100%",M.style.color=s()}function H(M){w(),k(M),C(M).forEach(F=>{O(F);const v=se.create({trigger:F,start:d(),onEnter:()=>S(F),onLeaveBack:()=>O(F)});g.push(v)}),se.refresh()}function Z(){a()&&(p&&(p.remove(),p=null),p=document.createElement("link"),p.rel="stylesheet",p.href=a(),document.head.appendChild(p))}function A(M){return M==null||M===""?"":typeof M=="number"?`${M}px`:M}Zi(()=>{Z();const M=b();requestAnimationFrame(()=>{H(M)}),_=()=>{const J=b();H(J)},window.addEventListener("resize",_)}),m3(()=>{w(),_&&window.removeEventListener("resize",_),p&&p.remove()}),il(()=>P(c),()=>{if(P(c)){Z();const M=b();requestAnimationFrame(()=>{H(M)})}}),nl();var Y={get highlightStyle(){return t()},set highlightStyle(M){t(M),V()},get highlightColor(){return r()},set highlightColor(M){r(M),V()},get textColor(){return i()},set textColor(M){i(M),V()},get activeTextColor(){return s()},set activeTextColor(M){s(M),V()},get maxWidth(){return o()},set maxWidth(M){o(M),V()},get fontUrl(){return a()},set fontUrl(M){a(M),V()},get fontFamily(){return l()},set fontFamily(M){l(M),V()},get fontSize(){return f()},set fontSize(M){f(M),V()},get lineHeight(){return u()},set lineHeight(M){u(M),V()},get triggerStart(){return d()},set triggerStart(M){d(M),V()},get duration(){return h()},set duration(M){h(M),V()}};Ol();var N=j6();let X;var ee=B(N);return kl(ee,()=>"slot"),I(N),gr(N,M=>$(c,M),()=>P(c)),Ze(M=>X=Ue(N,"",X,M),[()=>({"--max-width":(Ts(o()),Mr(()=>A(o()))),"--text-color":i()})]),Te(n,N),k1(Y)}customElements.define("csis-scroll-highlight",q1(Jo,{highlightStyle:{attribute:"highlight-style",reflect:!0,type:"String"},highlightColor:{attribute:"highlight-color",reflect:!0,type:"String"},textColor:{attribute:"text-color",reflect:!0,type:"String"},activeTextColor:{attribute:"active-text-color",reflect:!0,type:"String"},maxWidth:{attribute:"max-width",reflect:!0,type:"Number"},fontUrl:{attribute:"font-url",reflect:!0,type:"String"},fontFamily:{attribute:"font-family",reflect:!0,type:"String"},fontSize:{attribute:"font-size",reflect:!0,type:"String"},lineHeight:{attribute:"line-height",reflect:!0,type:"String"},triggerStart:{attribute:"trigger-start",reflect:!0,type:"String"},duration:{attribute:"duration",reflect:!0,type:"String"}},[],[],!0));const Q6=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"}));var J6=Oe('
      ');const e4={hash:"svelte-1ytef7p",code:`:host {display:block;} - - /* ====== BASE (XS: < 620px) ====== */.container.svelte-1ytef7p {display:flex;justify-content:flex-start;align-items:center;min-height:var(--min-height, 100vh);padding:0 1.5rem;background-color:var(--bg-color, #333);box-sizing:border-box;}.typing.svelte-1ytef7p {font-family:var(--typing-font-family);font-weight:bold;font-size:clamp(1rem, 5vw, var(--font-size, 2.5rem));color:var(--font-color, #000);text-align:left; - - /* ✅ this is the magic for responsiveness + blank lines */white-space:pre-wrap; /* preserves \\n and wraps */overflow-wrap:anywhere; /* prevents overflow on long tokens */max-width:100%;margin-inline:auto;} - - @keyframes svelte-1ytef7p-cursorBlink { - 0%, - 50% { - border-left-color: transparent; - } - 51%, - 100% { - border-left-color: var(--cursor-color, #000); - } - }.cursor.svelte-1ytef7p {display:inline-block;border-left:2px solid var(--cursor-color, #000);margin-left:0.08em;height:1em;vertical-align:-0.1em; - animation: svelte-1ytef7p-cursorBlink 1s step-end infinite;} - - /* Optional: if you want cursor to blink only AFTER typing is done, - remove the animation by default and enable when done is true. */.cursor.svelte-1ytef7p:not(.done) { - /* comment out next line if you want it blinking while typing */ - animation: none;}.cursor.done.svelte-1ytef7p { - animation: svelte-1ytef7p-cursorBlink 1s step-end infinite;} - - /* ====== SMALL: 620px – 899.98px ====== */ - @media (min-width: 620px) and (max-width: 899.98px) {.container.svelte-1ytef7p {padding:0 2rem;}.typing.svelte-1ytef7p {font-size:clamp(1.25rem, 3.5vw, var(--font-size, 3rem));} - } - - /* ====== MEDIUM: 900px & above ====== */ - @media (min-width: 900px) {.container.svelte-1ytef7p {padding:0 3rem;}.typing.svelte-1ytef7p {font-size:var(--font-size, 3rem);} - }`};function ea(n,e){x1(e,!0),dr(n,e4);let t=E(e,"text",7,""),r=E(e,"bgColor",7,"#ffcc00"),i=E(e,"cursorColor",7,"#000"),s=E(e,"animationDuration",7,"5s"),o=E(e,"fontUrl",7,""),a=E(e,"fontFamily",7,"'IBM Plex Sans', system-ui, sans-serif"),l=E(e,"fontSize",7,"1rem"),f=E(e,"fontColor",7,"#000"),u=E(e,"minHeight",7,"100vh");Zi(()=>{if(!o()||document.querySelector(`link[data-csis-font="${o()}"]`))return;const A=document.createElement("link");A.rel="stylesheet",A.href=o(),A.dataset.csisFont=o(),document.head.appendChild(A)});function d(Z){if(!Z)return 5e3;const A=String(Z).trim().toLowerCase();if(A.endsWith("ms")){const N=parseFloat(A.slice(0,-2));return Number.isFinite(N)?N:5e3}if(A.endsWith("s")){const N=parseFloat(A.slice(0,-1));return Number.isFinite(N)?N*1e3:5e3}const Y=parseFloat(A);return Number.isFinite(Y)?Y*1e3:5e3}function h(Z){return String(Z).replaceAll("\\r\\n",` -`).replaceAll("\\n",` -`).replaceAll("\\r",` -`)}function c(){if(t()&&String(t()).trim().length)return h(t())}let p=Me(Jr(c())),g=Me(""),_=Me(!1),w=null;function b(){w&&(clearInterval(w),w=null)}async function y(){b(),$(_,!1),$(g,""),await cl();const Z=P(p)??"";if(!Z.length){$(_,!0);return}const A=d(s()),Y=Math.max(Z.length,1),N=Math.max(10,Math.floor(A/Y));let X=0;w=setInterval(()=>{X+=1,$(g,Z.slice(0,X),!0),X>=Z.length&&(b(),$(_,!0))},N)}Zi(()=>($(p,c(),!0),y(),b));var C={get text(){return t()},set text(Z=""){t(Z),V()},get bgColor(){return r()},set bgColor(Z="#ffcc00"){r(Z),V()},get cursorColor(){return i()},set cursorColor(Z="#000"){i(Z),V()},get animationDuration(){return s()},set animationDuration(Z="5s"){s(Z),V()},get fontUrl(){return o()},set fontUrl(Z=""){o(Z),V()},get fontFamily(){return a()},set fontFamily(Z="'IBM Plex Sans', system-ui, sans-serif"){a(Z),V()},get fontSize(){return l()},set fontSize(Z="1rem"){l(Z),V()},get fontColor(){return f()},set fontColor(Z="#000"){f(Z),V()},get minHeight(){return u()},set minHeight(Z="100vh"){u(Z),V()}},L=J6(),k=B(L),m=B(k),O=B(m,!0);I(m);var S=ge(m,2);let H;return I(k),I(L),Ze(Z=>{Ue(L,`--bg-color: ${r()}; - --font-size: ${l()}; - --font-color: ${f()}; - --typing-font-family: ${a()}; - --cursor-color: ${i()}; - --min-height: ${u()};`),M1(O,P(g)),H=Ds(S,1,"cursor svelte-1ytef7p",null,H,Z)},[()=>({done:P(_)})]),Te(n,L),k1(C)}customElements.define("csis-text-typing",q1(ea,{text:{attribute:"text",type:"String"},bgColor:{attribute:"bg-color",type:"String"},animationDuration:{attribute:"animation-duration",type:"String"},fontUrl:{attribute:"font-url",type:"String"},fontFamily:{attribute:"font-family",type:"String"},fontSize:{attribute:"font-size",type:"String"},fontColor:{attribute:"font-color",type:"String"},cursorColor:{attribute:"cursor-color",type:"String"},minHeight:{attribute:"min-height",type:"String"}},[],[],!0));const t4=Object.freeze(Object.defineProperty({__proto__:null,default:ea},Symbol.toStringTag,{value:"Module"}));function r4(n,e,t,r,i,s,o,a,l,f){if(e(n),!P(t))return;const u=r(n.clientX);if(P(t)==="stack"){if(P(i)!=null&&P(s)==="h1"&&uP(i)+o){$(t,"h2"),l(P(i)),a(u),f();return}l(u),a(u),f();return}P(t)==="h1"&&(u>=a()?(l(u),a(u)):l(u)),P(t)==="h2"&&(u<=l()?(a(u),l(u)):a(u)),f()}var i4=Oe(''),n4=Oe(''),s4=Oe(''),o4=Oe(''),a4=Oe(''),l4=Oe(''),f4=Oe(''),u4=Oe(''),c4=Oe(''),h4=(n,e)=>e("h1",n),d4=(n,e)=>e("h1",n),g4=(n,e)=>e("h2",n),p4=(n,e)=>e("h2",n),_4=Oe('
      ');const v4={hash:"svelte-1dfktg4",code:`:host {display:block;width:100%;}.wrap.svelte-1dfktg4 {width:100%;} - - /* Maintain a clean aspect ratio so images align */.stage.svelte-1dfktg4 {position:relative;width:100%;aspect-ratio:var(--aspect);background:#111;overflow:hidden;user-select:none;touch-action:none; /* we’re doing our own pointer handling */} - - /* when stacked, nudge the remaining bar sideways so it doesn’t sit under the top knob */.stage[data-stacked="true"].svelte-1dfktg4 .handle--h2:where(.svelte-1dfktg4) .bar:where(.svelte-1dfktg4) {transform:translateX(calc(-50% + 5px));}.layer.svelte-1dfktg4 {position:absolute;inset:0;}.layer.svelte-1dfktg4 img:where(.svelte-1dfktg4) {width:100%;height:100%;object-fit:cover; /* change to contain if you prefer */display:block;} - - /* ------------------------------------------------------ */ - /* Labels */ - /* ------------------------------------------------------ */.labels.svelte-1dfktg4 {position:absolute;top:10px;left:10px;right:10px;height:34px; - /* display: block; */pointer-events:none;z-index:5;overflow:hidden;}.label-slot.svelte-1dfktg4 {position:absolute;top:0;height:34px;overflow:hidden;display:flex;align-items:center;padding:0 10px;box-sizing:border-box;}.label-slot.label-a.svelte-1dfktg4 {justify-content:flex-start;}.label-slot.label-b.svelte-1dfktg4 {justify-content:flex-start;padding:0 20px;}.label-slot.label-c.svelte-1dfktg4 {justify-content:flex-start;padding:0 24px;}.label.svelte-1dfktg4 { - /* remove: position:absolute; top:0; */display:inline-flex;align-items:center;height:34px;padding:0 10px;font:600 var(--label-font-size, 12px) / 1 -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;letter-spacing:0.02em;color:#fff;background:rgba(0, 0, 0, 0.55);border:1px solid rgba(255, 255, 255, 0.18);border-radius:999px;backdrop-filter:blur(6px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} - - /* ------------------------------------------------------ */ - /* Handles */ - /* ------------------------------------------------------ */.handle.svelte-1dfktg4 {position:absolute;top:0;transform:translateX(-50%);height:100%;width:44px;background:transparent;border:0;padding:0;z-index:10;cursor:ew-resize;}.handle.svelte-1dfktg4:focus-visible .knob:where(.svelte-1dfktg4) {outline:2px solid #fff;outline-offset:2px;}.bar.svelte-1dfktg4 {position:absolute;top:0;left:50%;transform:translateX(-50%);width:2px;height:100%;background:rgba(255, 255, 255, 0.9);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.4);}.knob.svelte-1dfktg4 {position:absolute;top:50%;left:50%;transform:translate(-50%, calc(-50% + var(--knob-y, 0px)));transition:transform 120ms ease;width:28px;height:40px;border-radius:999px;background:rgba(0, 0, 0, 0.85);border:1px solid rgba(255, 255, 255, 0.25);backdrop-filter:blur(6px);}.knob.svelte-1dfktg4::before, - .knob.svelte-1dfktg4::after {content:"";position:absolute;top:50%;width:2px;height:14px;background:rgba(255, 255, 255, 0.9);transform:translateY(-50%);border-radius:2px;}.knob.svelte-1dfktg4::before {left:11px;}.knob.svelte-1dfktg4::after {right:11px;} - - /* ------------------------------------------------------ */ - /* Magnifier */ - /* ------------------------------------------------------ */.magnifier.svelte-1dfktg4 {position:absolute;left:var(--mag-left);top:var(--mag-top);width:var(--mag-size);height:var(--mag-size);transform:translate(-50%, -50%);border:3px solid var(--mag-border);border-radius:50%;overflow:hidden;z-index:20;pointer-events:none;background:rgba(0, 0, 0, 0.2);}.magnifier__inner.svelte-1dfktg4 {position:relative;width:100%;height:100%;}.mag-layer.svelte-1dfktg4 {position:absolute;left:var(--mag-off-x);top:var(--mag-off-y);width:var(--mag-img-w);height:var(--mag-img-h);object-fit:cover;display:block;user-select:none;}.mag-divider.svelte-1dfktg4 {position:absolute;top:0;bottom:0;width:2px;background:rgba(255, 255, 255, 0.9);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.4);transform:translateX(-50%);pointer-events:none;z-index:30; /* above magnified imagery */}`};function ta(n,e){x1(e,!0),dr(n,v4);let t=E(e,"imgA",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1704817682/dev-team/Screenshot_2024-01-09_at_11.26.36_AM.png"),r=E(e,"imgB",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1704817683/dev-team/Screenshot_2024-01-09_at_11.25.01_AM.png"),i=E(e,"imgC",7,"https://res.cloudinary.com/csisideaslab/image/upload/v1770316926/dev-team/ilze-EU-F188r1Ig-unsplash.jpg"),s=E(e,"labelA",7,"Waffles"),o=E(e,"labelB",7,"Wallace and Wobbles"),a=E(e,"labelC",7,"Fluffy Cat"),l=E(e,"labelFontSize",7,"12px"),f=E(e,"showLabels",7,!1),u=E(e,"split1",7,33.333),d=E(e,"split2",7,66.666),h=E(e,"aspect",7,"16/9"),c=E(e,"magnifier",7,!1),p=E(e,"magnifierZoom",7,2),g=E(e,"magnifierSize",7,150),_=E(e,"magnifierBorderColor",7,"#fff"),w=Me(!1),b=Me(0),y=Me(0),C,L=Me(0),k=Me(0),m;const O=()=>g()/2;let S=Me(null),H=Me(null),Z=Me(null),A=Me(null);const Y=(R,q,K)=>Math.min(K,Math.max(q,R)),N=.5,X=()=>Math.abs(d()-u())<=N,ee=1;function M(){const R=C?.getBoundingClientRect();R&&($(L,R.width,!0),$(k,R.height,!0))}function J(R){const q=C?.getBoundingClientRect();return q?Y(R-q.left,0,q.width)/q.width*100:0}function F(){u(Y(u(),0,100)),d(Y(d(),0,100))}function v(R){if(!c()||!C)return;if(P(H)){$(w,!1);return}const q=C.getBoundingClientRect();let K=R.clientX-q.left,et=R.clientY-q.top;const de=O();K=Y(K,de,q.width-de),et=Y(et,de,q.height-de),$(b,K,!0),$(y,et,!0),$(w,!0)}function we(){$(w,!1)}function He(R,q){$(S,R,!0),X()?($(H,"stack"),$(Z,(u()+d())/2),$(A,R,!0)):($(H,R,!0),$(Z,null),$(A,null)),q.currentTarget.setPointerCapture?.(q.pointerId),q.preventDefault()}function Je(){$(S,null),$(H,null),$(Z,null),$(A,null)}function ke(R,q){const K=q.shiftKey?5:1;(q.key==="ArrowLeft"||q.key==="ArrowDown")&&(R==="h1"&&u(u()-K),R==="h2"&&d(d()-K),$(S,R,!0),F(),q.preventDefault()),(q.key==="ArrowRight"||q.key==="ArrowUp")&&(R==="h1"&&u(u()+K),R==="h2"&&d(d()+K),$(S,R,!0),F(),q.preventDefault()),q.key==="Home"&&(R==="h1"&&u(0),R==="h2"&&d(0),$(S,R,!0),F(),q.preventDefault()),q.key==="End"&&(R==="h1"&&u(100),R==="h2"&&d(100),$(S,R,!0),F(),q.preventDefault()),X()?(R==="h1"&&d(u()),R==="h2"&&u(d())):u()>d()&&u(d())}Zi(()=>{M(),m=new ResizeObserver(M),C&&m.observe(C),window.addEventListener("resize",M)}),m3(()=>{m?.disconnect(),window.removeEventListener("resize",M)}),cr(()=>{F()});var Ie={get imgA(){return t()},set imgA(R="https://res.cloudinary.com/csisideaslab/image/upload/v1704817682/dev-team/Screenshot_2024-01-09_at_11.26.36_AM.png"){t(R),V()},get imgB(){return r()},set imgB(R="https://res.cloudinary.com/csisideaslab/image/upload/v1704817683/dev-team/Screenshot_2024-01-09_at_11.25.01_AM.png"){r(R),V()},get imgC(){return i()},set imgC(R="https://res.cloudinary.com/csisideaslab/image/upload/v1770316926/dev-team/ilze-EU-F188r1Ig-unsplash.jpg"){i(R),V()},get labelA(){return s()},set labelA(R="Waffles"){s(R),V()},get labelB(){return o()},set labelB(R="Wallace and Wobbles"){o(R),V()},get labelC(){return a()},set labelC(R="Fluffy Cat"){a(R),V()},get labelFontSize(){return l()},set labelFontSize(R="12px"){l(R),V()},get showLabels(){return f()},set showLabels(R=!1){f(R),V()},get split1(){return u()},set split1(R=33.333){u(R),V()},get split2(){return d()},set split2(R=66.666){d(R),V()},get aspect(){return h()},set aspect(R="16/9"){h(R),V()},get magnifier(){return c()},set magnifier(R=!1){c(R),V()},get magnifierZoom(){return p()},set magnifierZoom(R=2){p(R),V()},get magnifierSize(){return g()},set magnifierSize(R=150){g(R),V()},get magnifierBorderColor(){return _()},set magnifierBorderColor(R="#fff"){_(R),V()}},Re=_4(),ye=B(Re);ye.__pointermove=[r4,v,H,J,Z,A,ee,d,u,F],ye.__pointerup=Je;var We=B(ye),ot=B(We);{var Z1=R=>{var q=i4();Ze(()=>{re(q,"src",t()),re(q,"alt",s())}),Te(R,q)};T1(ot,R=>{t()&&R(Z1)})}I(We);var _e=ge(We,2);Ue(_e,"clip-path: inset(0 0 0 var(--split1));");var pt=B(_e);{var oe=R=>{var q=n4();Ze(()=>{re(q,"src",r()),re(q,"alt",o())}),Te(R,q)};T1(pt,R=>{r()&&R(oe)})}I(_e);var Le=ge(_e,2);Ue(Le,"clip-path: inset(0 0 0 var(--split2));");var _t=B(Le);{var xt=R=>{var q=s4();Ze(()=>{re(q,"src",i()),re(q,"alt",a())}),Te(R,q)};T1(_t,R=>{i()&&R(xt)})}I(Le);var x=ge(Le,2);{var ut=R=>{var q=o4(),K=B(q);Ue(K,"left: 0%; width: var(--split1);");var et=B(K),de=B(et,!0);I(et),I(K);var tt=ge(K,2);Ue(tt,"left: var(--split1); width: calc(var(--split2) - var(--split1));");var Ge=B(tt),Gt=B(Ge,!0);I(Ge),I(tt);var Rt=ge(tt,2);Ue(Rt,"left: var(--split2); width: calc(100% - var(--split2));");var Se=B(Rt),$1=B(Se,!0);I(Se),I(Rt),I(q),Ze(()=>{M1(de,s()),M1(Gt,o()),M1($1,a())}),Te(R,q)};T1(x,R=>{f()&&R(ut)})}var s1=ge(x,2);{var vt=R=>{var q=c4(),K=B(q),et=B(K);{var de=Be=>{var De=a4();Ze(()=>re(De,"src",t())),Te(Be,De)};T1(et,Be=>{t()&&Be(de)})}var tt=ge(et,2);{var Ge=Be=>{var De=l4();Ue(De,"clip-path: inset(0 0 0 var(--split1));"),Ze(()=>re(De,"src",r())),Te(Be,De)};T1(tt,Be=>{r()&&Be(Ge)})}var Gt=ge(tt,2);{var Rt=Be=>{var De=f4();Ue(De,"clip-path: inset(0 0 0 var(--split2));"),Ze(()=>re(De,"src",i())),Te(Be,De)};T1(Gt,Be=>{i()&&Be(Rt)})}I(K);var Se=ge(K,2);Ue(Se,"left: var(--mag-div1-x);");var $1=ge(Se,2);{var Ct=Be=>{var De=u4();Ue(De,"left: var(--mag-div2-x);"),Te(Be,De)};T1($1,Be=>{X()||Be(Ct)})}I(q),Ze(()=>Ue(q,` - --mag-size:${g()}px; - --mag-border:${_()}; - --mag-left:${P(b)}px; - --mag-top:${P(y)}px; - --mag-img-w:${P(L)*p()}px; - --mag-img-h:${P(k)*p()}px; - --mag-off-x:${-(P(b)*p()-g()/2)}px; - --mag-off-y:${-(P(y)*p()-g()/2)}px; - --mag-div1-x:${u()/100*(P(L)*p())+-(P(b)*p()-g()/2)}px; - --mag-div2-x:${d()/100*(P(L)*p())+-(P(b)*p()-g()/2)}px; - `)),Te(R,q)};T1(s1,R=>{c()&&P(w)&&R(vt)})}var ve=ge(s1,2);ve.__pointerdown=[h4,He],ve.__keydown=[d4,ke];var kt=ge(ve,2);return kt.__pointerdown=[g4,He],kt.__keydown=[p4,ke],I(ye),gr(ye,R=>C=R,()=>C),I(Re),Ze((R,q,K)=>{Ue(Re,`--split1:${u()}%; --split2:${d()}%; --aspect:${h()}; --label-font-size:${l()}`),re(ye,"data-stacked",R),Ue(ve,q),re(ve,"aria-label",`Adjust split between ${s()} and ${o()}`),Ue(kt,K),re(kt,"aria-label",`Adjust split between ${o()} and ${a()}`)},[()=>X()?"true":"false",()=>`left: var(--split1); --knob-y: ${X()?"-28px":"0px"};`,()=>`left: var(--split2); --knob-y: ${X()?"28px":"0px"};`]),j1("pointercancel",ye,Je),j1("pointerleave",ye,()=>{Je(),we()}),j1("pointerenter",ye,v),Te(n,Re),k1(Ie)}Vs(["pointermove","pointerup","pointerdown","keydown"]),customElements.define("csis-triple-compare",q1(ta,{imgA:{attribute:"img-a",type:"String"},imgB:{attribute:"img-b",type:"String"},imgC:{attribute:"img-c",type:"String"},labelA:{attribute:"label-a",type:"String"},labelB:{attribute:"label-b",type:"String"},labelC:{attribute:"label-c",type:"String"},labelFontSize:{attribute:"label-font-size",type:"String"},showLabels:{attribute:"show-labels",type:"Boolean"},split1:{attribute:"split-1",type:"Number"},split2:{attribute:"split-2",type:"Number"},aspect:{attribute:"aspect",type:"String"},magnifier:{attribute:"magnifier",type:"Boolean"},magnifierZoom:{attribute:"magnifier-zoom",type:"Number"},magnifierSize:{attribute:"magnifier-size",type:"Number"},magnifierBorderColor:{attribute:"magnifier-border-color",type:"String"}},[],[],!0));const C4=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"}));var m4=Oe('');function ra(n,e){x1(e,!0);let t=E(e,"container",7),r=E(e,"leftTitle",7),i=E(e,"btnText",7),s=E(e,"btnLeftLink",7),o=E(e,"leftTarget",7),a;var l={get container(){return t()},set container(p){t(p),V()},get leftTitle(){return r()},set leftTitle(p){r(p),V()},get btnText(){return i()},set btnText(p){i(p),V()},get btnLeftLink(){return s()},set btnLeftLink(p){s(p),V()},get leftTarget(){return o()},set leftTarget(p){o(p),V()}},f=m4(),u=B(f),d=B(u,!0);I(u);var h=ge(u,2),c=B(h,!0);return I(h),I(f),gr(f,p=>a=p,()=>a),Ze(()=>{M1(d,r()),re(h,"href",s()),re(h,"target",o()),M1(c,i())}),j1("mouseenter",f,()=>t()?.classList.add("hover-left")),j1("mouseleave",f,()=>t()?.classList.remove("hover-left")),Te(n,f),k1(l)}q1(ra,{container:{},leftTitle:{},btnText:{},btnLeftLink:{},leftTarget:{}},[],[],!0);var b4=Oe('');function ia(n,e){x1(e,!0);let t=E(e,"container",7),r=E(e,"rightTitle",7),i=E(e,"btnText",7),s=E(e,"btnRightLink",7),o=E(e,"rightTarget",7),a;var l={get container(){return t()},set container(p){t(p),V()},get rightTitle(){return r()},set rightTitle(p){r(p),V()},get btnText(){return i()},set btnText(p){i(p),V()},get btnRightLink(){return s()},set btnRightLink(p){s(p),V()},get rightTarget(){return o()},set rightTarget(p){o(p),V()}},f=b4(),u=B(f),d=B(u,!0);I(u);var h=ge(u,2),c=B(h,!0);return I(h),I(f),gr(f,p=>a=p,()=>a),Ze(()=>{M1(d,r()),re(h,"href",s()),re(h,"target",o()),M1(c,i())}),j1("mouseenter",f,()=>t()?.classList.add("hover-right")),j1("mouseleave",f,()=>t()?.classList.remove("hover-right")),Te(n,f),k1(l)}q1(ia,{container:{},rightTitle:{},btnText:{},btnRightLink:{},rightTarget:{}},[],[],!0);var y4=Oe('

      hola

      ',1);const w4={hash:"svelte-1ujrtpn",code:`:host {display:block;font-family:var(--ab-font, "IBM Plex Sans", system-ui, sans-serif);color:var(--ab-text, #fffefa);min-height:100vh;--container-bg-color: #333;--base-color: rgb(195 195 195 / 0.75);--left-bg-color: rgba(223, 39, 39, 0.7);--left-button-hover-color: rgba(161, 11, 11, 0.3);--right-bg-color: rgba(43, 43, 43, 0.8);--right-button-hover-color: rgba(92, 92, 92, 0.3);--hover-width: 75%;--other-width: 25%;--speed: 1000ms;}html, - body {padding:0;margin:0;font-family:"Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;width:100%;height:100%;overflow-x:hidden;}h1 {font-size:4rem;color:#fff;position:absolute;left:50%;top:20%;transform:translateX(-50%);white-space:nowrap;}.button {display:block;position:absolute;left:50%;top:40%;height:2.5rem;padding-top:1.3rem;width:15rem;text-align:center;color:#fff;border:#fff solid 0.2rem;font-size:1rem;font-weight:bold;text-transform:uppercase;text-decoration:none;transform:translateX(-50%);} - - @media (max-width: 800px) {h1 {font-size:2rem;}.button {width:12rem;} - } - - @media (max-height: 700px) {.button {top:70%;} - }.split.left .button {background-color:var(--btn-bg-color-left, --base-color);border-color:var(--btn-border-color, --left-btn-border-color);}.split.right .button {background-color:var(--btn-bg-color-right, --base-color);border-color:var(--btn-border-color, --right-btn-border-color);}.split.left .button:hover {background-color:var(--btn-hover-bg-color-left);border-color:var(--btn-hover-border-color, --left-button-hover-color);}.split.right .button:hover {background-color:var(--btn-hover-bg-color-right);border-color:var(--btn-hover-border-color, --right-button-hover-color);}.container {position:relative;width:100%;height:100vh;background:var(--container-bg-color);}.split {position:absolute;width:50%;height:100%;overflow:hidden;}.split.left {left:0;background:var(--bg-image-left) center center no-repeat;background-size:cover;}.split.left:before {position:absolute;content:"";width:100%;height:100%; - /*background: var(--left-bg-color);*/}.split.right {right:0;background:var(--bg-image-right) center center no-repeat;background-size:cover;}.split.right:before {position:absolute;content:"";width:100%;height:100%; - /*background: var(--right-bg-color);*/}.split.left, - .split.right, - .split.right:before, - .split.left:before {transition:var(--speed) all ease-in-out;}.hover-left .left {width:var(--hover-width);}.hover-left .right {width:var(--other-width);}.hover-left .right:before {z-index:2;}.hover-right .right {width:var(--hover-width);}.hover-right .left {width:var(--other-width);}.hover-right .left:before {z-index:2;}`};function na(n,e){x1(e,!0),dr(n,w4);let t=E(e,"bgImageLeft",7,""),r=E(e,"leftTitle",7,"left title"),i=E(e,"btnLeftLink",7,"#top"),s=E(e,"leftTarget",7,"_self"),o=E(e,"btnBgColorLeft",7,"black"),a=E(e,"btnHoverBgColorLeft",7,"gray"),l=E(e,"bgImageRight",7,""),f=E(e,"rightTitle",7,"right title"),u=E(e,"btnRightLink",7,"#top"),d=E(e,"rightTarget",7,"_self"),h=E(e,"btnBgColorRight",7,"black"),c=E(e,"btnHoverBgColorRight",7,"gray"),p=E(e,"btnBorderColor",7,"red"),g=E(e,"btnHoverBorderColor",7,"blue"),_=E(e,"btnText",7,"Read More"),w=Me(void 0);var b={get bgImageLeft(){return t()},set bgImageLeft(m=""){t(m),V()},get leftTitle(){return r()},set leftTitle(m="left title"){r(m),V()},get btnLeftLink(){return i()},set btnLeftLink(m="#top"){i(m),V()},get leftTarget(){return s()},set leftTarget(m="_self"){s(m),V()},get btnBgColorLeft(){return o()},set btnBgColorLeft(m="black"){o(m),V()},get btnHoverBgColorLeft(){return a()},set btnHoverBgColorLeft(m="gray"){a(m),V()},get bgImageRight(){return l()},set bgImageRight(m=""){l(m),V()},get rightTitle(){return f()},set rightTitle(m="right title"){f(m),V()},get btnRightLink(){return u()},set btnRightLink(m="#top"){u(m),V()},get rightTarget(){return d()},set rightTarget(m="_self"){d(m),V()},get btnBgColorRight(){return h()},set btnBgColorRight(m="black"){h(m),V()},get btnHoverBgColorRight(){return c()},set btnHoverBgColorRight(m="gray"){c(m),V()},get btnBorderColor(){return p()},set btnBorderColor(m="red"){p(m),V()},get btnHoverBorderColor(){return g()},set btnHoverBorderColor(m="blue"){g(m),V()},get btnText(){return _()},set btnText(m="Read More"){_(m),V()}},y=y4(),C=ge(d3(y),2),L=B(C);ra(L,{get container(){return P(w)},get leftTitle(){return r()},get btnText(){return _()},get btnLeftLink(){return i()},get leftTarget(){return s()}});var k=ge(L,2);return ia(k,{get container(){return P(w)},get rightTitle(){return f()},get btnText(){return _()},get btnRightLink(){return u()},get rightTarget(){return d()}}),I(C),gr(C,m=>$(w,m),()=>P(w)),Ze(()=>Ue(C,` - --bg-image-left: url("${t()}"); - --btn-bg-color-left: ${o()}; - --btn-hover-bg-color-left: ${a()}; - --bg-image-right: url("${l()}"); - --btn-bg-color-right: ${h()}; - --btn-hover-bg-color-right: ${c()}; - --btn-border-color: ${p()}; - --btn-hover-border-color: ${g()}; - `)),Te(n,y),k1(b)}customElements.define("csis-split-landing",q1(na,{leftTitle:{attribute:"left-title",type:"String"},btnLeftLink:{attribute:"btn-left-link",type:"String"},leftTarget:{attribute:"left-target",type:"String"},bgImageLeft:{attribute:"bg-image-left",type:"String"},btnBgColorLeft:{attribute:"btn-bg-color-left",type:"String"},btnHoverBgColorLeft:{attribute:"btn-hover-bg-color-left",type:"String"},rightTitle:{attribute:"right-title",type:"String"},btnRightLink:{attribute:"btn-right-link",type:"String"},rightTarget:{attribute:"right-target",type:"String"},bgImageRight:{attribute:"bg-image-right",type:"String"},btnBgColorRight:{attribute:"btn-bg-color-right",type:"String"},btnHoverBgColorRight:{attribute:"btn-hover-bg-color-right",type:"String"},btnBorderColor:{attribute:"btn-border-color",type:"String"},btnHoverBorderColor:{attribute:"btn-hover-border-color",type:"String"},btnText:{attribute:"btn-text",type:"String"}},[],[],!0)),console.log("Loaded components:",Object.keys(Object.assign({"./lib/AudioBrief.ce.svelte":i9,"./lib/CppCallout.ce.svelte":a9,"./lib/Footer.ce.svelte":u9,"./lib/HiddenReachFooter.ce.svelte":d9,"./lib/Magnifier.ce.svelte":_9,"./lib/ScrollHighlight.ce.svelte":Q6,"./lib/TextTyping.ce.svelte":t4,"./lib/TripleSlider.ce.svelte":C4,"./lib/split-landing-page/Container.ce.svelte":Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"}))})))})(); diff --git a/index.html b/index.html index 11987fd..7292266 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,7 @@ } csis-audio-brief { + margin-top: 400px; margin-bottom: 20px; } @@ -40,6 +41,11 @@

      Test page

      ends up on the page.

      + + + + + Test page - - \ No newline at end of file + diff --git a/package-lock.json b/package-lock.json index 0e6c9e0..d1c207f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,8 @@ "name": "ilab-web-components", "license": "UNLICENSED", "dependencies": { + "d3-fetch": "^3.0.1", + "dompurify": "^3.4.0", "gsap": "^3.13.0" }, "devDependencies": { @@ -873,6 +875,7 @@ "integrity": "sha512-ou/d51QSdTyN26D7h6dSpusAKaZkAiGM55/AKYi+9AGZw7q85hElbjK3kEyzXHhLSnRISHOYzVge6x0jRZ7DXA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@sveltejs/vite-plugin-svelte-inspector": "^5.0.0", "deepmerge": "^4.3.1", @@ -913,12 +916,20 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, "node_modules/acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -956,6 +967,52 @@ "node": ">=6" } }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/d3-dsv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "license": "ISC", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", + "license": "ISC", + "dependencies": { + "d3-dsv": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", @@ -973,6 +1030,15 @@ "dev": true, "license": "MIT" }, + "node_modules/dompurify": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.0.tgz", + "integrity": "sha512-nolgK9JcaUXMSmW+j1yaSvaEaoXYHwWyGJlkoCTghc97KgGDDSnpoU/PlEnw63Ah+TGKFOyY+X5LnxaWbCSfXg==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, "node_modules/esbuild": { "version": "0.27.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", @@ -1071,6 +1137,18 @@ "integrity": "sha512-P8/mMxVLU7o4+55+1TCnQrPmgjPKnwkzkXOK1asnR9Jg2lna4tEY5qBJjMmAaOBDDZWtlRjBXjLa0w53G/uBLA==", "license": "Standard 'no charge' license: https://gsap.com/standard-license." }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-reference": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz", @@ -1141,6 +1219,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -1222,6 +1301,18 @@ "fsevents": "~2.3.2" } }, + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", + "license": "BSD-3-Clause" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -1238,6 +1329,7 @@ "integrity": "sha512-VJwdXrmv9L8L7ZasJeWcCjoIuMRVbhuxbss0fpVnR8yorMmjNDwcjIH08vS6wmSzzzgAG5CADQ1JuXPS2nwt9w==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", @@ -1282,6 +1374,7 @@ "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", diff --git a/package.json b/package.json index eb231ac..daf4f84 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "vite": "^7.1.11" }, "dependencies": { + "d3-fetch": "^3.0.1", + "dompurify": "^3.4.0", "gsap": "^3.13.0" } } diff --git a/src/lib/satellite-image-snapshot/SatImageSnapshot.ce.svelte b/src/lib/satellite-image-snapshot/SatImageSnapshot.ce.svelte new file mode 100644 index 0000000..8632168 --- /dev/null +++ b/src/lib/satellite-image-snapshot/SatImageSnapshot.ce.svelte @@ -0,0 +1,767 @@ + + + + +{#if selectedItem} +
      + +
      +
      + {selectedItem.imageAlt} +
      +
      + +
      + + +
      +
      + {timelineItems[activeTooltipIndex]?.dateText} +
      + +
      +
      +
      + +
        + {#each timelineItems as item, index} +
      1. + +
      2. + {/each} +
      +
      +
      +
      + + +
      + +
      +

      {selectedItem.title}

      + {selectedItem.dateTextLongMonth} +

      {@html DOMPurify.sanitize(selectedItem.description)}

      +
      + +
      +{/if} + + diff --git a/src/lib/satellite-image-snapshot/api/data.js b/src/lib/satellite-image-snapshot/api/data.js new file mode 100644 index 0000000..33468a3 --- /dev/null +++ b/src/lib/satellite-image-snapshot/api/data.js @@ -0,0 +1,43 @@ +import { csv } from "d3-fetch" + +function formatDateText(dateString, longMonth) { + const date = new Date(`${dateString}T00:00:00`) + return new Intl.DateTimeFormat("en-US", { + month: longMonth ? "long" : "short", + day: "numeric", + year: "numeric", + }).format(date) +} + +export async function getData(URL) { + if (!URL) throw new Error("Missing data URL") + + const res = await csv(URL) + + const data = res + .map((row, index) => { + const dateString = (row.date || "").trim() + const timestamp = new Date(`${dateString}T00:00:00`).getTime() + + return { + id: row.id ? Number(row.id) : index, + title: row.title?.trim() || "", + description: row.description?.trim() || "", + date: dateString, + timestamp, + dateText: formatDateText(dateString, false), + dateTextLongMonth: formatDateText(dateString, true), + year: new Date(`${dateString}T00:00:00`).getFullYear(), + imageLink: row.image?.trim() || "", + imageAlt: row.image_alt?.trim() || "", + } + }) + .filter((item) => item.date && !Number.isNaN(item.timestamp)) + .sort((a, b) => a.timestamp - b.timestamp) + .map((item, index, arr) => ({ // second map, after sort + ...item, + isNewYear: index === 0 || item.year !== arr[index - 1].year, + })) + + return data +}