@knime/jsonforms 0.1.7 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +71 -70
- package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
- package/dist/BaseButton-arvXMjXG.js +112 -0
- package/dist/Button-Bc51Uur8.js +83 -0
- package/dist/Checkbox-BxPISyW3.js +75 -0
- package/dist/CheckboxControl-B-RyvD0K.js +42 -0
- package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
- package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
- package/dist/ColumnFilter-bO-fKaHD.js +22 -0
- package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
- package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
- package/dist/DateControl-v0qHckKz.js +27 -0
- package/dist/DateTimeControl-COnMFfMd.js +47 -0
- package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
- package/dist/Dropdown-By1NMrXZ.js +691 -0
- package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
- package/dist/ErrorMessage-fuIcc8xw.js +23 -0
- package/dist/FunctionButton-DBec3TQi.js +75 -0
- package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
- package/dist/InputField-BKH5rtn3.js +148 -0
- package/dist/IntegerControl-CBuOHc4B.js +18 -0
- package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
- package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
- package/dist/NameFilter-oHBcHQTY.js +22 -0
- package/dist/NumberControl-Cwf50Oe-.js +18 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
- package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
- package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
- package/dist/RadioControl-DsVkQLSI.js +22 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
- package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
- package/dist/SectionLayout-BDgtf57K.js +43 -0
- package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
- package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
- package/dist/SortListControl-On9GHu_U.js +356 -0
- package/dist/TextAreaControl-DF_pLD80.js +108 -0
- package/dist/TextControl-BTZ4ONmV.js +4 -0
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
- package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
- package/dist/TwinlistControl-DcFpZrni.js +553 -0
- package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
- package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
- package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
- package/dist/VerticalLayout-D1KXulG4.js +30 -0
- package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
- package/dist/_baseAssignValue-C56BMUo_.js +19 -0
- package/dist/_baseEach-1sO8_8tT.js +31 -0
- package/dist/_baseIsEqual-d71B2UwX.js +248 -0
- package/dist/_baseIteratee-BgB8cpN8.js +104 -0
- package/dist/_getTag-BiNJdVyP.js +314 -0
- package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
- package/dist/close-h7XT0ja0.js +17 -0
- package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
- package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
- package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
- package/dist/index-C1PjXAJX.js +17 -0
- package/dist/index-Cp7Xre_V.js +331 -0
- package/dist/isObject-B53jY8Qg.js +7 -0
- package/dist/isSymbol-DLKDpjGl.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.d.ts +2 -0
- package/dist/knime-jsonforms.js +119 -3
- package/dist/magic-string.es-DFyz70Kz.js +860 -0
- package/dist/popper-1JCni0RT.js +907 -0
- package/dist/reload-BhzcZRFp.js +17 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/inputFormats.d.ts +25 -0
- package/dist/src/constants/priorityRanks.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
- package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
- package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
- package/dist/src/higherOrderComponents/index.d.ts +3 -0
- package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
- package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
- package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
- package/dist/src/higherOrderComponents/types.d.ts +25 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
- package/dist/src/layoutComponents/index.d.ts +3 -0
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
- package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
- package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
- package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
- package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
- package/dist/src/renderers/index.d.ts +1 -0
- package/dist/src/renderers/integerRenderer.d.ts +5 -0
- package/dist/src/renderers/intervalRenderer.d.ts +5 -0
- package/dist/src/renderers/localDateRenderer.d.ts +5 -0
- package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/numberRenderer.d.ts +5 -0
- package/dist/src/renderers/radioRenderer.d.ts +5 -0
- package/dist/src/renderers/richTextRenderer.d.ts +5 -0
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
- package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
- package/dist/src/renderers/sortListRenderer.d.ts +288 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
- package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
- package/dist/src/renderers/textRenderer.d.ts +193 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
- package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
- package/dist/src/types/Control.d.ts +2 -0
- package/dist/src/types/alert.d.ts +5 -0
- package/dist/src/types/provided.d.ts +25 -0
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
- package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
- package/dist/src/uiComponents/index.d.ts +4 -0
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
- package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
- package/dist/src/utils/index.d.ts +15 -0
- package/dist/src/utils/inject.d.ts +3 -0
- package/dist/src/utils/localTimeUtils.d.ts +16 -0
- package/dist/svgWithTitle-zrGi2kyc.js +18 -0
- package/dist/testUtils/component.d.ts +190 -0
- package/dist/testUtils/index.d.ts +2 -0
- package/dist/testUtils/renderer.d.ts +6 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +18889 -0
- package/dist/toString-C9vll-oa.js +26 -0
- package/dist/useSearch-hpyYQ_6y.js +74 -0
- package/package.json +11 -7
- package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
- package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
- package/dist/ButtonControl-yAb2GdQI.js +0 -127
- package/dist/CheckboxControl-Ck45Jycu.js +0 -50
- package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
- package/dist/ColumnFilter-u7yVpuFC.js +0 -17
- package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
- package/dist/CredentialsControl-D1Te47JG.js +0 -20
- package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
- package/dist/DateControl-CuV2lKvs.js +0 -30
- package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
- package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
- package/dist/FileChooserControl-HX_GjlNB.js +0 -605
- package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
- package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
- package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
- package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
- package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
- package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
- package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
- package/dist/NameFilter-CsfBC6e2.js +0 -17
- package/dist/NodeDialog.vue.d.ts +0 -8
- package/dist/NumberControl-BJCFqjn3.js +0 -13
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
- package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
- package/dist/RadioControl-BZEV6NYx.js +0 -13
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
- package/dist/SectionLayout-DtVREvcv.js +0 -54
- package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
- package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
- package/dist/SortListControl-DcW5Ofs5.js +0 -316
- package/dist/TextAreaControl-DTw_oBDS.js +0 -111
- package/dist/TextControl-BlfySQDC.js +0 -49
- package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
- package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
- package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
- package/dist/VerticalLayout-CTFSrGS8.js +0 -39
- package/dist/arrow-up-Dsq3EgtE.js +0 -30
- package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
- package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
- package/dist/index-1mTLieVA.js +0 -32714
- package/dist/index.d.ts +0 -3
- package/dist/layoutComponents/Form.vue.d.ts +0 -2
- package/dist/link-BA69Hfx6.js +0 -17
- package/dist/loading/LoadingDialog.vue.d.ts +0 -2
|
@@ -1,3951 +0,0 @@
|
|
|
1
|
-
import { openBlock as M, createElementBlock as U, createElementVNode as V, resolveComponent as Mn, normalizeClass as Ne, Fragment as Kt, renderList as Yr, normalizeStyle as Qn, createBlock as ue, resolveDynamicComponent as nn, withCtx as ee, createCommentVNode as fe, createTextVNode as Vt, toDisplayString as Ct, withKeys as vt, withModifiers as Ie, Transition as us, renderSlot as ce, ref as B, onMounted as jt, onUnmounted as Xr, computed as F, unref as E, watch as re, isRef as cs, getCurrentScope as fs, onScopeDispose as ds, getCurrentInstance as hs, defineComponent as $e, useCssVars as qr, toRefs as wt, withDirectives as _s, createVNode as se, vShow as ps, nextTick as an, pushScopeId as gn, popScopeId as vn, toRef as Rt, mergeProps as Rn, createSlots as ms, provide as gs, inject as vs, Teleport as ys } from "vue";
|
|
2
|
-
import { ab as xs, _ as Ee, a6 as bs, e as ws, a4 as Ts, ac as Ss, I as Kr, b as ks, ad as Cs, F as jr, q as ln, ae as Ds, B as wr, T as Es } from "./index-1mTLieVA.js";
|
|
3
|
-
import { A as Ps } from "./arrow-next-CvdR0-WC.js";
|
|
4
|
-
import { g as Fn } from "./navigator-BYUFe-z3.js";
|
|
5
|
-
import { u as Os } from "./floating-ui.vue.esm-D_FlISFP.js";
|
|
6
|
-
import { _ as As } from "./MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js";
|
|
7
|
-
const Is = {
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
fill: "none",
|
|
10
|
-
stroke: "#000",
|
|
11
|
-
"stroke-linejoin": "round",
|
|
12
|
-
viewBox: "0 0 32 32"
|
|
13
|
-
}, Ms = /* @__PURE__ */ V("path", { d: "m21.156 2.5 5.423 5.423h-5.423zm5.423 27H5.421v-27h15.735l5.423 5.423zM16.447 11.489H8.756m9.249-2.978H8.756m7.691 8.926H8.756m9.249-2.975H8.756" }, null, -1), Rs = [
|
|
14
|
-
Ms
|
|
15
|
-
];
|
|
16
|
-
function Fs(a, e) {
|
|
17
|
-
return M(), U("svg", Is, [...Rs]);
|
|
18
|
-
}
|
|
19
|
-
const Bs = { render: Fs }, $s = {
|
|
20
|
-
name: "Breadcrumb",
|
|
21
|
-
components: {
|
|
22
|
-
ArrowNext: Ps
|
|
23
|
-
},
|
|
24
|
-
props: {
|
|
25
|
-
/**
|
|
26
|
-
* items as array with a 'text' and optional properties 'href', 'icon' and 'clickable'
|
|
27
|
-
*
|
|
28
|
-
* Having "href" set will make the element behave as a link. Having the "clickable" property
|
|
29
|
-
* set will make the component emit a "click-item" event when the corresponding item is clicked. "href" takes
|
|
30
|
-
* precedence over "clickable"
|
|
31
|
-
*
|
|
32
|
-
* e.g.
|
|
33
|
-
* [
|
|
34
|
-
* { text: 'KNIME Hub', href: '/', icon: Icon },
|
|
35
|
-
* { text: 'John Doe', href: '/john.doe' },
|
|
36
|
-
* { text: 'Public Space', href: '/john.doe/space' },
|
|
37
|
-
* { text: 'Examples', clickable: true },
|
|
38
|
-
* { text: 'Sentiment Prediction via REST' }
|
|
39
|
-
* ]
|
|
40
|
-
*/
|
|
41
|
-
items: {
|
|
42
|
-
type: Array,
|
|
43
|
-
default: () => []
|
|
44
|
-
},
|
|
45
|
-
/**
|
|
46
|
-
* focus and hover style can be switched by changing this value:
|
|
47
|
-
* true - darker background, normal font
|
|
48
|
-
* false - transparent background, bold font
|
|
49
|
-
*/
|
|
50
|
-
greyStyle: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
/**
|
|
55
|
-
* Set to true to prevent line breaks in the breadcrumb
|
|
56
|
-
* If elements are too wide, the first and the last two elements are shown preferentially.
|
|
57
|
-
* Elements are shown in full on hover or focus.
|
|
58
|
-
* On overflow, no scrollbar will be shown, but the breadcrumb will be scrollable
|
|
59
|
-
*/
|
|
60
|
-
noWrap: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !1
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* Set to true to reduce the space between the breadcrumb items
|
|
66
|
-
*/
|
|
67
|
-
compact: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: !1
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
emits: {
|
|
73
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
74
|
-
"click-item": (a) => !0
|
|
75
|
-
},
|
|
76
|
-
computed: {
|
|
77
|
-
// TODO: Can be made into a composition function
|
|
78
|
-
linkComponent() {
|
|
79
|
-
return xs();
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* Whether the items are rendered in reverse order from right to left
|
|
83
|
-
* With that we achieve that the right-most elements
|
|
84
|
-
* (which are the most important) stay visible initially on overflow
|
|
85
|
-
*/
|
|
86
|
-
reverseItems() {
|
|
87
|
-
return this.noWrap;
|
|
88
|
-
},
|
|
89
|
-
breadcrumbItems() {
|
|
90
|
-
var a;
|
|
91
|
-
return this.reverseItems ? (a = this.items) == null ? void 0 : a.toReversed() : this.items;
|
|
92
|
-
},
|
|
93
|
-
rightMostItemIndex() {
|
|
94
|
-
var a;
|
|
95
|
-
return this.reverseItems ? 0 : (((a = this.items) == null ? void 0 : a.length) ?? 0) - 1;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}, zs = ["role", "title", "tabindex", "onKeydown", "onClick"];
|
|
99
|
-
function Ls(a, e, t, n, r, i) {
|
|
100
|
-
const s = Mn("ArrowNext");
|
|
101
|
-
return i.breadcrumbItems && i.breadcrumbItems.length ? (M(), U("nav", {
|
|
102
|
-
key: 0,
|
|
103
|
-
class: Ne([
|
|
104
|
-
"breadcrumb",
|
|
105
|
-
{ "grey-style": t.greyStyle, compact: t.compact, "no-wrap": t.noWrap }
|
|
106
|
-
])
|
|
107
|
-
}, [
|
|
108
|
-
V("ul", null, [
|
|
109
|
-
(M(!0), U(Kt, null, Yr(i.breadcrumbItems, (o, l) => {
|
|
110
|
-
var u;
|
|
111
|
-
return M(), U("li", {
|
|
112
|
-
key: l,
|
|
113
|
-
style: Qn(
|
|
114
|
-
!o.icon && (((u = o.text) == null ? void 0 : u.length) ?? 0) < 3 ? { minWidth: "fit-content" } : {}
|
|
115
|
-
)
|
|
116
|
-
}, [
|
|
117
|
-
o.href ? (M(), ue(nn(i.linkComponent), {
|
|
118
|
-
key: 0,
|
|
119
|
-
to: o.href
|
|
120
|
-
}, {
|
|
121
|
-
default: ee(() => [
|
|
122
|
-
o.icon ? (M(), ue(nn(o.icon), {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: "breadcrumb-icon"
|
|
125
|
-
})) : fe("", !0),
|
|
126
|
-
Vt(" " + Ct(o.text), 1)
|
|
127
|
-
]),
|
|
128
|
-
_: 2
|
|
129
|
-
}, 1032, ["to"])) : (M(), U("span", {
|
|
130
|
-
key: 1,
|
|
131
|
-
class: Ne({ clickable: o.clickable }),
|
|
132
|
-
role: o.clickable ? "button" : void 0,
|
|
133
|
-
title: o.title,
|
|
134
|
-
tabindex: o.clickable ? 0 : void 0,
|
|
135
|
-
onKeydown: vt(Ie((c) => o.clickable && a.$emit("click-item", o), ["stop", "prevent"]), ["enter"]),
|
|
136
|
-
onClick: (c) => o.clickable && a.$emit("click-item", o)
|
|
137
|
-
}, [
|
|
138
|
-
o.icon ? (M(), ue(nn(o.icon), {
|
|
139
|
-
key: 0,
|
|
140
|
-
class: "breadcrumb-icon"
|
|
141
|
-
})) : fe("", !0),
|
|
142
|
-
Vt(" " + Ct(o.text), 1)
|
|
143
|
-
], 42, zs)),
|
|
144
|
-
l !== i.rightMostItemIndex ? (M(), ue(s, {
|
|
145
|
-
key: 2,
|
|
146
|
-
class: "arrow"
|
|
147
|
-
})) : fe("", !0)
|
|
148
|
-
], 4);
|
|
149
|
-
}), 128))
|
|
150
|
-
])
|
|
151
|
-
], 2)) : fe("", !0);
|
|
152
|
-
}
|
|
153
|
-
const Ns = /* @__PURE__ */ Ee($s, [["render", Ls], ["__scopeId", "data-v-7ffc66e7"]]), Vs = "hsl(12, 4.2%, 23.3%)", Us = "hsl(0, 0%, 100%)", Zr = "hsl(216, 64.9%, 29%)", Gs = "hsl(206, 74%, 90%)", Hs = {
|
|
154
|
-
name: "SideDrawer",
|
|
155
|
-
props: {
|
|
156
|
-
isExpanded: {
|
|
157
|
-
type: Boolean,
|
|
158
|
-
default: !1
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}, Ws = {
|
|
162
|
-
key: 0,
|
|
163
|
-
class: "side-drawer"
|
|
164
|
-
}, Ys = { class: "content" };
|
|
165
|
-
function Xs(a, e, t, n, r, i) {
|
|
166
|
-
return M(), ue(us, { name: "slide" }, {
|
|
167
|
-
default: ee(() => [
|
|
168
|
-
t.isExpanded ? (M(), U("div", Ws, [
|
|
169
|
-
V("div", Ys, [
|
|
170
|
-
ce(a.$slots, "default", {}, void 0, !0)
|
|
171
|
-
])
|
|
172
|
-
])) : fe("", !0)
|
|
173
|
-
]),
|
|
174
|
-
_: 3
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
const qs = /* @__PURE__ */ Ee(Hs, [["render", Xs], ["__scopeId", "data-v-6e44f51d"]]), Ks = [
|
|
178
|
-
"Tab",
|
|
179
|
-
"ArrowUp",
|
|
180
|
-
"ArrowDown",
|
|
181
|
-
"ArrowLeft",
|
|
182
|
-
"ArrowRight",
|
|
183
|
-
" ",
|
|
184
|
-
"Enter"
|
|
185
|
-
], js = (a = Ks) => {
|
|
186
|
-
const e = B(!1), t = (r) => {
|
|
187
|
-
a.includes(r.key) && (e.value = !0);
|
|
188
|
-
}, n = () => {
|
|
189
|
-
e.value = !1;
|
|
190
|
-
};
|
|
191
|
-
return jt(() => {
|
|
192
|
-
document.addEventListener("keydown", t, {
|
|
193
|
-
capture: !0
|
|
194
|
-
}), document.addEventListener("pointerdown", n, {
|
|
195
|
-
capture: !0
|
|
196
|
-
});
|
|
197
|
-
}), Xr(() => {
|
|
198
|
-
document.removeEventListener("keydown", t), document.removeEventListener("pointerdown", n);
|
|
199
|
-
}), e;
|
|
200
|
-
}, Bn = () => ({
|
|
201
|
-
anchorHistory: [],
|
|
202
|
-
anchorExceptions: [],
|
|
203
|
-
selectionRanges: []
|
|
204
|
-
}), We = (a, e) => ({ ...a, ...e }), Zs = (a, e) => {
|
|
205
|
-
const { selectionRanges: t } = a;
|
|
206
|
-
if (t.length === 1) {
|
|
207
|
-
const [n] = t, { from: r, to: i } = n;
|
|
208
|
-
if (r === i && r === e)
|
|
209
|
-
return !1;
|
|
210
|
-
}
|
|
211
|
-
return t.length !== 0;
|
|
212
|
-
}, Qr = (a, e) => {
|
|
213
|
-
const { selectionRanges: t, anchorExceptions: n } = a;
|
|
214
|
-
return !!t.find(
|
|
215
|
-
(i) => i.from <= e && i.to >= e
|
|
216
|
-
) && !n.includes(e);
|
|
217
|
-
}, Qs = (a, e) => {
|
|
218
|
-
const { anchorHistory: t, selectionRanges: n, anchorExceptions: r } = a, i = We(a, {
|
|
219
|
-
anchorHistory: [...t, e]
|
|
220
|
-
}), s = Qr(a, e);
|
|
221
|
-
if (!s) {
|
|
222
|
-
const o = {
|
|
223
|
-
from: e,
|
|
224
|
-
to: e
|
|
225
|
-
}, u = n.find(
|
|
226
|
-
({ from: c, to: d }) => c <= o.from && o.to <= d
|
|
227
|
-
) ? n : [...n, o];
|
|
228
|
-
return We(i, {
|
|
229
|
-
selectionRanges: u,
|
|
230
|
-
// make sure to remove the element from the anchor exceptions in case it
|
|
231
|
-
// was already in there
|
|
232
|
-
anchorExceptions: r.filter((c) => c !== e)
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
return s ? We(i, {
|
|
236
|
-
anchorExceptions: [...r, e]
|
|
237
|
-
}) : a;
|
|
238
|
-
}, Js = (a, e) => {
|
|
239
|
-
const { anchorHistory: t, selectionRanges: n, anchorExceptions: r } = a;
|
|
240
|
-
if (n.length === 0) {
|
|
241
|
-
const u = {
|
|
242
|
-
from: e,
|
|
243
|
-
to: e
|
|
244
|
-
};
|
|
245
|
-
return We(a, {
|
|
246
|
-
selectionRanges: [...n, u],
|
|
247
|
-
anchorHistory: [...t, e]
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
const [i] = t.slice(-1), s = r.filter((u) => {
|
|
251
|
-
const c = Math.min(i, e), d = Math.max(i, e);
|
|
252
|
-
return !(c <= u && u <= d);
|
|
253
|
-
}), o = We(a, {
|
|
254
|
-
anchorExceptions: s
|
|
255
|
-
});
|
|
256
|
-
if (n.find(
|
|
257
|
-
({ from: u, to: c }) => u === i || c === i
|
|
258
|
-
)) {
|
|
259
|
-
const u = n.map(({ from: c, to: d }) => c === i || d === i ? (
|
|
260
|
-
// make sure the "from" is always the smallest number
|
|
261
|
-
{
|
|
262
|
-
from: Math.min(i, e),
|
|
263
|
-
to: Math.max(i, e)
|
|
264
|
-
}
|
|
265
|
-
) : (
|
|
266
|
-
// otherwise, if it's not the range we're looking for, keep it as is
|
|
267
|
-
{ from: c, to: d }
|
|
268
|
-
));
|
|
269
|
-
return We(o, {
|
|
270
|
-
selectionRanges: u
|
|
271
|
-
});
|
|
272
|
-
} else {
|
|
273
|
-
const u = {
|
|
274
|
-
// again, make sure the smallest number is the "from" property
|
|
275
|
-
from: Math.min(i, e),
|
|
276
|
-
to: Math.max(i, e)
|
|
277
|
-
};
|
|
278
|
-
return We(o, {
|
|
279
|
-
selectionRanges: [...n, u]
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
}, eo = (a) => {
|
|
283
|
-
const e = {
|
|
284
|
-
anchorExceptions: [],
|
|
285
|
-
anchorHistory: [a],
|
|
286
|
-
selectionRanges: [{ from: a, to: a }]
|
|
287
|
-
};
|
|
288
|
-
return We(Bn(), e);
|
|
289
|
-
}, to = (a) => {
|
|
290
|
-
const { anchorExceptions: e, selectionRanges: t } = a;
|
|
291
|
-
return e.reduce((r, i) => {
|
|
292
|
-
const s = r.find(
|
|
293
|
-
({ from: o, to: l }) => o <= i && i <= l
|
|
294
|
-
);
|
|
295
|
-
if (s) {
|
|
296
|
-
const { from: o, to: l } = s;
|
|
297
|
-
return r.reduce((c, d) => {
|
|
298
|
-
if (d.from === o && d.to === l) {
|
|
299
|
-
const _ = i === o, m = i === l, f = {
|
|
300
|
-
from: _ ? i : o,
|
|
301
|
-
to: _ ? i : i - 1
|
|
302
|
-
}, p = {
|
|
303
|
-
from: m ? i : i + 1,
|
|
304
|
-
to: m ? i : l
|
|
305
|
-
};
|
|
306
|
-
return c.concat(f, p);
|
|
307
|
-
}
|
|
308
|
-
return c.concat(d);
|
|
309
|
-
}, []);
|
|
310
|
-
}
|
|
311
|
-
return r;
|
|
312
|
-
}, t).filter(
|
|
313
|
-
(r) => !e.includes(r.from) && !e.includes(r.to)
|
|
314
|
-
);
|
|
315
|
-
}, no = (a) => {
|
|
316
|
-
const e = to(a);
|
|
317
|
-
if (e.length === 0)
|
|
318
|
-
return [];
|
|
319
|
-
const t = e.sort((i, s) => i.from === s.from ? i.to - s.to : i.from - s.from), n = [];
|
|
320
|
-
let r = t[0];
|
|
321
|
-
for (let i = 1; i < t.length; i++) {
|
|
322
|
-
const s = t[i];
|
|
323
|
-
s.from <= r.to ? r.to = Math.max(r.to, s.to) : (n.push(r), r = s);
|
|
324
|
-
}
|
|
325
|
-
return n.push(r), n;
|
|
326
|
-
}, ro = (a) => no(a).reduce((t, n) => {
|
|
327
|
-
const { to: r, from: i } = n, s = r - i, o = new Array(s).fill(0).reduce(
|
|
328
|
-
(l) => {
|
|
329
|
-
const [u] = l.slice(-1);
|
|
330
|
-
return l.concat(u + 1);
|
|
331
|
-
},
|
|
332
|
-
[i]
|
|
333
|
-
);
|
|
334
|
-
return t.concat(o);
|
|
335
|
-
}, []), Tr = 15, io = -1 / 0, so = (a) => {
|
|
336
|
-
const e = B(
|
|
337
|
-
Bn()
|
|
338
|
-
), t = B(io), n = (h) => Qr(e.value, h), r = F(
|
|
339
|
-
() => ro(e.value)
|
|
340
|
-
), i = (h) => Zs(
|
|
341
|
-
e.value,
|
|
342
|
-
h
|
|
343
|
-
), s = (h = 0) => {
|
|
344
|
-
const _ = a.numberOfItems.value - 1;
|
|
345
|
-
t.value = Math.min(
|
|
346
|
-
Math.max(h, a.startIndex.value),
|
|
347
|
-
_
|
|
348
|
-
), e.value = Bn();
|
|
349
|
-
}, o = (h) => {
|
|
350
|
-
e.value = eo(h);
|
|
351
|
-
}, l = (h) => {
|
|
352
|
-
e.value = Qs(
|
|
353
|
-
e.value,
|
|
354
|
-
h
|
|
355
|
-
);
|
|
356
|
-
}, u = (h) => {
|
|
357
|
-
e.value = Js(
|
|
358
|
-
e.value,
|
|
359
|
-
h
|
|
360
|
-
);
|
|
361
|
-
}, c = (h, _ = null, m = !0) => {
|
|
362
|
-
if (a.disabled || h < a.startIndex.value || h >= a.numberOfItems.value)
|
|
363
|
-
return;
|
|
364
|
-
if (t.value = h, h === -1) {
|
|
365
|
-
s(-1);
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
if (!_ || a.singleSelectionOnly.value) {
|
|
369
|
-
o(h);
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
const f = Fn();
|
|
373
|
-
if (_.shiftKey) {
|
|
374
|
-
u(h);
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
if (_[f]) {
|
|
378
|
-
m && l(h);
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
o(h);
|
|
382
|
-
};
|
|
383
|
-
return {
|
|
384
|
-
multiSelectionState: e,
|
|
385
|
-
isSelected: n,
|
|
386
|
-
selectedIndexes: r,
|
|
387
|
-
isMultipleSelectionActive: i,
|
|
388
|
-
resetSelection: s,
|
|
389
|
-
handleSelectionClick: c,
|
|
390
|
-
ctrlClickItem: l,
|
|
391
|
-
handleKeyboardNavigation: (h) => {
|
|
392
|
-
if (!h)
|
|
393
|
-
return;
|
|
394
|
-
const _ = Fn();
|
|
395
|
-
[
|
|
396
|
-
"Enter",
|
|
397
|
-
" ",
|
|
398
|
-
"ArrowUp",
|
|
399
|
-
"ArrowDown",
|
|
400
|
-
"PageUp",
|
|
401
|
-
"PageDown",
|
|
402
|
-
"End",
|
|
403
|
-
"Home"
|
|
404
|
-
].includes(h.key) && (h.preventDefault(), (h[_] || h.shiftKey) && h.stopPropagation());
|
|
405
|
-
const f = Math.max(t.value, a.startIndex.value), p = a.numberOfItems.value - 1;
|
|
406
|
-
switch (h.key) {
|
|
407
|
-
case "ArrowUp":
|
|
408
|
-
c(f - 1, h, !1);
|
|
409
|
-
break;
|
|
410
|
-
case "PageUp":
|
|
411
|
-
c(Math.max(f - Tr, 0), h, !1);
|
|
412
|
-
break;
|
|
413
|
-
case "PageDown":
|
|
414
|
-
c(
|
|
415
|
-
Math.min(f + Tr, p),
|
|
416
|
-
h,
|
|
417
|
-
!1
|
|
418
|
-
);
|
|
419
|
-
break;
|
|
420
|
-
case "End":
|
|
421
|
-
c(p, h, !1);
|
|
422
|
-
break;
|
|
423
|
-
case "Home":
|
|
424
|
-
c(0, h, !1);
|
|
425
|
-
break;
|
|
426
|
-
case "ArrowDown":
|
|
427
|
-
c(f + 1, h, !1);
|
|
428
|
-
break;
|
|
429
|
-
case "Enter":
|
|
430
|
-
h[_] && !a.singleSelectionOnly.value && l(f);
|
|
431
|
-
break;
|
|
432
|
-
case " ":
|
|
433
|
-
a.singleSelectionOnly.value || l(f);
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
focusedIndex: t
|
|
438
|
-
};
|
|
439
|
-
}, oo = /[*?#:";<>%~|/\\]/, ao = 255, lo = "Name is already in use", uo = (a) => {
|
|
440
|
-
const e = (u) => u.trim(), t = F(() => e(a.name.value)), n = F(() => t.value.startsWith(".")), r = F(() => t.value.endsWith(".")), i = F(() => !n.value && !r.value && !oo.test(t.value) && t.value.length <= ao), s = F(
|
|
441
|
-
() => !a.blacklistedNames.value.includes(t.value)
|
|
442
|
-
), o = F(() => i.value && s.value), l = F(() => n.value ? "Name cannot start with a dot (.)" : r.value ? "Name cannot end with a dot (.)" : i.value ? s.value ? "" : a.unavailableNameMessage || lo : 'Name contains invalid characters *?#:";<>%~|/\\ or exceeds 255 characters');
|
|
443
|
-
return {
|
|
444
|
-
isValid: o,
|
|
445
|
-
errorMessage: l,
|
|
446
|
-
cleanedName: t
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
var co = Object.defineProperty, fo = (a, e, t) => e in a ? co(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, Sr = (a, e, t) => (fo(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
450
|
-
function ho(a) {
|
|
451
|
-
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
452
|
-
}
|
|
453
|
-
var _o = function(a) {
|
|
454
|
-
var e = null, t, n = function(i) {
|
|
455
|
-
return function() {
|
|
456
|
-
e = null, a.apply(i, t);
|
|
457
|
-
};
|
|
458
|
-
}, r = function() {
|
|
459
|
-
for (var i = arguments.length, s = new Array(i), o = 0; o < i; o++)
|
|
460
|
-
s[o] = arguments[o];
|
|
461
|
-
t = s, e === null && (e = requestAnimationFrame(n(this)));
|
|
462
|
-
};
|
|
463
|
-
return r.cancel = function() {
|
|
464
|
-
cancelAnimationFrame(e), e = null;
|
|
465
|
-
}, r;
|
|
466
|
-
}, po = _o;
|
|
467
|
-
const mo = /* @__PURE__ */ ho(po);
|
|
468
|
-
function go(a) {
|
|
469
|
-
return fs() ? (ds(a), !0) : !1;
|
|
470
|
-
}
|
|
471
|
-
function vo(a) {
|
|
472
|
-
return typeof a == "function" ? a() : E(a);
|
|
473
|
-
}
|
|
474
|
-
const yo = typeof window < "u" && typeof document < "u";
|
|
475
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
476
|
-
function kr(a) {
|
|
477
|
-
var e;
|
|
478
|
-
const t = vo(a);
|
|
479
|
-
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
480
|
-
}
|
|
481
|
-
const xo = yo ? window : void 0;
|
|
482
|
-
function bo() {
|
|
483
|
-
const a = B(!1);
|
|
484
|
-
return hs() && jt(() => {
|
|
485
|
-
a.value = !0;
|
|
486
|
-
}), a;
|
|
487
|
-
}
|
|
488
|
-
function wo(a) {
|
|
489
|
-
const e = bo();
|
|
490
|
-
return F(() => (e.value, !!a()));
|
|
491
|
-
}
|
|
492
|
-
function To(a, e, t = {}) {
|
|
493
|
-
const { window: n = xo, ...r } = t;
|
|
494
|
-
let i;
|
|
495
|
-
const s = wo(() => n && "ResizeObserver" in n), o = () => {
|
|
496
|
-
i && (i.disconnect(), i = void 0);
|
|
497
|
-
}, l = F(() => Array.isArray(a) ? a.map((d) => kr(d)) : [kr(a)]), u = re(
|
|
498
|
-
l,
|
|
499
|
-
(d) => {
|
|
500
|
-
if (o(), s.value && n) {
|
|
501
|
-
i = new ResizeObserver(e);
|
|
502
|
-
for (const h of d)
|
|
503
|
-
h && i.observe(h, r);
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
{ immediate: !0, flush: "post", deep: !0 }
|
|
507
|
-
), c = () => {
|
|
508
|
-
o(), u();
|
|
509
|
-
};
|
|
510
|
-
return go(c), {
|
|
511
|
-
isSupported: s,
|
|
512
|
-
stop: c
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
const So = 500, ko = ({
|
|
516
|
-
sizeManager: a,
|
|
517
|
-
buffer: e = So
|
|
518
|
-
}, t = "vertical", n = null) => {
|
|
519
|
-
const r = B({ scrollStart: 0, scrollEnd: 0 }), i = t === "vertical", s = n ?? B(null), o = mo(() => {
|
|
520
|
-
if (!s.value)
|
|
521
|
-
return;
|
|
522
|
-
const { scrollTop: d, scrollLeft: h, offsetHeight: _, offsetWidth: m } = s.value, f = i ? d : h, p = i ? _ : m;
|
|
523
|
-
r.value = { scrollStart: f, scrollEnd: f + p };
|
|
524
|
-
});
|
|
525
|
-
a.onUpdate(o), n || To(s, o);
|
|
526
|
-
const l = F(() => {
|
|
527
|
-
const d = a.toIndex(r.value.scrollStart - e), h = Math.min(
|
|
528
|
-
a.toIndex(r.value.scrollEnd + e) + 1,
|
|
529
|
-
a.getNumItems()
|
|
530
|
-
);
|
|
531
|
-
return { startIndex: d, endIndex: h, toArray: () => Array.from({ length: h - d }, (_, m) => d + m) };
|
|
532
|
-
}), u = F(() => a.toOffset(l.value.startIndex)), c = F(() => ({
|
|
533
|
-
[`padding${i ? "Top" : "Left"}`]: `${u.value}px`,
|
|
534
|
-
[i ? "height" : "width"]: `${a.getTotalSize()}px`,
|
|
535
|
-
/**
|
|
536
|
-
* Since the height of the element should not be influenced by its padding.
|
|
537
|
-
* An alternative without box-sizing: "border-box" would be to use margins instead
|
|
538
|
-
* paddings, but then it is no longer easily possible to absolutely position
|
|
539
|
-
* other elements (e.g. a cell selection overlay) inside this element.
|
|
540
|
-
*/
|
|
541
|
-
boxSizing: "border-box"
|
|
542
|
-
}));
|
|
543
|
-
return {
|
|
544
|
-
containerProps: {
|
|
545
|
-
ref: s,
|
|
546
|
-
onScroll: o
|
|
547
|
-
},
|
|
548
|
-
indices: l,
|
|
549
|
-
scrolledAreaStyles: c
|
|
550
|
-
};
|
|
551
|
-
}, Cr = (a, e) => cs(a) && re(() => a.value, e), Co = (a, e) => Math.floor(a / e);
|
|
552
|
-
class Do {
|
|
553
|
-
constructor(e, t) {
|
|
554
|
-
Sr(this, "numItems"), Sr(this, "size"), this.numItems = e, this.size = t;
|
|
555
|
-
}
|
|
556
|
-
getNumItems() {
|
|
557
|
-
return E(this.numItems);
|
|
558
|
-
}
|
|
559
|
-
onUpdate(e) {
|
|
560
|
-
Cr(this.numItems, e), Cr(this.size, e);
|
|
561
|
-
}
|
|
562
|
-
toOffset(e) {
|
|
563
|
-
return e * E(this.size);
|
|
564
|
-
}
|
|
565
|
-
getTotalSize() {
|
|
566
|
-
return E(this.numItems) * E(this.size);
|
|
567
|
-
}
|
|
568
|
-
toIndex(e) {
|
|
569
|
-
return Math.max(
|
|
570
|
-
Math.min(
|
|
571
|
-
Co(e, E(this.size)),
|
|
572
|
-
E(this.numItems) - 1
|
|
573
|
-
),
|
|
574
|
-
0
|
|
575
|
-
);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
function ze(a) {
|
|
579
|
-
if (a === void 0)
|
|
580
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
581
|
-
return a;
|
|
582
|
-
}
|
|
583
|
-
function Jr(a, e) {
|
|
584
|
-
a.prototype = Object.create(e.prototype), a.prototype.constructor = a, a.__proto__ = e;
|
|
585
|
-
}
|
|
586
|
-
/*!
|
|
587
|
-
* GSAP 3.12.5
|
|
588
|
-
* https://gsap.com
|
|
589
|
-
*
|
|
590
|
-
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
591
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
592
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
593
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
594
|
-
*/
|
|
595
|
-
var be = {
|
|
596
|
-
autoSleep: 120,
|
|
597
|
-
force3D: "auto",
|
|
598
|
-
nullTargetWarn: 1,
|
|
599
|
-
units: {
|
|
600
|
-
lineHeight: ""
|
|
601
|
-
}
|
|
602
|
-
}, Dt = {
|
|
603
|
-
duration: 0.5,
|
|
604
|
-
overwrite: !1,
|
|
605
|
-
delay: 0
|
|
606
|
-
}, Jn, oe, Y, Se = 1e8, W = 1 / Se, $n = Math.PI * 2, Eo = $n / 4, Po = 0, ei = Math.sqrt, Oo = Math.cos, Ao = Math.sin, ne = function(e) {
|
|
607
|
-
return typeof e == "string";
|
|
608
|
-
}, j = function(e) {
|
|
609
|
-
return typeof e == "function";
|
|
610
|
-
}, Ve = function(e) {
|
|
611
|
-
return typeof e == "number";
|
|
612
|
-
}, er = function(e) {
|
|
613
|
-
return typeof e > "u";
|
|
614
|
-
}, Be = function(e) {
|
|
615
|
-
return typeof e == "object";
|
|
616
|
-
}, de = function(e) {
|
|
617
|
-
return e !== !1;
|
|
618
|
-
}, tr = function() {
|
|
619
|
-
return typeof window < "u";
|
|
620
|
-
}, en = function(e) {
|
|
621
|
-
return j(e) || ne(e);
|
|
622
|
-
}, ti = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
623
|
-
}, ae = Array.isArray, zn = /(?:-?\.?\d|\.)+/gi, ni = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, yt = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Tn = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, ri = /[+-]=-?[.\d]+/, ii = /[^,'"\[\]\s]+/gi, Io = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, X, Ae, Ln, nr, we = {}, un = {}, si, oi = function(e) {
|
|
624
|
-
return (un = ft(e, we)) && me;
|
|
625
|
-
}, rr = function(e, t) {
|
|
626
|
-
return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
|
|
627
|
-
}, Ut = function(e, t) {
|
|
628
|
-
return !t && console.warn(e);
|
|
629
|
-
}, ai = function(e, t) {
|
|
630
|
-
return e && (we[e] = t) && un && (un[e] = t) || we;
|
|
631
|
-
}, Gt = function() {
|
|
632
|
-
return 0;
|
|
633
|
-
}, Mo = {
|
|
634
|
-
suppressEvents: !0,
|
|
635
|
-
isStart: !0,
|
|
636
|
-
kill: !1
|
|
637
|
-
}, rn = {
|
|
638
|
-
suppressEvents: !0,
|
|
639
|
-
kill: !1
|
|
640
|
-
}, Ro = {
|
|
641
|
-
suppressEvents: !0
|
|
642
|
-
}, ir = {}, je = [], Nn = {}, li, ve = {}, Sn = {}, Dr = 30, sn = [], sr = "", or = function(e) {
|
|
643
|
-
var t = e[0], n, r;
|
|
644
|
-
if (Be(t) || j(t) || (e = [e]), !(n = (t._gsap || {}).harness)) {
|
|
645
|
-
for (r = sn.length; r-- && !sn[r].targetTest(t); )
|
|
646
|
-
;
|
|
647
|
-
n = sn[r];
|
|
648
|
-
}
|
|
649
|
-
for (r = e.length; r--; )
|
|
650
|
-
e[r] && (e[r]._gsap || (e[r]._gsap = new Ii(e[r], n))) || e.splice(r, 1);
|
|
651
|
-
return e;
|
|
652
|
-
}, at = function(e) {
|
|
653
|
-
return e._gsap || or(ke(e))[0]._gsap;
|
|
654
|
-
}, ui = function(e, t, n) {
|
|
655
|
-
return (n = e[t]) && j(n) ? e[t]() : er(n) && e.getAttribute && e.getAttribute(t) || n;
|
|
656
|
-
}, he = function(e, t) {
|
|
657
|
-
return (e = e.split(",")).forEach(t) || e;
|
|
658
|
-
}, Z = function(e) {
|
|
659
|
-
return Math.round(e * 1e5) / 1e5 || 0;
|
|
660
|
-
}, te = function(e) {
|
|
661
|
-
return Math.round(e * 1e7) / 1e7 || 0;
|
|
662
|
-
}, Tt = function(e, t) {
|
|
663
|
-
var n = t.charAt(0), r = parseFloat(t.substr(2));
|
|
664
|
-
return e = parseFloat(e), n === "+" ? e + r : n === "-" ? e - r : n === "*" ? e * r : e / r;
|
|
665
|
-
}, Fo = function(e, t) {
|
|
666
|
-
for (var n = t.length, r = 0; e.indexOf(t[r]) < 0 && ++r < n; )
|
|
667
|
-
;
|
|
668
|
-
return r < n;
|
|
669
|
-
}, cn = function() {
|
|
670
|
-
var e = je.length, t = je.slice(0), n, r;
|
|
671
|
-
for (Nn = {}, je.length = 0, n = 0; n < e; n++)
|
|
672
|
-
r = t[n], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
673
|
-
}, ci = function(e, t, n, r) {
|
|
674
|
-
je.length && !oe && cn(), e.render(t, n, oe && t < 0 && (e._initted || e._startAt)), je.length && !oe && cn();
|
|
675
|
-
}, fi = function(e) {
|
|
676
|
-
var t = parseFloat(e);
|
|
677
|
-
return (t || t === 0) && (e + "").match(ii).length < 2 ? t : ne(e) ? e.trim() : e;
|
|
678
|
-
}, di = function(e) {
|
|
679
|
-
return e;
|
|
680
|
-
}, Ce = function(e, t) {
|
|
681
|
-
for (var n in t)
|
|
682
|
-
n in e || (e[n] = t[n]);
|
|
683
|
-
return e;
|
|
684
|
-
}, Bo = function(e) {
|
|
685
|
-
return function(t, n) {
|
|
686
|
-
for (var r in n)
|
|
687
|
-
r in t || r === "duration" && e || r === "ease" || (t[r] = n[r]);
|
|
688
|
-
};
|
|
689
|
-
}, ft = function(e, t) {
|
|
690
|
-
for (var n in t)
|
|
691
|
-
e[n] = t[n];
|
|
692
|
-
return e;
|
|
693
|
-
}, Er = function a(e, t) {
|
|
694
|
-
for (var n in t)
|
|
695
|
-
n !== "__proto__" && n !== "constructor" && n !== "prototype" && (e[n] = Be(t[n]) ? a(e[n] || (e[n] = {}), t[n]) : t[n]);
|
|
696
|
-
return e;
|
|
697
|
-
}, fn = function(e, t) {
|
|
698
|
-
var n = {}, r;
|
|
699
|
-
for (r in e)
|
|
700
|
-
r in t || (n[r] = e[r]);
|
|
701
|
-
return n;
|
|
702
|
-
}, zt = function(e) {
|
|
703
|
-
var t = e.parent || X, n = e.keyframes ? Bo(ae(e.keyframes)) : Ce;
|
|
704
|
-
if (de(e.inherit))
|
|
705
|
-
for (; t; )
|
|
706
|
-
n(e, t.vars.defaults), t = t.parent || t._dp;
|
|
707
|
-
return e;
|
|
708
|
-
}, $o = function(e, t) {
|
|
709
|
-
for (var n = e.length, r = n === t.length; r && n-- && e[n] === t[n]; )
|
|
710
|
-
;
|
|
711
|
-
return n < 0;
|
|
712
|
-
}, hi = function(e, t, n, r, i) {
|
|
713
|
-
var s = e[r], o;
|
|
714
|
-
if (i)
|
|
715
|
-
for (o = t[i]; s && s[i] > o; )
|
|
716
|
-
s = s._prev;
|
|
717
|
-
return s ? (t._next = s._next, s._next = t) : (t._next = e[n], e[n] = t), t._next ? t._next._prev = t : e[r] = t, t._prev = s, t.parent = t._dp = e, t;
|
|
718
|
-
}, yn = function(e, t, n, r) {
|
|
719
|
-
n === void 0 && (n = "_first"), r === void 0 && (r = "_last");
|
|
720
|
-
var i = t._prev, s = t._next;
|
|
721
|
-
i ? i._next = s : e[n] === t && (e[n] = s), s ? s._prev = i : e[r] === t && (e[r] = i), t._next = t._prev = t.parent = null;
|
|
722
|
-
}, Qe = function(e, t) {
|
|
723
|
-
e.parent && (!t || e.parent.autoRemoveChildren) && e.parent.remove && e.parent.remove(e), e._act = 0;
|
|
724
|
-
}, lt = function(e, t) {
|
|
725
|
-
if (e && (!t || t._end > e._dur || t._start < 0))
|
|
726
|
-
for (var n = e; n; )
|
|
727
|
-
n._dirty = 1, n = n.parent;
|
|
728
|
-
return e;
|
|
729
|
-
}, zo = function(e) {
|
|
730
|
-
for (var t = e.parent; t && t.parent; )
|
|
731
|
-
t._dirty = 1, t.totalDuration(), t = t.parent;
|
|
732
|
-
return e;
|
|
733
|
-
}, Vn = function(e, t, n, r) {
|
|
734
|
-
return e._startAt && (oe ? e._startAt.revert(rn) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, r));
|
|
735
|
-
}, Lo = function a(e) {
|
|
736
|
-
return !e || e._ts && a(e.parent);
|
|
737
|
-
}, Pr = function(e) {
|
|
738
|
-
return e._repeat ? Et(e._tTime, e = e.duration() + e._rDelay) * e : 0;
|
|
739
|
-
}, Et = function(e, t) {
|
|
740
|
-
var n = Math.floor(e /= t);
|
|
741
|
-
return e && n === e ? n - 1 : n;
|
|
742
|
-
}, dn = function(e, t) {
|
|
743
|
-
return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
|
|
744
|
-
}, xn = function(e) {
|
|
745
|
-
return e._end = te(e._start + (e._tDur / Math.abs(e._ts || e._rts || W) || 0));
|
|
746
|
-
}, bn = function(e, t) {
|
|
747
|
-
var n = e._dp;
|
|
748
|
-
return n && n.smoothChildTiming && e._ts && (e._start = te(n._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), xn(e), n._dirty || lt(n, e)), e;
|
|
749
|
-
}, _i = function(e, t) {
|
|
750
|
-
var n;
|
|
751
|
-
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (n = dn(e.rawTime(), t), (!t._dur || Zt(0, t.totalDuration(), n) - t._tTime > W) && t.render(n, !0)), lt(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
|
|
752
|
-
if (e._dur < e.duration())
|
|
753
|
-
for (n = e; n._dp; )
|
|
754
|
-
n.rawTime() >= 0 && n.totalTime(n._tTime), n = n._dp;
|
|
755
|
-
e._zTime = -W;
|
|
756
|
-
}
|
|
757
|
-
}, Me = function(e, t, n, r) {
|
|
758
|
-
return t.parent && Qe(t), t._start = te((Ve(n) ? n : n || e !== X ? Te(e, n, t) : e._time) + t._delay), t._end = te(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), hi(e, t, "_first", "_last", e._sort ? "_start" : 0), Un(t) || (e._recent = t), r || _i(e, t), e._ts < 0 && bn(e, e._tTime), e;
|
|
759
|
-
}, pi = function(e, t) {
|
|
760
|
-
return (we.ScrollTrigger || rr("scrollTrigger", t)) && we.ScrollTrigger.create(t, e);
|
|
761
|
-
}, mi = function(e, t, n, r, i) {
|
|
762
|
-
if (lr(e, t, i), !e._initted)
|
|
763
|
-
return 1;
|
|
764
|
-
if (!n && e._pt && !oe && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && li !== ye.frame)
|
|
765
|
-
return je.push(e), e._lazy = [i, r], 1;
|
|
766
|
-
}, No = function a(e) {
|
|
767
|
-
var t = e.parent;
|
|
768
|
-
return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || a(t));
|
|
769
|
-
}, Un = function(e) {
|
|
770
|
-
var t = e.data;
|
|
771
|
-
return t === "isFromStart" || t === "isStart";
|
|
772
|
-
}, Vo = function(e, t, n, r) {
|
|
773
|
-
var i = e.ratio, s = t < 0 || !t && (!e._start && No(e) && !(!e._initted && Un(e)) || (e._ts < 0 || e._dp._ts < 0) && !Un(e)) ? 0 : 1, o = e._rDelay, l = 0, u, c, d;
|
|
774
|
-
if (o && e._repeat && (l = Zt(0, e._tDur, t), c = Et(l, o), e._yoyo && c & 1 && (s = 1 - s), c !== Et(e._tTime, o) && (i = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== i || oe || r || e._zTime === W || !t && e._zTime) {
|
|
775
|
-
if (!e._initted && mi(e, t, r, n, l))
|
|
776
|
-
return;
|
|
777
|
-
for (d = e._zTime, e._zTime = t || (n ? W : 0), n || (n = t && !d), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, u = e._pt; u; )
|
|
778
|
-
u.r(s, u.d), u = u._next;
|
|
779
|
-
t < 0 && Vn(e, t, n, !0), e._onUpdate && !n && xe(e, "onUpdate"), l && e._repeat && !n && e.parent && xe(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && Qe(e, 1), !n && !oe && (xe(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
|
|
780
|
-
} else e._zTime || (e._zTime = t);
|
|
781
|
-
}, Uo = function(e, t, n) {
|
|
782
|
-
var r;
|
|
783
|
-
if (n > t)
|
|
784
|
-
for (r = e._first; r && r._start <= n; ) {
|
|
785
|
-
if (r.data === "isPause" && r._start > t)
|
|
786
|
-
return r;
|
|
787
|
-
r = r._next;
|
|
788
|
-
}
|
|
789
|
-
else
|
|
790
|
-
for (r = e._last; r && r._start >= n; ) {
|
|
791
|
-
if (r.data === "isPause" && r._start < t)
|
|
792
|
-
return r;
|
|
793
|
-
r = r._prev;
|
|
794
|
-
}
|
|
795
|
-
}, Pt = function(e, t, n, r) {
|
|
796
|
-
var i = e._repeat, s = te(t) || 0, o = e._tTime / e._tDur;
|
|
797
|
-
return o && !r && (e._time *= s / e._dur), e._dur = s, e._tDur = i ? i < 0 ? 1e10 : te(s * (i + 1) + e._rDelay * i) : s, o > 0 && !r && bn(e, e._tTime = e._tDur * o), e.parent && xn(e), n || lt(e.parent, e), e;
|
|
798
|
-
}, Or = function(e) {
|
|
799
|
-
return e instanceof le ? lt(e) : Pt(e, e._dur);
|
|
800
|
-
}, Go = {
|
|
801
|
-
_start: 0,
|
|
802
|
-
endTime: Gt,
|
|
803
|
-
totalDuration: Gt
|
|
804
|
-
}, Te = function a(e, t, n) {
|
|
805
|
-
var r = e.labels, i = e._recent || Go, s = e.duration() >= Se ? i.endTime(!1) : e._dur, o, l, u;
|
|
806
|
-
return ne(t) && (isNaN(t) || t in r) ? (l = t.charAt(0), u = t.substr(-1) === "%", o = t.indexOf("="), l === "<" || l === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (l === "<" ? i._start : i.endTime(i._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (u ? (o < 0 ? i : n).totalDuration() / 100 : 1)) : o < 0 ? (t in r || (r[t] = s), r[t]) : (l = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), u && n && (l = l / 100 * (ae(n) ? n[0] : n).totalDuration()), o > 1 ? a(e, t.substr(0, o - 1), n) + l : s + l)) : t == null ? s : +t;
|
|
807
|
-
}, Lt = function(e, t, n) {
|
|
808
|
-
var r = Ve(t[1]), i = (r ? 2 : 1) + (e < 2 ? 0 : 1), s = t[i], o, l;
|
|
809
|
-
if (r && (s.duration = t[1]), s.parent = n, e) {
|
|
810
|
-
for (o = s, l = n; l && !("immediateRender" in o); )
|
|
811
|
-
o = l.vars.defaults || {}, l = de(l.vars.inherit) && l.parent;
|
|
812
|
-
s.immediateRender = de(o.immediateRender), e < 2 ? s.runBackwards = 1 : s.startAt = t[i - 1];
|
|
813
|
-
}
|
|
814
|
-
return new J(t[0], s, t[i + 1]);
|
|
815
|
-
}, et = function(e, t) {
|
|
816
|
-
return e || e === 0 ? t(e) : t;
|
|
817
|
-
}, Zt = function(e, t, n) {
|
|
818
|
-
return n < e ? e : n > t ? t : n;
|
|
819
|
-
}, ie = function(e, t) {
|
|
820
|
-
return !ne(e) || !(t = Io.exec(e)) ? "" : t[1];
|
|
821
|
-
}, Ho = function(e, t, n) {
|
|
822
|
-
return et(n, function(r) {
|
|
823
|
-
return Zt(e, t, r);
|
|
824
|
-
});
|
|
825
|
-
}, Gn = [].slice, gi = function(e, t) {
|
|
826
|
-
return e && Be(e) && "length" in e && (!t && !e.length || e.length - 1 in e && Be(e[0])) && !e.nodeType && e !== Ae;
|
|
827
|
-
}, Wo = function(e, t, n) {
|
|
828
|
-
return n === void 0 && (n = []), e.forEach(function(r) {
|
|
829
|
-
var i;
|
|
830
|
-
return ne(r) && !t || gi(r, 1) ? (i = n).push.apply(i, ke(r)) : n.push(r);
|
|
831
|
-
}) || n;
|
|
832
|
-
}, ke = function(e, t, n) {
|
|
833
|
-
return Y && !t && Y.selector ? Y.selector(e) : ne(e) && !n && (Ln || !Ot()) ? Gn.call((t || nr).querySelectorAll(e), 0) : ae(e) ? Wo(e, n) : gi(e) ? Gn.call(e, 0) : e ? [e] : [];
|
|
834
|
-
}, Hn = function(e) {
|
|
835
|
-
return e = ke(e)[0] || Ut("Invalid scope") || {}, function(t) {
|
|
836
|
-
var n = e.current || e.nativeElement || e;
|
|
837
|
-
return ke(t, n.querySelectorAll ? n : n === e ? Ut("Invalid scope") || nr.createElement("div") : e);
|
|
838
|
-
};
|
|
839
|
-
}, vi = function(e) {
|
|
840
|
-
return e.sort(function() {
|
|
841
|
-
return 0.5 - Math.random();
|
|
842
|
-
});
|
|
843
|
-
}, yi = function(e) {
|
|
844
|
-
if (j(e))
|
|
845
|
-
return e;
|
|
846
|
-
var t = Be(e) ? e : {
|
|
847
|
-
each: e
|
|
848
|
-
}, n = ut(t.ease), r = t.from || 0, i = parseFloat(t.base) || 0, s = {}, o = r > 0 && r < 1, l = isNaN(r) || o, u = t.axis, c = r, d = r;
|
|
849
|
-
return ne(r) ? c = d = {
|
|
850
|
-
center: 0.5,
|
|
851
|
-
edges: 0.5,
|
|
852
|
-
end: 1
|
|
853
|
-
}[r] || 0 : !o && l && (c = r[0], d = r[1]), function(h, _, m) {
|
|
854
|
-
var f = (m || t).length, p = s[f], g, v, S, w, y, b, x, k, T;
|
|
855
|
-
if (!p) {
|
|
856
|
-
if (T = t.grid === "auto" ? 0 : (t.grid || [1, Se])[1], !T) {
|
|
857
|
-
for (x = -Se; x < (x = m[T++].getBoundingClientRect().left) && T < f; )
|
|
858
|
-
;
|
|
859
|
-
T < f && T--;
|
|
860
|
-
}
|
|
861
|
-
for (p = s[f] = [], g = l ? Math.min(T, f) * c - 0.5 : r % T, v = T === Se ? 0 : l ? f * d / T - 0.5 : r / T | 0, x = 0, k = Se, b = 0; b < f; b++)
|
|
862
|
-
S = b % T - g, w = v - (b / T | 0), p[b] = y = u ? Math.abs(u === "y" ? w : S) : ei(S * S + w * w), y > x && (x = y), y < k && (k = y);
|
|
863
|
-
r === "random" && vi(p), p.max = x - k, p.min = k, p.v = f = (parseFloat(t.amount) || parseFloat(t.each) * (T > f ? f - 1 : u ? u === "y" ? f / T : T : Math.max(T, f / T)) || 0) * (r === "edges" ? -1 : 1), p.b = f < 0 ? i - f : i, p.u = ie(t.amount || t.each) || 0, n = n && f < 0 ? Pi(n) : n;
|
|
864
|
-
}
|
|
865
|
-
return f = (p[h] - p.min) / p.max || 0, te(p.b + (n ? n(f) : f) * p.v) + p.u;
|
|
866
|
-
};
|
|
867
|
-
}, Wn = function(e) {
|
|
868
|
-
var t = Math.pow(10, ((e + "").split(".")[1] || "").length);
|
|
869
|
-
return function(n) {
|
|
870
|
-
var r = te(Math.round(parseFloat(n) / e) * e * t);
|
|
871
|
-
return (r - r % 1) / t + (Ve(n) ? 0 : ie(n));
|
|
872
|
-
};
|
|
873
|
-
}, xi = function(e, t) {
|
|
874
|
-
var n = ae(e), r, i;
|
|
875
|
-
return !n && Be(e) && (r = n = e.radius || Se, e.values ? (e = ke(e.values), (i = !Ve(e[0])) && (r *= r)) : e = Wn(e.increment)), et(t, n ? j(e) ? function(s) {
|
|
876
|
-
return i = e(s), Math.abs(i - s) <= r ? i : s;
|
|
877
|
-
} : function(s) {
|
|
878
|
-
for (var o = parseFloat(i ? s.x : s), l = parseFloat(i ? s.y : 0), u = Se, c = 0, d = e.length, h, _; d--; )
|
|
879
|
-
i ? (h = e[d].x - o, _ = e[d].y - l, h = h * h + _ * _) : h = Math.abs(e[d] - o), h < u && (u = h, c = d);
|
|
880
|
-
return c = !r || u <= r ? e[c] : s, i || c === s || Ve(s) ? c : c + ie(s);
|
|
881
|
-
} : Wn(e));
|
|
882
|
-
}, bi = function(e, t, n, r) {
|
|
883
|
-
return et(ae(e) ? !t : n === !0 ? !!(n = 0) : !r, function() {
|
|
884
|
-
return ae(e) ? e[~~(Math.random() * e.length)] : (n = n || 1e-5) && (r = n < 1 ? Math.pow(10, (n + "").length - 2) : 1) && Math.floor(Math.round((e - n / 2 + Math.random() * (t - e + n * 0.99)) / n) * n * r) / r;
|
|
885
|
-
});
|
|
886
|
-
}, Yo = function() {
|
|
887
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
888
|
-
t[n] = arguments[n];
|
|
889
|
-
return function(r) {
|
|
890
|
-
return t.reduce(function(i, s) {
|
|
891
|
-
return s(i);
|
|
892
|
-
}, r);
|
|
893
|
-
};
|
|
894
|
-
}, Xo = function(e, t) {
|
|
895
|
-
return function(n) {
|
|
896
|
-
return e(parseFloat(n)) + (t || ie(n));
|
|
897
|
-
};
|
|
898
|
-
}, qo = function(e, t, n) {
|
|
899
|
-
return Ti(e, t, 0, 1, n);
|
|
900
|
-
}, wi = function(e, t, n) {
|
|
901
|
-
return et(n, function(r) {
|
|
902
|
-
return e[~~t(r)];
|
|
903
|
-
});
|
|
904
|
-
}, Ko = function a(e, t, n) {
|
|
905
|
-
var r = t - e;
|
|
906
|
-
return ae(e) ? wi(e, a(0, e.length), t) : et(n, function(i) {
|
|
907
|
-
return (r + (i - e) % r) % r + e;
|
|
908
|
-
});
|
|
909
|
-
}, jo = function a(e, t, n) {
|
|
910
|
-
var r = t - e, i = r * 2;
|
|
911
|
-
return ae(e) ? wi(e, a(0, e.length - 1), t) : et(n, function(s) {
|
|
912
|
-
return s = (i + (s - e) % i) % i || 0, e + (s > r ? i - s : s);
|
|
913
|
-
});
|
|
914
|
-
}, Ht = function(e) {
|
|
915
|
-
for (var t = 0, n = "", r, i, s, o; ~(r = e.indexOf("random(", t)); )
|
|
916
|
-
s = e.indexOf(")", r), o = e.charAt(r + 7) === "[", i = e.substr(r + 7, s - r - 7).match(o ? ii : zn), n += e.substr(t, r - t) + bi(o ? i : +i[0], o ? 0 : +i[1], +i[2] || 1e-5), t = s + 1;
|
|
917
|
-
return n + e.substr(t, e.length - t);
|
|
918
|
-
}, Ti = function(e, t, n, r, i) {
|
|
919
|
-
var s = t - e, o = r - n;
|
|
920
|
-
return et(i, function(l) {
|
|
921
|
-
return n + ((l - e) / s * o || 0);
|
|
922
|
-
});
|
|
923
|
-
}, Zo = function a(e, t, n, r) {
|
|
924
|
-
var i = isNaN(e + t) ? 0 : function(_) {
|
|
925
|
-
return (1 - _) * e + _ * t;
|
|
926
|
-
};
|
|
927
|
-
if (!i) {
|
|
928
|
-
var s = ne(e), o = {}, l, u, c, d, h;
|
|
929
|
-
if (n === !0 && (r = 1) && (n = null), s)
|
|
930
|
-
e = {
|
|
931
|
-
p: e
|
|
932
|
-
}, t = {
|
|
933
|
-
p: t
|
|
934
|
-
};
|
|
935
|
-
else if (ae(e) && !ae(t)) {
|
|
936
|
-
for (c = [], d = e.length, h = d - 2, u = 1; u < d; u++)
|
|
937
|
-
c.push(a(e[u - 1], e[u]));
|
|
938
|
-
d--, i = function(m) {
|
|
939
|
-
m *= d;
|
|
940
|
-
var f = Math.min(h, ~~m);
|
|
941
|
-
return c[f](m - f);
|
|
942
|
-
}, n = t;
|
|
943
|
-
} else r || (e = ft(ae(e) ? [] : {}, e));
|
|
944
|
-
if (!c) {
|
|
945
|
-
for (l in t)
|
|
946
|
-
ar.call(o, e, l, "get", t[l]);
|
|
947
|
-
i = function(m) {
|
|
948
|
-
return fr(m, o) || (s ? e.p : e);
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
return et(n, i);
|
|
953
|
-
}, Ar = function(e, t, n) {
|
|
954
|
-
var r = e.labels, i = Se, s, o, l;
|
|
955
|
-
for (s in r)
|
|
956
|
-
o = r[s] - t, o < 0 == !!n && o && i > (o = Math.abs(o)) && (l = s, i = o);
|
|
957
|
-
return l;
|
|
958
|
-
}, xe = function(e, t, n) {
|
|
959
|
-
var r = e.vars, i = r[t], s = Y, o = e._ctx, l, u, c;
|
|
960
|
-
if (i)
|
|
961
|
-
return l = r[t + "Params"], u = r.callbackScope || e, n && je.length && cn(), o && (Y = o), c = l ? i.apply(u, l) : i.call(u), Y = s, c;
|
|
962
|
-
}, Bt = function(e) {
|
|
963
|
-
return Qe(e), e.scrollTrigger && e.scrollTrigger.kill(!!oe), e.progress() < 1 && xe(e, "onInterrupt"), e;
|
|
964
|
-
}, xt, Si = [], ki = function(e) {
|
|
965
|
-
if (e)
|
|
966
|
-
if (e = !e.name && e.default || e, tr() || e.headless) {
|
|
967
|
-
var t = e.name, n = j(e), r = t && !n && e.init ? function() {
|
|
968
|
-
this._props = [];
|
|
969
|
-
} : e, i = {
|
|
970
|
-
init: Gt,
|
|
971
|
-
render: fr,
|
|
972
|
-
add: ar,
|
|
973
|
-
kill: ha,
|
|
974
|
-
modifier: da,
|
|
975
|
-
rawVars: 0
|
|
976
|
-
}, s = {
|
|
977
|
-
targetTest: 0,
|
|
978
|
-
get: 0,
|
|
979
|
-
getSetter: cr,
|
|
980
|
-
aliases: {},
|
|
981
|
-
register: 0
|
|
982
|
-
};
|
|
983
|
-
if (Ot(), e !== r) {
|
|
984
|
-
if (ve[t])
|
|
985
|
-
return;
|
|
986
|
-
Ce(r, Ce(fn(e, i), s)), ft(r.prototype, ft(i, fn(e, s))), ve[r.prop = t] = r, e.targetTest && (sn.push(r), ir[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
|
|
987
|
-
}
|
|
988
|
-
ai(t, r), e.register && e.register(me, r, _e);
|
|
989
|
-
} else
|
|
990
|
-
Si.push(e);
|
|
991
|
-
}, H = 255, $t = {
|
|
992
|
-
aqua: [0, H, H],
|
|
993
|
-
lime: [0, H, 0],
|
|
994
|
-
silver: [192, 192, 192],
|
|
995
|
-
black: [0, 0, 0],
|
|
996
|
-
maroon: [128, 0, 0],
|
|
997
|
-
teal: [0, 128, 128],
|
|
998
|
-
blue: [0, 0, H],
|
|
999
|
-
navy: [0, 0, 128],
|
|
1000
|
-
white: [H, H, H],
|
|
1001
|
-
olive: [128, 128, 0],
|
|
1002
|
-
yellow: [H, H, 0],
|
|
1003
|
-
orange: [H, 165, 0],
|
|
1004
|
-
gray: [128, 128, 128],
|
|
1005
|
-
purple: [128, 0, 128],
|
|
1006
|
-
green: [0, 128, 0],
|
|
1007
|
-
red: [H, 0, 0],
|
|
1008
|
-
pink: [H, 192, 203],
|
|
1009
|
-
cyan: [0, H, H],
|
|
1010
|
-
transparent: [H, H, H, 0]
|
|
1011
|
-
}, kn = function(e, t, n) {
|
|
1012
|
-
return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (n - t) * e * 6 : e < 0.5 ? n : e * 3 < 2 ? t + (n - t) * (2 / 3 - e) * 6 : t) * H + 0.5 | 0;
|
|
1013
|
-
}, Ci = function(e, t, n) {
|
|
1014
|
-
var r = e ? Ve(e) ? [e >> 16, e >> 8 & H, e & H] : 0 : $t.black, i, s, o, l, u, c, d, h, _, m;
|
|
1015
|
-
if (!r) {
|
|
1016
|
-
if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), $t[e])
|
|
1017
|
-
r = $t[e];
|
|
1018
|
-
else if (e.charAt(0) === "#") {
|
|
1019
|
-
if (e.length < 6 && (i = e.charAt(1), s = e.charAt(2), o = e.charAt(3), e = "#" + i + i + s + s + o + o + (e.length === 5 ? e.charAt(4) + e.charAt(4) : "")), e.length === 9)
|
|
1020
|
-
return r = parseInt(e.substr(1, 6), 16), [r >> 16, r >> 8 & H, r & H, parseInt(e.substr(7), 16) / 255];
|
|
1021
|
-
e = parseInt(e.substr(1), 16), r = [e >> 16, e >> 8 & H, e & H];
|
|
1022
|
-
} else if (e.substr(0, 3) === "hsl") {
|
|
1023
|
-
if (r = m = e.match(zn), !t)
|
|
1024
|
-
l = +r[0] % 360 / 360, u = +r[1] / 100, c = +r[2] / 100, s = c <= 0.5 ? c * (u + 1) : c + u - c * u, i = c * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = kn(l + 1 / 3, i, s), r[1] = kn(l, i, s), r[2] = kn(l - 1 / 3, i, s);
|
|
1025
|
-
else if (~e.indexOf("="))
|
|
1026
|
-
return r = e.match(ni), n && r.length < 4 && (r[3] = 1), r;
|
|
1027
|
-
} else
|
|
1028
|
-
r = e.match(zn) || $t.transparent;
|
|
1029
|
-
r = r.map(Number);
|
|
1030
|
-
}
|
|
1031
|
-
return t && !m && (i = r[0] / H, s = r[1] / H, o = r[2] / H, d = Math.max(i, s, o), h = Math.min(i, s, o), c = (d + h) / 2, d === h ? l = u = 0 : (_ = d - h, u = c > 0.5 ? _ / (2 - d - h) : _ / (d + h), l = d === i ? (s - o) / _ + (s < o ? 6 : 0) : d === s ? (o - i) / _ + 2 : (i - s) / _ + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(u * 100 + 0.5), r[2] = ~~(c * 100 + 0.5)), n && r.length < 4 && (r[3] = 1), r;
|
|
1032
|
-
}, Di = function(e) {
|
|
1033
|
-
var t = [], n = [], r = -1;
|
|
1034
|
-
return e.split(Ze).forEach(function(i) {
|
|
1035
|
-
var s = i.match(yt) || [];
|
|
1036
|
-
t.push.apply(t, s), n.push(r += s.length + 1);
|
|
1037
|
-
}), t.c = n, t;
|
|
1038
|
-
}, Ir = function(e, t, n) {
|
|
1039
|
-
var r = "", i = (e + r).match(Ze), s = t ? "hsla(" : "rgba(", o = 0, l, u, c, d;
|
|
1040
|
-
if (!i)
|
|
1041
|
-
return e;
|
|
1042
|
-
if (i = i.map(function(h) {
|
|
1043
|
-
return (h = Ci(h, t, 1)) && s + (t ? h[0] + "," + h[1] + "%," + h[2] + "%," + h[3] : h.join(",")) + ")";
|
|
1044
|
-
}), n && (c = Di(e), l = n.c, l.join(r) !== c.c.join(r)))
|
|
1045
|
-
for (u = e.replace(Ze, "1").split(yt), d = u.length - 1; o < d; o++)
|
|
1046
|
-
r += u[o] + (~l.indexOf(o) ? i.shift() || s + "0,0,0,0)" : (c.length ? c : i.length ? i : n).shift());
|
|
1047
|
-
if (!u)
|
|
1048
|
-
for (u = e.split(Ze), d = u.length - 1; o < d; o++)
|
|
1049
|
-
r += u[o] + i[o];
|
|
1050
|
-
return r + u[d];
|
|
1051
|
-
}, Ze = function() {
|
|
1052
|
-
var a = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", e;
|
|
1053
|
-
for (e in $t)
|
|
1054
|
-
a += "|" + e + "\\b";
|
|
1055
|
-
return new RegExp(a + ")", "gi");
|
|
1056
|
-
}(), Qo = /hsl[a]?\(/, Ei = function(e) {
|
|
1057
|
-
var t = e.join(" "), n;
|
|
1058
|
-
if (Ze.lastIndex = 0, Ze.test(t))
|
|
1059
|
-
return n = Qo.test(t), e[1] = Ir(e[1], n), e[0] = Ir(e[0], n, Di(e[1])), !0;
|
|
1060
|
-
}, Wt, ye = function() {
|
|
1061
|
-
var a = Date.now, e = 500, t = 33, n = a(), r = n, i = 1e3 / 240, s = i, o = [], l, u, c, d, h, _, m = function f(p) {
|
|
1062
|
-
var g = a() - r, v = p === !0, S, w, y, b;
|
|
1063
|
-
if ((g > e || g < 0) && (n += g - t), r += g, y = r - n, S = y - s, (S > 0 || v) && (b = ++d.frame, h = y - d.time * 1e3, d.time = y = y / 1e3, s += S + (S >= i ? 4 : i - S), w = 1), v || (l = u(f)), w)
|
|
1064
|
-
for (_ = 0; _ < o.length; _++)
|
|
1065
|
-
o[_](y, h, b, p);
|
|
1066
|
-
};
|
|
1067
|
-
return d = {
|
|
1068
|
-
time: 0,
|
|
1069
|
-
frame: 0,
|
|
1070
|
-
tick: function() {
|
|
1071
|
-
m(!0);
|
|
1072
|
-
},
|
|
1073
|
-
deltaRatio: function(p) {
|
|
1074
|
-
return h / (1e3 / (p || 60));
|
|
1075
|
-
},
|
|
1076
|
-
wake: function() {
|
|
1077
|
-
si && (!Ln && tr() && (Ae = Ln = window, nr = Ae.document || {}, we.gsap = me, (Ae.gsapVersions || (Ae.gsapVersions = [])).push(me.version), oi(un || Ae.GreenSockGlobals || !Ae.gsap && Ae || {}), Si.forEach(ki)), c = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && d.sleep(), u = c || function(p) {
|
|
1078
|
-
return setTimeout(p, s - d.time * 1e3 + 1 | 0);
|
|
1079
|
-
}, Wt = 1, m(2));
|
|
1080
|
-
},
|
|
1081
|
-
sleep: function() {
|
|
1082
|
-
(c ? cancelAnimationFrame : clearTimeout)(l), Wt = 0, u = Gt;
|
|
1083
|
-
},
|
|
1084
|
-
lagSmoothing: function(p, g) {
|
|
1085
|
-
e = p || 1 / 0, t = Math.min(g || 33, e);
|
|
1086
|
-
},
|
|
1087
|
-
fps: function(p) {
|
|
1088
|
-
i = 1e3 / (p || 240), s = d.time * 1e3 + i;
|
|
1089
|
-
},
|
|
1090
|
-
add: function(p, g, v) {
|
|
1091
|
-
var S = g ? function(w, y, b, x) {
|
|
1092
|
-
p(w, y, b, x), d.remove(S);
|
|
1093
|
-
} : p;
|
|
1094
|
-
return d.remove(p), o[v ? "unshift" : "push"](S), Ot(), S;
|
|
1095
|
-
},
|
|
1096
|
-
remove: function(p, g) {
|
|
1097
|
-
~(g = o.indexOf(p)) && o.splice(g, 1) && _ >= g && _--;
|
|
1098
|
-
},
|
|
1099
|
-
_listeners: o
|
|
1100
|
-
}, d;
|
|
1101
|
-
}(), Ot = function() {
|
|
1102
|
-
return !Wt && ye.wake();
|
|
1103
|
-
}, z = {}, Jo = /^[\d.\-M][\d.\-,\s]/, ea = /["']/g, ta = function(e) {
|
|
1104
|
-
for (var t = {}, n = e.substr(1, e.length - 3).split(":"), r = n[0], i = 1, s = n.length, o, l, u; i < s; i++)
|
|
1105
|
-
l = n[i], o = i !== s - 1 ? l.lastIndexOf(",") : l.length, u = l.substr(0, o), t[r] = isNaN(u) ? u.replace(ea, "").trim() : +u, r = l.substr(o + 1).trim();
|
|
1106
|
-
return t;
|
|
1107
|
-
}, na = function(e) {
|
|
1108
|
-
var t = e.indexOf("(") + 1, n = e.indexOf(")"), r = e.indexOf("(", t);
|
|
1109
|
-
return e.substring(t, ~r && r < n ? e.indexOf(")", n + 1) : n);
|
|
1110
|
-
}, ra = function(e) {
|
|
1111
|
-
var t = (e + "").split("("), n = z[t[0]];
|
|
1112
|
-
return n && t.length > 1 && n.config ? n.config.apply(null, ~e.indexOf("{") ? [ta(t[1])] : na(e).split(",").map(fi)) : z._CE && Jo.test(e) ? z._CE("", e) : n;
|
|
1113
|
-
}, Pi = function(e) {
|
|
1114
|
-
return function(t) {
|
|
1115
|
-
return 1 - e(1 - t);
|
|
1116
|
-
};
|
|
1117
|
-
}, Oi = function a(e, t) {
|
|
1118
|
-
for (var n = e._first, r; n; )
|
|
1119
|
-
n instanceof le ? a(n, t) : n.vars.yoyoEase && (!n._yoyo || !n._repeat) && n._yoyo !== t && (n.timeline ? a(n.timeline, t) : (r = n._ease, n._ease = n._yEase, n._yEase = r, n._yoyo = t)), n = n._next;
|
|
1120
|
-
}, ut = function(e, t) {
|
|
1121
|
-
return e && (j(e) ? e : z[e] || ra(e)) || t;
|
|
1122
|
-
}, ht = function(e, t, n, r) {
|
|
1123
|
-
n === void 0 && (n = function(l) {
|
|
1124
|
-
return 1 - t(1 - l);
|
|
1125
|
-
}), r === void 0 && (r = function(l) {
|
|
1126
|
-
return l < 0.5 ? t(l * 2) / 2 : 1 - t((1 - l) * 2) / 2;
|
|
1127
|
-
});
|
|
1128
|
-
var i = {
|
|
1129
|
-
easeIn: t,
|
|
1130
|
-
easeOut: n,
|
|
1131
|
-
easeInOut: r
|
|
1132
|
-
}, s;
|
|
1133
|
-
return he(e, function(o) {
|
|
1134
|
-
z[o] = we[o] = i, z[s = o.toLowerCase()] = n;
|
|
1135
|
-
for (var l in i)
|
|
1136
|
-
z[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = z[o + "." + l] = i[l];
|
|
1137
|
-
}), i;
|
|
1138
|
-
}, Ai = function(e) {
|
|
1139
|
-
return function(t) {
|
|
1140
|
-
return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
|
|
1141
|
-
};
|
|
1142
|
-
}, Cn = function a(e, t, n) {
|
|
1143
|
-
var r = t >= 1 ? t : 1, i = (n || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), s = i / $n * (Math.asin(1 / r) || 0), o = function(c) {
|
|
1144
|
-
return c === 1 ? 1 : r * Math.pow(2, -10 * c) * Ao((c - s) * i) + 1;
|
|
1145
|
-
}, l = e === "out" ? o : e === "in" ? function(u) {
|
|
1146
|
-
return 1 - o(1 - u);
|
|
1147
|
-
} : Ai(o);
|
|
1148
|
-
return i = $n / i, l.config = function(u, c) {
|
|
1149
|
-
return a(e, u, c);
|
|
1150
|
-
}, l;
|
|
1151
|
-
}, Dn = function a(e, t) {
|
|
1152
|
-
t === void 0 && (t = 1.70158);
|
|
1153
|
-
var n = function(s) {
|
|
1154
|
-
return s ? --s * s * ((t + 1) * s + t) + 1 : 0;
|
|
1155
|
-
}, r = e === "out" ? n : e === "in" ? function(i) {
|
|
1156
|
-
return 1 - n(1 - i);
|
|
1157
|
-
} : Ai(n);
|
|
1158
|
-
return r.config = function(i) {
|
|
1159
|
-
return a(e, i);
|
|
1160
|
-
}, r;
|
|
1161
|
-
};
|
|
1162
|
-
he("Linear,Quad,Cubic,Quart,Quint,Strong", function(a, e) {
|
|
1163
|
-
var t = e < 5 ? e + 1 : e;
|
|
1164
|
-
ht(a + ",Power" + (t - 1), e ? function(n) {
|
|
1165
|
-
return Math.pow(n, t);
|
|
1166
|
-
} : function(n) {
|
|
1167
|
-
return n;
|
|
1168
|
-
}, function(n) {
|
|
1169
|
-
return 1 - Math.pow(1 - n, t);
|
|
1170
|
-
}, function(n) {
|
|
1171
|
-
return n < 0.5 ? Math.pow(n * 2, t) / 2 : 1 - Math.pow((1 - n) * 2, t) / 2;
|
|
1172
|
-
});
|
|
1173
|
-
});
|
|
1174
|
-
z.Linear.easeNone = z.none = z.Linear.easeIn;
|
|
1175
|
-
ht("Elastic", Cn("in"), Cn("out"), Cn());
|
|
1176
|
-
(function(a, e) {
|
|
1177
|
-
var t = 1 / e, n = 2 * t, r = 2.5 * t, i = function(o) {
|
|
1178
|
-
return o < t ? a * o * o : o < n ? a * Math.pow(o - 1.5 / e, 2) + 0.75 : o < r ? a * (o -= 2.25 / e) * o + 0.9375 : a * Math.pow(o - 2.625 / e, 2) + 0.984375;
|
|
1179
|
-
};
|
|
1180
|
-
ht("Bounce", function(s) {
|
|
1181
|
-
return 1 - i(1 - s);
|
|
1182
|
-
}, i);
|
|
1183
|
-
})(7.5625, 2.75);
|
|
1184
|
-
ht("Expo", function(a) {
|
|
1185
|
-
return a ? Math.pow(2, 10 * (a - 1)) : 0;
|
|
1186
|
-
});
|
|
1187
|
-
ht("Circ", function(a) {
|
|
1188
|
-
return -(ei(1 - a * a) - 1);
|
|
1189
|
-
});
|
|
1190
|
-
ht("Sine", function(a) {
|
|
1191
|
-
return a === 1 ? 1 : -Oo(a * Eo) + 1;
|
|
1192
|
-
});
|
|
1193
|
-
ht("Back", Dn("in"), Dn("out"), Dn());
|
|
1194
|
-
z.SteppedEase = z.steps = we.SteppedEase = {
|
|
1195
|
-
config: function(e, t) {
|
|
1196
|
-
e === void 0 && (e = 1);
|
|
1197
|
-
var n = 1 / e, r = e + (t ? 0 : 1), i = t ? 1 : 0, s = 1 - W;
|
|
1198
|
-
return function(o) {
|
|
1199
|
-
return ((r * Zt(0, s, o) | 0) + i) * n;
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
};
|
|
1203
|
-
Dt.ease = z["quad.out"];
|
|
1204
|
-
he("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(a) {
|
|
1205
|
-
return sr += a + "," + a + "Params,";
|
|
1206
|
-
});
|
|
1207
|
-
var Ii = function(e, t) {
|
|
1208
|
-
this.id = Po++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : ui, this.set = t ? t.getSetter : cr;
|
|
1209
|
-
}, Yt = /* @__PURE__ */ function() {
|
|
1210
|
-
function a(t) {
|
|
1211
|
-
this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat === 1 / 0 ? -2 : t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, Pt(this, +t.duration, 1, 1), this.data = t.data, Y && (this._ctx = Y, Y.data.push(this)), Wt || ye.wake();
|
|
1212
|
-
}
|
|
1213
|
-
var e = a.prototype;
|
|
1214
|
-
return e.delay = function(n) {
|
|
1215
|
-
return n || n === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + n - this._delay), this._delay = n, this) : this._delay;
|
|
1216
|
-
}, e.duration = function(n) {
|
|
1217
|
-
return arguments.length ? this.totalDuration(this._repeat > 0 ? n + (n + this._rDelay) * this._repeat : n) : this.totalDuration() && this._dur;
|
|
1218
|
-
}, e.totalDuration = function(n) {
|
|
1219
|
-
return arguments.length ? (this._dirty = 0, Pt(this, this._repeat < 0 ? n : (n - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
1220
|
-
}, e.totalTime = function(n, r) {
|
|
1221
|
-
if (Ot(), !arguments.length)
|
|
1222
|
-
return this._tTime;
|
|
1223
|
-
var i = this._dp;
|
|
1224
|
-
if (i && i.smoothChildTiming && this._ts) {
|
|
1225
|
-
for (bn(this, n), !i._dp || i.parent || _i(i, this); i && i.parent; )
|
|
1226
|
-
i.parent._time !== i._start + (i._ts >= 0 ? i._tTime / i._ts : (i.totalDuration() - i._tTime) / -i._ts) && i.totalTime(i._tTime, !0), i = i.parent;
|
|
1227
|
-
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && n < this._tDur || this._ts < 0 && n > 0 || !this._tDur && !n) && Me(this._dp, this, this._start - this._delay);
|
|
1228
|
-
}
|
|
1229
|
-
return (this._tTime !== n || !this._dur && !r || this._initted && Math.abs(this._zTime) === W || !n && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = n), ci(this, n, r)), this;
|
|
1230
|
-
}, e.time = function(n, r) {
|
|
1231
|
-
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), n + Pr(this)) % (this._dur + this._rDelay) || (n ? this._dur : 0), r) : this._time;
|
|
1232
|
-
}, e.totalProgress = function(n, r) {
|
|
1233
|
-
return arguments.length ? this.totalTime(this.totalDuration() * n, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
|
|
1234
|
-
}, e.progress = function(n, r) {
|
|
1235
|
-
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - n : n) + Pr(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
1236
|
-
}, e.iteration = function(n, r) {
|
|
1237
|
-
var i = this.duration() + this._rDelay;
|
|
1238
|
-
return arguments.length ? this.totalTime(this._time + (n - 1) * i, r) : this._repeat ? Et(this._tTime, i) + 1 : 1;
|
|
1239
|
-
}, e.timeScale = function(n, r) {
|
|
1240
|
-
if (!arguments.length)
|
|
1241
|
-
return this._rts === -W ? 0 : this._rts;
|
|
1242
|
-
if (this._rts === n)
|
|
1243
|
-
return this;
|
|
1244
|
-
var i = this.parent && this._ts ? dn(this.parent._time, this) : this._tTime;
|
|
1245
|
-
return this._rts = +n || 0, this._ts = this._ps || n === -W ? 0 : this._rts, this.totalTime(Zt(-Math.abs(this._delay), this._tDur, i), r !== !1), xn(this), zo(this);
|
|
1246
|
-
}, e.paused = function(n) {
|
|
1247
|
-
return arguments.length ? (this._ps !== n && (this._ps = n, n ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (Ot(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== W && (this._tTime -= W)))), this) : this._ps;
|
|
1248
|
-
}, e.startTime = function(n) {
|
|
1249
|
-
if (arguments.length) {
|
|
1250
|
-
this._start = n;
|
|
1251
|
-
var r = this.parent || this._dp;
|
|
1252
|
-
return r && (r._sort || !this.parent) && Me(r, this, n - this._delay), this;
|
|
1253
|
-
}
|
|
1254
|
-
return this._start;
|
|
1255
|
-
}, e.endTime = function(n) {
|
|
1256
|
-
return this._start + (de(n) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
1257
|
-
}, e.rawTime = function(n) {
|
|
1258
|
-
var r = this.parent || this._dp;
|
|
1259
|
-
return r ? n && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? dn(r.rawTime(n), this) : this._tTime : this._tTime;
|
|
1260
|
-
}, e.revert = function(n) {
|
|
1261
|
-
n === void 0 && (n = Ro);
|
|
1262
|
-
var r = oe;
|
|
1263
|
-
return oe = n, (this._initted || this._startAt) && (this.timeline && this.timeline.revert(n), this.totalTime(-0.01, n.suppressEvents)), this.data !== "nested" && n.kill !== !1 && this.kill(), oe = r, this;
|
|
1264
|
-
}, e.globalTime = function(n) {
|
|
1265
|
-
for (var r = this, i = arguments.length ? n : r.rawTime(); r; )
|
|
1266
|
-
i = r._start + i / (Math.abs(r._ts) || 1), r = r._dp;
|
|
1267
|
-
return !this.parent && this._sat ? this._sat.globalTime(n) : i;
|
|
1268
|
-
}, e.repeat = function(n) {
|
|
1269
|
-
return arguments.length ? (this._repeat = n === 1 / 0 ? -2 : n, Or(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
|
|
1270
|
-
}, e.repeatDelay = function(n) {
|
|
1271
|
-
if (arguments.length) {
|
|
1272
|
-
var r = this._time;
|
|
1273
|
-
return this._rDelay = n, Or(this), r ? this.time(r) : this;
|
|
1274
|
-
}
|
|
1275
|
-
return this._rDelay;
|
|
1276
|
-
}, e.yoyo = function(n) {
|
|
1277
|
-
return arguments.length ? (this._yoyo = n, this) : this._yoyo;
|
|
1278
|
-
}, e.seek = function(n, r) {
|
|
1279
|
-
return this.totalTime(Te(this, n), de(r));
|
|
1280
|
-
}, e.restart = function(n, r) {
|
|
1281
|
-
return this.play().totalTime(n ? -this._delay : 0, de(r));
|
|
1282
|
-
}, e.play = function(n, r) {
|
|
1283
|
-
return n != null && this.seek(n, r), this.reversed(!1).paused(!1);
|
|
1284
|
-
}, e.reverse = function(n, r) {
|
|
1285
|
-
return n != null && this.seek(n || this.totalDuration(), r), this.reversed(!0).paused(!1);
|
|
1286
|
-
}, e.pause = function(n, r) {
|
|
1287
|
-
return n != null && this.seek(n, r), this.paused(!0);
|
|
1288
|
-
}, e.resume = function() {
|
|
1289
|
-
return this.paused(!1);
|
|
1290
|
-
}, e.reversed = function(n) {
|
|
1291
|
-
return arguments.length ? (!!n !== this.reversed() && this.timeScale(-this._rts || (n ? -W : 0)), this) : this._rts < 0;
|
|
1292
|
-
}, e.invalidate = function() {
|
|
1293
|
-
return this._initted = this._act = 0, this._zTime = -W, this;
|
|
1294
|
-
}, e.isActive = function() {
|
|
1295
|
-
var n = this.parent || this._dp, r = this._start, i;
|
|
1296
|
-
return !!(!n || this._ts && this._initted && n.isActive() && (i = n.rawTime(!0)) >= r && i < this.endTime(!0) - W);
|
|
1297
|
-
}, e.eventCallback = function(n, r, i) {
|
|
1298
|
-
var s = this.vars;
|
|
1299
|
-
return arguments.length > 1 ? (r ? (s[n] = r, i && (s[n + "Params"] = i), n === "onUpdate" && (this._onUpdate = r)) : delete s[n], this) : s[n];
|
|
1300
|
-
}, e.then = function(n) {
|
|
1301
|
-
var r = this;
|
|
1302
|
-
return new Promise(function(i) {
|
|
1303
|
-
var s = j(n) ? n : di, o = function() {
|
|
1304
|
-
var u = r.then;
|
|
1305
|
-
r.then = null, j(s) && (s = s(r)) && (s.then || s === r) && (r.then = u), i(s), r.then = u;
|
|
1306
|
-
};
|
|
1307
|
-
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? o() : r._prom = o;
|
|
1308
|
-
});
|
|
1309
|
-
}, e.kill = function() {
|
|
1310
|
-
Bt(this);
|
|
1311
|
-
}, a;
|
|
1312
|
-
}();
|
|
1313
|
-
Ce(Yt.prototype, {
|
|
1314
|
-
_time: 0,
|
|
1315
|
-
_start: 0,
|
|
1316
|
-
_end: 0,
|
|
1317
|
-
_tTime: 0,
|
|
1318
|
-
_tDur: 0,
|
|
1319
|
-
_dirty: 0,
|
|
1320
|
-
_repeat: 0,
|
|
1321
|
-
_yoyo: !1,
|
|
1322
|
-
parent: null,
|
|
1323
|
-
_initted: !1,
|
|
1324
|
-
_rDelay: 0,
|
|
1325
|
-
_ts: 1,
|
|
1326
|
-
_dp: 0,
|
|
1327
|
-
ratio: 0,
|
|
1328
|
-
_zTime: -W,
|
|
1329
|
-
_prom: 0,
|
|
1330
|
-
_ps: !1,
|
|
1331
|
-
_rts: 1
|
|
1332
|
-
});
|
|
1333
|
-
var le = /* @__PURE__ */ function(a) {
|
|
1334
|
-
Jr(e, a);
|
|
1335
|
-
function e(n, r) {
|
|
1336
|
-
var i;
|
|
1337
|
-
return n === void 0 && (n = {}), i = a.call(this, n) || this, i.labels = {}, i.smoothChildTiming = !!n.smoothChildTiming, i.autoRemoveChildren = !!n.autoRemoveChildren, i._sort = de(n.sortChildren), X && Me(n.parent || X, ze(i), r), n.reversed && i.reverse(), n.paused && i.paused(!0), n.scrollTrigger && pi(ze(i), n.scrollTrigger), i;
|
|
1338
|
-
}
|
|
1339
|
-
var t = e.prototype;
|
|
1340
|
-
return t.to = function(r, i, s) {
|
|
1341
|
-
return Lt(0, arguments, this), this;
|
|
1342
|
-
}, t.from = function(r, i, s) {
|
|
1343
|
-
return Lt(1, arguments, this), this;
|
|
1344
|
-
}, t.fromTo = function(r, i, s, o) {
|
|
1345
|
-
return Lt(2, arguments, this), this;
|
|
1346
|
-
}, t.set = function(r, i, s) {
|
|
1347
|
-
return i.duration = 0, i.parent = this, zt(i).repeatDelay || (i.repeat = 0), i.immediateRender = !!i.immediateRender, new J(r, i, Te(this, s), 1), this;
|
|
1348
|
-
}, t.call = function(r, i, s) {
|
|
1349
|
-
return Me(this, J.delayedCall(0, r, i), s);
|
|
1350
|
-
}, t.staggerTo = function(r, i, s, o, l, u, c) {
|
|
1351
|
-
return s.duration = i, s.stagger = s.stagger || o, s.onComplete = u, s.onCompleteParams = c, s.parent = this, new J(r, s, Te(this, l)), this;
|
|
1352
|
-
}, t.staggerFrom = function(r, i, s, o, l, u, c) {
|
|
1353
|
-
return s.runBackwards = 1, zt(s).immediateRender = de(s.immediateRender), this.staggerTo(r, i, s, o, l, u, c);
|
|
1354
|
-
}, t.staggerFromTo = function(r, i, s, o, l, u, c, d) {
|
|
1355
|
-
return o.startAt = s, zt(o).immediateRender = de(o.immediateRender), this.staggerTo(r, i, o, l, u, c, d);
|
|
1356
|
-
}, t.render = function(r, i, s) {
|
|
1357
|
-
var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, c = r <= 0 ? 0 : te(r), d = this._zTime < 0 != r < 0 && (this._initted || !u), h, _, m, f, p, g, v, S, w, y, b, x;
|
|
1358
|
-
if (this !== X && c > l && r >= 0 && (c = l), c !== this._tTime || s || d) {
|
|
1359
|
-
if (o !== this._time && u && (c += this._time - o, r += this._time - o), h = c, w = this._start, S = this._ts, g = !S, d && (u || (o = this._zTime), (r || !i) && (this._zTime = r)), this._repeat) {
|
|
1360
|
-
if (b = this._yoyo, p = u + this._rDelay, this._repeat < -1 && r < 0)
|
|
1361
|
-
return this.totalTime(p * 100 + r, i, s);
|
|
1362
|
-
if (h = te(c % p), c === l ? (f = this._repeat, h = u) : (f = ~~(c / p), f && f === c / p && (h = u, f--), h > u && (h = u)), y = Et(this._tTime, p), !o && this._tTime && y !== f && this._tTime - y * p - this._dur <= 0 && (y = f), b && f & 1 && (h = u - h, x = 1), f !== y && !this._lock) {
|
|
1363
|
-
var k = b && y & 1, T = k === (b && f & 1);
|
|
1364
|
-
if (f < y && (k = !k), o = k ? 0 : c % u ? u : c, this._lock = 1, this.render(o || (x ? 0 : te(f * p)), i, !u)._lock = 0, this._tTime = c, !i && this.parent && xe(this, "onRepeat"), this.vars.repeatRefresh && !x && (this.invalidate()._lock = 1), o && o !== this._time || g !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
1365
|
-
return this;
|
|
1366
|
-
if (u = this._dur, l = this._tDur, T && (this._lock = 2, o = k ? u : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !x && this.invalidate()), this._lock = 0, !this._ts && !g)
|
|
1367
|
-
return this;
|
|
1368
|
-
Oi(this, x);
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (v = Uo(this, te(o), te(h)), v && (c -= h - (h = v._start))), this._tTime = c, this._time = h, this._act = !S, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, o = 0), !o && h && !i && !f && (xe(this, "onStart"), this._tTime !== c))
|
|
1372
|
-
return this;
|
|
1373
|
-
if (h >= o && r >= 0)
|
|
1374
|
-
for (_ = this._first; _; ) {
|
|
1375
|
-
if (m = _._next, (_._act || h >= _._start) && _._ts && v !== _) {
|
|
1376
|
-
if (_.parent !== this)
|
|
1377
|
-
return this.render(r, i, s);
|
|
1378
|
-
if (_.render(_._ts > 0 ? (h - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (h - _._start) * _._ts, i, s), h !== this._time || !this._ts && !g) {
|
|
1379
|
-
v = 0, m && (c += this._zTime = -W);
|
|
1380
|
-
break;
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
_ = m;
|
|
1384
|
-
}
|
|
1385
|
-
else {
|
|
1386
|
-
_ = this._last;
|
|
1387
|
-
for (var I = r < 0 ? r : h; _; ) {
|
|
1388
|
-
if (m = _._prev, (_._act || I <= _._end) && _._ts && v !== _) {
|
|
1389
|
-
if (_.parent !== this)
|
|
1390
|
-
return this.render(r, i, s);
|
|
1391
|
-
if (_.render(_._ts > 0 ? (I - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (I - _._start) * _._ts, i, s || oe && (_._initted || _._startAt)), h !== this._time || !this._ts && !g) {
|
|
1392
|
-
v = 0, m && (c += this._zTime = I ? -W : W);
|
|
1393
|
-
break;
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
_ = m;
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
if (v && !i && (this.pause(), v.render(h >= o ? 0 : -W)._zTime = h >= o ? 1 : -1, this._ts))
|
|
1400
|
-
return this._start = w, xn(this), this.render(r, i, s);
|
|
1401
|
-
this._onUpdate && !i && xe(this, "onUpdate", !0), (c === l && this._tTime >= this.totalDuration() || !c && o) && (w === this._start || Math.abs(S) !== Math.abs(this._ts)) && (this._lock || ((r || !u) && (c === l && this._ts > 0 || !c && this._ts < 0) && Qe(this, 1), !i && !(r < 0 && !o) && (c || o || !l) && (xe(this, c === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(c < l && this.timeScale() > 0) && this._prom())));
|
|
1402
|
-
}
|
|
1403
|
-
return this;
|
|
1404
|
-
}, t.add = function(r, i) {
|
|
1405
|
-
var s = this;
|
|
1406
|
-
if (Ve(i) || (i = Te(this, i, r)), !(r instanceof Yt)) {
|
|
1407
|
-
if (ae(r))
|
|
1408
|
-
return r.forEach(function(o) {
|
|
1409
|
-
return s.add(o, i);
|
|
1410
|
-
}), this;
|
|
1411
|
-
if (ne(r))
|
|
1412
|
-
return this.addLabel(r, i);
|
|
1413
|
-
if (j(r))
|
|
1414
|
-
r = J.delayedCall(0, r);
|
|
1415
|
-
else
|
|
1416
|
-
return this;
|
|
1417
|
-
}
|
|
1418
|
-
return this !== r ? Me(this, r, i) : this;
|
|
1419
|
-
}, t.getChildren = function(r, i, s, o) {
|
|
1420
|
-
r === void 0 && (r = !0), i === void 0 && (i = !0), s === void 0 && (s = !0), o === void 0 && (o = -Se);
|
|
1421
|
-
for (var l = [], u = this._first; u; )
|
|
1422
|
-
u._start >= o && (u instanceof J ? i && l.push(u) : (s && l.push(u), r && l.push.apply(l, u.getChildren(!0, i, s)))), u = u._next;
|
|
1423
|
-
return l;
|
|
1424
|
-
}, t.getById = function(r) {
|
|
1425
|
-
for (var i = this.getChildren(1, 1, 1), s = i.length; s--; )
|
|
1426
|
-
if (i[s].vars.id === r)
|
|
1427
|
-
return i[s];
|
|
1428
|
-
}, t.remove = function(r) {
|
|
1429
|
-
return ne(r) ? this.removeLabel(r) : j(r) ? this.killTweensOf(r) : (yn(this, r), r === this._recent && (this._recent = this._last), lt(this));
|
|
1430
|
-
}, t.totalTime = function(r, i) {
|
|
1431
|
-
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = te(ye.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), a.prototype.totalTime.call(this, r, i), this._forcing = 0, this) : this._tTime;
|
|
1432
|
-
}, t.addLabel = function(r, i) {
|
|
1433
|
-
return this.labels[r] = Te(this, i), this;
|
|
1434
|
-
}, t.removeLabel = function(r) {
|
|
1435
|
-
return delete this.labels[r], this;
|
|
1436
|
-
}, t.addPause = function(r, i, s) {
|
|
1437
|
-
var o = J.delayedCall(0, i || Gt, s);
|
|
1438
|
-
return o.data = "isPause", this._hasPause = 1, Me(this, o, Te(this, r));
|
|
1439
|
-
}, t.removePause = function(r) {
|
|
1440
|
-
var i = this._first;
|
|
1441
|
-
for (r = Te(this, r); i; )
|
|
1442
|
-
i._start === r && i.data === "isPause" && Qe(i), i = i._next;
|
|
1443
|
-
}, t.killTweensOf = function(r, i, s) {
|
|
1444
|
-
for (var o = this.getTweensOf(r, s), l = o.length; l--; )
|
|
1445
|
-
Ye !== o[l] && o[l].kill(r, i);
|
|
1446
|
-
return this;
|
|
1447
|
-
}, t.getTweensOf = function(r, i) {
|
|
1448
|
-
for (var s = [], o = ke(r), l = this._first, u = Ve(i), c; l; )
|
|
1449
|
-
l instanceof J ? Fo(l._targets, o) && (u ? (!Ye || l._initted && l._ts) && l.globalTime(0) <= i && l.globalTime(l.totalDuration()) > i : !i || l.isActive()) && s.push(l) : (c = l.getTweensOf(o, i)).length && s.push.apply(s, c), l = l._next;
|
|
1450
|
-
return s;
|
|
1451
|
-
}, t.tweenTo = function(r, i) {
|
|
1452
|
-
i = i || {};
|
|
1453
|
-
var s = this, o = Te(s, r), l = i, u = l.startAt, c = l.onStart, d = l.onStartParams, h = l.immediateRender, _, m = J.to(s, Ce({
|
|
1454
|
-
ease: i.ease || "none",
|
|
1455
|
-
lazy: !1,
|
|
1456
|
-
immediateRender: !1,
|
|
1457
|
-
time: o,
|
|
1458
|
-
overwrite: "auto",
|
|
1459
|
-
duration: i.duration || Math.abs((o - (u && "time" in u ? u.time : s._time)) / s.timeScale()) || W,
|
|
1460
|
-
onStart: function() {
|
|
1461
|
-
if (s.pause(), !_) {
|
|
1462
|
-
var p = i.duration || Math.abs((o - (u && "time" in u ? u.time : s._time)) / s.timeScale());
|
|
1463
|
-
m._dur !== p && Pt(m, p, 0, 1).render(m._time, !0, !0), _ = 1;
|
|
1464
|
-
}
|
|
1465
|
-
c && c.apply(m, d || []);
|
|
1466
|
-
}
|
|
1467
|
-
}, i));
|
|
1468
|
-
return h ? m.render(0) : m;
|
|
1469
|
-
}, t.tweenFromTo = function(r, i, s) {
|
|
1470
|
-
return this.tweenTo(i, Ce({
|
|
1471
|
-
startAt: {
|
|
1472
|
-
time: Te(this, r)
|
|
1473
|
-
}
|
|
1474
|
-
}, s));
|
|
1475
|
-
}, t.recent = function() {
|
|
1476
|
-
return this._recent;
|
|
1477
|
-
}, t.nextLabel = function(r) {
|
|
1478
|
-
return r === void 0 && (r = this._time), Ar(this, Te(this, r));
|
|
1479
|
-
}, t.previousLabel = function(r) {
|
|
1480
|
-
return r === void 0 && (r = this._time), Ar(this, Te(this, r), 1);
|
|
1481
|
-
}, t.currentLabel = function(r) {
|
|
1482
|
-
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + W);
|
|
1483
|
-
}, t.shiftChildren = function(r, i, s) {
|
|
1484
|
-
s === void 0 && (s = 0);
|
|
1485
|
-
for (var o = this._first, l = this.labels, u; o; )
|
|
1486
|
-
o._start >= s && (o._start += r, o._end += r), o = o._next;
|
|
1487
|
-
if (i)
|
|
1488
|
-
for (u in l)
|
|
1489
|
-
l[u] >= s && (l[u] += r);
|
|
1490
|
-
return lt(this);
|
|
1491
|
-
}, t.invalidate = function(r) {
|
|
1492
|
-
var i = this._first;
|
|
1493
|
-
for (this._lock = 0; i; )
|
|
1494
|
-
i.invalidate(r), i = i._next;
|
|
1495
|
-
return a.prototype.invalidate.call(this, r);
|
|
1496
|
-
}, t.clear = function(r) {
|
|
1497
|
-
r === void 0 && (r = !0);
|
|
1498
|
-
for (var i = this._first, s; i; )
|
|
1499
|
-
s = i._next, this.remove(i), i = s;
|
|
1500
|
-
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), lt(this);
|
|
1501
|
-
}, t.totalDuration = function(r) {
|
|
1502
|
-
var i = 0, s = this, o = s._last, l = Se, u, c, d;
|
|
1503
|
-
if (arguments.length)
|
|
1504
|
-
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
1505
|
-
if (s._dirty) {
|
|
1506
|
-
for (d = s.parent; o; )
|
|
1507
|
-
u = o._prev, o._dirty && o.totalDuration(), c = o._start, c > l && s._sort && o._ts && !s._lock ? (s._lock = 1, Me(s, o, c - o._delay, 1)._lock = 0) : l = c, c < 0 && o._ts && (i -= c, (!d && !s._dp || d && d.smoothChildTiming) && (s._start += c / s._ts, s._time -= c, s._tTime -= c), s.shiftChildren(-c, !1, -1 / 0), l = 0), o._end > i && o._ts && (i = o._end), o = u;
|
|
1508
|
-
Pt(s, s === X && s._time > i ? s._time : i, 1, 1), s._dirty = 0;
|
|
1509
|
-
}
|
|
1510
|
-
return s._tDur;
|
|
1511
|
-
}, e.updateRoot = function(r) {
|
|
1512
|
-
if (X._ts && (ci(X, dn(r, X)), li = ye.frame), ye.frame >= Dr) {
|
|
1513
|
-
Dr += be.autoSleep || 120;
|
|
1514
|
-
var i = X._first;
|
|
1515
|
-
if ((!i || !i._ts) && be.autoSleep && ye._listeners.length < 2) {
|
|
1516
|
-
for (; i && !i._ts; )
|
|
1517
|
-
i = i._next;
|
|
1518
|
-
i || ye.sleep();
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
}, e;
|
|
1522
|
-
}(Yt);
|
|
1523
|
-
Ce(le.prototype, {
|
|
1524
|
-
_lock: 0,
|
|
1525
|
-
_hasPause: 0,
|
|
1526
|
-
_forcing: 0
|
|
1527
|
-
});
|
|
1528
|
-
var ia = function(e, t, n, r, i, s, o) {
|
|
1529
|
-
var l = new _e(this._pt, e, t, 0, 1, zi, null, i), u = 0, c = 0, d, h, _, m, f, p, g, v;
|
|
1530
|
-
for (l.b = n, l.e = r, n += "", r += "", (g = ~r.indexOf("random(")) && (r = Ht(r)), s && (v = [n, r], s(v, e, t), n = v[0], r = v[1]), h = n.match(Tn) || []; d = Tn.exec(r); )
|
|
1531
|
-
m = d[0], f = r.substring(u, d.index), _ ? _ = (_ + 1) % 5 : f.substr(-5) === "rgba(" && (_ = 1), m !== h[c++] && (p = parseFloat(h[c - 1]) || 0, l._pt = {
|
|
1532
|
-
_next: l._pt,
|
|
1533
|
-
p: f || c === 1 ? f : ",",
|
|
1534
|
-
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
1535
|
-
s: p,
|
|
1536
|
-
c: m.charAt(1) === "=" ? Tt(p, m) - p : parseFloat(m) - p,
|
|
1537
|
-
m: _ && _ < 4 ? Math.round : 0
|
|
1538
|
-
}, u = Tn.lastIndex);
|
|
1539
|
-
return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = o, (ri.test(r) || g) && (l.e = 0), this._pt = l, l;
|
|
1540
|
-
}, ar = function(e, t, n, r, i, s, o, l, u, c) {
|
|
1541
|
-
j(r) && (r = r(i || 0, e, s));
|
|
1542
|
-
var d = e[t], h = n !== "get" ? n : j(d) ? u ? e[t.indexOf("set") || !j(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : d, _ = j(d) ? u ? ua : Bi : ur, m;
|
|
1543
|
-
if (ne(r) && (~r.indexOf("random(") && (r = Ht(r)), r.charAt(1) === "=" && (m = Tt(h, r) + (ie(h) || 0), (m || m === 0) && (r = m))), !c || h !== r || Yn)
|
|
1544
|
-
return !isNaN(h * r) && r !== "" ? (m = new _e(this._pt, e, t, +h || 0, r - (h || 0), typeof d == "boolean" ? fa : $i, 0, _), u && (m.fp = u), o && m.modifier(o, this, e), this._pt = m) : (!d && !(t in e) && rr(t, r), ia.call(this, e, t, h, r, _, l || be.stringFilter, u));
|
|
1545
|
-
}, sa = function(e, t, n, r, i) {
|
|
1546
|
-
if (j(e) && (e = Nt(e, i, t, n, r)), !Be(e) || e.style && e.nodeType || ae(e) || ti(e))
|
|
1547
|
-
return ne(e) ? Nt(e, i, t, n, r) : e;
|
|
1548
|
-
var s = {}, o;
|
|
1549
|
-
for (o in e)
|
|
1550
|
-
s[o] = Nt(e[o], i, t, n, r);
|
|
1551
|
-
return s;
|
|
1552
|
-
}, Mi = function(e, t, n, r, i, s) {
|
|
1553
|
-
var o, l, u, c;
|
|
1554
|
-
if (ve[e] && (o = new ve[e]()).init(i, o.rawVars ? t[e] : sa(t[e], r, i, s, n), n, r, s) !== !1 && (n._pt = l = new _e(n._pt, i, e, 0, 1, o.render, o, 0, o.priority), n !== xt))
|
|
1555
|
-
for (u = n._ptLookup[n._targets.indexOf(i)], c = o._props.length; c--; )
|
|
1556
|
-
u[o._props[c]] = l;
|
|
1557
|
-
return o;
|
|
1558
|
-
}, Ye, Yn, lr = function a(e, t, n) {
|
|
1559
|
-
var r = e.vars, i = r.ease, s = r.startAt, o = r.immediateRender, l = r.lazy, u = r.onUpdate, c = r.runBackwards, d = r.yoyoEase, h = r.keyframes, _ = r.autoRevert, m = e._dur, f = e._startAt, p = e._targets, g = e.parent, v = g && g.data === "nested" ? g.vars.targets : p, S = e._overwrite === "auto" && !Jn, w = e.timeline, y, b, x, k, T, I, L, D, P, $, N, K, Q;
|
|
1560
|
-
if (w && (!h || !i) && (i = "none"), e._ease = ut(i, Dt.ease), e._yEase = d ? Pi(ut(d === !0 ? i : d, Dt.ease)) : 0, d && e._yoyo && !e._repeat && (d = e._yEase, e._yEase = e._ease, e._ease = d), e._from = !w && !!r.runBackwards, !w || h && !r.stagger) {
|
|
1561
|
-
if (D = p[0] ? at(p[0]).harness : 0, K = D && r[D.prop], y = fn(r, ir), f && (f._zTime < 0 && f.progress(1), t < 0 && c && o && !_ ? f.render(-1, !0) : f.revert(c && m ? rn : Mo), f._lazy = 0), s) {
|
|
1562
|
-
if (Qe(e._startAt = J.set(p, Ce({
|
|
1563
|
-
data: "isStart",
|
|
1564
|
-
overwrite: !1,
|
|
1565
|
-
parent: g,
|
|
1566
|
-
immediateRender: !0,
|
|
1567
|
-
lazy: !f && de(l),
|
|
1568
|
-
startAt: null,
|
|
1569
|
-
delay: 0,
|
|
1570
|
-
onUpdate: u && function() {
|
|
1571
|
-
return xe(e, "onUpdate");
|
|
1572
|
-
},
|
|
1573
|
-
stagger: 0
|
|
1574
|
-
}, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (oe || !o && !_) && e._startAt.revert(rn), o && m && t <= 0 && n <= 0) {
|
|
1575
|
-
t && (e._zTime = t);
|
|
1576
|
-
return;
|
|
1577
|
-
}
|
|
1578
|
-
} else if (c && m && !f) {
|
|
1579
|
-
if (t && (o = !1), x = Ce({
|
|
1580
|
-
overwrite: !1,
|
|
1581
|
-
data: "isFromStart",
|
|
1582
|
-
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
1583
|
-
lazy: o && !f && de(l),
|
|
1584
|
-
immediateRender: o,
|
|
1585
|
-
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
1586
|
-
stagger: 0,
|
|
1587
|
-
parent: g
|
|
1588
|
-
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1589
|
-
}, y), K && (x[D.prop] = K), Qe(e._startAt = J.set(p, x)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (oe ? e._startAt.revert(rn) : e._startAt.render(-1, !0)), e._zTime = t, !o)
|
|
1590
|
-
a(e._startAt, W, W);
|
|
1591
|
-
else if (!t)
|
|
1592
|
-
return;
|
|
1593
|
-
}
|
|
1594
|
-
for (e._pt = e._ptCache = 0, l = m && de(l) || l && !m, b = 0; b < p.length; b++) {
|
|
1595
|
-
if (T = p[b], L = T._gsap || or(p)[b]._gsap, e._ptLookup[b] = $ = {}, Nn[L.id] && je.length && cn(), N = v === p ? b : v.indexOf(T), D && (P = new D()).init(T, K || y, e, N, v) !== !1 && (e._pt = k = new _e(e._pt, T, P.name, 0, 1, P.render, P, 0, P.priority), P._props.forEach(function(ge) {
|
|
1596
|
-
$[ge] = k;
|
|
1597
|
-
}), P.priority && (I = 1)), !D || K)
|
|
1598
|
-
for (x in y)
|
|
1599
|
-
ve[x] && (P = Mi(x, y, e, N, T, v)) ? P.priority && (I = 1) : $[x] = k = ar.call(e, T, x, "get", y[x], N, v, 0, r.stringFilter);
|
|
1600
|
-
e._op && e._op[b] && e.kill(T, e._op[b]), S && e._pt && (Ye = e, X.killTweensOf(T, $, e.globalTime(t)), Q = !e.parent, Ye = 0), e._pt && l && (Nn[L.id] = 1);
|
|
1601
|
-
}
|
|
1602
|
-
I && Li(e), e._onInit && e._onInit(e);
|
|
1603
|
-
}
|
|
1604
|
-
e._onUpdate = u, e._initted = (!e._op || e._pt) && !Q, h && t <= 0 && w.render(Se, !0, !0);
|
|
1605
|
-
}, oa = function(e, t, n, r, i, s, o, l) {
|
|
1606
|
-
var u = (e._pt && e._ptCache || (e._ptCache = {}))[t], c, d, h, _;
|
|
1607
|
-
if (!u)
|
|
1608
|
-
for (u = e._ptCache[t] = [], h = e._ptLookup, _ = e._targets.length; _--; ) {
|
|
1609
|
-
if (c = h[_][t], c && c.d && c.d._pt)
|
|
1610
|
-
for (c = c.d._pt; c && c.p !== t && c.fp !== t; )
|
|
1611
|
-
c = c._next;
|
|
1612
|
-
if (!c)
|
|
1613
|
-
return Yn = 1, e.vars[t] = "+=0", lr(e, o), Yn = 0, l ? Ut(t + " not eligible for reset") : 1;
|
|
1614
|
-
u.push(c);
|
|
1615
|
-
}
|
|
1616
|
-
for (_ = u.length; _--; )
|
|
1617
|
-
d = u[_], c = d._pt || d, c.s = (r || r === 0) && !i ? r : c.s + (r || 0) + s * c.c, c.c = n - c.s, d.e && (d.e = Z(n) + ie(d.e)), d.b && (d.b = c.s + ie(d.b));
|
|
1618
|
-
}, aa = function(e, t) {
|
|
1619
|
-
var n = e[0] ? at(e[0]).harness : 0, r = n && n.aliases, i, s, o, l;
|
|
1620
|
-
if (!r)
|
|
1621
|
-
return t;
|
|
1622
|
-
i = ft({}, t);
|
|
1623
|
-
for (s in r)
|
|
1624
|
-
if (s in i)
|
|
1625
|
-
for (l = r[s].split(","), o = l.length; o--; )
|
|
1626
|
-
i[l[o]] = i[s];
|
|
1627
|
-
return i;
|
|
1628
|
-
}, la = function(e, t, n, r) {
|
|
1629
|
-
var i = t.ease || r || "power1.inOut", s, o;
|
|
1630
|
-
if (ae(t))
|
|
1631
|
-
o = n[e] || (n[e] = []), t.forEach(function(l, u) {
|
|
1632
|
-
return o.push({
|
|
1633
|
-
t: u / (t.length - 1) * 100,
|
|
1634
|
-
v: l,
|
|
1635
|
-
e: i
|
|
1636
|
-
});
|
|
1637
|
-
});
|
|
1638
|
-
else
|
|
1639
|
-
for (s in t)
|
|
1640
|
-
o = n[s] || (n[s] = []), s === "ease" || o.push({
|
|
1641
|
-
t: parseFloat(e),
|
|
1642
|
-
v: t[s],
|
|
1643
|
-
e: i
|
|
1644
|
-
});
|
|
1645
|
-
}, Nt = function(e, t, n, r, i) {
|
|
1646
|
-
return j(e) ? e.call(t, n, r, i) : ne(e) && ~e.indexOf("random(") ? Ht(e) : e;
|
|
1647
|
-
}, Ri = sr + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Fi = {};
|
|
1648
|
-
he(Ri + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
|
|
1649
|
-
return Fi[a] = 1;
|
|
1650
|
-
});
|
|
1651
|
-
var J = /* @__PURE__ */ function(a) {
|
|
1652
|
-
Jr(e, a);
|
|
1653
|
-
function e(n, r, i, s) {
|
|
1654
|
-
var o;
|
|
1655
|
-
typeof r == "number" && (i.duration = r, r = i, i = null), o = a.call(this, s ? r : zt(r)) || this;
|
|
1656
|
-
var l = o.vars, u = l.duration, c = l.delay, d = l.immediateRender, h = l.stagger, _ = l.overwrite, m = l.keyframes, f = l.defaults, p = l.scrollTrigger, g = l.yoyoEase, v = r.parent || X, S = (ae(n) || ti(n) ? Ve(n[0]) : "length" in r) ? [n] : ke(n), w, y, b, x, k, T, I, L;
|
|
1657
|
-
if (o._targets = S.length ? or(S) : Ut("GSAP target " + n + " not found. https://gsap.com", !be.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = _, m || h || en(u) || en(c)) {
|
|
1658
|
-
if (r = o.vars, w = o.timeline = new le({
|
|
1659
|
-
data: "nested",
|
|
1660
|
-
defaults: f || {},
|
|
1661
|
-
targets: v && v.data === "nested" ? v.vars.targets : S
|
|
1662
|
-
}), w.kill(), w.parent = w._dp = ze(o), w._start = 0, h || en(u) || en(c)) {
|
|
1663
|
-
if (x = S.length, I = h && yi(h), Be(h))
|
|
1664
|
-
for (k in h)
|
|
1665
|
-
~Ri.indexOf(k) && (L || (L = {}), L[k] = h[k]);
|
|
1666
|
-
for (y = 0; y < x; y++)
|
|
1667
|
-
b = fn(r, Fi), b.stagger = 0, g && (b.yoyoEase = g), L && ft(b, L), T = S[y], b.duration = +Nt(u, ze(o), y, T, S), b.delay = (+Nt(c, ze(o), y, T, S) || 0) - o._delay, !h && x === 1 && b.delay && (o._delay = c = b.delay, o._start += c, b.delay = 0), w.to(T, b, I ? I(y, T, S) : 0), w._ease = z.none;
|
|
1668
|
-
w.duration() ? u = c = 0 : o.timeline = 0;
|
|
1669
|
-
} else if (m) {
|
|
1670
|
-
zt(Ce(w.vars.defaults, {
|
|
1671
|
-
ease: "none"
|
|
1672
|
-
})), w._ease = ut(m.ease || r.ease || "none");
|
|
1673
|
-
var D = 0, P, $, N;
|
|
1674
|
-
if (ae(m))
|
|
1675
|
-
m.forEach(function(K) {
|
|
1676
|
-
return w.to(S, K, ">");
|
|
1677
|
-
}), w.duration();
|
|
1678
|
-
else {
|
|
1679
|
-
b = {};
|
|
1680
|
-
for (k in m)
|
|
1681
|
-
k === "ease" || k === "easeEach" || la(k, m[k], b, m.easeEach);
|
|
1682
|
-
for (k in b)
|
|
1683
|
-
for (P = b[k].sort(function(K, Q) {
|
|
1684
|
-
return K.t - Q.t;
|
|
1685
|
-
}), D = 0, y = 0; y < P.length; y++)
|
|
1686
|
-
$ = P[y], N = {
|
|
1687
|
-
ease: $.e,
|
|
1688
|
-
duration: ($.t - (y ? P[y - 1].t : 0)) / 100 * u
|
|
1689
|
-
}, N[k] = $.v, w.to(S, N, D), D += N.duration;
|
|
1690
|
-
w.duration() < u && w.to({}, {
|
|
1691
|
-
duration: u - w.duration()
|
|
1692
|
-
});
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
u || o.duration(u = w.duration());
|
|
1696
|
-
} else
|
|
1697
|
-
o.timeline = 0;
|
|
1698
|
-
return _ === !0 && !Jn && (Ye = ze(o), X.killTweensOf(S), Ye = 0), Me(v, ze(o), i), r.reversed && o.reverse(), r.paused && o.paused(!0), (d || !u && !m && o._start === te(v._time) && de(d) && Lo(ze(o)) && v.data !== "nested") && (o._tTime = -W, o.render(Math.max(0, -c) || 0)), p && pi(ze(o), p), o;
|
|
1699
|
-
}
|
|
1700
|
-
var t = e.prototype;
|
|
1701
|
-
return t.render = function(r, i, s) {
|
|
1702
|
-
var o = this._time, l = this._tDur, u = this._dur, c = r < 0, d = r > l - W && !c ? l : r < W ? 0 : r, h, _, m, f, p, g, v, S, w;
|
|
1703
|
-
if (!u)
|
|
1704
|
-
Vo(this, r, i, s);
|
|
1705
|
-
else if (d !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== c) {
|
|
1706
|
-
if (h = d, S = this.timeline, this._repeat) {
|
|
1707
|
-
if (f = u + this._rDelay, this._repeat < -1 && c)
|
|
1708
|
-
return this.totalTime(f * 100 + r, i, s);
|
|
1709
|
-
if (h = te(d % f), d === l ? (m = this._repeat, h = u) : (m = ~~(d / f), m && m === te(d / f) && (h = u, m--), h > u && (h = u)), g = this._yoyo && m & 1, g && (w = this._yEase, h = u - h), p = Et(this._tTime, f), h === o && !s && this._initted && m === p)
|
|
1710
|
-
return this._tTime = d, this;
|
|
1711
|
-
m !== p && (S && this._yEase && Oi(S, g), this.vars.repeatRefresh && !g && !this._lock && this._time !== f && this._initted && (this._lock = s = 1, this.render(te(f * m), !0).invalidate()._lock = 0));
|
|
1712
|
-
}
|
|
1713
|
-
if (!this._initted) {
|
|
1714
|
-
if (mi(this, c ? r : h, s, i, d))
|
|
1715
|
-
return this._tTime = 0, this;
|
|
1716
|
-
if (o !== this._time && !(s && this.vars.repeatRefresh && m !== p))
|
|
1717
|
-
return this;
|
|
1718
|
-
if (u !== this._dur)
|
|
1719
|
-
return this.render(r, i, s);
|
|
1720
|
-
}
|
|
1721
|
-
if (this._tTime = d, this._time = h, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = v = (w || this._ease)(h / u), this._from && (this.ratio = v = 1 - v), h && !o && !i && !m && (xe(this, "onStart"), this._tTime !== d))
|
|
1722
|
-
return this;
|
|
1723
|
-
for (_ = this._pt; _; )
|
|
1724
|
-
_.r(v, _.d), _ = _._next;
|
|
1725
|
-
S && S.render(r < 0 ? r : S._dur * S._ease(h / this._dur), i, s) || this._startAt && (this._zTime = r), this._onUpdate && !i && (c && Vn(this, r, i, s), xe(this, "onUpdate")), this._repeat && m !== p && this.vars.onRepeat && !i && this.parent && xe(this, "onRepeat"), (d === this._tDur || !d) && this._tTime === d && (c && !this._onUpdate && Vn(this, r, !0, !0), (r || !u) && (d === this._tDur && this._ts > 0 || !d && this._ts < 0) && Qe(this, 1), !i && !(c && !o) && (d || o || g) && (xe(this, d === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(d < l && this.timeScale() > 0) && this._prom()));
|
|
1726
|
-
}
|
|
1727
|
-
return this;
|
|
1728
|
-
}, t.targets = function() {
|
|
1729
|
-
return this._targets;
|
|
1730
|
-
}, t.invalidate = function(r) {
|
|
1731
|
-
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), a.prototype.invalidate.call(this, r);
|
|
1732
|
-
}, t.resetTo = function(r, i, s, o, l) {
|
|
1733
|
-
Wt || ye.wake(), this._ts || this.play();
|
|
1734
|
-
var u = Math.min(this._dur, (this._dp._time - this._start) * this._ts), c;
|
|
1735
|
-
return this._initted || lr(this, u), c = this._ease(u / this._dur), oa(this, r, i, s, o, c, u, l) ? this.resetTo(r, i, s, o, 1) : (bn(this, 0), this.parent || hi(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1736
|
-
}, t.kill = function(r, i) {
|
|
1737
|
-
if (i === void 0 && (i = "all"), !r && (!i || i === "all"))
|
|
1738
|
-
return this._lazy = this._pt = 0, this.parent ? Bt(this) : this;
|
|
1739
|
-
if (this.timeline) {
|
|
1740
|
-
var s = this.timeline.totalDuration();
|
|
1741
|
-
return this.timeline.killTweensOf(r, i, Ye && Ye.vars.overwrite !== !0)._first || Bt(this), this.parent && s !== this.timeline.totalDuration() && Pt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1742
|
-
}
|
|
1743
|
-
var o = this._targets, l = r ? ke(r) : o, u = this._ptLookup, c = this._pt, d, h, _, m, f, p, g;
|
|
1744
|
-
if ((!i || i === "all") && $o(o, l))
|
|
1745
|
-
return i === "all" && (this._pt = 0), Bt(this);
|
|
1746
|
-
for (d = this._op = this._op || [], i !== "all" && (ne(i) && (f = {}, he(i, function(v) {
|
|
1747
|
-
return f[v] = 1;
|
|
1748
|
-
}), i = f), i = aa(o, i)), g = o.length; g--; )
|
|
1749
|
-
if (~l.indexOf(o[g])) {
|
|
1750
|
-
h = u[g], i === "all" ? (d[g] = i, m = h, _ = {}) : (_ = d[g] = d[g] || {}, m = i);
|
|
1751
|
-
for (f in m)
|
|
1752
|
-
p = h && h[f], p && ((!("kill" in p.d) || p.d.kill(f) === !0) && yn(this, p, "_pt"), delete h[f]), _ !== "all" && (_[f] = 1);
|
|
1753
|
-
}
|
|
1754
|
-
return this._initted && !this._pt && c && Bt(this), this;
|
|
1755
|
-
}, e.to = function(r, i) {
|
|
1756
|
-
return new e(r, i, arguments[2]);
|
|
1757
|
-
}, e.from = function(r, i) {
|
|
1758
|
-
return Lt(1, arguments);
|
|
1759
|
-
}, e.delayedCall = function(r, i, s, o) {
|
|
1760
|
-
return new e(i, 0, {
|
|
1761
|
-
immediateRender: !1,
|
|
1762
|
-
lazy: !1,
|
|
1763
|
-
overwrite: !1,
|
|
1764
|
-
delay: r,
|
|
1765
|
-
onComplete: i,
|
|
1766
|
-
onReverseComplete: i,
|
|
1767
|
-
onCompleteParams: s,
|
|
1768
|
-
onReverseCompleteParams: s,
|
|
1769
|
-
callbackScope: o
|
|
1770
|
-
});
|
|
1771
|
-
}, e.fromTo = function(r, i, s) {
|
|
1772
|
-
return Lt(2, arguments);
|
|
1773
|
-
}, e.set = function(r, i) {
|
|
1774
|
-
return i.duration = 0, i.repeatDelay || (i.repeat = 0), new e(r, i);
|
|
1775
|
-
}, e.killTweensOf = function(r, i, s) {
|
|
1776
|
-
return X.killTweensOf(r, i, s);
|
|
1777
|
-
}, e;
|
|
1778
|
-
}(Yt);
|
|
1779
|
-
Ce(J.prototype, {
|
|
1780
|
-
_targets: [],
|
|
1781
|
-
_lazy: 0,
|
|
1782
|
-
_startAt: 0,
|
|
1783
|
-
_op: 0,
|
|
1784
|
-
_onInit: 0
|
|
1785
|
-
});
|
|
1786
|
-
he("staggerTo,staggerFrom,staggerFromTo", function(a) {
|
|
1787
|
-
J[a] = function() {
|
|
1788
|
-
var e = new le(), t = Gn.call(arguments, 0);
|
|
1789
|
-
return t.splice(a === "staggerFromTo" ? 5 : 4, 0, 0), e[a].apply(e, t);
|
|
1790
|
-
};
|
|
1791
|
-
});
|
|
1792
|
-
var ur = function(e, t, n) {
|
|
1793
|
-
return e[t] = n;
|
|
1794
|
-
}, Bi = function(e, t, n) {
|
|
1795
|
-
return e[t](n);
|
|
1796
|
-
}, ua = function(e, t, n, r) {
|
|
1797
|
-
return e[t](r.fp, n);
|
|
1798
|
-
}, ca = function(e, t, n) {
|
|
1799
|
-
return e.setAttribute(t, n);
|
|
1800
|
-
}, cr = function(e, t) {
|
|
1801
|
-
return j(e[t]) ? Bi : er(e[t]) && e.setAttribute ? ca : ur;
|
|
1802
|
-
}, $i = function(e, t) {
|
|
1803
|
-
return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
|
|
1804
|
-
}, fa = function(e, t) {
|
|
1805
|
-
return t.set(t.t, t.p, !!(t.s + t.c * e), t);
|
|
1806
|
-
}, zi = function(e, t) {
|
|
1807
|
-
var n = t._pt, r = "";
|
|
1808
|
-
if (!e && t.b)
|
|
1809
|
-
r = t.b;
|
|
1810
|
-
else if (e === 1 && t.e)
|
|
1811
|
-
r = t.e;
|
|
1812
|
-
else {
|
|
1813
|
-
for (; n; )
|
|
1814
|
-
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;
|
|
1815
|
-
r += t.c;
|
|
1816
|
-
}
|
|
1817
|
-
t.set(t.t, t.p, r, t);
|
|
1818
|
-
}, fr = function(e, t) {
|
|
1819
|
-
for (var n = t._pt; n; )
|
|
1820
|
-
n.r(e, n.d), n = n._next;
|
|
1821
|
-
}, da = function(e, t, n, r) {
|
|
1822
|
-
for (var i = this._pt, s; i; )
|
|
1823
|
-
s = i._next, i.p === r && i.modifier(e, t, n), i = s;
|
|
1824
|
-
}, ha = function(e) {
|
|
1825
|
-
for (var t = this._pt, n, r; t; )
|
|
1826
|
-
r = t._next, t.p === e && !t.op || t.op === e ? yn(this, t, "_pt") : t.dep || (n = 1), t = r;
|
|
1827
|
-
return !n;
|
|
1828
|
-
}, _a = function(e, t, n, r) {
|
|
1829
|
-
r.mSet(e, t, r.m.call(r.tween, n, r.mt), r);
|
|
1830
|
-
}, Li = function(e) {
|
|
1831
|
-
for (var t = e._pt, n, r, i, s; t; ) {
|
|
1832
|
-
for (n = t._next, r = i; r && r.pr > t.pr; )
|
|
1833
|
-
r = r._next;
|
|
1834
|
-
(t._prev = r ? r._prev : s) ? t._prev._next = t : i = t, (t._next = r) ? r._prev = t : s = t, t = n;
|
|
1835
|
-
}
|
|
1836
|
-
e._pt = i;
|
|
1837
|
-
}, _e = /* @__PURE__ */ function() {
|
|
1838
|
-
function a(t, n, r, i, s, o, l, u, c) {
|
|
1839
|
-
this.t = n, this.s = i, this.c = s, this.p = r, this.r = o || $i, this.d = l || this, this.set = u || ur, this.pr = c || 0, this._next = t, t && (t._prev = this);
|
|
1840
|
-
}
|
|
1841
|
-
var e = a.prototype;
|
|
1842
|
-
return e.modifier = function(n, r, i) {
|
|
1843
|
-
this.mSet = this.mSet || this.set, this.set = _a, this.m = n, this.mt = i, this.tween = r;
|
|
1844
|
-
}, a;
|
|
1845
|
-
}();
|
|
1846
|
-
he(sr + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(a) {
|
|
1847
|
-
return ir[a] = 1;
|
|
1848
|
-
});
|
|
1849
|
-
we.TweenMax = we.TweenLite = J;
|
|
1850
|
-
we.TimelineLite = we.TimelineMax = le;
|
|
1851
|
-
X = new le({
|
|
1852
|
-
sortChildren: !1,
|
|
1853
|
-
defaults: Dt,
|
|
1854
|
-
autoRemoveChildren: !0,
|
|
1855
|
-
id: "root",
|
|
1856
|
-
smoothChildTiming: !0
|
|
1857
|
-
});
|
|
1858
|
-
be.stringFilter = Ei;
|
|
1859
|
-
var ct = [], on = {}, pa = [], Mr = 0, ma = 0, En = function(e) {
|
|
1860
|
-
return (on[e] || pa).map(function(t) {
|
|
1861
|
-
return t();
|
|
1862
|
-
});
|
|
1863
|
-
}, Xn = function() {
|
|
1864
|
-
var e = Date.now(), t = [];
|
|
1865
|
-
e - Mr > 2 && (En("matchMediaInit"), ct.forEach(function(n) {
|
|
1866
|
-
var r = n.queries, i = n.conditions, s, o, l, u;
|
|
1867
|
-
for (o in r)
|
|
1868
|
-
s = Ae.matchMedia(r[o]).matches, s && (l = 1), s !== i[o] && (i[o] = s, u = 1);
|
|
1869
|
-
u && (n.revert(), l && t.push(n));
|
|
1870
|
-
}), En("matchMediaRevert"), t.forEach(function(n) {
|
|
1871
|
-
return n.onMatch(n, function(r) {
|
|
1872
|
-
return n.add(null, r);
|
|
1873
|
-
});
|
|
1874
|
-
}), Mr = e, En("matchMedia"));
|
|
1875
|
-
}, Ni = /* @__PURE__ */ function() {
|
|
1876
|
-
function a(t, n) {
|
|
1877
|
-
this.selector = n && Hn(n), this.data = [], this._r = [], this.isReverted = !1, this.id = ma++, t && this.add(t);
|
|
1878
|
-
}
|
|
1879
|
-
var e = a.prototype;
|
|
1880
|
-
return e.add = function(n, r, i) {
|
|
1881
|
-
j(n) && (i = r, r = n, n = j);
|
|
1882
|
-
var s = this, o = function() {
|
|
1883
|
-
var u = Y, c = s.selector, d;
|
|
1884
|
-
return u && u !== s && u.data.push(s), i && (s.selector = Hn(i)), Y = s, d = r.apply(s, arguments), j(d) && s._r.push(d), Y = u, s.selector = c, s.isReverted = !1, d;
|
|
1885
|
-
};
|
|
1886
|
-
return s.last = o, n === j ? o(s, function(l) {
|
|
1887
|
-
return s.add(null, l);
|
|
1888
|
-
}) : n ? s[n] = o : o;
|
|
1889
|
-
}, e.ignore = function(n) {
|
|
1890
|
-
var r = Y;
|
|
1891
|
-
Y = null, n(this), Y = r;
|
|
1892
|
-
}, e.getTweens = function() {
|
|
1893
|
-
var n = [];
|
|
1894
|
-
return this.data.forEach(function(r) {
|
|
1895
|
-
return r instanceof a ? n.push.apply(n, r.getTweens()) : r instanceof J && !(r.parent && r.parent.data === "nested") && n.push(r);
|
|
1896
|
-
}), n;
|
|
1897
|
-
}, e.clear = function() {
|
|
1898
|
-
this._r.length = this.data.length = 0;
|
|
1899
|
-
}, e.kill = function(n, r) {
|
|
1900
|
-
var i = this;
|
|
1901
|
-
if (n ? function() {
|
|
1902
|
-
for (var o = i.getTweens(), l = i.data.length, u; l--; )
|
|
1903
|
-
u = i.data[l], u.data === "isFlip" && (u.revert(), u.getChildren(!0, !0, !1).forEach(function(c) {
|
|
1904
|
-
return o.splice(o.indexOf(c), 1);
|
|
1905
|
-
}));
|
|
1906
|
-
for (o.map(function(c) {
|
|
1907
|
-
return {
|
|
1908
|
-
g: c._dur || c._delay || c._sat && !c._sat.vars.immediateRender ? c.globalTime(0) : -1 / 0,
|
|
1909
|
-
t: c
|
|
1910
|
-
};
|
|
1911
|
-
}).sort(function(c, d) {
|
|
1912
|
-
return d.g - c.g || -1 / 0;
|
|
1913
|
-
}).forEach(function(c) {
|
|
1914
|
-
return c.t.revert(n);
|
|
1915
|
-
}), l = i.data.length; l--; )
|
|
1916
|
-
u = i.data[l], u instanceof le ? u.data !== "nested" && (u.scrollTrigger && u.scrollTrigger.revert(), u.kill()) : !(u instanceof J) && u.revert && u.revert(n);
|
|
1917
|
-
i._r.forEach(function(c) {
|
|
1918
|
-
return c(n, i);
|
|
1919
|
-
}), i.isReverted = !0;
|
|
1920
|
-
}() : this.data.forEach(function(o) {
|
|
1921
|
-
return o.kill && o.kill();
|
|
1922
|
-
}), this.clear(), r)
|
|
1923
|
-
for (var s = ct.length; s--; )
|
|
1924
|
-
ct[s].id === this.id && ct.splice(s, 1);
|
|
1925
|
-
}, e.revert = function(n) {
|
|
1926
|
-
this.kill(n || {});
|
|
1927
|
-
}, a;
|
|
1928
|
-
}(), ga = /* @__PURE__ */ function() {
|
|
1929
|
-
function a(t) {
|
|
1930
|
-
this.contexts = [], this.scope = t, Y && Y.data.push(this);
|
|
1931
|
-
}
|
|
1932
|
-
var e = a.prototype;
|
|
1933
|
-
return e.add = function(n, r, i) {
|
|
1934
|
-
Be(n) || (n = {
|
|
1935
|
-
matches: n
|
|
1936
|
-
});
|
|
1937
|
-
var s = new Ni(0, i || this.scope), o = s.conditions = {}, l, u, c;
|
|
1938
|
-
Y && !s.selector && (s.selector = Y.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = n;
|
|
1939
|
-
for (u in n)
|
|
1940
|
-
u === "all" ? c = 1 : (l = Ae.matchMedia(n[u]), l && (ct.indexOf(s) < 0 && ct.push(s), (o[u] = l.matches) && (c = 1), l.addListener ? l.addListener(Xn) : l.addEventListener("change", Xn)));
|
|
1941
|
-
return c && r(s, function(d) {
|
|
1942
|
-
return s.add(null, d);
|
|
1943
|
-
}), this;
|
|
1944
|
-
}, e.revert = function(n) {
|
|
1945
|
-
this.kill(n || {});
|
|
1946
|
-
}, e.kill = function(n) {
|
|
1947
|
-
this.contexts.forEach(function(r) {
|
|
1948
|
-
return r.kill(n, !0);
|
|
1949
|
-
});
|
|
1950
|
-
}, a;
|
|
1951
|
-
}(), hn = {
|
|
1952
|
-
registerPlugin: function() {
|
|
1953
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1954
|
-
t[n] = arguments[n];
|
|
1955
|
-
t.forEach(function(r) {
|
|
1956
|
-
return ki(r);
|
|
1957
|
-
});
|
|
1958
|
-
},
|
|
1959
|
-
timeline: function(e) {
|
|
1960
|
-
return new le(e);
|
|
1961
|
-
},
|
|
1962
|
-
getTweensOf: function(e, t) {
|
|
1963
|
-
return X.getTweensOf(e, t);
|
|
1964
|
-
},
|
|
1965
|
-
getProperty: function(e, t, n, r) {
|
|
1966
|
-
ne(e) && (e = ke(e)[0]);
|
|
1967
|
-
var i = at(e || {}).get, s = n ? di : fi;
|
|
1968
|
-
return n === "native" && (n = ""), e && (t ? s((ve[t] && ve[t].get || i)(e, t, n, r)) : function(o, l, u) {
|
|
1969
|
-
return s((ve[o] && ve[o].get || i)(e, o, l, u));
|
|
1970
|
-
});
|
|
1971
|
-
},
|
|
1972
|
-
quickSetter: function(e, t, n) {
|
|
1973
|
-
if (e = ke(e), e.length > 1) {
|
|
1974
|
-
var r = e.map(function(c) {
|
|
1975
|
-
return me.quickSetter(c, t, n);
|
|
1976
|
-
}), i = r.length;
|
|
1977
|
-
return function(c) {
|
|
1978
|
-
for (var d = i; d--; )
|
|
1979
|
-
r[d](c);
|
|
1980
|
-
};
|
|
1981
|
-
}
|
|
1982
|
-
e = e[0] || {};
|
|
1983
|
-
var s = ve[t], o = at(e), l = o.harness && (o.harness.aliases || {})[t] || t, u = s ? function(c) {
|
|
1984
|
-
var d = new s();
|
|
1985
|
-
xt._pt = 0, d.init(e, n ? c + n : c, xt, 0, [e]), d.render(1, d), xt._pt && fr(1, xt);
|
|
1986
|
-
} : o.set(e, l);
|
|
1987
|
-
return s ? u : function(c) {
|
|
1988
|
-
return u(e, l, n ? c + n : c, o, 1);
|
|
1989
|
-
};
|
|
1990
|
-
},
|
|
1991
|
-
quickTo: function(e, t, n) {
|
|
1992
|
-
var r, i = me.to(e, ft((r = {}, r[t] = "+=0.1", r.paused = !0, r), n || {})), s = function(l, u, c) {
|
|
1993
|
-
return i.resetTo(t, l, u, c);
|
|
1994
|
-
};
|
|
1995
|
-
return s.tween = i, s;
|
|
1996
|
-
},
|
|
1997
|
-
isTweening: function(e) {
|
|
1998
|
-
return X.getTweensOf(e, !0).length > 0;
|
|
1999
|
-
},
|
|
2000
|
-
defaults: function(e) {
|
|
2001
|
-
return e && e.ease && (e.ease = ut(e.ease, Dt.ease)), Er(Dt, e || {});
|
|
2002
|
-
},
|
|
2003
|
-
config: function(e) {
|
|
2004
|
-
return Er(be, e || {});
|
|
2005
|
-
},
|
|
2006
|
-
registerEffect: function(e) {
|
|
2007
|
-
var t = e.name, n = e.effect, r = e.plugins, i = e.defaults, s = e.extendTimeline;
|
|
2008
|
-
(r || "").split(",").forEach(function(o) {
|
|
2009
|
-
return o && !ve[o] && !we[o] && Ut(t + " effect requires " + o + " plugin.");
|
|
2010
|
-
}), Sn[t] = function(o, l, u) {
|
|
2011
|
-
return n(ke(o), Ce(l || {}, i), u);
|
|
2012
|
-
}, s && (le.prototype[t] = function(o, l, u) {
|
|
2013
|
-
return this.add(Sn[t](o, Be(l) ? l : (u = l) && {}, this), u);
|
|
2014
|
-
});
|
|
2015
|
-
},
|
|
2016
|
-
registerEase: function(e, t) {
|
|
2017
|
-
z[e] = ut(t);
|
|
2018
|
-
},
|
|
2019
|
-
parseEase: function(e, t) {
|
|
2020
|
-
return arguments.length ? ut(e, t) : z;
|
|
2021
|
-
},
|
|
2022
|
-
getById: function(e) {
|
|
2023
|
-
return X.getById(e);
|
|
2024
|
-
},
|
|
2025
|
-
exportRoot: function(e, t) {
|
|
2026
|
-
e === void 0 && (e = {});
|
|
2027
|
-
var n = new le(e), r, i;
|
|
2028
|
-
for (n.smoothChildTiming = de(e.smoothChildTiming), X.remove(n), n._dp = 0, n._time = n._tTime = X._time, r = X._first; r; )
|
|
2029
|
-
i = r._next, (t || !(!r._dur && r instanceof J && r.vars.onComplete === r._targets[0])) && Me(n, r, r._start - r._delay), r = i;
|
|
2030
|
-
return Me(X, n, 0), n;
|
|
2031
|
-
},
|
|
2032
|
-
context: function(e, t) {
|
|
2033
|
-
return e ? new Ni(e, t) : Y;
|
|
2034
|
-
},
|
|
2035
|
-
matchMedia: function(e) {
|
|
2036
|
-
return new ga(e);
|
|
2037
|
-
},
|
|
2038
|
-
matchMediaRefresh: function() {
|
|
2039
|
-
return ct.forEach(function(e) {
|
|
2040
|
-
var t = e.conditions, n, r;
|
|
2041
|
-
for (r in t)
|
|
2042
|
-
t[r] && (t[r] = !1, n = 1);
|
|
2043
|
-
n && e.revert();
|
|
2044
|
-
}) || Xn();
|
|
2045
|
-
},
|
|
2046
|
-
addEventListener: function(e, t) {
|
|
2047
|
-
var n = on[e] || (on[e] = []);
|
|
2048
|
-
~n.indexOf(t) || n.push(t);
|
|
2049
|
-
},
|
|
2050
|
-
removeEventListener: function(e, t) {
|
|
2051
|
-
var n = on[e], r = n && n.indexOf(t);
|
|
2052
|
-
r >= 0 && n.splice(r, 1);
|
|
2053
|
-
},
|
|
2054
|
-
utils: {
|
|
2055
|
-
wrap: Ko,
|
|
2056
|
-
wrapYoyo: jo,
|
|
2057
|
-
distribute: yi,
|
|
2058
|
-
random: bi,
|
|
2059
|
-
snap: xi,
|
|
2060
|
-
normalize: qo,
|
|
2061
|
-
getUnit: ie,
|
|
2062
|
-
clamp: Ho,
|
|
2063
|
-
splitColor: Ci,
|
|
2064
|
-
toArray: ke,
|
|
2065
|
-
selector: Hn,
|
|
2066
|
-
mapRange: Ti,
|
|
2067
|
-
pipe: Yo,
|
|
2068
|
-
unitize: Xo,
|
|
2069
|
-
interpolate: Zo,
|
|
2070
|
-
shuffle: vi
|
|
2071
|
-
},
|
|
2072
|
-
install: oi,
|
|
2073
|
-
effects: Sn,
|
|
2074
|
-
ticker: ye,
|
|
2075
|
-
updateRoot: le.updateRoot,
|
|
2076
|
-
plugins: ve,
|
|
2077
|
-
globalTimeline: X,
|
|
2078
|
-
core: {
|
|
2079
|
-
PropTween: _e,
|
|
2080
|
-
globals: ai,
|
|
2081
|
-
Tween: J,
|
|
2082
|
-
Timeline: le,
|
|
2083
|
-
Animation: Yt,
|
|
2084
|
-
getCache: at,
|
|
2085
|
-
_removeLinkedListItem: yn,
|
|
2086
|
-
reverting: function() {
|
|
2087
|
-
return oe;
|
|
2088
|
-
},
|
|
2089
|
-
context: function(e) {
|
|
2090
|
-
return e && Y && (Y.data.push(e), e._ctx = Y), Y;
|
|
2091
|
-
},
|
|
2092
|
-
suppressOverwrites: function(e) {
|
|
2093
|
-
return Jn = e;
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
|
-
he("to,from,fromTo,delayedCall,set,killTweensOf", function(a) {
|
|
2098
|
-
return hn[a] = J[a];
|
|
2099
|
-
});
|
|
2100
|
-
ye.add(le.updateRoot);
|
|
2101
|
-
xt = hn.to({}, {
|
|
2102
|
-
duration: 0
|
|
2103
|
-
});
|
|
2104
|
-
var va = function(e, t) {
|
|
2105
|
-
for (var n = e._pt; n && n.p !== t && n.op !== t && n.fp !== t; )
|
|
2106
|
-
n = n._next;
|
|
2107
|
-
return n;
|
|
2108
|
-
}, ya = function(e, t) {
|
|
2109
|
-
var n = e._targets, r, i, s;
|
|
2110
|
-
for (r in t)
|
|
2111
|
-
for (i = n.length; i--; )
|
|
2112
|
-
s = e._ptLookup[i][r], s && (s = s.d) && (s._pt && (s = va(s, r)), s && s.modifier && s.modifier(t[r], e, n[i], r));
|
|
2113
|
-
}, Pn = function(e, t) {
|
|
2114
|
-
return {
|
|
2115
|
-
name: e,
|
|
2116
|
-
rawVars: 1,
|
|
2117
|
-
//don't pre-process function-based values or "random()" strings.
|
|
2118
|
-
init: function(r, i, s) {
|
|
2119
|
-
s._onInit = function(o) {
|
|
2120
|
-
var l, u;
|
|
2121
|
-
if (ne(i) && (l = {}, he(i, function(c) {
|
|
2122
|
-
return l[c] = 1;
|
|
2123
|
-
}), i = l), t) {
|
|
2124
|
-
l = {};
|
|
2125
|
-
for (u in i)
|
|
2126
|
-
l[u] = t(i[u]);
|
|
2127
|
-
i = l;
|
|
2128
|
-
}
|
|
2129
|
-
ya(o, i);
|
|
2130
|
-
};
|
|
2131
|
-
}
|
|
2132
|
-
};
|
|
2133
|
-
}, me = hn.registerPlugin({
|
|
2134
|
-
name: "attr",
|
|
2135
|
-
init: function(e, t, n, r, i) {
|
|
2136
|
-
var s, o, l;
|
|
2137
|
-
this.tween = n;
|
|
2138
|
-
for (s in t)
|
|
2139
|
-
l = e.getAttribute(s) || "", o = this.add(e, "setAttribute", (l || 0) + "", t[s], r, i, 0, 0, s), o.op = s, o.b = l, this._props.push(s);
|
|
2140
|
-
},
|
|
2141
|
-
render: function(e, t) {
|
|
2142
|
-
for (var n = t._pt; n; )
|
|
2143
|
-
oe ? n.set(n.t, n.p, n.b, n) : n.r(e, n.d), n = n._next;
|
|
2144
|
-
}
|
|
2145
|
-
}, {
|
|
2146
|
-
name: "endArray",
|
|
2147
|
-
init: function(e, t) {
|
|
2148
|
-
for (var n = t.length; n--; )
|
|
2149
|
-
this.add(e, n, e[n] || 0, t[n], 0, 0, 0, 0, 0, 1);
|
|
2150
|
-
}
|
|
2151
|
-
}, Pn("roundProps", Wn), Pn("modifiers"), Pn("snap", xi)) || hn;
|
|
2152
|
-
J.version = le.version = me.version = "3.12.5";
|
|
2153
|
-
si = 1;
|
|
2154
|
-
tr() && Ot();
|
|
2155
|
-
z.Power0;
|
|
2156
|
-
z.Power1;
|
|
2157
|
-
z.Power2;
|
|
2158
|
-
z.Power3;
|
|
2159
|
-
z.Power4;
|
|
2160
|
-
z.Linear;
|
|
2161
|
-
z.Quad;
|
|
2162
|
-
z.Cubic;
|
|
2163
|
-
z.Quart;
|
|
2164
|
-
z.Quint;
|
|
2165
|
-
z.Strong;
|
|
2166
|
-
z.Elastic;
|
|
2167
|
-
z.Back;
|
|
2168
|
-
z.SteppedEase;
|
|
2169
|
-
z.Bounce;
|
|
2170
|
-
z.Sine;
|
|
2171
|
-
z.Expo;
|
|
2172
|
-
z.Circ;
|
|
2173
|
-
/*!
|
|
2174
|
-
* CSSPlugin 3.12.5
|
|
2175
|
-
* https://gsap.com
|
|
2176
|
-
*
|
|
2177
|
-
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
2178
|
-
* Subject to the terms at https://gsap.com/standard-license or for
|
|
2179
|
-
* Club GSAP members, the agreement issued with that membership.
|
|
2180
|
-
* @author: Jack Doyle, jack@greensock.com
|
|
2181
|
-
*/
|
|
2182
|
-
var Rr, Xe, St, dr, ot, Fr, hr, xa = function() {
|
|
2183
|
-
return typeof window < "u";
|
|
2184
|
-
}, Ue = {}, st = 180 / Math.PI, kt = Math.PI / 180, gt = Math.atan2, Br = 1e8, _r = /([A-Z])/g, ba = /(left|right|width|margin|padding|x)/i, wa = /[\s,\(]\S/, Re = {
|
|
2185
|
-
autoAlpha: "opacity,visibility",
|
|
2186
|
-
scale: "scaleX,scaleY",
|
|
2187
|
-
alpha: "opacity"
|
|
2188
|
-
}, qn = function(e, t) {
|
|
2189
|
-
return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
|
|
2190
|
-
}, Ta = function(e, t) {
|
|
2191
|
-
return t.set(t.t, t.p, e === 1 ? t.e : Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u, t);
|
|
2192
|
-
}, Sa = function(e, t) {
|
|
2193
|
-
return t.set(t.t, t.p, e ? Math.round((t.s + t.c * e) * 1e4) / 1e4 + t.u : t.b, t);
|
|
2194
|
-
}, ka = function(e, t) {
|
|
2195
|
-
var n = t.s + t.c * e;
|
|
2196
|
-
t.set(t.t, t.p, ~~(n + (n < 0 ? -0.5 : 0.5)) + t.u, t);
|
|
2197
|
-
}, Vi = function(e, t) {
|
|
2198
|
-
return t.set(t.t, t.p, e ? t.e : t.b, t);
|
|
2199
|
-
}, Ui = function(e, t) {
|
|
2200
|
-
return t.set(t.t, t.p, e !== 1 ? t.b : t.e, t);
|
|
2201
|
-
}, Ca = function(e, t, n) {
|
|
2202
|
-
return e.style[t] = n;
|
|
2203
|
-
}, Da = function(e, t, n) {
|
|
2204
|
-
return e.style.setProperty(t, n);
|
|
2205
|
-
}, Ea = function(e, t, n) {
|
|
2206
|
-
return e._gsap[t] = n;
|
|
2207
|
-
}, Pa = function(e, t, n) {
|
|
2208
|
-
return e._gsap.scaleX = e._gsap.scaleY = n;
|
|
2209
|
-
}, Oa = function(e, t, n, r, i) {
|
|
2210
|
-
var s = e._gsap;
|
|
2211
|
-
s.scaleX = s.scaleY = n, s.renderTransform(i, s);
|
|
2212
|
-
}, Aa = function(e, t, n, r, i) {
|
|
2213
|
-
var s = e._gsap;
|
|
2214
|
-
s[t] = n, s.renderTransform(i, s);
|
|
2215
|
-
}, q = "transform", pe = q + "Origin", Ia = function a(e, t) {
|
|
2216
|
-
var n = this, r = this.target, i = r.style, s = r._gsap;
|
|
2217
|
-
if (e in Ue && i) {
|
|
2218
|
-
if (this.tfm = this.tfm || {}, e !== "transform")
|
|
2219
|
-
e = Re[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(o) {
|
|
2220
|
-
return n.tfm[o] = Le(r, o);
|
|
2221
|
-
}) : this.tfm[e] = s.x ? s[e] : Le(r, e), e === pe && (this.tfm.zOrigin = s.zOrigin);
|
|
2222
|
-
else
|
|
2223
|
-
return Re.transform.split(",").forEach(function(o) {
|
|
2224
|
-
return a.call(n, o, t);
|
|
2225
|
-
});
|
|
2226
|
-
if (this.props.indexOf(q) >= 0)
|
|
2227
|
-
return;
|
|
2228
|
-
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(pe, t, "")), e = q;
|
|
2229
|
-
}
|
|
2230
|
-
(i || t) && this.props.push(e, t, i[e]);
|
|
2231
|
-
}, Gi = function(e) {
|
|
2232
|
-
e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
|
|
2233
|
-
}, Ma = function() {
|
|
2234
|
-
var e = this.props, t = this.target, n = t.style, r = t._gsap, i, s;
|
|
2235
|
-
for (i = 0; i < e.length; i += 3)
|
|
2236
|
-
e[i + 1] ? 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(_r, "-$1").toLowerCase());
|
|
2237
|
-
if (this.tfm) {
|
|
2238
|
-
for (s in this.tfm)
|
|
2239
|
-
r[s] = this.tfm[s];
|
|
2240
|
-
r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), i = hr(), (!i || !i.isStart) && !n[q] && (Gi(n), r.zOrigin && n[pe] && (n[pe] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
2241
|
-
}
|
|
2242
|
-
}, Hi = function(e, t) {
|
|
2243
|
-
var n = {
|
|
2244
|
-
target: e,
|
|
2245
|
-
props: [],
|
|
2246
|
-
revert: Ma,
|
|
2247
|
-
save: Ia
|
|
2248
|
-
};
|
|
2249
|
-
return e._gsap || me.core.getCache(e), t && t.split(",").forEach(function(r) {
|
|
2250
|
-
return n.save(r);
|
|
2251
|
-
}), n;
|
|
2252
|
-
}, Wi, Kn = function(e, t) {
|
|
2253
|
-
var n = Xe.createElementNS ? Xe.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Xe.createElement(e);
|
|
2254
|
-
return n && n.style ? n : Xe.createElement(e);
|
|
2255
|
-
}, Fe = function a(e, t, n) {
|
|
2256
|
-
var r = getComputedStyle(e);
|
|
2257
|
-
return r[t] || r.getPropertyValue(t.replace(_r, "-$1").toLowerCase()) || r.getPropertyValue(t) || !n && a(e, At(t) || t, 1) || "";
|
|
2258
|
-
}, $r = "O,Moz,ms,Ms,Webkit".split(","), At = function(e, t, n) {
|
|
2259
|
-
var r = t || ot, i = r.style, s = 5;
|
|
2260
|
-
if (e in i && !n)
|
|
2261
|
-
return e;
|
|
2262
|
-
for (e = e.charAt(0).toUpperCase() + e.substr(1); s-- && !($r[s] + e in i); )
|
|
2263
|
-
;
|
|
2264
|
-
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? $r[s] : "") + e;
|
|
2265
|
-
}, jn = function() {
|
|
2266
|
-
xa() && window.document && (Rr = window, Xe = Rr.document, St = Xe.documentElement, ot = Kn("div") || {
|
|
2267
|
-
style: {}
|
|
2268
|
-
}, Kn("div"), q = At(q), pe = q + "Origin", ot.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Wi = !!At("perspective"), hr = me.core.reverting, dr = 1);
|
|
2269
|
-
}, On = function a(e) {
|
|
2270
|
-
var t = Kn("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = this.parentNode, r = this.nextSibling, i = this.style.cssText, s;
|
|
2271
|
-
if (St.appendChild(t), t.appendChild(this), this.style.display = "block", e)
|
|
2272
|
-
try {
|
|
2273
|
-
s = this.getBBox(), this._gsapBBox = this.getBBox, this.getBBox = a;
|
|
2274
|
-
} catch {
|
|
2275
|
-
}
|
|
2276
|
-
else this._gsapBBox && (s = this._gsapBBox());
|
|
2277
|
-
return n && (r ? n.insertBefore(this, r) : n.appendChild(this)), St.removeChild(t), this.style.cssText = i, s;
|
|
2278
|
-
}, zr = function(e, t) {
|
|
2279
|
-
for (var n = t.length; n--; )
|
|
2280
|
-
if (e.hasAttribute(t[n]))
|
|
2281
|
-
return e.getAttribute(t[n]);
|
|
2282
|
-
}, Yi = function(e) {
|
|
2283
|
-
var t;
|
|
2284
|
-
try {
|
|
2285
|
-
t = e.getBBox();
|
|
2286
|
-
} catch {
|
|
2287
|
-
t = On.call(e, !0);
|
|
2288
|
-
}
|
|
2289
|
-
return t && (t.width || t.height) || e.getBBox === On || (t = On.call(e, !0)), t && !t.width && !t.x && !t.y ? {
|
|
2290
|
-
x: +zr(e, ["x", "cx", "x1"]) || 0,
|
|
2291
|
-
y: +zr(e, ["y", "cy", "y1"]) || 0,
|
|
2292
|
-
width: 0,
|
|
2293
|
-
height: 0
|
|
2294
|
-
} : t;
|
|
2295
|
-
}, Xi = function(e) {
|
|
2296
|
-
return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Yi(e));
|
|
2297
|
-
}, dt = function(e, t) {
|
|
2298
|
-
if (t) {
|
|
2299
|
-
var n = e.style, r;
|
|
2300
|
-
t in Ue && t !== pe && (t = q), n.removeProperty ? (r = t.substr(0, 2), (r === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), n.removeProperty(r === "--" ? t : t.replace(_r, "-$1").toLowerCase())) : n.removeAttribute(t);
|
|
2301
|
-
}
|
|
2302
|
-
}, qe = function(e, t, n, r, i, s) {
|
|
2303
|
-
var o = new _e(e._pt, t, n, 0, 1, s ? Ui : Vi);
|
|
2304
|
-
return e._pt = o, o.b = r, o.e = i, e._props.push(n), o;
|
|
2305
|
-
}, Lr = {
|
|
2306
|
-
deg: 1,
|
|
2307
|
-
rad: 1,
|
|
2308
|
-
turn: 1
|
|
2309
|
-
}, Ra = {
|
|
2310
|
-
grid: 1,
|
|
2311
|
-
flex: 1
|
|
2312
|
-
}, Je = function a(e, t, n, r) {
|
|
2313
|
-
var i = parseFloat(n) || 0, s = (n + "").trim().substr((i + "").length) || "px", o = ot.style, l = ba.test(t), u = e.tagName.toLowerCase() === "svg", c = (u ? "client" : "offset") + (l ? "Width" : "Height"), d = 100, h = r === "px", _ = r === "%", m, f, p, g;
|
|
2314
|
-
if (r === s || !i || Lr[r] || Lr[s])
|
|
2315
|
-
return i;
|
|
2316
|
-
if (s !== "px" && !h && (i = a(e, t, n, "px")), g = e.getCTM && Xi(e), (_ || s === "%") && (Ue[t] || ~t.indexOf("adius")))
|
|
2317
|
-
return m = g ? e.getBBox()[l ? "width" : "height"] : e[c], Z(_ ? i / m * d : i / 100 * m);
|
|
2318
|
-
if (o[l ? "width" : "height"] = d + (h ? s : r), f = ~t.indexOf("adius") || r === "em" && e.appendChild && !u ? e : e.parentNode, g && (f = (e.ownerSVGElement || {}).parentNode), (!f || f === Xe || !f.appendChild) && (f = Xe.body), p = f._gsap, p && _ && p.width && l && p.time === ye.time && !p.uncache)
|
|
2319
|
-
return Z(i / p.width * d);
|
|
2320
|
-
if (_ && (t === "height" || t === "width")) {
|
|
2321
|
-
var v = e.style[t];
|
|
2322
|
-
e.style[t] = d + r, m = e[c], v ? e.style[t] = v : dt(e, t);
|
|
2323
|
-
} else
|
|
2324
|
-
(_ || s === "%") && !Ra[Fe(f, "display")] && (o.position = Fe(e, "position")), f === e && (o.position = "static"), f.appendChild(ot), m = ot[c], f.removeChild(ot), o.position = "absolute";
|
|
2325
|
-
return l && _ && (p = at(f), p.time = ye.time, p.width = f[c]), Z(h ? m * i / d : m && i ? d / m * i : 0);
|
|
2326
|
-
}, Le = function(e, t, n, r) {
|
|
2327
|
-
var i;
|
|
2328
|
-
return dr || jn(), t in Re && t !== "transform" && (t = Re[t], ~t.indexOf(",") && (t = t.split(",")[0])), Ue[t] && t !== "transform" ? (i = qt(e, r), i = t !== "transformOrigin" ? i[t] : i.svg ? i.origin : pn(Fe(e, pe)) + " " + i.zOrigin + "px") : (i = e.style[t], (!i || i === "auto" || r || ~(i + "").indexOf("calc(")) && (i = _n[t] && _n[t](e, t, n) || Fe(e, t) || ui(e, t) || (t === "opacity" ? 1 : 0))), n && !~(i + "").trim().indexOf(" ") ? Je(e, t, i, n) + n : i;
|
|
2329
|
-
}, Fa = function(e, t, n, r) {
|
|
2330
|
-
if (!n || n === "none") {
|
|
2331
|
-
var i = At(t, e, 1), s = i && Fe(e, i, 1);
|
|
2332
|
-
s && s !== n ? (t = i, n = s) : t === "borderColor" && (n = Fe(e, "borderTopColor"));
|
|
2333
|
-
}
|
|
2334
|
-
var o = new _e(this._pt, e.style, t, 0, 1, zi), l = 0, u = 0, c, d, h, _, m, f, p, g, v, S, w, y;
|
|
2335
|
-
if (o.b = n, o.e = r, n += "", r += "", r === "auto" && (f = e.style[t], e.style[t] = r, r = Fe(e, t) || r, f ? e.style[t] = f : dt(e, t)), c = [n, r], Ei(c), n = c[0], r = c[1], h = n.match(yt) || [], y = r.match(yt) || [], y.length) {
|
|
2336
|
-
for (; d = yt.exec(r); )
|
|
2337
|
-
p = d[0], v = r.substring(l, d.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), p !== (f = h[u++] || "") && (_ = parseFloat(f) || 0, w = f.substr((_ + "").length), p.charAt(1) === "=" && (p = Tt(_, p) + w), g = parseFloat(p), S = p.substr((g + "").length), l = yt.lastIndex - S.length, S || (S = S || be.units[t] || w, l === r.length && (r += S, o.e += S)), w !== S && (_ = Je(e, t, f, S) || 0), o._pt = {
|
|
2338
|
-
_next: o._pt,
|
|
2339
|
-
p: v || u === 1 ? v : ",",
|
|
2340
|
-
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
2341
|
-
s: _,
|
|
2342
|
-
c: g - _,
|
|
2343
|
-
m: m && m < 4 || t === "zIndex" ? Math.round : 0
|
|
2344
|
-
});
|
|
2345
|
-
o.c = l < r.length ? r.substring(l, r.length) : "";
|
|
2346
|
-
} else
|
|
2347
|
-
o.r = t === "display" && r === "none" ? Ui : Vi;
|
|
2348
|
-
return ri.test(r) && (o.e = 0), this._pt = o, o;
|
|
2349
|
-
}, Nr = {
|
|
2350
|
-
top: "0%",
|
|
2351
|
-
bottom: "100%",
|
|
2352
|
-
left: "0%",
|
|
2353
|
-
right: "100%",
|
|
2354
|
-
center: "50%"
|
|
2355
|
-
}, Ba = function(e) {
|
|
2356
|
-
var t = e.split(" "), n = t[0], r = t[1] || "50%";
|
|
2357
|
-
return (n === "top" || n === "bottom" || r === "left" || r === "right") && (e = n, n = r, r = e), t[0] = Nr[n] || n, t[1] = Nr[r] || r, t.join(" ");
|
|
2358
|
-
}, $a = function(e, t) {
|
|
2359
|
-
if (t.tween && t.tween._time === t.tween._dur) {
|
|
2360
|
-
var n = t.t, r = n.style, i = t.u, s = n._gsap, o, l, u;
|
|
2361
|
-
if (i === "all" || i === !0)
|
|
2362
|
-
r.cssText = "", l = 1;
|
|
2363
|
-
else
|
|
2364
|
-
for (i = i.split(","), u = i.length; --u > -1; )
|
|
2365
|
-
o = i[u], Ue[o] && (l = 1, o = o === "transformOrigin" ? pe : q), dt(n, o);
|
|
2366
|
-
l && (dt(n, q), s && (s.svg && n.removeAttribute("transform"), qt(n, 1), s.uncache = 1, Gi(r)));
|
|
2367
|
-
}
|
|
2368
|
-
}, _n = {
|
|
2369
|
-
clearProps: function(e, t, n, r, i) {
|
|
2370
|
-
if (i.data !== "isFromStart") {
|
|
2371
|
-
var s = e._pt = new _e(e._pt, t, n, 0, 0, $a);
|
|
2372
|
-
return s.u = r, s.pr = -10, s.tween = i, e._props.push(n), 1;
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
/* className feature (about 0.4kb gzipped).
|
|
2376
|
-
, className(plugin, target, property, endValue, tween) {
|
|
2377
|
-
let _renderClassName = (ratio, data) => {
|
|
2378
|
-
data.css.render(ratio, data.css);
|
|
2379
|
-
if (!ratio || ratio === 1) {
|
|
2380
|
-
let inline = data.rmv,
|
|
2381
|
-
target = data.t,
|
|
2382
|
-
p;
|
|
2383
|
-
target.setAttribute("class", ratio ? data.e : data.b);
|
|
2384
|
-
for (p in inline) {
|
|
2385
|
-
_removeProperty(target, p);
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
},
|
|
2389
|
-
_getAllStyles = (target) => {
|
|
2390
|
-
let styles = {},
|
|
2391
|
-
computed = getComputedStyle(target),
|
|
2392
|
-
p;
|
|
2393
|
-
for (p in computed) {
|
|
2394
|
-
if (isNaN(p) && p !== "cssText" && p !== "length") {
|
|
2395
|
-
styles[p] = computed[p];
|
|
2396
|
-
}
|
|
2397
|
-
}
|
|
2398
|
-
_setDefaults(styles, _parseTransform(target, 1));
|
|
2399
|
-
return styles;
|
|
2400
|
-
},
|
|
2401
|
-
startClassList = target.getAttribute("class"),
|
|
2402
|
-
style = target.style,
|
|
2403
|
-
cssText = style.cssText,
|
|
2404
|
-
cache = target._gsap,
|
|
2405
|
-
classPT = cache.classPT,
|
|
2406
|
-
inlineToRemoveAtEnd = {},
|
|
2407
|
-
data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
|
|
2408
|
-
changingVars = {},
|
|
2409
|
-
startVars = _getAllStyles(target),
|
|
2410
|
-
transformRelated = /(transform|perspective)/i,
|
|
2411
|
-
endVars, p;
|
|
2412
|
-
if (classPT) {
|
|
2413
|
-
classPT.r(1, classPT.d);
|
|
2414
|
-
_removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
|
|
2415
|
-
}
|
|
2416
|
-
target.setAttribute("class", data.e);
|
|
2417
|
-
endVars = _getAllStyles(target, true);
|
|
2418
|
-
target.setAttribute("class", startClassList);
|
|
2419
|
-
for (p in endVars) {
|
|
2420
|
-
if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
|
|
2421
|
-
changingVars[p] = endVars[p];
|
|
2422
|
-
if (!style[p] && style[p] !== "0") {
|
|
2423
|
-
inlineToRemoveAtEnd[p] = 1;
|
|
2424
|
-
}
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
|
|
2428
|
-
if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
|
|
2429
|
-
style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
|
|
2430
|
-
}
|
|
2431
|
-
_parseTransform(target, true); //to clear the caching of transforms
|
|
2432
|
-
data.css = new gsap.plugins.css();
|
|
2433
|
-
data.css.init(target, changingVars, tween);
|
|
2434
|
-
plugin._props.push(...data.css._props);
|
|
2435
|
-
return 1;
|
|
2436
|
-
}
|
|
2437
|
-
*/
|
|
2438
|
-
}, Xt = [1, 0, 0, 1, 0, 0], qi = {}, Ki = function(e) {
|
|
2439
|
-
return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
|
|
2440
|
-
}, Vr = function(e) {
|
|
2441
|
-
var t = Fe(e, q);
|
|
2442
|
-
return Ki(t) ? Xt : t.substr(7).match(ni).map(Z);
|
|
2443
|
-
}, pr = function(e, t) {
|
|
2444
|
-
var n = e._gsap || at(e), r = e.style, i = Vr(e), s, o, l, u;
|
|
2445
|
-
return n.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, i = [l.a, l.b, l.c, l.d, l.e, l.f], i.join(",") === "1,0,0,1,0,0" ? Xt : i) : (i === Xt && !e.offsetParent && e !== St && !n.svg && (l = r.display, r.display = "block", s = e.parentNode, (!s || !e.offsetParent) && (u = 1, o = e.nextElementSibling, St.appendChild(e)), i = Vr(e), l ? r.display = l : dt(e, "display"), u && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : St.removeChild(e))), t && i.length > 6 ? [i[0], i[1], i[4], i[5], i[12], i[13]] : i);
|
|
2446
|
-
}, Zn = function(e, t, n, r, i, s) {
|
|
2447
|
-
var o = e._gsap, l = i || pr(e, !0), u = o.xOrigin || 0, c = o.yOrigin || 0, d = o.xOffset || 0, h = o.yOffset || 0, _ = l[0], m = l[1], f = l[2], p = l[3], g = l[4], v = l[5], S = t.split(" "), w = parseFloat(S[0]) || 0, y = parseFloat(S[1]) || 0, b, x, k, T;
|
|
2448
|
-
n ? l !== Xt && (x = _ * p - m * f) && (k = w * (p / x) + y * (-f / x) + (f * v - p * g) / x, T = w * (-m / x) + y * (_ / x) - (_ * v - m * g) / x, w = k, y = T) : (b = Yi(e), w = b.x + (~S[0].indexOf("%") ? w / 100 * b.width : w), y = b.y + (~(S[1] || S[0]).indexOf("%") ? y / 100 * b.height : y)), r || r !== !1 && o.smooth ? (g = w - u, v = y - c, o.xOffset = d + (g * _ + v * f) - g, o.yOffset = h + (g * m + v * p) - v) : o.xOffset = o.yOffset = 0, o.xOrigin = w, o.yOrigin = y, o.smooth = !!r, o.origin = t, o.originIsAbsolute = !!n, e.style[pe] = "0px 0px", s && (qe(s, o, "xOrigin", u, w), qe(s, o, "yOrigin", c, y), qe(s, o, "xOffset", d, o.xOffset), qe(s, o, "yOffset", h, o.yOffset)), e.setAttribute("data-svg-origin", w + " " + y);
|
|
2449
|
-
}, qt = function(e, t) {
|
|
2450
|
-
var n = e._gsap || new Ii(e);
|
|
2451
|
-
if ("x" in n && !t && !n.uncache)
|
|
2452
|
-
return n;
|
|
2453
|
-
var r = e.style, i = n.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), u = Fe(e, pe) || "0", c, d, h, _, m, f, p, g, v, S, w, y, b, x, k, T, I, L, D, P, $, N, K, Q, ge, tt, Ge, nt, Pe, It, De, Oe;
|
|
2454
|
-
return c = d = h = f = p = g = v = S = w = 0, _ = m = 1, n.svg = !!(e.getCTM && Xi(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[q] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[q] !== "none" ? l[q] : "")), r.scale = r.rotate = r.translate = "none"), x = pr(e, n.svg), n.svg && (n.uncache ? (ge = e.getBBox(), u = n.xOrigin - ge.x + "px " + (n.yOrigin - ge.y) + "px", Q = "") : Q = !t && e.getAttribute("data-svg-origin"), Zn(e, Q || u, !!Q || n.originIsAbsolute, n.smooth !== !1, x)), y = n.xOrigin || 0, b = n.yOrigin || 0, x !== Xt && (L = x[0], D = x[1], P = x[2], $ = x[3], c = N = x[4], d = K = x[5], x.length === 6 ? (_ = Math.sqrt(L * L + D * D), m = Math.sqrt($ * $ + P * P), f = L || D ? gt(D, L) * st : 0, v = P || $ ? gt(P, $) * st + f : 0, v && (m *= Math.abs(Math.cos(v * kt))), n.svg && (c -= y - (y * L + b * P), d -= b - (y * D + b * $))) : (Oe = x[6], It = x[7], Ge = x[8], nt = x[9], Pe = x[10], De = x[11], c = x[12], d = x[13], h = x[14], k = gt(Oe, Pe), p = k * st, k && (T = Math.cos(-k), I = Math.sin(-k), Q = N * T + Ge * I, ge = K * T + nt * I, tt = Oe * T + Pe * I, Ge = N * -I + Ge * T, nt = K * -I + nt * T, Pe = Oe * -I + Pe * T, De = It * -I + De * T, N = Q, K = ge, Oe = tt), k = gt(-P, Pe), g = k * st, k && (T = Math.cos(-k), I = Math.sin(-k), Q = L * T - Ge * I, ge = D * T - nt * I, tt = P * T - Pe * I, De = $ * I + De * T, L = Q, D = ge, P = tt), k = gt(D, L), f = k * st, k && (T = Math.cos(k), I = Math.sin(k), Q = L * T + D * I, ge = N * T + K * I, D = D * T - L * I, K = K * T - N * I, L = Q, N = ge), p && Math.abs(p) + Math.abs(f) > 359.9 && (p = f = 0, g = 180 - g), _ = Z(Math.sqrt(L * L + D * D + P * P)), m = Z(Math.sqrt(K * K + Oe * Oe)), k = gt(N, K), v = Math.abs(k) > 2e-4 ? k * st : 0, w = De ? 1 / (De < 0 ? -De : De) : 0), n.svg && (Q = e.getAttribute("transform"), n.forceCSS = e.setAttribute("transform", "") || !Ki(Fe(e, q)), Q && e.setAttribute("transform", Q))), Math.abs(v) > 90 && Math.abs(v) < 270 && (i ? (_ *= -1, v += f <= 0 ? 180 : -180, f += f <= 0 ? 180 : -180) : (m *= -1, v += v <= 0 ? 180 : -180)), t = t || n.uncache, n.x = c - ((n.xPercent = c && (!t && n.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-c) ? -50 : 0))) ? e.offsetWidth * n.xPercent / 100 : 0) + s, n.y = d - ((n.yPercent = d && (!t && n.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-d) ? -50 : 0))) ? e.offsetHeight * n.yPercent / 100 : 0) + s, n.z = h + s, n.scaleX = Z(_), n.scaleY = Z(m), n.rotation = Z(f) + o, n.rotationX = Z(p) + o, n.rotationY = Z(g) + o, n.skewX = v + o, n.skewY = S + o, n.transformPerspective = w + s, (n.zOrigin = parseFloat(u.split(" ")[2]) || !t && n.zOrigin || 0) && (r[pe] = pn(u)), n.xOffset = n.yOffset = 0, n.force3D = be.force3D, n.renderTransform = n.svg ? La : Wi ? ji : za, n.uncache = 0, n;
|
|
2455
|
-
}, pn = function(e) {
|
|
2456
|
-
return (e = e.split(" "))[0] + " " + e[1];
|
|
2457
|
-
}, An = function(e, t, n) {
|
|
2458
|
-
var r = ie(t);
|
|
2459
|
-
return Z(parseFloat(t) + parseFloat(Je(e, "x", n + "px", r))) + r;
|
|
2460
|
-
}, za = function(e, t) {
|
|
2461
|
-
t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, ji(e, t);
|
|
2462
|
-
}, rt = "0deg", Ft = "0px", it = ") ", ji = function(e, t) {
|
|
2463
|
-
var n = t || this, r = n.xPercent, i = n.yPercent, s = n.x, o = n.y, l = n.z, u = n.rotation, c = n.rotationY, d = n.rotationX, h = n.skewX, _ = n.skewY, m = n.scaleX, f = n.scaleY, p = n.transformPerspective, g = n.force3D, v = n.target, S = n.zOrigin, w = "", y = g === "auto" && e && e !== 1 || g === !0;
|
|
2464
|
-
if (S && (d !== rt || c !== rt)) {
|
|
2465
|
-
var b = parseFloat(c) * kt, x = Math.sin(b), k = Math.cos(b), T;
|
|
2466
|
-
b = parseFloat(d) * kt, T = Math.cos(b), s = An(v, s, x * T * -S), o = An(v, o, -Math.sin(b) * -S), l = An(v, l, k * T * -S + S);
|
|
2467
|
-
}
|
|
2468
|
-
p !== Ft && (w += "perspective(" + p + it), (r || i) && (w += "translate(" + r + "%, " + i + "%) "), (y || s !== Ft || o !== Ft || l !== Ft) && (w += l !== Ft || y ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + it), u !== rt && (w += "rotate(" + u + it), c !== rt && (w += "rotateY(" + c + it), d !== rt && (w += "rotateX(" + d + it), (h !== rt || _ !== rt) && (w += "skew(" + h + ", " + _ + it), (m !== 1 || f !== 1) && (w += "scale(" + m + ", " + f + it), v.style[q] = w || "translate(0, 0)";
|
|
2469
|
-
}, La = function(e, t) {
|
|
2470
|
-
var n = t || this, r = n.xPercent, i = n.yPercent, s = n.x, o = n.y, l = n.rotation, u = n.skewX, c = n.skewY, d = n.scaleX, h = n.scaleY, _ = n.target, m = n.xOrigin, f = n.yOrigin, p = n.xOffset, g = n.yOffset, v = n.forceCSS, S = parseFloat(s), w = parseFloat(o), y, b, x, k, T;
|
|
2471
|
-
l = parseFloat(l), u = parseFloat(u), c = parseFloat(c), c && (c = parseFloat(c), u += c, l += c), l || u ? (l *= kt, u *= kt, y = Math.cos(l) * d, b = Math.sin(l) * d, x = Math.sin(l - u) * -h, k = Math.cos(l - u) * h, u && (c *= kt, T = Math.tan(u - c), T = Math.sqrt(1 + T * T), x *= T, k *= T, c && (T = Math.tan(c), T = Math.sqrt(1 + T * T), y *= T, b *= T)), y = Z(y), b = Z(b), x = Z(x), k = Z(k)) : (y = d, k = h, b = x = 0), (S && !~(s + "").indexOf("px") || w && !~(o + "").indexOf("px")) && (S = Je(_, "x", s, "px"), w = Je(_, "y", o, "px")), (m || f || p || g) && (S = Z(S + m - (m * y + f * x) + p), w = Z(w + f - (m * b + f * k) + g)), (r || i) && (T = _.getBBox(), S = Z(S + r / 100 * T.width), w = Z(w + i / 100 * T.height)), T = "matrix(" + y + "," + b + "," + x + "," + k + "," + S + "," + w + ")", _.setAttribute("transform", T), v && (_.style[q] = T);
|
|
2472
|
-
}, Na = function(e, t, n, r, i) {
|
|
2473
|
-
var s = 360, o = ne(i), l = parseFloat(i) * (o && ~i.indexOf("rad") ? st : 1), u = l - r, c = r + u + "deg", d, h;
|
|
2474
|
-
return o && (d = i.split("_")[1], d === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), d === "cw" && u < 0 ? u = (u + s * Br) % s - ~~(u / s) * s : d === "ccw" && u > 0 && (u = (u - s * Br) % s - ~~(u / s) * s)), e._pt = h = new _e(e._pt, t, n, r, u, Ta), h.e = c, h.u = "deg", e._props.push(n), h;
|
|
2475
|
-
}, Ur = function(e, t) {
|
|
2476
|
-
for (var n in t)
|
|
2477
|
-
e[n] = t[n];
|
|
2478
|
-
return e;
|
|
2479
|
-
}, Va = function(e, t, n) {
|
|
2480
|
-
var r = Ur({}, n._gsap), i = "perspective,force3D,transformOrigin,svgOrigin", s = n.style, o, l, u, c, d, h, _, m;
|
|
2481
|
-
r.svg ? (u = n.getAttribute("transform"), n.setAttribute("transform", ""), s[q] = t, o = qt(n, 1), dt(n, q), n.setAttribute("transform", u)) : (u = getComputedStyle(n)[q], s[q] = t, o = qt(n, 1), s[q] = u);
|
|
2482
|
-
for (l in Ue)
|
|
2483
|
-
u = r[l], c = o[l], u !== c && i.indexOf(l) < 0 && (_ = ie(u), m = ie(c), d = _ !== m ? Je(n, l, u, m) : parseFloat(u), h = parseFloat(c), e._pt = new _e(e._pt, o, l, d, h - d, qn), e._pt.u = m || 0, e._props.push(l));
|
|
2484
|
-
Ur(o, r);
|
|
2485
|
-
};
|
|
2486
|
-
he("padding,margin,Width,Radius", function(a, e) {
|
|
2487
|
-
var t = "Top", n = "Right", r = "Bottom", i = "Left", s = (e < 3 ? [t, n, r, i] : [t + i, t + n, r + n, r + i]).map(function(o) {
|
|
2488
|
-
return e < 2 ? a + o : "border" + o + a;
|
|
2489
|
-
});
|
|
2490
|
-
_n[e > 1 ? "border" + a : a] = function(o, l, u, c, d) {
|
|
2491
|
-
var h, _;
|
|
2492
|
-
if (arguments.length < 4)
|
|
2493
|
-
return h = s.map(function(m) {
|
|
2494
|
-
return Le(o, m, u);
|
|
2495
|
-
}), _ = h.join(" "), _.split(h[0]).length === 5 ? h[0] : _;
|
|
2496
|
-
h = (c + "").split(" "), _ = {}, s.forEach(function(m, f) {
|
|
2497
|
-
return _[m] = h[f] = h[f] || h[(f - 1) / 2 | 0];
|
|
2498
|
-
}), o.init(l, _, d);
|
|
2499
|
-
};
|
|
2500
|
-
});
|
|
2501
|
-
var Zi = {
|
|
2502
|
-
name: "css",
|
|
2503
|
-
register: jn,
|
|
2504
|
-
targetTest: function(e) {
|
|
2505
|
-
return e.style && e.nodeType;
|
|
2506
|
-
},
|
|
2507
|
-
init: function(e, t, n, r, i) {
|
|
2508
|
-
var s = this._props, o = e.style, l = n.vars.startAt, u, c, d, h, _, m, f, p, g, v, S, w, y, b, x, k;
|
|
2509
|
-
dr || jn(), this.styles = this.styles || Hi(e), k = this.styles.props, this.tween = n;
|
|
2510
|
-
for (f in t)
|
|
2511
|
-
if (f !== "autoRound" && (c = t[f], !(ve[f] && Mi(f, t, n, r, e, i)))) {
|
|
2512
|
-
if (_ = typeof c, m = _n[f], _ === "function" && (c = c.call(n, r, e, i), _ = typeof c), _ === "string" && ~c.indexOf("random(") && (c = Ht(c)), m)
|
|
2513
|
-
m(this, e, f, c, n) && (x = 1);
|
|
2514
|
-
else if (f.substr(0, 2) === "--")
|
|
2515
|
-
u = (getComputedStyle(e).getPropertyValue(f) + "").trim(), c += "", Ze.lastIndex = 0, Ze.test(u) || (p = ie(u), g = ie(c)), g ? p !== g && (u = Je(e, f, u, g) + g) : p && (c += p), this.add(o, "setProperty", u, c, r, i, 0, 0, f), s.push(f), k.push(f, 0, o[f]);
|
|
2516
|
-
else if (_ !== "undefined") {
|
|
2517
|
-
if (l && f in l ? (u = typeof l[f] == "function" ? l[f].call(n, r, e, i) : l[f], ne(u) && ~u.indexOf("random(") && (u = Ht(u)), ie(u + "") || u === "auto" || (u += be.units[f] || ie(Le(e, f)) || ""), (u + "").charAt(1) === "=" && (u = Le(e, f))) : u = Le(e, f), h = parseFloat(u), v = _ === "string" && c.charAt(1) === "=" && c.substr(0, 2), v && (c = c.substr(2)), d = parseFloat(c), f in Re && (f === "autoAlpha" && (h === 1 && Le(e, "visibility") === "hidden" && d && (h = 0), k.push("visibility", 0, o.visibility), qe(this, o, "visibility", h ? "inherit" : "hidden", d ? "inherit" : "hidden", !d)), f !== "scale" && f !== "transform" && (f = Re[f], ~f.indexOf(",") && (f = f.split(",")[0]))), S = f in Ue, S) {
|
|
2518
|
-
if (this.styles.save(f), w || (y = e._gsap, y.renderTransform && !t.parseTransform || qt(e, t.parseTransform), b = t.smoothOrigin !== !1 && y.smooth, w = this._pt = new _e(this._pt, o, q, 0, 1, y.renderTransform, y, 0, -1), w.dep = 1), f === "scale")
|
|
2519
|
-
this._pt = new _e(this._pt, y, "scaleY", y.scaleY, (v ? Tt(y.scaleY, v + d) : d) - y.scaleY || 0, qn), this._pt.u = 0, s.push("scaleY", f), f += "X";
|
|
2520
|
-
else if (f === "transformOrigin") {
|
|
2521
|
-
k.push(pe, 0, o[pe]), c = Ba(c), y.svg ? Zn(e, c, 0, b, 0, this) : (g = parseFloat(c.split(" ")[2]) || 0, g !== y.zOrigin && qe(this, y, "zOrigin", y.zOrigin, g), qe(this, o, f, pn(u), pn(c)));
|
|
2522
|
-
continue;
|
|
2523
|
-
} else if (f === "svgOrigin") {
|
|
2524
|
-
Zn(e, c, 1, b, 0, this);
|
|
2525
|
-
continue;
|
|
2526
|
-
} else if (f in qi) {
|
|
2527
|
-
Na(this, y, f, h, v ? Tt(h, v + c) : c);
|
|
2528
|
-
continue;
|
|
2529
|
-
} else if (f === "smoothOrigin") {
|
|
2530
|
-
qe(this, y, "smooth", y.smooth, c);
|
|
2531
|
-
continue;
|
|
2532
|
-
} else if (f === "force3D") {
|
|
2533
|
-
y[f] = c;
|
|
2534
|
-
continue;
|
|
2535
|
-
} else if (f === "transform") {
|
|
2536
|
-
Va(this, c, e);
|
|
2537
|
-
continue;
|
|
2538
|
-
}
|
|
2539
|
-
} else f in o || (f = At(f) || f);
|
|
2540
|
-
if (S || (d || d === 0) && (h || h === 0) && !wa.test(c) && f in o)
|
|
2541
|
-
p = (u + "").substr((h + "").length), d || (d = 0), g = ie(c) || (f in be.units ? be.units[f] : p), p !== g && (h = Je(e, f, u, g)), this._pt = new _e(this._pt, S ? y : o, f, h, (v ? Tt(h, v + d) : d) - h, !S && (g === "px" || f === "zIndex") && t.autoRound !== !1 ? ka : qn), this._pt.u = g || 0, p !== g && g !== "%" && (this._pt.b = u, this._pt.r = Sa);
|
|
2542
|
-
else if (f in o)
|
|
2543
|
-
Fa.call(this, e, f, u, v ? v + c : c);
|
|
2544
|
-
else if (f in e)
|
|
2545
|
-
this.add(e, f, u || e[f], v ? v + c : c, r, i);
|
|
2546
|
-
else if (f !== "parseTransform") {
|
|
2547
|
-
rr(f, c);
|
|
2548
|
-
continue;
|
|
2549
|
-
}
|
|
2550
|
-
S || (f in o ? k.push(f, 0, o[f]) : k.push(f, 1, u || e[f])), s.push(f);
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
x && Li(this);
|
|
2554
|
-
},
|
|
2555
|
-
render: function(e, t) {
|
|
2556
|
-
if (t.tween._time || !hr())
|
|
2557
|
-
for (var n = t._pt; n; )
|
|
2558
|
-
n.r(e, n.d), n = n._next;
|
|
2559
|
-
else
|
|
2560
|
-
t.styles.revert();
|
|
2561
|
-
},
|
|
2562
|
-
get: Le,
|
|
2563
|
-
aliases: Re,
|
|
2564
|
-
getSetter: function(e, t, n) {
|
|
2565
|
-
var r = Re[t];
|
|
2566
|
-
return r && r.indexOf(",") < 0 && (t = r), t in Ue && t !== pe && (e._gsap.x || Le(e, "x")) ? n && Fr === n ? t === "scale" ? Pa : Ea : (Fr = n || {}) && (t === "scale" ? Oa : Aa) : e.style && !er(e.style[t]) ? Ca : ~t.indexOf("-") ? Da : cr(e, t);
|
|
2567
|
-
},
|
|
2568
|
-
core: {
|
|
2569
|
-
_removeProperty: dt,
|
|
2570
|
-
_getMatrix: pr
|
|
2571
|
-
}
|
|
2572
|
-
};
|
|
2573
|
-
me.utils.checkPrefix = At;
|
|
2574
|
-
me.core.getStyleSaver = Hi;
|
|
2575
|
-
(function(a, e, t, n) {
|
|
2576
|
-
var r = he(a + "," + e + "," + t, function(i) {
|
|
2577
|
-
Ue[i] = 1;
|
|
2578
|
-
});
|
|
2579
|
-
he(e, function(i) {
|
|
2580
|
-
be.units[i] = "deg", qi[i] = 1;
|
|
2581
|
-
}), Re[r[13]] = a + "," + e, he(n, function(i) {
|
|
2582
|
-
var s = i.split(":");
|
|
2583
|
-
Re[s[1]] = r[s[0]];
|
|
2584
|
-
});
|
|
2585
|
-
})("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");
|
|
2586
|
-
he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(a) {
|
|
2587
|
-
be.units[a] = "px";
|
|
2588
|
-
});
|
|
2589
|
-
me.registerPlugin(Zi);
|
|
2590
|
-
var bt = me.registerPlugin(Zi) || me;
|
|
2591
|
-
bt.core.Tween;
|
|
2592
|
-
const mn = {
|
|
2593
|
-
dragGhostContainer: {
|
|
2594
|
-
background: Gs,
|
|
2595
|
-
font: Zr
|
|
2596
|
-
},
|
|
2597
|
-
dragGhostBadge: {
|
|
2598
|
-
background: Vs,
|
|
2599
|
-
font: Us
|
|
2600
|
-
}
|
|
2601
|
-
}, Qi = (a, e) => {
|
|
2602
|
-
Object.entries(e).forEach(([t, n]) => {
|
|
2603
|
-
a.style[t] = n;
|
|
2604
|
-
});
|
|
2605
|
-
}, Ua = (a) => {
|
|
2606
|
-
const e = document.createElement("div"), t = 99;
|
|
2607
|
-
e.innerText = a <= t ? a.toString() : "99+", e.id = "drag-ghost-badge";
|
|
2608
|
-
const n = {
|
|
2609
|
-
background: mn.dragGhostBadge.background,
|
|
2610
|
-
color: mn.dragGhostBadge.font,
|
|
2611
|
-
fontSize: "13px",
|
|
2612
|
-
lineHeight: "11px",
|
|
2613
|
-
position: "absolute",
|
|
2614
|
-
display: "flex",
|
|
2615
|
-
justifyContent: "center",
|
|
2616
|
-
alignItems: "center",
|
|
2617
|
-
right: "-10px",
|
|
2618
|
-
top: "-10px",
|
|
2619
|
-
borderRadius: "50%",
|
|
2620
|
-
width: "30px",
|
|
2621
|
-
height: "30px",
|
|
2622
|
-
padding: "5px",
|
|
2623
|
-
pointerEvents: "none"
|
|
2624
|
-
};
|
|
2625
|
-
return Qi(e, n), e;
|
|
2626
|
-
}, Ga = (a) => {
|
|
2627
|
-
const e = a.querySelector("svg");
|
|
2628
|
-
if (!e)
|
|
2629
|
-
return null;
|
|
2630
|
-
const t = e.cloneNode(!0);
|
|
2631
|
-
return t.style.width = "20px", t.style.height = "20px", t.style.marginRight = "10px", t.style.stroke = Zr, t;
|
|
2632
|
-
}, mr = (a) => ({
|
|
2633
|
-
x: a.x + document.documentElement.scrollLeft,
|
|
2634
|
-
y: a.y + document.documentElement.scrollTop
|
|
2635
|
-
}), Gr = ({
|
|
2636
|
-
textContent: a,
|
|
2637
|
-
target: e,
|
|
2638
|
-
badgeCount: t,
|
|
2639
|
-
addShadow: n = !1
|
|
2640
|
-
}) => {
|
|
2641
|
-
const i = document.createElement("div");
|
|
2642
|
-
i.innerText = a.length > 15 ? `${a.slice(0, 15)}…` : a, i.setAttribute("data-id", "drag-ghost");
|
|
2643
|
-
const s = getComputedStyle(e).getPropertyValue("font-size"), { x: o, y: l, width: u, height: c } = e.getBoundingClientRect(), d = mr({ x: o, y: l }), h = {
|
|
2644
|
-
background: mn.dragGhostContainer.background,
|
|
2645
|
-
color: mn.dragGhostContainer.font,
|
|
2646
|
-
// use the original target's position to initialize the ghost
|
|
2647
|
-
position: "absolute",
|
|
2648
|
-
top: `${d.y}px`,
|
|
2649
|
-
left: `${d.x}px`,
|
|
2650
|
-
width: `${u}px`,
|
|
2651
|
-
height: `${c}px`,
|
|
2652
|
-
zIndex: "9",
|
|
2653
|
-
// make sure the ghost doesn't interfere with the drag
|
|
2654
|
-
pointerEvents: "none",
|
|
2655
|
-
fontSize: s,
|
|
2656
|
-
display: "flex",
|
|
2657
|
-
justifyContent: "flex-start",
|
|
2658
|
-
alignItems: "center",
|
|
2659
|
-
padding: "0 12px",
|
|
2660
|
-
borderRadius: "4px",
|
|
2661
|
-
opacity: "1",
|
|
2662
|
-
boxShadow: n ? "0px 2px 10px rgba(130, 133, 134, 0.4)" : "initial"
|
|
2663
|
-
};
|
|
2664
|
-
Qi(i, h);
|
|
2665
|
-
const _ = Ga(e);
|
|
2666
|
-
if (_ && i.prepend(_), t) {
|
|
2667
|
-
const m = Ua(t);
|
|
2668
|
-
return i.appendChild(m), { ghost: i, badge: m };
|
|
2669
|
-
}
|
|
2670
|
-
return { ghost: i };
|
|
2671
|
-
}, Ha = (a) => ({ clientX: e, clientY: t }) => {
|
|
2672
|
-
if (e === 0 && t === 0)
|
|
2673
|
-
return;
|
|
2674
|
-
const { x: n, y: r } = mr({
|
|
2675
|
-
x: e,
|
|
2676
|
-
y: t
|
|
2677
|
-
});
|
|
2678
|
-
a.forEach((i) => {
|
|
2679
|
-
bt.to(i, {
|
|
2680
|
-
left: n,
|
|
2681
|
-
top: r,
|
|
2682
|
-
width: "200px",
|
|
2683
|
-
duration: 0.35
|
|
2684
|
-
});
|
|
2685
|
-
});
|
|
2686
|
-
};
|
|
2687
|
-
let Ke = null;
|
|
2688
|
-
const Hr = () => {
|
|
2689
|
-
Ke && (Ke.style.display = "none");
|
|
2690
|
-
}, Wa = () => {
|
|
2691
|
-
Ke && (Ke.style.display = "flex");
|
|
2692
|
-
}, Ya = ({
|
|
2693
|
-
badgeCount: a = null,
|
|
2694
|
-
selectedTargets: e
|
|
2695
|
-
}) => {
|
|
2696
|
-
(() => {
|
|
2697
|
-
const m = document.querySelectorAll('[data-id="drag-ghost"]');
|
|
2698
|
-
m.length && m.forEach((f) => {
|
|
2699
|
-
var p;
|
|
2700
|
-
return (p = f.parentNode) == null ? void 0 : p.removeChild(f);
|
|
2701
|
-
});
|
|
2702
|
-
})();
|
|
2703
|
-
const [n, ...r] = e, { ghost: i, badge: s } = Gr({
|
|
2704
|
-
addShadow: !0,
|
|
2705
|
-
textContent: n.textContent,
|
|
2706
|
-
badgeCount: a,
|
|
2707
|
-
target: n.targetEl
|
|
2708
|
-
}), o = r.map(({ textContent: m, targetEl: f }, p) => {
|
|
2709
|
-
const { ghost: g } = Gr({
|
|
2710
|
-
textContent: m,
|
|
2711
|
-
target: f,
|
|
2712
|
-
// eslint-disable-next-line no-magic-numbers
|
|
2713
|
-
// Don't add shadows when there are more than 2 elements to ghost, since it makes the shadow too dark
|
|
2714
|
-
addShadow: p < 2
|
|
2715
|
-
});
|
|
2716
|
-
return { ghost: g, targetEl: f };
|
|
2717
|
-
}), l = [
|
|
2718
|
-
{ ghost: i, targetEl: n.targetEl },
|
|
2719
|
-
...o
|
|
2720
|
-
];
|
|
2721
|
-
l.reverse().forEach(({ ghost: m }) => {
|
|
2722
|
-
document.body.appendChild(m);
|
|
2723
|
-
});
|
|
2724
|
-
const u = l.map(({ ghost: m }) => m), c = Ha(u);
|
|
2725
|
-
document.addEventListener("drag", c);
|
|
2726
|
-
const d = (m) => ({ ghost: f }) => {
|
|
2727
|
-
f.style.display = m;
|
|
2728
|
-
};
|
|
2729
|
-
return { ghosts: u, removeGhosts: (m = !0) => {
|
|
2730
|
-
const f = ({ ghost: p }) => {
|
|
2731
|
-
m || (p.style.display = "none");
|
|
2732
|
-
try {
|
|
2733
|
-
document.body.removeChild(p);
|
|
2734
|
-
} catch {
|
|
2735
|
-
}
|
|
2736
|
-
document.removeEventListener("drag", c);
|
|
2737
|
-
};
|
|
2738
|
-
if (Hr(), !m) {
|
|
2739
|
-
l.forEach(f);
|
|
2740
|
-
return;
|
|
2741
|
-
}
|
|
2742
|
-
l.forEach(({ ghost: p, targetEl: g }) => {
|
|
2743
|
-
const { x: v, y: S, width: w } = g.getBoundingClientRect();
|
|
2744
|
-
s && bt.to(s, {
|
|
2745
|
-
autoAlpha: 0,
|
|
2746
|
-
duration: 0.05,
|
|
2747
|
-
onComplete: () => {
|
|
2748
|
-
bt.killTweensOf(s);
|
|
2749
|
-
}
|
|
2750
|
-
});
|
|
2751
|
-
const { x: y, y: b } = mr({ x: v, y: S });
|
|
2752
|
-
bt.to(p, {
|
|
2753
|
-
left: y,
|
|
2754
|
-
top: b,
|
|
2755
|
-
width: w,
|
|
2756
|
-
duration: 0.2,
|
|
2757
|
-
onComplete: () => {
|
|
2758
|
-
bt.killTweensOf(p), f({ ghost: p }), document.removeEventListener("drag", c);
|
|
2759
|
-
}
|
|
2760
|
-
});
|
|
2761
|
-
});
|
|
2762
|
-
}, replaceGhostPreview: ({ shouldUseCustomPreview: m, ghostPreviewEl: f, opts: p = {} }) => {
|
|
2763
|
-
Ke = f, m ? (document.removeEventListener("drag", c), Wa(), document.addEventListener("drag", (g) => {
|
|
2764
|
-
Ke && (Ke.style.left = `${g.clientX - (p.leftOffset || 0)}px`, Ke.style.top = `${g.clientY - (p.topOffset || 0)}px`);
|
|
2765
|
-
}), l.forEach(d("none"))) : (document.addEventListener("drag", c), Hr(), l.forEach(d("flex")));
|
|
2766
|
-
} };
|
|
2767
|
-
};
|
|
2768
|
-
let He = null, tn = null;
|
|
2769
|
-
const In = (() => {
|
|
2770
|
-
if (typeof window < "u") {
|
|
2771
|
-
const a = new Image(1, 1);
|
|
2772
|
-
return a.src = "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==", a;
|
|
2773
|
-
}
|
|
2774
|
-
return null;
|
|
2775
|
-
})(), Xa = (a) => {
|
|
2776
|
-
const {
|
|
2777
|
-
items: e,
|
|
2778
|
-
itemBACK: t,
|
|
2779
|
-
getItemElement: n,
|
|
2780
|
-
shouldUseCustomDragPreview: r,
|
|
2781
|
-
getCustomPreviewEl: i,
|
|
2782
|
-
multiSelection: s,
|
|
2783
|
-
isDirectory: o
|
|
2784
|
-
} = a, l = B(!1), u = B(null), c = F(
|
|
2785
|
-
() => s.selectedIndexes.value.map((b) => e.value[b])
|
|
2786
|
-
), d = F(
|
|
2787
|
-
() => c.value.map((b) => b.id)
|
|
2788
|
-
), h = (b, x = !1) => x ? t.value : n(b), _ = (b, x) => {
|
|
2789
|
-
if (l.value = !0, u.value = x, In && In.complete && a.draggingAnimationMode.value !== "disabled" && (b.dataTransfer.dropEffect = "move", b.dataTransfer.effectAllowed = "move", b.dataTransfer.setDragImage(In, 0, 0)), s.isSelected(x) || (s.resetSelection(), s.handleSelectionClick(x)), a.draggingAnimationMode.value === "disabled")
|
|
2790
|
-
return;
|
|
2791
|
-
const k = s.selectedIndexes.value.filter(
|
|
2792
|
-
(D) => x !== D
|
|
2793
|
-
), T = (D) => {
|
|
2794
|
-
const P = h(D);
|
|
2795
|
-
return P ? {
|
|
2796
|
-
targetEl: P,
|
|
2797
|
-
textContent: e.value[D].name
|
|
2798
|
-
} : null;
|
|
2799
|
-
}, I = [].concat(T(x)).concat(k.map(T)).filter((D) => D !== null), L = Ya({
|
|
2800
|
-
dragStartEvent: b,
|
|
2801
|
-
badgeCount: s.isMultipleSelectionActive(x) ? k.length + 1 : null,
|
|
2802
|
-
selectedTargets: I
|
|
2803
|
-
});
|
|
2804
|
-
He = L.removeGhosts, tn = L.replaceGhostPreview;
|
|
2805
|
-
}, m = (b, x, k = !1) => {
|
|
2806
|
-
if (l.value && !(s.isSelected(x) && !k) && x !== u.value) {
|
|
2807
|
-
const T = h(x, k);
|
|
2808
|
-
T == null || T.classList.add("dragging-over");
|
|
2809
|
-
}
|
|
2810
|
-
}, f = (b) => {
|
|
2811
|
-
l.value && b.preventDefault();
|
|
2812
|
-
}, p = (b, x) => ({ event: b, item: x });
|
|
2813
|
-
re(a.draggingAnimationMode, (b, x) => {
|
|
2814
|
-
b !== x && x === "disabled" && (He == null || He());
|
|
2815
|
-
}), re(r, () => {
|
|
2816
|
-
l.value && (tn == null || tn({
|
|
2817
|
-
shouldUseCustomPreview: r.value,
|
|
2818
|
-
ghostPreviewEl: i(),
|
|
2819
|
-
opts: { leftOffset: 35, topOffset: 35 }
|
|
2820
|
-
}));
|
|
2821
|
-
});
|
|
2822
|
-
const g = (b, x, k = !1) => {
|
|
2823
|
-
const T = h(x, k);
|
|
2824
|
-
T == null || T.classList.remove("dragging-over");
|
|
2825
|
-
}, v = B(!1), S = (b) => {
|
|
2826
|
-
He == null || He(b), He = null;
|
|
2827
|
-
};
|
|
2828
|
-
return {
|
|
2829
|
-
isDragging: l,
|
|
2830
|
-
onDragStart: _,
|
|
2831
|
-
onDragEnter: m,
|
|
2832
|
-
onDragOver: f,
|
|
2833
|
-
onDrag: p,
|
|
2834
|
-
onDragLeave: g,
|
|
2835
|
-
onDrop: (b, x, k = !1) => {
|
|
2836
|
-
const T = h(x, k);
|
|
2837
|
-
T == null || T.classList.remove("dragging-over"), v.value = !0;
|
|
2838
|
-
const I = (P) => {
|
|
2839
|
-
P && s.resetSelection(), S(!P);
|
|
2840
|
-
};
|
|
2841
|
-
if (!k && !o(e.value[x]))
|
|
2842
|
-
return S(!0), null;
|
|
2843
|
-
const L = k ? ".." : e.value[x].id;
|
|
2844
|
-
return d.value.includes(L) ? (S(!0), null) : (a.draggingAnimationMode.value === "auto" && I(!0), {
|
|
2845
|
-
sourceItems: d.value,
|
|
2846
|
-
targetItem: L,
|
|
2847
|
-
onComplete: I
|
|
2848
|
-
});
|
|
2849
|
-
},
|
|
2850
|
-
onDragEnd: (b, x) => {
|
|
2851
|
-
var T;
|
|
2852
|
-
if (l.value = !1, ((T = b.dataTransfer) == null ? void 0 : T.dropEffect) === "none")
|
|
2853
|
-
return S(!0), null;
|
|
2854
|
-
if (v.value)
|
|
2855
|
-
return v.value = !1, null;
|
|
2856
|
-
const k = (I) => {
|
|
2857
|
-
I && s.resetSelection(), S(!I);
|
|
2858
|
-
};
|
|
2859
|
-
return a.draggingAnimationMode.value === "auto" && k(!0), { event: b, sourceItem: x, onComplete: k };
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
|
-
}, qa = /* @__PURE__ */ $e({
|
|
2863
|
-
__name: "FileExplorerContextMenu",
|
|
2864
|
-
props: {
|
|
2865
|
-
position: {},
|
|
2866
|
-
anchor: {},
|
|
2867
|
-
selectedItems: {}
|
|
2868
|
-
},
|
|
2869
|
-
emits: ["itemClick", "close"],
|
|
2870
|
-
setup(a, { emit: e }) {
|
|
2871
|
-
qr((w) => ({
|
|
2872
|
-
"4a7fa7af": w.$props.position.x,
|
|
2873
|
-
"4a7fa7b0": w.$props.position.y
|
|
2874
|
-
}));
|
|
2875
|
-
const t = a, { position: n } = wt(t), r = F(() => t.anchor.element), i = B(null), s = B(!0), o = F(
|
|
2876
|
-
() => {
|
|
2877
|
-
var w, y;
|
|
2878
|
-
return ((y = (w = i.value) == null ? void 0 : w.getBoundingClientRect()) == null ? void 0 : y.height) ?? 0;
|
|
2879
|
-
}
|
|
2880
|
-
);
|
|
2881
|
-
let l;
|
|
2882
|
-
jt(() => {
|
|
2883
|
-
var w;
|
|
2884
|
-
if (l = new IntersectionObserver(([y]) => {
|
|
2885
|
-
s.value = y.isIntersecting;
|
|
2886
|
-
}), l.observe(t.anchor.element), s.value) {
|
|
2887
|
-
const y = (w = i.value) == null ? void 0 : w.querySelector(
|
|
2888
|
-
'[tabindex="-1"]'
|
|
2889
|
-
);
|
|
2890
|
-
y == null || y.focus();
|
|
2891
|
-
}
|
|
2892
|
-
}), Xr(() => {
|
|
2893
|
-
l.disconnect();
|
|
2894
|
-
});
|
|
2895
|
-
const u = F(() => {
|
|
2896
|
-
const w = r.value.getBoundingClientRect();
|
|
2897
|
-
return t.position.x - w.left;
|
|
2898
|
-
}), c = F(() => {
|
|
2899
|
-
const w = r.value.getBoundingClientRect(), y = t.position.y - w.top;
|
|
2900
|
-
return (window.innerHeight - t.position.y < o.value ? y : y + o.value) * -1;
|
|
2901
|
-
}), d = F(() => [
|
|
2902
|
-
bs({ mainAxis: c.value, crossAxis: u.value })
|
|
2903
|
-
]), { floatingStyles: h, update: _ } = Os(
|
|
2904
|
-
r,
|
|
2905
|
-
i,
|
|
2906
|
-
{
|
|
2907
|
-
placement: "top-start",
|
|
2908
|
-
strategy: "fixed",
|
|
2909
|
-
middleware: d,
|
|
2910
|
-
whileElementsMounted: ws
|
|
2911
|
-
}
|
|
2912
|
-
);
|
|
2913
|
-
re(n, () => _(), { deep: !0 }), re(o, () => {
|
|
2914
|
-
_();
|
|
2915
|
-
});
|
|
2916
|
-
const m = e, f = (w, y = {}) => ({
|
|
2917
|
-
id: "rename",
|
|
2918
|
-
text: "Rename",
|
|
2919
|
-
...y,
|
|
2920
|
-
disabled: !w.canBeRenamed || t.selectedItems.length > 1 || y.disabled || !1
|
|
2921
|
-
}), p = (w, y = {}) => {
|
|
2922
|
-
const b = t.selectedItems.some(
|
|
2923
|
-
(x) => !x.canBeDeleted
|
|
2924
|
-
);
|
|
2925
|
-
return {
|
|
2926
|
-
id: "delete",
|
|
2927
|
-
text: "Delete",
|
|
2928
|
-
...y,
|
|
2929
|
-
disabled: !w.canBeDeleted || b || y.disabled || !1
|
|
2930
|
-
};
|
|
2931
|
-
}, g = (w) => {
|
|
2932
|
-
const y = w, { id: b } = y, x = b === "rename", k = b === "delete";
|
|
2933
|
-
x && !t.anchor.item.canBeRenamed || k && !t.anchor.item.canBeDeleted || m("itemClick", {
|
|
2934
|
-
contextMenuItem: y,
|
|
2935
|
-
anchorItem: t.anchor.item,
|
|
2936
|
-
isDelete: k,
|
|
2937
|
-
isRename: x
|
|
2938
|
-
});
|
|
2939
|
-
}, v = F(() => [
|
|
2940
|
-
f(t.anchor.item),
|
|
2941
|
-
p(t.anchor.item)
|
|
2942
|
-
]), S = () => {
|
|
2943
|
-
m("close");
|
|
2944
|
-
};
|
|
2945
|
-
return Ts(i, S), (w, y) => _s((M(), U("div", {
|
|
2946
|
-
ref_key: "menuWrapper",
|
|
2947
|
-
ref: i,
|
|
2948
|
-
style: Qn(E(h)),
|
|
2949
|
-
class: "menu-wrapper"
|
|
2950
|
-
}, [
|
|
2951
|
-
ce(w.$slots, "default", {
|
|
2952
|
-
items: v.value,
|
|
2953
|
-
createRenameOption: f,
|
|
2954
|
-
createDeleteOption: p,
|
|
2955
|
-
onItemClick: g
|
|
2956
|
-
}, () => [
|
|
2957
|
-
se(As, {
|
|
2958
|
-
"menu-aria-label": "File explorer context menu",
|
|
2959
|
-
"register-keydown": "",
|
|
2960
|
-
items: v.value,
|
|
2961
|
-
onClose: S,
|
|
2962
|
-
onItemClick: y[0] || (y[0] = (b, x) => g(x))
|
|
2963
|
-
}, null, 8, ["items"])
|
|
2964
|
-
], !0)
|
|
2965
|
-
], 4)), [
|
|
2966
|
-
[ps, s.value]
|
|
2967
|
-
]);
|
|
2968
|
-
}
|
|
2969
|
-
}), Ka = /* @__PURE__ */ Ee(qa, [["__scopeId", "data-v-b1848afb"]]), ja = {
|
|
2970
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2971
|
-
fill: "none",
|
|
2972
|
-
stroke: "#000",
|
|
2973
|
-
"stroke-linejoin": "round",
|
|
2974
|
-
viewBox: "0 0 32 32"
|
|
2975
|
-
}, Za = /* @__PURE__ */ V("path", { d: "M29.5 26.8h-27V5.2h9.1l4.6 6h13.3zm0-15.6v-4H13.1" }, null, -1), Qa = [
|
|
2976
|
-
Za
|
|
2977
|
-
];
|
|
2978
|
-
function Ja(a, e) {
|
|
2979
|
-
return M(), U("svg", ja, [...Qa]);
|
|
2980
|
-
}
|
|
2981
|
-
const el = { render: Ja }, tl = $e({
|
|
2982
|
-
name: "FileExplorerItemBase",
|
|
2983
|
-
props: {
|
|
2984
|
-
isSelected: {
|
|
2985
|
-
type: Boolean,
|
|
2986
|
-
required: !0
|
|
2987
|
-
},
|
|
2988
|
-
isDragging: {
|
|
2989
|
-
type: Boolean,
|
|
2990
|
-
required: !0
|
|
2991
|
-
}
|
|
2992
|
-
}
|
|
2993
|
-
}), nl = { class: "item-icon" };
|
|
2994
|
-
function rl(a, e, t, n, r, i) {
|
|
2995
|
-
return M(), U("tr", {
|
|
2996
|
-
class: Ne(["file-explorer-item-base", {
|
|
2997
|
-
selected: !a.isDragging && a.isSelected,
|
|
2998
|
-
dragging: a.isDragging && a.isSelected
|
|
2999
|
-
}]),
|
|
3000
|
-
"data-test-id": "file-explorer-item"
|
|
3001
|
-
}, [
|
|
3002
|
-
V("td", nl, [
|
|
3003
|
-
ce(a.$slots, "icon")
|
|
3004
|
-
]),
|
|
3005
|
-
ce(a.$slots, "default")
|
|
3006
|
-
], 2);
|
|
3007
|
-
}
|
|
3008
|
-
const Ji = /* @__PURE__ */ Ee(tl, [["render", rl], ["__scopeId", "data-v-5fabe75d"]]), il = {
|
|
3009
|
-
key: 0,
|
|
3010
|
-
class: "open-indicator"
|
|
3011
|
-
}, sl = ["title"], ol = { key: 0 }, al = {
|
|
3012
|
-
key: 0,
|
|
3013
|
-
class: "item-error"
|
|
3014
|
-
}, ll = /* @__PURE__ */ $e({
|
|
3015
|
-
__name: "FileExplorerItem",
|
|
3016
|
-
props: {
|
|
3017
|
-
blacklistedNames: {},
|
|
3018
|
-
item: {},
|
|
3019
|
-
isSelected: { type: Boolean },
|
|
3020
|
-
isDragging: { type: Boolean },
|
|
3021
|
-
isRenameActive: { type: Boolean },
|
|
3022
|
-
isDraggingEnabled: { type: Boolean, default: !0 }
|
|
3023
|
-
},
|
|
3024
|
-
emits: ["dblclick", "click", "dragstart", "dragenter", "dragover", "drag", "dragleave", "dragend", "drop", "contextmenu", "rename:submit", "rename:clear"],
|
|
3025
|
-
setup(a, { emit: e }) {
|
|
3026
|
-
const t = a, n = (p) => p.isDirectory ? el : Bs, { isRenameActive: r, blacklistedNames: i } = wt(t), s = e, o = B(null), l = B(""), { isValid: u, errorMessage: c, cleanedName: d } = uo({
|
|
3027
|
-
blacklistedNames: i,
|
|
3028
|
-
name: l
|
|
3029
|
-
}), h = async () => {
|
|
3030
|
-
var g, v;
|
|
3031
|
-
l.value = t.item.name, await an();
|
|
3032
|
-
const p = (v = (g = o.value) == null ? void 0 : g.$refs) == null ? void 0 : v.input;
|
|
3033
|
-
p == null || p.setSelectionRange(0, l.value.length), p == null || p.focus();
|
|
3034
|
-
};
|
|
3035
|
-
re(r, async (p) => {
|
|
3036
|
-
p && await h();
|
|
3037
|
-
});
|
|
3038
|
-
const _ = B(), m = async () => {
|
|
3039
|
-
var p;
|
|
3040
|
-
await an(), (p = _.value) == null || p.$el.focus();
|
|
3041
|
-
}, f = (p, g = !1) => {
|
|
3042
|
-
if (p.key === "Escape" && (s("rename:clear"), m()), (p.key === "Enter" || g) && u.value) {
|
|
3043
|
-
const v = d.value, S = v === t.item.name;
|
|
3044
|
-
if (v === "" || S) {
|
|
3045
|
-
s("rename:clear"), m();
|
|
3046
|
-
return;
|
|
3047
|
-
}
|
|
3048
|
-
s("rename:submit", {
|
|
3049
|
-
itemId: t.item.id,
|
|
3050
|
-
newName: v
|
|
3051
|
-
}), s("rename:clear"), m();
|
|
3052
|
-
}
|
|
3053
|
-
};
|
|
3054
|
-
return (p, g) => (M(), ue(Ji, {
|
|
3055
|
-
ref_key: "baseItem",
|
|
3056
|
-
ref: _,
|
|
3057
|
-
class: "file-explorer-item",
|
|
3058
|
-
"is-dragging": p.isDragging,
|
|
3059
|
-
"is-selected": p.isSelected,
|
|
3060
|
-
draggable: p.isDraggingEnabled && !E(r),
|
|
3061
|
-
onDragstart: g[3] || (g[3] = (v) => !E(r) && s("dragstart", v)),
|
|
3062
|
-
onDragenter: g[4] || (g[4] = (v) => !E(r) && s("dragenter", v)),
|
|
3063
|
-
onDragover: g[5] || (g[5] = (v) => s("dragover", v)),
|
|
3064
|
-
onDragleave: g[6] || (g[6] = (v) => !E(r) && s("dragleave", v)),
|
|
3065
|
-
onDragend: g[7] || (g[7] = (v) => !E(r) && s("dragend", v)),
|
|
3066
|
-
onDrag: g[8] || (g[8] = (v) => s("drag", v)),
|
|
3067
|
-
onClick: g[9] || (g[9] = (v) => s("click", v)),
|
|
3068
|
-
onContextmenu: g[10] || (g[10] = Ie((v) => !E(r) && s("contextmenu", v), ["prevent"])),
|
|
3069
|
-
onDrop: g[11] || (g[11] = Ie((v) => !E(r) && s("drop", v), ["prevent"])),
|
|
3070
|
-
onDblclick: g[12] || (g[12] = (v) => !E(r) && s("dblclick", v))
|
|
3071
|
-
}, {
|
|
3072
|
-
icon: ee(() => [
|
|
3073
|
-
p.item.isOpen ? (M(), U("span", il)) : fe("", !0),
|
|
3074
|
-
ce(p.$slots, "icon", {}, () => [
|
|
3075
|
-
(M(), ue(nn(n(p.item))))
|
|
3076
|
-
], !0)
|
|
3077
|
-
]),
|
|
3078
|
-
default: ee(() => [
|
|
3079
|
-
V("td", {
|
|
3080
|
-
class: Ne(["item-content", {
|
|
3081
|
-
light: !p.item.isDirectory,
|
|
3082
|
-
"rename-active": E(r)
|
|
3083
|
-
}]),
|
|
3084
|
-
title: p.item.name
|
|
3085
|
-
}, [
|
|
3086
|
-
p.$slots.default ? ce(p.$slots, "default", {
|
|
3087
|
-
key: 0,
|
|
3088
|
-
isRenameActive: E(r),
|
|
3089
|
-
isSelected: p.isSelected
|
|
3090
|
-
}, void 0, !0) : (M(), U(Kt, { key: 1 }, [
|
|
3091
|
-
E(r) ? (M(), ue(E(Ss), {
|
|
3092
|
-
key: 1,
|
|
3093
|
-
onTrigger: g[2] || (g[2] = (v) => f(v, !0))
|
|
3094
|
-
}, {
|
|
3095
|
-
default: ee(() => [
|
|
3096
|
-
V("div", null, [
|
|
3097
|
-
se(Kr, {
|
|
3098
|
-
ref_key: "renameInput",
|
|
3099
|
-
ref: o,
|
|
3100
|
-
modelValue: l.value,
|
|
3101
|
-
"onUpdate:modelValue": g[0] || (g[0] = (v) => l.value = v),
|
|
3102
|
-
class: "rename-input",
|
|
3103
|
-
type: "text",
|
|
3104
|
-
title: "rename",
|
|
3105
|
-
"is-valid": E(u),
|
|
3106
|
-
onKeydown: g[1] || (g[1] = Ie((v) => f(v), ["stop"]))
|
|
3107
|
-
}, null, 8, ["modelValue", "is-valid"]),
|
|
3108
|
-
E(u) ? fe("", !0) : (M(), U("div", al, [
|
|
3109
|
-
V("span", null, Ct(E(c)), 1)
|
|
3110
|
-
]))
|
|
3111
|
-
])
|
|
3112
|
-
]),
|
|
3113
|
-
_: 1
|
|
3114
|
-
})) : (M(), U("span", ol, Ct(p.item.name), 1))
|
|
3115
|
-
], 64))
|
|
3116
|
-
], 10, sl)
|
|
3117
|
-
]),
|
|
3118
|
-
_: 3
|
|
3119
|
-
}, 8, ["is-dragging", "is-selected", "draggable"]));
|
|
3120
|
-
}
|
|
3121
|
-
}), ul = /* @__PURE__ */ Ee(ll, [["__scopeId", "data-v-c5f6073e"]]), cl = {
|
|
3122
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3123
|
-
fill: "none",
|
|
3124
|
-
stroke: "#000",
|
|
3125
|
-
"stroke-linejoin": "round",
|
|
3126
|
-
viewBox: "0 0 32 32"
|
|
3127
|
-
}, fl = /* @__PURE__ */ V("path", { d: "M11.772 22.665 3.5 14.393l8.272-8.272M3.5 14.393h18.256m0 0a6.744 6.744 0 0 1 6.744 6.744v4.741" }, null, -1), dl = [
|
|
3128
|
-
fl
|
|
3129
|
-
];
|
|
3130
|
-
function hl(a, e) {
|
|
3131
|
-
return M(), U("svg", cl, [...dl]);
|
|
3132
|
-
}
|
|
3133
|
-
const _l = { render: hl }, pl = $e({
|
|
3134
|
-
name: "FileExplorerItemBack",
|
|
3135
|
-
components: {
|
|
3136
|
-
ArrowIcon: _l,
|
|
3137
|
-
FileExplorerItemBase: Ji
|
|
3138
|
-
},
|
|
3139
|
-
props: {
|
|
3140
|
-
isDragging: {
|
|
3141
|
-
type: Boolean,
|
|
3142
|
-
required: !0
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3145
|
-
}), ml = (a) => (gn("data-v-a70baf69"), a = a(), vn(), a), gl = /* @__PURE__ */ ml(() => /* @__PURE__ */ V("td", { class: "item-name hidden" }, "Go back to parent directory", -1));
|
|
3146
|
-
function vl(a, e, t, n, r, i) {
|
|
3147
|
-
const s = Mn("ArrowIcon"), o = Mn("FileExplorerItemBase");
|
|
3148
|
-
return M(), ue(o, {
|
|
3149
|
-
"is-dragging": a.isDragging,
|
|
3150
|
-
"is-selected": !1,
|
|
3151
|
-
class: "file-explorer-item-back",
|
|
3152
|
-
title: "Go back"
|
|
3153
|
-
}, {
|
|
3154
|
-
icon: ee(() => [
|
|
3155
|
-
se(s, { class: "arrow-icon" })
|
|
3156
|
-
]),
|
|
3157
|
-
default: ee(() => [
|
|
3158
|
-
gl
|
|
3159
|
-
]),
|
|
3160
|
-
_: 1
|
|
3161
|
-
}, 8, ["is-dragging"]);
|
|
3162
|
-
}
|
|
3163
|
-
const yl = /* @__PURE__ */ Ee(pl, [["render", vl], ["__scopeId", "data-v-a70baf69"]]), xl = (a) => (gn("data-v-171d043b"), a = a(), vn(), a), bl = /* @__PURE__ */ xl(() => /* @__PURE__ */ V("thead", null, [
|
|
3164
|
-
/* @__PURE__ */ V("tr", null, [
|
|
3165
|
-
/* @__PURE__ */ V("th", { scope: "col" }, "Type"),
|
|
3166
|
-
/* @__PURE__ */ V("th", {
|
|
3167
|
-
class: "name",
|
|
3168
|
-
scope: "col"
|
|
3169
|
-
}, "Name")
|
|
3170
|
-
])
|
|
3171
|
-
], -1)), wl = {
|
|
3172
|
-
key: 0,
|
|
3173
|
-
class: "empty"
|
|
3174
|
-
}, Wr = 38, Tl = 16, Sl = /* @__PURE__ */ $e({
|
|
3175
|
-
__name: "FileExplorer",
|
|
3176
|
-
props: {
|
|
3177
|
-
mode: { default: "normal" },
|
|
3178
|
-
fullPath: { default: "" },
|
|
3179
|
-
items: {},
|
|
3180
|
-
virtual: { type: Boolean },
|
|
3181
|
-
isRootFolder: { type: Boolean, default: !0 },
|
|
3182
|
-
activeRenamedItemId: { default: null },
|
|
3183
|
-
disableContextMenu: { type: Boolean, default: !1 },
|
|
3184
|
-
disableMultiSelect: { type: Boolean, default: !1 },
|
|
3185
|
-
disableSelection: { type: Boolean, default: !1 },
|
|
3186
|
-
disableDragging: { type: Boolean, default: !1 },
|
|
3187
|
-
draggingAnimationMode: { default: "auto" },
|
|
3188
|
-
clickOutsideException: { default: null },
|
|
3189
|
-
selectedItemIds: { default: () => [] }
|
|
3190
|
-
},
|
|
3191
|
-
emits: ["update:selectedItemIds", "changeDirectory", "openFile", "deleteItems", "moveItems", "dragend", "drag", "renameFile"],
|
|
3192
|
-
setup(a, { emit: e }) {
|
|
3193
|
-
qr((C) => ({
|
|
3194
|
-
"0e749abf": Wr + "px"
|
|
3195
|
-
}));
|
|
3196
|
-
const t = a, n = e, r = (C) => C.isDirectory, i = (C) => C.isOpenableFile, s = (C) => {
|
|
3197
|
-
n("changeDirectory", C);
|
|
3198
|
-
}, o = B([]), l = B(null), u = B(null), c = F(
|
|
3199
|
-
() => Wr + 2
|
|
3200
|
-
/* item margin */
|
|
3201
|
-
), d = new Do(
|
|
3202
|
-
F(() => t.items.length),
|
|
3203
|
-
c.value
|
|
3204
|
-
), {
|
|
3205
|
-
indices: h,
|
|
3206
|
-
containerProps: _,
|
|
3207
|
-
scrolledAreaStyles: m
|
|
3208
|
-
} = ko(
|
|
3209
|
-
{
|
|
3210
|
-
sizeManager: d,
|
|
3211
|
-
buffer: Tl * c.value
|
|
3212
|
-
},
|
|
3213
|
-
"vertical",
|
|
3214
|
-
u
|
|
3215
|
-
), f = F(
|
|
3216
|
-
() => t.virtual ? h.value.toArray() : Array.from({ length: t.items.length }, (C, O) => O)
|
|
3217
|
-
), p = F(
|
|
3218
|
-
() => f.value.map((C) => t.items[C])
|
|
3219
|
-
), g = (C, O = "smooth") => {
|
|
3220
|
-
var A;
|
|
3221
|
-
C !== -1 && ((A = _.ref.value) == null || A.scrollTo({
|
|
3222
|
-
top: d.toOffset(C),
|
|
3223
|
-
behavior: O
|
|
3224
|
-
}));
|
|
3225
|
-
}, v = so({
|
|
3226
|
-
singleSelectionOnly: Rt(t, "disableMultiSelect"),
|
|
3227
|
-
numberOfItems: F(() => t.items.length),
|
|
3228
|
-
startIndex: F(() => l.value ? -1 : 0),
|
|
3229
|
-
disabled: t.disableSelection
|
|
3230
|
-
}), {
|
|
3231
|
-
multiSelectionState: S,
|
|
3232
|
-
handleSelectionClick: w,
|
|
3233
|
-
handleKeyboardNavigation: y,
|
|
3234
|
-
isSelected: b,
|
|
3235
|
-
focusedIndex: x,
|
|
3236
|
-
selectedIndexes: k,
|
|
3237
|
-
isMultipleSelectionActive: T,
|
|
3238
|
-
resetSelection: I,
|
|
3239
|
-
ctrlClickItem: L
|
|
3240
|
-
} = v, D = F(
|
|
3241
|
-
() => k.value.map((C) => t.items[C])
|
|
3242
|
-
), P = (C) => {
|
|
3243
|
-
var O, A;
|
|
3244
|
-
return ((A = (O = o.value) == null ? void 0 : O.find(
|
|
3245
|
-
({ $props: G }) => {
|
|
3246
|
-
var R, br;
|
|
3247
|
-
return ((R = G.item) == null ? void 0 : R.id) && G.item.id === ((br = t.items[C]) == null ? void 0 : br.id);
|
|
3248
|
-
}
|
|
3249
|
-
)) == null ? void 0 : A.$el) ?? null;
|
|
3250
|
-
}, $ = (C) => {
|
|
3251
|
-
const O = C.map((G) => t.items.findIndex((R) => R.id === G)).filter((G) => G !== -1);
|
|
3252
|
-
if (O.every(b) && O.length === k.value.length)
|
|
3253
|
-
return;
|
|
3254
|
-
I(), O.forEach((G) => L(G));
|
|
3255
|
-
const A = O.slice().sort().at(0) ?? -1;
|
|
3256
|
-
g(A);
|
|
3257
|
-
};
|
|
3258
|
-
re(Rt(t, "selectedItemIds"), $), re(S, () => {
|
|
3259
|
-
const C = D.value.map((O) => O.id);
|
|
3260
|
-
n("update:selectedItemIds", C);
|
|
3261
|
-
}), re(
|
|
3262
|
-
Rt(t, "items"),
|
|
3263
|
-
(C) => {
|
|
3264
|
-
x.value >= C.length && I(x.value), $(t.selectedItemIds);
|
|
3265
|
-
},
|
|
3266
|
-
{ immediate: !0 }
|
|
3267
|
-
);
|
|
3268
|
-
const N = B(null), K = F(
|
|
3269
|
-
() => t.items.filter((C) => C.id !== N.value).map(({ name: C }) => C)
|
|
3270
|
-
), { activeRenamedItemId: Q } = wt(t);
|
|
3271
|
-
re(Q, () => {
|
|
3272
|
-
N.value = t.activeRenamedItemId;
|
|
3273
|
-
});
|
|
3274
|
-
const ge = B(null), tt = B(null), {
|
|
3275
|
-
isDragging: Ge,
|
|
3276
|
-
onDragStart: nt,
|
|
3277
|
-
onDragEnter: Pe,
|
|
3278
|
-
onDragOver: It,
|
|
3279
|
-
onDrag: De,
|
|
3280
|
-
onDragLeave: Oe,
|
|
3281
|
-
onDragEnd: ns,
|
|
3282
|
-
onDrop: gr
|
|
3283
|
-
} = Xa({
|
|
3284
|
-
itemBACK: F(() => l.value ? l.value.$el : null),
|
|
3285
|
-
getItemElement: P,
|
|
3286
|
-
draggingAnimationMode: Rt(t, "draggingAnimationMode"),
|
|
3287
|
-
isDirectory: r,
|
|
3288
|
-
items: wt(t).items,
|
|
3289
|
-
multiSelection: v,
|
|
3290
|
-
// when default slot element (customDragPreviewPlaceholder ref) is not present, then
|
|
3291
|
-
// it means the slot has an element inside, so we should use a custom preview
|
|
3292
|
-
shouldUseCustomDragPreview: F(
|
|
3293
|
-
() => !tt.value && t.draggingAnimationMode !== "disabled"
|
|
3294
|
-
),
|
|
3295
|
-
// we then can obtain the element by using the container
|
|
3296
|
-
getCustomPreviewEl: () => document.querySelector(".custom-preview")
|
|
3297
|
-
}), Qt = (C, O) => {
|
|
3298
|
-
O !== null && n(C, O);
|
|
3299
|
-
}, wn = js([
|
|
3300
|
-
"Tab",
|
|
3301
|
-
" ",
|
|
3302
|
-
"ArrowUp",
|
|
3303
|
-
"ArrowDown",
|
|
3304
|
-
"PageUp",
|
|
3305
|
-
"PageDown",
|
|
3306
|
-
"End",
|
|
3307
|
-
"Home"
|
|
3308
|
-
]), Mt = (C, O = !0) => {
|
|
3309
|
-
var G;
|
|
3310
|
-
if (C === -1) {
|
|
3311
|
-
(G = l.value) == null || G.$el.focus();
|
|
3312
|
-
return;
|
|
3313
|
-
}
|
|
3314
|
-
if (t.items.length === 0 && l.value) {
|
|
3315
|
-
l.value.$el.focus();
|
|
3316
|
-
return;
|
|
3317
|
-
}
|
|
3318
|
-
const A = P(C);
|
|
3319
|
-
A ? A.focus() : t.virtual && (g(C, "instant"), setTimeout(() => {
|
|
3320
|
-
var R;
|
|
3321
|
-
(R = P(C)) == null || R.focus();
|
|
3322
|
-
}, 100)), O && (x.value = C);
|
|
3323
|
-
}, rs = (C) => {
|
|
3324
|
-
var O;
|
|
3325
|
-
(O = u.value) != null && O.contains(C.relatedTarget) || Mt(x.value, !1);
|
|
3326
|
-
};
|
|
3327
|
-
re(x, async (C) => {
|
|
3328
|
-
await an(), Mt(C, !1);
|
|
3329
|
-
});
|
|
3330
|
-
const Jt = B(!1), _t = B({ x: 0, y: 0 }), pt = B(
|
|
3331
|
-
null
|
|
3332
|
-
), mt = (C = !0) => {
|
|
3333
|
-
Jt.value = !1, pt.value = null, C && Mt(x.value, !1);
|
|
3334
|
-
}, { fullPath: is } = wt(t);
|
|
3335
|
-
re(is, async () => {
|
|
3336
|
-
I(), mt(), await an(), Mt(0);
|
|
3337
|
-
});
|
|
3338
|
-
const vr = (C, O, A) => {
|
|
3339
|
-
const G = P(A);
|
|
3340
|
-
if (G) {
|
|
3341
|
-
if (C instanceof MouseEvent)
|
|
3342
|
-
_t.value.x = C.clientX, _t.value.y = C.clientY;
|
|
3343
|
-
else {
|
|
3344
|
-
const R = G.getBoundingClientRect();
|
|
3345
|
-
_t.value.x = R.x + R.width * 0.8, _t.value.y = R.y + R.height / 2;
|
|
3346
|
-
}
|
|
3347
|
-
pt.value = { item: O, index: A, element: G }, b(A) || w(A), Jt.value = !0;
|
|
3348
|
-
}
|
|
3349
|
-
}, yr = () => {
|
|
3350
|
-
const C = D.value.length === 0;
|
|
3351
|
-
D.value.some(
|
|
3352
|
-
(A) => !A.canBeDeleted
|
|
3353
|
-
) || C || (n("deleteItems", { items: D.value }), I(x.value), Mt(x.value, !1));
|
|
3354
|
-
}, ss = (C, O) => {
|
|
3355
|
-
C.canBeRenamed && (b(O) || w(O), N.value = C.id);
|
|
3356
|
-
}, os = (C) => {
|
|
3357
|
-
const { isDelete: O, isRename: A, anchorItem: G } = C;
|
|
3358
|
-
if (O) {
|
|
3359
|
-
yr(), mt(!1);
|
|
3360
|
-
return;
|
|
3361
|
-
}
|
|
3362
|
-
A && (N.value = G.id), mt(!1);
|
|
3363
|
-
}, as = (C, O, A) => {
|
|
3364
|
-
N.value !== C.id && w(A, O), mt(!1);
|
|
3365
|
-
}, xr = (C) => {
|
|
3366
|
-
if (r(C)) {
|
|
3367
|
-
s(C.id);
|
|
3368
|
-
return;
|
|
3369
|
-
}
|
|
3370
|
-
i(C) && n("openFile", C);
|
|
3371
|
-
}, ls = (C, O) => {
|
|
3372
|
-
const A = Fn();
|
|
3373
|
-
C[A] || xr(O);
|
|
3374
|
-
};
|
|
3375
|
-
return ks({
|
|
3376
|
-
targets: [u, Rt(t, "clickOutsideException")],
|
|
3377
|
-
callback: () => I(x.value)
|
|
3378
|
-
}), Cs(_.ref, _.onScroll), (C, O) => (M(), U("div", {
|
|
3379
|
-
class: Ne(["file-explorer", { "virtual-scrolling": t.virtual }])
|
|
3380
|
-
}, [
|
|
3381
|
-
V("table", Rn({
|
|
3382
|
-
tabindex: "0",
|
|
3383
|
-
class: ["scroll-container", { "keyboard-focus": E(wn) }],
|
|
3384
|
-
"aria-label": "list of files in the current folder"
|
|
3385
|
-
}, E(_), {
|
|
3386
|
-
onFocus: rs,
|
|
3387
|
-
onKeydown: O[8] || (O[8] = //@ts-ignore
|
|
3388
|
-
(...A) => E(y) && E(y)(...A))
|
|
3389
|
-
}), [
|
|
3390
|
-
V("tbody", {
|
|
3391
|
-
class: Ne(C.mode)
|
|
3392
|
-
}, [
|
|
3393
|
-
C.isRootFolder ? fe("", !0) : (M(), ue(yl, {
|
|
3394
|
-
key: 0,
|
|
3395
|
-
ref_key: "itemBack",
|
|
3396
|
-
ref: l,
|
|
3397
|
-
tabindex: "-1",
|
|
3398
|
-
class: Ne(["file-explorer-item", {
|
|
3399
|
-
"keyboard-focus": E(wn)
|
|
3400
|
-
}]),
|
|
3401
|
-
"is-dragging": E(Ge),
|
|
3402
|
-
onDragenter: O[0] || (O[0] = (A) => E(Pe)(A, -1, !0)),
|
|
3403
|
-
onDragleave: O[1] || (O[1] = (A) => E(Oe)(A, -1, !0)),
|
|
3404
|
-
onDragover: E(It),
|
|
3405
|
-
onDrop: O[2] || (O[2] = Ie((A) => Qt("moveItems", E(gr)(A, -1, !0)), ["prevent"])),
|
|
3406
|
-
onKeydown: O[3] || (O[3] = vt(Ie((A) => s(".."), ["stop", "prevent"]), ["enter"])),
|
|
3407
|
-
onClick: O[4] || (O[4] = (A) => s(".."))
|
|
3408
|
-
}, null, 8, ["class", "is-dragging", "onDragover"]))
|
|
3409
|
-
], 2),
|
|
3410
|
-
bl,
|
|
3411
|
-
V("tbody", {
|
|
3412
|
-
class: Ne(C.mode),
|
|
3413
|
-
style: Qn({ ...E(m), flexDirection: "column" })
|
|
3414
|
-
}, [
|
|
3415
|
-
(M(!0), U(Kt, null, Yr(p.value, (A, G) => (M(), ue(ul, {
|
|
3416
|
-
key: A.id,
|
|
3417
|
-
ref_for: !0,
|
|
3418
|
-
ref_key: "virtualItemRefs",
|
|
3419
|
-
ref: o,
|
|
3420
|
-
tabindex: "-1",
|
|
3421
|
-
class: Ne(["file-explorer-item", {
|
|
3422
|
-
"keyboard-focus": E(wn)
|
|
3423
|
-
}]),
|
|
3424
|
-
item: A,
|
|
3425
|
-
title: A.name,
|
|
3426
|
-
"is-dragging": E(Ge),
|
|
3427
|
-
"is-selected": E(b)(f.value[G]),
|
|
3428
|
-
"is-rename-active": A.id === N.value,
|
|
3429
|
-
"blacklisted-names": K.value,
|
|
3430
|
-
"is-dragging-enabled": !C.disableDragging,
|
|
3431
|
-
onDragstart: (R) => E(nt)(R, f.value[G]),
|
|
3432
|
-
onDragenter: (R) => E(Pe)(R, f.value[G]),
|
|
3433
|
-
onDragover: E(It),
|
|
3434
|
-
onDragleave: (R) => E(Oe)(R, f.value[G]),
|
|
3435
|
-
onDragend: (R) => Qt("dragend", E(ns)(R, A)),
|
|
3436
|
-
onDrag: (R) => Qt("drag", E(De)(R, A)),
|
|
3437
|
-
onClick: (R) => as(A, R, f.value[G]),
|
|
3438
|
-
onContextmenu: (R) => vr(R, A, f.value[G]),
|
|
3439
|
-
onKeydown: [
|
|
3440
|
-
vt(Ie((R) => vr(R, A, f.value[G]), ["shift"]), ["f10"]),
|
|
3441
|
-
vt(Ie(yr, ["stop", "prevent"]), ["delete"]),
|
|
3442
|
-
vt(Ie((R) => ss(A, f.value[G]), ["stop", "prevent"]), ["f2"]),
|
|
3443
|
-
vt(Ie((R) => ls(R, A), ["prevent"]), ["enter"])
|
|
3444
|
-
],
|
|
3445
|
-
onDrop: (R) => Qt("moveItems", E(gr)(R, f.value[G])),
|
|
3446
|
-
onDblclick: (R) => xr(A),
|
|
3447
|
-
"onRename:submit": O[5] || (O[5] = (R) => n("renameFile", R)),
|
|
3448
|
-
"onRename:clear": O[6] || (O[6] = (R) => N.value = null)
|
|
3449
|
-
}, ms({ _: 2 }, [
|
|
3450
|
-
C.$slots.itemIcon ? {
|
|
3451
|
-
name: "icon",
|
|
3452
|
-
fn: ee(() => [
|
|
3453
|
-
ce(C.$slots, "itemIcon", { item: A }, void 0, !0)
|
|
3454
|
-
]),
|
|
3455
|
-
key: "0"
|
|
3456
|
-
} : void 0,
|
|
3457
|
-
C.$slots.itemContent ? {
|
|
3458
|
-
name: "default",
|
|
3459
|
-
fn: ee((R) => [
|
|
3460
|
-
ce(C.$slots, "itemContent", {
|
|
3461
|
-
item: A,
|
|
3462
|
-
isRenameActive: R.isRenameActive,
|
|
3463
|
-
isSelected: R.isSelected
|
|
3464
|
-
}, void 0, !0)
|
|
3465
|
-
]),
|
|
3466
|
-
key: "1"
|
|
3467
|
-
} : void 0
|
|
3468
|
-
]), 1032, ["class", "item", "title", "is-dragging", "is-selected", "is-rename-active", "blacklisted-names", "is-dragging-enabled", "onDragstart", "onDragenter", "onDragover", "onDragleave", "onDragend", "onDrag", "onClick", "onContextmenu", "onKeydown", "onDrop", "onDblclick"]))), 128)),
|
|
3469
|
-
C.items.length === 0 ? (M(), U("tr", wl, [
|
|
3470
|
-
V("td", null, [
|
|
3471
|
-
ce(C.$slots, "emptyFolder", {}, () => [
|
|
3472
|
-
Vt("Folder is empty")
|
|
3473
|
-
], !0)
|
|
3474
|
-
])
|
|
3475
|
-
])) : fe("", !0)
|
|
3476
|
-
], 6),
|
|
3477
|
-
C.draggingAnimationMode !== "disabled" ? (M(), U("div", {
|
|
3478
|
-
key: 0,
|
|
3479
|
-
ref_key: "customPreviewContainer",
|
|
3480
|
-
ref: ge,
|
|
3481
|
-
class: "custom-preview"
|
|
3482
|
-
}, [
|
|
3483
|
-
ce(C.$slots, "customDragPreview", {}, () => [
|
|
3484
|
-
V("div", {
|
|
3485
|
-
ref_key: "customDragPreviewPlaceholder",
|
|
3486
|
-
ref: tt
|
|
3487
|
-
}, null, 512)
|
|
3488
|
-
], !0)
|
|
3489
|
-
], 512)) : fe("", !0),
|
|
3490
|
-
!t.disableContextMenu && Jt.value && pt.value ? (M(), ue(Ka, {
|
|
3491
|
-
key: 1,
|
|
3492
|
-
position: _t.value,
|
|
3493
|
-
anchor: pt.value,
|
|
3494
|
-
"selected-items": D.value,
|
|
3495
|
-
onItemClick: os,
|
|
3496
|
-
onClose: O[7] || (O[7] = () => mt())
|
|
3497
|
-
}, {
|
|
3498
|
-
default: ee((A) => [
|
|
3499
|
-
ce(C.$slots, "contextMenu", Rn({
|
|
3500
|
-
isContextMenuVisible: Jt.value,
|
|
3501
|
-
position: _t.value,
|
|
3502
|
-
anchor: pt.value,
|
|
3503
|
-
closeContextMenu: () => mt(),
|
|
3504
|
-
isMultipleSelectionActive: E(T)(pt.value.index)
|
|
3505
|
-
}, A), void 0, !0)
|
|
3506
|
-
]),
|
|
3507
|
-
_: 3
|
|
3508
|
-
}, 8, ["position", "anchor", "selected-items"])) : fe("", !0)
|
|
3509
|
-
], 16)
|
|
3510
|
-
], 2));
|
|
3511
|
-
}
|
|
3512
|
-
}), kl = /* @__PURE__ */ Ee(Sl, [["__scopeId", "data-v-171d043b"]]), Cl = {
|
|
3513
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3514
|
-
fill: "none",
|
|
3515
|
-
stroke: "#000",
|
|
3516
|
-
"stroke-linejoin": "round",
|
|
3517
|
-
viewBox: "0 0 32 32"
|
|
3518
|
-
}, Dl = /* @__PURE__ */ V("path", { d: "M10.429 26.684h-7.91V5.075h9.051l4.613 6.001h13.298v15.608h-2.779m-5.234-.372 4.227 4.226m3.786-19.462V7.075H13.104" }, null, -1), El = /* @__PURE__ */ V("circle", {
|
|
3519
|
-
cx: "17.997",
|
|
3520
|
-
cy: "22.84",
|
|
3521
|
-
r: "4.91"
|
|
3522
|
-
}, null, -1), Pl = [
|
|
3523
|
-
Dl,
|
|
3524
|
-
El
|
|
3525
|
-
];
|
|
3526
|
-
function Ol(a, e) {
|
|
3527
|
-
return M(), U("svg", Cl, [...Pl]);
|
|
3528
|
-
}
|
|
3529
|
-
const Al = { render: Ol }, es = Symbol("useApplyButton"), Il = () => {
|
|
3530
|
-
const a = B(null), e = B("Apply"), t = B(!1), n = B(), r = {
|
|
3531
|
-
element: a,
|
|
3532
|
-
disabled: t,
|
|
3533
|
-
text: e,
|
|
3534
|
-
onApply: n
|
|
3535
|
-
};
|
|
3536
|
-
return gs(es, r), r;
|
|
3537
|
-
}, Ml = () => vs(es), Rl = {
|
|
3538
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3539
|
-
fill: "none",
|
|
3540
|
-
stroke: "#000",
|
|
3541
|
-
"stroke-linejoin": "round",
|
|
3542
|
-
viewBox: "0 0 32 32"
|
|
3543
|
-
}, Fl = /* @__PURE__ */ V("path", { d: "m14.9 27-11-11 11-11m-11 11h24.2" }, null, -1), Bl = [
|
|
3544
|
-
Fl
|
|
3545
|
-
];
|
|
3546
|
-
function $l(a, e) {
|
|
3547
|
-
return M(), U("svg", Rl, [...Bl]);
|
|
3548
|
-
}
|
|
3549
|
-
const zl = { render: $l }, ts = (a) => (gn("data-v-ec54ee5f"), a = a(), vn(), a), Ll = { class: "flex-horizontal" }, Nl = /* @__PURE__ */ ts(() => /* @__PURE__ */ V("span", { class: "spacer" }, null, -1)), Vl = /* @__PURE__ */ ts(() => /* @__PURE__ */ V("span", { class: "bold" }, "Back to node configuration", -1)), Ul = /* @__PURE__ */ $e({
|
|
3550
|
-
__name: "SidePanelBackArrow",
|
|
3551
|
-
emits: ["click"],
|
|
3552
|
-
setup(a, { emit: e }) {
|
|
3553
|
-
const t = e;
|
|
3554
|
-
return (n, r) => (M(), U("div", Ll, [
|
|
3555
|
-
se(E(jr), {
|
|
3556
|
-
class: "arrow-left-button",
|
|
3557
|
-
onClick: r[0] || (r[0] = () => t("click"))
|
|
3558
|
-
}, {
|
|
3559
|
-
default: ee(() => [
|
|
3560
|
-
se(E(zl))
|
|
3561
|
-
]),
|
|
3562
|
-
_: 1
|
|
3563
|
-
}),
|
|
3564
|
-
Nl,
|
|
3565
|
-
Vl
|
|
3566
|
-
]));
|
|
3567
|
-
}
|
|
3568
|
-
}), Gl = /* @__PURE__ */ Ee(Ul, [["__scopeId", "data-v-ec54ee5f"]]), Hl = { class: "bottom-buttons" }, Wl = /* @__PURE__ */ $e({
|
|
3569
|
-
__name: "SettingsSubPanel",
|
|
3570
|
-
props: {
|
|
3571
|
-
showBackArrow: { type: Boolean, default: !1 }
|
|
3572
|
-
},
|
|
3573
|
-
emits: ["apply"],
|
|
3574
|
-
setup(a, { emit: e }) {
|
|
3575
|
-
const t = e, n = B(!1), r = () => {
|
|
3576
|
-
n.value = !0;
|
|
3577
|
-
}, i = () => {
|
|
3578
|
-
n.value = !1;
|
|
3579
|
-
}, s = () => {
|
|
3580
|
-
t("apply"), i();
|
|
3581
|
-
}, o = ln("setSubPanelExpanded"), {
|
|
3582
|
-
text: l,
|
|
3583
|
-
disabled: u,
|
|
3584
|
-
element: c,
|
|
3585
|
-
onApply: d
|
|
3586
|
-
} = Il(), h = () => {
|
|
3587
|
-
var m;
|
|
3588
|
-
return (m = d.value) == null ? void 0 : m.call(d).then(s).catch(() => {
|
|
3589
|
-
});
|
|
3590
|
-
};
|
|
3591
|
-
re(
|
|
3592
|
-
() => n.value,
|
|
3593
|
-
(m) => o({ isExpanded: m })
|
|
3594
|
-
);
|
|
3595
|
-
const _ = ln("getPanelsContainer")();
|
|
3596
|
-
return (m, f) => (M(), U(Kt, null, [
|
|
3597
|
-
ce(m.$slots, "expand-button", { expand: r }, void 0, !0),
|
|
3598
|
-
(M(), ue(ys, {
|
|
3599
|
-
disabled: !n.value,
|
|
3600
|
-
to: E(_)
|
|
3601
|
-
}, [
|
|
3602
|
-
se(E(qs), {
|
|
3603
|
-
"is-expanded": n.value,
|
|
3604
|
-
class: "side-drawer"
|
|
3605
|
-
}, {
|
|
3606
|
-
default: ee(() => [
|
|
3607
|
-
se(Ds, null, {
|
|
3608
|
-
default: ee(() => [
|
|
3609
|
-
m.showBackArrow ? (M(), ue(Gl, {
|
|
3610
|
-
key: 0,
|
|
3611
|
-
onClick: i
|
|
3612
|
-
})) : fe("", !0),
|
|
3613
|
-
ce(m.$slots, "default", {}, void 0, !0)
|
|
3614
|
-
]),
|
|
3615
|
-
"bottom-content": ee(() => [
|
|
3616
|
-
V("div", Hl, [
|
|
3617
|
-
se(E(wr), {
|
|
3618
|
-
"with-border": "",
|
|
3619
|
-
compact: "",
|
|
3620
|
-
onClick: i
|
|
3621
|
-
}, {
|
|
3622
|
-
default: ee(() => [
|
|
3623
|
-
Vt(" Cancel ")
|
|
3624
|
-
]),
|
|
3625
|
-
_: 1
|
|
3626
|
-
}),
|
|
3627
|
-
se(E(wr), {
|
|
3628
|
-
ref_key: "applyButton",
|
|
3629
|
-
ref: c,
|
|
3630
|
-
compact: "",
|
|
3631
|
-
primary: "",
|
|
3632
|
-
disabled: E(u),
|
|
3633
|
-
onClick: h
|
|
3634
|
-
}, {
|
|
3635
|
-
default: ee(() => [
|
|
3636
|
-
Vt(Ct(E(l)), 1)
|
|
3637
|
-
]),
|
|
3638
|
-
_: 1
|
|
3639
|
-
}, 8, ["disabled"])
|
|
3640
|
-
])
|
|
3641
|
-
]),
|
|
3642
|
-
_: 3
|
|
3643
|
-
})
|
|
3644
|
-
]),
|
|
3645
|
-
_: 3
|
|
3646
|
-
}, 8, ["is-expanded"])
|
|
3647
|
-
], 8, ["disabled", "to"]))
|
|
3648
|
-
], 64));
|
|
3649
|
-
}
|
|
3650
|
-
}), Yl = /* @__PURE__ */ Ee(Wl, [["__scopeId", "data-v-147add6c"]]), vu = /* @__PURE__ */ $e({
|
|
3651
|
-
__name: "FileBrowserButton",
|
|
3652
|
-
props: {
|
|
3653
|
-
disabled: { type: Boolean }
|
|
3654
|
-
},
|
|
3655
|
-
emits: ["apply"],
|
|
3656
|
-
setup(a, { emit: e }) {
|
|
3657
|
-
const t = e;
|
|
3658
|
-
return (n, r) => (M(), ue(Yl, {
|
|
3659
|
-
onApply: r[0] || (r[0] = () => t("apply"))
|
|
3660
|
-
}, {
|
|
3661
|
-
"expand-button": ee(({ expand: i }) => [
|
|
3662
|
-
se(E(jr), {
|
|
3663
|
-
class: "fit-content",
|
|
3664
|
-
disabled: n.disabled,
|
|
3665
|
-
primary: "",
|
|
3666
|
-
compact: "",
|
|
3667
|
-
onClick: i
|
|
3668
|
-
}, {
|
|
3669
|
-
default: ee(() => [
|
|
3670
|
-
se(E(Al))
|
|
3671
|
-
]),
|
|
3672
|
-
_: 2
|
|
3673
|
-
}, 1032, ["disabled", "onClick"])
|
|
3674
|
-
]),
|
|
3675
|
-
default: ee(() => [
|
|
3676
|
-
ce(n.$slots, "default")
|
|
3677
|
-
]),
|
|
3678
|
-
_: 3
|
|
3679
|
-
}));
|
|
3680
|
-
}
|
|
3681
|
-
}), Xl = (a) => {
|
|
3682
|
-
const e = F(() => a.value.isLocal), t = F(
|
|
3683
|
-
() => typeof a.value.portIndex < "u"
|
|
3684
|
-
), n = F(
|
|
3685
|
-
() => t.value ? ["CONNECTED"] : [
|
|
3686
|
-
...e.value ? ["LOCAL"] : [],
|
|
3687
|
-
"relative-to-current-hubspace",
|
|
3688
|
-
"relative-to-embedded-data",
|
|
3689
|
-
"CUSTOM_URL"
|
|
3690
|
-
]
|
|
3691
|
-
);
|
|
3692
|
-
return { isLocal: e, isConnected: t, validCategories: n };
|
|
3693
|
-
}, yu = (a) => {
|
|
3694
|
-
const { isLocal: e, isConnected: t } = Xl(a), n = ln("addStateProviderListener"), r = B([]), i = B(null), s = F(() => a.value.isWriter), o = F(() => a.value.mountId ?? "Current space"), l = F(() => a.value.spacePath), u = F(() => a.value.portIndex), c = F(
|
|
3695
|
-
() => a.value.fileSystemType ?? "Connected File System"
|
|
3696
|
-
), d = B(!1), h = (_) => {
|
|
3697
|
-
r.value = [_], i.value = _, d.value = !0;
|
|
3698
|
-
};
|
|
3699
|
-
return jt(() => {
|
|
3700
|
-
const { fileExtension: _, fileExtensionProvider: m, fileExtensions: f } = a.value;
|
|
3701
|
-
if (!_ && !m && !f) {
|
|
3702
|
-
d.value = !0;
|
|
3703
|
-
return;
|
|
3704
|
-
}
|
|
3705
|
-
_ ? h(_) : m ? n({ id: m }, h) : (f && (r.value = f), d.value = !0);
|
|
3706
|
-
}), {
|
|
3707
|
-
filteredExtensions: r,
|
|
3708
|
-
appendedExtension: i,
|
|
3709
|
-
isWriter: s,
|
|
3710
|
-
isLoaded: d,
|
|
3711
|
-
isLocal: e,
|
|
3712
|
-
mountId: o,
|
|
3713
|
-
spacePath: l,
|
|
3714
|
-
isConnected: t,
|
|
3715
|
-
portIndex: u,
|
|
3716
|
-
portFileSystemName: c
|
|
3717
|
-
};
|
|
3718
|
-
}, xu = ({
|
|
3719
|
-
/**
|
|
3720
|
-
* The onChange method that actually sets the value in the dialogs data.
|
|
3721
|
-
*/
|
|
3722
|
-
onChange: a,
|
|
3723
|
-
/**
|
|
3724
|
-
* The value from this ref will be taken as initial value for
|
|
3725
|
-
* the side drawer in the moment it is opened.
|
|
3726
|
-
*/
|
|
3727
|
-
initialValue: e
|
|
3728
|
-
}) => {
|
|
3729
|
-
const t = B(e.value), n = (i) => {
|
|
3730
|
-
t.value = i;
|
|
3731
|
-
}, r = () => a(t.value);
|
|
3732
|
-
return re(() => e.value, n), {
|
|
3733
|
-
onApply: r,
|
|
3734
|
-
sideDrawerValue: t,
|
|
3735
|
-
updateSideDrawerValue: n
|
|
3736
|
-
};
|
|
3737
|
-
}, ql = ({
|
|
3738
|
-
filteredExtensions: a,
|
|
3739
|
-
appendedExtension: e,
|
|
3740
|
-
isWriter: t,
|
|
3741
|
-
backendType: n
|
|
3742
|
-
}) => {
|
|
3743
|
-
const r = ln("getData");
|
|
3744
|
-
return {
|
|
3745
|
-
listItems: (o, l) => r({
|
|
3746
|
-
method: "fileChooser.listItems",
|
|
3747
|
-
options: [
|
|
3748
|
-
n.value,
|
|
3749
|
-
o,
|
|
3750
|
-
l,
|
|
3751
|
-
{
|
|
3752
|
-
extensions: a.value,
|
|
3753
|
-
isWriter: t.value
|
|
3754
|
-
}
|
|
3755
|
-
]
|
|
3756
|
-
}),
|
|
3757
|
-
getFilePath: (o, l) => r({
|
|
3758
|
-
method: "fileChooser.getFilePath",
|
|
3759
|
-
options: [n.value, o, l, e == null ? void 0 : e.value]
|
|
3760
|
-
})
|
|
3761
|
-
};
|
|
3762
|
-
}, bu = (a, e) => a === "LOCAL" ? "local" : a === "CONNECTED" ? `connected${e ?? -1}` : a === "relative-to-embedded-data" ? "embedded" : "relativeToCurrentHubSpace", Kl = {
|
|
3763
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3764
|
-
fill: "none",
|
|
3765
|
-
stroke: "#000",
|
|
3766
|
-
viewBox: "0 0 32 32"
|
|
3767
|
-
}, jl = /* @__PURE__ */ V("path", {
|
|
3768
|
-
"stroke-linejoin": "round",
|
|
3769
|
-
d: "M26.025 11.441v14.141H16M6.183 11.441v14.141H11m0 0v-7.291h5v7.291m-5 0h5"
|
|
3770
|
-
}, null, -1), Zl = /* @__PURE__ */ V("path", {
|
|
3771
|
-
"stroke-linejoin": "round",
|
|
3772
|
-
d: "m29.654 14.55-5.583-4.759v-5.5H21v2.882L16.104 3 2.554 14.55"
|
|
3773
|
-
}, null, -1), Ql = [
|
|
3774
|
-
jl,
|
|
3775
|
-
Zl
|
|
3776
|
-
];
|
|
3777
|
-
function Jl(a, e) {
|
|
3778
|
-
return M(), U("svg", Kl, [...Ql]);
|
|
3779
|
-
}
|
|
3780
|
-
const eu = { render: Jl }, tu = (a) => ({
|
|
3781
|
-
isDirectory: a.isDirectory,
|
|
3782
|
-
id: a.name,
|
|
3783
|
-
name: a.name,
|
|
3784
|
-
isOpen: !1,
|
|
3785
|
-
isOpenableFile: !0,
|
|
3786
|
-
canBeRenamed: !1,
|
|
3787
|
-
canBeDeleted: !1
|
|
3788
|
-
}), nu = (a) => (gn("data-v-e0777938"), a = a(), vn(), a), ru = {
|
|
3789
|
-
key: 0,
|
|
3790
|
-
class: "loading-animaton"
|
|
3791
|
-
}, iu = { class: "current-path" }, su = {
|
|
3792
|
-
key: 0,
|
|
3793
|
-
class: "error"
|
|
3794
|
-
}, ou = {
|
|
3795
|
-
key: 0,
|
|
3796
|
-
class: "name-input-wrapper"
|
|
3797
|
-
}, au = /* @__PURE__ */ nu(() => /* @__PURE__ */ V("span", null, "Name:", -1)), lu = /* @__PURE__ */ $e({
|
|
3798
|
-
__name: "DialogFileExplorer",
|
|
3799
|
-
props: {
|
|
3800
|
-
initialFilePath: { default: "" },
|
|
3801
|
-
isWriter: { type: Boolean, default: !1 },
|
|
3802
|
-
filteredExtensions: { default: () => [] },
|
|
3803
|
-
appendedExtension: { default: null },
|
|
3804
|
-
backendType: {},
|
|
3805
|
-
clickOutsideException: { default: null },
|
|
3806
|
-
openFileByExplorer: { type: Boolean, default: !1 },
|
|
3807
|
-
breadcrumbRoot: { default: null }
|
|
3808
|
-
},
|
|
3809
|
-
emits: ["fileIsSelected", "chooseFile"],
|
|
3810
|
-
setup(a, { expose: e, emit: t }) {
|
|
3811
|
-
const n = B(null), r = B([]), i = B([]), s = a, o = F(
|
|
3812
|
-
() => r.value.map((D, P) => {
|
|
3813
|
-
let $ = D.name, N = null;
|
|
3814
|
-
return typeof $ != "string" && (D.path === null ? s.breadcrumbRoot === null ? N = eu : $ = s.breadcrumbRoot : $ = D.path), {
|
|
3815
|
-
...$ === null ? {} : { text: $ },
|
|
3816
|
-
title: $ ?? "Root",
|
|
3817
|
-
path: D.path,
|
|
3818
|
-
clickable: P !== r.value.length - 1,
|
|
3819
|
-
...N ? { icon: N } : {}
|
|
3820
|
-
};
|
|
3821
|
-
})
|
|
3822
|
-
), l = t, u = B(!0), c = (D) => {
|
|
3823
|
-
u.value = !1, n.value = D.path, r.value = D.parentFolders, i.value = D.items.map(tu);
|
|
3824
|
-
}, d = B(null), h = (D) => {
|
|
3825
|
-
d.value = D ?? null;
|
|
3826
|
-
}, _ = B("");
|
|
3827
|
-
re(
|
|
3828
|
-
() => _.value,
|
|
3829
|
-
(D) => l("fileIsSelected", D !== "")
|
|
3830
|
-
);
|
|
3831
|
-
const m = (D) => {
|
|
3832
|
-
s.isWriter && (_.value = D);
|
|
3833
|
-
}, f = (D) => {
|
|
3834
|
-
c(D.folder), h(D.errorMessage), m(D.filePathRelativeToFolder);
|
|
3835
|
-
}, { filteredExtensions: p, appendedExtension: g, isWriter: v, backendType: S } = wt(s), { listItems: w, getFilePath: y } = ql({
|
|
3836
|
-
filteredExtensions: p,
|
|
3837
|
-
appendedExtension: g,
|
|
3838
|
-
isWriter: v,
|
|
3839
|
-
backendType: S
|
|
3840
|
-
});
|
|
3841
|
-
re(
|
|
3842
|
-
() => S.value,
|
|
3843
|
-
() => w(null, s.initialFilePath).then(f),
|
|
3844
|
-
{ immediate: !0 }
|
|
3845
|
-
);
|
|
3846
|
-
const b = B(""), x = (D, P = null) => {
|
|
3847
|
-
b.value = "", _.value = "", u.value = !0, w(D, P).then(f);
|
|
3848
|
-
}, k = (D) => x(n.value, D), T = ({ path: D }) => x(D ?? null), I = async (D) => {
|
|
3849
|
-
const { path: P, errorMessage: $ } = await y(n.value, D);
|
|
3850
|
-
return P === null ? (h($), Promise.reject($)) : (l("chooseFile", P), Promise.resolve());
|
|
3851
|
-
};
|
|
3852
|
-
e({
|
|
3853
|
-
openFile: () => I(_.value)
|
|
3854
|
-
});
|
|
3855
|
-
const L = (D) => {
|
|
3856
|
-
if (D.length === 0) {
|
|
3857
|
-
b.value = "", s.isWriter || (_.value = "");
|
|
3858
|
-
return;
|
|
3859
|
-
}
|
|
3860
|
-
const P = i.value.find(({ id: $ }) => $ === D[0]);
|
|
3861
|
-
P.isDirectory ? (b.value = P.name, _.value = "") : (b.value = "", _.value = P.name);
|
|
3862
|
-
};
|
|
3863
|
-
return (D, P) => u.value ? (M(), U("div", ru, [
|
|
3864
|
-
se(E(Es), { class: "icon" })
|
|
3865
|
-
])) : (M(), U(Kt, { key: 1 }, [
|
|
3866
|
-
V("div", iu, [
|
|
3867
|
-
se(E(Ns), {
|
|
3868
|
-
class: "breadcrumb",
|
|
3869
|
-
items: o.value,
|
|
3870
|
-
"no-wrap": "",
|
|
3871
|
-
compact: "",
|
|
3872
|
-
onClickItem: T
|
|
3873
|
-
}, null, 8, ["items", "onClickItem"]),
|
|
3874
|
-
d.value !== null ? (M(), U("span", su, "(" + Ct(d.value) + ")", 1)) : fe("", !0)
|
|
3875
|
-
]),
|
|
3876
|
-
E(v) ? (M(), U("div", ou, [
|
|
3877
|
-
au,
|
|
3878
|
-
se(E(Kr), {
|
|
3879
|
-
modelValue: _.value,
|
|
3880
|
-
"onUpdate:modelValue": P[0] || (P[0] = ($) => _.value = $)
|
|
3881
|
-
}, null, 8, ["modelValue"])
|
|
3882
|
-
])) : fe("", !0),
|
|
3883
|
-
se(E(kl), {
|
|
3884
|
-
class: "explorer",
|
|
3885
|
-
"is-root-folder": n.value === null,
|
|
3886
|
-
items: i.value,
|
|
3887
|
-
"disable-context-menu": !0,
|
|
3888
|
-
"disable-multi-select": !0,
|
|
3889
|
-
"disable-dragging": !0,
|
|
3890
|
-
"click-outside-exception": D.clickOutsideException,
|
|
3891
|
-
onChangeDirectory: k,
|
|
3892
|
-
onOpenFile: P[1] || (P[1] = ($) => D.openFileByExplorer && I($.name).catch(() => {
|
|
3893
|
-
})),
|
|
3894
|
-
"onUpdate:selectedItemIds": L
|
|
3895
|
-
}, null, 8, ["is-root-folder", "items", "click-outside-exception"])
|
|
3896
|
-
], 64));
|
|
3897
|
-
}
|
|
3898
|
-
}), uu = /* @__PURE__ */ Ee(lu, [["__scopeId", "data-v-e0777938"]]), cu = { class: "wrapper" }, fu = /* @__PURE__ */ $e({
|
|
3899
|
-
__name: "FileExplorerTab",
|
|
3900
|
-
props: {
|
|
3901
|
-
initialFilePath: { default: "" },
|
|
3902
|
-
isWriter: { type: Boolean, default: !1 },
|
|
3903
|
-
filteredExtensions: { default: () => [] },
|
|
3904
|
-
appendedExtension: { default: null },
|
|
3905
|
-
backendType: {},
|
|
3906
|
-
clickOutsideException: {},
|
|
3907
|
-
openFileByExplorer: { type: Boolean },
|
|
3908
|
-
breadcrumbRoot: {}
|
|
3909
|
-
},
|
|
3910
|
-
emits: ["chooseFile"],
|
|
3911
|
-
setup(a, { emit: e }) {
|
|
3912
|
-
const t = a, n = e, r = B(null), i = () => {
|
|
3913
|
-
var d;
|
|
3914
|
-
return (d = r.value) == null ? void 0 : d.openFile();
|
|
3915
|
-
}, {
|
|
3916
|
-
element: s,
|
|
3917
|
-
disabled: o,
|
|
3918
|
-
text: l,
|
|
3919
|
-
onApply: u
|
|
3920
|
-
} = Ml();
|
|
3921
|
-
jt(() => {
|
|
3922
|
-
l.value = "Choose File", o.value = !0, u.value = i;
|
|
3923
|
-
});
|
|
3924
|
-
const c = (d) => {
|
|
3925
|
-
n("chooseFile", d);
|
|
3926
|
-
};
|
|
3927
|
-
return (d, h) => (M(), U("div", cu, [
|
|
3928
|
-
se(uu, Rn({
|
|
3929
|
-
ref_key: "explorer",
|
|
3930
|
-
ref: r
|
|
3931
|
-
}, t, {
|
|
3932
|
-
"click-outside-exception": E(s),
|
|
3933
|
-
onChooseFile: c,
|
|
3934
|
-
onFileIsSelected: h[0] || (h[0] = (_) => {
|
|
3935
|
-
o.value = !_;
|
|
3936
|
-
})
|
|
3937
|
-
}), null, 16, ["click-outside-exception"])
|
|
3938
|
-
]));
|
|
3939
|
-
}
|
|
3940
|
-
}), wu = /* @__PURE__ */ Ee(fu, [["__scopeId", "data-v-84b73a7f"]]);
|
|
3941
|
-
export {
|
|
3942
|
-
el as F,
|
|
3943
|
-
vu as _,
|
|
3944
|
-
Ml as a,
|
|
3945
|
-
yu as b,
|
|
3946
|
-
wu as c,
|
|
3947
|
-
Xl as d,
|
|
3948
|
-
xu as e,
|
|
3949
|
-
bu as g,
|
|
3950
|
-
ql as u
|
|
3951
|
-
};
|