@becomeopc/trendpublish 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dashboard/assets/-association-list-CpJphL0B.js +1 -0
  2. package/dashboard/assets/-channel-templates-COQosj8a.js +6 -0
  3. package/dashboard/assets/-content-package-preview-DeF-8PPH.js +1 -0
  4. package/dashboard/assets/-editor-page-BISl-fTZ.js +1 -0
  5. package/dashboard/assets/-run-detail-view-DMxo9b8x.js +12 -0
  6. package/dashboard/assets/{-run-presentation-e-aAMUOA.js → -run-presentation-Dhp1MLMP.js} +1 -1
  7. package/dashboard/assets/AnimatePresence-DzUloIx0.js +9 -0
  8. package/dashboard/assets/_app-rmP4sHWt.js +1 -0
  9. package/dashboard/assets/arrow-left-D5-ez4tP.js +1 -0
  10. package/dashboard/assets/arrow-right-BUTx8i5Q.js +1 -0
  11. package/dashboard/assets/articles-Bn3Z1siU.js +1 -0
  12. package/dashboard/assets/automations-DMZkw8g6.js +2 -0
  13. package/dashboard/assets/connections-Dfyth9tv.js +1 -0
  14. package/dashboard/assets/content-plans-me2sZDLU.js +1 -0
  15. package/dashboard/assets/content-plans_._planId.edit-7BHuv528.js +1 -0
  16. package/dashboard/assets/content-plans_.new-7BHuv528.js +1 -0
  17. package/dashboard/assets/copy-B-eZtbzt.js +1 -0
  18. package/dashboard/assets/dropdown-menu-DAjCMI6K.js +1 -0
  19. package/dashboard/assets/eye-BSHReAUR.js +1 -0
  20. package/dashboard/assets/file-text-CfJolIKb.js +1 -0
  21. package/dashboard/assets/fingerprint-pattern-ISviPnO_.js +1 -0
  22. package/dashboard/assets/identities-CIy7Q2wP.js +3 -0
  23. package/dashboard/assets/index-BoLpab45.css +2 -0
  24. package/dashboard/assets/index-DhKRJHPQ.js +51 -0
  25. package/dashboard/assets/jobs-CMViOJeL.js +1 -0
  26. package/dashboard/assets/jobs_._runId-CA8TTEqw.js +1 -0
  27. package/dashboard/assets/knowledge-DQcgNI2r.js +1 -0
  28. package/dashboard/assets/layers-CWm3FyHG.js +1 -0
  29. package/dashboard/assets/layout-template-yIjk7F-q.js +1 -0
  30. package/dashboard/assets/library-BUCfApCB.js +1 -0
  31. package/dashboard/assets/newspaper-DPOzKLbY.js +1 -0
  32. package/dashboard/assets/play-BstQsP-v.js +1 -0
  33. package/dashboard/assets/publication-destination-picker-CJuQVZ8Z.js +1 -0
  34. package/dashboard/assets/publishing-PmNqeFKZ.js +1 -0
  35. package/dashboard/assets/publishing_.styles-B3gViZHT.js +1 -0
  36. package/dashboard/assets/publishing_.templates-DyfaO52q.js +1 -0
  37. package/dashboard/assets/{publishing_.templates_.sessions._sessionId-BKbSHrpn.js → publishing_.templates_.sessions._sessionId-C32Beg6R.js} +1 -1
  38. package/dashboard/assets/radio-tower-lWqWRAVm.js +1 -0
  39. package/dashboard/assets/routes-BnBNI1ke.js +1 -0
  40. package/dashboard/assets/runs-CKnSOKv4.js +1 -0
  41. package/dashboard/assets/settings-COO33aq9.js +1 -0
  42. package/dashboard/assets/shield-check-BssN3Hif.js +1 -0
  43. package/dashboard/assets/sources-IjjBA3jh.js +1 -0
  44. package/dashboard/assets/{sse-_t5PeRmk.js → sse-pzRA-f9J.js} +1 -1
  45. package/dashboard/assets/tabs-BoQLEzMe.js +1 -0
  46. package/dashboard/assets/trash-2-CURppE4-.js +1 -0
  47. package/dashboard/assets/use-onboarding-CGXnn74b.js +1 -0
  48. package/dashboard/assets/use-workspace-snapshot-CQHMnuFv.js +1 -0
  49. package/dashboard/assets/workspace-BpJcl3Mc.js +1 -0
  50. package/dashboard/assets/wrench-DEPBG9g2.js +1 -0
  51. package/dashboard/index.html +2 -2
  52. package/dist/app.js +10161 -2490
  53. package/drizzle/0002_clumsy_loki.sql +33 -0
  54. package/drizzle/0003_bumpy_edwin_jarvis.sql +1 -0
  55. package/drizzle/meta/0002_snapshot.json +2510 -0
  56. package/drizzle/meta/0003_snapshot.json +2517 -0
  57. package/drizzle/meta/_journal.json +14 -0
  58. package/package.json +10 -1
  59. package/dashboard/assets/-association-list-CE--B0dM.js +0 -1
  60. package/dashboard/assets/-channel-templates-CdLCNDrC.js +0 -6
  61. package/dashboard/assets/-content-package-preview-DC4PLY9G.js +0 -1
  62. package/dashboard/assets/-editor-page-CS5uk_2L.js +0 -1
  63. package/dashboard/assets/-run-detail-view-Csh1ek6d.js +0 -12
  64. package/dashboard/assets/AnimatePresence-OeIRE0Xw.js +0 -9
  65. package/dashboard/assets/_app-Bci0KgUT.js +0 -1
  66. package/dashboard/assets/app-dialog-ChNc5zc0.js +0 -1
  67. package/dashboard/assets/arrow-left-BQWrTPzt.js +0 -1
  68. package/dashboard/assets/arrow-right-Da_6qwwr.js +0 -1
  69. package/dashboard/assets/articles-Bw-jie6T.js +0 -1
  70. package/dashboard/assets/automations-JF7dpk0H.js +0 -2
  71. package/dashboard/assets/check-C6hl-XsU.js +0 -1
  72. package/dashboard/assets/chevron-down-DXrCAjpz.js +0 -1
  73. package/dashboard/assets/chevron-right-okm7Mcup.js +0 -1
  74. package/dashboard/assets/connections-D_OfbK5O.js +0 -1
  75. package/dashboard/assets/content-plans-CmaGhnXT.js +0 -1
  76. package/dashboard/assets/content-plans_._planId.edit-BPCAxR7I.js +0 -1
  77. package/dashboard/assets/content-plans_.new-BPCAxR7I.js +0 -1
  78. package/dashboard/assets/copy-CWp2fj5q.js +0 -1
  79. package/dashboard/assets/dropdown-menu-BR9kBDP8.js +0 -1
  80. package/dashboard/assets/entity-list-C7fEITZj.js +0 -1
  81. package/dashboard/assets/eye-Drma9Anf.js +0 -1
  82. package/dashboard/assets/file-text-BSOvvVFv.js +0 -1
  83. package/dashboard/assets/fingerprint-pattern-C_dvDw0n.js +0 -1
  84. package/dashboard/assets/flask-conical-DpX8Ww6S.js +0 -1
  85. package/dashboard/assets/form-field-BbOl9sGR.js +0 -1
  86. package/dashboard/assets/identities-B2SMnjY3.js +0 -3
  87. package/dashboard/assets/index-DC7b8xgR.js +0 -51
  88. package/dashboard/assets/index-pqOc3FQv.css +0 -2
  89. package/dashboard/assets/input-D7j_2GhD.js +0 -1
  90. package/dashboard/assets/jobs-WwmifsK9.js +0 -1
  91. package/dashboard/assets/jobs_._runId-BZsBpBT-.js +0 -1
  92. package/dashboard/assets/knowledge-CnqdN8mY.js +0 -1
  93. package/dashboard/assets/layers-BHAmPdjS.js +0 -1
  94. package/dashboard/assets/layout-template-_-9A39QH.js +0 -1
  95. package/dashboard/assets/library-Bo-F96xG.js +0 -1
  96. package/dashboard/assets/newspaper-Dcqy9j6N.js +0 -1
  97. package/dashboard/assets/notifications-Dlx9WRAf.js +0 -1
  98. package/dashboard/assets/page-grid-x4teY0Qb.js +0 -1
  99. package/dashboard/assets/pagination-BIxivGX2.js +0 -1
  100. package/dashboard/assets/play-CqRcIakP.js +0 -1
  101. package/dashboard/assets/plus-Cgi-AlzH.js +0 -1
  102. package/dashboard/assets/publication-destination-picker-p0aE3sNP.js +0 -1
  103. package/dashboard/assets/publishing-DYavJU0X.js +0 -1
  104. package/dashboard/assets/publishing_.styles-DfbwPHCg.js +0 -1
  105. package/dashboard/assets/publishing_.templates-DoOVohr6.js +0 -1
  106. package/dashboard/assets/radio-tower-tBHGxqPI.js +0 -1
  107. package/dashboard/assets/react-ByivFozR.js +0 -1
  108. package/dashboard/assets/routes-zvPXw-Ia.js +0 -1
  109. package/dashboard/assets/runs-DiLk0fOQ.js +0 -1
  110. package/dashboard/assets/select-BUT5ahxS.js +0 -1
  111. package/dashboard/assets/settings-BZ3KUyq9.js +0 -1
  112. package/dashboard/assets/sources-DaQA2K6Y.js +0 -1
  113. package/dashboard/assets/sparkles-ws1IsiGt.js +0 -1
  114. package/dashboard/assets/src-DVp5YM1T.js +0 -1
  115. package/dashboard/assets/tabs-DT--ZcFL.js +0 -1
  116. package/dashboard/assets/textarea-B7N7g6fl.js +0 -1
  117. package/dashboard/assets/trash-2-C3dbRhyb.js +0 -1
  118. package/dashboard/assets/types-D57tnOAh.js +0 -1
  119. package/dashboard/assets/use-onboarding-muxucTEZ.js +0 -1
  120. package/dashboard/assets/use-workspace-snapshot-CZmWKC_d.js +0 -1
  121. package/dashboard/assets/useMutation-C221JCx3.js +0 -1
  122. package/dashboard/assets/useQuery-CH_PyDWC.js +0 -1
  123. package/dashboard/assets/workspace-DGt_GyLc.js +0 -1
  124. package/dashboard/assets/wrench-BHwKK2nB.js +0 -1
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{Nt as t,U as n,Y as r,ln as i,nn as a,sn as o}from"./index-DC7b8xgR.js";import{t as s}from"./arrow-right-Da_6qwwr.js";import{t as c}from"./check-C6hl-XsU.js";import{t as l}from"./play-CqRcIakP.js";import{t as u}from"./sparkles-ws1IsiGt.js";import{t as d}from"./input-D7j_2GhD.js";import{t as f}from"./layers-BHAmPdjS.js";import{t as p}from"./radio-tower-tBHGxqPI.js";var m=r(`file-check-corner`,[[`path`,{d:`M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6`,key:`g5mvt7`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14 20 2 2 4-4`,key:`15kota`}]]),h=r(`git-branch`,[[`line`,{x1:`6`,x2:`6`,y1:`3`,y2:`15`,key:`17qcm7`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M18 9a9 9 0 0 1-9 9`,key:`n2h4wq`}]]),g=r(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),_=r(`package-check`,[[`path`,{d:`m16 16 2 2 4-4`,key:`gfu2re`}],[`path`,{d:`M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14`,key:`e7tb2h`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`12`,key:`a4e8g8`}]]),v=r(`send-horizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),y=r(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),b=r(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),x=e(i());function S(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function C(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var w={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},T={duration:.5,overwrite:!1,delay:0},E,D,O,k=1e8,A=1/k,j=Math.PI*2,M=j/4,N=0,P=Math.sqrt,ee=Math.cos,te=Math.sin,F=function(e){return typeof e==`string`},I=function(e){return typeof e==`function`},ne=function(e){return typeof e==`number`},re=function(e){return e===void 0},L=function(e){return typeof e==`object`},R=function(e){return e!==!1},z=function(){return typeof window<`u`},ie=function(e){return I(e)||F(e)},ae=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},oe=Array.isArray,B=/random\([^)]+\)/g,se=/,\s*/g,ce=/(?:-?\.?\d|\.)+/gi,V=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,le=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ue=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,de=/[+-]=-?[.\d]+/,fe=/[^,'"\[\]\s]+/gi,pe=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,me,he,ge,U={},_e={},W,ve=function(e){return(_e=Ye(e,U))&&mr},ye=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},be=function(e,t){return!t&&console.warn(e)},xe=function(e,t){return e&&(U[e]=t)&&_e&&(_e[e]=t)||U},Se=function(){return 0},Ce={suppressEvents:!0,isStart:!0,kill:!1},we={suppressEvents:!0,kill:!1},Te={suppressEvents:!0},Ee={},De=[],G={},Oe,ke={},Ae={},je=30,Me=[],Ne=``,Pe=function(e){var t=e[0],n,r;if(L(t)||I(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Me.length;r--&&!Me[r].targetTest(t););n=Me[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new wn(e[r],n)))||e.splice(r,1);return e},Fe=function(e){return e._gsap||Pe(Mt(e))[0]._gsap},Ie=function(e,t,n){return(n=e[t])&&I(n)?e[t]():re(n)&&e.getAttribute&&e.getAttribute(t)||n},Le=function(e,t){return(e=e.split(`,`)).forEach(t)||e},Re=function(e){return Math.round(e*1e5)/1e5||0},ze=function(e){return Math.round(e*1e7)/1e7||0},Be=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Ve=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},He=function(){var e=De.length,t=De.slice(0),n,r;for(G={},De.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Ue=function(e){return!!(e._initted||e._startAt||e.add)},We=function(e,t,n,r){De.length&&!D&&He(),e.render(t,n,r||!!(D&&t<0&&Ue(e))),De.length&&!D&&He()},Ge=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(fe).length<2?t:F(e)?e.trim():e},Ke=function(e){return e},qe=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Je=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Ye=function(e,t){for(var n in t)e[n]=t[n];return e},Xe=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=L(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Ze=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Qe=function(e){var t=e.parent||H,n=e.keyframes?Je(oe(e.keyframes)):qe;if(R(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},$e=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},et=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},tt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},nt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},rt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},it=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},at=function(e,t,n,r){return e._startAt&&(D?e._startAt.revert(we):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},ot=function e(t){return!t||t._ts&&e(t.parent)},st=function(e){return e._repeat?ct(e._tTime,e=e.duration()+e._rDelay)*e:0},ct=function(e,t){var n=Math.floor(e=ze(e/t));return e&&n===e?n-1:n},lt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ut=function(e){return e._end=ze(e._start+(e._tDur/Math.abs(e._ts||e._rts||A)||0))},dt=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=ze(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),ut(e),n._dirty||rt(n,e)),e},ft=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=lt(e.rawTime(),t),(!t._dur||Et(0,t.totalDuration(),n)-t._tTime>A)&&t.render(n,!0)),rt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-A}},pt=function(e,t,n,r){return t.parent&&nt(t),t._start=ze((ne(n)?n:!n&&_t(t)&&(!e._last||e._last._start>=e._time)?e._last?e._last._start:e._time:n||e!==H?Ct(e,n,t):e._time)+t._delay),t._end=ze(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),et(e,t,`_first`,`_last`,e._sort?`_start`:0),_t(t)||(e._recent=t),r||ft(e,t),e._ts<0&&dt(e,e._tTime),e},mt=function(e,t){return(U.ScrollTrigger||ye(`scrollTrigger`,t))&&U.ScrollTrigger.create(t,e)},ht=function(e,t,n,r,i){if(Nn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!D&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Oe!==dn.frame)return De.push(e),e._lazy=[i,r],1},gt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},_t=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},vt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&gt(e)&&(e._initted||!_t(e))||(e._ts<0||e._dp._ts<0)&&!_t(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=Et(0,e._tDur,t),l=ct(s,o),e._yoyo&&l&1&&(a=1-a),l!==ct(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||D||r||e._zTime===A||!t&&e._zTime){if(!e._initted&&ht(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?A:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&at(e,t,n,!0),e._onUpdate&&!n&&Yt(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Yt(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&nt(e,1),!n&&!D&&(Yt(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},yt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},bt=function(e,t,n,r){var i=e._repeat,a=ze(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:ze(a*(i+1)+e._rDelay*i):a,o>0&&!r&&dt(e,e._tTime=e._tDur*o),e.parent&&ut(e),n||rt(e.parent,e),e},xt=function(e){return e instanceof En?rt(e):bt(e,e._dur)},St={_start:0,endTime:Se,totalDuration:Se},Ct=function e(t,n,r){var i=t.labels,a=t._recent||St,o=t.duration()>=k?a.endTime(!1):t._dur,s,c,l;return F(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(oe(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},wt=function(e,t,n){var r=ne(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=R(s.vars.inherit)&&s.parent;a.immediateRender=R(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Bn(t[0],a,t[i+1])},Tt=function(e,t){return e||e===0?t(e):t},Et=function(e,t,n){return n<e?e:n>t?t:n},Dt=function(e,t){return!F(e)||!(t=pe.exec(e))?``:t[1]},Ot=function(e,t,n){return Tt(n,function(n){return Et(e,t,n)})},kt=[].slice,At=function(e,t){return e&&L(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&L(e[0]))&&!e.nodeType&&e!==me},jt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return F(e)&&!t||At(e,1)?(r=n).push.apply(r,Mt(e)):n.push(e)})||n},Mt=function(e,t,n){return O&&!t&&O.selector?O.selector(e):F(e)&&!n&&(he||!fn())?kt.call((t||ge).querySelectorAll(e),0):oe(e)?jt(e,n):At(e)?kt.call(e,0):e?[e]:[]},Nt=function(e){return e=Mt(e)[0]||be(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Mt(t,n.querySelectorAll?n:n===e?be(`Invalid scope`)||ge.createElement(`div`):e)}},Pt=function(e){return e.sort(function(){return .5-Math.random()})},Ft=function(e){if(I(e))return e;var t=L(e)?e:{each:e},n=yn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return F(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,k])[1],!S){for(b=-k;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===k?0:s?f*u/S-.5:r/S|0,b=0,x=k,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):P(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&Pt(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=Dt(t.amount||t.each)||0,n=n&&f<0?vn(n):n}return f=(p[e]-p.min)/p.max||0,ze(p.b+(n?n(f):f)*p.v)+p.u}},It=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=ze(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(ne(n)?0:Dt(n))}},Lt=function(e,t){var n=oe(e),r,i;return!n&&L(e)&&(r=n=e.radius||k,e.values?(e=Mt(e.values),(i=!ne(e[0]))&&(r*=r)):e=It(e.increment)),Tt(t,n?I(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=k,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||ne(t)?s:s+Dt(t)}:It(e))},Rt=function(e,t,n,r){return Tt(oe(e)?!t:n===!0?!!(n=0):!r,function(){return oe(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},zt=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},Bt=function(e,t){return function(n){return e(parseFloat(n))+(t||Dt(n))}},Vt=function(e,t,n){return Kt(e,t,0,1,n)},Ht=function(e,t,n){return Tt(n,function(n){return e[~~t(n)]})},Ut=function e(t,n,r){var i=n-t;return oe(t)?Ht(t,e(0,t.length),n):Tt(r,function(e){return(i+(e-t)%i)%i+t})},Wt=function e(t,n,r){var i=n-t,a=i*2;return oe(t)?Ht(t,e(0,t.length-1),n):Tt(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},Gt=function(e){return e.replace(B,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(se);return Rt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Kt=function(e,t,n,r,i){var a=t-e,o=r-n;return Tt(i,function(t){return n+((t-e)/a*o||0)})},qt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=F(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(oe(t)&&!oe(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Ye(oe(t)?[]:{},t));if(!u){for(c in n)On.call(s,t,c,`get`,n[c]);a=function(e){return Yn(e,s)||(o?t.p:t)}}}return Tt(r,a)},Jt=function(e,t,n){var r=e.labels,i=k,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Yt=function(e,t,n){var r=e.vars,i=r[t],a=O,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&De.length&&He(),o&&(O=o),l=s?i.apply(c,s):i.call(c),O=a,l},Xt=function(e){return nt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!D),e.progress()<1&&Yt(e,`onInterrupt`),e},Zt,Qt=[],$t=function(e){if(e){if(e=!e.name&&e.default||e,z()||e.headless){var t=e.name,n=I(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Se,render:Yn,add:On,kill:Zn,modifier:Xn,rawVars:0},a={targetTest:0,get:0,getSetter:Gn,aliases:{},register:0};if(fn(),e!==r){if(ke[t])return;qe(r,qe(Ze(e,i),a)),Ye(r.prototype,Ye(i,Ze(e,a))),ke[r.prop=t]=r,e.targetTest&&(Me.push(r),Ee[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}xe(t,r),e.register&&e.register(mr,r,er)}else Qt.push(e)}},en=255,tn={aqua:[0,en,en],lime:[0,en,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,en],navy:[0,0,128],white:[en,en,en],olive:[128,128,0],yellow:[en,en,0],orange:[en,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[en,0,0],pink:[en,192,203],cyan:[0,en,en],transparent:[en,en,en,0]},nn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*en+.5|0},rn=function(e,t,n){var r=e?ne(e)?[e>>16,e>>8&en,e&en]:0:tn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),tn[e])r=tn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&en,r&en,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&en,e&en]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(ce),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=nn(s+1/3,i,a),r[1]=nn(s,i,a),r[2]=nn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(V),n&&r.length<4&&(r[3]=1),r}else r=e.match(ce)||tn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/en,a=r[1]/en,o=r[2]/en,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},an=function(e){var t=[],n=[],r=-1;return e.split(sn).forEach(function(e){var i=e.match(le)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},on=function(e,t,n){var r=``,i=(e+r).match(sn),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=rn(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=an(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(sn,`1`).split(le),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(sn),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},sn=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in tn)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),cn=/hsl[a]?\(/,ln=function(e){var t=e.join(` `),n;if(sn.lastIndex=0,sn.test(t))return n=cn.test(t),e[1]=on(e[1],n),e[0]=on(e[0],n,an(e[1])),!0},un,dn=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?0:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){W&&(!he&&z()&&(me=he=window,ge=me.document||{},U.gsap=mr,(me.gsapVersions||(me.gsapVersions=[])).push(mr.version),ve(_e||me.GreenSockGlobals||!me.gsap&&me||{}),Qt.forEach($t)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},un=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),un=0,l=Se},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),fn(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),fn=function(){return!un&&dn.wake()},K={},pn=/^[\d.\-M][\d.\-,\s]/,mn=/["']/g,hn=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(mn,``).trim():+c,r=s.substr(o+1).trim();return t},gn=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},_n=function(e){var t=(e+``).split(`(`),n=K[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[hn(t[1])]:gn(e).split(`,`).map(Ge)):K._CE&&pn.test(e)?K._CE(``,e):n},vn=function(e){return function(t){return 1-e(1-t)}},yn=function(e,t){return e&&(I(e)?e:K[e]||_n(e))||t},bn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return Le(e,function(e){for(var t in K[e]=U[e]=i,K[a=e.toLowerCase()]=n,i)K[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=K[e+`.`+t]=i[t]}),i},xn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Sn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/j*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*te((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:xn(s);return a=j/a,c.config=function(n,r){return e(t,n,r)},c},Cn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:xn(r);return i.config=function(n){return e(t,n)},i};Le(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;bn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),K.Linear.easeNone=K.none=K.Linear.easeIn,bn(`Elastic`,Sn(`in`),Sn(`out`),Sn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};bn(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),bn(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),bn(`Circ`,function(e){return-(P(1-e*e)-1)}),bn(`Sine`,function(e){return e===1?1:-ee(e*M)+1}),bn(`Back`,Cn(`in`),Cn(`out`),Cn()),K.SteppedEase=K.steps=U.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-A;return function(e){return((r*Et(0,a,e)|0)+i)*n}}},T.ease=K[`quad.out`],Le(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Ne+=e+`,`+e+`Params,`});var wn=function(e,t){this.id=N++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Ie,this.set=t?t.getSetter:Gn},Tn=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,bt(this,+e.duration,1,1),this.data=e.data,O&&(this._ctx=O,O.data.push(this)),un||dn.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,bt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(fn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(dt(this,e),!n._dp||n.parent||ft(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&pt(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===A||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),We(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+st(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+st(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?ct(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-A?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?lt(this.parent._time,this):this._tTime,r=this._rts<0;this._rts=+e||0,this._ts=this._ps||e===-A?0:this._rts;var i=this.totalDuration();return(r!==this._rts<0||n>0&&n<i)&&this.totalTime(Et(-Math.abs(this._delay),i,n),t!==!1),ut(this),it(this)},t.paused=function(e){if(!arguments.length)return this._ps;if(this._ps!==e){if(this._ps=e,e)this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0;else{fn(),this._ts=this._rts;var t=this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,n=this.progress()===1&&Math.abs(this._zTime)!==A,r;if(n)for(this._tTime-=A,r=this._first;r;){if(!r._dur&&r._zTime<0&&r._ts&&r._start<=t+A){n=!1;break}r=r._next}this.totalTime(t,n)}}return this},t.startTime=function(e){if(arguments.length){this._start=ze(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&pt(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(R(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?lt(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Te);var t=D;return D=e,Ue(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),D=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,xt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,xt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Ct(this,e),R(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,R(t)),this._dur||(this._zTime=-A),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-A:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-A,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-A)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=I(e)?e:Ke,a=function(){var e=t.then;t.then=null,n&&n(),I(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Xt(this)},e}();qe(Tn.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:-A,_prom:0,_ps:!1,_rts:1});var En=function(e){C(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=R(t.sortChildren),H&&pt(t.parent||H,S(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&mt(S(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return wt(0,arguments,this),this},n.from=function(e,t,n){return wt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return wt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Qe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Bn(e,t,Ct(this,n),1),this},n.call=function(e,t,n){return pt(this,Bn.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Bn(e,n,Ct(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Qe(n).immediateRender=R(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Qe(r).immediateRender=R(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:ze(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==H&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=ze(o%f),o===i?(d=this._repeat,c=a):(_=ze(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=ct(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:ze(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Yt(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=yt(this,ze(r),ze(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Yt(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-A);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||D&&Ue(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-A:A);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-A)._zTime=c>=r?1:-1,this._ts))return this._start=g,ut(this),this.render(e,t,n);this._onUpdate&&!t&&Yt(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&nt(this,1),t||e<0&&!r||!o&&!r&&i||(Yt(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(ne(t)||(t=Ct(this,t,e)),!(e instanceof Tn)){if(oe(e))return e.forEach(function(e){return n.add(e,t)}),this;if(F(e))return this.addLabel(e,t);if(I(e))e=Bn.delayedCall(0,e);else return this}return this===e?this:pt(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-k);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Bn?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return F(e)?this.removeLabel(e):I(e)?this.killTweensOf(e):(e.parent===this&&tt(this,e),e===this._recent&&(this._recent=this._last),rt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ze(dn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Ct(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Bn.delayedCall(0,t||Se,n);return r.data=`isPause`,this._hasPause=1,pt(this,r,Ct(this,e))},n.removePause=function(e){var t=this._first;for(e=Ct(this,e);t;)t._start===e&&t.data===`isPause`&&nt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)jn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Mt(e),i=this._first,a=ne(t),o;i;)i instanceof Bn?Ve(i._targets,r)&&(a?(!jn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=Ct(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Bn.to(n,qe({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||A,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&bt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,qe({startAt:{time:Ct(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Jt(this,Ct(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Jt(this,Ct(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+A)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=ze(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return rt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),rt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=k,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,pt(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=ze(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;bt(n,n===H&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(H._ts&&(We(H,lt(e,H)),Oe=dn.frame),dn.frame>=je){je+=w.autoSleep||120;var t=H._first;if((!t||!t._ts)&&w.autoSleep&&dn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||dn.sleep()}}},t}(Tn);qe(En.prototype,{_lock:0,_hasPause:0,_forcing:0});var Dn=function(e,t,n,r,i,a,o){var s=new er(this._pt,e,t,0,1,Jn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Gt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(ue)||[];u=ue.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Be(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=ue.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(de.test(r)||g)&&(s.e=0),this._pt=s,s},On=function(e,t,n,r,i,a,o,s,c,l){I(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?I(u)?c?e[t.indexOf(`set`)||!I(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=I(u)?c?Un:Hn:Vn,p;if(F(r)&&(~r.indexOf(`random(`)&&(r=Gt(r)),r.charAt(1)===`=`&&(p=Be(d,r)+(Dt(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Mn)return!isNaN(d*r)&&r!==``?(p=new er(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?qn:Kn,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&ye(t,r),Dn.call(this,e,t,d,r,f,s||w.stringFilter,c))},kn=function(e,t,n,r,i){if(I(e)&&(e=Ln(e,i,t,n,r)),!L(e)||e.style&&e.nodeType||oe(e)||ae(e))return F(e)?Ln(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=Ln(e[o],i,t,n,r);return a},An=function(e,t,n,r,i,a){var o,s,c,l;if(ke[e]&&(o=new ke[e]).init(i,o.rawVars?t[e]:kn(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new er(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Zt))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},jn,Mn,Nn=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!E,b=t.timeline,x=i.easeReverse||d,S,C,w,O,j,M,N,P,ee,te,F,I,ne;if(!b||f&&a||(a=`none`),t._ease=yn(a,T.ease),t._rEase=x&&(yn(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(P=g[0]?Fe(g[0]).harness:0,I=P&&i[P.prop],S=Ze(i,Ee),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?we:Ce),h._lazy=0),o){if(nt(t._startAt=Bn.set(g,qe({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&R(c),startAt:null,delay:0,onUpdate:l&&function(){return Yt(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(D||!s&&!p)&&t._startAt.revert(we),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=qe({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&R(c),immediateRender:s,stagger:0,parent:_},S),I&&(w[P.prop]=I),nt(t._startAt=Bn.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(D?t._startAt.revert(we):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,A,A);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&R(c)||c&&!m,C=0;C<g.length;C++){if(j=g[C],N=j._gsap||Pe(g)[C]._gsap,t._ptLookup[C]=te={},G[N.id]&&De.length&&He(),F=v===g?C:v.indexOf(j),P&&(ee=new P).init(j,I||S,t,F,v)!==!1&&(t._pt=O=new er(t._pt,j,ee.name,0,1,ee.render,ee,0,ee.priority),ee._props.forEach(function(e){te[e]=O}),ee.priority&&(M=1)),!P||I)for(w in S)ke[w]&&(ee=An(w,S,t,F,j,v))?ee.priority&&(M=1):te[w]=O=On.call(t,j,w,`get`,S[w],F,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(j,t._op[C]),y&&t._pt&&(jn=t,H.killTweensOf(j,te,t.globalTime(n)),ne=!t.parent,jn=0),t._pt&&c&&(G[N.id]=1)}M&&$n(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!ne,f&&n<=0&&b.render(k,!0,!0)},Pn=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Mn=1,e.vars[t]=`+=0`,Nn(e,o),Mn=0,s?be(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=Re(n)+Dt(u.e)),u.b&&(u.b=l.s+Dt(u.b))},Fn=function(e,t){var n=e[0]?Fe(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Ye({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},In=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(oe(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},Ln=function(e,t,n,r,i){return I(e)?e.call(t,n,r,i):F(e)&&~e.indexOf(`random(`)?Gt(e):e},Rn=Ne+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,zn={};Le(Rn+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return zn[e]=1}),Rn=Rn.split(`,`);var Bn=function(e){C(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:Qe(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||H,g=(oe(t)||ae(t)?ne(t[0]):`length`in n)?[t]:Mt(t),_,v,y,b,x,C,T,D;if(a._targets=g.length?Pe(g):be(`GSAP target `+t+` not found. https://gsap.com`,!w.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||ie(s)||ie(c)){n=a.vars;var O=n.easeReverse||n.yoyoEase;if(_=a.timeline=new En({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=S(a),_._start=0,u||ie(s)||ie(c)){if(b=g.length,T=u&&Ft(u),L(u))for(x in u)~Rn.indexOf(x)&&(D||={},D[x]=u[x]);for(v=0;v<b;v++)y=Ze(n,zn),y.stagger=0,O&&(y.easeReverse=O),D&&Ye(y,D),C=g[v],y.duration=+Ln(s,S(a),v,C,g),y.delay=(+Ln(c,S(a),v,C,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(C,y,T?T(v,C,g):0),_._ease=K.none;_.duration()?s=c=0:a.timeline=0}else if(f){Qe(qe(_.vars.defaults,{ease:`none`})),_._ease=yn(f.ease||n.ease||`none`);var k=0,j,M,N;if(oe(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||In(x,f[x],y,f.easeEach);for(x in y)for(j=y[x].sort(function(e,t){return e.t-t.t}),k=0,v=0;v<j.length;v++)M=j[v],N={ease:M.e,duration:(M.t-(v?j[v-1].t:0))/100*s},N[x]=M.v,_.to(g,N,k),k+=N.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!E&&(jn=S(a),H.killTweensOf(g),jn=0),pt(h,S(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===ze(h._time)&&R(l)&&ot(S(a))&&h.data!==`nested`)&&(a._tTime=-A,a.render(Math.max(0,-c)||0)),m&&mt(S(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-A&&!o?i:e<A?0:e,c,l,u,d,f,p,m,h;if(!a)vt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=ze(s%d),s===i?(u=this._repeat,c=a):(f=ze(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=ct(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(ze(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ht(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Yt(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&at(this,e,t,n),Yt(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Yt(this,`onRepeat`),s!==this._tDur&&s||this._tTime!==s||(o&&!this._onUpdate&&at(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&nt(this,1),!t&&(!o||r)&&(s||r||p)&&(Yt(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){un||dn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Nn(this,a),o=this._ease(a/this._dur),Pn(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(dt(this,0),this.parent||et(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Xt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!D),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,jn&&jn.vars.overwrite!==!0)._first||Xt(this),this.parent&&n!==this.timeline.totalDuration()&&bt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Mt(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&$e(r,i))return t===`all`&&(this._pt=0),Xt(this);for(s=this._op=this._op||[],t!==`all`&&(F(t)&&(d={},Le(t,function(e){return d[e]=1}),t=d),t=Fn(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&(`kill`in f.d&&f.d.kill(d)!==!0||tt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Xt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return wt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return wt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return H.killTweensOf(e,t,n)},t}(Tn);qe(Bn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Le(`staggerTo,staggerFrom,staggerFromTo`,function(e){Bn[e]=function(){var t=new En,n=kt.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Vn=function(e,t,n){return e[t]=n},Hn=function(e,t,n){return e[t](n)},Un=function(e,t,n,r){return e[t](r.fp,n)},Wn=function(e,t,n){return e.setAttribute(t,n)},Gn=function(e,t){return I(e[t])?Hn:re(e[t])&&e.setAttribute?Wn:Vn},Kn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},qn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Jn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Yn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Xn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Zn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?tt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Qn=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},$n=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},er=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Kn,this.d=o||this,this.set=s||Vn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Qn,this.m=e,this.mt=n,this.tween=t},e}();Le(Ne+`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,easeReverse`,function(e){return Ee[e]=1}),U.TweenMax=U.TweenLite=Bn,U.TimelineLite=U.TimelineMax=En,H=new En({sortChildren:!1,defaults:T,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),w.stringFilter=ln;var tr=[],nr={},rr=[],ir=0,ar=0,or=function(e){return(nr[e]||rr).map(function(e){return e()})},sr=function(){var e=Date.now(),t=[];e-ir>2&&(or(`matchMediaInit`),tr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=me.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),or(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),ir=e,or(`matchMedia`))},cr=function(){function e(e,t){this.selector=t&&Nt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=ar++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){I(e)&&(n=t,t=e,e=I);var r=this,i=function(){var e=O,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Nt(n)),O=r,a=t.apply(r,arguments),I(a)&&r._r.push(a),O=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===I?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=O;O=null,e(this),O=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Bn&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof En?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Bn)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t){for(var r=tr.length;r--;)tr[r].id===this.id&&tr.splice(r,1);this._mqs&&this._mqs.forEach(function(e){return e.removeListener?e.removeListener(sr):e.removeEventListener(`change`,sr)}),this._mqs=null}},t.revert=function(e){this.kill(e||{})},e}(),lr=function(){function e(e){this.contexts=[],this.scope=e,O&&O.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){L(e)||(e={matches:e});var r=new cr(0,n||this.scope),i=r.conditions={},a,o,s;for(o in O&&!r.selector&&(r.selector=O.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=me.matchMedia(e[o]),a&&(tr.indexOf(r)<0&&tr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(sr):a.addEventListener(`change`,sr),(r._mqs||=[]).push(a)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),ur={registerPlugin:function(){[...arguments].forEach(function(e){return $t(e)})},timeline:function(e){return new En(e)},getTweensOf:function(e,t){return H.getTweensOf(e,t)},getProperty:function(e,t,n,r){F(e)&&(e=Mt(e)[0]);var i=Fe(e||{}).get,a=n?Ke:Ge;return n===`native`&&(n=``),e&&(t?a((ke[t]&&ke[t].get||i)(e,t,n,r)):function(t,n,r){return a((ke[t]&&ke[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Mt(e),e.length>1){var r=e.map(function(e){return mr.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=ke[t],o=Fe(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Zt._pt=0,r.init(e,n?t+n:t,Zt,0,[e]),r.render(1,r),Zt._pt&&Yn(1,Zt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=mr.to(e,qe((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=yn(e.ease,T.ease)),Xe(T,e||{})},config:function(e){return Xe(w,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!ke[e]&&!U[e]&&be(t+` effect requires `+e+` plugin.`)}),Ae[t]=function(e,t,r){return n(Mt(e),qe(t||{},i),r)},a&&(En.prototype[t]=function(e,n,r){return this.add(Ae[t](e,L(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){K[e]=yn(t)},parseEase:function(e,t){return arguments.length?yn(e,t):K},getById:function(e){return H.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new En(e),r,i;for(n.smoothChildTiming=R(e.smoothChildTiming),H.remove(n),n._dp=0,n._time=n._tTime=H._time,r=H._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Bn&&r.vars.onComplete===r._targets[0]))&&pt(n,r,r._start-r._delay),r=i;return pt(H,n,0),n},context:function(e,t){return e?new cr(e,t):O},matchMedia:function(e){return new lr(e)},matchMediaRefresh:function(){return tr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||sr()},addEventListener:function(e,t){var n=nr[e]||(nr[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=nr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Ut,wrapYoyo:Wt,distribute:Ft,random:Rt,snap:Lt,normalize:Vt,getUnit:Dt,clamp:Ot,splitColor:rn,toArray:Mt,selector:Nt,mapRange:Kt,pipe:zt,unitize:Bt,interpolate:qt,shuffle:Pt},install:ve,effects:Ae,ticker:dn,updateRoot:En.updateRoot,plugins:ke,globalTimeline:H,core:{PropTween:er,globals:xe,Tween:Bn,Timeline:En,Animation:Tn,getCache:Fe,_removeLinkedListItem:tt,reverting:function(){return D},context:function(e){return e&&O&&(O.data.push(e),e._ctx=O),O},suppressOverwrites:function(e){return E=e}}};Le(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return ur[e]=Bn[e]}),dn.add(En.updateRoot),Zt=ur.to({},{duration:0});var dr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},fr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=dr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},pr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(F(n)&&(r={},Le(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}fr(e,n)}}}},mr=ur.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)D?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},pr(`roundProps`,It),pr(`modifiers`),pr(`snap`,Lt))||ur;Bn.version=En.version=mr.version=`3.15.1`,W=1,z()&&fn(),K.Power0,K.Power1,K.Power2,K.Power3,K.Power4,K.Linear,K.Quad,K.Cubic,K.Quart,K.Quint,K.Strong,K.Elastic,K.Back,K.SteppedEase,K.Bounce,K.Sine,K.Expo,K.Circ;var hr,gr,_r,vr,yr,br,xr,Sr=function(){return typeof window<`u`},Cr={},wr=180/Math.PI,Tr=Math.PI/180,Er=Math.atan2,Dr=1e8,Or=/([A-Z])/g,kr=/(left|right|width|margin|padding|x)/i,Ar=/[\s,\(]\S/,jr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Mr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Nr=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)},Pr=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)},Fr=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)},Ir=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Lr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Rr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},zr=function(e,t,n){return e.style[t]=n},Br=function(e,t,n){return e.style.setProperty(t,n)},Vr=function(e,t,n){return e._gsap[t]=n},Hr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Ur=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Wr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},Gr=`transform`,Kr=Gr+`Origin`,qr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Cr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=jr[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=fi(i,e)}):this.tfm[t]=o.x?o[t]:fi(i,t),t===Kr&&(this.tfm.zOrigin=o.zOrigin);else return jr.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(Gr)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Kr,n,``)),t=Gr}(a||n)&&this.props.push(t,n,a[t])},Jr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Yr=function(){for(var e=this.props,t=this.target,n=t.style,r=t._gsap,i=0,a;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(Or,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=xr(),i&&i.isStart||n[Gr]||(Jr(n),r.zOrigin&&n[Kr]&&(n[Kr]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Xr=function(e,t){var n={target:e,props:[],revert:Yr,save:qr};return e._gsap||mr.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},Zr,Qr=function(e,t){var n=gr.createElementNS?gr.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):gr.createElement(e);return n&&n.style?n:gr.createElement(e)},$r=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Or,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,ti(n)||n,1)||``},ei=`O,Moz,ms,Ms,Webkit`.split(`,`),ti=function(e,t,n){var r=(t||yr).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(ei[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?ei[i]:``)+e},ni=function(){Sr()&&window.document&&(hr=window,gr=hr.document,_r=gr.documentElement,yr=Qr(`div`)||{style:{}},Qr(`div`),Gr=ti(Gr),Kr=Gr+`Origin`,yr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Zr=!!ti(`perspective`),xr=mr.core.reverting,vr=1)},ri=function(e){var t=e.ownerSVGElement,n=Qr(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),_r.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),_r.removeChild(n),i},ii=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},ai=function(e){var t,n;try{t=e.getBBox()}catch{t=ri(e),n=1}return t&&(t.width||t.height)||n||(t=ri(e)),t&&!t.width&&!t.x&&!t.y?{x:+ii(e,[`x`,`cx`,`x1`])||0,y:+ii(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},oi=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!ai(e))},si=function(e,t){if(t){var n=e.style,r;t in Cr&&t!==Kr&&(t=Gr),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Or,`-$1`).toLowerCase())):n.removeAttribute(t)}},ci=function(e,t,n,r,i,a){var o=new er(e._pt,t,n,0,1,a?Rr:Lr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},li={deg:1,rad:1,turn:1},ui={grid:1,flex:1},di=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=yr.style,c=kr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||li[i]||li[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&oi(t),(p||o===`%`)&&(Cr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],Re(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),h&&h!==gr&&h.appendChild||(h=gr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===dn.time&&!g.uncache)return Re(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:si(t,n)}else(p||o===`%`)&&!ui[$r(h,`display`)]&&(s.position=$r(t,`position`)),h===t&&(s.position=`static`),h.appendChild(yr),m=yr[u],h.removeChild(yr),s.position=`absolute`;return c&&p&&(g=Fe(h),g.time=dn.time,g.width=h[u]),Re(f?m*a/d:m&&a?d/m*a:0)},fi=function(e,t,n,r){var i;return vr||ni(),t in jr&&t!==`transform`&&(t=jr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Cr[t]&&t!==`transform`?(i=wi(e,r),i=t===`transformOrigin`?i.svg?i.origin:Ti($r(e,Kr))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=_i[t]&&_i[t](e,t,n)||$r(e,t)||Ie(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?di(e,t,i,n)+n:i},pi=function(e,t,n,r){if(!n||n===`none`){var i=ti(t,e,1),a=i&&$r(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=$r(e,`borderTopColor`))}var o=new er(this._pt,e.style,t,0,1,Jn),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=$r(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=$r(e,t)||r,m?e.style[t]=m:si(e,t)),l=[n,r],ln(l),n=l[0],r=l[1],d=n.match(le)||[],b=r.match(le)||[],b.length){for(;u=le.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Be(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=le.lastIndex-v.length,v||(v=v||w.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=di(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?Rr:Lr;return de.test(r)&&(o.e=0),this._pt=o,o},mi={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},hi=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=mi[n]||n,t[1]=mi[r]||r,t.join(` `)},gi=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Cr[o]&&(s=1,o=o===`transformOrigin`?Kr:Gr),si(n,o);s&&(si(n,Gr),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,wi(n,1),a.uncache=1,Jr(r)))}},_i={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new er(e._pt,t,n,0,0,gi);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},vi=[1,0,0,1,0,0],yi={},bi=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},xi=function(e){var t=$r(e,Gr);return bi(t)?vi:t.substr(7).match(V).map(Re)},Si=function(e,t){var n=e._gsap||Fe(e),r=e.style,i=xi(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?vi:i):(i===vi&&!e.offsetParent&&e!==_r&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,a&&(e.offsetParent||e.getBoundingClientRect().width)||(c=1,o=e.nextElementSibling,_r.appendChild(e)),i=xi(e),s?r.display=s:si(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):_r.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Ci=function(e,t,n,r,i,a){var o=e._gsap,s=i||Si(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==vi&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=ai(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Kr]=`0px 0px`,a&&(ci(a,o,`xOrigin`,c,y),ci(a,o,`yOrigin`,l,b),ci(a,o,`xOffset`,u,o.xOffset),ci(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},wi=function(e,t){var n=e._gsap||new wn(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=$r(e,Kr)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,T,E,D,O,k,A,j,M,N,P,ee,te,F,I,ne,re,L;return n.svg=!!(e.getCTM&&oi(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[Gr]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[Gr]===`none`?``:s[Gr])),r.scale=r.rotate=r.translate=`none`),S=Si(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),Ci(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==vi&&(D=S[0],O=S[1],k=S[2],A=S[3],l=j=S[4],u=M=S[5],S.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?Er(O,D)*wr:0,_=k||A?Er(k,A)*wr+m:0,_&&(p*=Math.abs(Math.cos(_*Tr))),n.svg&&(l-=b-(b*D+x*k),u-=x-(b*O+x*A))):(L=S[6],ne=S[7],te=S[8],F=S[9],I=S[10],re=S[11],l=S[12],u=S[13],d=S[14],C=Er(L,I),h=C*wr,C&&(T=Math.cos(-C),E=Math.sin(-C),N=j*T+te*E,P=M*T+F*E,ee=L*T+I*E,te=j*-E+te*T,F=M*-E+F*T,I=L*-E+I*T,re=ne*-E+re*T,j=N,M=P,L=ee),C=Er(-k,I),g=C*wr,C&&(T=Math.cos(-C),E=Math.sin(-C),N=D*T-te*E,P=O*T-F*E,ee=k*T-I*E,re=A*E+re*T,D=N,O=P,k=ee),C=Er(O,D),m=C*wr,C&&(T=Math.cos(C),E=Math.sin(C),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=Re(Math.sqrt(D*D+O*O+k*k)),p=Re(Math.sqrt(M*M+L*L)),C=Er(j,M),_=Math.abs(C)>2e-4?C*wr:0,y=re?1/(re<0?-re:re):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!bi($r(e,Gr)),N&&e.setAttribute(`transform`,N))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=Re(f),n.scaleY=Re(p),n.rotation=Re(m)+o,n.rotationX=Re(h)+o,n.rotationY=Re(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Kr]=Ti(c)),n.xOffset=n.yOffset=0,n.force3D=w.force3D,n.renderTransform=n.svg?Mi:Zr?ji:Di,n.uncache=0,n},Ti=function(e){return(e=e.split(` `))[0]+` `+e[1]},Ei=function(e,t,n){var r=Dt(t);return Re(parseFloat(t)+parseFloat(di(e,`x`,n+`px`,r)))+r},Di=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,ji(e,t)},Oi=`0deg`,ki=`0px`,Ai=`) `,ji=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==Oi||l!==Oi)){var x=parseFloat(l)*Tr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Tr,w=Math.cos(x),a=Ei(_,a,S*w*-v),o=Ei(_,o,-Math.sin(x)*-v),s=Ei(_,s,C*w*-v+v)}h!==ki&&(y+=`perspective(`+h+Ai),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ki||o!==ki||s!==ki)&&(y+=s!==ki||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Ai),c!==Oi&&(y+=`rotate(`+c+Ai),l!==Oi&&(y+=`rotateY(`+l+Ai),u!==Oi&&(y+=`rotateX(`+u+Ai),(d!==Oi||f!==Oi)&&(y+=`skew(`+d+`, `+f+Ai),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Ai),_.style[Gr]=y||`translate(0, 0)`},Mi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Tr,c*=Tr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Tr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=Re(b),x=Re(x),S=Re(S),C=Re(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=di(f,`x`,a,`px`),y=di(f,`y`,o,`px`)),(p||m||h||g)&&(v=Re(v+p-(p*b+m*S)+h),y=Re(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=Re(v+r/100*w.width),y=Re(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[Gr]=w)},Ni=function(e,t,n,r,i){var a=360,o=F(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?wr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*Dr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*Dr)%a-~~(s/a)*a)),e._pt=u=new er(e._pt,t,n,r,s,Nr),u.e=c,u.u=`deg`,e._props.push(n),u},Pi=function(e,t){for(var n in t)e[n]=t[n];return e},Fi=function(e,t,n){var r=Pi({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[Gr]=t,o=wi(n,1),si(n,Gr),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[Gr],a[Gr]=t,o=wi(n,1),a[Gr]=c),Cr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=Dt(c),p=Dt(l),u=f===p?parseFloat(c):di(n,s,c,p),d=parseFloat(l),e._pt=new er(e._pt,o,s,u,d-u,Mr),e._pt.u=p||0,e._props.push(s));Pi(o,r)};Le(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});_i[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return fi(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ii={name:`css`,register:ni,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,T;for(m in vr||ni(),this.styles=this.styles||Xr(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(ke[m]&&An(m,t,n,r,e,i)))){if(f=typeof l,p=_i[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=Gt(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,sn.lastIndex=0,sn.test(c)||(h=Dt(c),g=Dt(l),g?h!==g&&(c=di(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],F(c)&&~c.indexOf(`random(`)&&(c=Gt(c)),Dt(c+``)||c===`auto`||(c+=w.units[m]||Dt(fi(e,m))||``),(c+``).charAt(1)===`=`&&(c=fi(e,m))):c=fi(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in jr&&(m===`autoAlpha`&&(d===1&&fi(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),ci(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=jr[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Cr,v){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=$r(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=$r(e,`perspective`),E?e.style.perspective=E:si(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||wi(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new er(this._pt,o,Gr,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new er(this._pt,b,`scaleY`,b.scaleY,(_?Be(b.scaleY,_+u):u)-b.scaleY||0,Mr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(Kr,0,o[Kr]),l=hi(l),b.svg?Ci(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&ci(this,b,`zOrigin`,b.zOrigin,g),ci(this,o,m,Ti(c),Ti(l)));continue}else if(m===`svgOrigin`){Ci(e,l,1,x,0,this);continue}else if(m in yi){Ni(this,b,m,d,_?Be(d,_+l):l);continue}else if(m===`smoothOrigin`){ci(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Fi(this,l,e);continue}}else m in o||(m=ti(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Ar.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=Dt(l)||(m in w.units?w.units[m]:h),h!==g&&(d=di(e,m,c,g)),this._pt=new er(this._pt,v?b:o,m,d,(_?Be(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?Ir:Mr),this._pt.u=g||0,v&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=Fr):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Pr);else if(m in o)pi.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){ye(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&$n(this)},render:function(e,t){if(t.tween._time||!xr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:fi,aliases:jr,getSetter:function(e,t,n){var r=jr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Cr&&t!==Kr&&(e._gsap.x||fi(e,`x`))?n&&br===n?t===`scale`?Hr:Vr:(br=n||{})&&(t===`scale`?Ur:Wr):e.style&&!re(e.style[t])?zr:~t.indexOf(`-`)?Br:Gn(e,t)},core:{_removeProperty:si,_getMatrix:Si}};mr.utils.checkPrefix=ti,mr.core.getStyleSaver=Xr,(function(e,t,n,r){var i=Le(e+`,`+t+`,`+n,function(e){Cr[e]=1});Le(t,function(e){w.units[e]=`deg`,yi[e]=1}),jr[i[13]]=e+`,`+t,Le(r,function(e){var t=e.split(`:`);jr[t[1]]=i[t[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`),Le(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){w.units[e]=`px`}),mr.registerPlugin(Ii);var Li=mr.registerPlugin(Ii)||mr;Li.core.Tween;function Ri(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zi(e,t,n){return t&&Ri(e.prototype,t),n&&Ri(e,n),e}var Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i=function(){return Bi||typeof window<`u`&&(Bi=window.gsap)&&Bi.registerPlugin&&Bi},ea=1,ta=[],q=[],na=[],ra=Date.now,ia=function(e,t){return t},aa=function(){var e=Ji.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,q),r.push.apply(r,na),q=n,na=r,ia=function(e,n){return t[e](n)}},oa=function(e,t){return~na.indexOf(e)&&na[na.indexOf(e)+1][t]},sa=function(e){return!!~Yi.indexOf(e)},ca=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:r!==!1,capture:!!i})},la=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},ua=`scrollLeft`,da=`scrollTop`,fa=function(){return Xi&&Xi.isPressed||q.cache++},pa=function(e,t){var n=function n(r){if(r||r===0){ea&&Hi.history.scrollRestoration!==`manual`&&(Hi.history.scrollRestoration=`manual`);var i=Xi&&Xi.isPressed;r=n.v=Math.round(r)||(Xi&&Xi.iOS?1:0),e(r),n.cacheID=q.cache,i&&ia(`ss`,r)}else(t||q.cache!==n.cacheID||ia(`ref`))&&(n.cacheID=q.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},ma={s:ua,p:`left`,p2:`Left`,os:`right`,os2:`Right`,d:`width`,d2:`Width`,a:`x`,sc:pa(function(e){return arguments.length?Hi.scrollTo(e,ha.sc()):Hi.pageXOffset||Ui[ua]||Wi[ua]||Gi[ua]||0})},ha={s:da,p:`top`,p2:`Top`,os:`bottom`,os2:`Bottom`,d:`height`,d2:`Height`,a:`y`,op:ma,sc:pa(function(e){return arguments.length?Hi.scrollTo(ma.sc(),e):Hi.pageYOffset||Ui[da]||Wi[da]||Gi[da]||0})},ga=function(e,t){return(t&&t._ctx&&t._ctx.selector||Bi.utils.toArray)(e)[0]||(typeof e==`string`&&Bi.config().nullTargetWarn!==!1?console.warn(`Element not found:`,e):null)},_a=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},va=function(e,t){var n=t.s,r=t.sc;sa(e)&&(e=Ui.scrollingElement||Wi);var i=q.indexOf(e),a=r===ha.sc?1:2;!~i&&(i=q.push(e)-1),q[i+a]||ca(e,`scroll`,fa);var o=q[i+a],s=o||(q[i+a]=pa(oa(e,n),!0)||(sa(e)?r:pa(function(t){return arguments.length?e[n]=t:e[n]})));return s.target=e,o||(s.smooth=Bi.getProperty(e,`scrollBehavior`)===`smooth`),s},ya=function(e,t,n){var r=e,i=e,a=ra(),o=a,s=t||50,c=Math.max(500,s*3),l=function(e,t){var c=ra();t||c-a>s?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=ra();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},ba=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},xa=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Sa=function(){Ji=Bi.core.globals().ScrollTrigger,Ji&&Ji.core&&aa()},Ca=function(e){return Bi=e||$i(),!Vi&&Bi&&typeof document<`u`&&document.body&&(Hi=window,Ui=document,Wi=Ui.documentElement,Gi=Ui.body,Yi=[Hi,Ui,Wi,Gi],Bi.utils.clamp,Qi=Bi.core.context||function(){},qi=`onpointerenter`in Gi?`pointer`:`mouse`,Ki=wa.isTouch=Hi.matchMedia&&Hi.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Hi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Zi=wa.eventTypes=(`ontouchstart`in Wi?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Wi?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return ea=0},500),Vi=1),Ji||Sa(),Vi};ma.op=ha,q.cache=0;var wa=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Vi||Ca(Bi)||console.warn(`Please gsap.registerPlugin(Observer)`),Ji||Sa();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,ee=e.onEnable,te=e.onDisable,F=e.onClick,I=e.scrollSpeed,ne=e.capture,re=e.allowClicks,L=e.lockAxis,R=e.onLockAxis;this.target=i=ga(i)||Wi,this.vars=e,u&&=Bi.utils.toArray(u),t||=1e-9,n||=0,d||=1,I||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Hi.getComputedStyle(Gi).lineHeight)||22;var z,ie,ae,oe,B,se,ce,V=this,le=0,ue=0,de=e.passive||!s&&e.passive!==!1,fe=va(i,ma),pe=va(i,ha),H=fe(),me=pe(),he=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Zi[0]===`pointerdown`,ge=sa(i),U=i.ownerDocument||Ui,_e=[0,0,0],W=[0,0,0],ve=0,ye=function(){return ve=ra()},be=function(e,t){return(V.event=e)&&u&&_a(e.target,u)||t&&he&&e.pointerType!==`touch`||A&&A(e,t)},xe=function(){V._vx.reset(),V._vy.reset(),ie.pause(),c&&c(V)},Se=function(){var e=V.deltaX=xa(_e),n=V.deltaY=xa(W),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(V,e,n,_e,W),r&&(v&&V.deltaX>0&&v(V),y&&V.deltaX<0&&y(V),S&&S(V),T&&V.deltaX<0!=le<0&&T(V),le=V.deltaX,_e[0]=_e[1]=_e[2]=0),i&&(x&&V.deltaY>0&&x(V),b&&V.deltaY<0&&b(V),C&&C(V),E&&V.deltaY<0!=ue<0&&E(V),ue=V.deltaY,W[0]=W[1]=W[2]=0),(oe||ae)&&(k&&k(V),ae&&=(p&&ae===1&&p(V),h&&h(V),0),oe=!1),se&&!(se=!1)&&R&&R(V),B&&=(P(V),!1),z=0},Ce=function(e,t,n){_e[n]+=e,W[n]+=t,V._vx.update(e),V._vy.update(t),o?z||=requestAnimationFrame(Se):Se()},we=function(e,t){L&&!ce&&(V.axis=ce=Math.abs(e)>Math.abs(t)?`x`:`y`,se=!0),ce!==`y`&&(_e[2]+=e,V._vx.update(e,!0)),ce!==`x`&&(W[2]+=t,V._vy.update(t,!0)),o?z||=requestAnimationFrame(Se):Se()},Te=function(e){if(!be(e,1)){e=ba(e,s);var t=e.clientX,r=e.clientY,i=t-V.x,a=r-V.y,o=V.isDragging;V.x=t,V.y=r,(o||(i||a)&&(Math.abs(V.startX-t)>=n||Math.abs(V.startY-r)>=n))&&(ae||=o?2:1,o||(V.isDragging=!0),we(i,a))}},Ee=V.onPress=function(e){be(e,1)||e&&e.button||(V.axis=ce=null,ie.pause(),V.isPressed=!0,e=ba(e),le=ue=0,V.startX=V.x=e.clientX,V.startY=V.y=e.clientY,V._vx.reset(),V._vy.reset(),ca(j?i:U,Zi[1],Te,de,!0),V.deltaX=V.deltaY=0,g&&g(V))},De=V.onRelease=function(e){if(!be(e,1)){la(j?i:U,Zi[1],Te,!0);var t=!isNaN(V.y-V.startY),n=V.isDragging,r=n&&(Math.abs(V.x-V.startX)>3||Math.abs(V.y-V.startY)>3),a=ba(e);!r&&t&&(V._vx.reset(),V._vy.reset(),s&&re&&Bi.delayedCall(.08,function(){if(ra()-ve>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(U.createEvent){var t=U.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Hi,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),V.isDragging=V.isGesturing=V.isPressed=!1,c&&n&&!j&&ie.restart(!0),ae&&Se(),m&&n&&m(V),_&&_(V,r)}},G=function(e){return e.touches&&e.touches.length>1&&(V.isGesturing=!0)&&M(e,V.isDragging)},Oe=function(){return(V.isGesturing=!1)||N(V)},ke=function(e){if(!be(e)){var t=fe(),n=pe();Ce((t-H)*I,(n-me)*I,1),H=t,me=n,c&&ie.restart(!0)}},Ae=function(e){if(!be(e)){e=ba(e,s),P&&(B=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Hi.innerHeight:1)*d;Ce(e.deltaX*t,e.deltaY*t,0),c&&!j&&ie.restart(!0)}},je=function(e){if(!be(e)){var t=e.clientX,n=e.clientY,r=t-V.x,i=n-V.y;V.x=t,V.y=n,oe=!0,c&&ie.restart(!0),(r||i)&&we(r,i)}},Me=function(e){V.event=e,D(V)},Ne=function(e){V.event=e,O(V)},Pe=function(e){return be(e)||ba(e,s)&&F(V)};ie=V._dc=Bi.delayedCall(l||.25,xe).pause(),V.deltaX=V.deltaY=0,V._vx=ya(0,50,!0),V._vy=ya(0,50,!0),V.scrollX=fe,V.scrollY=pe,V.isDragging=V.isGesturing=V.isPressed=!1,Qi(this),V.enable=function(e){return V.isEnabled||(ca(ge?U:i,`scroll`,fa),r.indexOf(`scroll`)>=0&&ca(ge?U:i,`scroll`,ke,de,ne),r.indexOf(`wheel`)>=0&&ca(i,`wheel`,Ae,de,ne),(r.indexOf(`touch`)>=0&&Ki||r.indexOf(`pointer`)>=0)&&(ca(i,Zi[0],Ee,de,ne),ca(U,Zi[2],De),ca(U,Zi[3],De),re&&ca(i,`click`,ye,!0,!0),F&&ca(i,`click`,Pe),M&&ca(U,`gesturestart`,G),N&&ca(U,`gestureend`,Oe),D&&ca(i,qi+`enter`,Me),O&&ca(i,qi+`leave`,Ne),k&&ca(i,qi+`move`,je)),V.isEnabled=!0,V.isDragging=V.isGesturing=V.isPressed=oe=ae=!1,V._vx.reset(),V._vy.reset(),H=fe(),me=pe(),e&&e.type&&Ee(e),ee&&ee(V)),V},V.disable=function(){V.isEnabled&&(ta.filter(function(e){return e!==V&&sa(e.target)}).length||la(ge?U:i,`scroll`,fa),V.isPressed&&(V._vx.reset(),V._vy.reset(),la(j?i:U,Zi[1],Te,!0)),la(ge?U:i,`scroll`,ke,ne),la(i,`wheel`,Ae,ne),la(i,Zi[0],Ee,ne),la(U,Zi[2],De),la(U,Zi[3],De),la(i,`click`,ye,!0),la(i,`click`,Pe),la(U,`gesturestart`,G),la(U,`gestureend`,Oe),la(i,qi+`enter`,Me),la(i,qi+`leave`,Ne),la(i,qi+`move`,je),V.isEnabled=V.isPressed=V.isDragging=!1,te&&te(V))},V.kill=V.revert=function(){V.disable();var e=ta.indexOf(V);e>=0&&ta.splice(e,1),Xi===V&&(Xi=0)},ta.push(V),j&&sa(i)&&(Xi=V),V.enable(f)},zi(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();wa.version=`3.15.1`,wa.create=function(e){return new wa(e)},wa.register=Ca,wa.getAll=function(){return ta.slice()},wa.getById=function(e){return ta.filter(function(t){return t.vars.id===e})[0]},$i()&&Bi.registerPlugin(wa);var J,Ta,Y,Ea,Da,X,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no=1,ro=Date.now,io=ro(),ao=0,oo=0,so=function(e,t,n){var r=wo(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},co=function(e,t){return t&&(!wo(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},lo=function e(){return oo&&requestAnimationFrame(e)},uo=function(){return Fa=1},fo=function(){return Fa=0},po=function(e){return e},mo=function(e){return Math.round(e*1e5)/1e5||0},ho=function(){return typeof window<`u`},go=function(){return J||ho()&&(J=window.gsap)&&J.registerPlugin&&J},_o=function(e){return!!~Oa.indexOf(e)},vo=function(e){return(e===`Height`?Qa:Y[`inner`+e])||Da[`client`+e]||X[`client`+e]},yo=function(e){return oa(e,`getBoundingClientRect`)||(_o(e)?function(){return Gs.width=Y.innerWidth,Gs.height=Qa,Gs}:function(){return Yo(e)})},bo=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=oa(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?vo(i):e[`client`+i])||0}},xo=function(e,t){return!t||~na.indexOf(e)?yo(e):function(){return Gs}},So=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=oa(e,n))?a()-yo(e)()[i]:_o(e)?(Da[n]||X[n])-vo(r):e[n]-e[`offset`+r])},Co=function(e,t){for(var n=0;n<Ba.length;n+=3)(!t||~t.indexOf(Ba[n+1]))&&e(Ba[n],Ba[n+1],Ba[n+2])},wo=function(e){return typeof e==`string`},To=function(e){return typeof e==`function`},Eo=function(e){return typeof e==`number`},Do=function(e){return typeof e==`object`},Oo=function(e,t,n){return e&&e.progress(+!t)&&n&&e.pause()},ko=function(e,t,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n);r&&r.totalTime&&(e.callbackAnimation=r)}},Ao=Math.abs,jo=`left`,Mo=`top`,No=`right`,Po=`bottom`,Fo=`width`,Io=`height`,Lo=`Right`,Ro=`Left`,zo=`Top`,Bo=`Bottom`,Vo=`padding`,Ho=`margin`,Uo=`Width`,Wo=`Height`,Go=`px`,Ko=function(e){return Y.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},qo=function(e){var t=Ko(e).position;e.style.position=t===`absolute`||t===`fixed`?t:`relative`},Jo=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Yo=function(e,t){var n=t&&Ko(e)[Ia]!==`matrix(1, 0, 0, 1, 0, 0)`&&J.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return n&&n.progress(0).kill(),r},Xo=function(e,t){var n=t.d2;return e[`offset`+n]||e[`client`+n]||0},Zo=function(e){var t=[],n=e.labels,r=e.duration(),i;for(i in n)t.push(n[i]/r);return t},Qo=function(e){return function(t){return J.utils.snap(Zo(e),t)}},$o=function(e){var t=J.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,i){i===void 0&&(i=.001);var a;if(!r)return t(e);if(r>0){for(e-=i,a=0;a<n.length;a++)if(n[a]>=e)return n[a];return n[a-1]}for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)<i||a-n<0==r<0?a:t(r<0?n-e:n+e)}},es=function(e){return function(t,n){return $o(Zo(e))(t,n.direction)}},ts=function(e,t,n,r){return n.split(`,`).forEach(function(n){return e(t,n,r)})},ns=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},rs=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},is=function(e,t,n){n&&=n.wheelHandler,n&&(e(t,`wheel`,n),e(t,`touchmove`,n))},as={startColor:`green`,endColor:`red`,indent:0,fontSize:`16px`,fontWeight:`normal`},os={toggleActions:`play`,anticipatePin:0},ss={top:0,left:0,center:.5,bottom:1,right:1},cs=function(e,t){if(wo(e)){var n=e.indexOf(`=`),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf(`%`)>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in ss?ss[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ls=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=Ea.createElement(`div`),m=_o(n)||oa(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?X:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===ha?No:Po)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],us(p,0,r,_),p},us=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Uo]=1,i[`border`+o+Uo]=0,i[n.p]=t+`px`,J.set(e,i)},Z=[],ds={},fs,ps=function(){return ro()-ao>34&&(fs||=requestAnimationFrame(Is))},ms=function(){(!Wa||!Wa.isPressed||Wa.startX>X.clientWidth)&&(q.cache++,Wa?fs||=requestAnimationFrame(Is):Is(),ao||bs(`scrollStart`),ao=ro())},hs=function(){qa=Y.innerWidth,Ka=Y.innerHeight},gs=function(e){q.cache++,(e===!0||!Pa&&!Ua&&!Ea.fullscreenElement&&!Ea.webkitFullscreenElement&&(!Ga||qa!==Y.innerWidth||Math.abs(Y.innerHeight-Ka)>Y.innerHeight*.25))&&ka.restart(!0)},_s={},vs=[],ys=function e(){return rs(Q,`scrollEnd`,e)||Ms(!0)},bs=function(e){return _s[e]&&_s[e].map(function(e){return e()})||vs},xs=[],Ss=function(e){for(var t=0;t<xs.length;t+=5)(!e||xs[t+4]&&xs[t+4].query===e)&&(xs[t].style.cssText=xs[t+1],xs[t].getBBox&&xs[t].setAttribute(`transform`,xs[t+2]||``),xs[t+3].uncache=1)},Cs=function(){q.cache++,q.forEach(function(e){return To(e)&&(e.rec=e())})},ws=function(e,t){var n;for(La=0;La<Z.length;La++)n=Z[La],n&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));$a=!0,t&&Ss(t),t||bs(`revert`)},Ts=function(e,t){q.cache++,(t||!Es)&&q.forEach(function(e){return To(e)&&e.cacheID++&&(e.rec=0)}),wo(e)&&(Xa=e,Y.history.scrollRestoration!==e&&(Y.history.scrollRestoration=e))},Es,Ds=0,Os,ks=function(){if(Os!==Ds){var e=Os=Ds;requestAnimationFrame(function(){return e===Ds&&Ms(!0)})}},As=function(){X.appendChild(Za),Qa=!Wa&&Za.offsetHeight||Y.innerHeight,X.removeChild(Za)},js=function(e){return Aa(`.gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end`).forEach(function(t){return t.style.display=e?`none`:`block`})},Ms=function(e,t){if(Da=Ea.documentElement,X=Ea.body,Oa=[Y,Ea,Da,X],ao&&!e&&!$a)ns(Q,`scrollEnd`,ys);else{As(),Es=Q.isRefreshing=!0,$a||Cs();var n=bs(`refreshInit`);Va&&Q.sort(),t||ws(),q.forEach(function(e){To(e)&&(e.smooth&&(e.target.style.scrollBehavior=`auto`),e(0))}),Z.slice(0).forEach(function(e){return e.refresh()}),$a=!1,Z.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?`offsetWidth`:`offsetHeight`,n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),eo=1,js(!0),Z.forEach(function(e){var t=So(e.scroller,e._dir),n=e.vars.end===`max`||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),js(!1),eo=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),q.forEach(function(e){To(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Ts(Xa,1),ka.pause(),Ds++,Es=2,Is(2),Z.forEach(function(e){return To(e.vars.onRefresh)&&e.vars.onRefresh(e)}),Es=Q.isRefreshing=!1,bs(`refresh`)}},Ns=0,Ps=1,Fs,Is=function(e){if(e===2||!Es&&!$a){Q.isUpdating=!0,Fs&&Fs.update(0);var t=Z.length,n=ro(),r=n-io>=50,i=t&&Z[0].scroll();if(Ps=Ns>i?-1:1,Es||(Ns=i),r&&(ao&&!Fa&&n-ao>200&&(ao=0,bs(`scrollEnd`)),Ma=io,io=n),Ps<0){for(La=t;La-->0;)Z[La]&&Z[La].update(0,r);Ps=1}else for(La=0;La<t;La++)Z[La]&&Z[La].update(0,r);Q.isUpdating=!1}fs=0},Ls=[jo,Mo,Po,No,Ho+Bo,Ho+Lo,Ho+zo,Ho+Ro,`display`,`flexShrink`,`float`,`zIndex`,`gridColumnStart`,`gridColumnEnd`,`gridRowStart`,`gridRowEnd`,`gridArea`,`justifySelf`,`alignSelf`,`placeSelf`,`order`],Rs=Ls.concat([Fo,Io,`boxSizing`,`max`+Uo,`max`+Wo,`position`,Ho,Vo,Vo+zo,Vo+Lo,Vo+Bo,Vo+Ro]),zs=function(e,t,n){Hs(n);var r=e._gsap;if(r.spacerIsNative)Hs(r.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1},Bs=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i=Ls.length,a=t.style,o=e.style,s;i--;)s=Ls[i],a[s]=n[s];a.position=n.position===`absolute`?`absolute`:`relative`,n.display===`inline`&&(a.display=`inline-block`),o[Po]=o[No]=`auto`,a.flexBasis=n.flexBasis||`auto`,a.overflow=`visible`,a.boxSizing=`border-box`,a[Fo]=Xo(e,ma)+Go,a[Io]=Xo(e,ha)+Go,a[Vo]=o[Ho]=o[Mo]=o[jo]=`0`,Hs(r),o[Fo]=o[`max`+Uo]=n[Fo],o[Io]=o[`max`+Wo]=n[Io],o[Vo]=n[Vo],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Vs=/([A-Z])/g,Hs=function(e){if(e){var t=e.t.style,n=e.length,r=0,i,a;for((e.t._gsap||J.core.getCache(e.t)).uncache=1;r<n;r+=2)a=e[r+1],i=e[r],a?t[i]=a:t[i]&&t.removeProperty(i.replace(Vs,`-$1`).toLowerCase())}},Us=function(e){for(var t=Rs.length,n=e.style,r=[],i=0;i<t;i++)r.push(Rs[i],n[Rs[i]]);return r.t=e,r},Ws=function(e,t,n){for(var r=[],i=e.length,a=n?8:0,o;a<i;a+=2)o=e[a],r.push(o,o in t?t[o]:e[a+1]);return r.t=e.t,r},Gs={left:0,top:0},Ks=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){To(e)&&(e=e(s)),wo(e)&&e.substr(0,3)===`max`&&(e=d+(e.charAt(4)===`=`?cs(`0`+e.substr(3),n):0));var m=f?f.time():0,h,g,_;if(f&&f.seek(0),isNaN(e)||(e=+e),Eo(e))f&&(e=J.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),o&&us(o,n,r,!0);else{To(t)&&(t=t(s));var v=(e||`0`).split(` `),y,b,x,S;_=ga(t,s)||X,y=Yo(_)||{},y&&(y.left||y.top)||Ko(_).display!==`none`||(S=_.style.display,_.style.display=`block`,y=Yo(_),S?_.style.display=S:_.style.removeProperty(`display`)),b=cs(v[0],y[r.d]),x=cs(v[1]||`0`,n),e=y[r.p]-c[r.p]-l+b+i-x,o&&us(o,x,r,n-x<20||o._isStart&&x>20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,us(a,C,r,w&&C>20||!w&&(u?Math.max(X[h],Da[h]):a.parentNode[h])<=C+1),u&&(c=Yo(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+Go))}return f&&_&&(h=Yo(_),f.seek(d),g=Yo(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},qs=/(webkit|moz|length|cssText|inset)/i,Js=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===X){for(a in e._stOrig=i.cssText,o=Ko(e),o)!+a&&!qs.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;J.core.getCache(e).uncache=1,t.appendChild(e)}},Ys=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},Xs=function(e,t,n){var r={};r[t.p]=`+=`+n,J.set(e,r)},Zs=function(e,t){var n=va(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=Ys(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){q.cache++,t.tween&&Is()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=J.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ns(e,`wheel`,n.wheelHandler),Q.isTouch&&ns(e,`touchmove`,n.wheelHandler),i},Q=function(){function e(t,n){Ta||e.register(J)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Ya(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!oo)this.update=this.refresh=this.kill=po;else{t=Jo(wo(t)||Eo(t)||t.nodeType?{trigger:t}:t,os);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?ma:ha,T=!l&&l!==0,E=ga(t.scroller||Y),D=J.core.getCache(E),O=_o(E),k=(`pinType`in t?t.pinType:oa(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:os.markers,N=O?0:parseFloat(Ko(E)[`border`+w.p2+Uo])||0,P=this,ee=t.onRefreshInit&&function(){return t.onRefreshInit(P)},te=bo(E,O,w),F=xo(E,O),I=0,ne=0,re=0,L=va(E,w),R,z,ie,ae,oe,B,se,ce,V,le,ue,de,fe,pe,H,me,he,ge,U,_e,W,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,G,Oe,ke,Ae,je,Me,Ne,Pe;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):L,ae=L(),$a&&L.rec==null&&(L.rec=ae),P.vars=t,n||=t.animation,`refreshPriority`in t&&(Va=1,t.refreshPriority===-9999&&(Fs=P)),D.tweenScroll=D.tweenScroll||{top:Zs(E,ha),left:Zs(E,ma)},P.tweenTo=R=D.tweenScroll[w.p],P.scrubDuration=function(e){Oe=Eo(e)&&e,Oe?G?G.duration(e):G=J.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Oe,paused:!0,onComplete:function(){return h&&h(P)}}):(G&&G.progress(1).kill(),G=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Ee=0,o||=n.vars.id),v&&((!Do(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in X.style&&J.set(O?[X,Da]:E,{scrollBehavior:`auto`}),q.forEach(function(e){return To(e)&&e.target===(O?Ea.scrollingElement||Da:E)&&(e.smooth=!1)}),ie=To(v.snapTo)?v.snapTo:v.snapTo===`labels`?Qo(n):v.snapTo===`labelsDirectional`?es(n):v.directional===!1?J.utils.snap(v.snapTo):function(e,t){return $o(v.snapTo)(e,ro()-ne<500?0:t.direction)},ke=v.duration||{min:.1,max:2},ke=Do(ke)?ja(ke.min,ke.max):ja(ke,ke),Ae=J.delayedCall(v.delay||Oe/2||.1,function(){var e=L(),t=ro()-ne<500,r=R.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!Fa&&I!==e){var i=(e-B)/pe,a=n&&!T?n.totalProgress():i,o=t?0:(a-De)/(ro()-Ma)*1e3||0,s=J.utils.clamp(-i,1-i,Ao(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=ie(c,P),Eo(l)||(l=c),u=Math.max(0,Math.round(B+l*pe)),e<=se&&e>=B&&u!==e){if(r&&!r._initted&&r.data<=Ao(u-e))return;v.inertia===!1&&(s=l-i),R(u,{duration:ke(Ao(Math.max(Ao(c-a),Ao(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Ao(u-e),onInterrupt:function(){return Ae.restart(!0)&&p&&ko(P,p)},onComplete:function(){P.update(),I=L(),n&&!T&&(G?G.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Ee=De=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&ko(P,m)}},e,s*pe,u-e-s*pe),f&&ko(P,f,R.tween)}}else P.isActive&&I!==e&&Ae.restart(!0)}).pause()),o&&(ds[o]=P),u=P.trigger=ga(u||d!==!0&&d),Pe=u&&u._gsap&&u._gsap.stRevert,Pe&&=Pe(P),d=d===!0?u:ga(d),wo(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Ho||(f=!f&&d.parentNode&&d.parentNode.style&&Ko(d.parentNode).display===`flex`?!1:Vo),P.pin=d,z=J.core.getCache(d),z.spacer?H=z.pinState:(b&&(b=ga(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),z.spacerIsNative=!!b,b&&(z.spacerState=Us(b))),z.spacer=ge=b||Ea.createElement(`div`),ge.classList.add(`pin-spacer`),o&&ge.classList.add(`pin-spacer-`+o),z.pinState=H=Us(d)),t.force3D!==!1&&J.set(d,{force3D:!0}),P.spacer=ge=z.spacer,Te=Ko(d),be=Te[f+w.os2],_e=J.getProperty(d),W=J.quickSetter(d,w.a,Go),Bs(d,ge,Te),he=Us(d)),M){de=Do(M)?Jo(M,as):as,le=ls(`scroller-start`,o,E,w,de,0),ue=ls(`scroller-end`,o,E,w,de,0,le),U=le[`offset`+w.op.d2];var Fe=ga(oa(E,`content`)||E);ce=this.markerStart=ls(`start`,o,Fe,w,de,U,0,x),V=this.markerEnd=ls(`end`,o,Fe,w,de,U,0,x),x&&(Ne=J.quickSetter([ce,V],w.a,Go)),!k&&!(na.length&&oa(E,`fixedMarkers`)===!0)&&(qo(O?X:E),J.set([le,ue],{force3D:!0}),Se=J.quickSetter(le,w.a,Go),we=J.quickSetter(ue,w.a,Go))}if(x){var Ie=x.vars.onUpdate,Le=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Ie&&Ie.apply(x,Le||[])})}if(P.previous=function(){return Z[Z.indexOf(P)-1]},P.next=function(){return Z[Z.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Pa;r!==P.isReverted&&(r&&(je=Math.max(L(),P.scroll.rec||0),re=P.progress,Me=n&&n.progress()),ce&&[ce,V,le,ue].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Pa=P,P.update(r)),!d||y&&P.isActive||(r?zs(d,ge,H):Bs(d,ge,Ko(d),xe)),r||P.update(r),Pa=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!Pa&&P.enabled||i){if(d&&r&&ao)ns(e,`scrollEnd`,ys);else{!Es&&ee&&ee(P),Pa=P,R.tween&&!a&&(R.tween.kill(),R.tween=0),G&&G.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=te(),l=F(),m=x?x.duration():So(E,w),h=pe<=.01||!pe,g=0,_=o||0,v=Do(a)?a.end:t.end,b=t.endTrigger||u,S=Do(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&ga(t.pinnedContainer,P),D=u&&Math.max(0,Z.indexOf(P))||0,A=D,j,z,ie,de,U,W,be,Se,we,Te,Ee,De,Oe;for(M&&Do(a)&&(De=J.getProperty(le,w.p),Oe=J.getProperty(ue,w.p));A-->0;)W=Z[A],W.end||W.refresh(0,1)||(Pa=P),be=W.pin,be&&(be===u||be===d||be===C)&&!W.isReverted&&(Te||=[],Te.unshift(W),W.revert(!0,!0)),W!==Z[A]&&(D--,A--);for(To(S)&&(S=S(P)),S=so(S,`start`,P),B=Ks(S,u,s,w,L(),ce,le,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),To(v)&&(v=v(P)),wo(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(wo(S)?S.split(` `)[0]:``)+v:(g=cs(v.substr(2),s),v=wo(S)?S:(x?J.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,B):B)+g,b=u)),v=so(v,`end`,P),se=Math.max(B,Ks(v||(b?`100% 0`:m),b,s,w,L()+g,V,ue,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)W=Z[A]||{},be=W.pin,be&&W.start-W._pinPush<=B&&!x&&W.end>0&&(j=W.end-(P._startClamp?Math.max(0,W.start):W.start),(be===u&&W.start-W._pinPush<B||be===C)&&isNaN(S)&&(g+=j*(1-W.progress)),be===d&&(_+=j));if(B+=g,se+=g,P._startClamp&&(P._startClamp+=g),P._endClamp&&!Es&&(P._endClamp=se||-.001,se=Math.min(se,So(E,w))),pe=se-B||(B-=.01)&&.001,h&&(re=J.utils.clamp(0,1,J.utils.normalize(B,se,je))),P._pinPush=_,ce&&g&&(j={},j[w.a]=`+=`+g,C&&(j[w.p]=`-=`+L()),J.set([ce,V],j)),d&&!(eo&&P.end>=So(E,w)))j=Ko(d),de=w===ha,ie=L(),ve=parseFloat(_e(w.a))+_,!m&&se>1&&(Ee=(O?Ea.scrollingElement||Da:E).style,Ee={style:Ee,value:Ee[`overflow`+w.a.toUpperCase()]},O&&Ko(X)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Ee.style[`overflow`+w.a.toUpperCase()]=`scroll`)),Bs(d,ge,j),he=Us(d),z=Yo(d,!0),Se=k&&va(E,de?ma:ha)(),f?(xe=[f+w.os2,pe+_+Go],xe.t=ge,A=f===Vo?Xo(d,w)+pe+_:0,A&&(xe.push(w.d,A+Go),ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Go)),Hs(xe),C&&Z.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&L(je)):(A=Xo(d,w),A&&ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Go)),k&&(U={top:z.top+(de?ie-B:Se)+Go,left:z.left+(de?Se:ie-B)+Go,boxSizing:`border-box`,position:`fixed`},U[Fo]=U[`max`+Uo]=Math.ceil(z.width)+Go,U[Io]=U[`max`+Wo]=Math.ceil(z.height)+Go,U[Ho]=U[Ho+zo]=U[Ho+Lo]=U[Ho+Bo]=U[Ho+Ro]=`0`,U[Vo]=j[Vo],U[Vo+zo]=j[Vo+zo],U[Vo+Lo]=j[Vo+Lo],U[Vo+Bo]=j[Vo+Bo],U[Vo+Ro]=j[Vo+Ro],me=Ws(H,U,y),Es&&L(0)),n?(we=n._initted,Ha(1),n.render(n.duration(),!0,!0),ye=_e(w.a)-ve+pe+_,Ce=Math.abs(pe-ye)>1,k&&Ce&&me.splice(me.length-2,2),n.render(0,!0,!0),we||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Ha(0)):ye=pe,Ee&&(Ee.value?Ee.style[`overflow`+w.a.toUpperCase()]=Ee.value:Ee.style.removeProperty(`overflow-`+w.a));else if(u&&L()&&!x)for(z=u.parentNode;z&&z!==X;)z._pinOffset&&(B-=z._pinOffset,se-=z._pinOffset),z=z.parentNode;Te&&Te.forEach(function(e){return e.revert(!1,!0)}),P.start=B,P.end=se,ae=oe=Es?je:L(),x||Es||$a||(ae<je&&L(je),P.scroll.rec=0),P.revert(!1,!0),ne=ro(),Ae&&(I=-1,Ae.restart(!0)),Pa=0,n&&T&&(n._initted||Me)&&n.progress()!==Me&&n.progress(Me||0,!0).render(n.time(),!0,!0),(h||re!==P.progress||x||p||n&&!n._initted)&&(n&&!T&&(n._initted||re||n.vars.immediateRender!==!1)&&n.totalProgress(x&&B<-.001&&!re?J.utils.normalize(B,se,0):re,!0),P.progress=h||(ae-B)/pe===re?0:re),d&&f&&(ge._pinOffset=Math.round(P.progress*ye)),G&&G.invalidate(),isNaN(De)||(De-=J.getProperty(le,w.p),Oe-=J.getProperty(ue,w.p),Xs(le,w,De),Xs(ce,w,De-(o||0)),Xs(ue,w,Oe),Xs(V,w,Oe-(o||0))),h&&!Es&&P.update(),c&&!Es&&!fe&&(fe=!0,c(P),fe=!1)}}},P.getVelocity=function(){return(L()-oe)/(ro()-Ma)*1e3||0},P.endAnimation=function(){Oo(P.callbackAnimation),n&&(G?G.progress(1):n.paused()?T||Oo(n,P.direction<0,1):Oo(n,n.reversed()))},P.labelToScroll=function(e){return n&&n.labels&&(B||P.refresh()||B)+n.labels[e]/n.duration()*pe||0},P.getTrailing=function(e){var t=Z.indexOf(P),n=P.direction>0?Z.slice(0,t).reverse():Z.slice(t+1);return(wo(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=B:e.start>=se})},P.update=function(e,t,r){if(!x||r||e){var o=Es===!0?je:P.scroll(),c=e?0:(o-B)/pe,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,ee;if(t&&(oe=ae,ae=x?L():o,v&&(De=Ee,Ee=n&&!T?n.totalProgress():u)),m&&d&&!Pa&&!no&&ao&&(!u&&B<o+(o-oe)/(ro()-Ma)*m?u=1e-4:u===1&&se>o+(o-oe)/(ro()-Ma)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Pa&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],ee=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||ee)&&(ee||l||!n)&&(To(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(G&&!Pa&&!no?(G._dp._time-G._start!==G._time&&G.render(G._dp._time-G._start),G.resetTo?G.resetTo(`totalProgress`,u,n._tTime/n._tDur):(G.vars.totalProgress=u,G.invalidate().restart())):n&&n.totalProgress(u,!!(Pa&&(ne||e)))),d){if(e&&f&&(ge.style[f+w.os2]=be),!k)W(mo(ve+ye*u));else if(O){if(N=!e&&u>p&&se+1>o&&o+1>=So(E,w),y){if(!e&&(h||N)){var te=Yo(d,!0),F=o-B;Js(d,X,te.top+(w===ha?F:0)+Go,te.left+(w===ha?0:F)+Go)}else Js(d,ge)}Hs(h||N?me:he),Ce&&u<1&&h||W(ve+(u===1&&!N?ye:0))}}v&&!R.tween&&!Pa&&!no&&Ae.restart(!0),a&&(M||_&&u&&(u<1||!to))&&Aa(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Pa?(T&&(ee&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!to)&&(s&&M&&ko(P,s),A[b]&&ko(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&ko(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(Eo(S)?S:2500)&&(Oo(P.callbackAnimation),G?G.progress(1):Oo(n,D===`reverse`?1:!u,1))):T&&i&&!Pa&&i(P)}if(we){var I=x?o/x.duration()*(x._caScrollDist||0):o;Se(I+ +!!le._isFlipped),we(I)}Ne&&Ne(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ns(E,`resize`,gs),O||ns(E,`scroll`,ms),ee&&ns(e,`refreshInit`,ee),t!==!1&&(P.progress=re=0,ae=oe=I=L()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&R?R.tween:G},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:co(e,n&&!!P._startClamp),end:co(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(xe&&e){var t=xe.indexOf(w.d)+1;xe[t]=parseFloat(xe[t])+e+Go,xe[1]=parseFloat(xe[1])+e+Go,Hs(xe)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||G&&G.pause(),je=0,z&&(z.uncache=1),ee&&rs(e,`refreshInit`,ee),Ae&&(Ae.pause(),R.tween&&R.tween.kill()&&(R.tween=0)),!O)){for(var r=Z.length;r--;)if(Z[r].scroller===E&&Z[r]!==P)return;rs(E,`resize`,gs),O||rs(E,`scroll`,ms)}},P.kill=function(e,r){P.disable(e,r),G&&!r&&G.kill(),o&&delete ds[o];var i=Z.indexOf(P);i>=0&&Z.splice(i,1),i===La&&Ps>0&&La--,i=0,Z.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||Es||$a||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),ce&&[ce,V,le,ue].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Fs===P&&(Fs=0),d&&(z&&(z.uncache=1),i=0,Z.forEach(function(e){return e.pin===d&&i++}),i||(z.spacer=0)),t.onKill&&t.onKill(P)},Z.push(P),P.enable(!1,!1),Pe&&Pe(P),n&&n.add&&!pe){var Re=P.update;P.update=function(){P.update=Re,q.cache++,B||se||P.refresh()},J.delayedCall(.01,P.update),pe=.01,B=se=0}else P.refresh();d&&ks()}},e.register=function(t){return Ta||=(J=t||go(),ho()&&window.document&&e.enable(),oo),Ta},e.defaults=function(e){if(e)for(var t in e)os[t]=e[t];return os},e.disable=function(e,t){oo=0,Z.forEach(function(n){return n[t?`kill`:`disable`](e)}),rs(Y,`wheel`,ms),rs(Ea,`scroll`,ms),clearInterval(Na),rs(Ea,`touchcancel`,po),rs(X,`touchstart`,po),ts(rs,Ea,`pointerdown,touchstart,mousedown`,uo),ts(rs,Ea,`pointerup,touchend,mouseup`,fo),ka.kill(),Co(rs);for(var n=0;n<q.length;n+=3)is(rs,q[n],q[n+1]),is(rs,q[n],q[n+2])},e.enable=function(){if(Y=window,Ea=document,Da=Ea.documentElement,X=Ea.body,J){if(Aa=J.utils.toArray,ja=J.utils.clamp,Ya=J.core.context||po,Ha=J.core.suppressOverwrites||po,Xa=Y.history.scrollRestoration||`auto`,Ns=Y.pageYOffset||0,J.core.globals(`ScrollTrigger`,e),X){oo=1,Za=document.createElement(`div`),Za.style.height=`100vh`,Za.style.position=`absolute`,As(),lo(),wa.register(J),e.isTouch=wa.isTouch,Ja=wa.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Ga=wa.isTouch===1,ns(Y,`wheel`,ms),Oa=[Y,Ea,Da,X],J.matchMedia?(e.matchMedia=function(e){var t=J.matchMedia(),n;for(n in e)t.add(n,e[n]);return t},J.addEventListener(`matchMediaInit`,function(){Cs(),ws()}),J.addEventListener(`matchMediaRevert`,function(){return Ss()}),J.addEventListener(`matchMedia`,function(){Ms(0,1),bs(`matchMedia`)}),J.matchMedia().add(`(orientation: portrait)`,function(){return hs(),hs})):console.warn(`Requires GSAP 3.11.0 or later`),hs(),ns(Ea,`scroll`,ms);var t=X.hasAttribute(`style`),n=X.style,r=n.borderTopStyle,i=J.core.Animation.prototype,a,o;for(i.revert||Object.defineProperty(i,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle=`solid`,a=Yo(X),ha.m=Math.round(a.top+ha.sc())||0,ma.m=Math.round(a.left+ma.sc())||0,r?n.borderTopStyle=r:n.removeProperty(`border-top-style`),t||(X.setAttribute(`style`,``),X.removeAttribute(`style`)),Na=setInterval(ps,250),J.delayedCall(.5,function(){return no=0}),ns(Ea,`touchcancel`,po),ns(X,`touchstart`,po),ts(ns,Ea,`pointerdown,touchstart,mousedown`,uo),ts(ns,Ea,`pointerup,touchend,mouseup`,fo),Ia=J.utils.checkPrefix(`transform`),Rs.push(Ia),Ta=ro(),ka=J.delayedCall(.2,Ms).pause(),Ba=[Ea,`visibilitychange`,function(){var e=Y.innerWidth,t=Y.innerHeight;Ea.hidden?(Ra=e,za=t):(Ra!==e||za!==t)&&gs()},Ea,`DOMContentLoaded`,Ms,Y,`load`,Ms,Y,`resize`,gs],Co(ns),Z.forEach(function(e){return e.enable(0,1)}),o=0;o<q.length;o+=3)is(rs,q[o],q[o+1]),is(rs,q[o],q[o+2])}else Ea&&Ea.addEventListener(`DOMContentLoaded`,function t(){e.enable(),Ea.removeEventListener(`DOMContentLoaded`,t)})}},e.config=function(t){`limitCallbacks`in t&&(to=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(Na)||(Na=n)&&setInterval(ps,n),`ignoreMobileResize`in t&&(Ga=e.isTouch===1&&t.ignoreMobileResize),`autoRefreshEvents`in t&&(Co(rs)||Co(ns,t.autoRefreshEvents||`none`),Ua=(t.autoRefreshEvents+``).indexOf(`resize`)===-1)},e.scrollerProxy=function(e,t){var n=ga(e),r=q.indexOf(n),i=_o(n);~r&&q.splice(r,i?6:2),t&&(i?na.unshift(Y,t,X,t,Da,t):na.unshift(n,t))},e.clearMatchMedia=function(e){Z.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(wo(e)?ga(e):e).getBoundingClientRect(),i=r[n?Fo:Io]*t||0;return n?r.right-i>0&&r.left+i<Y.innerWidth:r.bottom-i>0&&r.top+i<Y.innerHeight},e.positionInViewport=function(e,t,n){wo(e)&&(e=ga(e));var r=e.getBoundingClientRect(),i=r[n?Fo:Io],a=t==null?i/2:t in ss?ss[t]*i:~t.indexOf(`%`)?parseFloat(t)*i/100:parseFloat(t)||0;return n?(r.left+a)/Y.innerWidth:(r.top+a)/Y.innerHeight},e.killAll=function(e){if(Z.slice(0).forEach(function(e){return e.vars.id!==`ScrollSmoother`&&e.kill()}),e!==!0){var t=_s.killAll||[];_s={},t.forEach(function(e){return e()})}},e}();Q.version=`3.15.1`,Q.saveStyles=function(e){return e?Aa(e).forEach(function(e){if(e&&e.style){var t=xs.indexOf(e);t>=0&&xs.splice(t,5),xs.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),J.core.getCache(e),Ya())}}):xs},Q.revert=function(e,t){return ws(!e,t)},Q.create=function(e,t){return new Q(e,t)},Q.refresh=function(e){return e?gs(!0):(Ta||Q.register())&&Ms(!0)},Q.update=function(e){return++q.cache&&Is(e===!0?2:0)},Q.clearScrollMemory=Ts,Q.maxScroll=function(e,t){return So(e,t?ma:ha)},Q.getScrollFunc=function(e,t){return va(ga(e),t?ma:ha)},Q.getById=function(e){return ds[e]},Q.getAll=function(){return Z.filter(function(e){return e.vars.id!==`ScrollSmoother`})},Q.isScrolling=function(){return!!ao},Q.snapDirectional=$o,Q.addEventListener=function(e,t){var n=_s[e]||(_s[e]=[]);~n.indexOf(t)||n.push(t)},Q.removeEventListener=function(e,t){var n=_s[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},Q.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=J.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&To(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return To(a)&&(a=a(),ns(Q,`refresh`,function(){return a=t.batchMax()})),Aa(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(Q.create(t))}),n};var Qs=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},$s=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(wa.isTouch?` pinch-zoom`:``):`none`,t===Da&&e(X,n)},ec={auto:1,scroll:1},tc=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||J.core.getCache(i),o=ro(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==X&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(ec[(s=Ko(i)).overflowY]||ec[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!_o(i)&&(ec[(s=Ko(i)).overflowY]||ec[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},nc=function(e,t,n,r){return wa.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=tc,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ns(Ea,wa.eventTypes[0],ac,!1,!0)},onDisable:function(){return rs(Ea,wa.eventTypes[0],ac,!0)}})},rc=/(input|label|select|textarea)/i,ic,ac=function(e){var t=rc.test(e.target.tagName);(t||ic)&&(e._gsapAllow=!0,ic=t)},oc=function(e){Do(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,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=ga(e.target)||Da,l=J.core.globals().ScrollSmoother,u=l&&l.get(),d=Ja&&(e.content&&ga(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=va(c,ha),p=va(c,ma),m=1,h=(wa.isTouch&&Y.visualViewport?Y.visualViewport.scale*Y.visualViewport.width:Y.outerWidth)/Y.innerWidth,g=0,_=To(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=nc(c,e.type,!0,i),x=function(){return y=!1},S=po,C=po,w=function(){s=So(c,ha),C=ja(+!!Ja,s),n&&(S=ja(0,So(c,ma))),v=Ds},T=function(){d._gsap.y=mo(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=mo(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=mo((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=q.cache,Is()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&J.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Ja&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=mo((Y.visualViewport&&Y.visualViewport.scale||1)/h),D.pause(),e!==m&&$s(c,m>1.01||!n&&`x`),O=p(),k=f(),w(),v=Ds},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{q.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=Qs(p,i,o,So(c,ma)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=Qs(f,i,o,So(c,ha)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Ja&&D.vars.scrollY>=s||i>=s-1)&&J.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),ro()-g>1e3&&(v=0,g=ro())},e.onChange=function(e,t,r,i,a){if(Ds!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&Is()},e.onEnable=function(){$s(c,!n&&`x`),Q.addEventListener(`refresh`,j),ns(Y,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){$s(c,!0),rs(Y,`resize`,j),Q.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new wa(e),o.iOS=Ja,Ja&&!f()&&f(1),Ja&&J.ticker.add(po),A=o._dc,D=J.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Ys(f,f(),function(){return D.pause()})},onUpdate:Is,onComplete:A.vars.onComplete}),o};Q.sort=function(e){if(To(e))return Z.sort(e);var t=Y.pageYOffset||0;return Q.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Y.innerHeight}),Z.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},Q.observe=function(e){return new wa(e)},Q.normalizeScroll=function(e){if(e===void 0)return Wa;if(e===!0&&Wa)return Wa.enable();if(e===!1)Wa&&Wa.kill(),Wa=e;else{var t=e instanceof wa?e:oc(e);return Wa&&Wa.target===t.target&&Wa.kill(),_o(t.target)&&(Wa=t),t}},Q.core={_getVelocityProp:ya,_inputObserver:nc,_scrollers:q,_proxies:na,bridge:{ss:function(){ao||bs(`scrollStart`),ao=ro()},ref:function(){return Pa}}},go()&&J.registerPlugin(Q);var sc=typeof document<`u`?x.useLayoutEffect:x.useEffect,cc=e=>e&&!Array.isArray(e)&&typeof e==`object`,lc=[],uc={},dc=Li,fc=(e,t=lc)=>{let n=uc;cc(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:lc):cc(t)&&(n=t,t=`dependencies`in n?n.dependencies:lc),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,x.useRef)(!1),o=(0,x.useRef)(dc.context(()=>{},r)),s=(0,x.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&sc(()=>(a.current=!0,()=>o.current.revert()),lc),sc(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};fc.register=e=>{dc=e},fc.headless=!0;var pc=[`Identity`,`SourceCollection`,`Generation`,`Run stages`,`ContentPackage`,`Publication`],mc=[{title:`Signals become editorial judgment`,detail:`Source freshness, trend clustering, audience fit and skip reasons stay inside the run, not scattered across pages.`,className:`lg:col-span-7 lg:row-span-2`,scene:`radar`,icon:p},{title:`Drafts respect the identity`,detail:`One trend can become four distinct angles because identity is separated from the publish destination.`,className:`lg:col-span-5 lg:row-span-2`,scene:`identity`,icon:f},{title:`Guardrails before publishing`,detail:`Fact risk, title strength, structure quality and package readiness are visible before any destination publishes.`,className:`lg:col-span-4 lg:row-span-2`,scene:`quality`,icon:y},{title:`Every run leaves a trail`,detail:`HTML, JSON, images, destination attempts and learning notes are searchable after the package is generated.`,className:`lg:col-span-4 lg:row-span-2`,scene:`library`,icon:g},{title:`Operators keep momentum`,detail:`Platform drafts, matrix runs and destination retries are designed as daily actions, not hidden admin chores.`,className:`lg:col-span-4 lg:row-span-2`,scene:`publish`,icon:b}],hc=[{title:`Sources watch the market while you keep taste.`,detail:`Providers, source health and candidate topics are ranked into a usable editorial queue.`,scene:`radar`},{title:`Topics stay inside the run where decisions belong.`,detail:`The product remembers why a theme was chosen, delayed or rejected, so judgment compounds.`,scene:`package`},{title:`One signal can become identity-aware variants.`,detail:`Profiles, templates, model settings and image options are progressive instead of overwhelming.`,scene:`identity`},{title:`Quality review protects packages before publishing pressure wins.`,detail:`Scores, revision suggestions, learning notes and artifact previews form a real publishing gate.`,scene:`quality`}],gc=[{title:`Hero product in action`,detail:`Today's cockpit shows next action, latest package and publish readiness.`,scene:`cockpit`},{title:`Trend radar to topic decision`,detail:`Source freshness and editorial decisions stay inside a single run.`,scene:`radar`},{title:`Matrix identity generation`,detail:`One signal becomes identity-aware drafts without mixing publication destinations.`,scene:`identity`},{title:`Quality and publish guardrails`,detail:`The package is frozen before preview, approval or external delivery.`,scene:`quality`},{title:`Artifact library preview`,detail:`HTML, JSON, images and publish attempts remain scoped to the selected run.`,scene:`library`}],_c=`TrendPublish turns the messy middle of AI content operations into one precise product loop: source, decide, create, review, package, publish and learn. It feels like a creator workspace because the interface is built around momentum, taste and confidence instead of configuration sprawl.`,$=o();function vc({scene:e}){return(0,$.jsx)(`div`,{className:`h-full w-full scale-110 opacity-80 blur-[0.2px]`,children:(0,$.jsx)(yc,{scene:e,compact:!0})})}function yc({scene:e,compact:t=!1,dark:n=!1}){let r=n?`border-white/10 bg-[#0f0f0d] text-white`:`border-[#111]/10 bg-[#f8f4eb] text-[#111]`,i=n?`border-white/10 bg-white/[0.06]`:`border-[#111]/10 bg-white`;return(0,$.jsxs)(`div`,{className:[`relative aspect-[16/9] overflow-hidden transition-transform duration-700 ease-out group-hover:scale-[1.025]`,t?`min-h-full`:``,r].join(` `),children:[(0,$.jsx)(`div`,{className:`absolute inset-0 opacity-[0.12] [background-image:linear-gradient(to_right,currentColor_1px,transparent_1px),linear-gradient(to_bottom,currentColor_1px,transparent_1px)] [background-size:46px_46px]`}),(0,$.jsxs)(`div`,{className:`relative grid h-full grid-rows-[48px_minmax(0,1fr)]`,children:[(0,$.jsxs)(`div`,{className:[`flex items-center justify-between border-b px-4`,i].join(` `),children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-[#c83232]`}),(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-[#d99a28]`}),(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-[#137a4a]`})]}),(0,$.jsx)(`div`,{className:`text-[10px] font-black uppercase text-current/48`,children:jc(e)}),Mc(e)]}),(0,$.jsxs)(`div`,{className:`min-h-0 p-3 md:p-4`,children:[e===`cockpit`&&(0,$.jsx)(bc,{dark:n}),e===`radar`&&(0,$.jsx)(xc,{dark:n}),e===`identity`&&(0,$.jsx)(Sc,{dark:n}),e===`quality`&&(0,$.jsx)(Cc,{dark:n}),e===`library`&&(0,$.jsx)(wc,{dark:n}),e===`publish`&&(0,$.jsx)(Tc,{dark:n}),e===`package`&&(0,$.jsx)(Ec,{dark:n})]})]})]})}function bc({dark:e}){return(0,$.jsxs)(`div`,{className:`grid h-full gap-3 md:grid-cols-[1.1fr_0.9fr]`,children:[(0,$.jsxs)(Dc,{dark:e,className:`flex flex-col justify-between`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-black`,children:[(0,$.jsx)(u,{className:`size-4 text-[#f15a24]`}),`Today's publishing cockpit`]}),(0,$.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-current/54`,children:`Next best action is generated from identity, source freshness and package readiness.`})]}),(0,$.jsx)(`div`,{className:`grid gap-2`,children:[[`Run dry preview`,`Ready`],[`Package handoff`,`2 destinations`],[`Quality risk`,`Low`]].map(([t,n])=>(0,$.jsx)(Oc,{label:t,value:n,dark:e},t))})]}),(0,$.jsxs)(`div`,{className:`grid gap-3`,children:[(0,$.jsx)(kc,{label:`Quality`,value:`87`,dark:e}),(0,$.jsx)(kc,{label:`Preview destinations`,value:`3`,dark:e}),(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsx)(`div`,{className:`text-xs font-black uppercase text-current/48`,children:`Launch path`}),(0,$.jsx)(Ac,{dark:e,steps:[`Identity`,`Generation`,`Package`,`Preview`]})]})]})]})}function xc({dark:e}){return(0,$.jsxs)(`div`,{className:`grid h-full gap-3 md:grid-cols-[0.9fr_1.1fr]`,children:[(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-black`,children:[(0,$.jsx)(p,{className:`size-4 text-[#f15a24]`}),`Source health`]}),(0,$.jsx)(`div`,{className:`mt-4 grid gap-3`,children:[[`OpenAI`,`92%`],[`Hacker News`,`78%`],[`Arxiv`,`64%`]].map(([e,t],n)=>(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`div`,{className:`flex justify-between text-xs font-bold text-current/58`,children:[(0,$.jsx)(`span`,{children:e}),(0,$.jsx)(`span`,{children:t})]}),(0,$.jsx)(`div`,{className:`mt-1 h-2 overflow-hidden rounded-full bg-current/10`,children:(0,$.jsx)(`div`,{className:`h-full rounded-full bg-[#f15a24]`,style:{width:`${92-n*14}%`}})})]},e))})]}),(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsx)(`div`,{className:`text-xs font-black uppercase text-current/48`,children:`Topic decision`}),(0,$.jsx)(`div`,{className:`mt-3 grid gap-2`,children:[[`AI browsers`,`Adopt`],[`Agent memory`,`Lock`],[`Model pricing`,`Skip`]].map(([t,n])=>(0,$.jsx)(Oc,{label:t,value:n,dark:e},t))})]})]})}function Sc({dark:e}){return(0,$.jsx)(`div`,{className:`grid h-full gap-3 md:grid-cols-3`,children:[[`Founder voice`,`direct, practical`,`92`],[`Lab voice`,`dense, technical`,`88`],[`Operator voice`,`brief, tactical`,`84`]].map(([t,n,r])=>(0,$.jsxs)(Dc,{dark:e,className:`flex flex-col`,children:[(0,$.jsx)(`div`,{className:`grid size-10 place-items-center rounded-2xl bg-[#f15a24] text-sm font-black text-white`,children:t.slice(0,1)}),(0,$.jsxs)(`div`,{className:`mt-auto`,children:[(0,$.jsx)(`div`,{className:`text-sm font-black`,children:t}),(0,$.jsx)(`div`,{className:`mt-1 text-xs text-current/54`,children:n}),(0,$.jsx)(`div`,{className:`mt-4 text-3xl font-black`,children:r})]})]},t))})}function Cc({dark:e}){return(0,$.jsxs)(`div`,{className:`grid h-full gap-3 md:grid-cols-[0.86fr_1.14fr]`,children:[(0,$.jsx)(Dc,{dark:e,className:`grid place-items-center text-center`,children:(0,$.jsxs)(`div`,{children:[(0,$.jsx)(y,{className:`mx-auto size-8 text-[#137a4a]`}),(0,$.jsx)(`div`,{className:`mt-4 text-6xl font-black leading-none`,children:`87`}),(0,$.jsx)(`div`,{className:`mt-2 text-xs font-bold uppercase text-current/48`,children:`Quality score`})]})}),(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsx)(`div`,{className:`text-sm font-black`,children:`Guardrails`}),(0,$.jsx)(`div`,{className:`mt-4 grid gap-2`,children:[[`Fact risk`,`Low`],[`Title strength`,`Repair suggested`],[`Package contract`,`Ready`],[`External publish`,`Needs confirmation`]].map(([t,n])=>(0,$.jsx)(Oc,{label:t,value:n,dark:e},t))})]})]})}function wc({dark:e}){return(0,$.jsxs)(`div`,{className:`grid h-full gap-3 md:grid-cols-[1fr_0.78fr]`,children:[(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-black`,children:[(0,$.jsx)(g,{className:`size-4 text-[#f15a24]`}),`Run-scoped artifacts`]}),(0,$.jsx)(`div`,{className:`mt-4 grid gap-2`,children:[[`preview.html`,`HTML`],[`quality-review.json`,`JSON`],[`cover.png`,`Image`],[`publish-attempt.json`,`Status`]].map(([t,n])=>(0,$.jsx)(Oc,{label:t,value:n,dark:e},t))})]}),(0,$.jsxs)(Dc,{dark:e,className:`flex flex-col justify-between`,children:[(0,$.jsx)(_,{className:`size-7 text-[#137a4a]`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`text-2xl font-black`,children:`ContentPackage`}),(0,$.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-current/54`,children:`Frozen context: body, media, identity, review and handoff contract.`})]})]})]})}function Tc({dark:e}){return(0,$.jsxs)(`div`,{className:`grid h-full gap-3 md:grid-cols-[0.82fr_1.18fr]`,children:[(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-black`,children:[(0,$.jsx)(v,{className:`size-4 text-[#f15a24]`}),`Publish destinations`]}),(0,$.jsx)(Ac,{dark:e,steps:[`Prepare`,`Preview`,`Upload`,`Publish`]})]}),(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsx)(`div`,{className:`text-xs font-black uppercase text-current/48`,children:`Handoff result`}),(0,$.jsx)(`div`,{className:`mt-4 grid gap-2`,children:[[`Platform preview`,`No external touch`],[`Asset upload`,`Checksum verified`],[`Live delivery`,`Per destination`]].map(([t,n])=>(0,$.jsx)(Oc,{label:t,value:n,dark:e},t))})]})]})}function Ec({dark:e}){return(0,$.jsxs)(`div`,{className:`grid h-full gap-3 md:grid-cols-[1fr_1fr]`,children:[(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-black`,children:[(0,$.jsx)(h,{className:`size-4 text-[#f15a24]`}),`Run stages`]}),(0,$.jsx)(Ac,{dark:e,steps:[`Prepare`,`Brief`,`Source`,`Review`,`Build`]})]}),(0,$.jsxs)(Dc,{dark:e,children:[(0,$.jsx)(`div`,{className:`text-sm font-black`,children:`Package contract`}),(0,$.jsx)(`p`,{className:`mt-3 text-xs leading-5 text-current/54`,children:`Publishing receives the whole package context, not a loose HTML file.`}),(0,$.jsx)(`div`,{className:`mt-4 grid grid-cols-2 gap-2`,children:[`html`,`json`,`media`,`review`].map(e=>(0,$.jsx)(`span`,{className:`rounded-full bg-current/10 px-3 py-1 text-center text-[10px] font-black uppercase`,children:e},e))})]})]})}function Dc({dark:e,children:t,className:n=``}){return(0,$.jsx)(`div`,{className:[`min-w-0 rounded-[20px] border p-4`,e?`border-white/10 bg-white/[0.06]`:`border-[#111]/10 bg-white`,n].join(` `),children:t})}function Oc({label:e,value:t,dark:n}){return(0,$.jsxs)(`div`,{className:[`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3 rounded-xl px-3 py-2 text-xs`,n?`bg-white/[0.06]`:`bg-[#f5f1e8]`].join(` `),children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate font-bold text-current/62`,children:e}),(0,$.jsx)(`span`,{className:`font-black`,children:t})]})}function kc({label:e,value:t,dark:n}){return(0,$.jsxs)(Dc,{dark:n,children:[(0,$.jsx)(`div`,{className:`text-xs font-bold uppercase text-current/48`,children:e}),(0,$.jsx)(`div`,{className:`mt-1 text-4xl font-black leading-none`,children:t})]})}function Ac({steps:e,dark:t}){return(0,$.jsx)(`div`,{className:`mt-4 grid gap-2`,children:e.map((n,r)=>(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:[`grid size-6 shrink-0 place-items-center rounded-full text-[10px] font-black`,r===e.length-1?`bg-[#137a4a] text-white`:t?`bg-white/12 text-white/70`:`bg-[#111]/10 text-[#111]/62`].join(` `),children:r+1}),(0,$.jsx)(`span`,{className:`min-w-0 truncate text-xs font-bold text-current/62`,children:n})]},n))})}function jc(e){switch(e){case`cockpit`:return`Workspace`;case`radar`:return`Trend radar`;case`identity`:return`Identity matrix`;case`quality`:return`Quality review`;case`library`:return`Artifact library`;case`publish`:return`Publish path`;case`package`:return`Run stages`}}function Mc(e){let t=`size-5 text-current/50`;switch(e){case`cockpit`:return(0,$.jsx)(b,{className:t});case`radar`:return(0,$.jsx)(p,{className:t});case`identity`:return(0,$.jsx)(f,{className:t});case`quality`:return(0,$.jsx)(y,{className:t});case`library`:return(0,$.jsx)(g,{className:t});case`publish`:return(0,$.jsx)(v,{className:t});case`package`:return(0,$.jsx)(_,{className:t})}}Li.registerPlugin(fc,Q);function Nc(){let{login:e,isAuthenticated:r}=t(),i=a(),o=(0,x.useRef)(null),[u,f]=(0,x.useState)(``),[p,m]=(0,x.useState)(``);fc(()=>{if(globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1)return;Li.timeline({defaults:{ease:`power3.out`,duration:.78}}).from(`.taste-nav`,{autoAlpha:0,y:-18},0).from(`.hero-kicker`,{autoAlpha:0,y:18},.12).from(`.hero-title`,{autoAlpha:0,y:28},.22).from(`.hero-copy`,{autoAlpha:0,y:20},.42).from(`.hero-access`,{autoAlpha:0,y:18},.56).from(`.hero-product`,{autoAlpha:0,y:44,scale:.94,duration:.9,ease:`expo.out`},.5),Li.to(`.marquee-track`,{xPercent:-50,duration:26,ease:`none`,repeat:-1}),Li.from(`.bento-card`,{autoAlpha:0,y:42,scale:.96,stagger:.08,duration:.7,ease:`power3.out`,scrollTrigger:{trigger:`.bento-grid`,start:`top 78%`}}),Li.from(`.gallery-card`,{autoAlpha:0,y:44,scale:.96,stagger:.06,duration:.72,ease:`power3.out`,scrollTrigger:{trigger:`.launch-gallery`,start:`top 78%`}}),Li.fromTo(`.scrub-word`,{opacity:.12,y:10},{opacity:1,y:0,stagger:.018,ease:`none`,scrollTrigger:{trigger:`.scrub-copy`,start:`top 82%`,end:`bottom 42%`,scrub:!0}}),Li.utils.toArray(`.media-reveal`).forEach(e=>{Li.fromTo(e,{scale:.84,opacity:.42},{scale:1,opacity:1,ease:`none`,scrollTrigger:{trigger:e,start:`top 86%`,end:`bottom 24%`,scrub:!0}})});let e=Li.matchMedia();return e.add(`(min-width: 1024px)`,()=>{Q.create({trigger:`.pin-story`,start:`top top`,end:`bottom bottom`,pin:`.pin-copy`,pinSpacing:!1}),Li.utils.toArray(`.stack-card`).forEach((e,t)=>{Li.fromTo(e,{y:90,scale:.94},{y:t*-18,scale:1-t*.018,ease:`none`,scrollTrigger:{trigger:e,start:`top bottom-=80`,end:`top top+=180`,scrub:!0}})})}),()=>e.revert()},{scope:o});let h=()=>{r?i({to:`/workspace`}):u.trim()?(e(u),i({to:`/workspace`})):(m(`请输入 API key。`),document.querySelector(`#landing-api-key, #landing-api-key-footer`)?.focus())};return(0,$.jsxs)(`main`,{ref:o,className:`taste-landing w-full max-w-full overflow-x-hidden bg-[#080807] text-white`,children:[(0,$.jsxs)(`section`,{className:`relative min-h-dvh overflow-hidden bg-cover bg-center`,style:{backgroundImage:`linear-gradient(180deg, rgba(8,8,7,0.08), rgba(8,8,7,0.92) 58%, #080807), linear-gradient(120deg, #111111 0%, #1f1a16 42%, #080807 100%)`},children:[(0,$.jsx)(`div`,{className:`absolute inset-0 bg-[radial-gradient(circle_at_50%_30%,transparent_0,rgba(8,8,7,0.24)_34%,rgba(8,8,7,0.9)_100%)]`}),(0,$.jsx)(`div`,{className:`absolute inset-0 opacity-[0.18] [background-image:linear-gradient(to_right,rgba(255,255,255,0.22)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.16)_1px,transparent_1px)] [background-size:72px_72px]`}),(0,$.jsxs)(`div`,{className:`relative z-10 mx-auto flex min-h-dvh max-w-[1500px] flex-col px-5 py-5 md:px-8`,children:[(0,$.jsxs)(`nav`,{className:`taste-nav mx-auto flex min-h-14 w-full max-w-5xl items-center justify-between rounded-full border border-white/14 bg-white/10 px-4 text-white shadow-[0_24px_80px_rgba(0,0,0,0.32)] backdrop-blur-2xl`,children:[(0,$.jsxs)(`button`,{type:`button`,className:`text-left`,onClick:()=>globalThis.scrollTo({top:0,behavior:`smooth`}),children:[(0,$.jsx)(`span`,{className:`block text-xs font-black uppercase text-white/58`,children:`TrendPublish`}),(0,$.jsx)(`span`,{className:`block text-sm font-black`,children:`Creator OS`})]}),(0,$.jsxs)(`div`,{className:`hidden items-center gap-6 text-sm font-semibold text-white/70 md:flex`,children:[(0,$.jsx)(`a`,{className:`transition hover:text-white`,href:`#interest`,children:`Workflow`}),(0,$.jsx)(`a`,{className:`transition hover:text-white`,href:`#gallery`,children:`Gallery`}),(0,$.jsx)(`a`,{className:`transition hover:text-white`,href:`#workflow`,children:`Review`}),(0,$.jsx)(`a`,{className:`transition hover:text-white`,href:`#access`,children:`Access`})]}),(0,$.jsx)(`button`,{type:`button`,className:`min-h-11 rounded-full bg-white px-4 text-sm font-black text-[#111] transition-colors`,onClick:()=>r?void i({to:`/workspace`}):h(),children:`Workspace`})]}),(0,$.jsxs)(`div`,{className:`relative z-10 flex flex-1 flex-col items-center justify-center pb-44 pt-16 text-center md:pb-56 md:pt-20`,children:[(0,$.jsx)(`p`,{className:`hero-kicker max-w-3xl text-sm font-semibold uppercase tracking-[0.28em] text-white/62`,children:`An AI trend publishing operating system`}),(0,$.jsxs)(`h1`,{className:`hero-title mx-auto mt-7 max-w-6xl text-[clamp(2.5rem,7vw,6rem)] font-black leading-[0.92] tracking-normal text-white`,children:[`Turn AI trends`,` `,(0,$.jsxs)(`span`,{"aria-hidden":`true`,className:`mx-3 hidden h-[0.56em] w-[1.26em] overflow-hidden rounded-full border border-white/24 bg-white/12 align-middle shadow-[0_0_0_1px_rgba(255,255,255,0.22)_inset] sm:inline-flex`,children:[(0,$.jsx)(`span`,{className:`h-full w-[34%] bg-[#f15a24]`}),(0,$.jsx)(`span`,{className:`h-full w-[28%] bg-white/72`}),(0,$.jsx)(`span`,{className:`h-full flex-1 bg-[#7dd3a3]`})]}),` `,`into publish-ready content`]}),(0,$.jsx)(`p`,{className:`hero-copy mt-7 max-w-3xl text-base leading-8 text-white/74 md:text-xl md:leading-9`,children:`Scan the market, choose the angle, generate identity-aware drafts, review quality and keep every artifact inside one creator-grade workspace.`}),(0,$.jsxs)(`div`,{className:`hero-access mt-9 w-full max-w-3xl`,children:[(0,$.jsx)(`label`,{className:`sr-only`,htmlFor:`landing-api-key`,children:`Server API key`}),!r&&(0,$.jsx)(d,{id:`landing-api-key`,type:`password`,autoComplete:`current-password`,placeholder:`Paste your server API key`,value:u,className:`border-white/18 bg-white/92 text-[#111] placeholder:text-[#57534e]`,onChange:e=>{f(e.currentTarget.value),m(``)},onKeyDown:e=>{e.key===`Enter`&&h()}}),(0,$.jsxs)(`div`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:[(0,$.jsxs)(n,{size:`lg`,className:`min-h-12 rounded-full bg-white text-[#111] hover:bg-white/90`,onClick:h,children:[r?`Open workspace`:`Enter workspace`,(0,$.jsx)(s,{className:`size-5`})]}),(0,$.jsxs)(n,{type:`button`,size:`lg`,variant:`secondary`,className:`min-h-12 rounded-full border-white/28 bg-white/12 text-white hover:bg-white hover:text-[#111]`,onClick:()=>{document.getElementById(`workflow`)?.scrollIntoView({behavior:`smooth`,block:`start`})},children:[`Watch workflow`,(0,$.jsx)(l,{className:`size-5`})]})]}),p&&(0,$.jsx)(`p`,{className:`mt-3 text-sm font-semibold text-[#ffd0bd]`,children:p})]})]}),(0,$.jsx)(Pc,{floating:!0})]})]}),(0,$.jsx)(`section`,{className:`overflow-hidden border-y border-white/12 bg-[#080807] py-6 text-white`,children:(0,$.jsx)(`div`,{className:`marquee-track flex w-max gap-4`,children:[...pc,...pc].map((e,t)=>(0,$.jsx)(`span`,{className:`rounded-full border border-white/12 bg-white/[0.055] px-6 py-3 text-lg font-black uppercase text-white/50`,children:e},`${e}-${t}`))})}),(0,$.jsx)(`section`,{id:`interest`,className:`bg-[#f5f1e8] px-5 py-32 text-[#111] md:px-8 md:py-48`,children:(0,$.jsxs)(`div`,{className:`mx-auto max-w-[1500px]`,children:[(0,$.jsxs)(`div`,{className:`grid gap-8 lg:grid-cols-[1fr_0.72fr] lg:items-end`,children:[(0,$.jsx)(`h2`,{className:`max-w-6xl text-[clamp(2.6rem,4.7vw,5.1rem)] font-black leading-[0.96] tracking-normal`,children:`Make the next publishing move obvious.`}),(0,$.jsx)(`p`,{className:`max-w-2xl text-lg leading-8 text-[#4f4a43]`,children:`TrendPublish is a daily cockpit for creators and operators who need speed without losing editorial taste.`})]}),(0,$.jsx)(`div`,{className:`bento-grid mt-16 grid grid-flow-dense gap-4 lg:grid-cols-12 lg:auto-rows-[190px]`,children:mc.map(e=>{let t=e.icon;return(0,$.jsxs)(`article`,{className:`bento-card group relative overflow-hidden rounded-[28px] border border-[#111]/12 bg-white p-6 shadow-[0_28px_90px_rgba(17,17,17,0.1)] ${e.className}`,children:[(0,$.jsx)(`div`,{className:`absolute inset-0 opacity-70 transition-transform duration-700 ease-out group-hover:scale-[1.03]`,children:(0,$.jsx)(vc,{scene:e.scene})}),(0,$.jsx)(`div`,{className:`absolute inset-0 bg-[radial-gradient(circle_at_20%_15%,rgba(241,90,36,0.16),transparent_32%),linear-gradient(180deg,rgba(255,255,255,0.72),rgba(255,255,255,0.96))]`}),(0,$.jsxs)(`div`,{className:`relative flex h-full flex-col justify-between`,children:[(0,$.jsx)(t,{className:`size-8 text-[#f15a24]`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h3`,{className:`max-w-xl text-3xl font-black leading-tight`,children:e.title}),(0,$.jsx)(`p`,{className:`mt-4 max-w-xl text-sm leading-6 text-[#4f4a43] md:text-base md:leading-7`,children:e.detail})]})]})]},e.title)})})]})}),(0,$.jsx)(`section`,{id:`gallery`,className:`launch-gallery bg-[#111] px-5 py-32 text-white md:px-8 md:py-48`,children:(0,$.jsxs)(`div`,{className:`mx-auto max-w-[1500px]`,children:[(0,$.jsxs)(`div`,{className:`grid gap-8 lg:grid-cols-[0.82fr_1.18fr] lg:items-end`,children:[(0,$.jsx)(`h2`,{className:`max-w-5xl text-[clamp(2.6rem,5vw,5.4rem)] font-black leading-[0.96] tracking-normal`,children:`Five launch frames that show the product, not promises.`}),(0,$.jsx)(`p`,{className:`max-w-2xl text-lg leading-8 text-white/66`,children:`Each frame maps to a real creator workflow moment: cockpit, radar, identity matrix, quality guardrails and run-scoped artifact proof.`})]}),(0,$.jsx)(`div`,{className:`mt-16 grid gap-4 lg:grid-cols-10`,children:gc.map((e,t)=>(0,$.jsxs)(`article`,{className:[`gallery-card group overflow-hidden rounded-[30px] border border-white/12 bg-white/[0.07] p-4 shadow-[0_34px_130px_rgba(0,0,0,0.38)]`,t===0?`lg:col-span-6 lg:row-span-2`:`lg:col-span-4`].join(` `),children:[(0,$.jsx)(`div`,{className:`overflow-hidden rounded-[22px] border border-white/10 bg-[#f8f4eb]`,children:(0,$.jsx)(yc,{scene:e.scene})}),(0,$.jsxs)(`div`,{className:`grid gap-3 p-3 md:grid-cols-[1fr_0.82fr] md:p-5`,children:[(0,$.jsx)(`h3`,{className:`text-2xl font-black leading-tight`,children:e.title}),(0,$.jsx)(`p`,{className:`text-sm leading-6 text-white/62`,children:e.detail})]})]},e.title))})]})}),(0,$.jsx)(`section`,{id:`workflow`,className:`pin-story bg-[#080807] px-5 py-32 text-white md:px-8 md:py-48`,children:(0,$.jsxs)(`div`,{className:`mx-auto grid max-w-[1500px] gap-16 lg:grid-cols-[0.78fr_1.22fr]`,children:[(0,$.jsxs)(`div`,{className:`pin-copy self-start lg:min-h-dvh lg:pt-10`,children:[(0,$.jsx)(`h2`,{className:`max-w-3xl text-[clamp(2.5rem,5.7vw,5.8rem)] font-black leading-[0.95] tracking-normal`,children:`One loop from signal to shipped artifact.`}),(0,$.jsx)(`p`,{className:`scrub-copy mt-8 max-w-2xl text-lg leading-8 text-white/72 md:text-xl md:leading-9`,children:_c.split(` `).map((e,t)=>(0,$.jsxs)(`span`,{className:`scrub-word inline-block`,children:[e,t<`TrendPublish turns the messy middle of AI content operations into one precise product loop: source, decide, create, review, package, publish and learn. It feels like a creator workspace because the interface is built around momentum, taste and confidence instead of configuration sprawl.`.split(` `).length-1?`\xA0`:``]},`${e}-${t}`))})]}),(0,$.jsx)(`div`,{className:`stack-list grid gap-8`,children:hc.map(e=>(0,$.jsxs)(`article`,{className:`stack-card group overflow-hidden rounded-[32px] border border-white/12 bg-white/[0.06] p-4 shadow-[0_32px_120px_rgba(0,0,0,0.42)] backdrop-blur`,children:[(0,$.jsx)(`div`,{className:`media-reveal overflow-hidden rounded-[24px]`,children:(0,$.jsx)(yc,{scene:e.scene,dark:!0})}),(0,$.jsxs)(`div`,{className:`grid gap-4 p-4 md:grid-cols-[1fr_0.78fr] md:p-6`,children:[(0,$.jsx)(`h3`,{className:`text-3xl font-black leading-tight`,children:e.title}),(0,$.jsx)(`p`,{className:`text-sm leading-6 text-white/64 md:text-base md:leading-7`,children:e.detail})]})]},e.title))})]})}),(0,$.jsx)(`section`,{id:`access`,className:`bg-[#f5f1e8] px-5 py-32 text-[#111] md:px-8 md:py-48`,children:(0,$.jsxs)(`div`,{className:`mx-auto max-w-[1500px] overflow-hidden rounded-[36px] bg-[#111] p-6 text-white shadow-[0_32px_120px_rgba(17,17,17,0.22)] md:p-12`,children:[(0,$.jsxs)(`div`,{className:`grid gap-10 lg:grid-cols-[1.15fr_0.85fr] lg:items-end`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h2`,{className:`max-w-5xl text-[clamp(2.6rem,6vw,6.2rem)] font-black leading-[0.92] tracking-normal`,children:`Build the daily habit around judgment, not prompts.`}),(0,$.jsx)(`p`,{className:`mt-7 max-w-2xl text-lg leading-8 text-white/68`,children:`Use your existing server key and move straight into the rebuilt creator workspace. The backend workflow stays intact; the product experience becomes worth returning to.`})]}),(0,$.jsxs)(`div`,{className:`rounded-[28px] border border-white/14 bg-white/[0.07] p-4`,children:[!r&&(0,$.jsx)(d,{id:`landing-api-key-footer`,type:`password`,autoComplete:`current-password`,placeholder:`Server API key`,value:u,className:`border-white/18 bg-white text-[#111]`,onChange:e=>{f(e.currentTarget.value),m(``)},onKeyDown:e=>{e.key===`Enter`&&h()}}),(0,$.jsxs)(n,{size:`lg`,className:`mt-3 min-h-12 w-full rounded-full bg-white text-[#111] hover:bg-white/90`,onClick:h,children:[r?`Open workspace`:`Enter workspace`,(0,$.jsx)(s,{className:`size-5`})]}),(0,$.jsx)(`div`,{className:`mt-5 grid gap-3 text-sm text-white/64`,children:[`Dashboard routes stay deep-linkable`,`Typed API client generated from the server contract`,`Recoverable runs with deterministic publication`].map(e=>(0,$.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,$.jsx)(c,{className:`mt-0.5 size-4 shrink-0 text-[#7dd3a3]`}),(0,$.jsx)(`span`,{children:e})]},e))})]})]}),(0,$.jsxs)(`footer`,{className:`mt-20 flex flex-col gap-4 border-t border-white/12 pt-6 text-sm text-white/48 md:flex-row md:items-center md:justify-between`,children:[(0,$.jsx)(`span`,{children:`TrendPublish Creator OS`}),(0,$.jsx)(`span`,{children:`Identities - Sources - Runs - Publishing - Library`})]})]})})]})}function Pc({floating:e=!1}){return(0,$.jsx)(`div`,{className:`hero-product w-full max-w-6xl overflow-hidden rounded-[34px] border border-white/16 bg-white/[0.08] p-3 text-left shadow-[0_40px_160px_rgba(0,0,0,0.5)] backdrop-blur-xl ${e?`pointer-events-none absolute inset-x-5 bottom-[-250px] z-0 mx-auto hidden opacity-95 lg:block`:`mt-12 md:mt-16`}`,children:(0,$.jsxs)(`div`,{className:`overflow-hidden rounded-[26px] border border-white/12 bg-[#f8f4eb] text-[#111]`,children:[(0,$.jsxs)(`div`,{className:`flex min-h-14 items-center justify-between border-b border-[#111]/10 bg-white px-4`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-[#c83232]`}),(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-[#d99a28]`}),(0,$.jsx)(`span`,{className:`size-2 rounded-full bg-[#137a4a]`})]}),(0,$.jsx)(`div`,{className:`hidden text-xs font-black uppercase text-[#76716a] md:block`,children:`Today's publishing cockpit`}),(0,$.jsx)(m,{className:`size-5 text-[#137a4a]`})]}),(0,$.jsxs)(`div`,{className:`grid gap-4 p-4 md:grid-cols-[1.05fr_0.95fr] lg:grid-cols-[1.2fr_0.8fr]`,children:[(0,$.jsxs)(`div`,{className:`rounded-[22px] border border-[#111]/10 bg-white p-4`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-black`,children:[(0,$.jsx)(u,{className:`size-4 text-[#f15a24]`}),`AI infra shockwave`]}),(0,$.jsx)(`div`,{className:`mt-4 h-2 overflow-hidden rounded-full bg-[#e7e3d9]`,children:(0,$.jsx)(`div`,{className:`h-full w-[82%] rounded-full bg-[#f15a24]`})}),(0,$.jsx)(`div`,{className:`mt-5 grid gap-3`,children:[[`Radar`,`18 sources scored`],[`Topic`,`lead angle selected`],[`Source`,`4 identity variants`],[`Review`,`2 repairs suggested`]].map(([e,t])=>(0,$.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-3 border-b border-[#111]/10 pb-3 last:border-0 last:pb-0`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`text-sm font-black`,children:e}),(0,$.jsx)(`div`,{className:`mt-1 text-xs text-[#4f4a43]`,children:t})]}),(0,$.jsx)(c,{className:`size-4 text-[#137a4a]`})]},e))})]}),(0,$.jsxs)(`div`,{className:`grid gap-4`,children:[(0,$.jsxs)(`div`,{className:`rounded-[22px] bg-[#111] p-5 text-white`,children:[(0,$.jsx)(y,{className:`size-5 text-[#7dd3a3]`}),(0,$.jsx)(`h3`,{className:`mt-10 text-3xl font-black leading-tight`,children:`Quality review before the source leaves the room.`}),(0,$.jsx)(`p`,{className:`mt-4 text-sm leading-6 text-white/62`,children:`Review exposes fact risk, structure drift and weak title signals before publishing.`})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,$.jsxs)(`div`,{className:`rounded-[18px] border border-[#111]/10 bg-white p-4`,children:[(0,$.jsx)(`div`,{className:`text-xs font-bold text-[#76716a]`,children:`Quality`}),(0,$.jsx)(`div`,{className:`mt-1 text-3xl font-black`,children:`87`})]}),(0,$.jsxs)(`div`,{className:`rounded-[18px] border border-[#111]/10 bg-white p-4`,children:[(0,$.jsx)(`div`,{className:`text-xs font-bold text-[#76716a]`,children:`Identities`}),(0,$.jsx)(`div`,{className:`mt-1 text-3xl font-black`,children:`4`})]})]})]})]})]})})}var Fc=Nc;export{Fc as component};
@@ -1 +0,0 @@
1
- import{N as e,P as t}from"./index-DC7b8xgR.js";import{r as n}from"./sse-_t5PeRmk.js";var r=(n=1,r=20,i)=>t(e.api.runs.$get({query:{page:String(n),pageSize:String(r),...i?{planId:i}:{}}})),i=n=>t(e.api.runs[`:runId`].$get({param:{runId:n}})),a=(e,t)=>[`runs`,e,`sessions`,t,`preview`],o=(n,r)=>t(e.api.runs[`:runId`].sessions[`:sessionId`].preview.$get({param:{runId:n,sessionId:r}})),s=(n,r=0)=>t(e.api.runs[`:runId`].activities.$get({param:{runId:n},query:{afterSequence:String(r)}})),c=n=>t(e.api.runs[`:runId`].resume.$post({param:{runId:n}})),l=(n,r)=>t(e.api.runs[`:runId`].destinations[`:destinationId`].retry.$post({param:{runId:n,destinationId:r}}));function u(e,t){return n(`/api/runs/${encodeURIComponent(e)}/events?afterSequence=${t.afterSequence??0}`,t)}function d(e,t){return n(`/api/runs/${encodeURIComponent(e)}/model-stream`,t)}export{r as a,u as c,s as i,d as l,o as n,c as o,i as r,l as s,a as t};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{Ct as t,Dt as n,Et as r,Mt as i,Ot as a,St as o,Tt as s,Y as c,_t as l,at as u,cn as d,et as f,gt as p,ht as m,it as h,jt as g,kt as _,ln as v,mt as y,nt as b,pt as x,rt as S,sn as C,wt as w,xt as ee}from"./index-DC7b8xgR.js";import{t as T}from"./check-C6hl-XsU.js";import{t as E}from"./chevron-down-DXrCAjpz.js";var D=e(d(),1),O=e(v(),1),k=C(),A=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),j=Object.defineProperty,M=(e,t)=>j(e,`name`,{value:t,configurable:!0});function N(e){let t=e+`CollectionProvider`,[n,r]=a(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=M(e=>{let{scope:t,children:n}=e,r=O.useRef(null),i=O.useRef(new Map).current;return(0,k.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);c.displayName=t;let l=e+`CollectionSlot`,u=g(l),d=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=s(l,n),o=i(t,a.collectionRef);return(0,k.jsx)(u,{ref:o,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,m=g(f),h=O.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=O.useRef(null),c=i(t,o),l=s(f,n);return O.useEffect(()=>(l.itemMap.set(o,{ref:o,...a}),()=>void l.itemMap.delete(o))),(0,k.jsx)(m,{[p]:``,ref:c,children:r})});h.displayName=f;function _(t){let n=s(e+`CollectionConsumer`,t);return O.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return M(_,`useCollection`),[{Provider:c,Slot:d,ItemSlot:h},_,r]}M(N,`createCollection`);var P=new WeakMap,F=class e extends Map{static{M(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],P.set(this,!0)}set(e,t){return P.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=R(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=I(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=I(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return I(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function I(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=L(e,t);return n===-1?void 0:e[n]}M(I,`at`);function L(e,t){let n=e.length,r=R(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}M(L,`toSafeIndex`);function R(e){return e!==e||e===0?0:Math.trunc(e)}M(R,`toSafeInteger`);function z(e){let t=e+`CollectionProvider`,[r,o]=a(t),[s,c]=r(t);s.displayName=e+`CollectionStableContextProvider`;let[l,u]=r(t);l.displayName=e+`CollectionStatefulContextProvider`;let d=M(({state:e,...t})=>e?(0,k.jsx)(p,{...t,state:e}):(0,k.jsx)(f,{...t}),`CollectionProvider`);d.displayName=t;let f=M(e=>{let t=x();return(0,k.jsx)(p,{...e,state:t})},`CollectionInit`);f.displayName=e+`CollectionInit`;let p=M(e=>{let{scope:t,children:n,state:r}=e,a=O.useRef(null),[o,c]=O.useState(null),u=i(a,c),[d,f]=r,p=O.useRef(new F),m=O.useCallback(()=>{let e=p.current;return H(e)||e.sort(U),e},[]);return O.useEffect(()=>{if(!o)return;let e=W(()=>{f(e=>{let t=e.toSorted(U);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o,f]),(0,k.jsx)(s,{scope:t,collectionElementRef:u,collectionElementRefObject:a,getCollection:m,setCollection:f,registryRef:p,children:(0,k.jsx)(l,{scope:t,collectionElement:o,collection:d,children:n})})},`CollectionProviderImpl`);p.displayName=e+`CollectionProviderImpl`;let m=e+`CollectionSlot`,h=g(m),_=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=c(m,n),o=i(t,a.collectionElementRef);return(0,k.jsx)(h,{ref:o,children:r})});_.displayName=m;let v=e+`CollectionItemSlot`,y=g(v),b=O.forwardRef((e,t)=>{let{scope:r,children:a,...o}=e,s=O.useRef(null),{setCollection:l,registryRef:u}=c(v,r),d=O.useRef(o);B(d.current,o)||(d.current=o);let f=d.current,p=O.useCallback(e=>{let t=u.current;e?t.set(e,{...d.current,element:e}):s.current&&t.delete(s.current)},[u]),m=i(t,p,s);n(()=>{let e=s.current,t=u.current;e&&t.has(e)&&t.set(e,{...f,element:e})},[f,u]);let h=O.useRef(null);return O.useEffect(()=>{let e=s.current,t=h.current;((t?.element??null)!==e||e&&t?.itemData!==f)&&(h.current=e?{element:e,itemData:f}:null,l(n=>{let r=new F(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...f,element:e}),r.sort(U)}))}),O.useEffect(()=>()=>{let e=h.current;h.current=null,e&&l(t=>{if(!t.has(e.element))return t;let n=new F(t);return n.delete(e.element),n})},[l]),(0,k.jsx)(y,{"data-radix-collection-item":``,ref:m,children:a})});b.displayName=v;function x(){return O.useState(new F)}M(x,`useInitCollection`);function S(t){let{collection:n}=u(e+`CollectionConsumer`,t);return n}M(S,`useCollection`);function C(t){let{getCollection:n}=c(e+`CollectionConsumer`,t);return n}return M(C,`useGetCollection`),[{Provider:d,Slot:_,ItemSlot:b},{createCollectionScope:o,useCollection:S,useGetCollection:C,useInitCollection:x}]}M(z,`createCollection`);function B(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}M(B,`shallowEqual`);function V(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}M(V,`isElementPreceding`);function H(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}M(H,`isInDocumentOrder`);function U(e,t){return!e[1].element||!t[1].element?0:V(e[1].element,t[1].element)?-1:1}M(U,`sortByDocumentPosition`);function W(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}M(W,`getChildListObserver`);var G=Object.defineProperty,te=(e,t)=>G(e,`name`,{value:t,configurable:!0}),ne={LTR:`ltr`,RTL:`rtl`},re=O.createContext(void 0);function ie(e){let t=O.useContext(re);return e||t||ne.LTR}te(ie,`useDirection`);var ae=Object.defineProperty,oe=(e,t)=>ae(e,`name`,{value:t,configurable:!0});function se(e,[t,n]){return Math.min(n,Math.max(t,e))}oe(se,`clamp`);var ce=Object.defineProperty,K=(e,t)=>ce(e,`name`,{value:t,configurable:!0}),le={ItemAligned:`item-aligned`,Popper:`popper`},ue={LTR:`ltr`,RTL:`rtl`},de=[` `,`Enter`,`ArrowUp`,`ArrowDown`],fe=[` `,`Enter`],q=`Select`,[pe,me,he]=N(q),[J,ge]=a(q,[he,u]),_e=u(),[ve,Y]=J(q),[ye,be]=J(q);function xe(e){let{__scopeSelect:n,children:r,open:i,defaultOpen:a,onOpenChange:o,value:c,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g,internal_do_not_use_render:_}=e,v=_e(n),[y,x]=O.useState(null),[S,C]=O.useState(null),[w,ee]=O.useState(!1),T=ie(d),[E,D]=s({prop:i,defaultProp:a??!1,onChange:o,caller:q}),[A,j]=s({prop:c,defaultProp:l,onChange:u,caller:q}),M=O.useRef(null),N=O.useRef(!1),[P,F]=O.useState(null),I=K(e=>{F({value:e,hasConsumerStoppedPropagation:N.current}),j(e)},`handleUserSelect`),L=O.useRef(A);O.useEffect(()=>{let e=g?y?.ownerDocument.getElementById(g):y?.form;if(e instanceof HTMLFormElement){let t=K(()=>j(L.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[g,y,j]);let R=!y||!!g||!!y.closest(`form`),[z,B]=O.useState(new Set),V=t(),H=Array.from(z).map(e=>e.props.value).join(`;`),U=O.useCallback(e=>{B(t=>new Set(t).add(e))},[]),W=O.useCallback(e=>{B(t=>{let n=new Set(t);return n.delete(e),n})},[]),G={required:h,trigger:y,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:ee,contentId:V,value:A,onValueChange:j,hasConsumerStoppedPropagationRef:N,userSelection:P,onUserSelect:I,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:M,disabled:m,name:f,autoComplete:p,form:g,nativeOptions:z,nativeSelectKey:H,isFormControl:R};return(0,k.jsx)(b,{...v,children:(0,k.jsx)(ve,{scope:n,...G,children:(0,k.jsx)(pe.Provider,{scope:n,children:(0,k.jsx)(ye,{scope:n,onNativeOptionAdd:U,onNativeOptionRemove:W,children:ot(_)?_(G):r})})})})}K(xe,`SelectProvider`);var Se=K(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,k.jsx)(xe,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,k.jsxs)(k.Fragment,{children:[n,e?(0,k.jsx)(at,{__scopeSelect:t}):null]})})},`Select`),Ce=`SelectTrigger`,we=O.forwardRef(K(function(e,t){let{__scopeSelect:n,disabled:a=!1,...o}=e,s=_e(n),c=Y(Ce,n),l=c.disabled||a,u=i(t,c.onTriggerChange),d=me(n),f=O.useRef(`touch`),[p,m,h]=st(e=>{let t=d().filter(e=>!e.disabled),n=ct(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onUserSelect(n.value)}),g=K(e=>{l||(c.onOpenChange(!0),h()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,k.jsx)(S,{asChild:!0,...s,children:(0,k.jsx)(_.button,{type:`button`,role:`combobox`,"aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":$(c.value)?``:void 0,...o,ref:u,onClick:r(o.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&g(e)}),onPointerDown:r(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:r(o.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(c.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),m(e.key)),t&&e.key===` `||de.includes(e.key)&&(g(),e.preventDefault())})})})},`SelectTrigger`)),Te=`SelectValue`,Ee=O.forwardRef(K(function(e,t){let{__scopeSelect:r,className:a,style:o,children:s,placeholder:c=``,...l}=e,u=Y(Te,r),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,p=i(t,u.onValueNodeChange);n(()=>{d(f)},[d,f]);let m=$(u.value);return(0,k.jsx)(_.span,{...l,asChild:!m&&l.asChild,ref:p,style:{pointerEvents:`none`},children:(0,k.jsx)(O.Fragment,{children:m?c:s},m?`placeholder`:`value`)})},`SelectValue`)),De=O.forwardRef(K(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,k.jsx)(_.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Oe,ke]=J(`SelectPortal`,{forceMount:void 0}),Ae=K(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,k.jsx)(Oe,{scope:e.__scopeSelect,forceMount:n,children:(0,k.jsx)(p,{asChild:!0,...r})})},`SelectPortal`),X=`SelectContent`,je=O.forwardRef(K(function(e,t){let r=ke(X,e.__scopeSelect),{forceMount:i=r.forceMount,...a}=e,o=Y(X,e.__scopeSelect),[s,c]=O.useState();return n(()=>{c(new DocumentFragment)},[]),(0,k.jsx)(w,{present:i||o.open,children:({present:e})=>e?(0,k.jsx)(Fe,{...a,ref:t}):(0,k.jsx)(Me,{...a,fragment:s})})},`SelectContent`)),Me=O.forwardRef(K(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?D.createPortal((0,k.jsx)(Ne,{scope:n,children:(0,k.jsx)(pe.Slot,{scope:n,children:(0,k.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Z=10,[Ne,Q]=J(X),Pe=g(`SelectContent.RemoveScroll`),Fe=O.forwardRef(K(function(e,t){let{__scopeSelect:n}=e,{position:a=le.ItemAligned,onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:_,sticky:v,hideWhenDetached:b,avoidCollisions:S,...C}=e,w=Y(X,n),[T,E]=O.useState(null),[D,A]=O.useState(null),j=i(t,E),[M,N]=O.useState(null),[P,F]=O.useState(null),I=me(n),[L,R]=O.useState(!1),z=O.useRef(!1),B=O.useRef(!1),V=O.useRef(!1);O.useEffect(()=>{if(T)return x(T)},[T]),m();let H=O.useCallback(e=>{let[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focus(),document.activeElement!==i))return},[I,D]),U=O.useCallback(()=>H([M,T]),[H,M,T]);O.useEffect(()=>{L&&U()},[L,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=w;O.useEffect(()=>{if(T){let e={x:0,y:0},t=K(t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},`handlePointerMove`),n=K(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(T)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null},`handlePointerUp`);return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[T,W,G]),O.useEffect(()=>{let e=K(()=>W(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[te,ne]=st(e=>{let t=I().filter(e=>!e.disabled),n=ct(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),re=O.useCallback((e,t,n)=>{let r=!B.current;r&&(B.current=!0);let i=!z.current&&!n;w.value!==void 0&&w.value===t||i?(N(e),i&&(z.current=!0)):r&&N(e)},[w.value]),ie=O.useCallback(()=>T?.focus(),[T]),ae=O.useCallback((e,t,n)=>{if(!e)return;let r=!V.current;r&&(V.current=!0);let i=!z.current&&!n;(w.value!==void 0&&w.value===t||i||r)&&F(e)},[w.value]),oe=a===le.Popper?Le:Ie,se=oe===Le?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:_,sticky:v,hideWhenDetached:b,avoidCollisions:S}:{};return(0,k.jsx)(Ne,{scope:n,content:T,viewport:D,onViewportChange:A,itemRefCallback:re,selectedItem:M,onItemLeave:ie,itemTextRefCallback:ae,focusSelectedItem:U,selectedItemText:P,position:a,isPositioned:L,searchRef:te,children:(0,k.jsx)(y,{as:Pe,allowPinchZoom:!0,children:(0,k.jsx)(l,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:r(o,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,k.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,k.jsx)(oe,{role:`listbox`,id:w.contentId,"data-state":w.open?`open`:`closed`,dir:w.dir,onContextMenu:e=>e.preventDefault(),...C,...se,onPlaced:()=>R(!0),ref:j,style:{display:`flex`,flexDirection:`column`,outline:`none`,...C.style},onKeyDown:r(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Ie=O.forwardRef(K(function(e,t){let{__scopeSelect:r,onPlaced:a,...o}=e,s=Y(X,r),c=Q(X,r),[l,u]=O.useState(null),[d,f]=O.useState(null),p=i(t,f),m=me(r),h=O.useRef(!1),g=O.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=O.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&v&&y&&b){let e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if(s.dir!==ue.RTL){let i=r.left-t.left,a=n.left-i,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Z,d=se(a,[Z,Math.max(Z,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let i=t.right-r.right,a=window.innerWidth-n.right-i,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Z,d=se(a,[Z,Math.max(Z,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let i=m(),o=window.innerHeight-Z*2,c=v.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=f+p+c+_+g,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),ee=parseInt(C.paddingBottom,10),T=e.top+e.height/2-Z,E=o-T,D=y.offsetHeight/2,O=y.offsetTop+D,k=f+p+O,A=x-k;if(k<=T){let e=i.length>0&&y===i[i.length-1].ref.current;l.style.bottom=`0px`;let t=d.clientHeight-v.offsetTop-v.offsetHeight,n=k+Math.max(E,D+(e?ee:0)+t+g);l.style.height=n+`px`}else{let e=i.length>0&&y===i[0].ref.current;l.style.top=`0px`;let t=Math.max(T,f+v.offsetTop+(e?w:0)+D)+A;l.style.height=t+`px`,v.scrollTop=k-T+v.offsetTop}l.style.margin=`${Z}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=o+`px`,a?.(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,l,d,v,y,b,s.dir,a]);n(()=>S(),[S]);let[C,w]=O.useState();n(()=>{d&&w(window.getComputedStyle(d).zIndex)},[d]);let ee=O.useCallback(e=>{e&&g.current===!0&&(S(),x?.(),g.current=!1)},[S,x]);return(0,k.jsx)(Re,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:ee,children:(0,k.jsx)(`div`,{ref:u,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,k.jsx)(_.div,{...o,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...o.style}})})})},`SelectItemAlignedPosition`)),Le=O.forwardRef(K(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Z,...a}=e,o=_e(n);return(0,k.jsx)(h,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Re,ze]=J(X,{}),Be=`SelectViewport`,Ve=O.forwardRef(K(function(e,t){let{__scopeSelect:n,nonce:a,...o}=e,s=Q(Be,n),c=ze(Be,n),l=i(t,s.onViewportChange),u=O.useRef(0);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:a}),(0,k.jsx)(pe.Slot,{scope:n,children:(0,k.jsx)(_.div,{"data-radix-select-viewport":``,role:`presentation`,...o,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...o.style},onScroll:r(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})},`SelectViewport`)),[He,Ue]=J(`SelectGroup`),We=O.forwardRef(K(function(e,n){let{__scopeSelect:r,...i}=e,a=t();return(0,k.jsx)(He,{scope:r,id:a,children:(0,k.jsx)(_.div,{role:`group`,"aria-labelledby":a,...i,ref:n})})},`SelectGroup`)),Ge=`SelectItem`,[Ke,qe]=J(Ge),Je=O.forwardRef(K(function(e,n){let{__scopeSelect:a,value:s,disabled:c=!1,textValue:l,...u}=e,d=Y(Ge,a),f=Q(Ge,a),p=d.value===s,[m,h]=O.useState(l??``),[g,v]=O.useState(!1),y=o(e=>f.itemRefCallback?.(e,s,c)),b=i(n,y),x=t(),S=O.useRef(`touch`);function C(e){d.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),d.onUserSelect(s),d.onOpenChange(!1)}return K(C,`handleSelect`),(0,k.jsx)(Ke,{scope:a,value:s,disabled:c,textId:x,isSelected:p,onItemTextChange:O.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,k.jsx)(pe.ItemSlot,{scope:a,value:s,disabled:c,textValue:m,children:(0,k.jsx)(_.div,{role:`option`,"aria-labelledby":x,"data-highlighted":g?``:void 0,"aria-selected":p&&g,"data-state":p?`checked`:`unchecked`,"aria-disabled":c||void 0,"data-disabled":c?``:void 0,tabIndex:c?void 0:-1,...u,ref:b,onFocus:r(u.onFocus,()=>v(!0)),onBlur:r(u.onBlur,()=>v(!1)),onClick:r(u.onClick,e=>{c||S.current!==`mouse`&&C(e)}),onPointerUp:r(u.onPointerUp,e=>{c||S.current===`mouse`&&C(e)}),onPointerDown:r(u.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:r(u.onPointerMove,e=>{S.current=e.pointerType,c?f.onItemLeave?.():S.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:r(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:r(u.onKeyDown,e=>{c||e.target!==e.currentTarget||(f.searchRef?.current===``||e.key!==` `)&&(fe.includes(e.key)&&C(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Ye=`SelectItemText`,Xe=O.forwardRef(K(function(e,t){let{__scopeSelect:r,className:a,style:s,...c}=e,l=Y(Ye,r),u=Q(Ye,r),d=qe(Ye,r),f=be(Ye,r),[p,m]=O.useState(null),h=o(e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),g=i(t,m,d.onItemTextChange,h),v=p?.textContent,y=O.useMemo(()=>(0,k.jsx)(`option`,{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=f;return n(()=>(b(y),()=>x(y)),[b,x,y]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(_.span,{id:d.textId,...c,ref:g}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren&&!$(l.value)?D.createPortal(c.children,l.valueNode):null]})},`SelectItemText`)),Ze=`SelectItemIndicator`,Qe=O.forwardRef(K(function(e,t){let{__scopeSelect:n,...r}=e;return qe(Ze,n).isSelected?(0,k.jsx)(_.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),$e=`SelectScrollUpButton`,et=O.forwardRef(K(function(e,t){let r=Q($e,e.__scopeSelect),a=ze($e,e.__scopeSelect),[o,s]=O.useState(!1),c=i(t,a.onScrollButtonChange);return n(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollTop>0;s(e)};K(e,`handleScroll`);let t=r.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[r.viewport,r.isPositioned]),o?(0,k.jsx)(rt,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),tt=`SelectScrollDownButton`,nt=O.forwardRef(K(function(e,t){let r=Q(tt,e.__scopeSelect),a=ze(tt,e.__scopeSelect),[o,s]=O.useState(!1),c=i(t,a.onScrollButtonChange);return n(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};K(e,`handleScroll`);let t=r.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[r.viewport,r.isPositioned]),o?(0,k.jsx)(rt,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),rt=O.forwardRef(K(function(e,t){let{__scopeSelect:i,onAutoScroll:a,...o}=e,s=Q(`SelectScrollButton`,i),c=O.useRef(null),l=me(i),u=O.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return O.useEffect(()=>()=>u(),[u]),n(()=>{l().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[l]),(0,k.jsx)(_.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:r(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(a,50))}),onPointerMove:r(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(a,50))}),onPointerLeave:r(o.onPointerLeave,()=>{u()})})},`SelectScrollButtonImpl`)),it=`SelectBubbleInput`,at=O.forwardRef(K(function({__scopeSelect:e,...t},n){let r=Y(it,e),{value:a,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d,userSelection:f}=r,{nativeOptions:p,nativeSelectKey:m}=r,h=O.useRef(null),g=i(n,h),v=a??``,y=O.useRef(v),b=O.useRef(f),x=O.useRef(!1),S=Array.from(p).some(e=>(e.props.value??``)===``);return O.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=f!==null&&f!==b.current;b.current=f;let i=y.current!==v;y.current=v;let a=r&&i;if(r&&!i&&f.value!==v&&!f.hasConsumerStoppedPropagation&&n){x.current=!0;try{n.call(e,f.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{x.current=!1,n.call(e,v)}return}let o=a&&!f.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,v),e.dispatchEvent(t)}},[v,f]),(0,k.jsxs)(_.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>{x.current||o(e.target.value)},...t,style:{...A,...t.style},ref:g,defaultValue:v,children:[$(a)&&!S?(0,k.jsx)(`option`,{value:``}):null,Array.from(p)]},m)},`SelectBubbleInput`));function ot(e){return typeof e==`function`}K(ot,`isFunction`);function $(e){return e===``||e===void 0}K($,`shouldShowPlaceholder`);function st(e){let t=o(e),n=O.useRef(``),r=O.useRef(0),i=O.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}K(a,`updateSearch`),a(i)},[t]),a=O.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}K(st,`useTypeaheadSearch`);function ct(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=lt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}K(ct,`findNextItem`);function lt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}K(lt,`wrapArray`);var ut=c(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function dt({...e}){return(0,k.jsx)(Se,{"data-slot":`select`,...e})}function ft({...e}){return(0,k.jsx)(We,{"data-slot":`select-group`,...e})}function pt({...e}){return(0,k.jsx)(Ee,{"data-slot":`select-value`,...e})}function mt({className:e,size:t=`default`,children:n,...r}){return(0,k.jsxs)(we,{"data-slot":`select-trigger`,"data-size":t,className:f(`flex min-h-10 w-fit items-center justify-between gap-2 rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-sm text-[var(--ink)] whitespace-nowrap outline-none transition duration-200 ease-[var(--ease-standard)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] data-[placeholder]:text-[var(--muted)] data-[size=default]:min-h-10 data-[size=sm]:min-h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)]`,e),...r,children:[n,(0,k.jsx)(De,{asChild:!0,children:(0,k.jsx)(E,{className:`size-4 opacity-50`})})]})}function ht({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,k.jsx)(Ae,{children:(0,k.jsxs)(je,{"data-slot":`select-content`,className:f(`dropdown-content-motion relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] text-[var(--ink)] shadow-[0_8px_24px_rgba(20,20,24,0.12)]`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,k.jsx)(_t,{}),(0,k.jsx)(Ve,{className:f(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,k.jsx)(vt,{})]})})}function gt({className:e,children:t,...n}){return(0,k.jsxs)(Je,{"data-slot":`select-item`,className:f(`relative flex w-full cursor-default items-center gap-2 rounded-[var(--radius-xs)] py-1.5 pr-8 pl-2 text-sm text-[var(--ink)] outline-hidden select-none focus:bg-[var(--surface-2)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)] *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,k.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,k.jsx)(Qe,{children:(0,k.jsx)(T,{className:`size-4`})})}),(0,k.jsx)(Xe,{children:t})]})}function _t({className:e,...t}){return(0,k.jsx)(et,{"data-slot":`select-scroll-up-button`,className:f(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,k.jsx)(ut,{className:`size-4`})})}function vt({className:e,...t}){return(0,k.jsx)(nt,{"data-slot":`select-scroll-down-button`,className:f(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,k.jsx)(E,{className:`size-4`})})}function yt({className:e,children:t,id:n,name:r,value:i,defaultValue:a,disabled:o,required:s,onBlur:c,onChange:l,autoFocus:u,"aria-label":d,"aria-labelledby":p,"aria-invalid":m,...h}){let g=O.Children.toArray(t).flatMap(e=>!O.isValidElement(e)||e.type!==`option`?[]:[{value:String(e.props.value??``),label:e.props.children,disabled:e.props.disabled}]),_=g.find(e=>e.value===``)?.label,v=g.filter(e=>e.value!==``);return(0,k.jsxs)(Se,{name:r,value:i==null?void 0:String(i),defaultValue:a==null?void 0:String(a),disabled:o,required:s,onValueChange:e=>{l?.({target:{value:e},currentTarget:{value:e}})},children:[(0,k.jsx)(mt,{id:n,className:f(`w-full`,e),"aria-label":d,"aria-labelledby":p,"aria-invalid":m,onBlur:e=>c?.(e),autoFocus:u,...bt(h),children:(0,k.jsx)(pt,{placeholder:_})}),(0,k.jsx)(ht,{position:`popper`,align:`start`,children:(0,k.jsx)(ft,{children:v.map(e=>(0,k.jsx)(gt,{value:e.value,disabled:e.disabled,children:e.label},e.value))})})]})}function bt(e){return{"aria-describedby":e[`aria-describedby`],"aria-errormessage":e[`aria-errormessage`],title:e.title}}export{mt as a,N as c,gt as i,dt as n,pt as o,ht as r,ie as s,yt as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./use-workspace-snapshot-CZmWKC_d.js";import{r as t}from"./notifications-Dlx9WRAf.js";import{n,t as r}from"./entity-list-C7fEITZj.js";import{t as i}from"./page-grid-x4teY0Qb.js";import{sn as a}from"./index-DC7b8xgR.js";var o=a();function s(){let{data:a}=e({live:!1});return(0,o.jsx)(i,{children:(0,o.jsxs)(r,{title:`内置内容策略与渠道`,description:`只读展示当前可用的内容策略、渠道和发布类型;内部提示词与 Schema 不对外暴露。`,children:[a?.contentStrategies.map(e=>(0,o.jsx)(n,{title:e.name,description:`${e.description} · 标题建议 ${e.titleRange.minLength}-${e.titleRange.maxLength} 字`,status:`ready`,meta:(0,o.jsx)(t,{children:`strategy`})},e.id)),a?.channelDefinitions.map(e=>(0,o.jsx)(n,{title:e.name,description:`${e.description} · ${a.publicationTypeProfiles.filter(t=>t.channel===e.id).map(e=>e.name).join(` / `)}`,status:`ready`,meta:(0,o.jsx)(t,{children:`channel`})},e.id))]})})}export{s as component};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{t}from"./useMutation-C221JCx3.js";import{t as n}from"./useQuery-CH_PyDWC.js";import{Ft as r,U as i,V as a,W as o,a as s,c,l,ln as u,o as d,s as f,sn as p,u as m}from"./index-DC7b8xgR.js";import{t as h}from"./plus-Cgi-AlzH.js";import{t as g}from"./trash-2-C3dbRhyb.js";import{t as _}from"./input-D7j_2GhD.js";import{t as v}from"./select-BUT5ahxS.js";import{n as y,t as b}from"./app-dialog-ChNc5zc0.js";import{t as x}from"./form-field-BbOl9sGR.js";import{n as S,t as C}from"./entity-list-C7fEITZj.js";import{t as w}from"./pagination-BIxivGX2.js";import{t as T}from"./notifications-Dlx9WRAf.js";import{t as E}from"./page-grid-x4teY0Qb.js";var D=e(u()),O=p(),k=20;function A(e=1){return n({queryKey:[...d(),e],queryFn:()=>l(e,k)})}function j(){let e=r();return t({mutationFn:e=>c(e),onSuccess:()=>e.invalidateQueries({queryKey:d()})})}function M(){let e=r();return t({mutationFn:({id:e,body:t})=>e?m(e,t):f(t),onSuccess:()=>e.invalidateQueries({queryKey:d()})})}var N=(e=`url`)=>e===`url`?{id:`local-${crypto.randomUUID()}`,kind:e,enabled:!0,url:``}:{id:`local-${crypto.randomUUID()}`,kind:e,enabled:!0,query:``};function P(){let{page:e}=s.useSearch(),t=s.useNavigate(),{data:n}=A(e),[r,a]=(0,D.useState)(null),o=j(),c=n?.items??[];return(0,O.jsxs)(E,{children:[(0,O.jsx)(C,{title:`内容来源`,description:`只维护要直接抓取的网址和用于发现内容的搜索词;使用哪些连接由内容方案决定。`,compact:!0,summary:`共 ${n?.total??0} 组来源`,action:(0,O.jsxs)(i,{variant:`primary`,size:`sm`,onClick:()=>a(`new`),children:[(0,O.jsx)(h,{className:`size-3.5`}),`新建来源`]}),empty:!c.length,emptyTitle:`还没有内容来源`,emptyDescription:`添加网址或搜索词,之后可在多个内容方案中复用。`,pagination:(0,O.jsx)(w,{page:e,pageSize:k,total:n?.total??0,onChange:e=>t({search:{page:e}})}),children:c.map(e=>(0,O.jsx)(S,{title:e.name,description:I(e),status:e.enabled?`ready`:`disabled`,onEdit:()=>a(e),onDelete:()=>o.mutateAsync(e.id)},e.id))}),(0,O.jsx)(F,{source:r,open:!!r,onOpenChange:e=>!e&&a(null)})]})}function F({source:e,open:t,onOpenChange:n}){let[r,s]=(0,D.useState)(``),[c,l]=(0,D.useState)(),[u,d]=(0,D.useState)([]);(0,D.useEffect)(()=>{e&&(s(e===`new`?``:e.name),l(e===`new`?void 0:e.revision),d(e===`new`?[N()]:structuredClone(e.sources)))},[e]);let f=M(),p=(e,t)=>d(n=>n.map(n=>{if(n.id!==e||n.kind===t)return n;let r={id:n.id,title:n.title,enabled:n.enabled};return t===`url`?{...r,kind:t,url:``}:{...r,kind:t,query:``}})),m=(e,t)=>d(n=>n.map(n=>n.id===e?n.kind===`url`?{...n,url:t}:{...n,query:t}:n)),S=r.trim()&&u.length>0&&u.every(e=>e.kind===`url`?e.url.trim():e.query.trim());return(0,O.jsxs)(b,{open:t,onOpenChange:n,title:e===`new`?`新建内容来源`:`编辑内容来源`,description:`网址用于直接抓取,搜索词用于发现候选网页。连接策略在内容方案中统一配置。`,size:`wide`,children:[(0,O.jsxs)(`div`,{className:`grid gap-5`,children:[(0,O.jsx)(x,{label:`名称`,required:!0,helper:`用于在内容方案中识别这组来源`,children:(0,O.jsx)(_,{value:r,onChange:e=>s(e.target.value),placeholder:`例如:AI 工程资讯`})}),(0,O.jsxs)(`section`,{children:[(0,O.jsxs)(`div`,{className:`mb-2`,children:[(0,O.jsx)(`h3`,{className:`text-sm font-semibold text-[var(--ink)]`,children:`来源条目`}),(0,O.jsx)(`p`,{className:`mt-1 text-xs text-[var(--muted-strong)]`,children:`搜索只负责发现网址,最终证据仍会通过网页抓取连接获取正文。`})]}),(0,O.jsxs)(`div`,{className:`overflow-hidden rounded-[var(--radius-sm)] border border-[var(--border)]`,children:[(0,O.jsxs)(`div`,{className:`hidden grid-cols-[28px_112px_minmax(0,1fr)_36px] gap-3 border-b border-[var(--border)] bg-[var(--surface-2)] px-3 py-2 text-xs font-medium text-[var(--muted-strong)] md:grid`,children:[(0,O.jsx)(`span`,{}),(0,O.jsx)(`span`,{children:`类型`}),(0,O.jsx)(`span`,{children:`网址或搜索词`}),(0,O.jsx)(`span`,{})]}),(0,O.jsx)(`div`,{className:`divide-y divide-[var(--border)]`,children:u.map((e,t)=>(0,O.jsxs)(`div`,{className:`grid gap-3 bg-[var(--surface)] px-3 py-3 md:grid-cols-[28px_112px_minmax(0,1fr)_36px] md:items-center`,children:[(0,O.jsx)(`span`,{className:`text-xs tabular-nums text-[var(--muted)]`,children:t+1}),(0,O.jsxs)(v,{value:e.kind,"aria-label":`来源 ${t+1} 的类型`,onChange:t=>p(e.id,t.target.value),children:[(0,O.jsx)(`option`,{value:`url`,children:`网址`}),(0,O.jsx)(`option`,{value:`query`,children:`搜索词`})]}),(0,O.jsx)(_,{type:e.kind===`url`?`url`:`text`,value:e.kind===`url`?e.url:e.query,onChange:t=>m(e.id,t.target.value),placeholder:e.kind===`url`?`https://example.com/article`:`例如:AI Agent 发布`}),(0,O.jsx)(o,{label:`删除来源`,variant:`ghost`,disabled:u.length===1,onClick:()=>d(t=>t.filter(t=>t.id!==e.id)),children:(0,O.jsx)(g,{className:`size-4`})})]},e.id))})]}),(0,O.jsxs)(i,{className:`mt-3`,onClick:()=>d(e=>[...e,N()]),children:[(0,O.jsx)(h,{className:`size-4`}),`添加来源`]})]}),(0,O.jsx)(a,{error:f.error})]}),(0,O.jsxs)(y,{className:`flex justify-end gap-2`,children:[(0,O.jsx)(i,{onClick:()=>n(!1),children:`取消`}),(0,O.jsx)(i,{variant:`primary`,loading:f.isPending,disabled:!S,onClick:()=>f.mutate({id:e===`new`?void 0:e?.id,body:{name:r.trim(),enabled:!0,revision:c,sources:u.map(e=>{let t={id:e.id.startsWith(`local-`)?void 0:e.id,title:e.title?.trim()||void 0,enabled:!0};return e.kind===`url`?{...t,kind:e.kind,url:e.url.trim()}:{...t,kind:e.kind,query:e.query.trim()}})}},{onSuccess:()=>{n(!1),T.success(`内容来源已保存`,`“${r.trim()}”已可用于内容方案。`)},onError:e=>T.error(`保存内容来源失败`,e)}),children:`保存来源`})]})]})}function I(e){return`${e.sources.filter(e=>e.kind===`url`).length} 个网址 · ${e.sources.filter(e=>e.kind===`query`).length} 个搜索词`}export{P as component,j as useDeleteSourceCollection,M as useSaveSourceCollection,A as useSourceCollections};
@@ -1 +0,0 @@
1
- import{Y as e}from"./index-DC7b8xgR.js";var t=e(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]);export{t};