@moni-labs/moni-ui 0.4.2 → 0.4.4

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 (92) hide show
  1. package/README.md +6 -6
  2. package/custom-elements.json +61 -16
  3. package/dist/browser/moni-ui.iife.min.js +155 -6
  4. package/dist/browser/moni-ui.iife.min.js.br +0 -0
  5. package/dist/browser/moni-ui.iife.min.js.gz +0 -0
  6. package/dist/browser/moni-ui.iife.min.js.map +1 -1
  7. package/dist/browser/moni-ui.min.css +1 -1
  8. package/dist/browser/moni-ui.min.css.br +0 -0
  9. package/dist/browser/moni-ui.min.css.gz +0 -0
  10. package/dist/browser/moni-ui.min.css.map +1 -1
  11. package/dist/browser/moni-ui.min.js +189 -30
  12. package/dist/browser/moni-ui.min.js.br +0 -0
  13. package/dist/browser/moni-ui.min.js.gz +0 -0
  14. package/dist/browser/moni-ui.min.js.map +1 -1
  15. package/dist/cdn/chunks/{class-map-DBljv-_e.js → class-map-EVPcxmRq.js} +1 -1
  16. package/dist/cdn/chunks/{decorate-DxX3e27g.js → decorate-D4jKxi6H.js} +56 -0
  17. package/dist/cdn/chunks/if-defined-DlAUOFi9.js +1 -0
  18. package/dist/cdn/chunks/{live-B7Rjg1kt.js → live-DdUrWiUp.js} +1 -1
  19. package/dist/cdn/components/moni-app-bar.js +1 -1
  20. package/dist/cdn/components/moni-badge.js +1 -1
  21. package/dist/cdn/components/moni-bottom-sheet.js +1 -1
  22. package/dist/cdn/components/moni-button-group.js +72 -3
  23. package/dist/cdn/components/moni-button-segment.js +1 -1
  24. package/dist/cdn/components/moni-button.js +2 -1
  25. package/dist/cdn/components/moni-card.js +1 -1
  26. package/dist/cdn/components/moni-carousel.js +1 -1
  27. package/dist/cdn/components/moni-checkbox.js +1 -1
  28. package/dist/cdn/components/moni-chip.js +1 -1
  29. package/dist/cdn/components/moni-color-field.js +1 -1
  30. package/dist/cdn/components/moni-context-menu.js +1 -1
  31. package/dist/cdn/components/moni-dialog.js +1 -1
  32. package/dist/cdn/components/moni-divider.js +1 -1
  33. package/dist/cdn/components/moni-expansion.js +1 -1
  34. package/dist/cdn/components/moni-fab-menu.js +1 -1
  35. package/dist/cdn/components/moni-fab.js +1 -1
  36. package/dist/cdn/components/moni-file-field.js +1 -1
  37. package/dist/cdn/components/moni-icon.js +1 -1
  38. package/dist/cdn/components/moni-list-item.js +1 -1
  39. package/dist/cdn/components/moni-list.js +1 -1
  40. package/dist/cdn/components/moni-loading-indicator.js +22 -3
  41. package/dist/cdn/components/moni-menu-item.js +1 -1
  42. package/dist/cdn/components/moni-menu.js +1 -1
  43. package/dist/cdn/components/moni-morph-modal.js +1 -1
  44. package/dist/cdn/components/moni-nav-item.js +1 -1
  45. package/dist/cdn/components/moni-nav.js +1 -1
  46. package/dist/cdn/components/moni-progress.js +1 -1
  47. package/dist/cdn/components/moni-radio.js +1 -1
  48. package/dist/cdn/components/moni-ripple.js +1 -1
  49. package/dist/cdn/components/moni-segmented-button.js +1 -1
  50. package/dist/cdn/components/moni-select-option.js +1 -1
  51. package/dist/cdn/components/moni-select.js +1 -1
  52. package/dist/cdn/components/moni-shape.js +1 -1
  53. package/dist/cdn/components/moni-side-sheet.js +1 -1
  54. package/dist/cdn/components/moni-slider.js +1 -1
  55. package/dist/cdn/components/moni-snackbar.js +1 -1
  56. package/dist/cdn/components/moni-split-button.js +1 -1
  57. package/dist/cdn/components/moni-step.js +1 -1
  58. package/dist/cdn/components/moni-stepper.js +1 -1
  59. package/dist/cdn/components/moni-switch.js +1 -1
  60. package/dist/cdn/components/moni-tab.js +1 -1
  61. package/dist/cdn/components/moni-tabs.js +1 -1
  62. package/dist/cdn/components/moni-text-field.js +1 -1
  63. package/dist/cdn/components/moni-textarea.js +1 -1
  64. package/dist/cdn/components/moni-time-picker.js +6 -2
  65. package/dist/cdn/components/moni-toolbar.js +1 -1
  66. package/dist/cdn/components/moni-tooltip.js +1 -1
  67. package/dist/cdn/components/moni-typography.js +1 -1
  68. package/dist/cdn/importmap.json +98 -98
  69. package/dist/cdn/moni-ui.min.css +1 -1
  70. package/dist/components/_base/shared-styles.d.ts.map +1 -1
  71. package/dist/components/_base/shared-styles.js +56 -0
  72. package/dist/components/moni-button-group.d.ts +14 -0
  73. package/dist/components/moni-button-group.d.ts.map +1 -1
  74. package/dist/components/moni-button-group.js +130 -25
  75. package/dist/components/moni-button.d.ts.map +1 -1
  76. package/dist/components/moni-button.js +1 -0
  77. package/dist/components/moni-loading-indicator.d.ts.map +1 -1
  78. package/dist/components/moni-loading-indicator.js +21 -2
  79. package/dist/components/moni-time-picker.d.ts.map +1 -1
  80. package/dist/components/moni-time-picker.js +5 -1
  81. package/dist/styles/base.css +27 -7
  82. package/package.json +1 -1
  83. package/src/components/_base/shared-styles.test.ts +15 -0
  84. package/src/components/_base/shared-styles.ts +56 -0
  85. package/src/components/moni-button-group.test.ts +76 -0
  86. package/src/components/moni-button-group.ts +130 -34
  87. package/src/components/moni-button.ts +1 -0
  88. package/src/components/moni-loading-indicator.test.ts +9 -0
  89. package/src/components/moni-loading-indicator.ts +21 -2
  90. package/src/components/moni-time-picker.ts +5 -1
  91. package/src/styles/base.css +27 -7
  92. package/dist/cdn/chunks/if-defined-CuEAJKpp.js +0 -1
@@ -161,6 +161,62 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
161
161
  --ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
162
162
  --duration-fast: 150ms;
163
163
  --duration-normal: 250ms;
164
+
165
+ /* ─── Material 3 scrollbar ─── */
166
+ --_scrollbar-size: var(--moni-scrollbar-size, 0.625rem);
167
+ --_scrollbar-track: var(--moni-scrollbar-track, transparent);
168
+ --_scrollbar-thumb: var(
169
+ --moni-scrollbar-thumb,
170
+ color-mix(in srgb, var(--on-surface-variant) 38%, transparent)
171
+ );
172
+ --_scrollbar-thumb-hover: var(
173
+ --moni-scrollbar-thumb-hover,
174
+ color-mix(in srgb, var(--on-surface-variant) 62%, transparent)
175
+ );
176
+ --_scrollbar-thumb-active: var(
177
+ --moni-scrollbar-thumb-active,
178
+ color-mix(in srgb, var(--primary) 76%, transparent)
179
+ );
180
+ }
181
+
182
+ /* Firefox uses its native thin geometry and the same Material color roles. */
183
+ * {
184
+ scrollbar-width: thin;
185
+ scrollbar-color: var(--_scrollbar-thumb) var(--_scrollbar-track);
186
+ }
187
+
188
+ /* Chromium, Safari and Edge: 4px pill inside a 10px interaction gutter. */
189
+ *::-webkit-scrollbar {
190
+ inline-size: var(--_scrollbar-size);
191
+ block-size: var(--_scrollbar-size);
192
+ }
193
+
194
+ *::-webkit-scrollbar-track {
195
+ background: var(--_scrollbar-track);
196
+ border-radius: 999px;
197
+ }
198
+
199
+ *::-webkit-scrollbar-thumb {
200
+ min-block-size: 2.5rem;
201
+ background: var(--_scrollbar-thumb);
202
+ background-clip: padding-box;
203
+ border: 0.1875rem solid transparent;
204
+ border-radius: 999px;
205
+ }
206
+
207
+ *::-webkit-scrollbar-thumb:hover {
208
+ background: var(--_scrollbar-thumb-hover);
209
+ background-clip: padding-box;
210
+ border-width: 0.125rem;
211
+ }
212
+
213
+ *::-webkit-scrollbar-thumb:active {
214
+ background: var(--_scrollbar-thumb-active);
215
+ background-clip: padding-box;
216
+ }
217
+
218
+ *::-webkit-scrollbar-corner {
219
+ background: transparent;
164
220
  }
165
221
 
166
222
  /* ─── 4. Utility classes ─────────────────────────────────────────────── */
@@ -1430,6 +1486,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
1430
1486
  .button {
1431
1487
  box-sizing: var(--moni-button-box-sizing, border-box);
1432
1488
  display: inline-flex;
1489
+ inline-size: var(--moni-button-inline-size, auto);
1433
1490
  --_button-visual-height: 3.5rem;
1434
1491
  align-items: center;
1435
1492
  justify-content: center;
@@ -5088,17 +5145,19 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
5088
5145
  }
5089
5146
 
5090
5147
  :host([orientation="horizontal"]) {
5091
- inline-size: auto;
5148
+ inline-size: min(40rem, 100%);
5092
5149
  }
5093
5150
  :host([orientation="horizontal"]) .main-content {
5094
5151
  flex-direction: row;
5095
5152
  align-items: center;
5153
+ justify-content: center;
5096
5154
  gap: 2rem;
5097
5155
  }
5098
5156
  :host([orientation="horizontal"]) .left-pane {
5099
5157
  display: flex;
5100
5158
  flex-direction: column;
5101
5159
  justify-content: center;
5160
+ flex: none;
5102
5161
  }
5103
5162
 
5104
5163
  /* Main Content (Default vertical) */
@@ -5128,6 +5187,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
5128
5187
  :host(:not([orientation])) .main-content {
5129
5188
  flex-direction: row;
5130
5189
  align-items: center;
5190
+ justify-content: center;
5131
5191
  gap: 2rem;
5132
5192
  }
5133
5193
  :host([orientation='auto']) .left-pane,
@@ -5135,6 +5195,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
5135
5195
  display: flex;
5136
5196
  flex-direction: column;
5137
5197
  justify-content: center;
5198
+ flex: none;
5138
5199
  }
5139
5200
  }
5140
5201
 
@@ -5951,17 +6012,23 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
5951
6012
  style=${this._anchorName?`--_anchor-name: ${this._anchorName}`:``}
5952
6013
  >
5953
6014
  <slot>${this.text}</slot>
5954
- </div>`}};K([V({reflect:!0})],Rt.prototype,`text`,void 0),K([V({reflect:!0})],Rt.prototype,`position`,void 0),K([V({reflect:!0})],Rt.prototype,`size`,void 0),K([V({type:Boolean,reflect:!0})],Rt.prototype,`rich`,void 0),Rt=K([B(`moni-tooltip`)],Rt);var zt=class extends W{constructor(...e){super(...e),this.variant=`standard`,this.size=`small`,this.multi=!1,this.gap=``,this.role=`group`,this.label=``,this.labelledBy=``}static{this.styles=[G,g`
6015
+ </div>`}};K([V({reflect:!0})],Rt.prototype,`text`,void 0),K([V({reflect:!0})],Rt.prototype,`position`,void 0),K([V({reflect:!0})],Rt.prototype,`size`,void 0),K([V({type:Boolean,reflect:!0})],Rt.prototype,`rich`,void 0),Rt=K([B(`moni-tooltip`)],Rt);var zt=class extends W{constructor(...e){super(...e),this._activeObserver=new MutationObserver(()=>this.updateSelectionNeighbors()),this.variant=`standard`,this.size=`small`,this.multi=!1,this.selectionRequired=!1,this.shape=`round`,this.resizing=`fixed`,this.gap=``,this.role=`group`,this.label=``,this.labelledBy=``}connectedCallback(){super.connectedCallback(),this._activeObserver.observe(this,{subtree:!0,attributes:!0,attributeFilter:[`active`]})}disconnectedCallback(){this._activeObserver.disconnect(),super.disconnectedCallback()}static{this.styles=[G,g`
5955
6016
  :host {
5956
6017
  display: inline-flex;
5957
6018
  align-items: center;
5958
6019
  vertical-align: middle;
6020
+ max-inline-size: 100%;
6021
+ }
6022
+ :host([variant='connected']),
6023
+ :host([resizing='flexible']) {
6024
+ inline-size: 100%;
5959
6025
  }
5960
6026
 
5961
6027
  .group-container {
5962
6028
  display: inline-flex;
5963
6029
  align-items: center;
5964
6030
  width: 100%;
6031
+ flex-wrap: nowrap;
5965
6032
  }
5966
6033
 
