@gct-paas/core-web 0.1.6-dev.15 → 0.1.6-dev.17
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/dist/ColorPicker-BGXmyt7q.js +2 -0
- package/dist/{JsBarcode-COunfKNO.js → JsBarcode-hbJ0aUTj.js} +2 -2
- package/dist/{utils-1hIMq32P.js → _plugin-vue_export-helper-B8JDTS5A.js} +2 -2
- package/dist/{chunk-CeX__g8u.js → chunk-FrdinjiM.js} +1 -1
- package/dist/{cropper-CVnZnyhI.js → cropper-kXOaEuXy.js} +2 -2
- package/dist/{de_DE-CXxQwKMQ.js → de_DE-CMOqPpMk.js} +2 -2
- package/dist/{defineProperty-DDBtkzz5.js → defineProperty-DAxeR2uH.js} +1 -1
- package/dist/{diagram-config-item-Bmn1dfVu.js → diagram-config-item-DUh3mUtV.js} +2 -2
- package/dist/{diagram-config-item-reverse-2DZGf6tV.js → diagram-config-item-reverse-C-lK_M8W.js} +2 -2
- package/dist/{diagram-config-item-virtual-BcVn7C3j.js → diagram-config-item-virtual-2m1EFdOj.js} +2 -2
- package/dist/{en_US-3Q4NcT39.js → en_US-DW_aBniN.js} +2 -2
- package/dist/{es_ES-C93EhKUt.js → es_ES-Bog1JAla.js} +2 -2
- package/dist/{fr_FR-D2dS74tH.js → fr_FR-B88CF-a2.js} +2 -2
- package/dist/{hooks-Dlci7Y_k.js → hooks-xq807tVG.js} +2 -2
- package/dist/{icon-next-picker-C0xMEvp7.js → icon-next-picker-COelGwZZ.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-C7ON9ru7.js → ja_JP-DQorABU8.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/monaco-editor-C9gHdPuf.js +2 -0
- package/dist/{objectSpread2-C8eu0aH8.js → objectSpread2-DPfqyX1h.js} +1 -1
- package/dist/{overlayscrollbars-vue-CaFsDgU3.js → overlayscrollbars-vue-DMDFLsJ4.js} +1 -1
- package/dist/{pt_PT-8ZpsbQuO.js → pt_PT-fO3ABuZp.js} +2 -2
- package/dist/{relationship-diagram-config-TD_kmHSY.js → relationship-diagram-config-D7HC1Hk4.js} +2 -2
- package/dist/{rich-editor-Zvvtfl11.js → rich-editor-BYF_B5mz.js} +2 -2
- package/dist/{ru_RU-ClPC9fIj.js → ru_RU-DqC5EhBW.js} +2 -2
- package/dist/template-DwBghb9z.js +2 -0
- package/dist/{tr_TR-IdN74S9H.js → tr_TR-Dau_nW2e.js} +2 -2
- package/dist/{useMonacoEditor-C73zvdQc.js → useMonacoEditor-Zk3dJDl-.js} +2 -2
- package/dist/{vi_VN-5jRSXykJ.js → vi_VN-BWVyxMZC.js} +2 -2
- package/dist/{zh_CN-BOOnrmuK.js → zh_CN-CwWZ2JFL.js} +2 -2
- package/dist/{zh_TW-BeWiTMnz.js → zh_TW-NtzRUp8G.js} +2 -2
- package/es/components/I18nSelect/src/i18n-select-input-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +3 -2
- package/es/components/I18nSelect/src/i18n-select-textarea-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +3 -2
- package/es/components/field-tree-select/field-tree-select.vue.mjs +2 -2
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/field-tree-select/{field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css → field-tree-select.vue_vue_type_style_index_0_scoped_24efd443_lang.css} +20 -20
- package/es/components/image-upload/src/components/upload-design.vue.mjs +2 -2
- package/es/components/image-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +3 -2
- package/es/components/image-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_15add37b_lang.css +33 -0
- package/es/components/index.d.ts +1 -1
- package/es/components/index.mjs +2 -1
- package/es/components/number-range/number-range.vue.mjs +2 -2
- package/es/components/number-range/number-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/number-range/{number-range.vue_vue_type_style_index_0_scoped_283a5280_lang.css → number-range.vue_vue_type_style_index_0_scoped_9970d677_lang.css} +2 -2
- package/es/components/open-select-user-modal/SelectUserContainer.vue.d.ts +20 -0
- package/es/components/open-select-user-modal/SelectUserContainer.vue.mjs +8 -0
- package/es/components/open-select-user-modal/SelectUserContainer.vue_vue_type_script_setup_true_name_SelectUserContainer_lang.mjs +381 -0
- package/es/components/open-select-user-modal/SelectUserContainer.vue_vue_type_style_index_0_scoped_64a9b545_lang.css +11 -0
- package/es/components/open-select-user-modal/SelectUserContainer.vue_vue_type_style_index_1_lang.css +144 -0
- package/es/components/open-select-user-modal/component/dynamic.vue.d.ts +12 -0
- package/es/components/open-select-user-modal/component/dynamic.vue.mjs +7 -0
- package/es/components/open-select-user-modal/component/dynamic.vue_vue_type_script_setup_true_name_waiting-area-dynamic_lang.mjs +143 -0
- package/es/components/open-select-user-modal/component/dynamic.vue_vue_type_style_index_0_scoped_e32390db_lang.css +30 -0
- package/es/components/open-select-user-modal/component/extra-user.vue.d.ts +16 -0
- package/es/components/open-select-user-modal/component/extra-user.vue.mjs +7 -0
- package/es/components/open-select-user-modal/component/extra-user.vue_vue_type_script_setup_true_name_waiting-area-extra-user_lang.mjs +80 -0
- package/es/components/open-select-user-modal/component/extra-user.vue_vue_type_style_index_0_scoped_75c9dc57_lang.css +12 -0
- package/es/components/open-select-user-modal/component/org.vue.d.ts +11 -0
- package/es/components/open-select-user-modal/component/org.vue.mjs +6 -0
- package/es/components/open-select-user-modal/component/org.vue_vue_type_script_setup_true_name_waiting-area-org_lang.mjs +87 -0
- package/es/components/open-select-user-modal/component/org.vue_vue_type_style_index_0_lang.css +114 -0
- package/es/components/open-select-user-modal/component/role.vue.d.ts +11 -0
- package/es/components/open-select-user-modal/component/role.vue.mjs +6 -0
- package/es/components/open-select-user-modal/component/role.vue_vue_type_script_setup_true_name_waiting-area-role_lang.mjs +90 -0
- package/es/{modules/process-designer/design/bmpn-panel.vue.d.ts → components/open-select-user-modal/component/search-input.vue.d.ts} +3 -4
- package/es/components/open-select-user-modal/component/search-input.vue.mjs +5 -0
- package/es/components/open-select-user-modal/component/search-input.vue_vue_type_script_setup_true_name_search-input_lang.mjs +35 -0
- package/es/components/open-select-user-modal/component/select-area.vue.d.ts +10 -0
- package/es/components/open-select-user-modal/component/select-area.vue.mjs +7 -0
- package/es/components/open-select-user-modal/component/select-area.vue_vue_type_script_setup_true_name_waiting-area-select-area_lang.mjs +125 -0
- package/es/components/open-select-user-modal/component/select-area.vue_vue_type_style_index_0_scoped_7ba4ab92_lang.css +36 -0
- package/es/components/open-select-user-modal/component/user-group.vue.d.ts +11 -0
- package/es/components/open-select-user-modal/component/user-group.vue.mjs +6 -0
- package/es/components/open-select-user-modal/component/user-group.vue_vue_type_script_setup_true_name_waiting-area-user-group_lang.mjs +87 -0
- package/es/components/open-select-user-modal/component/user.vue.d.ts +17 -0
- package/es/components/open-select-user-modal/component/user.vue.mjs +8 -0
- package/es/components/open-select-user-modal/component/user.vue_vue_type_script_setup_true_name_waiting-area-user_lang.mjs +204 -0
- package/es/components/open-select-user-modal/component/user.vue_vue_type_style_index_1_scoped_c546c256_lang.css +45 -0
- package/es/components/open-select-user-modal/controller/base-controller.d.ts +21 -0
- package/es/components/open-select-user-modal/controller/base-controller.mjs +15 -0
- package/es/components/open-select-user-modal/controller/edhr-controller.d.ts +17 -0
- package/es/components/open-select-user-modal/controller/edhr-controller.mjs +39 -0
- package/es/components/open-select-user-modal/controller/index.d.ts +18 -0
- package/es/components/open-select-user-modal/controller/index.mjs +42 -0
- package/es/components/open-select-user-modal/controller/paas-controller.d.ts +10 -0
- package/es/components/open-select-user-modal/controller/paas-controller.mjs +31 -0
- package/es/components/open-select-user-modal/index.d.ts +15 -0
- package/es/components/open-select-user-modal/index.mjs +41 -0
- package/es/components/open-select-user-modal/type/index.d.ts +7 -0
- package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +2 -2
- package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/es/components/paas-bpmn-log/components/{approval-node.vue_vue_type_style_index_0_scoped_a8065b24_lang.css → approval-node.vue_vue_type_style_index_0_scoped_1ee4a0bd_lang.css} +9 -9
- package/es/components/paas-bpmn-log/components/user-list.vue.mjs +2 -2
- package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_script_setup_true_lang.mjs +2 -1
- package/es/components/paas-bpmn-log/components/{user-list.vue_vue_type_style_index_0_scoped_27aa2bf0_lang.css → user-list.vue_vue_type_style_index_0_scoped_80624e20_lang.css} +3 -3
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +2 -2
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +13 -13
- package/es/components/paas-bpmn-log/{paas-bpmn-log.vue_vue_type_style_index_0_scoped_eb574523_lang.css → paas-bpmn-log.vue_vue_type_style_index_0_scoped_3882c856_lang.css} +9 -9
- package/es/index.d.ts +0 -1
- package/es/index.mjs +3 -3
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.mjs +2 -2
- package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +55 -70
- package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +1 -1
- package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_c85d53db_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_840e141f_lang.css} +16 -16
- package/package.json +7 -8
- package/dist/ColorPicker-uRTV30Ek.js +0 -2
- package/dist/_plugin-vue_export-helper-DMiyj2_E.js +0 -2
- package/dist/components-DAMtsLWz.js +0 -2
- package/dist/event-B7FDoAwS.js +0 -2
- package/dist/event-BG4yEFkW.js +0 -2
- package/dist/event-config-BX4ZNl-X.js +0 -2
- package/dist/event-l3QZLg2C.js +0 -2
- package/dist/field-permission-GbxXo2GX.js +0 -2
- package/dist/global-modal-b7mA5_Bp.js +0 -2
- package/dist/monaco-editor-BcDFov5A.js +0 -2
- package/dist/node-basic-info-wXj70byk.js +0 -2
- package/dist/node-binding-page-BPi81gHU.js +0 -2
- package/dist/node-btns-BZZkBDUc.js +0 -2
- package/dist/paas-bpmn-runtime-DYHPmrd-.js +0 -2
- package/dist/perm-CYQVUPZR.js +0 -2
- package/dist/perm-Dhu5vcqq.js +0 -2
- package/dist/process-designer-CoCJM0jR.js +0 -2
- package/dist/prop-9RS10yk0.js +0 -2
- package/dist/prop-B8lmM6h4.js +0 -2
- package/dist/prop-CXaVOYud.js +0 -2
- package/dist/prop-CrNWtARu.js +0 -2
- package/dist/prop-DuAVrO3B.js +0 -2
- package/dist/prop-LtDc8or1.js +0 -2
- package/dist/prop-f5r9vRs4.js +0 -2
- package/dist/select-script-B5aeNjn5.js +0 -2
- package/dist/simple-collapse-Cwn3DXVw.js +0 -2
- package/dist/template-C0L8wwo4.js +0 -2
- package/dist/useProcess-CSoUgJu4.js +0 -2
- package/es/components/BpmnRuntime/index.d.ts +0 -5
- package/es/components/BpmnRuntime/index.mjs +0 -5
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.d.ts +0 -5
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs +0 -5
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue_vue_type_script_setup_true_lang.mjs +0 -83
- package/es/components/image-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_575d3a1a_lang.css +0 -33
- package/es/modules/process-designer/components/event-config.vue.mjs +0 -7
- package/es/modules/process-designer/components/event-config.vue_vue_type_script_setup_true_lang.mjs +0 -128
- package/es/modules/process-designer/components/event-config.vue_vue_type_style_index_0_scoped_572d5ffd_lang.css +0 -15
- package/es/modules/process-designer/components/field-permission.vue.mjs +0 -7
- package/es/modules/process-designer/components/field-permission.vue_vue_type_script_setup_true_lang.mjs +0 -206
- package/es/modules/process-designer/components/field-permission.vue_vue_type_style_index_0_scoped_d8767690_lang.css +0 -46
- package/es/modules/process-designer/components/form-item.vue.mjs +0 -7
- package/es/modules/process-designer/components/form-item.vue_vue_type_script_setup_true_name_form-item_lang.mjs +0 -61
- package/es/modules/process-designer/components/form-item.vue_vue_type_style_index_0_scoped_7fbde61b_lang.css +0 -37
- package/es/modules/process-designer/components/node-basic-info.vue.mjs +0 -5
- package/es/modules/process-designer/components/node-basic-info.vue_vue_type_script_setup_true_lang.mjs +0 -87
- package/es/modules/process-designer/components/node-binding-page.vue.mjs +0 -7
- package/es/modules/process-designer/components/node-binding-page.vue_vue_type_script_setup_true_lang.mjs +0 -348
- package/es/modules/process-designer/components/node-binding-page.vue_vue_type_style_index_0_scoped_9c31c6c8_lang.css +0 -4
- package/es/modules/process-designer/components/node-btns.vue.mjs +0 -7
- package/es/modules/process-designer/components/node-btns.vue_vue_type_script_setup_true_lang.mjs +0 -170
- package/es/modules/process-designer/components/node-btns.vue_vue_type_style_index_0_scoped_6d0b3f3b_lang.css +0 -8
- package/es/modules/process-designer/components/select-script.vue.mjs +0 -5
- package/es/modules/process-designer/components/select-script.vue_vue_type_script_setup_true_lang.mjs +0 -143
- package/es/modules/process-designer/components/simple-collapse.vue.mjs +0 -7
- package/es/modules/process-designer/components/simple-collapse.vue_vue_type_script_setup_true_lang.mjs +0 -36
- package/es/modules/process-designer/components/simple-collapse.vue_vue_type_style_index_0_scoped_27ea34cc_lang.css +0 -28
- package/es/modules/process-designer/constants/index.d.ts +0 -12
- package/es/modules/process-designer/constants/index.mjs +0 -88
- package/es/modules/process-designer/design/bmpn-panel.vue.mjs +0 -7
- package/es/modules/process-designer/design/bmpn-panel.vue_vue_type_script_setup_true_lang.mjs +0 -93
- package/es/modules/process-designer/design/bmpn-panel.vue_vue_type_style_index_0_scoped_eba73224_lang.css +0 -140
- package/es/modules/process-designer/design/bpmn-global.vue.d.ts +0 -2
- package/es/modules/process-designer/design/bpmn-global.vue.mjs +0 -7
- package/es/modules/process-designer/design/bpmn-global.vue_vue_type_script_setup_true_lang.mjs +0 -16
- package/es/modules/process-designer/design/bpmn-global.vue_vue_type_style_index_0_scoped_c9d6d005_lang.css +0 -7
- package/es/modules/process-designer/design/bpmn-header.vue.d.ts +0 -2
- package/es/modules/process-designer/design/bpmn-header.vue.mjs +0 -7
- package/es/modules/process-designer/design/bpmn-header.vue_vue_type_script_setup_true_lang.mjs +0 -39
- package/es/modules/process-designer/design/bpmn-header.vue_vue_type_style_index_0_scoped_92044d4c_lang.css +0 -37
- package/es/modules/process-designer/design/bpmn-versions.vue.d.ts +0 -2
- package/es/modules/process-designer/design/bpmn-versions.vue.mjs +0 -7
- package/es/modules/process-designer/design/bpmn-versions.vue_vue_type_script_setup_true_lang.mjs +0 -99
- package/es/modules/process-designer/design/bpmn-versions.vue_vue_type_style_index_0_scoped_c8252604_lang.css +0 -96
- package/es/modules/process-designer/hook/useProcess.d.ts +0 -663
- package/es/modules/process-designer/hook/useProcess.mjs +0 -340
- package/es/modules/process-designer/index.d.ts +0 -7
- package/es/modules/process-designer/index.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnApproval/event.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnApproval/event.vue_vue_type_script_setup_true_lang.mjs +0 -14
- package/es/modules/process-designer/panels/bpmnApproval/perm.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnApproval/perm.vue_vue_type_script_setup_true_lang.mjs +0 -18
- package/es/modules/process-designer/panels/bpmnApproval/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnApproval/prop.vue_vue_type_script_setup_true_lang.mjs +0 -167
- package/es/modules/process-designer/panels/bpmnEnd/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnEnd/prop.vue_vue_type_script_setup_true_lang.mjs +0 -32
- package/es/modules/process-designer/panels/bpmnJoin/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnJoin/prop.vue_vue_type_script_setup_true_lang.mjs +0 -32
- package/es/modules/process-designer/panels/bpmnJs/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnJs/prop.vue_vue_type_script_setup_true_lang.mjs +0 -73
- package/es/modules/process-designer/panels/bpmnMessage/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnMessage/prop.vue_vue_type_script_setup_true_lang.mjs +0 -92
- package/es/modules/process-designer/panels/bpmnSubmit/event.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnSubmit/event.vue_vue_type_script_setup_true_lang.mjs +0 -14
- package/es/modules/process-designer/panels/bpmnSubmit/perm.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnSubmit/perm.vue_vue_type_script_setup_true_lang.mjs +0 -18
- package/es/modules/process-designer/panels/bpmnSubmit/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/bpmnSubmit/prop.vue_vue_type_script_setup_true_lang.mjs +0 -47
- package/es/modules/process-designer/panels/global/event.vue.mjs +0 -5
- package/es/modules/process-designer/panels/global/event.vue_vue_type_script_setup_true_lang.mjs +0 -14
- package/es/modules/process-designer/panels/global/prop.vue.mjs +0 -5
- package/es/modules/process-designer/panels/global/prop.vue_vue_type_script_setup_true_lang.mjs +0 -193
- package/es/modules/process-designer/panels/index.d.ts +0 -4
- package/es/modules/process-designer/panels/index.mjs +0 -37
- package/es/modules/process-designer/process-designer.vue.d.ts +0 -6
- package/es/modules/process-designer/process-designer.vue.mjs +0 -6
- package/es/modules/process-designer/process-designer.vue_vue_type_script_setup_true_lang.mjs +0 -69
- package/es/modules/process-designer/process-designer.vue_vue_type_style_index_0_lang.css +0 -98
- package/es/modules/process-designer/types/index.d.ts +0 -105
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{i as e,n as t,r as n,t as r}from"./chunk-CeX__g8u.js";import{t as o}from"./defineProperty-DDBtkzz5.js";import{Modal as i,OverlayContainer as a,OverlayPopoverContainer as s,ProjectName as c,t as u,useNamespace as l}from"@gct-paas/core";import*as d from"vue";import{Fragment as f,computed as h,createVNode as g,defineComponent as p,getCurrentInstance as v,getCurrentScope as m,h as y,hasInjectionContext as w,inject as b,isRef as O,isVNode as T,nextTick as S,onBeforeMount as D,onBeforeUnmount as I,onMounted as E,onScopeDispose as x,onUnmounted as C,provide as P,reactive as j,ref as R,resolveComponent as N,shallowReadonly as A,shallowRef as k,toRaw as M,toRef as L,toRefs as _,toValue as F,unref as H,watch as W,watchEffect as U}from"vue";import{cloneDeep as $,isFunction as z,isNumber as B,isString as V,merge as q}from"lodash-es";import{ConfigProvider as Y,message as X}from"ant-design-vue";function G(e,t){return!!m()&&(x(e,t),!0)}var K=/* @__PURE__ */new WeakMap,Z="undefined"!=typeof window&&"undefined"!=typeof document,J=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),Q=Object.prototype.toString,ee=()=>{},te=/* @__PURE__ */ne();function ne(){var e,t,n;return Z&&!!(null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null===(n=window)||void 0===n?void 0:n.navigator.userAgent))}function re(e,t){return function(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}}var oe=e=>e();function ie(e,t={}){let n,r,o=ee;const i=e=>{clearTimeout(e),o(),o=ee};let a;return s=>{const c=F(e),u=F(t.maxWait);return n&&i(n),c<=0||void 0!==u&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(s())):new Promise((e,l)=>{o=t.rejectOnCancel?l:e,a=s,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,e(a())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,e(s())},c)})}}function ae(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function se(e){return Array.isArray(e)?e:[e]}function ce(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}var ue=/\B([A-Z])/g,le=(ce(e=>e.replace(ue,"-$1").toLowerCase()),/-(\w)/g);function de(e){return e||v()}function fe(e,t=200,n={}){return re(ie(t,n),e)}function he(e,t=!0,n){de(n)?E(e,n):t?e():S(e)}function ge(e,t){de(t)&&C(e,t)}function pe(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=k(!1);let a;function s(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,s()}function u(...n){o&&e(),s(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...n)},F(t))}return r&&(i.value=!0,Z&&u()),G(c),{isPending:A(i),start:u,stop:c}}function ve(e,t,n={}){const{debounce:r=0,maxWait:o,...i}=n;return function(e,t,n={}){const{eventFilter:r=oe,...o}=n;return W(e,re(r,t),o)}(e,t,{...i,eventFilter:ie(r,{maxWait:o})})}ce(e=>e.replace(le,(e,t)=>t?t.toUpperCase():""));var me=Z?window:void 0,ye=Z?window.document:void 0;function we(e){var t;const n=F(e);return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function be(...e){const t=h(()=>{const t=se(F(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return n=([e,t,n,r],o,i)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==n?void 0:n.length))return;const a=(s=r,"[object Object]"===Q.call(s)?{...r}:r);var s;const c=e.flatMap(e=>t.flatMap(t=>n.map(n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,a))));i(()=>{c.forEach(e=>e())})},r={flush:"post"},W(()=>{var n,r;return[null!==(n=null===(r=t.value)||void 0===r?void 0:r.map(e=>we(e)))&&void 0!==n?n:[me].filter(e=>null!=e),se(F(t.value?e[1]:e[0])),se(H(t.value?e[2]:e[1])),F(t.value?e[3]:e[2])]},n,{...r,immediate:!0});var n,r}Z&&window.navigator,Z&&window.location;var Oe=!1;function Te(e,t,n={}){const{window:r=me,ignore:o=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=n;if(!r)return s?{stop:ee,cancel:ee,trigger:ee}:ee;if(te&&!Oe){Oe=!0;const e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener("click",ee,e)),r.document.documentElement.addEventListener("click",ee,e)}let c=!0;const u=e=>F(o).some(t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=we(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{const r=we(e);null!=n.target&&(r instanceof Element||!function(e){const t=F(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const n=F(e),r=n.$.subTree&&n.$.subTree.children;return!(null==r||!Array.isArray(r))&&r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,n))&&r&&r!==n.target&&!n.composedPath().includes(r)&&("detail"in n&&0===n.detail&&(c=!u(n)),c?t(n):c=!0)};let d=!1;const f=[be(r,"click",e=>{d||(d=!0,setTimeout(()=>{d=!1},0),l(e))},{passive:!0,capture:i}),be(r,"pointerdown",t=>{const n=we(e);c=!u(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),a&&be(r,"blur",n=>{setTimeout(()=>{var o;const i=we(e);"IFRAME"!==(null===(o=r.document.activeElement)||void 0===o?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)},0)},{passive:!0})].filter(Boolean),h=()=>f.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,l(e),c=!1}}:h}function Se(e){const t=function(){const e=k(!1),t=v();return t&&E(()=>{e.value=!0},t),e}();return h(()=>(t.value,Boolean(e())))}function De(e,t,n={}){const{window:r=me,...o}=n;let i;const a=/* @__PURE__ */Se(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=W(h(()=>{const t=se(F(e)).map(we).filter(J);return new Set(t)}),e=>{s(),a.value&&e.size&&(i=new MutationObserver(t),e.forEach(e=>i.observe(e,o)))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return G(u),{isSupported:a,stop:u,takeRecords:()=>null==i?void 0:i.takeRecords()}}var Ie=Symbol("vueuse-ssr-width");function Ee(){const e=w()?((...e)=>{var t;const n=e[0],r=null===(t=v())||void 0===t?void 0:t.proxy,o=null!=r?r:m();if(null==o&&!w())throw new Error("injectLocal must be called in setup");return o&&K.has(o)&&n in K.get(o)?K.get(o)[n]:b(...e)})(Ie,null):null;return"number"==typeof e?e:void 0}function xe(e,t,n={}){const{window:r=me,...o}=n;let i;const a=/* @__PURE__ */Se(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=W(h(()=>{const t=F(e);return Array.isArray(t)?t.map(e=>we(e)):[we(t)]}),e=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const t of e)t&&i.observe(t,o)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return G(u),{isSupported:a,stop:u}}function Ce(e,t,n={}){const{root:r,rootMargin:o,threshold:i=0,window:a=me,immediate:s=!0}=n,c=/* @__PURE__ */Se(()=>a&&"IntersectionObserver"in a),u=h(()=>se(F(e)).map(we).filter(J));let l=ee;const d=k(s),f=c.value?W(()=>[u.value,we(r),F(o),d.value],([e,n,r])=>{if(l(),!d.value)return;if(!e.length)return;const o=new IntersectionObserver(t,{root:we(n),rootMargin:r,threshold:i});e.forEach(e=>e&&o.observe(e)),l=()=>{o.disconnect(),l=ee}},{immediate:s,flush:"post"}):ee,g=()=>{l(),f(),d.value=!1};return G(g),{isSupported:c,isActive:d,pause(){l(),d.value=!1},resume(){d.value=!0},stop:g}}function Pe(e,t={}){const{window:n=me,scrollTarget:r,threshold:o=0,rootMargin:i,once:a=!1,initialValue:s=!1}=t,c=k(s),{stop:u}=Ce(e,e=>{let t=c.value,n=0;for(const r of e)r.time>=n&&(n=r.time,t=r.isIntersecting);c.value=t,a&&W(c,()=>{u()},{once:!0})},{root:r,window:n,threshold:o,rootMargin:i});return c}var je=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Re(e,t={}){const{document:n=ye,autoExit:r=!1}=t,o=h(()=>{var t;return null!==(t=we(e))&&void 0!==t?t:null==n?void 0:n.documentElement}),i=k(!1),a=h(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),s=h(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),c=h(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(e=>n&&e in n||o.value&&e in o.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(e=>n&&e in n),l=/* @__PURE__ */Se(()=>o.value&&n&&void 0!==a.value&&void 0!==s.value&&void 0!==c.value),d=()=>{if(c.value){if(n&&null!=n[c.value])return n[c.value];{const e=o.value;if(null!=(null==e?void 0:e[c.value]))return Boolean(e[c.value])}}return!1};async function f(){if(l.value&&i.value){if(s.value)if(null!=(null==n?void 0:n[s.value]))await n[s.value]();else{const e=o.value;null!=(null==e?void 0:e[s.value])&&await e[s.value]()}i.value=!1}}async function g(){if(!l.value||i.value)return;d()&&await f();const e=o.value;a.value&&null!=(null==e?void 0:e[a.value])&&(await e[a.value](),i.value=!0)}const p=()=>{const e=d();(!e||e&&u&&(null==n?void 0:n[u])===o.value)&&(i.value=e)},v={capture:!1,passive:!0};return be(n,je,p,v),be(()=>we(o),je,p,v),he(p,!1),r&&G(f),{isSupported:l,isFullscreen:i,enter:g,exit:f,toggle:async function(){await(i.value?f():g())}}}function Ne(e,t,n={}){var r;const{direction:o="bottom",interval:i=100,canLoadMore:a=()=>!0}=n,s=j(function(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=ee,onScroll:i=ee,offset:a={left:0,right:0,top:0,bottom:0},observe:s={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:u="auto",window:l=me,onError:d=e=>{console.error(e)}}=t,f="boolean"==typeof s?{mutation:s}:s,g=k(0),p=k(0),v=h({get:()=>g.value,set(e){y(e,void 0)}}),m=h({get:()=>p.value,set(e){y(void 0,e)}});function y(t,n){var r,o,i,a;if(!l)return;const s=F(e);if(!s)return;null===(r=s instanceof Document?l.document.body:s)||void 0===r||r.scrollTo({top:null!==(o=F(n))&&void 0!==o?o:m.value,left:null!==(i=F(t))&&void 0!==i?i:v.value,behavior:F(u)});const c=(null==s||null===(a=s.document)||void 0===a?void 0:a.documentElement)||(null==s?void 0:s.documentElement)||s;null!=v&&(g.value=c.scrollLeft),null!=m&&(p.value=c.scrollTop)}const w=k(!1),b=j({left:!0,right:!1,top:!0,bottom:!1}),T=j({left:!1,right:!1,top:!1,bottom:!1}),S=e=>{w.value&&(w.value=!1,T.left=!1,T.right=!1,T.top=!1,T.bottom=!1,o(e))},D=fe(S,n+r),I=e=>{var t;if(!l)return;const n=(null==e||null===(t=e.document)||void 0===t?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||we(e),{display:r,flexDirection:o,direction:i}=l.getComputedStyle(n),s="rtl"===i?-1:1,c=n.scrollLeft;T.left=c<g.value,T.right=c>g.value;const u=Math.abs(c*s)<=(a.left||0),d=Math.abs(c*s)+n.clientWidth>=n.scrollWidth-(a.right||0)-1;"flex"===r&&"row-reverse"===o?(b.left=d,b.right=u):(b.left=u,b.right=d),g.value=c;let f=n.scrollTop;e!==l.document||f||(f=l.document.body.scrollTop),T.top=f<p.value,T.bottom=f>p.value;const h=Math.abs(f)<=(a.top||0),v=Math.abs(f)+n.clientHeight>=n.scrollHeight-(a.bottom||0)-1;"flex"===r&&"column-reverse"===o?(b.top=v,b.bottom=h):(b.top=h,b.bottom=v),p.value=f},E=e=>{var t;l&&(I(null!==(t=e.target.documentElement)&&void 0!==t?t:e.target),w.value=!0,D(e),i(e))};return be(e,"scroll",n?function(e,t=200,n=!1,r=!0,o=!1){return re(function(...e){let t,n,r,o,i,a,s=0,c=!0,u=ee;O(e[0])||"object"!=typeof e[0]?[r,o=!0,i=!0,a=!1]=e:({delay:r,trailing:o=!0,leading:i=!0,rejectOnCancel:a=!1}=e[0]);const l=()=>{t&&(clearTimeout(t),t=void 0,u(),u=ee)};return e=>{const d=F(r),f=Date.now()-s,h=()=>n=e();return l(),d<=0?(s=Date.now(),h()):(f>d?(s=Date.now(),!i&&c||h()):o&&(n=new Promise((e,n)=>{u=a?n:e,t=setTimeout(()=>{s=Date.now(),c=!0,e(h()),l()},Math.max(0,d-f))})),i||t||(t=setTimeout(()=>c=!0,d)),c=!1,n)}}(t,n,r,o),e)}(E,n,!0,!1):E,c),he(()=>{try{const t=F(e);if(!t)return;I(t)}catch(t){d(t)}}),(null==f?void 0:f.mutation)&&null!=e&&e!==l&&e!==document&&De(e,()=>{const t=F(e);t&&I(t)},{attributes:!0,childList:!0,subtree:!0}),be(e,"scrollend",S,c),{x:v,y:m,isScrolling:w,arrivedState:b,directions:T,measure(){const t=F(e);l&&t&&I(t)}}}(e,{...n,offset:{[o]:null!==(r=n.distance)&&void 0!==r?r:0,...n.offset}})),c=R(),u=h(()=>!!c.value),l=h(()=>{return t=F(e),"undefined"!=typeof Window&&t instanceof Window?t.document.documentElement:"undefined"!=typeof Document&&t instanceof Document?t.documentElement:t;var t}),d=Pe(l),f=h(()=>!!l.value&&a(l.value));function g(){if(s.measure(),!l.value||!d.value||!f.value||c.value)return;const{scrollHeight:e,clientHeight:n,scrollWidth:r,clientWidth:a}=l.value,u="bottom"===o||"top"===o?e<=n:r<=a;(s.arrivedState[o]||u)&&(c.value=Promise.all([t(s),new Promise(e=>setTimeout(e,i))]).finally(()=>{c.value=null,S(()=>g())}))}return ge(W(()=>[s.arrivedState[o],d.value,f.value],g,{immediate:!0,flush:"post"})),{isLoading:u,reset(){S(()=>g())}}}function Ae(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?function(e,t){const n=ke(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemHeight:c,overscan:u=5}=e,l=Me(r,o,c),d=_e("vertical",u,Le(o,c),l,n),f=Fe(c,o),g=h(()=>f(r.value.start)),p=We(c,o);return He(a,t,s,d),{calculateRange:d,scrollTo:$e("vertical",d,f,s),containerStyle:{overflowY:"auto"},wrapperProps:h(()=>({style:{width:"100%",height:p.value-g.value+"px",marginTop:`${g.value}px`}})),currentList:i,containerRef:s}}(t,e):function(e,t){const n=ke(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemWidth:c,overscan:u=5}=e,l=Me(r,o,c),d=_e("horizontal",u,Le(o,c),l,n),f=Fe(c,o),g=h(()=>f(r.value.start)),p=We(c,o);return He(a,t,s,d),{scrollTo:$e("horizontal",d,f,s),calculateRange:d,wrapperProps:h(()=>({style:{height:"100%",width:p.value-g.value+"px",marginLeft:`${g.value}px`,display:"flex"}})),containerStyle:{overflowX:"auto"},currentList:i,containerRef:s}}(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function ke(e){const t=k(null),n=function(e,t={width:0,height:0},n={}){const{window:r=me,box:o="content-box"}=n,i=h(()=>{var t;return null===(t=we(e))||void 0===t||null===(t=t.namespaceURI)||void 0===t?void 0:t.includes("svg")}),a=k(t.width),s=k(t.height),{stop:c}=xe(e,([t])=>{const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&i.value){const t=we(e);if(t){const e=t.getBoundingClientRect();a.value=e.width,s.value=e.height}}else if(n){const e=se(n);a.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else a.value=t.contentRect.width,s.value=t.contentRect.height},n);he(()=>{const n=we(e);n&&(a.value="offsetWidth"in n?n.offsetWidth:t.width,s.value="offsetHeight"in n?n.offsetHeight:t.height)});const u=W(()=>we(e),e=>{a.value=e?t.width:0,s.value=e?t.height:0});return{width:a,height:s,stop:function(){c(),u()}}}(t),r=R([]),o=k(e);return{state:R({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Me(e,t,n){return r=>{if("number"==typeof n)return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let e=o;e<t.value.length&&(i+=n(e),a=e,!(i>r));e++);return a-o}}function Le(e,t){return n=>{if("number"==typeof t)return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++)if(r+=t(i),r>=n){o=i;break}return o+1}}function _e(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const c=o.value;if(c){const o=n("vertical"===e?c.scrollTop:c.scrollLeft),u=r("vertical"===e?c.clientHeight:c.clientWidth),l=o-t,d=o+u+t;i.value={start:l<0?0:l,end:d>s.value.length?s.value.length:d},a.value=s.value.slice(i.value.start,i.value.end).map((e,t)=>({data:e,index:t+i.value.start}))}}}function Fe(e,t){return n=>"number"==typeof e?n*e:t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0)}function He(e,t,n,r){W([e.width,e.height,()=>F(t),n],()=>{r()})}function We(e,t){return h(()=>"number"==typeof e?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}Number.POSITIVE_INFINITY;var Ue={horizontal:"scrollLeft",vertical:"scrollTop"};function $e(e,t,n,r){return o=>{r.value&&(r.value[Ue[e]]=n(o),t())}}function ze(e={}){const{window:t=me,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:a="inner"}=e,s=k(n),c=k(r),u=()=>{if(t)if("outer"===a)s.value=t.outerWidth,c.value=t.outerHeight;else if("visual"===a&&t.visualViewport){const{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else i?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),he(u);const l={passive:!0};return be("resize",u,l),t&&"visual"===a&&t.visualViewport&&be(t.visualViewport,"resize",u,l),o&&W(function(e,t={}){const{window:n=me,ssrWidth:r=/* @__PURE__ */Ee()}=t,o=/* @__PURE__ */Se(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia),i=k("number"==typeof r),a=k(),s=k(!1);return U(()=>{if(i.value)return i.value=!o.value,void(s.value=F(e).split(",").some(e=>{const t=e.includes("not all"),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),o=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let i=Boolean(n||o);return n&&i&&(i=r>=ae(n[1])),o&&i&&(i=r<=ae(o[1])),t?!i:i}));o.value&&(a.value=n.matchMedia(F(e)),s.value=a.value.matches)}),be(a,"change",e=>{s.value=e.matches},{passive:!0}),h(()=>s.value)}("(orientation: portrait)"),()=>u()),{width:s,height:c}}var Be=class{info(e,t){return new Promise(n=>{X.info(e,null==t?void 0:t.duration,n)})}success(e,t){return new Promise(n=>{X.success(e,null==t?void 0:t.duration,n)})}warning(e,t){return new Promise(n=>{X.warning(e,null==t?void 0:t.duration,n)})}error(e,t){return new Promise(n=>{X.error(e,null==t?void 0:t.duration,n)})}};function Ve(e,t,n){const{minValue:r,maxValue:o}=n.specificConfig||{};return"number"==typeof r&&"number"==typeof o&&r>o?Promise.reject(/* @__PURE__ */new Error("MinValue cannot be greater than MaxValue")):Promise.resolve()}function qe(e,t,n,r){if(!t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),s=t.length;return"number"==typeof o&&s<o?Promise.reject(`${u("sys.model.minLengthDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${u("sys.model.maxLengthDefault")}${a}`):Promise.resolve()}function Ye(e,t,n,r){if(null==t||""===t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),s=Number(t);return"number"==typeof o&&s<o?Promise.reject(`${u("sys.model.minNumDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${u("sys.model.maxNumDefault")}${a}`):Promise.resolve()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){Ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach(function(t){Je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function nt(e){return{}.toString.call(e).includes("Object")}function rt(e){return"function"==typeof e}var ot=tt(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),it=function(e,t){return nt(t)||ot("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&ot("changeField"),t},at=function(e){rt(e)||ot("selectorType")},st=function(e){rt(e)||nt(e)||ot("handlerType"),nt(e)&&Object.values(e).some(function(e){return!rt(e)})&&ot("handlersType")},ct=function(e){var t;e||ot("initialIsRequired"),nt(e)||ot("initialType"),t=e,Object.keys(t).length||ot("initialContent")};function ut(e,t){return rt(t)?t(e.current):t}function lt(e,t){return e.current=et(et({},e.current),t),t}function dt(e,t,n){return rt(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var ft,ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ct(e),st(t);var n={current:e},r=tt(dt)(n,t),o=tt(lt)(n),i=tt(it)(e),a=tt(ut)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return at(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,o,i,a)(e)}]},gt={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},pt=(ft=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.length>=ft.length?ft.apply(this,r):function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.apply(t,[].concat(r,o))}})(gt),vt=function(e){var t;return e||pt("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||pt("configType"),e.urls?(console.warn(gt.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function mt(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],mt(e[n],t[n]))}),Ze(Ze({},e),t)}var yt={type:"cancelation",msg:"operation is manually canceled"};function wt(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(yt):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var bt,Ot=["monaco"],Tt=function(e){if(Array.isArray(e))return e}(bt=ht({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(bt)||function(e){if(e){if("string"==typeof e)return Xe(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Xe(e,2):void 0}}(bt)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),St=Tt[0],Dt=Tt[1];function It(e){return document.body.appendChild(e)}function Et(e){var t,n,r=St(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return o.onload=function(){return e()},o.onerror=r.reject,o}function xt(){var e=St(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;Ct(n),e.resolve(n)},function(t){e.reject(t)})}function Ct(e){St().monaco||Dt({monaco:e})}var Pt=new Promise(function(e,t){return Dt({resolve:e,reject:t})}),jt={config:function(e){var t=vt(e),n=t.monaco,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Ot);Dt(function(e){return{config:mt(e.config,r),monaco:n}})},init:function(){var e=St(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(Dt({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),wt(Pt);if(window.monaco&&window.monaco.editor)return Ct(window.monaco),e.resolve(window.monaco),wt(Pt);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(It,Et)(xt)}return wt(Pt)},__getMonacoInstance:function(){return St(function(e){return e.monaco})}},Rt=new class{constructor(){o(this,"_monacoInstance",null),o(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){jt.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=jt.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,n){return(await this.loadMonaco()).editor.createModel(e,t,n)}},Nt=/* @__PURE__ */t({Vue:()=>d,Vue2:()=>{},del:()=>Lt,install:()=>kt,isVue2:()=>!1,isVue3:()=>!0,set:()=>Mt});import*as At from"vue";function kt(){}function Mt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Lt(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}n(Nt,At);var _t=Symbol.for("DndContextType");function Ft(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ht="function"==typeof Symbol&&Symbol.observable||"@@observable",Wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ut={INIT:"@@redux/INIT"+Wt(),REPLACE:"@@redux/REPLACE"+Wt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wt()}};function $t(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ft(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ft(1));return n($t)(e,t)}if("function"!=typeof e)throw new Error(Ft(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(Ft(3));return i}function d(e){if("function"!=typeof e)throw new Error(Ft(4));if(c)throw new Error(Ft(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(Ft(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Ft(7));if(void 0===e.type)throw new Error(Ft(8));if(c)throw new Error(Ft(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:Ut.INIT}),(r={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ft(10));o=e,f({type:Ut.REPLACE})}})[Ht]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ft(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[Ht]=function(){return this},e},r}function zt(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Bt(e){return"object"==typeof e}var Vt="dnd-core/INIT_COORDS",qt="dnd-core/BEGIN_DRAG",Yt="dnd-core/PUBLISH_DRAG_SOURCE",Xt="dnd-core/HOVER",Gt="dnd-core/DROP",Kt="dnd-core/END_DRAG";function Zt(e,t){return{type:Vt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Jt={type:Vt,payload:{clientOffset:null,sourceClientOffset:null}};function Qt(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Zt(o)),function(e,t,n){zt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){zt(n.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==c)return void e.dispatch(Jt);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){zt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Zt(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){zt(Bt(e),"Item must be an object.")}(l),s.pinSource(c),{type:qt,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}):void 0}}function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){en(e,t,n[t])})}return e}function nn(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){zt(e.isDragging(),"Cannot call drop while not dragging."),zt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((o,i)=>{const a={type:Gt,payload:{dropResult:tn({},t,rn(o,i,r,n))}};e.dispatch(a)})}}function rn(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){zt(void 0===e||Bt(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function on(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){zt(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:Kt}}}function an(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function sn(e){return function(t,{clientOffset:n}={}){!function(e){zt(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];an(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){zt(t.isDragging(),"Cannot call hover while not dragging."),zt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];zt(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),zt(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:Xt,payload:{targetIds:r,clientOffset:n||null}}}}function cn(e){return function(){if(e.getMonitor().isDragging())return{type:Yt}}}var un=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:Qt(e),publishDragSource:cn(e),hover:sn(e),drop:nn(e),endDrag:on(e)}}(this);return Object.keys(n).reduce((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function ln(e,t){return{x:e.x-t.x,y:e.y-t.y}}var dn=[],fn=[];dn.__IS_NONE__=!0,fn.__IS_ALL__=!0;var hn=class{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;zt("function"==typeof e,"listener must be a function."),zt(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===r||o===r+1&&!function(e,t){return e!==dn&&(e===fn||void 0===t||(n=t,r=e,n.filter(e=>r.indexOf(e)>-1)).length>0);var n,r}(t.dirtyHandlerIds,n)||e()}finally{r=o}})}subscribeToOffsetChange(e){zt("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return zt(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return zt(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&an(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return zt(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!an(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?ln((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?ln(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},gn="undefined"!=typeof global?global:self,pn=gn.MutationObserver||gn.WebKitMutationObserver;function vn(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}var mn,yn="function"==typeof pn?function(e){let t=1;const n=new pn(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:vn,wn=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},bn=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=yn(this.flush),this.requestErrorThrow=vn(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},On=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new wn(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(bn.registerPendingError),Tn="dnd-core/ADD_SOURCE",Sn="dnd-core/ADD_TARGET",Dn="dnd-core/REMOVE_SOURCE",In="dnd-core/REMOVE_TARGET";function En(e,t){t&&Array.isArray(e)?e.forEach(e=>En(e,!1)):zt("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(mn||(mn={}));var xn=0;function Cn(e){switch(e[0]){case"S":return mn.SOURCE;case"T":return mn.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Pn(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}var jn=class{addSource(e,t){En(e),function(e){zt("function"==typeof e.canDrag,"Expected canDrag to be a function."),zt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),zt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(mn.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Tn,payload:{sourceId:e}}}(n)),n}addTarget(e,t){En(e,!0),function(e){zt("function"==typeof e.canDrop,"Expected canDrop to be a function."),zt("function"==typeof e.hover,"Expected hover to be a function."),zt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(mn.TARGET,e,t);return this.store.dispatch(function(e){return{type:Sn,payload:{targetId:e}}}(n)),n}containsHandler(e){return Pn(this.dragSources,e)||Pn(this.dropTargets,e)}getSource(e,t=!1){return zt(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return zt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return zt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return zt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Cn(e)===mn.SOURCE}isTargetId(e){return Cn(e)===mn.TARGET}removeSource(e){var t;zt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Dn,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},bn.enqueueTask(On.create(t))}removeTarget(e){zt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:In,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);zt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){zt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(xn++).toString();switch(e){case mn.SOURCE:return`S${t}`;case mn.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===mn.SOURCE?this.dragSources.set(r,n):e===mn.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},Rn=(e,t)=>e===t;function Nn(e=dn,t){switch(t.type){case Xt:break;case Tn:case Sn:case In:case Dn:return dn;default:return fn}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=/* @__PURE__ */new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r);if(!(o.length>0)&&function(e,t,n=Rn){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r))return dn;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Mn(e=kn,t){const{payload:n}=t;switch(t.type){case Vt:case qt:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Xt:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){An(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case Kt:case Gt:return kn;default:return e}var r,o}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ln(e,t,n[t])})}return e}var Fn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Hn(e=Fn,t){const{payload:n}=t;switch(t.type){case qt:return _n({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Yt:return _n({},e,{isSourcePublic:!0});case Xt:return _n({},e,{targetIds:n.targetIds});case In:return-1===e.targetIds.indexOf(n.targetId)?e:_n({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case Gt:return _n({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Kt:return _n({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Wn(e=0,t){switch(t.type){case Tn:case Sn:return e+1;case Dn:case In:return e-1;default:return e}}function Un(e=0){return e+1}function $n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){$n(e,t,n[t])})}return e}function Bn(e={},t){return{dirtyHandlerIds:Nn(e.dirtyHandlerIds,{type:t.type,payload:zn({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,n))})}),dragOffset:Mn(e.dragOffset,t),refCount:Wn(e.refCount,t),dragOperation:Hn(e.dragOperation,t),stateId:Un(e.stateId)};var n,r}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qn=0,Yn=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gn(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Yn]||(o[Yn]=function(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return $t(Bn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new un(o,new hn(o,new jn(o))),a=e(i,t,n);return i.receiveBackend(a),i}(e,t,n,r)),o[Yn]}function Gn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var Kn=(0,Nt.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n,r,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[Xn(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return u&&++qn,(0,Nt.onUnmounted)(function(){if(u){var e=Gn();0===--qn&&(e[Yn]=null)}}),n=c,(0,Nt.provide)(_t,n),function(){var e;return null!==(r=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==r?r:null}}});(0,Nt.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,Nt.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,n=new Image;return n.src=e.src,n.onload=function(){e.connect(n),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var Zn=!1,Jn=!1,Qn=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){zt(!Zn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Zn=!1}},t.isDragging=function(){if(!this.sourceId)return!1;zt(!Jn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Jn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Jn=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),er=!1,tr=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;zt(!er,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return er=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{er=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function nr(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=n)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(n=e)&&!0===n.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,n}(n)){var o=n;return e(o,r),o}}}function rr(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=nr(r);t[n]=function(){return o}}}),t}function or(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=n?n.call(r,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ar=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=rr({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r=e.prototype;return r.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},r.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},r.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},r.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!or(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!or(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&ir(t.prototype,n),e}();function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var cr=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=rr({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,Nt.isRef)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r=e.prototype;return r.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},r.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!or(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&sr(t.prototype,n),e}(),ur=/* @__PURE__ */function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,n=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(n):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}();function lr(){var e=(0,Nt.inject)(_t);return zt(null!=e,"Expected drag drop context"),e}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fr(e,t,n){var r=lr(),o=function(e,t,n){var r=(0,Nt.computed)(function(){return new ur((0,Nt.unref)(e),(0,Nt.unref)(t),(0,Nt.unref)(n))});return(0,Nt.watchEffect)(function(){r.value.spec=(0,Nt.unref)(e)}),r}(e,t,n),i=function(e){return(0,Nt.computed)(function(){var t=(0,Nt.unref)(e).type;return zt(null!=t,"spec.type must be defined"),t})}(e);(0,Nt.watchEffect)(function(e){if(null!=(0,Nt.unref)(i)){var a=(u=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}((0,Nt.unref)(i),(0,Nt.unref)(o),(0,Nt.unref)(r)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(e,t):void 0}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];(0,Nt.unref)(t).receiveHandlerId(s),(0,Nt.unref)(n).receiveHandlerId(s),e(c)}var u,l})}function hr(e){return(0,Nt.computed)(function(){return"function"==typeof e?e():e})}var gr=/* @__PURE__ */e(/* @__PURE__ */r((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}})());function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vr(e,t,n){var r,o,i=(r=function(e,t,n){var r=(0,Nt.ref)((0,Nt.unref)(t)((0,Nt.unref)(e))),o=function(){var o=(0,Nt.unref)(t)((0,Nt.unref)(e));(0,gr.default)(r.value,o)||(r.value=o,n&&n())};return(0,Nt.watchEffect)(o),[r,o]}(e,t,n),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,Nt.watchEffect)(function(t){var n=(0,Nt.unref)(e).getHandlerId();null!=n&&t((0,Nt.unref)(e).subscribeToStateChange(s,{handlerIds:[n]}))}),a}function mr(e,t,n){return vr(t,e||function(){return{}},function(){return(0,Nt.unref)(n).reconnect()})}function yr(e,t){var n=(0,Nt.reactive)({el:null,options:(0,Nt.unref)(t)});return(0,Nt.watchEffect)(function(){e(n)},{flush:"post"}),function(e,r){Mt(n,"el",e);var o=(0,Nt.unref)(t)||r;return(0,gr.default)(n.options,o)||Mt(n,"options",o),(0,Nt.unref)(e)}}function wr(e,t){return yr(function(t){(0,Nt.unref)(e).hooks.dragSource()(t.el,t.options)},(0,Nt.computed)(function(){return(0,Nt.unref)(t).options}))}function br(e,t){return yr(function(t){(0,Nt.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,Nt.computed)(function(){return(0,Nt.unref)(t).previewOptions}))}function Or(e){var t,n=hr(e),r=(t=lr(),(0,Nt.computed)(function(){return new Qn((0,Nt.unref)(t))})),o=function(e,t){var n=lr(),r=(0,Nt.computed)(function(){return new ar((0,Nt.unref)(n).getBackend())});return(0,Nt.watchEffect)(function(t){r.value.dragSourceOptions=(0,Nt.unref)(e)||null,(0,Nt.unref)(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),(0,Nt.watchEffect)(function(e){r.value.dragPreviewOptions=(0,Nt.unref)(t)||null,(0,Nt.unref)(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}((0,Nt.computed)(function(){return(0,Nt.unref)(n).options}),(0,Nt.computed)(function(){return(0,Nt.unref)(n).previewOptions}));return fr(n,r,o),[mr((0,Nt.computed)(function(){return(0,Nt.unref)(n).collect||function(){return{}}}),r,o),wr(o,n),br(o,n)]}var Tr=/* @__PURE__ */function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dr(e,t,n){var r=lr(),o=function(e,t){var n=(0,Nt.computed)(function(){return new Tr((0,Nt.unref)(e),(0,Nt.unref)(t))});return(0,Nt.watchEffect)(function(){n.value.spec=(0,Nt.unref)(e)}),n}(e,t),i=function(e){return(0,Nt.computed)(function(){var t=(0,Nt.unref)(e).accept;return zt(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,Nt.watchEffect)(function(e){var a,s,c=(a=function(e,t,n){var r=(0,Nt.unref)(n).getRegistry(),o=r.addTarget((0,Nt.unref)(e),(0,Nt.unref)(t));return[o,function(){return r.removeTarget(o)}]}(i,o,r),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return Sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,Nt.unref)(t).receiveHandlerId(u),(0,Nt.unref)(n).receiveHandlerId(u),e(l)})}function Ir(e,t){return yr(function(t){(0,Nt.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,Nt.computed)(function(){return(0,Nt.unref)(t).options}))}function Er(e){var t,n=hr(e),r=(t=lr(),(0,Nt.computed)(function(){return new tr((0,Nt.unref)(t))})),o=function(e){var t=lr(),n=(0,Nt.computed)(function(){return new cr((0,Nt.unref)(t).getBackend())});return(0,Nt.watchEffect)(function(t){n.value.dropTargetOptions=(0,Nt.unref)(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}((0,Nt.computed)(function(){return(0,Nt.unref)(n).options}));return Dr(n,r,o),[mr((0,Nt.computed)(function(){return(0,Nt.unref)(n).collect||function(){return{}}}),r,o),Ir(o,n)]}function xr(e){let t=null;return()=>(null==t&&(t=e()),t)}var Cr=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=/* @__PURE__ */new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Pr=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},jr=/* @__PURE__ */t({FILE:()=>Rr,HTML:()=>kr,TEXT:()=>Ar,URL:()=>Nr}),Rr="__NATIVE_FILE__",Nr="__NATIVE_URL__",Ar="__NATIVE_TEXT__",kr="__NATIVE_HTML__";function Mr(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}var Lr={[Rr]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[kr]:{exposeProperties:{html:(e,t)=>Mr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Nr]:{exposeProperties:{urls:(e,t)=>Mr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ar]:{exposeProperties:{text:(e,t)=>Mr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function _r(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Lr).filter(e=>{const n=Lr[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var Fr=xr(()=>/firefox/i.test(navigator.userAgent)),Hr=xr(()=>Boolean(window.safari)),Wr=class{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const r=t[s];if(r<e)c=s+1;else{if(!(r>e))return n[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return n[a]+r[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<n-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const n=i[h+1],r=s+n;u.push(3*r/((r+n)/e+(r+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],n=e+u[h+1]-f-f;l.push((f-e-n)*t),d.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}};function Ur(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function $r(e){return{x:e.clientX,y:e.clientY}}var zr=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Br(e,t,n[t])})}return e}var qr=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Vr({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Vr({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(jr).some(t=>jr[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Lr[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Pr(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Ur(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=$r(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=_r(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(Fr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Ur(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Hr()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new Wr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:v?p:(()=>{let e=new Wr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return Hr()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=_r(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:$r(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=$r(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):_r(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:$r(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new zr(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Cr(this.isNodeInDocument)}},Yr=function(e,t,n){return new qr(e,t,n)},Xr={"zh-CN":()=>import("./zh_CN-BOOnrmuK.js"),"en-US":()=>import("./en_US-3Q4NcT39.js"),"pt-PT":()=>import("./pt_PT-8ZpsbQuO.js"),"tr-TR":()=>import("./tr_TR-IdN74S9H.js"),"zh-TW":()=>import("./zh_TW-BeWiTMnz.js"),"ja-JP":()=>import("./ja_JP-C7ON9ru7.js"),"vi-VN":()=>import("./vi_VN-5jRSXykJ.js"),"de-GE":()=>import("./de_DE-CXxQwKMQ.js"),"fr-FR":()=>import("./fr_FR-D2dS74tH.js"),"es-ES":()=>import("./es_ES-C93EhKUt.js"),"ru-RU":()=>import("./ru_RU-ClPC9fIj.js")},Gr=R({locale:""});function Kr(){if(Gr.value.locale!==_gct.i18n.global.locale.value){const e=Xr[_gct.i18n.global.locale.value];e&&e().then(e=>{Gr.value=e.default})}return{getAntdLocale:Gr}}var Zr=j({});function Jr(){return{themeVars:Zr,setPrimaryColor:function(e){Zr.primaryColor=e,Y.config({theme:{primaryColor:e}})}}}function Qr(e,t,n={}){const r=n.minValue??10,o=R(e),i=j({offset:"offsetWidth",client:"clientX",clientMove:0,rowType:t,offsetWidth:2e3});function a(e){const t=e-i.clientMove;o.value=s(s(o.value)+t),i.clientMove=e}function s(e){return"right"===i.rowType||"bottom"===i.rowType?i.offsetWidth-e:e}return{moveDomDown:function(e,t,n){const r=t,o=e;i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.onmousemove=e=>{a(e[i.client]??0)},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null,null==n||n()}},moveMobileDomDown:function(e,t,n){const r=t,o=e.touches[0];o&&(i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.ontouchmove=e=>{a(e.touches[0][i.client]??0)},document.ontouchend=()=>{document.ontouchend=null,document.ontouchmove=null,null==n||n()})},start:h({get:()=>o.value<r?r:o.value>i.offsetWidth-r?i.offsetWidth-r:o.value,set(e){o.value=e}})}}var eo=/* @__PURE__ */function(e){return e.SELF_BUILT="SELF_BUILT",e.IMPORT="IMPORT",e}(eo||{});function to(e,t){const n=R(!1),r=R(!1),o=R(""),i=R(""),a=_gct.store.context.bid||"";function s(){const s=H(e),u=H(t);s&&(n.value=s.startsWith("$"),r.value=/\$?[A-Z]+_/.test(s),o.value=(n.value?"$":"")+(_gct.store.appInfo.sourceType===eo.IMPORT?r.value?"I":"i":"")+(n.value?s.substring(1):s)+(s.endsWith("_")?"":"_"),i.value=""===u||_gct.store.projectName===c.WEB_RENDER?"":a?"_"+(r.value?a.toUpperCase():a):"")}return s(),O(e)&&W(e,()=>{s()}),O(t)&&W(t,()=>{s()}),{keyPrefix:o,keySuffix:i,keyReset:s,keyPad:function(e){if(e)return`${o.value}${e}${i.value}`},keyClip:function(n){const r=H(e).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1],a=n.indexOf(r)+r.length,s=i.value&&""!==H(t)?n.lastIndexOf("_"):n.length;return o.value=n.substring(0,a+1),i.value=n.substring(s),n.substring(a+1,s)},keyPrePad:function(e){if(e)return`${o.value}${e}`},keyPreClip:function(t){const n=H(e).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1],r=t.indexOf(n)+n.length;return o.value=t.substring(0,r+1),t.substring(r+1)}}}var no=R(!1),ro=R(),oo=j({node:{}}),io=R([]),ao=R([]),so=R([]),co=R(),uo=R();function lo(){const e={init:void 0,add:void 0,update:void 0,delete:void 0,search:void 0};async function t(t){ao.value=await t(),co.value=r(),io.value=o(ao.value,co.value),e.init||(e.init=t),ao.value=ao.value.map(e=>({...e,userOrgName:i(e.id).join("/")}))}async function n(t,n){so.value=await t(n),uo.value||(uo.value=n),e.search||(e.search=t)}function r(e){if([...new Set((e??ao.value).map(e=>e.parentId))].includes("ROOT"))return"ROOT";const t=(e??ao.value).find(e=>e.id===e.tenantId);return t?t.parentId:""}function o(e,t="ROOT",n=1){const r=[];for(const i of e)if(i.parentId===t){const t=o(e,i.id,n+1);t.length>0?i.children=t.map(e=>(e.indexDeep=n,e)):i.children=[],r.push(i)}return r}const i=e=>{const t=[],n=ao.value.find(t=>t.id===e);return n?(n.fullPath.split("/").forEach(e=>{const n=ao.value.find(t=>e==t.id);n&&t.push(n.name)}),t):t};return{initTree:t,addTreeNode:async function(r,o){await r(o),e.add||(e.add=r),e.init&&t(e.init),e.search&&n(e.search,uo.value)},updateTreeNode:async function(r,o,i){await r(i??o.id,o),e.update||(e.update=r),e.init&&t(e.init),e.search&&n(e.search,uo.value)},deleteTreeNode:async function(r,o){await r(o),e.delete||(e.delete=r),e.init&&t(e.init),e.search&&n(e.search,uo.value)},dragTreeNode:async function(n,r){await n(r),e.init&&t(e.init)},treeData:io,treeOrignalData:ao,transformTreeData:o,setTreeSelect:function(e,t){ro.value=e,oo.node=t},selectedTreeKey:ro,selectTreeNode:oo,getTreeNamePathArr:i,getFilterTreeData:e=>{const t=$(H(ao.value)).filter(t=>t.tenantId===e.tenantId);return o(t,r(t))},isExistUser2SelectOrg:no,setOrgsExistUser:e=>{no.value=0!==e.length},searchTreeData:n,clearSearchTreeData:function(){so.value=[],uo.value=void 0,e.search=void 0},searchTreeOrignalData:so,restTree:()=>{no.value=!1,ro.value=void 0,oo.node={},io.value=[],ao.value=[],so.value=[],co.value=void 0,uo.value=void 0}}}var fo=/* @__PURE__ */p({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("modal"),r=R(!1),o=R(!!e.opts.defaultFullscreen),a=()=>{o.value=!o.value},s=R({});e.opts&&Object.assign(s.value,e.opts);let c=null;const u=new i({dismiss:e=>{r.value=!1,c=e,t.emit("dismiss",c)},setOptions(e){Object.assign(s.value,e)}});P("modal",u);const d=e=>u.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:d});const f=R(!1),h=async()=>{if(u.ok)try{f.value=!0;const e=await u.ok();f.value=!1,!e||!0!==e.ok&&!0!==e.close||d(e)}finally{f.value=!1}else console.warn("打开模态未实现ok方法")},p=async()=>{u.cancel&&!1===await u.cancel()||d()},{getAntdLocale:v}=Kr();return()=>{var e,i;let c;const l=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return l&&l.length>0&&(l[0].props.modal=u),g(Y,{locale:v.value},{default:()=>{return[g(Kn,{backend:Yr},(e=c=y(N("a-modal"),{visible:r.value,class:[n.b(),s.value.placement&&n.m(s.value.placement),s.value.modalClass,n.is("hidden-footer",!1===s.value.showFooter),n.is("hidden-close-btn",!1===s.value.showCloseBtn),n.is("hidden-cancel-btn",!1===s.value.showCancelBtn),n.is("full-screen",o.value)],centered:!0,onOk:h,confirmLoading:f.value,onCancel:p,okText:"确认",okButtonProps:{disabled:u.state.okDisabled},...s.value},[!1!==s.value.canFullscreen?g("div",{class:n.e("full-screen"),onClick:a},[g("i",{class:"iconfont "+(o.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,l]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!T(e)?c:{default:()=>[c]}))];var e}})}}}),ho=Math.min,go=Math.max,po=Math.round,vo=Math.floor,mo=e=>({x:e,y:e}),yo={left:"right",right:"left",bottom:"top",top:"bottom"};function wo(e,t,n){return go(e,ho(t,n))}function bo(e,t){return"function"==typeof e?e(t):e}function Oo(e){return e.split("-")[0]}function To(e){return e.split("-")[1]}function So(e){return"x"===e?"y":"x"}function Do(e){return"y"===e?"height":"width"}function Io(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Eo(e){return So(Io(e))}function xo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Co=["left","right"],Po=["right","left"],jo=["top","bottom"],Ro=["bottom","top"];function No(e){const t=Oo(e);return yo[t]+e.slice(t.length)}function Ao(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ko(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Mo(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=Eo(t),s=Do(a),c=Oo(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(To(t)){case"start":h[a]-=f*(n&&u?-1:1);break;case"end":h[a]+=f*(n&&u?-1:1)}return h}async function Lo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=bo(t,e),g=Ao(h),p=s[f?"floating"===d?"reference":"floating":d],v=ko(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(p)))||n?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),m="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=ko(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:y,strategy:c}):m);return{top:(v.top-b.top+g.top)/w.y,bottom:(b.bottom-v.bottom+g.bottom)/w.y,left:(v.left-b.left+g.left)/w.x,right:(b.right-v.right+g.right)/w.x}}var _o=/* @__PURE__ */new Set(["left","top"]);function Fo(){return"undefined"!=typeof window}function Ho(e){return $o(e)?(e.nodeName||"").toLowerCase():"#document"}function Wo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Uo(e){var t;return null==(t=($o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $o(e){return!!Fo()&&(e instanceof Node||e instanceof Wo(e).Node)}function zo(e){return!!Fo()&&(e instanceof Element||e instanceof Wo(e).Element)}function Bo(e){return!!Fo()&&(e instanceof HTMLElement||e instanceof Wo(e).HTMLElement)}function Vo(e){return!(!Fo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Wo(e).ShadowRoot)}function qo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Yo(e){return/^(table|td|th)$/.test(Ho(e))}function Xo(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var Go,Ko=/transform|translate|scale|rotate|perspective|filter/,Zo=/paint|layout|strict|content/,Jo=e=>!!e&&"none"!==e;function Qo(e){const t=zo(e)?ni(e):e;return Jo(t.transform)||Jo(t.translate)||Jo(t.scale)||Jo(t.rotate)||Jo(t.perspective)||!ei()&&(Jo(t.backdropFilter)||Jo(t.filter))||Ko.test(t.willChange||"")||Zo.test(t.contain||"")}function ei(){return null==Go&&(Go="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Go}function ti(e){return/^(html|body|#document)$/.test(Ho(e))}function ni(e){return Wo(e).getComputedStyle(e)}function ri(e){return zo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oi(e){if("html"===Ho(e))return e;const t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Uo(e);return Vo(t)?t.host:t}function ii(e){const t=oi(e);return ti(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bo(t)&&qo(t)?t:ii(t)}function ai(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ii(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Wo(o);if(i){const e=si(a);return t.concat(a,a.visualViewport||[],qo(o)?o:[],e&&n?ai(e):[])}return t.concat(o,ai(o,[],n))}function si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ci(e){const t=ni(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=po(n)!==i||po(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ui(e){return zo(e)?e:e.contextElement}function li(e){const t=ui(e);if(!Bo(t))return mo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ci(t);let a=(i?po(n.width):n.width)/r,s=(i?po(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var di=/* @__PURE__ */mo(0);function fi(e){const t=Wo(e);return ei()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:di}function hi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ui(e);let a=mo(1);t&&(r?zo(r)&&(a=li(r)):a=li(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wo(e))&&t}(i,n,r)?fi(i):mo(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Wo(i),t=r&&zo(r)?Wo(r):r;let n=e,o=si(n);for(;o&&r&&t!==n;){const e=li(o),t=o.getBoundingClientRect(),r=ni(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=Wo(o),o=si(n)}}return ko({width:l,height:d,x:c,y:u})}function gi(e,t){const n=ri(e).scrollLeft;return t?t.left+n:hi(Uo(e)).left+n}function pi(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-gi(e,n),y:n.top+t.scrollTop}}function vi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Wo(e),r=Uo(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=ei();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const u=gi(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Uo(e),n=ri(e),r=e.ownerDocument.body,o=go(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=go(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+gi(e);const s=-n.scrollTop;return"rtl"===ni(r).direction&&(a+=go(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Uo(e));else if(zo(t))r=function(e,t){const n=hi(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bo(e)?li(e):mo(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=fi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ko(r)}function mi(e,t){const n=oi(e);return!(n===t||!zo(n)||ti(n))&&("fixed"===ni(n).position||mi(n,t))}function yi(e,t){const n=t.get(e);if(n)return n;let r=ai(e,[],!1).filter(e=>zo(e)&&"body"!==Ho(e)),o=null;const i="fixed"===ni(e).position;let a=i?oi(e):e;for(;zo(a)&&!ti(a);){const t=ni(a),n=Qo(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||qo(a)&&!n&&mi(e,a))?r=r.filter(e=>e!==a):o=t,a=oi(a)}return t.set(e,r),r}function wi(e,t,n){const r=Bo(t),o=Uo(t),i="fixed"===n,a=hi(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=mo(0);function u(){c.x=gi(o)}if(r||!r&&!i)if(("body"!==Ho(t)||qo(o))&&(s=ri(t)),r){const e=hi(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const l=!o||r||i?mo(0):pi(o,s);return{x:a.left+s.scrollLeft-c.x-l.x,y:a.top+s.scrollTop-c.y-l.y,width:a.width,height:a.height}}function bi(e){return"static"===ni(e).position}function Oi(e,t){if(!Bo(e)||"fixed"===ni(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Uo(e)===n&&(n=n.ownerDocument.body),n}function Ti(e,t){const n=Wo(e);if(Xo(e))return n;if(!Bo(e)){let t=oi(e);for(;t&&!ti(t);){if(zo(t)&&!bi(t))return t;t=oi(t)}return n}let r=Oi(e,t);for(;r&&Yo(r)&&bi(r);)r=Oi(r,t);return r&&ti(r)&&bi(r)&&!Qo(r)?n:r||function(e){let t=oi(e);for(;Bo(t)&&!ti(t);){if(Qo(t))return t;if(Xo(t))return null;t=oi(t)}return null}(e)||n}var Si={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Uo(r),s=!!t&&Xo(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=mo(1);const l=mo(0),d=Bo(r);if((d||!d&&!i)&&(("body"!==Ho(r)||qo(a))&&(c=ri(r)),d)){const e=hi(r);u=li(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const f=!a||d||i?mo(0):pi(a,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:n.y*u.y-c.scrollTop*u.y+l.y+f.y}},getDocumentElement:Uo,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Xo(t)?[]:yi(t,this._c):[].concat(n),r],a=vi(t,i[0],o);let s=a.top,c=a.right,u=a.bottom,l=a.left;for(let d=1;d<i.length;d++){const e=vi(t,i[d],o);s=go(e.top,s),c=ho(e.right,c),u=ho(e.bottom,u),l=go(e.left,l)}return{width:c-l,height:u-s,x:l,y:s}},getOffsetParent:Ti,getElementRects:async function(e){const t=this.getOffsetParent||Ti,n=this.getDimensions,r=await n(e.floating);return{reference:wi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ci(e);return{width:t,height:n}},getScale:li,isElement:zo,isRTL:function(e){return"rtl"===ni(e).direction}};function Di(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Ii=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Oo(n),s=To(n),c="y"===Io(n),u=_o.has(a)?-1:1,l=i&&c?-1:1,d=bo(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),c?{x:h*l,y:f*u}:{x:f*u,y:h*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=bo(e,t),l={x:n,y:r},d=await i.detectOverflow(t,u),f=Io(Oo(o)),h=So(f);let g=l[h],p=l[f];if(a){const e="y"===h?"bottom":"right";g=wo(g+d["y"===h?"top":"left"],g,g-d[e])}if(s){const e="y"===f?"bottom":"right";p=wo(p+d["y"===f?"top":"left"],p,p-d[e])}const v=c.fn({...t,[h]:g,[f]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:a,[f]:s}}}}}},xi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=bo(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=Oo(o),y=Io(s),w=Oo(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(u.floating)),O=f||(w||!p?[No(s)]:function(e){const t=No(e);return[xo(e),t,xo(t)]}(s)),T="none"!==g;!f&&T&&O.push(...function(e,t,n,r){const o=To(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Po:Co:t?Co:Po;case"left":case"right":return t?jo:Ro;default:return[]}}(Oo(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(xo)))),i}(s,p,g,b));const S=[s,...O],D=await c.detectOverflow(t,v),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&I.push(D[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=To(e),o=Eo(e),i=Do(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=No(a)),[a,No(a)]}(o,a,b);I.push(D[e[0]],D[e[1]])}if(E=[...E,{placement:o,overflows:I}],!I.every(e=>e<=0)){var x,C;const e=((null==(x=i.flip)?void 0:x.index)||0)+1,t=S[e];if(t&&("alignment"!==d||y===Io(t)||E.every(e=>Io(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(C=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var P;const e=null==(P=E.filter(e=>{if(T){const t=Io(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Ci=/* @__PURE__ */p({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("popover"),r=R(!1),o=R(),a=R(),s=j({}),{width:c,height:u,maxHeight:d}=e.opts;c&&(B(c)?s.width=`${c}px`:s.width=c),u&&(B(u)?s.height=`${u}px`:s.height=u),d&&(B(d)?s.maxHeight=`${d}px`:s.maxHeight=d);const f=new i({dismiss:e=>{t.emit("dismiss",e)}});function h(e){return f.dismiss(e)}let p=()=>{};C(()=>{p()}),Te(o,()=>{h({ok:!1})}),t.expose({present:async function(t){r.value=!0,p=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ui(e),l=o||i?[...u?ai(u):[],...t?ai(t):[]]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=Uo(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const u=e.getBoundingClientRect(),{left:l,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;const g={rootMargin:-vo(d)+"px "+-vo(o.clientWidth-(l+f))+"px "+-vo(o.clientHeight-(d+h))+"px "+-vo(l)+"px",threshold:go(0,ho(1,c))||1};let p=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!p)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Di(u,e.getBoundingClientRect())||a(),p=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(m){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),i}(u,n):null;let f,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),u&&!c&&g.observe(u),t&&g.observe(t));let p=c?hi(e):null;return c&&function t(){const r=hi(e);p&&!Di(p,r)&&n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(f)}}(t,o.value,()=>async function(e,t,n,r){const o=[Ii(r.offsetOpts||6),xi(),Ei()];r.noArrow||o.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=bo(e,t)||{};if(null==u)return{};const d=Ao(l),f={x:n,y:r},h=Eo(o),g=Do(h),p=await a.getDimensions(u),v="y"===h,m=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-f[h]-i.floating[g],O=f[h]-i.reference[h],T=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=T?T[w]:0;S&&await(null==a.isElement?void 0:a.isElement(T))||(S=s.floating[w]||i.floating[g]);const D=b/2-O/2,I=S/2-p[g]/2-1,E=ho(d[m],I),x=ho(d[y],I),C=E,P=S-p[g]-x,j=S/2-p[g]/2+D,R=wo(C,j,P),N=!c.arrow&&null!=To(o)&&j!==R&&i.reference[g]/2-(j<C?E:x)-p[g]/2<0,A=N?j<C?j-C:j-P:0;return{[h]:f[h]+A,data:{[h]:R,centerOffset:j-R-A,...N&&{alignmentOffset:A}},reset:N}}}))({element:n}));const i={placement:r.placement,strategy:"absolute",middleware:o};r.options&&Object.assign(i,r.options);const a=await((e,t,n)=>{const r=/* @__PURE__ */new Map,o={platform:Si,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Lo},c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=Mo(u,r,c),f=r,h=0;const g={};for(let p=0;p<i.length;p++){const n=i[p];if(!n)continue;const{name:v,fn:m}=n,{x:y,y:w,data:b,reset:O}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});l=null!=y?y:l,d=null!=w?w:d,g[v]={...g[v],...b},O&&h<50&&(h++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(u=!0===O.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:l,y:d}=Mo(u,f,c))),p=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})})(e,t,i);{const{x:e,y:o,placement:i,middlewareData:s}=a,{style:c}=t;if(c.left=`${e}px`,c.top=`${o}px`,!r.noArrow){const{x:e,y:t}=s.arrow,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[r]:"-4px"})}}}(t,o.value,a.value,e.opts))},dismiss:h});const{getAntdLocale:v}=Kr();return()=>{var i,c;const u=null===(i=(c=t.slots).default)||void 0===i?void 0:i.call(c);u&&u.length>0&&u[0].props&&(u[0].props.modal=f);const l=g("div",{class:[n.b(),n.is("show",r.value),e.opts.className],ref:o,style:s,onClick:e=>{e.stopPropagation()}},[!e.opts.noArrow&&g("div",{class:[n.e("arrow")],ref:a},null),u]);return!0===e.opts.autoClose?g("div",{class:[n.e("overlay")],onClick:()=>{!0===e.opts.autoClose&&h()}},[l]):g(Y,{locale:v.value},{default:()=>{return[g(Kn,{backend:Yr},(e=l,"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!T(e)?l:{default:()=>[l]}))];var e}})}}}),Pi=/* @__PURE__ */p({name:"AppFullScreenContainer",props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("app-full-screen-container"),r=R(!1),o=R({});e.opts&&Object.assign(o.value,e.opts);let a=null;const s=new i({dismiss:e=>{r.value=!1,a=e,t.emit("dismiss",a)}});P("modal",s);const c=e=>s.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:c,ok:async()=>{if(s.ok){const e=await s.ok();e&&e.ok&&c(e)}else console.warn("打开模态未实现ok方法")},cancel:()=>s.cancel?s.cancel():c()});const{getAntdLocale:u}=Kr();return()=>{var e,i;let a;const c=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return c&&c.length>0&&c[0].props&&(c[0].props.modal=s),g(Y,{locale:u.value},{default:()=>{return[g(Kn,{backend:Yr},(e=a=y("div",{class:[n.b(),n.is("is-hidden",!0!==r.value),o.value.containerClass],...o.value},[c]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!T(e)?a:{default:()=>[a]}))];var e}})}}});function ji(e){return V(e)?N(e):e}var Ri=class{async modal(e,t,n){const r=this.createModal(e,t,n);return r.present(),r.onWillDismiss()}createModal(e,t,n){return function(e,t){return new a(fo,e,t)}(z(e)?e:()=>y(ji(e),{...t}),n)}popover(e,t,n,r){const o=this.createPopover(t,n,r);return o.present(e),o.onWillDismiss()}createPopover(e,t,n){return function(e,t){return new s(Ci,e,t)}(z(e)?e:()=>y(ji(e),{...t}),n)}fullScreen(e,t,n){const r=this.createFullScreen(e,t,n);return r.present(),r.onWillDismiss()}createFullScreen(e,t,n){return function(e,t){return new a(Pi,e,t)}(z(e)?e:()=>y(ji(e),{...t}),n)}},Ni=new Ri,Ai=(e,t)=>(e.install=n=>{const r=e.name||e.displayName||e.__name;r&&(n.component(r,e),t&&(n.config.globalProperties[t]=e))},e),ki={childrenFields:["children"]},Mi=/* @__PURE__ */new Error("中断操作");function Li(e,t){for(const n of t){const t=e[n];if(Array.isArray(t)&&t.length>0)return t}}function _i(e,t,n,r){const{childrenFields:o}=q({},ki,r||{});if(null==t?void 0:t.length)for(let i=0;i<t.length;i++){const a=t[i];if(n({item:a,index:i,parent:e}))throw Mi;const s=Li(a,o);(null==s?void 0:s.length)&&_i(a,s,n,r)}}function Fi(e,t,n){const{childrenFields:r}=q({},ki,n||{});try{const o=Array.isArray(e)?void 0:e,i=Array.isArray(e)?e:Li(e,r);(null==i?void 0:i.length)?_i(o,i,t,n):console.warn("没有可遍历的数组",e,n)}catch(o){if(o!==Mi)throw o}}var Hi={...ki,compareField:"id",compareCallback:({item:e,key:t,compareField:n})=>e[n]===t};function Wi(e,t,n){const{compareField:r,compareCallback:o}=q({},Hi,n||{});let i,a;return Fi(e,e=>{if(o({...e,key:t,compareField:r}))return i=e.item,a=e.parent,!0},n),i?{child:i,parent:a}:void 0}function Ui(e,t){const n=e=>Ui(e,t);return e.map(e=>t(e,n))}function $i(e,t,n){const{childrenFields:r}=q({},ki,n||{});return function e(n,o){return n.filter(n=>{console.log("item",n.title);const i=Li(n,r);let a=[];return(null==i?void 0:i.length)&&(a=e(i,n)),n[r[0]]=a,!!a.length||t(n,o)})}(e)}export{fe as A,Ne as C,Ae as D,xe as E,ve as M,ze as O,Re as S,De as T,qe as _,Ai as a,Be as b,lo as c,Jr as d,Kr as f,jt as g,Rt as h,Ui as i,pe as j,ge as k,to as l,Or as m,Wi as n,Ri as o,Er as p,Fi as r,Ni as s,$i as t,Qr as u,Ye as v,Ce as w,Te as x,Ve as y};
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.17 */
|
|
2
|
+
import{i as e,n as t,r as n,t as r}from"./chunk-FrdinjiM.js";import{t as o}from"./defineProperty-DAxeR2uH.js";import{Modal as i,OverlayContainer as a,OverlayPopoverContainer as s,ProjectName as c,t as u,useNamespace as l}from"@gct-paas/core";import*as d from"vue";import{Fragment as f,computed as h,createVNode as g,defineComponent as p,getCurrentInstance as v,getCurrentScope as m,h as y,hasInjectionContext as w,inject as b,isRef as O,isVNode as T,nextTick as S,onBeforeMount as D,onBeforeUnmount as I,onMounted as E,onScopeDispose as x,onUnmounted as C,provide as P,reactive as j,ref as R,resolveComponent as N,shallowReadonly as A,shallowRef as k,toRaw as M,toRef as L,toRefs as _,toValue as F,unref as H,watch as W,watchEffect as U}from"vue";import{cloneDeep as $,isFunction as z,isNumber as B,isString as V,merge as q}from"lodash-es";import{ConfigProvider as Y,message as X}from"ant-design-vue";function G(e,t){return!!m()&&(x(e,t),!0)}var K=/* @__PURE__ */new WeakMap,Z="undefined"!=typeof window&&"undefined"!=typeof document,J=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),Q=Object.prototype.toString,ee=()=>{},te=/* @__PURE__ */ne();function ne(){var e,t,n;return Z&&!!(null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null===(n=window)||void 0===n?void 0:n.navigator.userAgent))}function re(e,t){return function(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}}var oe=e=>e();function ie(e,t={}){let n,r,o=ee;const i=e=>{clearTimeout(e),o(),o=ee};let a;return s=>{const c=F(e),u=F(t.maxWait);return n&&i(n),c<=0||void 0!==u&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(s())):new Promise((e,l)=>{o=t.rejectOnCancel?l:e,a=s,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,e(a())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,e(s())},c)})}}function ae(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function se(e){return Array.isArray(e)?e:[e]}function ce(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}var ue=/\B([A-Z])/g,le=(ce(e=>e.replace(ue,"-$1").toLowerCase()),/-(\w)/g);function de(e){return e||v()}function fe(e,t=200,n={}){return re(ie(t,n),e)}function he(e,t=!0,n){de(n)?E(e,n):t?e():S(e)}function ge(e,t){de(t)&&C(e,t)}function pe(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=k(!1);let a;function s(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,s()}function u(...n){o&&e(),s(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...n)},F(t))}return r&&(i.value=!0,Z&&u()),G(c),{isPending:A(i),start:u,stop:c}}function ve(e,t,n={}){const{debounce:r=0,maxWait:o,...i}=n;return function(e,t,n={}){const{eventFilter:r=oe,...o}=n;return W(e,re(r,t),o)}(e,t,{...i,eventFilter:ie(r,{maxWait:o})})}ce(e=>e.replace(le,(e,t)=>t?t.toUpperCase():""));var me=Z?window:void 0,ye=Z?window.document:void 0;function we(e){var t;const n=F(e);return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function be(...e){const t=h(()=>{const t=se(F(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return n=([e,t,n,r],o,i)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==n?void 0:n.length))return;const a=(s=r,"[object Object]"===Q.call(s)?{...r}:r);var s;const c=e.flatMap(e=>t.flatMap(t=>n.map(n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,a))));i(()=>{c.forEach(e=>e())})},r={flush:"post"},W(()=>{var n,r;return[null!==(n=null===(r=t.value)||void 0===r?void 0:r.map(e=>we(e)))&&void 0!==n?n:[me].filter(e=>null!=e),se(F(t.value?e[1]:e[0])),se(H(t.value?e[2]:e[1])),F(t.value?e[3]:e[2])]},n,{...r,immediate:!0});var n,r}Z&&window.navigator,Z&&window.location;var Oe=!1;function Te(e,t,n={}){const{window:r=me,ignore:o=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=n;if(!r)return s?{stop:ee,cancel:ee,trigger:ee}:ee;if(te&&!Oe){Oe=!0;const e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener("click",ee,e)),r.document.documentElement.addEventListener("click",ee,e)}let c=!0;const u=e=>F(o).some(t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=we(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{const r=we(e);null!=n.target&&(r instanceof Element||!function(e){const t=F(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const n=F(e),r=n.$.subTree&&n.$.subTree.children;return!(null==r||!Array.isArray(r))&&r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,n))&&r&&r!==n.target&&!n.composedPath().includes(r)&&("detail"in n&&0===n.detail&&(c=!u(n)),c?t(n):c=!0)};let d=!1;const f=[be(r,"click",e=>{d||(d=!0,setTimeout(()=>{d=!1},0),l(e))},{passive:!0,capture:i}),be(r,"pointerdown",t=>{const n=we(e);c=!u(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),a&&be(r,"blur",n=>{setTimeout(()=>{var o;const i=we(e);"IFRAME"!==(null===(o=r.document.activeElement)||void 0===o?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)},0)},{passive:!0})].filter(Boolean),h=()=>f.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,l(e),c=!1}}:h}function Se(e){const t=function(){const e=k(!1),t=v();return t&&E(()=>{e.value=!0},t),e}();return h(()=>(t.value,Boolean(e())))}function De(e,t,n={}){const{window:r=me,...o}=n;let i;const a=/* @__PURE__ */Se(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=W(h(()=>{const t=se(F(e)).map(we).filter(J);return new Set(t)}),e=>{s(),a.value&&e.size&&(i=new MutationObserver(t),e.forEach(e=>i.observe(e,o)))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return G(u),{isSupported:a,stop:u,takeRecords:()=>null==i?void 0:i.takeRecords()}}var Ie=Symbol("vueuse-ssr-width");function Ee(){const e=w()?((...e)=>{var t;const n=e[0],r=null===(t=v())||void 0===t?void 0:t.proxy,o=null!=r?r:m();if(null==o&&!w())throw new Error("injectLocal must be called in setup");return o&&K.has(o)&&n in K.get(o)?K.get(o)[n]:b(...e)})(Ie,null):null;return"number"==typeof e?e:void 0}function xe(e,t,n={}){const{window:r=me,...o}=n;let i;const a=/* @__PURE__ */Se(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=W(h(()=>{const t=F(e);return Array.isArray(t)?t.map(e=>we(e)):[we(t)]}),e=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const t of e)t&&i.observe(t,o)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return G(u),{isSupported:a,stop:u}}function Ce(e,t,n={}){const{root:r,rootMargin:o,threshold:i=0,window:a=me,immediate:s=!0}=n,c=/* @__PURE__ */Se(()=>a&&"IntersectionObserver"in a),u=h(()=>se(F(e)).map(we).filter(J));let l=ee;const d=k(s),f=c.value?W(()=>[u.value,we(r),F(o),d.value],([e,n,r])=>{if(l(),!d.value)return;if(!e.length)return;const o=new IntersectionObserver(t,{root:we(n),rootMargin:r,threshold:i});e.forEach(e=>e&&o.observe(e)),l=()=>{o.disconnect(),l=ee}},{immediate:s,flush:"post"}):ee,g=()=>{l(),f(),d.value=!1};return G(g),{isSupported:c,isActive:d,pause(){l(),d.value=!1},resume(){d.value=!0},stop:g}}function Pe(e,t={}){const{window:n=me,scrollTarget:r,threshold:o=0,rootMargin:i,once:a=!1,initialValue:s=!1}=t,c=k(s),{stop:u}=Ce(e,e=>{let t=c.value,n=0;for(const r of e)r.time>=n&&(n=r.time,t=r.isIntersecting);c.value=t,a&&W(c,()=>{u()},{once:!0})},{root:r,window:n,threshold:o,rootMargin:i});return c}var je=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Re(e,t={}){const{document:n=ye,autoExit:r=!1}=t,o=h(()=>{var t;return null!==(t=we(e))&&void 0!==t?t:null==n?void 0:n.documentElement}),i=k(!1),a=h(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),s=h(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),c=h(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(e=>n&&e in n||o.value&&e in o.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(e=>n&&e in n),l=/* @__PURE__ */Se(()=>o.value&&n&&void 0!==a.value&&void 0!==s.value&&void 0!==c.value),d=()=>{if(c.value){if(n&&null!=n[c.value])return n[c.value];{const e=o.value;if(null!=(null==e?void 0:e[c.value]))return Boolean(e[c.value])}}return!1};async function f(){if(l.value&&i.value){if(s.value)if(null!=(null==n?void 0:n[s.value]))await n[s.value]();else{const e=o.value;null!=(null==e?void 0:e[s.value])&&await e[s.value]()}i.value=!1}}async function g(){if(!l.value||i.value)return;d()&&await f();const e=o.value;a.value&&null!=(null==e?void 0:e[a.value])&&(await e[a.value](),i.value=!0)}const p=()=>{const e=d();(!e||e&&u&&(null==n?void 0:n[u])===o.value)&&(i.value=e)},v={capture:!1,passive:!0};return be(n,je,p,v),be(()=>we(o),je,p,v),he(p,!1),r&&G(f),{isSupported:l,isFullscreen:i,enter:g,exit:f,toggle:async function(){await(i.value?f():g())}}}function Ne(e,t,n={}){var r;const{direction:o="bottom",interval:i=100,canLoadMore:a=()=>!0}=n,s=j(function(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=ee,onScroll:i=ee,offset:a={left:0,right:0,top:0,bottom:0},observe:s={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:u="auto",window:l=me,onError:d=e=>{console.error(e)}}=t,f="boolean"==typeof s?{mutation:s}:s,g=k(0),p=k(0),v=h({get:()=>g.value,set(e){y(e,void 0)}}),m=h({get:()=>p.value,set(e){y(void 0,e)}});function y(t,n){var r,o,i,a;if(!l)return;const s=F(e);if(!s)return;null===(r=s instanceof Document?l.document.body:s)||void 0===r||r.scrollTo({top:null!==(o=F(n))&&void 0!==o?o:m.value,left:null!==(i=F(t))&&void 0!==i?i:v.value,behavior:F(u)});const c=(null==s||null===(a=s.document)||void 0===a?void 0:a.documentElement)||(null==s?void 0:s.documentElement)||s;null!=v&&(g.value=c.scrollLeft),null!=m&&(p.value=c.scrollTop)}const w=k(!1),b=j({left:!0,right:!1,top:!0,bottom:!1}),T=j({left:!1,right:!1,top:!1,bottom:!1}),S=e=>{w.value&&(w.value=!1,T.left=!1,T.right=!1,T.top=!1,T.bottom=!1,o(e))},D=fe(S,n+r),I=e=>{var t;if(!l)return;const n=(null==e||null===(t=e.document)||void 0===t?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||we(e),{display:r,flexDirection:o,direction:i}=l.getComputedStyle(n),s="rtl"===i?-1:1,c=n.scrollLeft;T.left=c<g.value,T.right=c>g.value;const u=Math.abs(c*s)<=(a.left||0),d=Math.abs(c*s)+n.clientWidth>=n.scrollWidth-(a.right||0)-1;"flex"===r&&"row-reverse"===o?(b.left=d,b.right=u):(b.left=u,b.right=d),g.value=c;let f=n.scrollTop;e!==l.document||f||(f=l.document.body.scrollTop),T.top=f<p.value,T.bottom=f>p.value;const h=Math.abs(f)<=(a.top||0),v=Math.abs(f)+n.clientHeight>=n.scrollHeight-(a.bottom||0)-1;"flex"===r&&"column-reverse"===o?(b.top=v,b.bottom=h):(b.top=h,b.bottom=v),p.value=f},E=e=>{var t;l&&(I(null!==(t=e.target.documentElement)&&void 0!==t?t:e.target),w.value=!0,D(e),i(e))};return be(e,"scroll",n?function(e,t=200,n=!1,r=!0,o=!1){return re(function(...e){let t,n,r,o,i,a,s=0,c=!0,u=ee;O(e[0])||"object"!=typeof e[0]?[r,o=!0,i=!0,a=!1]=e:({delay:r,trailing:o=!0,leading:i=!0,rejectOnCancel:a=!1}=e[0]);const l=()=>{t&&(clearTimeout(t),t=void 0,u(),u=ee)};return e=>{const d=F(r),f=Date.now()-s,h=()=>n=e();return l(),d<=0?(s=Date.now(),h()):(f>d?(s=Date.now(),!i&&c||h()):o&&(n=new Promise((e,n)=>{u=a?n:e,t=setTimeout(()=>{s=Date.now(),c=!0,e(h()),l()},Math.max(0,d-f))})),i||t||(t=setTimeout(()=>c=!0,d)),c=!1,n)}}(t,n,r,o),e)}(E,n,!0,!1):E,c),he(()=>{try{const t=F(e);if(!t)return;I(t)}catch(t){d(t)}}),(null==f?void 0:f.mutation)&&null!=e&&e!==l&&e!==document&&De(e,()=>{const t=F(e);t&&I(t)},{attributes:!0,childList:!0,subtree:!0}),be(e,"scrollend",S,c),{x:v,y:m,isScrolling:w,arrivedState:b,directions:T,measure(){const t=F(e);l&&t&&I(t)}}}(e,{...n,offset:{[o]:null!==(r=n.distance)&&void 0!==r?r:0,...n.offset}})),c=R(),u=h(()=>!!c.value),l=h(()=>{return t=F(e),"undefined"!=typeof Window&&t instanceof Window?t.document.documentElement:"undefined"!=typeof Document&&t instanceof Document?t.documentElement:t;var t}),d=Pe(l),f=h(()=>!!l.value&&a(l.value));function g(){if(s.measure(),!l.value||!d.value||!f.value||c.value)return;const{scrollHeight:e,clientHeight:n,scrollWidth:r,clientWidth:a}=l.value,u="bottom"===o||"top"===o?e<=n:r<=a;(s.arrivedState[o]||u)&&(c.value=Promise.all([t(s),new Promise(e=>setTimeout(e,i))]).finally(()=>{c.value=null,S(()=>g())}))}return ge(W(()=>[s.arrivedState[o],d.value,f.value],g,{immediate:!0,flush:"post"})),{isLoading:u,reset(){S(()=>g())}}}function Ae(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?function(e,t){const n=ke(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemHeight:c,overscan:u=5}=e,l=Me(r,o,c),d=_e("vertical",u,Le(o,c),l,n),f=Fe(c,o),g=h(()=>f(r.value.start)),p=We(c,o);return He(a,t,s,d),{calculateRange:d,scrollTo:$e("vertical",d,f,s),containerStyle:{overflowY:"auto"},wrapperProps:h(()=>({style:{width:"100%",height:p.value-g.value+"px",marginTop:`${g.value}px`}})),currentList:i,containerRef:s}}(t,e):function(e,t){const n=ke(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemWidth:c,overscan:u=5}=e,l=Me(r,o,c),d=_e("horizontal",u,Le(o,c),l,n),f=Fe(c,o),g=h(()=>f(r.value.start)),p=We(c,o);return He(a,t,s,d),{scrollTo:$e("horizontal",d,f,s),calculateRange:d,wrapperProps:h(()=>({style:{height:"100%",width:p.value-g.value+"px",marginLeft:`${g.value}px`,display:"flex"}})),containerStyle:{overflowX:"auto"},currentList:i,containerRef:s}}(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function ke(e){const t=k(null),n=function(e,t={width:0,height:0},n={}){const{window:r=me,box:o="content-box"}=n,i=h(()=>{var t;return null===(t=we(e))||void 0===t||null===(t=t.namespaceURI)||void 0===t?void 0:t.includes("svg")}),a=k(t.width),s=k(t.height),{stop:c}=xe(e,([t])=>{const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&i.value){const t=we(e);if(t){const e=t.getBoundingClientRect();a.value=e.width,s.value=e.height}}else if(n){const e=se(n);a.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else a.value=t.contentRect.width,s.value=t.contentRect.height},n);he(()=>{const n=we(e);n&&(a.value="offsetWidth"in n?n.offsetWidth:t.width,s.value="offsetHeight"in n?n.offsetHeight:t.height)});const u=W(()=>we(e),e=>{a.value=e?t.width:0,s.value=e?t.height:0});return{width:a,height:s,stop:function(){c(),u()}}}(t),r=R([]),o=k(e);return{state:R({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Me(e,t,n){return r=>{if("number"==typeof n)return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let e=o;e<t.value.length&&(i+=n(e),a=e,!(i>r));e++);return a-o}}function Le(e,t){return n=>{if("number"==typeof t)return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++)if(r+=t(i),r>=n){o=i;break}return o+1}}function _e(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const c=o.value;if(c){const o=n("vertical"===e?c.scrollTop:c.scrollLeft),u=r("vertical"===e?c.clientHeight:c.clientWidth),l=o-t,d=o+u+t;i.value={start:l<0?0:l,end:d>s.value.length?s.value.length:d},a.value=s.value.slice(i.value.start,i.value.end).map((e,t)=>({data:e,index:t+i.value.start}))}}}function Fe(e,t){return n=>"number"==typeof e?n*e:t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0)}function He(e,t,n,r){W([e.width,e.height,()=>F(t),n],()=>{r()})}function We(e,t){return h(()=>"number"==typeof e?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}Number.POSITIVE_INFINITY;var Ue={horizontal:"scrollLeft",vertical:"scrollTop"};function $e(e,t,n,r){return o=>{r.value&&(r.value[Ue[e]]=n(o),t())}}function ze(e={}){const{window:t=me,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:a="inner"}=e,s=k(n),c=k(r),u=()=>{if(t)if("outer"===a)s.value=t.outerWidth,c.value=t.outerHeight;else if("visual"===a&&t.visualViewport){const{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else i?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),he(u);const l={passive:!0};return be("resize",u,l),t&&"visual"===a&&t.visualViewport&&be(t.visualViewport,"resize",u,l),o&&W(function(e,t={}){const{window:n=me,ssrWidth:r=/* @__PURE__ */Ee()}=t,o=/* @__PURE__ */Se(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia),i=k("number"==typeof r),a=k(),s=k(!1);return U(()=>{if(i.value)return i.value=!o.value,void(s.value=F(e).split(",").some(e=>{const t=e.includes("not all"),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),o=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let i=Boolean(n||o);return n&&i&&(i=r>=ae(n[1])),o&&i&&(i=r<=ae(o[1])),t?!i:i}));o.value&&(a.value=n.matchMedia(F(e)),s.value=a.value.matches)}),be(a,"change",e=>{s.value=e.matches},{passive:!0}),h(()=>s.value)}("(orientation: portrait)"),()=>u()),{width:s,height:c}}var Be=class{info(e,t){return new Promise(n=>{X.info(e,null==t?void 0:t.duration,n)})}success(e,t){return new Promise(n=>{X.success(e,null==t?void 0:t.duration,n)})}warning(e,t){return new Promise(n=>{X.warning(e,null==t?void 0:t.duration,n)})}error(e,t){return new Promise(n=>{X.error(e,null==t?void 0:t.duration,n)})}};function Ve(e,t,n){const{minValue:r,maxValue:o}=n.specificConfig||{};return"number"==typeof r&&"number"==typeof o&&r>o?Promise.reject(/* @__PURE__ */new Error("MinValue cannot be greater than MaxValue")):Promise.resolve()}function qe(e,t,n,r){if(!t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),s=t.length;return"number"==typeof o&&s<o?Promise.reject(`${u("sys.model.minLengthDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${u("sys.model.maxLengthDefault")}${a}`):Promise.resolve()}function Ye(e,t,n,r){if(null==t||""===t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),s=Number(t);return"number"==typeof o&&s<o?Promise.reject(`${u("sys.model.minNumDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${u("sys.model.maxNumDefault")}${a}`):Promise.resolve()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){Ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach(function(t){Je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function nt(e){return{}.toString.call(e).includes("Object")}function rt(e){return"function"==typeof e}var ot=tt(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),it=function(e,t){return nt(t)||ot("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&ot("changeField"),t},at=function(e){rt(e)||ot("selectorType")},st=function(e){rt(e)||nt(e)||ot("handlerType"),nt(e)&&Object.values(e).some(function(e){return!rt(e)})&&ot("handlersType")},ct=function(e){var t;e||ot("initialIsRequired"),nt(e)||ot("initialType"),t=e,Object.keys(t).length||ot("initialContent")};function ut(e,t){return rt(t)?t(e.current):t}function lt(e,t){return e.current=et(et({},e.current),t),t}function dt(e,t,n){return rt(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var ft,ht=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ct(e),st(t);var n={current:e},r=tt(dt)(n,t),o=tt(lt)(n),i=tt(it)(e),a=tt(ut)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return at(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,o,i,a)(e)}]},gt={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},pt=(ft=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.length>=ft.length?ft.apply(this,r):function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.apply(t,[].concat(r,o))}})(gt),vt=function(e){var t;return e||pt("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||pt("configType"),e.urls?(console.warn(gt.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function mt(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],mt(e[n],t[n]))}),Ze(Ze({},e),t)}var yt={type:"cancelation",msg:"operation is manually canceled"};function wt(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(yt):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var bt,Ot=["monaco"],Tt=function(e){if(Array.isArray(e))return e}(bt=ht({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(bt)||function(e){if(e){if("string"==typeof e)return Xe(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Xe(e,2):void 0}}(bt)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),St=Tt[0],Dt=Tt[1];function It(e){return document.body.appendChild(e)}function Et(e){var t,n,r=St(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return o.onload=function(){return e()},o.onerror=r.reject,o}function xt(){var e=St(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;Ct(n),e.resolve(n)},function(t){e.reject(t)})}function Ct(e){St().monaco||Dt({monaco:e})}var Pt=new Promise(function(e,t){return Dt({resolve:e,reject:t})}),jt={config:function(e){var t=vt(e),n=t.monaco,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Ot);Dt(function(e){return{config:mt(e.config,r),monaco:n}})},init:function(){var e=St(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(Dt({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),wt(Pt);if(window.monaco&&window.monaco.editor)return Ct(window.monaco),e.resolve(window.monaco),wt(Pt);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(It,Et)(xt)}return wt(Pt)},__getMonacoInstance:function(){return St(function(e){return e.monaco})}},Rt=new class{constructor(){o(this,"_monacoInstance",null),o(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){jt.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=jt.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,n){return(await this.loadMonaco()).editor.createModel(e,t,n)}},Nt=/* @__PURE__ */t({Vue:()=>d,Vue2:()=>{},del:()=>Lt,install:()=>kt,isVue2:()=>!1,isVue3:()=>!0,set:()=>Mt});import*as At from"vue";function kt(){}function Mt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Lt(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}n(Nt,At);var _t=Symbol.for("DndContextType");function Ft(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ht="function"==typeof Symbol&&Symbol.observable||"@@observable",Wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ut={INIT:"@@redux/INIT"+Wt(),REPLACE:"@@redux/REPLACE"+Wt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wt()}};function $t(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ft(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ft(1));return n($t)(e,t)}if("function"!=typeof e)throw new Error(Ft(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(Ft(3));return i}function d(e){if("function"!=typeof e)throw new Error(Ft(4));if(c)throw new Error(Ft(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(Ft(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Ft(7));if(void 0===e.type)throw new Error(Ft(8));if(c)throw new Error(Ft(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:Ut.INIT}),(r={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ft(10));o=e,f({type:Ut.REPLACE})}})[Ht]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ft(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[Ht]=function(){return this},e},r}function zt(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Bt(e){return"object"==typeof e}var Vt="dnd-core/INIT_COORDS",qt="dnd-core/BEGIN_DRAG",Yt="dnd-core/PUBLISH_DRAG_SOURCE",Xt="dnd-core/HOVER",Gt="dnd-core/DROP",Kt="dnd-core/END_DRAG";function Zt(e,t){return{type:Vt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Jt={type:Vt,payload:{clientOffset:null,sourceClientOffset:null}};function Qt(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Zt(o)),function(e,t,n){zt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){zt(n.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==c)return void e.dispatch(Jt);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){zt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Zt(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){zt(Bt(e),"Item must be an object.")}(l),s.pinSource(c),{type:qt,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}):void 0}}function en(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){en(e,t,n[t])})}return e}function nn(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){zt(e.isDragging(),"Cannot call drop while not dragging."),zt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((o,i)=>{const a={type:Gt,payload:{dropResult:tn({},t,rn(o,i,r,n))}};e.dispatch(a)})}}function rn(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){zt(void 0===e||Bt(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function on(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){zt(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:Kt}}}function an(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function sn(e){return function(t,{clientOffset:n}={}){!function(e){zt(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];an(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){zt(t.isDragging(),"Cannot call hover while not dragging."),zt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];zt(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),zt(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:Xt,payload:{targetIds:r,clientOffset:n||null}}}}function cn(e){return function(){if(e.getMonitor().isDragging())return{type:Yt}}}var un=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:Qt(e),publishDragSource:cn(e),hover:sn(e),drop:nn(e),endDrag:on(e)}}(this);return Object.keys(n).reduce((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function ln(e,t){return{x:e.x-t.x,y:e.y-t.y}}var dn=[],fn=[];dn.__IS_NONE__=!0,fn.__IS_ALL__=!0;var hn=class{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;zt("function"==typeof e,"listener must be a function."),zt(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===r||o===r+1&&!function(e,t){return e!==dn&&(e===fn||void 0===t||(n=t,r=e,n.filter(e=>r.indexOf(e)>-1)).length>0);var n,r}(t.dirtyHandlerIds,n)||e()}finally{r=o}})}subscribeToOffsetChange(e){zt("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return zt(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return zt(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&an(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return zt(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!an(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?ln((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?ln(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},gn="undefined"!=typeof global?global:self,pn=gn.MutationObserver||gn.WebKitMutationObserver;function vn(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}var mn,yn="function"==typeof pn?function(e){let t=1;const n=new pn(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:vn,wn=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},bn=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=yn(this.flush),this.requestErrorThrow=vn(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},On=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new wn(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(bn.registerPendingError),Tn="dnd-core/ADD_SOURCE",Sn="dnd-core/ADD_TARGET",Dn="dnd-core/REMOVE_SOURCE",In="dnd-core/REMOVE_TARGET";function En(e,t){t&&Array.isArray(e)?e.forEach(e=>En(e,!1)):zt("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(mn||(mn={}));var xn=0;function Cn(e){switch(e[0]){case"S":return mn.SOURCE;case"T":return mn.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Pn(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}var jn=class{addSource(e,t){En(e),function(e){zt("function"==typeof e.canDrag,"Expected canDrag to be a function."),zt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),zt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(mn.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Tn,payload:{sourceId:e}}}(n)),n}addTarget(e,t){En(e,!0),function(e){zt("function"==typeof e.canDrop,"Expected canDrop to be a function."),zt("function"==typeof e.hover,"Expected hover to be a function."),zt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(mn.TARGET,e,t);return this.store.dispatch(function(e){return{type:Sn,payload:{targetId:e}}}(n)),n}containsHandler(e){return Pn(this.dragSources,e)||Pn(this.dropTargets,e)}getSource(e,t=!1){return zt(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return zt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return zt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return zt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Cn(e)===mn.SOURCE}isTargetId(e){return Cn(e)===mn.TARGET}removeSource(e){var t;zt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Dn,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},bn.enqueueTask(On.create(t))}removeTarget(e){zt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:In,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);zt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){zt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(xn++).toString();switch(e){case mn.SOURCE:return`S${t}`;case mn.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===mn.SOURCE?this.dragSources.set(r,n):e===mn.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},Rn=(e,t)=>e===t;function Nn(e=dn,t){switch(t.type){case Xt:break;case Tn:case Sn:case In:case Dn:return dn;default:return fn}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=/* @__PURE__ */new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r);if(!(o.length>0)&&function(e,t,n=Rn){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r))return dn;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Mn(e=kn,t){const{payload:n}=t;switch(t.type){case Vt:case qt:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Xt:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){An(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case Kt:case Gt:return kn;default:return e}var r,o}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ln(e,t,n[t])})}return e}var Fn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Hn(e=Fn,t){const{payload:n}=t;switch(t.type){case qt:return _n({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Yt:return _n({},e,{isSourcePublic:!0});case Xt:return _n({},e,{targetIds:n.targetIds});case In:return-1===e.targetIds.indexOf(n.targetId)?e:_n({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case Gt:return _n({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Kt:return _n({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Wn(e=0,t){switch(t.type){case Tn:case Sn:return e+1;case Dn:case In:return e-1;default:return e}}function Un(e=0){return e+1}function $n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){$n(e,t,n[t])})}return e}function Bn(e={},t){return{dirtyHandlerIds:Nn(e.dirtyHandlerIds,{type:t.type,payload:zn({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,n))})}),dragOffset:Mn(e.dragOffset,t),refCount:Wn(e.refCount,t),dragOperation:Hn(e.dragOperation,t),stateId:Un(e.stateId)};var n,r}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qn=0,Yn=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gn(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Yn]||(o[Yn]=function(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return $t(Bn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new un(o,new hn(o,new jn(o))),a=e(i,t,n);return i.receiveBackend(a),i}(e,t,n,r)),o[Yn]}function Gn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var Kn=(0,Nt.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n,r,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[Xn(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return u&&++qn,(0,Nt.onUnmounted)(function(){if(u){var e=Gn();0===--qn&&(e[Yn]=null)}}),n=c,(0,Nt.provide)(_t,n),function(){var e;return null!==(r=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==r?r:null}}});(0,Nt.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,Nt.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,n=new Image;return n.src=e.src,n.onload=function(){e.connect(n),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var Zn=!1,Jn=!1,Qn=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){zt(!Zn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Zn=!1}},t.isDragging=function(){if(!this.sourceId)return!1;zt(!Jn,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Jn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Jn=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),er=!1,tr=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;zt(!er,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return er=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{er=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function nr(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=n)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(n=e)&&!0===n.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,n}(n)){var o=n;return e(o,r),o}}}function rr(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=nr(r);t[n]=function(){return o}}}),t}function or(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=n?n.call(r,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ar=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=rr({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r=e.prototype;return r.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},r.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},r.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},r.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!or(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!or(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&ir(t.prototype,n),e}();function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var cr=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=rr({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,Nt.isRef)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r=e.prototype;return r.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},r.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!or(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&sr(t.prototype,n),e}(),ur=/* @__PURE__ */function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,n=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(n):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}();function lr(){var e=(0,Nt.inject)(_t);return zt(null!=e,"Expected drag drop context"),e}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fr(e,t,n){var r=lr(),o=function(e,t,n){var r=(0,Nt.computed)(function(){return new ur((0,Nt.unref)(e),(0,Nt.unref)(t),(0,Nt.unref)(n))});return(0,Nt.watchEffect)(function(){r.value.spec=(0,Nt.unref)(e)}),r}(e,t,n),i=function(e){return(0,Nt.computed)(function(){var t=(0,Nt.unref)(e).type;return zt(null!=t,"spec.type must be defined"),t})}(e);(0,Nt.watchEffect)(function(e){if(null!=(0,Nt.unref)(i)){var a=(u=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}((0,Nt.unref)(i),(0,Nt.unref)(o),(0,Nt.unref)(r)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(e,t):void 0}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];(0,Nt.unref)(t).receiveHandlerId(s),(0,Nt.unref)(n).receiveHandlerId(s),e(c)}var u,l})}function hr(e){return(0,Nt.computed)(function(){return"function"==typeof e?e():e})}var gr=/* @__PURE__ */e(/* @__PURE__ */r((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}})());function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vr(e,t,n){var r,o,i=(r=function(e,t,n){var r=(0,Nt.ref)((0,Nt.unref)(t)((0,Nt.unref)(e))),o=function(){var o=(0,Nt.unref)(t)((0,Nt.unref)(e));(0,gr.default)(r.value,o)||(r.value=o,n&&n())};return(0,Nt.watchEffect)(o),[r,o]}(e,t,n),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,Nt.watchEffect)(function(t){var n=(0,Nt.unref)(e).getHandlerId();null!=n&&t((0,Nt.unref)(e).subscribeToStateChange(s,{handlerIds:[n]}))}),a}function mr(e,t,n){return vr(t,e||function(){return{}},function(){return(0,Nt.unref)(n).reconnect()})}function yr(e,t){var n=(0,Nt.reactive)({el:null,options:(0,Nt.unref)(t)});return(0,Nt.watchEffect)(function(){e(n)},{flush:"post"}),function(e,r){Mt(n,"el",e);var o=(0,Nt.unref)(t)||r;return(0,gr.default)(n.options,o)||Mt(n,"options",o),(0,Nt.unref)(e)}}function wr(e,t){return yr(function(t){(0,Nt.unref)(e).hooks.dragSource()(t.el,t.options)},(0,Nt.computed)(function(){return(0,Nt.unref)(t).options}))}function br(e,t){return yr(function(t){(0,Nt.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,Nt.computed)(function(){return(0,Nt.unref)(t).previewOptions}))}function Or(e){var t,n=hr(e),r=(t=lr(),(0,Nt.computed)(function(){return new Qn((0,Nt.unref)(t))})),o=function(e,t){var n=lr(),r=(0,Nt.computed)(function(){return new ar((0,Nt.unref)(n).getBackend())});return(0,Nt.watchEffect)(function(t){r.value.dragSourceOptions=(0,Nt.unref)(e)||null,(0,Nt.unref)(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),(0,Nt.watchEffect)(function(e){r.value.dragPreviewOptions=(0,Nt.unref)(t)||null,(0,Nt.unref)(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}((0,Nt.computed)(function(){return(0,Nt.unref)(n).options}),(0,Nt.computed)(function(){return(0,Nt.unref)(n).previewOptions}));return fr(n,r,o),[mr((0,Nt.computed)(function(){return(0,Nt.unref)(n).collect||function(){return{}}}),r,o),wr(o,n),br(o,n)]}var Tr=/* @__PURE__ */function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dr(e,t,n){var r=lr(),o=function(e,t){var n=(0,Nt.computed)(function(){return new Tr((0,Nt.unref)(e),(0,Nt.unref)(t))});return(0,Nt.watchEffect)(function(){n.value.spec=(0,Nt.unref)(e)}),n}(e,t),i=function(e){return(0,Nt.computed)(function(){var t=(0,Nt.unref)(e).accept;return zt(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,Nt.watchEffect)(function(e){var a,s,c=(a=function(e,t,n){var r=(0,Nt.unref)(n).getRegistry(),o=r.addTarget((0,Nt.unref)(e),(0,Nt.unref)(t));return[o,function(){return r.removeTarget(o)}]}(i,o,r),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return Sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,Nt.unref)(t).receiveHandlerId(u),(0,Nt.unref)(n).receiveHandlerId(u),e(l)})}function Ir(e,t){return yr(function(t){(0,Nt.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,Nt.computed)(function(){return(0,Nt.unref)(t).options}))}function Er(e){var t,n=hr(e),r=(t=lr(),(0,Nt.computed)(function(){return new tr((0,Nt.unref)(t))})),o=function(e){var t=lr(),n=(0,Nt.computed)(function(){return new cr((0,Nt.unref)(t).getBackend())});return(0,Nt.watchEffect)(function(t){n.value.dropTargetOptions=(0,Nt.unref)(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}((0,Nt.computed)(function(){return(0,Nt.unref)(n).options}));return Dr(n,r,o),[mr((0,Nt.computed)(function(){return(0,Nt.unref)(n).collect||function(){return{}}}),r,o),Ir(o,n)]}function xr(e){let t=null;return()=>(null==t&&(t=e()),t)}var Cr=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=/* @__PURE__ */new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Pr=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},jr=/* @__PURE__ */t({FILE:()=>Rr,HTML:()=>kr,TEXT:()=>Ar,URL:()=>Nr}),Rr="__NATIVE_FILE__",Nr="__NATIVE_URL__",Ar="__NATIVE_TEXT__",kr="__NATIVE_HTML__";function Mr(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}var Lr={[Rr]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[kr]:{exposeProperties:{html:(e,t)=>Mr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Nr]:{exposeProperties:{urls:(e,t)=>Mr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ar]:{exposeProperties:{text:(e,t)=>Mr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function _r(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Lr).filter(e=>{const n=Lr[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var Fr=xr(()=>/firefox/i.test(navigator.userAgent)),Hr=xr(()=>Boolean(window.safari)),Wr=class{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const r=t[s];if(r<e)c=s+1;else{if(!(r>e))return n[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return n[a]+r[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<n-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const n=i[h+1],r=s+n;u.push(3*r/((r+n)/e+(r+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],n=e+u[h+1]-f-f;l.push((f-e-n)*t),d.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}};function Ur(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function $r(e){return{x:e.clientX,y:e.clientY}}var zr=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Br(e,t,n[t])})}return e}var qr=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Vr({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Vr({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(jr).some(t=>jr[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Lr[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Pr(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Ur(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=$r(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=_r(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(Fr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Ur(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Hr()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new Wr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:v?p:(()=>{let e=new Wr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return Hr()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=_r(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:$r(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=$r(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):_r(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:$r(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new zr(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Cr(this.isNodeInDocument)}},Yr=function(e,t,n){return new qr(e,t,n)},Xr={"zh-CN":()=>import("./zh_CN-CwWZ2JFL.js"),"en-US":()=>import("./en_US-DW_aBniN.js"),"pt-PT":()=>import("./pt_PT-fO3ABuZp.js"),"tr-TR":()=>import("./tr_TR-Dau_nW2e.js"),"zh-TW":()=>import("./zh_TW-NtzRUp8G.js"),"ja-JP":()=>import("./ja_JP-DQorABU8.js"),"vi-VN":()=>import("./vi_VN-BWVyxMZC.js"),"de-GE":()=>import("./de_DE-CMOqPpMk.js"),"fr-FR":()=>import("./fr_FR-B88CF-a2.js"),"es-ES":()=>import("./es_ES-Bog1JAla.js"),"ru-RU":()=>import("./ru_RU-DqC5EhBW.js")},Gr=R({locale:""});function Kr(){if(Gr.value.locale!==_gct.i18n.global.locale.value){const e=Xr[_gct.i18n.global.locale.value];e&&e().then(e=>{Gr.value=e.default})}return{getAntdLocale:Gr}}var Zr=j({});function Jr(){return{themeVars:Zr,setPrimaryColor:function(e){Zr.primaryColor=e,Y.config({theme:{primaryColor:e}})}}}function Qr(e,t,n={}){const r=n.minValue??10,o=R(e),i=j({offset:"offsetWidth",client:"clientX",clientMove:0,rowType:t,offsetWidth:2e3});function a(e){const t=e-i.clientMove;o.value=s(s(o.value)+t),i.clientMove=e}function s(e){return"right"===i.rowType||"bottom"===i.rowType?i.offsetWidth-e:e}return{moveDomDown:function(e,t,n){const r=t,o=e;i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.onmousemove=e=>{a(e[i.client]??0)},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null,null==n||n()}},moveMobileDomDown:function(e,t,n){const r=t,o=e.touches[0];o&&(i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.ontouchmove=e=>{a(e.touches[0][i.client]??0)},document.ontouchend=()=>{document.ontouchend=null,document.ontouchmove=null,null==n||n()})},start:h({get:()=>o.value<r?r:o.value>i.offsetWidth-r?i.offsetWidth-r:o.value,set(e){o.value=e}})}}var eo=/* @__PURE__ */function(e){return e.SELF_BUILT="SELF_BUILT",e.IMPORT="IMPORT",e}(eo||{});function to(e,t){const n=R(!1),r=R(!1),o=R(""),i=R(""),a=_gct.store.context.bid||"";function s(){const s=H(e),u=H(t);s&&(n.value=s.startsWith("$"),r.value=/\$?[A-Z]+_/.test(s),o.value=(n.value?"$":"")+(_gct.store.appInfo.sourceType===eo.IMPORT?r.value?"I":"i":"")+(n.value?s.substring(1):s)+(s.endsWith("_")?"":"_"),i.value=""===u||_gct.store.projectName===c.WEB_RENDER?"":a?"_"+(r.value?a.toUpperCase():a):"")}return s(),O(e)&&W(e,()=>{s()}),O(t)&&W(t,()=>{s()}),{keyPrefix:o,keySuffix:i,keyReset:s,keyPad:function(e){if(e)return`${o.value}${e}${i.value}`},keyClip:function(n){const r=H(e).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1],a=n.indexOf(r)+r.length,s=i.value&&""!==H(t)?n.lastIndexOf("_"):n.length;return o.value=n.substring(0,a+1),i.value=n.substring(s),n.substring(a+1,s)},keyPrePad:function(e){if(e)return`${o.value}${e}`},keyPreClip:function(t){const n=H(e).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1],r=t.indexOf(n)+n.length;return o.value=t.substring(0,r+1),t.substring(r+1)}}}var no=R(!1),ro=R(),oo=j({node:{}}),io=R([]),ao=R([]),so=R([]),co=R(),uo=R();function lo(){const e={init:void 0,add:void 0,update:void 0,delete:void 0,search:void 0};async function t(t){ao.value=await t(),co.value=r(),io.value=o(ao.value,co.value),e.init||(e.init=t),ao.value=ao.value.map(e=>({...e,userOrgName:i(e.id).join("/")}))}async function n(t,n){so.value=await t(n),uo.value||(uo.value=n),e.search||(e.search=t)}function r(e){if([...new Set((e??ao.value).map(e=>e.parentId))].includes("ROOT"))return"ROOT";const t=(e??ao.value).find(e=>e.id===e.tenantId);return t?t.parentId:""}function o(e,t="ROOT",n=1){const r=[];for(const i of e)if(i.parentId===t){const t=o(e,i.id,n+1);t.length>0?i.children=t.map(e=>(e.indexDeep=n,e)):i.children=[],r.push(i)}return r}const i=e=>{const t=[],n=ao.value.find(t=>t.id===e);return n?(n.fullPath.split("/").forEach(e=>{const n=ao.value.find(t=>e==t.id);n&&t.push(n.name)}),t):t};return{initTree:t,addTreeNode:async function(r,o){await r(o),e.add||(e.add=r),e.init&&t(e.init),e.search&&n(e.search,uo.value)},updateTreeNode:async function(r,o,i){await r(i??o.id,o),e.update||(e.update=r),e.init&&t(e.init),e.search&&n(e.search,uo.value)},deleteTreeNode:async function(r,o){await r(o),e.delete||(e.delete=r),e.init&&t(e.init),e.search&&n(e.search,uo.value)},dragTreeNode:async function(n,r){await n(r),e.init&&t(e.init)},treeData:io,treeOrignalData:ao,transformTreeData:o,setTreeSelect:function(e,t){ro.value=e,oo.node=t},selectedTreeKey:ro,selectTreeNode:oo,getTreeNamePathArr:i,getFilterTreeData:e=>{const t=$(H(ao.value)).filter(t=>t.tenantId===e.tenantId);return o(t,r(t))},isExistUser2SelectOrg:no,setOrgsExistUser:e=>{no.value=0!==e.length},searchTreeData:n,clearSearchTreeData:function(){so.value=[],uo.value=void 0,e.search=void 0},searchTreeOrignalData:so,restTree:()=>{no.value=!1,ro.value=void 0,oo.node={},io.value=[],ao.value=[],so.value=[],co.value=void 0,uo.value=void 0}}}var fo=/* @__PURE__ */p({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("modal"),r=R(!1),o=R(!!e.opts.defaultFullscreen),a=()=>{o.value=!o.value},s=R({});e.opts&&Object.assign(s.value,e.opts);let c=null;const u=new i({dismiss:e=>{r.value=!1,c=e,t.emit("dismiss",c)},setOptions(e){Object.assign(s.value,e)}});P("modal",u);const d=e=>u.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:d});const f=R(!1),h=async()=>{if(u.ok)try{f.value=!0;const e=await u.ok();f.value=!1,!e||!0!==e.ok&&!0!==e.close||d(e)}finally{f.value=!1}else console.warn("打开模态未实现ok方法")},p=async()=>{u.cancel&&!1===await u.cancel()||d()},{getAntdLocale:v}=Kr();return()=>{var e,i;let c;const l=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return l&&l.length>0&&(l[0].props.modal=u),g(Y,{locale:v.value},{default:()=>{return[g(Kn,{backend:Yr},(e=c=y(N("a-modal"),{visible:r.value,class:[n.b(),s.value.placement&&n.m(s.value.placement),s.value.modalClass,n.is("hidden-footer",!1===s.value.showFooter),n.is("hidden-close-btn",!1===s.value.showCloseBtn),n.is("hidden-cancel-btn",!1===s.value.showCancelBtn),n.is("full-screen",o.value)],centered:!0,onOk:h,confirmLoading:f.value,onCancel:p,okText:"确认",okButtonProps:{disabled:u.state.okDisabled},...s.value},[!1!==s.value.canFullscreen?g("div",{class:n.e("full-screen"),onClick:a},[g("i",{class:"iconfont "+(o.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,l]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!T(e)?c:{default:()=>[c]}))];var e}})}}}),ho=Math.min,go=Math.max,po=Math.round,vo=Math.floor,mo=e=>({x:e,y:e}),yo={left:"right",right:"left",bottom:"top",top:"bottom"};function wo(e,t,n){return go(e,ho(t,n))}function bo(e,t){return"function"==typeof e?e(t):e}function Oo(e){return e.split("-")[0]}function To(e){return e.split("-")[1]}function So(e){return"x"===e?"y":"x"}function Do(e){return"y"===e?"height":"width"}function Io(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Eo(e){return So(Io(e))}function xo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Co=["left","right"],Po=["right","left"],jo=["top","bottom"],Ro=["bottom","top"];function No(e){const t=Oo(e);return yo[t]+e.slice(t.length)}function Ao(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ko(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Mo(e,t,n){let{reference:r,floating:o}=e;const i=Io(t),a=Eo(t),s=Do(a),c=Oo(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(To(t)){case"start":h[a]-=f*(n&&u?-1:1);break;case"end":h[a]+=f*(n&&u?-1:1)}return h}async function Lo(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=bo(t,e),g=Ao(h),p=s[f?"floating"===d?"reference":"floating":d],v=ko(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(p)))||n?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),m="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=ko(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:y,strategy:c}):m);return{top:(v.top-b.top+g.top)/w.y,bottom:(b.bottom-v.bottom+g.bottom)/w.y,left:(v.left-b.left+g.left)/w.x,right:(b.right-v.right+g.right)/w.x}}var _o=/* @__PURE__ */new Set(["left","top"]);function Fo(){return"undefined"!=typeof window}function Ho(e){return $o(e)?(e.nodeName||"").toLowerCase():"#document"}function Wo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Uo(e){var t;return null==(t=($o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $o(e){return!!Fo()&&(e instanceof Node||e instanceof Wo(e).Node)}function zo(e){return!!Fo()&&(e instanceof Element||e instanceof Wo(e).Element)}function Bo(e){return!!Fo()&&(e instanceof HTMLElement||e instanceof Wo(e).HTMLElement)}function Vo(e){return!(!Fo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Wo(e).ShadowRoot)}function qo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Yo(e){return/^(table|td|th)$/.test(Ho(e))}function Xo(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var Go,Ko=/transform|translate|scale|rotate|perspective|filter/,Zo=/paint|layout|strict|content/,Jo=e=>!!e&&"none"!==e;function Qo(e){const t=zo(e)?ni(e):e;return Jo(t.transform)||Jo(t.translate)||Jo(t.scale)||Jo(t.rotate)||Jo(t.perspective)||!ei()&&(Jo(t.backdropFilter)||Jo(t.filter))||Ko.test(t.willChange||"")||Zo.test(t.contain||"")}function ei(){return null==Go&&(Go="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Go}function ti(e){return/^(html|body|#document)$/.test(Ho(e))}function ni(e){return Wo(e).getComputedStyle(e)}function ri(e){return zo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oi(e){if("html"===Ho(e))return e;const t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Uo(e);return Vo(t)?t.host:t}function ii(e){const t=oi(e);return ti(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bo(t)&&qo(t)?t:ii(t)}function ai(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ii(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Wo(o);if(i){const e=si(a);return t.concat(a,a.visualViewport||[],qo(o)?o:[],e&&n?ai(e):[])}return t.concat(o,ai(o,[],n))}function si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ci(e){const t=ni(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=po(n)!==i||po(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ui(e){return zo(e)?e:e.contextElement}function li(e){const t=ui(e);if(!Bo(t))return mo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ci(t);let a=(i?po(n.width):n.width)/r,s=(i?po(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var di=/* @__PURE__ */mo(0);function fi(e){const t=Wo(e);return ei()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:di}function hi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ui(e);let a=mo(1);t&&(r?zo(r)&&(a=li(r)):a=li(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Wo(e))&&t}(i,n,r)?fi(i):mo(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Wo(i),t=r&&zo(r)?Wo(r):r;let n=e,o=si(n);for(;o&&r&&t!==n;){const e=li(o),t=o.getBoundingClientRect(),r=ni(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=Wo(o),o=si(n)}}return ko({width:l,height:d,x:c,y:u})}function gi(e,t){const n=ri(e).scrollLeft;return t?t.left+n:hi(Uo(e)).left+n}function pi(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-gi(e,n),y:n.top+t.scrollTop}}function vi(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Wo(e),r=Uo(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=ei();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const u=gi(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Uo(e),n=ri(e),r=e.ownerDocument.body,o=go(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=go(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+gi(e);const s=-n.scrollTop;return"rtl"===ni(r).direction&&(a+=go(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Uo(e));else if(zo(t))r=function(e,t){const n=hi(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bo(e)?li(e):mo(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=fi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ko(r)}function mi(e,t){const n=oi(e);return!(n===t||!zo(n)||ti(n))&&("fixed"===ni(n).position||mi(n,t))}function yi(e,t){const n=t.get(e);if(n)return n;let r=ai(e,[],!1).filter(e=>zo(e)&&"body"!==Ho(e)),o=null;const i="fixed"===ni(e).position;let a=i?oi(e):e;for(;zo(a)&&!ti(a);){const t=ni(a),n=Qo(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||qo(a)&&!n&&mi(e,a))?r=r.filter(e=>e!==a):o=t,a=oi(a)}return t.set(e,r),r}function wi(e,t,n){const r=Bo(t),o=Uo(t),i="fixed"===n,a=hi(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=mo(0);function u(){c.x=gi(o)}if(r||!r&&!i)if(("body"!==Ho(t)||qo(o))&&(s=ri(t)),r){const e=hi(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const l=!o||r||i?mo(0):pi(o,s);return{x:a.left+s.scrollLeft-c.x-l.x,y:a.top+s.scrollTop-c.y-l.y,width:a.width,height:a.height}}function bi(e){return"static"===ni(e).position}function Oi(e,t){if(!Bo(e)||"fixed"===ni(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Uo(e)===n&&(n=n.ownerDocument.body),n}function Ti(e,t){const n=Wo(e);if(Xo(e))return n;if(!Bo(e)){let t=oi(e);for(;t&&!ti(t);){if(zo(t)&&!bi(t))return t;t=oi(t)}return n}let r=Oi(e,t);for(;r&&Yo(r)&&bi(r);)r=Oi(r,t);return r&&ti(r)&&bi(r)&&!Qo(r)?n:r||function(e){let t=oi(e);for(;Bo(t)&&!ti(t);){if(Qo(t))return t;if(Xo(t))return null;t=oi(t)}return null}(e)||n}var Si={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Uo(r),s=!!t&&Xo(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=mo(1);const l=mo(0),d=Bo(r);if((d||!d&&!i)&&(("body"!==Ho(r)||qo(a))&&(c=ri(r)),d)){const e=hi(r);u=li(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const f=!a||d||i?mo(0):pi(a,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:n.y*u.y-c.scrollTop*u.y+l.y+f.y}},getDocumentElement:Uo,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Xo(t)?[]:yi(t,this._c):[].concat(n),r],a=vi(t,i[0],o);let s=a.top,c=a.right,u=a.bottom,l=a.left;for(let d=1;d<i.length;d++){const e=vi(t,i[d],o);s=go(e.top,s),c=ho(e.right,c),u=ho(e.bottom,u),l=go(e.left,l)}return{width:c-l,height:u-s,x:l,y:s}},getOffsetParent:Ti,getElementRects:async function(e){const t=this.getOffsetParent||Ti,n=this.getDimensions,r=await n(e.floating);return{reference:wi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ci(e);return{width:t,height:n}},getScale:li,isElement:zo,isRTL:function(e){return"rtl"===ni(e).direction}};function Di(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Ii=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Oo(n),s=To(n),c="y"===Io(n),u=_o.has(a)?-1:1,l=i&&c?-1:1,d=bo(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),c?{x:h*l,y:f*u}:{x:f*u,y:h*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=bo(e,t),l={x:n,y:r},d=await i.detectOverflow(t,u),f=Io(Oo(o)),h=So(f);let g=l[h],p=l[f];if(a){const e="y"===h?"bottom":"right";g=wo(g+d["y"===h?"top":"left"],g,g-d[e])}if(s){const e="y"===f?"bottom":"right";p=wo(p+d["y"===f?"top":"left"],p,p-d[e])}const v=c.fn({...t,[h]:g,[f]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:a,[f]:s}}}}}},xi=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=bo(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=Oo(o),y=Io(s),w=Oo(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(u.floating)),O=f||(w||!p?[No(s)]:function(e){const t=No(e);return[xo(e),t,xo(t)]}(s)),T="none"!==g;!f&&T&&O.push(...function(e,t,n,r){const o=To(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Po:Co:t?Co:Po;case"left":case"right":return t?jo:Ro;default:return[]}}(Oo(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(xo)))),i}(s,p,g,b));const S=[s,...O],D=await c.detectOverflow(t,v),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&I.push(D[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=To(e),o=Eo(e),i=Do(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=No(a)),[a,No(a)]}(o,a,b);I.push(D[e[0]],D[e[1]])}if(E=[...E,{placement:o,overflows:I}],!I.every(e=>e<=0)){var x,C;const e=((null==(x=i.flip)?void 0:x.index)||0)+1,t=S[e];if(t&&("alignment"!==d||y===Io(t)||E.every(e=>Io(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(C=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var P;const e=null==(P=E.filter(e=>{if(T){const t=Io(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Ci=/* @__PURE__ */p({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("popover"),r=R(!1),o=R(),a=R(),s=j({}),{width:c,height:u,maxHeight:d}=e.opts;c&&(B(c)?s.width=`${c}px`:s.width=c),u&&(B(u)?s.height=`${u}px`:s.height=u),d&&(B(d)?s.maxHeight=`${d}px`:s.maxHeight=d);const f=new i({dismiss:e=>{t.emit("dismiss",e)}});function h(e){return f.dismiss(e)}let p=()=>{};C(()=>{p()}),Te(o,()=>{h({ok:!1})}),t.expose({present:async function(t){r.value=!0,p=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ui(e),l=o||i?[...u?ai(u):[],...t?ai(t):[]]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=Uo(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const u=e.getBoundingClientRect(),{left:l,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;const g={rootMargin:-vo(d)+"px "+-vo(o.clientWidth-(l+f))+"px "+-vo(o.clientHeight-(d+h))+"px "+-vo(l)+"px",threshold:go(0,ho(1,c))||1};let p=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!p)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Di(u,e.getBoundingClientRect())||a(),p=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(m){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),i}(u,n):null;let f,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),u&&!c&&g.observe(u),t&&g.observe(t));let p=c?hi(e):null;return c&&function t(){const r=hi(e);p&&!Di(p,r)&&n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(f)}}(t,o.value,()=>async function(e,t,n,r){const o=[Ii(r.offsetOpts||6),xi(),Ei()];r.noArrow||o.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=bo(e,t)||{};if(null==u)return{};const d=Ao(l),f={x:n,y:r},h=Eo(o),g=Do(h),p=await a.getDimensions(u),v="y"===h,m=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-f[h]-i.floating[g],O=f[h]-i.reference[h],T=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=T?T[w]:0;S&&await(null==a.isElement?void 0:a.isElement(T))||(S=s.floating[w]||i.floating[g]);const D=b/2-O/2,I=S/2-p[g]/2-1,E=ho(d[m],I),x=ho(d[y],I),C=E,P=S-p[g]-x,j=S/2-p[g]/2+D,R=wo(C,j,P),N=!c.arrow&&null!=To(o)&&j!==R&&i.reference[g]/2-(j<C?E:x)-p[g]/2<0,A=N?j<C?j-C:j-P:0;return{[h]:f[h]+A,data:{[h]:R,centerOffset:j-R-A,...N&&{alignmentOffset:A}},reset:N}}}))({element:n}));const i={placement:r.placement,strategy:"absolute",middleware:o};r.options&&Object.assign(i,r.options);const a=await((e,t,n)=>{const r=/* @__PURE__ */new Map,o={platform:Si,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Lo},c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=Mo(u,r,c),f=r,h=0;const g={};for(let p=0;p<i.length;p++){const n=i[p];if(!n)continue;const{name:v,fn:m}=n,{x:y,y:w,data:b,reset:O}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});l=null!=y?y:l,d=null!=w?w:d,g[v]={...g[v],...b},O&&h<50&&(h++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(u=!0===O.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:l,y:d}=Mo(u,f,c))),p=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})})(e,t,i);{const{x:e,y:o,placement:i,middlewareData:s}=a,{style:c}=t;if(c.left=`${e}px`,c.top=`${o}px`,!r.noArrow){const{x:e,y:t}=s.arrow,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[r]:"-4px"})}}}(t,o.value,a.value,e.opts))},dismiss:h});const{getAntdLocale:v}=Kr();return()=>{var i,c;const u=null===(i=(c=t.slots).default)||void 0===i?void 0:i.call(c);u&&u.length>0&&u[0].props&&(u[0].props.modal=f);const l=g("div",{class:[n.b(),n.is("show",r.value),e.opts.className],ref:o,style:s,onClick:e=>{e.stopPropagation()}},[!e.opts.noArrow&&g("div",{class:[n.e("arrow")],ref:a},null),u]);return!0===e.opts.autoClose?g("div",{class:[n.e("overlay")],onClick:()=>{!0===e.opts.autoClose&&h()}},[l]):g(Y,{locale:v.value},{default:()=>{return[g(Kn,{backend:Yr},(e=l,"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!T(e)?l:{default:()=>[l]}))];var e}})}}}),Pi=/* @__PURE__ */p({name:"AppFullScreenContainer",props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("app-full-screen-container"),r=R(!1),o=R({});e.opts&&Object.assign(o.value,e.opts);let a=null;const s=new i({dismiss:e=>{r.value=!1,a=e,t.emit("dismiss",a)}});P("modal",s);const c=e=>s.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:c,ok:async()=>{if(s.ok){const e=await s.ok();e&&e.ok&&c(e)}else console.warn("打开模态未实现ok方法")},cancel:()=>s.cancel?s.cancel():c()});const{getAntdLocale:u}=Kr();return()=>{var e,i;let a;const c=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return c&&c.length>0&&c[0].props&&(c[0].props.modal=s),g(Y,{locale:u.value},{default:()=>{return[g(Kn,{backend:Yr},(e=a=y("div",{class:[n.b(),n.is("is-hidden",!0!==r.value),o.value.containerClass],...o.value},[c]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!T(e)?a:{default:()=>[a]}))];var e}})}}});function ji(e){return V(e)?N(e):e}var Ri=class{async modal(e,t,n){const r=this.createModal(e,t,n);return r.present(),r.onWillDismiss()}createModal(e,t,n){return function(e,t){return new a(fo,e,t)}(z(e)?e:()=>y(ji(e),{...t}),n)}popover(e,t,n,r){const o=this.createPopover(t,n,r);return o.present(e),o.onWillDismiss()}createPopover(e,t,n){return function(e,t){return new s(Ci,e,t)}(z(e)?e:()=>y(ji(e),{...t}),n)}fullScreen(e,t,n){const r=this.createFullScreen(e,t,n);return r.present(),r.onWillDismiss()}createFullScreen(e,t,n){return function(e,t){return new a(Pi,e,t)}(z(e)?e:()=>y(ji(e),{...t}),n)}},Ni=new Ri,Ai=(e,t)=>(e.install=n=>{const r=e.name||e.displayName||e.__name;r&&(n.component(r,e),t&&(n.config.globalProperties[t]=e))},e),ki={childrenFields:["children"]},Mi=/* @__PURE__ */new Error("中断操作");function Li(e,t){for(const n of t){const t=e[n];if(Array.isArray(t)&&t.length>0)return t}}function _i(e,t,n,r){const{childrenFields:o}=q({},ki,r||{});if(null==t?void 0:t.length)for(let i=0;i<t.length;i++){const a=t[i];if(n({item:a,index:i,parent:e}))throw Mi;const s=Li(a,o);(null==s?void 0:s.length)&&_i(a,s,n,r)}}function Fi(e,t,n){const{childrenFields:r}=q({},ki,n||{});try{const o=Array.isArray(e)?void 0:e,i=Array.isArray(e)?e:Li(e,r);(null==i?void 0:i.length)?_i(o,i,t,n):console.warn("没有可遍历的数组",e,n)}catch(o){if(o!==Mi)throw o}}var Hi={...ki,compareField:"id",compareCallback:({item:e,key:t,compareField:n})=>e[n]===t};function Wi(e,t,n){const{compareField:r,compareCallback:o}=q({},Hi,n||{});let i,a;return Fi(e,e=>{if(o({...e,key:t,compareField:r}))return i=e.item,a=e.parent,!0},n),i?{child:i,parent:a}:void 0}function Ui(e,t){const n=e=>Ui(e,t);return e.map(e=>t(e,n))}function $i(e,t,n){const{childrenFields:r}=q({},ki,n||{});return function e(n,o){return n.filter(n=>{console.log("item",n.title);const i=Li(n,r);let a=[];return(null==i?void 0:i.length)&&(a=e(i,n)),n[r[0]]=a,!!a.length||t(n,o)})}(e)}var zi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};export{ge as A,Re as C,xe as D,De as E,pe as M,ve as N,Ae as O,Te as S,Ce as T,jt as _,Ui as a,Ve as b,Ni as c,Qr as d,Jr as f,Rt as g,Or as h,Fi as i,fe as j,ze as k,lo as l,Er as m,$i as n,Ai as o,Kr as p,Wi as r,Ri as s,zi as t,to as u,qe as v,Ne as w,Be as x,Ye as y};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.17 */
|
|
2
2
|
var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,n=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,r)=>{let o={};for(var l in e)t(o,l,{get:e[l],enumerable:!0});return r||t(o,Symbol.toStringTag,{value:"Module"}),o},p=(e,l,n,u)=>{if(l&&"object"==typeof l||"function"==typeof l)for(var p,b=o(l),c=0,f=b.length;c<f;c++)p=b[c],a.call(e,p)||p===n||t(e,p,{get:(e=>l[e]).bind(null,p),enumerable:!(u=r(l,p))||u.enumerable});return e},b=(e,t,r)=>(p(e,t,"default"),r&&p(r,t,"default")),c=(r,o,a)=>(a=null!=r?e(l(r)):{},p(!o&&r&&r.__esModule?a:t(a,"default",{value:r,enumerable:!0}),r));export{c as i,u as n,b as r,n as t};
|