rb-document-form-constructor 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rb-document-form-constructor.esm.js +173 -44
- package/dist/rb-document-form-constructor.min.js +1 -1
- package/dist/rb-document-form-constructor.ssr.js +170 -44
- package/dist/scss/_variables.scss +2 -0
- package/dist/scss/components/_doc-form.scss +32 -0
- package/package.json +1 -1
- package/src/components/DocForm.vue +43 -0
|
@@ -267,7 +267,7 @@ const UtFormConfig = {
|
|
|
267
267
|
//
|
|
268
268
|
//
|
|
269
269
|
//
|
|
270
|
-
var script$
|
|
270
|
+
var script$4 = {
|
|
271
271
|
name: 'DocTemplateSectionModal',
|
|
272
272
|
props: {
|
|
273
273
|
section: Object,
|
|
@@ -401,10 +401,10 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
|
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
/* script */
|
|
404
|
-
const __vue_script__$
|
|
404
|
+
const __vue_script__$4 = script$4;
|
|
405
405
|
/* template */
|
|
406
406
|
|
|
407
|
-
var __vue_render__$
|
|
407
|
+
var __vue_render__$4 = function () {
|
|
408
408
|
var _vm = this;
|
|
409
409
|
|
|
410
410
|
var _h = _vm.$createElement;
|
|
@@ -452,31 +452,31 @@ var __vue_render__$3 = function () {
|
|
|
452
452
|
})], 1)], 1)], 1)], 1)], 1);
|
|
453
453
|
};
|
|
454
454
|
|
|
455
|
-
var __vue_staticRenderFns__$
|
|
455
|
+
var __vue_staticRenderFns__$4 = [];
|
|
456
456
|
/* style */
|
|
457
457
|
|
|
458
|
-
const __vue_inject_styles__$
|
|
458
|
+
const __vue_inject_styles__$4 = undefined;
|
|
459
459
|
/* scoped */
|
|
460
460
|
|
|
461
|
-
const __vue_scope_id__$
|
|
461
|
+
const __vue_scope_id__$4 = undefined;
|
|
462
462
|
/* module identifier */
|
|
463
463
|
|
|
464
|
-
const __vue_module_identifier__$
|
|
464
|
+
const __vue_module_identifier__$4 = undefined;
|
|
465
465
|
/* functional template */
|
|
466
466
|
|
|
467
|
-
const __vue_is_functional_template__$
|
|
467
|
+
const __vue_is_functional_template__$4 = false;
|
|
468
468
|
/* style inject */
|
|
469
469
|
|
|
470
470
|
/* style inject SSR */
|
|
471
471
|
|
|
472
472
|
/* style inject shadow dom */
|
|
473
473
|
|
|
474
|
-
const __vue_component__$
|
|
475
|
-
render: __vue_render__$
|
|
476
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
477
|
-
}, __vue_inject_styles__$
|
|
474
|
+
const __vue_component__$6 = /*#__PURE__*/normalizeComponent({
|
|
475
|
+
render: __vue_render__$4,
|
|
476
|
+
staticRenderFns: __vue_staticRenderFns__$4
|
|
477
|
+
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
|
|
478
478
|
|
|
479
|
-
var DocTemplateSectionModal = __vue_component__$
|
|
479
|
+
var DocTemplateSectionModal = __vue_component__$6;
|
|
480
480
|
|
|
481
481
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
482
482
|
|
|
@@ -5867,7 +5867,7 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
5867
5867
|
});
|
|
5868
5868
|
|
|
5869
5869
|
//
|
|
5870
|
-
var script$
|
|
5870
|
+
var script$3 = {
|
|
5871
5871
|
name: 'DocTemplateFacetList',
|
|
5872
5872
|
components: {
|
|
5873
5873
|
draggable: vuedraggable_umd
|
|
@@ -5949,10 +5949,10 @@ var script$2 = {
|
|
|
5949
5949
|
};
|
|
5950
5950
|
|
|
5951
5951
|
/* script */
|
|
5952
|
-
const __vue_script__$
|
|
5952
|
+
const __vue_script__$3 = script$3;
|
|
5953
5953
|
/* template */
|
|
5954
5954
|
|
|
5955
|
-
var __vue_render__$
|
|
5955
|
+
var __vue_render__$3 = function () {
|
|
5956
5956
|
var _vm = this;
|
|
5957
5957
|
|
|
5958
5958
|
var _h = _vm.$createElement;
|
|
@@ -6028,34 +6028,34 @@ var __vue_render__$2 = function () {
|
|
|
6028
6028
|
}), 0)], 1);
|
|
6029
6029
|
};
|
|
6030
6030
|
|
|
6031
|
-
var __vue_staticRenderFns__$
|
|
6031
|
+
var __vue_staticRenderFns__$3 = [];
|
|
6032
6032
|
/* style */
|
|
6033
6033
|
|
|
6034
|
-
const __vue_inject_styles__$
|
|
6034
|
+
const __vue_inject_styles__$3 = undefined;
|
|
6035
6035
|
/* scoped */
|
|
6036
6036
|
|
|
6037
|
-
const __vue_scope_id__$
|
|
6037
|
+
const __vue_scope_id__$3 = undefined;
|
|
6038
6038
|
/* module identifier */
|
|
6039
6039
|
|
|
6040
|
-
const __vue_module_identifier__$
|
|
6040
|
+
const __vue_module_identifier__$3 = undefined;
|
|
6041
6041
|
/* functional template */
|
|
6042
6042
|
|
|
6043
|
-
const __vue_is_functional_template__$
|
|
6043
|
+
const __vue_is_functional_template__$3 = false;
|
|
6044
6044
|
/* style inject */
|
|
6045
6045
|
|
|
6046
6046
|
/* style inject SSR */
|
|
6047
6047
|
|
|
6048
6048
|
/* style inject shadow dom */
|
|
6049
6049
|
|
|
6050
|
-
const __vue_component__$
|
|
6051
|
-
render: __vue_render__$
|
|
6052
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
6053
|
-
}, __vue_inject_styles__$
|
|
6050
|
+
const __vue_component__$5 = /*#__PURE__*/normalizeComponent({
|
|
6051
|
+
render: __vue_render__$3,
|
|
6052
|
+
staticRenderFns: __vue_staticRenderFns__$3
|
|
6053
|
+
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
|
|
6054
6054
|
|
|
6055
|
-
var DocTemplateFacetList = __vue_component__$
|
|
6055
|
+
var DocTemplateFacetList = __vue_component__$5;
|
|
6056
6056
|
|
|
6057
6057
|
//
|
|
6058
|
-
var script$
|
|
6058
|
+
var script$2 = {
|
|
6059
6059
|
name: 'DocTemplateFieldSidebar',
|
|
6060
6060
|
props: {
|
|
6061
6061
|
value: {
|
|
@@ -6143,10 +6143,10 @@ var script$1 = {
|
|
|
6143
6143
|
};
|
|
6144
6144
|
|
|
6145
6145
|
/* script */
|
|
6146
|
-
const __vue_script__$
|
|
6146
|
+
const __vue_script__$2 = script$2;
|
|
6147
6147
|
/* template */
|
|
6148
6148
|
|
|
6149
|
-
var __vue_render__$
|
|
6149
|
+
var __vue_render__$2 = function () {
|
|
6150
6150
|
var _vm = this;
|
|
6151
6151
|
|
|
6152
6152
|
var _h = _vm.$createElement;
|
|
@@ -6358,34 +6358,34 @@ var __vue_render__$1 = function () {
|
|
|
6358
6358
|
}, 'component', _vm.field.input.propsData, false))], 1)], 1)], 1)], 1) : _vm._e()]) : _vm._e()], 1);
|
|
6359
6359
|
};
|
|
6360
6360
|
|
|
6361
|
-
var __vue_staticRenderFns__$
|
|
6361
|
+
var __vue_staticRenderFns__$2 = [];
|
|
6362
6362
|
/* style */
|
|
6363
6363
|
|
|
6364
|
-
const __vue_inject_styles__$
|
|
6364
|
+
const __vue_inject_styles__$2 = undefined;
|
|
6365
6365
|
/* scoped */
|
|
6366
6366
|
|
|
6367
|
-
const __vue_scope_id__$
|
|
6367
|
+
const __vue_scope_id__$2 = undefined;
|
|
6368
6368
|
/* module identifier */
|
|
6369
6369
|
|
|
6370
|
-
const __vue_module_identifier__$
|
|
6370
|
+
const __vue_module_identifier__$2 = undefined;
|
|
6371
6371
|
/* functional template */
|
|
6372
6372
|
|
|
6373
|
-
const __vue_is_functional_template__$
|
|
6373
|
+
const __vue_is_functional_template__$2 = false;
|
|
6374
6374
|
/* style inject */
|
|
6375
6375
|
|
|
6376
6376
|
/* style inject SSR */
|
|
6377
6377
|
|
|
6378
6378
|
/* style inject shadow dom */
|
|
6379
6379
|
|
|
6380
|
-
const __vue_component__$
|
|
6381
|
-
render: __vue_render__$
|
|
6382
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
6383
|
-
}, __vue_inject_styles__$
|
|
6380
|
+
const __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
6381
|
+
render: __vue_render__$2,
|
|
6382
|
+
staticRenderFns: __vue_staticRenderFns__$2
|
|
6383
|
+
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
|
|
6384
6384
|
|
|
6385
|
-
var DocTemplateFieldSidebar = __vue_component__$
|
|
6385
|
+
var DocTemplateFieldSidebar = __vue_component__$4;
|
|
6386
6386
|
|
|
6387
6387
|
//
|
|
6388
|
-
var script = {
|
|
6388
|
+
var script$1 = {
|
|
6389
6389
|
name: 'DocTemplateConstructor',
|
|
6390
6390
|
components: {
|
|
6391
6391
|
DocTemplateFacetList,
|
|
@@ -6562,10 +6562,10 @@ var script = {
|
|
|
6562
6562
|
};
|
|
6563
6563
|
|
|
6564
6564
|
/* script */
|
|
6565
|
-
const __vue_script__ = script;
|
|
6565
|
+
const __vue_script__$1 = script$1;
|
|
6566
6566
|
/* template */
|
|
6567
6567
|
|
|
6568
|
-
var __vue_render__ = function () {
|
|
6568
|
+
var __vue_render__$1 = function () {
|
|
6569
6569
|
var _vm = this;
|
|
6570
6570
|
|
|
6571
6571
|
var _h = _vm.$createElement;
|
|
@@ -6793,6 +6793,134 @@ var __vue_render__ = function () {
|
|
|
6793
6793
|
})], 1)], 1);
|
|
6794
6794
|
};
|
|
6795
6795
|
|
|
6796
|
+
var __vue_staticRenderFns__$1 = [];
|
|
6797
|
+
/* style */
|
|
6798
|
+
|
|
6799
|
+
const __vue_inject_styles__$1 = undefined;
|
|
6800
|
+
/* scoped */
|
|
6801
|
+
|
|
6802
|
+
const __vue_scope_id__$1 = undefined;
|
|
6803
|
+
/* module identifier */
|
|
6804
|
+
|
|
6805
|
+
const __vue_module_identifier__$1 = undefined;
|
|
6806
|
+
/* functional template */
|
|
6807
|
+
|
|
6808
|
+
const __vue_is_functional_template__$1 = false;
|
|
6809
|
+
/* style inject */
|
|
6810
|
+
|
|
6811
|
+
/* style inject SSR */
|
|
6812
|
+
|
|
6813
|
+
/* style inject shadow dom */
|
|
6814
|
+
|
|
6815
|
+
const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
6816
|
+
render: __vue_render__$1,
|
|
6817
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
6818
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
6819
|
+
|
|
6820
|
+
var __vue_component__$3 = __vue_component__$2;
|
|
6821
|
+
|
|
6822
|
+
//
|
|
6823
|
+
//
|
|
6824
|
+
//
|
|
6825
|
+
//
|
|
6826
|
+
//
|
|
6827
|
+
//
|
|
6828
|
+
//
|
|
6829
|
+
//
|
|
6830
|
+
//
|
|
6831
|
+
//
|
|
6832
|
+
//
|
|
6833
|
+
//
|
|
6834
|
+
//
|
|
6835
|
+
//
|
|
6836
|
+
//
|
|
6837
|
+
//
|
|
6838
|
+
//
|
|
6839
|
+
//
|
|
6840
|
+
//
|
|
6841
|
+
//
|
|
6842
|
+
//
|
|
6843
|
+
//
|
|
6844
|
+
//
|
|
6845
|
+
//
|
|
6846
|
+
//
|
|
6847
|
+
var script = {
|
|
6848
|
+
name: 'DocForm',
|
|
6849
|
+
props: {
|
|
6850
|
+
formConfig: Object,
|
|
6851
|
+
doc: {
|
|
6852
|
+
type: Object,
|
|
6853
|
+
default: () => ({})
|
|
6854
|
+
}
|
|
6855
|
+
},
|
|
6856
|
+
|
|
6857
|
+
created() {
|
|
6858
|
+
this.formConfig.sections.forEach(r => {
|
|
6859
|
+
r.columns.forEach(c => {
|
|
6860
|
+
c.fields.forEach(f => {
|
|
6861
|
+
this.doc[f.name] = f.defaultValue;
|
|
6862
|
+
});
|
|
6863
|
+
});
|
|
6864
|
+
});
|
|
6865
|
+
}
|
|
6866
|
+
|
|
6867
|
+
};
|
|
6868
|
+
|
|
6869
|
+
/* script */
|
|
6870
|
+
const __vue_script__ = script;
|
|
6871
|
+
/* template */
|
|
6872
|
+
|
|
6873
|
+
var __vue_render__ = function () {
|
|
6874
|
+
var _vm = this;
|
|
6875
|
+
|
|
6876
|
+
var _h = _vm.$createElement;
|
|
6877
|
+
|
|
6878
|
+
var _c = _vm._self._c || _h;
|
|
6879
|
+
|
|
6880
|
+
return _c('b-form', {
|
|
6881
|
+
staticClass: "rb-doc-form"
|
|
6882
|
+
}, _vm._l(_vm.formConfig.sections, function (section) {
|
|
6883
|
+
return _c('div', {
|
|
6884
|
+
key: section.labelRu,
|
|
6885
|
+
staticClass: "rb-form-section"
|
|
6886
|
+
}, [_c('h4', [_vm._v(_vm._s(section.labelRu))]), _vm._v(" "), _c('div', {
|
|
6887
|
+
staticClass: "d-flex flex-row"
|
|
6888
|
+
}, _vm._l(section.columns, function (column) {
|
|
6889
|
+
return _c('div', {
|
|
6890
|
+
key: column.index,
|
|
6891
|
+
staticClass: "rb-form-column",
|
|
6892
|
+
class: {
|
|
6893
|
+
'rb-single-column': section.columnCount === 1
|
|
6894
|
+
}
|
|
6895
|
+
}, _vm._l(column.fields, function (field) {
|
|
6896
|
+
return _c('b-form-row', {
|
|
6897
|
+
key: field.name,
|
|
6898
|
+
staticClass: "cursor-pointer"
|
|
6899
|
+
}, [_c('b-col', {
|
|
6900
|
+
attrs: {
|
|
6901
|
+
"lg": "12"
|
|
6902
|
+
}
|
|
6903
|
+
}, [_c('b-form-group', {
|
|
6904
|
+
ref: "inputContainer",
|
|
6905
|
+
refInFor: true,
|
|
6906
|
+
attrs: {
|
|
6907
|
+
"label": field.labelRu
|
|
6908
|
+
}
|
|
6909
|
+
}, [_c(field.input.type, _vm._b({
|
|
6910
|
+
tag: "component",
|
|
6911
|
+
model: {
|
|
6912
|
+
value: _vm.doc[field.name],
|
|
6913
|
+
callback: function ($$v) {
|
|
6914
|
+
_vm.$set(_vm.doc, field.name, $$v);
|
|
6915
|
+
},
|
|
6916
|
+
expression: "doc[field.name]"
|
|
6917
|
+
}
|
|
6918
|
+
}, 'component', field.input.propsData, false))], 1)], 1)], 1);
|
|
6919
|
+
}), 1);
|
|
6920
|
+
}), 0)]);
|
|
6921
|
+
}), 0);
|
|
6922
|
+
};
|
|
6923
|
+
|
|
6796
6924
|
var __vue_staticRenderFns__ = [];
|
|
6797
6925
|
/* style */
|
|
6798
6926
|
|
|
@@ -6827,7 +6955,8 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
6827
6955
|
DocTemplateSectionModal: DocTemplateSectionModal,
|
|
6828
6956
|
DocTemplateFacetList: DocTemplateFacetList,
|
|
6829
6957
|
DocTemplateFieldSidebar: DocTemplateFieldSidebar,
|
|
6830
|
-
DocTemplateConstructor: __vue_component__$
|
|
6958
|
+
DocTemplateConstructor: __vue_component__$3,
|
|
6959
|
+
DocForm: __vue_component__$1
|
|
6831
6960
|
});
|
|
6832
6961
|
|
|
6833
6962
|
// Import vue components
|
|
@@ -6839,4 +6968,4 @@ const install = function installRbDocumentFormConstructor(Vue) {
|
|
|
6839
6968
|
});
|
|
6840
6969
|
}; // Create module definition for Vue.use()
|
|
6841
6970
|
|
|
6842
|
-
export { __vue_component__$1 as DocTemplateConstructor, DocTemplateFacetList, DocTemplateFieldSidebar, DocTemplateSectionModal, UtFormConfig, install as default };
|
|
6971
|
+
export { __vue_component__$1 as DocForm, __vue_component__$3 as DocTemplateConstructor, DocTemplateFacetList, DocTemplateFieldSidebar, DocTemplateSectionModal, UtFormConfig, install as default };
|
|
@@ -5,4 +5,4 @@ var RbDocumentFormConstructor=function(){"use strict";function t(t,e){var n=Obje
|
|
|
5
5
|
* @author owenm <owen23355@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
-
function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},g.apply(this,arguments)}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){v(t,e,n[e])}))}return t}function b(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function y(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var x=y(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=y(/Edge/i),_=y(/firefox/i),S=y(/safari/i)&&!y(/chrome/i)&&!y(/android/i),C=y(/iP(ad|od|hone)/i),O=y(/chrome/i)&&y(/android/i),D={capture:!1,passive:!1};function E(t,e,n){t.addEventListener(e,n,!x&&D)}function T(t,e,n){t.removeEventListener(e,n,!x&&D)}function I(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function k(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&I(t,e):I(t,e))||o&&t===n)return t;if(t===n)break}while(t=M(t))}return null}var P,A=/\s+/g;function F(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(A," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(A," ")}}function j(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function N(t,e){var n="";if("string"==typeof t)n=t;else do{var o=j(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function R(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function L(){var t=document.scrollingElement;return t||document.documentElement}function $(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,f;if(t!==window&&t!==L()?(a=(i=t.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,f=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!x))do{if(r&&r.getBoundingClientRect&&("none"!==j(r,"transform")||n&&"static"!==j(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(j(r,"border-top-width")),l-=d.left+parseInt(j(r,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=N(r||t),h=p&&p.a,v=p&&p.d;p&&(s=(a/=v)+(u/=v),c=(l/=h)+(f/=h))}return{top:a,left:l,bottom:s,right:c,width:f,height:u}}}function V(t,e,n){for(var o=U(t,!0),r=$(t)[e];o;){var i=$(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===L())break;o=U(o,!1)}return!1}function X(t,e,n){for(var o=0,r=0,i=t.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==zt.ghost&&i[r]!==zt.dragged&&k(i[r],n.draggable,t,!1)){if(o===e)return i[r];o++}r++}return null}function B(t,e){for(var n=t.lastElementChild;n&&(n===zt.ghost||"none"===j(n,"display")||e&&!I(n,e));)n=n.previousElementSibling;return n||null}function Y(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===zt.clone||e&&!I(t,e)||n++;return n}function H(t){var e=0,n=0,o=L();if(t)do{var r=N(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function U(t,e){if(!t||!t.getBoundingClientRect)return L();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=j(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(o||e)return n;o=!0}}}while(n=n.parentNode);return L()}function W(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function z(t,e){return function(){if(!P){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),P=setTimeout((function(){P=void 0}),e)}}}function G(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function J(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var q="Sortable"+(new Date).getTime();function Z(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==j(t,"display")&&t!==zt.ghost){e.push({target:t,rect:$(t)});var n=m({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=N(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=$(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,f=N(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&W(s,l)&&!W(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),W(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){j(t,"transition",""),j(t,"transform","");var r=N(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,j(t,"transform","translate3d("+l+"px,"+s+"px,0)"),function(t){t.offsetWidth}(t),j(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),j(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){j(t,"transition",""),j(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}var K=[],Q={initializeByDefault:!0},tt={mount:function(t){for(var e in Q)Q.hasOwnProperty(e)&&!(e in t)&&(t[e]=Q[e]);K.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";K.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](m({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](m({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var r in K.forEach((function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,g(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return K.forEach((function(o){"function"==typeof o.eventProperties&&g(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return K.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))})),o}};var et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=b(n,["evt"]);tt.pluginEvent.bind(zt)(t,e,m({dragEl:ot,parentEl:rt,ghostEl:it,rootEl:at,nextEl:lt,lastDownEl:st,cloneEl:ct,cloneHidden:ut,dragStarted:St,putSortable:gt,activeSortable:zt.active,originalEvent:o,oldIndex:ft,oldDraggableIndex:pt,newIndex:dt,newDraggableIndex:ht,hideGhostForTarget:Yt,unhideGhostForTarget:Ht,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){nt({sortable:e,name:t,originalEvent:o})}},r))};function nt(t){!function(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[q]){var v,g=e.options,b="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||x||w?(v=document.createEvent("Event")).initEvent(o,!0,!0):v=new CustomEvent(o,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=r||n,v.clone=i,v.oldIndex=s,v.newIndex=c,v.oldDraggableIndex=u,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=p?p.lastPutMode:void 0;var y=m({},h,tt.getEventProperties(o,e));for(var _ in y)v[_]=y[_];n&&n.dispatchEvent(v),g[b]&&g[b].call(e,v)}}(m({putSortable:gt,cloneEl:ct,targetEl:ot,rootEl:at,oldIndex:ft,oldDraggableIndex:pt,newIndex:dt,newDraggableIndex:ht},t))}var ot,rt,it,at,lt,st,ct,ut,ft,dt,pt,ht,vt,gt,mt,bt,yt,xt,wt,_t,St,Ct,Ot,Dt,Et,Tt=!1,It=!1,Mt=[],kt=!1,Pt=!1,At=[],Ft=!1,jt=[],Nt="undefined"!=typeof document,Rt=C,Lt=w||x?"cssFloat":"float",$t=Nt&&!O&&!C&&"draggable"in document.createElement("div"),Vt=function(){if(Nt){if(x)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Xt=function(t,e){var n=j(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=X(t,0,e),i=X(t,1,e),a=r&&j(r),l=i&&j(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+$(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+$(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Lt]||i&&"none"===n[Lt]&&s+c>o)?"vertical":"horizontal"},Bt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==h(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Yt=function(){!Vt&&it&&j(it,"display","none")},Ht=function(){!Vt&&it&&j(it,"display","")};Nt&&document.addEventListener("click",(function(t){if(It)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),It=!1,!1}),!0);var Ut=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,i=t.clientY,Mt.some((function(t){if(!B(t)){var e=$(t),n=t[q].options.emptyInsertThreshold,o=r>=e.left-n&&r<=e.right+n,l=i>=e.top-n&&i<=e.bottom+n;return n&&o&&l?a=t:void 0}})),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[q]._onDragOver(n)}}var r,i,a},Wt=function(t){ot&&ot.parentNode[q]._isOutsideThisEl(t.target)};function zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=g({},e),t[q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in tt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in Bt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&$t,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?E(t,"pointerdown",this._onTapStart):(E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Mt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),g(this,Z())}function Gt(t,e,n,o,r,i,a,l){var s,c,u=t[q],f=u.options.onMove;return!window.CustomEvent||x||w?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=r||e,s.relatedRect=i||$(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function Jt(t){t.draggable=!1}function qt(){Ft=!1}function Zt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function Kt(t){return setTimeout(t,0)}function Qt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Ct=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){jt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&jt.push(o)}}(n),!ot&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled||s.isContentEditable||(l=k(l,o.draggable,n,!1))&&l.animated||st===l)){if(ft=Y(l),pt=Y(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return nt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),et("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=k(s,o.trim(),n,!1))return nt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),et("filter",e,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!k(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!ot&&n.parentNode===i){var s=$(n);if(at=i,rt=(ot=n).parentNode,lt=ot.nextSibling,st=n,vt=a.group,zt.dragged=ot,mt={target:ot,clientX:(e||t).clientX,clientY:(e||t).clientY},wt=mt.clientX-s.left,_t=mt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ot.style["will-change"]="all",o=function(){et("delayEnded",r,{evt:t}),zt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!_&&r.nativeDraggable&&(ot.draggable=!0),r._triggerDragStart(t,e),nt({sortable:r,name:"choose",originalEvent:t}),F(ot,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){R(ot,t.trim(),Jt)})),E(l,"dragover",Ut),E(l,"mousemove",Ut),E(l,"touchmove",Ut),E(l,"mouseup",r._onDrop),E(l,"touchend",r._onDrop),E(l,"touchcancel",r._onDrop),_&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),et("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||x))o();else{if(zt.eventCanceled)return void this._onDrop();E(l,"mouseup",r._disableDelayedDrag),E(l,"touchend",r._disableDelayedDrag),E(l,"touchcancel",r._disableDelayedDrag),E(l,"mousemove",r._delayedDragTouchMoveHandler),E(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&E(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&Jt(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._disableDelayedDrag),T(t,"touchend",this._disableDelayedDrag),T(t,"touchcancel",this._disableDelayedDrag),T(t,"mousemove",this._delayedDragTouchMoveHandler),T(t,"touchmove",this._delayedDragTouchMoveHandler),T(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):E(document,e?"touchmove":"mousemove",this._onTouchMove):(E(ot,"dragend",this),E(at,"dragstart",this._onDragStart));try{document.selection?Kt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Tt=!1,at&&ot){et("dragStarted",this,{evt:e}),this.nativeDraggable&&E(document,"dragover",Wt);var n=this.options;!t&&F(ot,n.dragClass,!1),F(ot,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),nt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Yt();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==e;)e=t;if(ot.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){if(e[q]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ht()}},_onTouchMove:function(t){if(mt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=it&&N(it,!0),a=it&&i&&i.a,l=it&&i&&i.d,s=Rt&&Et&&H(Et),c=(r.clientX-mt.clientX+o.x)/(a||1)+(s?s[0]-At[0]:0)/(a||1),u=(r.clientY-mt.clientY+o.y)/(l||1)+(s?s[1]-At[1]:0)/(l||1);if(!zt.active&&!Tt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(it){i?(i.e+=c-(yt||0),i.f+=u-(xt||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");j(it,"webkitTransform",f),j(it,"mozTransform",f),j(it,"msTransform",f),j(it,"transform",f),yt=c,xt=u,bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!it){var t=this.options.fallbackOnBody?document.body:at,e=$(ot,!0,Rt,!0,t),n=this.options;if(Rt){for(Et=t;"static"===j(Et,"position")&&"none"===j(Et,"transform")&&Et!==document;)Et=Et.parentNode;Et!==document.body&&Et!==document.documentElement?(Et===document&&(Et=L()),e.top+=Et.scrollTop,e.left+=Et.scrollLeft):Et=L(),At=H(Et)}F(it=ot.cloneNode(!0),n.ghostClass,!1),F(it,n.fallbackClass,!0),F(it,n.dragClass,!0),j(it,"transition",""),j(it,"transform",""),j(it,"box-sizing","border-box"),j(it,"margin",0),j(it,"top",e.top),j(it,"left",e.left),j(it,"width",e.width),j(it,"height",e.height),j(it,"opacity","0.8"),j(it,"position",Rt?"absolute":"fixed"),j(it,"zIndex","100000"),j(it,"pointerEvents","none"),zt.ghost=it,t.appendChild(it),j(it,"transform-origin",wt/parseInt(it.style.width)*100+"% "+_t/parseInt(it.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;et("dragStart",this,{evt:t}),zt.eventCanceled?this._onDrop():(et("setupClone",this),zt.eventCanceled||((ct=J(ot)).draggable=!1,ct.style["will-change"]="",this._hideClone(),F(ct,this.options.chosenClass,!1),zt.clone=ct),n.cloneId=Kt((function(){et("clone",n),zt.eventCanceled||(n.options.removeCloneOnHide||at.insertBefore(ct,ot),n._hideClone(),nt({sortable:n,name:"clone"}))})),!e&&F(ot,r.dragClass,!0),e?(It=!0,n._loopId=setInterval(n._emulateDragOver,50)):(T(document,"mouseup",n._onDrop),T(document,"touchend",n._onDrop),T(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,ot)),E(document,"drop",n),j(ot,"transform","translateZ(0)")),Tt=!0,n._dragStartId=Kt(n._dragStarted.bind(n,e,t)),E(document,"selectstart",n),St=!0,S&&j(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,s=l.group,c=zt.active,u=vt===s,f=l.sort,d=gt||c,p=this,h=!1;if(!Ft){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=k(a,l.draggable,i,!0),I("dragOver"),zt.eventCanceled)return h;if(ot.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return P(!1);if(It=!1,c&&!l.disabled&&(u?f||(o=!at.contains(ot)):gt===this||(this.lastPutMode=vt.checkPull(this,c,ot,t))&&s.checkPut(this,c,ot,t))){if(r="vertical"===this._getDirection(t,a),e=$(ot),I("dragOverValid"),zt.eventCanceled)return h;if(o)return rt=at,M(),this._hideClone(),I("revert"),zt.eventCanceled||(lt?at.insertBefore(ot,lt):at.appendChild(ot)),P(!0);var v=B(i,l.draggable);if(!v||function(t,e,n){var o=$(B(n.el,n.options.draggable)),r=10;return e?t.clientX>o.right+r||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+r}(t,r,this)&&!v.animated){if(v===ot)return P(!1);if(v&&i===t.target&&(a=v),a&&(n=$(a)),!1!==Gt(at,i,ot,e,a,n,t,!!a))return M(),i.appendChild(ot),rt=i,A(),P(!0)}else if(a.parentNode===i){n=$(a);var g,b,y,x=ot.parentNode!==i,w=!function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||r===l||o+i/2===a+s/2}(ot.animated&&ot.toRect||e,a.animated&&a.toRect||n,r),_=r?"top":"left",S=V(a,"top","top")||V(ot,"top","top"),C=S?S.scrollTop:void 0;if(Ct!==a&&(b=n[_],kt=!1,Pt=!w&&l.invertSwap||x),g=function(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,f=o?n.bottom:n.right,d=!1;if(!a)if(l&&Dt<c*r){if(!kt&&(1===Ot?s>u+c*i/2:s<f-c*i/2)&&(kt=!0),kt)d=!0;else if(1===Ot?s<u+Dt:s>f-Dt)return-Ot}else if(s>u+c*(1-r)/2&&s<f-c*(1-r)/2)return function(t){return Y(ot)<Y(t)?1:-1}(e);if((d=d||a)&&(s<u+c*i/2||s>f-c*i/2))return s>u+c/2?1:-1;return 0}(t,a,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Pt,Ct===a),0!==g){var O=Y(ot);do{O-=g,y=rt.children[O]}while(y&&("none"===j(y,"display")||y===it))}if(0===g||y===a)return P(!1);Ct=a,Ot=g;var D=a.nextElementSibling,E=!1,T=Gt(at,i,ot,e,a,n,t,E=1===g);if(!1!==T)return 1!==T&&-1!==T||(E=1===T),Ft=!0,setTimeout(qt,30),M(),E&&!D?i.appendChild(ot):a.parentNode.insertBefore(ot,E?D:a),S&&G(S,0,C-S.scrollTop),rt=ot.parentNode,void 0===b||Pt||(Dt=Math.abs(b-$(a)[_])),A(),P(!0)}if(i.contains(ot))return P(!1)}return!1}function I(l,s){et(l,p,m({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:f,fromSortable:d,target:a,completed:P,onMove:function(n,o){return Gt(at,i,ot,e,n,$(n),t,o)},changed:A},s))}function M(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function P(e){return I("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==d&&(F(ot,gt?gt.options.ghostClass:c.options.ghostClass,!1),F(ot,l.ghostClass,!0)),gt!==p&&p!==zt.active?gt=p:p===zt.active&>&&(gt=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===ot&&!ot.animated||a===i&&!a.animated)&&(Ct=null),l.dragoverBubble||t.rootEl||a===document||(ot.parentNode[q]._isOutsideThisEl(t.target),!e&&Ut(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function A(){dt=Y(ot),ht=Y(ot,l.draggable),nt({sortable:p,name:"change",toEl:i,newIndex:dt,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Ut),T(document,"mousemove",Ut),T(document,"touchmove",Ut)},_offUpEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._onDrop),T(t,"touchend",this._onDrop),T(t,"pointerup",this._onDrop),T(t,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;dt=Y(ot),ht=Y(ot,n.draggable),et("drop",this,{evt:t}),rt=ot&&ot.parentNode,dt=Y(ot),ht=Y(ot,n.draggable),zt.eventCanceled||(Tt=!1,Pt=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qt(this.cloneId),Qt(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),S&&j(document.body,"user-select",""),j(ot,"transform",""),t&&(St&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),it&&it.parentNode&&it.parentNode.removeChild(it),(at===rt||gt&&"clone"!==gt.lastPutMode)&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ot&&(this.nativeDraggable&&T(ot,"dragend",this),Jt(ot),ot.style["will-change"]="",St&&!Tt&&F(ot,gt?gt.options.ghostClass:this.options.ghostClass,!1),F(ot,this.options.chosenClass,!1),nt({sortable:this,name:"unchoose",toEl:rt,newIndex:null,newDraggableIndex:null,originalEvent:t}),at!==rt?(dt>=0&&(nt({rootEl:rt,name:"add",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"remove",toEl:rt,originalEvent:t}),nt({rootEl:rt,name:"sort",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),gt&>.save()):dt!==ft&&dt>=0&&(nt({sortable:this,name:"update",toEl:rt,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),zt.active&&(null!=dt&&-1!==dt||(dt=ft,ht=pt),nt({sortable:this,name:"end",toEl:rt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){et("nulling",this),at=ot=rt=it=lt=ct=st=ut=mt=bt=St=dt=ht=ft=pt=Ct=Ot=gt=vt=zt.dragged=zt.ghost=zt.clone=zt.active=null,jt.forEach((function(t){t.checked=!0})),jt.length=yt=xt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)k(t=n[o],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Zt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var r=n.children[o];k(r,this.options.draggable,n,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=tt.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Bt(n)},destroy:function(){et("destroy",this);var t=this.el;t[q]=null,T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart),T(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(et("hideClone",this),zt.eventCanceled)return;j(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),ut=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ut){if(et("showClone",this),zt.eventCanceled)return;at.contains(ot)&&!this.options.group.revertClone?at.insertBefore(ct,ot):lt?at.insertBefore(ct,lt):at.appendChild(ct),this.options.group.revertClone&&this.animate(ot,ct),j(ct,"display",""),ut=!1}}else this._hideClone()}},Nt&&E(document,"touchmove",(function(t){(zt.active||Tt)&&t.cancelable&&t.preventDefault()})),zt.utils={on:E,off:T,css:j,find:R,is:function(t,e){return!!k(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:z,closest:k,toggleClass:F,clone:J,index:Y,nextTick:Kt,cancelNextTick:Qt,detectDirection:Xt,getChild:X},zt.get=function(t){return t[q]},zt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(zt.utils=m({},zt.utils,t.utils)),tt.mount(t)}))},zt.create=function(t,e){return new zt(t,e)},zt.version="1.10.2";var te,ee,ne,oe,re,ie,ae=[],le=!1;function se(){ae.forEach((function(t){clearInterval(t.pid)})),ae=[]}function ce(){clearInterval(ie)}var ue=z((function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=L(),u=!1;ee!==n&&(ee=n,se(),te=e.scroll,r=e.scrollFn,!0===te&&(te=U(n,!0)));var f=0,d=te;do{var p=d,h=$(p),v=h.top,g=h.bottom,m=h.left,b=h.right,y=h.width,x=h.height,w=void 0,_=void 0,S=p.scrollWidth,C=p.scrollHeight,O=j(p),D=p.scrollLeft,E=p.scrollTop;p===c?(w=y<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),_=x<C&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(w=y<S&&("auto"===O.overflowX||"scroll"===O.overflowX),_=x<C&&("auto"===O.overflowY||"scroll"===O.overflowY));var T=w&&(Math.abs(b-i)<=l&&D+y<S)-(Math.abs(m-i)<=l&&!!D),I=_&&(Math.abs(g-a)<=l&&E+x<C)-(Math.abs(v-a)<=l&&!!E);if(!ae[f])for(var M=0;M<=f;M++)ae[M]||(ae[M]={});ae[f].vx==T&&ae[f].vy==I&&ae[f].el===p||(ae[f].el=p,ae[f].vx=T,ae[f].vy=I,clearInterval(ae[f].pid),0==T&&0==I||(u=!0,ae[f].pid=setInterval(function(){o&&0===this.layer&&zt.active._onTouchMove(re);var e=ae[this.layer].vy?ae[this.layer].vy*s:0,n=ae[this.layer].vx?ae[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(zt.dragged.parentNode[q],n,e,t,re,ae[this.layer].el)||G(ae[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==c&&(d=U(d,!1)));le=u}}),30),fe=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function de(){}function pe(){}de.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=X(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:fe},g(de,{pluginName:"revertOnSpill"}),pe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:fe},g(pe,{pluginName:"removeOnSpill"}),zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):this.options.supportPointer?E(document,"pointermove",this._handleFallbackAutoScroll):e.touches?E(document,"touchmove",this._handleFallbackAutoScroll):E(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),ce(),se(),clearTimeout(P),P=void 0},nulling:function(){re=ee=te=le=ie=ne=oe=null,ae.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(re=t,e||w||x||S){ue(t,this.options,i,e);var a=U(i,!0);!le||ie&&o===ne&&r===oe||(ie&&ce(),ie=setInterval((function(){var i=U(document.elementFromPoint(o,r),!0);i!==a&&(a=i,se()),ue(t,n.options,i,e)}),10),ne=o,oe=r)}else{if(!this.options.bubbleScroll||U(i,!0)===L())return void se();ue(t,this.options,U(i,!1),!1)}}},g(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(pe,de);var he,ve,ge,me=(he=function(t,e){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){var o=n("2d00"),r=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",h="values",v=function(){return this};t.exports=function(t,e,n,g,m,b,y){s(n,e,g);var x,w,_,S=function(t){if(!d&&t in E)return E[t];switch(t){case p:case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",O=m==h,D=!1,E=t.prototype,T=E[f]||E["@@iterator"]||m&&E[m],I=T||S(m),M=m?O?S("entries"):I:void 0,k="Array"==e&&E.entries||T;if(k&&(_=u(k.call(new t)))!==Object.prototype&&_.next&&(c(_,C,!0),o||"function"==typeof _[f]||a(_,f,v)),O&&T&&T.name!==h&&(D=!0,I=function(){return T.call(this)}),o&&!y||!d&&!D&&E[f]||a(E,f,I),l[e]=I,l[C]=v,m)if(x={values:O?I:S(h),keys:b?I:S(p),entries:M},y)for(w in x)w in E||i(E,w,x[w]);else r(r.P+r.F*(d||D),e,x);return x}},"02f4":function(t,e,n){var o=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var i,a,l=String(r(e)),s=o(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){var o=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},"0bfb":function(t,e,n){var o=n("cb7c");t.exports=function(){var t=o(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var o=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return o(t,r)}},1495:function(t,e,n){var o=n("86cc"),r=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,a=i(e),l=a.length,s=0;l>s;)o.f(t,n=a[s++],e[n]);return t}},"214f":function(t,e,n){n("b0c5");var o=n("2aba"),r=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=l(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!f){var v=/./[d],g=n(a,d,""[t],(function(t,e,n,o,r){return e.exec===s?p&&!r?{done:!0,value:v.call(e,n,o)}:{done:!0,value:t.call(n,e,o)}:{done:!1}})),m=g[0],b=g[1];o(String.prototype,t,m),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var o=n("d3f4"),r=n("7726").document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"23c6":function(t,e,n){var o=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==o(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:i?o(e):"Object"==(a=o(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var o=n("7726"),r=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var s="function"==typeof n;s&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===o?t[e]=n:l?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(t,e,n){var o=n("cb7c"),r=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s=function(){var t,e=n("230e")("iframe"),o=i.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;o--;)delete s.prototype[i[o]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[a]=t):n=s(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var o=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){var o=n("5ca1"),r=n("d2c8"),i="includes";o(o.P+o.F*n("5147")(i),"String",{includes:function(t){return!!~r(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var o=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var o=n("69a8"),r=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){var o=n("2aeb"),r=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var o=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(o(t))}}))},4588:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var o=n("be13");t.exports=function(t){return Object(o(t))}},5147:function(t,e,n){var o=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){var o,r,i=n("0bfb"),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c=(o=/a/,r=/b*/g,a.call(o,"a"),a.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(s=function(t){var e,n,o,r,s=this;return u&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),c&&(e=s.lastIndex),o=a.call(s,t),c&&o&&(s.lastIndex=s.global?o.index+o[0].length:e),u&&o&&o.length>1&&l.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var o=n("8378"),r=n("7726"),i="__core-js_shared__",a=r[i]||(r[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var o=n("7726"),r=n("8378"),i=n("32e9"),a=n("2aba"),l=n("9b43"),s=function(t,e,n){var c,u,f,d,p=t&s.F,h=t&s.G,v=t&s.S,g=t&s.P,m=t&s.B,b=h?o:v?o[e]||(o[e]={}):(o[e]||{}).prototype,y=h?r:r[e]||(r[e]={}),x=y.prototype||(y.prototype={});for(c in h&&(n=e),n)f=((u=!p&&b&&void 0!==b[c])?b:n)[c],d=m&&u?l(f,o):g&&"function"==typeof f?l(Function.call,f):f,b&&a(b,c,f,t&s.U),y[c]!=f&&i(y,c,d),g&&x[c]!=f&&(x[c]=f)};o.core=r,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5eda":function(t,e,n){var o=n("5ca1"),r=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){var o=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var o=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return o[t]||(o[t]=r(t))}},"626a":function(t,e,n){var o=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},6762:function(t,e,n){var o=n("5ca1"),r=n("c366")(!0);o(o.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var o=n("626a"),r=n("be13");t.exports=function(t){return o(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var o=n("d3f4");t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){var o=n("0d58"),r=n("2621"),i=n("52a7"),a=n("4bf8"),l=n("626a"),s=Object.assign;t.exports=!s||n("79e5")((function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=o}))?function(t,e){for(var n=a(t),s=arguments.length,c=1,u=r.f,f=i.f;s>c;)for(var d,p=l(arguments[c++]),h=u?o(p).concat(u(p)):o(p),v=h.length,g=0;v>g;)f.call(p,d=h[g++])&&(n[d]=p[d]);return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var o=n("4588"),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var o=n("86cc").f,r=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var o=n("cb7c"),r=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var o=n("d8e8");t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var o=n("2b4c")("unscopables"),r=Array.prototype;null==r[o]&&n("32e9")(r,o,{}),t.exports=function(t){r[o][t]=!0}},"9def":function(t,e,n){var o=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){var o=n("cb7c"),r=n("4bf8"),i=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,h){return[function(o,r){var i=t(this),a=null==o?void 0:o[e];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(t,e){var r=h(n,t,this,e);if(r.done)return r.value;var f=o(t),d=String(this),p="function"==typeof e;p||(e=String(e));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var b=[];;){var y=s(f,d);if(null===y)break;if(b.push(y),!g)break;""===String(y[0])&&(f.lastIndex=l(d,i(f.lastIndex),m))}for(var x,w="",_=0,S=0;S<b.length;S++){y=b[S];for(var C=String(y[0]),O=c(u(a(y.index),d.length),0),D=[],E=1;E<y.length;E++)D.push(void 0===(x=y[E])?x:String(x));var T=y.groups;if(p){var I=[C].concat(D,O,d);void 0!==T&&I.push(T);var M=String(e.apply(void 0,I))}else M=v(C,d,O,D,T,e);O>=_&&(w+=d.slice(_,O)+M,_=O+C.length)}return w+d.slice(_)}];function v(t,e,o,i,a,l){var s=o+t.length,c=i.length,u=p;return void 0!==a&&(a=r(a),u=d),n.call(l,u,(function(n,r){var l;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,o);case"'":return e.slice(s);case"<":l=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=f(u/10);return 0===d?n:d<=c?void 0===i[d-1]?r.charAt(1):i[d-1]+r.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},aae3:function(t,e,n){var o=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,n){for(var o=n("cadf"),r=n("0d58"),i=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),f=c("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),v=0;v<h.length;v++){var g,m=h[v],b=p[m],y=a[m],x=y&&y.prototype;if(x&&(x[u]||l(x,u,d),x[f]||l(x,f,m),s[m]=d,b))for(g in o)x[g]||i(x,g,o[g],!0)}},b0c5:function(t,e,n){var o=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var o=n("6821"),r=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=o(e),c=r(s.length),u=i(a,c);if(t&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s})),n("a481");var o,r,i="undefined"!=typeof window?window.console:t.console,a=/-(\w)/g,l=(o=function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))},r=Object.create(null),function(t){return r[t]||(r[t]=o(t))});function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var o=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},cadf:function(t,e,n){var o=n("9c6c"),r=n("d53b"),i=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},cb7c:function(t,e,n){var o=n("d3f4");t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var o=n("69a8"),r=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=r(t),s=0,c=[];for(n in l)n!=a&&o(l,n)&&c.push(n);for(;e.length>s;)o(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var o=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(o(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){var o=n("5ca1"),r=n("9def"),i=n("d2c8"),a="startsWith",l="".startsWith;o(o.P+o.F*n("5147")(a),"String",{startsWith:function(t){var e=i(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),o=String(t);return l?l.call(e,o,n):e.slice(n,n+o.length)===o}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(o){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var o=n("5ca1");o(o.S+o.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var o=n("7726").document;t.exports=o&&o.documentElement},fb15:function(t,e,n){var o;function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function i(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);o=!0);}catch(t){r=!0,i=t}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}}(t,e)||i(t,e)||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.")}()}function l(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var s=n("a352"),c=n.n(s),u=n("c649");function f(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function d(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),f.call(e,t,n)}}function p(t){return["transition-group","TransitionGroup"].includes(t)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var v=["Start","Add","Remove","Update","End"],g=["Choose","Unchoose","Sort","Filter","Clone"],m=["Move"].concat(v,g).map((function(t){return"on"+t})),b=null,y={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=a(t,1)[0].componentOptions;return!!e&&p(e.tag)}(e);var n=function(t,e,n){var o=0,r=0,i=h(e,n,"header");i&&(o=i.length,t=t?[].concat(l(i),l(t)):l(i));var a=h(e,n,"footer");return a&&(r=a.length,t=t?[].concat(l(t),l(a)):l(a)),{children:t,headerOffset:o,footerOffset:r}}(e,this.$slots,this.$scopedSlots),o=n.children,r=n.headerOffset,i=n.footerOffset;this.headerOffset=r,this.footerOffset=i;var s=function(t,e){var n=null,o=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(o("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{})),!e)return n;var r=e.on,i=e.props,a=e.attrs;return o("on",r),o("props",i),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return t(this.getTag(),s,o)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};v.forEach((function(n){e["on"+n]=d.call(t,n)})),g.forEach((function(n){e["on"+n]=f.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(u.a)(n)]=t.$attrs[n],e}),{}),o=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in o)&&(o.draggable=">*"),this._sortable=new c.a(this.rootContainer,o),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(u.a)(e);-1===m.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,n,o){if(!t)return[];var r=t.map((function(t){return t.elm})),i=e.length-o,a=l(e).map((function(t,e){return e>=i?r.length:r.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&p(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=l(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,l(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,o=this.getUnderlyingPotencialDraggableComponent(e);if(!o)return{component:o};var r=o.realList,i={list:r,component:o};if(e!==n&&r&&o.getUnderlyingVm){var a=o.getUnderlyingVm(n);if(a)return Object.assign(a,i)}return i},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var o={element:e,newIndex:n};this.emitChanges({added:o})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=l(e.to.children).filter((function(t){return"none"!==t.style.display})),o=n.indexOf(e.related),r=t.component.getVmIndex(o);return-1===n.indexOf(b)&&e.willInsertAfter?r+1:r},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var o=this.getRelatedContextFromMoveEvent(t),r=this.context,i=this.computeFutureIndex(o,t);return Object.assign(r,{futureIndex:i}),n(Object.assign({},t,{relatedContext:o,draggedContext:r}),e)},onDragEnd:function(){this.computeIndexes(),b=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var x=y;e.default=x}}).default},t.exports=n(zt)},he(ge={path:ve,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&ge.path)}},ge.exports),ge.exports),be=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-facets-sidebar"},[n("h4",[t._v("Компоненты")]),t._v(" "),n("b-form",[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",[n("b-form-input",{attrs:{placeholder:"Название поля"},model:{value:t.facetSearchStr,callback:function(e){t.facetSearchStr=e},expression:"facetSearchStr"}})],1)],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-facet-list"},t._l(t.innerFacets,(function(e){return n("div",{key:e.name,staticClass:"rb-facet"},[n("h6",{staticClass:"rb-facet-label d-flex"},[n("rb-text",{staticClass:"flex-fill"},[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:"icon-chevron-"+(e.expanded?"up":"down")},on:{click:function(t){e.expanded=!e.expanded}}})],1),t._v(" "),e.expanded?n("b-list-group",[n("draggable",{attrs:{clone:t.onFieldCloned,animation:200,group:{name:"fields",pull:"clone",put:!1},"ghost-class":"rb-facet-field-moving"},on:{end:function(e){return t.onFieldMoveEnd(e)}},model:{value:e.fields,callback:function(n){t.$set(e,"fields",n)},expression:"facet.fields"}},t._l(e.fields,(function(e){return n("b-list-group-item",{key:e.name,staticClass:"cursor-pointer"},[n("rb-text",[t._v(t._s(e.labelRu))])],1)})),1)],1):t._e()],1)})),0)],1)},staticRenderFns:[]},undefined,{name:"DocTemplateFacetList",components:{draggable:me},props:{facets:{type:Array,default:function(){return[]}}},data:function(){return{allFacets:[],innerFacets:[],facetSearchStr:null}},watch:{facetSearchStr:function(){this.findInFacets(this.facetSearchStr)},facets:function(){this.handleFacetsProp()}},methods:{onFieldCloned:function(t){var e=JSON.parse(JSON.stringify(t));return e.input=u.getDefaultInput(e),e},onFieldMoveEnd:function(t){this.$emit("fieldMoveEnd",t)},findInFacets:function(t){(t=t.toLowerCase())&&0!==t.length||(this.innerFacets=this.allFacets);var e=JSON.parse(JSON.stringify(this.allFacets));e=e.filter((function(e){var n=!1;return e.fields=e.fields.filter((function(e){var o=e.labelRu.toLowerCase().indexOf(t)>=0;return o&&(n=!0),o})),n})),this.innerFacets=e},handleFacetsProp:function(){var t=this.facets.map((function(t){return e(e({},t),{},{expanded:!1})}));this.innerFacets=JSON.parse(JSON.stringify(t)),this.allFacets=JSON.parse(JSON.stringify(t))}},created:function(){this.handleFacetsProp()}},undefined,false,undefined,!1,void 0,void 0,void 0),ye=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-sidebar",{staticClass:"rb-doc-template-field-sidebar",attrs:{right:"","bg-variant":"white",shadow:""},scopedSlots:t._u([{key:"header",fn:function(){return[n("b-button",{staticClass:"rb-sidebar-close-btn",attrs:{variant:"secondary"},on:{click:t.hide}},[n("rb-icon",{attrs:{icon:t.innerVisible?"icon-chevron-right":"icon-chevron-left"}})],1),t._v(" "),n("h4",[t._v("Редактор свойств")])]},proxy:!0}]),model:{value:t.innerVisible,callback:function(e){t.innerVisible=e},expression:"innerVisible"}},[t._v(" "),t.field?n("b-form",[n("div",{staticClass:"rb-form-section"},[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Название"}},[n("rb-text",[t._v(t._s(t.field.name))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тип"}},[n("rb-text",[t._v(t._s(t.field.type))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тэг для файла шаблона"}},[n("rb-text",[t._v(t._s(t.field.tag))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Заголовок"}},[n("b-form-input",{model:{value:t.field.labelRu,callback:function(e){t.$set(t.field,"labelRu",e)},expression:"field.labelRu"}})],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.multiple,callback:function(e){t.$set(t.field,"multiple",e)},expression:"field.multiple"}},[t._v("Множественное")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.visible,callback:function(e){t.$set(t.field,"visible",e)},expression:"field.visible"}},[t._v("Отображаемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.editable,callback:function(e){t.$set(t.field,"editable",e)},expression:"field.editable"}},[t._v("Редактируемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.required,callback:function(e){t.$set(t.field,"required",e)},expression:"field.required"}},[t._v("Обязательное")])],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("\n Настройки ввода\n ")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Тип инпута"}},[n("rb-dropdown-input",{attrs:{items:t.inputOptions,"display-field":"text","value-field":"name",block:""},model:{value:t.currentInputName,callback:function(e){t.currentInputName=e},expression:"currentInputName"}})],1),t._v(" "),t._l(t.field.input.props,(function(e,o){return[e.visible?n("b-form-group",{key:o,attrs:{label:e.label}},[n(t.getPropInputType(e,o),t._b({tag:"component",model:{value:t.field.input.propsData[o],callback:function(e){t.$set(t.field.input.propsData,o,e)},expression:"field.input.propsData[propName]"}},"component",t.getPropInputPropData(e,o),!1))],1):t._e()]}))],2)],1)],1),t._v(" "),t.field.input?n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("\n Значение по-умолчанию\n ")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",attrs:{label:t.field.labelRu}},[n(t.field.input.type,t._b({tag:"component",model:{value:t.field.defaultValue,callback:function(e){t.$set(t.field,"defaultValue",e)},expression:"field.defaultValue"}},"component",t.field.input.propsData,!1))],1)],1)],1)],1):t._e()]):t._e()],1)},staticRenderFns:[]},undefined,{name:"DocTemplateFieldSidebar",props:{value:{type:Object,default:null},visible:{type:Boolean,default:null}},data:function(){return{innerVisible:null,field:null,currentInputName:null}},computed:{inputOptions:function(){return this.field?u.getInputTypes(this.field):[]}},watch:{visible:function(){this.innerVisible=this.visible},value:function(){this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name)},field:function(){this.$emit("input",this.field),this.$emit("change",this.field)},currentInputName:function(){this.field.input=u.getInputTypeByName(this.currentInputName,this.field)}},methods:{hide:function(){this.innerVisible=!1,this.$emit("hide")},getPropInputType:function(t,e){return"string"===t.type?"b-form-input":"rb-boolean-single-option-input"},getPropInputPropData:function(t,e){return"string"===t.type?{type:"text"}:{}}},created:function(){this.innerVisible=this.visible,this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name)}},undefined,false,undefined,!1,void 0,void 0,void 0),xe={name:"DocTemplateConstructor",components:{DocTemplateFacetList:be,DocTemplateFieldSidebar:ye,DocTemplateSectionModal:p,draggable:me},props:{formConfig:{type:Object,default:function(){return{sections:[]}}},facets:{type:Array,default:function(){return[]}}},data:function(){return{sidebarVisible:!1,sidebarField:null,columnTo:!1,hash:"",sectionModalCfg:{id:"rb-doc-template-section-modal",mode:"ins",section:null,onAfterOk:function(){}}}},methods:{showProperties:function(t){this.sidebarVisible=!0,this.sidebarField=t},addSection:function(t){var e=this,n={labelRu:null,columnCount:t};this.sectionModalCfg.mode="ins",this.sectionModalCfg.section=n,this.sectionModalCfg.onAfterOk=function(){n.columns=[];for(var o=0;o<t;o++)n.columns.push({index:o,fields:[]});e.formConfig.sections.push(n)},this.$bvModal.show(this.sectionModalCfg.id)},editSection:function(t){this.sectionModalCfg.mode="update",this.sectionModalCfg.section=t,this.sectionModalCfg.onAfterOk=function(){},this.$bvModal.show(this.sectionModalCfg.id)},removeSection:function(t,e){this.formConfig.sections.splice(e,1)},multipleFieldAreOnFormConfig:function(t){var e=0;return this.formConfig.sections.every((function(n){if(n.columns.every((function(n){if(n.fields.forEach((function(n){n.name===t.name&&e++})),e>1)return!1})),e>1)return!1})),e>1},removeFieldFromColumn:function(t,e,n){var o=null!=n?n:-1;o<0&&e.fields.every((function(e,n){if(t.name===e.name)return o=n,!1})),o>=0&&e.fields.splice(o,1)},onRemoveField:function(t,e,n){t.preventDefault(),this.removeFieldFromColumn(e,n)},onFieldAddedToColumn:function(t,e,n){this.columnTo=e},onFieldMoveEnd:function(t){var e=t.newIndex,n=t.item._underlying_vm_;this.multipleFieldAreOnFormConfig(n)&&(this.removeFieldFromColumn(n,this.columnTo,e),this.resetDragVariables(),this.$bvModal.msgBoxOk("На форме уже есть это поле",{title:"Ошибка",headerClass:"rb-error-msg-box__header",bodyClass:"rb-error-msg-box__body",footerClass:"rb-error-msg-box__footer",centered:!0,noCloseOnBackdrop:!0,noCloseOnEsc:!0})),this.resetDragVariables(),this.hash=(Math.random()+1).toString(36).substring(7)},getFieldExtendedPropsData:function(t){return e(e({},t.input.propsData),{},{placeholder:t.tag,disabled:!0})},resetDragVariables:function(){this.columnTo=null}}},we=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-doc-template-constructor d-flex"},[n("doc-template-facet-list",{attrs:{facets:t.facets},on:{fieldMoveEnd:t.onFieldMoveEnd}}),t._v(" "),n("div",{staticClass:"rb-form-constructor flex-fill"},[n("div",{staticClass:"rb-constructor-toolbar d-flex flex-row"},[n("h4",[t._v("Верстка документа")]),t._v(" "),n("div",{staticClass:"rb-layout-buttons"},[n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(1)}}},[n("rb-text",[t._v("1 колонка")]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-add"}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(2)}}},[n("rb-text",[t._v("2 колонки")]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-add"}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(3)}}},[n("rb-text",[t._v("3 колонки")]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-add"}})],1)],1)]),t._v(" "),n("div",{staticClass:"rb-constructor-body"},[n("draggable",{attrs:{animation:200,group:"section","ghost-class":"rb-form-card-moving",handle:".rb-row-drag-handle"},model:{value:t.formConfig.section,callback:function(e){t.$set(t.formConfig,"section",e)},expression:"formConfig.section"}},t._l(t.formConfig.sections,(function(e,o){return n("b-card",{key:e.labelRu,staticClass:"rb-form-card",attrs:{"data-hash":t.hash},scopedSlots:t._u([{key:"header",fn:function(){return[n("rb-icon",{staticClass:"cursor-pointer rb-row-drag-handle",attrs:{icon:"icon-reorder"}}),t._v(" "),n("rb-text",{staticClass:"flex-fill",on:{click:function(n){return t.editSection(e)}}},[t._v("\n "+t._s(e.labelRu)+"\n ")]),t._v(" "),n("span",{staticClass:"rb-actions"},[n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:"icon-edit"},on:{click:function(n){return t.editSection(e)}}}),t._v(" "),n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:"icon-delete"},on:{click:function(n){return t.removeSection(e,o)}}})],1)]},proxy:!0}],null,!0)},[t._v(" "),n("div",{staticClass:"d-flex flex-row"},t._l(e.columns,(function(o){return n("draggable",{key:o.index,staticClass:"rb-form-column",class:{"rb-single-column":1===e.columnCount},attrs:{tag:"b-form",animation:200,group:"fields","ghost-class":"rb-moving-item",handle:".icon-reorder"},on:{add:function(n){return t.onFieldAddedToColumn(n,o,e)}},model:{value:o.fields,callback:function(e){t.$set(o,"fields",e)},expression:"column.fields"}},t._l(o.fields,(function(e){return n("b-form-row",{key:e.name,staticClass:"cursor-pointer",on:{click:function(n){return t.showProperties(e)}}},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:e.labelRu},scopedSlots:t._u([{key:"label",fn:function(){return[n("rb-icon",{attrs:{icon:"icon-reorder"}}),t._v(" "),n("rb-text",[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-delete"},on:{click:function(n){return n.preventDefault(),t.onRemoveField(n,e,o)}}})]},proxy:!0}],null,!0)},[t._v(" "),e.input?n(e.input.type,t._b({tag:"component",staticClass:"cursor-pointer",attrs:{disabled:""}},"component",t.getFieldExtendedPropsData(e),!1)):t._e()],1)],1)],1)})),1)})),1)])})),1)],1),t._v(" "),n("doc-template-field-sidebar",{attrs:{visible:t.sidebarVisible},on:{hide:function(e){t.sidebarVisible=!1}},model:{value:t.sidebarField,callback:function(e){t.sidebarField=e},expression:"sidebarField"}}),t._v(" "),n("doc-template-section-modal",{attrs:{mode:t.sectionModalCfg.mode,section:t.sectionModalCfg.section,"on-after-ok":t.sectionModalCfg.onAfterOk}})],1)],1)},staticRenderFns:[]},undefined,xe,undefined,false,undefined,!1,void 0,void 0,void 0),_e=we,Se=Object.freeze({__proto__:null,UtFormConfig:u,DocTemplateSectionModal:p,DocTemplateFacetList:be,DocTemplateFieldSidebar:ye,DocTemplateConstructor:_e}),Ce=function(t){Object.entries(Se).forEach((function(e){var n=o(e,2),r=n[0],i=n[1];t.component(r,i)}))},Oe=Object.freeze({__proto__:null,default:Ce,UtFormConfig:u,DocTemplateSectionModal:p,DocTemplateFacetList:be,DocTemplateFieldSidebar:ye,DocTemplateConstructor:_e});return Object.entries(Oe).forEach((function(t){var e=o(t,2),n=e[0],r=e[1];"default"!==n&&(Ce[n]=r)})),Ce}();
|
|
8
|
+
function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(){return m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},m.apply(this,arguments)}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){v(t,e,n[e])}))}return t}function b(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function y(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var x=y(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_=y(/Edge/i),w=y(/firefox/i),S=y(/safari/i)&&!y(/chrome/i)&&!y(/android/i),C=y(/iP(ad|od|hone)/i),O=y(/chrome/i)&&y(/android/i),D={capture:!1,passive:!1};function E(t,e,n){t.addEventListener(e,n,!x&&D)}function T(t,e,n){t.removeEventListener(e,n,!x&&D)}function I(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function k(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&I(t,e):I(t,e))||o&&t===n)return t;if(t===n)break}while(t=M(t))}return null}var P,A=/\s+/g;function F(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(A," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(A," ")}}function j(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function N(t,e){var n="";if("string"==typeof t)n=t;else do{var o=j(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function R(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function $(){var t=document.scrollingElement;return t||document.documentElement}function L(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,f;if(t!==window&&t!==$()?(a=(i=t.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,f=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!x))do{if(r&&r.getBoundingClientRect&&("none"!==j(r,"transform")||n&&"static"!==j(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(j(r,"border-top-width")),l-=d.left+parseInt(j(r,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=N(r||t),h=p&&p.a,v=p&&p.d;p&&(s=(a/=v)+(u/=v),c=(l/=h)+(f/=h))}return{top:a,left:l,bottom:s,right:c,width:f,height:u}}}function V(t,e,n){for(var o=U(t,!0),r=L(t)[e];o;){var i=L(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===$())break;o=U(o,!1)}return!1}function X(t,e,n){for(var o=0,r=0,i=t.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==zt.ghost&&i[r]!==zt.dragged&&k(i[r],n.draggable,t,!1)){if(o===e)return i[r];o++}r++}return null}function B(t,e){for(var n=t.lastElementChild;n&&(n===zt.ghost||"none"===j(n,"display")||e&&!I(n,e));)n=n.previousElementSibling;return n||null}function Y(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===zt.clone||e&&!I(t,e)||n++;return n}function H(t){var e=0,n=0,o=$();if(t)do{var r=N(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function U(t,e){if(!t||!t.getBoundingClientRect)return $();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=j(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return $();if(o||e)return n;o=!0}}}while(n=n.parentNode);return $()}function W(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function z(t,e){return function(){if(!P){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),P=setTimeout((function(){P=void 0}),e)}}}function G(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function J(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var q="Sortable"+(new Date).getTime();function Z(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==j(t,"display")&&t!==zt.ghost){e.push({target:t,rect:L(t)});var n=g({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=N(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=L(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,f=N(n,!0);f&&(l.top-=f.f,l.left-=f.e),n.toRect=l,n.thisAnimationDuration&&W(s,l)&&!W(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),W(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){j(t,"transition",""),j(t,"transform","");var r=N(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,j(t,"transform","translate3d("+l+"px,"+s+"px,0)"),function(t){t.offsetWidth}(t),j(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),j(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){j(t,"transition",""),j(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}var K=[],Q={initializeByDefault:!0},tt={mount:function(t){for(var e in Q)Q.hasOwnProperty(e)&&!(e in t)&&(t[e]=Q[e]);K.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";K.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](g({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](g({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var r in K.forEach((function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,m(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return K.forEach((function(o){"function"==typeof o.eventProperties&&m(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return K.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))})),o}};var et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=b(n,["evt"]);tt.pluginEvent.bind(zt)(t,e,g({dragEl:ot,parentEl:rt,ghostEl:it,rootEl:at,nextEl:lt,lastDownEl:st,cloneEl:ct,cloneHidden:ut,dragStarted:St,putSortable:mt,activeSortable:zt.active,originalEvent:o,oldIndex:ft,oldDraggableIndex:pt,newIndex:dt,newDraggableIndex:ht,hideGhostForTarget:Yt,unhideGhostForTarget:Ht,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){nt({sortable:e,name:t,originalEvent:o})}},r))};function nt(t){!function(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,d=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[q]){var v,m=e.options,b="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||x||_?(v=document.createEvent("Event")).initEvent(o,!0,!0):v=new CustomEvent(o,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=r||n,v.clone=i,v.oldIndex=s,v.newIndex=c,v.oldDraggableIndex=u,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=p?p.lastPutMode:void 0;var y=g({},h,tt.getEventProperties(o,e));for(var w in y)v[w]=y[w];n&&n.dispatchEvent(v),m[b]&&m[b].call(e,v)}}(g({putSortable:mt,cloneEl:ct,targetEl:ot,rootEl:at,oldIndex:ft,oldDraggableIndex:pt,newIndex:dt,newDraggableIndex:ht},t))}var ot,rt,it,at,lt,st,ct,ut,ft,dt,pt,ht,vt,mt,gt,bt,yt,xt,_t,wt,St,Ct,Ot,Dt,Et,Tt=!1,It=!1,Mt=[],kt=!1,Pt=!1,At=[],Ft=!1,jt=[],Nt="undefined"!=typeof document,Rt=C,$t=_||x?"cssFloat":"float",Lt=Nt&&!O&&!C&&"draggable"in document.createElement("div"),Vt=function(){if(Nt){if(x)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Xt=function(t,e){var n=j(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=X(t,0,e),i=X(t,1,e),a=r&&j(r),l=i&&j(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+L(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+L(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[$t]||i&&"none"===n[$t]&&s+c>o)?"vertical":"horizontal"},Bt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==h(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Yt=function(){!Vt&&it&&j(it,"display","none")},Ht=function(){!Vt&&it&&j(it,"display","")};Nt&&document.addEventListener("click",(function(t){if(It)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),It=!1,!1}),!0);var Ut=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,i=t.clientY,Mt.some((function(t){if(!B(t)){var e=L(t),n=t[q].options.emptyInsertThreshold,o=r>=e.left-n&&r<=e.right+n,l=i>=e.top-n&&i<=e.bottom+n;return n&&o&&l?a=t:void 0}})),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[q]._onDragOver(n)}}var r,i,a},Wt=function(t){ot&&ot.parentNode[q]._isOutsideThisEl(t.target)};function zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=m({},e),t[q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Xt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in tt.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in Bt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?E(t,"pointerdown",this._onTapStart):(E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Mt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),m(this,Z())}function Gt(t,e,n,o,r,i,a,l){var s,c,u=t[q],f=u.options.onMove;return!window.CustomEvent||x||_?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=r||e,s.relatedRect=i||L(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function Jt(t){t.draggable=!1}function qt(){Ft=!1}function Zt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function Kt(t){return setTimeout(t,0)}function Qt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Ct=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){jt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&jt.push(o)}}(n),!ot&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled||s.isContentEditable||(l=k(l,o.draggable,n,!1))&&l.animated||st===l)){if(ft=Y(l),pt=Y(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return nt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),et("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=k(s,o.trim(),n,!1))return nt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),et("filter",e,{evt:t}),!0}))))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!k(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!ot&&n.parentNode===i){var s=L(n);if(at=i,rt=(ot=n).parentNode,lt=ot.nextSibling,st=n,vt=a.group,zt.dragged=ot,gt={target:ot,clientX:(e||t).clientX,clientY:(e||t).clientY},_t=gt.clientX-s.left,wt=gt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ot.style["will-change"]="all",o=function(){et("delayEnded",r,{evt:t}),zt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!w&&r.nativeDraggable&&(ot.draggable=!0),r._triggerDragStart(t,e),nt({sortable:r,name:"choose",originalEvent:t}),F(ot,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){R(ot,t.trim(),Jt)})),E(l,"dragover",Ut),E(l,"mousemove",Ut),E(l,"touchmove",Ut),E(l,"mouseup",r._onDrop),E(l,"touchend",r._onDrop),E(l,"touchcancel",r._onDrop),w&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),et("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(_||x))o();else{if(zt.eventCanceled)return void this._onDrop();E(l,"mouseup",r._disableDelayedDrag),E(l,"touchend",r._disableDelayedDrag),E(l,"touchcancel",r._disableDelayedDrag),E(l,"mousemove",r._delayedDragTouchMoveHandler),E(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&E(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&Jt(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._disableDelayedDrag),T(t,"touchend",this._disableDelayedDrag),T(t,"touchcancel",this._disableDelayedDrag),T(t,"mousemove",this._delayedDragTouchMoveHandler),T(t,"touchmove",this._delayedDragTouchMoveHandler),T(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):E(document,e?"touchmove":"mousemove",this._onTouchMove):(E(ot,"dragend",this),E(at,"dragstart",this._onDragStart));try{document.selection?Kt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Tt=!1,at&&ot){et("dragStarted",this,{evt:e}),this.nativeDraggable&&E(document,"dragover",Wt);var n=this.options;!t&&F(ot,n.dragClass,!1),F(ot,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),nt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Yt();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==e;)e=t;if(ot.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){if(e[q]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ht()}},_onTouchMove:function(t){if(gt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=it&&N(it,!0),a=it&&i&&i.a,l=it&&i&&i.d,s=Rt&&Et&&H(Et),c=(r.clientX-gt.clientX+o.x)/(a||1)+(s?s[0]-At[0]:0)/(a||1),u=(r.clientY-gt.clientY+o.y)/(l||1)+(s?s[1]-At[1]:0)/(l||1);if(!zt.active&&!Tt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(it){i?(i.e+=c-(yt||0),i.f+=u-(xt||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");j(it,"webkitTransform",f),j(it,"mozTransform",f),j(it,"msTransform",f),j(it,"transform",f),yt=c,xt=u,bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!it){var t=this.options.fallbackOnBody?document.body:at,e=L(ot,!0,Rt,!0,t),n=this.options;if(Rt){for(Et=t;"static"===j(Et,"position")&&"none"===j(Et,"transform")&&Et!==document;)Et=Et.parentNode;Et!==document.body&&Et!==document.documentElement?(Et===document&&(Et=$()),e.top+=Et.scrollTop,e.left+=Et.scrollLeft):Et=$(),At=H(Et)}F(it=ot.cloneNode(!0),n.ghostClass,!1),F(it,n.fallbackClass,!0),F(it,n.dragClass,!0),j(it,"transition",""),j(it,"transform",""),j(it,"box-sizing","border-box"),j(it,"margin",0),j(it,"top",e.top),j(it,"left",e.left),j(it,"width",e.width),j(it,"height",e.height),j(it,"opacity","0.8"),j(it,"position",Rt?"absolute":"fixed"),j(it,"zIndex","100000"),j(it,"pointerEvents","none"),zt.ghost=it,t.appendChild(it),j(it,"transform-origin",_t/parseInt(it.style.width)*100+"% "+wt/parseInt(it.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;et("dragStart",this,{evt:t}),zt.eventCanceled?this._onDrop():(et("setupClone",this),zt.eventCanceled||((ct=J(ot)).draggable=!1,ct.style["will-change"]="",this._hideClone(),F(ct,this.options.chosenClass,!1),zt.clone=ct),n.cloneId=Kt((function(){et("clone",n),zt.eventCanceled||(n.options.removeCloneOnHide||at.insertBefore(ct,ot),n._hideClone(),nt({sortable:n,name:"clone"}))})),!e&&F(ot,r.dragClass,!0),e?(It=!0,n._loopId=setInterval(n._emulateDragOver,50)):(T(document,"mouseup",n._onDrop),T(document,"touchend",n._onDrop),T(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,ot)),E(document,"drop",n),j(ot,"transform","translateZ(0)")),Tt=!0,n._dragStartId=Kt(n._dragStarted.bind(n,e,t)),E(document,"selectstart",n),St=!0,S&&j(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,s=l.group,c=zt.active,u=vt===s,f=l.sort,d=mt||c,p=this,h=!1;if(!Ft){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=k(a,l.draggable,i,!0),I("dragOver"),zt.eventCanceled)return h;if(ot.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return P(!1);if(It=!1,c&&!l.disabled&&(u?f||(o=!at.contains(ot)):mt===this||(this.lastPutMode=vt.checkPull(this,c,ot,t))&&s.checkPut(this,c,ot,t))){if(r="vertical"===this._getDirection(t,a),e=L(ot),I("dragOverValid"),zt.eventCanceled)return h;if(o)return rt=at,M(),this._hideClone(),I("revert"),zt.eventCanceled||(lt?at.insertBefore(ot,lt):at.appendChild(ot)),P(!0);var v=B(i,l.draggable);if(!v||function(t,e,n){var o=L(B(n.el,n.options.draggable)),r=10;return e?t.clientX>o.right+r||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+r}(t,r,this)&&!v.animated){if(v===ot)return P(!1);if(v&&i===t.target&&(a=v),a&&(n=L(a)),!1!==Gt(at,i,ot,e,a,n,t,!!a))return M(),i.appendChild(ot),rt=i,A(),P(!0)}else if(a.parentNode===i){n=L(a);var m,b,y,x=ot.parentNode!==i,_=!function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||r===l||o+i/2===a+s/2}(ot.animated&&ot.toRect||e,a.animated&&a.toRect||n,r),w=r?"top":"left",S=V(a,"top","top")||V(ot,"top","top"),C=S?S.scrollTop:void 0;if(Ct!==a&&(b=n[w],kt=!1,Pt=!_&&l.invertSwap||x),m=function(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,f=o?n.bottom:n.right,d=!1;if(!a)if(l&&Dt<c*r){if(!kt&&(1===Ot?s>u+c*i/2:s<f-c*i/2)&&(kt=!0),kt)d=!0;else if(1===Ot?s<u+Dt:s>f-Dt)return-Ot}else if(s>u+c*(1-r)/2&&s<f-c*(1-r)/2)return function(t){return Y(ot)<Y(t)?1:-1}(e);if((d=d||a)&&(s<u+c*i/2||s>f-c*i/2))return s>u+c/2?1:-1;return 0}(t,a,n,r,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Pt,Ct===a),0!==m){var O=Y(ot);do{O-=m,y=rt.children[O]}while(y&&("none"===j(y,"display")||y===it))}if(0===m||y===a)return P(!1);Ct=a,Ot=m;var D=a.nextElementSibling,E=!1,T=Gt(at,i,ot,e,a,n,t,E=1===m);if(!1!==T)return 1!==T&&-1!==T||(E=1===T),Ft=!0,setTimeout(qt,30),M(),E&&!D?i.appendChild(ot):a.parentNode.insertBefore(ot,E?D:a),S&&G(S,0,C-S.scrollTop),rt=ot.parentNode,void 0===b||Pt||(Dt=Math.abs(b-L(a)[w])),A(),P(!0)}if(i.contains(ot))return P(!1)}return!1}function I(l,s){et(l,p,g({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:f,fromSortable:d,target:a,completed:P,onMove:function(n,o){return Gt(at,i,ot,e,n,L(n),t,o)},changed:A},s))}function M(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function P(e){return I("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==d&&(F(ot,mt?mt.options.ghostClass:c.options.ghostClass,!1),F(ot,l.ghostClass,!0)),mt!==p&&p!==zt.active?mt=p:p===zt.active&&mt&&(mt=null),d===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===ot&&!ot.animated||a===i&&!a.animated)&&(Ct=null),l.dragoverBubble||t.rootEl||a===document||(ot.parentNode[q]._isOutsideThisEl(t.target),!e&&Ut(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function A(){dt=Y(ot),ht=Y(ot,l.draggable),nt({sortable:p,name:"change",toEl:i,newIndex:dt,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Ut),T(document,"mousemove",Ut),T(document,"touchmove",Ut)},_offUpEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._onDrop),T(t,"touchend",this._onDrop),T(t,"pointerup",this._onDrop),T(t,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;dt=Y(ot),ht=Y(ot,n.draggable),et("drop",this,{evt:t}),rt=ot&&ot.parentNode,dt=Y(ot),ht=Y(ot,n.draggable),zt.eventCanceled||(Tt=!1,Pt=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qt(this.cloneId),Qt(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),S&&j(document.body,"user-select",""),j(ot,"transform",""),t&&(St&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),it&&it.parentNode&&it.parentNode.removeChild(it),(at===rt||mt&&"clone"!==mt.lastPutMode)&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ot&&(this.nativeDraggable&&T(ot,"dragend",this),Jt(ot),ot.style["will-change"]="",St&&!Tt&&F(ot,mt?mt.options.ghostClass:this.options.ghostClass,!1),F(ot,this.options.chosenClass,!1),nt({sortable:this,name:"unchoose",toEl:rt,newIndex:null,newDraggableIndex:null,originalEvent:t}),at!==rt?(dt>=0&&(nt({rootEl:rt,name:"add",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"remove",toEl:rt,originalEvent:t}),nt({rootEl:rt,name:"sort",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),mt&&mt.save()):dt!==ft&&dt>=0&&(nt({sortable:this,name:"update",toEl:rt,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),zt.active&&(null!=dt&&-1!==dt||(dt=ft,ht=pt),nt({sortable:this,name:"end",toEl:rt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){et("nulling",this),at=ot=rt=it=lt=ct=st=ut=gt=bt=St=dt=ht=ft=pt=Ct=Ot=mt=vt=zt.dragged=zt.ghost=zt.clone=zt.active=null,jt.forEach((function(t){t.checked=!0})),jt.length=yt=xt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)k(t=n[o],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Zt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var r=n.children[o];k(r,this.options.draggable,n,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=tt.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Bt(n)},destroy:function(){et("destroy",this);var t=this.el;t[q]=null,T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart),T(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(et("hideClone",this),zt.eventCanceled)return;j(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),ut=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ut){if(et("showClone",this),zt.eventCanceled)return;at.contains(ot)&&!this.options.group.revertClone?at.insertBefore(ct,ot):lt?at.insertBefore(ct,lt):at.appendChild(ct),this.options.group.revertClone&&this.animate(ot,ct),j(ct,"display",""),ut=!1}}else this._hideClone()}},Nt&&E(document,"touchmove",(function(t){(zt.active||Tt)&&t.cancelable&&t.preventDefault()})),zt.utils={on:E,off:T,css:j,find:R,is:function(t,e){return!!k(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:z,closest:k,toggleClass:F,clone:J,index:Y,nextTick:Kt,cancelNextTick:Qt,detectDirection:Xt,getChild:X},zt.get=function(t){return t[q]},zt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(zt.utils=g({},zt.utils,t.utils)),tt.mount(t)}))},zt.create=function(t,e){return new zt(t,e)},zt.version="1.10.2";var te,ee,ne,oe,re,ie,ae=[],le=!1;function se(){ae.forEach((function(t){clearInterval(t.pid)})),ae=[]}function ce(){clearInterval(ie)}var ue=z((function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=$(),u=!1;ee!==n&&(ee=n,se(),te=e.scroll,r=e.scrollFn,!0===te&&(te=U(n,!0)));var f=0,d=te;do{var p=d,h=L(p),v=h.top,m=h.bottom,g=h.left,b=h.right,y=h.width,x=h.height,_=void 0,w=void 0,S=p.scrollWidth,C=p.scrollHeight,O=j(p),D=p.scrollLeft,E=p.scrollTop;p===c?(_=y<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),w=x<C&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(_=y<S&&("auto"===O.overflowX||"scroll"===O.overflowX),w=x<C&&("auto"===O.overflowY||"scroll"===O.overflowY));var T=_&&(Math.abs(b-i)<=l&&D+y<S)-(Math.abs(g-i)<=l&&!!D),I=w&&(Math.abs(m-a)<=l&&E+x<C)-(Math.abs(v-a)<=l&&!!E);if(!ae[f])for(var M=0;M<=f;M++)ae[M]||(ae[M]={});ae[f].vx==T&&ae[f].vy==I&&ae[f].el===p||(ae[f].el=p,ae[f].vx=T,ae[f].vy=I,clearInterval(ae[f].pid),0==T&&0==I||(u=!0,ae[f].pid=setInterval(function(){o&&0===this.layer&&zt.active._onTouchMove(re);var e=ae[this.layer].vy?ae[this.layer].vy*s:0,n=ae[this.layer].vx?ae[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(zt.dragged.parentNode[q],n,e,t,re,ae[this.layer].el)||G(ae[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==c&&(d=U(d,!1)));le=u}}),30),fe=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function de(){}function pe(){}de.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=X(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:fe},m(de,{pluginName:"revertOnSpill"}),pe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:fe},m(pe,{pluginName:"removeOnSpill"}),zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):this.options.supportPointer?E(document,"pointermove",this._handleFallbackAutoScroll):e.touches?E(document,"touchmove",this._handleFallbackAutoScroll):E(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),ce(),se(),clearTimeout(P),P=void 0},nulling:function(){re=ee=te=le=ie=ne=oe=null,ae.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(re=t,e||_||x||S){ue(t,this.options,i,e);var a=U(i,!0);!le||ie&&o===ne&&r===oe||(ie&&ce(),ie=setInterval((function(){var i=U(document.elementFromPoint(o,r),!0);i!==a&&(a=i,se()),ue(t,n.options,i,e)}),10),ne=o,oe=r)}else{if(!this.options.bubbleScroll||U(i,!0)===$())return void se();ue(t,this.options,U(i,!1),!1)}}},m(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(pe,de);var he,ve,me,ge=(he=function(t,e){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){var o=n("2d00"),r=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",h="values",v=function(){return this};t.exports=function(t,e,n,m,g,b,y){s(n,e,m);var x,_,w,S=function(t){if(!d&&t in E)return E[t];switch(t){case p:case h:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",O=g==h,D=!1,E=t.prototype,T=E[f]||E["@@iterator"]||g&&E[g],I=T||S(g),M=g?O?S("entries"):I:void 0,k="Array"==e&&E.entries||T;if(k&&(w=u(k.call(new t)))!==Object.prototype&&w.next&&(c(w,C,!0),o||"function"==typeof w[f]||a(w,f,v)),O&&T&&T.name!==h&&(D=!0,I=function(){return T.call(this)}),o&&!y||!d&&!D&&E[f]||a(E,f,I),l[e]=I,l[C]=v,g)if(x={values:O?I:S(h),keys:b?I:S(p),entries:M},y)for(_ in x)_ in E||i(E,_,x[_]);else r(r.P+r.F*(d||D),e,x);return x}},"02f4":function(t,e,n){var o=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var i,a,l=String(r(e)),s=o(n),c=l.length;return s<0||s>=c?t?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?t?l.charAt(s):i:t?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){var o=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},"0bfb":function(t,e,n){var o=n("cb7c");t.exports=function(){var t=o(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var o=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return o(t,r)}},1495:function(t,e,n){var o=n("86cc"),r=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);for(var n,a=i(e),l=a.length,s=0;l>s;)o.f(t,n=a[s++],e[n]);return t}},"214f":function(t,e,n){n("b0c5");var o=n("2aba"),r=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=l(t),p=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!f){var v=/./[d],m=n(a,d,""[t],(function(t,e,n,o,r){return e.exec===s?p&&!r?{done:!0,value:v.call(e,n,o)}:{done:!0,value:t.call(n,e,o)}:{done:!1}})),g=m[0],b=m[1];o(String.prototype,t,g),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var o=n("d3f4"),r=n("7726").document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"23c6":function(t,e,n){var o=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==o(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:i?o(e):"Object"==(a=o(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var o=n("7726"),r=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var s="function"==typeof n;s&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===o?t[e]=n:l?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(t,e,n){var o=n("cb7c"),r=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s=function(){var t,e=n("230e")("iframe"),o=i.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;o--;)delete s.prototype[i[o]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[a]=t):n=s(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var o=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,a="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=a&&i[t]||(a?i:r)("Symbol."+t))}).store=o},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){var o=n("5ca1"),r=n("d2c8"),i="includes";o(o.P+o.F*n("5147")(i),"String",{includes:function(t){return!!~r(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var o=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var o=n("69a8"),r=n("4bf8"),i=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){var o=n("2aeb"),r=n("4630"),i=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=o(a,{next:r(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var o=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(o(t))}}))},4588:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var o=n("be13");t.exports=function(t){return Object(o(t))}},5147:function(t,e,n){var o=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){var o,r,i=n("0bfb"),a=RegExp.prototype.exec,l=String.prototype.replace,s=a,c=(o=/a/,r=/b*/g,a.call(o,"a"),a.call(r,"a"),0!==o.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(s=function(t){var e,n,o,r,s=this;return u&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),c&&(e=s.lastIndex),o=a.call(s,t),c&&o&&(s.lastIndex=s.global?o.index+o[0].length:e),u&&o&&o.length>1&&l.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var o=n("8378"),r=n("7726"),i="__core-js_shared__",a=r[i]||(r[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var o=n("7726"),r=n("8378"),i=n("32e9"),a=n("2aba"),l=n("9b43"),s=function(t,e,n){var c,u,f,d,p=t&s.F,h=t&s.G,v=t&s.S,m=t&s.P,g=t&s.B,b=h?o:v?o[e]||(o[e]={}):(o[e]||{}).prototype,y=h?r:r[e]||(r[e]={}),x=y.prototype||(y.prototype={});for(c in h&&(n=e),n)f=((u=!p&&b&&void 0!==b[c])?b:n)[c],d=g&&u?l(f,o):m&&"function"==typeof f?l(Function.call,f):f,b&&a(b,c,f,t&s.U),y[c]!=f&&i(y,c,d),m&&x[c]!=f&&(x[c]=f)};o.core=r,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5eda":function(t,e,n){var o=n("5ca1"),r=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){var o=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var o=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return o[t]||(o[t]=r(t))}},"626a":function(t,e,n){var o=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},6762:function(t,e,n){var o=n("5ca1"),r=n("c366")(!0);o(o.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var o=n("626a"),r=n("be13");t.exports=function(t){return o(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var o=n("d3f4");t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){var o=n("0d58"),r=n("2621"),i=n("52a7"),a=n("4bf8"),l=n("626a"),s=Object.assign;t.exports=!s||n("79e5")((function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=o}))?function(t,e){for(var n=a(t),s=arguments.length,c=1,u=r.f,f=i.f;s>c;)for(var d,p=l(arguments[c++]),h=u?o(p).concat(u(p)):o(p),v=h.length,m=0;v>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var o=n("4588"),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var o=n("86cc").f,r=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var o=n("cb7c"),r=n("c69a"),i=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var o=n("d8e8");t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var o=n("2b4c")("unscopables"),r=Array.prototype;null==r[o]&&n("32e9")(r,o,{}),t.exports=function(t){r[o][t]=!0}},"9def":function(t,e,n){var o=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){var o=n("cb7c"),r=n("4bf8"),i=n("9def"),a=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(t,e,n,h){return[function(o,r){var i=t(this),a=null==o?void 0:o[e];return void 0!==a?a.call(o,i,r):n.call(String(i),o,r)},function(t,e){var r=h(n,t,this,e);if(r.done)return r.value;var f=o(t),d=String(this),p="function"==typeof e;p||(e=String(e));var m=f.global;if(m){var g=f.unicode;f.lastIndex=0}for(var b=[];;){var y=s(f,d);if(null===y)break;if(b.push(y),!m)break;""===String(y[0])&&(f.lastIndex=l(d,i(f.lastIndex),g))}for(var x,_="",w=0,S=0;S<b.length;S++){y=b[S];for(var C=String(y[0]),O=c(u(a(y.index),d.length),0),D=[],E=1;E<y.length;E++)D.push(void 0===(x=y[E])?x:String(x));var T=y.groups;if(p){var I=[C].concat(D,O,d);void 0!==T&&I.push(T);var M=String(e.apply(void 0,I))}else M=v(C,d,O,D,T,e);O>=w&&(_+=d.slice(w,O)+M,w=O+C.length)}return _+d.slice(w)}];function v(t,e,o,i,a,l){var s=o+t.length,c=i.length,u=p;return void 0!==a&&(a=r(a),u=d),n.call(l,u,(function(n,r){var l;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,o);case"'":return e.slice(s);case"<":l=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=f(u/10);return 0===d?n:d<=c?void 0===i[d-1]?r.charAt(1):i[d-1]+r.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},aae3:function(t,e,n){var o=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,n){for(var o=n("cadf"),r=n("0d58"),i=n("2aba"),a=n("7726"),l=n("32e9"),s=n("84f2"),c=n("2b4c"),u=c("iterator"),f=c("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),v=0;v<h.length;v++){var m,g=h[v],b=p[g],y=a[g],x=y&&y.prototype;if(x&&(x[u]||l(x,u,d),x[f]||l(x,f,g),s[g]=d,b))for(m in o)x[m]||i(x,m,o[m],!0)}},b0c5:function(t,e,n){var o=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var o=n("6821"),r=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,a){var l,s=o(e),c=r(s.length),u=i(a,c);if(t&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s})),n("a481");var o,r,i="undefined"!=typeof window?window.console:t.console,a=/-(\w)/g,l=(o=function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))},r=Object.create(null),function(t){return r[t]||(r[t]=o(t))});function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var o=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},cadf:function(t,e,n){var o=n("9c6c"),r=n("d53b"),i=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},cb7c:function(t,e,n){var o=n("d3f4");t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var o=n("69a8"),r=n("6821"),i=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,l=r(t),s=0,c=[];for(n in l)n!=a&&o(l,n)&&c.push(n);for(;e.length>s;)o(l,n=e[s++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var o=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(o(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){var o=n("5ca1"),r=n("9def"),i=n("d2c8"),a="startsWith",l="".startsWith;o(o.P+o.F*n("5147")(a),"String",{startsWith:function(t){var e=i(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),o=String(t);return l?l.call(e,o,n):e.slice(n,n+o.length)===o}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(o){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var o=n("5ca1");o(o.S+o.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var o=n("7726").document;t.exports=o&&o.documentElement},fb15:function(t,e,n){var o;function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function i(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);o=!0);}catch(t){r=!0,i=t}finally{try{o||null==l.return||l.return()}finally{if(r)throw i}}return n}}(t,e)||i(t,e)||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.")}()}function l(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=o[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var s=n("a352"),c=n.n(s),u=n("c649");function f(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function d(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),f.call(e,t,n)}}function p(t){return["transition-group","TransitionGroup"].includes(t)}function h(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var v=["Start","Add","Remove","Update","End"],m=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(v,m).map((function(t){return"on"+t})),b=null,y={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=a(t,1)[0].componentOptions;return!!e&&p(e.tag)}(e);var n=function(t,e,n){var o=0,r=0,i=h(e,n,"header");i&&(o=i.length,t=t?[].concat(l(i),l(t)):l(i));var a=h(e,n,"footer");return a&&(r=a.length,t=t?[].concat(l(t),l(a)):l(a)),{children:t,headerOffset:o,footerOffset:r}}(e,this.$slots,this.$scopedSlots),o=n.children,r=n.headerOffset,i=n.footerOffset;this.headerOffset=r,this.footerOffset=i;var s=function(t,e){var n=null,o=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(o("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{})),!e)return n;var r=e.on,i=e.props,a=e.attrs;return o("on",r),o("props",i),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return t(this.getTag(),s,o)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};v.forEach((function(n){e["on"+n]=d.call(t,n)})),m.forEach((function(n){e["on"+n]=f.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(u.a)(n)]=t.$attrs[n],e}),{}),o=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in o)&&(o.draggable=">*"),this._sortable=new c.a(this.rootContainer,o),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(u.a)(e);-1===g.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,n,o){if(!t)return[];var r=t.map((function(t){return t.elm})),i=e.length-o,a=l(e).map((function(t,e){return e>=i?r.length:r.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&p(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=l(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,l(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,o=this.getUnderlyingPotencialDraggableComponent(e);if(!o)return{component:o};var r=o.realList,i={list:r,component:o};if(e!==n&&r&&o.getUnderlyingVm){var a=o.getUnderlyingVm(n);if(a)return Object.assign(a,i)}return i},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),b=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(u.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var o={element:e,newIndex:n};this.emitChanges({added:o})}},onDragRemove:function(t){if(Object(u.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(u.d)(t.clone)},onDragUpdate:function(t){Object(u.d)(t.item),Object(u.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=l(e.to.children).filter((function(t){return"none"!==t.style.display})),o=n.indexOf(e.related),r=t.component.getVmIndex(o);return-1===n.indexOf(b)&&e.willInsertAfter?r+1:r},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var o=this.getRelatedContextFromMoveEvent(t),r=this.context,i=this.computeFutureIndex(o,t);return Object.assign(r,{futureIndex:i}),n(Object.assign({},t,{relatedContext:o,draggedContext:r}),e)},onDragEnd:function(){this.computeIndexes(),b=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var x=y;e.default=x}}).default},t.exports=n(zt)},he(me={path:ve,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&me.path)}},me.exports),me.exports),be=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-facets-sidebar"},[n("h4",[t._v("Компоненты")]),t._v(" "),n("b-form",[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",[n("b-form-input",{attrs:{placeholder:"Название поля"},model:{value:t.facetSearchStr,callback:function(e){t.facetSearchStr=e},expression:"facetSearchStr"}})],1)],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-facet-list"},t._l(t.innerFacets,(function(e){return n("div",{key:e.name,staticClass:"rb-facet"},[n("h6",{staticClass:"rb-facet-label d-flex"},[n("rb-text",{staticClass:"flex-fill"},[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:"icon-chevron-"+(e.expanded?"up":"down")},on:{click:function(t){e.expanded=!e.expanded}}})],1),t._v(" "),e.expanded?n("b-list-group",[n("draggable",{attrs:{clone:t.onFieldCloned,animation:200,group:{name:"fields",pull:"clone",put:!1},"ghost-class":"rb-facet-field-moving"},on:{end:function(e){return t.onFieldMoveEnd(e)}},model:{value:e.fields,callback:function(n){t.$set(e,"fields",n)},expression:"facet.fields"}},t._l(e.fields,(function(e){return n("b-list-group-item",{key:e.name,staticClass:"cursor-pointer"},[n("rb-text",[t._v(t._s(e.labelRu))])],1)})),1)],1):t._e()],1)})),0)],1)},staticRenderFns:[]},undefined,{name:"DocTemplateFacetList",components:{draggable:ge},props:{facets:{type:Array,default:function(){return[]}}},data:function(){return{allFacets:[],innerFacets:[],facetSearchStr:null}},watch:{facetSearchStr:function(){this.findInFacets(this.facetSearchStr)},facets:function(){this.handleFacetsProp()}},methods:{onFieldCloned:function(t){var e=JSON.parse(JSON.stringify(t));return e.input=u.getDefaultInput(e),e},onFieldMoveEnd:function(t){this.$emit("fieldMoveEnd",t)},findInFacets:function(t){(t=t.toLowerCase())&&0!==t.length||(this.innerFacets=this.allFacets);var e=JSON.parse(JSON.stringify(this.allFacets));e=e.filter((function(e){var n=!1;return e.fields=e.fields.filter((function(e){var o=e.labelRu.toLowerCase().indexOf(t)>=0;return o&&(n=!0),o})),n})),this.innerFacets=e},handleFacetsProp:function(){var t=this.facets.map((function(t){return e(e({},t),{},{expanded:!1})}));this.innerFacets=JSON.parse(JSON.stringify(t)),this.allFacets=JSON.parse(JSON.stringify(t))}},created:function(){this.handleFacetsProp()}},undefined,false,undefined,!1,void 0,void 0,void 0),ye=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-sidebar",{staticClass:"rb-doc-template-field-sidebar",attrs:{right:"","bg-variant":"white",shadow:""},scopedSlots:t._u([{key:"header",fn:function(){return[n("b-button",{staticClass:"rb-sidebar-close-btn",attrs:{variant:"secondary"},on:{click:t.hide}},[n("rb-icon",{attrs:{icon:t.innerVisible?"icon-chevron-right":"icon-chevron-left"}})],1),t._v(" "),n("h4",[t._v("Редактор свойств")])]},proxy:!0}]),model:{value:t.innerVisible,callback:function(e){t.innerVisible=e},expression:"innerVisible"}},[t._v(" "),t.field?n("b-form",[n("div",{staticClass:"rb-form-section"},[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Название"}},[n("rb-text",[t._v(t._s(t.field.name))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тип"}},[n("rb-text",[t._v(t._s(t.field.type))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{staticClass:"rb-immutable",attrs:{label:"Тэг для файла шаблона"}},[n("rb-text",[t._v(t._s(t.field.tag))])],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Заголовок"}},[n("b-form-input",{model:{value:t.field.labelRu,callback:function(e){t.$set(t.field,"labelRu",e)},expression:"field.labelRu"}})],1)],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.multiple,callback:function(e){t.$set(t.field,"multiple",e)},expression:"field.multiple"}},[t._v("Множественное")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.visible,callback:function(e){t.$set(t.field,"visible",e)},expression:"field.visible"}},[t._v("Отображаемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.editable,callback:function(e){t.$set(t.field,"editable",e)},expression:"field.editable"}},[t._v("Редактируемое")])],1)],1),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-checkbox",{attrs:{size:"lg"},model:{value:t.field.required,callback:function(e){t.$set(t.field,"required",e)},expression:"field.required"}},[t._v("Обязательное")])],1)],1)],1),t._v(" "),n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("\n Настройки ввода\n ")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Тип инпута"}},[n("rb-dropdown-input",{attrs:{items:t.inputOptions,"display-field":"text","value-field":"name",block:""},model:{value:t.currentInputName,callback:function(e){t.currentInputName=e},expression:"currentInputName"}})],1),t._v(" "),t._l(t.field.input.props,(function(e,o){return[e.visible?n("b-form-group",{key:o,attrs:{label:e.label}},[n(t.getPropInputType(e,o),t._b({tag:"component",model:{value:t.field.input.propsData[o],callback:function(e){t.$set(t.field.input.propsData,o,e)},expression:"field.input.propsData[propName]"}},"component",t.getPropInputPropData(e,o),!1))],1):t._e()]}))],2)],1)],1),t._v(" "),t.field.input?n("div",{staticClass:"rb-form-section"},[n("div",{staticClass:"rb-title"},[t._v("\n Значение по-умолчанию\n ")]),t._v(" "),n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",attrs:{label:t.field.labelRu}},[n(t.field.input.type,t._b({tag:"component",model:{value:t.field.defaultValue,callback:function(e){t.$set(t.field,"defaultValue",e)},expression:"field.defaultValue"}},"component",t.field.input.propsData,!1))],1)],1)],1)],1):t._e()]):t._e()],1)},staticRenderFns:[]},undefined,{name:"DocTemplateFieldSidebar",props:{value:{type:Object,default:null},visible:{type:Boolean,default:null}},data:function(){return{innerVisible:null,field:null,currentInputName:null}},computed:{inputOptions:function(){return this.field?u.getInputTypes(this.field):[]}},watch:{visible:function(){this.innerVisible=this.visible},value:function(){this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name)},field:function(){this.$emit("input",this.field),this.$emit("change",this.field)},currentInputName:function(){this.field.input=u.getInputTypeByName(this.currentInputName,this.field)}},methods:{hide:function(){this.innerVisible=!1,this.$emit("hide")},getPropInputType:function(t,e){return"string"===t.type?"b-form-input":"rb-boolean-single-option-input"},getPropInputPropData:function(t,e){return"string"===t.type?{type:"text"}:{}}},created:function(){this.innerVisible=this.visible,this.field=this.value,this.field&&this.field.input&&(this.currentInputName=this.field.input.name)}},undefined,false,undefined,!1,void 0,void 0,void 0),xe={name:"DocTemplateConstructor",components:{DocTemplateFacetList:be,DocTemplateFieldSidebar:ye,DocTemplateSectionModal:p,draggable:ge},props:{formConfig:{type:Object,default:function(){return{sections:[]}}},facets:{type:Array,default:function(){return[]}}},data:function(){return{sidebarVisible:!1,sidebarField:null,columnTo:!1,hash:"",sectionModalCfg:{id:"rb-doc-template-section-modal",mode:"ins",section:null,onAfterOk:function(){}}}},methods:{showProperties:function(t){this.sidebarVisible=!0,this.sidebarField=t},addSection:function(t){var e=this,n={labelRu:null,columnCount:t};this.sectionModalCfg.mode="ins",this.sectionModalCfg.section=n,this.sectionModalCfg.onAfterOk=function(){n.columns=[];for(var o=0;o<t;o++)n.columns.push({index:o,fields:[]});e.formConfig.sections.push(n)},this.$bvModal.show(this.sectionModalCfg.id)},editSection:function(t){this.sectionModalCfg.mode="update",this.sectionModalCfg.section=t,this.sectionModalCfg.onAfterOk=function(){},this.$bvModal.show(this.sectionModalCfg.id)},removeSection:function(t,e){this.formConfig.sections.splice(e,1)},multipleFieldAreOnFormConfig:function(t){var e=0;return this.formConfig.sections.every((function(n){if(n.columns.every((function(n){if(n.fields.forEach((function(n){n.name===t.name&&e++})),e>1)return!1})),e>1)return!1})),e>1},removeFieldFromColumn:function(t,e,n){var o=null!=n?n:-1;o<0&&e.fields.every((function(e,n){if(t.name===e.name)return o=n,!1})),o>=0&&e.fields.splice(o,1)},onRemoveField:function(t,e,n){t.preventDefault(),this.removeFieldFromColumn(e,n)},onFieldAddedToColumn:function(t,e,n){this.columnTo=e},onFieldMoveEnd:function(t){var e=t.newIndex,n=t.item._underlying_vm_;this.multipleFieldAreOnFormConfig(n)&&(this.removeFieldFromColumn(n,this.columnTo,e),this.resetDragVariables(),this.$bvModal.msgBoxOk("На форме уже есть это поле",{title:"Ошибка",headerClass:"rb-error-msg-box__header",bodyClass:"rb-error-msg-box__body",footerClass:"rb-error-msg-box__footer",centered:!0,noCloseOnBackdrop:!0,noCloseOnEsc:!0})),this.resetDragVariables(),this.hash=(Math.random()+1).toString(36).substring(7)},getFieldExtendedPropsData:function(t){return e(e({},t.input.propsData),{},{placeholder:t.tag,disabled:!0})},resetDragVariables:function(){this.columnTo=null}}},_e=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rb-doc-template-constructor d-flex"},[n("doc-template-facet-list",{attrs:{facets:t.facets},on:{fieldMoveEnd:t.onFieldMoveEnd}}),t._v(" "),n("div",{staticClass:"rb-form-constructor flex-fill"},[n("div",{staticClass:"rb-constructor-toolbar d-flex flex-row"},[n("h4",[t._v("Верстка документа")]),t._v(" "),n("div",{staticClass:"rb-layout-buttons"},[n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(1)}}},[n("rb-text",[t._v("1 колонка")]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-add"}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(2)}}},[n("rb-text",[t._v("2 колонки")]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-add"}})],1),t._v(" "),n("b-button",{attrs:{pill:"",variant:"outline-gray"},on:{click:function(e){return t.addSection(3)}}},[n("rb-text",[t._v("3 колонки")]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-add"}})],1)],1)]),t._v(" "),n("div",{staticClass:"rb-constructor-body"},[n("draggable",{attrs:{animation:200,group:"section","ghost-class":"rb-form-card-moving",handle:".rb-row-drag-handle"},model:{value:t.formConfig.section,callback:function(e){t.$set(t.formConfig,"section",e)},expression:"formConfig.section"}},t._l(t.formConfig.sections,(function(e,o){return n("b-card",{key:e.labelRu,staticClass:"rb-form-card",attrs:{"data-hash":t.hash},scopedSlots:t._u([{key:"header",fn:function(){return[n("rb-icon",{staticClass:"cursor-pointer rb-row-drag-handle",attrs:{icon:"icon-reorder"}}),t._v(" "),n("rb-text",{staticClass:"flex-fill",on:{click:function(n){return t.editSection(e)}}},[t._v("\n "+t._s(e.labelRu)+"\n ")]),t._v(" "),n("span",{staticClass:"rb-actions"},[n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:"icon-edit"},on:{click:function(n){return t.editSection(e)}}}),t._v(" "),n("rb-icon",{staticClass:"cursor-pointer",attrs:{icon:"icon-delete"},on:{click:function(n){return t.removeSection(e,o)}}})],1)]},proxy:!0}],null,!0)},[t._v(" "),n("div",{staticClass:"d-flex flex-row"},t._l(e.columns,(function(o){return n("draggable",{key:o.index,staticClass:"rb-form-column",class:{"rb-single-column":1===e.columnCount},attrs:{tag:"b-form",animation:200,group:"fields","ghost-class":"rb-moving-item",handle:".icon-reorder"},on:{add:function(n){return t.onFieldAddedToColumn(n,o,e)}},model:{value:o.fields,callback:function(e){t.$set(o,"fields",e)},expression:"column.fields"}},t._l(o.fields,(function(e){return n("b-form-row",{key:e.name,staticClass:"cursor-pointer",on:{click:function(n){return t.showProperties(e)}}},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:e.labelRu},scopedSlots:t._u([{key:"label",fn:function(){return[n("rb-icon",{attrs:{icon:"icon-reorder"}}),t._v(" "),n("rb-text",[t._v(t._s(e.labelRu))]),t._v(" "),n("rb-icon",{attrs:{icon:"icon-delete"},on:{click:function(n){return n.preventDefault(),t.onRemoveField(n,e,o)}}})]},proxy:!0}],null,!0)},[t._v(" "),e.input?n(e.input.type,t._b({tag:"component",staticClass:"cursor-pointer",attrs:{disabled:""}},"component",t.getFieldExtendedPropsData(e),!1)):t._e()],1)],1)],1)})),1)})),1)])})),1)],1),t._v(" "),n("doc-template-field-sidebar",{attrs:{visible:t.sidebarVisible},on:{hide:function(e){t.sidebarVisible=!1}},model:{value:t.sidebarField,callback:function(e){t.sidebarField=e},expression:"sidebarField"}}),t._v(" "),n("doc-template-section-modal",{attrs:{mode:t.sectionModalCfg.mode,section:t.sectionModalCfg.section,"on-after-ok":t.sectionModalCfg.onAfterOk}})],1)],1)},staticRenderFns:[]},undefined,xe,undefined,false,undefined,!1,void 0,void 0,void 0),we=_e,Se=f({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form",{staticClass:"rb-doc-form"},t._l(t.formConfig.sections,(function(e){return n("div",{key:e.labelRu,staticClass:"rb-form-section"},[n("h4",[t._v(t._s(e.labelRu))]),t._v(" "),n("div",{staticClass:"d-flex flex-row"},t._l(e.columns,(function(o){return n("div",{key:o.index,staticClass:"rb-form-column",class:{"rb-single-column":1===e.columnCount}},t._l(o.fields,(function(e){return n("b-form-row",{key:e.name,staticClass:"cursor-pointer"},[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{ref:"inputContainer",refInFor:!0,attrs:{label:e.labelRu}},[n(e.input.type,t._b({tag:"component",model:{value:t.doc[e.name],callback:function(n){t.$set(t.doc,e.name,n)},expression:"doc[field.name]"}},"component",e.input.propsData,!1))],1)],1)],1)})),1)})),0)])})),0)},staticRenderFns:[]},undefined,{name:"DocForm",props:{formConfig:Object,doc:{type:Object,default:function(){return{}}}},created:function(){var t=this;this.formConfig.sections.forEach((function(e){e.columns.forEach((function(e){e.fields.forEach((function(e){t.doc[e.name]=e.defaultValue}))}))}))}},undefined,false,undefined,!1,void 0,void 0,void 0),Ce=Object.freeze({__proto__:null,UtFormConfig:u,DocTemplateSectionModal:p,DocTemplateFacetList:be,DocTemplateFieldSidebar:ye,DocTemplateConstructor:we,DocForm:Se}),Oe=function(t){Object.entries(Ce).forEach((function(e){var n=o(e,2),r=n[0],i=n[1];t.component(r,i)}))},De=Object.freeze({__proto__:null,default:Oe,UtFormConfig:u,DocTemplateSectionModal:p,DocTemplateFacetList:be,DocTemplateFieldSidebar:ye,DocTemplateConstructor:we,DocForm:Se});return Object.entries(De).forEach((function(t){var e=o(t,2),n=e[0],r=e[1];"default"!==n&&(Oe[n]=r)})),Oe}();
|
|
@@ -367,7 +367,7 @@ var UtFormConfig = {
|
|
|
367
367
|
//
|
|
368
368
|
//
|
|
369
369
|
//
|
|
370
|
-
var script$
|
|
370
|
+
var script$4 = {
|
|
371
371
|
name: 'DocTemplateSectionModal',
|
|
372
372
|
props: {
|
|
373
373
|
section: Object,
|
|
@@ -492,10 +492,10 @@ var script$3 = {
|
|
|
492
492
|
}
|
|
493
493
|
return script;
|
|
494
494
|
}/* script */
|
|
495
|
-
var __vue_script__$
|
|
495
|
+
var __vue_script__$4 = script$4;
|
|
496
496
|
/* template */
|
|
497
497
|
|
|
498
|
-
var __vue_render__$
|
|
498
|
+
var __vue_render__$4 = function __vue_render__() {
|
|
499
499
|
var _vm = this;
|
|
500
500
|
|
|
501
501
|
var _h = _vm.$createElement;
|
|
@@ -543,31 +543,31 @@ var __vue_render__$3 = function __vue_render__() {
|
|
|
543
543
|
})], 1)], 1)], 1)], 1)], 1);
|
|
544
544
|
};
|
|
545
545
|
|
|
546
|
-
var __vue_staticRenderFns__$
|
|
546
|
+
var __vue_staticRenderFns__$4 = [];
|
|
547
547
|
/* style */
|
|
548
548
|
|
|
549
|
-
var __vue_inject_styles__$
|
|
549
|
+
var __vue_inject_styles__$4 = undefined;
|
|
550
550
|
/* scoped */
|
|
551
551
|
|
|
552
|
-
var __vue_scope_id__$
|
|
552
|
+
var __vue_scope_id__$4 = undefined;
|
|
553
553
|
/* module identifier */
|
|
554
554
|
|
|
555
|
-
var __vue_module_identifier__$
|
|
555
|
+
var __vue_module_identifier__$4 = "data-v-0dc54a8c";
|
|
556
556
|
/* functional template */
|
|
557
557
|
|
|
558
|
-
var __vue_is_functional_template__$
|
|
558
|
+
var __vue_is_functional_template__$4 = false;
|
|
559
559
|
/* style inject */
|
|
560
560
|
|
|
561
561
|
/* style inject SSR */
|
|
562
562
|
|
|
563
563
|
/* style inject shadow dom */
|
|
564
564
|
|
|
565
|
-
var __vue_component__$
|
|
566
|
-
render: __vue_render__$
|
|
567
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
568
|
-
}, __vue_inject_styles__$
|
|
565
|
+
var __vue_component__$6 = /*#__PURE__*/normalizeComponent({
|
|
566
|
+
render: __vue_render__$4,
|
|
567
|
+
staticRenderFns: __vue_staticRenderFns__$4
|
|
568
|
+
}, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
|
|
569
569
|
|
|
570
|
-
var DocTemplateSectionModal = __vue_component__$
|
|
570
|
+
var DocTemplateSectionModal = __vue_component__$6;var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
571
571
|
|
|
572
572
|
function createCommonjsModule(fn, basedir, module) {
|
|
573
573
|
return module = {
|
|
@@ -5949,7 +5949,7 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
5949
5949
|
/******/ })["default"];
|
|
5950
5950
|
});
|
|
5951
5951
|
|
|
5952
|
-
});var script$
|
|
5952
|
+
});var script$3 = {
|
|
5953
5953
|
name: 'DocTemplateFacetList',
|
|
5954
5954
|
components: {
|
|
5955
5955
|
draggable: vuedraggable_umd
|
|
@@ -6023,10 +6023,10 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
6023
6023
|
this.handleFacetsProp();
|
|
6024
6024
|
}
|
|
6025
6025
|
};/* script */
|
|
6026
|
-
var __vue_script__$
|
|
6026
|
+
var __vue_script__$3 = script$3;
|
|
6027
6027
|
/* template */
|
|
6028
6028
|
|
|
6029
|
-
var __vue_render__$
|
|
6029
|
+
var __vue_render__$3 = function __vue_render__() {
|
|
6030
6030
|
var _vm = this;
|
|
6031
6031
|
|
|
6032
6032
|
var _h = _vm.$createElement;
|
|
@@ -6095,32 +6095,32 @@ var __vue_render__$2 = function __vue_render__() {
|
|
|
6095
6095
|
}), 0)], 2);
|
|
6096
6096
|
};
|
|
6097
6097
|
|
|
6098
|
-
var __vue_staticRenderFns__$
|
|
6098
|
+
var __vue_staticRenderFns__$3 = [];
|
|
6099
6099
|
/* style */
|
|
6100
6100
|
|
|
6101
|
-
var __vue_inject_styles__$
|
|
6101
|
+
var __vue_inject_styles__$3 = undefined;
|
|
6102
6102
|
/* scoped */
|
|
6103
6103
|
|
|
6104
|
-
var __vue_scope_id__$
|
|
6104
|
+
var __vue_scope_id__$3 = undefined;
|
|
6105
6105
|
/* module identifier */
|
|
6106
6106
|
|
|
6107
|
-
var __vue_module_identifier__$
|
|
6107
|
+
var __vue_module_identifier__$3 = "data-v-148588d0";
|
|
6108
6108
|
/* functional template */
|
|
6109
6109
|
|
|
6110
|
-
var __vue_is_functional_template__$
|
|
6110
|
+
var __vue_is_functional_template__$3 = false;
|
|
6111
6111
|
/* style inject */
|
|
6112
6112
|
|
|
6113
6113
|
/* style inject SSR */
|
|
6114
6114
|
|
|
6115
6115
|
/* style inject shadow dom */
|
|
6116
6116
|
|
|
6117
|
-
var __vue_component__$
|
|
6118
|
-
render: __vue_render__$
|
|
6119
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
6120
|
-
}, __vue_inject_styles__$
|
|
6117
|
+
var __vue_component__$5 = /*#__PURE__*/normalizeComponent({
|
|
6118
|
+
render: __vue_render__$3,
|
|
6119
|
+
staticRenderFns: __vue_staticRenderFns__$3
|
|
6120
|
+
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
|
|
6121
6121
|
|
|
6122
|
-
var DocTemplateFacetList = __vue_component__$
|
|
6123
|
-
var script$
|
|
6122
|
+
var DocTemplateFacetList = __vue_component__$5;//
|
|
6123
|
+
var script$2 = {
|
|
6124
6124
|
name: 'DocTemplateFieldSidebar',
|
|
6125
6125
|
props: {
|
|
6126
6126
|
value: {
|
|
@@ -6194,10 +6194,10 @@ var script$1 = {
|
|
|
6194
6194
|
}
|
|
6195
6195
|
}
|
|
6196
6196
|
};/* script */
|
|
6197
|
-
var __vue_script__$
|
|
6197
|
+
var __vue_script__$2 = script$2;
|
|
6198
6198
|
/* template */
|
|
6199
6199
|
|
|
6200
|
-
var __vue_render__$
|
|
6200
|
+
var __vue_render__$2 = function __vue_render__() {
|
|
6201
6201
|
var _vm = this;
|
|
6202
6202
|
|
|
6203
6203
|
var _h = _vm.$createElement;
|
|
@@ -6409,31 +6409,31 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
6409
6409
|
}, 'component', _vm.field.input.propsData, false))], 1)], 1)], 1)], 1) : _vm._e()]) : _vm._e()], 1);
|
|
6410
6410
|
};
|
|
6411
6411
|
|
|
6412
|
-
var __vue_staticRenderFns__$
|
|
6412
|
+
var __vue_staticRenderFns__$2 = [];
|
|
6413
6413
|
/* style */
|
|
6414
6414
|
|
|
6415
|
-
var __vue_inject_styles__$
|
|
6415
|
+
var __vue_inject_styles__$2 = undefined;
|
|
6416
6416
|
/* scoped */
|
|
6417
6417
|
|
|
6418
|
-
var __vue_scope_id__$
|
|
6418
|
+
var __vue_scope_id__$2 = undefined;
|
|
6419
6419
|
/* module identifier */
|
|
6420
6420
|
|
|
6421
|
-
var __vue_module_identifier__$
|
|
6421
|
+
var __vue_module_identifier__$2 = "data-v-8fe1b46c";
|
|
6422
6422
|
/* functional template */
|
|
6423
6423
|
|
|
6424
|
-
var __vue_is_functional_template__$
|
|
6424
|
+
var __vue_is_functional_template__$2 = false;
|
|
6425
6425
|
/* style inject */
|
|
6426
6426
|
|
|
6427
6427
|
/* style inject SSR */
|
|
6428
6428
|
|
|
6429
6429
|
/* style inject shadow dom */
|
|
6430
6430
|
|
|
6431
|
-
var __vue_component__$
|
|
6432
|
-
render: __vue_render__$
|
|
6433
|
-
staticRenderFns: __vue_staticRenderFns__$
|
|
6434
|
-
}, __vue_inject_styles__$
|
|
6431
|
+
var __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
6432
|
+
render: __vue_render__$2,
|
|
6433
|
+
staticRenderFns: __vue_staticRenderFns__$2
|
|
6434
|
+
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
|
|
6435
6435
|
|
|
6436
|
-
var DocTemplateFieldSidebar = __vue_component__$
|
|
6436
|
+
var DocTemplateFieldSidebar = __vue_component__$4;var script$1 = {
|
|
6437
6437
|
name: 'DocTemplateConstructor',
|
|
6438
6438
|
components: {
|
|
6439
6439
|
DocTemplateFacetList: DocTemplateFacetList,
|
|
@@ -6595,10 +6595,10 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
|
|
|
6595
6595
|
}
|
|
6596
6596
|
}
|
|
6597
6597
|
};/* script */
|
|
6598
|
-
var __vue_script__ = script;
|
|
6598
|
+
var __vue_script__$1 = script$1;
|
|
6599
6599
|
/* template */
|
|
6600
6600
|
|
|
6601
|
-
var __vue_render__ = function __vue_render__() {
|
|
6601
|
+
var __vue_render__$1 = function __vue_render__() {
|
|
6602
6602
|
var _vm = this;
|
|
6603
6603
|
|
|
6604
6604
|
var _h = _vm.$createElement;
|
|
@@ -6818,6 +6818,132 @@ var __vue_render__ = function __vue_render__() {
|
|
|
6818
6818
|
})], 2)], 2);
|
|
6819
6819
|
};
|
|
6820
6820
|
|
|
6821
|
+
var __vue_staticRenderFns__$1 = [];
|
|
6822
|
+
/* style */
|
|
6823
|
+
|
|
6824
|
+
var __vue_inject_styles__$1 = undefined;
|
|
6825
|
+
/* scoped */
|
|
6826
|
+
|
|
6827
|
+
var __vue_scope_id__$1 = undefined;
|
|
6828
|
+
/* module identifier */
|
|
6829
|
+
|
|
6830
|
+
var __vue_module_identifier__$1 = "data-v-f3c3d068";
|
|
6831
|
+
/* functional template */
|
|
6832
|
+
|
|
6833
|
+
var __vue_is_functional_template__$1 = false;
|
|
6834
|
+
/* style inject */
|
|
6835
|
+
|
|
6836
|
+
/* style inject SSR */
|
|
6837
|
+
|
|
6838
|
+
/* style inject shadow dom */
|
|
6839
|
+
|
|
6840
|
+
var __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
6841
|
+
render: __vue_render__$1,
|
|
6842
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
6843
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
6844
|
+
|
|
6845
|
+
var __vue_component__$3 = __vue_component__$2;//
|
|
6846
|
+
//
|
|
6847
|
+
//
|
|
6848
|
+
//
|
|
6849
|
+
//
|
|
6850
|
+
//
|
|
6851
|
+
//
|
|
6852
|
+
//
|
|
6853
|
+
//
|
|
6854
|
+
//
|
|
6855
|
+
//
|
|
6856
|
+
//
|
|
6857
|
+
//
|
|
6858
|
+
//
|
|
6859
|
+
//
|
|
6860
|
+
//
|
|
6861
|
+
//
|
|
6862
|
+
//
|
|
6863
|
+
//
|
|
6864
|
+
//
|
|
6865
|
+
//
|
|
6866
|
+
//
|
|
6867
|
+
//
|
|
6868
|
+
//
|
|
6869
|
+
//
|
|
6870
|
+
var script = {
|
|
6871
|
+
name: 'DocForm',
|
|
6872
|
+
props: {
|
|
6873
|
+
formConfig: Object,
|
|
6874
|
+
doc: {
|
|
6875
|
+
type: Object,
|
|
6876
|
+
default: function _default() {
|
|
6877
|
+
return {};
|
|
6878
|
+
}
|
|
6879
|
+
}
|
|
6880
|
+
},
|
|
6881
|
+
created: function created() {
|
|
6882
|
+
var _this = this;
|
|
6883
|
+
|
|
6884
|
+
this.formConfig.sections.forEach(function (r) {
|
|
6885
|
+
r.columns.forEach(function (c) {
|
|
6886
|
+
c.fields.forEach(function (f) {
|
|
6887
|
+
_this.doc[f.name] = f.defaultValue;
|
|
6888
|
+
});
|
|
6889
|
+
});
|
|
6890
|
+
});
|
|
6891
|
+
}
|
|
6892
|
+
};/* script */
|
|
6893
|
+
var __vue_script__ = script;
|
|
6894
|
+
/* template */
|
|
6895
|
+
|
|
6896
|
+
var __vue_render__ = function __vue_render__() {
|
|
6897
|
+
var _vm = this;
|
|
6898
|
+
|
|
6899
|
+
var _h = _vm.$createElement;
|
|
6900
|
+
|
|
6901
|
+
var _c = _vm._self._c || _h;
|
|
6902
|
+
|
|
6903
|
+
return _c('b-form', {
|
|
6904
|
+
staticClass: "rb-doc-form"
|
|
6905
|
+
}, _vm._l(_vm.formConfig.sections, function (section) {
|
|
6906
|
+
return _c('div', {
|
|
6907
|
+
key: section.labelRu,
|
|
6908
|
+
staticClass: "rb-form-section"
|
|
6909
|
+
}, [_c('h4', [_vm._v(_vm._s(section.labelRu))]), _vm._v(" "), _c('div', {
|
|
6910
|
+
staticClass: "d-flex flex-row"
|
|
6911
|
+
}, _vm._l(section.columns, function (column) {
|
|
6912
|
+
return _c('div', {
|
|
6913
|
+
key: column.index,
|
|
6914
|
+
staticClass: "rb-form-column",
|
|
6915
|
+
class: {
|
|
6916
|
+
'rb-single-column': section.columnCount === 1
|
|
6917
|
+
}
|
|
6918
|
+
}, _vm._l(column.fields, function (field) {
|
|
6919
|
+
return _c('b-form-row', {
|
|
6920
|
+
key: field.name,
|
|
6921
|
+
staticClass: "cursor-pointer"
|
|
6922
|
+
}, [_c('b-col', {
|
|
6923
|
+
attrs: {
|
|
6924
|
+
"lg": "12"
|
|
6925
|
+
}
|
|
6926
|
+
}, [_c('b-form-group', {
|
|
6927
|
+
ref: "inputContainer",
|
|
6928
|
+
refInFor: true,
|
|
6929
|
+
attrs: {
|
|
6930
|
+
"label": field.labelRu
|
|
6931
|
+
}
|
|
6932
|
+
}, [_c(field.input.type, _vm._b({
|
|
6933
|
+
tag: "component",
|
|
6934
|
+
model: {
|
|
6935
|
+
value: _vm.doc[field.name],
|
|
6936
|
+
callback: function callback($$v) {
|
|
6937
|
+
_vm.$set(_vm.doc, field.name, $$v);
|
|
6938
|
+
},
|
|
6939
|
+
expression: "doc[field.name]"
|
|
6940
|
+
}
|
|
6941
|
+
}, 'component', field.input.propsData, false))], 1)], 1)], 1);
|
|
6942
|
+
}), 1);
|
|
6943
|
+
}), 0)]);
|
|
6944
|
+
}), 0);
|
|
6945
|
+
};
|
|
6946
|
+
|
|
6821
6947
|
var __vue_staticRenderFns__ = [];
|
|
6822
6948
|
/* style */
|
|
6823
6949
|
|
|
@@ -6827,7 +6953,7 @@ var __vue_inject_styles__ = undefined;
|
|
|
6827
6953
|
var __vue_scope_id__ = undefined;
|
|
6828
6954
|
/* module identifier */
|
|
6829
6955
|
|
|
6830
|
-
var __vue_module_identifier__ = "data-v-
|
|
6956
|
+
var __vue_module_identifier__ = "data-v-14c7e96e";
|
|
6831
6957
|
/* functional template */
|
|
6832
6958
|
|
|
6833
6959
|
var __vue_is_functional_template__ = false;
|
|
@@ -6842,7 +6968,7 @@ var __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
6842
6968
|
staticRenderFns: __vue_staticRenderFns__
|
|
6843
6969
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
6844
6970
|
|
|
6845
|
-
var __vue_component__$1 = __vue_component__;/* eslint-disable import/prefer-default-export */var components$1=/*#__PURE__*/Object.freeze({__proto__:null,UtFormConfig:UtFormConfig,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1});var install = function installRbDocumentFormConstructor(Vue) {
|
|
6971
|
+
var __vue_component__$1 = __vue_component__;/* eslint-disable import/prefer-default-export */var components$1=/*#__PURE__*/Object.freeze({__proto__:null,UtFormConfig:UtFormConfig,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$3,DocForm:__vue_component__$1});var install = function installRbDocumentFormConstructor(Vue) {
|
|
6846
6972
|
Object.entries(components$1).forEach(function (_ref) {
|
|
6847
6973
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
6848
6974
|
componentName = _ref2[0],
|
|
@@ -6851,7 +6977,7 @@ var __vue_component__$1 = __vue_component__;/* eslint-disable import/prefer-defa
|
|
|
6851
6977
|
Vue.component(componentName, component);
|
|
6852
6978
|
});
|
|
6853
6979
|
}; // Create module definition for Vue.use()
|
|
6854
|
-
var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,UtFormConfig:UtFormConfig,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1});// only expose one global var, with component exports exposed as properties of
|
|
6980
|
+
var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,UtFormConfig:UtFormConfig,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$3,DocForm:__vue_component__$1});// only expose one global var, with component exports exposed as properties of
|
|
6855
6981
|
// that global var (eg. plugin.component)
|
|
6856
6982
|
|
|
6857
6983
|
Object.entries(components).forEach(function (_ref) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.rb-doc-form {
|
|
2
|
+
h4 {
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
font-size: $rb-doc-form-font-size-lg;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.rb-form-section {
|
|
8
|
+
padding-bottom: 10px;
|
|
9
|
+
padding-top: 10px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rb-form-column {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.rb-form-column:first-child {
|
|
17
|
+
margin-left: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.rb-form-column:last-child {
|
|
21
|
+
margin-right: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rb-form-column {
|
|
25
|
+
margin-left: 10px;
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.form-control:disabled {
|
|
30
|
+
background-color: white;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<b-form class="rb-doc-form">
|
|
3
|
+
<div v-for="(section) in formConfig.sections" :key="section.labelRu"
|
|
4
|
+
class="rb-form-section">
|
|
5
|
+
<h4>{{section.labelRu}}</h4>
|
|
6
|
+
|
|
7
|
+
<div class="d-flex flex-row">
|
|
8
|
+
<div class="rb-form-column" v-for="column in section.columns"
|
|
9
|
+
:key="column.index" :class="{'rb-single-column': section.columnCount === 1}">
|
|
10
|
+
<b-form-row v-for="field in column.fields" :key="field.name"
|
|
11
|
+
class="cursor-pointer">
|
|
12
|
+
<b-col lg="12">
|
|
13
|
+
<b-form-group :label="field.labelRu" ref="inputContainer">
|
|
14
|
+
<component v-bind:is="field.input.type"
|
|
15
|
+
v-model="doc[field.name]"
|
|
16
|
+
v-bind="field.input.propsData"></component>
|
|
17
|
+
</b-form-group>
|
|
18
|
+
</b-col>
|
|
19
|
+
</b-form-row>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</b-form>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
export default {
|
|
28
|
+
name: 'DocForm',
|
|
29
|
+
props: {
|
|
30
|
+
formConfig: Object,
|
|
31
|
+
doc: {type: Object, default: () => ({})}
|
|
32
|
+
},
|
|
33
|
+
created() {
|
|
34
|
+
this.formConfig.sections.forEach(r => {
|
|
35
|
+
r.columns.forEach(c => {
|
|
36
|
+
c.fields.forEach(f => {
|
|
37
|
+
this.doc[f.name] = f.defaultValue;
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|