5967
6034
  slot {
@@ -5991,7 +6058,70 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
5991
6058
  :host([variant='connected']) .group-container {
5992
6059
  gap: 0.125rem; /* 2dp */
5993
6060
  }
5994
- `]}updated(e){super.updated(e),(e.has(`variant`)||e.has(`size`)||e.has(`gap`))&&this.updateChildren()}handleSlotChange(){this.updateChildren()}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.slottedButtons.filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`),t=this.gap.trim().toLowerCase(),n=![`0`,`0px`,`0rem`,`0em`].includes(t);e.forEach((t,r)=>{if(t.setAttribute(`size`,this.size),this.variant===`connected`)n?e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round`):r===e.length-1?t.setAttribute(`shape`,`right-round`):t.setAttribute(`shape`,`inner-round`):e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round-flat`):r===e.length-1?t.setAttribute(`shape`,`right-round-flat`):t.setAttribute(`shape`,`no-round`);else{let e=t.getAttribute(`shape`);(!e||[`left-round-flat`,`right-round-flat`,`no-round`,`left-round`,`right-round`,`inner-round`].includes(e))&&t.setAttribute(`shape`,`round`)}})}handlePointerDown(e){if(this.variant!==`standard`)return;let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.slottedButtons.filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`),r=n.indexOf(t);if(r===-1)return;let i=n[r-1],a=n[r+1];i&&(i.style.transition=`transform 200ms cubic-bezier(0.2, 0, 0, 1)`,i.style.transform=`translateX(-6px) scaleX(0.92)`,i.style.transformOrigin=`right center`),a&&(a.style.transition=`transform 200ms cubic-bezier(0.2, 0, 0, 1)`,a.style.transform=`translateX(6px) scaleX(0.92)`,a.style.transformOrigin=`left center`)}handlePointerUp(){this.slottedButtons.filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`).forEach(e=>{e.style.transform=``,e.style.transformOrigin=``})}handleClick(e){let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.slottedButtons.filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`);this.multi||n.forEach(e=>{e!==t&&(e.removeAttribute(`active`),e.active=!1)});let r=t.hasAttribute(`active`);r?(t.removeAttribute(`active`),t.active=!1):(t.setAttribute(`active`,``),t.active=!0),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{button:t,active:!r}}))}render(){let e=this.getGapValue(this.gap),t=this.gap.trim().toLowerCase(),n=[`0`,`0px`,`0rem`,`0em`].includes(t);return R`
6061
+ :host([variant='connected']) ::slotted(moni-button),
6062
+ :host([variant='connected']) ::slotted(moni-icon-button),
6063
+ :host([resizing='flexible']) ::slotted(moni-button) {
6064
+ flex: 1 1 0;
6065
+ }
6066
+ :host([variant='connected']) ::slotted(moni-button) {
6067
+ --moni-button-inline-size: 100%;
6068
+ min-inline-size: 0;
6069
+ }
6070
+ :host([variant='connected'][size='xsmall']) ::slotted(moni-button),
6071
+ :host([variant='connected'][size='xsmall']) ::slotted(moni-icon-button),
6072
+ :host([variant='connected'][size='small']) ::slotted(moni-button),
6073
+ :host([variant='connected'][size='small']) ::slotted(moni-icon-button) {
6074
+ min-inline-size: 3rem;
6075
+ }
6076
+
6077
+ /* M3 Expressive selection emphasis. Increasing the button's internal
6078
+ * space (instead of scaling the host) keeps labels and icons crisp and
6079
+ * lets the existing padding transition transfer width smoothly. */
6080
+ :host([variant='standard'][size='xsmall']) ::slotted(moni-button[active]),
6081
+ :host([variant='standard'][size='xsmall']) ::slotted(moni-button[data-group-pressed]) {
6082
+ --moni-button-padding: 0 1.25rem;
6083
+ }
6084
+ :host([variant='standard'][size='small']) ::slotted(moni-button[active]),
6085
+ :host([variant='standard'][size='small']) ::slotted(moni-button[data-group-pressed]) {
6086
+ --moni-button-padding: 0 1.75rem;
6087
+ }
6088
+ :host([variant='standard'][size='medium']) ::slotted(moni-button[active]),
6089
+ :host([variant='standard'][size='medium']) ::slotted(moni-button[data-group-pressed]) {
6090
+ --moni-button-padding: 0 2.375rem;
6091
+ }
6092
+ :host([variant='standard'][size='large']) ::slotted(moni-button[active]),
6093
+ :host([variant='standard'][size='large']) ::slotted(moni-button[data-group-pressed]) {
6094
+ --moni-button-padding: 0 4rem;
6095
+ }
6096
+ :host([variant='standard'][size='xlarge']) ::slotted(moni-button[active]),
6097
+ :host([variant='standard'][size='extra']) ::slotted(moni-button[active]),
6098
+ :host([variant='standard'][size='xlarge']) ::slotted(moni-button[data-group-pressed]),
6099
+ :host([variant='standard'][size='extra']) ::slotted(moni-button[data-group-pressed]) {
6100
+ --moni-button-padding: 0 5.25rem;
6101
+ }
6102
+
6103
+ :host([variant='standard'][size='xsmall']) ::slotted(moni-button[data-group-adjacent-pressed]) { --moni-button-padding: 0 .5rem; }
6104
+ :host([variant='standard'][size='small']) ::slotted(moni-button[data-group-adjacent-pressed]) { --moni-button-padding: 0 .75rem; }
6105
+ :host([variant='standard'][size='medium']) ::slotted(moni-button[data-group-adjacent-pressed]) { --moni-button-padding: 0 1.25rem; }
6106
+ :host([variant='standard'][size='large']) ::slotted(moni-button[data-group-adjacent-pressed]) { --moni-button-padding: 0 2.75rem; }
6107
+ :host([variant='standard'][size='xlarge']) ::slotted(moni-button[data-group-adjacent-pressed]),
6108
+ :host([variant='standard'][size='extra']) ::slotted(moni-button[data-group-adjacent-pressed]) { --moni-button-padding: 0 3.75rem; }
6109
+
6110
+ /* A selected standard button borrows space from its immediate
6111
+ * neighbours, keeping the group's outside footprint stable. */
6112
+ :host([variant='standard'][size='xsmall']) ::slotted(moni-button[data-group-adjacent-selected='shared']) { --moni-button-padding: 0 .5rem; }
6113
+ :host([variant='standard'][size='xsmall']) ::slotted(moni-button[data-group-adjacent-selected='sole']) { --moni-button-padding: 0 .25rem; }
6114
+ :host([variant='standard'][size='small']) ::slotted(moni-button[data-group-adjacent-selected='shared']) { --moni-button-padding: 0 .625rem; }
6115
+ :host([variant='standard'][size='small']) ::slotted(moni-button[data-group-adjacent-selected='sole']) { --moni-button-padding: 0 .25rem; }
6116
+ :host([variant='standard'][size='medium']) ::slotted(moni-button[data-group-adjacent-selected='shared']) { --moni-button-padding: 0 1.0625rem; }
6117
+ :host([variant='standard'][size='medium']) ::slotted(moni-button[data-group-adjacent-selected='sole']) { --moni-button-padding: 0 .625rem; }
6118
+ :host([variant='standard'][size='large']) ::slotted(moni-button[data-group-adjacent-selected='shared']) { --moni-button-padding: 0 2.5rem; }
6119
+ :host([variant='standard'][size='large']) ::slotted(moni-button[data-group-adjacent-selected='sole']) { --moni-button-padding: 0 2rem; }
6120
+ :host([variant='standard'][size='xlarge']) ::slotted(moni-button[data-group-adjacent-selected='shared']),
6121
+ :host([variant='standard'][size='extra']) ::slotted(moni-button[data-group-adjacent-selected='shared']) { --moni-button-padding: 0 3.375rem; }
6122
+ :host([variant='standard'][size='xlarge']) ::slotted(moni-button[data-group-adjacent-selected='sole']),
6123
+ :host([variant='standard'][size='extra']) ::slotted(moni-button[data-group-adjacent-selected='sole']) { --moni-button-padding: 0 2.75rem; }
6124
+ `]}updated(e){super.updated(e),(e.has(`variant`)||e.has(`size`)||e.has(`gap`)||e.has(`shape`))&&this.updateChildren()}handleSlotChange(){this.updateChildren()}getButtons(){return(this.slottedButtons??[]).filter(e=>e.tagName.toLowerCase()===`moni-button`||e.tagName.toLowerCase()===`moni-icon-button`)}updateSelectionNeighbors(){let e=this.getButtons();if(e.forEach(e=>e.removeAttribute(`data-group-adjacent-selected`)),this.variant!==`standard`||e.filter(e=>e.hasAttribute(`active`)).length===0)return;let t=e.filter(e=>!e.hasAttribute(`active`)),n=t.length===1?`sole`:`shared`;t.forEach(e=>e.setAttribute(`data-group-adjacent-selected`,n))}getGapValue(e){if(!e)return``;let t=e.toLowerCase();return t===`xs`||t===`xsmall`?`1.125rem`:t===`s`||t===`small`?`0.75rem`:t===`m`||t===`medium`||t===`l`||t===`large`||t===`xl`||t===`xlarge`?`0.5rem`:e}updateChildren(){let e=this.getButtons(),t=this.gap.trim().toLowerCase(),n=![`0`,`0px`,`0rem`,`0em`].includes(t);e.forEach((t,r)=>{t.setAttribute(`size`,this.size),this.variant===`connected`&&this.shape===`square`?t.setAttribute(`shape`,`square`):this.variant===`connected`?n?e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round`):r===e.length-1?t.setAttribute(`shape`,`right-round`):t.setAttribute(`shape`,`inner-round`):e.length===1?t.setAttribute(`shape`,`round`):r===0?t.setAttribute(`shape`,`left-round-flat`):r===e.length-1?t.setAttribute(`shape`,`right-round-flat`):t.setAttribute(`shape`,`no-round`):t.setAttribute(`shape`,this.shape)}),this.updateSelectionNeighbors()}handlePointerDown(e){if(this.variant!==`standard`)return;let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.getButtons(),r=n.indexOf(t);r!==-1&&(t.setAttribute(`data-group-pressed`,``),n[r-1]?.setAttribute(`data-group-adjacent-pressed`,``),n[r+1]?.setAttribute(`data-group-adjacent-pressed`,``))}handlePointerUp(){this.getButtons().forEach(e=>{e.removeAttribute(`data-group-pressed`),e.removeAttribute(`data-group-adjacent-pressed`)})}handleClick(e){let t=e.target.closest(`moni-button, moni-icon-button`);if(!t||t.hasAttribute(`disabled`))return;let n=this.getButtons();this.multi||n.forEach(e=>{e!==t&&(e.removeAttribute(`active`),e.active=!1)});let r=t.hasAttribute(`active`),i=n.filter(e=>e.hasAttribute(`active`)).length;r&&this.selectionRequired&&i<=1||(r?(t.removeAttribute(`active`),t.active=!1):(t.setAttribute(`active`,``),t.active=!0),this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,composed:!0,detail:{button:t,active:!r}})))}render(){let e=this.getGapValue(this.gap),t=this.gap.trim().toLowerCase(),n=[`0`,`0px`,`0rem`,`0em`].includes(t);return R`
5995
6125
  <div
5996
6126
  class="group-container"
5997
6127
  style=${e?`gap: ${e};`:n?`gap: 0;`:``}
@@ -6006,7 +6136,7 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
6006
6136
  >
6007
6137
  <slot @slotchange=${this.handleSlotChange} @click=${this.handleClick}></slot>
6008
6138
  </div>
6009
- `}};K([V({reflect:!0})],zt.prototype,`variant`,void 0),K([V({reflect:!0})],zt.prototype,`size`,void 0),K([V({type:Boolean,reflect:!0})],zt.prototype,`multi`,void 0),K([V()],zt.prototype,`gap`,void 0),K([V({reflect:!0})],zt.prototype,`role`,void 0),K([V({reflect:!0})],zt.prototype,`label`,void 0),K([V({reflect:!0,attribute:`labelled-by`})],zt.prototype,`labelledBy`,void 0),K([We({flatten:!0})],zt.prototype,`slottedButtons`,void 0),zt=K([B(`moni-button-group`)],zt);var Bt=class extends W{constructor(...e){super(...e),this.variant=`filled`,this.size=`small`,this.gap=``}static{this.styles=[G,g`
6139
+ `}};K([V({reflect:!0})],zt.prototype,`variant`,void 0),K([V({reflect:!0})],zt.prototype,`size`,void 0),K([V({type:Boolean,reflect:!0})],zt.prototype,`multi`,void 0),K([V({type:Boolean,reflect:!0,attribute:`selection-required`})],zt.prototype,`selectionRequired`,void 0),K([V({reflect:!0})],zt.prototype,`shape`,void 0),K([V({reflect:!0})],zt.prototype,`resizing`,void 0),K([V()],zt.prototype,`gap`,void 0),K([V({reflect:!0})],zt.prototype,`role`,void 0),K([V({reflect:!0})],zt.prototype,`label`,void 0),K([V({reflect:!0,attribute:`labelled-by`})],zt.prototype,`labelledBy`,void 0),K([We({flatten:!0})],zt.prototype,`slottedButtons`,void 0),zt=K([B(`moni-button-group`)],zt);var Bt=class extends W{constructor(...e){super(...e),this.variant=`filled`,this.size=`small`,this.gap=``}static{this.styles=[G,g`
6010
6140
  :host {
6011
6141
  display: inline-flex;
6012
6142
  align-items: center;
@@ -6421,7 +6551,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
6421
6551
  :host {
6422
6552
  display: inline-block;
6423
6553
  aspect-ratio: 1 / 1;
6424
- contain: strict;
6554
+ /* Paint containment clipped oversized morphs in the contained
6555
+ * variant. Keep layout/style isolation while allowing the active
6556
+ * indicator to animate beyond the container surface. */
6557
+ contain: layout style;
6558
+ overflow: visible;
6425
6559
  vertical-align: middle;
6426
6560
  }
6427
6561
 
@@ -6453,6 +6587,19 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
6453
6587
  justify-content: center;
6454
6588
  border-radius: var(--moni-loading-indicator-container-shape, 9999px);
6455
6589
  box-sizing: border-box;
6590
+ overflow: visible;
6591
+ }
6592
+
6593
+ .active-indicator-wrapper {
6594
+ overflow: visible;
6595
+ }
6596
+
6597
+ .active-indicator-scale {
6598
+ display: flex;
6599
+ align-items: center;
6600
+ justify-content: center;
6601
+ overflow: visible;
6602
+ transform-origin: center;
6456
6603
  }
6457
6604
 
6458
6605
  .active-indicator {
@@ -6547,7 +6694,9 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
6547
6694
  `]}render(){return R`
6548
6695
  <div class="container animate" aria-hidden="true">
6549
6696
  <div class="active-indicator-wrapper">
6550
- <div class="active-indicator"></div>
6697
+ <div class="active-indicator-scale">
6698
+ <div class="active-indicator"></div>
6699
+ </div>
6551
6700
  </div>
6552
6701
  </div>
6553
6702
  `}};K([V({reflect:!0})],Gt.prototype,`variant`,void 0),K([U(`.container`)],Gt.prototype,`_container`,void 0),Gt=K([B(`moni-loading-indicator`)],Gt);function Kt(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function qt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Jt={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},Yt={duration:.5,overwrite:!1,delay:0},Xt,Zt,Qt,$t=1e8,Y=1/$t,en=Math.PI*2,tn=en/4,nn=0,rn=Math.sqrt,an=Math.cos,on=Math.sin,sn=function(e){return typeof e==`string`},cn=function(e){return typeof e==`function`},ln=function(e){return typeof e==`number`},un=function(e){return e===void 0},dn=function(e){return typeof e==`object`},fn=function(e){return e!==!1},pn=function(){return typeof window<`u`},mn=function(e){return cn(e)||sn(e)},hn=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},gn=Array.isArray,_n=/random\([^)]+\)/g,vn=/,\s*/g,yn=/(?:-?\.?\d|\.)+/gi,bn=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,xn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Sn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Cn=/[+-]=-?[.\d]+/,wn=/[^,'"\[\]\s]+/gi,Tn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,En,Dn,On,kn,An={},jn={},Mn,Nn=function(e){return(jn=dr(e,An))&&Oa},Pn=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},Fn=function(e,t){return!t&&console.warn(e)},In=function(e,t){return e&&(An[e]=t)&&jn&&(jn[e]=t)||An},Ln=function(){return 0},Rn={suppressEvents:!0,isStart:!0,kill:!1},zn={suppressEvents:!0,kill:!1},Bn={suppressEvents:!0},Vn={},Hn=[],Un={},Wn,Gn={},Kn={},qn=30,Jn=[],Yn=``,Xn=function(e){var t=e[0],n,r;if(dn(t)||cn(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Jn.length;r--&&!Jn[r].targetTest(t););n=Jn[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Ri(e[r],n)))||e.splice(r,1);return e},Zn=function(e){return e._gsap||Xn(Jr(e))[0]._gsap},Qn=function(e,t,n){return(n=e[t])&&cn(n)?e[t]():un(n)&&e.getAttribute&&e.getAttribute(t)||n},$n=function(e,t){return(e=e.split(`,`)).forEach(t)||e},er=function(e){return Math.round(e*1e5)/1e5||0},tr=function(e){return Math.round(e*1e7)/1e7||0},nr=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},rr=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},ir=function(){var e=Hn.length,t=Hn.slice(0),n,r;for(Un={},Hn.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},ar=function(e){return!!(e._initted||e._startAt||e.add)},or=function(e,t,n,r){Hn.length&&!Zt&&ir(),e.render(t,n,r||!!(Zt&&t<0&&ar(e))),Hn.length&&!Zt&&ir()},sr=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(wn).length<2?t:sn(e)?e.trim():e},cr=function(e){return e},lr=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},ur=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},dr=function(e,t){for(var n in t)e[n]=t[n];return e},fr=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=dn(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},pr=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},mr=function(e){var t=e.parent||En,n=e.keyframes?ur(gn(e.keyframes)):lr;if(fn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},hr=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},gr=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},_r=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},vr=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},yr=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},br=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},xr=function(e,t,n,r){return e._startAt&&(Zt?e._startAt.revert(zn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Sr=function e(t){return!t||t._ts&&e(t.parent)},Cr=function(e){return e._repeat?wr(e._tTime,e=e.duration()+e._rDelay)*e:0},wr=function(e,t){var n=Math.floor(e=tr(e/t));return e&&n===e?n-1:n},Tr=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Er=function(e){return e._end=tr(e._start+(e._tDur/Math.abs(e._ts||e._rts||Y)||0))},Dr=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=tr(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Er(e),n._dirty||yr(n,e)),e},Or=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Tr(e.rawTime(),t),(!t._dur||Hr(0,t.totalDuration(),n)-t._tTime>Y)&&t.render(n,!0)),yr(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=-Y}},kr=function(e,t,n,r){return t.parent&&vr(t),t._start=tr((ln(n)?n:n||e!==En?zr(e,n,t):e._time)+t._delay),t._end=tr(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),gr(e,t,`_first`,`_last`,e._sort?`_start`:0),Nr(t)||(e._recent=t),r||Or(e,t),e._ts<0&&Dr(e,e._tTime),e},Ar=function(e,t){return(An.ScrollTrigger||Pn(`scrollTrigger`,t))&&An.ScrollTrigger.create(t,e)},jr=function(e,t,n,r,i){if(qi(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!Zt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Wn!==Ti.frame)return Hn.push(e),e._lazy=[i,r],1},Mr=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},Nr=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Pr=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&Mr(e)&&!(!e._initted&&Nr(e))||(e._ts<0||e._dp._ts<0)&&!Nr(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=Hr(0,e._tDur,t),l=wr(s,o),e._yoyo&&l&1&&(a=1-a),l!==wr(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||Zt||r||e._zTime===Y||!t&&e._zTime){if(!e._initted&&jr(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?Y: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&&xr(e,t,n,!0),e._onUpdate&&!n&&di(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&di(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&vr(e,1),!n&&!Zt&&(di(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},Fr=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}},Ir=function(e,t,n,r){var i=e._repeat,a=tr(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:tr(a*(i+1)+e._rDelay*i):a,o>0&&!r&&Dr(e,e._tTime=e._tDur*o),e.parent&&Er(e),n||yr(e.parent,e),e},Lr=function(e){return e instanceof Bi?yr(e):Ir(e,e._dur)},Rr={_start:0,endTime:Ln,totalDuration:Ln},zr=function e(t,n,r){var i=t.labels,a=t._recent||Rr,o=t.duration()>=$t?a.endTime(!1):t._dur,s,c,l;return sn(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*(gn(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Br=function(e,t,n){var r=ln(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=fn(s.vars.inherit)&&s.parent;a.immediateRender=fn(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new ea(t[0],a,t[i+1])},Vr=function(e,t){return e||e===0?t(e):t},Hr=function(e,t,n){return n<e?e:n>t?t:n},Ur=function(e,t){return!sn(e)||!(t=Tn.exec(e))?``:t[1]},Wr=function(e,t,n){return Vr(n,function(n){return Hr(e,t,n)})},Gr=[].slice,Kr=function(e,t){return e&&dn(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&dn(e[0]))&&!e.nodeType&&e!==Dn},qr=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return sn(e)&&!t||Kr(e,1)?(r=n).push.apply(r,Jr(e)):n.push(e)})||n},Jr=function(e,t,n){return Qt&&!t&&Qt.selector?Qt.selector(e):sn(e)&&!n&&(On||!Ei())?Gr.call((t||kn).querySelectorAll(e),0):gn(e)?qr(e,n):Kr(e)?Gr.call(e,0):e?[e]:[]},Yr=function(e){return e=Jr(e)[0]||Fn(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Jr(t,n.querySelectorAll?n:n===e?Fn(`Invalid scope`)||kn.createElement(`div`):e)}},Xr=function(e){return e.sort(function(){return .5-Math.random()})},Zr=function(e){if(cn(e))return e;var t=dn(e)?e:{each:e},n=Ni(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 sn(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,$t])[1],!S){for(b=-$t;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===$t?0:s?f*u/S-.5:r/S|0,b=0,x=$t,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):rn(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&Xr(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=Ur(t.amount||t.each)||0,n=n&&f<0?Mi(n):n}return f=(p[e]-p.min)/p.max||0,tr(p.b+(n?n(f):f)*p.v)+p.u}},Qr=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=tr(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(ln(n)?0:Ur(n))}},$r=function(e,t){var n=gn(e),r,i;return!n&&dn(e)&&(r=n=e.radius||$t,e.values?(e=Jr(e.values),(i=!ln(e[0]))&&(r*=r)):e=Qr(e.increment)),Vr(t,n?cn(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=$t,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||ln(t)?s:s+Ur(t)}:Qr(e))},ei=function(e,t,n,r){return Vr(gn(e)?!t:n===!0?!!(n=0):!r,function(){return gn(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})},ti=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},ni=function(e,t){return function(n){return e(parseFloat(n))+(t||Ur(n))}},ri=function(e,t,n){return ci(e,t,0,1,n)},ii=function(e,t,n){return Vr(n,function(n){return e[~~t(n)]})},ai=function e(t,n,r){var i=n-t;return gn(t)?ii(t,e(0,t.length),n):Vr(r,function(e){return(i+(e-t)%i)%i+t})},oi=function e(t,n,r){var i=n-t,a=i*2;return gn(t)?ii(t,e(0,t.length-1),n):Vr(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},si=function(e){return e.replace(_n,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(vn);return ei(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},ci=function(e,t,n,r,i){var a=t-e,o=r-n;return Vr(i,function(t){return n+((t-e)/a*o||0)})},li=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=sn(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(gn(t)&&!gn(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=dr(gn(t)?[]:{},t));if(!u){for(c in n)Hi.call(s,t,c,`get`,n[c]);a=function(e){return la(e,s)||(o?t.p:t)}}}return Vr(r,a)},ui=function(e,t,n){var r=e.labels,i=$t,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},di=function(e,t,n){var r=e.vars,i=r[t],a=Qt,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&Hn.length&&ir(),o&&(Qt=o),l=s?i.apply(c,s):i.call(c),Qt=a,l},fi=function(e){return vr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Zt),e.progress()<1&&di(e,`onInterrupt`),e},pi,mi=[],hi=function(e){if(e){if(e=!e.name&&e.default||e,pn()||e.headless){var t=e.name,n=cn(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Ln,render:la,add:Hi,kill:da,modifier:ua,rawVars:0},a={targetTest:0,get:0,getSetter:aa,aliases:{},register:0};if(Ei(),e!==r){if(Gn[t])return;lr(r,lr(pr(e,i),a)),dr(r.prototype,dr(i,pr(e,a))),Gn[r.prop=t]=r,e.targetTest&&(Jn.push(r),Vn[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}In(t,r),e.register&&e.register(Oa,r,ma)}else mi.push(e)}},X=255,gi={aqua:[0,X,X],lime:[0,X,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,X],navy:[0,0,128],white:[X,X,X],olive:[128,128,0],yellow:[X,X,0],orange:[X,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[X,0,0],pink:[X,192,203],cyan:[0,X,X],transparent:[X,X,X,0]},_i=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)*X+.5|0},vi=function(e,t,n){var r=e?ln(e)?[e>>16,e>>8&X,e&X]:0:gi.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),gi[e])r=gi[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&X,r&X,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&X,e&X]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(yn),!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]=_i(s+1/3,i,a),r[1]=_i(s,i,a),r[2]=_i(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(bn),n&&r.length<4&&(r[3]=1),r}else r=e.match(yn)||gi.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/X,a=r[1]/X,o=r[2]/X,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},yi=function(e){var t=[],n=[],r=-1;return e.split(xi).forEach(function(e){var i=e.match(xn)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},bi=function(e,t,n){var r=``,i=(e+r).match(xi),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=vi(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=yi(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(xi,`1`).split(xn),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(xi),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},xi=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in gi)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Si=/hsl[a]?\(/,Ci=function(e){var t=e.join(` `),n;if(xi.lastIndex=0,xi.test(t))return n=Si.test(t),e[1]=bi(e[1],n),e[0]=bi(e[0],n,yi(e[1])),!0},wi,Ti=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?4: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(){Mn&&(!On&&pn()&&(Dn=On=window,kn=Dn.document||{},An.gsap=Oa,(Dn.gsapVersions||(Dn.gsapVersions=[])).push(Oa.version),Nn(jn||Dn.GreenSockGlobals||!Dn.gsap&&Dn||{}),mi.forEach(hi)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},wi=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),wi=0,l=Ln},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),Ei(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Ei=function(){return!wi&&Ti.wake()},Z={},Di=/^[\d.\-M][\d.\-,\s]/,Oi=/["']/g,ki=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(Oi,``).trim():+c,r=s.substr(o+1).trim();return t},Ai=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)},ji=function(e){var t=(e+``).split(`(`),n=Z[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[ki(t[1])]:Ai(e).split(`,`).map(sr)):Z._CE&&Di.test(e)?Z._CE(``,e):n},Mi=function(e){return function(t){return 1-e(1-t)}},Ni=function(e,t){return e&&(cn(e)?e:Z[e]||ji(e))||t},Pi=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 $n(e,function(e){for(var t in Z[e]=An[e]=i,Z[a=e.toLowerCase()]=n,i)Z[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Z[e+`.`+t]=i[t]}),i},Fi=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Ii=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/en*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*on((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Fi(s);return a=en/a,c.config=function(n,r){return e(t,n,r)},c},Li=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)}:Fi(r);return i.config=function(n){return e(t,n)},i};$n(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Pi(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})}),Z.Linear.easeNone=Z.none=Z.Linear.easeIn,Pi(`Elastic`,Ii(`in`),Ii(`out`),Ii()),(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};Pi(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Pi(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Pi(`Circ`,function(e){return-(rn(1-e*e)-1)}),Pi(`Sine`,function(e){return e===1?1:-an(e*tn)+1}),Pi(`Back`,Li(`in`),Li(`out`),Li()),Z.SteppedEase=Z.steps=An.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-Y;return function(e){return((r*Hr(0,a,e)|0)+i)*n}}},Yt.ease=Z[`quad.out`],$n(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Yn+=e+`,`+e+`Params,`});var Ri=function(e,t){this.id=nn++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Qn,this.set=t?t.getSetter:aa},zi=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,Ir(this,+e.duration,1,1),this.data=e.data,Qt&&(this._ctx=Qt,Qt.data.push(this)),wi||Ti.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,Ir(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Ei(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Dr(this,e),!n._dp||n.parent||Or(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)&&kr(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Y||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),or(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Cr(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)+Cr(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?wr(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-Y?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Tr(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-Y?0:this._rts,this.totalTime(Hr(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Er(this),br(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ei(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Y&&(this._tTime-=Y)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=tr(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&kr(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(fn(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?Tr(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Bn);var t=Zt;return Zt=e,ar(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),Zt=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,Lr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Lr(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(zr(this,e),fn(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,fn(t)),this._dur||(this._zTime=-Y),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?-Y:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Y,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)-Y)},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=cn(e)?e:cr,a=function(){var e=t.then;t.then=null,n&&n(),cn(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(){fi(this)},e}();lr(zi.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:-Y,_prom:0,_ps:!1,_rts:1});var Bi=function(e){qt(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=fn(t.sortChildren),En&&kr(t.parent||En,Kt(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ar(Kt(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Br(0,arguments,this),this},n.from=function(e,t,n){return Br(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Br(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,mr(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new ea(e,t,zr(this,n),1),this},n.call=function(e,t,n){return kr(this,ea.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 ea(e,n,zr(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,mr(n).immediateRender=fn(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,mr(r).immediateRender=fn(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:tr(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==En&&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=tr(o%f),o===i?(d=this._repeat,c=a):(_=tr(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=wr(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:tr(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&di(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=Fr(this,tr(r),tr(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&&!_&&(di(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=-Y);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||Zt&&ar(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-Y:Y);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-Y)._zTime=c>=r?1:-1,this._ts))return this._start=g,Er(this),this.render(e,t,n);this._onUpdate&&!t&&di(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)&&vr(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(di(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(ln(t)||(t=zr(this,t,e)),!(e instanceof zi)){if(gn(e))return e.forEach(function(e){return n.add(e,t)}),this;if(sn(e))return this.addLabel(e,t);if(cn(e))e=ea.delayedCall(0,e);else return this}return this===e?this:kr(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=-$t);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof ea?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 sn(e)?this.removeLabel(e):cn(e)?this.killTweensOf(e):(e.parent===this&&_r(this,e),e===this._recent&&(this._recent=this._last),yr(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=tr(Ti.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]=zr(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=ea.delayedCall(0,t||Ln,n);return r.data=`isPause`,this._hasPause=1,kr(this,r,zr(this,e))},n.removePause=function(e){var t=this._first;for(e=zr(this,e);t;)t._start===e&&t.data===`isPause`&&vr(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Gi!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Jr(e),i=this._first,a=ln(t),o;i;)i instanceof ea?rr(i._targets,r)&&(a?(!Gi||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=zr(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=ea.to(n,lr({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())||Y,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&&Ir(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,lr({startAt:{time:zr(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),ui(this,zr(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),ui(this,zr(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Y)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=tr(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 yr(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={}),yr(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=$t,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,kr(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=tr(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;Ir(n,n===En&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(En._ts&&(or(En,Tr(e,En)),Wn=Ti.frame),Ti.frame>=qn){qn+=Jt.autoSleep||120;var t=En._first;if((!t||!t._ts)&&Jt.autoSleep&&Ti._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Ti.sleep()}}},t}(zi);lr(Bi.prototype,{_lock:0,_hasPause:0,_forcing:0});var Vi=function(e,t,n,r,i,a,o){var s=new ma(this._pt,e,t,0,1,ca,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=si(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(Sn)||[];u=Sn.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)===`=`?nr(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=Sn.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(Cn.test(r)||g)&&(s.e=0),this._pt=s,s},Hi=function(e,t,n,r,i,a,o,s,c,l){cn(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?cn(u)?c?e[t.indexOf(`set`)||!cn(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=cn(u)?c?ra:na:ta,p;if(sn(r)&&(~r.indexOf(`random(`)&&(r=si(r)),r.charAt(1)===`=`&&(p=nr(d,r)+(Ur(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Ki)return!isNaN(d*r)&&r!==``?(p=new ma(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?sa:oa,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&Pn(t,r),Vi.call(this,e,t,d,r,f,s||Jt.stringFilter,c))},Ui=function(e,t,n,r,i){if(cn(e)&&(e=Zi(e,i,t,n,r)),!dn(e)||e.style&&e.nodeType||gn(e)||hn(e))return sn(e)?Zi(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=Zi(e[o],i,t,n,r);return a},Wi=function(e,t,n,r,i,a){var o,s,c,l;if(Gn[e]&&(o=new Gn[e]).init(i,o.rawVars?t[e]:Ui(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new ma(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==pi))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Gi,Ki,qi=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`&&!Xt,b=t.timeline,x=i.easeReverse||d,S,C,w,T,E,D,O,k,A,j,M,ee,te;if(b&&(!f||!a)&&(a=`none`),t._ease=Ni(a,Yt.ease),t._rEase=x&&(Ni(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(k=g[0]?Zn(g[0]).harness:0,ee=k&&i[k.prop],S=pr(i,Vn),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?zn:Rn),h._lazy=0),o){if(vr(t._startAt=ea.set(g,lr({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&fn(c),startAt:null,delay:0,onUpdate:l&&function(){return di(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Zt||!s&&!p)&&t._startAt.revert(zn),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),w=lr({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&fn(c),immediateRender:s,stagger:0,parent:_},S),ee&&(w[k.prop]=ee),vr(t._startAt=ea.set(g,w)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(Zt?t._startAt.revert(zn):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,Y,Y);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&fn(c)||c&&!m,C=0;C<g.length;C++){if(E=g[C],O=E._gsap||Xn(g)[C]._gsap,t._ptLookup[C]=j={},Un[O.id]&&Hn.length&&ir(),M=v===g?C:v.indexOf(E),k&&(A=new k).init(E,ee||S,t,M,v)!==!1&&(t._pt=T=new ma(t._pt,E,A.name,0,1,A.render,A,0,A.priority),A._props.forEach(function(e){j[e]=T}),A.priority&&(D=1)),!k||ee)for(w in S)Gn[w]&&(A=Wi(w,S,t,M,E,v))?A.priority&&(D=1):j[w]=T=Hi.call(t,E,w,`get`,S[w],M,v,0,i.stringFilter);t._op&&t._op[C]&&t.kill(E,t._op[C]),y&&t._pt&&(Gi=t,En.killTweensOf(E,j,t.globalTime(n)),te=!t.parent,Gi=0),t._pt&&c&&(Un[O.id]=1)}D&&pa(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!te,f&&n<=0&&b.render($t,!0,!0)},Ji=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 Ki=1,e.vars[t]=`+=0`,qi(e,o),Ki=0,s?Fn(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=er(n)+Ur(u.e)),u.b&&(u.b=l.s+Ur(u.b))},Yi=function(e,t){var n=e[0]?Zn(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=dr({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Xi=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(gn(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})},Zi=function(e,t,n,r,i){return cn(e)?e.call(t,n,r,i):sn(e)&&~e.indexOf(`random(`)?si(e):e},Qi=Yn+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,$i={};$n(Qi+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return $i[e]=1});var ea=function(e){qt(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:mr(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||En,g=(gn(t)||hn(t)?ln(t[0]):`length`in n)?[t]:Jr(t),_,v,y,b,x,S,C,w;if(a._targets=g.length?Xn(g):Fn(`GSAP target `+t+` not found. https://gsap.com`,!Jt.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||mn(s)||mn(c)){n=a.vars;var T=n.easeReverse||n.yoyoEase;if(_=a.timeline=new Bi({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=Kt(a),_._start=0,u||mn(s)||mn(c)){if(b=g.length,C=u&&Zr(u),dn(u))for(x in u)~Qi.indexOf(x)&&(w||={},w[x]=u[x]);for(v=0;v<b;v++)y=pr(n,$i),y.stagger=0,T&&(y.easeReverse=T),w&&dr(y,w),S=g[v],y.duration=+Zi(s,Kt(a),v,S,g),y.delay=(+Zi(c,Kt(a),v,S,g)||0)-a._delay,!u&&b===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(S,y,C?C(v,S,g):0),_._ease=Z.none;_.duration()?s=c=0:a.timeline=0}else if(f){mr(lr(_.vars.defaults,{ease:`none`})),_._ease=Ni(f.ease||n.ease||`none`);var E=0,D,O,k;if(gn(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Xi(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;v<D.length;v++)O=D[v],k={ease:O.e,duration:(O.t-(v?D[v-1].t:0))/100*s},k[x]=O.v,_.to(g,k,E),E+=k.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!Xt&&(Gi=Kt(a),En.killTweensOf(g),Gi=0),kr(h,Kt(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===tr(h._time)&&fn(l)&&Sr(Kt(a))&&h.data!==`nested`)&&(a._tTime=-Y,a.render(Math.max(0,-c)||0)),m&&Ar(Kt(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-Y&&!o?i:e<Y?0:e,c,l,u,d,f,p,m,h;if(!a)Pr(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=tr(s%d),s===i?(u=this._repeat,c=a):(f=tr(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=wr(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(tr(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(jr(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&&(di(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&&xr(this,e,t,n),di(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&di(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&xr(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&vr(this,1),!t&&!(o&&!r)&&(s||r||p)&&(di(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){wi||Ti.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||qi(this,a),o=this._ease(a/this._dur),Ji(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(Dr(this,0),this.parent||gr(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?fi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Zt),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Gi&&Gi.vars.overwrite!==!0)._first||fi(this),this.parent&&n!==this.timeline.totalDuration()&&Ir(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Jr(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&hr(r,i))return t===`all`&&(this._pt=0),fi(this);for(s=this._op=this._op||[],t!==`all`&&(sn(t)&&(d={},$n(t,function(e){return d[e]=1}),t=d),t=Yi(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)&&_r(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&fi(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Br(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 Br(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 En.killTweensOf(e,t,n)},t}(zi);lr(ea.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),$n(`staggerTo,staggerFrom,staggerFromTo`,function(e){ea[e]=function(){var t=new Bi,n=Gr.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var ta=function(e,t,n){return e[t]=n},na=function(e,t,n){return e[t](n)},ra=function(e,t,n,r){return e[t](r.fp,n)},ia=function(e,t,n){return e.setAttribute(t,n)},aa=function(e,t){return cn(e[t])?na:un(e[t])&&e.setAttribute?ia:ta},oa=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},sa=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ca=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)},la=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},ua=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},da=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?_r(this,t,`_pt`):t.dep||(n=1),t=r;return!n},fa=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},pa=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},ma=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||oa,this.d=o||this,this.set=s||ta,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=fa,this.m=e,this.mt=n,this.tween=t},e}();$n(Yn+`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 Vn[e]=1}),An.TweenMax=An.TweenLite=ea,An.TimelineLite=An.TimelineMax=Bi,En=new Bi({sortChildren:!1,defaults:Yt,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),Jt.stringFilter=Ci;var ha=[],ga={},_a=[],va=0,ya=0,ba=function(e){return(ga[e]||_a).map(function(e){return e()})},xa=function(){var e=Date.now(),t=[];e-va>2&&(ba(`matchMediaInit`),ha.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=Dn.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),ba(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),va=e,ba(`matchMedia`))},Sa=function(){function e(e,t){this.selector=t&&Yr(t),this.data=[],this._r=[],this.isReverted=!1,this.id=ya++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){cn(e)&&(n=t,t=e,e=cn);var r=this,i=function(){var e=Qt,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Yr(n)),Qt=r,a=t.apply(r,arguments),cn(a)&&r._r.push(a),Qt=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===cn?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=Qt;Qt=null,e(this),Qt=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof ea&&!(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 Bi?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof ea)&&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=ha.length;r--;)ha[r].id===this.id&&ha.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Ca=function(){function e(e){this.contexts=[],this.scope=e,Qt&&Qt.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){dn(e)||(e={matches:e});var r=new Sa(0,n||this.scope),i=r.conditions={},a,o,s;for(o in Qt&&!r.selector&&(r.selector=Qt.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=Dn.matchMedia(e[o]),a&&(ha.indexOf(r)<0&&ha.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(xa):a.addEventListener(`change`,xa)));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}(),wa={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return hi(e)})},timeline:function(e){return new Bi(e)},getTweensOf:function(e,t){return En.getTweensOf(e,t)},getProperty:function(e,t,n,r){sn(e)&&(e=Jr(e)[0]);var i=Zn(e||{}).get,a=n?cr:sr;return n===`native`&&(n=``),e&&(t?a((Gn[t]&&Gn[t].get||i)(e,t,n,r)):function(t,n,r){return a((Gn[t]&&Gn[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Jr(e),e.length>1){var r=e.map(function(e){return Oa.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Gn[t],o=Zn(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;pi._pt=0,r.init(e,n?t+n:t,pi,0,[e]),r.render(1,r),pi._pt&&la(1,pi)}: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=Oa.to(e,lr((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 En.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ni(e.ease,Yt.ease)),fr(Yt,e||{})},config:function(e){return fr(Jt,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&&!Gn[e]&&!An[e]&&Fn(t+` effect requires `+e+` plugin.`)}),Kn[t]=function(e,t,r){return n(Jr(e),lr(t||{},i),r)},a&&(Bi.prototype[t]=function(e,n,r){return this.add(Kn[t](e,dn(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Z[e]=Ni(t)},parseEase:function(e,t){return arguments.length?Ni(e,t):Z},getById:function(e){return En.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Bi(e),r,i;for(n.smoothChildTiming=fn(e.smoothChildTiming),En.remove(n),n._dp=0,n._time=n._tTime=En._time,r=En._first;r;)i=r._next,(t||!(!r._dur&&r instanceof ea&&r.vars.onComplete===r._targets[0]))&&kr(n,r,r._start-r._delay),r=i;return kr(En,n,0),n},context:function(e,t){return e?new Sa(e,t):Qt},matchMedia:function(e){return new Ca(e)},matchMediaRefresh:function(){return ha.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||xa()},addEventListener:function(e,t){var n=ga[e]||(ga[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=ga[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:ai,wrapYoyo:oi,distribute:Zr,random:ei,snap:$r,normalize:ri,getUnit:Ur,clamp:Wr,splitColor:vi,toArray:Jr,selector:Yr,mapRange:ci,pipe:ti,unitize:ni,interpolate:li,shuffle:Xr},install:Nn,effects:Kn,ticker:Ti,updateRoot:Bi.updateRoot,plugins:Gn,globalTimeline:En,core:{PropTween:ma,globals:In,Tween:ea,Timeline:Bi,Animation:zi,getCache:Zn,_removeLinkedListItem:_r,reverting:function(){return Zt},context:function(e){return e&&Qt&&(Qt.data.push(e),e._ctx=Qt),Qt},suppressOverwrites:function(e){return Xt=e}}};$n(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return wa[e]=ea[e]}),Ti.add(Bi.updateRoot),pi=wa.to({},{duration:0});var Ta=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Ea=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=Ta(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Da=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(sn(n)&&(r={},$n(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Ea(e,n)}}}},Oa=wa.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;)Zt?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)}},Da(`roundProps`,Qr),Da(`modifiers`),Da(`snap`,$r))||wa;ea.version=Bi.version=Oa.version=`3.15.0`,Mn=1,pn()&&Ei(),Z.Power0,Z.Power1,Z.Power2,Z.Power3,Z.Power4,Z.Linear,Z.Quad,Z.Cubic,Z.Quart,Z.Quint,Z.Strong,Z.Elastic,Z.Back,Z.SteppedEase,Z.Bounce,Z.Sine,Z.Expo,Z.Circ;var ka,Aa,ja,Ma,Na,Pa,Fa,Ia=function(){return typeof window<`u`},La={},Ra=180/Math.PI,za=Math.PI/180,Ba=Math.atan2,Va=1e8,Ha=/([A-Z])/g,Ua=/(left|right|width|margin|padding|x)/i,Wa=/[\s,\(]\S/,Ga={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Ka=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},qa=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)},Ja=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)},Ya=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)},Xa=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Za=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Qa=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},$a=function(e,t,n){return e.style[t]=n},eo=function(e,t,n){return e.style.setProperty(t,n)},to=function(e,t,n){return e._gsap[t]=n},no=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},ro=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},io=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},ao=`transform`,oo=ao+`Origin`,so=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in La&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=Ga[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Do(i,e)}):this.tfm[t]=o.x?o[t]:Do(i,t),t===oo&&(this.tfm.zOrigin=o.zOrigin);else return Ga.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(ao)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(oo,n,``)),t=ao}(a||n)&&this.props.push(t,n,a[t])},co=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},lo=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;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(Ha,`-$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=Fa(),(!i||!i.isStart)&&!n[ao]&&(co(n),r.zOrigin&&n[oo]&&(n[oo]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},uo=function(e,t){var n={target:e,props:[],revert:lo,save:so};return e._gsap||Oa.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},fo,po=function(e,t){var n=Aa.createElementNS?Aa.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Aa.createElement(e);return n&&n.style?n:Aa.createElement(e)},mo=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Ha,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,go(n)||n,1)||``},ho=`O,Moz,ms,Ms,Webkit`.split(`,`),go=function(e,t,n){var r=(t||Na).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(ho[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?ho[i]:``)+e},_o=function(){Ia()&&window.document&&(ka=window,Aa=ka.document,ja=Aa.documentElement,Na=po(`div`)||{style:{}},po(`div`),ao=go(ao),oo=ao+`Origin`,Na.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,fo=!!go(`perspective`),Fa=Oa.core.reverting,Ma=1)},vo=function(e){var t=e.ownerSVGElement,n=po(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),ja.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),ja.removeChild(n),i},yo=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},bo=function(e){var t,n;try{t=e.getBBox()}catch{t=vo(e),n=1}return t&&(t.width||t.height)||n||(t=vo(e)),t&&!t.width&&!t.x&&!t.y?{x:+yo(e,[`x`,`cx`,`x1`])||0,y:+yo(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},xo=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&bo(e))},So=function(e,t){if(t){var n=e.style,r;t in La&&t!==oo&&(t=ao),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Ha,`-$1`).toLowerCase())):n.removeAttribute(t)}},Co=function(e,t,n,r,i,a){var o=new ma(e._pt,t,n,0,1,a?Qa:Za);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},wo={deg:1,rad:1,turn:1},To={grid:1,flex:1},Eo=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Na.style,c=Ua.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||wo[i]||wo[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&xo(t),(p||o===`%`)&&(La[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],er(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===Aa||!h.appendChild)&&(h=Aa.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Ti.time&&!g.uncache)return er(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:So(t,n)}else(p||o===`%`)&&!To[mo(h,`display`)]&&(s.position=mo(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Na),m=Na[u],h.removeChild(Na),s.position=`absolute`;return c&&p&&(g=Zn(h),g.time=Ti.time,g.width=h[u]),er(f?m*a/d:m&&a?d/m*a:0)},Do=function(e,t,n,r){var i;return Ma||_o(),t in Ga&&t!==`transform`&&(t=Ga[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),La[t]&&t!==`transform`?(i=zo(e,r),i=t===`transformOrigin`?i.svg?i.origin:Bo(mo(e,oo))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=Mo[t]&&Mo[t](e,t,n)||mo(e,t)||Qn(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Eo(e,t,i,n)+n:i},Oo=function(e,t,n,r){if(!n||n===`none`){var i=go(t,e,1),a=i&&mo(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=mo(e,`borderTopColor`))}var o=new ma(this._pt,e.style,t,0,1,ca),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=mo(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=mo(e,t)||r,m?e.style[t]=m:So(e,t)),l=[n,r],Ci(l),n=l[0],r=l[1],d=n.match(xn)||[],b=r.match(xn)||[],b.length){for(;u=xn.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=nr(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=xn.lastIndex-v.length,v||(v=v||Jt.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=Eo(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`?Qa:Za;return Cn.test(r)&&(o.e=0),this._pt=o,o},ko={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Ao=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]=ko[n]||n,t[1]=ko[r]||r,t.join(` `)},jo=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],La[o]&&(s=1,o=o===`transformOrigin`?oo:ao),So(n,o);s&&(So(n,ao),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,zo(n,1),a.uncache=1,co(r)))}},Mo={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new ma(e._pt,t,n,0,0,jo);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},No=[1,0,0,1,0,0],Po={},Fo=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Io=function(e){var t=mo(e,ao);return Fo(t)?No:t.substr(7).match(bn).map(er)},Lo=function(e,t){var n=e._gsap||Zn(e),r=e.style,i=Io(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`?No:i):(i===No&&!e.offsetParent&&e!==ja&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,ja.appendChild(e)),i=Io(e),s?r.display=s:So(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):ja.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Ro=function(e,t,n,r,i,a){var o=e._gsap,s=i||Lo(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!==No&&(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=bo(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[oo]=`0px 0px`,a&&(Co(a,o,`xOrigin`,c,y),Co(a,o,`yOrigin`,l,b),Co(a,o,`xOffset`,u,o.xOffset),Co(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},zo=function(e,t){var n=e._gsap||new Ri(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=mo(e,oo)||`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,w,T,E,D,O,k,A,j,M,ee,te,ne,re,N,ie,P,F;return n.svg=!!(e.getCTM&&xo(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[ao]=(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[ao]===`none`?``:s[ao])),r.scale=r.rotate=r.translate=`none`),S=Lo(e,n.svg),n.svg&&(n.uncache?(ee=e.getBBox(),c=n.xOrigin-ee.x+`px `+(n.yOrigin-ee.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),Ro(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==No&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?Ba(D,E)*Ra:0,_=O||k?Ba(O,k)*Ra+m:0,_&&(p*=Math.abs(Math.cos(_*za))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(F=S[6],ie=S[7],ne=S[8],re=S[9],N=S[10],P=S[11],l=S[12],u=S[13],d=S[14],C=Ba(F,N),h=C*Ra,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+ne*T,ee=j*w+re*T,te=F*w+N*T,ne=A*-T+ne*w,re=j*-T+re*w,N=F*-T+N*w,P=ie*-T+P*w,A=M,j=ee,F=te),C=Ba(-O,N),g=C*Ra,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-ne*T,ee=D*w-re*T,te=O*w-N*T,P=k*T+P*w,E=M,D=ee,O=te),C=Ba(D,E),m=C*Ra,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,ee=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=ee),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=er(Math.sqrt(E*E+D*D+O*O)),p=er(Math.sqrt(j*j+F*F)),C=Ba(A,j),_=Math.abs(C)>2e-4?C*Ra:0,y=P?1/(P<0?-P:P):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Fo(mo(e,ao)),M&&e.setAttribute(`transform`,M))),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=er(f),n.scaleY=er(p),n.rotation=er(m)+o,n.rotationX=er(h)+o,n.rotationY=er(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[oo]=Bo(c)),n.xOffset=n.yOffset=0,n.force3D=Jt.force3D,n.renderTransform=n.svg?qo:fo?Ko:Ho,n.uncache=0,n},Bo=function(e){return(e=e.split(` `))[0]+` `+e[1]},Vo=function(e,t,n){var r=Ur(t);return er(parseFloat(t)+parseFloat(Eo(e,`x`,n+`px`,r)))+r},Ho=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Ko(e,t)},Uo=`0deg`,Wo=`0px`,Go=`) `,Ko=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!==Uo||l!==Uo)){var x=parseFloat(l)*za,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*za,w=Math.cos(x),a=Vo(_,a,S*w*-v),o=Vo(_,o,-Math.sin(x)*-v),s=Vo(_,s,C*w*-v+v)}h!==Wo&&(y+=`perspective(`+h+Go),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Wo||o!==Wo||s!==Wo)&&(y+=s!==Wo||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Go),c!==Uo&&(y+=`rotate(`+c+Go),l!==Uo&&(y+=`rotateY(`+l+Go),u!==Uo&&(y+=`rotateX(`+u+Go),(d!==Uo||f!==Uo)&&(y+=`skew(`+d+`, `+f+Go),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Go),_.style[ao]=y||`translate(0, 0)`},qo=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*=za,c*=za,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=za,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=er(b),x=er(x),S=er(S),C=er(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Eo(f,`x`,a,`px`),y=Eo(f,`y`,o,`px`)),(p||m||h||g)&&(v=er(v+p-(p*b+m*S)+h),y=er(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=er(v+r/100*w.width),y=er(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[ao]=w)},Jo=function(e,t,n,r,i){var a=360,o=sn(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Ra: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*Va)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*Va)%a-~~(s/a)*a)),e._pt=u=new ma(e._pt,t,n,r,s,qa),u.e=c,u.u=`deg`,e._props.push(n),u},Yo=function(e,t){for(var n in t)e[n]=t[n];return e},Xo=function(e,t,n){var r=Yo({},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[ao]=t,o=zo(n,1),So(n,ao),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[ao],a[ao]=t,o=zo(n,1),a[ao]=c),La)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=Ur(c),p=Ur(l),u=f===p?parseFloat(c):Eo(n,s,c,p),d=parseFloat(l),e._pt=new ma(e._pt,o,s,u,d-u,Ka),e._pt.u=p||0,e._props.push(s));Yo(o,r)};$n(`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});Mo[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 Do(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 Zo={name:`css`,register:_o,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,w;for(m in Ma||_o(),this.styles=this.styles||uo(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Gn[m]&&Wi(m,t,n,r,e,i)))){if(f=typeof l,p=Mo[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=si(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,xi.lastIndex=0,xi.test(c)||(h=Ur(c),g=Ur(l),g?h!==g&&(c=Eo(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],sn(c)&&~c.indexOf(`random(`)&&(c=si(c)),Ur(c+``)||c===`auto`||(c+=Jt.units[m]||Ur(Do(e,m))||``),(c+``).charAt(1)===`=`&&(c=Do(e,m))):c=Do(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in Ga&&(m===`autoAlpha`&&(d===1&&Do(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),Co(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=Ga[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in La,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=mo(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=mo(e,`perspective`),T?e.style.perspective=T:So(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||zo(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new ma(this._pt,o,ao,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new ma(this._pt,b,`scaleY`,b.scaleY,(_?nr(b.scaleY,_+u):u)-b.scaleY||0,Ka),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(oo,0,o[oo]),l=Ao(l),b.svg?Ro(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&Co(this,b,`zOrigin`,b.zOrigin,g),Co(this,o,m,Bo(c),Bo(l)));continue}else if(m===`svgOrigin`){Ro(e,l,1,x,0,this);continue}else if(m in Po){Jo(this,b,m,d,_?nr(d,_+l):l);continue}else if(m===`smoothOrigin`){Co(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Xo(this,l,e);continue}}else m in o||(m=go(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Wa.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=Ur(l)||(m in Jt.units?Jt.units[m]:h),h!==g&&(d=Eo(e,m,c,g)),this._pt=new ma(this._pt,v?b:o,m,d,(_?nr(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?Xa:Ka),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=Ya):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Ja);else if(m in o)Oo.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`){Pn(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&&pa(this)},render:function(e,t){if(t.tween._time||!Fa())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Do,aliases:Ga,getSetter:function(e,t,n){var r=Ga[t];return r&&r.indexOf(`,`)<0&&(t=r),t in La&&t!==oo&&(e._gsap.x||Do(e,`x`))?n&&Pa===n?t===`scale`?no:to:(Pa=n||{})&&(t===`scale`?ro:io):e.style&&!un(e.style[t])?$a:~t.indexOf(`-`)?eo:aa(e,t)},core:{_removeProperty:So,_getMatrix:Lo}};Oa.utils.checkPrefix=go,Oa.core.getStyleSaver=uo,(function(e,t,n,r){var i=$n(e+`,`+t+`,`+n,function(e){La[e]=1});$n(t,function(e){Jt.units[e]=`deg`,Po[e]=1}),Ga[i[13]]=e+`,`+t,$n(r,function(e){var t=e.split(`:`);Ga[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`),$n(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){Jt.units[e]=`px`}),Oa.registerPlugin(Zo);var Q=Oa.registerPlugin(Zo)||Oa;Q.core.Tween;var Qo,$o,es,ts,ns,rs,is,as,os=`transform`,ss=os+`Origin`,cs,ls=function(e){var t=e.ownerDocument||e;for(!(os in e.style)&&(`msTransform`in e.style)&&(os=`msTransform`,ss=os+`Origin`);t.parentNode&&(t=t.parentNode););if($o=window,is=new Ss,t){Qo=t,es=t.documentElement,ts=t.body,as=Qo.createElementNS(`http://www.w3.org/2000/svg`,`g`),as.style.transform=`none`;var n=t.createElement(`div`),r=t.createElement(`div`),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(n),n.appendChild(r),n.style.position=`static`,n.style.transform=`translate3d(0,0,1px)`,cs=r.offsetParent!==n,i.removeChild(n))}return t},us=function(e){for(var t,n;e&&e!==ts;)n=e._gsap,n&&n.uncache&&n.get(e,`x`),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},ds=[],fs=[],ps=function(){return $o.pageYOffset||Qo.scrollTop||es.scrollTop||ts.scrollTop||0},ms=function(){return $o.pageXOffset||Qo.scrollLeft||es.scrollLeft||ts.scrollLeft||0},hs=function(e){return e.ownerSVGElement||((e.tagName+``).toLowerCase()===`svg`?e:null)},gs=function e(t){if($o.getComputedStyle(t).position===`fixed`)return!0;if(t=t.parentNode,t&&t.nodeType===1)return e(t)},_s=function e(t,n){if(t.parentNode&&(Qo||ls(t))){var r=hs(t),i=r?r.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`:`http://www.w3.org/1999/xhtml`,a=r?n?`rect`:`g`:`div`,o=n===2?100:0,s=n===3?100:0,c={position:`absolute`,display:`block`,pointerEvents:`none`,margin:`0`,padding:`0`},l=Qo.createElementNS?Qo.createElementNS(i.replace(/^https/,`http`),a):Qo.createElement(a);return n&&(r?(rs||=e(t),l.setAttribute(`width`,.01),l.setAttribute(`height`,.01),l.setAttribute(`transform`,`translate(`+o+`,`+s+`)`),l.setAttribute(`fill`,`transparent`),rs.appendChild(l)):(ns||(ns=e(t),Object.assign(ns.style,c)),Object.assign(l.style,c,{width:`0.1px`,height:`0.1px`,top:s+`px`,left:o+`px`}),ns.appendChild(l))),l}throw`Need document and parent.`},vs=function(e){for(var t=new Ss,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t},ys=function(e){var t=e.getCTM(),n;return t||(n=e.style[os],e.style[os]=`none`,e.appendChild(as),t=as.getCTM(),e.removeChild(as),n?e.style[os]=n:e.style.removeProperty(os.replace(/([A-Z])/g,`-$1`).toLowerCase())),t||is.clone()},bs=function(e,t){var n=hs(e),r=e===n,i=n?ds:fs,a=e.parentNode,o=a&&!n&&a.shadowRoot&&a.shadowRoot.appendChild?a.shadowRoot:a,s,c,l,u,d,f;if(e===$o)return e;if(i.length||i.push(_s(e,1),_s(e,2),_s(e,3)),s=n?rs:ns,n)r?(l=ys(e),u=-l.e/l.a,d=-l.f/l.d,c=is):e.getBBox?(l=e.getBBox(),c=e.transform?e.transform.baseVal:{},c=c.numberOfItems?c.numberOfItems>1?vs(c):c.getItem(0).matrix:is,u=c.a*l.x+c.c*l.y,d=c.b*l.x+c.d*l.y):(c=new Ss,u=d=0),t&&e.tagName.toLowerCase()===`g`&&(u=d=0),(r||!e.getBoundingClientRect().width?n:a).appendChild(s),s.setAttribute(`transform`,`matrix(`+c.a+`,`+c.b+`,`+c.c+`,`+c.d+`,`+(c.e+u)+`,`+(c.f+d)+`)`);else{if(u=d=0,cs)for(c=e.offsetParent,l=e;(l&&=l.parentNode)&&l!==c&&l.parentNode;)($o.getComputedStyle(l)[os]+``).length>4&&(u=l.offsetLeft,d=l.offsetTop,l=0);if(f=$o.getComputedStyle(e),f.position!==`absolute`&&f.position!==`fixed`)for(c=e.offsetParent;a&&a!==c;)u+=a.scrollLeft||0,d+=a.scrollTop||0,a=a.parentNode;l=s.style,l.top=e.offsetTop-d+`px`,l.left=e.offsetLeft-u+`px`,l[os]=f[os],l[ss]=f[ss],l.position=f.position===`fixed`?`fixed`:`absolute`,o.appendChild(s)}return s},xs=function(e,t,n,r,i,a,o){return e.a=t,e.b=n,e.c=r,e.d=i,e.e=a,e.f=o,e},Ss=function(){function e(e,t,n,r,i,a){e===void 0&&(e=1),t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=0),a===void 0&&(a=0),xs(this,e,t,n,r,i,a)}var t=e.prototype;return t.inverse=function(){var e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,a=this.f,o=e*r-t*n||1e-10;return xs(this,r/o,-t/o,-n/o,e/o,(n*a-r*i)/o,-(e*a-t*i)/o)},t.multiply=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f,s=e.a,c=e.c,l=e.b,u=e.d,d=e.e,f=e.f;return xs(this,s*t+l*r,s*n+l*i,c*t+u*r,c*n+u*i,a+d*t+f*r,o+d*n+f*i)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(e){var t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f;return t===e.a&&n===e.b&&r===e.c&&i===e.d&&a===e.e&&o===e.f},t.apply=function(e,t){t===void 0&&(t={});var n=e.x,r=e.y,i=this.a,a=this.b,o=this.c,s=this.d,c=this.e,l=this.f;return t.x=n*i+r*o+c||0,t.y=n*a+r*s+l||0,t},e}();function Cs(e,t,n,r){if(!e||!e.parentNode||(Qo||ls(e)).documentElement===e)return new Ss;var i=us(e),a=hs(e)?ds:fs,o=bs(e,n),s=a[0].getBoundingClientRect(),c=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),u=o.parentNode,d=!r&&gs(e),f=new Ss((c.left-s.left)/100,(c.top-s.top)/100,(l.left-s.left)/100,(l.top-s.top)/100,s.left+(d?0:ms()),s.top+(d?0:ps()));if(u.removeChild(o),i)for(s=i.length;s--;)c=i[s],c.scaleX=c.scaleY=0,c.renderTransform(1,c);return t?f.inverse():f}var ws=1,Ts,Es,Ds,Os,ks,As,js,Ms=function(e,t){return e.actions.forEach(function(e){return e.vars[t]&&e.vars[t](e)})},Ns={},Ps=180/Math.PI,Fs=Math.PI/180,Is={},Ls={},Rs={},zs=function(e){return typeof e==`string`?e.split(` `).join(``).split(`,`):e},Bs=zs(`onStart,onUpdate,onComplete,onReverseComplete,onInterrupt`),Vs=zs(`transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight`),Hs=function(e){return Ts(e)[0]||console.warn(`Element not found:`,e)},Us=function(e){return Math.round(e*1e4)/1e4||0},Ws=function(e,t,n){return e.forEach(function(e){return e.classList[n](t)})},Gs={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},Ks={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},qs=function(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()},Js=function(e,t){var n={},r;for(r in e)t[r]||(n[r]=e[r]);return n},Ys={},Xs=function(e){var t=Ys[e]=zs(e);return Rs[e]=t.concat(Vs),t},Zs=function(e){var t=e._gsap||Es.core.getCache(e);return t.gmCache===Es.ticker.frame?t.gMatrix:(t.gmCache=Es.ticker.frame,t.gMatrix=Cs(e,!0,!1,!0))},Qs=function e(t,n,r){r===void 0&&(r=0);for(var i=t.parentNode,a=1e3*10**r*(n?-1:1),o=n?-a*900:0;t;)o+=a,t=t.previousSibling;return i?o+e(i,n,r+1):o},$s=function(e,t,n){return e.forEach(function(e){return e.d=Qs(n?e.element:e.t,t)}),e.sort(function(e,t){return e.d-t.d}),e},ec=function(e,t){for(var n=e.element.style,r=e.css=e.css||[],i=t.length,a,o;i--;)a=t[i],o=n[a]||n.getPropertyValue(a),r.push(o?a:Ls[a]||(Ls[a]=qs(a)),o);return n},tc=function(e){var t=e.css,n=e.element.style,r=0;for(e.cache.uncache=1;r<t.length;r+=2)t[r+1]?n[t[r]]=t[r+1]:n.removeProperty(t[r]);!t[t.indexOf(`transform`)+1]&&n.translate&&(n.removeProperty(`translate`),n.removeProperty(`scale`),n.removeProperty(`rotate`))},nc=function(e,t){e.forEach(function(e){return e.a.cache.uncache=1}),t||e.finalStates.forEach(tc)},rc=`paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition`.split(`,`),ic=function(e,t,n){var r=e.element,i=e.width,a=e.height,o=e.uncache,s=e.getProp,c=r.style,l=4,u,d,f;if(typeof t!=`object`&&(t=e),Ds&&n!==1)return Ds._abs.push({t:r,b:e,a:e,sd:0}),Ds._final.push(function(){return(e.cache.uncache=1)&&tc(e)}),r;for(d=s(`display`)===`none`,(!e.isVisible||d)&&(d&&(ec(e,[`display`]).display=t.display),e.matrix=t.matrix,e.width=i=e.width||t.width,e.height=a=e.height||t.height),ec(e,rc),f=window.getComputedStyle(r);l--;)c[rc[l]]=f[rc[l]];if(c.gridArea=`1 / 1 / 1 / 1`,c.transition=`none`,c.position=`absolute`,c.width=i+`px`,c.height=a+`px`,c.top||=`0px`,c.left||=`0px`,o)u=new Dc(r);else if(u=Js(e,Is),u.position=`absolute`,e.simple){var p=r.getBoundingClientRect();u.matrix=new Ss(1,0,0,1,p.left+ms(),p.top+ps())}else u.matrix=Cs(r,!1,!1,!0);return u=mc(u,e,!0),e.x=As(u.x,.01),e.y=As(u.y,.01),r},ac=function(e,t){return t!==!0&&(t=Ts(t),e=e.filter(function(e){if(t.indexOf((e.sd<0?e.b:e.a).element)!==-1)return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+`px`,e.t.style.height=e.b.height+`px`)})),e},oc=function(e){return $s(e,!0).forEach(function(e){return(e.a.isVisible||e.b.isVisible)&&ic(e.sd<0?e.b:e.a,e.b,1)})},sc=function(e,t){return t&&e.idLookup[cc(t).id]||e.elementStates[0]},cc=function(e,t,n,r){return e instanceof Dc?e:e instanceof Ec?sc(e,r):new Dc(typeof e==`string`?Hs(e)||console.warn(e+` not found`):e,t,n)},lc=function(e,t){for(var n=Es.getProperty(e.element,null,`native`),r=e.props={},i=t.length;i--;)r[t[i]]=(n(t[i])+``).trim();return r.zIndex&&=parseFloat(r.zIndex)||0,e},uc=function(e,t){var n=e.style||e,r;for(r in t)n[r]=t[r]},dc=function(e){var t=e.getAttribute(`data-flip-id`);return t||e.setAttribute(`data-flip-id`,t=`auto-`+ws++),t},fc=function(e){return e.map(function(e){return e.element})},pc=function(e,t,n){return e&&t.length&&n.add(e(fc(t),n,new Ec(t,0,!0)),0)},mc=function(e,t,n,r,i,a){var o=e.element,s=e.cache,c=e.parent,l=e.x,u=e.y,d=t.width,f=t.height,p=t.scaleX,m=t.scaleY,h=t.rotation,g=t.bounds,_=a&&js&&js(o,`transform,width,height`),v=e,y=t.matrix,b=y.e,x=y.f,S=e.bounds.width!==g.width||e.bounds.height!==g.height||e.scaleX!==p||e.scaleY!==m||e.rotation!==h,C=!S&&e.simple&&t.simple&&!i,w,T,E,D,O,k,A;return C||!c?(p=m=1,h=w=0):(O=Zs(c),k=O.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),h=Us(Math.atan2(k.b,k.a)*Ps),w=Us(Math.atan2(k.c,k.d)*Ps+h)%360,p=Math.sqrt(k.a**2+k.b**2),m=Math.sqrt(k.c**2+k.d**2)*Math.cos(w*Fs),i&&(i=Ts(i)[0],D=Es.getProperty(i),A=i.getBBox&&typeof i.getBBox==`function`&&i.getBBox(),v={scaleX:D(`scaleX`),scaleY:D(`scaleY`),width:A?A.width:Math.ceil(parseFloat(D(`width`,`px`))),height:A?A.height:parseFloat(D(`height`,`px`))}),s.rotation=h+`deg`,s.skewX=w+`deg`),n?(p*=d===v.width||!v.width?1:d/v.width,m*=f===v.height||!v.height?1:f/v.height,s.scaleX=p,s.scaleY=m):(d=As(d*p/v.scaleX,0),f=As(f*m/v.scaleY,0),o.style.width=d+`px`,o.style.height=f+`px`),r&&uc(o,t.props),C||!c?(l+=b-e.matrix.e,u+=x-e.matrix.f):S||c!==t.parent?(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s),k=Cs(i||o,!1,!1,!0),T=O.apply({x:k.e,y:k.f}),E=O.apply({x:b,y:x}),l+=E.x-T.x,u+=E.y-T.y):(O.e=O.f=0,E=O.apply({x:b-e.matrix.e,y:x-e.matrix.f}),l+=E.x,u+=E.y),l=As(l,.02),u=As(u,.02),a&&!(a instanceof Dc)?_&&_.revert():(s.x=l+`px`,s.y=u+`px`,s.renderTransform(1,s)),a&&(a.x=l,a.y=u,a.rotation=h,a.skewX=w,n?(a.scaleX=p,a.scaleY=m):(a.width=d,a.height=f)),a||s},hc=function(e,t){return e instanceof Ec?e:new Ec(e,t)},gc=function(e,t,n){var r=e.idLookup[n],i=e.alt[n];return i.isVisible&&(!(t.getElementState(i.element)||i).isVisible||!r.isVisible)?i:r},_c=[],vc=`width,height,overflowX,overflowY`.split(`,`),yc,bc=function(e){if(e!==yc){var t=ks.style,n=ks.clientWidth===window.outerWidth,r=ks.clientHeight===window.outerHeight,i=4;if(e&&(n||r)){for(;i--;)_c[i]=t[vc[i]];n&&(t.width=ks.clientWidth+`px`,t.overflowY=`hidden`),r&&(t.height=ks.clientHeight+`px`,t.overflowX=`hidden`),yc=e}else if(yc){for(;i--;)_c[i]?t[vc[i]]=_c[i]:t.removeProperty(qs(vc[i]));yc=e}}},xc=function(e,t){for(var n=0;n<e.length;n+=3)Es.set(e[n],{clearProps:!0}),e[n].setAttribute(`style`,e[n+t]),e[n]._gsap.gmCache=-1},Sc=function(e,t,n,r){e instanceof Ec&&t instanceof Ec||console.warn(`Not a valid state object.`),n||={};var i=n,a=i.clearProps,o=i.onEnter,s=i.onLeave,c=i.absolute,l=i.absoluteOnLeave,u=i.custom,d=i.delay,f=i.paused,p=i.repeat,m=i.repeatDelay,h=i.yoyo,g=i.toggleClass,_=i.nested,v=i.zIndex,y=i.scale,b=i.fade,x=i.stagger,S=i.spin,C=i.prune,w=(`props`in n?n:e).props,T=Js(n,Gs),E=Es.timeline({delay:d,paused:f,repeat:p,repeatDelay:m,yoyo:h,data:`isFlip`}),D=T,O=[],k=[],A=[],j=[],M=S===!0?1:S||0,ee=typeof S==`function`?S:function(){return M},te=e.interrupted||t.interrupted,ne=E[r===1?`from`:`to`],re,N,ie,P,F,I,ae,oe,se,ce,le,ue,L,de;for(N in t.idLookup)le=t.alt[N]?gc(t,e,N):t.idLookup[N],F=le.element,ce=e.idLookup[N],e.alt[N]&&F===ce.element&&(e.alt[N].isVisible||!le.isVisible)&&(ce=e.alt[N]),ce?(I={t:F,b:ce,a:le,sd:ce.element===F?0:le.isVisible?1:-1},A.push(I),I.sd&&(I.sd<0&&(I.b=le,I.a=ce),te&&ec(I.b,w?Rs[w]:Vs),b&&A.push(I.swap={t:ce.element,b:I.b,a:I.a,sd:-I.sd,swap:I})),F._flip=ce.element._flip=Ds?Ds.timeline:E):le.isVisible&&(A.push({t:F,b:Js(le,{isVisible:1}),a:le,sd:0,entering:1}),F._flip=Ds?Ds.timeline:E);if(w&&(Ys[w]||Xs(w)).forEach(function(e){return T[e]=function(t){return A[t].a.props[e]}}),A.finalStates=se=[],ue=function(){$s(A),bc(!0);var t=[];for(P=0;P<A.length;P++)I=A[P],L=I.a,de=I.b,C&&!L.isDifferent(de)&&!I.entering?A.splice(P--,1):(F=I.t,_&&!(I.sd<0)&&P&&(L=I.a=L.clone({matrix:Cs(F,!1,!1,!0)})),de.isVisible&&L.isVisible?(I.sd<0?(_&&xc(t,1),ae=new Dc(F,w,e.simple),mc(ae,L,y,0,0,ae),ae.matrix=Cs(F,!1,!1,!0),ae.bounds=F.getBoundingClientRect(),ae.css=I.b.css,I.a=L=ae,b&&(F.style.opacity=te?de.opacity:L.opacity),x&&j.push(F),_&&(xc(t,2),t.push(F,F.getAttribute(`style`)))):I.sd>0&&b&&(F.style.opacity=te?L.opacity-de.opacity:`0`),mc(L,de,y,w),_&&I.sd<0&&t.push(F.getAttribute(`style`))):de.isVisible!==L.isVisible&&(de.isVisible?L.isVisible||(de.css=L.css,k.push(de),A.splice(P--,1),c&&_&&mc(L,de,y,w)):(L.isVisible&&O.push(L),A.splice(P--,1))),y||(F.style.maxWidth=Math.max(L.width,de.width)+`px`,F.style.maxHeight=Math.max(L.height,de.height)+`px`,F.style.minWidth=Math.min(L.width,de.width)+`px`,F.style.minHeight=Math.min(L.height,de.height)+`px`),_&&g&&F.classList.add(g)),se.push(L);var r;if(g&&(r=se.map(function(e){return e.element}),_&&r.forEach(function(e){return e.classList.remove(g)})),bc(!1),y?(T.scaleX=function(e){return A[e].a.scaleX},T.scaleY=function(e){return A[e].a.scaleY}):(T.width=function(e){return A[e].a.width+`px`},T.height=function(e){return A[e].a.height+`px`},T.autoRound=n.autoRound||!1),T.x=function(e){return A[e].a.x+`px`},T.y=function(e){return A[e].a.y+`px`},T.rotation=function(e){return A[e].a.rotation+(S?ee(e,oe[e],oe)*360:0)},T.skewX=function(e){return A[e].a.skewX},oe=A.map(function(e){return e.t}),(v||v===0)&&(T.modifiers={zIndex:function(){return v}},T.zIndex=v,T.immediateRender=n.immediateRender!==!1),b&&(T.opacity=function(e){return A[e].sd<0?0:A[e].sd>0?A[e].a.opacity:`+=0`}),j.length){x=Es.utils.distribute(x);var i=oe.slice(j.length);T.stagger=function(e,t){return x(~j.indexOf(t)?oe.indexOf(A[e].swap.t):e,t,i)}}if(Bs.forEach(function(e){return n[e]&&E.eventCallback(e,n[e],n[e+`Params`])}),u&&oe.length)for(N in D=Js(T,Gs),`scale`in u&&(u.scaleX=u.scaleY=u.scale,delete u.scale),u)re=Js(u[N],Ks),re[N]=T[N],!(`duration`in re)&&`duration`in T&&(re.duration=T.duration),re.stagger=T.stagger,ne.call(E,oe,re,0),delete D[N];(oe.length||k.length||O.length)&&(g&&E.add(function(){return Ws(r,g,E._zTime<0?`remove`:`add`)},0)&&!f&&Ws(r,g,`add`),oe.length&&ne.call(E,oe,D,0)),pc(o,O,E),pc(s,k,E);var l=Ds&&Ds.timeline;l&&(l.add(E,0),Ds._final.push(function(){return nc(A,!a)})),ie=E.duration(),E.call(function(){var e=E.time()>=ie;e&&!l&&nc(A,!a),g&&Ws(r,g,e?`remove`:`add`)})},l&&(c=A.filter(function(e){return!e.sd&&!e.a.isVisible&&e.b.isVisible}).map(function(e){return e.a.element})),Ds){var fe;c&&(fe=Ds._abs).push.apply(fe,ac(A,c)),Ds._run.push(ue)}else c&&oc(ac(A,c)),ue();var pe=Ds?Ds.timeline:E;return pe.revert=function(){return wc(pe,1,1)},pe},Cc=function e(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(e)},wc=function(e,t,n){if(e&&e.progress()<1&&(!e.paused()||n))return t&&(Cc(e),t<2&&e.progress(1),e.kill()),!0},Tc=function(e){for(var t=e.idLookup={},n=e.alt={},r=e.elementStates,i=r.length,a;i--;)a=r[i],t[a.id]?n[a.id]=a:t[a.id]=a},Ec=function(){function e(e,t,n){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),n)this.targets=fc(e),this.elementStates=e,Tc(this);else{this.targets=Ts(e);var r=t&&(t.kill===!1||t.batch&&!t.kill);Ds&&!r&&Ds._kill.push(this),this.update(r||!!Ds)}}var t=e.prototype;return t.update=function(e){var t=this;return this.elementStates=this.targets.map(function(e){return new Dc(e,t.props,t.simple)}),Tc(this),this.interrupt(e),this.recordInlineStyles(),this},t.clear=function(){return this.targets.length=this.elementStates.length=0,Tc(this),this},t.fit=function(e,t,n){for(var r=$s(this.elementStates.slice(0),!1,!0),i=(e||this).idLookup,a=0,o,s;a<r.length;a++)o=r[a],n&&(o.matrix=Cs(o.element,!1,!1,!0)),s=i[o.id],s&&mc(o,s,t,!0,0,o),o.matrix=Cs(o.element,!1,!1,!0);return this},t.getProperty=function(e,t){var n=this.getElementState(e)||Is;return(t in n?n:n.props||Is)[t]},t.add=function(e){for(var t=e.targets.length,n=this.idLookup,r=this.alt,i,a,o;t--;)a=e.elementStates[t],o=n[a.id],o&&(a.element===o.element||r[a.id]&&r[a.id].element===a.element)?(i=this.elementStates.indexOf(a.element===o.element?o:r[a.id]),this.targets.splice(i,1,e.targets[t]),this.elementStates.splice(i,1,a)):(this.targets.push(e.targets[t]),this.elementStates.push(a));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),Tc(this),this},t.compare=function(e){var t=e.idLookup,n=this.idLookup,r=[],i=[],a=[],o=[],s=[],c=e.alt,l=this.alt,u=function(e,t,n){return(e.isVisible===t.isVisible?e.isVisible?i:r:e.isVisible?a:o).push(n)&&s.push(n)},d=function(e,t,n){return s.indexOf(n)<0&&u(e,t,n)},f,p,m,h,g,_,v,y;for(m in t)g=c[m],_=l[m],f=g?gc(e,this,m):t[m],h=f.element,p=n[m],_?(y=p.isVisible||!_.isVisible&&h===p.element?p:_,v=g&&!f.isVisible&&!g.isVisible&&y.element===g.element?g:f,v.isVisible&&y.isVisible&&v.element!==y.element?((v.isDifferent(y)?i:r).push(v.element,y.element),s.push(v.element,y.element)):u(v,y,v.element),g&&v.element===g.element&&(g=t[m]),d(v.element!==p.element&&g?g:v,p,p.element),d(g&&g.element===_.element?g:v,_,_.element),g&&d(g,_.element===g.element?_:p,g.element)):(p?p.isDifferent(f)?u(f,p,h):r.push(h):a.push(h),g&&d(g,p,g.element));for(m in n)t[m]||(o.push(n[m].element),l[m]&&o.push(l[m].element));return{changed:i,unchanged:r,enter:a,leave:o}},t.recordInlineStyles=function(){for(var e=Rs[this.props]||Vs,t=this.elementStates.length;t--;)ec(this.elementStates[t],e)},t.interrupt=function(e){var t=this,n=[];this.targets.forEach(function(r){var i=r._flip,a=wc(i,+!e);e&&a&&n.indexOf(i)<0&&i.add(function(){return t.updateVisibility()}),a&&n.push(i)}),!e&&n.length&&this.updateVisibility(),this.interrupted||=!!n.length},t.updateVisibility=function(){this.elementStates.forEach(function(e){var t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})},t.getElementState=function(e){return this.elementStates[this.targets.indexOf(Hs(e))]},t.makeAbsolute=function(){return $s(this.elementStates.slice(0),!0,!0).map(ic)},e}(),Dc=function(){function e(t,n,r){t instanceof e?Object.assign(this,t,n||{}):(this.element=t,this.update(n,r))}var t=e.prototype;return t.isDifferent=function(e){var t=this.bounds,n=e.bounds;return t.top!==n.top||t.left!==n.left||t.width!==n.width||t.height!==n.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)},t.clone=function(t){return new e(this,t)},t.update=function(e,t){var n=this,r=n.element,i=Es.getProperty(r),a=Es.core.getCache(r),o=r.getBoundingClientRect(),s=r.getBBox&&typeof r.getBBox==`function`&&r.nodeName.toLowerCase()!==`svg`&&r.getBBox(),c=t?new Ss(1,0,0,1,o.left+ms(),o.top+ps()):Cs(r,!1,!1,!0);a.uncache=1,n.getProp=i,n.element=r,n.id=dc(r),n.matrix=c,n.cache=a,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=i(`display`),n.position=i(`position`),n.parent=r.parentNode,n.x=i(`x`,`px`),n.y=i(`y`,`px`),n.scaleX=a.scaleX,n.scaleY=a.scaleY,n.rotation=i(`rotation`),n.skewX=i(`skewX`),n.opacity=i(`opacity`),n.width=s?s.width:As(i(`width`,`px`),.04),n.height=s?s.height:As(i(`height`,`px`),.04),e&&lc(n,Ys[e]||Xs(e)),n.ctm=r.getCTM&&r.nodeName.toLowerCase()===`svg`&&ys(r).inverse(),n.simple=t||Us(c.a)===1&&!Us(c.b)&&!Us(c.c)&&Us(c.d)===1,n.uncache=0},e}(),Oc=function(){function e(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}var t=e.prototype;return t.getStateById=function(e){for(var t=this.states.length;t--;)if(this.states[t].idLookup[e])return this.states[t]},t.kill=function(){this.batch.remove(this)},e}(),kc=function(){function e(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new Ec,this.timeline=Es.timeline()}var t=e.prototype;return t.add=function(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new Oc(typeof e==`function`?{animate:e}:e,this),this.actions.push(t),t)},t.remove=function(e){var t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this},t.getState=function(e){var t=this,n=Ds,r=Os;return Ds=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(n){n.vars.getState&&(n.states.length=0,Os=n,n.state=n.vars.getState(n)),e&&n.states.forEach(function(e){return t.state.add(e)})}),Os=r,Ds=n,this.killConflicts(),this},t.animate=function(){var e=this,t=Ds,n=this.timeline,r=this.actions.length,i,a;for(Ds=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(e){e.vars.animate&&e.vars.animate(e);var t=e.vars.onEnter,n=e.vars.onLeave,r=e.targets,i,a;r&&r.length&&(t||n)&&(i=new Ec,e.states.forEach(function(e){return i.add(e)}),a=i.compare(Ac.getState(r)),a.enter.length&&t&&t(a.enter),a.leave.length&&n&&n(a.leave))}),oc(this._abs),this._run.forEach(function(e){return e()}),a=n.duration(),i=this._final.slice(0),n.add(function(){a<=n.time()&&(i.forEach(function(e){return e()}),Ms(e,`onComplete`))}),Ds=t;r--;)this.actions[r].vars.once&&this.actions[r].kill();return Ms(this,`onStart`),n.restart(),this},t.loadState=function(e){e||=function(){return 0};var t=[];return this.actions.forEach(function(n){if(n.vars.loadState){var r,i=function i(a){a&&(n.targets=a),r=t.indexOf(i),~r&&(t.splice(r,1),t.length||e())};t.push(i),n.vars.loadState(i)}}),t.length||e(),this},t.setState=function(){return this.actions.forEach(function(e){return e.targets=e.vars.setState&&e.vars.setState(e)}),this},t.killConflicts=function(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},t.run=function(e,t){var n=this;return this!==Ds&&(e||this.getState(t),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},t.clear=function(e){this.state.clear(),e||(this.actions.length=0)},t.getStateById=function(e){for(var t=this.actions.length,n;t--;)if(n=this.actions[t].getStateById(e),n)return n;return this.state.idLookup[e]&&this.state},t.kill=function(){this._killed=1,this.clear(),delete Ns[this.id]},e}(),Ac=function(){function e(){}return e.getState=function(t,n){var r=hc(t,n);return Os&&Os.states.push(r),n&&n.batch&&e.batch(n.batch).state.add(r),r},e.from=function(e,t){return t||={},`clearProps`in t||(t.clearProps=!0),Sc(e,hc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)},e.to=function(e,t){return Sc(e,hc(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)},e.fromTo=function(e,t,n){return Sc(e,t,n)},e.fit=function(e,t,n){var r=n?Js(n,Ks):{},i=n||r,a=i.absolute,o=i.scale,s=i.getVars,c=i.props,l=i.runBackwards,u=i.onComplete,d=i.simple,f=n&&n.fitChild&&Hs(n.fitChild),p=cc(t,c,d,e),m=cc(e,0,d,p),h=c?Rs[c]:Vs,g=Es.context();return c&&uc(r,p.props),ec(m,h),l&&(`immediateRender`in r||(r.immediateRender=!0),r.onComplete=function(){tc(m),u&&u.apply(this,arguments)}),a&&ic(m,p),r=mc(m,p,o||f,!r.duration&&c,f,r.duration||s?r:0),typeof n==`object`&&`zIndex`in n&&(r.zIndex=n.zIndex),g&&!s&&g.add(function(){return function(){return tc(m)}}),s?r:r.duration?Es.to(m.element,r):null},e.makeAbsolute=function(e,t){return(e instanceof Ec?e:new Ec(e,t)).makeAbsolute()},e.batch=function(e){return e||=`default`,Ns[e]||(Ns[e]=new kc(e))},e.killFlipsOf=function(e,t){(e instanceof Ec?e.targets:Ts(e)).forEach(function(e){return e&&wc(e._flip,t===!1?2:1)})},e.isFlipping=function(t){var n=e.getByTarget(t);return!!n&&n.isActive()},e.getByTarget=function(e){return(Hs(e)||Is)._flip},e.getElementState=function(e,t){return new Dc(Hs(e),t)},e.convertCoordinates=function(e,t,n){var r=Cs(t,!0,!0).multiply(Cs(e));return n?r.apply(n):r},e.register=function(e){if(ks=typeof document<`u`&&document.body,ks){Es=e,ls(ks),Ts=Es.utils.toArray,js=Es.core.getStyleSaver;var t=Es.utils.snap(.1);As=function(e,n){return t(parseFloat(e)+n)}}},e}();Ac.version=`3.15.0`,typeof window<`u`&&window.gsap&&window.gsap.registerPlugin(Ac);var jc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Mc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Nc=Math.PI/180;180/Math.PI;var Pc=Math.sin,Fc=Math.cos,Ic=Math.abs,Lc=Math.sqrt,Rc=function(e){return typeof e==`number`},zc=1e5,Bc=function(e){return Math.round(e*zc)/zc||0},Vc=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function Hc(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function Uc(e,t,n,r,i,a,o,s,c){if(e!==s||t!==c){n=Ic(n),r=Ic(r);var l=i%360*Nc,u=Fc(l),d=Pc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=Lc(b)*n,r=Lc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*Lc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,ee=(-g-T)/n,te=(-_-E)/r,ne=j*j+M*M,re=(M<0?-1:1)*Math.acos(j/Lc(ne)),N=(j*te-M*ee<0?-1:1)*Math.acos((j*ee+M*te)/Lc(ne*(ee*ee+te*te)));isNaN(N)&&(N=f),!o&&N>0?N-=p:o&&N<0&&(N+=p),re%=p,N%=p;var ie=Math.ceil(Ic(N)/(p/4)),P=[],F=N/ie,I=4/3*Pc(F/2)/(1+Fc(F/2)),ae=u*n,oe=d*n,se=d*-r,ce=u*r,le;for(le=0;le<ie;le++)i=re+le*F,g=Fc(i),_=Pc(i),j=Fc(i+=F),M=Pc(i),P.push(g-I*_,_+I*g,j+I*M,M-I*j,j,M);for(le=0;le<P.length;le+=2)g=P[le],_=P[le+1],P[le]=g*ae+_*se+k,P[le+1]=g*oe+_*ce+A;return P[le-2]=s,P[le-1]=c,P}}function Wc(e){var t=(e+``).replace(Mc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(jc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,Vc(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||Ic(r-d)>.5||Ic(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=Uc(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):Vc(h),n.totalPoints=s+l,n}function Gc(e){Rc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+Bc(o[0])+`,`+Bc(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=Bc(o[a++])+`,`+Bc(o[a++])+` `+Bc(o[a++])+`,`+Bc(o[a++])+` `+Bc(o[a++])+`,`+Bc(o[a])+` `;o.closed&&(t+=`z`)}return t}var Kc,qc,Jc=function(){return Kc||typeof window<`u`&&(Kc=window.gsap)&&Kc.registerPlugin&&Kc},Yc=function(){Kc=Jc(),Kc?(Kc.registerEase(`_CE`,il.create),qc=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},Xc=0x56bc75e2d63100000,Zc=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},Qc=1,$c=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,el=/[cLlsSaAhHvVtTqQ]/g,tl=function(e){var t=e.length,n=Xc,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},nl=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?tl(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},rl=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},il=function(){function e(e,t,n){qc||Yc(),this.id=e,Qc&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match($c),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(el.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=Wc(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&nl(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),rl(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&Kc&&Kc.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){Kc=e,Yc()},e.get=function(e){return Kc.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=Kc.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=Kc.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=Gc(Hc([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=Zc(a+d*r),_=Zc(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=Zc(a+u*d*r),p=Zc(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();il.version=`3.15.0`,il.headless=!0,Jc()&&Kc.registerPlugin(il);var al;Q.registerPlugin(Ac,il),il.create(`morph-open`,`0.15, 0.85, 0.2, 1`),il.create(`morph-close`,`0.4, 0, 0.2, 1`);var ol={fromAttribute:e=>e!==`false`&&e!==null,toAttribute:e=>e?``:null},$=class extends W{static{al=this}constructor(...e){super(...e),this.target=``,this.open=!1,this.modal=!0,this.placement=`center`,this.expandedWidth=`22rem`,this.expandedHeight=`18rem`,this.closeOnClickOutside=!0,this.closeOnEsc=!0,this.showCloseButton=!1,this.morphLabel=!1,this.morphLabelSelector=``,this.hasBackdrop=!0,this.hideTarget=!1,this.coverTarget=!1,this.autoSize=!1,this.blurContent=!1,this._hasHeader=!1,this._hasFooter=!1,this._hasTriggerLabel=!1,this._targetEl=null,this._isAnimating=!1,this._visible=!1,this._handlingOpenChange=!1,this._zIndex=100,this._morphEls={text:null,icon:null},this._targetStylesCache=new Map,this._onTargetClick=()=>this.show(),this._onDocKeydown=e=>this._handleDocKeydown(e),this._onDocClick=e=>{!this.open||!this._visible||!this.closeOnClickOutside||e.composedPath().includes(this._panel)||this._targetEl&&e.composedPath().includes(this._targetEl)||this.hide()}}static{this._openStack=[]}connectedCallback(){super.connectedCallback(),this._resolveTarget(),document.addEventListener(`keydown`,this._onDocKeydown),document.addEventListener(`click`,this._onDocClick)}disconnectedCallback(){document.removeEventListener(`keydown`,this._onDocKeydown),document.removeEventListener(`click`,this._onDocClick),this._targetEl&&this._targetEl.removeEventListener(`click`,this._onTargetClick);let e=al._openStack.indexOf(this);e>-1&&al._openStack.splice(e,1),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`),this._cleanupMorphElements(),this._restoreTargetContent(),super.disconnectedCallback()}updated(e){super.updated(e),e.has(`target`)&&this._resolveTarget(),e.has(`open`)&&!this._handlingOpenChange&&(this.open?this.show():this.hide())}_resolveTarget(){if(!this.target)return;let e=document.querySelector(this.target);e&&(this._targetEl&&this._targetEl!==e&&this._targetEl.removeEventListener(`click`,this._onTargetClick),this._targetEl=e,this._targetEl.addEventListener(`click`,this._onTargetClick))}show(){if(!(this._isAnimating||this._visible)){if(this._targetEl||this._resolveTarget(),!this._targetEl){console.warn(`[moni-morph-modal] cannot show: target not found`);return}this._isAnimating=!0,this._handlingOpenChange=!0,this.open=!0,this._handlingOpenChange=!1,al._openStack.push(this),this._zIndex=1e3+al._openStack.length,this.style.zIndex=String(this._zIndex),this.style.setProperty(`--_z-index`,String(this._zIndex)),this.style.setProperty(`--_backdrop-duration`,`0.38s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.15, 0.85, 0.2, 1)`),this._hideTargetContent(),this.updateComplete.then(async()=>{if(!this._targetEl||!this._panel||!this._inner){this._isAnimating=!1;return}this._panel.classList.add(`is-animating`),await new Promise(e=>requestAnimationFrame(e));let e=this._getTargetState(this._targetEl),t=this._panel;this._applyRect(t,e.rect),t.style.backgroundColor=e.backgroundColor,t.style.color=e.color,t.style.borderRadius=e.borderRadius,t.style.boxShadow=`none`,t.style.zIndex=String(this._zIndex),t.style.visibility=`visible`,t.style.opacity=`1`,t.style.pointerEvents=`auto`,this._backdrop&&(this._backdrop.style.zIndex=String(this._zIndex-1)),this._cleanupMorphElements();let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=this._shouldMorphLabel()&&!n,i=[],a=null,o=this.shadowRoot.querySelector(`.header-morph-wrapper`);if(r){if(this._animateLabelOpen(),a=this._resolveMorphSource(),a.text){let e=this._createMorphText(a.text.content,a.text.sourceEl);this._positionElement(e,a.text.rect),i.push(e)}if(a.icon){let e=this._createMorphIcon(a.icon.element);this._positionElement(e,a.icon.rect),i.push(e)}i.length===0&&(r=!1)}r&&o&&(o.style.opacity=`0`);let s=Ac.getState(t,{props:`backgroundColor,borderRadius,color,boxShadow`}),c=Ac.getState(i,{props:`color,fontSize,fontWeight,lineHeight`}),l;if(this.autoSize){let e=t.style.getPropertyValue(`--_panel-width`),n=t.style.getPropertyValue(`--_panel-height`),r=t.style.width,i=t.style.height;t.style.width=`auto`,t.style.height=`auto`,t.style.setProperty(`--_panel-width`,`max-content`),t.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),l={width:this._inner.scrollWidth,height:this._inner.scrollHeight},t.style.setProperty(`--_panel-width`,e),t.style.setProperty(`--_panel-height`,n),t.style.width=r,t.style.height=i,a&&(a.style.overflow=o)}let u=this._computeFinalRect(e.rect,l);if(t.style.setProperty(`--_panel-width`,`${u.width}px`),t.style.setProperty(`--_panel-height`,`${u.height}px`),this._applyRect(t,u),t.style.backgroundColor=``,t.style.color=``,t.style.borderRadius=``,t.style.boxShadow=``,r&&a){let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);this._morphEls.text&&e&&(this._positionElement(this._morphEls.text,e),this._morphEls.text.style.color=n.color||`var(--on-surface)`,this._morphEls.text.style.fontSize=n.fontSize||`inherit`,this._morphEls.text.style.fontWeight=n.fontWeight||`inherit`,this._morphEls.text.style.lineHeight=n.lineHeight||`inherit`),this._morphEls.icon&&t&&(this._positionElement(this._morphEls.icon,t),this._morphEls.icon.style.color=n.color||`var(--on-surface)`)}if(Ac.from(s,{targets:t,duration:.38,ease:`morph-open`,zIndex:this._zIndex,onComplete:()=>{this._isAnimating=!1,this._visible=!0,this._cleanupMorphElements(),o&&(o.style.opacity=`1`)}}),i.length>0){this.blurContent&&Q.set(i,{filter:`blur(16px)`});let e={targets:i,duration:.38,ease:`morph-open`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(0px)`,e.clearProps=`filter`),Ac.from(c,e)}let d=[this.shadowRoot.querySelector(`.body`),this.shadowRoot.querySelector(`footer`),this.shadowRoot.querySelector(`.close-btn`)].filter(Boolean),f=this.blurContent?`blur(16px)`:`blur(0px)`;Q.set(d,{opacity:0,y:8,filter:f}),Q.fromTo(d,{opacity:0,y:8,filter:f},{opacity:1,y:0,filter:`blur(0px)`,duration:.32,delay:.08,stagger:.04,ease:`power2.out`,onComplete:()=>{Q.set(d,{clearProps:`opacity,transform,filter`}),this._panel.classList.remove(`is-animating`)}})})}}showFrom(e){e&&(this._targetEl=e,this.show())}resizeTo(e,t,n=`center`){if(this.expandedWidth=e,this.expandedHeight=t,!this._visible||!this._panel||!this._targetEl)return;let r=this._computeFinalRect(this._targetEl.getBoundingClientRect()),i=this.parentElement?.closest(`.lab-canvas, [data-morph-coordinate-space]`),a=i?getComputedStyle(i).transform:`none`,o=1,s=1,c;if(i&&a!==`none`){let e=new DOMMatrix(a);o=Math.hypot(e.a,e.b)||1,s=Math.hypot(e.c,e.d)||1,c=i.getBoundingClientRect()}if(n===`top-left`){let e=this._panel.getBoundingClientRect(),t=e.left,n=e.top;c&&(t=(e.left-c.left)/o,n=(e.top-c.top)/s),r=new DOMRect(t,n,r.width,r.height)}else if(n===`center`&&c){let e=window.innerWidth/2-r.width*o/2,t=window.innerHeight/2-r.height*s/2;r=new DOMRect((e-c.left)/o,(t-c.top)/s,r.width,r.height)}this._panel.classList.add(`is-animating`),Q.to(this._panel,{top:r.top,left:r.left,width:r.width,height:r.height,"--_panel-width":`${r.width}px`,"--_panel-height":`${r.height}px`,duration:.32,ease:`morph-open`,overwrite:!0,onComplete:()=>this._panel?.classList.remove(`is-animating`),onInterrupt:()=>this._panel?.classList.remove(`is-animating`)})}_ensureSolidPanelBackground(){if(!this._panel)return;let e=window.getComputedStyle(this._panel).backgroundColor;if(this._isColorTransparent(e)){let e=this._findSolidBackground(this._panel);if(e)this._panel.style.backgroundColor=e;else{let e=getComputedStyle(document.body).getPropertyValue(`--surface-container-high`).trim();this._panel.style.backgroundColor=e||`#2d2d2d`}}}hide(){if(this._isAnimating||!this._visible||!this._targetEl)return;this._isAnimating=!0,this._panel.classList.add(`is-animating`),this._ensureSolidPanelBackground(),this.style.setProperty(`--_backdrop-duration`,`0.3s`),this.style.setProperty(`--_backdrop-ease`,`cubic-bezier(0.4, 0, 0.2, 1)`);let e=[this.shadowRoot.querySelector(`.body`),this.shadowRoot.querySelector(`footer`),this.shadowRoot.querySelector(`.close-btn`)].filter(Boolean),t=this.shadowRoot.querySelector(`.header-morph-wrapper`),n=this.blurContent?`blur(12px)`:`blur(0px)`;Q.fromTo(e,{opacity:1,filter:`blur(0px)`},{opacity:0,filter:n,duration:.12,ease:`power2.in`,onComplete:()=>{let n=this._panel;this._cleanupMorphElements();let r=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,i=this._shouldMorphLabel()&&!r,a=[],o=null;if(i){this._animateLabelClose(),o=this._resolveMorphSource();let e=this._measureHeaderTextRect(),t=this._measureHeaderIconRect(),n=window.getComputedStyle(this._header);if(o.text&&e){let t=this._createMorphText(o.text.content,o.text.sourceEl);this._positionElement(t,e),t.style.color=n.color||`var(--on-surface)`,t.style.fontSize=n.fontSize||`inherit`,t.style.fontWeight=n.fontWeight||`inherit`,t.style.lineHeight=n.lineHeight||`inherit`,a.push(t)}if(o.icon&&t){let e=this._createMorphIcon(o.icon.element);this._positionElement(e,t),e.style.color=n.color||`var(--on-surface)`,a.push(e)}a.length===0&&(i=!1)}i&&t&&(t.style.opacity=`0`);let s=Ac.getState(n,{props:`backgroundColor,borderRadius,color,boxShadow`}),c=Ac.getState(a,{props:`color,fontSize,fontWeight,lineHeight`}),l=this._getTargetState(this._targetEl),u;if(this.autoSize){let e=n.style.getPropertyValue(`--_panel-width`),t=n.style.getPropertyValue(`--_panel-height`),r=n.style.width,i=n.style.height;n.style.width=`auto`,n.style.height=`auto`,n.style.setProperty(`--_panel-width`,`max-content`),n.style.setProperty(`--_panel-height`,`max-content`);let a=this.shadowRoot.querySelector(`.body`),o=a?a.style.overflow:``;a&&(a.style.overflow=`visible`),u={width:this._inner.scrollWidth,height:this._inner.scrollHeight},n.style.setProperty(`--_panel-width`,e),n.style.setProperty(`--_panel-height`,t),n.style.width=r,n.style.height=i,a&&(a.style.overflow=o)}let d=this._computeFinalRect(l.rect,u);if(n.style.setProperty(`--_panel-width`,`${d.width}px`),n.style.setProperty(`--_panel-height`,`${d.height}px`),this._applyRect(n,l.rect),n.style.backgroundColor=l.backgroundColor,n.style.color=l.color,n.style.borderRadius=l.borderRadius,n.style.boxShadow=`none`,i&&o&&(this._morphEls.text&&o.text&&(this._positionElement(this._morphEls.text,o.text.rect),this._morphEls.text.style.color=window.getComputedStyle(o.text.sourceEl).color||`inherit`,this._morphEls.text.style.fontSize=window.getComputedStyle(o.text.sourceEl).fontSize||`inherit`,this._morphEls.text.style.fontWeight=window.getComputedStyle(o.text.sourceEl).fontWeight||`inherit`,this._morphEls.text.style.lineHeight=window.getComputedStyle(o.text.sourceEl).lineHeight||`inherit`),this._morphEls.icon&&o.icon&&(this._positionElement(this._morphEls.icon,o.icon.rect),this._morphEls.icon.style.color=window.getComputedStyle(o.icon.element).color||`inherit`)),Ac.from(s,{targets:n,duration:.3,ease:`morph-close`,zIndex:this._zIndex,onComplete:()=>{n.style.visibility=`hidden`,n.style.opacity=`0`,n.style.pointerEvents=`none`,this._visible=!1,this._handlingOpenChange=!0,this.open=!1,this._handlingOpenChange=!1,this._isAnimating=!1,this._panel.classList.remove(`is-animating`),this._panel.style.removeProperty(`--_panel-width`),this._panel.style.removeProperty(`--_panel-height`),this._cleanupMorphElements(),this._restoreTargetContent(),Q.set(e,{clearProps:`opacity,transform,filter`}),t&&(t.style.opacity=`1`),this.style.removeProperty(`z-index`),this.style.removeProperty(`--_z-index`),this.style.removeProperty(`--_backdrop-duration`),this.style.removeProperty(`--_backdrop-ease`);let r=al._openStack.indexOf(this);r>-1&&al._openStack.splice(r,1)}}),a.length>0){this.blurContent&&Q.set(a,{filter:`blur(0px)`});let e={targets:a,duration:.3,ease:`morph-close`,zIndex:this._zIndex+10};this.blurContent&&(e.filter=`blur(12px)`),Ac.from(c,e)}}})}toggle(){this._visible||this.open?this.hide():this.show()}_handleDocKeydown(e){e.key!==`Escape`||!this.closeOnEsc||al._openStack[al._openStack.length-1]===this&&(e.stopPropagation(),this.hide())}_hideTargetContent(){if(!this._targetEl)return;let e=(e,t)=>{this._targetStylesCache.has(e)||this._targetStylesCache.set(e,{opacity:e.style.opacity,color:e.style.color}),t===`opacity`&&(e.style.opacity=`0`),t===`color`&&(e.style.color=`transparent`)};if(this.hideTarget){e(this._targetEl,`opacity`);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label,`opacity`),t.icon&&e(t.icon,`opacity`),t.iconTrailing&&e(t.iconTrailing,`opacity`)}else{e(this._targetEl,`color`);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t,`opacity`)}}_restoreTargetContent(){if(!this._targetEl)return;let e=e=>{if(this._targetStylesCache.has(e)){let t=this._targetStylesCache.get(e);e.style.opacity=t.opacity,e.style.color=t.color,this._targetStylesCache.delete(e)}};if(this.hideTarget){e(this._targetEl);return}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();t.label&&e(t.label),t.icon&&e(t.icon),t.iconTrailing&&e(t.iconTrailing)}else{e(this._targetEl);let t=this._targetEl.querySelector(`moni-icon, svg, [class*="icon"]`);t&&e(t)}}_onHeaderSlotChange(e){let t=e.target;this._hasHeader=t.assignedNodes({flatten:!0}).length>0}_onFooterSlotChange(e){let t=e.target;this._hasFooter=t.assignedNodes({flatten:!0}).length>0}_onTriggerLabelSlotChange(e){let t=e.target;this._hasTriggerLabel=t.assignedNodes({flatten:!0}).length>0}_getTriggerLabelNodes(){return(this.shadowRoot?.querySelector(`slot[name="trigger-label"]`))?.assignedNodes({flatten:!0})??[]}_shouldMorphLabel(){return this.morphLabel&&!!this._targetEl&&(this._hasHeader||this._hasTriggerLabel)}_cleanupMorphElements(){this._morphEls.text&&(this._morphEls.text.remove(),this._morphEls.text=null),this._morphEls.icon&&(this._morphEls.icon.remove(),this._morphEls.icon=null)}_animateLabelOpen(){}_animateLabelClose(){}_createMorphText(e,t){let n=document.createElement(`div`);n.className=`morph-text`,n.setAttribute(`data-flip-id`,`morph-text-${this.target}`),n.setAttribute(`aria-hidden`,`true`),n.textContent=e;let r=window.getComputedStyle(t);return n.style.position=`fixed`,n.style.pointerEvents=`none`,n.style.zIndex=String(this._zIndex+10),n.style.display=`inline-flex`,n.style.alignItems=r.alignItems===`normal`?`center`:r.alignItems,n.style.justifyContent=r.justifyContent===`normal`?`flex-start`:r.justifyContent,n.style.whiteSpace=`nowrap`,n.style.color=r.color||`inherit`,n.style.fontFamily=r.fontFamily||`inherit`,n.style.fontSize=r.fontSize||`inherit`,n.style.fontWeight=r.fontWeight||`inherit`,n.style.lineHeight=r.lineHeight||`inherit`,n.style.letterSpacing=r.letterSpacing||`inherit`,this.shadowRoot.appendChild(n),this._morphEls.text=n,n}_createMorphIcon(e){let t=document.createElement(`div`);if(t.className=`morph-icon`,t.setAttribute(`data-flip-id`,`morph-icon-${this.target}`),t.setAttribute(`aria-hidden`,`true`),e.tagName===`MONI-ICON`){let n=document.createElement(`span`);n.textContent=e.getAttribute(`name`)||``;let r=window.getComputedStyle(e);n.style.display=`inline-flex`,n.style.alignItems=`center`,n.style.justifyContent=`center`,n.style.fontFamily=r.fontFamily||`var(--font-icon)`,n.style.fontSize=r.fontSize||`1.125rem`,n.style.inlineSize=r.inlineSize||`1.125rem`,n.style.blockSize=r.blockSize||`1.125rem`,n.style.lineHeight=`1`,n.style.color=`inherit`,n.style.fontWeight=`normal`,n.style.fontStyle=`normal`,n.style.letterSpacing=`normal`,n.style.textTransform=`none`,n.style.whiteSpace=`nowrap`,n.style.wordWrap=`normal`,n.style.direction=`ltr`,n.style.fontFeatureSettings=`'liga'`,n.style.fontVariationSettings=`'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24`,n.style.setProperty(`-webkit-font-smoothing`,`antialiased`),t.appendChild(n)}else t.appendChild(e.cloneNode(!0));let n=window.getComputedStyle(e);return t.style.position=`fixed`,t.style.pointerEvents=`none`,t.style.zIndex=String(this._zIndex+10),t.style.display=`inline-flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,t.style.color=n.color||`inherit`,t.style.inlineSize=n.inlineSize||`1.125rem`,t.style.blockSize=n.blockSize||`1.125rem`,this.shadowRoot.appendChild(t),this._morphEls.icon=t,t}_positionElement(e,t){e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}_getMoniButtonParts(){let e=this._targetEl?.shadowRoot;return{label:e?.querySelector(`[part="label"]`)??null,icon:e?.querySelector(`[part="icon"]`)??null,iconTrailing:e?.querySelector(`[part="icon-trailing"]`)??null}}_resolveMorphSource(){let e={text:null,icon:null};if(!this._targetEl)return e;if(this._hasTriggerLabel){let t=this._getTriggerLabelNodes();if(t.length>0){let n=document.createElement(`div`);for(let e of t)n.appendChild(e.cloneNode(!0));n.style.position=`fixed`,n.style.visibility=`hidden`,n.style.pointerEvents=`none`,this.shadowRoot.appendChild(n);let r=this._targetEl.getBoundingClientRect();n.remove(),e.text={content:n.textContent?.trim()||``,rect:r,sourceEl:this._targetEl}}return e}if(this._targetEl.tagName===`MONI-BUTTON`){let t=this._getMoniButtonParts();if(t.label&&(e.text={content:this._targetEl.textContent?.trim()||``,rect:t.label.getBoundingClientRect(),sourceEl:t.label}),t.icon){let n=t.icon.querySelector(`moni-icon, svg`)||t.icon;e.icon={element:n,rect:n.getBoundingClientRect()}}return e}let t=this._targetEl;if(this.morphLabelSelector){let e=this._targetEl.querySelector(this.morphLabelSelector);e&&(t=e)}let n=t.textContent?.trim()||``;n&&(e.text={content:n,rect:t.getBoundingClientRect(),sourceEl:t});let r=t.querySelector(`moni-icon, svg, [class*="icon"]`);return r&&(e.icon={element:r,rect:r.getBoundingClientRect()}),e}_measureHeaderTextRect(){if(!this._header)return null;let e=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let t of e){if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()){let e=document.createRange();return e.selectNode(t),e.getBoundingClientRect()}if(t.nodeType===Node.ELEMENT_NODE){let e=t;if(e.tagName===`MONI-ICON`||e.tagName===`SVG`)continue;let n=Array.from(e.childNodes);for(let e of n){if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()){let t=document.createRange();return t.selectNode(e),t.getBoundingClientRect()}if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName!==`MONI-ICON`&&t.tagName!==`SVG`&&t.textContent?.trim())return t.getBoundingClientRect()}}if(e.textContent?.trim())return e.getBoundingClientRect()}}return this._header.getBoundingClientRect()}_measureHeaderIconRect(){let e=this._measureHeaderTextRect();if(!e)return null;let t=(this.shadowRoot?.querySelector(`slot[name="header"]`))?.assignedNodes({flatten:!0})??[];for(let e of t)if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName===`MONI-ICON`||t.tagName===`SVG`)return t.getBoundingClientRect();let n=t.querySelector(`moni-icon, svg`);if(n)return n.getBoundingClientRect()}return new DOMRect(e.left-24-12,e.top+e.height/2-12,24,24)}_findSolidBackground(e){let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}if(e.shadowRoot){let t=Array.from(e.shadowRoot.querySelectorAll(`*`));for(let e of t){let t=window.getComputedStyle(e).backgroundColor;if(!this._isColorTransparent(t))return t}}return null}_getTargetState(e){let t=e.getBoundingClientRect(),n=e;if(e.tagName===`MONI-BUTTON`){let t=e.shadowRoot?.querySelector(`.button`);t&&(n=t)}let r=window.getComputedStyle(n).backgroundColor;if(this._isColorTransparent(r)){let e=window.getComputedStyle(n,`::before`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=window.getComputedStyle(n,`::after`).backgroundColor;if(!this._isColorTransparent(e))r=e;else{let e=this._findSolidBackground(n);e&&(r=e)}}}this._isColorTransparent(r)&&this._panel&&(r=window.getComputedStyle(this._panel).backgroundColor);let i=window.getComputedStyle(n);return{rect:t,backgroundColor:r,color:i.color||`var(--on-surface)`,borderRadius:i.borderRadius||`1.25rem`}}_isColorTransparent(e){if(!e)return!0;let t=e.replace(/\s/g,``).toLowerCase();return t===`rgba(0,0,0,0)`||t===`transparent`||t===``||t.includes(`,0)`)||t.includes(`/0)`)}_applyRect(e,t){e.style.top=`${t.top}px`,e.style.left=`${t.left}px`,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`}_computeFinalRect(e,t){let n=window.innerWidth,r=window.innerHeight,i=this.autoSize&&t?t.width:this._parseSize(this.expandedWidth,n),a=this.autoSize&&t?t.height:this._parseSize(this.expandedHeight,r);i=Math.min(i,n-32),a=Math.min(a,r-32);let o=e.top,s=e.left;switch(this.placement){case`viewport-center`:s=n/2-i/2,o=r/2-a/2;break;case`viewport-top`:s=n/2-i/2,o=16;break;case`viewport-bottom`:s=n/2-i/2,o=r-a-16;break;case`viewport-left`:s=16,o=r/2-a/2;break;case`viewport-right`:s=n-i-16,o=r/2-a/2;break;case`viewport-top-left`:s=16,o=16;break;case`viewport-top-right`:s=n-i-16,o=16;break;case`viewport-bottom-left`:s=16,o=r-a-16;break;case`viewport-bottom-right`:s=n-i-16,o=r-a-16;break;case`center`:s=e.left+e.width/2-i/2,o=e.top+e.height/2-a/2;break;case`top`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-start`:s=e.left+e.width-i,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`top-end`:s=e.left,o=this.coverTarget?e.top+e.height-a:e.top-a;break;case`bottom`:s=e.left+e.width/2-i/2,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-start`:s=e.left+e.width-i,o=this.coverTarget?e.top:e.top+e.height;break;case`bottom-end`:s=e.left,o=this.coverTarget?e.top:e.top+e.height;break;case`left`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height/2-a/2;break;case`left-start`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top+e.height-a;break;case`left-end`:s=this.coverTarget?e.left+e.width-i:e.left-i,o=e.top;break;case`right`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height/2-a/2;break;case`right-start`:s=this.coverTarget?e.left:e.left+e.width,o=e.top+e.height-a;break;case`right-end`:s=this.coverTarget?e.left:e.left+e.width,o=e.top}return s=Math.max(16,Math.min(s,n-i-16)),o=Math.max(16,Math.min(o,r-a-16)),new DOMRect(s,o,i,a)}_parseSize(e,t){let n=parseFloat(e);return Number.isNaN(n)?352:e.endsWith(`px`)?n:e.endsWith(`rem`)||e.endsWith(`em`)?n*16:e.endsWith(`%`)?n/100*t:e.endsWith(`vw`)?n/100*window.innerWidth:e.endsWith(`vh`)?n/100*window.innerHeight:n}static{this.styles=[G,g`
Binary file
Binary file