skhj-variant 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/package.iml +12 -0
- package/README.md +180 -0
- package/babel.config.js +5 -0
- package/dist/build/css/app.9b74af27.css +1 -0
- package/dist/build/css/chunk-vendors.a16c4353.css +1 -0
- package/dist/build/favicon.ico +0 -0
- package/dist/build/fonts/element-icons.535877f5.woff +0 -0
- package/dist/build/fonts/element-icons.732389de.ttf +0 -0
- package/dist/build/img/t1.21b2c158.png +0 -0
- package/dist/build/img/t2.6991670f.png +0 -0
- package/dist/build/img/t3.49724600.png +0 -0
- package/dist/build/img/t4.4acb1808.png +0 -0
- package/dist/build/img/t5.e5e1948c.png +0 -0
- package/dist/build/img/t6.40836551.png +0 -0
- package/dist/build/img/t7.94cf1cc9.png +0 -0
- package/dist/build/img/t8.9291e9c1.png +0 -0
- package/dist/build/index.html +1 -0
- package/dist/build/js/app.dbcf7751.js +1 -0
- package/dist/build/js/chunk-1d66e3dd.7d669272.js +23 -0
- package/dist/build/js/chunk-vendors.be32fc27.js +24 -0
- package/dist/build/report.html +53 -0
- package/dist/lib/VFormDesigner.common-report.html +53 -0
- package/dist/lib/VFormDesigner.common.1.js +14583 -0
- package/dist/lib/VFormDesigner.common.1.js.map +1 -0
- package/dist/lib/VFormDesigner.common.js +71232 -0
- package/dist/lib/VFormDesigner.common.js.map +1 -0
- package/dist/lib/VFormDesigner.css +1 -0
- package/dist/lib/VFormDesigner.umd-report.html +53 -0
- package/dist/lib/VFormDesigner.umd.1.js +14583 -0
- package/dist/lib/VFormDesigner.umd.1.js.map +1 -0
- package/dist/lib/VFormDesigner.umd.js +71242 -0
- package/dist/lib/VFormDesigner.umd.js.map +1 -0
- package/dist/lib/VFormDesigner.umd.min-report.html +53 -0
- package/dist/lib/VFormDesigner.umd.min.1.js +23 -0
- package/dist/lib/VFormDesigner.umd.min.js +19 -0
- package/dist/lib/demo.html +10 -0
- package/dist/lib/img/t1.21b2c158.png +0 -0
- package/dist/lib/img/t2.6991670f.png +0 -0
- package/dist/lib/img/t3.49724600.png +0 -0
- package/dist/lib/img/t4.4acb1808.png +0 -0
- package/dist/lib/img/t5.e5e1948c.png +0 -0
- package/dist/lib/img/t6.40836551.png +0 -0
- package/dist/lib/img/t7.94cf1cc9.png +0 -0
- package/dist/lib/img/t8.9291e9c1.png +0 -0
- package/dist/lib-render/VFormRender.common-report.html +53 -0
- package/dist/lib-render/VFormRender.common.1.js +14583 -0
- package/dist/lib-render/VFormRender.common.1.js.map +1 -0
- package/dist/lib-render/VFormRender.common.js +32421 -0
- package/dist/lib-render/VFormRender.common.js.map +1 -0
- package/dist/lib-render/VFormRender.css +1 -0
- package/dist/lib-render/VFormRender.umd-report.html +53 -0
- package/dist/lib-render/VFormRender.umd.1.js +14583 -0
- package/dist/lib-render/VFormRender.umd.1.js.map +1 -0
- package/dist/lib-render/VFormRender.umd.js +32431 -0
- package/dist/lib-render/VFormRender.umd.js.map +1 -0
- package/dist/lib-render/VFormRender.umd.min-report.html +53 -0
- package/dist/lib-render/VFormRender.umd.min.1.js +23 -0
- package/dist/lib-render/VFormRender.umd.min.js +15 -0
- package/dist/lib-render/demo.html +10 -0
- package/index_template/index_dev.html +19 -0
- package/index_template/index_prod.html +28 -0
- package/index_template/vform_demo.gif +0 -0
- package/install-render.js +29 -0
- package/install.js +41 -0
- package/jsconfig.json +10 -0
- package/license.txt +8 -0
- package/package.json +58 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +28 -0
- package/src/App.vue +22 -0
- package/src/assets/ft-images/t1.png +0 -0
- package/src/assets/ft-images/t2.png +0 -0
- package/src/assets/ft-images/t3.png +0 -0
- package/src/assets/ft-images/t4.png +0 -0
- package/src/assets/ft-images/t5.png +0 -0
- package/src/assets/ft-images/t6.png +0 -0
- package/src/assets/ft-images/t7.png +0 -0
- package/src/assets/ft-images/t8.png +0 -0
- package/src/assets/style.scss +92 -0
- package/src/assets/vform-logo.png +0 -0
- package/src/components/code-editor/index.vue +130 -0
- package/src/components/form-designer/designer.js +926 -0
- package/src/components/form-designer/form-widget/container-widget/container-wrapper.vue +107 -0
- package/src/components/form-designer/form-widget/container-widget/containerMixin.js +85 -0
- package/src/components/form-designer/form-widget/container-widget/grid-col-widget.vue +310 -0
- package/src/components/form-designer/form-widget/container-widget/grid-widget.vue +89 -0
- package/src/components/form-designer/form-widget/container-widget/index.js +24 -0
- package/src/components/form-designer/form-widget/container-widget/tab-widget.vue +119 -0
- package/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue +341 -0
- package/src/components/form-designer/form-widget/container-widget/table-widget.vue +111 -0
- package/src/components/form-designer/form-widget/field-widget/button-widget.vue +87 -0
- package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue +104 -0
- package/src/components/form-designer/form-widget/field-widget/checkbox-widget.vue +105 -0
- package/src/components/form-designer/form-widget/field-widget/color-widget.vue +99 -0
- package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue +104 -0
- package/src/components/form-designer/form-widget/field-widget/date-widget.vue +103 -0
- package/src/components/form-designer/form-widget/field-widget/divider-widget.vue +83 -0
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +535 -0
- package/src/components/form-designer/form-widget/field-widget/file-upload-widget.vue +271 -0
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue +331 -0
- package/src/components/form-designer/form-widget/field-widget/html-text-widget.vue +82 -0
- package/src/components/form-designer/form-widget/field-widget/index.js +10 -0
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue +112 -0
- package/src/components/form-designer/form-widget/field-widget/number-widget.vue +103 -0
- package/src/components/form-designer/form-widget/field-widget/picture-upload-widget.vue +226 -0
- package/src/components/form-designer/form-widget/field-widget/radio-widget.vue +105 -0
- package/src/components/form-designer/form-widget/field-widget/rate-widget.vue +102 -0
- package/src/components/form-designer/form-widget/field-widget/rich-editor-widget.vue +122 -0
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue +115 -0
- package/src/components/form-designer/form-widget/field-widget/slider-widget.vue +100 -0
- package/src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue +189 -0
- package/src/components/form-designer/form-widget/field-widget/static-text-widget.vue +82 -0
- package/src/components/form-designer/form-widget/field-widget/switch-widget.vue +101 -0
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue +99 -0
- package/src/components/form-designer/form-widget/field-widget/time-range-widget.vue +104 -0
- package/src/components/form-designer/form-widget/field-widget/time-widget.vue +103 -0
- package/src/components/form-designer/form-widget/index.vue +260 -0
- package/src/components/form-designer/index.vue +448 -0
- package/src/components/form-designer/setting-panel/form-setting.vue +324 -0
- package/src/components/form-designer/setting-panel/index.vue +328 -0
- package/src/components/form-designer/setting-panel/option-items-setting.vue +234 -0
- package/src/components/form-designer/setting-panel/property-editor/allowCreate-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/appendButton-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/appendButtonDisabled-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/automaticDropdown-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/border-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/buttonStyle-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/clearable-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/columnWidth-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +81 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-responsive-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +48 -0
- package/src/components/form-designer/setting-panel/property-editor/container-sub-form/showBlankRow-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-sub-form/showRowNumber-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-sub-form/sub-form-labelAlign-editor.vue +36 -0
- package/src/components/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/customClass-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/defaultValue-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/disabled-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/displayStyle-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/editable-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +12 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onBeforeUpload-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onBlur-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onChange-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue +31 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onFocus-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onInput-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onMounted-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onRemoteQuery-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowAdd-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowChange-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowDelete-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onSubFormRowInsert-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onUploadError-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onUploadSuccess-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +32 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/circle-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/plain-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-button/round-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-color/color-defaultValue-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -0
- package/src/components/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +43 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/allowHalf-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +26 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/showScore-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-rate/showText-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-slider/range-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-slider/showStops-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-slider/vertical-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/activeColor-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/inactiveColor-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/switch-defaultValue-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +27 -0
- package/src/components/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/filterable-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/hidden-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/index.js +10 -0
- package/src/components/form-designer/setting-panel/property-editor/label-editor.vue +30 -0
- package/src/components/form-designer/setting-panel/property-editor/labelAlign-editor.vue +42 -0
- package/src/components/form-designer/setting-panel/property-editor/labelHidden-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +37 -0
- package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/labelWidth-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/limit-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/max-editor.vue +39 -0
- package/src/components/form-designer/setting-panel/property-editor/maxLength-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/min-editor.vue +40 -0
- package/src/components/form-designer/setting-panel/property-editor/minLength-editor.vue +41 -0
- package/src/components/form-designer/setting-panel/property-editor/multiple-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/multipleSelect-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/name-editor.vue +80 -0
- package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/placeholder-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/precision-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/propertyMixin.js +47 -0
- package/src/components/form-designer/setting-panel/property-editor/readonly-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/remote-editor.vue +25 -0
- package/src/components/form-designer/setting-panel/property-editor/required-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/rows-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/showFileList-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/showPassword-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/showWordLimit-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/size-editor.vue +38 -0
- package/src/components/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/step-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/type-editor.vue +33 -0
- package/src/components/form-designer/setting-panel/property-editor/uploadTip-editor.vue +24 -0
- package/src/components/form-designer/setting-panel/property-editor/uploadURL-editor.vue +28 -0
- package/src/components/form-designer/setting-panel/property-editor/validation-editor.vue +48 -0
- package/src/components/form-designer/setting-panel/property-editor/validationHint-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor/withCredentials-editor.vue +23 -0
- package/src/components/form-designer/setting-panel/property-editor-factory.js +173 -0
- package/src/components/form-designer/setting-panel/propertyRegister.js +198 -0
- package/src/components/form-designer/toolbar-panel/index.vue +1070 -0
- package/src/components/form-designer/widget-panel/index.vue +530 -0
- package/src/components/form-designer/widget-panel/templatesConfig.js +58 -0
- package/src/components/form-designer/widget-panel/widgetsConfig.js +966 -0
- package/src/components/form-render/container-item/container-item-wrapper.vue +34 -0
- package/src/components/form-render/container-item/containerItemMixin.js +136 -0
- package/src/components/form-render/container-item/grid-col-item.vue +115 -0
- package/src/components/form-render/container-item/grid-item.vue +54 -0
- package/src/components/form-render/container-item/index.js +24 -0
- package/src/components/form-render/container-item/sub-form-item.vue +405 -0
- package/src/components/form-render/container-item/tab-item.vue +89 -0
- package/src/components/form-render/container-item/table-cell-item.vue +61 -0
- package/src/components/form-render/container-item/table-item.vue +65 -0
- package/src/components/form-render/index.vue +712 -0
- package/src/components/form-render/refMixin.js +22 -0
- package/src/components/svg-icon/index.vue +49 -0
- package/src/components/v-table/index.vue +106 -0
- package/src/extension/extension-helper.js +23 -0
- package/src/extension/extension-loader.js +112 -0
- package/src/extension/samples/alert/alert-widget.vue +72 -0
- package/src/extension/samples/card/card-item.vue +90 -0
- package/src/extension/samples/card/card-widget.vue +119 -0
- package/src/extension/samples/extension-schema.js +36 -0
- package/src/extension/samples/extension-sfc-generator.js +50 -0
- package/src/iconfont/iconfont.css +29 -0
- package/src/iconfont/iconfont.eot +0 -0
- package/src/iconfont/iconfont.js +1 -0
- package/src/iconfont/iconfont.json +37 -0
- package/src/iconfont/iconfont.svg +35 -0
- package/src/iconfont/iconfont.ttf +0 -0
- package/src/iconfont/iconfont.woff +0 -0
- package/src/iconfont/iconfont.woff2 +0 -0
- package/src/icons/index.js +9 -0
- package/src/icons/svg/alert.svg +1 -0
- package/src/icons/svg/button.svg +1 -0
- package/src/icons/svg/card.svg +1 -0
- package/src/icons/svg/cascader-field.svg +1 -0
- package/src/icons/svg/checkbox-field.svg +1 -0
- package/src/icons/svg/color-field.svg +1 -0
- package/src/icons/svg/custom-component.svg +1 -0
- package/src/icons/svg/data-table.svg +1 -0
- package/src/icons/svg/date-field.svg +1 -0
- package/src/icons/svg/date-range-field.svg +1 -0
- package/src/icons/svg/divider.svg +1 -0
- package/src/icons/svg/document.svg +1 -0
- package/src/icons/svg/drag.svg +1 -0
- package/src/icons/svg/file-upload-field.svg +1 -0
- package/src/icons/svg/github.svg +1 -0
- package/src/icons/svg/grid.svg +1 -0
- package/src/icons/svg/html-text.svg +1 -0
- package/src/icons/svg/node-tree.svg +1 -0
- package/src/icons/svg/number-field.svg +1 -0
- package/src/icons/svg/picture-upload-field.svg +1 -0
- package/src/icons/svg/radio-field.svg +1 -0
- package/src/icons/svg/rate-field.svg +1 -0
- package/src/icons/svg/redo.svg +1 -0
- package/src/icons/svg/rich-editor-field.svg +1 -0
- package/src/icons/svg/section.svg +1 -0
- package/src/icons/svg/select-field.svg +1 -0
- package/src/icons/svg/slider-field.svg +1 -0
- package/src/icons/svg/slot-component.svg +1 -0
- package/src/icons/svg/static-text.svg +1 -0
- package/src/icons/svg/sub-form.svg +1 -0
- package/src/icons/svg/switch-field.svg +1 -0
- package/src/icons/svg/tab.svg +1 -0
- package/src/icons/svg/table.svg +1 -0
- package/src/icons/svg/text-field.svg +1 -0
- package/src/icons/svg/textarea-field.svg +1 -0
- package/src/icons/svg/time-field.svg +1 -0
- package/src/icons/svg/time-range-field.svg +1 -0
- package/src/icons/svg/undo.svg +1 -0
- package/src/icons/svg/vue-sfc.svg +1 -0
- package/src/index.js +41 -0
- package/src/lang/en-US.js +321 -0
- package/src/lang/en-US_extension.js +26 -0
- package/src/lang/en-US_render.js +38 -0
- package/src/lang/zh-CN.js +321 -0
- package/src/lang/zh-CN_extension.js +26 -0
- package/src/lang/zh-CN_render.js +38 -0
- package/src/main.js +29 -0
- package/src/styles/global.scss +103 -0
- package/src/styles/index.scss +15 -0
- package/src/utils/beautifierLoader.js +77 -0
- package/src/utils/code-generator.js +91 -0
- package/src/utils/config.js +19 -0
- package/src/utils/debug-console.js +7 -0
- package/src/utils/directive.js +74 -0
- package/src/utils/i18n.js +70 -0
- package/src/utils/sfc-generator.js +583 -0
- package/src/utils/util.js +232 -0
- package/src/utils/validators.js +127 -0
- package/src/utils/vue2js-generator.js +144 -0
- package/src/utils/vue3js-generator.js +70 -0
- package/vue.config.js +92 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["VFormDesigner"]=t(require("vue")):e["VFormDesigner"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){function t(t){for(var n,o,r=t[0],s=t[1],a=0,l=[];a<r.length;a++)o=r[a],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&l.push(i[o][0]),i[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);c&&c(t);while(l.length)l.shift()()}var n={},i={0:0};function o(e){return r.p+"VFormDesigner.umd.min."+({}[e]||e)+".js"}function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.e=function(e){var t=[],n=i[e];if(0!==n)if(n)t.push(n[2]);else{var s=new Promise((function(t,o){n=i[e]=[t,o]}));t.push(n[2]=s);var a,l=document.createElement("script");l.charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.src=o(e);var c=new Error;a=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=i[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",c.name="ChunkLoadError",c.type=o,c.request=r,n[1](c)}i[e]=void 0}};var d=setTimeout((function(){a({type:"timeout",target:l})}),12e4);l.onerror=l.onload=a,document.head.appendChild(l)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=("undefined"!==typeof self?self:this)["webpackJsonpVFormDesigner"]=("undefined"!==typeof self?self:this)["webpackJsonpVFormDesigner"]||[],a=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var c=a;return r(r.s="fb15")}({"0085":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.widgetSize")}},[n("el-select",{model:{value:e.optionModel.size,callback:function(t){e.$set(e.optionModel,"size",t)},expression:"optionModel.size"}},e._l(e.widgetSizes,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"size-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{widgetSizes:[{label:"default",value:""},{label:"large",value:"large"},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"08040a34",null);t["default"]=c.exports},"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),o=n("da84"),r=n("c65b"),s=n("e330"),a=n("1626"),l=n("861d"),c=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),d=o.Error,u=s(/./.test);i({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=this.exec;if(!a(t))return u(this,e);var n=r(t,this,e);if(null!==n&&!l(n))throw new d("RegExp exec method returned something other than an Object or null");return!!n}})},"00ee":function(e,t,n){var i=n("b622"),o=i("toStringTag"),r={};r[o]="z",e.exports="[object z]"===String(r)},"015e":function(e,t,n){e.exports=n.p+"img/t5.e5e1948c.png"},"01ea":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i="2.1.9",o="https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/",r="https://ks3-cn-beijing.ksyun.com/vform2021/ace-mini",s="https://ks3-cn-beijing.ksyun.com/vform2021/js-beautify/1.14.0/beautifier.min.js"},"028e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-time-picker",{staticStyle:{width:"100%"},attrs:{format:e.optionModel.format,"value-format":"HH:mm:ss"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})},o=[],r=n("79fa"),s=n("b2bf"),a={name:"time-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"354f0e4d",null);t["default"]=d.exports},"0353":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multipleLimit")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.optionModel.multipleLimit,callback:function(t){e.$set(e.optionModel,"multipleLimit",t)},expression:"optionModel.multipleLimit"}})],1)},o=[],r=n("79fa"),s={name:"multipleLimit-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"088d9185",null);t["default"]=c.exports},"0366":function(e,t,n){var i=n("e330"),o=n("59ed"),r=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:r?r(e,t):function(){return e.apply(t,arguments)}}},"03c0":function(e,t,n){(function(e){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],(function(e,t,n){"use strict";function i(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var o=e("./lib/dom"),r=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter,a=e("./lib/lang"),l=e("./range").Range,c=e("./range_list").RangeList,d=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,h=e("./clipboard"),f={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return h.getText&&h.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){var t=e.session.$mode||{};return t.lineCommentStart||""},CURRENT_YEAR:i.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:i.bind(null,{year:"2-digit"}),CURRENT_MONTH:i.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:i.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:i.bind(null,{month:"short"}),CURRENT_DATE:i.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:i.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:i.bind(null,{weekday:"short"}),CURRENT_HOUR:i.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:i.bind(null,{minute:"2-digit"}),CURRENT_SECOND:i.bind(null,{second:"2-digit"})};f.SELECTED_TEXT=f.SELECTION;var p=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,s),this.getTokenizer=function(){return p.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag="",""},next:"formatString"};return p.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return("}"==i&&n.length||-1!="`$\\".indexOf(i))&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var o=e(t.substr(1));return i.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=i,[i[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){var i=n[0];return i.formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),p.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=f,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var i=t.flag||"",o=t.guard;o=new RegExp(o,i.replace(/[^gim]/g,""));var r="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this,a=e.replace(o,(function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(r,n),i="E",o=0;o<t.length;o++){var a=t[o];if("object"==typeof a)if(t[o]="",a.changeCase&&a.local){var l=t[o+1];l&&"string"==typeof l&&("u"==a.changeCase?t[o]=l[0].toUpperCase():t[o]=l[0].toLowerCase(),t[o+1]=l.substr(1))}else a.changeCase&&(i=a.changeCase);else"U"==i?t[o]=a.toUpperCase():"L"==i&&(t[o]=a.toLowerCase())}return s.variables.__=e,t.join("")}));return a},this.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},this.resolveVariables=function(e,t){function n(t){var n=e.indexOf(t,s+1);-1!=n&&(s=n)}for(var i=[],o="",r=!0,s=0;s<e.length;s++){var a=e[s];if("string"!=typeof a){if(a){if(r=!1,a.fmtString){var l=e.indexOf(a,s+1);-1==l&&(l=e.length),a.fmt=e.slice(s+1,l),s=l}if(a.text){var c=this.getVariableValue(t,a.text,o)+"";a.fmtString&&(c=this.tmStrFormat(c,a,t)),a.formatFunction&&(c=this.tmFormatFunction(c,a,t)),c&&!a.ifEnd?(i.push(c),n(a)):!c&&a.ifEnd&&n(a.ifEnd)}else a.elseEnd?n(a.elseEnd):(null!=a.tabstopId||null!=a.changeCase)&&i.push(a)}}else i.push(a),"\n"==a?(r=!0,o=""):r&&(o=/^\t*/.exec(a)[0],r=/\S/.test(a))}return i},this.insertSnippetForSelection=function(e,t){function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if("object"==typeof i){if(c[i.tabstopId])continue;var o=e.lastIndexOf(i,n-1);i=t[o]||{tabstopId:i.tabstopId}}t[n]=i}return t}var i=e.getCursorPosition(),o=e.session.getLine(i.row),r=e.session.getTabString(),s=o.match(/^\s*/)[0];i.column<s.length&&(s=s.slice(0,i.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=this.resolveVariables(a,e),a=a.map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e}));var l=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,i=l[n];if(i||(i=l[n]=[],i.index=n,i.value="",i.parents={}),-1===i.indexOf(e)){e.choices&&!i.choices&&(i.choices=e.choices),i.push(e);var o=a.indexOf(e,t+1);if(-1!==o){var r=a.slice(t+1,o),s=r.some((function(e){return"object"==typeof e}));s&&!i.value?i.value=r:r.length&&(!i.value||"string"!=typeof i.value)&&(i.value=r.join(""))}}}})),l.forEach((function(e){e.length=0}));for(var c={},d=0;d<a.length;d++){var u=a[d];if("object"==typeof u){var h=u.tabstopId,f=l[h],p=a.indexOf(u,d+1);if(c[h])c[h]===u&&(delete c[h],Object.keys(c).forEach((function(e){f.parents[e]=!0})));else{c[h]=u;var m=f.value;"string"!=typeof m?m=n(m):u.fmt&&(m=this.tmStrFormat(m,u,e)),a.splice.apply(a,[d+1,Math.max(0,p-d)].concat(m,u)),-1===f.indexOf(u)&&f.push(u)}}}var b=0,v=0,w="";a.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(v=t[t.length-1].length,b+=t.length-1):v+=e.length,w+=e}else e&&(e.start?e.end={row:b,column:v}:e.start={row:b,column:v})}));var y=e.getSelectionRange(),x=e.session.replace(y,w),_=new g(e),C=e.inVirtualSelectionMode&&e.selection.index;_.addTabstops(l,y.start,x,C)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"===t&&!e.session.$mode.inlinePhp&&(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"==typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function n(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function i(e,t,i){return e=n(e),t=n(t),i?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function o(e){e.scope||(e.scope=t||"_"),t=e.scope,r[t]||(r[t]=[],s[t]={});var n=s[t];if(e.name){var o=n[e.name];o&&l.unregister(o),n[e.name]=e}r[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=a.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=i(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=i(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var r=this.snippetMap,s=this.snippetNameMap,l=this;e||(e=[]),Array.isArray(e)?e.forEach(o):Object.keys(e).forEach((function(t){o(e[t])})),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){function n(e){var n=o[e.scope||t];if(n&&n[e.name]){delete n[e.name];var r=i[e.scope||t],s=r&&r.indexOf(e);s>=0&&r.splice(s,1)}}var i=this.snippetMap,o=this.snippetNameMap;e.content?n(e):Array.isArray(e)&&e.forEach(n)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],i={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=o.exec(e)){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(s){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var r=t[2],a=t[3];if("regex"==r){var l=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=l.exec(a)[1],i.trigger=l.exec(a)[1],i.endTrigger=l.exec(a)[1],i.endGuard=l.exec(a)[1]}else"snippet"==r?(i.tabTrigger=a.match(/^\S*/)[0],i.name||(i.name=a)):r&&(i[r]=a)}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var o=i[t];return o&&(n=o[e]),!!n}),this),n}}).call(p.prototype);var g=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=a.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},i=n.parents||{},o=(this.tabstops||[]).slice(),r=0;r<o.length;r++){var s=o[r],a=s==n||i[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==n){var l=s.parents&&s.parents[n.index],c=s.rangeList.pointIndex(e.start,l);c=c<0?-c-1:c+1;var d=s.rangeList.pointIndex(e.end,l);d=d<0?-d-1:d-1;for(var u=s.rangeList.ranges.slice(c,d),h=0;h<u.length;h++)this.removeRange(u[h])}s.rangeList.$onChange(e)}var f=this.editor.session;!this.$inChange&&t&&1==f.getLength()&&!f.getValue()&&this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),o=0;o<e.length;o++){var r=e[o];if(r.linked){var s=r.original,a=t.snippetManager.tmStrFormat(i,s,this.editor);n.replace(r,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=0;i<this.ranges.length;i++)if(!this.ranges[i].linked){var o=this.ranges[i].contains(e.row,e.column),r=n||this.ranges[i].contains(t.row,t.column);if(o&&r)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var i=this.editor.multiSelect;i.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||i.addRange(t[o].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},this.addTabstops=function(e,t,n){var i=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=l.fromPoints(n,n);b(o.start,t),b(o.end,t),e[0]=[o],e[0].index=0}var r=this.index,s=[r+1,0],a=this.ranges;e.forEach((function(e,n){for(var o=this.$openTabstops[n]||e,r=0;r<e.length;r++){var d=e[r],u=l.fromPoints(d.start,d.end||d.start);m(u.start,t),m(u.end,t),u.original=d,u.tabstop=o,a.push(u),o!=e?o.unshift(u):o[r]=u,d.fmtString||o.firstNonLinked&&i?(u.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=u)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(s.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o),o.rangeList=o.rangeList||new c,o.rangeList.$bias=0,o.rangeList.addList(o)}),this),s.length>2&&(this.tabstops.length&&s.push(s.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,s))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),-1!=t&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),-1!=t&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new d,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(g.prototype);var m=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},b=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};o.importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}","snippets.css",!1),t.snippetManager=new p;var v=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(v.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,r=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),c=function(e){var t=new i(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},d=function(e){var t=l.createElement("div"),n=new c(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),u.start.row=u.end.row=t.row,e.stop()}));var o,d=new r(-1,0,-1,1/0),u=new r(-1,0,-1,1/0);u.id=n.session.addMarker(u,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?d.id&&(n.session.removeMarker(d.id),d.id=null):d.id=n.session.addMarker(d,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(o){if(o.x!=e.x||o.y!=e.y){o=e,o.scrollTop=n.renderer.scrollTop;var t=o.getDocumentPosition().row;d.start.row!=t&&(d.id||n.setRow(t),f(t))}}else o=e})),n.renderer.on("beforeRender",(function(){if(o&&-1!=d.start.row){o.$pos=null;var e=o.getDocumentPosition().row;d.id||n.setRow(e),f(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow];i!==t.selectedNode&&t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=i,i&&l.addCssClass(i,"ace_selected")}));var h=function(){f(-1)},f=function(e,t){e!==d.start.row&&(d.start.row=d.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return d.start.row},s.addListener(n.container,"mouseout",h),n.on("hide",h),n.on("changeSelection",h),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var p=n.session.bgTokenizer;return p.$tokenizeRow=function(e){function t(e,t){e&&o.push({type:(i.className||"")+(t||""),value:e})}var i=n.data[e],o=[];if(!i)return o;"string"==typeof i&&(i={value:i});for(var r=i.caption||i.value||i.name,s=r.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,c=0,d=0;d<=a.length;d++)if(d!=c&&(i.matchMask&1<<d||d==a.length)){var u=a.slice(c,d);c=d;var h=s.indexOf(u,l);if(-1==h)continue;t(r.slice(l,h),""),l=h+u.length,t(r.slice(h,l),"completion-highlight")}return t(r.slice(l,r.length),""),i.meta&&o.push({type:"completion-meta",value:i.meta}),i.message&&o.push({type:"completion-message",value:i.message}),o},p.$updateOnChange=i,p.start=i,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return u.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),u.start.row!=e&&(n.selection.clearSelection(),u.start.row=u.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,i){var r=this.container,s=window.innerHeight,a=window.innerWidth,l=this.renderer,c=l.$maxLines*t*1.4,d=e.top+this.$borderSize,u=d>s/2&&!i;u&&d+t+c>s?(l.$maxPixelHeight=d-2*this.$borderSize,r.style.top="",r.style.bottom=s-d+"px",n.isTopdown=!1):(d+=t,l.$maxPixelHeight=s-d-.2*t,r.style.top=d+"px",r.style.bottom="",n.isTopdown=!0),r.style.display="";var h=e.left;h+r.offsetWidth>a&&(h=a-r.offsetWidth),r.style.left=h+"px",this._signal("show"),o=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css",!1),t.AcePopup=d,t.$singleLineEditor=c})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r<o;r++)t(e[r],(function(e,t){i++,i===o&&n(e,t)}))};var i=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||i;for(var o=[],r=t-1;r>=0;r--){if(!n.test(e[r]))break;o.push(e[r])}return o.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||i;for(var o=[],r=t;r<e.length;r++){if(!n.test(e[r]))break;o.push(e[r])}return o},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],(function(e,t,n){"use strict";var i=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,r=e("./autocomplete/util"),s=e("./lib/lang"),a=e("./lib/dom"),l=e("./snippets").snippetManager,c=e("./config"),d=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=s.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var o=i.layerConfig.lineHeight,r=i.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();r.top+=s.top-i.layerConfig.offset,r.left+=s.left-e.renderer.scrollLeft,r.left+=i.gutterWidth,this.popup.show(r,o)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t!=n&&t.parentNode!=o&&!i&&t!=this.tooltipNode&&e.relatedTarget!=n&&this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;var n=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(n.filterText)for(var i,o=this.editor.selection.getAllRanges(),r=0;i=o[r];r++)i.start.column-=n.filterText.length,this.editor.session.remove(i);e.snippet?l.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.completions==n&&this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),i=e.getCursorPosition(),o=r.getCompletionPrefix(e);this.base=n.doc.createAnchor(i.row,i.column-o.length),this.base.$insertRight=!0;var s=[],a=e.completers.length;return e.completers.forEach((function(l,c){l.getCompletions(e,n,i,o,(function(n,i){!n&&i&&(s=s.concat(i)),t(null,{prefix:r.getCompletionPrefix(e),matches:s,finished:0===--a})}))})),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition(),i=this.editor.session.getTextRange({start:this.base,end:n});if(i==this.completions.filterText)return;return this.completions.setFilter(i),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=i||this.completions.filtered[0].snippet?void this.openPopup(this.editor,i,e):this.detach():this.detach()}if(t&&t.matches){n=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new u(t.matches),this.openPopup(this.editor,"",e)}var o=this.gatherCompletionsId,r=function(e){if(e.finished)return this.detach()}.bind(this),s=function(t){var n=t.prefix,i=t.matches;this.completions=new u(i),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(n);var o=this.completions.filtered;return o.length&&(1!=o.length||o[0].value!=n||o[0].snippet)?this.autoInsert&&1==o.length&&t.finished?this.insertMatch(o[0]):void this.openPopup(this.editor,n,e):r(t)}.bind(this),a=!0,l=null;if(this.gatherCompletions(this.editor,function(e,t){var n=t.prefix,i=t&&t.matches;if(!i||!i.length)return r(t);0===n.indexOf(t.prefix)&&o==this.gatherCompletionsId&&(a?l=t:s(t))}.bind(this)),a=!1,l){var c=l;l=null,s(c)}},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i})),!i&&"string"!=typeof n&&(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display="block",window.innerWidth-i.right<320?i.left<320?n.isTopdown?(t.style.top=i.bottom+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.top=n.container.offsetTop-t.offsetHeight+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==e&&this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){var t=e.target;while(t&&t!=this.tooltipNode){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer,this.popup=null}}).call(d.prototype),d.for=function(e){return e.completer||(c.get("sharedPopups")?(d.$shared||(d.$sharedInstance=new d),e.completer=d.$sharedInstance):(e.completer=new d,e.once("destroy",(function(e,t){t.completer.destroy()})))),e.completer},d.startCommand={name:"startAutocomplete",exec:function(e,t){var n=d.for(e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e[s];s++){var a=r.caption||r.value||r.snippet;if(a){var l,c,d=-1,u=0,h=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var f=a.toLowerCase().indexOf(o);if(f>-1)h=f;else for(var p=0;p<t.length;p++){var g=a.indexOf(o[p],d+1),m=a.indexOf(i[p],d+1);if(l=g>=0&&(m<0||g<m)?g:m,l<0)continue e;c=l-d-1,c>0&&(-1===d&&(h+=10),h+=c,u|=1<<p),d=l}}r.matchMask=u,r.exactMatch=h?0:1,r.$score=(r.score||0)-h,n.push(r)}}return n}}).call(u.prototype),t.Autocomplete=d,t.FilteredList=u})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){function i(e,t){var n=e.getTextRange(r.fromPoints({row:0,column:0},t));return n.split(s).length-1}function o(e,t){var n=i(e,t),o=e.getValue().split(s),r=Object.create(null),a=o[n];return o.forEach((function(e,t){if(e&&e!==a){var i=Math.abs(n-t),s=o.length-i;r[e]?r[e]=Math.max(s,r[e]):r[e]=s}})),r}var r=e("../range").Range,s=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;t.getCompletions=function(e,t,n,i,r){var s=o(t,n),a=Object.keys(s);r(null,a.map((function(e){return{caption:e,value:e,score:s[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var i=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,r=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(e,t,n,i,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,o);var r=e.session.getState(n.row),s=t.$mode.getCompletions(r,t,n,i);o(null,s)}},d={getCompletions:function(e,t,n,o,r){var s=[],a=t.getTokenAt(n.row,n.column);a&&a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?s.push("html-tag"):s=i.getActiveScopes(e);var l=i.snippetMap,c=[];s.forEach((function(e){for(var t=l[e]||[],n=t.length;n--;){var i=t[n],o=i.name||i.tabTrigger;o&&c.push({caption:o,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),r(null,c)},getDocTooltip:function(e){"snippet"==e.type&&!e.docHTML&&(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML(e.snippet)].join(""))}},u=[d,l,c];t.setCompleters=function(e){u.length=0,e&&u.push.apply(u,e)},t.addCompleter=function(e){u.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=d;var h={name:"expandSnippet",exec:function(e){return i.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){p(t.session.$mode)},p=function(e){"string"==typeof e&&(e=r.$modes[e]),e&&(i.files||(i.files={}),g(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(p))},g=function(e,t){t&&e&&!i.files[e]&&(i.files[e]={},r.loadModule(t,(function(t){t&&(i.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=i.parseSnippetFile(t.snippetText)),i.register(t.snippets||[],t.scope),t.includeScopes&&(i.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){p("ace/mode/"+e)}))))})))},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){var i=a.getCompletionPrefix(t);if(i&&!n){var r=o.for(t);r.autoInsert=!1,r.showPopup(t)}}},b=e("../editor").Editor;e("../config").defineOptions(b.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(h),this.on("changeMode",f),f(null,this)):(this.commands.removeCommand(h),this.off("changeMode",f))},value:!1}})})),function(){ace.require(["ace/ext/language_tools"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"03f8":function(e,t,n){"use strict";n("35ac")},"04d1":function(e,t,n){var i=n("342f"),o=i.match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},"057f":function(e,t,n){var i=n("c6b6"),o=n("fc6a"),r=n("241c").f,s=n("4dae"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return r(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"==i(e)?l(e):r(o(e))}},"05af":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{rules:e.nameRequiredRule}},[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.uniqueName"))+" "),n("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.editNameHelp")}},[n("i",{staticClass:"el-icon-info"})])],1),e.selectedWidget.category?[n("el-input",{attrs:{type:"text"},on:{change:e.updateWidgetNameAndRef},model:{value:e.optionModel.name,callback:function(t){e.$set(e.optionModel,"name",t)},expression:"optionModel.name"}})]:[n("el-select",{attrs:{"allow-create":"",filterable:"",title:e.i18nt("designer.setting.editNameHelp")},on:{change:e.updateWidgetNameAndRef},model:{value:e.optionModel.name,callback:function(t){e.$set(e.optionModel,"name",t)},expression:"optionModel.name"}},e._l(e.serverFieldList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.name}})})),1)]],2)},o=[],r=(n("b0c0"),n("79fa")),s=n("ca00"),a={name:"name-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},inject:["serverFieldList"],data:function(){return{nameRequiredRule:[{required:!0,message:"name required"}]}},methods:{updateWidgetNameAndRef:function(e){var t=this.designer.selectedWidgetName;if(Object(s["h"])(e))return this.selectedWidget.options.name=t,void this.$message.info(this.i18nt("designer.hint.nameRequired"));if(this.designer.formWidget){var n=this.designer.formWidget.getWidgetRef(e);if(n)return this.selectedWidget.options.name=t,void this.$message.info(this.i18nt("designer.hint.duplicateName")+e);var i=this.designer.formWidget.getWidgetRef(t);if(i&&i.registerToRefList){i.registerToRefList(t);var o=this.getLabelByFieldName(e);this.designer.updateSelectedWidgetNameAndRef(this.selectedWidget,e,o)}}},getLabelByFieldName:function(e){for(var t=0;t<this.serverFieldList.length;t++)if(this.serverFieldList[t].name===e)return this.serverFieldList[t].label;return null}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"3d8043e6",null);t["default"]=d.exports},"0654":function(e,t,n){var i={"./allowCreate-editor.vue":"fe5d","./appendButton-editor.vue":"ab136","./appendButtonDisabled-editor.vue":"dca8","./automaticDropdown-editor.vue":"30ac","./border-editor.vue":"131c","./buttonIcon-editor.vue":"7ceb","./buttonStyle-editor.vue":"22a7","./clearable-editor.vue":"1e67","./columnWidth-editor.vue":"f388","./container-grid-col/grid-col-offset-editor.vue":"329d","./container-grid-col/grid-col-pull-editor.vue":"ce37","./container-grid-col/grid-col-push-editor.vue":"fa85","./container-grid-col/grid-col-responsive-editor.vue":"c3f1","./container-grid-col/grid-col-span-editor.vue":"ffcf","./container-grid/colHeight-editor.vue":"6732","./container-grid/gutter-editor.vue":"e447","./container-sub-form/showBlankRow-editor.vue":"b6b9","./container-sub-form/showRowNumber-editor.vue":"2b47","./container-sub-form/sub-form-labelAlign-editor.vue":"3e10","./container-tab/tab-customClass-editor.vue":"d2d9","./container-table-cell/cellHeight-editor.vue":"fcbf","./container-table-cell/cellWidth-editor.vue":"5674","./customClass-editor.vue":"cc78","./defaultValue-editor.vue":"c610","./disabled-editor.vue":"87ca","./displayStyle-editor.vue":"7c77","./editable-editor.vue":"a867","./endPlaceholder-editor.vue":"df90","./event-handler/onBeforeUpload-editor.vue":"839e","./event-handler/onBlur-editor.vue":"4e3d","./event-handler/onChange-editor.vue":"6c26","./event-handler/onClick-editor.vue":"93b5","./event-handler/onCreated-editor.vue":"b90a","./event-handler/onFocus-editor.vue":"f4a6","./event-handler/onInput-editor.vue":"8029","./event-handler/onMounted-editor.vue":"b46f","./event-handler/onRemoteQuery-editor.vue":"955b","./event-handler/onSubFormRowAdd-editor.vue":"c67a","./event-handler/onSubFormRowChange-editor.vue":"1973","./event-handler/onSubFormRowDelete-editor.vue":"d773","./event-handler/onSubFormRowInsert-editor.vue":"c3f8","./event-handler/onUploadError-editor.vue":"3f28","./event-handler/onUploadSuccess-editor.vue":"7331","./event-handler/onValidate-editor.vue":"e072","./field-button/button-type-editor.vue":"61e5","./field-button/circle-editor.vue":"6f49","./field-button/icon-editor.vue":"bc16","./field-button/plain-editor.vue":"8299","./field-button/round-editor.vue":"5905","./field-color/color-defaultValue-editor.vue":"bae2","./field-date-range/date-range-defaultValue-editor.vue":"79ad","./field-date-range/date-range-format-editor.vue":"4e94","./field-date-range/date-range-type-editor.vue":"feea","./field-date-range/date-range-valueFormat-editor.vue":"4be5","./field-date/date-defaultValue-editor.vue":"6c62","./field-date/date-format-editor.vue":"109b","./field-date/date-type-editor.vue":"cc5f","./field-date/date-valueFormat-editor.vue":"6656","./field-divider/contentPosition-editor.vue":"35c2","./field-file-upload/file-upload-fileTypes-editor.vue":"f584","./field-html-text/htmlContent-editor.vue":"df12","./field-number/controlsPosition-editor.vue":"54d3","./field-picture-upload/picture-upload-fileTypes-editor.vue":"2305","./field-rate/allowHalf-editor.vue":"b674","./field-rate/highThreshold-editor.vue":"91df","./field-rate/lowThreshold-editor.vue":"fc8b","./field-rate/rate-defaultValue-editor.vue":"653d","./field-rate/rate-max-editor.vue":"3bc5","./field-rate/showScore-editor.vue":"28ed","./field-rate/showText-editor.vue":"44fb","./field-slider/range-editor.vue":"9dcd","./field-slider/showStops-editor.vue":"d3eb","./field-slider/vertical-editor.vue":"cbdd","./field-static-text/textContent-editor.vue":"b2b6","./field-switch/activeColor-editor.vue":"0a43","./field-switch/activeText-editor.vue":"e96c","./field-switch/inactiveColor-editor.vue":"1795","./field-switch/inactiveText-editor.vue":"31ab","./field-switch/switch-defaultValue-editor.vue":"e0b7","./field-switch/switchWidth-editor.vue":"663b","./field-time-range/time-range-defaultValue-editor.vue":"b302","./field-time-range/time-range-format-editor.vue":"a979","./field-time/time-defaultValue-editor.vue":"028e","./field-time/time-format-editor.vue":"7de6","./fileMaxSize-editor.vue":"9b00","./filterable-editor.vue":"6caf","./hidden-editor.vue":"2c6d","./label-editor.vue":"c061","./labelAlign-editor.vue":"8aa9","./labelHidden-editor.vue":"36f6","./labelIconClass-editor.vue":"732a","./labelIconPosition-editor.vue":"9000","./labelTooltip-editor.vue":"f319","./labelWidth-editor.vue":"e801","./limit-editor.vue":"2dc5","./max-editor.vue":"ff09","./maxLength-editor.vue":"e090","./min-editor.vue":"a982","./minLength-editor.vue":"791d","./multiple-editor.vue":"e86f","./multipleLimit-editor.vue":"0353","./multipleSelect-editor.vue":"aa43","./name-editor.vue":"05af","./optionItems-editor.vue":"5ce3","./placeholder-editor.vue":"4595","./precision-editor.vue":"ff66","./prefixIcon-editor.vue":"16f3","./readonly-editor.vue":"a0f1","./remote-editor.vue":"5112","./required-editor.vue":"6038","./rows-editor.vue":"54cf","./showFileList-editor.vue":"401c","./showPassword-editor.vue":"a4ae","./showWordLimit-editor.vue":"8f6d","./size-editor.vue":"0085","./startPlaceholder-editor.vue":"c6d2","./step-editor.vue":"566c","./suffixIcon-editor.vue":"6873","./type-editor.vue":"9164","./uploadTip-editor.vue":"a2c6","./uploadURL-editor.vue":"31b7","./validation-editor.vue":"65d0","./validationHint-editor.vue":"99c0","./withCredentials-editor.vue":"d741"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="0654"},"06cf":function(e,t,n){var i=n("83ab"),o=n("c65b"),r=n("d1e7"),s=n("5c6c"),a=n("fc6a"),l=n("a04b"),c=n("1a2d"),d=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=l(t),d)try{return u(e,t)}catch(n){}if(c(e,t))return s(!o(r.f,e,t),e[t])}},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"07fa":function(e,t,n){var i=n("50c4");e.exports=function(e){return i(e.length)}},"090f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("div",{ref:"fieldEditor",domProps:{innerHTML:e._s(e.field.options.htmlContent)}})])},o=[],r=(n("a9e3"),n("828b")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"html-text-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("60a6"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"e803db62",null);t["default"]=f.exports},"0a06":function(e,t,n){"use strict";var i=n("c532"),o=n("30b5"),r=n("f6b4"),s=n("5270"),a=n("4a7b"),l=n("848b"),c=l.validators;function d(e){this.defaults=e,this.interceptors={request:new r,response:new r}}d.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,r=[];if(this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)})),!i){var d=[s,void 0];Array.prototype.unshift.apply(d,n),d=d.concat(r),o=Promise.resolve(e);while(d.length)o=o.then(d.shift(),d.shift());return o}var u=e;while(n.length){var h=n.shift(),f=n.shift();try{u=h(u)}catch(p){f(p);break}}try{o=s(u)}catch(p){return Promise.reject(p)}while(r.length)o=o.then(r.shift(),r.shift());return o},d.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,i){return this.request(a(i||{},{method:e,url:t,data:n}))}})),e.exports=d},"0a2b":function(e,t,n){"use strict";n("3544")},"0a43":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.activeColor")}},[n("el-color-picker",{model:{value:e.optionModel.activeColor,callback:function(t){e.$set(e.optionModel,"activeColor",t)},expression:"optionModel.activeColor"}})],1)},o=[],r=n("79fa"),s={name:"activeColor-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"01693e0b",null);t["default"]=c.exports},"0b25":function(e,t,n){var i=n("da84"),o=n("5926"),r=n("50c4"),s=i.RangeError;e.exports=function(e){if(void 0===e)return 0;var t=o(e),n=r(t);if(t!==n)throw s("Wrong length or index");return n}},"0b42":function(e,t,n){var i=n("da84"),o=n("e8b5"),r=n("68ee"),s=n("861d"),a=n("b622"),l=a("species"),c=i.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,r(t)&&(t===c||o(t.prototype))?t=void 0:s(t)&&(t=t[l],null===t&&(t=void 0))),void 0===t?c:t}},"0c47":function(e,t,n){var i=n("da84"),o=n("d44e");o(i.JSON,"JSON",!0)},"0cb2":function(e,t,n){var i=n("e330"),o=n("7b0b"),r=Math.floor,s=i("".charAt),a=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,u,h){var f=n+e.length,p=i.length,g=d;return void 0!==u&&(u=o(u),g=c),a(h,g,(function(o,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=u[l(a,1,-1)];break;default:var d=+a;if(0===d)return o;if(d>p){var h=r(d/10);return 0===h?o:h<=p?void 0===i[h-1]?s(a,1):i[h-1]+s(a,1):o}c=i[d-1]}return void 0===c?"":c}))}},"0cdf":function(e,t,n){},"0cfb":function(e,t,n){var i=n("83ab"),o=n("d039"),r=n("cc12");e.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,n){var i=n("da84"),o=i.String;e.exports=function(e){try{return o(e)}catch(t){return"Object"}}},"0dee":function(e,t,n){"use strict";n("36c7")},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f59":function(e,t,n){},"107a":function(e,t,n){},"107c":function(e,t,n){var i=n("d039"),o=n("da84"),r=o.RegExp;e.exports=i((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"109b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.format")}},[n("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.format,callback:function(t){e.$set(e.optionModel,"format",t)},expression:"optionModel.format"}},[n("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),n("el-option",{attrs:{label:"yyyy/MM/dd",value:"yyyy/MM/dd"}}),n("el-option",{attrs:{label:"yyyy年MM月dd日",value:"yyyy年MM月dd日"}}),n("el-option",{attrs:{label:"yyyy-MM-dd HH:mm:ss",value:"yyyy-MM-dd HH:mm:ss"}}),n("el-option",{attrs:{label:"yyyy-MM-dd hh:mm:ss",value:"yyyy-MM-dd hh:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-format-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"095e5f5d",null);t["default"]=c.exports},"10ae":function(e,t,n){var i={"./container-item-wrapper.vue":"90c2","./grid-col-item.vue":"a93f","./grid-item.vue":"f746","./sub-form-item.vue":"efdc","./tab-item.vue":"c9d4","./table-cell-item.vue":"6a79","./table-item.vue":"8921"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="10ae"},"117f":function(e,t,n){},1276:function(e,t,n){"use strict";var i=n("2ba4"),o=n("c65b"),r=n("e330"),s=n("d784"),a=n("44e7"),l=n("825a"),c=n("1d80"),d=n("4840"),u=n("8aa5"),h=n("50c4"),f=n("577e"),p=n("dc4a"),g=n("4dae"),m=n("14c3"),b=n("9263"),v=n("9f7f"),w=n("d039"),y=v.UNSUPPORTED_Y,x=4294967295,_=Math.min,C=[].push,S=r(/./.exec),k=r(C),M=r("".slice),E=!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));s("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=f(c(this)),s=void 0===n?x:n>>>0;if(0===s)return[];if(void 0===e)return[r];if(!a(e))return o(t,r,e,s);var l,d,u,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,p+"g");while(l=o(b,v,r)){if(d=v.lastIndex,d>m&&(k(h,M(r,m,l.index)),l.length>1&&l.index<r.length&&i(C,h,g(l,1)),u=l[0].length,m=d,h.length>=s))break;v.lastIndex===l.index&&v.lastIndex++}return m===r.length?!u&&S(v,"")||k(h,""):k(h,M(r,m)),h.length>s?g(h,0,s):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var i=c(this),s=void 0==t?void 0:p(t,e);return s?o(s,t,i,n):o(r,f(i),t,n)},function(e,i){var o=l(this),s=f(e),a=n(r,o,s,i,r!==t);if(a.done)return a.value;var c=d(o,RegExp),p=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(y?"g":"y"),b=new c(y?"^(?:"+o.source+")":o,g),v=void 0===i?x:i>>>0;if(0===v)return[];if(0===s.length)return null===m(b,s)?[s]:[];var w=0,C=0,S=[];while(C<s.length){b.lastIndex=y?0:C;var E,$=m(b,y?M(s,C):s);if(null===$||(E=_(h(b.lastIndex+(y?C:0)),s.length))===w)C=u(s,C,p);else{if(k(S,M(s,w,C)),S.length===v)return S;for(var L=1;L<=$.length-1;L++)if(k(S,$[L]),S.length===v)return S;C=w=E}}return k(S,M(s,w)),S}]}),!E,y)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"12b5":function(e,t,n){},1309:function(e,t,n){},"131c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.border")}},[n("el-checkbox",{model:{value:e.optionModel.border,callback:function(t){e.$set(e.optionModel,"border",t)},expression:"optionModel.border"}})],1)},o=[],r=n("79fa"),s={name:"border-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"cf62842a",null);t["default"]=c.exports},1448:function(e,t,n){var i=n("dfb9"),o=n("b6b7");e.exports=function(e,t){return i(o(e),t)}},"145e":function(e,t,n){"use strict";var i=n("7b0b"),o=n("23cb"),r=n("07fa"),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),a=r(n),l=o(e,a),c=o(t,a),d=arguments.length>2?arguments[2]:void 0,u=s((void 0===d?a:o(d,a))-c,a-l),h=1;c<l&&l<c+u&&(h=-1,c+=u-1,l+=u-1);while(u-- >0)c in n?n[l]=n[c]:delete n[l],l+=h,c+=h;return n}},"14c3":function(e,t,n){var i=n("da84"),o=n("c65b"),r=n("825a"),s=n("1626"),a=n("c6b6"),l=n("9263"),c=i.TypeError;e.exports=function(e,t){var n=e.exec;if(s(n)){var i=o(n,e,t);return null!==i&&r(i),i}if("RegExp"===a(e))return o(l,e,t);throw c("RegExp#exec called on incompatible receiver")}},1516:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{staticClass:"table-cell",class:[e.selected?"selected":"",e.customClass],style:{width:e.widget.options.cellWidth+"!important"||!1,height:e.widget.options.cellHeight+"!important"||!1},attrs:{colspan:e.widget.options.colspan||1,rowspan:e.widget.options.rowspan||1},on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("draggable",e._b({staticClass:"draggable-div",attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{end:function(t){return e.onTableDragEnd(t,e.widget.widgetList)},add:function(t){return e.onTableDragAdd(t,e.widget.widgetList)},update:e.onTableDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1),e.designer.selectedId===e.widget.id&&"table-cell"===e.widget.type?n("div",{staticClass:"table-cell-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget()}}}),n("el-dropdown",{attrs:{trigger:"click",size:"small"},on:{command:e.handleTableCellCommand}},[n("i",{staticClass:"el-icon-menu",attrs:{title:e.i18nt("designer.hint.cellSetting")}}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"insertLeftCol"}},[e._v(e._s(e.i18nt("designer.setting.insertColumnToLeft")))]),n("el-dropdown-item",{attrs:{command:"insertRightCol"}},[e._v(e._s(e.i18nt("designer.setting.insertColumnToRight")))]),n("el-dropdown-item",{attrs:{command:"insertAboveRow"}},[e._v(e._s(e.i18nt("designer.setting.insertRowAbove")))]),n("el-dropdown-item",{attrs:{command:"insertBelowRow"}},[e._v(e._s(e.i18nt("designer.setting.insertRowBelow")))]),n("el-dropdown-item",{attrs:{command:"mergeLeftCol",disabled:e.mergeLeftColDisabled,divided:""}},[e._v(e._s(e.i18nt("designer.setting.mergeLeftColumn")))]),n("el-dropdown-item",{attrs:{command:"mergeRightCol",disabled:e.mergeRightColDisabled}},[e._v(e._s(e.i18nt("designer.setting.mergeRightColumn")))]),n("el-dropdown-item",{attrs:{command:"mergeWholeRow",disabled:e.mergeWholeRowDisabled}},[e._v(e._s(e.i18nt("designer.setting.mergeEntireRow")))]),n("el-dropdown-item",{attrs:{command:"mergeAboveRow",disabled:e.mergeAboveRowDisabled,divided:""}},[e._v(e._s(e.i18nt("designer.setting.mergeRowAbove")))]),n("el-dropdown-item",{attrs:{command:"mergeBelowRow",disabled:e.mergeBelowRowDisabled}},[e._v(e._s(e.i18nt("designer.setting.mergeRowBelow")))]),n("el-dropdown-item",{attrs:{command:"mergeWholeCol",disabled:e.mergeWholeColDisabled}},[e._v(e._s(e.i18nt("designer.setting.mergeEntireColumn")))]),n("el-dropdown-item",{attrs:{command:"undoMergeRow",disabled:e.undoMergeRowDisabled,divided:""}},[e._v(e._s(e.i18nt("designer.setting.undoMergeRow")))]),n("el-dropdown-item",{attrs:{command:"undoMergeCol",disabled:e.undoMergeColDisabled}},[e._v(e._s(e.i18nt("designer.setting.undoMergeCol")))]),n("el-dropdown-item",{attrs:{command:"deleteWholeCol",disabled:e.deleteWholeColDisabled,divided:""}},[e._v(e._s(e.i18nt("designer.setting.deleteEntireCol")))]),n("el-dropdown-item",{attrs:{command:"deleteWholeRow",disabled:e.deleteWholeRowDisabled}},[e._v(e._s(e.i18nt("designer.setting.deleteEntireRow")))])],1)],1)],1):e._e(),e.designer.selectedId===e.widget.id&&"table-cell"===e.widget.type?n("div",{staticClass:"table-cell-handler"},[n("i",[e._v(e._s(e.i18nt("designer.widgetLabel."+e.widget.type)))])]):e._e()],1)},o=[],r=n("5530"),s=(n("a9e3"),n("b76a")),a=n.n(s),l=n("79fa"),c=n("c029"),d={name:"TableCellWidget",componentName:"TableCellWidget",mixins:[l["b"]],components:Object(r["a"])({Draggable:a.a},c["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,rowIndex:Number,colIndex:Number,rowLength:Number,colLength:Number,colArray:Array,rowArray:Array,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""},mergeLeftColDisabled:function(){return this.colIndex<=0||this.colArray[this.colIndex-1].options.rowspan!==this.widget.options.rowspan},mergeRightColDisabled:function(){var e=this.colIndex+this.widget.options.colspan;return this.colIndex>=this.colLength-1||e>this.colLength-1||this.colArray[e].options.rowspan!==this.widget.options.rowspan},mergeWholeRowDisabled:function(){return this.colLength<=1||this.colLength===this.widget.options.colspan},mergeAboveRowDisabled:function(){return this.rowIndex<=0||this.rowArray[this.rowIndex-1].cols[this.colIndex].options.colspan!==this.widget.options.colspan},mergeBelowRowDisabled:function(){var e=this.rowIndex+this.widget.options.rowspan;return this.rowIndex>=this.rowLength-1||e>this.rowLength-1||this.rowArray[e].cols[this.colIndex].options.colspan!==this.widget.options.colspan},mergeWholeColDisabled:function(){return this.rowLength<=1||this.rowLength===this.widget.options.rowspan},undoMergeColDisabled:function(){return this.widget.merged||this.widget.options.colspan<=1},undoMergeRowDisabled:function(){return this.widget.merged||this.widget.options.rowspan<=1},deleteWholeColDisabled:function(){return 1===this.colLength||this.widget.options.colspan===this.colLength},deleteWholeRowDisabled:function(){return 1===this.rowLength||this.widget.options.rowspan===this.rowLength}},watch:{},methods:{selectWidget:function(e){this.designer.setSelected(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},onTableDragEnd:function(e,t){},onTableDragAdd:function(e,t){var n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange()},onTableDragUpdate:function(){this.designer.emitHistoryChange()},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},handleTableCellCommand:function(e){"insertLeftCol"===e?this.insertLeftCol():"insertRightCol"===e?this.insertRightCol():"insertAboveRow"===e?this.insertAboveRow():"insertBelowRow"===e?this.insertBelowRow():"mergeLeftCol"===e?this.mergeLeftCol():"mergeRightCol"===e?this.mergeRightCol():"mergeWholeCol"===e?this.mergeWholeCol():"mergeAboveRow"===e?this.mergeAboveRow():"mergeBelowRow"===e?this.mergeBelowRow():"mergeWholeRow"===e?this.mergeWholeRow():"undoMergeCol"===e?this.undoMergeCol():"undoMergeRow"===e?this.undoMergeRow():"deleteWholeCol"===e?this.deleteWholeCol():"deleteWholeRow"===e&&this.deleteWholeRow()},insertLeftCol:function(){this.designer.insertTableCol(this.parentWidget,this.colIndex,this.rowIndex,!0)},insertRightCol:function(){this.designer.insertTableCol(this.parentWidget,this.colIndex,this.rowIndex,!1)},insertAboveRow:function(){this.designer.insertTableRow(this.parentWidget,this.rowIndex,this.rowIndex,this.colIndex,!0)},insertBelowRow:function(){this.designer.insertTableRow(this.parentWidget,this.rowIndex,this.rowIndex,this.colIndex,!1)},mergeLeftCol:function(){this.designer.mergeTableCol(this.rowArray,this.colArray,this.rowIndex,this.colIndex,!0,this.widget)},mergeRightCol:function(){this.designer.mergeTableCol(this.rowArray,this.colArray,this.rowIndex,this.colIndex,!1,this.widget)},mergeWholeRow:function(){this.designer.mergeTableWholeRow(this.rowArray,this.colArray,this.rowIndex,this.colIndex)},mergeAboveRow:function(){this.designer.mergeTableRow(this.rowArray,this.rowIndex,this.colIndex,!0,this.widget)},mergeBelowRow:function(){this.designer.mergeTableRow(this.rowArray,this.rowIndex,this.colIndex,!1,this.widget)},mergeWholeCol:function(){this.designer.mergeTableWholeCol(this.rowArray,this.colArray,this.rowIndex,this.colIndex)},undoMergeCol:function(){this.designer.undoMergeTableCol(this.rowArray,this.rowIndex,this.colIndex,this.widget.options.colspan,this.widget.options.rowspan)},undoMergeRow:function(){this.designer.undoMergeTableRow(this.rowArray,this.rowIndex,this.colIndex,this.widget.options.colspan,this.widget.options.rowspan)},deleteWholeCol:function(){this.designer.deleteTableWholeCol(this.rowArray,this.colIndex)},deleteWholeRow:function(){this.designer.deleteTableWholeRow(this.rowArray,this.rowIndex)}}},u=d,h=(n("547e"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"32b614af",null);t["default"]=f.exports},"159b":function(e,t,n){var i=n("da84"),o=n("fdbc"),r=n("785a"),s=n("17c2"),a=n("9112"),l=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in o)o[c]&&l(i[c]&&i[c].prototype);l(r)},"15c6":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-picture-upload-field",use:"icon-picture-upload-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-picture-upload-field"><defs><style type="text/css"></style></defs><path d="M896 1024 128 1024c-70.688 0-128-57.312-128-128L0 128c0-70.688 57.312-128 128-128l768 0c70.688 0 128 57.312 128 128l0 768C1024 966.688 966.688 1024 896 1024zM896 960c35.328 0 64-28.672 64-64l0-256.032-192-192-273.184 273.152L730.624 960 896 960zM64 896c0 35.328 28.672 64 64 64l512.032 0L318.24 638.208 64 865.952 64 896zM960 128c0-35.328-28.672-64-64-64L128 64C92.672 64 64 92.672 64 128l0 650.752L320 544l129.856 131.552L768 352l192 196.096L960 128zM256 384c-70.688 0-128-57.312-128-128s57.312-128 128-128 128 57.312 128 128S326.688 384 256 384zM256 192C220.672 192 192 220.672 192 256s28.672 64 64 64 64-28.672 64-64S291.328 192 256 192z" p-id="64598" /></symbol>'});s.a.add(a);t["default"]=a},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},"16f3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.prefixIcon")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.prefixIcon,callback:function(t){e.$set(e.optionModel,"prefixIcon",t)},expression:"optionModel.prefixIcon"}})],1)},o=[],r=n("79fa"),s={name:"prefixIcon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"28d62b7a",null);t["default"]=c.exports},"170b":function(e,t,n){"use strict";var i=n("ebb5"),o=n("50c4"),r=n("23cb"),s=n("b6b7"),a=i.aTypedArray,l=i.exportTypedArrayMethod;l("subarray",(function(e,t){var n=a(this),i=n.length,l=r(e,i),c=s(n);return new c(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,o((void 0===t?i:r(t,i))-l))}))},1795:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.inactiveColor")}},[n("el-color-picker",{model:{value:e.optionModel.inactiveColor,callback:function(t){e.$set(e.optionModel,"inactiveColor",t)},expression:"optionModel.inactiveColor"}})],1)},o=[],r=n("79fa"),s={name:"inactiveColor-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"03b49a61",null);t["default"]=c.exports},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,o=n("a640"),r=o("forEach");e.exports=r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var i=n("da84"),o=n("f8cd"),r=i.RangeError;e.exports=function(e,t){var n=o(e);if(n%t)throw r("Wrong offset");return n}},1895:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-switch-field",use:"icon-switch-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-switch-field"><defs><style type="text/css"></style></defs><path d="M692 792H332C182 792 62 672 62 522s120-270 270-270h360c150 0 270 120 270 270 0 147-120 270-270 270zM332 312c-117 0-210 93-210 210s93 210 210 210h360c117 0 210-93 210-210s-93-210-210-210H332z" p-id="48564" /><path d="M191 522a150 150 0 1 0 300 0 150 150 0 1 0-300 0z" p-id="48565" /></symbol>'});s.a.add(a);t["default"]=a},"18ba":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-redo",use:"icon-redo-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-redo"><defs><style type="text/css"></style></defs><path d="M412.081 346.3h443.415l-215.328-212.429c-18.973-18.973-18.973-46.064 0-65.038s44.325-19.884 63.381-0.83l291.385 284.591c18.973 18.973 18.973 44.159 0 63.132l-291.385 284.923c-18.973 18.973-44.325 18.973-63.381-0.083-18.973-18.973-18.973-43.91 0-62.883l215.328-208.534h-443.415c-177.3 0-314.335 138.359-314.335 309.364v44.325c0 25.354-16.074 44.325-41.425 44.325s-41.425-18.973-41.425-44.325v-44.325c0-221.709 169.181-392.213 397.185-392.213z" p-id="3522" /></symbol>'});s.a.add(a);t["default"]=a},1973:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowChange","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowChange",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowChange-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"7109dd9a",null);t["default"]=d.exports},"19aa":function(e,t,n){var i=n("da84"),o=n("3a9b"),r=i.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw r("Incorrect invocation")}},"1a2d":function(e,t,n){var i=n("e330"),o=n("7b0b"),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(o(e),t)}},"1a2e":function(e,t,n){"use strict";n("3d86")},"1bb7":function(e,t,n){(function(e){ace.define("ace/theme/sqlserver",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-sqlserver",t.cssText='.ace-sqlserver .ace_gutter {background: #ebebeb;color: #333;overflow: hidden;}.ace-sqlserver .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-sqlserver {background-color: #FFFFFF;color: black;}.ace-sqlserver .ace_identifier {color: black;}.ace-sqlserver .ace_keyword {color: #0000FF;}.ace-sqlserver .ace_numeric {color: black;}.ace-sqlserver .ace_storage {color: #11B7BE;}.ace-sqlserver .ace_keyword.ace_operator,.ace-sqlserver .ace_lparen,.ace-sqlserver .ace_rparen,.ace-sqlserver .ace_punctuation {color: #808080;}.ace-sqlserver .ace_set.ace_statement {color: #0000FF;text-decoration: underline;}.ace-sqlserver .ace_cursor {color: black;}.ace-sqlserver .ace_invisible {color: rgb(191, 191, 191);}.ace-sqlserver .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-sqlserver .ace_constant.ace_language {color: #979797;}.ace-sqlserver .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-sqlserver .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-sqlserver .ace_support.ace_function {color: #FF00FF;}.ace-sqlserver .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-sqlserver .ace_class {color: #008080;}.ace-sqlserver .ace_support.ace_other {color: #6D79DE;}.ace-sqlserver .ace_variable.ace_parameter {font-style: italic;color: #FD971F;}.ace-sqlserver .ace_comment {color: #008000;}.ace-sqlserver .ace_constant.ace_numeric {color: black;}.ace-sqlserver .ace_variable {color: rgb(49, 132, 149);}.ace-sqlserver .ace_xml-pe {color: rgb(104, 104, 91);}.ace-sqlserver .ace_support.ace_storedprocedure {color: #800000;}.ace-sqlserver .ace_heading {color: rgb(12, 7, 255);}.ace-sqlserver .ace_list {color: rgb(185, 6, 144);}.ace-sqlserver .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-sqlserver .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-sqlserver .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-sqlserver .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-sqlserver .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-sqlserver .ace_gutter-active-line {background-color: #dcdcdc;}.ace-sqlserver .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-sqlserver .ace_meta.ace_tag {color: #0000FF;}.ace-sqlserver .ace_string.ace_regex {color: #FF0000;}.ace-sqlserver .ace_string {color: #FF0000;}.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-sqlserver .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var i=e("../lib/dom");i.importCssString(t.cssText,t.cssClass,!1)})),function(){ace.require(["ace/theme/sqlserver"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c48":function(e,t,n){"use strict";n("d1de")},"1c7e":function(e,t,n){var i=n("b622"),o=i("iterator"),r=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},"1d42":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-time-field",use:"icon-time-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-time-field"><defs><style type="text/css"></style></defs><path d="M512 39.384615a472.615385 472.615385 0 1 0 472.615385 472.615385A472.615385 472.615385 0 0 0 512 39.384615z m0 866.461539a393.846154 393.846154 0 1 1 393.846154-393.846154 393.846154 393.846154 0 0 1-393.846154 393.846154z m75.854769-373.720616A77.154462 77.154462 0 0 0 590.769231 512a78.454154 78.454154 0 0 0-39.384616-67.859692V196.923077a39.384615 39.384615 0 0 0-78.76923 0v247.217231a78.336 78.336 0 0 0 59.549538 143.714461l70.144 70.144a39.384615 39.384615 0 0 0 55.689846-55.689846zM512 551.384615a39.384615 39.384615 0 1 1 39.384615-39.384615 39.384615 39.384615 0 0 1-39.384615 39.384615z m315.076923-78.76923a39.384615 39.384615 0 1 0 39.384615 39.384615 39.384615 39.384615 0 0 0-39.384615-39.384615zM196.923077 472.615385a39.384615 39.384615 0 1 0 39.384615 39.384615 39.384615 39.384615 0 0 0-39.384615-39.384615z m509.991385 234.299077a39.384615 39.384615 0 1 0 55.689846 0 39.384615 39.384615 0 0 0-55.689846 0z m-389.907693-389.907693a39.384615 39.384615 0 1 0-55.729231 0 39.384615 39.384615 0 0 0 55.808 0.039385zM512 787.692308a39.384615 39.384615 0 1 0 39.384615 39.384615 39.384615 39.384615 0 0 0-39.384615-39.384615z m-250.604308-80.777846a39.384615 39.384615 0 1 0 55.689846 0 39.384615 39.384615 0 0 0-55.689846-0.039385zM706.914462 261.395692a39.384615 39.384615 0 1 0 55.689846 0 39.384615 39.384615 0 0 0-55.689846-0.039384z" fill="#333333" p-id="45070" /></symbol>'});s.a.add(a);t["default"]=a},"1d80":function(e,t,n){var i=n("da84"),o=i.TypeError;e.exports=function(e){if(void 0==e)throw o("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),o=n("b622"),r=n("2d00"),s=o("species");e.exports=function(e){return r>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e67":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.clearable")}},[n("el-checkbox",{model:{value:e.optionModel.clearable,callback:function(t){e.$set(e.optionModel,"clearable",t)},expression:"optionModel.clearable"}})],1)},o=[],r=n("79fa"),s={name:"clearable-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7fc36687",null);t["default"]=c.exports},"20c0":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-time-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss",placeholder:e.field.options.placeholder||e.i18nt("render.hint.timePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"time-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("8343"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"bed938f6",null);t["default"]=f.exports},"20e0":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slot-component",use:"icon-slot-component-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slot-component"><defs><style type="text/css"></style></defs><path d="M512 102.4c-212.48 0-384 171.52-384 384s171.52 384 384 384 384-171.52 384-384-171.52-384-384-384z m25.6 716.8v-128c0-15.36-10.24-25.6-25.6-25.6s-25.6 10.24-25.6 25.6v128C322.56 806.4 192 675.84 179.2 512h128c15.36 0 25.6-10.24 25.6-25.6s-10.24-25.6-25.6-25.6h-128C192 296.96 322.56 166.4 486.4 156.16V281.6c0 15.36 10.24 25.6 25.6 25.6s25.6-10.24 25.6-25.6V156.16C701.44 168.96 832 299.52 844.8 460.8h-128c-15.36 0-25.6 10.24-25.6 25.6s10.24 25.6 25.6 25.6h128C832 675.84 701.44 806.4 537.6 819.2z" fill="#333333" p-id="71130" /></symbol>'});s.a.add(a);t["default"]=a},"219c":function(e,t,n){"use strict";var i=n("da84"),o=n("e330"),r=n("d039"),s=n("59ed"),a=n("addb"),l=n("ebb5"),c=n("04d1"),d=n("d998"),u=n("2d00"),h=n("512c"),f=i.Array,p=l.aTypedArray,g=l.exportTypedArrayMethod,m=i.Uint16Array,b=m&&o(m.prototype.sort),v=!!b&&!(r((function(){b(new m(2),null)}))&&r((function(){b(new m(2),{})}))),w=!!b&&!r((function(){if(u)return u<74;if(c)return c<67;if(d)return!0;if(h)return h<602;var e,t,n=new m(516),i=f(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,i[e]=e-2*t+3;for(b(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==i[e])return!0})),y=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};g("sort",(function(e){return void 0!==e&&s(e),w?b(this,e):a(p(this),y(e))}),!w||v)},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var o=i&&!0===i.clone;return o&&e(n)?r(t(n),n,i):n}function i(t,i,o){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,o):e(i)?s[a]=r(t[a],i,o):-1===t.indexOf(i)&&s.push(n(i,o))})),s}function o(t,i,o){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],o)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=r(t[a],i[a],o):s[a]=n(i[a],o)})),s}function r(e,t,r){var s=Array.isArray(t),a=r||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,r):n(t,r):o(e,t,r)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}))}));function i(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var o=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),r=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=o.svg,a=o.xlink,l={};l[s.name]=s.uri,l[a.name]=a.uri;var c,d=function(e,t){void 0===e&&(e="");var i=n(l,t||{}),o=r(i);return"<svg "+o+">"+e+"</svg>"},u=o.svg,h=o.xlink,f={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},c[u.name]=u.uri,c[h.name]=h.uri,c)},p=function(e){this.config=n(f,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,i=this.find(e.id);return i?(n[n.indexOf(i)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,i=this.find(e);return!!i&&(n.splice(n.indexOf(i),1),i.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return d(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var g=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var m=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},b=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return m(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),v={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},w=function(e){return Array.prototype.slice.call(e,0)},y={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},x=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},_=function(e){var t=[];return w(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},C=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,i){x(e,{oldUrl:i,newUrl:n})}))}])},k="linearGradient, radialGradient, pattern, mask, clipPath",M=function(e,t){return void 0===t&&(t=k),w(e.querySelectorAll("symbol")).forEach((function(e){w(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function E(e,t){var n=w(e).reduce((function(e,n){if(!n.attributes)return e;var i=w(n.attributes),o=t?i.filter(t):i;return e.concat(o)}),[]);return n}var $=o.xlink.uri,L="xlink:href",O=/[{}|\\\^\[\]`"<>]/g;function T(e){return e.replace(O,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function R(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(e,t,n){return w(e).forEach((function(e){var i=e.getAttribute(L);if(i&&0===i.indexOf(t)){var o=i.replace(t,n);e.setAttributeNS($,L,o)}})),e}var F,I=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],D=I.map((function(e){return"["+e+"]"})).join(","),j=function(e,t,n,i){var o=T(n),r=T(i),s=e.querySelectorAll(D),a=E(s,(function(e){var t=e.localName,n=e.value;return-1!==I.indexOf(t)&&-1!==n.indexOf("url("+o)}));a.forEach((function(e){return e.value=e.value.replace(new RegExp(R(o),"g"),r)})),A(t,o,r)},P={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},W=function(e){function t(t){var o=this;void 0===t&&(t={}),e.call(this,n(v,t));var r=i();this._emitter=r,this.node=null;var s=this,a=s.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");r.on(P.MOUNT,(function(){return o.updateUrls("#",l)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,c),a.locationChangeAngularEmitter&&S(a.locationChangeEvent),r.on(P.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&M(e)})),r.on(P.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&M(e.parentNode),(y.isIE()||y.isEdge())&&_(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=y.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,i=t.newUrl;this.updateUrls(n,i)},t.prototype.add=function(t){var n=this,i=e.prototype.add.call(this,t);return this.isMounted&&i&&(t.mount(n.node),this._emitter.emit(P.SYMBOL_MOUNT,t.node)),i},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e;return n.node=i,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(P.SYMBOL_MOUNT,e.node)})),w(i.querySelectorAll("symbol")).forEach((function(e){var t=b.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(P.MOUNT,i),i},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,i=e._emitter;n.forEach((function(e){return e.destroy()})),i.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e,o=n.render();return this.node=o,t&&i.childNodes[0]?i.insertBefore(o,i.childNodes[0]):i.appendChild(o),this._emitter.emit(P.MOUNT,o),o},t.prototype.render=function(){return m(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return j(this.node,n,C(e)+"#",C(t)+"#"),!0},Object.defineProperties(t.prototype,o),t}(p),N=e((function(e){
|
2
|
+
/*!
|
3
|
+
* domready (c) Dustin Diaz 2014 - License MIT
|
4
|
+
*/
|
5
|
+
!function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,i=n.documentElement.doScroll,o="DOMContentLoaded",r=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return r||n.addEventListener(o,e=function(){n.removeEventListener(o,e),r=1;while(e=t.shift())e()}),function(e){r?setTimeout(e,0):t.push(e)}}))})),H="__SVG_SPRITE_NODE__",B="__SVG_SPRITE__",V=!!window[B];V?F=window[B]:(F=new W({attrs:{id:H,"aria-hidden":"true"}}),window[B]=F);var z=function(){var e=document.getElementById(H);e?F.attach(e):F.mount(document.body,!0)};document.body?z():N(z);var U=F;return U}))}).call(this,n("c8ba"))},"21a6":function(e,t,n){(function(n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){l(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(i){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,t,n){var a=s.URL||s.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):o(l.href)?i(e,t,n):r(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(o(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){r(a)}))}}:function(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var r="application/octet-stream"===e.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&l||a)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},d.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,h=u.createObjectURL(e);o?o.location=h:location.href=h,o=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});s.saveAs=l.saveAs=l,e.exports=l}))}).call(this,n("c8ba"))},2266:function(e,t,n){var i=n("da84"),o=n("0366"),r=n("c65b"),s=n("825a"),a=n("0d51"),l=n("e95a"),c=n("07fa"),d=n("3a9b"),u=n("9a1f"),h=n("35a1"),f=n("2a62"),p=i.TypeError,g=function(e,t){this.stopped=e,this.result=t},m=g.prototype;e.exports=function(e,t,n){var i,b,v,w,y,x,_,C=n&&n.that,S=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),E=o(t,C),$=function(e){return i&&f(i,"normal",e),new g(!0,e)},L=function(e){return S?(s(e),M?E(e[0],e[1],$):E(e[0],e[1])):M?E(e,$):E(e)};if(k)i=e;else{if(b=h(e),!b)throw p(a(e)+" is not iterable");if(l(b)){for(v=0,w=c(e);w>v;v++)if(y=L(e[v]),y&&d(m,y))return y;return new g(!1)}i=u(e,b)}x=i.next;while(!(_=r(x,i)).done){try{y=L(_.value)}catch(O){f(i,"throw",O)}if("object"==typeof y&&y&&d(m,y))return y}return new g(!1)}},"22a7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.buttonStyle")}},[n("el-checkbox",{model:{value:e.optionModel.buttonStyle,callback:function(t){e.$set(e.optionModel,"buttonStyle",t)},expression:"optionModel.buttonStyle"}})],1)},o=[],r=n("79fa"),s={name:"buttonStyle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"250d10b7",null);t["default"]=c.exports},2305:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.fileTypes"))+" "),n("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.fileTypesHelp")}},[n("i",{staticClass:"el-icon-info"})])],1),n("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","allow-create":"",filterable:"","default-first-option":""},model:{value:e.optionModel.fileTypes,callback:function(t){e.$set(e.optionModel,"fileTypes",t)},expression:"optionModel.fileTypes"}},e._l(e.uploadPictureTypes,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"fileTypes-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{uploadPictureTypes:[{value:"jpeg",label:"JPG"},{value:"png",label:"PNG"},{value:"gif",label:"GIF"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5fd33e23",null);t["default"]=c.exports},"23cb":function(e,t,n){var i=n("5926"),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),o=n("06cf").f,r=n("9112"),s=n("6eeb"),a=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,d,u,h,f,p,g=e.target,m=e.global,b=e.stat;if(d=m?i:b?i[g]||a(g,{}):(i[g]||{}).prototype,d)for(u in t){if(f=t[u],e.noTargetGet?(p=o(d,u),h=p&&p.value):h=d[u],n=c(m?u:g+(b?".":"#")+u,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&r(f,"sham",!0),s(d,u,f,e)}}},"241c":function(e,t,n){var i=n("ca84"),o=n("7839"),r=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),o=n("c8af"),r=n("387f"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function c(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var d={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||o&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw r(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){d.headers[e]=i.merge(s)})),e.exports=d}).call(this,n("4362"))},2445:function(e,t,n){"use strict";n("e905")},2532:function(e,t,n){"use strict";var i=n("23e7"),o=n("e330"),r=n("5a34"),s=n("1d80"),a=n("577e"),l=n("ab13"),c=o("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(r(e)),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var i=n("ebb5"),o=n("d58f").right,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("reduceRight",(function(e){var t=arguments.length;return o(r(this),e,t,t>1?arguments[1]:void 0)}))},"25e2":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-radio-field",use:"icon-radio-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-radio-field"><defs><style type="text/css"></style></defs><path d="M512 65.983389c-245.919634 0-446.016611 200.095256-446.016611 446.016611 0 245.952318 200.064292 446.016611 446.016611 446.016611S958.016611 757.952318 958.016611 512C958.016611 266.080366 757.952318 65.983389 512 65.983389zM512 894.016611c-210.655557 0-382.016611-171.392017-382.016611-382.016611 0-210.655557 171.359333-382.016611 382.016611-382.016611 210.624593 0 382.016611 171.359333 382.016611 382.016611C894.016611 722.624593 722.624593 894.016611 512 894.016611zM512 352.00086c-88.223841 0-160.00086 71.775299-160.00086 159.99914s71.775299 160.00086 160.00086 160.00086 160.00086-71.775299 160.00086-160.00086S600.223841 352.00086 512 352.00086z" p-id="24993" /></symbol>'});s.a.add(a);t["default"]=a},"25f0":function(e,t,n){"use strict";var i=n("e330"),o=n("5e77").PROPER,r=n("6eeb"),s=n("825a"),a=n("3a9b"),l=n("577e"),c=n("d039"),d=n("ad6d"),u="toString",h=RegExp.prototype,f=h[u],p=i(d),g=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),m=o&&f.name!=u;(g||m)&&r(RegExp.prototype,u,(function(){var e=s(this),t=l(e.source),n=e.flags,i=l(void 0===n&&a(h,e)&&!("flags"in h)?p(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),o=n("9bf2"),r=n("b622"),s=n("83ab"),a=r("species");e.exports=function(e){var t=i(e),n=o.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},"27a8":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-date-field",use:"icon-date-field-usage",viewBox:"0 0 1132 1024",content:'<symbol class="icon" viewBox="0 0 1132 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-date-field"><defs><style type="text/css"></style></defs><path d="M1023.99488 1023.99488C1023.99488 1023.99488 107.788935 1023.99488 107.788935 1023.99488 48.262496 1023.99488 0 975.732384 0 916.205945 0 916.205945 0 350.314037 0 350.314037 0 350.314037 0 296.419571 0 296.419571 0 296.419571 0 188.630636 0 188.630636 0 129.104196 48.262496 80.841701 107.788935 80.841701 107.788935 80.841701 188.630636 80.841701 188.630636 80.841701 188.630636 80.841701 188.630636 134.736168 188.630636 134.736168 188.630636 134.736168 107.788935 134.736168 107.788935 134.736168 78.012242 134.736168 53.894468 158.853943 53.894468 188.630636 53.894468 188.630636 53.894468 296.419571 53.894468 296.419571 53.894468 296.419571 1077.889348 296.419571 1077.889348 296.419571 1077.889348 296.419571 1077.889348 188.630636 1077.889348 188.630636 1077.889348 158.853943 1053.771573 134.736168 1023.99488 134.736168 1023.99488 134.736168 943.153179 134.736168 943.153179 134.736168 943.153179 134.736168 943.153179 80.841701 943.153179 80.841701 943.153179 80.841701 1023.99488 80.841701 1023.99488 80.841701 1083.521319 80.841701 1131.783815 129.104196 1131.783815 188.630636 1131.783815 188.630636 1131.783815 296.419571 1131.783815 296.419571 1131.783815 296.419571 1131.783815 350.314037 1131.783815 350.314037 1131.783815 350.314037 1131.783815 916.205945 1131.783815 916.205945 1131.783815 975.732384 1083.521319 1023.99488 1023.99488 1023.99488ZM1077.889348 350.314037C1077.889348 350.314037 53.894468 350.314037 53.894468 350.314037 53.894468 350.314037 53.894468 916.205945 53.894468 916.205945 53.894468 945.982638 78.012242 970.100412 107.788935 970.100412 107.788935 970.100412 1023.99488 970.100412 1023.99488 970.100412 1053.771573 970.100412 1077.889348 945.982638 1077.889348 916.205945 1077.889348 916.205945 1077.889348 350.314037 1077.889348 350.314037ZM794.943393 628.086123C794.943393 628.086123 791.359411 633.718094 791.359411 633.718094 788.044902 640.023747 784.27229 645.871297 780.122415 651.449375 780.122415 651.449375 646.733608 861.476114 646.733608 861.476114 646.733608 861.476114 589.120422 861.476114 589.120422 861.476114 589.120422 861.476114 687.477826 700.601129 687.477826 700.601129 687.370037 700.601129 687.262248 700.628076 687.154459 700.628076 620.190583 700.628076 565.891908 640.29322 565.891908 565.891908 565.891908 491.490596 620.190583 431.155739 687.154459 431.155739 754.118334 431.155739 808.417011 491.490596 808.417011 565.891908 808.417011 588.312005 803.027564 609.142217 794.296661 627.735808 794.296661 627.735808 794.943393 628.086123 794.943393 628.086123ZM687.154459 485.050207C649.940329 485.050207 619.786375 521.240341 619.786375 565.891908 619.786375 610.543473 649.940329 646.733608 687.154459 646.733608 706.206153 646.733608 723.317646 637.16734 735.578638 621.915206 735.578638 621.915206 745.360484 605.908549 745.360484 605.908549 751.019403 594.078714 754.522543 580.524255 754.522543 565.891908 754.522543 521.240341 724.368589 485.050207 687.154459 485.050207ZM376.937904 506.93136C376.937904 506.93136 296.203993 579.257736 296.203993 579.257736 296.203993 579.257736 296.203993 512.266913 296.203993 512.266913 296.203993 512.266913 378.608633 431.856367 378.608633 431.856367 378.608633 431.856367 430.670689 431.856367 430.670689 431.856367 430.670689 431.856367 430.670689 861.583903 430.670689 861.583903 430.670689 861.583903 376.937904 861.583903 376.937904 861.583903 376.937904 861.583903 376.937904 506.93136 376.937904 506.93136ZM889.258712 215.577869C874.383839 215.577869 862.311477 203.505508 862.311477 188.630636 862.311477 188.630636 862.311477 26.947233 862.311477 26.947233 862.311477 12.072361 874.383839 0 889.258712 0 904.133584 0 916.205945 12.072361 916.205945 26.947233 916.205945 26.947233 916.205945 188.630636 916.205945 188.630636 916.205945 203.505508 904.133584 215.577869 889.258712 215.577869ZM296.419571 80.841701C296.419571 80.841701 835.364244 80.841701 835.364244 80.841701 835.364244 80.841701 835.364244 134.736168 835.364244 134.736168 835.364244 134.736168 296.419571 134.736168 296.419571 134.736168 296.419571 134.736168 296.419571 80.841701 296.419571 80.841701ZM242.525103 215.577869C227.65023 215.577869 215.577869 203.505508 215.577869 188.630636 215.577869 188.630636 215.577869 26.947233 215.577869 26.947233 215.577869 12.072361 227.65023 0 242.525103 0 257.399976 0 269.472337 12.072361 269.472337 26.947233 269.472337 26.947233 269.472337 188.630636 269.472337 188.630636 269.472337 203.505508 257.399976 215.577869 242.525103 215.577869Z" p-id="47756" /></symbol>'});s.a.add(a);t["default"]=a},2877:function(e,t,n){"use strict";function i(e,t,n,i,o,r,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},"28ed":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showScore")}},[n("el-checkbox",{model:{value:e.optionModel.showScore,callback:function(t){e.$set(e.optionModel,"showScore",t)},expression:"optionModel.showScore"}})],1)},o=[],r=n("79fa"),s={name:"showScore-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"84a4be5e",null);t["default"]=c.exports},"28f2":function(e,t,n){"use strict";n("5934")},2909:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e){if(Array.isArray(e))return i(e)}n.d(t,"a",(function(){return l}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("fb6a"),n("b0c0"),n("ac1f"),n("00b4");function s(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return o(e)||r(e)||s(e)||a()}},2954:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b6b7"),r=n("d039"),s=n("f36a"),a=i.aTypedArray,l=i.exportTypedArrayMethod,c=r((function(){new Int8Array(1).slice()}));l("slice",(function(e,t){var n=s(a(this),e,t),i=o(this),r=0,l=n.length,c=new i(l);while(l>r)c[r]=n[r++];return c}),c)},2962:function(e,t,n){e.exports=n.p+"img/t2.6991670f.png"},"2a62":function(e,t,n){var i=n("c65b"),o=n("825a"),r=n("dc4a");e.exports=function(e,t,n){var s,a;o(e);try{if(s=r(e,"return"),!s){if("throw"===t)throw n;return n}s=i(s,e)}catch(l){a=!0,s=l}if("throw"===t)throw n;if(a)throw s;return o(s),n}},"2a87":function(e,t,n){},"2b47":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showRowNumber")}},[n("el-checkbox",{model:{value:e.optionModel.showRowNumber,callback:function(t){e.$set(e.optionModel,"showRowNumber",t)},expression:"optionModel.showRowNumber"}})],1)},o=[],r=n("79fa"),s={name:"showRowNumber-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4e4c5cfd",null);t["default"]=c.exports},"2ba4":function(e,t){var n=Function.prototype,i=n.apply,o=n.bind,r=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?r.bind(i):function(){return r.apply(i,arguments)})},"2c3e":function(e,t,n){var i=n("da84"),o=n("83ab"),r=n("9f7f").MISSED_STICKY,s=n("c6b6"),a=n("9bf2").f,l=n("69f3").get,c=RegExp.prototype,d=i.TypeError;o&&r&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).sticky;throw d("Incompatible receiver, RegExp required")}}})},"2c6d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.hidden")}},[n("el-checkbox",{model:{value:e.optionModel.hidden,callback:function(t){e.$set(e.optionModel,"hidden",t)},expression:"optionModel.hidden"}})],1)},o=[],r=n("79fa"),s={name:"hidden-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"15b69ba2",null);t["default"]=c.exports},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),o=n("e330"),r=n("06cf").f,s=n("50c4"),a=n("577e"),l=n("5a34"),c=n("1d80"),d=n("ab13"),u=n("c430"),h=o("".startsWith),f=o("".slice),p=Math.min,g=d("startsWith"),m=!u&&!g&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(e){var t=a(c(this));l(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),i=a(e);return h?h(t,i,n):f(t,n,n+i.length)===i}})},"2d00":function(e,t,n){var i,o,r=n("da84"),s=n("342f"),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,d=c&&c.v8;d&&(i=d.split("."),o=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(o=+i[1]))),e.exports=o},"2d11":function(e,t,n){"use strict";n("b0c0"),n("a434"),n("d3b7"),n("159b");var i=n("ca00"),o=n("a00a");t["a"]={inject:["refList","formConfig","globalOptionData","globalModel","getOptionData"],computed:{subFormName:function(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag:function(){return!!this.parentWidget&&"sub-form"===this.parentWidget.type},formModel:{cache:!1,get:function(){return this.globalModel.formModel}}},methods:{initFieldModel:function(){var e=this;if(!1!==this.field.formItemFlag){if(this.subFormItemFlag&&!this.designState){var t=this.formModel[this.subFormName];return void 0!==t&&void 0!==t[this.subFormRowIndex]&&void 0!==t[this.subFormRowIndex][this.field.options.name]||void 0===this.field.options.defaultValue?void 0===t[this.subFormRowIndex][this.field.options.name]?(this.fieldModel=null,t[this.subFormRowIndex][this.field.options.name]=null):this.fieldModel=t[this.subFormRowIndex][this.field.options.name]:(this.fieldModel=this.field.options.defaultValue,t[this.subFormRowIndex][this.field.options.name]=this.field.options.defaultValue),setTimeout((function(){e.handleOnChangeForSubForm(e.fieldModel,e.oldFieldValue,t,e.subFormRowId)}),800),this.oldFieldValue=Object(i["c"])(this.fieldModel),void this.initFileList()}void 0===this.formModel[this.field.options.name]&&void 0!==this.field.options.defaultValue?this.fieldModel=this.field.options.defaultValue:void 0===this.formModel[this.field.options.name]?this.formModel[this.field.options.name]=null:this.fieldModel=this.formModel[this.field.options.name],this.oldFieldValue=Object(i["c"])(this.fieldModel),this.initFileList()}},initFileList:function(){"picture-upload"!==this.field.type&&"file-upload"!==this.field.type||!0===this.designState||this.fieldModel&&(Array.isArray(this.fieldModel)?this.fileList=Object(i["c"])(this.fieldModel):this.fileList.splice(0,0,Object(i["c"])(this.fieldModel)))},initEventHandler:function(){this.$on("setFormData",(function(e){console.log("formModel of globalModel----------",this.globalModel.formModel),this.subFormItemFlag||this.setValue(e[this.field.options.name])})),this.$on("field-value-changed",(function(e){if(this.subFormItemFlag){var t=this.formModel[this.subFormName];this.handleOnChangeForSubForm(e[0],e[1],t,this.subFormRowId)}else this.handleOnChange(e[0],e[1])})),this.$on("reloadOptionItems",(function(e){(0===e.length||e.indexOf(this.field.options.name)>-1)&&this.initOptionItems(!0)}))},handleOnCreated:function(){if(this.field.options.onCreated){var e=new Function(this.field.options.onCreated);e.call(this)}},handleOnMounted:function(){if(this.field.options.onMounted){var e=new Function(this.field.options.onMounted);e.call(this)}},registerToRefList:function(e){null!==this.refList&&this.field.options.name&&(this.subFormItemFlag&&!this.designState?(e&&delete this.refList[e+"@row"+this.subFormRowId],this.refList[this.field.options.name+"@row"+this.subFormRowId]=this):(e&&delete this.refList[e],this.refList[this.field.options.name]=this))},unregisterFromRefList:function(){if(null!==this.refList&&this.field.options.name){var e=this.field.options.name;this.subFormItemFlag&&!this.designState?delete this.refList[e+"@row"+this.subFormRowId]:delete this.refList[e]}},initOptionItems:function(e){if(!this.designState&&("radio"===this.field.type||"checkbox"===this.field.type||"select"===this.field.type||"cascader"===this.field.type)&&this.globalOptionData&&this.globalOptionData.hasOwnProperty(this.field.options.name))if(e){var t=this.getOptionData();this.reloadOptions(t[this.field.options.name])}else this.loadOptions(this.globalOptionData[this.field.options.name])},refreshDefaultValue:function(){!0===this.designState&&void 0!==this.field.options.defaultValue&&(this.fieldModel=this.field.options.defaultValue)},clearFieldRules:function(){this.rules.splice(0,this.rules.length)},buildFieldRules:function(){if(this.rules.splice(0,this.rules.length),this.field.options.required&&this.rules.push({required:!0,trigger:["blur"],message:this.i18nt("render.hint.fieldRequired")}),this.field.options.validation){var e=this.field.options.validation;o["a"][e]?this.rules.push({validator:o["a"][e],trigger:["blur","change"],label:this.field.options.label,errorMsg:this.field.options.validationHint}):this.rules.push({validator:o["a"]["regExp"],trigger:["blur","change"],regExp:e,label:this.field.options.label,errorMsg:this.field.options.validationHint})}if(this.field.options.onValidate){var t=new Function("rule","value","callback",this.field.options.onValidate);this.rules.push({validator:t,trigger:["blur","change"],label:this.field.options.label})}},disableChangeValidate:function(){this.rules&&this.rules.forEach((function(e){e.trigger&&e.trigger.splice(0,e.trigger.length)}))},enableChangeValidate:function(){this.rules&&this.rules.forEach((function(e){e.trigger&&(e.trigger.push("blur"),e.trigger.push("change"))}))},disableOptionOfList:function(e,t){e&&e.length>0&&e.forEach((function(e){e.value===t&&(e.disabled=!0)}))},enableOptionOfList:function(e,t){e&&e.length>0&&e.forEach((function(e){e.value===t&&(e.disabled=!1)}))},emitFieldDataChange:function(e,t){this.$emit("field-value-changed",[e,t]),this.dispatch("VFormRender","fieldChange",[this.field.options.name,e,t,this.subFormName,this.subFormRowIndex])},syncUpdateFormModel:function(e){if(!this.designState)if(this.subFormItemFlag){var t=this.formModel[this.subFormName]||[{}],n=t[this.subFormRowIndex];n[this.field.options.name]=e}else this.formModel[this.field.options.name]=e},handleChangeEvent:function(e){this.syncUpdateFormModel(e),this.emitFieldDataChange(e,this.oldFieldValue),this.oldFieldValue=Object(i["c"])(e),this.dispatch("VFormRender","fieldValidation",[this.field.options.name])},handleFocusCustomEvent:function(e){if(this.oldFieldValue=Object(i["c"])(this.fieldModel),this.field.options.onFocus){var t=new Function("event",this.field.options.onFocus);t.call(this,e)}},handleBlurCustomEvent:function(e){if(this.field.options.onBlur){var t=new Function("event",this.field.options.onBlur);t.call(this,e)}},handleInputCustomEvent:function(e){if(this.syncUpdateFormModel(e),this.field.options.onInput){var t=new Function("value",this.field.options.onInput);t.call(this,e)}},emitAppendButtonClick:function(){this.dispatch("VFormRender","appendButtonClick",[this])},handleOnChange:function(e,t){if(this.field.options.onChange){var n=new Function("value","oldValue",this.field.options.onChange);n.call(this,e,t)}},handleOnChangeForSubForm:function(e,t,n,i){if(this.field.options.onChange){var o=new Function("value","oldValue","subFormData","rowId",this.field.options.onChange);o.call(this,e,t,n,i)}},handleButtonWidgetClick:function(){if(!this.designState)if(this.field.options.onClick){var e=new Function(this.field.options.onClick);e.call(this)}else this.dispatch("VFormRender","buttonClick",[this])},remoteQuery:function(e){if(this.field.options.onRemoteQuery){var t=new Function("keyword",this.field.options.onRemoteQuery);t.call(this,e)}},getFormRef:function(){return this.refList["v_form_ref"]},getWidgetRef:function(e,t){var n=this.refList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getFieldEditor:function(){return this.$refs["fieldEditor"]},setValue:function(e){if(this.field.formItemFlag){var t=Object(i["c"])(this.fieldModel);this.fieldModel=e,this.initFileList(),this.syncUpdateFormModel(e),this.emitFieldDataChange(e,t)}},getValue:function(){return this.fieldModel},resetField:function(){var e=this.field.options.defaultValue;this.setValue(e),this.$nextTick((function(){})),"picture-upload"!==this.field.type&&"file-upload"!==this.field.type||(this.$refs["fieldEditor"].clearFiles(),this.fileList.splice(0,this.fileList.length))},setWidgetOption:function(e,t){this.field.options.hasOwnProperty(e)&&(this.field.options[e]=t)},setReadonly:function(e){this.field.options.readonly=e},setDisabled:function(e){this.field.options.disabled=e},setAppendButtonVisible:function(e){this.field.options.appendButton=e},setAppendButtonDisabled:function(e){this.field.options.appendButtonDisabled=e},setHidden:function(e){this.field.options.hidden=e,e?this.clearFieldRules():this.buildFieldRules()},setRequired:function(e){this.field.options.required=e,this.buildFieldRules()},setLabel:function(e){this.field.options.label=e},focus:function(){this.getFieldEditor()&&this.getFieldEditor().focus&&this.getFieldEditor().focus()},clearSelectedOptions:function(){"checkbox"!==this.field.type&&"radio"!==this.field.type&&"select"!==this.field.type||("checkbox"===this.field.type||"select"===this.field.type&&this.field.options.multiple?this.fieldModel=[]:this.fieldModel="")},loadOptions:function(e){this.field.options.optionItems=Object(i["c"])(e),this.clearSelectedOptions()},reloadOptions:function(e){this.field.options.optionItems=Object(i["c"])(e)},disableOption:function(e){this.disableOptionOfList(this.field.options.optionItems,e)},enableOption:function(e){this.enableOptionOfList(this.field.options.optionItems,e)},setUploadHeader:function(e,t){this.$set(this.uploadHeaders,e,t)},setUploadData:function(e,t){this.$set(this.uploadData,e,t)},setToolbar:function(e){this.customToolbar=e}}}},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,o,r){var s=new Error(e);return i(s,t,n,o,r)}},"2d9e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-card",use:"icon-card-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-card"><defs><style type="text/css"></style></defs><path d="M858.656 864H165.344C109.472 864 64 818.56 64 762.688V261.312C64 205.44 109.472 160 165.344 160h693.312C914.528 160 960 205.44 960 261.312v501.376C960 818.56 914.528 864 858.656 864zM165.344 224C144.736 224 128 240.736 128 261.312v501.376C128 783.264 144.736 800 165.344 800h693.312C879.264 800 896 783.264 896 762.688V261.312C896 240.736 879.264 224 858.656 224H165.344zM800 416H224c-17.664 0-32-14.336-32-32s14.336-32 32-32h576c17.696 0 32 14.336 32 32s-14.304 32-32 32zM320 736h-96c-17.664 0-32-14.304-32-32s14.336-32 32-32h96c17.664 0 32 14.304 32 32s-14.336 32-32 32z" fill="#333333" p-id="4166" /></symbol>'});s.a.add(a);t["default"]=a},"2dc5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.limit")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.optionModel.limit,callback:function(t){e.$set(e.optionModel,"limit",t)},expression:"optionModel.limit"}})],1)},o=[],r=n("79fa"),s={name:"limit-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"41408032",null);t["default"]=c.exports},"2dd9":function(e,t,n){},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f3d":function(e,t,n){},"2faa":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-rate",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,max:e.field.options.max,"low-threshold":e.field.options.lowThreshold,"high-threshold":e.field.options.highThreshold,"allow-half":e.field.options.allowHalf,"show-text":e.field.options.showText,"show-score":e.field.options.showScore},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"rate-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("7a9f"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"c2ecc5c0",null);t["default"]=f.exports},"30ac":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.automaticDropdown")}},[n("el-checkbox",{model:{value:e.optionModel.automaticDropdown,callback:function(t){e.$set(e.optionModel,"automaticDropdown",t)},expression:"optionModel.automaticDropdown"}})],1)},o=[],r=n("79fa"),s={name:"automaticDropdown-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6bc25591",null);t["default"]=c.exports},"30b5":function(e,t,n){"use strict";var i=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(i.isURLSearchParams(t))r=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),r=s.join("&")}if(r){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}},"30e8":function(e,t,n){"use strict";n("2f3d")},"30eb":function(e,t,n){"use strict";n("a9dc")},"31ab":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.inactiveText")}},[n("el-input",{model:{value:e.optionModel.inactiveText,callback:function(t){e.$set(e.optionModel,"inactiveText",t)},expression:"optionModel.inactiveText"}})],1)},o=[],r=n("79fa"),s={name:"inactiveText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"03f5012d",null);t["default"]=c.exports},"31b7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.uploadSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.uploadURL")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.uploadURL,callback:function(t){e.$set(e.optionModel,"uploadURL",t)},expression:"optionModel.uploadURL"}})],1)],1)},o=[],r=n("79fa"),s={name:"uploadURL-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2b299867",null);t["default"]=c.exports},3280:function(e,t,n){"use strict";var i=n("ebb5"),o=n("2ba4"),r=n("e58c"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("lastIndexOf",(function(e){var t=arguments.length;return o(r,s(this),t>1?[e,arguments[1]]:[e])}))},"329d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colOffsetTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.offset,callback:function(t){e.$set(e.optionModel,"offset",e._n(t))},expression:"optionModel.offset"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-offset-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"b3fd22fe",null);t["default"]=c.exports},3410:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("7b0b"),s=n("e163"),a=n("e177"),l=o((function(){s(1)}));i({target:"Object",stat:!0,forced:l,sham:!a},{getPrototypeOf:function(e){return s(r(e))}})},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"345a":function(e,t,n){"use strict";n("c372")},"34f0":function(e,t,n){"use strict";n("b0c0"),n("d3b7"),n("159b"),n("a434"),n("ca00");t["a"]={computed:{customClass:function(){return this.widget.options.customClass||""},formModel:{cache:!1,get:function(){return this.globalModel.formModel}}},methods:{unregisterFromRefList:function(){if(null!==this.refList&&this.widget.options.name){var e=this.widget.options.name;delete this.refList[e]}},setHidden:function(e){this.widget.options.hidden=e},activeTab:function(e){var t=this;e>=0&&e<this.widget.tabs.length&&this.widget.tabs.forEach((function(n,i){n.options.active=i===e,i===e&&(t.activeTabName=n.options.name)}))},disableTab:function(e){e>=0&&e<this.widget.tabs.length&&(this.widget.tabs[e].options.disabled=!0)},enableTab:function(e){e>=0&&e<this.widget.tabs.length&&(this.widget.tabs[e].options.disabled=!1)},hideTab:function(e){e>=0&&e<this.widget.tabs.length&&(this.widget.tabs[e].options.hidden=!0)},showTab:function(e){e>=0&&e<this.widget.tabs.length&&(this.widget.tabs[e].options.hidden=!1)},disableSubFormRow:function(e){var t=this;this.widget.widgetList.forEach((function(n){var i=n.options.name+"@row"+t.rowIdData[e],o=t.getWidgetRef(i);o&&o.setDisabled(!0)}))},enableSubFormRow:function(e){var t=this;this.widget.widgetList.forEach((function(n){var i=n.options.name+"@row"+t.rowIdData[e],o=t.getWidgetRef(i);o&&o.setDisabled(!1)}))},disableSubForm:function(){var e=this;this.rowIdData.length>0&&this.rowIdData.forEach((function(t,n){e.disableSubFormRow(n)}))},enableSubForm:function(){var e=this;this.rowIdData.length>0&&this.rowIdData.forEach((function(t,n){e.enableSubFormRow(n)}))},resetSubForm:function(){if("sub-form"===this.widget.type){var e=this.formModel[this.widget.options.name];e&&(e.splice(0,e.length),this.rowIdData.splice(0,this.rowIdData.length))}},getSubFormValues:function(){if("sub-form"===this.widget.type)return this.formModel[this.widget.options.name];this.$message.error(this.i18nt("render.hint.nonSubFormType"))}}}},3544:function(e,t,n){},3558:function(e,t,n){},"35a1":function(e,t,n){var i=n("f5df"),o=n("dc4a"),r=n("3f8c"),s=n("b622"),a=s("iterator");e.exports=function(e){if(void 0!=e)return o(e,a)||o(e,"@@iterator")||r[i(e)]}},"35ac":function(e,t,n){},"35c2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.contentPosition")}},[n("el-select",{model:{value:e.optionModel.contentPosition,callback:function(t){e.$set(e.optionModel,"contentPosition",t)},expression:"optionModel.contentPosition"}},[n("el-option",{attrs:{label:"center",value:"center"}}),n("el-option",{attrs:{label:"left",value:"left"}}),n("el-option",{attrs:{label:"right",value:"right"}})],1)],1)},o=[],r=n("79fa"),s={name:"contentPosition-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d4bc4820",null);t["default"]=c.exports},"36c7":function(e,t,n){},"36f6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelHidden")}},[n("el-checkbox",{model:{value:e.optionModel.labelHidden,callback:function(t){e.$set(e.optionModel,"labelHidden",t)},expression:"optionModel.labelHidden"}})],1)},o=[],r=n("79fa"),s={name:"labelHidden-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"76508155",null);t["default"]=c.exports},"37e8":function(e,t,n){var i=n("83ab"),o=n("9bf2"),r=n("825a"),s=n("fc6a"),a=n("df75");e.exports=i?Object.defineProperties:function(e,t){r(e);var n,i=s(t),l=a(t),c=l.length,d=0;while(c>d)o.f(e,n=l[d++],i[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,o){return e.config=t,n&&(e.code=n),e.request=i,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3918:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-time-range-field",use:"icon-time-range-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-time-range-field"><defs><style type="text/css"></style></defs><path d="M498.596 482.29H345.42v57.308h210.478V274.197h-57.301V482.29z m0 0M577.685 644.985h379.88v57.302h-379.88v-57.302z m0 0M577.685 773.765h379.88v57.307h-379.88v-57.307z m0 0M577.685 902.55h379.88v57.307h-379.88V902.55z m0 0" p-id="46153" /><path d="M102.523 382.29a28.668 28.668 0 0 0 23.367 2.56l190.81-61.886c15.053-4.883 23.298-21.04 18.415-36.09-4.882-15.052-21.04-23.297-36.093-18.415l-123.346 40c15.994-26.117 35.17-50.538 57.37-72.745 73.768-73.767 171.847-114.388 276.169-114.388 104.32 0 202.395 40.622 276.161 114.388S899.77 407.56 899.77 511.882c0 26.428-2.616 52.45-7.71 77.78h58.303c4.465-25.499 6.709-51.47 6.709-77.78 0-60.45-11.846-119.102-35.205-174.336-22.56-53.335-54.85-101.227-95.969-142.35-41.122-41.122-89.017-73.408-142.348-95.968-55.233-23.361-113.89-35.207-174.334-35.207-60.45 0-119.107 11.846-174.337 35.208-53.335 22.56-101.23 54.846-142.35 95.969-23.98 23.98-44.933 50.278-62.727 78.6l-20.738-105.654c-3.043-15.528-18.105-25.642-33.632-22.6-15.528 3.048-25.643 18.105-22.6 33.637l36.103 183.932a28.666 28.666 0 0 0 13.588 19.178z m0 0M126.02 587.942H67.768c5.76 33.679 15.368 66.544 28.79 98.278 22.56 53.334 54.85 101.225 95.972 142.348 41.123 41.123 89.014 73.409 142.349 95.969 54.112 22.888 111.518 34.711 170.668 35.182v-57.324c-102.95-0.941-199.595-41.446-272.5-114.349-55.501-55.502-92.237-124.77-107.027-200.104z m0 0" p-id="46154" /></symbol>'});s.a.add(a);t["default"]=a},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=i.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3952:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-rich-editor-field",use:"icon-rich-editor-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rich-editor-field"><defs><style type="text/css"></style></defs><path d="M313.359894 448.093505l319.271534 0 0 31.927153-319.271534 0 0-31.927153Z" p-id="66103" /><path d="M313.359894 583.783907l223.490074 0 0 31.927153-223.490074 0 0-31.927153Z" p-id="66104" /><path d="M313.359894 719.474308l127.708614 0 0 31.927153-127.708614 0 0-31.927153Z" p-id="66105" /><path d="M889.411699 554.808992l-39.954991-39.971363-39.957037-39.940664c-7.357572-7.357572-19.284205-7.357572-26.641777 0L453.157847 804.590871c-2.113127 1.730411-3.749394 4.068665-4.591575 6.873548l-36.488029 121.394814c-1.544169 5.160533-0.016373 10.523681 3.539616 14.078647l0.989537 0.763386 0.77055 0.981351c3.554966 3.554966 8.902764 5.082762 14.062274 3.554966l121.394814-36.494169c2.844791-0.857531 5.214768-2.52552 6.938016-4.677533l329.638649-329.630463C896.761084 574.093197 896.761084 562.152237 889.411699 554.808992zM541.135574 889.75553l-95.197152 28.622898 28.622898-95.235015 255.020184-255.020184 66.598814 66.598814L541.135574 889.75553zM856.112292 574.779835l-46.611597 46.611597-66.590628-66.598814 46.605457-46.596248c3.677762-3.679809 9.641591-3.679809 13.319353-0.016373l26.892487 26.892487 26.383904 26.393113C859.791078 565.145407 859.791078 571.116399 856.112292 574.779835z" p-id="66106" /><path d="M671.874197 224.898143l0-28.933983c0-22.004153-17.904789-39.908942-39.908942-39.908942L314.026066 156.055219c-22.004153 0-39.908942 17.904789-39.908942 39.908942l0 28.933983L169.687704 224.898143l0 643.563408c0 35.261085 28.591175 63.854307 63.854307 63.854307l127.708614 0 0-47.89073-111.745037 0c-17.631566 0-31.927153-14.297634-31.927153-31.927153L217.578434 272.788873l56.538691 0 0 10.974959c0 22.004153 17.904789 39.908942 39.908942 39.908942l317.938166 0c22.004153 0 39.908942-17.904789 39.908942-39.908942l0-10.974959 56.538691 0 0 164.662247 47.89073 0L776.302595 224.898143 671.874197 224.898143zM623.983467 275.782044 322.007855 275.782044l0-71.836095 301.974589 0L623.982444 275.782044z" p-id="66107" /></symbol>'});s.a.add(a);t["default"]=a},"3a40":function(e,t,n){"use strict";n("68f1")},"3a7b":function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").findIndex,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("findIndex",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(e,t,n){var i=n("e330");e.exports=i({}.isPrototypeOf)},"3ad3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-color-picker",{ref:"fieldEditor",attrs:{size:e.field.options.size,disabled:e.field.options.disabled},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"color-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("30e8"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"7c9bac00",null);t["default"]=f.exports},"3bbe":function(e,t,n){var i=n("da84"),o=n("1626"),r=i.String,s=i.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw s("Can't set "+r(e)+" as a prototype")}},"3bc5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxStars")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1,max:10},model:{value:e.optionModel.max,callback:function(t){e.$set(e.optionModel,"max",t)},expression:"optionModel.max"}})],1)},o=[],r=n("79fa"),s={name:"rate-max-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"59c5a4f2",null);t["default"]=c.exports},"3c4e":function(e,t,n){"use strict";var i=function(e){return o(e)&&!r(e)};function o(e){return!!e&&"object"===typeof e}function r(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var s="function"===typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===a}function c(e){return Array.isArray(e)?[]:{}}function d(e,t){var n=t&&!0===t.clone;return n&&i(e)?f(c(e),e,t):e}function u(e,t,n){var o=e.slice();return t.forEach((function(t,r){"undefined"===typeof o[r]?o[r]=d(t,n):i(t)?o[r]=f(e[r],t,n):-1===e.indexOf(t)&&o.push(d(t,n))})),o}function h(e,t,n){var o={};return i(e)&&Object.keys(e).forEach((function(t){o[t]=d(e[t],n)})),Object.keys(t).forEach((function(r){i(t[r])&&e[r]?o[r]=f(e[r],t[r],n):o[r]=d(t[r],n)})),o}function f(e,t,n){var i=Array.isArray(t),o=Array.isArray(e),r=n||{arrayMerge:u},s=i===o;if(s){if(i){var a=r.arrayMerge||u;return a(e,t,n)}return h(e,t,n)}return d(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var p=f;e.exports=p},"3c5d":function(e,t,n){"use strict";var i=n("da84"),o=n("ebb5"),r=n("07fa"),s=n("182d"),a=n("7b0b"),l=n("d039"),c=i.RangeError,d=o.aTypedArray,u=o.exportTypedArrayMethod,h=l((function(){new Int8Array(1).set({})}));u("set",(function(e){d(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=a(e),o=r(i),l=0;if(o+t>n)throw c("Wrong length");while(l<o)this[t+l]=i[l++]}),h)},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,o=n("577e"),r=n("69f3"),s=n("7dd0"),a="String Iterator",l=r.set,c=r.getterFor(a);s(String,"String",(function(e){l(this,{type:a,string:o(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=i(n,o),t.index+=e.length,{value:e,done:!1})}))},"3cf7":function(e,t,n){"use strict";n("6158")},"3d86":function(e,t,n){},"3e10":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.optionModel.labelAlign,callback:function(t){e.$set(e.optionModel,"labelAlign",t)},expression:"optionModel.labelAlign"}},[n("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1)},o=[],r=n("79fa"),s={name:"sub-form-labelAlign-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=(n("0dee"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"66fb0270",null);t["default"]=c.exports},"3f28":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onUploadError","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onUploadError",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onUploadError-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["error","file","fileList"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"a1332e98",null);t["default"]=d.exports},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").map,r=n("b6b7"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("map",(function(e){return o(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(r(e))(t)}))}))},"401c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showFileList")}},[n("el-checkbox",{model:{value:e.optionModel.showFileList,callback:function(t){e.$set(e.optionModel,"showFileList",t)},expression:"optionModel.showFileList"}})],1)},o=[],r=n("79fa"),s={name:"showFileList-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4e0e2c16",null);t["default"]=c.exports},"408a":function(e,t,n){var i=n("e330");e.exports=i(1..valueOf)},"40fa":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-text-field",use:"icon-text-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-text-field"><defs><style type="text/css"></style></defs><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64z m0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" p-id="12704" /><path d="M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z" p-id="12705" /></symbol>'});s.a.add(a);t["default"]=a},4244:function(e,t,n){"use strict";n("117f")},"428f":function(e,t,n){var i=n("da84");e.exports=i},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var i=n("da84"),o=n("e330"),r=n("d039"),s=n("c6b6"),a=i.Object,l=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?l(e,""):a(e)}:a},"44d2":function(e,t,n){var i=n("b622"),o=n("7c73"),r=n("9bf2"),s=i("unscopables"),a=Array.prototype;void 0==a[s]&&r.f(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},"44e7":function(e,t,n){var i=n("861d"),o=n("c6b6"),r=n("b622"),s=r("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==o(e))}},"44ef":function(e,t,n){"use strict";n("9c69")},"44fb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showText")}},[n("el-checkbox",{model:{value:e.optionModel.showText,callback:function(t){e.$set(e.optionModel,"showText",t)},expression:"optionModel.showText"}})],1)},o=[],r=n("79fa"),s={name:"showText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7b0feadd",null);t["default"]=c.exports},4595:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.placeholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.placeholder,callback:function(t){e.$set(e.optionModel,"placeholder",t)},expression:"optionModel.placeholder"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"placeholder-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"03f971ba",null);t["default"]=d.exports},"45db":function(e,t,n){(function(e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};i.inherits(r,o),t.JsonHighlightRules=r})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new a,this.foldingRules=new l};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t);if("start"==e){var o=t.match(/^.*[\{\(\[]\s*$/);o&&(i+=n)}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(d.prototype),t.Mode=d})),function(){ace.require(["ace/mode/json"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"466d":function(e,t,n){"use strict";var i=n("c65b"),o=n("d784"),r=n("825a"),s=n("50c4"),a=n("577e"),l=n("1d80"),c=n("dc4a"),d=n("8aa5"),u=n("14c3");o("match",(function(e,t,n){return[function(t){var n=l(this),o=void 0==t?void 0:c(t,e);return o?i(o,t,n):new RegExp(t)[e](a(n))},function(e){var i=r(this),o=a(e),l=n(t,i,o);if(l.done)return l.value;if(!i.global)return u(i,o);var c=i.unicode;i.lastIndex=0;var h,f=[],p=0;while(null!==(h=u(i,o))){var g=a(h[0]);f[p]=g,""===g&&(i.lastIndex=d(o,s(i.lastIndex),c)),p++}return 0===p?null:f}]}))},"467f":function(e,t,n){"use strict";var i=n("2d83");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"47b8":function(e,t,n){},"47f1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-table"><defs><style type="text/css"></style></defs><path d="M925.586 0H101.369C69.885 0 42.24 28.924 42.24 62.328v902.8c0 33.403 27.645 58.872 59.129 58.872h824.217c31.484 0 56.057-25.469 56.057-58.873V62.328C981.643 28.924 957.198 0 925.586 0zM373.719 735.908V543.932h276.445v191.976z m276.445 42.235v203.494H373.719V778.143z m287.964-276.446h-244.45V298.203h244.45z m-287.964 0H373.719V298.203h276.445z m-319.96 0H85.754V298.203h244.45z m-244.45 42.235h244.45v191.976H85.754z m607.925 0h244.449v191.976h-244.45zM101.369 42.235h824.217c7.807 0 12.542 10.366 12.542 20.093v193.64H85.755V62.328c0-9.727 7.807-20.093 15.614-20.093zM85.755 964.999V778.143h244.449v203.494H101.369c-7.807 0-15.614-6.91-15.614-16.51z m839.83 16.638H693.68V778.143h244.449v186.856c0 9.727-4.607 16.638-12.542 16.638z" p-id="7727" /></symbol>'});s.a.add(a);t["default"]=a},4840:function(e,t,n){var i=n("825a"),o=n("5087"),r=n("b622"),s=r("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||void 0==(n=i(r)[s])?t:o(n)}},"485a":function(e,t,n){var i=n("da84"),o=n("c65b"),r=n("1626"),s=n("861d"),a=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&r(n=e.toString)&&!s(i=o(n,e)))return i;if(r(n=e.valueOf)&&!s(i=o(n,e)))return i;if("string"!==t&&r(n=e.toString)&&!s(i=o(n,e)))return i;throw a("Can't convert object to primitive value")}},4897:function(e,t,n){"use strict";n("3410"),n("ac1f"),n("1276"),t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n("f0d9"),o=u(i),r=n("8bbf"),s=u(r),a=n("3c4e"),l=u(a),c=n("9d7e"),d=u(c);function u(e){return e&&e.__esModule?e:{default:e}}var h=(0,d.default)(s.default),f=o.default,p=!1,g=function(){var e=Object.getPrototypeOf(this||s.default).$t;if("function"===typeof e&&s.default.locale)return p||(p=!0,s.default.locale(s.default.config.lang,(0,l.default)(f,s.default.locale(s.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(e,t){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),o=f,r=0,s=i.length;r<s;r++){var a=i[r];if(n=o[a],r===s-1)return h(n,t);if(!n)return"";o=n}return""},b=t.use=function(e){f=e||f},v=t.i18n=function(e){g=e||g};t.default={use:b,t:m,i18n:v}},"491c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-divider",use:"icon-divider-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-divider"><defs><style type="text/css"></style></defs><path d="M62.5 491.773h899v74.918h-899v-74.918z" p-id="63667" /></symbol>'});s.a.add(a);t["default"]=a},4930:function(e,t,n){var i=n("2d00"),o=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"498a":function(e,t,n){"use strict";var i=n("23e7"),o=n("58a8").trim,r=n("c8d2");i({target:"String",proto:!0,forced:r("trim")},{trim:function(){return o(this)}})},"4a0c":function(e){e.exports=JSON.parse('{"_from":"axios@^0.21.1","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.21.1","name":"axios","escapedName":"axios","rawSpec":"^0.21.1","saveSpec":null,"fetchSpec":"^0.21.1"},"_requiredBy":["/"],"_resolved":"http://59.110.26.156:8081/repository/skyway-npm-group/axios/-/axios-0.21.4.tgz","_shasum":"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575","_spec":"axios@^0.21.1","_where":"D:\\\\variant-form-master","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"deprecated":false,"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a70":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-upload",{ref:"fieldEditor",staticClass:"dynamicPseudoAfter",class:{hideUploadDiv:e.uploadBtnHidden},style:e.styleVariables,attrs:{disabled:e.field.options.disabled,action:e.field.options.uploadURL,headers:e.uploadHeaders,data:e.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":e.fileList,"show-file-list":e.field.options.showFileList,limit:e.field.options.limit,"on-exceed":e.handleFileExceed,"before-upload":e.beforeFileUpload,"on-success":e.handleFileUpload,"on-error":e.handelUploadError,"on-remove":e.handleFileRemove},scopedSlots:e._u([{key:"file",fn:function(t){var i=t.file;return n("div",{staticClass:"upload-file-list"},[n("span",{staticClass:"upload-file-name",attrs:{title:i.name}},[e._v(e._s(i.name))]),n("a",{attrs:{href:i.url,download:""}},[n("i",{staticClass:"el-icon-download file-action",attrs:{title:"i18nt('render.hint.downloadFile')"}})]),e.field.options.disabled?e._e():n("i",{staticClass:"el-icon-delete file-action",attrs:{title:"i18nt('render.hint.removeFile')"},on:{click:function(t){return e.removeUploadFile(i.name)}}})])}}])},[e.field.options.uploadTip?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.field.options.uploadTip))]):e._e(),n("i",{staticClass:"el-icon-plus avatar-uploader-icon",attrs:{slot:"default"},slot:"default"})])],1)},o=[],r=n("a1fd"),s=r["a"],a=(n("7640"),n("2877")),l=Object(a["a"])(s,i,o,!1,null,"1baf0012",null);t["default"]=l.exports},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],r=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function c(o){i.isUndefined(t[o])?i.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(e[o],t[o])}i.forEach(o,(function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),i.forEach(r,c),i.forEach(s,(function(o){i.isUndefined(t[o])?i.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(void 0,t[o])})),i.forEach(a,(function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))}));var d=o.concat(r).concat(s).concat(a),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return i.forEach(u,c),n}},"4a8a":function(e,t,n){"use strict";n("cb48")},"4be5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.valueFormat")}},[n("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.valueFormat,callback:function(t){e.$set(e.optionModel,"valueFormat",t)},expression:"optionModel.valueFormat"}},[n("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),n("el-option",{attrs:{label:"yyyy-MM-dd HH:mm:ss",value:"yyyy-MM-dd HH:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-valueFormat-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"584a5ccb",null);t["default"]=c.exports},"4c3f":function(e,t,n){},"4cc5":function(e,t,n){"use strict";n("c1b2")},"4cdd":function(e,t,n){},"4cde":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-static-text",use:"icon-static-text-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-static-text"><defs><style type="text/css"></style></defs><path d="M213.333333 160c-4.821333 0-9.472 0.64-13.824 1.792a32 32 0 0 1-16.554666-61.824c9.728-2.56 19.925333-3.968 30.378666-3.968h33.194667a32 32 0 0 1 0 64H213.333333zM347.264 128a32 32 0 0 1 32-32h66.346667a32 32 0 1 1 0 64H379.306667a32 32 0 0 1-32-32z m199.125333 0a32 32 0 0 1 32-32h66.346667a32 32 0 0 1 0 64h-66.346667a32 32 0 0 1-32-32z m199.082667 0a32 32 0 0 1 32-32H810.666667c10.453333 0 20.650667 1.365333 30.378666 3.968a32 32 0 1 1-16.554666 61.866667A53.418667 53.418667 0 0 0 810.666667 160h-33.194667a32 32 0 0 1-32-32z m-606.293333 32.341333a32 32 0 0 1 22.613333 39.168A53.461333 53.461333 0 0 0 160 213.333333v33.194667a32 32 0 0 1-64 0V213.333333c0-10.453333 1.365333-20.650667 3.968-30.378666a32 32 0 0 1 39.168-22.613334z m745.685333 0a32 32 0 0 1 39.168 22.613334c2.56 9.728 3.968 19.925333 3.968 30.378666v33.194667a32 32 0 0 1-64 0V213.333333c0-4.821333-0.64-9.472-1.792-13.824a32 32 0 0 1 22.613333-39.168zM128 347.221333a32 32 0 0 1 32 32v66.389334a32 32 0 1 1-64 0V379.306667a32 32 0 0 1 32-32z m768 0a32 32 0 0 1 32 32v66.389334a32 32 0 1 1-64 0V379.306667a32 32 0 0 1 32-32zM128 546.432a32 32 0 0 1 32 32v66.346667a32 32 0 0 1-64 0v-66.346667a32 32 0 0 1 32-32z m768 0a32 32 0 0 1 32 32v66.346667a32 32 0 0 1-64 0v-66.346667a32 32 0 0 1 32-32z m0 199.082667a32 32 0 0 1 32 32V810.666667c0 10.453333-1.365333 20.650667-3.968 30.378666a32 32 0 1 1-61.866667-16.554666c1.194667-4.352 1.834667-8.96 1.834667-13.824v-33.194667a32 32 0 0 1 32-32z m-768 0a32 32 0 0 1 32 32V810.666667c0 4.821333 0.64 9.472 1.792 13.824a32 32 0 0 1-61.824 16.512A117.461333 117.461333 0 0 1 96 810.666667v-33.194667a32 32 0 0 1 32-32z m32.341333 139.392a32 32 0 0 1 39.168-22.656c4.352 1.152 8.96 1.792 13.824 1.792h33.194667a32 32 0 0 1 0 64H213.333333c-10.453333 0-20.650667-1.365333-30.378666-3.968a32 32 0 0 1-22.613334-39.168z m703.317334 0a32 32 0 0 1-22.613334 39.168c-9.728 2.56-19.925333 3.968-30.378666 3.968h-33.194667a32 32 0 0 1 0-64H810.666667c4.821333 0 9.472-0.64 13.824-1.792a32 32 0 0 1 39.168 22.613333zM347.306667 896a32 32 0 0 1 32-32h66.346666a32 32 0 1 1 0 64H379.306667a32 32 0 0 1-32-32z m199.125333 0a32 32 0 0 1 32-32h66.346667a32 32 0 0 1 0 64h-66.346667a32 32 0 0 1-32-32zM341.333333 352a32 32 0 0 0 0 64h138.666667V682.666667a32 32 0 0 0 64 0V416H682.666667a32 32 0 0 0 0-64H341.333333z" p-id="55447" /></symbol>'});s.a.add(a);t["default"]=a},"4d63":function(e,t,n){var i=n("83ab"),o=n("da84"),r=n("e330"),s=n("94ca"),a=n("7156"),l=n("9112"),c=n("9bf2").f,d=n("241c").f,u=n("3a9b"),h=n("44e7"),f=n("577e"),p=n("ad6d"),g=n("9f7f"),m=n("6eeb"),b=n("d039"),v=n("1a2d"),w=n("69f3").enforce,y=n("2626"),x=n("b622"),_=n("fce3"),C=n("107c"),S=x("match"),k=o.RegExp,M=k.prototype,E=o.SyntaxError,$=r(p),L=r(M.exec),O=r("".charAt),T=r("".replace),R=r("".indexOf),A=r("".slice),F=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,D=/a/g,j=new k(I)!==I,P=g.MISSED_STICKY,W=g.UNSUPPORTED_Y,N=i&&(!j||P||_||C||b((function(){return D[S]=!1,k(I)!=I||k(D)==D||"/a/i"!=k(I,"i")}))),H=function(e){for(var t,n=e.length,i=0,o="",r=!1;i<=n;i++)t=O(e,i),"\\"!==t?r||"."!==t?("["===t?r=!0:"]"===t&&(r=!1),o+=t):o+="[\\s\\S]":o+=t+O(e,++i);return o},B=function(e){for(var t,n=e.length,i=0,o="",r=[],s={},a=!1,l=!1,c=0,d="";i<=n;i++){if(t=O(e,i),"\\"===t)t+=O(e,++i);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:L(F,A(e,i+1))&&(i+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===d||v(s,d))throw new E("Invalid capture group name");s[d]=!0,r[r.length]=[d,c],l=!1,d="";continue}l?d+=t:o+=t}return[o,r]};if(s("RegExp",N)){for(var V=function(e,t){var n,i,o,r,s,c,d=u(M,this),p=h(e),g=void 0===t,m=[],b=e;if(!d&&p&&g&&e.constructor===V)return e;if((p||u(M,e))&&(e=e.source,g&&(t="flags"in b?b.flags:$(b))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),b=e,_&&"dotAll"in I&&(i=!!t&&R(t,"s")>-1,i&&(t=T(t,/s/g,""))),n=t,P&&"sticky"in I&&(o=!!t&&R(t,"y")>-1,o&&W&&(t=T(t,/y/g,""))),C&&(r=B(e),e=r[0],m=r[1]),s=a(k(e,t),d?this:M,V),(i||o||m.length)&&(c=w(s),i&&(c.dotAll=!0,c.raw=V(H(e),n)),o&&(c.sticky=!0),m.length&&(c.groups=m)),e!==b)try{l(s,"source",""===b?"(?:)":b)}catch(v){}return s},z=function(e){e in V||c(V,e,{configurable:!0,get:function(){return k[e]},set:function(t){k[e]=t}})},U=d(k),K=0;U.length>K;)z(U[K++]);M.constructor=V,V.prototype=M,m(o,"RegExp",V)}y("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),o=n("23cb"),r=n("07fa"),s=function(e){return function(t,n,s){var a,l=i(t),c=r(l),d=o(s,c);if(e&&n!=n){while(c>d)if(a=l[d++],a!=a)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4dae":function(e,t,n){var i=n("da84"),o=n("23cb"),r=n("07fa"),s=n("8418"),a=i.Array,l=Math.max;e.exports=function(e,t,n){for(var i=r(e),c=o(t,i),d=o(void 0===n?i:n,i),u=a(l(d-c,0)),h=0;c<d;c++,h++)s(u,h,e[c]);return u.length=h,u}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").filter,r=n("1dde"),s=r("filter");i({target:"Array",proto:!0,forced:!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("da84"),o=n("0366"),r=n("c65b"),s=n("7b0b"),a=n("9bdd"),l=n("e95a"),c=n("68ee"),d=n("07fa"),u=n("8418"),h=n("9a1f"),f=n("35a1"),p=i.Array;e.exports=function(e){var t=s(e),n=c(this),i=arguments.length,g=i>1?arguments[1]:void 0,m=void 0!==g;m&&(g=o(g,i>2?arguments[2]:void 0));var b,v,w,y,x,_,C=f(t),S=0;if(!C||this==p&&l(C))for(b=d(t),v=n?new this(b):p(b);b>S;S++)_=m?g(t[S],S):t[S],u(v,S,_);else for(y=h(t,C),x=y.next,v=n?new this:[];!(w=r(x,y)).done;S++)_=m?a(y,g,[w.value,S],!0):w.value,u(v,S,_);return v.length=S,v}},"4df6":function(e,t,n){"use strict";n("c9b8")},"4e3d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onBlur","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onBlur",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onBlur-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["event"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ab3f95fc",null);t["default"]=d.exports},"4e94":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.format")}},[n("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.format,callback:function(t){e.$set(e.optionModel,"format",t)},expression:"optionModel.format"}},[n("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),n("el-option",{attrs:{label:"yyyy/MM/dd",value:"yyyy/MM/dd"}}),n("el-option",{attrs:{label:"yyyy年MM月dd日",value:"yyyy年MM月dd日"}}),n("el-option",{attrs:{label:"yyyy-MM-dd HH:mm:ss",value:"yyyy-MM-dd HH:mm:ss"}}),n("el-option",{attrs:{label:"yyyy-MM-dd hh:mm:ss",value:"yyyy-MM-dd hh:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-format-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"04dfb3ed",null);t["default"]=c.exports},"4ed4":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-button",use:"icon-button-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-button"><defs><style type="text/css"></style></defs><path d="M912 176v416h-179.52v-32h147.52v-352h-736v352h175.488v32H112v-416z" fill="#646E7F" p-id="63465" /><path d="M436.384 788.512l0.544 2.688a16 16 0 0 0 27.776 5.504l44.032-54.336 56.768 97.664a16 16 0 0 0 21.792 5.856l68.672-39.392 2.368-1.664a16 16 0 0 0 3.52-20.256l-55.904-96.16 68.8-12.064a16 16 0 0 0 6.464-28.8l-256-180.64a16 16 0 0 0-25.12 14.976l36.288 306.624z" fill="#00C296" p-id="63466" /></symbol>'});s.a.add(a);t["default"]=a},"4fad":function(e,t,n){var i=n("d039"),o=n("861d"),r=n("c6b6"),s=n("d86b"),a=Object.isExtensible,l=i((function(){a(1)}));e.exports=l||s?function(e){return!!o(e)&&((!s||"ArrayBuffer"!=r(e))&&(!a||a(e)))}:a},5087:function(e,t,n){var i=n("da84"),o=n("68ee"),r=n("0d51"),s=i.TypeError;e.exports=function(e){if(o(e))return e;throw s(r(e)+" is not a constructor")}},"50c4":function(e,t,n){var i=n("5926"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},5112:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.remote")}},[n("el-checkbox",{on:{change:e.onRemoteChange},model:{value:e.optionModel.remote,callback:function(t){e.$set(e.optionModel,"remote",t)},expression:"optionModel.remote"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"remote-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"5527594b",null);t["default"]=d.exports},"512c":function(e,t,n){var i=n("342f"),o=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},"51b5":function(e,t,n){"use strict";n("be4f")},"51ff":function(e,t,n){var i={"./alert.svg":"f2db","./button.svg":"4ed4","./card.svg":"2d9e","./cascader-field.svg":"5fe5","./checkbox-field.svg":"f582","./color-field.svg":"5bc5","./custom-component.svg":"c885","./data-table.svg":"6592","./date-field.svg":"27a8","./date-range-field.svg":"6947","./divider.svg":"491c","./document.svg":"fd28","./drag.svg":"9bbf","./file-upload-field.svg":"d119","./github.svg":"558d","./grid.svg":"d8ec","./html-text.svg":"89ef","./node-tree.svg":"e486","./number-field.svg":"9b6e","./picture-upload-field.svg":"15c6","./radio-field.svg":"25e2","./rate-field.svg":"f250","./redo.svg":"18ba","./rich-editor-field.svg":"3952","./section.svg":"e934","./select-field.svg":"b8d7","./slider-field.svg":"7007","./slot-component.svg":"20e0","./static-text.svg":"4cde","./sub-form.svg":"db13","./switch-field.svg":"1895","./tab.svg":"8fb7","./table.svg":"47f1","./text-field.svg":"40fa","./textarea-field.svg":"d2e4","./time-field.svg":"1d42","./time-range-field.svg":"3918","./undo.svg":"612b","./vue-sfc.svg":"8740"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="51ff"},5270:function(e,t,n){"use strict";var i=n("c532"),o=n("c401"),r=n("2e67"),s=n("2444");function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){a(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return a(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return r(t)||(a(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var i=n("2ba4"),o=n("c65b"),r=n("e330"),s=n("d784"),a=n("d039"),l=n("825a"),c=n("1626"),d=n("5926"),u=n("50c4"),h=n("577e"),f=n("1d80"),p=n("8aa5"),g=n("dc4a"),m=n("0cb2"),b=n("14c3"),v=n("b622"),w=v("replace"),y=Math.max,x=Math.min,_=r([].concat),C=r([].push),S=r("".indexOf),k=r("".slice),M=function(e){return void 0===e?e:String(e)},E=function(){return"$0"==="a".replace(/./,"$0")}(),$=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),L=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var r=$?"$":"$0";return[function(e,n){var i=f(this),r=void 0==e?void 0:g(e,w);return r?o(r,e,i,n):o(t,h(i),e,n)},function(e,o){var s=l(this),a=h(e);if("string"==typeof o&&-1===S(o,r)&&-1===S(o,"$<")){var f=n(t,s,a,o);if(f.done)return f.value}var g=c(o);g||(o=h(o));var v=s.global;if(v){var w=s.unicode;s.lastIndex=0}var E=[];while(1){var $=b(s,a);if(null===$)break;if(C(E,$),!v)break;var L=h($[0]);""===L&&(s.lastIndex=p(a,u(s.lastIndex),w))}for(var O="",T=0,R=0;R<E.length;R++){$=E[R];for(var A=h($[0]),F=y(x(d($.index),a.length),0),I=[],D=1;D<$.length;D++)C(I,M($[D]));var j=$.groups;if(g){var P=_([A],I,F,a);void 0!==j&&C(P,j);var W=h(i(o,void 0,P))}else W=m(A,a,F,I,j,o);F>=T&&(O+=k(a,T,F)+W,T=F+A.length)}return O+k(a,T)}]}),!L||!E||$)},"547e":function(e,t,n){"use strict";n("98ef")},"54cf":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.rows")}},[n("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.rows,callback:function(t){e.$set(e.optionModel,"rows",t)},expression:"optionModel.rows"}})],1)},o=[],r=n("79fa"),s={name:"rows-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"99e99dee",null);t["default"]=c.exports},"54d3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.controlsPosition")}},[n("el-select",{model:{value:e.optionModel.controlsPosition,callback:function(t){e.$set(e.optionModel,"controlsPosition",t)},expression:"optionModel.controlsPosition"}},[n("el-option",{attrs:{label:"default",value:""}}),n("el-option",{attrs:{label:"right",value:"right"}})],1)],1)},o=[],r=n("79fa"),s={name:"controlsPosition-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"320a7676",null);t["default"]=c.exports},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");var i=n("ade3");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"558d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-github",use:"icon-github-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-github"><defs><style type="text/css"></style></defs><path d="M512 0C229.283787 0 0.142041 234.942803 0.142041 524.867683c0 231.829001 146.647305 428.553077 350.068189 497.952484 25.592898 4.819996 34.976961-11.38884 34.976961-25.294314 0-12.45521-0.469203-45.470049-0.725133-89.276559-142.381822 31.735193-172.453477-70.380469-172.453477-70.380469-23.246882-60.569859-56.816233-76.693384-56.816234-76.693385-46.493765-32.58829 3.540351-31.948468 3.540351-31.948467 51.356415 3.71097 78.356923 54.086324 78.356923 54.086324 45.683323 80.19108 119.817417 57.072162 148.993321 43.593236 4.649376-33.91059 17.915029-57.029508 32.50298-70.167195-113.675122-13.222997-233.151301-58.223843-233.1513-259.341366 0-57.285437 19.919806-104.163095 52.678715-140.846248-5.246544-13.265652-22.820334-66.626844 4.990615-138.884127 0 0 42.996069-14.076094 140.760939 53.787741 40.863327-11.644769 84.627183-17.445825 128.177764-17.6591 43.465272 0.213274 87.271782 6.014331 128.135109 17.6591 97.679561-67.906489 140.59032-53.787741 140.59032-53.787741 27.938914 72.257282 10.407779 125.618474 5.118579 138.884127 32.844219 36.683154 52.593405 83.560812 52.593405 140.846248 0 201.586726-119.646798 245.990404-233.663158 258.957473 18.341577 16.208835 34.721032 48.199958 34.721032 97.210357 0 70.167195-0.639822 126.7275-0.639823 143.960051 0 14.033439 9.213443 30.370239 35.190235 25.209005 203.250265-69.527373 349.769606-266.123484 349.769605-497.867175C1023.857959 234.942803 794.673558 0 512 0" fill="#3E75C3" p-id="2491" /></symbol>'});s.a.add(a);t["default"]=a},"566c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.step")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.optionModel.step,callback:function(t){e.$set(e.optionModel,"step",t)},expression:"optionModel.step"}})],1)},o=[],r=n("79fa"),s={name:"step-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3dde34f4",null);t["default"]=c.exports},5674:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.cellWidth")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.cellWidth,callback:function(t){e.$set(e.optionModel,"cellWidth",t)},expression:"optionModel.cellWidth"}})],1)},o=[],r=n("79fa"),s={name:"cellWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"8ddfb426",null);t["default"]=c.exports},5692:function(e,t,n){var i=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var i=n("d066"),o=n("e330"),r=n("241c"),s=n("7418"),a=n("825a"),l=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=s.f;return n?l(t,n(e)):t}},"577e":function(e,t,n){var i=n("da84"),o=n("f5df"),r=i.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},5835:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("div",{key:e.widget.id,staticClass:"tab-container",class:{selected:e.selected},on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("el-tabs",{attrs:{type:e.widget.displayType},on:{"tab-click":e.onTabClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.widget.tabs,(function(t,i){return n("el-tab-pane",{key:i,attrs:{label:t.options.label,name:t.options.name},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("draggable",e._b({attrs:{list:t.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{add:function(n){return e.onContainerDragAdd(n,t.widgetList)},update:e.onContainerDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(t.widgetList,(function(i,o){return["container"===i.category?[n(i.type+"-widget",{key:i.id,tag:"component",attrs:{widget:i,designer:e.designer,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget}})]:[n(i.type+"-widget",{key:i.id,tag:"component",attrs:{field:i,designer:e.designer,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1)],1)})),1)],1)])},o=[],r=n("5530"),s=(n("a9e3"),n("b0c0"),n("d3b7"),n("159b"),n("b76a")),a=n.n(s),l=n("79fa"),c=n("61ca"),d=n("cd36"),u=n("c029"),h={name:"tab-widget",componentName:"ContainerWidget",mixins:[l["b"],c["a"]],components:Object(r["a"])({ContainerWrapper:d["default"],Draggable:a.a},u["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},data:function(){return{activeTab:"tab1"}},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},mounted:function(){},methods:{onTabClick:function(e){console.log("onTabClick",e);var t=e.name;this.widget.tabs.forEach((function(e){e.options.active=e.options.name===t}))}}},f=h,p=(n("0a2b"),n("2877")),g=Object(p["a"])(f,i,o,!1,null,"395045ca",null);t["default"]=g.exports},"586c":function(e,t,n){},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("e330"),o=n("1d80"),r=n("577e"),s=n("5899"),a=i("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),d=RegExp(l+l+"*$"),u=function(e){return function(t){var n=r(o(t));return 1&e&&(n=a(n,c,"")),2&e&&(n=a(n,d,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},5905:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.round")}},[n("el-checkbox",{model:{value:e.optionModel.round,callback:function(t){e.$set(e.optionModel,"round",t)},expression:"optionModel.round"}})],1)},o=[],r=n("79fa"),s={name:"round-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"adf2145c",null);t["default"]=c.exports},5926:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?i:n)(t)}},5934:function(e,t,n){},5979:function(e,t,n){"use strict";n("0cdf")},"59ed":function(e,t,n){var i=n("da84"),o=n("1626"),r=n("0d51"),s=i.TypeError;e.exports=function(e){if(o(e))return e;throw s(r(e)+" is not a function")}},"5a34":function(e,t,n){var i=n("da84"),o=n("44e7"),r=i.TypeError;e.exports=function(e){if(o(e))throw r("The method doesn't accept regular expressions");return e}},"5bc5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-color-field",use:"icon-color-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-color-field"><defs><style type="text/css"></style></defs><path d="M619.52 490.666667h-0.853333l-85.333334-85.333334h0.853334z" p-id="52732" /><path d="M619.52 507.733333h-0.853333a17.066667 17.066667 0 1 1 0-34.133333c9.437867 0 17.476267 7.645867 17.476266 17.066667s-7.185067 17.066667-16.622933 17.066666z m-85.333333-85.333333c-9.437867 0-17.493333-7.645867-17.493334-17.066667s7.202133-17.066667 16.64-17.066666h0.853334a17.066667 17.066667 0 1 1 0 34.133333zM192 866.133333a34.133333 34.133333 0 0 1-24.132267-58.2656l42.666667-42.666666a34.133333 34.133333 0 1 1 48.264533 48.264533l-42.666666 42.666667a33.962667 33.962667 0 0 1-24.132267 10.001066z" p-id="52733" /><path d="M619.52 490.666667l-0.426667-0.426667L534.186667 405.333333l212.48-213.333333h85.333333v85.333333z" p-id="52734" /><path d="M662.186667 567.466667a33.9968 33.9968 0 0 1-24.132267-10.001067l-170.666667-170.666667a34.133333 34.133333 0 0 1 48.2816-48.2816l170.666667 170.666667A34.133333 34.133333 0 0 1 662.186667 567.466667z" p-id="52735" /><path d="M320 806.4h-85.333333a17.066667 17.066667 0 0 1-17.066667-17.066667v-85.333333c0-4.539733 1.792-8.874667 5.000533-12.066133l299.093334-299.093334a16.520533 16.520533 0 0 1 3.566933-2.730666l209.3056-210.141867c3.208533-3.208533 7.560533-5.0176 12.100267-5.0176h85.333333a17.066667 17.066667 0 0 1 17.066667 17.066667v85.333333a17.066667 17.066667 0 0 1-4.9664 12.049067l-212.48 213.333333a17.954133 17.954133 0 0 1-3.618134 2.781867l-295.936 295.918933a17.134933 17.134933 0 0 1-12.066133 4.9664z m-68.266667-34.133333h61.201067l294.0928-294.0928a16.520533 16.520533 0 0 1 3.566933-2.730667L814.933333 270.2848V209.066667h-61.184L546.286933 417.3824a17.954133 17.954133 0 0 1-3.618133 2.781867L251.733333 711.0656v61.201067z" p-id="52736" /></symbol>'});s.a.add(a);t["default"]=a},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5ce3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider-margin-top"},[e._v(e._s(e.i18nt("designer.setting.optionsSetting")))]),n("option-items-setting",{attrs:{designer:e.designer,"selected-widget":e.selectedWidget}})],1)},o=[],r=n("79fa"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"option-items-pane"},["radio"===e.selectedWidget.type||"select"===e.selectedWidget.type&&!e.selectedWidget.options.multiple?n("el-radio-group",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.optionModel.optionItems}},"draggable",{group:"optionsGroup",ghostClass:"ghost",handle:".drag-option"},!1),e._l(e.optionModel.optionItems,(function(t,i){return n("li",{key:i},[n("el-radio",{attrs:{label:t.value}},[n("el-input",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"option.value"}}),n("el-input",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"option.label"}}),n("i",{staticClass:"iconfont icon-drag drag-option"}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(n){return e.deleteOption(t,i)}}})],1)],1)})),0)],1):"checkbox"===e.selectedWidget.type||"select"===e.selectedWidget.type&&e.selectedWidget.options.multiple?n("el-checkbox-group",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.optionModel.optionItems}},"draggable",{group:"optionsGroup",ghostClass:"ghost",handle:".drag-option"},!1),e._l(e.optionModel.optionItems,(function(t,i){return n("li",{key:i},[n("el-checkbox",{attrs:{label:t.value}},[n("el-input",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"option.value"}}),n("el-input",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"option.label"}}),n("i",{staticClass:"iconfont icon-drag drag-option"}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(n){return e.deleteOption(t,i)}}})],1)],1)})),0)],1):"cascader"===e.selectedWidget.type?n("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.optionModel.optionItems,placeholder:e.i18nt("render.hint.selectPlaceholder")},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}}):e._e(),"cascader"===e.selectedWidget.type?n("div",[n("el-button",{attrs:{type:"text"},on:{click:e.importCascaderOptions}},[e._v(e._s(e.i18nt("designer.setting.importOptions")))]),n("el-button",{attrs:{type:"text"},on:{click:e.resetDefault}},[e._v(e._s(e.i18nt("designer.setting.resetDefault")))])],1):e._e(),"radio"===e.selectedWidget.type||"checkbox"===e.selectedWidget.type||"select"===e.selectedWidget.type?n("div",[n("el-button",{attrs:{type:"text"},on:{click:e.addOption}},[e._v(e._s(e.i18nt("designer.setting.addOption")))]),n("el-button",{attrs:{type:"text"},on:{click:e.importOptions}},[e._v(e._s(e.i18nt("designer.setting.importOptions")))]),n("el-button",{attrs:{type:"text"},on:{click:e.resetDefault}},[e._v(e._s(e.i18nt("designer.setting.resetDefault")))])],1):e._e(),e.showImportDialogFlag?n("el-dialog",{staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.importOptions"),visible:e.showImportDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportDialogFlag=t}}},[n("el-form-item",[n("el-input",{attrs:{type:"textarea",rows:"10"},model:{value:e.optionLines,callback:function(t){e.optionLines=t},expression:"optionLines"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"large",type:"primary"},on:{click:e.saveOptions}},[e._v(e._s(e.i18nt("designer.hint.confirm")))]),n("el-button",{attrs:{size:"large",type:""},on:{click:function(t){e.showImportDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e(),e.showImportCascaderDialogFlag?n("el-dialog",{staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.importOptions"),visible:e.showImportCascaderDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportCascaderDialogFlag=t}}},[n("code-editor",{attrs:{mode:"json",readonly:!1},model:{value:e.cascaderOptions,callback:function(t){e.cascaderOptions=t},expression:"cascaderOptions"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"large",type:"primary"},on:{click:e.saveCascaderOptions}},[e._v(e._s(e.i18nt("designer.hint.confirm")))]),n("el-button",{attrs:{size:"large",type:""},on:{click:function(t){e.showImportCascaderDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e()],1)},a=[],l=(n("b0c0"),n("a434"),n("d3b7"),n("159b"),n("ac1f"),n("1276"),n("498a"),n("e9c4"),n("b76a")),c=n.n(l),d=n("9470"),u={name:"OptionItemsSetting",mixins:[r["b"]],components:{Draggable:c.a,CodeEditor:d["a"]},props:{designer:Object,selectedWidget:Object},data:function(){return{showImportDialogFlag:!1,optionLines:"",cascaderOptions:"",showImportCascaderDialogFlag:!1,separator:","}},computed:{optionModel:function(){return this.selectedWidget.options}},watch:{"selectedWidget.options":{deep:!0,handler:function(e){}}},methods:{emitDefaultValueChange:function(){if(this.designer&&this.designer.formWidget){var e=this.designer.formWidget.getWidgetRef(this.selectedWidget.options.name);e&&e.refreshDefaultValue&&e.refreshDefaultValue()}},deleteOption:function(e,t){this.optionModel.optionItems.splice(t,1)},addOption:function(){var e=this.optionModel.optionItems.length+1;this.optionModel.optionItems.push({value:e,label:"new option"})},importOptions:function(){var e=this;this.optionLines="",this.optionModel.optionItems.length>0&&this.optionModel.optionItems.forEach((function(t){t.value===t.label?e.optionLines+=t.value+"\n":e.optionLines+=t.value+e.separator+t.label+"\n"})),this.showImportDialogFlag=!0},saveOptions:function(){var e=this,t=this.optionLines.split("\n");t.length>0?(this.optionModel.optionItems=[],t.forEach((function(t){t&&t.trim()&&(-1!==t.indexOf(e.separator)?e.optionModel.optionItems.push({value:t.split(e.separator)[0],label:t.split(e.separator)[1]}):e.optionModel.optionItems.push({value:t,label:t}))}))):this.optionModel.optionItems=[],this.showImportDialogFlag=!1},resetDefault:function(){"checkbox"===this.selectedWidget.type||"select"===this.selectedWidget.type&&this.selectedWidget.options.multiple?this.optionModel.defaultValue=[]:this.optionModel.defaultValue="",this.emitDefaultValueChange()},importCascaderOptions:function(){this.cascaderOptions=JSON.stringify(this.optionModel.optionItems,null," "),this.showImportCascaderDialogFlag=!0},saveCascaderOptions:function(){try{var e=JSON.parse(this.cascaderOptions);this.optionModel.optionItems=e,this.showImportCascaderDialogFlag=!1}catch(t){this.$message.error(this.i18nt("designer.hint.invalidOptionsData")+t.message)}}}},h=u,f=(n("345a"),n("2877")),p=Object(f["a"])(h,s,a,!1,null,"7202e5fc",null),g=p.exports,m={name:"optionItems-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},components:{OptionItemsSetting:g}},b=m,v=Object(f["a"])(b,i,o,!1,null,"a79f1ebe",null);t["default"]=v.exports},"5d17":function(e,t,n){e.exports=n.p+"img/t7.94cf1cc9.png"},"5e77":function(e,t,n){var i=n("83ab"),o=n("1a2d"),r=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=o(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(r,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5f96":function(e,t,n){"use strict";var i=n("ebb5"),o=n("e330"),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=o([].join);s("join",(function(e){return a(r(this),e)}))},"5faf":function(e,t,n){"use strict";n("47b8")},"5fe5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-cascader-field",use:"icon-cascader-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-cascader-field"><defs><style type="text/css"></style></defs><path d="M661.377376 411.069935V475.664516H314.175312v395.654882h557.144086V475.664516h-48.447312V411.069935h48.447312c35.674839 0 64.594581 28.919742 64.59458 64.594581v395.654882c0 35.674839-28.919742 64.594581-64.59458 64.59458h-557.144086c-35.674839 0-64.600086-28.919742-64.600086-64.59458V475.664516c0-35.674839 28.925247-64.594581 64.600086-64.594581h347.202064z m48.447312-322.983913c35.674839 0 64.600086 28.919742 64.600086 64.59458v403.731269c0 35.674839-28.925247 64.594581-64.600086 64.594581H362.622624v-64.594581h347.202064V152.680602h-557.144086v403.731269h48.447312V621.006452h-48.447312c-35.674839 0-64.594581-28.919742-64.59458-64.594581V152.680602C88.086022 117.005763 117.005763 88.086022 152.680602 88.086022h557.144086z" fill="#3A3A3A" p-id="66339" /></symbol>'});s.a.add(a);t["default"]=a},6038:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.required")}},[n("el-checkbox",{model:{value:e.optionModel.required,callback:function(t){e.$set(e.optionModel,"required",t)},expression:"optionModel.required"}})],1)},o=[],r=n("79fa"),s={name:"required-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"229a90e5",null);t["default"]=c.exports},6062:function(e,t,n){"use strict";var i=n("6d61"),o=n("6566");i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"60a6":function(e,t,n){"use strict";n("de5f")},"60bd":function(e,t,n){"use strict";var i=n("da84"),o=n("e330"),r=n("5e77").PROPER,s=n("ebb5"),a=n("e260"),l=n("b622"),c=l("iterator"),d=i.Uint8Array,u=o(a.values),h=o(a.keys),f=o(a.entries),p=s.aTypedArray,g=s.exportTypedArrayMethod,m=d&&d.prototype[c],b=!!m&&"values"===m.name,v=function(){return u(p(this))};g("entries",(function(){return f(p(this))})),g("keys",(function(){return h(p(this))})),g("values",v,r&&!b),g(c,v,r&&!b)},"612b":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-undo",use:"icon-undo-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-undo"><defs><style type="text/css"></style></defs><path d="M609.206 396.656h-415.702l201.87-199.152c17.787-17.787 17.787-43.185 0-60.973s-41.555-18.641-59.42-0.778l-273.097 266.804c-17.787 17.787-17.787 41.399 0 59.186l273.173 267.115c17.787 17.787 41.555 17.787 59.42-0.078 17.787-17.787 17.787-41.166 0-58.953l-201.948-195.501h415.702c166.219 0 311.155 129.712 311.155 290.029v41.555c0 23.769 15.069 41.555 38.836 41.555s38.836-17.787 38.836-41.555v-41.555c0-207.852-175.073-367.7-388.828-367.7z" p-id="3383" /></symbol>'});s.a.add(a);t["default"]=a},6158:function(e,t,n){},"61ca":function(e,t,n){"use strict";n("a434");t["a"]={methods:{appendTableRow:function(e){this.designer.appendTableRow(e)},appendTableCol:function(e){this.designer.appendTableCol(e)},onContainerDragAdd:function(e,t){var n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange()},onContainerDragUpdate:function(){this.designer.emitHistoryChange()},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},selectWidget:function(e){this.designer.setSelected(e)},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget:function(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget:function(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},cloneContainer:function(e){if(this.parentList){var t=this.designer.cloneContainer(e);this.parentList.splice(this.indexOfParentList+1,0,t),this.designer.setSelected(t),this.designer.emitHistoryChange()}},removeWidget:function(){var e=this;if(this.parentList){var t=null;1===this.parentList.length?this.parentWidget&&(t=this.parentWidget):t=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick((function(){e.parentList.splice(e.indexOfParentList,1),e.designer.setSelected(t),e.designer.emitHistoryChange()}))}}}}},"61e5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"default",value:""}}),n("el-option",{attrs:{label:"primary",value:"primary"}}),n("el-option",{attrs:{label:"success",value:"success"}}),n("el-option",{attrs:{label:"warning",value:"warning"}}),n("el-option",{attrs:{label:"danger",value:"danger"}}),n("el-option",{attrs:{label:"info",value:"info"}}),n("el-option",{attrs:{label:"text",value:"text"}})],1)],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"button-type-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"20d8ef71",null);t["default"]=d.exports},"621a":function(e,t,n){"use strict";var i=n("da84"),o=n("e330"),r=n("83ab"),s=n("a981"),a=n("5e77"),l=n("9112"),c=n("e2cc"),d=n("d039"),u=n("19aa"),h=n("5926"),f=n("50c4"),p=n("0b25"),g=n("77a7"),m=n("e163"),b=n("d2bb"),v=n("241c").f,w=n("9bf2").f,y=n("81d5"),x=n("4dae"),_=n("d44e"),C=n("69f3"),S=a.PROPER,k=a.CONFIGURABLE,M=C.get,E=C.set,$="ArrayBuffer",L="DataView",O="prototype",T="Wrong length",R="Wrong index",A=i[$],F=A,I=F&&F[O],D=i[L],j=D&&D[O],P=Object.prototype,W=i.Array,N=i.RangeError,H=o(y),B=o([].reverse),V=g.pack,z=g.unpack,U=function(e){return[255&e]},K=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return V(e,23,4)},Y=function(e){return V(e,52,8)},X=function(e,t){w(e[O],t,{get:function(){return M(this)[t]}})},Q=function(e,t,n,i){var o=p(n),r=M(e);if(o+t>r.byteLength)throw N(R);var s=M(r.buffer).bytes,a=o+r.byteOffset,l=x(s,a,a+t);return i?l:B(l)},Z=function(e,t,n,i,o,r){var s=p(n),a=M(e);if(s+t>a.byteLength)throw N(R);for(var l=M(a.buffer).bytes,c=s+a.byteOffset,d=i(+o),u=0;u<t;u++)l[c+u]=d[r?u:t-u-1]};if(s){var ee=S&&A.name!==$;if(d((function(){A(1)}))&&d((function(){new A(-1)}))&&!d((function(){return new A,new A(1.5),new A(NaN),ee&&!k})))ee&&k&&l(A,"name",$);else{F=function(e){return u(this,I),new A(p(e))},F[O]=I;for(var te,ne=v(A),ie=0;ne.length>ie;)(te=ne[ie++])in F||l(F,te,A[te]);I.constructor=F}b&&m(j)!==P&&b(j,P);var oe=new D(new F(2)),re=o(j.setInt8);oe.setInt8(0,2147483648),oe.setInt8(1,2147483649),!oe.getInt8(0)&&oe.getInt8(1)||c(j,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else F=function(e){u(this,I);var t=p(e);E(this,{bytes:H(W(t),0),byteLength:t}),r||(this.byteLength=t)},I=F[O],D=function(e,t,n){u(this,j),u(e,I);var i=M(e).byteLength,o=h(t);if(o<0||o>i)throw N("Wrong offset");if(n=void 0===n?i-o:f(n),o+n>i)throw N(T);E(this,{buffer:e,byteLength:n,byteOffset:o}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},j=D[O],r&&(X(F,"byteLength"),X(D,"buffer"),X(D,"byteLength"),X(D,"byteOffset")),c(j,{getInt8:function(e){return Q(this,1,e)[0]<<24>>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return G(Q(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return G(Q(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return z(Q(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return z(Q(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Z(this,1,e,U,t)},setUint8:function(e,t){Z(this,1,e,U,t)},setInt16:function(e,t){Z(this,2,e,K,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Z(this,2,e,K,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Z(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Z(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Z(this,4,e,J,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Z(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});_(F,$),_(D,L),e.exports={ArrayBuffer:F,DataView:D}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"649e":function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").some,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("some",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},"64e2":function(e,t,n){e.exports=n.p+"img/t6.40836551.png"},"653d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:e.optionModel.max},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"rate-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"42328733",null);t["default"]=d.exports},6547:function(e,t,n){var i=n("e330"),o=n("5926"),r=n("577e"),s=n("1d80"),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),d=function(e){return function(t,n){var i,d,u=r(s(t)),h=o(n),f=u.length;return h<0||h>=f?e?"":void 0:(i=l(u,h),i<55296||i>56319||h+1===f||(d=l(u,h+1))<56320||d>57343?e?a(u,h):i:e?c(u,h,h+2):d-56320+(i-55296<<10)+65536)}};e.exports={codeAt:d(!1),charAt:d(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,o=n("7c73"),r=n("e2cc"),s=n("0366"),a=n("19aa"),l=n("2266"),c=n("7dd0"),d=n("2626"),u=n("83ab"),h=n("f183").fastKey,f=n("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,i){a(e,f),p(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),u||(e.size=0),void 0!=i&&l(i,e[c],{that:e,AS_ENTRIES:n})})),f=d.prototype,m=g(t),b=function(e,t,n){var i,o,r=m(e),s=v(e,t);return s?s.value=n:(r.last=s={index:o=h(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=s),i&&(i.next=s),u?r.size++:e.size++,"F"!==o&&(r.index[o]=s)),e},v=function(e,t){var n,i=m(e),o=h(t);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==t)return n};return r(f,{clear:function(){var e=this,t=m(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,u?t.size=0:e.size=0},delete:function(e){var t=this,n=m(t),i=v(t,e);if(i){var o=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==i&&(n.first=o),n.last==i&&(n.last=r),u?n.size--:t.size--}return!!i},forEach:function(e){var t,n=m(this),i=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),r(f,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),u&&i(f,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var i=t+" Iterator",o=g(t),r=g(i);c(e,t,(function(e,t){p(this,{type:i,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},"657e":function(e,t,n){},6592:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-data-table",use:"icon-data-table-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-data-table"><defs><style type="text/css"></style></defs><path d="M915.692 39.385H108.308c-15.754 0-29.539 13.784-29.539 29.538v98.462c0 15.753 13.785 29.538 29.539 29.538h807.384c15.754 0 29.539-13.785 29.539-29.538V68.923c0-15.754-13.785-29.538-29.539-29.538zM285.538 275.692h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V305.23c0-15.754-13.785-29.539-29.539-29.539z m315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V305.23c0-15.754-13.785-29.539-29.539-29.539z m315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V305.23c0-15.754-13.785-29.539-29.539-29.539zM285.538 472.615h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539z m315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539z m315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zM285.538 669.538h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539z m315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539z m315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zM285.538 866.462h-177.23c-15.754 0-29.539 13.784-29.539 29.538v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V896c0-15.754-13.785-29.538-29.539-29.538z m315.077 0h-177.23c-15.754 0-29.539 13.784-29.539 29.538v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V896c0-15.754-13.785-29.538-29.539-29.538z m315.077 0h-177.23c-15.754 0-29.539 13.784-29.539 29.538v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V896c0-15.754-13.785-29.538-29.539-29.538z" p-id="11935" /></symbol>'});s.a.add(a);t["default"]=a},"65d0":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.validation"))+" "),n("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.validationHelp")}},[n("i",{staticClass:"el-icon-info"})])],1),n("el-select",{attrs:{filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.validation,callback:function(t){e.$set(e.optionModel,"validation",t)},expression:"optionModel.validation"}},e._l(e.fieldValidators,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"validation-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{fieldValidators:[{value:"number",label:this.i18nt("designer.hint.numberValidator")},{value:"letter",label:this.i18nt("designer.hint.letterValidator")},{value:"letterAndNumber",label:this.i18nt("designer.hint.letterAndNumberValidator")},{value:"mobilePhone",label:this.i18nt("designer.hint.mobilePhoneValidator")},{value:"email",label:this.i18nt("designer.hint.emailValidator")},{value:"url",label:this.i18nt("designer.hint.urlValidator")},{value:"noChinese",label:this.i18nt("designer.hint.noChineseValidator")},{value:"chinese",label:this.i18nt("designer.hint.chineseValidator")}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"fa3fa498",null);t["default"]=c.exports},"65f0":function(e,t,n){var i=n("0b42");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},6623:function(e,t,n){},"663b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.switchWidth")}},[n("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.switchWidth,callback:function(t){e.$set(e.optionModel,"switchWidth",t)},expression:"optionModel.switchWidth"}})],1)},o=[],r=n("79fa"),s={name:"switchWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"556424f5",null);t["default"]=c.exports},6656:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.valueFormat")}},[n("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.valueFormat,callback:function(t){e.$set(e.optionModel,"valueFormat",t)},expression:"optionModel.valueFormat"}},[n("el-option",{attrs:{label:"yyyy-MM-dd",value:"yyyy-MM-dd"}}),n("el-option",{attrs:{label:"yyyy-MM-dd HH:mm:ss",value:"yyyy-MM-dd HH:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-valueFormat-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"3f656d0a",null);t["default"]=c.exports},6732:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.gridColHeight")}},[n("el-input",{staticClass:"hide-spin-button",attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.optionModel.colHeight,callback:function(t){e.$set(e.optionModel,"colHeight",t)},expression:"optionModel.colHeight"}})],1)],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"colHeight-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"9bc52e60",null);t["default"]=d.exports},6873:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.suffixIcon")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.suffixIcon,callback:function(t){e.$set(e.optionModel,"suffixIcon",t)},expression:"optionModel.suffixIcon"}})],1)},o=[],r=n("79fa"),s={name:"suffixIcon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"bef2ffc8",null);t["default"]=c.exports},"68ee":function(e,t,n){var i=n("e330"),o=n("d039"),r=n("1626"),s=n("f5df"),a=n("d066"),l=n("8925"),c=function(){},d=[],u=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=i(h.exec),p=!h.exec(c),g=function(e){if(!r(e))return!1;try{return u(c,d,e),!0}catch(t){return!1}},m=function(e){if(!r(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!f(h,l(e))};e.exports=!u||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},"68f1":function(e,t,n){},"691a":function(e,t,n){},6947:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-date-range-field",use:"icon-date-range-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-date-range-field"><defs><style type="text/css"></style></defs><path d="M887.467 192.853H786.773v-73.386c0-10.24-6.826-17.067-17.066-17.067s-17.067 6.827-17.067 17.067v73.386H303.787v-73.386c0-10.24-6.827-17.067-17.067-17.067s-17.067 6.827-17.067 17.067v73.386H168.96c-46.08 0-85.333 37.547-85.333 85.334v558.08c0 46.08 37.546 85.333 85.333 85.333h718.507c46.08 0 85.333-37.547 85.333-85.333v-558.08c0-47.787-37.547-85.334-85.333-85.334zM168.96 226.987h100.693v66.56c0 10.24 6.827 17.066 17.067 17.066s17.067-6.826 17.067-17.066v-66.56h450.56v66.56c0 10.24 6.826 17.066 17.066 17.066s17.067-6.826 17.067-17.066v-66.56h98.987c27.306 0 51.2 22.186 51.2 51.2v88.746H117.76v-88.746c0-29.014 22.187-51.2 51.2-51.2z m718.507 660.48H168.96c-27.307 0-51.2-22.187-51.2-51.2v-435.2h820.907v435.2c0 27.306-22.187 51.2-51.2 51.2z" p-id="46574" /><path d="M858.453 493.227H327.68c-10.24 0-17.067 6.826-17.067 17.066V624.64H194.56c-10.24 0-17.067 6.827-17.067 17.067v133.12c0 10.24 6.827 17.066 17.067 17.066H460.8c10.24 0 17.067-6.826 17.067-17.066V660.48h380.586c10.24 0 17.067-6.827 17.067-17.067v-133.12c0-10.24-6.827-17.066-17.067-17.066zM445.44 527.36v97.28h-98.987v-97.28h98.987z m-230.4 131.413h98.987v98.987H215.04v-98.987z m131.413 97.28v-97.28h98.987v97.28h-98.987z m133.12-228.693h97.28v98.987h-97.28V527.36z m131.414 0h98.986v98.987h-98.986V527.36z m230.4 97.28H742.4v-98.987h98.987v98.987z" p-id="46575" /></symbol>'});s.a.add(a);t["default"]=a},"69f3":function(e,t,n){var i,o,r,s=n("7f9a"),a=n("da84"),l=n("e330"),c=n("861d"),d=n("9112"),u=n("1a2d"),h=n("c6cd"),f=n("f772"),p=n("d012"),g="Object already initialized",m=a.TypeError,b=a.WeakMap,v=function(e){return r(e)?o(e):i(e,{})},w=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(s||h.state){var y=h.state||(h.state=new b),x=l(y.get),_=l(y.has),C=l(y.set);i=function(e,t){if(_(y,e))throw new m(g);return t.facade=e,C(y,e,t),t},o=function(e){return x(y,e)||{}},r=function(e){return _(y,e)}}else{var S=f("state");p[S]=!0,i=function(e,t){if(u(e,S))throw new m(g);return t.facade=e,d(e,S,t),t},o=function(e){return u(e,S)?e[S]:{}},r=function(e){return u(e,S)}}e.exports={set:i,get:o,has:r,enforce:v,getterFor:w}},"6a79":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{staticClass:"table-cell",class:[e.customClass],style:{width:e.widget.options.cellWidth+" !important"||!1,height:e.widget.options.cellHeight+" !important"||!1},attrs:{colspan:e.widget.options.colspan||1,rowspan:e.widget.options.rowspan||1}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-item",{key:i,tag:"component",attrs:{widget:t,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:i,tag:"component",attrs:{field:t,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]]}))],2)},o=[],r=n("5530"),s=(n("a9e3"),n("79fa")),a=n("d67f"),l=n("c029"),c={name:"TableCellItem",componentName:"ContainerItem",mixins:[s["b"],a["a"]],components:Object(r["a"])({},l["a"]),props:{widget:Object,rowIndex:Number,colIndex:Number},inject:["refList","globalModel"],computed:{customClass:function(){return this.widget.options.customClass||""}},created:function(){},methods:{}},d=c,u=(n("c6b4"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"998819f8",null);t["default"]=h.exports},"6c26":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onChange","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onChange",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onChange-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["value","oldValue","subFormData","rowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4d21c55c",null);t["default"]=d.exports},"6c62":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:e.optionModel.type,format:e.optionModel.format,"value-format":e.optionModel.valueFormat},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})},o=[],r=n("79fa"),s=n("b2bf"),a={name:"date-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"0fefc087",null);t["default"]=d.exports},"6caf":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.filterable")}},[n("el-checkbox",{model:{value:e.optionModel.filterable,callback:function(t){e.$set(e.optionModel,"filterable",t)},expression:"optionModel.filterable"}})],1)},o=[],r=n("79fa"),s={name:"filterable-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"da8b8942",null);t["default"]=c.exports},"6d04":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-checkbox-group",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,size:e.field.options.size},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.buttonStyle?e._l(e.field.options.optionItems,(function(t,i){return n("el-checkbox-button",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])})):e._l(e.field.options.optionItems,(function(t,i){return n("el-checkbox",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])}))],2)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"checkbox-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("3cf7"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"de756962",null);t["default"]=f.exports},"6d29":function(e,t,n){"use strict";n("ceaf")},"6d4f":function(e,t,n){(function(e){(function(){var e="ace",t=function(){return this}();if(t||"undefined"==typeof window||(t=window),e||"undefined"===typeof requirejs){var n=function(e,t,i){"string"===typeof e?(2==arguments.length&&(i=t),n.modules[e]||(n.payloads[e]=i,n.modules[e]=null)):n.original?n.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};n.modules={},n.payloads={};var i=function(e,t,n){if("string"===typeof t){var i=s(e,t);if(void 0!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var r=[],a=0,l=t.length;a<l;++a){var c=s(e,t[a]);if(void 0==c&&o.original)return;r.push(c)}return n&&n.apply(null,r)||!0}},o=function(e,t){var n=i("",e,t);return void 0==n&&o.original?o.original.apply(this,arguments):n},r=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return r(e,n[0])+"!"+r(e,n[1])}if("."==t.charAt(0)){var i=e.split("/").slice(0,-1).join("/");t=i+"/"+t;while(-1!==t.indexOf(".")&&o!=t){var o=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return t},s=function(e,t){t=r(e,t);var o=n.modules[t];if(!o){if(o=n.payloads[t],"function"===typeof o){var s={},a={id:t,uri:"",exports:s,packaged:!0},l=function(e,n){return i(t,e,n)},c=o(l,s,a);s=c||a.exports,n.modules[t]=s,delete n.payloads[t]}o=n.modules[t]=s||o}return o};a(e)}function a(e){var i=t;e&&(t[e]||(t[e]={}),i=t[e]),i.define&&i.define.packaged||(n.original=i.define,i.define=n,i.define.packaged=!0),i.require&&i.require.packaged||(o.original=i.require,i.require=o,i.require.packaged=!0)}})(),ace.define("ace/lib/fixoldbrowsers",["require","exports","module"],(function(e,t,n){"use strict";"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var i="object"==typeof navigator?navigator:{},o=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),r=i.userAgent||"",s=i.appName||"";t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==s||s.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=r.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(r.split(" Edge/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isAndroid=r.indexOf("Android")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var i,o=e("./useragent"),r="http://www.w3.org/1999/xhtml";t.buildDom=function e(t,n,i){if("string"==typeof t&&t){var o=document.createTextNode(t);return n&&n.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var r=[],s=0;s<t.length;s++){var a=e(t[s],n,i);a&&r.push(a)}return r}var l=document.createElement(t[0]),c=t[1],d=1;c&&"object"==typeof c&&!Array.isArray(c)&&(d=2);for(s=d;s<t.length;s++)e(t[s],l,i);return 2==d&&Object.keys(c).forEach((function(e){var t=c[e];"class"===e?l.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?l[e]=t:"ref"===e?i&&(i[t]=l):"style"===e?"string"==typeof t&&(l.style.cssText=t):null!=t&&l.setAttribute(e,t)})),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||r,e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){var n=t?t.ownerDocument:document;return n.createTextNode(e)},t.createFragment=function(e){var t=e?e.ownerDocument:document;return t.createDocumentFragment()},t.hasCssClass=function(e,t){var n=(e.className+"").split(/\s+/g);return-1!==n.indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){var n=e.className.split(/\s+/g);while(1){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){var n=e.className.split(/\s+/g),i=!0;while(1){var o=n.indexOf(t);if(-1==o)break;i=!1,n.splice(o,1)}return i&&n.push(t),e.className=n.join(" "),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if(t=t||document,n=t.querySelectorAll("style"))while(i<n.length)if(n[i++].id===e)return!0};var s=[];function a(){var e=s;s=null,e&&e.forEach((function(e){l(e[0],e[1])}))}function l(e,n,o){if("undefined"!=typeof document){if(s)if(o)a();else if(!1===o)return s.push([e,n]);if(!i){var r=o;o&&o.getRootNode?(r=o.getRootNode(),r&&r!=o||(r=document)):r=document;var l=r.ownerDocument||r;if(n&&t.hasCssString(n,r))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var c=t.createElement("style");c.appendChild(l.createTextNode(e)),n&&(c.id=n),r==l&&(r=t.getDocumentHead(l)),r.insertBefore(c,r.firstChild)}}}if(t.useStrictCSP=function(e){i=e,0==e?a():s||(s=[])},t.importCssString=l,t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var i=t.createElement("ace_outer"),o=i.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",i.appendChild(n);var r=e.documentElement;r.appendChild(i);var s=n.offsetWidth;o.overflow="scroll";var a=n.offsetWidth;return s==a&&(a=i.clientWidth),r.removeChild(i),s-a},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!o.isWin||"undefined"!==typeof window&&window.devicePixelRatio>=1.5,o.isChromeOS&&(t.HI_DPI=!1),"undefined"!==typeof document){var c=document.createElement("div");t.HI_DPI&&void 0!==c.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),o.isEdge||"undefined"===typeof c.style.animationName||(t.HAS_CSS_ANIMATION=!0),c=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./oop"),o=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,o),t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i,o=e("./keys"),r=e("./useragent"),s=null,a=0;function l(){i=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){i={passive:!1}}})}catch(e){}}function c(){return void 0==i&&l(),i}function d(e,t,n){this.elem=e,this.type=t,this.callback=n}d.prototype.destroy=function(){h(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var u=t.addListener=function(e,t,n,i){e.addEventListener(t,n,c()),i&&i.$toDestroy.push(new d(e,t,n))},h=t.removeListener=function(e,t,n){e.removeEventListener(t,n,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var i=e&&e.ownerDocument||document;function o(e){t&&t(e),n&&n(e),h(i,"mousemove",t),h(i,"mouseup",o),h(i,"dragstart",o)}return u(i,"mousemove",t),u(i,"mouseup",o),u(i,"dragstart",o),o},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?u(e,"mousewheel",(function(e){var n=8;void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/n,e.wheelY=-e.wheelDeltaY/n):(e.wheelX=0,e.wheelY=-e.wheelDelta/n),t(e)}),n):"onwheel"in e?u(e,"wheel",(function(e){var n=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*n||0,e.wheelY=e.deltaY*n||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0);break}t(e)}),n):u(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),n)},t.addMultiMouseDownListener=function(e,n,i,o,s){var a,l,c,d=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};function f(e){if(0!==t.getButton(e)?d=0:e.detail>1?(d++,d>4&&(d=1)):d=1,r.isIE){var s=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;c&&!s||(d=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[d-1]||600),1==d&&(a=e.clientX,l=e.clientY)}if(e._clicks=d,i[o]("mousedown",e),d>4)d=0;else if(d>1)return i[o](h[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){u(e,"mousedown",f,s)}))};var f=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function p(e,t,n){var i=f(t);if(!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),s.altGr){if(3==(3&i))return;s.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==s[n]&&(a=t.timeStamp);else if(18===n&&3===i&&2===l){var c=t.timeStamp-a;c<50&&(s.altGr=!0)}}}if(n in o.MODIFIER_KEYS&&(n=-1),!i&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,i,-n),t.defaultPrevented))return}if(r.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,i,n)}function g(){s=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[f(e)]},t.addCommandKeyListener=function(e,n,i){if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var o=null;u(e,"keydown",(function(e){o=e.keyCode}),i),u(e,"keypress",(function(e){return p(n,e,o)}),i)}else{var a=null;u(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return a=e.defaultPrevented,t}),i),u(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)}),i),u(e,"keyup",(function(e){s[e.keyCode]=null}),i),s||(g(),u(window,"focus",g))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var i="zero-timeout-message-"+m++,o=function(r){r.data==i&&(t.stopPropagation(r),h(n,"message",o),e())};u(n,"message",o),n.postMessage(i,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t){return e.row-t.row||e.column-t.column},o=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(i.row,i.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(i.row,i.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return o.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var r={row:e,column:t};return o.fromPoints(i||this.start,r||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new o(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(o.prototype),o.fromPoints=function(e,t){return new o(e.row,e.column,t.row,t.column)},o.comparePoints=i,o.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=o})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){var n="";while(t>0)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n[i]=e(t[i]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n[i]=e(t[i]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(n,e||0),i};return i.schedule=i,i.call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},o=function(e){null==n&&(n=setTimeout(i,e||t))};return o.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},o.schedule=o,o.call=function(){this.cancel(),e()},o.cancel=function(){n&&clearTimeout(n),n=null},o.isPending=function(){return n},o}})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("../clipboard"),l=o.isChrome<18,c=o.isIE,d=o.isChrome>63,u=400,h=e("../lib/keys"),f=h.KEY_MODS,p=o.isIOS,g=p?/\s/:/\n/,m=o.isMobile,b=function(e,t){var n=r.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var b=!1,v=!1,w=!1,y=!1,x="";m||(n.style.fontSize="1px");var _=!1,C=!1,S="",k=0,M=0,E=0;try{var $=document.activeElement===n}catch(X){}i.addListener(n,"blur",(function(e){C||(t.onBlur(e),$=!1)}),t),i.addListener(n,"focus",(function(e){if(!C){if($=!0,o.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),o.isEdge?setTimeout(L):L()}}),t),this.$focusScroll=!1,this.focus=function(){if(x||d||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(X){return}var i=[];if(t){var o=n.parentElement;while(o&&1==o.nodeType)i.push(o),o.setAttribute("ace_nocontext",!0),o=!o.parentElement&&o.getRootNode?o.getRootNode().host:o.parentElement}n.focus({preventScroll:!0}),t&&i.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return $},t.on("beforeEndOperation",(function(){var e=t.curOp,i=e&&e.command&&e.command.name;if("insertstring"!=i){var o=i&&(e.docChanged||e.selectionChanged);w&&o&&(S=n.value="",V()),L()}}));var L=p?function(e){if($&&(!b||e)&&!y){e||(e="");var i="\n ab"+e+"cde fg\n";i!=n.value&&(n.value=S=i);var o=4,r=4+(e.length||(t.selection.isEmpty()?0:1));k==o&&M==r||n.setSelectionRange(o,r),k=o,M=r}}:function(){if(!w&&!y&&($||A)){w=!0;var e=0,i=0,o="";if(t.session){var r=t.selection,s=r.getRange(),a=r.cursor.row;if(e=s.start.column,i=s.end.column,o=t.session.getLine(a),s.start.row!=a){var l=t.session.getLine(a-1);e=s.start.row<a-1?0:e,i+=l.length+1,o=l+"\n"+o}else if(s.end.row!=a){var c=t.session.getLine(a+1);i=s.end.row>a+1?c.length:i,i+=o.length+1,o=o+"\n"+c}else m&&a>0&&(o="\n"+o,i+=1,e+=1);o.length>u&&(e<u&&i<u?o=o.slice(0,u):(o="\n",e==i?e=i=0:(e=0,i=1)))}var d=o+"\n\n";if(d!=S&&(n.value=S=d,k=M=d.length),A&&(k=n.selectionStart,M=n.selectionEnd),M!=i||k!=e||n.selectionEnd!=M)try{n.setSelectionRange(e,i),k=e,M=i}catch(X){}w=!1}};this.resetSelection=L,$&&t.onFocus();var O=function(e){return 0===e.selectionStart&&e.selectionEnd>=S.length&&e.value===S&&S&&e.selectionEnd!==M},T=function(e){w||(b?b=!1:O(n)?(t.selectAll(),L()):m&&n.selectionStart!=k&&L())},R=null;this.setInputHandler=function(e){R=e},this.getInputHandler=function(){return R};var A=!1,F=function(e,i){if(A&&(A=!1),v)return L(),e&&t.onPaste(e),v=!1,"";var r=n.selectionStart,s=n.selectionEnd,a=k,l=S.length-M,c=e,d=e.length-r,u=e.length-s,h=0;while(a>0&&S[h]==e[h])h++,a--;c=c.slice(h),h=1;while(l>0&&S.length-h>k-1&&S[S.length-h]==e[e.length-h])h++,l--;d-=h-1,u-=h-1;var f=c.length-h+1;if(f<0&&(a=-f,f=0),c=c.slice(0,f),!i&&!c&&!d&&!a&&!l&&!u)return"";y=!0;var p=!1;return o.isAndroid&&". "==c&&(c=" ",p=!0),c&&!a&&!l&&!d&&!u||_?t.onTextInput(c):t.onTextInput(c,{extendLeft:a,extendRight:l,restoreStart:d,restoreEnd:u}),y=!1,S=e,k=r,M=s,E=u,p?"\n":c},I=function(e){if(w)return B();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var i=n.value,o=F(i,!0);(i.length>u+100||g.test(o)||m&&k<1&&k==M)&&L()},D=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!l){var o=c||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return D(e,t,!0)}}},j=function(e,o){var r=t.getCopyText();if(!r)return i.preventDefault(e);D(e,r)?(p&&(L(r),b=r,setTimeout((function(){b=!1}),10)),o?t.onCut():t.onCopy(),i.preventDefault(e)):(b=!0,n.value=r,n.select(),setTimeout((function(){b=!1,L(),o?t.onCut():t.onCopy()})))},P=function(e){j(e,!0)},W=function(e){j(e,!1)},N=function(e){var r=D(e);a.pasteCancelled()||("string"==typeof r?(r&&t.onPaste(r,e),o.isIE&&setTimeout(L),i.preventDefault(e)):(n.value="",v=!0))};i.addCommandKeyListener(n,t.onCommandKey.bind(t),t),i.addListener(n,"select",T,t),i.addListener(n,"input",I,t),i.addListener(n,"cut",P,t),i.addListener(n,"copy",W,t),i.addListener(n,"paste",N,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!o.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:W(e);break;case 86:N(e);break;case 88:P(e);break}}),t);var H=function(e){if(!w&&t.onCompositionStart&&!t.$readOnly&&(w={},!_)){e.data&&(w.useTextareaForIME=!1),setTimeout(B,0),t._signal("compositionStart"),t.on("mousedown",z);var i=t.getSelectionRange();i.end.row=i.start.row,i.end.column=i.start.column,w.markerRange=i,w.selectionStart=k,t.onCompositionStart(w),w.useTextareaForIME?(S=n.value="",k=0,M=0):(n.msGetInputContext&&(w.context=n.msGetInputContext()),n.getInputContext&&(w.context=n.getInputContext()))}},B=function(){if(w&&t.onCompositionUpdate&&!t.$readOnly){if(_)return z();if(w.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;F(e),w.markerRange&&(w.context&&(w.markerRange.start.column=w.selectionStart=w.context.compositionStartOffset),w.markerRange.end.column=w.markerRange.start.column+M-w.selectionStart+E)}}},V=function(e){t.onCompositionEnd&&!t.$readOnly&&(w=!1,t.onCompositionEnd(),t.off("mousedown",z),e&&I())};function z(){C=!0,n.blur(),n.focus(),C=!1}var U,K=s.delayedCall(B,50).schedule.bind(null,null);function q(e){27==e.keyCode&&n.value.length<n.selectionStart&&(w||(S=n.value),k=M=-1,L()),K()}function G(){clearTimeout(U),U=setTimeout((function(){x&&(n.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}i.addListener(n,"compositionstart",H,t),i.addListener(n,"compositionupdate",B,t),i.addListener(n,"keyup",q,t),i.addListener(n,"keydown",K,t),i.addListener(n,"compositionend",V,t),this.getElement=function(){return n},this.setCommandMode=function(e){_=e,n.readOnly=!1},this.setReadOnly=function(e){_||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){A=!0,L(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){x||(x=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+(o.isIE?"opacity:0.1;":"")+"text-indent: -"+(k+M)*t.renderer.characterWidth*.5+"px;";var a=t.container.getBoundingClientRect(),l=r.computedStyle(t.container),c=a.top+(parseInt(l.borderTopWidth)||0),d=a.left+(parseInt(a.borderLeftWidth)||0),u=a.bottom-c-n.clientHeight-2,h=function(e){r.translate(n,e.clientX-d-2,Math.min(e.clientY-c-2,u))};h(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(U),o.isWin&&i.capture(t.container,h,G))},this.onContextMenuClose=G;var J=function(e){t.textInput.onContextMenu(e),G()};function Y(e,t,n){var i=null,o=!1;n.addEventListener("keydown",(function(e){i&&clearTimeout(i),o=!0}),!0),n.addEventListener("keyup",(function(e){i=setTimeout((function(){o=!1}),100)}),!0);var r=function(e){if(document.activeElement===n&&!(o||w||t.$mouseHandler.isMousePressed)&&!b){var i=n.selectionStart,r=n.selectionEnd,s=null,a=0;if(0==i?s=h.up:1==i?s=h.home:r>M&&"\n"==S[r]?s=h.end:i<k&&" "==S[i-1]?(s=h.left,a=f.option):i<k||i==k&&M!=k&&i==r?s=h.left:r>M&&S.slice(0,r).split("\n").length>2?s=h.down:r>M&&" "==S[r-1]?(s=h.right,a=f.option):(r>M||r==M&&M!=k&&i==r)&&(s=h.right),i!==r&&(a|=f.shift),s){var l=t.onCommandKey({},a,s);if(!l&&t.commands){s=h.keyCodeToString(s);var c=t.commands.findKeyCommand(a,s);c&&t.execCommand(c)}k=i,M=r,L("")}}};document.addEventListener("selectionchange",r),t.on("destroy",(function(){document.removeEventListener("selectionchange",r)}))}i.addListener(n,"mouseup",J,t),i.addListener(n,"mousedown",(function(e){e.preventDefault(),G()}),t),i.addListener(t.renderer.scroller,"contextmenu",J,t),i.addListener(n,"contextmenu",J,t),p&&Y(e,t,n)};t.TextInput=b,t.$setUserAgentForTests=function(e,t){m=e,p=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/useragent"),o=0,r=550;function s(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function a(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,r=e.getButton();if(0!==r){var s=o.getSelectionRange(),a=s.isEmpty();return(a||1==r)&&o.selection.moveToPosition(n),void(2==r&&(o.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var o=l(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](i.row,i.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==r&&s<=0)t=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&r>=0)t=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==r&&1==s)i=o.end,t=o.start;else{var a=l(this.$clickSelection,i);i=a.cursor,t=a.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>o||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session,o=i.getBracketRange(t);o?(o.isEmpty()&&(o.start.column--,o.end.column++),this.setState("select")):(o=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=o,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,o=i-n.t,s=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<r&&(s=(s+n.vx)/2,a=(a+n.vy)/2);var l=Math.abs(s/a),c=!1;if(l>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=i;else if(i-n.allowed<r){var d=Math.abs(s)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy);d?(c=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=s,n.vy=a,c?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(s.prototype),t.DefaultHandlers=s})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){var t,n,o,s=e.editor,a=s.renderer.$gutterLayer,c=new l(s.container);function d(){var t=n.getDocumentPosition().row,i=a.$annotations[t];if(!i)return u();var r=s.session.getLength();if(t==r){var l=s.renderer.pixelToScreenCoordinates(0,n.y).row,d=n.$pos;if(l>s.session.documentToScreenRow(d.row,d.column))return u()}if(o!=i)if(o=i.text.join("<br/>"),c.setHtml(o),c.show(),s._signal("showGutterTooltip",c),s.on("mousewheel",u),e.$tooltipFollowsMouse)h(n);else{var f=n.domEvent.target,p=f.getBoundingClientRect(),g=c.getElement().style;g.left=p.right+"px",g.top=p.bottom+"px"}}function u(){t&&(t=clearTimeout(t)),o&&(c.hide(),o=null,s._signal("hideGutterTooltip",c),s.off("mousewheel",u))}function h(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(s.isFocused()&&0==t.getButton()){var n=a.getRegion(t);if("foldWidgets"!=n){var i=t.getDocumentPosition().row,o=s.session.selection;if(t.getShiftKey())o.selectTo(i,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}})),e.editor.setDefaultHandler("guttermousemove",(function(r){var s=r.domEvent.target||r.domEvent.srcElement;if(i.hasCssClass(s,"ace_fold-widget"))return u();o&&e.$tooltipFollowsMouse&&h(r),n=r,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?d():u()}),50))})),r.addListener(s.renderer.$gutter,"mouseout",(function(e){n=null,o&&!t&&(t=setTimeout((function(){t=null,u()}),50))}),s),s.on("changeSession",u)}function l(e){s.call(this,e)}o.inherits(l,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();e+=15,t+=15,e+o>n&&(e-=e+o-n),t+r>i&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(l.prototype),t.GutterHandler=a})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(r.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/event"),r=e("../lib/useragent"),s=200,a=200,l=5;function c(e){var t=e.editor,n=i.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";var c=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];c.forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var u,h,f,p,g,m,b,v,w,y,x,_=t.container,C=0;function S(e,n){var i=Date.now(),o=!n||e.row!=n.row,r=!n||e.column!=n.column;if(!y||o||r)t.moveCursorToPosition(e),y=i,x={x:h,y:f};else{var s=d(x.x,x.y,h,f);s>l?y=null:i-y>=a&&(t.renderer.scrollCursorIntoView(),y=null)}}function k(e,n){var i=Date.now(),o=t.renderer.layerConfig.lineHeight,r=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),l={x:{left:h-a.left,right:a.right-h},y:{top:f-a.top,bottom:a.bottom-f}},c=Math.min(l.x.left,l.x.right),d=Math.min(l.y.top,l.y.bottom),u={row:e.row,column:e.column};c/r<=2&&(u.column+=l.x.left<l.x.right?-3:2),d/o<=1&&(u.row+=l.y.top<l.y.bottom?-1:1);var p=e.row!=u.row,g=e.column!=u.column,m=!n||e.row!=n.row;p||g&&!m?w?i-w>=s&&t.renderer.scrollCursorIntoView(u):w=i:w=null}function M(){var e=m;m=t.renderer.screenToTextCoordinates(h,f),S(m,e),k(m,e)}function E(){g=t.selection.toOrientedRange(),u=t.session.addMarker(g,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),M(),p=setInterval(M,20),C=0,o.addListener(document,"mousemove",O)}function $(){clearInterval(p),t.session.removeMarker(u),u=null,t.selection.fromOrientedRange(g),t.isFocused()&&!v&&t.$resetCursorStyle(),g=null,m=null,C=0,w=null,y=null,o.removeListener(document,"mousemove",O)}this.onDragStart=function(e){if(this.cancelDrag||!_.draggable){var i=this;return setTimeout((function(){i.startSelect(),i.captureMouse(e)}),0),e.preventDefault()}g=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),o.setDragImage&&o.setDragImage(n,0,0),setTimeout((function(){t.container.removeChild(n)})),o.clearData(),o.setData("Text",t.session.getTextRange()),v=!0,this.setState("drag")},this.onDragEnd=function(e){if(_.draggable=!1,v=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;b||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&T(e.dataTransfer))return h=e.clientX,f=e.clientY,u||E(),C++,e.dataTransfer.dropEffect=b=R(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&T(e.dataTransfer))return h=e.clientX,f=e.clientY,u||(E(),C++),null!==L&&(L=null),e.dataTransfer.dropEffect=b=R(e),o.preventDefault(e)},this.onDragLeave=function(e){if(C--,C<=0&&u)return $(),b=null,o.preventDefault(e)},this.onDrop=function(e){if(m){var n=e.dataTransfer;if(v)switch(b){case"move":g=g.contains(m.row,m.column)?{start:m,end:m}:t.moveText(g,m);break;case"copy":g=t.moveText(g,m,!0);break}else{var i=n.getData("Text");g={start:m,end:t.session.insert(m,i)},t.focus(),b=null}return $(),o.preventDefault(e)}},o.addListener(_,"dragstart",this.onDragStart.bind(e),t),o.addListener(_,"dragend",this.onDragEnd.bind(e),t),o.addListener(_,"dragenter",this.onDragEnter.bind(e),t),o.addListener(_,"dragover",this.onDragOver.bind(e),t),o.addListener(_,"dragleave",this.onDragLeave.bind(e),t),o.addListener(_,"drop",this.onDrop.bind(e),t);var L=null;function O(){null==L&&(L=setTimeout((function(){null!=L&&u&&$()}),20))}function T(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function R(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],i=r.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var s="none";return i&&t.indexOf(o)>=0?s="copy":n.indexOf(o)>=0?s="move":t.indexOf(o)>=0&&(s="copy"),s}}function d(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=r.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(r.isIE&&"dragReady"==this.state){var n=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton(),o=e.domEvent.detail||1;if(1===o&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var s=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in s&&(s.unselectable="on"),t.getDragDelay()){if(r.isWebKit){this.cancelDrag=!0;var a=t.container;a.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(c.prototype),t.DragdropHandler=c})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./mouse_event").MouseEvent,o=e("../lib/event"),r=e("../lib/dom");t.addTouchListeners=function(e,t){var n,s,a,l,c,d,u,h,f,p="scroll",g=0,m=0,b=0,v=0;function w(){var e=window.navigator&&window.navigator.clipboard,n=!1,i=function(){var i=t.getCopyText(),o=t.session.getUndoManager().hasUndo();f.replaceChild(r.buildDom(n?["span",!i&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],i&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],i&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],o&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),f.firstChild)},o=function(o){var r=o.target.getAttribute("action");if("more"==r||!n)return n=!n,i();"paste"==r?e.readText().then((function(e){t.execCommand(r,e)})):r&&("cut"!=r&&"copy"!=r||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(r)),f.firstChild.style.display="none",n=!1,"openCommandPallete"!=r&&t.focus()};f=r.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),o(e)},onclick:o},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function y(){f||w();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),i=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,r=t.container.getBoundingClientRect();f.style.top=n.pageY-r.top-3+"px",n.pageX-r.left<r.width-70?(f.style.left="",f.style.right="10px"):(f.style.right="",f.style.left=i+o-r.left+"px"),f.style.display="",f.firstChild.style.display="none",t.on("input",x)}function x(e){f&&(f.style.display="none"),t.off("input",x)}function _(){c=null,clearTimeout(c);var e=t.selection.getRange(),n=e.contains(u.row,u.column);!e.isEmpty()&&n||(t.selection.moveToPosition(u),t.selection.selectWord()),p="wait",y()}function C(){c=null,clearTimeout(c),t.selection.moveToPosition(u);var e=m>=2?t.selection.getLineRange(u.row):t.session.getBracketRange(u);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}function S(){g+=60,d=setInterval((function(){g--<=0&&(clearInterval(d),d=null),Math.abs(b)<.01&&(b=0),Math.abs(v)<.01&&(v=0),g<20&&(b*=.9),g<20&&(v*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*b,10*v),e==t.session.getScrollTop()&&(g=0)}),10)}o.addListener(e,"contextmenu",(function(e){if(h){var n=t.textInput.getElement();n.focus()}}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(c||o.length>1)return clearTimeout(c),c=null,a=-1,void(p="zoom");h=t.$mouseHandler.isMousePressed=!0;var r=t.renderer.layerConfig.lineHeight,d=t.renderer.layerConfig.lineHeight,f=e.timeStamp;l=f;var w=o[0],y=w.clientX,x=w.clientY;Math.abs(n-y)+Math.abs(s-x)>r&&(a=-1),n=e.clientX=y,s=e.clientY=x,b=v=0;var S=new i(e,t);if(u=S.getDocumentPosition(),f-a<500&&1==o.length&&!g)m++,e.preventDefault(),e.button=0,C();else{m=0;var k=t.selection.cursor,M=t.selection.isEmpty()?k:t.selection.anchor,E=t.renderer.$cursorLayer.getPixelPosition(k,!0),$=t.renderer.$cursorLayer.getPixelPosition(M,!0),L=t.renderer.scroller.getBoundingClientRect(),O=t.renderer.layerConfig.offset,T=t.renderer.scrollLeft,R=function(e,t){return e/=d,t=t/r-.75,e*e+t*t};if(e.clientX<L.left)return void(p="zoom");var A=R(e.clientX-L.left-E.left+T,e.clientY-L.top-E.top+O),F=R(e.clientX-L.left-$.left+T,e.clientY-L.top-$.top+O);A<3.5&&F<3.5&&(p=A>F?"cursor":"anchor"),p=F<3.5?"anchor":A<3.5?"cursor":"scroll",c=setTimeout(_,450)}a=f}),t),o.addListener(e,"touchend",(function(e){h=t.$mouseHandler.isMousePressed=!1,d&&clearInterval(d),"zoom"==p?(p="",g=0):c?(t.selection.moveToPosition(u),g=0,y()):"scroll"==p?(S(),x()):y(),clearTimeout(c),c=null}),t),o.addListener(e,"touchmove",(function(e){c&&(clearTimeout(c),c=null);var o=e.touches;if(!(o.length>1||"zoom"==p)){var r=o[0],a=n-r.clientX,d=s-r.clientY;if("wait"==p){if(!(a*a+d*d>4))return e.preventDefault();p="cursor"}n=r.clientX,s=r.clientY,e.clientX=r.clientX,e.clientY=r.clientY;var u=e.timeStamp,h=u-l;if(l=u,"scroll"==p){var f=new i(e,t);f.speed=1,f.wheelX=a,f.wheelY=d,10*Math.abs(a)<Math.abs(d)&&(a=0),10*Math.abs(d)<Math.abs(a)&&(d=0),0!=h&&(b=a/h,v=d/h),t._emit("mousewheel",f),f.propagationStopped||(b=v=0)}else{var g=new i(e,t),m=g.getDocumentPosition();"cursor"==p?t.selection.moveCursorToPosition(m):"anchor"==p&&t.selection.setSelectionAnchor(m.row,m.column),t.renderer.scrollCursorIntoView(m),e.preventDefault()}}}),t)}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=i.getDocumentHead(),o=document.createElement("script");o.src=e,n.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var i={},o=function(){this.propagationStopped=!0},r=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=o),t.preventDefault||(t.preventDefault=r),n=n.slice();for(var s=0;s<n.length;s++)if(n[s](t,this),t.propagationStopped)break;return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](t,this)}},i.once=function(e,t){var n=this;if(this.on(e,(function i(){n.off(e,i),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},i.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var i=n[e],o=n._disabled_[e];o||(n._disabled_[e]=o=[]),o.push(i);var r=o.indexOf(t);-1!=r&&o.splice(r,1)}n[e]=t},i.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n._disabled_[e];if(n[e]==t)i&&this.setDefaultHandler(e,i.pop());else if(i){var o=i.indexOf(t);-1!=o&&i.splice(o,1)}}},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},i.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=i})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var i=e("./oop"),o=e("./event_emitter").EventEmitter,r={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter((function(e){return!n[e].hidden}))}return e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return s('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:s('misspelled option "'+e+'"')}};function s(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function a(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){i.implement(this,o),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var i=n[t];"string"==typeof i&&(i={forwardTo:i}),i.name||(i.name=t),e.$options[i.name]=i,"initialValue"in i&&(e["$"+i.name]=i.initialValue)})),i.implement(e,r),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=s,this.reportError=a}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/dom","ace/lib/app_config"],(function(e,t,i){var o=e("./lib/lang"),r=(e("./lib/oop"),e("./lib/net")),s=e("./lib/dom"),a=e("./lib/app_config").AppConfig;i.exports=t=new a;var l=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};t.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},t.set=function(e,t){if(c.hasOwnProperty(e))c[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&s.useStrictCSP(t)},t.all=function(){return o.copyObject(c)},t.$modes={},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];var n=e.split("/");t=t||n[n.length-2]||"";var i="snippets"==t?"/":"-",o=n[n.length-1];if("worker"==t&&"-"==i){var r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");o=o.replace(r,"")}(!o||o==t)&&n.length>1&&(o=n[n.length-2]);var s=c[t+"Path"];return null==s?s=c.basePath:"/"==i&&(t=i=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+i+o+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,i){var o,s;Array.isArray(n)&&(s=n[0],n=n[1]);try{o=e(n)}catch(l){}if(o&&!t.$loading[n])return i&&i(o);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(i),!(t.$loading[n].length>1)){var a=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var i=t.$loading[n];t.$loading[n]=null,i.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return a();r.loadScript(t.moduleUrl(n,s),a),d()}};var d=function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),d=function(){})};function u(o){if(l&&l.document){c.packaged=o||e.packaged||i.packaged||l.define&&n("07d6").packaged;for(var r={},s="",a=document.currentScript||document._currentScript,d=a&&a.ownerDocument||document,u=d.getElementsByTagName("script"),f=0;f<u.length;f++){var p=u[f],g=p.src||p.getAttribute("src");if(g){for(var m=p.attributes,b=0,v=m.length;b<v;b++){var w=m[b];0===w.name.indexOf("data-ace-")&&(r[h(w.name.replace(/^data-ace-/,""))]=w.value)}var y=g.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);y&&(s=y[1])}}for(var x in s&&(r.base=r.base||s,r.packaged=!0),r.basePath=r.base,r.workerPath=r.workerPath||r.base,r.modePath=r.modePath||r.base,r.themePath=r.themePath||r.base,delete r.base,r)"undefined"!==typeof r[x]&&t.set(x,r[x])}}function h(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}u(!0),t.init=u,t.version="1.4.13"})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/event"),o=e("../lib/useragent"),r=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,d=e("../config"),u=function(e){var t=this;this.editor=e,new r(this),new s(this),new l(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus()},a=e.renderer.getMouseEventTarget();i.addListener(a,"click",this.onMouseEvent.bind(this,"click"),e),i.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),i.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),c(e.container,e);var d=e.renderer.$gutter;i.addListener(d,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),i.addListener(d,"click",this.onMouseEvent.bind(this,"gutterclick"),e),i.addListener(d,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),i.addListener(d,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),i.addListener(a,"mousedown",n,e),i.addListener(d,"mousedown",n,e),o.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),i.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),o=e.session.selection.getRange(),r=e.renderer;!o.isEmpty()&&o.insideStart(i.row,i.column)?r.setCursorStyle("default"):r.setCursorStyle("")}}),e)};(function(){this.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,r=this.editor.renderer;r.$isMousePressed=!0;var s=this,l=function(e){if(e){if(o.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new a(e,s.editor),s.$mouseMoved=!0}},c=function(e){n.off("beforeEndOperation",u),clearInterval(h),n.session&&d(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",s.isMousePressed=r.$isMousePressed=!1,r.$keepTextAreaAtCursor&&r.$moveTextAreaToCursor(),s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e),n.endOperation()},d=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1};if(o.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));var u=function(e){s.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(s[s.state+"End"]&&s[s.state+"End"](),s.state="",s.releaseMouse())};n.on("beforeEndOperation",u),n.startOperation({command:{name:"mouse"}}),s.$onCaptureMouseMove=l,s.releaseMouse=i.capture(this.editor.container,l,c);var h=setInterval(d,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(u.prototype),d.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom");function o(e){e.on("click",(function(t){var n=t.getDocumentPosition(),o=e.session,r=o.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?o.removeFold(r):o.expandFold(r),t.stop());var s=t.domEvent&&t.domEvent.target;s&&i.hasCssClass(s,"ace_inline_button")&&i.hasCssClass(s,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,o=e.session;o.foldWidgets&&o.foldWidgets[i]&&e.session.onFoldWidgetClick(i,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,o=e.session,r=o.getParentFoldRangeData(i,!0),s=r.range||r.firstRange;if(s){i=s.start.row;var a=o.getFoldAt(i,o.getLine(i).length,1);a?o.removeFold(a):(o.addFold("...",s),e.renderer.scrollCursorIntoView({row:s.start.row,column:0}))}t.stop()}}))}t.FoldHandler=o})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/event"),r=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var r,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--;)if(r=this.$handlers[l].handleKeyboard(this.$data,e,t,n,i),r&&r.command&&(s="null"==r.command||a.exec(r.command,this.$editor,r.args,i),s&&i&&-1!=e&&1!=r.passEvent&&1!=r.command.passEvent&&o.stopEvent(i),s))break;return s||-1!=e||(r={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),s},this.onCommandKey=function(e,t,n){var o=i.keyCodeToString(n);return this.$callKeyboardHandlers(t,o,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(r.prototype),t.KeyBinding=r})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var i=0,o=0,r=!1,s=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d=0,u=1,h=0,f=1,p=2,g=3,m=4,b=5,v=6,w=7,y=8,x=9,_=10,C=11,S=12,k=13,M=14,E=15,$=16,L=17,O=18,T=[O,O,O,O,O,O,O,O,O,v,b,v,y,b,O,O,O,O,O,O,O,O,O,O,O,O,O,O,b,b,b,v,y,m,m,C,C,C,m,m,m,m,m,_,x,_,x,x,p,p,p,p,p,p,p,p,p,p,x,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,O,O,O,O,O,O,b,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,x,m,C,C,C,C,m,m,m,m,h,m,m,O,m,m,C,C,p,p,m,h,m,m,m,p,h,m,m,m,m,m],R=[y,y,y,y,y,y,y,y,y,y,y,O,O,O,h,f,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,y,b,k,M,E,$,L,x,C,C,C,C,C,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,x,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,y];function A(e,t,n,d){var u=i?c:l,h=null,f=null,p=null,g=0,m=null,w=null,x=-1,_=null,C=null,S=[];if(!d)for(_=0,d=[];_<n;_++)d[_]=D(e[_]);for(o=i,r=!1,!1,s=!1,a=!1,C=0;C<n;C++){if(h=g,S[C]=f=I(e,d,S,C),g=u[h][f],m=240&g,g&=15,t[C]=p=u[g][5],m>0)if(16==m){for(_=x;_<C;_++)t[_]=1;x=-1}else x=-1;if(w=u[g][6],w)-1==x&&(x=C);else if(x>-1){for(_=x;_<C;_++)t[_]=p;x=-1}d[C]==b&&(t[C]=0),o|=p}if(a)for(_=0;_<n;_++)if(d[_]==v){t[_]=i;for(var k=_-1;k>=0;k--){if(d[k]!=y)break;t[k]=i}}}function F(e,t,n){if(!(o<e))if(1!=e||i!=u||s){var r,a,l,c,d=n.length,h=0;while(h<d){if(t[h]>=e){r=h+1;while(r<d&&t[r]>=e)r++;for(a=h,l=r-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;h=r}h++}}else n.reverse()}function I(e,t,n,o){var l,c,d,u,T=t[o];switch(T){case h:case f:r=!1;case m:case g:return T;case p:return r?g:p;case w:return r=!0,!0,f;case y:return m;case x:return o<1||o+1>=t.length||(l=n[o-1])!=p&&l!=g||(c=t[o+1])!=p&&c!=g?m:(r&&(c=g),c==l?c:m);case _:return l=o>0?n[o-1]:b,l==p&&o+1<t.length&&t[o+1]==p?p:m;case C:if(o>0&&n[o-1]==p)return p;if(r)return m;u=o+1,d=t.length;while(u<d&&t[u]==C)u++;return u<d&&t[u]==p?p:m;case S:d=t.length,u=o+1;while(u<d&&t[u]==S)u++;if(u<d){var R=e[o],A=R>=1425&&R<=2303||64286==R;if(l=t[u],A&&(l==f||l==w))return f}return o<1||(l=t[o-1])==b?m:n[o-1];case b:return r=!1,s=!0,i;case v:return a=!0,m;case k:case M:case $:case L:case E:r=!1;case O:return m}}function D(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?h:T[t]:5==n?/[\u0591-\u05f4]/.test(e)?f:h:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?S:/[\u0660-\u0669\u066b-\u066c]/.test(e)?g:1642==t?C:/[\u06f0-\u06f9]/.test(e)?p:w:32==n&&t<=8287?R[255&t]:254==n&&t>=65136?w:m}t.L=h,t.R=f,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,o){if(e.length<2)return{};var r=e.split(""),s=new Array(r.length),a=new Array(r.length),l=[];i=o?u:d,A(r,l,r.length,n);for(var c=0;c<s.length;s[c]=c,c++);F(2,l,s),F(1,l,s);for(c=0;c<s.length-1;c++)n[c]===g?l[c]=t.AN:l[c]===f&&(n[c]>w&&n[c]<k||n[c]===m||n[c]===O)?l[c]=t.ON_R:c>0&&"ل"===r[c-1]&&/\u0622|\u0623|\u0625|\u0627/.test(r[c])&&(l[c-1]=l[c]=t.R_H,c++);r[r.length-1]===t.DOT&&(l[r.length-1]=t.B),""===r[0]&&(l[0]=t.RLE);for(c=0;c<s.length;c++)a[c]=l[s[c]];return{logicalFromVisual:s,bidiLevels:a}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=D(e.charAt(i)),n||t[i]!=f&&t[i]!=w&&t[i]!=g||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("./lib/bidiutil"),o=e("./lib/lang"),r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,s=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=r.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&r.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,i=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==i)break;i=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,r=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var s=this.session.$wrapData[e];s&&(void 0===t&&(t=this.getSplitIndex()),t>0&&s.length?(this.wrapIndent=s.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=t<s.length?this.line.substring(s[t-1],s[t]):this.line.substring(s[s.length-1])):this.line=this.line.substring(0,s[t])),t==s.length&&(this.line+=this.showInvisibles?r:i.DOT)}else this.line+=this.showInvisibles?r:i.DOT;var a,l=this.session,c=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||l.isFullWidth(e.charCodeAt(0))?(a="\t"===e?l.getScreenTabSize(t+c):2,c+=a-1,o.stringRepeat(i.DOT,a)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==i.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];i.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=i.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=t,this.charWidths[i.R]=this.charWidths[i.AN]=n,this.charWidths[i.R_H]=.45*n,this.charWidths[i.B]=this.charWidths[i.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(void 0!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,o=i.getVisualFromLogicalIdx(n,this.bidiMap),r=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&e<=t&&r[o]%2!==0&&o++;for(var a=0;a<o;a++)s+=this.charWidths[r[a]];return!this.session.getOverwrite()&&e>t&&r[o]%2===0&&(s+=this.charWidths[r[o]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,d=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,f=0;f<o.length;f++)h=i.logicalFromVisual[f],n=o[f],c=h>=a&&h<l,c&&!d?u=s:!c&&d&&r.push({left:u,width:s-u}),s+=this.charWidths[n],d=c;if(c&&f===o.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var p=0;p<r.length;p++)r[p].left+=this.rtlLineOffset;return r},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);while(e>n+r/2){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return i>0&&o[i-1]%2!==0&&o[i]%2===0?(e<n&&i--,t=this.bidiMap.logicalFromVisual[i]):i>0&&o[i-1]%2===0&&o[i]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2===0||!this.isRtlDir&&0===i&&o[i]%2!==0?t=1+this.bidiMap.logicalFromVisual[i]:(i>0&&o[i-1]%2!==0&&0!==r&&i--,t=this.bidiMap.logicalFromVisual[i]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(s.prototype),t.BidiHandler=s})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){i.implement(this,r),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,i=t?e.start:e.end;this.$setSelection(n.row,n.column,i.row,i.column)},this.$setSelection=function(e,t,n,i){if(!this.$silent){var o=this.$isEmpty,r=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(i);return o?(i=o.start.row,n=o.end.row):n=i,!0===t?new s(i,0,n,this.session.getLine(n).length):new s(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,i.row,i.column),r=o.match(/^\s*/);r[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=r[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var r=o.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(r)&&(n-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(r)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&i.test(t))n++;if(n<1){o.lastIndex=0;while((t=e[n])&&!o.test(t))if(o.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}while((t=e[n])&&i.test(t))n++;if(n>2)break}}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var r=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<r&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){do{t--,i=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var r=o.stringReverse(i),s=this.$shortWordEndIndex(r);return this.moveCursorTo(t,n-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(i){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var i=e("./config"),o=2e3,r=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&(s="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),r[o]=l,o+=u,i.push(d),c.onMatch||(c.onMatch=null)}}i.length||(r[0]=0,i.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){o=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}));return t},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,i=!1,o={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,r,s,a,l){return i?i="]"!=a:a?i=!0:s?(n==o.stack&&(o.end=l+1,o.stack=-1),n--):r&&(n++,1!=r.length&&(o.stack=n,o.start=l)),e})),null!=o.end&&/^\)*$/.test(e.substr(o.end))&&(e=e.substring(0,o.start)+e.substr(o.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);t=n[0],"#tmp"===t&&(n.shift(),t=n.shift())}else n=[];var i=t||"start",r=this.states[i];r||(i="start",r=this.states[i]);var s=this.matchMappings[i],a=this.regExps[i];a.lastIndex=0;var l,c=[],d=0,u=0,h={type:null,value:""};while(l=a.exec(e)){var f=s.defaultToken,p=null,g=l[0],m=a.lastIndex;if(m-g.length>d){var b=e.substring(d,m-g.length);h.type==f?h.value+=b:(h.type&&c.push(h),h={type:f,value:b})}for(var v=0;v<l.length-2;v++)if(void 0!==l[v+1]){p=r[s[v]],f=p.onMatch?p.onMatch(g,i,n,e):p.token,p.next&&(i="string"==typeof p.next?p.next:p.next(i,n),r=this.states[i],r||(this.reportError("state doesn't exist",i),i="start",r=this.states[i]),s=this.matchMappings[i],d=m,a=this.regExps[i],a.lastIndex=m),p.consumeLineEnd&&(d=m);break}if(g)if("string"===typeof f)p&&!1===p.merge||h.type!==f?(h.type&&c.push(h),h={type:f,value:g}):h.value+=g;else if(f){h.type&&c.push(h),h={type:null,value:""};for(v=0;v<f.length;v++)c.push(f[v])}if(d==e.length)break;if(d=m,u++>o){u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(d<e.length)h.type&&c.push(h),h={value:e.substring(d,d+=500),type:"overflow"};i="start",n=[];break}}return h.type&&c.push(h),n.length>1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:c,state:n.length?n:i}},this.reportError=i.reportError}).call(r.prototype),t.Tokenizer=r})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,o,r){var s="function"==typeof e?(new e).getRules():e;if(o)for(var a=0;a<o.length;a++)o[a]=t+o[a];else for(var l in o=[],s)o.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype[r?"push":"unshift"];for(a=0;a<o.length;a++)c.apply(this.$rules[o[a]],i.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,i=this.$rules;function o(r){var s=i[r];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null;Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var d=l.next||l.push;if(d&&Array.isArray(d)){var u=l.stateName;u||(u=l.token,"string"!=typeof u&&(u=u[0]||""),i[u]&&(u+=n++)),i[u]=d,l.next=u,o(u)}else"pop"==d&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)i[h]?i[h].push&&i[h].push.apply(i[h],l.rules[h]):i[h]=l.rules[h];var f="string"==typeof l?l:l.include;if(f&&(c=Array.isArray(f)?f.map((function(e){return i[e]})):i[f]),c){var p=[a,1].concat(c);l.noEscape&&(p=p.filter((function(e){return!e.next}))),s.splice.apply(s,p),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(i).forEach(o,this)},this.createKeywordMapper=function(e,t,n,i){var o=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var r=e[t],s=r.split(i||"|"),a=s.length;a--;){var l=s[a];this.$keywordList.push(l),n&&(l=l.toLowerCase()),o[l]=t}}),this),e=null,n?function(e){return o[e.toLowerCase()]||t}:function(e){return o[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(o.prototype),t.TextHighlightRules=o})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,o=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(this.$tokenIndex<0){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;this.$tokenIndex+=1;while(this.$tokenIndex>=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(o.prototype),t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var i,o=e("../../lib/oop"),r=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d={},u={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,d.rangeCount!=e.multiSelect.rangeCount&&(d={rangeCount:e.multiSelect.rangeCount})),d[t])return i=d[t];i=d[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,o,r,s){var l=o.getCursorPosition(),c=r.doc.getLine(l.row);if("{"==s){h(o);var d=o.getSelectionRange(),u=r.doc.getTextRange(d);if(""!==u&&"{"!==u&&o.getWrapBehavioursEnabled())return f(d,u,"{","}");if(p.isSaneInsertion(o,r))return/[\]\}\)]/.test(c[l.column])||o.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(o,r,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(o,r,"{"),{text:"{",selection:[1,1]})}else if("}"==s){h(o);var g=c.substring(l.column,l.column+1);if("}"==g){var m=r.$findOpeningBracket("}",{column:l.column+1,row:l.row});if(null!==m&&p.isAutoInsertedClosing(l,c,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==s||"\r\n"==s){h(o);var b="";p.isMaybeInsertedClosing(l,c)&&(b=a.stringRepeat("}",i.maybeInsertedBrackets),p.clearMaybeInsertedClosing());g=c.substring(l.column,l.column+1);if("}"===g){var v=r.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!v)return null;var w=this.$getIndent(r.getLine(v.row))}else{if(!b)return void p.clearMaybeInsertedClosing();w=this.$getIndent(c)}var y=w+r.getTabString();return{text:"\n"+y+"\n"+w+b,selection:[1,y.length,1,y.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,r){var s=o.doc.getTextRange(r);if(!r.isMultiLine()&&"{"==s){h(n);var a=o.doc.getLine(r.start.row),l=a.substring(r.end.column,r.end.column+1);if("}"==l)return r.end.column++,r;i.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,i,o){if("("==o){h(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return f(r,s,"(",")");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){h(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row),c=l.substring(a.column,a.column+1);if(")"==c){var d=i.$findOpeningBracket(")",{column:a.column+1,row:a.row});if(null!==d&&p.isAutoInsertedClosing(a,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("parens","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==r){h(n);var s=i.doc.getLine(o.start.row),a=s.substring(o.start.column+1,o.start.column+2);if(")"==a)return o.end.column++,o}})),this.add("brackets","insertion",(function(e,t,n,i,o){if("["==o){h(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return f(r,s,"[","]");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){h(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row),c=l.substring(a.column,a.column+1);if("]"==c){var d=i.$findOpeningBracket("]",{column:a.column+1,row:a.row});if(null!==d&&p.isAutoInsertedClosing(a,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("brackets","deletion",(function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==r){h(n);var s=i.doc.getLine(o.start.row),a=s.substring(o.start.column+1,o.start.column+2);if("]"==a)return o.end.column++,o}})),this.add("string_dquotes","insertion",(function(e,t,n,i,o){var r=i.$mode.$quotes||u;if(1==o.length&&r[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;h(n);var s=o,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(!(""===l||1==l.length&&r[l])&&n.getWrapBehavioursEnabled())return f(a,l,s,s);if(!l){var c=n.getCursorPosition(),d=i.doc.getLine(c.row),p=d.substring(c.column-1,c.column),g=d.substring(c.column,c.column+1),m=i.getTokenAt(c.row,c.column),b=i.getTokenAt(c.row,c.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var v,w=m&&/string|escape/.test(m.type),y=!b||/string|escape/.test(b.type);if(g==s)v=w!==y,v&&/string\.end/.test(b.type)&&(v=!1);else{if(w&&!y)return null;if(w&&y)return null;var x=i.$mode.tokenRe;x.lastIndex=0;var _=x.test(p);x.lastIndex=0;var C=x.test(p);if(_||C)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var S=d[c.column-2];if(p==s&&(S==s||x.test(S)))return null;v=!0}return{text:v?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,o){var r=i.$mode.$quotes||u,s=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(s)){h(n);var a=i.doc.getLine(o.start.row),l=a.substring(o.start.column+1,o.start.column+2);if(l==s)return o.end.column++,o}}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new s(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new s(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",l))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,r,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=o.row,i.autoInsertedLineEnd=n+r.substr(o.column),i.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var o=e.getCursorPosition(),r=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,r)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=o.row,i.maybeInsertedLineStart=r.substr(0,o.column)+n,i.maybeInsertedLineEnd=r.substr(o.column),i.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},o.inherits(p,r),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,r=[],s=0;s<i.length;s+=2)r.push(o+=i[s]),i[s+1]&&r.push(45,o+=i[s+1]);t.wordChars=String.fromCharCode.apply(null,r)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../config"),o=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),l=e("../lib/lang"),c=e("../token_iterator").TokenIterator,d=e("../range").Range,u=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+a.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var o=t.doc,r=!0,s=!0,a=1/0,c=t.getTabSize(),d=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(l.escapeRegExp).join("|"),f=this.lineCommentStart[0];else g=l.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),d=t.getUseSoftTabs();v=function(e,t){var n=e.match(g);if(n){var i=n[1].length,r=n[0].length;h(e,i,r)||" "!=n[0][r-1]||r--,o.removeInLine(t,i,r)}};var u=f+" ",h=(b=function(e,t){r&&!/\S/.test(e)||(h(e,a,a)?o.insertInLine({row:t,column:a},u):o.insertInLine({row:t,column:a},f))},w=function(e,t){return g.test(e)},function(e,t,n){var i=0;while(t--&&" "==e.charAt(t))i++;if(i%c!=0)return!1;i=0;while(" "==e.charAt(n++))i++;return c>2?i%c!=c-1:i%c==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+l.escapeRegExp(f)+")"),m=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),b=function(e,t){w(e,t)||r&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},p),o.insertInLine({row:t,column:a},f))},v=function(e,t){var n;(n=e.match(m))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&o.removeInLine(t,n[1].length,n[0].length)},w=function(e,n){if(g.test(e))return!0;for(var i=t.getTokens(n),o=0;o<i.length;o++)if("comment"===i[o].type)return!0}}function y(e){for(var t=n;t<=i;t++)e(o.getLine(t),t)}var x=1/0;y((function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!w(e,t)&&(s=!1)):x>e.length&&(x=e.length)})),a==1/0&&(a=x,r=!1,s=!1),d&&a%c!=0&&(a=Math.floor(a/c)*c),y(s?v:b)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,s,a=new c(t,i.row,i.column),l=a.getCurrentToken(),u=(t.selection,t.selection.toOrientedRange());if(l&&/comment/.test(l.type)){var h,f;while(l&&/comment/.test(l.type)){var p=l.value.indexOf(o.start);if(-1!=p){var g=a.getCurrentTokenRow(),m=a.getCurrentTokenColumn()+p;h=new d(g,m,g,m+o.start.length);break}l=a.stepBackward()}a=new c(t,i.row,i.column),l=a.getCurrentToken();while(l&&/comment/.test(l.type)){p=l.value.indexOf(o.end);if(-1!=p){g=a.getCurrentTokenRow(),m=a.getCurrentTokenColumn()+p;f=new d(g,m,g,m+o.end.length);break}l=a.stepForward()}f&&t.remove(f),h&&(t.remove(h),r=h.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);u.start.row==r&&(u.start.column+=s),u.end.row==r&&(u.end.column+=s),t.selection.fromOrientedRange(u)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,r=i.$modes[o];r||(i.$modes[o]=r=new n),i.$modes[t]||(i.$modes[t]=r),this.$embeds.push(t),this.$modes[t]=r}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<s.length;t++)(function(e){var n=s[t],i=e[n];e[s[t]]=function(){return this.$delegator(n,arguments,i)}})(this)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1],r=this.$modes[o];if(r)return r[e].apply(r,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var s=0;s<this.$embeds.length;s++)if(this.$modes[this.$embeds[s]]){var a=i.split(this.$embeds[s]);if(!a[0]&&a[1]){t[0]=a[1];r=this.$modes[this.$embeds[s]];return r[e].apply(r,t)}}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],r=0,s=o.length;r<s;r++)if("string"===typeof o[r].token)/keyword|support|storage/.test(o[r].token)&&n.push(o[r].regex);else if("object"===typeof o[r].token)for(var a=0,l=o[r].token.length;a<l;a++)if(/keyword|support|storage/.test(o[r].token[a])){i=o[r].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){var o=this.$keywordList||this.$createKeywordList();return o.map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(u.prototype),t.Mode=u})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,o=t.start.column,r=e[i]||"";switch(t.action){case"insert":var s=t.lines;if(1===s.length)e[i]=r.substring(0,o)+t.lines[0]+r.substring(o);else{var a=[i,1].concat(t.lines);e.splice.apply(e,a),e[i]=r.substring(0,o)+e[i],e[i+t.lines.length-1]+=r.substring(o)}break;case"remove":var l=t.end.column,c=t.end.row;i===c?e[i]=r.substring(0,o)+r.substring(l):e.splice(i,c-i+1,r.substring(0,o)+e[c].substring(l));break}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function t(t,n,i){var o="insert"==t.action,r=(o?1:-1)*(t.end.row-t.start.row),s=(o?1:-1)*(t.end.column-t.start.column),a=t.start,l=o?a:t.end;return e(n,a,i)?{row:n.row,column:n.column}:e(l,n,!i)?{row:n.row+r,column:n.column+(n.row==l.row?s:0)}:{row:a.row,column:a.column}}i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var o={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:o,value:i})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(r.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return void 0==t&&(t=i.length),t=Math.min(Math.max(t,0),i.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:i,end:o,action:"remove",lines:this.getLinesForRange({start:i,end:o})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,i=t<this.getLength()-1,o=n?e-1:e,r=n?this.getLine(o).length:0,a=i?t+1:t,l=i?0:this.getLine(a).length,c=new s(o,r,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if(e-=n[o].length+i,e<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n[s].length+i;return o+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){var e=new Date,t=n.currentLine,i=-1,o=n.doc,r=t;while(n.lines[t])t++;var s=o.getLength(),a=0;n.running=!1;while(t<s){n.$tokenizeRow(t),i=t;do{t++}while(n.lines[t]);if(a++,a%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),r<=i&&n.fireUpdateEvent(r,i)}}};(function(){i.implement(this,o),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(r.prototype),t.BackgroundTokenizer=r})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),o=(e("./lib/oop"),e("./range").Range),r=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,r){if(this.regExp)for(var s=r.firstRow,a=r.lastRow,l=s;l<=a;l++){var c=this.cache[l];null==c&&(c=i.getMatchOffsets(n.getLine(l),this.regExp),c.length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new o(l,e.offset,l,e.offset+e.length)})),this.cache[l]=c.length?c:"");for(var d=c.length;d--;)t.drawSingleLineMarker(e,c[d].toScreenRange(n),this.clazz,r)}}}).call(r.prototype),t.SearchHighlight=r})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,o,r,s=0,a=this.folds,l=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c<a.length;c++){if(i=a[c],o=i.range.compareStart(t,n),-1==o)return void e(null,t,n,s,l);if(r=e(null,i.start.row,i.start.column,s,l),r=!r&&e(i.placeholder,i.start.row,i.start.column,s),r||0===o)return;l=!i.sameRow,s=i.end.column}e(null,t,n,s,l)},this.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(n=this.folds[o],i=n.range.compareEnd(e,t),-1==i)return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,o,r=this.getNextFoldTo(e,t);if(r)if(i=r.fold,"inside"==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){o=this.folds;var s=o.indexOf(i);for(0===s&&(this.start.column+=n),s;s<o.length;s++){if(i=o[s],i.start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,r=this.folds,s=this.foldData,a=r.indexOf(i),l=r[a-1];this.end.row=l.end.row,this.end.column=l.end.column,r=r.splice(a,r.length-a);var c=new o(s,r);return s.splice(s.indexOf(this)+1,0,c),c},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if(e-=i.start.column-t,e<0)return{row:i.start.row,column:i.start.column+e};if(e-=i.placeholder.length,e<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(o.prototype),t.FoldLine=o})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,o=i.comparePoints,r=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=o,this.pointIndex=function(e,t,n){for(var i=this.ranges,r=n||0;r<i.length;r++){var s=i[r],a=o(e,s.end);if(!(a>0)){var l=o(e,s.start);return 0===a?t&&0!==l?-r-2:r:l>0||0===l&&!t?r:-r-1}}return-r-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort((function(e,t){return o(e.start,t.start)}));for(var n,i=t[0],r=1;r<t.length;r++){n=i,i=t[r];var s=o(n.end,i.start);s<0||(0!=s||n.isEmpty()||i.isEmpty())&&(o(n.end,i.end)<0&&(n.end.row=i.end.row,n.end.column=i.end.column),t.splice(r,1),e.push(i),i=n,r--)}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:t,column:0},i);o<0&&(o=-o-1);for(var r=[],s=i;s<o;s++)r.push(n[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a;s++){var l=r[s];if(l.end.row>=i)break}if("insert"==e.action)for(var c=o-i,d=-t.column+n.column;s<a;s++){l=r[s];if(l.start.row>i)break;if(l.start.row==i&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=d,l.start.row+=c)),l.end.row==i&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&d>0&&s<a-1&&l.end.column>l.start.column&&l.end.column==r[s+1].start.column&&(l.end.column-=d),l.end.column+=d,l.end.row+=c}}else for(c=i-o,d=t.column-n.column;s<a;s++){l=r[s];if(l.start.row>o)break;l.end.row<o&&(i<l.end.row||i==l.end.row&&t.column<l.end.column)?(l.end.row=i,l.end.column=t.column):l.end.row==o?l.end.column<=n.column?(c||l.end.column>t.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=d,l.end.row+=c):l.end.row>o&&(l.end.row+=c),l.start.row<o&&(i<l.start.row||i==l.start.row&&t.column<l.start.column)?(l.start.row=i,l.start.column=t.column):l.start.row==o?l.start.column<=n.column?(c||l.start.column>t.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=d,l.start.row+=c):l.start.row>o&&(l.start.row+=c)}if(0!=c&&s<a)for(;s<a;s++){l=r[s];l.start.row+=c,l.end.row+=c}}}).call(r.prototype),t.RangeList=r})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("../range_list").RangeList,o=e("../lib/oop"),r=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){s(e.start,t),s(e.end,t)}function l(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function c(e,t){l(e.start,t),l(e.end,t)}o.inherits(r,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new r(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){a(e,this.start);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length;i++)if(o=this.subFolds[i].range.compare(t,n),1!=o)break;var r=this.subFolds[i],s=0;if(0==o){if(r.range.containsRange(e))return r.addSubFold(e);s=1}t=e.range.end.row,n=e.range.end.column;var l=i;for(o=-1;l<this.subFolds.length;l++)if(o=this.subFolds[l].range.compare(t,n),1!=o)break;0==o&&l++;for(var c=this.subFolds.splice(i,l-i,e),d=0==o?c.length-1:c.length,u=s;u<d;u++)e.addSubFold(c[u]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return c(e,this.start)}}.call(r.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("./fold_line").FoldLine,r=e("./fold").Fold,s=e("../token_iterator").TokenIterator;function a(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o[r].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return o[r]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,n.column-=1;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(s=c.range.compareRange(e),-2==s)break;if(2!=s){if(42==s)break;o.push(c)}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(i=i||this.getFoldLine(e),!i)return null;for(var o,r,s={end:{column:0}},a=0;a<i.folds.length;a++){r=i.folds[a];var l=r.range.compareEnd(e,t);if(-1==l){o=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return o||(o=this.getLine(r.start.row).substring(s.end.column)),-1==n?o.substring(0,t-s.end.column):1==n?o.substring(t-s.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n[o],s=r.end.row,a=r.start.row;if(s>=t){a<t&&(a>=e?i-=t-a:i=0);break}s>=e&&(i-=a>=e?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,s=!1;e instanceof r?n=e:(n=new r(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,d=n.end.column,u=this.getFoldAt(a,l,1),h=this.getFoldAt(c,d,-1);if(u&&h==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),h&&!h.range.isEnd(c,d)&&this.removeFold(h);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),n.collapseChildren||f.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<i.length;p++){var g=i[p];if(c==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=i[p+1];if(m&&m.start.row==c){g.merge(m);break}}break}if(c<=g.start.row)break}return s||(g=this.$addFoldLine(new o(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;if(1==r.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);r=s.folds,r.shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e)n=new i(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new i(e,0,e,this.getLine(e).length);else if("row"in e)n=i.fromPoints(e,e);else{if(Array.isArray(e))return o=[],e.forEach((function(e){o=o.concat(this.unfold(e))}),this),o;n=e}o=this.getFoldsInRangeList(n);var r=o;while(1==o.length&&i.comparePoints(o[0].start,n.start)<0&&i.comparePoints(o[0].end,n.end)>0)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(o):this.expandFolds(o),r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,o){null==i&&(i=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var r=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<i)){if(t==i){if(n<o)return;a=Math.max(o,a)}s+=null!=e?e:r.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,i){var o,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,i):(o=this.doc.getLine(e),o.substring(i||0,t||o.length))},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new o(e,n)})),e},this.toggleFold=function(e){var t,n,i=this.selection,o=i.getRange();if(o.isEmpty()){var r=o.start;if(t=this.getFoldAt(r.row,r.column),t)return void this.expandFold(t);(n=this.findMatchingBracket(r))?1==o.comparePoint(n)?o.end=n:(o.start=n,o.start.column++,o.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==o.comparePoint(n)?o.end=n:o.start=n,o.start.column++):o=this.getCommentFoldRange(r.row,r.column)||o}else{var s=this.getFoldsInRange(o);if(e&&s.length)return void this.expandFolds(s);1==s.length&&(t=s[0])}if(t||(t=this.getFoldAt(o.start.row,o.start.column)),t&&t.range.toString()==o.toString())this.expandFold(t);else{var a="...";if(!o.isMultiLine()){if(a=this.getTextRange(o),a.length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,o)}},this.getCommentFoldRange=function(e,t,n){var o=new s(this,e,t),r=o.getCurrentToken(),a=r&&r.type;if(r&&/^comment|string/.test(a)){a=a.match(/comment|string/)[0],"comment"==a&&(a+="|doc-start");var l=new RegExp(a),c=new i;if(1!=n){do{r=o.stepBackward()}while(r&&l.test(r.type));o.stepForward()}if(c.start.row=o.getCurrentTokenRow(),c.start.column=o.getCurrentTokenColumn()+2,o=new s(this,e,t),-1!=n){var d=-1;do{if(r=o.stepForward(),-1==d){var u=this.getState(o.$row);l.test(u)||(d=o.$row)}else if(o.$row>d)break}while(r&&l.test(r.type));r=o.stepBackward()}else r=o.getCurrentToken();return c.end.row=o.getCurrentTokenRow(),c.end.column=o.getCurrentTokenColumn()+r.value.length-2,c}},this.foldAll=function(e,t,n,i){void 0==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength(),e=e||0;for(var r=e;r<t;r++)if(null==o[r]&&(o[r]=this.getFoldWidget(r)),"start"==o[r]&&(!i||i(r))){var s=this.getFoldWidgetRange(r);s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(r=s.end.row,s.collapseChildren=n,this.addFold("...",s))}}},this.foldToLevel=function(e){this.foldAll();while(e-- >0)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),i=0;i<n.length;i++){var o=n[i];if("text"!=o.type||!/^\s+$/.test(o.value))return!!/comment/.test(o.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var i,o=e-1;while(o>=0){var r=n[o];if(null==r&&(r=n[o]=this.getFoldWidget(o)),"start"==r){var s=this.getFoldWidgetRange(o);if(i||(i=s),s&&s.end.row>=e)break}o--}return{range:-1!==o&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},i=this.$toggleFoldWidget(e,n);if(!i){var o=t.target||t.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),o="end"===n?-1:1,r=this.getFoldAt(e,-1===o?0:i.length,o);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1),r&&s.isEqual(r.range)))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange,n){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=a})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,o=e("../range").Range;function r(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,r=n.charAt(e.column-1),s=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(s||(r=n.charAt(e.column),e={row:e.row,column:e.column+1},s=r&&r.match(/([\(\[\{])|([\)\]\}])/),i=!1),!s)return null;if(s[1]){var a=this.$findClosingBracket(s[1],e);if(!a)return null;t=o.fromPoints(e,a),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{a=this.$findOpeningBracket(s[2],e);if(!a)return null;t=o.fromPoints(a,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),i=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(i||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},i=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!i)return null;var r=new o(e.row,e.column-1,e.row,e.column),s=i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e);if(!s)return[r];var a=new o(s.row,s.column,s.row,s.column+1);return[r,a]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;while(1){while(l>=0){var d=c.charAt(l);if(d==o){if(r-=1,0==r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(r+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;c=a.value,l=c.length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],r=1,s=new i(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var l=t.column-s.getCurrentTokenColumn();while(1){var c=a.value,d=c.length;while(l<d){var u=c.charAt(l);if(u==o){if(r-=1,0==r)return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(r+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}}}t.BracketMatch=r})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./document").Document,h=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new u(e)),this.setDocument(e),this.selection=new l(this),this.$bidiHandler=new r(this),s.resetOptions(this),this.setMode(t),s._signal("session",this)};p.$uid=0,function(){i.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,i=e.length-1;while(n<=i){var o=n+i>>1,r=e[o];if(t>r)n=o+1;else{if(!(t<r))return o;i=o-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),o=0;if(null==t){var r=i.length-1;o=this.getLine(e).length}else for(r=0;r<i.length;r++)if(o+=i[r].value.length,o>=t)break;return n=i[r],n?(n.index=r,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var o=this.$markerId++,r={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=r,this._signal("changeFrontMarker")):(this.$backMarkers[o]=r,this._signal("changeBackMarker")),o},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var o=new d(e,0,t,1/0);return o.id=this.addMarker(o,n,"fullLine",i),o},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var r=t;if(r>0){do{r--}while(r>=0&&n.charAt(r).match(o));r++}var s=t;while(s<n.length&&n.charAt(s).match(o))s++;return new d(e,r,e,s)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),i=this.getLine(n.end.row);while(i.charAt(n.end.column).match(/[ \t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=s.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,s.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=e.getTokenizer();if(void 0!==i.on){var o=this.onReloadTokenizer.bind(this);i.on("update",o)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(i);else{this.bgTokenizer=new h(i);var r=this;this.bgTokenizer.on("update",(function(e){r._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],s=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if(l=r.end.row+1,l>=a)break;r=this.$foldData[o++],s=r?r.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];"insert"!=i.action&&"remove"!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var s=e[r];s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=d.fromPoints(s.start,s.start))):i=n(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start))}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),o=this.getFoldsInRange(e),r=d.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row,a=s?-e.end.column:e.start.column-e.end.column;a&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=a),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=a)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),o.length){var l=e.start,c=r.start;s=c.row-l.row,a=c.column-l.column;this.addFolds(o.map((function(e){return e=e.clone(),e.start.row==l.row&&(e.start.column+=a),e.end.row==l.row&&(e.end.column+=a),e.start.row+=s,e.end.row+=s,e})))}return r},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i;++s)if(" "!=r.charAt(s))break;s<i&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){var i=this.getRowFoldStart(e+n);if(i<0)return 0;var o=i-e}else if(n>0){i=this.getRowFoldEnd(t+n);if(i>this.doc.getLength()-1)return 0;o=i-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);o=t-e+1}var r=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map((function(e){return e=e.clone(),e.start.row+=o,e.end.row+=o,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+o,a),s.length&&this.addFolds(s),o},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=this.getFoldLine(o.row),u=0;if(d){d.addRemoveChars(o.row,o.column,i.column-o.column),d.shiftRow(-a);var h=this.getFoldLine(r);h&&h!==d&&(h.merge(d),d=h),u=c.indexOf(d)+1}for(u;u<c.length;u++){d=c[u];d.start.row>=o.row&&d.shiftRow(-a)}s=r}else{var f=Array(a);f.unshift(r,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,f);c=this.$foldData,d=this.getFoldLine(r),u=0;if(d){var g=d.range.compareInside(i.row,i.column);0==g?(d=d.split(i.row,i.column),d&&(d.shiftRow(a),d.addRemoveChars(s,0,o.column-i.column))):-1==g&&(d.addRemoveChars(r,0,o.column-i.column),d.shiftRow(a)),u=c.indexOf(d)+1}for(u;u<c.length;u++){d=c[u];d.start.row>=r&&d.shiftRow(a)}}else{a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a);d=this.getFoldLine(r);d&&d.addRemoveChars(r,i.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var i,o,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,d=e;t=Math.min(t,s.length-1);while(d<=t)o=this.getFoldLine(d,o),o?(i=[],o.walk(function(e,t,o,a){var l;if(null!=e){l=this.$getDisplayTokens(e,i.length),l[0]=n;for(var c=1;c<l.length;c++)l[c]=r}else l=this.$getDisplayTokens(s[t].substring(a,o),i.length);i=i.concat(l)}.bind(this),o.end.row,s[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(i,c,a),d=o.end.row+1):(i=this.$getDisplayTokens(s[d]),l[d]=this.$computeWrapSplits(i,c,a),d++)};var e=1,t=2,n=3,r=4,l=9,u=10,p=11,g=12;function m(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,i,o){if(0==e.length)return[];var s=[],a=e.length,c=0,d=0,h=this.$wrapAsCode,f=this.$indentedSoftWrap,m=i<=Math.max(2*o,8)||!1===f?0:Math.floor(i/2);function b(){var t=0;if(0===m)return t;if(f)for(var n=0;n<e.length;n++){var i=e[n];if(i==u)t+=1;else{if(i!=p){if(i==g)continue;break}t+=o}}return h&&!1!==f&&(t+=o),Math.min(t,m)}function v(t){for(var n=t-c,i=c;i<t;i++){var o=e[i];12!==o&&2!==o||(n-=1)}s.length||(w=b(),s.indent=w),d+=n,s.push(d),c=t}var w=0;while(a-c>i-w){var y=c+i-w;if(e[y-1]>=u&&e[y]>=u)v(y);else if(e[y]!=n&&e[y]!=r){var x=Math.max(y-(i-(i>>2)),c-1);while(y>x&&e[y]<n)y--;if(h){while(y>x&&e[y]<n)y--;while(y>x&&e[y]==l)y--}else while(y>x&&e[y]<u)y--;y>x?v(++y):(y=c+i,e[y]==t&&y--,v(y-w))}else{for(y;y!=c-1;y--)if(e[y]==n)break;if(y>c){v(y);continue}for(y=c+i,y;y<e.length;y++)if(e[y]!=r)break;if(y==e.length)break;v(y)}}return s},this.$getDisplayTokens=function(n,i){var o,r=[];i=i||0;for(var s=0;s<n.length;s++){var a=n.charCodeAt(s);if(9==a){o=this.getScreenTabSize(r.length+i),r.push(p);for(var c=1;c<o;c++)r.push(g)}else 32==a?r.push(u):a>39&&a<48||a>57&&a<64?r.push(l):a>=4352&&m(a)?r.push(e,t):r.push(e)}return r},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),n=n||0,o=0;o<e.length;o++)if(i=e.charCodeAt(o),9==i?n+=this.getScreenTabSize(n):i>=4352&&m(i)?n+=2:n+=1,n>t)break;return[n,o]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,o,r=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&d>=0){a=c[d],r=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;var f=this.getLength()-1,p=this.getNextFoldLine(r),g=p?p.start.row:1/0;while(a<=e){if(l=this.getRowLength(r),a+l>e||r>=f)break;a+=l,r++,r>g&&(r=p.end.row+1,p=this.getNextFoldLine(r,p),g=p?p.start.row:1/0),h&&(this.$docRowCache.push(r),this.$screenRowCache.push(a))}if(p&&p.start.row<=r)i=this.getFoldDisplayLine(p),r=p.start.row;else{if(a+l<=e||r>f)return{row:f,column:this.getLine(f).length};i=this.getLine(r),p=null}var m=0,b=Math.floor(e-a);if(this.$useWrapMode){var v=this.$wrapData[r];v&&(o=v[b],b>0&&v.length&&(m=v.indent,s=v[b-1]||v[v.length-1],i=i.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+b,r,b)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&s>=o&&(s=o-1),p?p.idxToPosition(s):{row:r,column:s}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,o=null,r=null;r=this.getFoldAt(e,t,1),r&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&c>=0){a=l[c],i=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;var h=this.getNextFoldLine(a),f=h?h.start.row:1/0;while(a<e){if(a>=f){if(s=h.end.row+1,s>e)break;h=this.getNextFoldLine(s,h),f=h?h.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var p="";h&&a>=f?(p=this.getFoldDisplayLine(h,e,t),o=h.start.row):(p=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){var b=0;while(p.length>=m[b])i++,b++;p=p.substring(m[b-1]||0,p.length),g=b>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,i=0,o=(a=0,t=this.$foldData[a++],t?t.start.row:1/0);while(i<n){var r=this.$wrapData[i];e+=r?r.length+1:1,i++,i>o&&(i=t.end.row+1,t=this.$foldData[a++],o=t?t.start.row:1/0)}}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)t=s[a],e-=t.end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var o,r;for(n||(n=1/0),i=i||0,r=0;r<t.length;r++)if(o=t.charAt(r),i+="\t"===o?this.getScreenTabSize(i):e.getCharacterWidth(o),i>n)break;return[i,r]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=m}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),s.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),o=e("./lib/oop"),r=e("./range").Range,s=function(){this.$options={}};function a(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return o.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,o,s){return i=new r(e,n,o,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,d=o.length-c;e:for(var u=a.offset||0;u<=d;u++){for(var h=0;h<c;h++)if(-1==o[u+h].search(a[h]))continue e;var f=o[u],p=o[u+c-1],g=f.length-f.match(a[0])[0].length,m=p.match(a[c-1])[0].length;l&&l.end.row===u&&l.end.column>g||(s.push(l=new r(u,g,u+c-1,m)),c>2&&(u=u+c-2))}}else for(var b=0;b<o.length;b++){var v=i.getMatchOffsets(o[b],a);for(h=0;h<v.length;h++){var w=v[h];s.push(new r(b,w.offset,b,w.offset+w.length))}}if(n){var y=n.start.column,x=n.start.column;b=0,h=s.length-1;while(b<h&&s[b].start.column<y&&s[b].start.row==n.start.row)b++;while(b<h&&s[h].end.column>x&&s[h].end.row==n.end.row)h--;for(s=s.slice(b,h+1),b=0,h=s.length;b<h;b++)s[b].start.row+=n.start.row,s[b].end.row+=n.start.row}return s},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=i.escapeRegExp(n)),e.wholeWord&&(n=a(n,e));var o=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,o);try{var r=new RegExp(n,o)}catch(s){r=!1}return e.re=r},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(r){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=1==t.backwards,o=0!=t.skipCurrent,r=t.range,s=t.start;s||(s=r?r[i?"end":"start"]:e.selection.getRange()),s.start&&(s=s[o!=i?"end":"start"]);var a=r?r.start.row:0,l=r?r.end.row:e.getLength()-1;if(i)var c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n--;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,a=s.row;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n+=1;n<=l;n++)if(u(n,0,e))return;if(0!=t.wrap)for(n=a,l=s.row;n<=l;n++)if(u(n,0,e))return}};if(t.$isMultiLine)var d=n.length,u=function(t,o,r){var s=i?t-d+1:t;if(!(s<0||s+d>e.getLength())){var a=e.getLine(s),l=a.search(n[0]);if(!(!i&&l<o||-1===l)){for(var c=1;c<d;c++)if(a=e.getLine(s+c),-1==a.search(n[c]))return;var u=a.match(n[d-1])[0].length;if(!(i&&u>o))return!!r(s,l,s+d-1,u)||void 0}}};else if(i)u=function(t,i,o){var r,s=e.getLine(t),a=[],l=0;n.lastIndex=0;while(r=n.exec(s)){var c=r[0].length;if(l=r.index,!c){if(l>=s.length)break;n.lastIndex=l+=1}if(r.index+c>i)break;a.push(r.index,c)}for(var d=a.length-1;d>=0;d-=2){var u=a[d-1];c=a[d];if(o(t,u,t,u+c))return!0}};else u=function(t,i,o){var r,s,a=e.getLine(t);n.lastIndex=i;while(s=n.exec(a)){var l=s[0].length;if(r=s.index,o(t,r,t,r+l))return!0;if(!l&&(n.lastIndex=r+=1,r>=a.length))return!1}};return{forEach:c}}}).call(s.prototype),t.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/useragent"),r=i.KEY_MODS;function s(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){s.call(this,e,t),this.$singleCommand=!1}a.prototype=s.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var o in i){var r=i[o];if(r==e)delete i[o];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i[o]=r[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=r[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var s=this.parseKeys(e),a=r[s.hashId]+s.key;this._addCommandToBinding(i+a,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var o,r=this.commandKeyBinding;if(n)if(!r[t]||this.$singleCommand)r[t]=n;else{Array.isArray(r[t])?-1!=(o=r[t].indexOf(n))&&r[t].splice(o,1):r[t]=[r[t]],"number"!=typeof i&&(i=e(n));var s=r[t];for(o=0;o<s.length;o++){var a=s[o],l=e(a);if(l>i)break}s.splice(o,0,n)}else delete r[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),o=i[n];if(i.FUNCTION_KEYS[o])n=i.FUNCTION_KEYS[o].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var r=0,s=t.length;s--;){var a=i.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;r|=a}return{key:n,hashId:r}},this.findKeyCommand=function(e,t){var n=r[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=r[t]+n,s=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:s}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../keyboard/hash_handler").MultiHashHandler,r=e("../lib/event_emitter").EventEmitter,s=function(e,t){o.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};i.inherits(s,o),function(){i.implement(this,r),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(s.prototype),t.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),o=e("../config"),r=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(e,t){"number"!==typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()),l=a.replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),d=n.row+1;d<=o.row+1;d++){var u=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(d)));0!==u.length&&(u=" "+u),c+=u}o.row+1<e.session.doc.getLength()-1&&(c+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new r(n.row,0,o.row+2,0),c),l>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+l)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var s=0;s<i.length;s++)s==i.length-1&&(i[s].end.row===t&&i[s].end.column===n||o.push(new r(i[s].end.row,i[s].end.column,t,n))),0===s?0===i[s].start.row&&0===i[s].start.column||o.push(new r(0,0,i[s].start.row,i[s].start.column)):o.push(new r(i[s-1].end.row,i[s-1].end.column,i[s].start.row,i[s].start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<o.length;s++)e.selection.addRange(o[s],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:s("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:s(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var a=1;a<9;a++)t.commands.push({name:"foldToLevel"+a,description:"Fold To Level "+a,level:a,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/lang"),s=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,c=e("./mouse/fold_handler").FoldHandler,d=e("./keyboard/keybinding").KeyBinding,u=e("./edit_session").EditSession,h=e("./search").Search,f=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,b=e("./config"),v=e("./token_iterator").TokenIterator,w=e("./clipboard"),y=function(e,t,n){this.$toDestroy=[];var i=e.getContainerElement();this.container=i,this.renderer=e,this.id="editor"+ ++y.$uid,this.commands=new g(s.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new a(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new d(this),this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=r.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||n&&n.session||new u("")),b.resetOptions(this),n&&this.setOptions(n),b._signal("editor",this)};y.$uid=0,function(){i.implement(this,p),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=r.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var r=this.selection.toJSON();this.curOp.selectionAfter=r,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(r),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;b.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());if(!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session)),n){var i="ace_bracket";Array.isArray(n)?1==n.length&&(i="ace_error_bracket"):n=[n],2==n.length&&(0==f.comparePoints(n[0].end,n[1].start)?n=[f.fromPoints(n[0].start,n[1].end)]:0==f.comparePoints(n[0].start,n[1].end)&&(n=[f.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map((function(e){return t.addMarker(e,i,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),i=new v(e.session,n.row,n.column),o=i.getCurrentToken();if(!o||!/\b(?:tag-open|tag-name)/.test(o.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===o.type.indexOf("tag-open")||(o=i.stepForward(),o)){var r=o.value,s=o.value,a=0,l=i.stepBackward();if("<"===l.value)do{l=o,o=i.stepForward(),o&&(-1!==o.type.indexOf("tag-name")?(s=o.value,r===s&&("<"===l.value?a++:"</"===l.value&&a--)):r===s&&"/>"===o.value&&a--)}while(o&&a>=0);else{do{if(o=l,l=i.stepBackward(),o)if(-1!==o.type.indexOf("tag-name"))r===o.value&&("<"===l.value?a++:"</"===l.value&&a--);else if("/>"===o.value){var c=0,d=l;while(d){if(-1!==d.type.indexOf("tag-name")&&d.value===r){a--;break}if("<"===d.value)break;d=i.stepBackward(),c++}for(var u=0;u<c;u++)i.stepForward()}}while(l&&a<=0);i.stepForward()}if(!o)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var h=i.getCurrentTokenRow(),p=i.getCurrentTokenColumn(),g=new f(h,p,h,p+o.value.length),m=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&void 0!=m&&0!==g.compareRange(m.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),t.$tagHighlight||(t.$tagHighlight=t.addMarker(g,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.isFocused()||e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),r=o.substring(n,i);if(!(r.length>5e3)&&/[\w\d]/.test(r)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=o.substring(n-1,i+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),w.lineMode=!!n&&s.text,s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===w.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){i.insert({row:e.start.row,column:0},t)}));else{var o=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,s=2==o.length&&(!o[0]||!o[1]);if(o.length!=r.length||s)return this.commands.exec("insertstring",this,t);for(var a=r.length;a--;){var l=r[a];l.isEmpty()||i.remove(l),i.insert(l.start,o[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(n.getState(o.row),"insertion",this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){s=new f.fromPoints(o,o);s.end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();o=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(o.row);if(o.column>a.search(/\S|$/)){var l=a.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,d=n.getState(o.row),u=(a=n.getLine(o.row),i.checkOutdent(d,a,e));if(n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new f(o.row,c+r.selection[0],o.row,c+r.selection[1])):this.selection.setSelectionRange(new f(o.row+r.selection[0],r.selection[1],o.row+r.selection[2],r.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var h=i.getNextLineIndent(d,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},h)}u&&i.autoOutdent(d,n,o.row)}},this.autoIndent=function(){var e,t,n=this.session,i=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var r,s,a,l="",c="",d="",u=n.getTabString(),h=e;h<=t;h++)h>0&&(l=n.getState(h-1),c=n.getLine(h-1),d=i.getNextLineIndent(l,c,u)),r=n.getLine(h),s=i.$getIndent(r),d!==s&&(s.length>0&&(a=new f(h,0,h,s.length),n.remove(a)),d.length>0&&n.insert({row:h,column:0},d)),i.autoOutdent(l,n,h)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()}if(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd){n=this.selection.getRange();n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n)}},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if("\n"==r[r.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),i=new f(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),i=new f(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){d=this.$getSelectedRows();return void e.indentRows(d.first,d.last,"\t")}}var i=e.getLine(t.start.row),o=t.start,s=e.getTabSize(),a=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var l=s-a%s,c=r.stringRepeat(" ",l);else{l=a%s;while(" "==i[t.start.column-1]&&l)t.start.column--,l--;this.selection.setSelectionRange(t),c="\t"}return this.insert(c)}var d=this.$getSelectedRows();e.indentRows(d.first,d.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var o=new f(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var i=this.session.getLine(e);while(n.lastIndex<t){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t){var r={value:o[0],start:o.index,end:o.index+o[0].length};return r}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new f(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var r=this.getNumberAt(t,n);if(r){var s=r.value.indexOf(".")>=0?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e,l/=Math.pow(10,a);var c=l.toFixed(a),d=new f(t,r.start,t,r.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),s=t-i-1;s<0&&(s=0);var a=0,l=0,c=this;n.match(/[A-Za-z0-9_]+/)&&o.forEach((function(t,o){l=a+t.length,s>=a&&s<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,a+i),c.selection.selectTo(e,l+i)),a=l}));for(var d,u=this.$toggleWordPairs,h=0;h<u.length;h++)for(var f=u[h],p=0;p<=1;p++){var g=+!p,m=n.match(new RegExp("^\\s?_?("+r.escapeRegExp(f[p])+")\\s?$","i"));if(m){var b=n.match(new RegExp("([_]|^|\\s)("+r.escapeRegExp(m[1])+")($|\\s)","g"));b&&(d=n.replace(new RegExp(r.escapeRegExp(f[p]),"i"),(function(e){var t=f[g];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+f[g].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(d),d="")}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var r=i?n.start:n.end,s=t.insert(r,t.getTextRange(n),!1);n.start=r,n.end=s,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var r=o.toOrientedRange();n=this.$getSelectedRows(r),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),o.fromOrientedRange(r)}else{var s=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0),n=this.$getSelectedRows(s[d]);var h=n.first,f=n.last;while(++d<c){l&&s[d].moveBy(l,0);var p=this.$getSelectedRows(s[d]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}d--,a=this.session.$moveLines(h,f,t?0:e),t&&-1==e&&(u=d+1);while(u<=d)s[u].moveBy(a,0),u++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new v(this.session,n.row,n.column),o=i.getCurrentToken(),r=o||i.stepForward();if(r){var s,a,l=!1,c={},d=n.column-r.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;d<r.value.length&&!l;d++)if(u[r.value[d]])switch(a=u[r.value[d]]+"."+r.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),r.value[d]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":c[a]--,-1===c[a]&&(s="bracket",l=!0);break}}else-1!==r.type.indexOf("tag-name")&&(isNaN(c[r.value])&&(c[r.value]=0),"<"===o.value?c[r.value]++:"</"===o.value&&c[r.value]--,-1===c[r.value]&&(s="tag",l=!0));l||(o=r,r=i.stepForward(),d=0)}while(r&&!l);if(s){var h,p;if("bracket"===s)h=this.session.getBracketRange(n),h||(h=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1),p=h.start,(t||p.row===n.row&&Math.abs(p.column-n.column)<2)&&(h=this.session.getBracketRange(p)));else if("tag"===s){if(!r||-1===r.type.indexOf("tag-name"))return;var g=r.value;if(h=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2),0===h.compare(n.row,n.column)){l=!1;do{r=o,o=i.stepBackward(),o&&(-1!==o.type.indexOf("tag-close")&&h.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),r.value===g&&-1!==r.type.indexOf("tag-name")&&("<"===o.value?c[g]++:"</"===o.value&&c[g]--,0===c[g]&&(l=!0)))}while(o&&!l)}r&&r.type.indexOf("tag-name")&&(p=h.start,p.row==n.row&&Math.abs(p.column-n.column)<2&&(p=h.end))}p=h&&h.cursor||p,p&&(e?h&&t?this.selection.setRange(h):h&&h.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorLeft()}else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorRight()}else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),i):i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;r>=0;--r)this.$tryReplace(n[r],e)&&i++;return this.selection.setSelectionRange(o),i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var o=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(o)||this.$search.$options.needle,e||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var r=this.$search.find(this.session);return t.preventScroll?r:r?(this.revealRange(r,n),r):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var r=this.on("changeSelection",(function(){i=!0})),s=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,r=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=r.top-s.offset;i=r.top>=0&&a+t.top<0||!(r.top<s.height&&r.top+t.top+s.lineHeight>window.innerHeight)&&null,null!=i&&(o.style.top=a+"px",o.style.left=r.left+"px",o.style.height=s.lineHeight+"px",o.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",r),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var i=this;b.loadModule("./ext/prompt",(function(o){o.prompt(i,e,t,n)}))}}.call(y.prototype),b.defineOptions(y.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?x.attach(this):x.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=y})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};function o(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){while(n<t-1){var o=h(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return!0}}}(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return t&&(o=n[i+1]),o}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(o(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var i=n.pop(),r=null;return i&&(r=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,r}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);v(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var i=this.$redoStack.pop(),o=null;return i&&(o=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?c(e):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(i.prototype);var r=e("./range").Range,s=r.comparePoints;r.comparePoints;function a(e){return{row:e.row,column:e.column}}function l(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}function c(e){if(e=e||this,Array.isArray(e))return e.map(c).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(d).join("\n"):d(e.value)),e.start&&(t+=d(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function d(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function u(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(s(t.start,e.end)>=0)p(t,e,-1);else{if(!(s(t.start,e.start)<=0))return null;p(e,t,1)}else if(n&&!i)if(s(t.start,e.end)>=0)p(t,e,-1);else{if(!(s(t.end,e.start)<=0))return null;p(e,t,-1)}else if(!n&&i)if(s(t.start,e.start)>=0)p(t,e,1);else{if(!(s(t.start,e.start)<=0))return null;p(e,t,1)}else if(!n&&!i)if(s(t.start,e.start)>=0)p(t,e,1);else{if(!(s(t.end,e.start)<=0))return null;p(e,t,-1)}return[t,e]}function h(e,t){for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!u(e[n],t[i])){while(n<e.length){while(i--)u(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function f(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)s(e.start,t.start)<0?p(t,e,1):p(e,t,1);else if(n&&!i)s(e.start,t.end)>=0?p(e,t,-1):(s(e.start,t.start)<=0||p(e,r.fromPoints(t.start,e.start),-1),p(t,e,1));else if(!n&&i)s(t.start,e.end)>=0?p(t,e,-1):(s(t.start,e.start)<=0||p(t,r.fromPoints(e.start,t.start),-1),p(e,t,1));else if(!n&&!i)if(s(t.start,e.end)>=0)p(t,e,-1);else{var o,a;if(!(s(t.end,e.start)<=0))return s(e.start,t.start)<0&&(o=e,e=m(e,t.start)),s(e.end,t.end)>0&&(a=m(e,t.end)),g(t.end,e.start,e.end,-1),a&&!o&&(e.lines=a.lines,e.start=a.start,e.end=a.end,a=e),[t,o,a].filter(Boolean);p(e,t,-1)}return[t,e]}function p(e,t,n){g(e.start,t.start,t.end,n),g(e.end,t.start,t.end,n)}function g(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function m(e,t){var n=e.lines,i=e.end;e.end=a(t);var o=e.end.row-e.start.row,r=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;n.push(r[0].substring(0,s)),r[0]=r[0].substr(s);var l={start:a(t),end:i,lines:r,action:e.action};return l}function b(e,t){t=l(t);for(var n=e.length;n--;){for(var i=e[n],o=0;o<i.length;o++){var r=i[o],s=f(r,t);t=s[0],2!=s.length&&(s[2]?(i.splice(o+1,1,s[1],s[2]),o++):s[1]||(i.splice(o,1),o--))}i.length||e.splice(n,1)}return e}function v(e,t){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)b(e,i[o])}t.UndoManager=i})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){i.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight),r=n.documentToScreenRow(e,0)*t.lineHeight;return r-o*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=i.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,o){var r=this.cellCache.pop();if(!r){var s=i.createElement("div");o&&o(s),this.element.appendChild(s),r={element:s,text:"",row:e}}return r.row=e,r}}).call(o.prototype),t.Lines=o})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=e("../lib/oop"),r=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=e("./lines").Lines,l=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new a(this.element),this.$lines.$offsetCoefficient=1};function c(e){var t=document.createTextNode("");e.appendChild(t);var n=i.createElement("span");return e.appendChild(n),e}(function(){o.implement(this,s),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=this.$annotations[i];o||(o=this.$annotations[i]={text:[]});var s=n.text;s=s?r.escapeHTML(s):n.html||"",-1===o.text.indexOf(s)&&o.text.push(s);var a=n.type;"error"==a?o.className=" ace_error":"warning"==a&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=a||o.className||(o.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();var o=t.getNextFoldLine(n),r=o?o.start.row:1/0,s=null,a=-1,l=n;while(1){if(l>r&&(l=o.end.row+1,o=t.getNextFoldLine(l,o),r=o?o.start.row:1/0),l>i){while(this.$lines.getLength()>a+1)this.$lines.pop();break}s=this.$lines.get(++a),s?s.row=l:(s=this.$lines.createCell(l,e,this.session,c),this.$lines.push(s)),this.$renderCell(s,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var r=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();r+=s.left+s.right,r===this.gutterWidth||isNaN(r)||(this.gutterWidth=r,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",r))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(i>n)for(o=this.session.getFoldedRowCount(n+1,i);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>i&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:1/0;while(1){if(o>s&&(o=r.end.row+1,r=this.session.getNextFoldLine(o,r),s=r?r.start.row:1/0),o>n)break;var a=this.$lines.createCell(o,e,this.session,c);this.$renderCell(a,e,r,o),i.push(a),o++}return i},this.$renderCell=function(e,t,n,o){var r=e.element,s=this.session,a=r.childNodes[0],l=r.childNodes[1],c=s.$firstLineNumber,d=s.$breakpoints,u=s.$decorations,h=s.gutterRenderer||this.$renderer,f=this.$showFoldWidgets&&s.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,g="ace_gutter-cell ";if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o<this.$cursorRow&&o>=p&&this.$cursorRow<=n.end.row)&&(g+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),d[o]&&(g+=d[o]),u[o]&&(g+=u[o]),this.$annotations[o]&&(g+=this.$annotations[o].className),r.className!=g&&(r.className=g),f){var m=f[o];null==m&&(m=f[o]=s.getFoldWidget(o))}if(m){g="ace_fold-widget ace_"+m;"start"==m&&o==p&&o<n.end.row?g+=" ace_closed":g+=" ace_open",l.className!=g&&(l.className=g);var b=t.lineHeight+"px";i.setStyle(l.style,"height",b),i.setStyle(l.style,"display","inline-block")}else l&&i.setStyle(l.style,"display","none");var v=(h?h.getText(s,o):o+c).toString();return v!==a.data&&(a.data=v),i.setStyle(e.element.style,"height",this.$lines.computeLineHeight(o,t,s)+"px"),i.setStyle(e.element.style,"top",this.$lines.computeLineTop(o,t,s)+"px"),e.text=v,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../range").Range,o=e("../lib/dom"),r=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers[n];if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var r=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,s,r,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,o,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?"text"==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}if(-1!=this.i)while(this.i<this.element.childElementCount)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,o,r,s){for(var a=this.session,l=n.start.row,c=n.end.row,d=l,u=0,h=0,f=a.getScreenLastRowColumn(d),p=new i(d,n.start.column,d,h);d<=c;d++)p.start.row=p.end.row=d,p.start.column=d==l?n.start.column:a.getRowWrapIndent(d),p.end.column=f,u=h,h=f,f=d+1<c?a.getScreenLastRowColumn(d+1):d==c?0:n.end.column,this.drawSingleLineMarker(t,p,o+(d==l?" ace_start":"")+" ace_br"+e(d==l||d==l+1&&n.start.column,u<h,h>f,d==c),r,d==c?0:1,s)},this.drawMultiLineMarker=function(e,t,n,i,o){var r=this.$padding,s=i.lineHeight,a=this.$getTop(t.start.row,i),l=r+t.start.column*i.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var c=t.clone();c.end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",i,null,o)}else this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){c=t.clone();c.start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",i,null,o)}else{a=this.$getTop(t.end.row,i);var d=t.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+d+"px;top:"+a+"px;left:"+r+"px;"+(o||""))}if(s=(t.end.row-t.start.row-1)*i.lineHeight,!(s<=0)){a=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+r+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var s=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(r||""))},this.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding,c=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);c.forEach((function(e){this.elt(n,"height:"+s+"px;width:"+e.width+(o||0)+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))}),this)},this.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))}}).call(r.prototype),t.Marker=r})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)};(function(){i.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode(),n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)if(this.showTabs){var i=this.dom.createElement("span");i.className="ace_invisible ace_invisible_tab",i.textContent=r.stringRepeat(this.TAB_CHAR,n),t.push(i)}else t.push(this.dom.createTextNode(r.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o="ace_indent-guide",s=this.showSpaces?" ace_invisible ace_invisible_space":"",a=this.showSpaces?r.stringRepeat(this.SPACE_CHAR,this.tabSize):r.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",c=this.showTabs?r.stringRepeat(this.TAB_CHAR,this.tabSize):a;i=this.dom.createElement("span");i.className=o+s,i.textContent=a,this.$tabStrings[" "]=i;i=this.dom.createElement("span");i.className=o+l,i.textContent=c,this.$tabStrings["\t"]=i}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){var l=this.session.getFoldLine(a);if(l){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}var c=!1,d=(a=i,l=this.session.getNextFoldLine(a),l?l.start.row:1/0);while(1){if(a>d&&(a=l.end.row+1,l=this.session.getNextFoldLine(a,l),d=l?l.start.row:1/0),a>o)break;var u=r[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==d&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var h=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=h&&(c=!0,u.style.height=h)}a++}if(c)while(s<this.$lines.cells.length){var f=this.$lines.cells[s++];f.element.style.top=this.$lines.computeLineTop(f.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){var i=[],r=t,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;while(1){if(r>a&&(r=s.end.row+1,s=this.session.getNextFoldLine(r,s),a=s?s.start.row:1/0),r>n)break;var l=this.$lines.createCell(r,e,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(r,e,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(r,e,this.session)+"px"),this.$renderLine(c,r,r==a&&s),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",i.push(l),r++}return i},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,i=this.$lines;while(i.getLength())i.pop();i.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){var o,s=this,a=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;while(o=a.exec(i)){var d=o[1],u=o[2],h=o[3],f=o[4],p=o[5];if(s.showSpaces||!u){var g=c!=o.index?i.slice(c,o.index):"";if(c=o.index+o[0].length,g&&l.appendChild(this.dom.createTextNode(g,this.element)),d){var m=s.session.getScreenTabSize(t+o.index);l.appendChild(s.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(u)if(s.showSpaces){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space",b.textContent=r.stringRepeat(s.SPACE_CHAR,u.length),l.appendChild(b)}else l.appendChild(this.com.createTextNode(u,this.element));else if(h){b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_space ace_invalid",b.textContent=r.stringRepeat(s.SPACE_CHAR,h.length),l.appendChild(b)}else if(f){t+=1;b=this.dom.createElement("span");b.style.width=2*s.config.characterWidth+"px",b.className=s.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",b.textContent=s.showSpaces?s.SPACE_CHAR:f,l.appendChild(b)}else if(p){t+=1;b=this.dom.createElement("span");b.style.width=2*s.config.characterWidth+"px",b.className="ace_cjk",b.textContent=p,l.appendChild(b)}}}if(l.appendChild(this.dom.createTextNode(c?i.slice(c):i,this.element)),this.$textToken[n.type])e.appendChild(l);else{var v="ace_"+n.type.replace(/\./g," ace_");b=this.dom.createElement("span");"fold"==n.type&&(b.style.width=n.value.length*this.config.characterWidth+"px"),b.className=v,b.appendChild(l),e.appendChild(b)}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||i>=n)return t;if(" "==t[0]){i-=i%this.tabSize;for(var o=i/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return t.substr(i)}if("\t"==t[0]){for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return t.substr(i)}return t},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,n){var i=0,o=0,s=n[0],a=0,l=this.$createLineElement();e.appendChild(l);for(var c=0;c<t.length;c++){var d=t[c],u=d.value;if(0==c&&this.displayIndentGuides){if(i=u.length,u=this.renderIndentGuide(l,u,s),!u)continue;i-=u.length}if(i+u.length<s)a=this.$renderToken(l,a,d,u),i+=u.length;else{while(i+u.length>=s)a=this.$renderToken(l,a,d,u.substring(0,s-i)),u=u.substring(s-i),i=s,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(r.stringRepeat(" ",n.indent),this.element)),o++,a=0,s=n[o]||Number.MAX_VALUE;0!=u.length&&(i+=u.length,a=this.$renderToken(l,a,d,u))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],o=i.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(n=this.$renderToken(e,n,i,o));for(var r=1;r<t.length;r++){if(i=t[r],o=i.value,n+o.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,o);n=this.$renderToken(e,n,i,o)}},this.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement("span");r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"<hide>":"<click to see more...>",e.appendChild(r)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var r=this.session.getRowSplitData(t);if(r&&r.length){this.$renderWrappedLine(e,i,r);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s)}},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];function o(e,t,n){var o=0,r=0;while(r+e[o].value.length<t)if(r+=e[o].value.length,o++,o==e.length)return;if(r!=t){var s=e[o].value.substring(t-r);s.length>n-t&&(s=s.substring(0,n-t)),i.push({type:e[o].type,value:s}),r=t+s.length,o+=1}while(r<n&&o<e.length){s=e[o].value;s.length+r>n?i.push({type:e[o].type,value:s.substring(0,n-r)}):i.push(e[o]),r+=s.length,o+=1}}var r=n.getTokens(e);return t.walk((function(e,t,s,a,l){null!=e?i.push({type:"fold",value:e}):(l&&(r=n.getTokens(t)),r.length&&o(r,a,s))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)i.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),i=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),o=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:o}},this.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,o=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var a=this.cursors[o++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,s,e,t[n],this.session):this.isCursorInView(s,e)?(i.setStyle(l,"display","block"),i.translate(a,s.left,s.top),i.setStyle(l,"width",Math.round(e.characterWidth)+"px"),i.setStyle(l,"height",e.lineHeight+"px")):i.setStyle(l,"display","none")}}while(this.cursors.length>o)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=32768,l=function(e){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addListener(this.element,"scroll",this.onScroll.bind(this)),r.addListener(this.element,"mousedown",r.preventDefault)};(function(){i.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=o.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>a?(this.coeff=a/e,e=a):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var d=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(d,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(d.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=d,t.VScrollBar=c,t.HScrollBar=d})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),o=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(i.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(o.prototype),t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),s=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=256,d="function"==typeof ResizeObserver,u=200,h=t.FontMetrics=function(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=r.stringRepeat("X",c),this.$characterSize={width:0,height:0},d?this.$addObserver():this.checkForSizeChanges()};(function(){i.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=s.onIdle((function t(){e.checkForSizeChanges(),s.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.textContent=r.stringRepeat(e,c);var t=this.$main.getBoundingClientRect();return t.width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(u,0),e(0,u),e(u,u)],this.el)},this.transformCoordinates=function(e,t){if(e){var n=this.$getZoom(this.el);e=s(1/n,e)}function i(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function r(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var l=a(this.els[0]),c=a(this.els[1]),d=a(this.els[2]),h=a(this.els[3]),f=i(o(h,c),o(h,d),o(r(c,d),r(h,l))),p=s(1+f[0],o(c,l)),g=s(1+f[1],o(d,l));if(t){var m=t,b=f[0]*m[0]/u+f[1]*m[1]/u+1,v=r(s(m[0],p),s(m[1],g));return r(s(1/b/u,v),l)}var w=o(e,l),y=i(o(p,s(f[0],w)),o(g,s(f[1],w)),w);return s(u,y)}}).call(h.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/dom"),r=e("./config"),s=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,h=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,g='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',m=e("./lib/useragent"),b=m.isIE;o.importCssString(g,"ace_editor.css",!1);var v=function(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==r.get("useStrictCSP")&&r.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!m.isIOS,this.$loop=new h(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),r.resetOptions(this),r._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var r=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(i&&(e||s.height!=i)&&(s.height=i,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)){r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)}return s.$dirty=!n||!i,r&&this._signal("resize",a),r},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var i=this.layerConfig,r=n.top,s=n.left;r-=i.offset;var a=t&&t.useTextareaForIME?this.lineHeight:b?0:1;if(r<0||r>i.height-a)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-a;if(t)if(t.useTextareaForIME){var d=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(d)[0]}else r+=this.lineHeight+2;else r+=this.lineHeight;s-=this.scrollLeft,s>this.$size.scrollerWidth-l&&(s=this.$size.scrollerWidth-l),s+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",a+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-l),Math.min(r,c))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var r=n.width+2*this.$padding+"px",s=n.minHeight+"px";o.setStyle(this.content.style,"width",r),o.setStyle(this.content.style,"height",s)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=n<=2*this.lineHeight,o=!i&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||o!=this.$vScroll){o!=this.$vScroll&&(this.$vScroll=o,this.scrollBarV.setVisible(o));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength(),o=i*this.lineHeight,r=this.$getLongestLine(),s=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),a=this.$horizScroll!==s;a&&(this.$horizScroll=s,this.scrollBarH.setVisible(s));var l=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;o+=d;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,o-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+u.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-o+d<0||this.scrollTop>u.top),f=l!==h;f&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var p,g,m=this.scrollTop%this.lineHeight,b=Math.ceil(c/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),w=v+b,y=this.lineHeight;v=e.screenToDocumentRow(v,0);var x=e.getFoldLine(v);x&&(v=x.start.row),p=e.documentToScreenRow(v,0),g=e.getRowLength(v)*y,w=Math.min(e.screenToDocumentRow(w,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(w)*y+g,m=this.scrollTop-p*y;var _=0;return(this.layerConfig.width!=r||a)&&(_=this.CHANGE_H_SCROLL),(a||f)&&(_|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:w,lineHeight:y,characterWidth:this.characterWidth,minHeight:c,maxHeight:o,offset:m,gutterOffset:y?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),_},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,r=i.top,s=n&&n.top||0,a=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>r?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft;c>o?(o<this.$padding+2*this.layerConfig.characterWidth&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):c+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&o-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,o=n.top-i*(t||0);return this.session.setScrollTop(o),o},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,i=this.STEPS,o=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)o.push(r(n/this.STEPS,e,t-e));return o},this.scrollToLine=function(e,t,n,i){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}),r=o.top;t&&(r-=this.$size.scrollerHeight/2);var s=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(s,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0],e==n))return}var r=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){if(!i.session)return clearInterval(i.$timer);r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(r):Math.round(r);return{row:s,column:a,side:r-a>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=this.$blockCursor?Math.floor(r):Math.round(r),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+r-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines[n]=null;var r={type:t,value:e},s=o.getTokens(n);if(null==i)s.push(r);else for(var a=0,l=0;l<s.length;l++){var c=s[l];if(a+=c.value.length,i<=a){var d=c.value.length-(a-i),u=c.value.slice(0,d),h=c.value.slice(d);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:h});break}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)s(e);else{var i=e||this.$options.theme.initialValue;r.loadModule(["theme",i],s)}function s(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");i.$id&&(n.$themeId=i.$id),o.importCssString(i.cssText,i.cssClass,n.container),n.theme&&o.removeCssClass(n.container,n.theme.cssClass);var r="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&r!=n.$padding&&n.setPadding(r),n.$theme=i.cssClass,n.theme=i,o.addCssClass(n.container,i.cssClass),o.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){o.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){o.removeCssClass(this.container,e)},this.setCursorStyle=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){o.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){o.importCssString(g,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""}}).call(v.prototype),r.defineOptions(v.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!m.isMobile&&!m.isIE}}),t.VirtualRenderer=v})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("../lib/net"),r=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e){var t="importScripts('"+o.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(r){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,i=new n;return i.append(t),i.getBlob("application/javascript")}}function l(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var t=a(e),n=window.URL||window.webkitURL,i=n.createObjectURL(t);return new Worker(i)}return new Worker(e)}var c=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,r),this.$createWorkerFromOldConfig=function(t,n,i,o,r){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)o=o||s.moduleUrl(n,"worker");else{var a=this.$normalizePath;o=o||a(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach((function(t){c[t]=a(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=l(o),r&&this.send("importScripts",r),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:i}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return o.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var d=function(e,t,n){var i=null,o=!1,a=Object.create(r),l=[],d=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),i&&(o?setTimeout(u):u())}});d.setEmitSync=function(e){o=e};var u=function(){var e=l.shift();e.command?i[e.command].apply(i,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){d.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){i=new e[n](a);while(l.length)u()})),d};t.UIWorkerClient=d,t.WorkerClient=c,t.createWorker=l})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,r=e("./lib/oop"),s=function(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){r.implement(this,o),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new i(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,o=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a=this.others[s],l={row:a.row,column:a.column+r};this.doc.insertMergedLines(l,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){a=this.others[s],l={row:a.row,column:a.column+r};this.doc.remove(new i(l.row,l.column,l.row,l.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(s.prototype),t.PlaceHolder=s})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),o=e("../lib/useragent");function r(e,t){return e.row==t.row&&e.column==t.column}function s(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&o.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var d,u=e.editor,h=u.selection,f=u.inMultiSelectMode,p=e.getDocumentPosition(),g=h.getCursor(),m=e.inSelection()||h.isEmpty()&&r(p,g),b=e.x,v=e.y,w=function(e){b=e.clientX,v=e.clientY},y=u.session,x=u.renderer.pixelToScreenCoordinates(b,v),_=x;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?d=s?"block":"add":n&&u.$blockSelectEnabled&&(d="block");else if(l&&!n){if(d="add",!f&&s)return}else n&&u.$blockSelectEnabled&&(d="block");if(d&&o.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==d){if(!f&&m)return;if(!f){var C=h.toOrientedRange();u.addSelectionMarker(C)}var S=h.rangeList.rangeAtPoint(p);u.inVirtualSelectionMode=!0,s&&(S=null,C=h.ranges[0]||C,u.removeSelectionMarker(C)),u.once("mouseup",(function(){var e=h.toOrientedRange();S&&e.isEmpty()&&r(S.cursor,e.cursor)?h.substractPoint(e.cursor):(s?h.substractPoint(C.cursor):C&&(u.removeSelectionMarker(C),h.addRange(C)),h.addRange(e)),u.inVirtualSelectionMode=!1}))}else if("block"==d){var k;e.stop(),u.inVirtualSelectionMode=!0;var M=[],E=function(){var e=u.renderer.pixelToScreenCoordinates(b,v),t=y.screenToDocumentPosition(e.row,e.column,e.offsetX);r(_,e)&&r(t,h.lead)||(_=e,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(M),M=h.rectangularRangeBlock(_,x),u.$mouseHandler.$clickSelection&&1==M.length&&M[0].isEmpty()&&(M[0]=u.$mouseHandler.$clickSelection.clone()),M.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers())};f&&!l?h.toSingleRange():!f&&l&&(k=h.toOrientedRange(),u.addSelectionMarker(k)),s?x=y.documentToScreenPosition(h.lead):h.moveToPosition(p),_={row:-1,column:-1};var $=function(e){E(),clearInterval(O),u.removeSelectionMarkers(M),M.length||(M=[h.toOrientedRange()]),k&&(u.removeSelectionMarker(k),h.toSingleRange(k));for(var t=0;t<M.length;t++)h.addRange(M[t]);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null},L=E;i.capture(u.container,w,$);var O=setInterval((function(){L()}),20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}t.onMouseDown=s})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var i=e("./range_list").RangeList,o=e("./range").Range,r=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=e("./search").Search,u=new d;function h(e,t,n){return u.$options.wrap=!0,u.$options.needle=t,u.$options.backwards=-1==n,u.find(e)}var f=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var i=e[n],r=i.start.row,s=i.end.row;if(r===s)t.push(i.clone());else{t.push(new o(r,i.start.column,r,this.session.getLine(r).length));while(++r<s)t.push(this.getLineRange(r,!0));t.push(new o(s,0,s,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),r=this.session.documentToScreenPosition(this.anchor),s=this.rectangularRangeBlock(i,r);s.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],r=e.column<t.column;if(r)var s=e.column,a=t.column,l=e.offsetX,c=t.offsetX;else s=t.column,a=e.column,l=t.offsetX,c=e.offsetX;var d,u=e.row<t.row;if(u)var h=e.row,f=t.row;else h=t.row,f=e.row;s<0&&(s=0),h<0&&(h=0),h==f&&(n=!0);for(var p=h;p<=f;p++){var m=o.fromPoints(this.session.screenToDocumentPosition(p,s,l),this.session.screenToDocumentPosition(p,a,c));if(m.isEmpty()){if(d&&g(m.end,d))break;d=m.end}m.cursor=r?m.start:m.end,i.push(m)}if(u&&i.reverse(),!n){var b=i.length-1;while(i[b].isEmpty()&&b>0)b--;if(b>0){var v=0;while(i[v].isEmpty())v++}for(var w=b;w>=v;w--)i[w].isEmpty()&&i.splice(w,1)}return i}}.call(r.prototype);var p=e("./editor").Editor;function g(e,t){return e.row==t.row&&e.column==t.column}function m(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),b(e))}function b(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;a.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()}),e),a.addListener(t,"keyup",i,e),a.addListener(t,"blur",i,e)}function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(o?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var h=new r(a);this.inVirtualSelectionMode=!0;for(var f=d.length;f--;){if(s)while(f>0&&d[f].start.row==d[f-1].end.row)f--;h.fromOrientedRange(d[f]),h.index=f,this.selection=a.selection=h;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),h.toOrientedRange(d[f])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();e=n.join(o),e.length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if(t=t||{},t.needle=e||t.needle,void 0==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var s=o.length;s--;)r.addRange(o[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,r=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var s=this.session.screenToDocumentPosition(r.row+e,r.column);if(n.isEmpty())l=s;else var a=this.session.documentToScreenPosition(i?n.end:n.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);if(i){var c=o.fromPoints(s,l);c.cursor=c.start}else{c=o.fromPoints(l,s);c.cursor=c.end}if(c.desiredColumn=r.column,this.selection.inMultiSelectMode){if(t)var d=n.cursor}else this.selection.addRange(n);this.selection.addRange(c),d&&this.selection.substractPoint(d)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o--;){var r=i[o];if(r.isEmpty()){var s=t.getWordRange(r.start.row,r.start.column);r.start.row=s.start.row,r.start.column=s.start.column,r.end.row=s.end.row,r.end.column=s.end.column}}n.mergeOverlappingRanges();var a=[];for(o=i.length;o--;){r=i[o];a.unshift(t.getTextRange(r))}e<0?a.unshift(a.pop()):a.push(a.shift());for(o=i.length;o--;){r=i[o],s=r.clone();t.replace(r,a[o]),r.start.row=s.start.row,r.start.column=s.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var i=this.session,o=i.multiSelect,r=o.toOrientedRange();if(!r.isEmpty()||(r=i.getWordRange(r.start.row,r.start.column),r.cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),!n)){var s=i.getTextRange(r),a=h(i,s,e);a&&(a.cursor=-1==e?a.start:a.end,this.session.unfold(a),this.multiSelect.addRange(a),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,r=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&r.length!=n.length-1){r.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,c=n.map((function(t){var n=t.cursor,i=e.getLine(n.row),o=i.substr(n.column).search(/\S/g);return-1==o&&(o=0),n.column>s&&(s=n.column),o<a&&(a=o),o}));n.forEach((function(t,n){var i=t.cursor,r=s-i.column,d=c[n]-a;r>d?e.insert(i,l.stringRepeat(" ",r-d)):e.remove(new o(i.row,i.column,i.row,i.column-r+d)),t.start.column=t.end.column=s,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),u=d.start.row,h=d.end.row,f=u==h;if(f){var p,g=this.session.getLength();do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&++h<g);do{p=this.session.getLine(u)}while(/[=:]/.test(p)&&--u>0);u<0&&(u=0),h>=g&&(h=g-1)}var m=this.session.removeFullLines(u,h);m=this.$reAlignText(m,f),this.session.insert({row:u,column:0},m.join("\n")+"\n"),f||(d.start.column=0,d.end.column=m[m.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,i,o,r=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,o=t[3].length,t):(n+i+o!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(r=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),o>t[3].length&&(o=t[3].length),t):[e]})).map(t?c:r?s?d:c:u);function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(i-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function d(e){return e[2]?a(n+i-e[2].length)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?a(n)+e[2]+a(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){m(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,r=e.getLine(t),s=r.search(o);if(-1!=s){var a=n||r.length,l=e.getLength(),c=t,d=t;while(++t<l){var u=e.getLine(t).search(o);if(-1!=u){if(u<=s){var h=e.getTokenAt(t,0);if(!h||"string"!==h.type)break}d=t}}if(d>c){var f=e.getLine(d).length;return new i(c,a,d,f)}}},this.openingBracketBlock=function(e,t,n,o,r){var s={row:n,column:o+1},a=e.$findClosingBracket(t,s,r);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),i.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,o,r){var s={row:n,column:o},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,i.fromPoints(a,s)}}).call(o.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate";var i=e("../lib/dom");i.importCssString(t.cssText,t.cssClass,!1)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./lib/dom");function o(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,o=i.start.row,r=i.end.row,s="add"==e.action,a=o+1;a<r;a++)n[a]&&(n[a].hidden=s);n[r]&&(s?n[o]?n[r].hidden=s:n[o]=n[r]:(n[o]==n[r]&&(n[o]=void 0),n[r].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){var o=t.splice(n+1,i);!t[n]&&o[o.length-1]&&(t[n]=o.pop()),o.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var r=new Array(i);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],i=[];while(n)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row),a<0&&(a=0)),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);while(o>0&&!i[o])o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(o.prototype),t.LineWidgets=o})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,o=e("../lib/dom"),r=e("../range").Range;function s(e,t,n){var i=0,o=e.length-1;while(i<=o){var r=i+o>>1,s=n(t,e[r]);if(s>0)i=r+1;else{if(!(s<0))return r;o=r-1}}return-(i+1)}function a(e,t,n){var i=e.getAnnotations().sort(r.comparePoints);if(i.length){var o=s(i,{row:t,column:-1},r.comparePoints);o<0&&(o=-o-1),o>=i.length?o=n>0?0:i.length-1:0===o&&n<0&&(o=i.length-1);var a=i[o];if(a&&n){if(a.row===t){do{a=i[o+=n]}while(a&&a.row===t);if(!a)return i.slice()}var l=[];t=a.row;do{l[n<0?"unshift":"push"](a),a=i[o+=n]}while(a&&a.row==t);return l.length&&l}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var r=e.getCursorPosition(),s=r.row,l=n.widgetManager.getWidgetsAtRow(s).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():s-=t;var c,d=a(n,s,t);if(d){var u=d[0];r.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,r.row=u.row,c=e.renderer.$gutterLayer.$annotations[r.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(r.row),e.selection.moveToPosition(r);var h={row:r.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},f=h.el.appendChild(o.createElement("div")),p=h.el.appendChild(o.createElement("div"));p.className="error_widget_arrow "+c.className;var g=e.renderer.$cursorLayer.getPixelPosition(r).left;p.style.left=g+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",f.className="error_widget "+c.className,f.innerHTML=c.text.join("<br>"),f.appendChild(o.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),r=e("./lib/event"),s=e("./range").Range,a=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,d=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n("07d6"),t.edit=function(e,n){if("string"==typeof e){var i=e;if(e=document.getElementById(i),!e)throw new Error("ace.edit can't find div #"+i)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;s=l.value,e=o.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(s=e.textContent,e.innerHTML="");var c=t.createEditSession(s),u=new a(new d(e),c,n),h={document:c,editor:u,onResize:u.resize.bind(u,null)};return l&&(h.textarea=l),r.addListener(window,"resize",h.onResize),u.on("destroy",(function(){r.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new c),n},t.Range=s,t.Editor=a,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=d,t.version=t.config.version})),function(){ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace["default"]=window.ace,e&&(e.exports=window.ace)}))}()}).call(this,n("62e4")(e))},"6d61":function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("e330"),s=n("94ca"),a=n("6eeb"),l=n("f183"),c=n("2266"),d=n("19aa"),u=n("1626"),h=n("861d"),f=n("d039"),p=n("1c7e"),g=n("d44e"),m=n("7156");e.exports=function(e,t,n){var b=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),w=b?"set":"add",y=o[e],x=y&&y.prototype,_=y,C={},S=function(e){var t=r(x[e]);a(x,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return v&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},k=s(e,!u(y)||!(v||x.forEach&&!f((function(){(new y).entries().next()}))));if(k)_=n.getConstructor(t,e,b,w),l.enable();else if(s(e,!0)){var M=new _,E=M[w](v?{}:-0,1)!=M,$=f((function(){M.has(1)})),L=p((function(e){new y(e)})),O=!v&&f((function(){var e=new y,t=5;while(t--)e[w](t,t);return!e.has(-0)}));L||(_=t((function(e,t){d(e,x);var n=m(new y,e,_);return void 0!=t&&c(t,n[w],{that:n,AS_ENTRIES:b}),n})),_.prototype=x,x.constructor=_),($||O)&&(S("delete"),S("has"),b&&S("get")),(O||E)&&S(w),v&&x.clear&&delete x.clear}return C[e]=_,i({global:!0,forced:_!=y},C),g(_,e),v||n.setStrong(_,e,b),_}},"6e5c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-button",{ref:"fieldEditor",attrs:{type:e.field.options.type,size:e.field.options.size,plain:e.field.options.plain,round:e.field.options.round,circle:e.field.options.circle,icon:e.field.options.icon,disabled:e.field.options.disabled},nativeOn:{click:function(t){return e.handleButtonWidgetClick.apply(null,arguments)}}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=(n("a9e3"),n("828b")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"button-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("6fd8"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"3f637903",null);t["default"]=f.exports},"6eeb":function(e,t,n){var i=n("da84"),o=n("1626"),r=n("1a2d"),s=n("9112"),a=n("ce4e"),l=n("8925"),c=n("69f3"),d=n("5e77").CONFIGURABLE,u=c.get,h=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var c,u=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,m=l&&void 0!==l.name?l.name:t;o(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!r(n,"name")||d&&n.name!==m)&&s(n,"name",m),c=h(n),c.source||(c.source=f.join("string"==typeof m?m:""))),e!==i?(u?!g&&e[t]&&(p=!0):delete e[t],p?e[t]=n:s(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return o(this)&&u(this).source||l(this)}))},"6f49":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.circle")}},[n("el-checkbox",{model:{value:e.optionModel.circle,callback:function(t){e.$set(e.optionModel,"circle",t)},expression:"optionModel.circle"}})],1)},o=[],r=n("79fa"),s={name:"circle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"a6570424",null);t["default"]=c.exports},"6fd8":function(e,t,n){"use strict";n("ad3f")},7007:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-slider-field",use:"icon-slider-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-slider-field"><defs><style type="text/css"></style></defs><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" p-id="53484" /></symbol>'});s.a.add(a);t["default"]=a},7037:function(e,t,n){function i(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=i=function(e){return typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0),i(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},7131:function(e,t,n){"use strict";n("ae04")},7156:function(e,t,n){var i=n("1626"),o=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var s,a;return r&&i(s=t.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&r(e,a),e}},"71bc":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return buildDefaultValueListFn})),__webpack_require__.d(__webpack_exports__,"d",(function(){return buildRulesListFn})),__webpack_require__.d(__webpack_exports__,"c",(function(){return buildFieldOptionsFn})),__webpack_require__.d(__webpack_exports__,"e",(function(){return buildUploadDataFn})),__webpack_require__.d(__webpack_exports__,"a",(function(){return buildActiveTabs})),__webpack_require__.d(__webpack_exports__,"f",(function(){return genVue2JS}));var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_3__),_utils_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("ca00"),_utils_i18n__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("79fa"),_utils_validators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("a00a");function buildDefaultValueListFn(e,t,n){return function(e){var t=e.options,i=t.defaultValue;Object(_utils_util__WEBPACK_IMPORTED_MODULE_4__["i"])(i)?n.push("".concat(t.name,": ").concat(JSON.stringify(i),",")):n.push("".concat(t.name,": null,"))}}function buildRulesListFn(formConfig,widgetList,resultList){return function(fieldWidget){var fop=fieldWidget.options,fieldRules=[];if(fop.required&&fieldRules.push("{\n required: true,\n message: '".concat(Object(_utils_i18n__WEBPACK_IMPORTED_MODULE_5__["c"])("render.hint.fieldRequired"),"',\n }")),fop.validation){var vldName=fop.validation;_utils_validators__WEBPACK_IMPORTED_MODULE_6__["a"][vldName]?fieldRules.push("{\n pattern: ".concat(eval(Object(_utils_validators__WEBPACK_IMPORTED_MODULE_6__["b"])(vldName)),",\n trigger: ['blur', 'change'],\n message: '").concat(fop.validationHint,"'\n }")):fieldRules.push("{\n pattern: '".concat(eval(vldName),"',\n trigger: ['blur', 'change'],\n message: '").concat(fop.validationHint,"'\n }"))}fieldRules.length>0&&resultList.push("".concat(fop.name,": [").concat(fieldRules.join(","),"],"))}}function buildFieldOptionsFn(e,t,n){return function(e){var t=e.options,i=e.type;"radio"!==i&&"checkbox"!==i&&"select"!==i&&"cascader"!==i||n.push("".concat(t.name,"Options: ").concat(JSON.stringify(t.optionItems),","))}}function buildUploadDataFn(e,t,n){return function(e){var t=e.options,i=e.type;"picture-upload"!==i&&"file-upload"!==i||(n.push("".concat(t.name,"FileList: [],")),n.push("".concat(t.name,"UploadHeaders: {},")),n.push("".concat(t.name,"UploadData: {},")))}}function buildActiveTabs(e,t){var n=[],i=function(e){var t=e.options,i=e.type;"tab"===i&&e.tabs.length>0&&n.push("'".concat(t.name,"ActiveTab': '").concat(e.tabs[0].options.name,"',"))};return Object(_utils_util__WEBPACK_IMPORTED_MODULE_4__["n"])(t,i),n}var genVue2JS=function(e,t){var n=[],i=[],o=[],r=[];Object(_utils_util__WEBPACK_IMPORTED_MODULE_4__["o"])(t,(function(s){buildDefaultValueListFn(e,t,n)(s),buildRulesListFn(e,t,i)(s),buildFieldOptionsFn(e,t,o)(s),buildUploadDataFn(e,t,r)(s)}));var s=buildActiveTabs(e,t),a=" export default {\n components: {},\n props: {},\n data() {\n return {\n ".concat(e.modelName,": {\n ").concat(n.join("\n"),"\n },\n \n ").concat(e.rulesName,": {\n ").concat(i.join("\n"),"\n },\n \n ").concat(s.join("\n"),"\n \n ").concat(o.join("\n"),"\n \n ").concat(r.join("\n"),"\n }\n },\n computed: {},\n watch: {},\n created() {\n },\n mounted() {\n },\n methods: {\n submitForm() {\n this.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n },\n \n resetForm() {\n this.$refs['vForm'].resetFields()\n }\n }\n }");return a}},"72f7":function(e,t,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,o=n("d039"),r=n("da84"),s=n("e330"),a=r.Uint8Array,l=a&&a.prototype||{},c=[].toString,d=s([].join);o((function(){c.call({})}))&&(c=function(){return d(this)});var u=l.toString!=c;i("toString",c,u)},"732a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.customLabelIcon")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelIconClass")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelIconClass,callback:function(t){e.$set(e.optionModel,"labelIconClass",t)},expression:"optionModel.labelIconClass"}})],1)],1)},o=[],r=n("79fa"),s={name:"labelIconClass-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"64edb29a",null);t["default"]=c.exports},7331:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onUploadSuccess","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onUploadSuccess",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onUploadSuccess-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["result","file","fileList"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"40a94791",null);t["default"]=d.exports},"735e":function(e,t,n){"use strict";var i=n("ebb5"),o=n("c65b"),r=n("81d5"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("fill",(function(e){var t=arguments.length;return o(r,s(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},7362:function(e,t,n){"use strict";n("d8c4")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),o=n("1a2d"),r=n("e538"),s=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||s(t,e,{value:r.f(e)})}},"74e8":function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("c65b"),s=n("83ab"),a=n("8aa7"),l=n("ebb5"),c=n("621a"),d=n("19aa"),u=n("5c6c"),h=n("9112"),f=n("eac5"),p=n("50c4"),g=n("0b25"),m=n("182d"),b=n("a04b"),v=n("1a2d"),w=n("f5df"),y=n("861d"),x=n("d9b5"),_=n("7c73"),C=n("3a9b"),S=n("d2bb"),k=n("241c").f,M=n("a078"),E=n("b727").forEach,$=n("2626"),L=n("9bf2"),O=n("06cf"),T=n("69f3"),R=n("7156"),A=T.get,F=T.set,I=L.f,D=O.f,j=Math.round,P=o.RangeError,W=c.ArrayBuffer,N=W.prototype,H=c.DataView,B=l.NATIVE_ARRAY_BUFFER_VIEWS,V=l.TYPED_ARRAY_CONSTRUCTOR,z=l.TYPED_ARRAY_TAG,U=l.TypedArray,K=l.TypedArrayPrototype,q=l.aTypedArrayConstructor,G=l.isTypedArray,J="BYTES_PER_ELEMENT",Y="Wrong length",X=function(e,t){q(e);var n=0,i=t.length,o=new e(i);while(i>n)o[n]=t[n++];return o},Q=function(e,t){I(e,t,{get:function(){return A(this)[t]}})},Z=function(e){var t;return C(N,e)||"ArrayBuffer"==(t=w(e))||"SharedArrayBuffer"==t},ee=function(e,t){return G(e)&&!x(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=b(t),ee(e,t)?u(2,e[t]):D(e,t)},ne=function(e,t,n){return t=b(t),!(ee(e,t)&&y(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?I(e,t,n):(e[t]=n.value,e)};s?(B||(O.f=te,L.f=ne,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),i({target:"Object",stat:!0,forced:!B},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var s=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,u="set"+e,f=o[l],b=f,v=b&&b.prototype,w={},x=function(e,t){var n=A(e);return n.view[c](t*s+n.byteOffset,!0)},C=function(e,t,i){var o=A(e);n&&(i=(i=j(i))<0?0:i>255?255:255&i),o.view[u](t*s+o.byteOffset,i,!0)},L=function(e,t){I(e,t,{get:function(){return x(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};B?a&&(b=t((function(e,t,n,i){return d(e,v),R(function(){return y(t)?Z(t)?void 0!==i?new f(t,m(n,s),i):void 0!==n?new f(t,m(n,s)):new f(t):G(t)?X(b,t):r(M,b,t):new f(g(t))}(),e,b)})),S&&S(b,U),E(k(f),(function(e){e in b||h(b,e,f[e])})),b.prototype=v):(b=t((function(e,t,n,i){d(e,v);var o,a,l,c=0,u=0;if(y(t)){if(!Z(t))return G(t)?X(b,t):r(M,b,t);o=t,u=m(n,s);var h=t.byteLength;if(void 0===i){if(h%s)throw P(Y);if(a=h-u,a<0)throw P(Y)}else if(a=p(i)*s,a+u>h)throw P(Y);l=a/s}else l=g(t),a=l*s,o=new W(a);F(e,{buffer:o,byteOffset:u,byteLength:a,length:l,view:new H(o)});while(c<l)L(e,c++)})),S&&S(b,U),v=b.prototype=_(K)),v.constructor!==b&&h(v,"constructor",b),h(v,V,b),z&&h(v,z,l),w[l]=b,i({global:!0,forced:b!=f,sham:!B},w),J in b||h(b,J,s),J in v||h(v,J,s),$(l)}):e.exports=function(){}},7592:function(e,t,n){"use strict";n("aee6")},7640:function(e,t,n){"use strict";n("b96c")},"77a7":function(e,t,n){var i=n("da84"),o=i.Array,r=Math.abs,s=Math.pow,a=Math.floor,l=Math.log,c=Math.LN2,d=function(e,t,n){var i,d,u,h=o(n),f=8*n-t-1,p=(1<<f)-1,g=p>>1,m=23===t?s(2,-24)-s(2,-77):0,b=e<0||0===e&&1/e<0?1:0,v=0;e=r(e),e!=e||e===1/0?(d=e!=e?1:0,i=p):(i=a(l(e)/c),u=s(2,-i),e*u<1&&(i--,u*=2),e+=i+g>=1?m/u:m*s(2,1-g),e*u>=2&&(i++,u/=2),i+g>=p?(d=0,i=p):i+g>=1?(d=(e*u-1)*s(2,t),i+=g):(d=e*s(2,g-1)*s(2,t),i=0));while(t>=8)h[v++]=255&d,d/=256,t-=8;i=i<<t|d,f+=t;while(f>0)h[v++]=255&i,i/=256,f-=8;return h[--v]|=128*b,h},u=function(e,t){var n,i=e.length,o=8*i-t-1,r=(1<<o)-1,a=r>>1,l=o-7,c=i-1,d=e[c--],u=127&d;d>>=7;while(l>0)u=256*u+e[c--],l-=8;n=u&(1<<-l)-1,u>>=-l,l+=t;while(l>0)n=256*n+e[c--],l-=8;if(0===u)u=1-a;else{if(u===r)return n?NaN:d?-1/0:1/0;n+=s(2,t),u-=a}return(d?-1:1)*n*s(2,u-t)};e.exports={pack:d,unpack:u}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){var i=n("cc12"),o=i("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},7899:function(e,t,n){var i={"./button-widget.vue":"6e5c","./cascader-widget.vue":"c077","./checkbox-widget.vue":"6d04","./color-widget.vue":"3ad3","./date-range-widget.vue":"ba08","./date-widget.vue":"da4e","./divider-widget.vue":"de19","./file-upload-widget.vue":"4a70","./form-item-wrapper.vue":"9eeb","./html-text-widget.vue":"090f","./input-widget.vue":"d67b","./number-widget.vue":"cf32","./picture-upload-widget.vue":"7ede","./radio-widget.vue":"b87d","./rate-widget.vue":"2faa","./rich-editor-widget.vue":"f4c1","./select-widget.vue":"8a3e","./slider-widget.vue":"826c","./static-content-wrapper.vue":"828b","./static-text-widget.vue":"851c","./switch-widget.vue":"ecaa","./textarea-widget.vue":"84b5","./time-range-widget.vue":"cab0","./time-widget.vue":"20c0"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="7899"},"791d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.minLength")}},[n("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.minLength,callback:function(t){e.minLength=t},expression:"minLength"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("b2bf"),a={name:"minLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{minLength:{get:function(){return this.optionModel["minLength"]},set:function(e){!e||isNaN(e)?this.optionModel.minLength=null:this.optionModel.minLength=Number(e)}}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"78aca82c",null);t["default"]=d.exports},"79ad":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:e.optionModel.type,format:e.optionModel.format,"value-format":e.optionModel.valueFormat},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})},o=[],r=n("79fa"),s=n("b2bf"),a={name:"date-range-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4305e657",null);t["default"]=d.exports},"79fa":function(e,t,n){"use strict";n.d(t,"a",(function(){return Ue})),n.d(t,"c",(function(){return Ke}));var i=n("5530"),o=n("8bbf"),r=n.n(o),s=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function a(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function l(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var c=Array.isArray;function d(e){return null!==e&&"object"===typeof e}function u(e){return"boolean"===typeof e}function h(e){return"string"===typeof e}var f=Object.prototype.toString,p="[object Object]";function g(e){return f.call(e)===p}function m(e){return null===e||void 0===e}function b(e){return"function"===typeof e}function v(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,i=null;return 1===e.length?d(e[0])||c(e[0])?i=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(d(e[1])||c(e[1]))&&(i=e[1])),{locale:n,params:i}}function w(e){return JSON.parse(JSON.stringify(e))}function y(e,t){if(e.delete(t))return e}function x(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function _(e,t){return!!~e.indexOf(t)}var C=Object.prototype.hasOwnProperty;function S(e,t){return C.call(e,t)}function k(e){for(var t=arguments,n=Object(e),i=1;i<arguments.length;i++){var o=t[i];if(void 0!==o&&null!==o){var r=void 0;for(r in o)S(o,r)&&(d(o[r])?n[r]=k(n[r],o[r]):n[r]=o[r])}}return n}function M(e,t){if(e===t)return!0;var n=d(e),i=d(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var o=c(e),r=c(t);if(o&&r)return e.length===t.length&&e.every((function(e,n){return M(e,t[n])}));if(o||r)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(n){return M(e[n],t[n])}))}catch(l){return!1}}function E(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function $(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=E(e[t]))})),e}function L(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[e,i.locale,i._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}function O(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n)if(e.i18n instanceof $e){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{},n=e.__i18nBridge||e.__i18n;n.forEach((function(e){t=k(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(l){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(g(e.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof $e?this.$root.$i18n:null;if(i&&(e.i18n.root=this.$root,e.i18n.formatter=i.formatter,e.i18n.fallbackLocale=i.fallbackLocale,e.i18n.formatFallbackMessages=i.formatFallbackMessages,e.i18n.silentTranslationWarn=i.silentTranslationWarn,e.i18n.silentFallbackWarn=i.silentFallbackWarn,e.i18n.pluralizationRules=i.pluralizationRules,e.i18n.preserveDirectiveContent=i.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var o=e.i18n&&e.i18n.messages?e.i18n.messages:{},r=e.__i18nBridge||e.__i18n;r.forEach((function(e){o=k(o,JSON.parse(e))})),e.i18n.messages=o}catch(l){0}var s=e.i18n,a=s.sharedMessages;a&&g(a)&&(e.i18n.messages=k(e.i18n.messages,a)),this._i18n=new $e(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof $e?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof $e&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof $e||g(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof $e||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof $e)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}var T={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,i=t.parent,o=t.props,r=t.slots,s=i.$i18n;if(s){var a=o.path,l=o.locale,c=o.places,d=r(),u=s.i(a,l,R(d)||c?A(d.default,c):d),h=o.tag&&!0!==o.tag||!1===o.tag?o.tag:"span";return h?e(h,n,u):u}}};function R(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function A(e,t){var n=t?F(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var i=e.every(j);return e.reduce(i?I:D,n)}function F(e){return Array.isArray(e)?e.reduce(D,{}):Object.assign({},e)}function I(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function D(e,t,n){return e[n]=t,e}function j(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var P,W={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,i=t.parent,o=t.data,r=i.$i18n;if(!r)return null;var a=null,l=null;h(n.format)?a=n.format:d(n.format)&&(n.format.key&&(a=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var i;return _(s,t)?Object.assign({},e,(i={},i[t]=n.format[t],i)):e}),null));var c=n.locale||r.locale,u=r._ntp(n.value,c,a,l),f=u.map((function(e,t){var n,i=o.scopedSlots&&o.scopedSlots[e.type];return i?i((n={},n[e.type]=e.value,n.index=t,n.parts=u,n)):e.value})),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?e(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},f):f}};function N(e,t,n){V(e,n)&&U(e,t,n)}function H(e,t,n,i){if(V(e,n)){var o=n.context.$i18n;z(e,n)&&M(t.value,t.oldValue)&&M(e._localeMessage,o.getLocaleMessage(o.locale))||U(e,t,n)}}function B(e,t,n,i){var o=n.context;if(o){var r=n.context.$i18n||{};t.modifiers.preserve||r.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else a("Vue instance does not exists in VNode context")}function V(e,t){var n=t.context;return n?!!n.$i18n||(a("VueI18n instance does not exists in Vue instance"),!1):(a("Vue instance does not exists in VNode context"),!1)}function z(e,t){var n=t.context;return e._locale===n.$i18n.locale}function U(e,t,n){var i,o,r=t.value,s=K(r),l=s.path,c=s.locale,d=s.args,u=s.choice;if(l||c||d)if(l){var h=n.context;e._vt=e.textContent=null!=u?(i=h.$i18n).tc.apply(i,[l,u].concat(q(c,d))):(o=h.$i18n).t.apply(o,[l].concat(q(c,d))),e._locale=h.$i18n.locale,e._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}else a("`path` is required in v-t directive");else a("value type not supported")}function K(e){var t,n,i,o;return h(e)?t=e:g(e)&&(t=e.path,n=e.locale,i=e.args,o=e.choice),{path:t,locale:n,args:i,choice:o}}function q(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||g(t))&&n.push(t),n}function G(e,t){void 0===t&&(t={bridge:!1}),G.installed=!0,P=e;P.version&&Number(P.version.split(".")[0]);L(P),P.mixin(O(t.bridge)),P.directive("t",{bind:N,update:H,unbind:B}),P.component(T.name,T),P.component(W.name,W);var n=P.config.optionMergeStrategies;n.i18n=function(e,t){return void 0===t?e:t}}var J=function(){this._caches=Object.create(null)};J.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=Q(e),this._caches[e]=n),Z(n,t)};var Y=/^(?:\d)+/,X=/^(?:\w)+/;function Q(e){var t=[],n=0,i="";while(n<e.length){var o=e[n++];if("{"===o){i&&t.push({type:"text",value:i}),i="";var r="";o=e[n++];while(void 0!==o&&"}"!==o)r+=o,o=e[n++];var s="}"===o,a=Y.test(r)?"list":s&&X.test(r)?"named":"unknown";t.push({value:r,type:a})}else"%"===o?"{"!==e[n]&&(i+=o):i+=o}return i&&t.push({type:"text",value:i}),t}function Z(e,t){var n=[],i=0,o=Array.isArray(t)?"list":d(t)?"named":"unknown";if("unknown"===o)return n;while(i<e.length){var r=e[i];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":"named"===o&&n.push(t[r.value]);break;case"unknown":0;break}i++}return n}var ee=0,te=1,ne=2,ie=3,oe=0,re=1,se=2,ae=3,le=4,ce=5,de=6,ue=7,he=8,fe=[];fe[oe]={ws:[oe],ident:[ae,ee],"[":[le],eof:[ue]},fe[re]={ws:[re],".":[se],"[":[le],eof:[ue]},fe[se]={ws:[se],ident:[ae,ee],0:[ae,ee],number:[ae,ee]},fe[ae]={ident:[ae,ee],0:[ae,ee],number:[ae,ee],ws:[re,te],".":[se,te],"[":[le,te],eof:[ue,te]},fe[le]={"'":[ce,ee],'"':[de,ee],"[":[le,ne],"]":[re,ie],eof:he,else:[le,ee]},fe[ce]={"'":[le,ee],eof:he,else:[ce,ee]},fe[de]={'"':[le,ee],eof:he,else:[de,ee]};var pe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ge(e){return pe.test(e)}function me(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function be(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function ve(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(ge(t)?me(t):"*"+t)}function we(e){var t,n,i,o,r,s,a,l=[],c=-1,d=oe,u=0,h=[];function f(){var t=e[c+1];if(d===ce&&"'"===t||d===de&&'"'===t)return c++,i="\\"+t,h[ee](),!0}h[te]=function(){void 0!==n&&(l.push(n),n=void 0)},h[ee]=function(){void 0===n?n=i:n+=i},h[ne]=function(){h[ee](),u++},h[ie]=function(){if(u>0)u--,d=le,h[ee]();else{if(u=0,void 0===n)return!1;if(n=ve(n),!1===n)return!1;h[te]()}};while(null!==d)if(c++,t=e[c],"\\"!==t||!f()){if(o=be(t),a=fe[d],r=a[o]||a["else"]||he,r===he)return;if(d=r[0],s=h[r[1]],s&&(i=r[2],i=void 0===i?t:i,!1===s()))return;if(d===ue)return l}}var ye=function(){this._cache=Object.create(null)};ye.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=we(e),t&&(this._cache[e]=t)),t||[]},ye.prototype.getPathValue=function(e,t){if(!d(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var i=n.length,o=e,r=0;while(r<i){var s=o[n[r]];if(void 0===s||null===s)return null;o=s,r++}return o};var xe,_e=/<\/?[\w\s="/.':;#-\/]+>/,Ce=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|./]+|\([\w\-_|./]+\)))/g,Se=/^@(?:\.([a-z]+))?:/,ke=/[()]/g,Me={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Ee=new J,$e=function(e){var t=this;void 0===e&&(e={}),!P&&"undefined"!==typeof window&&window.Vue&&G(window.Vue);var n=e.locale||"en-US",i=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),o=e.messages||{},r=e.dateTimeFormats||e.datetimeFormats||{},s=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Ee,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new ye,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var i=Object.getPrototypeOf(t);if(i&&i.getChoiceIndex){var o=i.getChoiceIndex;return o.call(t,e,n)}var r=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):r(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!m(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])})),this._initVM({locale:n,fallbackLocale:i,messages:o,dateTimeFormats:r,numberFormats:s})},Le={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};$e.prototype._checkLocaleMessage=function(e,t,n){var i=[],o=function(e,t,n,i){if(g(n))Object.keys(n).forEach((function(r){var s=n[r];g(s)?(i.push(r),i.push("."),o(e,t,s,i),i.pop(),i.pop()):(i.push(r),o(e,t,s,i),i.pop())}));else if(c(n))n.forEach((function(n,r){g(n)?(i.push("["+r+"]"),i.push("."),o(e,t,n,i),i.pop(),i.pop()):(i.push("["+r+"]"),o(e,t,n,i),i.pop())}));else if(h(n)){var r=_e.test(n);if(r){var s="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?a(s):"error"===e&&l(s)}}};o(t,e,n,i)},$e.prototype._initVM=function(e){var t=P.config.silent;P.config.silent=!0,this._vm=new P({data:e,__VUE18N__INSTANCE__:!0}),P.config.silent=t},$e.prototype.destroyVM=function(){this._vm.$destroy()},$e.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},$e.prototype.unsubscribeDataChanging=function(e){y(this._dataListeners,e)},$e.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=x(e._dataListeners),n=t.length;while(n--)P.nextTick((function(){t[n]&&t[n].$forceUpdate()}))}),{deep:!0})},$e.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(i){n.$set(n,"locale",i),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=i),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){i.$set(i,"locale",e),i.$forceUpdate()}),{immediate:!0})},$e.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Le.vm.get=function(){return this._vm},Le.messages.get=function(){return w(this._getMessages())},Le.dateTimeFormats.get=function(){return w(this._getDateTimeFormats())},Le.numberFormats.get=function(){return w(this._getNumberFormats())},Le.availableLocales.get=function(){return Object.keys(this.messages).sort()},Le.locale.get=function(){return this._vm.locale},Le.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Le.fallbackLocale.get=function(){return this._vm.fallbackLocale},Le.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Le.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Le.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Le.missing.get=function(){return this._missing},Le.missing.set=function(e){this._missing=e},Le.formatter.get=function(){return this._formatter},Le.formatter.set=function(e){this._formatter=e},Le.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Le.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Le.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Le.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Le.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Le.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Le.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Le.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var i=this._getMessages();Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])}))}},Le.postTranslation.get=function(){return this._postTranslation},Le.postTranslation.set=function(e){this._postTranslation=e},Le.sync.get=function(){return this._sync},Le.sync.set=function(e){this._sync=e},$e.prototype._getMessages=function(){return this._vm.messages},$e.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},$e.prototype._getNumberFormats=function(){return this._vm.numberFormats},$e.prototype._warnDefault=function(e,t,n,i,o,r){if(!m(n))return n;if(this._missing){var s=this._missing.apply(null,[e,t,i,o]);if(h(s))return s}else 0;if(this._formatFallbackMessages){var a=v.apply(void 0,o);return this._render(t,r,a.params,t)}return t},$e.prototype._isFallbackRoot=function(e){return!e&&!m(this._root)&&this._fallbackRoot},$e.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},$e.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},$e.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},$e.prototype._interpolate=function(e,t,n,i,o,r,s){if(!t)return null;var a,l=this._path.getPathValue(t,n);if(c(l)||g(l))return l;if(m(l)){if(!g(t))return null;if(a=t[n],!h(a)&&!b(a))return null}else{if(!h(l)&&!b(l))return null;a=l}return h(a)&&(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,i,"raw",r,s)),this._render(a,o,r,n)},$e.prototype._link=function(e,t,n,i,o,r,s){var a=n,l=a.match(Ce);for(var d in l)if(l.hasOwnProperty(d)){var u=l[d],h=u.match(Se),f=h[0],p=h[1],g=u.replace(f,"").replace(ke,"");if(_(s,g))return a;s.push(g);var m=this._interpolate(e,t,g,i,"raw"===o?"string":o,"raw"===o?void 0:r,s);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var b=this._root.$i18n;m=b._translate(b._getMessages(),b.locale,b.fallbackLocale,g,i,o,r)}m=this._warnDefault(e,g,m,i,c(r)?r:[r],o),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):Me.hasOwnProperty(p)&&(m=Me[p](m)),s.pop(),a=m?a.replace(u,m):a}return a},$e.prototype._createMessageContext=function(e,t,n,i){var o=this,r=c(e)?e:[],s=d(e)?e:{},a=function(e){return r[e]},l=function(e){return s[e]},u=this._getMessages(),h=this.locale;return{list:a,named:l,values:e,formatter:t,path:n,messages:u,locale:h,linked:function(e){return o._interpolate(h,u[h]||{},e,null,i,void 0,[e])}}},$e.prototype._render=function(e,t,n,i){if(b(e))return e(this._createMessageContext(n,this._formatter||Ee,i,t));var o=this._formatter.interpolate(e,n,i);return o||(o=Ee.interpolate(e,n,i)),"string"!==t||h(o)?o:o.join("")},$e.prototype._appendItemToChain=function(e,t,n){var i=!1;return _(e,t)||(i=!0,t&&(i="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(i=n[t]))),i},$e.prototype._appendLocaleToChain=function(e,t,n){var i,o=t.split("-");do{var r=o.join("-");i=this._appendItemToChain(e,r,n),o.splice(-1,1)}while(o.length&&!0===i);return i},$e.prototype._appendBlockToChain=function(e,t,n){for(var i=!0,o=0;o<t.length&&u(i);o++){var r=t[o];h(r)&&(i=this._appendLocaleToChain(e,r,n))}return i},$e.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var i,o=[e];while(c(o))o=this._appendBlockToChain(n,o,t);i=c(t)?t:d(t)?t["default"]?t["default"]:null:t,o=h(i)?[i]:i,o&&this._appendBlockToChain(n,o,null),this._localeChainCache[e]=n}return n},$e.prototype._translate=function(e,t,n,i,o,r,s){for(var a,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var d=l[c];if(a=this._interpolate(d,e[d],i,o,r,s,[i]),!m(a))return a}return null},$e.prototype._t=function(e,t,n,i){var o,r=[],s=arguments.length-4;while(s-- >0)r[s]=arguments[s+4];if(!e)return"";var a=v.apply(void 0,r);this._escapeParameterHtml&&(a.params=$(a.params));var l=a.locale||t,c=this._translate(n,l,this.fallbackLocale,e,i,"string",a.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(o=this._root).$t.apply(o,[e].concat(r))}return c=this._warnDefault(l,e,c,i,r,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,e)),c},$e.prototype.t=function(e){var t,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},$e.prototype._i=function(e,t,n,i,o){var r=this._translate(n,t,this.fallbackLocale,e,i,"raw",o);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,o)}return this._warnDefault(t,e,r,i,[o],"raw")},$e.prototype.i=function(e,t,n){return e?(h(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},$e.prototype._tc=function(e,t,n,i,o){var r,s=[],a=arguments.length-5;while(a-- >0)s[a]=arguments[a+5];if(!e)return"";void 0===o&&(o=1);var l={count:o,n:o},c=v.apply(void 0,s);return c.params=Object.assign(l,c.params),s=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((r=this)._t.apply(r,[e,t,n,i].concat(s)),o)},$e.prototype.fetchChoice=function(e,t){if(!e||!h(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},$e.prototype.tc=function(e,t){var n,i=[],o=arguments.length-2;while(o-- >0)i[o]=arguments[o+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(i))},$e.prototype._te=function(e,t,n){var i=[],o=arguments.length-3;while(o-- >0)i[o]=arguments[o+3];var r=v.apply(void 0,i).locale||t;return this._exist(n[r],e)},$e.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},$e.prototype.getLocaleMessage=function(e){return w(this._vm.messages[e]||{})},$e.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},$e.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,k("undefined"!==typeof this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},$e.prototype.getDateTimeFormat=function(e){return w(this._vm.dateTimeFormats[e]||{})},$e.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},$e.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,k(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},$e.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var i=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},$e.prototype._localizeDateTime=function(e,t,n,i,o){for(var r=t,s=i[r],a=this._getLocaleChain(t,n),l=0;l<a.length;l++){var c=a[l];if(s=i[c],r=c,!m(s)&&!m(s[o]))break}if(m(s)||m(s[o]))return null;var d=s[o],u=r+"__"+o,h=this._dateTimeFormatters[u];return h||(h=this._dateTimeFormatters[u]=new Intl.DateTimeFormat(r,d)),h.format(e)},$e.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var i=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return i||""},$e.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.locale,o=null;return 1===t.length?h(t[0])?o=t[0]:d(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key)):2===t.length&&(h(t[0])&&(o=t[0]),h(t[1])&&(i=t[1])),this._d(e,i,o)},$e.prototype.getNumberFormat=function(e){return w(this._vm.numberFormats[e]||{})},$e.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},$e.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,k(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},$e.prototype._clearNumberFormat=function(e,t){for(var n in t){var i=e+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},$e.prototype._getNumberFormatter=function(e,t,n,i,o,r){for(var s=t,a=i[s],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var d=l[c];if(a=i[d],s=d,!m(a)&&!m(a[o]))break}if(m(a)||m(a[o]))return null;var u,h=a[o];if(r)u=new Intl.NumberFormat(s,Object.assign({},h,r));else{var f=s+"__"+o;u=this._numberFormatters[f],u||(u=this._numberFormatters[f]=new Intl.NumberFormat(s,h))}return u},$e.prototype._n=function(e,t,n,i){if(!$e.availabilities.numberFormat)return"";if(!n){var o=i?new Intl.NumberFormat(t,i):new Intl.NumberFormat(t);return o.format(e)}var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,i),s=r&&r.format(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},i))}return s||""},$e.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.locale,o=null,r=null;return 1===t.length?h(t[0])?o=t[0]:d(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key),r=Object.keys(t[0]).reduce((function(e,n){var i;return _(s,n)?Object.assign({},e,(i={},i[n]=t[0][n],i)):e}),null)):2===t.length&&(h(t[0])&&(o=t[0]),h(t[1])&&(i=t[1])),this._n(e,i,o,r)},$e.prototype._ntp=function(e,t,n,i){if(!$e.availabilities.numberFormat)return[];if(!n){var o=i?new Intl.NumberFormat(t,i):new Intl.NumberFormat(t);return o.formatToParts(e)}var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,i),s=r&&r.formatToParts(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,i)}return s||[]},Object.defineProperties($e.prototype,Le),Object.defineProperty($e,"availabilities",{get:function(){if(!xe){var e="undefined"!==typeof Intl;xe={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return xe}}),$e.install=G,$e.version="8.26.7";var Oe=$e,Te=n("b2d6"),Re=n.n(Te),Ae=n("f0d9"),Fe=n.n(Ae),Ie=n("4897"),De=n.n(Ie),je={application:{"zh-CN":"简体中文","en-US":"English",productTitle:"Online Form Designer",github:"GitHub",document:"Docs",qqGroup:"WeChat Group",deployment:"Deployment",subscription:"Subscription"},designer:{componentLib:"Components",formLib:"Templates",containerTitle:"Container",dragHandlerHint:"drag container or field to layout center",dragAction:"drag",basicFieldTitle:"Basic Field",advancedFieldTitle:"Advanced Field",customFieldTitle:"Customized Field",noWidgetHint:"Please select a widget from the left list, drag and drop to this container.",widgetLabel:{grid:"Grid",table:"Table",tab:"Tab",section:"Section","sub-form":"SubForm","grid-col":"GridCol","table-cell":"TableCell","tab-pane":"TabPane","data-table":"DataTable",input:"Input",textarea:"Textarea",number:"InputNumber",radio:"Radio",checkbox:"Checkbox",select:"Select",time:"Time","time-range":"Time range",date:"Date","date-range":"Date range",switch:"Switch",rate:"Rate",color:"ColorPicker",slider:"Slider","static-text":"Text","html-text":"HTML",button:"Button",divider:"Divider","picture-upload":"Picture","file-upload":"File","rich-editor":"Rich Editor",cascader:"Cascader",custom:"Custom Component",slot:"Slot"},hint:{selectParentWidget:"Select parent of this widget",moveUpWidget:"Move up this widget",moveDownWidget:"Move down this widget",cloneWidget:"Clone this widget",insertRow:"Insert new row",insertColumn:"Insert new column",remove:"Remove this widget",cellSetting:"Cell setting",dragHandler:"Drag handler",copyField:"Copy field widget",onlyFieldWidgetAcceptable:"Only field widget can be dragged into sub-form",moveUpFirstChildHint:"First child can not be move up",moveDownLastChildHint:"Last child can not be move down",closePreview:"Close",copyJson:"Copy",saveFormJson:"Save As File",copyVueCode:"Copy Vue Code",copyHtmlCode:"Copy HTML Code",copyJsonSuccess:"Copy succeed",importJsonSuccess:"Import succeed",copyJsonFail:"Copy failed",copyVueCodeSuccess:"Copy succeed",copyVueCodeFail:"Copy failed",copyHtmlCodeSuccess:"Copy succeed",copyHtmlCodeFail:"Copy failed",saveVueCode:"Save Vue File",saveHtmlCode:"Save Html File",getFormData:"Get Data",resetForm:"Reset",disableForm:"Disable",enableForm:"Enable",exportFormData:"Form Data",copyFormData:"Copy",saveFormData:"Save As File",copyVue2SFC:"Copy Vue2",copyVue3SFC:"Copy Vue3",copySFCFail:"Copy failed",copySFCSuccess:"Copy succeed",saveVue2SFC:"Save As Vue2",saveVue3SFC:"Save As Vue3",fileNameForSave:"File name:",saveFileTitle:"Save as File",fileNameInputPlaceholder:"Enter the file name",sampleLoadedSuccess:"Example loaded successfully",sampleLoadedFail:"Sample load failed",loadFormTemplate:"Load This",loadFormTemplateHint:"Are you sure to load this template?",loadFormTemplateSuccess:"Load form template success!",loadFormTemplateFailed:"Load form template failed.",currentNodeCannotBeSelected:"The current node cannot be selected.",widgetSetting:"Widget Config",formSetting:"Form Config",prompt:"Prompt",confirm:"OK",cancel:"Cancel",import:"Import",importJsonHint:"The code to be imported should have the following JSON format.",invalidOptionsData:"Invalid data of options:",lastPaneCannotBeDeleted:"The last pane cannot be deleted.",duplicateName:"Duplicate name: ",nameRequired:"Name required.",numberValidator:"Number",letterValidator:"Letter",letterAndNumberValidator:"LetterAndNumber",mobilePhoneValidator:"MobilePhone",emailValidator:"Email",urlValidator:"URL",noChineseValidator:"Non-Chinese",chineseValidator:"Chinese",rowspanNotConsistentForMergeEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForMergeEntireColumn:"Cells in this column don't have the same colspan, operation failed.",rowspanNotConsistentForDeleteEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForDeleteEntireColumn:"Cells in this column don't have the same colspan, operation failed.",lastColCannotBeDeleted:"The last col cannot be deleted.",lastRowCannotBeDeleted:"The last row cannot be deleted."},toolbar:{undoHint:"Undo",redoHint:"Redo",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"Tree View Of Component Hierarchy",nodeTreeTitle:"Tree View Of Component Hierarchy",clear:"Clear",preview:"Preview",importJson:"Import JSON",exportJson:"Export JSON",exportCode:"Export Code",generateCode:"Generate Code",generateSFC:"Generate SFC"},setting:{basicSetting:"Basic Setting",attributeSetting:"Attribute Setting",commonSetting:"Common Setting",advancedSetting:"Advanced Setting",eventSetting:"Event Setting",uniqueName:"Unique Name",editNameHelp:"Press enter to confirm the modification",label:"Label",displayType:"Type",defaultValue:"Default Value",placeholder:"Placeholder",startPlaceholder:"Start Placeholder",endPlaceholder:"End Placeholder",widgetColumnWidth:"Width",widgetSize:"Size",showStops:"Show Stops",displayStyle:"Display Style",inlineLayout:"inline",blockLayout:"block",buttonStyle:"Show As Button",border:"Show Border",labelWidth:"Width Of Label",rows:"Rows",labelHidden:"Hide Label",required:"Required",validation:"Validation",validationHelp:"Regular expressions supported",validationHint:"Validation Hint",readonly:"Readonly",disabled:"Disabled",hidden:"Hidden",textContent:"Text",htmlContent:"HTML",clearable:"Clearable",editable:"Editable",format:"Format",valueFormat:"Value Format",showPassword:"Show Reveal",filterable:"Filterable",allowCreate:"Allow Create",remote:"Remote Query",automaticDropdown:"Automatic Dropdown",multiple:"Multiple",multipleLimit:"Multiple Limit",contentPosition:"Content Position",plain:"Plain",round:"Round",circle:"Circle",icon:"Icon",optionsSetting:"Options Setting",addOption:"Add Option",importOptions:"Import Options",resetDefault:"Reset Default",uploadSetting:"Upload Setting",uploadURL:"Upload URL",uploadTip:"Tip Content",withCredentials:"Send Cookie",multipleSelect:"File Multi-select",showFileList:"Show File List",limit:"Max Upload Number",fileMaxSize:"Max Size(MB)",fileTypes:"Upload File Types",fileTypesHelp:"Allows to add more file types",headers:"Request Headers",cellWidth:"Width",cellHeight:"Height",gridColHeight:"Height Of Col(px)",gutter:"Gutter(px)",columnSetting:"Cols Setting",colsOfGrid:"Cols Of Grid:",colSpanTitle:"Spans Of Col",colOffsetTitle:"Offset Of Col",colPushTitle:"Push Of Col",colPullTitle:"Pull Of Col",addColumn:"Add Column",responsive:"Responsive",tabPaneSetting:"Tab Panes",addTabPane:"Add Tab Pane",paneActive:"Active",customLabelIcon:"Custom Label",labelIconClass:"Label Icon Class",labelIconPosition:"Label Icon Position",labelTooltip:"Label Tooltip",minValue:"Min Value",maxValue:"Max Value",precision:"Precision",step:"Step",controlsPosition:"Controls Position",minLength:"Min Length",maxLength:"Max Length",showWordLimit:"Show Word Limit",prefixIcon:"Prefix Icon",suffixIcon:"Suffix Icon",inputButton:"Input Button Setting",appendButton:"Append Button",appendButtonDisabled:"Button Disabled",appendButtonIcon:"Append Button Icon",buttonIcon:"Button Icon",switchWidth:"Width of Switch(px)",activeText:"Active Text",inactiveText:"Inactive Text",activeColor:"Active Color",inactiveColor:"Inactive Color",maxStars:"Stars Max Number",lowThreshold:"Low Threshold",highThreshold:"High Threshold",allowHalf:"Allow Half",showText:"Show Text",showScore:"Show Score",range:"Range",vertical:"Vertical",showBlankRow:"Show Blank Row",showRowNumber:"Show Row Number",insertColumnToLeft:"insert column to left",insertColumnToRight:"insert column to right",insertRowAbove:"insert row above",insertRowBelow:"insert row below",mergeLeftColumn:"merge left cell",mergeRightColumn:"merge right cell",mergeEntireRow:"merge entire row",mergeRowAbove:"merge cell above",mergeRowBelow:"merge cell below",mergeEntireColumn:"merge entire column",undoMergeCol:"undo merge column",undoMergeRow:"undo merge row",deleteEntireCol:"delete entire column",deleteEntireRow:"delete entire row",widgetName:"Unique Name",formSize:"Size",labelPosition:"Position Of Label",topPosition:"Top",leftPosition:"Left",labelAlign:"Label Align",leftAlign:"Left",centerAlign:"Center",rightAlign:"Right",formCss:"Form CSS",addCss:"Edit",customClass:"Custom Class",globalFunctions:"Global Functions",addEventHandler:"Edit",editWidgetEventHandler:"Edit Widget Event Handler",editFormEventHandler:"Edit Form Event Handler",formSFCSetting:"SFC Setting",formModelName:"Model Name",formRefName:"Ref Name",formRulesName:"Rules Name"}}},Pe={application:{"zh-CN":"简体中文","en-US":"English",productTitle:"表单设计器",github:"GitHub",document:"文档",qqGroup:"技术WX群",deployment:"私有部署",subscription:"订阅Pro"},designer:{componentLib:"组件库",formLib:"表单模板",containerTitle:"容器",dragHandlerHint:"鼠标拖拽容器组件或字段组件并放置于表单中",dragAction:"拖动",basicFieldTitle:"基础字段",advancedFieldTitle:"高级字段",customFieldTitle:"自定义扩展字段",noWidgetHint:"请从左侧列表中选择一个组件, 然后用鼠标拖动组件放置于此处.",widgetLabel:{grid:"栅格",table:"表格",tab:"标签页",section:"区块","sub-form":"子表单","grid-col":"栅格列","table-cell":"单元格","tab-pane":"选项卡页","data-table":"数据表格",input:"单行输入",textarea:"多行输入",number:"计数器",radio:"单选项",checkbox:"多选项",select:"下拉选项",time:"时间","time-range":"时间范围",date:"日期","date-range":"日期范围",switch:"开关",rate:"评分",color:"颜色选择器",slider:"滑块","static-text":"静态文字","html-text":"HTML",button:"按钮",divider:"分隔线","picture-upload":"图片","file-upload":"文件","rich-editor":"富文本",cascader:"级联选择",custom:"Custom Component",slot:"Slot"},hint:{selectParentWidget:"选中父组件",moveUpWidget:"上移组件",moveDownWidget:"下移组件",cloneWidget:"复制组件",insertRow:"插入新行",insertColumn:"插入新列",remove:"移除组件",cellSetting:"单元格操作",dragHandler:"拖拽手柄",copyField:"复制字段组件",onlyFieldWidgetAcceptable:"子表单只能接收字段组件",moveUpFirstChildHint:"已经移动到最上面",moveDownLastChildHint:"已经移动到最下面",closePreview:"关闭",copyJson:"复制JSON",saveFormJson:"保存为文件",copyVueCode:"复制Vue代码",copyHtmlCode:"复制HTML代码",copyJsonSuccess:"复制JSON成功",importJsonSuccess:"导入JSON成功",copyJsonFail:"复制JSON失败",copyVueCodeSuccess:"复制Vue代码成功",copyVueCodeFail:"复制Vue代码失败",copyHtmlCodeSuccess:"复制HTML代码成功",copyHtmlCodeFail:"复制HTML代码失败",saveVueCode:"保存Vue文件",saveHtmlCode:"保存Html文件",getFormData:"获取数据",resetForm:"重置表单",disableForm:"禁用编辑",enableForm:"恢复编辑",exportFormData:"表单数据",copyFormData:"复制JSON",saveFormData:"保存为文件",copyVue2SFC:"复制Vue2代码",copyVue3SFC:"复制Vue3代码",copySFCFail:"复制SFC代码失败",copySFCSuccess:"复制SFC代码成功",saveVue2SFC:"保存为Vue2组件",saveVue3SFC:"保存为Vue3组件",fileNameForSave:"文件名:",saveFileTitle:"保存为文件",fileNameInputPlaceholder:"请输入文件名",sampleLoadedSuccess:"表单示例加载成功",sampleLoadedFail:"表单示例加载失败",loadFormTemplate:"加载此模板",loadFormTemplateHint:"是否加载这个模板?加载后会覆盖设计器当前表单,你可以使用“撤销”功能恢复。",loadFormTemplateSuccess:"表单模板加载成功",loadFormTemplateFailed:"表单模板加载失败",currentNodeCannotBeSelected:"当前组件节点不可选择",widgetSetting:"组件设置",formSetting:"表单设置",prompt:"提示",confirm:"确定",cancel:"取消",import:"导入",importJsonHint:"导入的JSON内容须符合下述格式,以保证顺利导入.",invalidOptionsData:"无效的选项数据:",lastPaneCannotBeDeleted:"仅剩一个选项卡页不可删除.",duplicateName:"组件名称已存在: ",nameRequired:"组件名称不可为空",numberValidator:"数字",letterValidator:"字母",letterAndNumberValidator:"数字字母",mobilePhoneValidator:"手机号码",emailValidator:"邮箱",urlValidator:"网址",noChineseValidator:"非中文字符",chineseValidator:"仅中文字符",rowspanNotConsistentForMergeEntireRow:"存在行高不一致的单元格, 无法合并整行.",colspanNotConsistentForMergeEntireColumn:"存在列宽不一致的单元格, 无法合并整列.",rowspanNotConsistentForDeleteEntireRow:"存在行高不一致的单元格, 不可删除整行.",colspanNotConsistentForDeleteEntireColumn:"存在列宽不一致的单元格, 不可删除整列.",lastColCannotBeDeleted:"最后一列不可删除.",lastRowCannotBeDeleted:"最后一行不可删除."},toolbar:{undoHint:"撤销",redoHint:"重做",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"组件层次结构树",nodeTreeTitle:"组件层次结构树",clear:"清空",preview:"预览",importJson:"导入JSON",exportJson:"导出JSON",exportCode:"导出代码",generateCode:"生成代码",generateSFC:"生成SFC"},setting:{basicSetting:"基本属性",attributeSetting:"属性设置",commonSetting:"常见属性",advancedSetting:"高级属性",eventSetting:"事件属性",uniqueName:"唯一名称",editNameHelp:"修改名称后需按回车确认",label:"字段标签",displayType:"显示类型",defaultValue:"默认值",placeholder:"占位内容",startPlaceholder:"起始占位内容",endPlaceholder:"截止占位内容",widgetColumnWidth:"组件列宽",widgetSize:"组件大小",showStops:"显示间断点",displayStyle:"显示样式",inlineLayout:"行内",blockLayout:"块",buttonStyle:"显示为按钮",border:"带有边框",labelWidth:"标签宽度",rows:"行数",labelHidden:"隐藏字段标签",required:"必填字段",validation:"字段校验",validationHelp:"支持输入正则表达式",validationHint:"校验失败提示",readonly:"只读",disabled:"禁用",hidden:"隐藏",textContent:"静态文字",htmlContent:"HTML",clearable:"可清除",editable:"可输入",format:"显示格式",valueFormat:"绑定值格式",showPassword:"可显示密码",filterable:"可搜索选项",allowCreate:"允许创建选项",remote:"可远程搜索",automaticDropdown:"自动弹出选项",multiple:"选项可多选",multipleLimit:"多选数量限制",contentPosition:"文字位置",plain:"朴素按钮",round:"圆角按钮",circle:"圆形按钮",icon:"图标",optionsSetting:"选项设置",addOption:"增加选项",importOptions:"导入选项",resetDefault:"重设选中项",uploadSetting:"上传参数设置",uploadURL:"上传地址",uploadTip:"上传提示内容",withCredentials:"发送cookie凭证",multipleSelect:"文件可多选",showFileList:"显示文件列表",limit:"最大上传数量",fileMaxSize:"文件大小限制(MB)",fileTypes:"上传文件类型",fileTypesHelp:"支持添加其他文件类型",headers:"上传请求头",cellWidth:"宽度",cellHeight:"高度",gridColHeight:"栅格列统一高度(px)",gutter:"栅格间隔(px)",columnSetting:"栅格属性设置",colsOfGrid:"当前栅格列:",colSpanTitle:"栅格宽度",colOffsetTitle:"左侧间隔格数",colPushTitle:"右移栅格数",colPullTitle:"左移栅格数",addColumn:"增加栅格",responsive:"响应式布局",tabPaneSetting:"选项卡设置",addTabPane:"增加选项卡页",paneActive:"激活",customLabelIcon:"定制字段标签",labelIconClass:"标签Icon样式",labelIconPosition:"标签Icon位置",labelTooltip:"标签文字提示",minValue:"最小值",maxValue:"最大值",precision:"精度",step:"增减步长",controlsPosition:"控制按钮位置",minLength:"最小长度",maxLength:"最大长度",showWordLimit:"显示字数统计",prefixIcon:"头部Icon",suffixIcon:"尾部Icon",inputButton:"输入框按钮设置",appendButton:"添加后置按钮",appendButtonDisabled:"后置按钮禁用",appendButtonIcon:"后置按钮Icon",buttonIcon:"按钮Icon",switchWidth:"开关宽度(像素)",activeText:"开启时文字描述",inactiveText:"关闭时文字描述",activeColor:"开启时背景色",inactiveColor:"关闭时背景色",maxStars:"最大评分值",lowThreshold:"低分界限值",highThreshold:"高分界限值",allowHalf:"允许半选",showText:"显示辅助文字",showScore:"显示当前分数",range:"是否为范围选择",vertical:"是否竖向显示",showBlankRow:"默认显示新行",showRowNumber:"显示行号",insertColumnToLeft:"插入左侧列",insertColumnToRight:"插入右侧列",insertRowAbove:"插入上方行",insertRowBelow:"插入下方行",mergeLeftColumn:"合并左侧单元格",mergeRightColumn:"合并右侧单元格",mergeEntireRow:"合并整行",mergeRowAbove:"合并上方单元格",mergeRowBelow:"合并下方单元格",mergeEntireColumn:"合并整列",undoMergeCol:"撤销列合并",undoMergeRow:"撤销行合并",deleteEntireCol:"删除整列",deleteEntireRow:"删除整行",widgetName:"组件唯一名称",formSize:"全局组件大小",labelPosition:"字段标签位置",topPosition:"顶部",leftPosition:"左边",labelAlign:"字段标签对齐",leftAlign:"居左",centerAlign:"居中",rightAlign:"居右",formCss:"表单全局CSS",addCss:"编写CSS",customClass:"自定义CSS样式",globalFunctions:"表单全局函数",addEventHandler:"编写代码",editWidgetEventHandler:"组件事件处理",editFormEventHandler:"表单事件处理",formSFCSetting:"生成SFC设置",formModelName:"数据对象名称",formRefName:"引用名称",formRulesName:"验证规则名称"}}},We={render:{hint:{prompt:"Prompt",confirm:"OK",cancel:"Cancel",selectPlaceholder:"Pick some item",timePlaceholder:"Select time",startTimePlaceholder:"Start time",endTimePlaceholder:"End time",datePlaceholder:"Select date",startDatePlaceholder:"Start date",endDatePlaceholder:"End date",blankCellContent:"--",uploadError:"Upload error: ",uploadExceed:"The maximum number(${uploadLimit}) of file uploads has been exceeded.",unsupportedFileType:"Unsupported format: ",fileSizeExceed:"File size out of limit: ",refNotFound:"Ref not found: ",fieldRequired:"Input value should be not null.",invalidNumber:"Invalid number format",selectFile:" File...",downloadFile:"Download",removeFile:"Remove",validationFailed:"Form validation failed",subFormAction:"Action",subFormAddAction:"Add",subFormAddActionHint:"add new row",insertSubFormRow:"insert new row",deleteSubFormRow:"delete this row",nonSubFormType:"The type of widget don't match sub-form"}}},Ne={render:{hint:{prompt:"提示",confirm:"确定",cancel:"取消",selectPlaceholder:"请选择",timePlaceholder:"选择时间",startTimePlaceholder:"起始时间",endTimePlaceholder:"截止时间",datePlaceholder:"选择日期",startDatePlaceholder:"起始日期",endDatePlaceholder:"截止日期",blankCellContent:"--",uploadError:"上传错误: ",uploadExceed:"最大上传数量(${uploadLimit})已超出.",unsupportedFileType:"不支持格式: ",fileSizeExceed:"文件大小已超出: ",refNotFound:"组件未找到: ",fieldRequired:"字段值不可为空",invalidNumber:"数据格式错误",selectFile:" 选择文件",downloadFile:"下载",removeFile:"移除",validationFailed:"表单数据校验失败",subFormAction:"操作",subFormAddAction:"新增",subFormAddActionHint:"新增行",insertSubFormRow:"插入行",deleteSubFormRow:"删除行",nonSubFormType:"组件类型不是子表单"}}},He={extension:{widgetLabel:{card:"Card",alert:"Alert"},setting:{cardFolded:"Folded",cardShowFold:"Show Fold",cardWidth:"Width Of Card",cardShadow:"Shadow",alertTitle:"Title",alertType:"Type",description:"Description",closable:"Closable",closeText:"Text On Close Btn",center:"Center",showIcon:"Show Icon",effect:"Effect"}}},Be={extension:{widgetLabel:{card:"卡片",alert:"提示"},setting:{cardFolded:"是否收起",cardShowFold:"显示折叠按钮",cardWidth:"卡片宽度",cardShadow:"显示阴影",alertTitle:"标题",alertType:"类型",description:"辅助性文字",closable:"是否可关闭",closeText:"关闭按钮文字",center:"文字居中",showIcon:"显示图标",effect:"显示效果"}}},Ve={"en-US":Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({something:{}},Re.a),je),We),He),"zh-CN":Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({something:{}},Fe.a),Pe),Ne),Be)};r.a.use(Oe);var ze=new Oe({locale:localStorage.getItem("v_form_locale")||"zh-CN",messages:Ve});De.a.i18n((function(e,t){return ze.t(e,t)}));var Ue=function(e){ze.locale=e,localStorage.setItem("v_form_locale",e)},Ke=function(e){return ze._t(e,ze.locale,ze._getMessages())};t["b"]={methods:{i18nt:function(e){return ze._t(e,ze.locale,ze._getMessages())},i18n2t:function(e,t){return ze.te(e)?ze._t(e,ze.locale,ze._getMessages()):ze._t(t,ze.locale,ze._getMessages())}}}},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7a9f":function(e,t,n){"use strict";n("657e")},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,r,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var i=n("da84"),o=n("1d80"),r=i.Object;e.exports=function(e){return r(o(e))}},"7c73":function(e,t,n){var i,o=n("825a"),r=n("37e8"),s=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),d=n("f772"),u=">",h="<",f="prototype",p="script",g=d("IE_PROTO"),m=function(){},b=function(e){return h+p+u+e+h+"/"+p+u},v=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(b("document.F=Object")),e.close(),e.F},y=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&i?v(i):w():v(i);var e=s.length;while(e--)delete y[f][s[e]];return y()};a[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=o(e),n=new m,m[f]=null,n[g]=e):n=y(),void 0===t?n:r(n,t)}},"7c77":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayStyle")}},[n("el-radio-group",{model:{value:e.optionModel.displayStyle,callback:function(t){e.$set(e.optionModel,"displayStyle",t)},expression:"optionModel.displayStyle"}},[n("el-radio",{attrs:{label:"inline"}},[e._v(e._s(e.i18nt("designer.setting.inlineLayout")))]),n("el-radio",{attrs:{label:"block"}},[e._v(e._s(e.i18nt("designer.setting.blockLayout")))])],1)],1)},o=[],r=n("79fa"),s={name:"displayStyle-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"e0557052",null);t["default"]=c.exports},"7ceb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonIcon")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.buttonIcon,callback:function(t){e.$set(e.optionModel,"buttonIcon",t)},expression:"optionModel.buttonIcon"}})],1)},o=[],r=n("79fa"),s={name:"buttonIcon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6661828a",null);t["default"]=c.exports},"7d6c":function(e,t,n){"use strict";var i=n("2909"),o=n("d010"),r=n.n(o);t["a"]={mixins:[r.a],created:function(){},methods:{editEventHandler:function(e,t){this.dispatch("SettingPanel","editEventHandler",[e,Object(i["a"])(t)])}}}},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),o=n("c65b"),r=n("c430"),s=n("5e77"),a=n("1626"),l=n("9ed3"),c=n("e163"),d=n("d2bb"),u=n("d44e"),h=n("9112"),f=n("6eeb"),p=n("b622"),g=n("3f8c"),m=n("ae93"),b=s.PROPER,v=s.CONFIGURABLE,w=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,x=p("iterator"),_="keys",C="values",S="entries",k=function(){return this};e.exports=function(e,t,n,s,p,m,M){l(n,t,s);var E,$,L,O=function(e){if(e===p&&I)return I;if(!y&&e in A)return A[e];switch(e){case _:return function(){return new n(this,e)};case C:return function(){return new n(this,e)};case S:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",R=!1,A=e.prototype,F=A[x]||A["@@iterator"]||p&&A[p],I=!y&&F||O(p),D="Array"==t&&A.entries||F;if(D&&(E=c(D.call(new e)),E!==Object.prototype&&E.next&&(r||c(E)===w||(d?d(E,w):a(E[x])||f(E,x,k)),u(E,T,!0,!0),r&&(g[T]=k))),b&&p==C&&F&&F.name!==C&&(!r&&v?h(A,"name",C):(R=!0,I=function(){return o(F,this)})),p)if($={values:O(C),keys:m?I:O(_),entries:O(S)},M)for(L in $)(y||R||!(L in A))&&f(A,L,$[L]);else i({target:t,proto:!0,forced:y||R},$);return r&&!M||A[x]===I||f(A,x,I,{name:p}),g[t]=I,$}},"7de6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.format")}},[n("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.format,callback:function(t){e.$set(e.optionModel,"format",t)},expression:"optionModel.format"}},[n("el-option",{attrs:{label:"HH:mm:ss",value:"HH:mm:ss"}}),n("el-option",{attrs:{label:"HH时mm分ss秒",value:"HH时mm分ss秒"}}),n("el-option",{attrs:{label:"hh:mm:ss",value:"hh:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"time-format-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"48147b42",null);t["default"]=c.exports},"7ede":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-upload",{ref:"fieldEditor",class:{hideUploadDiv:e.uploadBtnHidden},attrs:{disabled:e.field.options.disabled,action:e.field.options.uploadURL,headers:e.uploadHeaders,data:e.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":e.fileList,"show-file-list":e.field.options.showFileList,"list-type":"picture-card",limit:e.field.options.limit,"on-exceed":e.handlePictureExceed,"before-upload":e.beforePictureUpload,"on-success":e.handlePictureUpload,"on-error":e.handelUploadError,"on-remove":e.handlePictureRemove}},[e.field.options.uploadTip?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.field.options.uploadTip))]):e._e(),n("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)},o=[],r=n("f3fa"),s=r["a"],a=(n("8c32"),n("2877")),l=Object(a["a"])(s,i,o,!1,null,"3474ccd9",null);t["default"]=l.exports},"7f9a":function(e,t,n){var i=n("da84"),o=n("1626"),r=n("8925"),s=i.WeakMap;e.exports=o(s)&&/native code/.test(r(s))},8029:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onInput","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onInput",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onInput-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["value"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"6178f9e2",null);t["default"]=d.exports},"803d":function(e,t,n){(function(e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",d=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",h=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",f=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:d},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+d+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:d},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:h},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(f,o),t.CssHighlightRules=f})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));i.hasOwnProperty(n)||(i[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i)}return[]},this.getPropertyCompletions=function(e,t,n,o){var r=Object.keys(i);return r.map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,o){var r=t.getLine(n.row).substr(0,n.column),s=(/([\w\-]+):[^:]*$/.exec(r)||{})[1];if(!s)return[];var a=[];return s in i&&"object"==typeof i[s]&&(a=Object.keys(i[s])),a.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(o.prototype),t.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=i.doc.getLine(s.row),d=c.substring(s.column,s.column+1);if(":"===d)return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type){var d=i.doc.getLine(o.start.row),u=d.substring(o.end.column,o.end.column+1);if(";"===u)return o.end.column++,o}}})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row),a=s.substring(r.column,r.column+1);if(";"===a)return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}}))};i.inherits(s,o),t.CssBehaviour=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new d};i.inherits(u,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return i;var r=t.match(/^.*\{\s*$/);return r&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u})),function(){ace.require(["ace/mode/css"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},8122:function(e,t,n){"use strict";var i=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("ac1f"),n("1276"),n("5319"),n("a9e3"),n("466d"),n("fb6a"),n("e9c4"),n("b64b"),t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var o="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)};t.noop=d,t.hasOwn=u,t.toObject=f,t.getPropByPath=p,t.rafThrottle=w,t.objToArray=y;var r=n("8bbf"),s=l(r),a=n("a742");function l(e){return e&&e.__esModule?e:{default:e}}var c=Object.prototype.hasOwnProperty;function d(){}function u(e,t){return c.call(e,t)}function h(e,t){for(var n in t)e[n]=t[n];return e}function f(e){for(var t={},n=0;n<e.length;n++)e[n]&&h(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,o=null,r=0,s=n.length;r<s;r++){var a=n[r];if(!i)break;if(r===s-1){o=i[a];break}i=i[a]}return o};function p(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var o=t.split("."),r=0,s=o.length;r<s-1;++r){if(!i&&!n)break;var a=o[r];if(!(a in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[a]}return{o:i,k:o[r],v:i?i[o[r]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var g=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=g(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!s.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!s.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!s.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":o(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),i=(0,a.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),b=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},v=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?b(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function w(e){var t=!1;return function(){for(var n=this,i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,o),t=!1})))}}function y(e){return Array.isArray(e)?e:v(e)?[]:[e]}},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),o=n("23cb"),r=n("07fa");e.exports=function(e){var t=i(this),n=r(t),s=arguments.length,a=o(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);while(c>a)t[a++]=e;return t}},"81e6":function(e,t,n){"use strict";n("84ef")},"825a":function(e,t,n){var i=n("da84"),o=n("861d"),r=i.String,s=i.TypeError;e.exports=function(e){if(o(e))return e;throw s(r(e)+" is not an object")}},"826c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-slider",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"show-stops":e.field.options.showStops,min:e.field.options.min,max:e.field.options.max,step:e.field.options.step,range:e.field.options.range,vertical:e.field.options.vertical},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"slider-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("ff58"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"447e4378",null);t["default"]=f.exports},"828b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field-wrapper",class:{"design-time-bottom-margin":!!this.designer}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.field.options.hidden||!0===e.designState,expression:"!field.options.hidden || (designState === true)"}],staticClass:"static-content-item",class:[e.selected?"selected":"",e.customClass],on:{click:function(t){return t.stopPropagation(),e.selectField(e.field)}}},[e._t("default")],2),this.designer?[e.designer.selectedId===e.field.id?n("div",{staticClass:"field-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.field)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget(e.field)}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget(e.field)}}}):e._e(),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeFieldWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.field.id?n("div",{staticClass:"drag-handler background-opacity"},[n("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),n("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.field.type,"extension.widgetLabel."+e.field.type)))]),!0===e.field.options.hidden?n("i",{staticClass:"iconfont icon-hide"}):e._e()]):e._e()]:e._e()],2)},o=[],r=(n("a9e3"),n("a15b"),n("a434"),n("79fa")),s={name:"static-content-wrapper",mixins:[r["b"]],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},computed:{selected:function(){return!!this.designer&&this.field.id===this.designer.selectedId},customClass:function(){return this.field.options.customClass?this.field.options.customClass.join(" "):""}},methods:{selectField:function(e){this.designer&&(this.designer.setSelected(e),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget:function(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget:function(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget:function(){var e=this;if(this.parentList){var t=null;1===this.parentList.length?this.parentWidget&&(t=this.parentWidget):t=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick((function(){e.parentList.splice(e.indexOfParentList,1),e.designer.setSelected(t),e.designer.emitHistoryChange()}))}}}},a=s,l=(n("3a40"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"1bbcb108",null);t["default"]=c.exports},8299:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.plain")}},[n("el-checkbox",{model:{value:e.optionModel.plain,callback:function(t){e.$set(e.optionModel,"plain",t)},expression:"optionModel.plain"}})],1)},o=[],r=n("79fa"),s={name:"plain-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"45238f36",null);t["default"]=c.exports},"82ba":function(e,t,n){e.exports=n.p+"img/t8.9291e9c1.png"},"82c5":function(e,t,n){"use strict";n("b811")},"82f8":function(e,t,n){"use strict";var i=n("ebb5"),o=n("4d64").includes,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("includes",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},8343:function(e,t,n){"use strict";n("ab98")},"839e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onBeforeUpload","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onBeforeUpload",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onBeforeUpload-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["file"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"6985c67c",null);t["default"]=d.exports},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),o=n("e683");e.exports=function(e,t){return e&&!i(t)?o(e,t):t}},8418:function(e,t,n){"use strict";var i=n("a04b"),o=n("9bf2"),r=n("5c6c");e.exports=function(e,t,n){var s=i(t);s in e?o.f(e,s,r(0,n)):e[s]=n}},"841c":function(e,t,n){"use strict";var i=n("c65b"),o=n("d784"),r=n("825a"),s=n("1d80"),a=n("129f"),l=n("577e"),c=n("dc4a"),d=n("14c3");o("search",(function(e,t,n){return[function(t){var n=s(this),o=void 0==t?void 0:c(t,e);return o?i(o,t,n):new RegExp(t)[e](l(n))},function(e){var i=r(this),o=l(e),s=n(t,i,o);if(s.done)return s.value;var c=i.lastIndex;a(c,0)||(i.lastIndex=0);var u=d(i,o);return a(i.lastIndex,c)||(i.lastIndex=c),null===u?-1:u.index}]}))},"848b":function(e,t,n){"use strict";var i=n("4a0c"),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var r={},s=i.version.split(".");function a(e,t){for(var n=t?t.split("."):s,i=e.split("."),o=0;o<3;o++){if(n[o]>i[o])return!0;if(n[o]<i[o])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),o=i.length;while(o-- >0){var r=i[o],s=t[r];if(s){var a=e[r],l=void 0===a||s(a,r,e);if(!0!==l)throw new TypeError("option "+r+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+r)}}o.transitional=function(e,t,n){var o=t&&a(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(s(i," has been removed in "+t));return o&&!r[i]&&(r[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={isOlderVersion:a,assertOptions:l,validators:o}},"84b5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input",{ref:"fieldEditor",attrs:{type:"textarea",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,placeholder:e.field.options.placeholder,rows:e.field.options.rows,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"textarea-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("4cc5"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"4be17088",null);t["default"]=f.exports},"84ef":function(e,t,n){},"851c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("div",{ref:"fieldEditor"},[e._v(e._s(e.field.options.textContent))])])},o=[],r=(n("a9e3"),n("828b")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"static-text-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("dd48"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"6f1cc36a",null);t["default"]=f.exports},"861d":function(e,t,n){var i=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},8643:function(e,t,n){},8740:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-vue-sfc",use:"icon-vue-sfc-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-vue-sfc"><defs><style type="text/css"></style></defs><path d="M454.137642 11.17578L54.066443 174.091899c-72.088591 29.490787-72.088591 120.523113 0 150.0139l400.275996 162.916119c36.45389 14.950191 78.846896 14.950191 115.505583 0l400.071199-162.813721c72.190989-29.593186 72.088591-120.830308-0.307196-150.116298L569.745624 11.278178A155.338625 155.338625 0 0 0 454.137642 11.073381z m469.190231 237.871869L532.370147 408.584616l-7.88469 2.457565a55.090429 55.090429 0 0 1-32.562744-2.457565L100.350595 249.047649 491.615517 89.817879a55.090429 55.090429 0 0 1 40.447434 0l391.162524 159.22977z" fill="#1890FF" p-id="1211" /><path d="M498.681018 729.911317c-20.274916 0-40.652231-3.788747-59.391168-11.673436L53.759247 561.260878C20.479713 547.846666 0 519.891858 0 488.557896c0-31.43636 20.582112-59.391169 53.861646-72.702982l36.556288-15.052589c21.4013-8.806277 47.103341-1.023986 57.240799 17.407756 10.239857 18.226945 1.023986 40.140238-20.479714 48.946515l-36.453889 14.950191c-3.071957 1.228783-4.710334 3.58395-4.710334 6.451109 0 3.071957 1.535978 5.119928 4.710334 6.45111l385.325805 156.874604c14.335799 5.939117 30.924367 5.939117 45.362565 0l385.325806-156.874604c3.071957-1.228783 4.915131-3.58395 4.915131-6.45111 0-3.071957-1.535978-5.222327-4.607936-6.451109L862.195929 463.879842c-21.4013-8.806277-30.412374-30.71957-20.377314-48.946515 10.342255-18.329343 35.839498-26.214033 57.240798-17.407756l44.850572 18.431742c33.177136 13.516611 53.759247 41.266622 53.759248 72.702982 0 31.333961-20.479713 59.391169-53.759248 72.702982L558.481781 718.237881a161.584938 161.584938 0 0 1-59.800763 11.673436z" fill="#5DE1C8" p-id="1212" /><path d="M498.681018 966.247209c-20.274916 0-40.652231-3.891146-59.391168-11.673437L53.759247 797.59677C20.479713 784.080159 0 756.227749 0 724.996186c0-31.43636 20.582112-59.493567 53.861646-72.805381l36.556288-14.95019c21.4013-8.806277 47.103341-1.023986 57.240799 17.407756 10.239857 18.226945 1.023986 40.140238-20.479714 48.946515l-36.453889 14.95019c-3.071957 1.126384-4.710334 3.58395-4.710334 6.45111 0 3.071957 1.535978 5.119928 4.710334 6.348711l385.325805 156.977002c14.335799 5.939117 30.924367 5.939117 45.362565 0L906.739306 731.1401c3.071957-1.126384 4.915131-3.58395 4.915131-6.348711 0-3.071957-1.535978-5.324725-4.607936-6.45111l-44.850572-18.329343c-21.4013-8.806277-30.412374-30.71957-20.377314-48.946515 10.342255-18.431742 35.839498-26.214033 57.240798-17.407756l44.850572 18.329343c33.177136 13.516611 53.759247 41.369021 53.759248 72.702982 0 31.43636-20.479713 59.493567-53.759248 72.805381L558.481781 954.573772a161.584938 161.584938 0 0 1-59.800763 11.673437z" fill="#FF7272" p-id="1213" /></symbol>'});s.a.add(a);t["default"]=a},"87ca":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.disabled")}},[n("el-checkbox",{model:{value:e.optionModel.disabled,callback:function(t){e.$set(e.optionModel,"disabled",t)},expression:"optionModel.disabled"}})],1)},o=[],r=n("79fa"),s={name:"disabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1e3dd08b",null);t["default"]=c.exports},8875:function(e,t,n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,o,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,a=r.exec(f.stack)||s.exec(f.stack),l=a&&a[1]||!1,c=a&&a[2]||!1,d=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");l===d&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(i,"$1").trim());for(var h=0;h<u.length;h++){if("interactive"===u[h].readyState)return u[h];if(u[h].src===l)return u[h];if(l===d&&u[h].innerHTML&&u[h].innerHTML.trim()===o)return u[h]}return null}}return e}))},8921:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"table-container"},[n("table",{ref:e.widget.id,staticClass:"table-layout",class:[e.customClass]},[n("tbody",e._l(e.widget.rows,(function(t,i){return n("tr",{key:t.id},[e._l(t.cols,(function(t,o){return[t.merged?e._e():n("table-cell-item",{key:o,attrs:{widget:t,"parent-list":e.widget.cols,"row-index":i,"col-index":o,"parent-widget":e.widget}})]}))],2)})),0)])])])},o=[],r=n("d010"),s=n.n(r),a=n("79fa"),l=n("d67f"),c=n("90c2"),d=n("6a79"),u=n("34f0"),h={name:"table-item",componentName:"ContainerItem",mixins:[s.a,a["b"],l["a"],u["a"]],components:{ContainerItemWrapper:c["default"],TableCellItem:d["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created:function(){this.initRefList()},mounted:function(){},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},f=h,p=(n("fcd7"),n("2877")),g=Object(p["a"])(f,i,o,!1,null,"6706084c",null);t["default"]=g.exports},8925:function(e,t,n){var i=n("e330"),o=n("1626"),r=n("c6cd"),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return s(e)}),e.exports=r.inspectSource},"89ef":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-html-text",use:"icon-html-text-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-html-text"><defs><style type="text/css"></style></defs><path d="M137.6 512l204.8-204.8c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L70.4 489.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4l227.2 227.2c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L137.6 512z m464-339.2c-16-3.2-35.2 6.4-38.4 22.4L396.8 812.8c-3.2 16 6.4 35.2 22.4 38.4 16 3.2 35.2-6.4 38.4-22.4L624 211.2c6.4-16-3.2-35.2-22.4-38.4z m352 316.8L726.4 262.4c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L886.4 512 681.6 716.8c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l227.2-227.2c6.4-6.4 9.6-16 9.6-22.4 0-9.6-3.2-16-9.6-22.4z" fill="#333333" p-id="56264" /></symbol>'});s.a.add(a);t["default"]=a},"8a3e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-select",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"allow-create":e.field.options.allowCreate,"default-first-option":e.allowDefaultFirstOption,"automatic-dropdown":e.field.options.automaticDropdown,multiple:e.field.options.multiple,"multiple-limit":e.field.options.multipleLimit,placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder"),remote:this.field.options.remote,"remote-method":e.remoteQuery},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},e._l(e.field.options.optionItems,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"select-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{allowDefaultFirstOption:function(){return!!this.field.options.filterable&&!!this.field.options.allowCreate}},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("03f8"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"70aa4578",null);t["default"]=f.exports},"8aa1":function(e,t,n){"use strict";n("2a87")},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8aa7":function(e,t,n){var i=n("da84"),o=n("d039"),r=n("1c7e"),s=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,a=i.ArrayBuffer,l=i.Int8Array;e.exports=!s||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!r((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new a(2),1,void 0).length}))},"8aa9":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.noLabelSetting||"button"===e.selectedWidget.type?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.optionModel.labelAlign,callback:function(t){e.$set(e.optionModel,"labelAlign",t)},expression:"optionModel.labelAlign"}},[n("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(" "+e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1)},o=[],r=n("79fa"),s={name:"labelAlign-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting:function(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=(n("6d29"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"3312ca7f",null);t["default"]=c.exports},"8b30":function(e,t,n){var i={"./container-wrapper.vue":"cd36","./grid-col-widget.vue":"f7729","./grid-widget.vue":"e11b","./tab-widget.vue":"5835","./table-cell-widget.vue":"1516","./table-widget.vue":"f6e6"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="8b30"},"8bb9":function(e,t,n){"use strict";n("e9cc")},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8c32":function(e,t,n){"use strict";n("586c")},"8df4":function(e,t,n){"use strict";var i=n("7a77");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8f6d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showWordLimit")}},[n("el-checkbox",{model:{value:e.optionModel.showWordLimit,callback:function(t){e.$set(e.optionModel,"showWordLimit",t)},expression:"optionModel.showWordLimit"}})],1)},o=[],r=n("79fa"),s={name:"showWordLimit-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"c5ec688c",null);t["default"]=c.exports},"8fb7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-tab"><defs><style type="text/css"></style></defs><path d="M908.8 1005.44H115.2a101.76 101.76 0 0 1-101.12-101.76V110.72A101.76 101.76 0 0 1 115.2 8.96h296.96a32.64 32.64 0 0 1 32 32V262.4a32 32 0 0 1-32 32 32 32 0 0 1-32-32v-192H115.2a37.76 37.76 0 0 0-37.12 37.76v795.52a37.76 37.76 0 0 0 37.12 37.76h793.6a37.76 37.76 0 0 0 37.12-37.76V267.52a32 32 0 0 1 32-32 32 32 0 0 1 32 32v636.16a101.76 101.76 0 0 1-101.12 101.76z" fill="#323333" p-id="9210" /><path d="M977.92 299.52a32.64 32.64 0 0 1-32-32V180.48a37.12 37.12 0 0 0-37.12-37.76H421.12a32 32 0 0 1-32-32 32 32 0 0 1 32-32h487.68a101.76 101.76 0 0 1 101.12 101.76v87.04a32 32 0 0 1-32 32z" fill="#323333" p-id="9211" /><path d="M977.92 299.52H64a32 32 0 0 1-32-32 32 32 0 0 1 32-32h913.92a32 32 0 0 1 32 32 32 32 0 0 1-32 32z" fill="#323333" p-id="9212" /><path d="M699.52 299.52a32 32 0 0 1-32-32V110.72a32 32 0 0 1 64 0v156.8a32 32 0 0 1-32 32z" fill="#323333" p-id="9213" /></symbol>'});s.a.add(a);t["default"]=a},9e3:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelIconPosition")}},[n("el-select",{model:{value:e.optionModel.labelIconPosition,callback:function(t){e.$set(e.optionModel,"labelIconPosition",t)},expression:"optionModel.labelIconPosition"}},e._l(e.labelIconPosition,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"labelIconPosition-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{labelIconPosition:[{label:"front",value:"front"},{label:"rear",value:"rear"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7d90012c",null);t["default"]=c.exports},"907a":function(e,t,n){"use strict";var i=n("ebb5"),o=n("07fa"),r=n("5926"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("at",(function(e){var t=s(this),n=o(t),i=r(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}))},"90c2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default")],2)},o=[],r=(n("a15b"),{name:"container-item-wrapper",props:{widget:Object},computed:{customClass:function(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}}),s=r,a=n("2877"),l=Object(a["a"])(s,i,o,!1,null,"ea794928",null);t["default"]=l.exports},"90e3":function(e,t,n){var i=n("e330"),o=0,r=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+r,36)}},9112:function(e,t,n){var i=n("83ab"),o=n("9bf2"),r=n("5c6c");e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},9164:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"input"===e.selectedWidget.type?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"text",value:"text"}}),n("el-option",{attrs:{label:"password",value:"password"}})],1)],1):e._e()},o=[],r=n("79fa"),s={name:"type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5adb4552",null);t["default"]=c.exports},"91df":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.highThreshold")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:e.optionModel.lowThreshold,max:e.optionModel.max},model:{value:e.optionModel.highThreshold,callback:function(t){e.$set(e.optionModel,"highThreshold",t)},expression:"optionModel.highThreshold"}})],1)},o=[],r=n("79fa"),s={name:"highThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"389ab4fb",null);t["default"]=c.exports},9263:function(e,t,n){"use strict";var i=n("c65b"),o=n("e330"),r=n("577e"),s=n("ad6d"),a=n("9f7f"),l=n("5692"),c=n("7c73"),d=n("69f3").get,u=n("fce3"),h=n("107c"),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=o("".charAt),b=o("".indexOf),v=o("".replace),w=o("".slice),y=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),x=a.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],C=y||_||x||u||h;C&&(g=function(e){var t,n,o,a,l,u,h,C=this,S=d(C),k=r(e),M=S.raw;if(M)return M.lastIndex=C.lastIndex,t=i(g,M,k),C.lastIndex=M.lastIndex,t;var E=S.groups,$=x&&C.sticky,L=i(s,C),O=C.source,T=0,R=k;if($&&(L=v(L,"y",""),-1===b(L,"g")&&(L+="g"),R=w(k,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==m(k,C.lastIndex-1))&&(O="(?: "+O+")",R=" "+R,T++),n=new RegExp("^(?:"+O+")",L)),_&&(n=new RegExp("^"+O+"$(?!\\s)",L)),y&&(o=C.lastIndex),a=i(p,$?n:C,R),$?a?(a.input=w(a.input,T),a[0]=w(a[0],T),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:y&&a&&(C.lastIndex=C.global?a.index+a[0].length:o),_&&a&&a.length>1&&i(f,a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a&&E)for(a.groups=u=c(null),l=0;l<E.length;l++)h=E[l],u[h[0]]=a[h[1]];return a}),e.exports=g},9360:function(e,t,n){},"93b5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onClick","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onClick",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onClick-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:[]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"2bc90074",null);t["default"]=d.exports},"944a":function(e,t,n){var i=n("746f");i("toStringTag")},9470:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ace-container"},[n("div",{ref:"ace",staticClass:"ace-editor"})])},o=[],r=n("6d4f"),s=n.n(r),a=(n("1bb7"),n("f14c"),n("45db"),n("803d"),n("03c0"),n("01ea")),l={name:"CodeEditor",props:{value:{type:String,required:!0},readonly:{type:Boolean,default:!1},mode:{type:String,default:"javascript"},userWorker:{type:Boolean,default:!0}},mounted:function(){var e=this;s.a.config.set("basePath",a["a"]),this.addAutoCompletion(s.a),this.aceEditor=s.a.edit(this.$refs.ace,{maxLines:20,minLines:5,fontSize:12,theme:this.themePath,mode:this.modePath,tabSize:2,readOnly:this.readonly,highlightActiveLine:!0,value:this.codeValue}),this.aceEditor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0}),"json"===this.mode?this.setJsonMode():"css"===this.mode&&this.setCssMode(),this.userWorker||this.aceEditor.getSession().setUseWorker(!1),this.aceEditor.getSession().on("change",(function(t){e.$emit("input",e.aceEditor.getValue())}))},data:function(){return{aceEditor:null,themePath:"ace/theme/sqlserver",modePath:"ace/mode/javascript",codeValue:this.value}},watch:{},methods:{addAutoCompletion:function(e){var t=[{meta:"VForm API",caption:"getWidgetRef",value:"getWidgetRef()",score:1},{meta:"VForm API",caption:"getFormRef",value:"getFormRef()",score:1}],n=e.require("ace/ext/language_tools");n.addCompleter({getCompletions:function(e,n,i,o,r){return 0===o.length?r(null,[]):r(null,t)}})},setJsonMode:function(){this.aceEditor.getSession().setMode("ace/mode/json")},setCssMode:function(){this.aceEditor.getSession().setMode("ace/mode/css")}}},c=l,d=(n("8aa1"),n("2877")),u=Object(d["a"])(c,i,o,!1,null,"a76bb920",null);t["a"]=u.exports},"94ca":function(e,t,n){var i=n("d039"),o=n("1626"),r=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n==d||n!=c&&(o(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",d=s.POLYFILL="P";e.exports=s},"955b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onRemoteQuery","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onRemoteQuery",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onRemoteQuery-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["keyword"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"e6e9ae72",null);t["default"]=d.exports},"98ef":function(e,t,n){},"99af":function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("d039"),s=n("e8b5"),a=n("861d"),l=n("7b0b"),c=n("07fa"),d=n("8418"),u=n("65f0"),h=n("1dde"),f=n("b622"),p=n("2d00"),g=f("isConcatSpreadable"),m=9007199254740991,b="Maximum allowed index exceeded",v=o.TypeError,w=p>=51||!r((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),y=h("concat"),x=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:s(e)},_=!w||!y;i({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,i,o,r,s=l(this),a=u(s,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(r=-1===t?s:arguments[t],x(r)){if(o=c(r),h+o>m)throw v(b);for(n=0;n<o;n++,h++)n in r&&d(a,h,r[n])}else{if(h>=m)throw v(b);d(a,h++,r)}return a.length=h,a}})},"99c0":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.validationHint")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.validationHint,callback:function(t){e.$set(e.optionModel,"validationHint",t)},expression:"optionModel.validationHint"}})],1)},o=[],r=n("79fa"),s={name:"validationHint-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2dfa4c7e",null);t["default"]=c.exports},"9a1f":function(e,t,n){var i=n("da84"),o=n("c65b"),r=n("59ed"),s=n("825a"),a=n("0d51"),l=n("35a1"),c=i.TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(r(n))return s(o(n,e));throw c(a(e)+" is not iterable")}},"9a8c":function(e,t,n){"use strict";var i=n("e330"),o=n("ebb5"),r=n("145e"),s=i(r),a=o.aTypedArray,l=o.exportTypedArrayMethod;l("copyWithin",(function(e,t){return s(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9b00":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.fileMaxSize")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1},model:{value:e.optionModel.fileMaxSize,callback:function(t){e.$set(e.optionModel,"fileMaxSize",t)},expression:"optionModel.fileMaxSize"}})],1)},o=[],r=n("79fa"),s={name:"fileMaxSize-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6aaf7d9c",null);t["default"]=c.exports},"9b6e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-number-field",use:"icon-number-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-number-field"><defs><style type="text/css"></style></defs><path d="M960 1024H64a64 64 0 0 1-64-64V64a64 64 0 0 1 64-64h896a64 64 0 0 1 64 64v896a64 64 0 0 1-64 64z m0-896a64 64 0 0 0-64-64H128a64 64 0 0 0-64 64v768a64 64 0 0 0 64 64h768a64 64 0 0 0 64-64V128z m-128 640h-128a64 64 0 0 1 0-128h64V576h-64a64 64 0 0 1 0-128h64V384h-64a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v384a64 64 0 0 1-64 64z m-320-128a64 64 0 0 1 0 128H384a64 64 0 0 1-64-64V512a64 64 0 0 1 64-64h64V384H384a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v192a64 64 0 0 1-64 64H448v64h64z m-320 128a64 64 0 0 1-64-64V320a64 64 0 0 1 128 0v384a64 64 0 0 1-64 64z" p-id="24162" /></symbol>'});s.a.add(a);t["default"]=a},"9bbf":function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-drag"><defs><style type="text/css"></style></defs><path d="M574.958 267.016h-63.454 204.649L511.213 63.655 307.85 267.016h141.191V456.68H258.688v125.917H449.04V772.95h125.917V582.596h188.875V456.679H574.958V267.016z m-63.704 693.33l189.62-187.396H323.126l188.129 187.395zM71.292 518.891l187.395 189.62v-377.75L71.292 518.892z m692.54-188.13v377.75L952.708 518.89 763.833 330.762z" p-id="6350" /></symbol>'});s.a.add(a);t["default"]=a},"9bdd":function(e,t,n){var i=n("825a"),o=n("2a62");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(s){o(e,"throw",s)}}},"9bf2":function(e,t,n){var i=n("da84"),o=n("83ab"),r=n("0cfb"),s=n("825a"),a=n("a04b"),l=i.TypeError,c=Object.defineProperty;t.f=o?c:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c69":function(e,t,n){},"9cf5":function(e,t,n){"use strict";n("691a")},"9d7e":function(e,t,n){"use strict";var i=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("ac1f"),n("5319"),t.__esModule=!0;var o="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)};t.default=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return 1===n.length&&"object"===o(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(s,(function(t,i,o,s){var a=void 0;return"{"===e[s-1]&&"}"===e[s+t.length]?o:(a=(0,r.hasOwn)(n,o)?n[o]:null,null===a||void 0===a?"":a)}))}return t};var r=n("8122"),s=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9dcd":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.range")}},[n("el-checkbox",{model:{value:e.optionModel.range,callback:function(t){e.$set(e.optionModel,"range",t)},expression:"optionModel.range"}})],1)},o=[],r=n("79fa"),s={name:"range-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1f5ffa72",null);t["default"]=c.exports},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,o=n("7c73"),r=n("5c6c"),s=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=o(i,{next:r(+!c,n)}),s(e,d,!1,!0),a[d]=l,e}},"9eeb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field-wrapper",class:{"design-time-bottom-margin":!!this.designer}},[e.field.formItemFlag?n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.field.options.hidden||!0===e.designState,expression:"!field.options.hidden || (designState === true)"}],class:[e.selected?"selected":"",e.labelAlign,e.customClass,e.field.options.required?"required":""],attrs:{label:e.label,"label-width":e.labelWidth+"px",title:e.field.options.labelTooltip,rules:e.rules,prop:e.getPropName()},nativeOn:{click:function(t){return t.stopPropagation(),e.selectField(e.field)}}},[e.field.options.labelIconClass?n("span",{staticClass:"custom-label",attrs:{slot:"label"},slot:"label"},["front"===e.field.options.labelIconPosition?[e.field.options.labelTooltip?[n("el-tooltip",{attrs:{content:e.field.options.labelTooltip,effect:"light"}},[n("i",{class:e.field.options.labelIconClass})]),e._v(e._s(e.label))]:[n("i",{class:e.field.options.labelIconClass}),e._v(e._s(e.label))]]:"rear"===e.field.options.labelIconPosition?[e.field.options.labelTooltip?[e._v(" "+e._s(e.label)),n("el-tooltip",{attrs:{content:e.field.options.labelTooltip,effect:"light"}},[n("i",{class:e.field.options.labelIconClass})])]:[e._v(" "+e._s(e.label)),n("i",{class:e.field.options.labelIconClass})]]:e._e()],2):e._e(),e._t("default")],2):e._e(),this.designer?[e.designer.selectedId===e.field.id?n("div",{staticClass:"field-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.field)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget(e.field)}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget(e.field)}}}):e._e(),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeFieldWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.field.id?n("div",{staticClass:"drag-handler background-opacity"},[n("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),n("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.field.type,"extension.widgetLabel."+e.field.type)))]),!0===e.field.options.hidden?n("i",{staticClass:"iconfont icon-hide"}):e._e()]):e._e()]:e._e()],2)},o=[],r=(n("a9e3"),n("a15b"),n("b0c0"),n("a434"),n("79fa")),s={name:"form-item-wrapper",mixins:[r["b"]],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""},rules:Array},inject:["formConfig"],computed:{selected:function(){return!!this.designer&&this.field.id===this.designer.selectedId},label:function(){return this.field.options.labelHidden?"":this.field.options.label},labelWidth:function(){return this.field.options.labelHidden?0:this.field.options.labelWidth?this.field.options.labelWidth:this.designer?this.designer.formConfig.labelWidth:this.formConfig.labelWidth},labelAlign:function(){return this.field.options.labelAlign?this.field.options.labelAlign:this.designer?this.designer.formConfig.labelAlign||"label-left-align":this.formConfig.labelAlign||"label-left-align"},customClass:function(){return this.field.options.customClass?this.field.options.customClass.join(" "):""},subFormName:function(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag:function(){return!!this.parentWidget&&"sub-form"===this.parentWidget.type}},created:function(){},methods:{selectField:function(e){this.designer&&(this.designer.setSelected(e),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget:function(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget:function(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget:function(){var e=this;if(this.parentList){var t=null;1===this.parentList.length?this.parentWidget&&(t=this.parentWidget):t=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick((function(){e.parentList.splice(e.indexOfParentList,1),e.designer.setSelected(t),e.designer.emitHistoryChange()}))}},getPropName:function(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name:this.field.options.name}}},a=s,l=(n("44ef"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"6910e5a8",null);t["default"]=c.exports},"9f7f":function(e,t,n){var i=n("d039"),o=n("da84"),r=o.RegExp,s=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=s||i((function(){return!r("a","y").sticky})),l=s||i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:s}},a00a:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return getRegExp}));var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("00b4"),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_1__),_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ca00"),getRegExp=function(e){var t={number:"/^\\d+(\\.\\d+)?$/",letter:"/^[A-Za-z]$/",letterAndNumber:"/^[A-Za-z0-9]+$/",mobilePhone:"/^[1][3-9][0-9]{9}$/",letterStartNumberIncluded:"/^[A-Za-z]+[A-Za-z\\d]*$/",noChinese:"/^[^一-龥]$/",chinese:"/^[一-龥]$/",email:"/^([-_A-Za-z0-9.]+)@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$/",url:"/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/"};return t[e]},validateFn=function validateFn(validatorName,rule,value,callback,defaultErrorMsg){if(Object(_util__WEBPACK_IMPORTED_MODULE_2__["j"])(value)||value.length<=0)callback();else{var reg=eval(getRegExp(validatorName));if(reg.test(value))callback();else{var errTxt=rule.errorMsg||defaultErrorMsg;callback(new Error(errTxt))}}},FormValidators={number:function(e,t,n){validateFn("number",e,t,n,"["+e.label+"]包含非数字字符")},letter:function(e,t,n){validateFn("letter",e,t,n,"["+e.label+"]包含非字母字符")},letterAndNumber:function(e,t,n){validateFn("letterAndNumber",e,t,n,"["+e.label+"]只能输入字母或数字")},mobilePhone:function(e,t,n){validateFn("mobilePhone",e,t,n,"["+e.label+"]手机号码格式有误")},noBlankStart:function(e,t,n){},noBlankEnd:function(e,t,n){},letterStartNumberIncluded:function(e,t,n){validateFn("letterStartNumberIncluded",e,t,n,"["+e.label+"]必须以字母开头,可包含数字")},noChinese:function(e,t,n){validateFn("noChinese",e,t,n,"["+e.label+"]不可输入中文字符")},chinese:function(e,t,n){validateFn("chinese",e,t,n,"["+e.label+"]只能输入中文字符")},email:function(e,t,n){validateFn("email",e,t,n,"["+e.label+"]邮箱格式有误")},url:function(e,t,n){validateFn("url",e,t,n,"["+e.label+"]URL格式有误")},regExp:function regExp(rule,value,callback){if(Object(_util__WEBPACK_IMPORTED_MODULE_2__["j"])(value)||value.length<=0)callback();else{var pattern=eval(rule.regExp);if(pattern.test(value))callback();else{var errTxt=rule.errorMsg||"["+rule.label+"]invalid value";callback(new Error(errTxt))}}}};__webpack_exports__["a"]=FormValidators},a04b:function(e,t,n){var i=n("c04e"),o=n("d9b5");e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},a078:function(e,t,n){var i=n("0366"),o=n("c65b"),r=n("5087"),s=n("7b0b"),a=n("07fa"),l=n("9a1f"),c=n("35a1"),d=n("e95a"),u=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,h,f,p,g,m=r(this),b=s(e),v=arguments.length,w=v>1?arguments[1]:void 0,y=void 0!==w,x=c(b);if(x&&!d(x)){p=l(b,x),g=p.next,b=[];while(!(f=o(g,p)).done)b.push(f.value)}for(y&&v>2&&(w=i(w,arguments[2])),n=a(b),h=new(u(m))(n),t=0;n>t;t++)h[t]=y?w(b[t],t):b[t];return h}},a0f1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.readonly")}},[n("el-checkbox",{model:{value:e.optionModel.readonly,callback:function(t){e.$set(e.optionModel,"readonly",t)},expression:"optionModel.readonly"}})],1)},o=[],r=n("79fa"),s={name:"readonly-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6fbd4382",null);t["default"]=c.exports},a15b:function(e,t,n){"use strict";var i=n("23e7"),o=n("e330"),r=n("44ad"),s=n("fc6a"),a=n("a640"),l=o([].join),c=r!=Object,d=a("join",",");i({target:"Array",proto:!0,forced:c||!d},{join:function(e){return l(s(this),void 0===e?",":e)}})},a1fd:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("a434"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__),_form_item_wrapper__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("9eeb"),element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("d010"),element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_6__),_utils_i18n__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("79fa"),_utils_util__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("ca00"),_components_form_designer_form_widget_field_widget_fieldMixin__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("2d11"),selectFileText="'"+Object(_utils_i18n__WEBPACK_IMPORTED_MODULE_7__["c"])("render.hint.selectFile")+"'";__webpack_exports__["a"]={name:"file-upload-widget",componentName:"FieldWidget",mixins:[element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_6___default.a,_components_form_designer_form_widget_field_widget_fieldMixin__WEBPACK_IMPORTED_MODULE_9__["a"],_utils_i18n__WEBPACK_IMPORTED_MODULE_7__["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:_form_item_wrapper__WEBPACK_IMPORTED_MODULE_5__["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1,styleVariables:{"--select-file-action":selectFileText}}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handleFileExceed:function handleFileExceed(){var uploadLimit=this.field.options.limit;this.$message.warning(eval("`"+this.i18nt("render.hint.uploadExceed")+"`"))},updateUploadFieldModelAndEmitDataChange:function(e){var t=Object(_utils_util__WEBPACK_IMPORTED_MODULE_8__["c"])(this.fieldModel);this.fieldModel=Object(_utils_util__WEBPACK_IMPORTED_MODULE_8__["c"])(e),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,t)},beforeFileUpload:function(e){var t=!1,n=e.name.substring(e.name.lastIndexOf(".")+1);if(this.field.options&&this.field.options.fileTypes){var i=this.field.options.fileTypes;i.length>0&&(t=i.some((function(e){return n.toLowerCase()===e.toLowerCase()})))}if(!t)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+n),!1;var o=!1,r=5;return this.field.options&&this.field.options.fileMaxSize&&(r=this.field.options.fileMaxSize),o=e.size/1024/1024<=r,o?(this.uploadData.key=e.name,this.handleOnBeforeUpload(e)):(this.$message.error(this.i18nt("render.hint.fileSizeExceed")+r+"MB"),!1)},handleOnBeforeUpload:function(e){if(this.field.options.onBeforeUpload){var t=new Function("file",this.field.options.onBeforeUpload),n=t.call(this,e);return"boolean"!==typeof n||n}return!0},handleFileUpload:function(e,t,n){if(this.field.options.onUploadSuccess){var i=new Function("result","file","fileList",this.field.options.onUploadSuccess);i.call(this,e,t,n)}else"success"===t.status&&(this.updateUploadFieldModelAndEmitDataChange(n),this.uploadBtnHidden=n.length>=this.field.options.limit)},handleFileRemove:function(e,t){this.fileList=t,this.updateUploadFieldModelAndEmitDataChange(t),this.uploadBtnHidden=t.length>=this.field.options.limit},removeUploadFile:function(e){var t=-1;this.fileList.forEach((function(n,i){n.name===e&&(t=i)})),t>=0&&(this.fileList.splice(t,1),this.updateUploadFieldModelAndEmitDataChange(this.fileList),this.uploadBtnHidden=this.fileList.length>=this.field.options.limit)},handelUploadError:function(e,t,n){if(this.field.options.onUploadError){var i=new Function("error","file","fileList",this.field.options.onUploadError);i.call(this,e,t,n)}else this.$message({message:this.i18nt("render.hint.uploadError")+e,duration:3e3,type:"error"})}}}},a2c6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.uploadTip")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.uploadTip,callback:function(t){e.$set(e.optionModel,"uploadTip",t)},expression:"optionModel.uploadTip"}})],1)},o=[],r=n("79fa"),s={name:"uploadTip-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"32c9310d",null);t["default"]=c.exports},a434:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("23cb"),s=n("5926"),a=n("07fa"),l=n("7b0b"),c=n("65f0"),d=n("8418"),u=n("1dde"),h=u("splice"),f=o.TypeError,p=Math.max,g=Math.min,m=9007199254740991,b="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,i,o,u,h,v,w=l(this),y=a(w),x=r(e,y),_=arguments.length;if(0===_?n=i=0:1===_?(n=0,i=y-x):(n=_-2,i=g(p(s(t),0),y-x)),y+n-i>m)throw f(b);for(o=c(w,i),u=0;u<i;u++)h=x+u,h in w&&d(o,u,w[h]);if(o.length=i,n<i){for(u=x;u<y-i;u++)h=u+i,v=u+n,h in w?w[v]=w[h]:delete w[v];for(u=y;u>y-i+n;u--)delete w[u-1]}else if(n>i)for(u=y-i;u>x;u--)h=u+i-1,v=u+n-1,h in w?w[v]=w[h]:delete w[v];for(u=0;u<n;u++)w[u+x]=arguments[u+2];return w.length=y-i+n,o}})},a4ae:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"password"===e.optionModel.type?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showPassword")}},[n("el-checkbox",{model:{value:e.optionModel.showPassword,callback:function(t){e.$set(e.optionModel,"showPassword",t)},expression:"optionModel.showPassword"}})],1):e._e()},o=[],r=n("79fa"),s={name:"showPassword-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"61942841",null);t["default"]=c.exports},a4d3:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("d066"),s=n("2ba4"),a=n("c65b"),l=n("e330"),c=n("c430"),d=n("83ab"),u=n("4930"),h=n("d039"),f=n("1a2d"),p=n("e8b5"),g=n("1626"),m=n("861d"),b=n("3a9b"),v=n("d9b5"),w=n("825a"),y=n("7b0b"),x=n("fc6a"),_=n("a04b"),C=n("577e"),S=n("5c6c"),k=n("7c73"),M=n("df75"),E=n("241c"),$=n("057f"),L=n("7418"),O=n("06cf"),T=n("9bf2"),R=n("d1e7"),A=n("f36a"),F=n("6eeb"),I=n("5692"),D=n("f772"),j=n("d012"),P=n("90e3"),W=n("b622"),N=n("e538"),H=n("746f"),B=n("d44e"),V=n("69f3"),z=n("b727").forEach,U=D("hidden"),K="Symbol",q="prototype",G=W("toPrimitive"),J=V.set,Y=V.getterFor(K),X=Object[q],Q=o.Symbol,Z=Q&&Q[q],ee=o.TypeError,te=o.QObject,ne=r("JSON","stringify"),ie=O.f,oe=T.f,re=$.f,se=R.f,ae=l([].push),le=I("symbols"),ce=I("op-symbols"),de=I("string-to-symbol-registry"),ue=I("symbol-to-string-registry"),he=I("wks"),fe=!te||!te[q]||!te[q].findChild,pe=d&&h((function(){return 7!=k(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=ie(X,t);i&&delete X[t],oe(e,t,n),i&&e!==X&&oe(X,t,i)}:oe,ge=function(e,t){var n=le[e]=k(Z);return J(n,{type:K,tag:e,description:t}),d||(n.description=t),n},me=function(e,t,n){e===X&&me(ce,t,n),w(e);var i=_(t);return w(n),f(le,i)?(n.enumerable?(f(e,U)&&e[U][i]&&(e[U][i]=!1),n=k(n,{enumerable:S(0,!1)})):(f(e,U)||oe(e,U,S(1,{})),e[U][i]=!0),pe(e,i,n)):oe(e,i,n)},be=function(e,t){w(e);var n=x(t),i=M(n).concat(_e(n));return z(i,(function(t){d&&!a(we,n,t)||me(e,t,n[t])})),e},ve=function(e,t){return void 0===t?k(e):be(k(e),t)},we=function(e){var t=_(e),n=a(se,this,t);return!(this===X&&f(le,t)&&!f(ce,t))&&(!(n||!f(this,t)||!f(le,t)||f(this,U)&&this[U][t])||n)},ye=function(e,t){var n=x(e),i=_(t);if(n!==X||!f(le,i)||f(ce,i)){var o=ie(n,i);return!o||!f(le,i)||f(n,U)&&n[U][i]||(o.enumerable=!0),o}},xe=function(e){var t=re(x(e)),n=[];return z(t,(function(e){f(le,e)||f(j,e)||ae(n,e)})),n},_e=function(e){var t=e===X,n=re(t?ce:x(e)),i=[];return z(n,(function(e){!f(le,e)||t&&!f(X,e)||ae(i,le[e])})),i};if(u||(Q=function(){if(b(Z,this))throw ee("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?C(arguments[0]):void 0,t=P(e),n=function(e){this===X&&a(n,ce,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),pe(this,t,S(1,e))};return d&&fe&&pe(X,t,{configurable:!0,set:n}),ge(t,e)},Z=Q[q],F(Z,"toString",(function(){return Y(this).tag})),F(Q,"withoutSetter",(function(e){return ge(P(e),e)})),R.f=we,T.f=me,O.f=ye,E.f=$.f=xe,L.f=_e,N.f=function(e){return ge(W(e),e)},d&&(oe(Z,"description",{configurable:!0,get:function(){return Y(this).description}}),c||F(X,"propertyIsEnumerable",we,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Q}),z(M(he),(function(e){H(e)})),i({target:K,stat:!0,forced:!u},{for:function(e){var t=C(e);if(f(de,t))return de[t];var n=Q(t);return de[t]=n,ue[n]=t,n},keyFor:function(e){if(!v(e))throw ee(e+" is not a symbol");if(f(ue,e))return ue[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!d},{create:ve,defineProperty:me,defineProperties:be,getOwnPropertyDescriptor:ye}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:xe,getOwnPropertySymbols:_e}),i({target:"Object",stat:!0,forced:h((function(){L.f(1)}))},{getOwnPropertySymbols:function(e){return L.f(y(e))}}),ne){var Ce=!u||h((function(){var e=Q();return"[null]"!=ne([e])||"{}"!=ne({a:e})||"{}"!=ne(Object(e))}));i({target:"JSON",stat:!0,forced:Ce},{stringify:function(e,t,n){var i=A(arguments),o=t;if((m(t)||void 0!==e)&&!v(e))return p(t)||(t=function(e,t){if(g(o)&&(t=a(o,this,e,t)),!v(t))return t}),i[1]=t,s(ne,null,i)}})}if(!Z[G]){var Se=Z.valueOf;F(Z,G,(function(e){return a(Se,this)}))}B(Q,K),j[U]=!0},a630:function(e,t,n){var i=n("23e7"),o=n("4df4"),r=n("1c7e"),s=!r((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:s},{from:o})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a6a3:function(e,t,n){"use strict";n("8643")},a742:function(e,t,n){"use strict";var i=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("fd87"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var o="function"===typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)};t.isString=l,t.isObject=c,t.isHtmlElement=d;var r=n("8bbf"),s=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return"[object String]"===Object.prototype.toString.call(e)}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return e&&e.nodeType===Node.ELEMENT_NODE}var u=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":o(Int8Array))||!s.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=u=function(e){return"function"===typeof e||!1}),t.isFunction=u;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a867:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.editable")}},[n("el-checkbox",{model:{value:e.optionModel.editable,callback:function(t){e.$set(e.optionModel,"editable",t)},expression:"optionModel.editable"}})],1)},o=[],r=n("79fa"),s={name:"editable-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"a55fcdd2",null);t["default"]=c.exports},a93f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-col",e._b({directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"grid-cell",class:[e.customClass],style:e.colHeightStyle},"el-col",e.layoutProps,!1),[e.widget.widgetList&&e.widget.widgetList.length>0?[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-item",{key:i,tag:"component",attrs:{widget:t,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:i,tag:"component",attrs:{field:t,designer:null,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]]}))]:[n("el-col",[n("div",{staticClass:"blank-cell"},[n("span",{staticClass:"invisible-content"},[e._v(e._s(e.i18nt("render.hint.blankCellContent")))])])])]],2)},o=[],r=n("5530"),s=(n("a9e3"),n("79fa")),a=n("d67f"),l=n("c029"),c={name:"GridColItem",componentName:"ContainerItem",mixins:[s["b"],a["a"]],components:Object(r["a"])({},l["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,colHeight:{type:String,default:null}},inject:["refList","globalModel","formConfig","previewState"],data:function(){return{layoutProps:{span:this.widget.options.span,md:this.widget.options.md||12,sm:this.widget.options.sm||12,xs:this.widget.options.xs||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{customClass:function(){return this.widget.options.customClass||""},colHeightStyle:function(){return this.colHeight?{height:this.colHeight+"px"}:{}}},created:function(){this.initLayoutProps(),this.initRefList()},methods:{initLayoutProps:function(){if(this.widget.options.responsive)if(this.previewState){this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0;var e=this.formConfig.layoutType;this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12}else this.layoutProps.span=void 0;else this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0}}},d=c,u=(n("4244"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"1d82ccc1",null);t["default"]=h.exports},a975:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").every,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("every",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},a979:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.format")}},[n("el-select",{attrs:{filterable:"","allow-create":""},model:{value:e.optionModel.format,callback:function(t){e.$set(e.optionModel,"format",t)},expression:"optionModel.format"}},[n("el-option",{attrs:{label:"HH:mm:ss",value:"HH:mm:ss"}}),n("el-option",{attrs:{label:"HH时mm分ss秒",value:"HH时mm分ss秒"}}),n("el-option",{attrs:{label:"hh:mm:ss",value:"hh:mm:ss"}})],1)],1)},o=[],r=n("79fa"),s={name:"time-range-format-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"288e4b9c",null);t["default"]=c.exports},a97b:function(e,t,n){"use strict";n("ccc0")},a981:function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},a982:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.minValue")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.minValue,callback:function(t){e.minValue=t},expression:"minValue"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s={name:"min-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{minValue:{get:function(){return this.optionModel["min"]},set:function(e){void 0===e||null===e||isNaN(e)?this.optionModel.min=null:this.optionModel.min=Number(e)}}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"9f972014",null);t["default"]=c.exports},a9dc:function(e,t,n){},a9e3:function(e,t,n){"use strict";var i=n("83ab"),o=n("da84"),r=n("e330"),s=n("94ca"),a=n("6eeb"),l=n("1a2d"),c=n("7156"),d=n("3a9b"),u=n("d9b5"),h=n("c04e"),f=n("d039"),p=n("241c").f,g=n("06cf").f,m=n("9bf2").f,b=n("408a"),v=n("58a8").trim,w="Number",y=o[w],x=y.prototype,_=o.TypeError,C=r("".slice),S=r("".charCodeAt),k=function(e){var t=h(e,"number");return"bigint"==typeof t?t:M(t)},M=function(e){var t,n,i,o,r,s,a,l,c=h(e,"number");if(u(c))throw _("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=v(c),t=S(c,0),43===t||45===t){if(n=S(c,2),88===n||120===n)return NaN}else if(48===t){switch(S(c,1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+c}for(r=C(c,2),s=r.length,a=0;a<s;a++)if(l=S(r,a),l<48||l>o)return NaN;return parseInt(r,i)}return+c};if(s(w,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var E,$=function(e){var t=arguments.length<1?0:y(k(e)),n=this;return d(x,n)&&f((function(){b(n)}))?c(Object(t),n,$):t},L=i?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;L.length>O;O++)l(y,E=L[O])&&!l($,E)&&m($,E,g(y,E));$.prototype=x,x.constructor=$,a(o,w,$)}},aa43:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multipleSelect")}},[n("el-checkbox",{model:{value:e.optionModel.multipleSelect,callback:function(t){e.$set(e.optionModel,"multipleSelect",t)},expression:"optionModel.multipleSelect"}})],1)},o=[],r=n("79fa"),s={name:"multipleSelect-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"c7366178",null);t["default"]=c.exports},aa47:function(e,t,n){"use strict";
|
6
|
+
/**!
|
7
|
+
* Sortable 1.10.2
|
8
|
+
* @author RubaXa <trash@rubaxa.org>
|
9
|
+
* @author owenm <owen23355@gmail.com>
|
10
|
+
* @license MIT
|
11
|
+
*/
|
12
|
+
function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(this,arguments)}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){o(e,t,n[t])}))}return e}function a(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}function l(e,t){if(null==e)return{};var n,i,o=a(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e){return d(e)||u(e)||h()}function d(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function u(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return Pt})),n.d(t,"Sortable",(function(){return Qe})),n.d(t,"Swap",(function(){return Mt}));var f="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var g=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=p(/Edge/i),b=p(/firefox/i),v=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),w=p(/iP(ad|od|hone)/i),y=p(/chrome/i)&&p(/android/i),x={capture:!1,passive:!1};function _(e,t,n){e.addEventListener(t,n,!g&&x)}function C(e,t,n){e.removeEventListener(t,n,!g&&x)}function S(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function M(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&S(e,t):S(e,t))||i&&e===n)return e;if(e===n)break}while(e=k(e))}return null}var E,$=/\s+/g;function L(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace($," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace($," ")}}function O(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"===typeof n?"":"px")}}function T(e,t){var n="";if("string"===typeof e)n=e;else do{var i=O(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function R(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function A(){var e=document.scrollingElement;return e||document.documentElement}function F(e,t,n,i,o){if(e.getBoundingClientRect||e===window){var r,s,a,l,c,d,u;if(e!==window&&e!==A()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,c=r.right,d=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!g))do{if(o&&o.getBoundingClientRect&&("none"!==O(o,"transform")||n&&"static"!==O(o,"position"))){var h=o.getBoundingClientRect();s-=h.top+parseInt(O(o,"border-top-width")),a-=h.left+parseInt(O(o,"border-left-width")),l=s+r.height,c=a+r.width;break}}while(o=o.parentNode);if(i&&e!==window){var f=T(o||e),p=f&&f.a,m=f&&f.d;f&&(s/=m,a/=p,u/=p,d/=m,l=s+d,c=a+u)}return{top:s,left:a,bottom:l,right:c,width:u,height:d}}}function I(e,t,n){var i=H(e,!0),o=F(e)[t];while(i){var r=F(i)[n],s=void 0;if(s="top"===n||"left"===n?o>=r:o<=r,!s)return i;if(i===A())break;i=H(i,!1)}return!1}function D(e,t,n){var i=0,o=0,r=e.children;while(o<r.length){if("none"!==r[o].style.display&&r[o]!==Qe.ghost&&r[o]!==Qe.dragged&&M(r[o],n.draggable,e,!1)){if(i===t)return r[o];i++}o++}return null}function j(e,t){var n=e.lastElementChild;while(n&&(n===Qe.ghost||"none"===O(n,"display")||t&&!S(n,t)))n=n.previousElementSibling;return n||null}function P(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Qe.clone||t&&!S(e,t)||n++;return n}function W(e){var t=0,n=0,i=A();if(e)do{var o=T(e),r=o.a,s=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function N(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}function H(e,t){if(!e||!e.getBoundingClientRect)return A();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=O(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return A();if(i||t)return n;i=!0}}}while(n=n.parentNode);return A()}function B(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function V(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function z(e,t){return function(){if(!E){var n=arguments,i=this;1===n.length?e.call(i,n[0]):e.apply(i,n),E=setTimeout((function(){E=void 0}),t)}}}function U(){clearTimeout(E),E=void 0}function K(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function q(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function G(e,t){O(e,"position","absolute"),O(e,"top",t.top),O(e,"left",t.left),O(e,"width",t.width),O(e,"height",t.height)}function J(e){O(e,"position",""),O(e,"top",""),O(e,"left",""),O(e,"width",""),O(e,"height","")}var Y="Sortable"+(new Date).getTime();function X(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==O(e,"display")&&e!==Qe.ghost){t.push({target:e,rect:F(e)});var n=s({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=T(e,!0);i&&(n.top-=i.f,n.left-=i.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(N(t,{target:e}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var o=!1,r=0;t.forEach((function(e){var t=0,n=e.target,s=n.fromRect,a=F(n),l=n.prevFromRect,c=n.prevToRect,d=e.rect,u=T(n,!0);u&&(a.top-=u.f,a.left-=u.e),n.toRect=a,n.thisAnimationDuration&&V(l,a)&&!V(s,a)&&(d.top-a.top)/(d.left-a.left)===(s.top-a.top)/(s.left-a.left)&&(t=Z(d,l,c,i.options)),V(a,s)||(n.prevFromRect=s,n.prevToRect=a,t||(t=i.options.animation),i.animate(n,d,a,t)),t&&(o=!0,r=Math.max(r,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"===typeof n&&n()}),r):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,i){if(i){O(e,"transition",""),O(e,"transform","");var o=T(this.el),r=o&&o.a,s=o&&o.d,a=(t.left-n.left)/(r||1),l=(t.top-n.top)/(s||1);e.animatingX=!!a,e.animatingY=!!l,O(e,"transform","translate3d("+a+"px,"+l+"px,0)"),Q(e),O(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),O(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){O(e,"transition",""),O(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}function Q(e){return e.offsetWidth}function Z(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=e+"Global";ee.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][o]&&t[i.pluginName][o](s({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](s({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var o in ee.forEach((function(i){var o=i.pluginName;if(e.options[o]||i.initializeByDefault){var s=new i(e,t,e.options);s.sortable=e,s.options=e.options,e[o]=s,r(n,s.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var s=this.modifyOption(e,o,e.options[o]);"undefined"!==typeof s&&(e.options[o]=s)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(i){"function"===typeof i.eventProperties&&r(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return ee.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[t]&&(i=o.optionListeners[t].call(e[o.pluginName],n))})),i}};function ie(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,a=e.toEl,l=e.fromEl,c=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,b=e.extraEventProperties;if(t=t||n&&n[Y],t){var v,w=t.options,y="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||g||m?(v=document.createEvent("Event"),v.initEvent(i,!0,!0)):v=new CustomEvent(i,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=o||n,v.clone=r,v.oldIndex=c,v.newIndex=d,v.oldDraggableIndex=u,v.newDraggableIndex=h,v.originalEvent=f,v.pullMode=p?p.lastPutMode:void 0;var x=s({},b,ne.getEventProperties(i,t));for(var _ in x)v[_]=x[_];n&&n.dispatchEvent(v),w[y]&&w[y].call(t,v)}}var oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=l(n,["evt"]);ne.pluginEvent.bind(Qe)(e,t,s({dragEl:se,parentEl:ae,ghostEl:le,rootEl:ce,nextEl:de,lastDownEl:ue,cloneEl:he,cloneHidden:fe,dragStarted:Me,putSortable:we,activeSortable:Qe.active,originalEvent:i,oldIndex:pe,oldDraggableIndex:me,newIndex:ge,newDraggableIndex:be,hideGhostForTarget:Ge,unhideGhostForTarget:Je,cloneNowHidden:function(){fe=!0},cloneNowShown:function(){fe=!1},dispatchSortableEvent:function(e){re({sortable:t,name:e,originalEvent:i})}},o))};function re(e){ie(s({putSortable:we,cloneEl:he,targetEl:se,rootEl:ce,oldIndex:pe,oldDraggableIndex:me,newIndex:ge,newDraggableIndex:be},e))}var se,ae,le,ce,de,ue,he,fe,pe,ge,me,be,ve,we,ye,xe,_e,Ce,Se,ke,Me,Ee,$e,Le,Oe,Te=!1,Re=!1,Ae=[],Fe=!1,Ie=!1,De=[],je=!1,Pe=[],We="undefined"!==typeof document,Ne=w,He=m||g?"cssFloat":"float",Be=We&&!y&&!w&&"draggable"in document.createElement("div"),Ve=function(){if(We){if(g)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ze=function(e,t){var n=O(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=D(e,0,t),r=D(e,1,t),s=o&&O(o),a=r&&O(r),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+F(o).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+F(r).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(o&&s["float"]&&"none"!==s["float"]){var d="left"===s["float"]?"left":"right";return!r||"both"!==a.clear&&a.clear!==d?"horizontal":"vertical"}return o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=i&&"none"===n[He]||r&&"none"===n[He]&&l+c>i)?"vertical":"horizontal"},Ue=function(e,t,n){var i=n?e.left:e.top,o=n?e.right:e.bottom,r=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,l=n?t.width:t.height;return i===s||o===a||i+r/2===s+l/2},Ke=function(e,t){var n;return Ae.some((function(i){if(!j(i)){var o=F(i),r=i[Y].options.emptyInsertThreshold,s=e>=o.left-r&&e<=o.right+r,a=t>=o.top-r&&t<=o.bottom+r;return r&&s&&a?n=i:void 0}})),n},qe=function(e){function t(e,n){return function(i,o,r,s){var a=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(i,o,r,s),n)(i,o,r,s);var l=(n?i:o).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},o=e.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ge=function(){!Ve&&le&&O(le,"display","none")},Je=function(){!Ve&&le&&O(le,"display","")};We&&document.addEventListener("click",(function(e){if(Re)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Re=!1,!1}),!0);var Ye=function(e){if(se){e=e.touches?e.touches[0]:e;var t=Ke(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Y]._onDragOver(n)}}},Xe=function(e){se&&se.parentNode[Y]._isOutsideThisEl(e.target)};function Qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=r({},t),e[Y]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ze(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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!==Qe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in ne.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var o in qe(t),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Be,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_(e,"pointerdown",this._onTapStart):(_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Ae.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),r(this,X())}function Ze(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,i,o,r,s,a){var l,c,d=e[Y],u=d.options.onMove;return!window.CustomEvent||g||m?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=o||t,l.relatedRect=r||F(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),u&&(c=u.call(d,l,s)),c}function tt(e){e.draggable=!1}function nt(){je=!1}function it(e,t,n){var i=F(j(n.el,n.options.draggable)),o=10;return t?e.clientX>i.right+o||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+o}function ot(e,t,n,i,o,r,s,a){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,d=i?n.top:n.left,u=i?n.bottom:n.right,h=!1;if(!s)if(a&&Le<c*o){if(!Fe&&(1===$e?l>d+c*r/2:l<u-c*r/2)&&(Fe=!0),Fe)h=!0;else if(1===$e?l<d+Le:l>u-Le)return-$e}else if(l>d+c*(1-o)/2&&l<u-c*(1-o)/2)return rt(t);return h=h||s,h&&(l<d+c*r/2||l>u-c*r/2)?l>d+c/2?1:-1:0}function rt(e){return P(se)<P(e)?1:-1}function st(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;while(n--)i+=t.charCodeAt(n);return i.toString(36)}function at(e){Pe.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var i=t[n];i.checked&&Pe.push(i)}}function lt(e){return setTimeout(e,0)}function ct(e){return clearTimeout(e)}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ee=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,se):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,s=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(s||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,c=i.filter;if(at(n),!se&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(a=M(a,i.draggable,n,!1),(!a||!a.animated)&&ue!==a)){if(pe=P(a),me=P(a,i.draggable),"function"===typeof c){if(c.call(this,e,a,this))return re({sortable:t,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),oe("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=M(l,i.trim(),n,!1),i)return re({sortable:t,rootEl:i,name:"filter",targetEl:a,fromEl:n,toEl:n}),oe("filter",t,{evt:e}),!0})),c))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!M(l,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,s=o.options,a=r.ownerDocument;if(n&&!se&&n.parentNode===r){var l=F(n);if(ce=r,se=n,ae=se.parentNode,de=se.nextSibling,ue=n,ve=s.group,Qe.dragged=se,ye={target:se,clientX:(t||e).clientX,clientY:(t||e).clientY},Se=ye.clientX-l.left,ke=ye.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,se.style["will-change"]="all",i=function(){oe("delayEnded",o,{evt:e}),Qe.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!b&&o.nativeDraggable&&(se.draggable=!0),o._triggerDragStart(e,t),re({sortable:o,name:"choose",originalEvent:e}),L(se,s.chosenClass,!0))},s.ignore.split(",").forEach((function(e){R(se,e.trim(),tt)})),_(a,"dragover",Ye),_(a,"mousemove",Ye),_(a,"touchmove",Ye),_(a,"mouseup",o._onDrop),_(a,"touchend",o._onDrop),_(a,"touchcancel",o._onDrop),b&&this.nativeDraggable&&(this.options.touchStartThreshold=4,se.draggable=!0),oe("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(m||g))i();else{if(Qe.eventCanceled)return void this._onDrop();_(a,"mouseup",o._disableDelayedDrag),_(a,"touchend",o._disableDelayedDrag),_(a,"touchcancel",o._disableDelayedDrag),_(a,"mousemove",o._delayedDragTouchMoveHandler),_(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&_(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,s.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){se&&tt(se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):_(document,t?"touchmove":"mousemove",this._onTouchMove):(_(se,"dragend",this),_(ce,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Te=!1,ce&&se){oe("dragStarted",this,{evt:t}),this.nativeDraggable&&_(document,"dragover",Xe);var n=this.options;!e&&L(se,n.dragClass,!1),L(se,n.ghostClass,!0),Qe.active=this,e&&this._appendGhost(),re({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(xe){this._lastX=xe.clientX,this._lastY=xe.clientY,Ge();var e=document.elementFromPoint(xe.clientX,xe.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(xe.clientX,xe.clientY),e===t)break;t=e}if(se.parentNode[Y]._isOutsideThisEl(e),t)do{if(t[Y]){var n=void 0;if(n=t[Y]._onDragOver({clientX:xe.clientX,clientY:xe.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Je()}},_onTouchMove:function(e){if(ye){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=le&&T(le,!0),s=le&&r&&r.a,a=le&&r&&r.d,l=Ne&&Oe&&W(Oe),c=(o.clientX-ye.clientX+i.x)/(s||1)+(l?l[0]-De[0]:0)/(s||1),d=(o.clientY-ye.clientY+i.y)/(a||1)+(l?l[1]-De[1]:0)/(a||1);if(!Qe.active&&!Te){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(le){r?(r.e+=c-(_e||0),r.f+=d-(Ce||0)):r={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");O(le,"webkitTransform",u),O(le,"mozTransform",u),O(le,"msTransform",u),O(le,"transform",u),_e=c,Ce=d,xe=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!le){var e=this.options.fallbackOnBody?document.body:ce,t=F(se,!0,Ne,!0,e),n=this.options;if(Ne){Oe=e;while("static"===O(Oe,"position")&&"none"===O(Oe,"transform")&&Oe!==document)Oe=Oe.parentNode;Oe!==document.body&&Oe!==document.documentElement?(Oe===document&&(Oe=A()),t.top+=Oe.scrollTop,t.left+=Oe.scrollLeft):Oe=A(),De=W(Oe)}le=se.cloneNode(!0),L(le,n.ghostClass,!1),L(le,n.fallbackClass,!0),L(le,n.dragClass,!0),O(le,"transition",""),O(le,"transform",""),O(le,"box-sizing","border-box"),O(le,"margin",0),O(le,"top",t.top),O(le,"left",t.left),O(le,"width",t.width),O(le,"height",t.height),O(le,"opacity","0.8"),O(le,"position",Ne?"absolute":"fixed"),O(le,"zIndex","100000"),O(le,"pointerEvents","none"),Qe.ghost=le,e.appendChild(le),O(le,"transform-origin",Se/parseInt(le.style.width)*100+"% "+ke/parseInt(le.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,o=n.options;oe("dragStart",this,{evt:e}),Qe.eventCanceled?this._onDrop():(oe("setupClone",this),Qe.eventCanceled||(he=q(se),he.draggable=!1,he.style["will-change"]="",this._hideClone(),L(he,this.options.chosenClass,!1),Qe.clone=he),n.cloneId=lt((function(){oe("clone",n),Qe.eventCanceled||(n.options.removeCloneOnHide||ce.insertBefore(he,se),n._hideClone(),re({sortable:n,name:"clone"}))})),!t&&L(se,o.dragClass,!0),t?(Re=!0,n._loopId=setInterval(n._emulateDragOver,50)):(C(document,"mouseup",n._onDrop),C(document,"touchend",n._onDrop),C(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,se)),_(document,"drop",n),O(se,"transform","translateZ(0)")),Te=!0,n._dragStartId=lt(n._dragStarted.bind(n,t,e)),_(document,"selectstart",n),Me=!0,v&&O(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,o,r=this.el,a=e.target,l=this.options,c=l.group,d=Qe.active,u=ve===c,h=l.sort,f=we||d,p=this,g=!1;if(!je){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=M(a,l.draggable,r,!0),R("dragOver"),Qe.eventCanceled)return g;if(se.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return D(!1);if(Re=!1,d&&!l.disabled&&(u?h||(i=!ce.contains(se)):we===this||(this.lastPutMode=ve.checkPull(this,d,se,e))&&c.checkPut(this,d,se,e))){if(o="vertical"===this._getDirection(e,a),t=F(se),R("dragOverValid"),Qe.eventCanceled)return g;if(i)return ae=ce,A(),this._hideClone(),R("revert"),Qe.eventCanceled||(de?ce.insertBefore(se,de):ce.appendChild(se)),D(!0);var m=j(r,l.draggable);if(!m||it(e,o,this)&&!m.animated){if(m===se)return D(!1);if(m&&r===e.target&&(a=m),a&&(n=F(a)),!1!==et(ce,r,se,t,a,n,e,!!a))return A(),r.appendChild(se),ae=r,W(),D(!0)}else if(a.parentNode===r){n=F(a);var b,v,w=0,y=se.parentNode!==r,x=!Ue(se.animated&&se.toRect||t,a.animated&&a.toRect||n,o),_=o?"top":"left",C=I(a,"top","top")||I(se,"top","top"),S=C?C.scrollTop:void 0;if(Ee!==a&&(b=n[_],Fe=!1,Ie=!x&&l.invertSwap||y),w=ot(e,a,n,o,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ie,Ee===a),0!==w){var k=P(se);do{k-=w,v=ae.children[k]}while(v&&("none"===O(v,"display")||v===le))}if(0===w||v===a)return D(!1);Ee=a,$e=w;var E=a.nextElementSibling,$=!1;$=1===w;var T=et(ce,r,se,t,a,n,e,$);if(!1!==T)return 1!==T&&-1!==T||($=1===T),je=!0,setTimeout(nt,30),A(),$&&!E?r.appendChild(se):a.parentNode.insertBefore(se,$?E:a),C&&K(C,0,S-C.scrollTop),ae=se.parentNode,void 0===b||Ie||(Le=Math.abs(b-F(a)[_])),W(),D(!0)}if(r.contains(se))return D(!1)}return!1}function R(l,c){oe(l,p,s({evt:e,isOwner:u,axis:o?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:a,completed:D,onMove:function(n,i){return et(ce,r,se,t,n,F(n),e,i)},changed:W},c))}function A(){R("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function D(t){return R("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(p),p!==f&&(L(se,we?we.options.ghostClass:d.options.ghostClass,!1),L(se,l.ghostClass,!0)),we!==p&&p!==Qe.active?we=p:p===Qe.active&&we&&(we=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){R("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===se&&!se.animated||a===r&&!a.animated)&&(Ee=null),l.dragoverBubble||e.rootEl||a===document||(se.parentNode[Y]._isOutsideThisEl(e.target),!t&&Ye(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function W(){ge=P(se),be=P(se,l.draggable),re({sortable:p,name:"change",toEl:r,newIndex:ge,newDraggableIndex:be,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Ye),C(document,"mousemove",Ye),C(document,"touchmove",Ye)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ge=P(se),be=P(se,n.draggable),oe("drop",this,{evt:e}),ae=se&&se.parentNode,ge=P(se),be=P(se,n.draggable),Qe.eventCanceled||(Te=!1,Ie=!1,Fe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ct(this.cloneId),ct(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),v&&O(document.body,"user-select",""),O(se,"transform",""),e&&(Me&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(ce===ae||we&&"clone"!==we.lastPutMode)&&he&&he.parentNode&&he.parentNode.removeChild(he),se&&(this.nativeDraggable&&C(se,"dragend",this),tt(se),se.style["will-change"]="",Me&&!Te&&L(se,we?we.options.ghostClass:this.options.ghostClass,!1),L(se,this.options.chosenClass,!1),re({sortable:this,name:"unchoose",toEl:ae,newIndex:null,newDraggableIndex:null,originalEvent:e}),ce!==ae?(ge>=0&&(re({rootEl:ae,name:"add",toEl:ae,fromEl:ce,originalEvent:e}),re({sortable:this,name:"remove",toEl:ae,originalEvent:e}),re({rootEl:ae,name:"sort",toEl:ae,fromEl:ce,originalEvent:e}),re({sortable:this,name:"sort",toEl:ae,originalEvent:e})),we&&we.save()):ge!==pe&&ge>=0&&(re({sortable:this,name:"update",toEl:ae,originalEvent:e}),re({sortable:this,name:"sort",toEl:ae,originalEvent:e})),Qe.active&&(null!=ge&&-1!==ge||(ge=pe,be=me),re({sortable:this,name:"end",toEl:ae,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){oe("nulling",this),ce=se=ae=le=de=he=ue=fe=ye=xe=Me=ge=be=pe=me=Ee=$e=we=ve=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,Pe.forEach((function(e){e.checked=!0})),Pe.length=_e=Ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":se&&(this._onDragOver(e),Ze(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)e=n[i],M(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||st(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){var o=n.children[i];M(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return M(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof i?i:t,"group"===e&&qe(n)},destroy:function(){oe("destroy",this);var e=this.el;e[Y]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ae.splice(Ae.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fe){if(oe("hideClone",this),Qe.eventCanceled)return;O(he,"display","none"),this.options.removeCloneOnHide&&he.parentNode&&he.parentNode.removeChild(he),fe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(fe){if(oe("showClone",this),Qe.eventCanceled)return;ce.contains(se)&&!this.options.group.revertClone?ce.insertBefore(he,se):de?ce.insertBefore(he,de):ce.appendChild(he),this.options.group.revertClone&&this.animate(se,he),O(he,"display",""),fe=!1}}else this._hideClone()}},We&&_(document,"touchmove",(function(e){(Qe.active||Te)&&e.cancelable&&e.preventDefault()})),Qe.utils={on:_,off:C,css:O,find:R,is:function(e,t){return!!M(e,t,e,!1)},extend:B,throttle:z,closest:M,toggleClass:L,clone:q,index:P,nextTick:lt,cancelNextTick:ct,detectDirection:ze,getChild:D},Qe.get=function(e){return e[Y]},Qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Qe.utils=s({},Qe.utils,e.utils)),ne.mount(e)}))},Qe.create=function(e,t){return new Qe(e,t)},Qe.version=f;var dt,ut,ht,ft,pt,gt,mt=[],bt=!1;function vt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),yt(),wt(),U()},nulling:function(){pt=ut=dt=bt=gt=ht=ft=null,mt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(i,o);if(pt=e,t||m||g||v){_t(e,this.options,r,t);var s=H(r,!0);!bt||gt&&i===ht&&o===ft||(gt&&yt(),gt=setInterval((function(){var r=H(document.elementFromPoint(i,o),!0);r!==s&&(s=r,wt()),_t(e,n.options,r,t)}),10),ht=i,ft=o)}else{if(!this.options.bubbleScroll||H(r,!0)===A())return void wt();_t(e,this.options,H(r,!1),!1)}}},r(e,{pluginName:"scroll",initializeByDefault:!0})}function wt(){mt.forEach((function(e){clearInterval(e.pid)})),mt=[]}function yt(){clearInterval(gt)}var xt,_t=z((function(e,t,n,i){if(t.scroll){var o,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,c=A(),d=!1;ut!==n&&(ut=n,wt(),dt=t.scroll,o=t.scrollFn,!0===dt&&(dt=H(n,!0)));var u=0,h=dt;do{var f=h,p=F(f),g=p.top,m=p.bottom,b=p.left,v=p.right,w=p.width,y=p.height,x=void 0,_=void 0,C=f.scrollWidth,S=f.scrollHeight,k=O(f),M=f.scrollLeft,E=f.scrollTop;f===c?(x=w<C&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),_=y<S&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(x=w<C&&("auto"===k.overflowX||"scroll"===k.overflowX),_=y<S&&("auto"===k.overflowY||"scroll"===k.overflowY));var $=x&&(Math.abs(v-r)<=a&&M+w<C)-(Math.abs(b-r)<=a&&!!M),L=_&&(Math.abs(m-s)<=a&&E+y<S)-(Math.abs(g-s)<=a&&!!E);if(!mt[u])for(var T=0;T<=u;T++)mt[T]||(mt[T]={});mt[u].vx==$&&mt[u].vy==L&&mt[u].el===f||(mt[u].el=f,mt[u].vx=$,mt[u].vy=L,clearInterval(mt[u].pid),0==$&&0==L||(d=!0,mt[u].pid=setInterval(function(){i&&0===this.layer&&Qe.active._onTouchMove(pt);var t=mt[this.layer].vy?mt[this.layer].vy*l:0,n=mt[this.layer].vx?mt[this.layer].vx*l:0;"function"===typeof o&&"continue"!==o.call(Qe.dragged.parentNode[Y],n,t,e,pt,mt[this.layer].el)||K(mt[this.layer].el,n,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&h!==c&&(h=H(h,!1)));bt=d}}),30),Ct=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var l=n||o;s();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);a(),l&&!l.el.contains(d)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function St(){}function kt(){}function Mt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;xt=t},dragOverValid:function(e){var t=e.completed,n=e.target,i=e.onMove,o=e.activeSortable,r=e.changed,s=e.cancel;if(o.options.swap){var a=this.sortable.el,l=this.options;if(n&&n!==a){var c=xt;!1!==i(n)?(L(n,l.swapClass,!0),xt=n):xt=null,c&&c!==xt&&L(c,l.swapClass,!1)}r(),t(!0),s()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,i=e.dragEl,o=n||this.sortable,r=this.options;xt&&L(xt,r.swapClass,!1),xt&&(r.swap||n&&n.options.swap)&&i!==xt&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),Et(i,xt),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){xt=null}},r(e,{pluginName:"swap",eventProperties:function(){return{swapItem:xt}}})}function Et(e,t){var n,i,o=e.parentNode,r=t.parentNode;o&&r&&!o.isEqualNode(t)&&!r.isEqualNode(e)&&(n=P(e),i=P(t),o.isEqualNode(r)&&n<i&&i++,o.insertBefore(t,o.children[n]),r.insertBefore(e,r.children[i]))}St.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=D(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ct},r(St,{pluginName:"revertOnSpill"}),kt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Ct},r(kt,{pluginName:"removeOnSpill"});var $t,Lt,Ot,Tt,Rt,At=[],Ft=[],It=!1,Dt=!1,jt=!1;function Pt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?_(document,"pointerup",this._deselectMultiDrag):(_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag)),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var i="";At.length&&Lt===e?At.forEach((function(e,t){i+=(t?", ":"")+e.textContent})):i=n.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Ot=t},delayEnded:function(){this.isMultiDrag=~At.indexOf(Ot)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var i=0;i<At.length;i++)Ft.push(q(At[i])),Ft[i].sortableIndex=At[i].sortableIndex,Ft[i].draggable=!1,Ft[i].style["will-change"]="",L(Ft[i],this.options.selectedClass,!1),At[i]===Ot&&L(Ft[i],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,i=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||At.length&&Lt===t&&(Nt(!0,n),i("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,i=e.cancel;this.isMultiDrag&&(Nt(!1,n),Ft.forEach((function(e){O(e,"display","")})),t(),Rt=!1,i())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),i=e.cancel;this.isMultiDrag&&(Ft.forEach((function(e){O(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Rt=!0,i())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Lt&&Lt.multiDrag._deselectMultiDrag(),At.forEach((function(e){e.sortableIndex=P(e)})),At=At.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),jt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){At.forEach((function(e){e!==Ot&&O(e,"position","absolute")}));var i=F(Ot,!1,!0,!0);At.forEach((function(e){e!==Ot&&G(e,i)})),Dt=!0,It=!0}n.animateAll((function(){Dt=!1,It=!1,t.options.animation&&At.forEach((function(e){J(e)})),t.options.sort&&Ht()}))}},dragOver:function(e){var t=e.target,n=e.completed,i=e.cancel;Dt&&~At.indexOf(t)&&(n(!1),i())},revert:function(e){var t=e.fromSortable,n=e.rootEl,i=e.sortable,o=e.dragRect;At.length>1&&(At.forEach((function(e){i.addAnimationState({target:e,rect:Dt?F(e):o}),J(e),e.fromRect=o,t.removeAnimationState(e)})),Dt=!1,Wt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,i=e.insertion,o=e.activeSortable,r=e.parentEl,s=e.putSortable,a=this.options;if(i){if(n&&o._hideClone(),It=!1,a.animation&&At.length>1&&(Dt||!n&&!o.options.sort&&!s)){var l=F(Ot,!1,!0,!0);At.forEach((function(e){e!==Ot&&(G(e,l),r.appendChild(e))})),Dt=!0}if(!n)if(Dt||Ht(),At.length>1){var c=Rt;o._showClone(t),o.options.animation&&!Rt&&c&&Ft.forEach((function(e){o.addAnimationState({target:e,rect:Tt}),e.fromRect=Tt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,i=e.activeSortable;if(At.forEach((function(e){e.thisAnimationDuration=null})),i.options.animation&&!n&&i.multiDrag.isMultiDrag){Tt=r({},t);var o=T(Ot,!0);Tt.top-=o.f,Tt.left-=o.e}},dragOverAnimationComplete:function(){Dt&&(Dt=!1,Ht())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,o=e.sortable,r=e.dispatchSortableEvent,s=e.oldIndex,a=e.putSortable,l=a||this.sortable;if(t){var c=this.options,d=i.children;if(!jt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),L(Ot,c.selectedClass,!~At.indexOf(Ot)),~At.indexOf(Ot))At.splice(At.indexOf(Ot),1),$t=null,ie({sortable:o,rootEl:n,name:"deselect",targetEl:Ot,originalEvt:t});else{if(At.push(Ot),ie({sortable:o,rootEl:n,name:"select",targetEl:Ot,originalEvt:t}),t.shiftKey&&$t&&o.el.contains($t)){var u,h,f=P($t),p=P(Ot);if(~f&&~p&&f!==p)for(p>f?(h=f,u=p):(h=p,u=f+1);h<u;h++)~At.indexOf(d[h])||(L(d[h],c.selectedClass,!0),At.push(d[h]),ie({sortable:o,rootEl:n,name:"select",targetEl:d[h],originalEvt:t}))}else $t=Ot;Lt=l}if(jt&&this.isMultiDrag){if((i[Y].options.sort||i!==n)&&At.length>1){var g=F(Ot),m=P(Ot,":not(."+this.options.selectedClass+")");if(!It&&c.animation&&(Ot.thisAnimationDuration=null),l.captureAnimationState(),!It&&(c.animation&&(Ot.fromRect=g,At.forEach((function(e){if(e.thisAnimationDuration=null,e!==Ot){var t=Dt?F(e):g;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Ht(),At.forEach((function(e){d[m]?i.insertBefore(e,d[m]):i.appendChild(e),m++})),s===P(Ot))){var b=!1;At.forEach((function(e){e.sortableIndex===P(e)||(b=!0)})),b&&r("update")}At.forEach((function(e){J(e)})),l.animateAll()}Lt=l}(n===i||a&&"clone"!==a.lastPutMode)&&Ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=jt=!1,Ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof jt||!jt)&&Lt===this.sortable&&(!e||!M(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(At.length){var t=At[0];L(t,this.options.selectedClass,!1),At.shift(),ie({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},r(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Y];t&&t.options.multiDrag&&!~At.indexOf(e)&&(Lt&&Lt!==t&&(Lt.multiDrag._deselectMultiDrag(),Lt=t),L(e,t.options.selectedClass,!0),At.push(e))},deselect:function(e){var t=e.parentNode[Y],n=At.indexOf(e);t&&t.options.multiDrag&&~n&&(L(e,t.options.selectedClass,!1),At.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return At.forEach((function(i){var o;t.push({multiDragElement:i,index:i.sortableIndex}),o=Dt&&i!==Ot?-1:Dt?P(i,":not(."+e.options.selectedClass+")"):P(i),n.push({multiDragElement:i,index:o})})),{items:c(At),clones:[].concat(Ft),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Wt(e,t){At.forEach((function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Nt(e,t){Ft.forEach((function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Ht(){At.forEach((function(e){e!==Ot&&e.parentNode&&e.parentNode.removeChild(e)}))}Qe.mount(new vt),Qe.mount(kt,St),t["default"]=Qe},ab13:function(e,t,n){var i=n("b622"),o=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(i){}}return!1}},ab136:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.inputButton")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButton")}},[n("el-checkbox",{model:{value:e.optionModel.appendButton,callback:function(t){e.$set(e.optionModel,"appendButton",t)},expression:"optionModel.appendButton"}})],1)],1)},o=[],r=n("79fa"),s={name:"appendButton-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5d613eac",null);t["default"]=c.exports},ab98:function(e,t,n){},ac1f:function(e,t,n){"use strict";var i=n("23e7"),o=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad3f:function(e,t,n){},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){var i=n("4dae"),o=Math.floor,r=function(e,t){var n=e.length,l=o(n/2);return n<8?s(e,t):a(e,r(i(e,0,l),t),r(i(e,l),t),t)},s=function(e,t){var n,i,o=e.length,r=1;while(r<o){i=r,n=e[r];while(i&&t(e[i-1],n)>0)e[i]=e[--i];i!==r++&&(e[i]=n)}return e},a=function(e,t,n,i){var o=t.length,r=n.length,s=0,a=0;while(s<o||a<r)e[s+a]=s<o&&a<r?i(t[s],n[a])<=0?t[s++]:n[a++]:s<o?t[s++]:n[a++];return e};e.exports=r},ade3:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}))},ae04:function(e,t,n){},ae93:function(e,t,n){"use strict";var i,o,r,s=n("d039"),a=n("1626"),l=n("7c73"),c=n("e163"),d=n("6eeb"),u=n("b622"),h=n("c430"),f=u("iterator"),p=!1;[].keys&&(r=[].keys(),"next"in r?(o=c(c(r)),o!==Object.prototype&&(i=o)):p=!0);var g=void 0==i||s((function(){var e={};return i[f].call(e)!==e}));g?i={}:h&&(i=l(i)),a(i[f])||d(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},aee6:function(e,t,n){},af43:function(e,t,n){},b041:function(e,t,n){"use strict";var i=n("00ee"),o=n("f5df");e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var i=n("83ab"),o=n("5e77").EXISTS,r=n("e330"),s=n("9bf2").f,a=Function.prototype,l=r(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=r(c.exec),u="name";i&&!o&&s(a,u,{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},b2b6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.textContent")}},[n("el-input",{model:{value:e.optionModel.textContent,callback:function(t){e.$set(e.optionModel,"textContent",t)},expression:"optionModel.textContent"}})],1)},o=[],r=n("79fa"),s={name:"textContent-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"17fc8479",null);t["default"]=c.exports},b2bf:function(e,t,n){"use strict";n("b0c0"),n("ac1f"),n("5319");t["a"]={methods:{hasConfig:function(e){return!(!this.designer||!this.designer.selectedWidget)&&this.designer.hasConfig(this.selectedWidget,e)},emitDefaultValueChange:function(){if(this.designer&&this.designer.formWidget){var e=this.designer.formWidget.getWidgetRef(this.designer.selectedWidget.options.name);e&&e.refreshDefaultValue&&e.refreshDefaultValue()}},inputNumberHandler:function(e){var t=e.target;t.value=t.value.replace(/[^0-9]/gi,"")},onRemoteChange:function(e){e&&(this.optionModel.filterable=!0,this.optionModel.allowCreate=!1)},onMultipleSelected:function(e){e?this.optionModel.defaultValue=[]:this.optionModel.defaultValue&&this.optionModel.defaultValue.length>0?this.optionModel.defaultValue=this.optionModel.defaultValue[0]:this.optionModel.defaultValue=""}}}},b2d6:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:""},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},empty:{description:"No Data"}}}},b302:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-time-picker",{staticStyle:{width:"100%"},attrs:{"is-range":"",format:e.optionModel.format,"value-format":"HH:mm:ss"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})},o=[],r=n("79fa"),s=n("b2bf"),a={name:"time-range-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"906ff176",null);t["default"]=d.exports},b311:function(e,t,n){
|
13
|
+
/*!
|
14
|
+
* clipboard.js v2.0.8
|
15
|
+
* https://clipboardjs.com/
|
16
|
+
*
|
17
|
+
* Licensed MIT © Zeno Rocha
|
18
|
+
*/
|
19
|
+
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={134:function(e,t,n){"use strict";n.d(t,{default:function(){return $}});var i=n(279),o=n.n(i),r=n(370),s=n.n(r),a=n(817),l=n.n(a);function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var f=function(){function e(t){d(this,e),this.resolveOptions(t),this.initSelection()}return h(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),p=f;function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function w(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function x(e){var t=S();return function(){var n,i=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function M(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var E=function(e){w(n,e);var t=x(n);function n(e,i){var o;return m(this,n),o=t.call(this),o.resolveOptions(i),o.listenClick(e),o}return v(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return M("action",e)}},{key:"defaultTarget",value:function(e){var t=M("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return M("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(o()),$=E},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function i(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=i},438:function(e,t,n){var i=n(828);function o(e,t,n,i,o){var r=s.apply(this,arguments);return e.addEventListener(n,r,o),{destroy:function(){e.removeEventListener(n,r,o)}}}function r(e,t,n,i,r){return"function"===typeof e.addEventListener?o.apply(null,arguments):"function"===typeof n?o.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,i,r)})))}function s(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=r},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var i=n(879),o=n(438);function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return s(e,t,n);if(i.nodeList(e))return a(e,t,n);if(i.string(e))return l(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function s(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function a(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function l(e,t,n){return o(document.body,e,t,n)}e.exports=r},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;for(i;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,s=i.length;r<s;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(134)}().default}))},b39a:function(e,t,n){"use strict";var i=n("da84"),o=n("2ba4"),r=n("ebb5"),s=n("d039"),a=n("f36a"),l=i.Int8Array,c=r.aTypedArray,d=r.exportTypedArrayMethod,u=[].toLocaleString,h=!!l&&s((function(){u.call(new l(1))})),f=s((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!s((function(){l.prototype.toLocaleString.call([1,2])}));d("toLocaleString",(function(){return o(u,h?a(c(this)):c(this),a(arguments))}),f)},b46f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onMounted","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onMounted",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onMounted-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:[]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"479f4bf4",null);t["default"]=d.exports},b50d:function(e,t,n){"use strict";var i=n("c532"),o=n("467f"),r=n("7aac"),s=n("30b5"),a=n("83b9"),l=n("c345"),c=n("3934"),d=n("2d83");e.exports=function(e){return new Promise((function(t,n){var u=e.data,h=e.headers,f=e.responseType;i.isFormData(u)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(g+":"+m)}var b=a(e.baseURL,e.url);function v(){if(p){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,r=f&&"text"!==f&&"json"!==f?p.response:p.responseText,s={data:r,status:p.status,statusText:p.statusText,headers:i,config:e,request:p};o(t,n,s),p=null}}if(p.open(e.method.toUpperCase(),s(b,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(v)},p.onabort=function(){p&&(n(d("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(d("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var w=(e.withCredentials||c(b))&&e.xsrfCookieName?r.read(e.xsrfCookieName):void 0;w&&(h[e.xsrfHeaderName]=w)}"setRequestHeader"in p&&i.forEach(h,(function(e,t){"undefined"===typeof u&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),u||(u=null),p.send(u)}))}},b5e8:function(e,t,n){},b622:function(e,t,n){var i=n("da84"),o=n("5692"),r=n("1a2d"),s=n("90e3"),a=n("4930"),l=n("fdbf"),c=o("wks"),d=i.Symbol,u=d&&d["for"],h=l?d:d&&d.withoutSetter||s;e.exports=function(e){if(!r(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&r(d,e)?c[e]=d[e]:c[e]=l&&u?u(t):h(t)}return c[e]}},b64b:function(e,t,n){var i=n("23e7"),o=n("7b0b"),r=n("df75"),s=n("d039"),a=s((function(){r(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return r(o(e))}})},b674:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowHalf")}},[n("el-checkbox",{model:{value:e.optionModel.allowHalf,callback:function(t){e.$set(e.optionModel,"allowHalf",t)},expression:"optionModel.allowHalf"}})],1)},o=[],r=n("79fa"),s={name:"allowHalf-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"095277bf",null);t["default"]=c.exports},b6b7:function(e,t,n){var i=n("ebb5"),o=n("4840"),r=i.TYPED_ARRAY_CONSTRUCTOR,s=i.aTypedArrayConstructor;e.exports=function(e){return s(o(e,e[r]))}},b6b9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showBlankRow")}},[n("el-checkbox",{model:{value:e.optionModel.showBlankRow,callback:function(t){e.$set(e.optionModel,"showBlankRow",t)},expression:"optionModel.showBlankRow"}})],1)},o=[],r=n("79fa"),s={name:"showBlankRow-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"e539d616",null);t["default"]=c.exports},b727:function(e,t,n){var i=n("0366"),o=n("e330"),r=n("44ad"),s=n("7b0b"),a=n("07fa"),l=n("65f0"),c=o([].push),d=function(e){var t=1==e,n=2==e,o=3==e,d=4==e,u=6==e,h=7==e,f=5==e||u;return function(p,g,m,b){for(var v,w,y=s(p),x=r(y),_=i(g,m),C=a(x),S=0,k=b||l,M=t?k(p,C):n||h?k(p,0):void 0;C>S;S++)if((f||S in x)&&(v=x[S],w=_(v,S,y),e))if(t)M[S]=w;else if(w)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(M,v)}else switch(e){case 4:return!1;case 7:c(M,v)}return u?-1:o||d?d:M}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},b76a:function(e,t,n){(function(e){var i,o,r,s=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("944a"),n("0c47"),n("23dc"),n("ddb0"),n("b0c0"),n("fb6a"),n("2c3e"),n("b64b"),n("ac1f"),n("5319"),n("1276"),n("4d63"),n("c607"),n("25f0"),n("a15b"),n("3410"),n("159b"),n("99af"),n("2ca0"),n("466d"),n("d28b"),n("3ca3"),n("a630"),n("00b4"),n("d81d"),n("4de4"),n("caad"),n("a434"),function(a,l){"object"===s(t)&&"object"===s(e)?e.exports=l(n("aa47")):(o=[n("aa47")],i=l,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r))}("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===s(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),l=n("41a0"),c=n("7f20"),d=n("38fd"),u=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,b,v,w,y){l(n,t,b);var x,_,C,S=function(e){if(!h&&e in $)return $[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",M=v==g,E=!1,$=e.prototype,L=$[u]||$[f]||v&&$[v],O=L||S(v),T=v?M?S("entries"):O:void 0,R="Array"==t&&$.entries||L;if(R&&(C=d(R.call(new e)),C!==Object.prototype&&C.next&&(c(C,k,!0),i||"function"==typeof C[u]||s(C,u,m))),M&&L&&L.name!==g&&(E=!0,O=function(){return L.call(this)}),i&&!y||!h&&!E&&$[u]||s($,u,O),a[t]=O,a[k]=m,v)if(x={values:M?O:S(g),keys:w?O:S(p),entries:T},y)for(_ in x)_ in $||r($,_,x[_]);else o(o.P+o.F*(h||E),t,x);return x}},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(r=a.charCodeAt(l),r<55296||r>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):r:e?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},1495:function(e,t,n){var i=n("86cc"),o=n("cb7c"),r=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,s=r(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),l=n("520a"),c=a("species"),d=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),f=!r((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!d||"split"===e&&!u){var g=/./[h],m=n(s,h,""[e],(function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),b=m[0],v=m[1];i(String.prototype,e,b),o(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),o=n("32e9"),r=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),l="toString",c=(""+a).split(l);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(r(n,s)||o(n,s,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),o=n("1495"),r=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=r.length,o="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,s="function"==typeof r,a=e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))};a.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),o=n("d2c8"),r="includes";i(i.P+i.F*n("5147")(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),o=n("4630"),r=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(e){return o(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(o){}}return!0}},"520a":function(e,t,n){"use strict";var i=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e[a]||0!==t[a]}(),c=void 0!==/()??/.exec("")[1],d=l||c;d&&(s=function(e){var t,n,s,d,u=this;return c&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),l&&(t=u[a]),s=o.call(u,e),l&&s&&(u[a]=u.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],n,(function(){for(d=1;d<arguments.length-2;d++)void 0===arguments[d]&&(s[d]=void 0)})),s}),e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),o=n("7726"),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),o=n("8378"),r=n("32e9"),s=n("2aba"),a=n("9b43"),l="prototype",c=function e(t,n,c){var d,u,h,f,p=t&e.F,g=t&e.G,m=t&e.S,b=t&e.P,v=t&e.B,w=g?i:m?i[n]||(i[n]={}):(i[n]||{})[l],y=g?o:o[n]||(o[n]={}),x=y[l]||(y[l]={});for(d in g&&(c=n),c)u=!p&&w&&void 0!==w[d],h=(u?w:c)[d],f=v&&u?a(h,i):b&&"function"==typeof h?a(Function.call,h):h,w&&s(w,d,h,t&e.U),y[d]!=h&&r(y,d,f),b&&x[d]!=h&&(x[d]=h)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),o=n("8378"),r=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==s(r))throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return i[e]||(i[e]=o(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),o=n("c366")(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),o=n("be13");e.exports=function(e){return i(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),o=n("2621"),r=n("52a7"),s=n("4bf8"),a=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){var n=s(e),l=arguments.length,c=1,d=o.f,u=r.f;while(l>c){var h,f=a(arguments[c++]),p=d?i(f).concat(d(f)):i(f),g=p.length,m=0;while(g>m)u.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.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(e,t,n){var i=n("4588"),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),o=n("c69a"),r=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[i]&&n("32e9")(o,i,{}),e.exports=function(e){o[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),o=n("4bf8"),r=n("9def"),s=n("4588"),a=n("0390"),l=n("5f1b"),c=Math.max,d=Math.min,u=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,o){var r=e(this),s=void 0==i?void 0:i[t];return void 0!==s?s.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=g(n,e,this,t);if(o.done)return o.value;var u=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var b=u.global;if(b){var v=u.unicode;u.lastIndex=0}var w=[];while(1){var y=l(u,h);if(null===y)break;if(w.push(y),!b)break;var x=String(y[0]);""===x&&(u.lastIndex=a(h,r(u.lastIndex),v))}for(var _="",C=0,S=0;S<w.length;S++){y=w[S];for(var k=String(y[0]),M=c(d(s(y.index),h.length),0),E=[],$=1;$<y.length;$++)E.push(p(y[$]));var L=y.groups;if(f){var O=[k].concat(E,M,h);void 0!==L&&O.push(L);var T=String(t.apply(void 0,O))}else T=m(k,h,M,E,L,t);M>=C&&(_+=h.slice(C,M)+T,C=M+k.length)}return _+h.slice(C)}];function m(e,t,i,r,s,a){var l=i+e.length,c=r.length,d=f;return void 0!==s&&(s=o(s),d=h),n.call(a,d,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var d=+o;if(0===d)return n;if(d>c){var h=u(d/10);return 0===h?n:h<=c?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):n}a=r[d-1]}return void 0===a?"":a}))}}))},aae3:function(e,t,n){var i=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),o=n("0d58"),r=n("2aba"),s=n("7726"),a=n("32e9"),l=n("84f2"),c=n("2b4c"),d=c("iterator"),u=c("toStringTag"),h=l.Array,f={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},p=o(f),g=0;g<p.length;g++){var m,b=p[g],v=f[b],w=s[b],y=w&&w.prototype;if(y&&(y[d]||a(y,d,h),y[u]||a(y,u,b),l[b]=h,v))for(m in i)y[m]||r(y,m,i[m],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),o=n("9def"),r=n("77f1");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=o(l.length),d=r(s,c);if(e&&n!=n){while(c>d)if(a=l[d++],a!=a)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l}));n("a481");function i(){return"undefined"!==typeof window?window.console:e.console}var o=i();function r(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var s=/-(\w)/g,a=r((function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===("undefined"===typeof window?"undefined":s(window))&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),o=n("d53b"),r=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),o=n("6821"),r=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~r(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),o=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===s(e)?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),o=n("9def"),r=n("d2c8"),s="startsWith",a=""[s];i(i.P+i.F*n("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(e){if(Array.isArray(e))return e}function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){o=!0,r=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(o)throw r}}return n}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function l(){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 c(e,t){return o(e)||r(e,t)||a(e,t)||l()}n("6762"),n("2fdb");function d(e){if(Array.isArray(e))return s(e)}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return d(e)||u(e)||a(e)||h()}var p=n("a352"),g=n.n(p),m=n("c649");function b(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function v(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function w(e,t,n,i){if(!e)return[];var o=e.map((function(e){return e.elm})),r=t.length-i,s=f(t).map((function(e,t){return t>=r?o.length:o.indexOf(e)}));return n?s.filter((function(e){return-1!==e})):s}function y(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function x(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),y.call(t,e,n)}}function _(e){return["transition-group","TransitionGroup"].includes(e)}function C(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&_(n.tag)}function S(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function k(e,t,n){var i=0,o=0,r=S(t,n,"header");r&&(i=r.length,e=e?[].concat(f(r),f(e)):f(r));var s=S(t,n,"footer");return s&&(o=s.length,e=e?[].concat(f(e),f(s)):f(s)),{children:e,headerOffset:i,footerOffset:o}}function M(e,t){var n=null,i=function(e,t){n=b(n,e,t)},o=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(i("attrs",o),!t)return n;var r=t.on,s=t.props,a=t.attrs;return i("on",r),i("props",s),Object.assign(n.attrs,a),n}var E=["Start","Add","Remove","Update","End"],$=["Choose","Unchoose","Sort","Filter","Clone"],L=["Move"].concat(E,$).map((function(e){return"on"+e})),O=null,T={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(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},R={name:"draggable",inheritAttrs:!1,props:T,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=C(t);var n=k(t,this.$slots,this.$scopedSlots),i=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var s=M(this.$attrs,this.componentData);return e(this.getTag(),s,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["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&&m["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 e=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 t={};E.forEach((function(n){t["on"+n]=x.call(e,n)})),$.forEach((function(n){t["on"+n]=y.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m["a"])(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),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(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m["a"])(t);-1===L.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=w(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=v(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&_(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var o=i.realList,r={list:o,component:i};if(t!==n&&o&&i.getUnderlyingVm){var s=i.getUnderlyingVm(n);if(s)return Object.assign(s,r)}return r},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),O=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(m["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(m["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m["d"])(e.clone)},onDragUpdate:function(e){Object(m["d"])(e.item),Object(m["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=n.indexOf(t.related),o=e.component.getVmIndex(i),r=-1!==n.indexOf(O);return r||!t.willInsertAfter?o:o+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),o=this.context,r=this.computeFutureIndex(i,e);Object.assign(o,{futureIndex:r});var s=Object.assign({},e,{relatedContext:i,draggedContext:o});return n(s,t)},onDragEnd:function(){this.computeIndexes(),O=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",R);var A=R;t["default"]=A}})["default"]}))}).call(this,n("62e4")(e))},b811:function(e,t,n){},b87d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-radio-group",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,size:e.field.options.size},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.buttonStyle?e._l(e.field.options.optionItems,(function(t,i){return n("el-radio-button",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])})):e._l(e.field.options.optionItems,(function(t,i){return n("el-radio",{key:i,style:{display:e.field.options.displayStyle},attrs:{label:t.value,disabled:t.disabled,border:e.field.options.border}},[e._v(e._s(t.label))])}))],2)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"radio-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("82c5"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"fc1485ae",null);t["default"]=f.exports},b8d7:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-select-field",use:"icon-select-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-select-field"><defs><style type="text/css"></style></defs><path d="M374.784 649.514667a32 32 0 0 1 3.072 41.685333l-3.114667 3.584L225.28 843.946667a32 32 0 0 1-37.845333 5.504l-3.968-2.56-85.333334-64a32 32 0 0 1 34.432-53.76l3.968 2.56 63.146667 47.36 129.834667-129.621334a32 32 0 0 1 45.269333 0.042667zM906.154667 725.333333a32 32 0 0 1 4.309333 63.701334l-4.309333 0.298666h-448a32 32 0 0 1-4.352-63.744l4.352-0.256h448z m0.512-256a32 32 0 0 1 4.352 63.701334l-4.352 0.298666h-448a32 32 0 0 1-4.352-63.701333L458.666667 469.333333h448zM374.826667 137.557333a32 32 0 0 1 2.986666 41.685334l-3.114666 3.584L224.853333 332.032a32 32 0 0 1-37.888 5.418667l-3.925333-2.56-84.906667-64a32 32 0 0 1 34.517334-53.674667l3.968 2.56 62.72 47.274667 130.261333-129.578667a32 32 0 0 1 45.226667 0.085333z m531.328 75.818667a32 32 0 0 1 4.309333 63.701333l-4.309333 0.298667H459.349333a32 32 0 0 1-4.352-63.744l4.352-0.256h446.805334z" p-id="40341" /></symbol>'});s.a.add(a);t["default"]=a},b90a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onCreated","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onCreated",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onCreated-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:[]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"20e467a8",null);t["default"]=d.exports},b96c:function(e,t,n){},ba08:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endDatePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"date-range-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("51b5"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"6f34e2d8",null);t["default"]=f.exports},bae2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})},o=[],r=n("79fa"),s=n("b2bf"),a={name:"color-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"2e181c84",null);t["default"]=d.exports},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc16:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.buttonIcon")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.icon,callback:function(t){e.$set(e.optionModel,"icon",t)},expression:"optionModel.icon"}})],1)},o=[],r=n("79fa"),s={name:"icon-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4b90cd5a",null);t["default"]=c.exports},bc3a:function(e,t,n){e.exports=n("cee4")},bc78:function(e,t,n){"use strict";n("4c3f")},be4f:function(e,t,n){},c029:function(e,t,n){"use strict";n("d81d"),n("d3b7"),n("ddb0"),n("b0c0");var i=n("7899"),o={};i.keys().map((function(e){var t=i(e).default;o[t.name]=t})),t["a"]=o},c04e:function(e,t,n){var i=n("da84"),o=n("c65b"),r=n("861d"),s=n("d9b5"),a=n("dc4a"),l=n("485a"),c=n("b622"),d=i.TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!r(e)||s(e))return e;var n,i=a(e,u);if(i){if(void 0===t&&(t="default"),n=o(i,e,t),!r(n)||s(n))return n;throw d("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},c061:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.noLabelSetting?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.label")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.label,callback:function(t){e.$set(e.optionModel,"label",t)},expression:"optionModel.label"}})],1)},o=[],r=n("79fa"),s={name:"label-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{noLabelSetting:function(){return"static-text"===this.selectedWidget.type||"html-text"===this.selectedWidget.type}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5d9d81e5",null);t["default"]=c.exports},c077:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-cascader",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{options:e.field.options.optionItems,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,filterable:e.field.options.filterable,placeholder:e.field.options.placeholder||e.i18nt("render.hint.selectPlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"cascader-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("7362"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"fe7b88a0",null);t["default"]=f.exports},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").filter,r=n("1448"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("filter",(function(e){var t=o(s(this),e,arguments.length>1?arguments[1]:void 0);return r(this,t)}))},c1b2:function(e,t,n){},c345:function(e,t,n){"use strict";var i=n("c532"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,r,s={};return e?(i.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=i.trim(e.substr(0,r)).toLowerCase(),n=i.trim(e.substr(r+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c372:function(e,t,n){},c3f1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.responsive")}},[n("el-checkbox",{model:{value:e.optionModel.responsive,callback:function(t){e.$set(e.optionModel,"responsive",t)},expression:"optionModel.responsive"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-responsive-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"80a826a4",null);t["default"]=c.exports},c3f8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowInsert","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowInsert",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowInsert-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ae0fbd12",null);t["default"]=d.exports},c401:function(e,t,n){"use strict";var i=n("c532"),o=n("2444");e.exports=function(e,t,n){var r=this||o;return i.forEach(n,(function(n){e=n.call(r,e,t)})),e}},c430:function(e,t){e.exports=!1},c50a:function(e,t,n){"use strict";n("107a")},c532:function(e,t,n){"use strict";var i=n("1d2b"),o=Object.prototype.toString;function r(e){return"[object Array]"===o.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function d(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function b(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function w(e){return f(e)&&v(e.pipe)}function y(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):r(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)C(arguments[n],t);return e}function k(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?i(t,n):t})),e}function M(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:r,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:d,isString:u,isNumber:h,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:b,isFunction:v,isStream:w,isURLSearchParams:y,isStandardBrowserEnv:_,forEach:C,merge:S,extend:k,trim:x,stripBOM:M}},c607:function(e,t,n){var i=n("da84"),o=n("83ab"),r=n("fce3"),s=n("c6b6"),a=n("9bf2").f,l=n("69f3").get,c=RegExp.prototype,d=i.TypeError;o&&r&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).dotAll;throw d("Incompatible receiver, RegExp required")}}})},c610:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[e.hasConfig("optionItems")?e._e():n("el-input",{attrs:{type:"text"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4eb3bbf7",null);t["default"]=d.exports},c65b:function(e,t){var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},c67a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowAdd","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowAdd",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowAdd-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","newRowId"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4e7e840d",null);t["default"]=d.exports},c6b4:function(e,t,n){"use strict";n("b5e8")},c6b6:function(e,t,n){var i=n("e330"),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},c6cd:function(e,t,n){var i=n("da84"),o=n("ce4e"),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},c6d2:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.startPlaceholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.startPlaceholder,callback:function(t){e.$set(e.optionModel,"startPlaceholder",t)},expression:"optionModel.startPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"startPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"10c0a37e",null);t["default"]=c.exports},c885:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-custom-component",use:"icon-custom-component-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-custom-component"><defs><style type="text/css"></style></defs><path d="M811.008 335.872c-2.048-7.168-11.264-9.216-17.408-4.096L690.176 435.2c-8.192 8.192-20.48 8.192-28.672 0l-72.704-72.704c-8.192-8.192-8.192-20.48 0-28.672l104.448-104.448c5.12-5.12 3.072-14.336-4.096-17.408-17.408-4.096-35.84-7.168-54.272-7.168-108.544 0-195.584 94.208-183.296 204.8 2.048 17.408 6.144 32.768 12.288 48.128L225.28 697.344c-27.648 27.648-27.648 73.728 0 101.376 14.336 14.336 32.768 21.504 51.2 21.504s36.864-7.168 51.2-21.504l238.592-238.592c15.36 6.144 31.744 10.24 48.128 12.288 111.616 12.288 204.8-74.752 204.8-183.296 0-18.432-3.072-36.864-8.192-53.248z" p-id="68660" /></symbol>'});s.a.add(a);t["default"]=a},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("5e77").PROPER,o=n("d039"),r=n("5899"),s="
";e.exports=function(e){return o((function(){return!!r[e]()||s[e]()!==s||i&&r[e].name!==e}))}},c9b8:function(e,t,n){},c9bb:function(e,t,n){"use strict";n("6623")},c9d4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"tab-container"},[n("el-tabs",{ref:e.widget.id,class:[e.customClass],attrs:{type:e.widget.displayType},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},e._l(e.visibleTabs,(function(t,i){return n("el-tab-pane",{key:i,attrs:{label:t.options.label,disabled:t.options.disabled,name:t.options.name}},[e._l(t.widgetList,(function(i,o){return["container"===i.category?[n(i.type+"-item",{key:o,tag:"component",attrs:{widget:i,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget}})]:[n(i.type+"-widget",{key:o,tag:"component",attrs:{field:i,"parent-list":t.widgetList,"index-of-parent-list":o,"parent-widget":e.widget}})]]}))],2)})),1)],1)])},o=[],r=n("5530"),s=(n("4de4"),n("d3b7"),n("b0c0"),n("d010")),a=n.n(s),l=n("79fa"),c=n("d67f"),d=n("90c2"),u=n("34f0"),h=n("c029"),f={name:"tab-item",componentName:"ContainerItem",mixins:[a.a,l["b"],c["a"],u["a"]],components:Object(r["a"])({ContainerItemWrapper:d["default"]},h["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data:function(){return{activeTabName:""}},computed:{visibleTabs:function(){return this.widget.tabs.filter((function(e){return!e.options.hidden}))}},created:function(){this.initRefList()},mounted:function(){this.initActiveTab()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{initActiveTab:function(){if("tab"===this.widget.type&&this.widget.tabs.length>0){var e=this.widget.tabs.filter((function(e){return!0===e.options.active}));e.length>0?this.activeTabName=e[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}},p=f,g=n("2877"),m=Object(g["a"])(p,i,o,!1,null,"bfca78a8",null);t["default"]=m.exports},ca00:function(e,t,n){"use strict";n.d(t,"j",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"o",(function(){return g})),n.d(t,"n",(function(){return m})),n.d(t,"m",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return w}));n("ac1f"),n("00b4"),n("e9c4"),n("d3b7"),n("159b"),n("b64b"),n("d81d"),n("841c"),n("1276");var i=n("b311"),o=n.n(i);function r(e){return null===e||void 0===e}function s(e){return null!==e&&void 0!==e}function a(e){return void 0===e||!e&&0!==e&&"0"!==e||!/[^\s]/.test(e)}var l=function(){return Math.floor(1e5*Math.random()+2e4*Math.random()+5e3*Math.random())},c=function(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))},d=function(e,t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},u=function(e){var t=window.onresize;"function"!=typeof window.onresize?window.onresize=e:window.onresize=function(){t(),e()}},h=function(e){var t=document.getElementsByTagName("head")[0],n=document.getElementById("vform-custom-css");n&&t.removeChild(n);var i=document.createElement("style");i.type="text/css",i.rel="stylesheet",i.id="vform-custom-css";try{i.appendChild(document.createTextNode(e))}catch(o){i.styleSheet.cssText=e}t.appendChild(i)},f=function(e){var t=document.getElementsByTagName("body")[0],n=document.getElementById("v_form_global_functions");n&&t.removeChild(n);var i=document.createElement("script");i.id="v_form_global_functions",i.type="text/javascript",i.innerHTML=e,t.appendChild(i)},p=function(e,t){var n=encodeURIComponent(e),i=document.getElementById(n);if(!i){var o=document.createElement("script");o.src=e,o.id=n,document.body.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}}};function g(e,t){e.map((function(e){e.formItemFlag?t(e):"grid"===e.type?e.cols.map((function(e){g(e.widgetList,t)})):"table"===e.type?e.rows.map((function(e){e.cols.map((function(e){g(e.widgetList,t)}))})):"tab"===e.type?e.tabs.map((function(e){g(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&g(e.widgetList,t)}))}function m(e,t){e.map((function(e){"container"===e.category&&t(e),"grid"===e.type?e.cols.map((function(e){m(e.widgetList,t)})):"table"===e.type?e.rows.map((function(e){e.cols.map((function(e){m(e.widgetList,t)}))})):"tab"===e.type?e.tabs.map((function(e){m(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&m(e.widgetList,t)}))}function b(e,t){e.map((function(e){t(e),"grid"===e.type?e.cols.map((function(e){t(e),b(e.widgetList,t)})):"table"===e.type?e.rows.map((function(e){e.cols.map((function(e){t(e),b(e.widgetList,t)}))})):"tab"===e.type?e.tabs.map((function(e){b(e.widgetList,t)})):("sub-form"===e.type||"container"===e.category)&&b(e.widgetList,t)}))}function v(e,t,n,i,r){var s=new o.a(t.target,{text:function(){return e}});s.on("success",(function(){n.success(i),s.destroy()})),s.on("error",(function(){n.error(r),s.destroy()})),s.onClick(t)}function w(e){for(var t=window.location.search.substring(1),n=t.split("&"),i=0;i<n.length;i++){var o=n[i].split("=");if(o[0]==e)return o[1]}}},ca84:function(e,t,n){var i=n("e330"),o=n("1a2d"),r=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,d=[];for(n in i)!o(a,n)&&o(i,n)&&l(d,n);while(t.length>c)o(i,n=t[c++])&&(~s(d,n)||l(d,n));return d}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),o=n("d58f").left,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("reduce",(function(e){var t=arguments.length;return o(r(this),e,t,t>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),o=n("4d64").includes,r=n("44d2");i({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},cab0:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-time-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{"is-range":"",disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||e.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||e.i18nt("render.hint.endTimePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"time-range-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("bc78"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"688b1da1",null);t["default"]=f.exports},cb48:function(e,t,n){},cbdd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.vertical")}},[n("el-checkbox",{model:{value:e.optionModel.vertical,callback:function(t){e.$set(e.optionModel,"vertical",t)},expression:"optionModel.vertical"}})],1)},o=[],r=n("79fa"),s={name:"vertical-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4db1e506",null);t["default"]=c.exports},cc12:function(e,t,n){var i=n("da84"),o=n("861d"),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},cc5f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"datetime",value:"datetime"}}),n("el-option",{attrs:{label:"date",value:"date"}}),n("el-option",{attrs:{label:"dates",value:"dates"}}),n("el-option",{attrs:{label:"year",value:"year"}}),n("el-option",{attrs:{label:"month",value:"month"}}),n("el-option",{attrs:{label:"week",value:"week"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"1eb20f34",null);t["default"]=c.exports},cc78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1)},o=[],r=n("79fa"),s=n("ca00"),a={name:"customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{cssClassList:[]}},created:function(){var e=this;this.cssClassList=Object(s["c"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",(function(t){e.cssClassList=t}))}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"18a2c67d",null);t["default"]=d.exports},ccc0:function(e,t,n){},cd26:function(e,t,n){"use strict";var i=n("ebb5"),o=i.aTypedArray,r=i.exportTypedArrayMethod,s=Math.floor;r("reverse",(function(){var e,t=this,n=o(t).length,i=s(n/2),r=0;while(r<i)e=t[r],t[r++]=t[--n],t[n]=e;return t}))},cd36:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container-wrapper",class:[e.customClass]},[e._t("default"),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():n("div",{staticClass:"container-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),"table"===e.widget.type?n("i",{staticClass:"iconfont icon-insertrow",attrs:{title:e.i18nt("designer.hint.insertRow")},on:{click:function(t){return t.stopPropagation(),e.insertTableRow(e.widget)}}}):e._e(),"table"===e.widget.type?n("i",{staticClass:"iconfont icon-insertcolumn",attrs:{title:e.i18nt("designer.hint.insertColumn")},on:{click:function(t){return t.stopPropagation(),e.insertTableCol(e.widget)}}}):e._e(),"grid"===e.widget.type||"table"===e.widget.type?n("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneContainer(e.widget)}}}):e._e(),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]),e.designer.selectedId!==e.widget.id||e.widget.internal?e._e():n("div",{staticClass:"drag-handler"},[n("i",{staticClass:"el-icon-rank",attrs:{title:e.i18nt("designer.hint.dragHandler")}}),n("i",[e._v(e._s(e.i18n2t("designer.widgetLabel."+e.widget.type,"extension.widgetLabel."+e.widget.type)))]),!0===e.widget.options.hidden?n("i",{staticClass:"iconfont icon-hide"}):e._e()])],2)},o=[],r=(n("a9e3"),n("a15b"),n("79fa")),s=n("61ca"),a={name:"container-wrapper",mixins:[r["b"],s["a"]],props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{customClass:function(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},l=a,c=(n("28f2"),n("2877")),d=Object(c["a"])(l,i,o,!1,null,"eeb0261c",null);t["default"]=d.exports},ce37:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPullTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.pull,callback:function(t){e.$set(e.optionModel,"pull",e._n(t))},expression:"optionModel.pull"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-pull-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"5a74fe7e",null);t["default"]=c.exports},ce4e:function(e,t,n){var i=n("da84"),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},ceaf:function(e,t,n){},cee4:function(e,t,n){"use strict";var i=n("c532"),o=n("1d2b"),r=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new r(e),n=o(r.prototype.request,t);return i.extend(n,r.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=r,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},cf32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input-number",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{disabled:e.field.options.disabled,size:e.field.options.size,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"number-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("1a2e"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"47a50f06",null);t["default"]=f.exports},d010:function(e,t,n){"use strict";function i(e,t,n){this.$children.forEach((function(o){var r=o.$options.componentName;r===e?o.$emit.apply(o,[t].concat(n)):i.apply(o,[e,t].concat([n]))}))}n("d3b7"),n("159b"),n("99af"),t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var i=this.$parent||this.$root,o=i.$options.componentName;while(i&&(!o||o!==e))i=i.$parent,i&&(o=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,n){i.call(this,e,t,n)}}}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),o=n("1626"),r=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},d119:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-file-upload-field",use:"icon-file-upload-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-file-upload-field"><defs><style type="text/css"></style></defs><path d="M676.48 72.96l209.92 211.2 9.6 23.04v620.8l-32 32h-704l-32-32v-832l32-32h494.08l22.4 8.96zM640 320h192l-192-192v192zM192 128v768h640V384H608L576 352V128H192z m512 320H320v64h384V448zM320 576h384v64H320V576z m384 128H320v64h384v-64z" p-id="65361" /></symbol>'});s.a.add(a);t["default"]=a},d139:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").find,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("find",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d1de:function(e,t,n){},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("e330"),o=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d2d9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.optionModel.customClass,callback:function(t){e.$set(e.optionModel,"customClass",t)},expression:"optionModel.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.tabPaneSetting")}}),n("el-form-item",{staticClass:"panes-setting",attrs:{"label-width":"0"}},[n("draggable",e._b({attrs:{tag:"ul",list:e.selectedWidget.tabs}},"draggable",{group:"panesGroup",ghostClass:"ghost",handle:".drag-option"},!1),[e._l(e.selectedWidget.tabs,(function(t,i){return n("li",{key:i,staticClass:"col-item"},[n("el-checkbox",{staticStyle:{"margin-right":"8px"},attrs:{disabled:""},on:{change:function(n){return e.onTabPaneActiveChange(n,t)}},model:{value:t.options.active,callback:function(n){e.$set(t.options,"active",n)},expression:"tpItem.options.active"}},[e._v(e._s(e.i18nt("designer.setting.paneActive")))]),n("el-input",{staticStyle:{width:"155px"},attrs:{type:"text"},model:{value:t.options.label,callback:function(n){e.$set(t.options,"label",n)},expression:"tpItem.options.label"}}),n("i",{staticClass:"iconfont icon-drag drag-option"}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteTabPane(e.selectedWidget,i)}}})],1)})),n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addTabPane(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addTabPane")))])],1)],2)],1)],1)},o=[],r=n("79fa"),s=n("b76a"),a=n.n(s),l=n("ca00"),c={name:"tab-customClass-editor",componentName:"PropertyEditor",mixins:[r["b"]],components:{Draggable:a.a},props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{cssClassList:[]}},created:function(){var e=this;this.cssClassList=Object(l["c"])(this.designer.getCssClassList()),this.designer.handleEvent("form-css-updated",(function(t){e.cssClassList=t}))},methods:{onTabPaneActiveChange:function(e,t){},addTabPane:function(e){this.designer.addTabPaneOfTabs(e),this.designer.emitHistoryChange()},deleteTabPane:function(e,t){1!==e.tabs.length?(this.designer.deleteTabPaneOfTabs(e,t),this.designer.emitHistoryChange()):this.$message.info(this.i18nt("designer.hint.lastPaneCannotBeDeleted"))}}},d=c,u=(n("fe05"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"6ddd24c1",null);t["default"]=h.exports},d2e4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-textarea-field",use:"icon-textarea-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-textarea-field"><defs><style type="text/css"></style></defs><path d="M896.4 173.1H128.9c-35.2 0-49 13.8-49 49v575.6c0 35.2 13.8 49 49 49h767.5c35.2 0 49-13.8 49-49V222.1c0-35.2-13.8-49-49-49z m0 592.6c0 16-12.8 32-32 32H160.9c-19.2 0-32-12.8-32-32V254.1c0-16 12.8-32 32-32h703.5c19.2 0 32 12.8 32 32v511.6z" p-id="12940" /><path d="M710.2 766.7h141.5c8.1 0 14.7-6.6 14.7-14.7V610.4c0-1.3-1.6-2-2.6-1.1L709.1 764.1c-1 1-0.3 2.6 1.1 2.6zM207.2 594.3h-13.5c-10 0-18.2-8.2-18.2-18.2V291.8c0-10.2 8.4-18.6 18.6-18.6h12.8c10.2 0 18.6 8.4 18.6 18.6v284.3c-0.1 10-8.3 18.2-18.3 18.2z" p-id="12941" /></symbol>'});s.a.add(a);t["default"]=a},d3b7:function(e,t,n){var i=n("00ee"),o=n("6eeb"),r=n("b041");i||o(Object.prototype,"toString",r,{unsafe:!0})},d3eb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.showStops")}},[n("el-checkbox",{model:{value:e.optionModel.showStops,callback:function(t){e.$set(e.optionModel,"showStops",t)},expression:"optionModel.showStops"}})],1)},o=[],r=n("79fa"),s={name:"showStops-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6e0ab270",null);t["default"]=c.exports},d44e:function(e,t,n){var i=n("9bf2").f,o=n("1a2d"),r=n("b622"),s=r("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,s)&&i(e,s,{configurable:!0,value:t})}},d53b:function(e,t,n){"use strict";n("f6f1")},d58f:function(e,t,n){var i=n("da84"),o=n("59ed"),r=n("7b0b"),s=n("44ad"),a=n("07fa"),l=i.TypeError,c=function(e){return function(t,n,i,c){o(n);var d=r(t),u=s(d),h=a(d),f=e?h-1:0,p=e?-1:1;if(i<2)while(1){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw l("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in u&&(c=n(c,u[f],f,d));return c}};e.exports={left:c(!1),right:c(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").forEach,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("forEach",(function(e){o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d67b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-input",{ref:"fieldEditor",staticClass:"hide-spin-button",attrs:{disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:e.field.options.size,type:e.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,input:e.handleInputCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}},[e.field.options.appendButton?n("el-button",{class:e.field.options.buttonIcon,attrs:{slot:"append",disabled:e.field.options.disabled||e.field.options.appendButtonDisabled},nativeOn:{click:function(t){return e.emitAppendButtonClick.apply(null,arguments)}},slot:"append"}):e._e()],1)],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"input-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType:function(){return"number"===this.field.options.type?"text":this.field.options.type}},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("9cf5"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"54b7026c",null);t["default"]=f.exports},d67f:function(e,t,n){"use strict";n("b0c0");t["a"]={methods:{initRefList:function(){null!==this.refList&&this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef:function(e,t){var n=this.refList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},getFormRef:function(){return this.refList["v_form_ref"]}}}},d741:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.withCredentials")}},[n("el-checkbox",{model:{value:e.optionModel.withCredentials,callback:function(t){e.$set(e.optionModel,"withCredentials",t)},expression:"optionModel.withCredentials"}})],1)},o=[],r=n("79fa"),s={name:"withCredentials-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"54750905",null);t["default"]=c.exports},d773:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onSubFormRowDelete","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onSubFormRowDelete",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onSubFormRowDelete-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["subFormData","deletedDataRow"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"1a13f95e",null);t["default"]=d.exports},d784:function(e,t,n){"use strict";n("ac1f");var i=n("e330"),o=n("6eeb"),r=n("9263"),s=n("d039"),a=n("b622"),l=n("9112"),c=a("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var h=a(e),f=!s((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=i(/./[h]),m=t(h,""[e],(function(e,t,n,o,s){var a=i(e),l=t.exec;return l===r||l===d.exec?f&&!s?{done:!0,value:g(t,n,o)}:{done:!0,value:a(n,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(d,h,m[1])}u&&l(d[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").map,r=n("1dde"),s=r("map");i({target:"Array",proto:!0,forced:!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d8c4:function(e,t,n){},d8ec:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-grid",use:"icon-grid-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-grid"><defs><style type="text/css"></style></defs><path d="M819.3536 921.6h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4v-102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4v-102.4a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V460.8h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4z m614.4-153.6h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z m-460.8 204.8h102.4V102.4h-102.4v102.4z m102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4a102.4 102.4 0 0 0-102.4-102.4z" p-id="8473" /></symbol>'});s.a.add(a);t["default"]=a},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d998:function(e,t,n){var i=n("342f");e.exports=/MSIE|Trident/.test(i)},d9b5:function(e,t,n){var i=n("da84"),o=n("d066"),r=n("1626"),s=n("3a9b"),a=n("fdbf"),l=i.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&s(t.prototype,l(e))}},da4e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-date-picker",{ref:"fieldEditor",staticClass:"full-width-input",attrs:{type:e.field.options.type,readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:e.field.options.size,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||e.i18nt("render.hint.datePlaceholder")},on:{focus:e.handleFocusCustomEvent,blur:e.handleBlurCustomEvent,change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"date-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("4df6"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"36cb98c2",null);t["default"]=f.exports},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dac5:function(e,t,n){e.exports=n.p+"img/t3.49724600.png"},db07:function(e,t,n){e.exports=n.p+"img/t4.4acb1808.png"},db13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-sub-form",use:"icon-sub-form-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-sub-form"><defs><style type="text/css"></style></defs><path d="M512 106.666667H112a5.333333 5.333333 0 0 0-5.333333 5.333333v800a5.333333 5.333333 0 0 0 5.333333 5.333333h800a5.333333 5.333333 0 0 0 5.333333-5.333333V112a5.333333 5.333333 0 0 0-5.333333-5.333333z m0 74.666666h325.333333a5.333333 5.333333 0 0 1 5.333334 5.333334v160a5.333333 5.333333 0 0 1-5.333334 5.333333H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333333V186.666667a5.333333 5.333333 0 0 1 5.333334-5.333334z m85.333333 250.666667v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H432a5.333333 5.333333 0 0 1-5.333333-5.333334V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333z m-410.666666-5.333333h160a5.333333 5.333333 0 0 1 5.333333 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333333 5.333334H186.666667a5.333333 5.333333 0 0 1-5.333334-5.333334V432a5.333333 5.333333 0 0 1 5.333334-5.333333z m485.333333 410.666666V432a5.333333 5.333333 0 0 1 5.333333-5.333333h160a5.333333 5.333333 0 0 1 5.333334 5.333333v405.333333a5.333333 5.333333 0 0 1-5.333334 5.333334h-160a5.333333 5.333333 0 0 1-5.333333-5.333334z" p-id="97355" /></symbol>'});s.a.add(a);t["default"]=a},dbb4:function(e,t,n){var i=n("23e7"),o=n("83ab"),r=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,i=s(e),o=a.f,c=r(i),d={},u=0;while(c.length>u)n=o(i,t=c[u++]),void 0!==n&&l(d,t,n);return d}})},dc4a:function(e,t,n){var i=n("59ed");e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},dca8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.appendButtonDisabled")}},[n("el-checkbox",{model:{value:e.optionModel.appendButtonDisabled,callback:function(t){e.$set(e.optionModel,"appendButtonDisabled",t)},expression:"optionModel.appendButtonDisabled"}})],1)},o=[],r=n("79fa"),s={name:"appendButtonDisabled-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"900a6f1a",null);t["default"]=c.exports},dd48:function(e,t,n){"use strict";n("3558")},ddb0:function(e,t,n){var i=n("da84"),o=n("fdbc"),r=n("785a"),s=n("e260"),a=n("9112"),l=n("b622"),c=l("iterator"),d=l("toStringTag"),u=s.values,h=function(e,t){if(e){if(e[c]!==u)try{a(e,c,u)}catch(i){e[c]=u}if(e[d]||a(e,d,t),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(i){e[n]=s[n]}}};for(var f in o)h(i[f]&&i[f].prototype,f);h(r,"DOMTokenList")},de19:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-divider",{ref:"fieldEditor",attrs:{direction:"horizontal","content-position":e.field.options.contentPosition}},[e._v(" "+e._s(e.field.options.label))])],1)},o=[],r=(n("a9e3"),n("828b")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"divider-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:r["default"]},computed:{},beforeCreate:function(){},created:function(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("1c48"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"7581f4b6",null);t["default"]=f.exports},de5f:function(e,t,n){},df12:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.htmlContent")}},[n("el-input",{model:{value:e.optionModel.htmlContent,callback:function(t){e.$set(e.optionModel,"htmlContent",t)},expression:"optionModel.htmlContent"}})],1)},o=[],r=n("79fa"),s={name:"htmlContent-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d4d17cc8",null);t["default"]=c.exports},df75:function(e,t,n){var i=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return i(e,o)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var o=e[i];"."===o?e.splice(i,1):".."===o?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===i&&(o=!1,i=t+1);return-1===i?"":e.slice(n,i)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,r=arguments.length-1;r>=-1&&!i;r--){var s=r>=0?arguments[r]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===r(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=i(e.split("/")),r=i(n.split("/")),s=Math.min(o.length,r.length),a=s,l=0;l<s;l++)if(o[l]!==r[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),47===t){if(!o){i=r;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(o=!1,i=s+1),46===a?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df90:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.endPlaceholder")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.endPlaceholder,callback:function(t){e.$set(e.optionModel,"endPlaceholder",t)},expression:"optionModel.endPlaceholder"}})],1)},o=[],r=n("79fa"),s={name:"endPlaceholder-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"373a69c1",null);t["default"]=c.exports},dfb9:function(e,t){e.exports=function(e,t){var n=0,i=t.length,o=new e(i);while(i>n)o[n]=t[n++];return o}},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=i((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var o=i&&!0===i.clone;return o&&e(n)?r(t(n),n,i):n}function i(t,i,o){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,o):e(i)?s[a]=r(t[a],i,o):-1===t.indexOf(i)&&s.push(n(i,o))})),s}function o(t,i,o){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],o)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=r(t[a],i[a],o):s[a]=n(i[a],o)})),s}function r(e,t,r){var s=Array.isArray(t),a=r||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,r):n(t,r):o(e,t,r)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}))})),r=i((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=r.svg,l=r.xlink,c={};c[a.name]=a.uri,c[l.name]=l.uri;var d=function(e,t){void 0===e&&(e="");var n=o(c,t||{}),i=s(n);return"<svg "+i+">"+e+"</svg>"},u=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(d(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e);return u}))}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var i=n("23e7"),o=n("83ab"),r=n("da84"),s=n("e330"),a=n("1a2d"),l=n("1626"),c=n("3a9b"),d=n("577e"),u=n("9bf2").f,h=n("e893"),f=r.Symbol,p=f&&f.prototype;if(o&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var b="Symbol(test)"==String(f("test")),v=s(p.toString),w=s(p.valueOf),y=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),_=s("".slice);u(p,"description",{configurable:!0,get:function(){var e=w(this),t=v(e);if(a(g,e))return"";var n=b?_(t,7,-1):x(t,y,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:m})}},e072:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onValidate","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onValidate",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onValidate-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["rule","value","callback"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"4509c6b4",null);t["default"]=d.exports},e090:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxLength")}},[n("el-input",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{type:"number",min:"1"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.maxLength,callback:function(t){e.maxLength=t},expression:"maxLength"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("b2bf"),a={name:"maxLength-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxLength:{get:function(){return this.optionModel["maxLength"]},set:function(e){!e||isNaN(e)?this.optionModel.maxLength=null:this.optionModel.maxLength=Number(e)}}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"361e66e1",null);t["default"]=d.exports},e0b7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.defaultValue")}},[n("el-switch",{attrs:{"active-text":"true","inactive-text":"false"},on:{change:e.emitDefaultValueChange},model:{value:e.optionModel.defaultValue,callback:function(t){e.$set(e.optionModel,"defaultValue",t)},expression:"optionModel.defaultValue"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"switch-defaultValue-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"98bc90ba",null);t["default"]=d.exports},e11b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-row",{key:e.widget.id,staticClass:"grid-container",class:[e.selected?"selected":"",e.customClass],attrs:{gutter:e.widget.options.gutter},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[e._l(e.widget.cols,(function(t,i){return[n("grid-col-widget",{key:t.id,attrs:{widget:t,designer:e.designer,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight}})]}))],2)],1)},o=[],r=(n("a9e3"),n("79fa")),s=n("f7729"),a=n("61ca"),l=n("cd36"),c={name:"grid-widget",componentName:"ContainerWidget",mixins:[r["b"],a["a"]],components:{ContainerWrapper:l["default"],GridColWidget:s["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},mounted:function(){},methods:{}},d=c,u=(n("7592"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"0efec72a",null);t["default"]=h.exports},e163:function(e,t,n){var i=n("da84"),o=n("1a2d"),r=n("1626"),s=n("7b0b"),a=n("f772"),l=n("e177"),c=a("IE_PROTO"),d=i.Object,u=d.prototype;e.exports=l?d.getPrototypeOf:function(e){var t=s(e);if(o(t,c))return t[c];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof d?u:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var i=n("fc6a"),o=n("44d2"),r=n("3f8c"),s=n("69f3"),a=n("7dd0"),l="Array Iterator",c=s.set,d=s.getterFor(l);e.exports=a(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},e330:function(e,t){var n=Function.prototype,i=n.bind,o=n.call,r=i&&i.bind(o);e.exports=i?function(e){return e&&r(o,e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},e439:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=o((function(){s(1)})),c=!a||l;i({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(r(e),t)}})},e447:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.columnSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.gutter")}},[n("el-input-number",{staticStyle:{width:"100%"},model:{value:e.optionModel.gutter,callback:function(t){e.$set(e.optionModel,"gutter",t)},expression:"optionModel.gutter"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colsOfGrid")}}),n("el-form-item",{attrs:{"label-width":"0"}},[e._l(e.selectedWidget.cols,(function(t,i){return n("li",{key:i,staticClass:"col-item"},[n("span",{staticClass:"col-span-title"},[e._v(e._s(e.i18nt("designer.setting.colSpanTitle"))+e._s(i+1))]),n("el-input-number",{staticClass:"cell-span-input",attrs:{min:1,max:24},on:{change:function(n,o){return e.spanChanged(e.selectedWidget,t,i,n,o)}},model:{value:t.options.span,callback:function(n){e.$set(t.options,"span",e._n(n))},expression:"colItem.options.span"}}),n("el-button",{staticClass:"col-delete-button",attrs:{circle:"",plain:"",size:"mini",type:"danger",icon:"el-icon-minus"},on:{click:function(t){return e.deleteCol(e.selectedWidget,i)}}})],1)})),n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.addNewCol(e.selectedWidget)}}},[e._v(e._s(e.i18nt("designer.setting.addColumn")))])],1)],2)],1)},o=[],r=(n("d3b7"),n("159b"),n("79fa")),s={name:"gutter-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},methods:{spanChanged:function(e){var t=0;e.cols.forEach((function(e){t+=e.options.span})),t>24&&console.log("列栅格之和超出24"),this.designer.saveCurrentHistoryStep()},deleteCol:function(e,t){this.designer.deleteColOfGrid(e,t),this.designer.emitHistoryChange()},addNewCol:function(e){this.designer.addNewColOfGrid(e),this.designer.emitHistoryChange()}}},a=s,l=(n("2445"),n("2877")),c=Object(l["a"])(a,i,o,!1,null,"ebfa1f06",null);t["default"]=c.exports},e486:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-node-tree",use:"icon-node-tree-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-node-tree"><defs><style type="text/css"></style></defs><path d="M332.48 500.864a25.6 25.6 0 1 0 0-51.2H192.384v-184.96a115.2 115.2 0 0 0 89.6-112.128c0-63.488-51.712-115.2-115.2-115.2s-115.2 51.712-115.2 115.2a115.2 115.2 0 0 0 89.6 112.128v696.192a25.6 25.6 0 1 0 51.2 0v-141.12c2.304 0.192 4.48 0.512 6.912 0.512h133.184a25.6 25.6 0 1 0 0-51.2H199.296c-3.456 0-5.504-0.448-6.08-0.256a29.184 29.184 0 0 1-0.896-8.576V500.8h140.16zM102.784 152.64c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64-64-28.736-64-64zM921.216 360.064h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4zM921.216 679.616h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2z m-486.336 179.2v-128h486.4v128h-486.4z" p-id="4876" /></symbol>'});s.a.add(a);t["default"]=a},e4d3:function(e,t,n){e.exports=n.p+"img/t1.21b2c158.png"},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("2ba4"),o=n("fc6a"),r=n("5926"),s=n("07fa"),a=n("a640"),l=Math.min,c=[].lastIndexOf,d=!!c&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),h=d||!u;e.exports=h?function(e){if(d)return i(c,this,arguments)||0;var t=o(this),n=s(t),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e801:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[n("el-input",{staticClass:"hide-spin-button",attrs:{type:"number",min:"0"},nativeOn:{input:function(t){return e.inputNumberHandler.apply(null,arguments)}},model:{value:e.optionModel.labelWidth,callback:function(t){e.$set(e.optionModel,"labelWidth",t)},expression:"optionModel.labelWidth"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"labelWidth-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"39b735cc",null);t["default"]=d.exports},e86f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.multiple")}},[n("el-checkbox",{on:{change:e.onMultipleSelected},model:{value:e.optionModel.multiple,callback:function(t){e.$set(e.optionModel,"multiple",t)},expression:"optionModel.multiple"}})],1)},o=[],r=n("79fa"),s=n("b2bf"),a={name:"multiple-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"738526f4",null);t["default"]=d.exports},e893:function(e,t,n){var i=n("1a2d"),o=n("56ef"),r=n("06cf"),s=n("9bf2");e.exports=function(e,t){for(var n=o(t),a=s.f,l=r.f,c=0;c<n.length;c++){var d=n[c];i(e,d)||a(e,d,l(t,d))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e905:function(e,t,n){},e91f:function(e,t,n){"use strict";var i=n("ebb5"),o=n("4d64").indexOf,r=i.aTypedArray,s=i.exportTypedArrayMethod;s("indexOf",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},e934:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-section",use:"icon-section-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-section"><defs><style type="text/css"></style></defs><path d="M141.074286 906.496h741.851428c89.581714 0 134.582857-44.562286 134.582857-132.845714V250.331429c0-88.283429-45.001143-132.845714-134.582857-132.845715H141.074286C51.931429 117.504 6.491429 161.645714 6.491429 250.331429V773.668571c0 88.704 45.44 132.845714 134.582857 132.845715z m1.28-68.992c-42.861714 0-66.852571-22.710857-66.852572-67.291429V253.805714c0-44.580571 23.990857-67.291429 66.852572-67.291428h739.291428c42.422857 0 66.852571 22.710857 66.852572 67.291428V770.194286c0 44.580571-24.429714 67.291429-66.852572 67.291428z" p-id="11329" /></symbol>'});s.a.add(a);t["default"]=a},e95a:function(e,t,n){var i=n("b622"),o=n("3f8c"),r=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[r]===e)}},e96c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.activeText")}},[n("el-input",{model:{value:e.optionModel.activeText,callback:function(t){e.$set(e.optionModel,"activeText",t)},expression:"optionModel.activeText"}})],1)},o=[],r=n("79fa"),s={name:"activeText-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"2684f3ad",null);t["default"]=c.exports},e9c4:function(e,t,n){var i=n("23e7"),o=n("da84"),r=n("d066"),s=n("2ba4"),a=n("e330"),l=n("d039"),c=o.Array,d=r("JSON","stringify"),u=a(/./.exec),h=a("".charAt),f=a("".charCodeAt),p=a("".replace),g=a(1..toString),m=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,w=function(e,t,n){var i=h(n,t-1),o=h(n,t+1);return u(b,e)&&!u(v,o)||u(v,e)&&!u(b,i)?"\\u"+g(f(e,0),16):e},y=l((function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")}));d&&i({target:"JSON",stat:!0,forced:y},{stringify:function(e,t,n){for(var i=0,o=arguments.length,r=c(o);i<o;i++)r[i]=arguments[i];var a=s(d,null,r);return"string"==typeof a?p(a,m,w):a}})},e9cc:function(e,t,n){},eac5:function(e,t,n){var i=n("861d"),o=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&o(e)===e}},eb64:function(e,t,n){"use strict";n("af43")},ebb5:function(e,t,n){"use strict";var i,o,r,s=n("a981"),a=n("83ab"),l=n("da84"),c=n("1626"),d=n("861d"),u=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("6eeb"),m=n("9bf2").f,b=n("3a9b"),v=n("e163"),w=n("d2bb"),y=n("b622"),x=n("90e3"),_=l.Int8Array,C=_&&_.prototype,S=l.Uint8ClampedArray,k=S&&S.prototype,M=_&&v(_),E=C&&v(C),$=Object.prototype,L=l.TypeError,O=y("toStringTag"),T=x("TYPED_ARRAY_TAG"),R=x("TYPED_ARRAY_CONSTRUCTOR"),A=s&&!!w&&"Opera"!==h(l.opera),F=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!d(e))return!1;var t=h(e);return"DataView"===t||u(I,t)||u(D,t)},P=function(e){if(!d(e))return!1;var t=h(e);return u(I,t)||u(D,t)},W=function(e){if(P(e))return e;throw L("Target is not a typed array")},N=function(e){if(c(e)&&(!w||b(M,e)))return e;throw L(f(e)+" is not a typed array constructor")},H=function(e,t,n){if(a){if(n)for(var i in I){var o=l[i];if(o&&u(o.prototype,e))try{delete o.prototype[e]}catch(r){}}E[e]&&!n||g(E,e,n?t:A&&C[e]||t)}},B=function(e,t,n){var i,o;if(a){if(w){if(n)for(i in I)if(o=l[i],o&&u(o,e))try{delete o[e]}catch(r){}if(M[e]&&!n)return;try{return g(M,e,n?t:A&&M[e]||t)}catch(r){}}for(i in I)o=l[i],!o||o[e]&&!n||g(o,e,t)}};for(i in I)o=l[i],r=o&&o.prototype,r?p(r,R,o):A=!1;for(i in D)o=l[i],r=o&&o.prototype,r&&p(r,R,o);if((!A||!c(M)||M===Function.prototype)&&(M=function(){throw L("Incorrect invocation")},A))for(i in I)l[i]&&w(l[i],M);if((!A||!E||E===$)&&(E=M.prototype,A))for(i in I)l[i]&&w(l[i].prototype,E);if(A&&v(k)!==E&&w(k,E),a&&!u(E,O))for(i in F=!0,m(E,O,{get:function(){return d(this)?this[T]:void 0}}),I)l[i]&&p(l[i],T,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_CONSTRUCTOR:R,TYPED_ARRAY_TAG:F&&T,aTypedArray:W,aTypedArrayConstructor:N,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:B,isView:j,isTypedArray:P,TypedArray:M,TypedArrayPrototype:E}},ecaa:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-switch",{ref:"fieldEditor",attrs:{disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth},on:{change:e.handleChangeEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("2d11"),d={name:"switch-widget",componentName:"FieldWidget",mixins:[a.a,c["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},u=d,h=(n("5979"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"3df749d0",null);t["default"]=f.exports},ecf4:function(e,t,n){"use strict";n("1309")},efdc:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,staticClass:"sub-form-container"},[n("el-row",{staticClass:"header-row"},[n("div",{staticClass:"action-header-column"},[n("span",{staticClass:"action-label"},[e._v(e._s(e.i18nt("render.hint.subFormAction")))]),n("el-button",{staticClass:"action-button",attrs:{round:"",type:"primary",size:"mini",title:e.i18nt("render.hint.subFormAddActionHint")},on:{click:e.addSubFormRow}},[e._v(" "+e._s(e.i18nt("render.hint.subFormAddAction"))),n("i",{staticClass:"el-icon-plus el-icon-right"})])],1),e._l(e.widget.widgetList,(function(t){return[n("div",{key:t.id+"thc",staticClass:"field-header-column",class:[e.getLabelAlign(e.widget,t),t.options.required?"is-required":""],style:{width:t.options.columnWidth}},[t.options.labelIconClass?n("span",{staticClass:"custom-label"},["front"===t.options.labelIconPosition?[t.options.labelTooltip?[n("el-tooltip",{attrs:{content:t.options.labelTooltip,effect:"light"}},[n("i",{class:t.options.labelIconClass})]),e._v(e._s(t.options.label))]:[n("i",{class:t.options.labelIconClass}),e._v(e._s(t.options.label))]]:"rear"===t.options.labelIconPosition?[t.options.labelTooltip?[e._v(" "+e._s(t.options.label)),n("el-tooltip",{attrs:{content:t.options.labelTooltip,effect:"light"}},[n("i",{class:t.options.labelIconClass})])]:[e._v(" "+e._s(t.options.label)),n("i",{class:t.options.labelIconClass})]]:e._e()],2):[n("span",{attrs:{title:t.options.labelTooltip}},[e._v(e._s(t.options.label))])]],2)]}))],2),e._l(e.rowIdData,(function(t,i){return n("el-row",{key:t,staticClass:"sub-form-row"},[n("div",{staticClass:"sub-form-action-column hide-label"},[n("div",{staticClass:"action-button-column"},[n("el-button",{attrs:{circle:"",type:"",icon:"el-icon-circle-plus-outline",title:e.i18nt("render.hint.insertSubFormRow")},on:{click:function(t){return e.insertSubFormRow(i)}}}),n("el-button",{attrs:{circle:"",type:"",icon:"el-icon-delete",title:e.i18nt("render.hint.deleteSubFormRow")},on:{click:function(t){return e.deleteSubFormRow(i)}}}),e.widget.options.showRowNumber?n("span",{staticClass:"row-number-span"},[e._v("#"+e._s(i+1))]):e._e()],1)]),e._l(e.widget.widgetList,(function(o,r){return[n("div",{key:o.id+"tc"+t,staticClass:"sub-form-table-column hide-label",style:{width:o.options.columnWidth}},[n(o.type+"-widget",{key:e.fieldSchemaData[i][r].id,tag:"component",attrs:{field:e.fieldSchemaData[i][r],"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget,"sub-form-row-id":t,"sub-form-row-index":i,"sub-form-col-index":r}})],1)]}))],2)}))],2)])},o=[],r=n("5530"),s=(n("b0c0"),n("a434"),n("d3b7"),n("159b"),n("d010")),a=n.n(s),l=n("79fa"),c=n("ca00"),d=n("d67f"),u=n("90c2"),h=n("34f0"),f=n("c029"),p={name:"sub-form-item",componentName:"ContainerItem",mixins:[a.a,l["b"],d["a"],h["a"]],components:Object(r["a"])({ContainerItemWrapper:u["default"]},f["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data:function(){return{rowIdData:[],fieldSchemaData:[]}},created:function(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted:function(){this.handleSubFormFirstRowAdd()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{getLabelAlign:function(e,t){return t.options.labelAlign||e.options.labelAlign},registerSubFormToRefList:function(){"sub-form"===this.widget.type&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData:function(e){var t=this;if("sub-form"===this.widget.type){this.rowIdData.splice(0,this.rowIdData.length);var n=this.formModel[this.widget.options.name];n&&n.length>0&&(n.forEach((function(){t.rowIdData.push("r"+Object(c["d"])())})),e&&setTimeout((function(){t.handleSubFormRowChange(n)}),800))}},addToRowIdData:function(){this.rowIdData.push("rowId"+Object(c["d"])())},insertToRowIdData:function(e){this.rowIdData.splice(e,0,"rowId"+Object(c["d"])())},deleteFromRowIdData:function(e){this.rowIdData.splice(e,1)},initFieldSchemaData:function(){var e=this;if("sub-form"===this.widget.type){var t=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),t>0)for(var n=function(t){var n=[];e.widget.widgetList.forEach((function(t){n.push(e.cloneFieldSchema(t))})),e.fieldSchemaData.push(n)},i=0;i<t;i++)n(i)}},addToFieldSchemaData:function(e){var t=this,n=[];this.widget.widgetList.forEach((function(e){n.push(t.cloneFieldSchema(e))})),void 0===e?this.fieldSchemaData.push(n):this.fieldSchemaData.splice(e,0,n)},deleteFromFieldSchemaData:function(e){this.fieldSchemaData.splice(e,1)},cloneFieldSchema:function(e){var t=Object(c["c"])(e);return t.id=e.type+Object(c["d"])(),t},initEventHandler:function(){"sub-form"===this.widget.type&&this.$on("setFormData",(function(e){var t=this;this.initRowIdData(!1),this.initFieldSchemaData();var n=e[this.widget.options.name]||[];setTimeout((function(){t.handleSubFormRowChange(n)}),800)}))},handleSubFormFirstRowAdd:function(){if("sub-form"===this.widget.type&&this.widget.options.showBlankRow&&1===this.rowIdData.length){var e=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(e,this.rowIdData[0]),this.handleSubFormRowChange(e)}},addSubFormRow:function(){var e={};this.widget.widgetList.forEach((function(t){t.formItemFlag&&(e[t.options.name]=t.options.defaultValue)}));var t=this.formModel[this.widget.options.name]||[];t.push(e),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(t,this.rowIdData[t.length-1]),this.handleSubFormRowChange(t)},insertSubFormRow:function(e){var t={};this.widget.widgetList.forEach((function(e){e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)}));var n=this.formModel[this.widget.options.name]||[];n.splice(e,0,t),this.insertToRowIdData(e),this.addToFieldSchemaData(e),this.handleSubFormRowInsert(n,this.rowIdData[e]),this.handleSubFormRowChange(n)},deleteSubFormRow:function(e){var t=this;this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then((function(){var n=t.formModel[t.widget.options.name]||[],i=Object(c["c"])(n[e]);n.splice(e,1),t.deleteFromRowIdData(e),t.deleteFromFieldSchemaData(e),t.handelSubFormRowDelete(n,i),t.handleSubFormRowChange(n)})).catch((function(){}))},handleSubFormRowChange:function(e){if(this.widget.options.onSubFormRowChange){var t=new Function("subFormData",this.widget.options.onSubFormRowChange);t.call(this,e)}},handleSubFormRowAdd:function(e,t){if(this.widget.options.onSubFormRowAdd){var n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd);n.call(this,e,t)}},handleSubFormRowInsert:function(e,t){if(this.widget.options.onSubFormRowInsert){var n=new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert);n.call(this,e,t)}},handelSubFormRowDelete:function(e,t){if(this.widget.options.onSubFormRowDelete){var n=new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete);n.call(this,e,t)}}}},g=p,m=(n("c9bb"),n("2877")),b=Object(m["a"])(g,i,o,!1,null,"54fd6ca7",null);t["default"]=b.exports},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f14c:function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},r.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";function i(){var e=l.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,o("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function o(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var r=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,l="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",c=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),o("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+l+")(\\.)(prototype)(\\.)("+l+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+l+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+l+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:l},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+l+")(\\.)("+l+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:l},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),o("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:l},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!e||0!=e.jsx)&&i.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};r.inherits(c,a),t.JavaScriptHighlightRules=c})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),o=n.match(/^(\s*\})/);if(!o)return 0;var r=o[1].length,s=e.findMatchingBracket({row:t,column:r});if(!s||s.row==t)return 0;var a=this.$getIndent(e.getLine(s.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);var r=o.match(this.foldingStartMarker);if(r){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t){r=o.match(this.foldingStopMarker);if(r){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length;t+=1;var a=t,l=e.getLength();while(++t<l){n=e.getLine(t);var c=n.search(/\S/);if(-1!==c){if(i>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=r)break;if(d.isMultiLine())t=d.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<r){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}var d=n;if(d>s)return new o(s,i,d,t.length)}}.call(s.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e){var a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);a&&(i+=n)}else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";a=t.match(/^\s*(\/?)\*/);a&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(d.prototype),t.Mode=d})),function(){ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},f183:function(e,t,n){var i=n("23e7"),o=n("e330"),r=n("d012"),s=n("861d"),a=n("1a2d"),l=n("9bf2").f,c=n("241c"),d=n("057f"),u=n("4fad"),h=n("90e3"),f=n("bb2f"),p=!1,g=h("meta"),m=0,b=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},v=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,g)){if(!u(e))return"F";if(!t)return"E";b(e)}return e[g].objectID},w=function(e,t){if(!a(e,g)){if(!u(e))return!0;if(!t)return!1;b(e)}return e[g].weakData},y=function(e){return f&&p&&u(e)&&!a(e,g)&&b(e),e},x=function(){_.enable=function(){},p=!0;var e=c.f,t=o([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),o=0,r=i.length;o<r;o++)if(i[o]===g){t(i,o,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},_=e.exports={enable:x,fastKey:v,getWeakData:w,onFreeze:y};r[g]=!0},f250:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-rate-field",use:"icon-rate-field-usage",viewBox:"0 0 1069 1024",content:'<symbol class="icon" viewBox="0 0 1069 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-rate-field"><defs><style type="text/css"></style></defs><path d="M633.73 378.02l9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-0.263l94.568 185.635zM496.647 85.52L374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682 0.802z" p-id="49627" /></symbol>'});s.a.add(a);t["default"]=a},f2db:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-alert",use:"icon-alert-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-alert"><defs><style type="text/css"></style></defs><path d="M512 85.162667a319.573333 319.573333 0 0 1 319.829333 309.333333l0.170667 10.666667v174.805333l58.88 134.656a53.290667 53.290667 0 0 1-48.853333 74.709333L640 789.418667a128 128 0 0 1-255.786667 7.509333L384 789.290667l-201.6 0.042666a53.333333 53.333333 0 0 1-48.938667-74.581333L192 580.010667V405.162667c0-177.28 143.018667-320 320-320zM576 789.333333l-128 0.128a64 64 0 0 0 127.701333 6.144l0.256-6.272zM512 149.162667c-141.653333 0-256 114.090667-256 256v188.16L198.656 725.333333h627.072L768 593.365333V405.717333l-0.170667-9.6A255.488 255.488 0 0 0 512 149.162667z m384 202.837333h85.333333a32 32 0 0 1 4.352 63.701333L981.333333 416h-85.333333a32 32 0 0 1-4.352-63.701333L896 352z m-853.333333 0h85.333333a32 32 0 0 1 4.352 63.701333L128 416H42.666667a32 32 0 0 1-4.352-63.701333L42.666667 352z m921.6-243.2a32 32 0 0 1-2.816 41.685333l-3.584 3.114667-85.333334 64a32 32 0 0 1-41.984-48.085333l3.584-3.114667 85.333334-64a32 32 0 0 1 44.8 6.4zM104.533333 102.4l85.333334 64a32 32 0 1 1-38.4 51.2l-85.333334-64a32 32 0 1 1 38.4-51.2z" p-id="6432" /></symbol>'});s.a.add(a);t["default"]=a},f319:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelTooltip")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.labelTooltip,callback:function(t){e.$set(e.optionModel,"labelTooltip",t)},expression:"optionModel.labelTooltip"}})],1)},o=[],r=n("79fa"),s={name:"labelTooltip-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"4bb85541",null);t["default"]=c.exports},f36a:function(e,t,n){var i=n("e330");e.exports=i([].slice)},f388:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!!e.subFormChildWidgetFlag,expression:"!!subFormChildWidgetFlag"}],attrs:{label:e.i18nt("designer.setting.widgetColumnWidth")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.columnWidth,callback:function(t){e.$set(e.optionModel,"columnWidth",t)},expression:"optionModel.columnWidth"}})],1)],1)},o=[],r=n("79fa"),s={name:"columnWidth-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{subFormChildWidgetFlag:!0}},created:function(){},mounted:function(){var e=this;this.designer.handleEvent("field-selected",(function(t){e.subFormChildWidgetFlag=!!t&&"sub-form"===t.type}))}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"7bd2cc74",null);t["default"]=c.exports},f3fa:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__),_form_item_wrapper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("9eeb"),element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("d010"),element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_4__),_utils_i18n__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("79fa"),_utils_util__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("ca00"),_components_form_designer_form_widget_field_widget_fieldMixin__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("2d11");__webpack_exports__["a"]={name:"picture-upload-widget",componentName:"FieldWidget",mixins:[element_ui_lib_mixins_emitter__WEBPACK_IMPORTED_MODULE_4___default.a,_components_form_designer_form_widget_field_widget_fieldMixin__WEBPACK_IMPORTED_MODULE_7__["a"],_utils_i18n__WEBPACK_IMPORTED_MODULE_5__["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:_form_item_wrapper__WEBPACK_IMPORTED_MODULE_3__["default"]},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handlePictureExceed:function handlePictureExceed(){var uploadLimit=this.field.options.limit;this.$message.warning(eval("`"+this.i18nt("render.hint.uploadExceed")+"`"))},updateUploadFieldModelAndEmitDataChange:function(e){var t=Object(_utils_util__WEBPACK_IMPORTED_MODULE_6__["c"])(this.fieldModel);this.fieldModel=Object(_utils_util__WEBPACK_IMPORTED_MODULE_6__["c"])(e),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,t)},beforePictureUpload:function(e){var t=!1;if(this.field.options&&this.field.options.fileTypes){var n=this.field.options.fileTypes;n.length>0&&(t=n.some((function(t){return e.type==="image/"+t})))}if(!t)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+e.type),!1;var i=!1,o=5;return this.field.options&&this.field.options.fileMaxSize&&(o=this.field.options.fileMaxSize),i=e.size/1024/1024<=o,i?(this.uploadData.key=e.name,this.handleOnBeforeUpload(e)):(this.$message.error(this.$("render.hint.fileSizeExceed")+o+"MB"),!1)},handleOnBeforeUpload:function(e){if(this.field.options.onBeforeUpload){var t=new Function("file",this.field.options.onBeforeUpload),n=t.call(this,e);return"boolean"!==typeof n||n}return!0},handlePictureUpload:function(e,t,n){if(this.field.options.onUploadSuccess){var i=new Function("result","file","fileList",this.field.options.onUploadSuccess);i.call(this,e,t,n)}else"success"===t.status&&(this.updateUploadFieldModelAndEmitDataChange(n),this.uploadBtnHidden=n.length>=this.field.options.limit)},handlePictureRemove:function(e,t){this.fileList=t,this.updateUploadFieldModelAndEmitDataChange(t),this.uploadBtnHidden=t.length>=this.field.options.limit},handelUploadError:function(e,t,n){if(this.field.options.onUploadError){var i=new Function("error","file","fileList",this.field.options.onUploadError);i.call(this,e,t,n)}else this.$message({message:this.i18nt("render.hint.uploadError")+e,duration:3e3,type:"error"})}}}},f4a6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:"onFocus","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editEventHandler("onFocus",e.eventParams)}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)},o=[],r=n("79fa"),s=n("7d6c"),a={name:"onFocus-editor",mixins:[r["b"],s["a"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{eventParams:["event"]}}},l=a,c=n("2877"),d=Object(c["a"])(l,i,o,!1,null,"ccd01010",null);t["default"]=d.exports},f4c1:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form-item-wrapper",{attrs:{designer:e.designer,field:e.field,rules:e.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("vue-editor",{ref:"fieldEditor",attrs:{"editor-toolbar":e.customToolbar,disabled:e.field.options.disabled,placeholder:e.field.options.placeholder},on:{"text-change":e.handleRichEditorChangeEvent,focus:e.handleRichEditorFocusEvent,blur:e.handleRichEditorBlurEvent},model:{value:e.fieldModel,callback:function(t){e.fieldModel=t},expression:"fieldModel"}})],1)},o=[],r=(n("a9e3"),n("9eeb")),s=n("d010"),a=n.n(s),l=n("79fa"),c=n("ca00"),d=n("2d11"),u={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[a.a,d["a"],l["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper:r["default"],VueEditor:function(e){n.e(1).then((function(){var t=[n("5873")];(function(t){var n=t.VueEditor;return e(n)}).apply(null,t)})).catch(n.oe)}},inject:["refList","formConfig","globalOptionData","globalModel"],data:function(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{},beforeCreate:function(){},created:function(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted:function(){this.handleOnMounted()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent:function(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent:function(){this.oldFieldValue=Object(c["c"])(this.fieldModel)},handleRichEditorBlurEvent:function(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}},h=u,f=(n("5faf"),n("2877")),p=Object(f["a"])(h,i,o,!1,null,"d4f31fc0",null);t["default"]=p.exports},f582:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-checkbox-field",use:"icon-checkbox-field-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-checkbox-field"><defs><style type="text/css"></style></defs><path d="M897.940444 896.76927c6.258541-6.27696 10.256598-14.833847 10.256598-24.530696L908.197042 147.672294c0-9.118682-3.998057-18.235316-10.256598-24.533766l0 0c-6.27696-6.257517-14.815427-9.695826-24.511253-9.695826l0 0-723.784474 0 0 0c-9.68764 0-18.235316 3.437286-24.503067 9.695826l0 0c-6.26775 6.297426-9.686616 15.414061-9.686616 24.533766L115.455033 872.238574c0 9.69685 3.419889 18.253736 9.686616 24.530696 6.26775 6.277984 14.815427 10.276041 24.503067 10.276041l0 0 723.784474 0 0 0C883.126041 907.045311 891.663484 903.047254 897.940444 896.76927L897.940444 896.76927zM149.644717 61.521169l723.784474 0 0 0c23.933085 0 45.586245 9.69685 60.97984 25.110911 15.396665 15.97381 25.073048 37.665855 25.073048 61.039191L959.482079 872.238574c0 23.969924-9.676383 45.64355-25.073048 61.056588l0 0c-15.393595 15.395642-37.046754 25.092491-60.97984 25.092491l0 0-723.784474 0 0 0c-23.364127 0-45.016263-9.69685-60.971653-25.092491l0 0c-15.395642-15.414061-25.082258-37.086663-25.082258-61.056588L63.590805 147.672294c0-23.37436 9.686616-45.065382 25.082258-61.039191l0 0C104.628454 71.218018 126.28059 61.521169 149.644717 61.521169L149.644717 61.521169z" p-id="25736" /><path d="M417.41939 698.269357c-6.025227 0-12.047384-2.301416-16.667611-6.89913L259.500731 550.119179c-9.172917-9.148357-9.172917-24.093744 0-33.290197 9.169847-9.147334 24.115234-9.147334 33.288151 0l124.583436 124.606972 312.89429-312.916802c9.194406-9.171893 24.139793-9.171893 33.288151 0 9.196453 9.171893 9.196453 24.116257 0 33.289174L433.991834 691.370227c-4.618181 4.644787-10.642384 6.89913-16.665565 6.89913L417.41939 698.269357z" p-id="25737" /></symbol>'});s.a.add(a);t["default"]=a},f584:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(e.i18nt("designer.setting.fileTypes"))+" "),n("el-tooltip",{attrs:{effect:"light",content:e.i18nt("designer.setting.fileTypesHelp")}},[n("i",{staticClass:"el-icon-info"})])],1),n("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","allow-create":"",filterable:"","default-first-option":""},model:{value:e.optionModel.fileTypes,callback:function(t){e.$set(e.optionModel,"fileTypes",t)},expression:"optionModel.fileTypes"}},e._l(e.uploadFileTypes,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)},o=[],r=n("79fa"),s={name:"fileTypes-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},data:function(){return{uploadFileTypes:[{value:"doc",label:"doc"},{value:"xls",label:"xls"},{value:"docx",label:"docx"},{value:"xlsx",label:"xlsx"}]}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"314eada6",null);t["default"]=c.exports},f5df:function(e,t,n){var i=n("da84"),o=n("00ee"),r=n("1626"),s=n("c6b6"),a=n("b622"),l=a("toStringTag"),c=i.Object,d="Arguments"==s(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=o?s:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=c(e),l))?n:d?s(t):"Object"==(i=s(t))&&r(t.callee)?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6e6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("div",{key:e.widget.id,staticClass:"table-container",class:[e.selected?"selected":"",e.customClass],on:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("table",{staticClass:"table-layout"},[n("tbody",e._l(e.widget.rows,(function(t,i){return n("tr",{key:t.id},[e._l(t.cols,(function(o,r){return[o.merged?e._e():n("table-cell-widget",{key:o.id,attrs:{widget:o,designer:e.designer,"parent-list":e.widget.cols,"row-index":i,"row-length":e.widget.rows.length,"col-index":r,"col-length":t.cols.length,"col-array":t.cols,"row-array":e.widget.rows,"parent-widget":e.widget}})]}))],2)})),0)])])])},o=[],r=(n("a9e3"),n("79fa")),s=n("61ca"),a=n("cd36"),l=n("1516"),c={name:"table-widget",componentName:"ContainerWidget",mixins:[r["b"],s["a"]],components:{ContainerWrapper:a["default"],TableCellWidget:l["default"]},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},watch:{},mounted:function(){},methods:{}},d=c,u=(n("ecf4"),n("2877")),h=Object(u["a"])(d,i,o,!1,null,"e1c31d70",null);t["default"]=h.exports},f6f1:function(e,t,n){},f746:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("el-row",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"grid-container",class:[e.customClass],attrs:{gutter:e.widget.options.gutter}},[e._l(e.widget.cols,(function(t,i){return[n("grid-col-item",{key:i,attrs:{widget:t,"parent-list":e.widget.cols,"index-of-parent-list":i,"parent-widget":e.widget,"col-height":e.widget.options.colHeight}})]}))],2)],1)},o=[],r=n("d010"),s=n.n(r),a=n("79fa"),l=n("d67f"),c=n("90c2"),d=n("a93f"),u=n("34f0"),h={name:"grid-item",componentName:"ContainerItem",mixins:[s.a,a["b"],l["a"],u["a"]],components:{ContainerItemWrapper:c["default"],GridColItem:d["default"]},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created:function(){this.initRefList()},mounted:function(){},beforeDestroy:function(){this.unregisterFromRefList()},methods:{}},f=h,p=n("2877"),g=Object(p["a"])(f,i,o,!1,null,"6882f574",null);t["default"]=g.exports},f772:function(e,t,n){var i=n("5692"),o=n("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},f7729:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-col",e._b({key:e.widget.id,staticClass:"grid-cell",class:[e.selected?"selected":"",e.customClass],style:e.colHeightStyle,nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},"el-col",e.layoutProps,!1),[n("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{end:function(t){return e.onGridDragEnd(t,e.widget.widgetList)},add:function(t){return e.onGridDragAdd(t,e.widget.widgetList)},update:e.onGridDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?n("div",{staticClass:"grid-col-action"},[n("i",{staticClass:"el-icon-back",attrs:{title:e.i18nt("designer.hint.selectParentWidget")},on:{click:function(t){return t.stopPropagation(),e.selectParentWidget(e.widget)}}}),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-top",attrs:{title:e.i18nt("designer.hint.moveUpWidget")},on:{click:function(t){return t.stopPropagation(),e.moveUpWidget()}}}):e._e(),e.parentList&&e.parentList.length>1?n("i",{staticClass:"el-icon-bottom",attrs:{title:e.i18nt("designer.hint.moveDownWidget")},on:{click:function(t){return t.stopPropagation(),e.moveDownWidget()}}}):e._e(),n("i",{staticClass:"el-icon-copy-document",attrs:{title:e.i18nt("designer.hint.cloneWidget")},on:{click:function(t){return t.stopPropagation(),e.cloneGridCol(e.widget)}}}),n("i",{staticClass:"el-icon-delete",attrs:{title:e.i18nt("designer.hint.remove")},on:{click:function(t){return t.stopPropagation(),e.removeWidget.apply(null,arguments)}}})]):e._e(),e.designer.selectedId===e.widget.id&&"grid-col"===e.widget.type?n("div",{staticClass:"grid-col-handler"},[n("i",[e._v(e._s(e.i18nt("designer.widgetLabel."+e.widget.type)))])]):e._e()],1)},o=[],r=n("5530"),s=(n("a9e3"),n("a434"),n("b76a")),a=n.n(s),l=n("79fa"),c=n("c029"),d={name:"GridColWidget",componentName:"GridColWidget",mixins:[l["b"]],components:Object(r["a"])({Draggable:a.a},c["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,colHeight:{type:String,default:null}},data:function(){return{layoutProps:{span:this.widget.options.span||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""},colHeightStyle:function(){return this.colHeight?{height:this.colHeight+"px"}:{}}},watch:{"designer.formConfig.layoutType":{handler:function(e){this.widget.options.responsive?this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12:this.layoutProps.span=this.widget.options.span||12}},"widget.options.responsive":{handler:function(e){var t=this.designer.formConfig.layoutType;this.layoutProps.span=e?"H5"===t?this.widget.options.xs||12:"Pad"===t?this.widget.options.sm||12:this.widget.options.md||12:this.widget.options.span||12}},"widget.options.span":{handler:function(e){this.layoutProps.span=e}},"widget.options.md":{handler:function(e){this.layoutProps.span=e}},"widget.options.sm":{handler:function(e){this.layoutProps.span=e}},"widget.options.xs":{handler:function(e){this.layoutProps.span=e}},"widget.options.offset":{handler:function(e){this.layoutProps.offset=e}},"widget.options.push":{handler:function(e){this.layoutProps.push=e}},"widget.options.pull":{handler:function(e){this.layoutProps.pull=e}}},created:function(){this.initLayoutProps()},methods:{initLayoutProps:function(){if(this.widget.options.responsive){var e=this.designer.formConfig.layoutType;this.layoutProps.span="H5"===e?this.widget.options.xs||12:"Pad"===e?this.widget.options.sm||12:this.widget.options.md||12}else this.layoutProps.spn=this.widget.options.span},onGridDragEnd:function(e,t){},onGridDragAdd:function(e,t){var n=e.newIndex;t[n]&&this.designer.setSelected(t[n]),this.designer.emitHistoryChange()},onGridDragUpdate:function(){this.designer.emitHistoryChange()},selectWidget:function(e){console.log("id: "+e.id),this.designer.setSelected(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},selectParentWidget:function(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget:function(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList)},moveDownWidget:function(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList)},cloneGridCol:function(e){this.designer.cloneGridCol(e,this.parentWidget)},removeWidget:function(){var e=this;if(this.parentList){var t=null;1===this.parentList.length?this.parentWidget&&(t=this.parentWidget):t=this.parentList.length===1+this.indexOfParentList?this.parentList[this.indexOfParentList-1]:this.parentList[this.indexOfParentList+1],this.$nextTick((function(){e.parentList.splice(e.indexOfParentList,1),e.designer.setSelected(t),e.designer.emitHistoryChange()}))}}}},u=d,h=(n("a6a3"),n("2877")),f=Object(h["a"])(u,i,o,!1,null,"9114f98c",null);t["default"]=f.exports},f8cd:function(e,t,n){var i=n("da84"),o=n("5926"),r=i.RangeError;e.exports=function(e){var t=o(e);if(t<0)throw r("The argument can't be less than 0");return t}},fa85:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colPushTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:24},model:{value:e.optionModel.push,callback:function(t){e.$set(e.optionModel,"push",e._n(t))},expression:"optionModel.push"}})],1)},o=[],r=n("79fa"),s={name:"grid-col-push-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"570c4841",null);t["default"]=c.exports},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var i=window.document.currentScript,o=n("8875");i=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("b0c0"),n("d3b7"),n("159b");var s=n("bc3a"),a=n.n(s),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{staticClass:"main-container full-height"},[n("el-container",[n("el-aside",{staticClass:"side-panel"},[n("widget-panel",{attrs:{designer:e.designer}})],1),n("el-container",{staticClass:"center-layout-container"},[n("el-header",{staticClass:"toolbar-header"},[n("toolbar-panel",e._g(e._b({ref:"toolbarRef",attrs:{designer:e.designer},scopedSlots:e._u([{key:"toolButton",fn:function(){return[e._t("customToolButtons")]},proxy:!0}],null,!0)},"toolbar-panel",e.$attrs,!1),e.$listeners))],1),n("el-main",{staticClass:"form-widget-main"},[n("el-scrollbar",{staticClass:"container-scroll-bar",style:{height:e.scrollerHeight}},[n("v-form-widget",{attrs:{designer:e.designer,"form-config":e.designer.formConfig}})],1)],1)],1),n("el-aside",[n("setting-panel",{attrs:{designer:e.designer,"selected-widget":e.designer.selectedWidget,"form-config":e.designer.formConfig}})],1)],1)],1)},c=[],d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{staticClass:"side-scroll-bar",style:{height:e.scrollerHeight}},[n("div",{staticClass:"panel-container"},[n("el-tabs",{staticClass:"no-bottom-margin indent-left-margin",model:{value:e.firstTab,callback:function(t){e.firstTab=t},expression:"firstTab"}},[n("el-tab-pane",{attrs:{name:"componentLib"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{staticClass:"el-icon-set-up"}),e._v(" "+e._s(e.i18nt("designer.componentLib")))]),n("el-collapse",{staticClass:"widget-collapse",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[e.showContainerTemplates()?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.containerTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.containers,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:e.checkContainerMove},on:{end:e.onContainerDragEnd}},e._l(e.containers,(function(t,i){return n("li",{key:i,staticClass:"container-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addContainerByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1):e._e(),n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.basicFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.basicFields,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.basicFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.advancedFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.advancedFields,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.advancedFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1),n("el-collapse-item",{attrs:{name:"4",title:e.i18nt("designer.customFieldTitle")}},[n("draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"dragGroup",pull:"clone",put:!1},clone:e.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1}},e._l(e.customFields,(function(t,i){return n("li",{key:i,staticClass:"field-widget-item",attrs:{title:t.displayName},on:{dblclick:function(n){return e.addFieldByDbClick(t)}}},[n("span",[n("svg-icon",{attrs:{"icon-class":t.icon}}),e._v(e._s(e.i18n2t("designer.widgetLabel."+t.type,"extension.widgetLabel."+t.type)))],1)])})),0)],1)],1)],1),e.showFormTemplates()?n("el-tab-pane",{staticStyle:{padding:"8px"},attrs:{name:"formLib"}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{staticClass:"el-icon-c-scale-to-original"}),e._v(" "+e._s(e.i18nt("designer.formLib")))]),e._l(e.formTemplates,(function(t,i){return[n("el-card",{staticClass:"ft-card",attrs:{"bord-style":{padding:"0"},shadow:"hover"}},[n("el-popover",{attrs:{placement:"right",trigger:"hover"}},[n("img",{staticStyle:{width:"200px"},attrs:{slot:"reference",src:e.ftImages[i].imgUrl},slot:"reference"}),n("img",{staticStyle:{height:"600px",width:"720px"},attrs:{src:e.ftImages[i].imgUrl}})]),n("div",{staticClass:"bottom clear-fix"},[n("span",{staticClass:"ft-title"},[e._v("#"+e._s(i+1)+" "+e._s(t.title))]),n("el-button",{staticClass:"right-button",attrs:{type:"text"},on:{click:function(n){return e.loadFormTemplate(t.jsonUrl)}}},[e._v(" "+e._s(e.i18nt("designer.hint.loadFormTemplate")))])],1)],1)]}))],2):e._e()],1)],1)])},u=[],h=n("5530"),f=(n("4de4"),n("d81d"),n("b76a")),p=n.n(f),g=[{type:"grid",category:"container",icon:"grid",cols:[],options:{name:"",hidden:!1,gutter:12,colHeight:null,customClass:""}},{type:"table",category:"container",icon:"table",rows:[],options:{name:"",hidden:!1,customClass:""}},{type:"tab",category:"container",icon:"tab",displayType:"border-card",tabs:[],options:{name:"",hidden:!1,customClass:""}},{type:"grid-col",category:"container",icon:"grid-col",internal:!0,widgetList:[],options:{name:"",hidden:!1,span:12,offset:0,push:0,pull:0,responsive:!1,md:12,sm:12,xs:12,customClass:""}},{type:"table-cell",category:"container",icon:"table-cell",internal:!0,widgetList:[],merged:!1,options:{name:"",cellWidth:"",cellHeight:"",colspan:1,rowspan:1,customClass:""}},{type:"tab-pane",category:"container",icon:"tab-pane",internal:!0,widgetList:[],options:{name:"",label:"",hidden:!1,active:!1,disabled:!1,customClass:""}}],m=[{type:"input",icon:"text-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"text",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,showPassword:!1,required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,prefixIcon:"",suffixIcon:"",appendButton:!1,appendButtonDisabled:!1,buttonIcon:"el-icon-search",onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"textarea",icon:"textarea-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",rows:3,defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onInput:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"number",icon:"number-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:0,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:-1e11,max:1e11,precision:0,step:1,controlsPosition:"right",onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"radio",icon:"radio-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"radio 1",value:1},{label:"radio 2",value:2},{label:"radio 3",value:3}],required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"checkbox",icon:"checkbox-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:[],columnWidth:"200px",size:"",displayStyle:"inline",buttonStyle:!1,border:!1,labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,optionItems:[{label:"check 1",value:1},{label:"check 2",value:2},{label:"check 3",value:3}],required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"select",icon:"select-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:"",placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,allowCreate:!1,remote:!1,automaticDropdown:!1,multiple:!1,multipleLimit:0,optionItems:[{label:"select 1",value:1},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onRemoteQuery:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time",icon:"time-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"time-range",icon:"time-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"HH:mm:ss",required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date",icon:"date-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"date",defaultValue:null,placeholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"date-range",icon:"date-range-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",type:"daterange",defaultValue:null,startPlaceholder:"",endPlaceholder:"",columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,readonly:!1,disabled:!1,hidden:!1,clearable:!0,editable:!1,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}},{type:"switch",icon:"switch-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,switchWidth:40,activeText:"",inactiveText:"",activeColor:null,inactiveColor:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"rate",icon:"rate-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,max:5,lowThreshold:2,highThreshold:4,allowHalf:!1,showText:!1,showScore:!1,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"color",icon:"color-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",defaultValue:null,columnWidth:"200px",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"slider",icon:"slider-field",formItemFlag:!0,options:{name:"",label:"",labelAlign:"",columnWidth:"200px",showStops:!0,size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,validation:"",validationHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,min:0,max:100,step:10,range:!1,height:null,onCreated:"",onMounted:"",onChange:"",onValidate:""}},{type:"static-text",icon:"static-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,textContent:"static text",customClass:"",onCreated:"",onMounted:""}},{type:"html-text",icon:"html-text",formItemFlag:!1,options:{name:"",columnWidth:"200px",hidden:!1,htmlContent:"<b>html text</b>",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],b=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["doc","docx","xls","xlsx"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",placeholder:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],v=[];function w(e){g.push(e)}function y(e){v.push(e)}var x=[{title:"单列表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"表单模板详细说明..."},{title:"多列表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"表单模板详细说明..."},{title:"分组表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"表单模板详细说明..."},{title:"标签页表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"表单模板详细说明..."},{title:"主从表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"表单模板详细说明..."},{title:"响应式表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"表单模板详细说明..."},{title:"问卷调查表",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"表单模板详细说明..."},{title:"固定表格表单",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"表单模板详细说明..."}],_=n("ca00"),C=n("79fa"),S=n("e4d3"),k=n.n(S),M=n("2962"),E=n.n(M),$=n("dac5"),L=n.n($),O=n("db07"),T=n.n(O),R=n("015e"),A=n.n(R),F=n("64e2"),I=n.n(F),D=n("5d17"),j=n.n(D),P=n("82ba"),W=n.n(P),N={name:"FieldPanel",mixins:[C["b"]],components:{Draggable:p.a},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:g,basicFields:m,advancedFields:b,customFields:v,formTemplates:x,ftImages:[{imgUrl:k.a},{imgUrl:E.a},{imgUrl:L.a},{imgUrl:T.a},{imgUrl:A.a},{imgUrl:I.a},{imgUrl:j.a},{imgUrl:W.a}]}},computed:{},mounted:function(){var e=this;this.loadWidgets(),this.scrollerHeight=window.innerHeight-56+"px",Object(_["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56+"px"}))}))},methods:{isBanned:function(e){return this.getBannedWidgets().indexOf(e)>-1},showContainerTemplates:function(){return void 0===this.designerConfig["containerTemplates"]||!!this.designerConfig["containerTemplates"]},showFormTemplates:function(){return void 0===this.designerConfig["formTemplates"]||!!this.designerConfig["formTemplates"]},loadWidgets:function(){var e=this;this.containers=this.containers.map((function(t){return Object(h["a"])(Object(h["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!t.internal&&!e.isBanned(t.type)})),this.basicFields=this.basicFields.map((function(t){return Object(h["a"])(Object(h["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)})),this.advancedFields=this.advancedFields.map((function(t){return Object(h["a"])(Object(h["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)})),this.customFields=this.customFields.map((function(t){return Object(h["a"])(Object(h["a"])({},t),{},{displayName:e.i18n2t("designer.widgetLabel.".concat(t.type),"extension.widgetLabel.".concat(t.type))})})).filter((function(t){return!e.isBanned(t.type)}))},handleContainerWidgetClone:function(e){return this.designer.copyNewContainerWidget(e)},handleFieldWidgetClone:function(e){return this.designer.copyNewFieldWidget(e)},checkContainerMove:function(e){return this.designer.checkWidgetMove(e)},onContainerDragEnd:function(e){},addContainerByDbClick:function(e){this.designer.addContainerByDbClick(e)},addFieldByDbClick:function(e){this.designer.addFieldByDbClick(e)},loadFormTemplate:function(e){var t=this;this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then((function(){a.a.get(e).then((function(e){var n=!1;"string"===typeof e.data?n=t.designer.loadFormJson(JSON.parse(e.data)):e.data.constructor===Object&&(n=t.designer.loadFormJson(e.data)),n&&t.designer.emitHistoryChange(),t.$message.success(t.i18nt("designer.hint.loadFormTemplateSuccess"))})).catch((function(e){t.$message.error(t.i18nt("designer.hint.loadFormTemplateFailed")+":"+e)}))})).catch((function(e){console.error(e)}))}}},H=N,B=(n("c50a"),n("2877")),V=Object(B["a"])(H,d,u,!1,null,"8683fbaa",null),z=V.exports,U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"toolbar-container"},[n("div",{staticClass:"left-toolbar"},[n("el-button",{attrs:{type:"text",disabled:e.undoDisabled,title:e.i18nt("designer.toolbar.undoHint")},on:{click:e.undoHistory}},[n("svg-icon",{attrs:{"icon-class":"undo"}})],1),n("el-button",{attrs:{type:"text",disabled:e.redoDisabled,title:e.i18nt("designer.toolbar.redoHint")},on:{click:e.redoHistory}},[n("svg-icon",{attrs:{"icon-class":"redo"}})],1),n("el-button-group",{staticStyle:{"margin-left":"20px"}},[n("el-button",{attrs:{type:"PC"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("PC")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.pcLayout")))]),n("el-button",{attrs:{type:"Pad"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("Pad")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.padLayout")))]),n("el-button",{attrs:{type:"H5"===e.layoutType?"info":""},on:{click:function(t){return e.changeLayoutType("H5")}}},[e._v(" "+e._s(e.i18nt("designer.toolbar.mobileLayout")))])],1),n("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"",title:e.i18nt("designer.toolbar.nodeTreeHint")},on:{click:e.showNodeTreeDrawer}},[n("svg-icon",{attrs:{"icon-class":"node-tree"}})],1)],1),n("el-drawer",{staticClass:"node-tree-drawer",attrs:{title:e.i18nt("designer.toolbar.nodeTreeTitle"),direction:"ltr",visible:e.showNodeTreeDrawerFlag,modal:!1,size:280,"destroy-on-close":!0},on:{"update:visible":function(t){e.showNodeTreeDrawerFlag=t}}},[n("el-tree",{ref:"nodeTree",staticClass:"node-tree",attrs:{data:e.nodeTreeData,"node-key":"id","default-expand-all":"","highlight-current":"","icon-class":"el-icon-arrow-right"},on:{"node-click":e.onNodeTreeClick}})],1),n("div",{staticClass:"right-toolbar"},[e.showToolButton("clearDesignerButton")?n("el-button",{attrs:{type:"text"},on:{click:e.clearFormWidget}},[n("i",{staticClass:"el-icon-delete"}),e._v(e._s(e.i18nt("designer.toolbar.clear")))]):e._e(),e.showToolButton("previewFormButton")?n("el-button",{attrs:{type:"text"},on:{click:e.previewForm}},[n("i",{staticClass:"el-icon-view"}),e._v(e._s(e.i18nt("designer.toolbar.preview")))]):e._e(),e.showToolButton("importJsonButton")?n("el-button",{attrs:{type:"text"},on:{click:e.importJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.importJson")))]):e._e(),e.showToolButton("exportJsonButton")?n("el-button",{attrs:{type:"text"},on:{click:e.exportJson}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportJson")))]):e._e(),e.showToolButton("exportCodeButton")?n("el-button",{attrs:{type:"text"},on:{click:e.exportCode}},[e._v(" "+e._s(e.i18nt("designer.toolbar.exportCode")))]):e._e(),e.showToolButton("generateSFCButton")?n("el-button",{attrs:{type:"text"},on:{click:e.generateSFC}},[n("svg-icon",{attrs:{"icon-class":"vue-sfc"}}),e._v(e._s(e.i18nt("designer.toolbar.generateSFC")))],1):e._e(),e._t("toolButton")],2),e.showPreviewDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.preview"),visible:e.showPreviewDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,center:"","destroy-on-close":!0,width:"75%",fullscreen:"H5"===e.layoutType},on:{"update:visible":function(t){e.showPreviewDialogFlag=t}}},[n("div",[n("div",{staticClass:"form-render-wrapper",class:["H5"===e.layoutType?"h5-layout":""]},[n("VFormRender",{ref:"preForm",attrs:{"form-json":e.formJson,"form-data":e.testFormData,"preview-state":!0,"option-data":e.testOptionData},on:{appendButtonClick:e.testOnAppendButtonClick,buttonClick:e.testOnButtonClick,formChange:e.handleFormChange}})],1)]),n("code-editor",{staticStyle:{display:"none"},model:{value:e.testFunc,callback:function(t){e.testFunc=t},expression:"testFunc"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.getFormData}},[e._v(e._s(e.i18nt("designer.hint.getFormData")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.resetForm}},[e._v(e._s(e.i18nt("designer.hint.resetForm")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.setFormDisabled}},[e._v(e._s(e.i18nt("designer.hint.disableForm")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.setFormEnabled}},[e._v(e._s(e.i18nt("designer.hint.enableForm")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showPreviewDialogFlag=!1}}},[e._v(e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showImportJsonDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.importJson"),visible:e.showImportJsonDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showImportJsonDialogFlag=t}}},[n("el-alert",{staticClass:"alert-padding",attrs:{type:"info",title:e.i18nt("designer.hint.importJsonHint"),"show-icon":""}}),n("code-editor",{attrs:{mode:"json",readonly:!1},model:{value:e.importTemplate,callback:function(t){e.importTemplate=t},expression:"importTemplate"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.doJsonImport}},[e._v(" "+e._s(e.i18nt("designer.hint.import")))]),n("el-button",{on:{click:function(t){e.showImportJsonDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))])],1)],1):e._e(),e.showExportJsonDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportJson"),visible:e.showExportJsonDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportJsonDialogFlag=t}}},[n("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.jsonContent,callback:function(t){e.jsonContent=t},expression:"jsonContent"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormJson}},[e._v("保存")]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportJsonDialogFlag=!1}}},[e._v(" 取消")])],1)],1):e._e(),e.showExportCodeDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.exportCode"),visible:e.showExportCodeDialogFlag,"show-close":!0,center:"",width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportCodeDialogFlag=t}}},[n("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},[n("el-tab-pane",{attrs:{label:"Vue",name:"vue"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.vueCode,callback:function(t){e.vueCode=t},expression:"vueCode"}})],1),n("el-tab-pane",{attrs:{label:"HTML",name:"html"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.htmlCode,callback:function(t){e.htmlCode=t},expression:"htmlCode"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-vue-btn",attrs:{type:"primary","data-clipboard-text":e.vueCode},on:{click:e.copyVueCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVueCode")))]),n("el-button",{staticClass:"copy-html-btn",attrs:{type:"primary","data-clipboard-text":e.htmlCode},on:{click:e.copyHtmlCode}},[e._v(" "+e._s(e.i18nt("designer.hint.copyHtmlCode")))]),n("el-button",{on:{click:e.saveVueCode}},[e._v(e._s(e.i18nt("designer.hint.saveVueCode")))]),n("el-button",{on:{click:e.saveHtmlCode}},[e._v(e._s(e.i18nt("designer.hint.saveHtmlCode")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportCodeDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e(),e.showFormDataDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"dialog-title-light-bg",attrs:{title:e.i18nt("designer.hint.exportFormData"),visible:e.showFormDataDialogFlag,"show-close":!0,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,"append-to-body":!0},on:{"update:visible":function(t){e.showFormDataDialogFlag=t}}},[n("div",{staticStyle:{border:"1px solid #dcdfe6"}},[n("code-editor",{attrs:{mode:"json",readonly:!0},model:{value:e.formDataJson,callback:function(t){e.formDataJson=t},expression:"formDataJson"}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-form-data-json-btn",attrs:{type:"primary","data-clipboard-text":e.formDataRawJson},on:{click:e.copyFormDataJson}},[e._v(" "+e._s(e.i18nt("designer.hint.copyFormData")))]),n("el-button",{on:{click:e.saveFormData}},[e._v(e._s(e.i18nt("designer.hint.saveFormData")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showFormDataDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)]):e._e(),e.showExportSFCDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.toolbar.generateSFC"),visible:e.showExportSFCDialogFlag,"show-close":!0,center:"",width:"65%","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showExportSFCDialogFlag=t}}},[n("el-tabs",{staticClass:"no-box-shadow no-padding",attrs:{type:"border-card"},model:{value:e.activeSFCTab,callback:function(t){e.activeSFCTab=t},expression:"activeSFCTab"}},[n("el-tab-pane",{attrs:{label:"Vue2",name:"vue2"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCode,callback:function(t){e.sfcCode=t},expression:"sfcCode"}})],1),n("el-tab-pane",{attrs:{label:"Vue3",name:"vue3"}},[n("code-editor",{attrs:{mode:"html",readonly:!0,"user-worker":!1},model:{value:e.sfcCodeV3,callback:function(t){e.sfcCodeV3=t},expression:"sfcCodeV3"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"copy-vue2-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCode},on:{click:e.copyV2SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue2SFC")))]),n("el-button",{staticClass:"copy-vue3-sfc-btn",attrs:{type:"primary","data-clipboard-text":e.sfcCodeV3},on:{click:e.copyV3SFC}},[e._v(" "+e._s(e.i18nt("designer.hint.copyVue3SFC")))]),n("el-button",{on:{click:e.saveV2SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue2SFC")))]),n("el-button",{on:{click:e.saveV3SFC}},[e._v(e._s(e.i18nt("designer.hint.saveVue3SFC")))]),n("el-button",{attrs:{type:""},on:{click:function(t){e.showExportSFCDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.closePreview")))])],1)],1):e._e()],1)},K=[],q=n("ade3"),G=(n("e9c4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widgetEvent"},[n("el-form",{ref:"renderForm",class:["render-form",e.customClass],attrs:{"label-position":e.labelPosition,size:e.size,"label-width":e.labelWidth,"validate-on-rule-change":!1,model:e.formDataModel},nativeOn:{submit:function(e){e.preventDefault()}}},[e._l(e.widgetList,(function(t,i){return["container"===t.category?[n(e.getContainerWidgetName(t),{key:t.id,tag:"component",attrs:{widget:t,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null}})]:[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{field:t,"form-model":e.formDataModel,designer:null,"parent-list":e.widgetList,"index-of-parent-list":i,"parent-widget":null}})]]}))],2)],1)}),J=[],Y=n("2909"),X=(n("b64b"),n("d010")),Q=n.n(X),Z=(n("ddb0"),n("8bbf")),ee=n.n(Z),te=n("10ae");te.keys().map((function(e){var t=te(e).default;ee.a.component(t.name,t)}));var ne,ie=n("c029"),oe={name:"VFormRender",componentName:"VFormRender",mixins:[Q.a,C["b"]],components:Object(h["a"])({},ie["a"]),props:{formJson:Object,formData:{Object:Object,default:function(){}},optionData:{type:Object,default:function(){}},previewState:{type:Boolean,default:!1}},provide:function(){var e=this;return{refList:this.widgetRefList,sfRefList:this.subFormRefList,formConfig:this.formConfig,globalOptionData:this.optionData,getOptionData:function(){return e.optionData},globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data:function(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{}}},computed:{formConfig:function(){return this.formJsonObj.formConfig},widgetList:function(){return this.formJsonObj.widgetList},labelPosition:function(){return this.formConfig&&this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth:function(){return this.formConfig&&this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size:function(){return this.formConfig&&this.formConfig.size?this.formConfig.size:"medium"},customClass:function(){return this.formConfig&&this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created:function(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted:function(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject:function(){this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName:function(e){return e.type+"-item"},getWidgetName:function(e){return e.type+"-widget"},initLocale:function(){var e=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(e)},insertCustomStyleAndScriptNode:function(){this.formConfig&&this.formConfig.cssCode&&Object(_["f"])(this.formConfig.cssCode),this.formConfig&&this.formConfig.functions&&Object(_["g"])(this.formConfig.functions)},buildFormModel:function(e){var t=this;e&&e.length>0&&e.forEach((function(e){t.buildDataFromWidget(e)}))},buildDataFromWidget:function(e){var t=this;if("container"===e.category)if("grid"===e.type)e.cols&&e.cols.length>0&&e.cols.forEach((function(e){t.buildDataFromWidget(e)}));else if("table"===e.type)e.rows&&e.rows.length>0&&e.rows.forEach((function(e){e.cols&&e.cols.length>0&&e.cols.forEach((function(e){t.buildDataFromWidget(e)}))}));else if("tab"===e.type)e.tabs&&e.tabs.length>0&&e.tabs.forEach((function(e){e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach((function(e){t.buildDataFromWidget(e)}))}));else if("sub-form"===e.type){var n=e.options.name;if(this.formData.hasOwnProperty(n)){var i=this.formData[n];this.$set(this.formDataModel,n,Object(_["c"])(i))}else{var o={};e.options.showBlankRow?(e.widgetList.forEach((function(e){e.formItemFlag&&(o[e.options.name]=e.options.defaultValue)})),this.$set(this.formDataModel,n,[o])):this.$set(this.formDataModel,n,[])}}else"grid-col"===e.type||e.type,e.widgetList&&e.widgetList.length>0&&e.widgetList.forEach((function(e){t.buildDataFromWidget(e)}));else if(e.formItemFlag)if(this.formData.hasOwnProperty(e.options.name)){var r=this.formData[e.options.name];this.$set(this.formDataModel,e.options.name,Object(_["c"])(r))}else this.$set(this.formDataModel,e.options.name,e.options.defaultValue)},addFieldChangeEventHandler:function(){this.$off("fieldChange"),this.$on("fieldChange",(function(e,t,n,i,o){this.handleFieldDataChange(e,t,n,i,o),this.$emit("formChange",e,t,n,this.formDataModel,i,o)}))},addFieldValidateEventHandler:function(){var e=this;this.$off("fieldValidation"),this.$on("fieldValidation",(function(t){e.$refs.renderForm.validateField(t)}))},registerFormToRefList:function(){this.widgetRefList["v_form_ref"]=this},handleFieldDataChange:function(e,t,n,i,o){if(this.formConfig&&this.formConfig.onFormDataChange){var r=new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange);r.call(this,e,t,n,this.formDataModel,i,o)}},handleOnCreated:function(){if(this.formConfig&&this.formConfig.onFormCreated){var e=new Function(this.formConfig.onFormCreated);e.call(this)}},handleOnMounted:function(){if(this.formConfig&&this.formConfig.onFormMounted){var e=new Function(this.formConfig.onFormMounted);e.call(this)}},findWidgetAndSetDisabled:function(e,t){var n=this.getWidgetRef(e);n&&n.setDisabled(t)},findWidgetAndSetHidden:function(e,t){var n=this.getWidgetRef(e);n&&n.setHidden(t)},changeLanguage:function(e){Object(C["a"])(e)},getNativeForm:function(){return this.$refs["renderForm"]},getWidgetRef:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("render.hint.refNotFound")+e),n},clearFormDataModel:function(){for(var e in this.formDataModel)delete this.formDataModel[e]},setFormJson:function(e){if(e)if("string"===typeof e||e.constructor===Object){var t=null;if(t="string"===typeof e?JSON.parse(e):e,!t.formConfig||!t.widgetList)return void this.$message.error("Invalid format of form json.");this.clearFormDataModel(),this.buildFormModel(t.widgetList),this.$set(this.formJsonObj,"formConfig",t.formConfig),this._provided.formConfig=t.formConfig,this.$set(this.formJsonObj,"widgetList",t.widgetList),this.initFormObject(),this.handleOnMounted()}else this.$message.error("Set form json failed.")},reloadOptionData:function(e){var t=[];e&&"string"===typeof e?t=[e]:e&&Array.isArray(e)&&(t=Object(Y["a"])(e)),this.broadcast("FieldWidget","reloadOptionItems",[t])},getFormData:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!t)return this.formDataModel;var n=function(){},i=new window.Promise((function(e,t){n=function(n,i){i?t(i):e(n)}}));return this.$refs["renderForm"].validate((function(t){t?n(e.formDataModel):n(e.formDataModel,e.i18nt("render.hint.validationFailed"))})),i},setFormData:function(e){var t=this;Object.keys(this.formDataModel).forEach((function(n){e&&e.hasOwnProperty(n)&&(t.formDataModel[n]=Object(_["c"])(e[n]))})),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue:function(e){var t=this.getWidgetRef(e);t&&t.getValue&&t.getValue()},setFieldValue:function(e,t){var n=this.getWidgetRef(e);n&&n.setValue&&n.setValue(t)},getSubFormValues:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.subFormRefList[e];return n.getSubFormValues(t)},disableForm:function(){var e=this,t=Object.keys(this.widgetRefList);t.forEach((function(t){var n=e.getWidgetRef(t);n&&n.setDisabled&&n.setDisabled(!0)}))},enableForm:function(){var e=this,t=Object.keys(this.widgetRefList);t.forEach((function(t){var n=e.getWidgetRef(t);n&&n.setDisabled&&n.setDisabled(!1)}))},resetForm:function(){var e=this,t=Object.keys(this.subFormRefList);t.forEach((function(t){e.subFormRefList[t].resetSubForm&&e.subFormRefList[t].resetSubForm()}));var n=Object.keys(this.widgetRefList);n.forEach((function(t){var n=e.getWidgetRef(t);n&&n.resetField&&n.resetField()})),this.$nextTick((function(){e.clearValidate()}))},clearValidate:function(e){this.$refs.renderForm.clearValidate(e)},validateForm:function(){},validateFields:function(){},disableWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!0):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetDisabled(e,!0)})))},enableWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetDisabled(e,!1):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetDisabled(e,!1)})))},hideWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!0):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetHidden(e,!0)})))},showWidgets:function(e){var t=this;e&&("string"===typeof e?this.findWidgetAndSetHidden(e,!1):Array.isArray(e)&&e.forEach((function(e){t.findWidgetAndSetHidden(e,!1)})))}}},re=oe,se=(n("8bb9"),Object(B["a"])(re,G,J,!1,null,"2ed503f4",null)),ae=se.exports,le=n("9470"),ce=n("b311"),de=n.n(ce),ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vue",n=JSON.stringify(e);return"html"===t?'<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset="UTF-8">\n\t<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />\n\t<title>VForm Demo</title>\n\t<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">\n\t<link rel="stylesheet" href="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.css?t=20210720">\n\t<style type="text/css">\n\t</style>\n</head>\n<body>\n\n <div id="app">\n\t <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n\t <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n\n<script type="text/javascript">\n if (!!window.ActiveXObject || "ActiveXObject" in window) { //IE load polyfill.js for Promise\n var scriptEle = document.createElement("script");\n scriptEle.type = "text/javascript";\n scriptEle.src = "https://cdn.bootcss.com/babel-polyfill/6.23.0/polyfill.min.js"\n document.body.appendChild(scriptEle)\n }\n<\/script>\n<script src="https://unpkg.com/vue/dist/vue.js"><\/script>\n<script src="https://unpkg.com/element-ui/lib/index.js"><\/script>\n<script src="https://ks3-cn-beijing.ksyun.com/vform2021/VFormRender.umd.min.js?t=20210720"><\/script>\n<script>\n\tnew Vue({\n el: \'#app\',\n data: {\n formJson: '.concat(n,",\n formData: {},\n optionData: {}\n },\n methods: {\n submitForm: function() {\n this.$refs.vFormRef.getFormData().then( function(formData) {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch( function(error) {\n // Form Validation Failed\n alert(error)\n })\n }\n }\n\t});\n<\/script>\n</body>\n</html>"):'<template>\n <div>\n <v-form-render :form-json="formJson" :form-data="formData" :option-data="optionData" ref="vFormRef">\n </v-form-render>\n <el-button type="primary" @click="submitForm">Submit</el-button>\n </div>\n</template>\n<script>\n export default {\n data() {\n return {\n formJson: '.concat(n,",\n formData: {},\n optionData: {}\n }\n },\n methods: {\n submitForm() {\n this.$refs.vFormRef.getFormData().then(formData => {\n // Form Validation OK\n alert( JSON.stringify(formData) )\n }).catch(error => {\n // Form Validation failed\n this.$message.error(error)\n })\n }\n }\n }\n<\/script>")},he=(n("a15b"),n("99af"),n("71bc")),fe=n("01ea"),pe={html:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"separate",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},js:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0},css:{indent_size:"2",indent_char:" ",max_preserve_newlines:"-1",preserve_newlines:!1,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"end-expand",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!0,end_with_newline:!0,wrap_line_length:"110",indent_inner_html:!0,comma_first:!1,e4x:!0,indent_empty_lines:!0}};function ge(e){ne?e(ne):Object(_["k"])(fe["b"],(function(){ne=beautifier,e(ne)}))}var me=function(e,t){var n=[],i=[],o=[],r=[];Object(_["o"])(t,(function(s){Object(he["b"])(e,t,n)(s),Object(he["d"])(e,t,i)(s),Object(he["c"])(e,t,o)(s),Object(he["e"])(e,t,r)(s)}));var s=Object(he["a"])(e,t),a=" import { defineComponent, toRefs, reactive, getCurrentInstance } from 'vue'\n \n export default defineComponent({\n components: {},\n props: {},\n setup() {\n const state = reactive({\n ".concat(e.modelName,": {\n ").concat(n.join("\n"),"\n },\n \n ").concat(e.rulesName,": {\n ").concat(i.join("\n"),"\n },\n \n ").concat(s.join("\n"),"\n \n ").concat(o.join("\n"),"\n \n ").concat(r.join("\n"),"\n })\n \n const instance = getCurrentInstance()\n \n const submitForm = () => {\n instance.ctx.$refs['vForm'].validate(valid => {\n if (!valid) return\n \n //TODO: 提交表单\n })\n }\n \n const resetForm = () => {\n instance.ctx.$refs['vForm'].resetFields()\n }\n \n return {\n ...toRefs(state),\n submitForm,\n resetForm\n }\n }\n })");return a};function be(e,t){var n=e.options,i=[];return t&&i.push(t),n.customClass&&n.customClass.length>0&&i.push(n.customClass.join(" ")),i.length>0?'class="'.concat(i.join(" "),'"'):""}var ve={grid:function(e,t){var n=be(e),i="<el-row ".concat(n,">\n").concat(e.cols.map((function(e){var n=e.options,i=n.responsive?"":':span="'.concat(n.span,'"'),o=n.responsive?':md="'.concat(n.md,'"'):"",r=n.responsive?':sm="'.concat(n.sm,'"'):"",s=n.responsive?':xs="'.concat(n.xs,'"'):"",a=n.offset?':offset="'.concat(n.offset,'"'):"",l=n.push?':push="'.concat(n.push,'"'):"",c=n.pull?':pull="'.concat(n.pull,'"'):"",d=be(e,"grid-cell");return"<el-col ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c," ").concat(d,">\n ").concat(e.widgetList.map((function(e){return"container"===e.category?we(e,t):ke(e,t)})).join(""),"\n </el-col>")})).join(""),"\n</el-row>");return i},table:function(e,t){var n=be(e,"table-layout"),i='<div class="table-container">\n <table '.concat(n,"><tbody>\n ").concat(e.rows.map((function(e){return"<tr>".concat(e.cols.filter((function(e){return!e.merged})).map((function(e){var n=e.options,i=be(e,"table-cell"),o=isNaN(n.colspan)||1===n.colspan?"":'colspan="'.concat(n.colspan,'"'),r=isNaN(n.rowspan)||1===n.rowspan?"":'rowspan="'.concat(n.rowspan,'"'),s=[];n.cellWidth&&s.push("width: "+n.cellWidth+" !important"),n.cellHeight&&s.push("height: "+n.cellHeight+" !important");var a=s.length>0?'style="'.concat(s.join(";"),'"'):"";return"<td ".concat(i," ").concat(o," ").concat(r," ").concat(a,">").concat(e.widgetList.map((function(e){return"container"===e.category?we(e,t):ke(e,t)})).join(""),"\n </td>")})).join(""),"</tr>")})).join(""),"\n </tbody></table>\n</div>");return i},tab:function(e,t){var n=be(e),i=e.tabs&&e.tabs.length>0?'v-model="'.concat(e.options.name,'ActiveTab"'):"",o='<div class="tab-container">\n <el-tabs '.concat(i,' type="').concat(e.displayType,'" ').concat(n,">\n ").concat(e.tabs.map((function(e){var n=e.options,i=!0===n.disabled?"disabled":"";return'<el-tab-pane name="'.concat(n.name,'" label="').concat(n.label,'" ').concat(i,">\n ").concat(e.widgetList.map((function(e){return"container"===e.category?we(e,t):ke(e,t)})).join(""),"</el-tab-pane>")})).join(""),"\n </el-tabs>\n</div>");return o},"sub-form":function(e,t){}};function we(e,t){return ve[e.type]?ve[e.type](e,t):null}function ye(e,t){var n=e.options;return{vModel:'v-model="'.concat(t.modelName,".").concat(n.name,'"'),readonly:n.readonly?'readonly="true"':"",disabled:n.disabled?':disabled="true"':"",size:n.size?'size="'.concat(n.size,'"'):"",type:n.type?'type="'.concat("number"===n.type?"text":n.type,'"'):"",showPassword:n.showPassword?':show-password="'.concat(n.showPassword,'"'):"",placeholder:n.placeholder?'placeholder="'.concat(n.placeholder,'"'):"",rows:Object(_["i"])(n.rows)&&!isNaN(n.rows)?'rows="'.concat(n.rows,'"'):"",clearable:n.clearable?"clearable":"",minlength:Object(_["i"])(n.minLength)&&!isNaN(n.minLength)?':minlength="'.concat(n.minLength,'"'):"",maxlength:Object(_["i"])(n.maxLength)&&!isNaN(n.maxLength)?':maxlength="'.concat(n.maxLength,'"'):"",showWordLimit:n.showWordLimit?':show-word-limit="true"':"",prefixIcon:n.prefixIcon?'prefix-icon="'.concat(n.prefixIcon,'"'):"",suffixIcon:n.suffixIcon?'suffix-icon="'.concat(n.suffixIcon,'"'):"",controlsPosition:"right"===n.controlsPosition?'controls-position="right"':"",min:Object(_["i"])(n.min)&&!isNaN(n.min)?':min="'.concat(n.min,'"'):"",max:Object(_["i"])(n.max)&&!isNaN(n.max)?':max="'.concat(n.max,'"'):"",precision:Object(_["i"])(n.precision)&&!isNaN(n.precision)?':precision="'.concat(n.precision,'"'):"",step:Object(_["i"])(n.step)&&!isNaN(n.step)?':step="'.concat(n.step,'"'):"",filterable:n.filterable?"filterable":"",allowCreate:n.allowCreate?"allow-create":"",defaultFirstOption:n.filterable&&n.allowCreate?"default-first-option":"",multiple:n.multiple?"multiple":"",multipleLimit:!isNaN(n.multipleLimit)&&n.multipleLimit>0?':multiple-limit="'.concat(n.multipleLimit,'"'):"",automaticDropdown:n.automaticDropdown?"automatic-dropdown":"",remote:n.remote?"remote":"",format:n.format?'format="'.concat(n.format,'"'):"",valueFormat:n.valueFormat?'value-format="'.concat(n.valueFormat,'"'):"",editable:n.editable?':editable="'.concat(n.editable,'"'):"",startPlaceholder:n.startPlaceholder?'start-placeholder="'.concat(n.startPlaceholder,'"'):"",endPlaceholder:n.endPlaceholder?'end-placeholder="'.concat(n.endPlaceholder,'"'):"",activeText:n.activeText?'active-text="'.concat(n.activeText,'"'):"",inactiveText:n.inactiveText?'inactive-text="'.concat(n.inactiveText,'"'):"",activeColor:n.activeColor?'active-color="'.concat(n.activeColor,'"'):"",inactiveColor:n.inactiveColor?'inactive-color="'.concat(n.inactiveColor,'"'):"",switchWidth:isNaN(n.switchWidth)||40===n.switchWidth?"":':width="'.concat(n.switchWidth,'"'),rateMax:isNaN(n.max)||5===n.max?"":':max="'.concat(n.max,'"'),lowThreshold:isNaN(n.lowThreshold)||2===n.lowThreshold?"":':low-threshold="'.concat(n.lowThreshold,'"'),highThreshold:isNaN(n.highThreshold)||4===n.highThreshold?"":':high-threshold="'.concat(n.highThreshold,'"'),allowHalf:n.allowHalf?"allow-half":"",showText:n.showText?"show-text":"",showScore:n.showScore?"show-score":"",sliderMin:isNaN(n.min)||0===n.min?"":':min="'.concat(n.min,'"'),sliderMax:isNaN(n.max)||100===n.max?"":':max="'.concat(n.max,'"'),sliderStep:isNaN(n.step)||1===n.step?"":':step="'.concat(n.step,'"'),sliderRange:n.range?"range":"",sliderVertical:n.vertical?"vertical":"",uploadAction:n.uploadURL?'action="'.concat(n.uploadURL,'"'):"",withCredentials:n.withCredentials?"with-credentials":"",multipleSelect:n.multipleSelect?"multiple":"",showFileList:n.showFileList?"show-file-list":"",limit:isNaN(n.limit)?"":':limit="'.concat(n.limit,'"'),uploadTipSlotChild:n.uploadTip?'<template #tip><div class="el-upload__tip">'.concat(n.uploadTip,"</div></template>"):"",pictureUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',fileUploadIconChild:'<template #default><i class="el-icon-plus"></i></template>',buttonType:n.type?'type="'.concat(n.type):"",buttonPlain:n.plain?"plain":"",buttonRound:n.round?"round":"",buttonCircle:n.circle?"circle":"",buttonIcon:n.icon?'icon="'.concat(n.icon,'"'):"",contentPosition:n.contentPosition&&"center"!==n.contentPosition?'content-position="'.concat(n.contentPosition,'"'):"",appendButtonChild:n.appendButton?'<template #append><el-button class="'.concat(n.buttonIcon,'" ').concat(n.appendButtonDisabled?"disabled":"","></el-button></template>"):""}}function xe(e,t){var n=e.options,i=n.buttonStyle?"el-radio-button":"el-radio",o=n.border?"border":"",r='style="{display: '.concat(n.displayStyle,'}"');return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :disabled="item.disabled" ').concat(o," ").concat(r,">{{item.label}}</").concat(i,">")}function _e(e,t){var n=e.options,i=n.buttonStyle?"el-checkbox-button":"el-checkbox",o=n.border?"border":"",r='style="{display: '.concat(n.displayStyle,'}"');return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :disabled="item.disabled" ').concat(o," ").concat(r,">{{item.label}}</").concat(i,">")}function Ce(e,t){var n=e.options,i="el-option";return"<".concat(i,' v-for="(item, index) in ').concat(n.name,'Options" :key="index" :label="item.value"\n :value="item.value" :disabled="item.disabled"></').concat(i,">")}var Se={input:function(e,t){var n=ye(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.showPassword,c=n.placeholder,d=n.clearable,u=n.minlength,h=n.maxlength,f=n.showWordLimit,p=n.prefixIcon,g=n.suffixIcon,m=n.appendButtonChild;return"<el-input ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c," ").concat(d,"\n ").concat(u," ").concat(h," ").concat(f," ").concat(p," ").concat(g,">").concat(m,"</el-input>")},textarea:function(e,t){var n=ye(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.showPassword,c=n.placeholder,d=n.rows,u=n.clearable,h=n.minlength,f=n.maxlength,p=n.showWordLimit;return'<el-input type="textarea" '.concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," ").concat(c,"\n ").concat(d," ").concat(u," ").concat(h," ").concat(f," ").concat(p,"></el-input>")},number:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.type,a=n.showPassword,l=n.placeholder,c=n.controlsPosition,d=n.min,u=n.max,h=n.precision,f=n.step;return"<el-input-number ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l," ").concat(c," ").concat(d," ").concat(u," ").concat(h," ").concat(f,"></el-input-number>")},radio:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.size,s=xe(e,t);return"<el-radio-group ".concat(i," ").concat(o," ").concat(r,">").concat(s,"</el-radio-group>")},checkbox:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.size,s=_e(e,t);return"<el-checkbox-group ".concat(i," ").concat(o," ").concat(r,">").concat(s,"</el-checkbox-group>")},select:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.clearable,a=n.filterable,l=n.allowCreate,c=n.defaultFirstOption,d=n.automaticDropdown,u=n.multiple,h=n.multipleLimit,f=n.remote,p=n.placeholder,g=Ce(e,t);return"<el-select ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l," ").concat(c," ").concat(d," ").concat(u," ").concat(h," ").concat(p,"\n ").concat(f,">").concat(g,"</el-select>")},time:function(e,t){var n=ye(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.placeholder,l=n.clearable,c=n.format,d=n.editable;return"<el-input ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(c,'\n value-format="HH:mm:ss" ').concat(a," ").concat(l," ").concat(d,"></el-input>")},"time-range":function(e,t){var n=ye(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.startPlaceholder,l=n.endPlaceholder,c=n.clearable,d=n.format,u=n.editable;return"<el-input is-range ".concat(i,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(d,'\n value-format="HH:mm:ss" ').concat(a," ").concat(l," ").concat(c," ").concat(u,"></el-input>")},date:function(e,t){var n=ye(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.placeholder,c=n.clearable,d=n.format,u=n.valueFormat,h=n.editable;return"<el-input ".concat(i," ").concat(a,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(d,"\n ").concat(u," ").concat(l," ").concat(c," ").concat(h,"></el-input>")},"date-range":function(e,t){var n=ye(e,t),i=n.vModel,o=n.readonly,r=n.disabled,s=n.size,a=n.type,l=n.startPlaceholder,c=n.endPlaceholder,d=n.clearable,u=n.format,h=n.valueFormat,f=n.editable;return"<el-input is-range ".concat(i," ").concat(a,' class="full-width-input" ').concat(o," ").concat(r," ").concat(s," ").concat(u,"\n ").concat(h," ").concat(l," ").concat(c," ").concat(d," ").concat(f,"></el-input>")},switch:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.activeText,s=n.inactiveText,a=n.activeColor,l=n.inactiveColor,c=n.switchWidth;return"<el-switch ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c,"></el-switch>")},rate:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.rateMax,s=n.lowThreshold,a=n.highThreshold,l=n.allowHalf,c=n.showText,d=n.showScore;return"<el-rate ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c," ").concat(d,"></el-rate>")},color:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.size;return"<el-color-picker ".concat(i," ").concat(o," ").concat(r,"></el-color-picker>")},slider:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.sliderMin,s=n.sliderMax,a=n.sliderStep,l=n.sliderRange,c=n.sliderVertical;return"<el-slider ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l,"\n ").concat(c,"></el-slider>")},"picture-upload":function(e,t){var n=ye(e,t),i=(n.vModel,n.disabled),o=n.uploadAction,r=n.withCredentials,s=n.multipleSelect,a=n.showFileList,l=n.limit,c=n.uploadTipSlotChild,d=n.pictureUploadIconChild,u=e.options;return'<el-upload :file-list="'.concat(u.name,'FileList" :headers="').concat(u.name,'UploadHeaders" :data="').concat(u.name,'UploadData" \n ').concat(i," ").concat(o,' list-type="picture-card" ').concat(r," ").concat(s," ").concat(a," \n ").concat(l,">").concat(c," ").concat(d,"</el-upload>")},"file-upload":function(e,t){var n=ye(e,t),i=(n.vModel,n.disabled),o=n.uploadAction,r=n.withCredentials,s=n.multipleSelect,a=n.showFileList,l=n.limit,c=n.uploadTipSlotChild,d=n.fileUploadIconChild,u=e.options;return'<el-upload :file-list="'.concat(u.name,'FileList" :headers="').concat(u.name,'UploadHeaders" :data="').concat(u.name,'UploadData" \n ').concat(i," ").concat(o,' list-type="picture-card" ').concat(r," ").concat(s," ").concat(a," \n ").concat(l,">").concat(c," ").concat(d,"</el-upload>")},"rich-editor":function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.placeholder;return"<vue-editor ".concat(i," ").concat(o," ").concat(r,"></vue-editor>")},cascader:function(e,t){var n=ye(e,t),i=n.vModel,o=n.disabled,r=n.size,s=n.clearable,a=n.filterable,l=n.placeholder,c=e.options,d=':options="'.concat(c.name,'Options"');return"<el-cascader ".concat(i,' class="full-width-input" ').concat(d," ").concat(o," ").concat(r," ").concat(s,"\n ").concat(a," ").concat(l,"></el-cascader>")},"static-text":function(e,t){return"<div>".concat(e.options.textContent,"</div>")},"html-text":function(e,t){return'<div v-html="'.concat(e.options.htmlContent,'"></div>')},button:function(e,t){var n=ye(e,t),i=n.buttonType,o=n.buttonPlain,r=n.buttonRound,s=n.buttonCircle,a=n.buttonIcon,l=n.disabled;return"<el-button ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a,"\n ").concat(l,">").concat(e.options.label,"</el-button>")},divider:function(e,t){var n=ye(e,t),i=n.contentPosition;return'<el-divider direction="horizontal" '.concat(i,"></el-divider>")}};function ke(e,t){var n=e.options,i=n.labelHidden?"":n.label,o=n.labelHidden?'label-width="0"':n.labelWidth?'label-width="'.concat(n.labelWidth,'px"'):"",r=n.labelTooltip?'title="'.concat(n.labelTooltip,'"'):"",s='prop="'.concat(n.name,'"'),a=[];n.required&&a.push("required"),n.customClass&&n.customClass.length>0&&a.push(n.customClass.join(" ")),n.labelAlign?"label-left-align"!==n.labelAlign&&a.push(n.labelAlign):e.formItemFlag&&"label-left-align"!==t.labelAlign&&a.push(t.labelAlign),e.formItemFlag||a.push("static-content-item");var l=a.length>0?'class="'.concat(a.join(" "),'"'):"",c='<template #label><span class="custom-label">'.concat("front"===n.labelIconPosition?n.labelTooltip?'<el-tooltip content="'.concat(n.labelTooltip,'" effect="light"><i class="').concat(n.labelIconClass,'"></i></el-tooltip>').concat(n.label):'<i class="'.concat(n.labelIconClass,'"></i>').concat(n.label):n.labelTooltip?"".concat(n.label,'<el-tooltip content="').concat(n.labelTooltip,'" effect="light"><i class="').concat(n.labelIconClass,'"></i></el-tooltip>'):"".concat(n.label,'<i class="').concat(n.labelIconClass,'"></i>'),"\n</span></template>");!n.labelIconClass&&(c="");var d=Se[e.type]?Se[e.type](e,t):null,u=!!e.formItemFlag,h=n.hidden?'v-show="false"':"";return u?'<el-form-item label="'.concat(i,'" ').concat(o," ").concat(r," ").concat(s," ").concat(l,">\n ").concat(c,"\n ").concat(d,"\n</el-form-item>"):"<div ".concat(l," ").concat(h,">").concat(d,"</div>")}function Me(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n?"@submit.prevent":"@submit.native.prevent",o=[];t.forEach((function(t){"container"===t.category?o.push(we(t,e)):o.push(ke(t,e))}));var r=' <el-form :model="'.concat(e.modelName,'" ref="').concat(e.refName,'" :rules="').concat(e.rulesName,'"\n label-position="').concat(e.labelPosition,'" label-width="').concat(e.labelWidth,'px" size="').concat(e.size||"medium",'"\n ').concat(i,">\n ").concat(o?o.join("\n"):"","\n</el-form>");return r}var Ee,$e=function(e){var t=' .el-input-number.full-width-input, .el-cascader.full-width-input {\n width: 100% !important;\n }\n \n .el-form-item--medium {\n .el-radio {\n line-height: 36px !important;\n }\n \n .el-rate{\n margin-top: 8px;\n }\n }\n\n .el-form-item--small {\n .el-radio {\n line-height: 32px !important;\n }\n \n .el-rate{\n margin-top: 6px;\n }\n }\n\n .el-form-item--mini {\n .el-radio {\n line-height: 28px !important;\n }\n \n .el-rate{\n margin-top: 4px;\n }\n }\n \n .clear-fix:before, .clear-fix:after {\n display: table;\n content: "";\n }\n\n .clear-fix:after {\n clear: both;\n }\n\n .float-right {\n float: right;\n }\n\n'.concat(e.cssCode);return t},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=" div.table-container {\n table.table-layout {\n width: 100%;\n table-layout: fixed;\n border-collapse: collapse;\n \n td.table-cell {\n display: table-cell;\n height: 36px;\n border: 1px solid #e1e2e3;\n }\n }\n }\n \n div.tab-container {\n }\n \n .label-left-align ".concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: left;\n }\n\n .label-center-align ").concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: center;\n }\n\n .label-right-align ").concat(t?":deep(.el-form-item__label)":"::v-deep .el-form-item__label"," {\n text-align: right;\n }\n \n .custom-label {\n }\n \n .static-content-item {\n min-height: 20px;\n display: flex;\n align-items: center;\n\n ").concat(t?":deep(.el-divider--horizontal)":"::v-deep .el-divider--horizontal"," {\n margin: 0;\n }\n }");return n},Oe=function(e,t){ve[e]=t},Te=function(e,t){Se[e]=t},Re=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n.html(Me(e,t,i),pe.html),r=n.js(i?me(e,t):Object(he["f"])(e,t),pe.js),s=n.css($e(e),pe.css),a=n.css(Le(e,i),pe.css);return"\x3c!-- \nCodes Generated By VForm:\nhttps://www.vform666.com\n--\x3e\n\n<template>\n".concat(o,"\n</template>\n\n<script>\n").concat(r,'\n<\/script>\n\n<style lang="scss">\n').concat(s,'\n</style>\n\n<style lang="scss" scoped>\n').concat(a,"\n</style>")},Ae=(n("21a6"),Ee={name:"ToolbarPanel",mixins:[C["b"]],components:{VFormRender:ae,CodeEditor:le["a"],Clipboard:de.a},props:{designer:Object,jsonIsShow:{type:Boolean,default:!1}},inject:["getDesignerConfig"],watch:{jsonIsShow:function(e){this.showExportJsonDialogFlag=e}},data:function(){return{designerConfig:this.getDesignerConfig(),showPreviewDialogFlag:!1,showImportJsonDialogFlag:!1,showExportJsonDialogFlag:!1,showExportCodeDialogFlag:!1,showFormDataDialogFlag:!1,showExportSFCDialogFlag:!1,showNodeTreeDrawerFlag:!1,nodeTreeData:[],testFunc:"",importTemplate:"",jsonContent:"",jsonRawContent:"",formDataJson:"",formDataRawJson:"",vueCode:"",htmlCode:"",sfcCode:"",sfcCodeV3:"",activeCodeTab:"vue",activeSFCTab:"vue2",testFormData:{select62173:2},testOptionData:{select62173:[{label:"01",value:1},{label:"22",value:2},{label:"333",value:3}]}}},computed:{formJson:function(){return{widgetList:this.designer.widgetList,formConfig:this.designer.formConfig}},undoDisabled:function(){return!this.designer.undoEnabled()},redoDisabled:function(){return!this.designer.redoEnabled()},layoutType:function(){return this.designer.getLayoutType()}}},Object(q["a"])(Ee,"watch",{"designer.widgetList":{deep:!0,handler:function(e){}}}),Object(q["a"])(Ee,"methods",{showToolButton:function(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},buildTreeNodeOfWidget:function(e,t){var n=this,i={id:e.id,label:e.options.label||e.type};t.push(i),void 0!==e.category&&(i.children=[],"grid"===e.type?e.cols.map((function(t){var o={id:t.id,label:t.options.name||e.type,children:[]};i.children.push(o),t.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))})):"table"===e.type?e.rows.map((function(e){var t={id:e.id,label:"table-row",selectable:!1,children:[]};i.children.push(t),e.cols.map((function(e){if(!e.merged){var i=t.children,o={id:e.id,label:"table-cell",children:[]};i.push(o),e.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))}}))})):"tab"===e.type?e.tabs.map((function(t){var o={id:t.id,label:t.options.name||e.type,selectable:!1,children:[]};i.children.push(o),t.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,o.children)}))})):("sub-form"===e.type||"container"===e.category)&&e.widgetList.map((function(e){n.buildTreeNodeOfWidget(e,i.children)})))},refreshNodeTree:function(){var e=this;this.nodeTreeData.length=0,this.designer.widgetList.forEach((function(t){e.buildTreeNodeOfWidget(t,e.nodeTreeData)}))},showNodeTreeDrawer:function(){var e=this;this.refreshNodeTree(),this.showNodeTreeDrawerFlag=!0,this.$nextTick((function(){e.designer.selectedId&&e.$refs.nodeTree.setCurrentKey(e.designer.selectedId)}))},undoHistory:function(){this.designer.undoHistoryStep()},redoHistory:function(){this.designer.redoHistoryStep()},changeLayoutType:function(e){this.designer.changeLayoutType(e)},clearFormWidget:function(){this.designer.clearDesigner()},previewForm:function(){this.showPreviewDialogFlag=!0},saveAsFile:function(e,t){this.$emit("sendModuleJson",{formConfigJson:e,modelName:""})},vsSaveFile:function(e,t){var n={cmd:"writeFile",data:{fileName:e,code:t}};window.parent.postMessage(n,"*")},importJson:function(){this.importTemplate=JSON.stringify(this.designer.getImportTemplate(),null," "),this.showImportJsonDialogFlag=!0},doJsonImport:function(){try{var e=JSON.parse(this.importTemplate);this.designer.loadFormJson(e),this.showImportJsonDialogFlag=!1,this.$message.success(this.i18nt("designer.hint.importJsonSuccess")),this.designer.emitHistoryChange(),this.designer.emitEvent("form-json-imported",[])}catch(t){this.$message.error(t+"")}},exportJson:function(){var e=Object(_["c"])(this.designer.widgetList),t=Object(_["c"])(this.designer.formConfig);this.jsonContent=JSON.stringify({widgetList:e,formConfig:t},null," "),this.jsonRawContent=JSON.stringify({widgetList:e,formConfig:t}),this.showExportJsonDialogFlag=!0},copyFormJson:function(e){Object(_["b"])(this.jsonRawContent,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormJson:function(){this.saveAsFile(this.jsonContent,"vform".concat(Object(_["d"])(),".json"))},exportCode:function(){this.vueCode=ue(this.formJson),this.htmlCode=ue(this.formJson,"html"),this.showExportCodeDialogFlag=!0},copyVueCode:function(e){Object(_["b"])(this.vueCode,e,this.$message,this.i18nt("designer.hint.copyVueCodeSuccess"),this.i18nt("designer.hint.copyVueCodeFail"))},copyHtmlCode:function(e){Object(_["b"])(this.htmlCode,e,this.$message,this.i18nt("designer.hint.copyHtmlCodeSuccess"),this.i18nt("designer.hint.copyHtmlCodeFail"))},saveVueCode:function(){this.saveAsFile(this.vueCode,"vform".concat(Object(_["d"])(),".vue"))},saveHtmlCode:function(){this.saveAsFile(this.htmlCode,"vform".concat(Object(_["d"])(),".html"))},generateSFC:function(){var e=this;ge((function(t){e.sfcCode=Re(e.designer.formConfig,e.designer.widgetList,t),e.sfcCodeV3=Re(e.designer.formConfig,e.designer.widgetList,t,!0),e.showExportSFCDialogFlag=!0}))},copyV2SFC:function(e){Object(_["b"])(this.sfcCode,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},copyV3SFC:function(e){Object(_["b"])(this.sfcCodeV3,e,this.$message,this.i18nt("designer.hint.copySFCSuccess"),this.i18nt("designer.hint.copySFCFail"))},saveV2SFC:function(){this.saveAsFile(this.sfcCode,"vformV2-".concat(Object(_["d"])(),".vue"))},saveV3SFC:function(){this.saveAsFile(this.sfcCodeV3,"vformV3-".concat(Object(_["d"])(),".vue"))},getFormData:function(){var e=this;this.$refs["preForm"].getFormData().then((function(t){e.formDataJson=JSON.stringify(t,null," "),e.formDataRawJson=JSON.stringify(t),e.showFormDataDialogFlag=!0})).catch((function(t){e.$message.error(t)}))},copyFormDataJson:function(e){Object(_["b"])(this.formDataRawJson,e,this.$message,this.i18nt("designer.hint.copyJsonSuccess"),this.i18nt("designer.hint.copyJsonFail"))},saveFormData:function(){this.saveAsFile(this.htmlCode,"formData".concat(Object(_["d"])(),".json"))},resetForm:function(){this.$refs["preForm"].resetForm()},setFormDisabled:function(){this.$refs["preForm"].disableForm()},setFormEnabled:function(){this.$refs["preForm"].enableForm()},handleFormChange:function(e,t,n,i){},testOnAppendButtonClick:function(e){console.log("test",e)},testOnButtonClick:function(e){console.log("test",e)},findWidgetById:function(e){var t=null;return Object(_["m"])(this.designer.widgetList,(function(n){n.id===e&&(t=n)})),t},onNodeTreeClick:function(e,t,n){if(void 0===e.selectable||e.selectable){var i=e.id,o=this.findWidgetById(i);o&&this.designer.setSelected(o)}else this.$message.info(this.i18nt("designer.hint.currentNodeCannotBeSelected"))}}),Ee),Fe=Ae,Ie=(n("fb56"),Object(B["a"])(Fe,U,K,!1,null,"1f969a41",null)),De=Ie.exports,je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",{staticClass:"panel-container"},[n("el-tabs",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"active-name":e.activeTab}},[n("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.widgetSetting"),name:"1"}},[n("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[e.designer.selectedWidget&&!e.designer.selectedWidget.category?[n("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e(),e.designer.selectedWidget&&e.designer.selectedWidget.category?[n("el-form",{staticClass:"setting-form",attrs:{model:e.optionModel,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.widgetActiveCollapseNames,callback:function(t){e.widgetActiveCollapseNames=t},expression:"widgetActiveCollapseNames"}},[e.showCollapse(e.commonProps)?n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.commonSetting")}},[e._l(e.commonProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showCollapse(e.advProps)?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.advancedSetting")}},[e._l(e.advProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e(),e.showEventCollapse()&&e.showCollapse(e.eventProps)?n("el-collapse-item",{attrs:{name:"3",title:e.i18nt("designer.setting.eventSetting")}},[e._l(e.eventProps,(function(t,i){return[e.hasPropEditor(i,t)?n(e.getPropEditor(i,t),{tag:"component",attrs:{designer:e.designer,"selected-widget":e.selectedWidget,"option-model":e.optionModel}}):e._e()]}))],2):e._e()],1)],1)]:e._e()],2)],1),e.designer?n("el-tab-pane",{attrs:{label:e.i18nt("designer.hint.formSetting"),name:"2"}},[n("el-scrollbar",{staticClass:"setting-scrollbar",style:{height:e.scrollerHeight}},[n("form-setting",{attrs:{designer:e.designer,"form-config":e.formConfig}})],1)],1):e._e()],1),e.showWidgetEventDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editWidgetEventHandler"),visible:e.showWidgetEventDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showWidgetEventDialogFlag=t}}},[n("el-alert",{attrs:{type:"info",closable:!1,title:e.eventHeader}}),n("code-editor",{attrs:{mode:"javascript",readonly:!1},model:{value:e.eventHandlerCode,callback:function(t){e.eventHandlerCode=t},expression:"eventHandlerCode"}}),n("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showWidgetEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},Pe=[],We=(n("ac1f"),n("5319"),n("0654")),Ne={};We.keys().map((function(e){var t=We(e).default;Ne[t.name]=t}));var He=Ne,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form",{staticClass:"setting-form",attrs:{model:e.formConfig,size:"mini","label-position":"left","label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-collapse",{staticClass:"setting-collapse",model:{value:e.formActiveCollapseNames,callback:function(t){e.formActiveCollapseNames=t},expression:"formActiveCollapseNames"}},[n("el-collapse-item",{attrs:{name:"1",title:e.i18nt("designer.setting.basicSetting")}},[n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formSize")}},[n("el-select",{model:{value:e.formConfig.size,callback:function(t){e.$set(e.formConfig,"size",t)},expression:"formConfig.size"}},e._l(e.formSizes,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelPosition")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelPosition,callback:function(t){e.$set(e.formConfig,"labelPosition",t)},expression:"formConfig.labelPosition"}},[n("el-radio-button",{attrs:{label:"left"}},[e._v(e._s(e.i18nt("designer.setting.leftPosition")))]),n("el-radio-button",{attrs:{label:"top"}},[e._v(e._s(e.i18nt("designer.setting.topPosition")))])],1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelAlign")}},[n("el-radio-group",{staticClass:"radio-group-custom",model:{value:e.formConfig.labelAlign,callback:function(t){e.$set(e.formConfig,"labelAlign",t)},expression:"formConfig.labelAlign"}},[n("el-radio-button",{attrs:{label:"label-left-align"}},[e._v(e._s(e.i18nt("designer.setting.leftAlign")))]),n("el-radio-button",{attrs:{label:"label-center-align"}},[e._v(e._s(e.i18nt("designer.setting.centerAlign")))]),n("el-radio-button",{attrs:{label:"label-right-align"}},[e._v(e._s(e.i18nt("designer.setting.rightAlign")))])],1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.labelWidth")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.formConfig.labelWidth,callback:function(t){e.$set(e.formConfig,"labelWidth",t)},expression:"formConfig.labelWidth"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formCss")}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editFormCss}},[e._v(e._s(e.i18nt("designer.setting.addCss")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.customClass")}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},model:{value:e.formConfig.customClass,callback:function(t){e.$set(e.formConfig,"customClass",t)},expression:"formConfig.customClass"}},e._l(e.cssClassList,(function(e,t){return n("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.globalFunctions")}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:e.editGlobalFunctions}},[e._v(e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{"label-width":"0"}},[n("el-divider",{staticClass:"custom-divider"},[e._v(e._s(e.i18nt("designer.setting.formSFCSetting")))])],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formModelName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.modelName,callback:function(t){e.$set(e.formConfig,"modelName",t)},expression:"formConfig.modelName"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRefName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.refName,callback:function(t){e.$set(e.formConfig,"refName",t)},expression:"formConfig.refName"}})],1),n("el-form-item",{attrs:{label:e.i18nt("designer.setting.formRulesName")}},[n("el-input",{attrs:{type:"text"},model:{value:e.formConfig.rulesName,callback:function(t){e.$set(e.formConfig,"rulesName",t)},expression:"formConfig.rulesName"}})],1)],1),e.showEventCollapse()?n("el-collapse-item",{attrs:{name:"2",title:e.i18nt("designer.setting.eventSetting")}},[n("el-form-item",{attrs:{label:"onFormCreated","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormCreated")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{label:"onFormMounted","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormMounted")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1),n("el-form-item",{attrs:{label:"onFormDataChange","label-width":"150px"}},[n("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:"",round:""},on:{click:function(t){return e.editFormEventHandler("onFormDataChange")}}},[e._v(" "+e._s(e.i18nt("designer.setting.addEventHandler")))])],1)],1):e._e()],1)],1),e.showFormEventDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.editFormEventHandler"),visible:e.showFormEventDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showFormEventDialogFlag=t}}},[n("el-alert",{attrs:{type:"info",closable:!1,title:"form."+e.eventParamsMap[e.curEventName]}}),n("code-editor",{attrs:{mode:"javascript",readonly:!1},model:{value:e.formEventHandlerCode,callback:function(t){e.formEventHandlerCode=t},expression:"formEventHandlerCode"}}),n("el-alert",{attrs:{type:"info",closable:!1,title:"}"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showFormEventDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormEventHandler}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFormCssDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.formCss"),visible:e.showEditFormCssDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFormCssDialogFlag=t}}},[n("code-editor",{attrs:{mode:"css",readonly:!1},model:{value:e.formCssCode,callback:function(t){e.formCssCode=t},expression:"formCssCode"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditFormCssDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveFormCss}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e(),e.showEditFunctionsDialogFlag?n("el-dialog",{directives:[{name:"dialog-drag",rawName:"v-dialog-drag"}],staticClass:"small-padding-dialog",attrs:{title:e.i18nt("designer.setting.globalFunctions"),visible:e.showEditFunctionsDialogFlag,"show-close":!0,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0},on:{"update:visible":function(t){e.showEditFunctionsDialogFlag=t}}},[n("code-editor",{attrs:{mode:"javascript",readonly:!1},model:{value:e.functionsCode,callback:function(t){e.functionsCode=t},expression:"functionsCode"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showEditFunctionsDialogFlag=!1}}},[e._v(" "+e._s(e.i18nt("designer.hint.cancel")))]),n("el-button",{attrs:{type:"primary"},on:{click:e.saveGlobalFunctions}},[e._v(" "+e._s(e.i18nt("designer.hint.confirm")))])],1)],1):e._e()],1)},Ve=[],ze=(n("466d"),n("1276"),n("498a"),n("a434"),n("a630"),n("3ca3"),n("6062"),{name:"form-setting",mixins:[C["b"]],components:{CodeEditor:le["a"]},props:{designer:Object,formConfig:Object},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),formActiveCollapseNames:["1","2"],formSizes:[{label:"default",value:""},{label:"large",value:"large"},{label:"medium",value:"medium"},{label:"small",value:"small"},{label:"mini",value:"mini"}],showEditFormCssDialogFlag:!1,formCssCode:"",cssClassList:[],showEditFunctionsDialogFlag:!1,functionsCode:"",showFormEventDialogFlag:!1,formEventHandlerCode:"",curEventName:"",eventParamsMap:{onFormCreated:"onFormCreated() {",onFormMounted:"onFormMounted() {",onFormDataChange:"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"}}},created:function(){var e=this;this.designer.handleEvent("form-json-imported",(function(){e.formCssCode=e.formConfig.cssCode,Object(_["f"])(e.formCssCode),e.extractCssClass(),e.designer.emitEvent("form-css-updated",Object(_["c"])(e.cssClassList))}))},mounted:function(){var e=this;setTimeout((function(){e.formCssCode=e.formConfig.cssCode,Object(_["f"])(e.formCssCode),e.extractCssClass(),e.designer.emitEvent("form-css-updated",Object(_["c"])(e.cssClassList))}),1200)},methods:{showEventCollapse:function(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},editFormCss:function(){this.formCssCode=this.designer.formConfig.cssCode,this.showEditFormCssDialogFlag=!0},extractCssClass:function(){var e=/\..*{/g,t=this.formCssCode.match(e),n=[];t&&t.length>0&&t.forEach((function(e){var t=e.split(",");t.length>0&&t.forEach((function(e){var t=e.trim();if(-1!==t.indexOf(".",1)){var i=t.substring(t.indexOf(".")+1,t.indexOf(".",1));i&&n.push(i.trim())}else if(-1!==t.indexOf(" ")){var o=t.substring(t.indexOf(".")+1,t.indexOf(" "));o&&n.push(o.trim())}else if(-1!==t.indexOf("{")){var r=t.substring(t.indexOf(".")+1,t.indexOf("{"));n.push(r.trim())}else{var s=t.substring(t.indexOf(".")+1);n.push(s.trim())}}))})),this.cssClassList.splice(0,this.cssClassList.length),this.cssClassList=Array.from(new Set(n))},saveFormCss:function(){this.extractCssClass(),this.designer.formConfig.cssCode=this.formCssCode,Object(_["f"])(this.formCssCode),this.showEditFormCssDialogFlag=!1,this.designer.emitEvent("form-css-updated",Object(_["c"])(this.cssClassList))},editGlobalFunctions:function(){this.functionsCode=this.designer.formConfig.functions,this.showEditFunctionsDialogFlag=!0},saveGlobalFunctions:function(){this.designer.formConfig.functions=this.functionsCode,Object(_["g"])(this.functionsCode),this.showEditFunctionsDialogFlag=!1},editFormEventHandler:function(e){this.curEventName=e,this.formEventHandlerCode=this.formConfig[e],this.showFormEventDialogFlag=!0},saveFormEventHandler:function(){this.formConfig[this.curEventName]=this.formEventHandlerCode,this.showFormEventDialogFlag=!1}}}),Ue=ze,Ke=(n("81e6"),Object(B["a"])(Ue,Be,Ve,!1,null,"26c8e372",null)),qe=Ke.exports,Ge={name:"name-editor",label:"label-editor",labelAlign:"labelAlign-editor",type:"type-editor",defaultValue:"defaultValue-editor",placeholder:"placeholder-editor",startPlaceholder:"startPlaceholder-editor",endPlaceholder:"endPlaceholder-editor",columnWidth:"columnWidth-editor",size:"size-editor",showStops:"showStops-editor",displayStyle:"displayStyle-editor",buttonStyle:"buttonStyle-editor",border:"border-editor",labelWidth:"labelWidth-editor",labelHidden:"labelHidden-editor",rows:"rows-editor",required:"required-editor",validation:"validation-editor",validationHint:"validationHint-editor",readonly:"readonly-editor",disabled:"disabled-editor",hidden:"hidden-editor",clearable:"clearable-editor",editable:"editable-editor",showPassword:"showPassword-editor",textContent:"textContent-editor",htmlContent:"htmlContent-editor",format:"format-editor",valueFormat:"valueFormat-editor",filterable:"filterable-editor",allowCreate:"allowCreate-editor",remote:"remote-editor",automaticDropdown:"automaticDropdown-editor",multiple:"multiple-editor",multipleLimit:"multipleLimit-editor",contentPosition:"contentPosition-editor",optionItems:"optionItems-editor",uploadURL:"uploadURL-editor",uploadTip:"uploadTip-editor",withCredentials:"withCredentials-editor",multipleSelect:"multipleSelect-editor",limit:"limit-editor",fileMaxSize:"fileMaxSize-editor",fileTypes:"fileTypes-editor",customClass:"customClass-editor",showBlankRow:"showBlankRow-editor",showRowNumber:"showRowNumber-editor",cellWidth:"cellWidth-editor",cellHeight:"cellHeight-editor",colHeight:"colHeight-editor",gutter:"gutter-editor",responsive:"responsive-editor",span:"span-editor",offset:"offset-editor",push:"push-editor",pull:"pull-editor"},Je={min:"min-editor",max:"max-editor",precision:"precision-editor",step:"step-editor",controlsPosition:"controlsPosition-editor",minLength:"minLength-editor",maxLength:"maxLength-editor",showWordLimit:"showWordLimit-editor",prefixIcon:"prefixIcon-editor",suffixIcon:"suffixIcon-editor",switchWidth:"switchWidth-editor",activeText:"activeText-editor",inactiveText:"inactiveText-editor",activeColor:"activeColor-editor",inactiveColor:"inactiveColor-editor",lowThreshold:"lowThreshold-editor",highThreshold:"highThreshold-editor",allowHalf:"allowHalf-editor",showText:"showText-editor",showScore:"showScore-editor",range:"range-editor",vertical:"vertical-editor",plain:"plain-editor",round:"round-editor",circle:"circle-editor",icon:"icon-editor",labelIconClass:"labelIconClass-editor",labelIconPosition:"labelIconPosition-editor",labelTooltip:"labelTooltip-editor",appendButton:"appendButton-editor",appendButtonDisabled:"appendButtonDisabled-editor",buttonIcon:"buttonIcon-editor"},Ye={onCreated:"onCreated-editor",onMounted:"onMounted-editor",onClick:"onClick-editor",onInput:"onInput-editor",onChange:"onChange-editor",onFocus:"onFocus-editor",onBlur:"onBlur-editor",onRemoteQuery:"onRemoteQuery-editor",onBeforeUpload:"onBeforeUpload-editor",onUploadSuccess:"onUploadSuccess-editor",onUploadError:"onUploadError-editor",onValidate:"onValidate-editor",onSubFormRowAdd:"onSubFormRowAdd-editor",onSubFormRowInsert:"onSubFormRowInsert-editor",onSubFormRowDelete:"onSubFormRowDelete-editor",onSubFormRowChange:"onSubFormRowChange-editor"};function Xe(e,t){Ge[e]=t}function Qe(e,t){Ye[e]=t}function Ze(e,t,n){ee.a.component(t,n),Xe(e,t)}function et(e,t,n){ee.a.component(t,n),Qe(e,t)}var tt={COMMON_PROPERTIES:Ge,ADVANCED_PROPERTIES:Je,EVENT_PROPERTIES:Ye},nt=tt.COMMON_PROPERTIES,it=tt.ADVANCED_PROPERTIES,ot=tt.EVENT_PROPERTIES,rt={name:"SettingPanel",componentName:"SettingPanel",mixins:[C["b"]],components:Object(h["a"])({CodeEditor:le["a"],FormSetting:qe},He),props:{designer:Object,selectedWidget:Object,formConfig:Object},inject:["getDesignerConfig"],data:function(){return{designerConfig:this.getDesignerConfig(),scrollerHeight:0,activeTab:"2",widgetActiveCollapseNames:["1","3"],formActiveCollapseNames:["1","2"],commonProps:nt,advProps:it,eventProps:ot,showWidgetEventDialogFlag:!1,eventHandlerCode:"",curEventName:"",eventHeader:"",subFormChildWidgetFlag:!1}},computed:{optionModel:{get:function(){return this.selectedWidget.options},set:function(e){this.selectedWidget.options=e}}},watch:{"designer.selectedWidget":{handler:function(e){e&&(this.activeTab="1")}},"selectedWidget.options":{deep:!0,handler:function(){this.designer.saveCurrentHistoryStep()}},formConfig:{deep:!0,handler:function(){this.designer.saveCurrentHistoryStep()}}},created:function(){var e=this;this.$on("editEventHandler",(function(e,t){this.editEventHandler(e,t)})),this.designer.handleEvent("form-css-updated",(function(t){e.designer.setCssClassList(t)}))},mounted:function(){var e=this;this.designer.selectedWidget?this.activeTab="1":this.activeTab="2",this.scrollerHeight=window.innerHeight-56-48+"px",Object(_["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56-48+"px"}))}))},methods:{showEventCollapse:function(){return void 0===this.designerConfig["eventCollapse"]||!!this.designerConfig["eventCollapse"]},hasPropEditor:function(e,t){if(!t)return!1;var n=e.replace(this.selectedWidget.type+"-","");return this.designer.hasConfig(this.selectedWidget,n)},getPropEditor:function(e,t){var n=e.replace(this.selectedWidget.type+"-",""),i="".concat(this.selectedWidget.type,"-").concat(n,"-editor");return this.$options.components[i]||this.$root.$options.components[i]?i:t},showCollapse:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)&&this.hasPropEditor(n,e[n])){t=!0;break}return t},editEventHandler:function(e,t){this.curEventName=e,this.eventHeader="".concat(this.optionModel.name,".").concat(e,"(").concat(t.join(", "),") {"),this.eventHandlerCode=this.selectedWidget.options[e]||"","onValidate"!==e||this.optionModel["onValidate"]||(this.eventHandlerCode=" /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n callback(new Error('error message')) //fail\n } else {\n callback(); //pass\n }\n */"),this.showWidgetEventDialogFlag=!0},saveEventHandler:function(){this.selectedWidget.options[this.curEventName]=this.eventHandlerCode,this.showWidgetEventDialogFlag=!1}}},st=rt,at=(n("a97b"),Object(B["a"])(st,je,Pe,!1,null,"24d49d2b",null)),lt=at.exports,ct=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-widget-container"},[n("el-form",{staticClass:"full-height-width widget-form",class:[e.customClass,e.layoutType+"-layout"],attrs:{"label-position":e.labelPosition,size:e.size,"validate-on-rule-change":!1}},[0===e.designer.widgetList.length?n("div",{staticClass:"no-widget-hint"},[e._v(e._s(e.i18nt("designer.noWidgetHint")))]):e._e(),n("draggable",e._b({attrs:{list:e.designer.widgetList,handle:".drag-handler",move:e.checkMove},on:{end:e.onDragEnd,add:e.onDragAdd,update:e.onDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:300},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.designer.widgetList,(function(t,i){return["container"===t.category?[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null}})]:[n(e.getWidgetName(t),{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.designer.widgetList,"index-of-parent-list":i,"parent-widget":null,"design-state":!0}})]]}))],2)],1)],1)],1)},dt=[],ut=n("8b30");ut.keys().map((function(e){var t=ut(e).default;ee.a.component(t.name,t)}));var ht={name:"VFormWidget",componentName:"VFormWidget",mixins:[C["b"]],components:Object(h["a"])({Draggable:p.a},ie["a"]),props:{designer:Object,formConfig:Object,optionData:{type:Object,default:function(){}}},provide:function(){var e=this;return{refList:this.widgetRefList,formConfig:this.formConfig,globalOptionData:this.optionData,getOptionData:function(){return e.optionData},globalModel:{formModel:this.formModel}}},inject:["getDesignerConfig"],data:function(){return{formModel:{},widgetRefList:{}}},computed:{labelPosition:function(){return this.designer.formConfig&&this.designer.formConfig.labelPosition?this.designer.formConfig.labelPosition:"left"},size:function(){return this.designer.formConfig&&this.designer.formConfig.size?this.designer.formConfig.size:"medium"},customClass:function(){return this.designer.formConfig.customClass||""},layoutType:function(){return this.designer.getLayoutType()}},watch:{"designer.widgetList":{deep:!0,handler:function(e){}},"designer.formConfig":{deep:!0,handler:function(e){}}},created:function(){this.designer.initDesigner(),this.designer.loadPresetCssCode(this.getDesignerConfig().presetCssCode)},mounted:function(){this.disableFirefoxDefaultDrop(),this.designer.registerFormWidget(this)},methods:{getWidgetName:function(e){return e.type+"-widget"},disableFirefoxDefaultDrop:function(){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");e&&(document.body.ondrop=function(e){e.stopPropagation(),e.preventDefault()})},onDragEnd:function(e){},onDragAdd:function(e){var t=e.newIndex;this.designer.widgetList[t]&&this.designer.setSelected(this.designer.widgetList[t]),this.designer.emitHistoryChange()},onDragUpdate:function(){this.designer.emitHistoryChange()},checkMove:function(e){return this.designer.checkWidgetMove(e)},getFormData:function(){return this.formModel},getWidgetRef:function(e,t){var n=this.widgetRefList[e];return!n&&t&&this.$message.error(this.i18nt("designer.hint.refNotFound")+e),n}}},ft=ht,pt=(n("30eb"),Object(B["a"])(ft,ct,dt,!1,null,"4ccc2876",null)),gt=pt.exports;n("fb6a");function mt(e){var t={modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:"",functions:"",layoutType:"PC",onFormCreated:"",onFormMounted:"",onFormDataChange:""};return{widgetList:[],formConfig:{cssCode:""},selectedId:null,selectedWidget:null,selectedWidgetName:null,vueInstance:e,formWidget:null,cssClassList:[],historyData:{index:-1,maxStep:20,steps:[]},initDesigner:function(){this.widgetList=[],this.formConfig=Object(_["c"])(t),console.info("%cVariantForm %cVer".concat(fe["d"]," %chttps://www.yuque.com/variantdev/vform"),"color:#409EFF;font-size: 22px;font-weight:bolder","color:#999;font-size: 12px","color:#333"),this.initHistoryData()},clearDesigner:function(e){var n=0===this.widgetList.length;this.widgetList=[],this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={},Object(_["l"])(this.formConfig,t),e||(n?this.saveCurrentHistoryStep():this.emitHistoryChange())},loadPresetCssCode:function(e){""===this.formConfig.cssCode&&e&&(this.formConfig.cssCode=e)},getLayoutType:function(){return this.formConfig.layoutType||"PC"},changeLayoutType:function(e){this.formConfig.layoutType=e},getImportTemplate:function(){return{widgetList:[],formConfig:Object(_["c"])(this.formConfig)}},loadFormJson:function(e){var t=!1;return e&&e.widgetList&&(this.widgetList=e.widgetList,t=!0),e&&e.formConfig&&(Object(_["l"])(this.formConfig,e.formConfig),t=!0),t},setSelected:function(e){e?(this.selectedWidget=e,e.id&&(this.selectedId=e.id,this.selectedWidgetName=e.options.name)):this.clearSelected()},updateSelectedWidgetNameAndRef:function(e,t,n){this.selectedWidgetName=t,n&&Object.keys(e.options).indexOf("label")>-1&&(e.options.label=n)},clearSelected:function(){this.selectedId=null,this.selectedWidgetName=null,this.selectedWidget={}},checkWidgetMove:function(e){if(e.draggedContext&&e.draggedContext.element){var t=e.draggedContext.element.category;if(e.to&&"sub-form-table"===e.to.className&&"container"===t)return!1}return!0},appendTableRow:function(e){var t=e.rows.length,n=Object(_["c"])(e.rows[e.rows.length-1]);n.id="table-row-"+Object(_["d"])(),n.merged=!1,n.cols.forEach((function(e){e.id="table-cell-"+Object(_["d"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0})),e.rows.splice(t,0,n),this.emitHistoryChange()},appendTableCol:function(e){var t=this,n=e.rows[0].cols.length;e.rows.forEach((function(e){var i=Object(_["c"])(t.getContainerByType("table-cell"));i.id="table-cell-"+Object(_["d"])(),i.options.name=i.id,i.merged=!1,i.options.colspan=1,i.options.rowspan=1,i.widgetList.length=0,e.cols.splice(n,0,i)})),this.emitHistoryChange()},insertTableRow:function(e,t,n,i,o){var r=o?t:t+1;if(!o){var s=r,a=!1;while(s<e.rows.length){if(!e.rows[s].cols[i].merged){r=s,a=!0;break}s++}a||(r=e.rows.length)}var l=Object(_["c"])(e.rows[n]);l.id="table-row-"+Object(_["d"])(),l.merged=!1,l.cols.forEach((function(e){e.id="table-cell-"+Object(_["d"])(),e.options.name=e.id,e.merged=!1,e.options.colspan=1,e.options.rowspan=1,e.widgetList.length=0})),e.rows.splice(r,0,l);var c=0;while(r<e.rows.length-1&&c<e.rows[0].cols.length){var d=e.rows[r+1].cols[c],u=d.merged;if(u){for(var h=e.rows,f={},p=null,g=r;g>=0;g--)if(!h[g].cols[c].merged&&h[g].cols[c].options.rowspan>1){p=g,f=h[g].cols[c];break}if(f.options){var m=f.options.rowspan+1;this.setPropsOfMergedRows(e.rows,p,c,f.options.colspan,m),c+=f.options.colspan}else c+=1}else c+=d.options.colspan||1}this.emitHistoryChange()},insertTableCol:function(e,t,n,i){var o=this,r=i?t:t+1;if(!i){var s=r,a=!1;while(s<e.rows[n].cols.length){if(!e.rows[n].cols[s].merged){r=s,a=!0;break}s++,a||(r=e.rows[n].cols.length)}}e.rows.forEach((function(e){var t=Object(_["c"])(o.getContainerByType("table-cell"));t.id="table-cell-"+Object(_["d"])(),t.options.name=t.id,t.merged=!1,t.options.colspan=1,t.options.rowspan=1,t.widgetList.length=0,e.cols.splice(r,0,t)}));var l=0;while(r<e.rows[0].cols.length-1&&l<e.rows.length){var c=e.rows[l].cols[r+1],d=c.merged;if(d){for(var u=e.rows[l].cols,h={},f=null,p=r;p>=0;p--)if(!u[p].merged&&u[p].options.colspan>1){f=p,h=u[p];break}if(h.options){var g=h.options.colspan+1;this.setPropsOfMergedCols(e.rows,l,f,g,h.options.rowspan),l+=h.options.rowspan}else l+=1}else l+=c.options.rowspan||1}this.emitHistoryChange()},setPropsOfMergedCols:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.colspan=i,e[r].cols[s].widgetList=[]):e[r].cols[s].options.colspan=i},setPropsOfMergedRows:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)r!==t||s!==n?(e[r].cols[s].merged=!0,e[r].cols[s].options.rowspan=o,e[r].cols[s].widgetList=[]):e[r].cols[s].options.rowspan=o},setPropsOfSplitCol:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)e[r].cols[s].merged=!1,e[r].cols[s].options.rowspan=1,e[r].cols[s].options.colspan=1},setPropsOfSplitRow:function(e,t,n,i,o){for(var r=t;r<t+o;r++)for(var s=n;s<n+i;s++)e[r].cols[s].merged=!1,e[r].cols[s].options.rowspan=1,e[r].cols[s].options.colspan=1},mergeTableCol:function(e,t,n,i,o,r){var s=o?i:i+t[i].options.colspan,a=o?i-1:i;if(o){var l=a;while(l>=0){if(!e[n].cols[l].merged){a=l;break}l--}}t[s].widgetList&&t[s].widgetList.length>0&&(t[a].widgetList&&0!==t[a].widgetList.length||(t[a].widgetList=Object(_["c"])(t[s].widgetList)));var c=1*t[s].options.colspan+1*t[a].options.colspan;this.setPropsOfMergedCols(e,n,a,c,r.options.rowspan),this.emitHistoryChange()},mergeTableWholeRow:function(e,t,n,i){for(var o=e[n].cols[0].options.rowspan,r=!1,s=1;s<e[n].cols.length;s++)if(e[n].cols[s].options.rowspan!==o){r=!0;break}if(r)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow"));else{var a=t.filter((function(e){return!e.merged&&!!e.widgetList&&e.widgetList.length>0}));a&&a.length>0&&a[0].id!==t[0].id&&(!t[0].widgetList||t[0].widgetList.length<=0)&&(t[0].widgetList=Object(_["c"])(a[0].widgetList)),this.setPropsOfMergedCols(e,n,0,t.length,t[i].options.rowspan),this.emitHistoryChange()}},mergeTableRow:function(e,t,n,i,o){var r=i?t:t+o.options.rowspan,s=i?t-1:t;if(i){var a=s;while(a>=0){if(!e[a].cols[n].merged){s=a;break}a--}}e[r].cols[n].widgetList&&e[r].cols[n].widgetList.length>0&&(e[s].cols[n].widgetList&&0!==e[s].cols[n].widgetList.length||(e[s].cols[n].widgetList=Object(_["c"])(e[r].cols[n].widgetList)));var l=1*e[r].cols[n].options.rowspan+1*e[s].cols[n].options.rowspan;this.setPropsOfMergedRows(e,s,n,o.options.colspan,l),this.emitHistoryChange()},mergeTableWholeCol:function(e,t,n,i){for(var o=e[0].cols[i].options.colspan,r=!1,s=1;s<e.length;s++)if(e[s].cols[i].options.colspan!==o){r=!0;break}if(r)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn"));else{var a=[];e.forEach((function(e){var t=e.cols[i];!t.merged&&t.widgetList&&t.widgetList.length>0&&a.push(t)}));var l=e[0].cols[i];a&&a.length>0&&a[0].id!==l.id&&(!l.widgetList||l.widgetList.length<=0)&&(l.widgetList=Object(_["c"])(a[0].widgetList)),this.setPropsOfMergedRows(e,0,i,l.options.colspan,e.length),this.emitHistoryChange()}},undoMergeTableCol:function(e,t,n,i,o){this.setPropsOfSplitCol(e,t,n,i,o),this.emitHistoryChange()},undoMergeTableRow:function(e,t,n,i,o){this.setPropsOfSplitRow(e,t,n,i,o),this.emitHistoryChange()},deleteTableWholeCol:function(e,t){var n=!0;if(e.forEach((function(t){t.cols[0].options.colspan!==e[0].cols.length&&(n=!1)})),n)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastColCannotBeDeleted"));else{for(var i=e[0].cols[t].options.colspan,o=!1,r=1;r<e.length;r++)if(e[r].cols[t].options.colspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")):(e.forEach((function(e){e.cols.splice(t,i)})),this.emitHistoryChange())}},deleteTableWholeRow:function(e,t){var n=!0;if(e[0].cols.forEach((function(t){t.options.rowspan!==e.length&&(n=!1)})),n)this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.lastRowCannotBeDeleted"));else{for(var i=e[t].cols[0].options.rowspan,o=!1,r=1;r<e[t].cols.length;r++)if(e[t].cols[r].options.rowspan!==i){o=!0;break}o?this.vueInstance.$message.info(this.vueInstance.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")):(e.splice(t,i),this.emitHistoryChange())}},getContainerByType:function(e){var t=[].concat(Object(Y["a"])(g),Object(Y["a"])(m),Object(Y["a"])(b),Object(Y["a"])(v)),n=null;return t.forEach((function(t){t.category&&t.type&&t.type===e&&(n=t)})),n},getFieldWidgetByType:function(e){var t=[].concat(Object(Y["a"])(g),Object(Y["a"])(m),Object(Y["a"])(b),Object(Y["a"])(v)),n=null;return t.forEach((function(t){!t.category&&t.type&&t.type===e&&(n=t)})),n},hasConfig:function(e,t){var n=null;return n=e.category?this.getContainerByType(e.type):this.getFieldWidgetByType(e.type),!(!n||!n.options)&&Object.keys(n.options).indexOf(t)>-1},cloneGridCol:function(e,t){var n=Object(_["c"])(this.getContainerByType("grid-col"));n.options.span=e.options.span;var i=Object(_["d"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)},cloneContainer:function(e){var t=this;if("grid"===e.type){var n=Object(_["c"])(this.getContainerByType("grid"));return n.id=n.type+Object(_["d"])(),n.options.name=n.id,e.cols.forEach((function(e){var i=Object(_["c"])(t.getContainerByType("grid-col")),o=Object(_["d"])();i.id="grid-col-"+o,i.options.name="gridCol"+o,i.options.span=e.options.span,n.cols.push(i)})),n}if("table"===e.type){var i=Object(_["c"])(this.getContainerByType("table"));return i.id=i.type+Object(_["d"])(),i.options.name=i.id,e.rows.forEach((function(e){var t=Object(_["c"])(e);t.id="table-row-"+Object(_["d"])(),t.cols.forEach((function(e){e.id="table-cell-"+Object(_["d"])(),e.options.name=e.id,e.widgetList=[]})),i.rows.push(t)})),i}return null},moveUpWidget:function(e,t){if(e){if(0===t)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveUpFirstChildHint"));var n=e[t];e.splice(t,1),e.splice(t-1,0,n)}},moveDownWidget:function(e,t){if(e){if(t===e.length-1)return void this.vueInstance.$message(this.vueInstance.i18nt("designer.hint.moveDownLastChildHint"));var n=e[t];e.splice(t,1),e.splice(t+1,0,n)}},copyNewFieldWidget:function(e){var t=Object(_["c"])(e),n=Object(_["d"])();return t.id=t.type.replace(/-/g,"")+n,t.options.name=t.id,t.options.label=t.type.toLowerCase(),delete t.displayName,t},copyNewContainerWidget:function(e){var t=Object(_["c"])(e);if(t.id=t.type.replace(/-/g,"")+Object(_["d"])(),t.options.name=t.id,"grid"===t.type){var n=Object(_["c"])(this.getContainerByType("grid-col")),i=Object(_["d"])();n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n),n=Object(_["c"])(n),i=Object(_["d"])(),n.id="grid-col-"+i,n.options.name="gridCol"+i,t.cols.push(n)}else if("table"===t.type){var o={cols:[]};o.id="table-row-"+Object(_["d"])(),o.merged=!1;var r=Object(_["c"])(this.getContainerByType("table-cell"));r.id="table-cell-"+Object(_["d"])(),r.options.name=r.id,r.merged=!1,r.options.colspan=1,r.options.rowspan=1,o.cols.push(r),t.rows.push(o)}else if("tab"===t.type){var s=Object(_["c"])(this.getContainerByType("tab-pane"));s.id="tab-pane-"+Object(_["d"])(),s.options.name="tab1",s.options.label="tab 1",t.tabs.push(s)}return delete t.displayName,t},addContainerByDbClick:function(e){var t=this.copyNewContainerWidget(e);this.widgetList.push(t),this.setSelected(t)},addFieldByDbClick:function(e){var t=this.copyNewFieldWidget(e);if(this.selectedWidget&&"tab"===this.selectedWidget.type){var n=this.selectedWidget.tabs[0];this.selectedWidget.tabs.forEach((function(e){e.options.active&&(n=e)})),n&&n.widgetList.push(t)}else this.selectedWidget&&this.selectedWidget.widgetList?this.selectedWidget.widgetList.push(t):this.widgetList.push(t);this.setSelected(t),this.emitHistoryChange()},deleteColOfGrid:function(e,t){e&&e.cols&&e.cols.splice(t,1)},addNewColOfGrid:function(e){var t=e.cols,n=Object(_["c"])(this.getContainerByType("grid-col")),i=Object(_["d"])();if(n.id="grid-col-"+i,n.options.name="gridCol"+i,t&&t.length>0){var o=0;t.forEach((function(e){o+=e.options.span})),o>=24?(console.log("列栅格之和超出24"),e.cols.push(n)):(n.options.span=24-o>12?12:24-o,e.cols.push(n))}else e.cols=[n]},addTabPaneOfTabs:function(e){var t=e.tabs,n=Object(_["c"])(this.getContainerByType("tab-pane"));n.id="tab-pane-"+Object(_["d"])(),n.options.name=n.id,n.options.label="tab "+(t.length+1),t.push(n)},deleteTabPaneOfTabs:function(e,t){e.tabs.splice(t,1)},emitEvent:function(e,t){this.vueInstance.$emit(e,t)},handleEvent:function(e,t){this.vueInstance.$on(e,(function(e){return t(e)}))},setCssClassList:function(e){this.cssClassList=e},getCssClassList:function(){return this.cssClassList},registerFormWidget:function(e){this.formWidget=e},initHistoryData:function(){this.loadFormContentFromStorage(),this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(_["c"])(this.widgetList),formConfig:Object(_["c"])(this.formConfig)}},emitHistoryChange:function(){this.historyData.index===this.historyData.maxStep-1?this.historyData.steps.shift():this.historyData.index++,this.historyData.steps[this.historyData.index]={widgetList:Object(_["c"])(this.widgetList),formConfig:Object(_["c"])(this.formConfig)},this.saveFormContentToStorage(),this.historyData.index<this.historyData.steps.length-1&&(this.historyData.steps=this.historyData.steps.slice(0,this.historyData.index+1)),console.log("history",this.historyData.index)},saveCurrentHistoryStep:function(){this.historyData.steps[this.historyData.index]=Object(_["c"])({widgetList:this.widgetList,formConfig:this.formConfig}),this.saveFormContentToStorage()},undoHistoryStep:function(){0!==this.historyData.index&&this.historyData.index--,console.log("undo",this.historyData.index),this.widgetList=Object(_["c"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(_["c"])(this.historyData.steps[this.historyData.index].formConfig)},redoHistoryStep:function(){this.historyData.index!==this.historyData.steps.length-1&&this.historyData.index++,console.log("redo",this.historyData.index),this.widgetList=Object(_["c"])(this.historyData.steps[this.historyData.index].widgetList),this.formConfig=Object(_["c"])(this.historyData.steps[this.historyData.index].formConfig)},undoEnabled:function(){return this.historyData.index>0&&this.historyData.steps.length>0},redoEnabled:function(){return this.historyData.index<this.historyData.steps.length-1},saveFormContentToStorage:function(){window.localStorage.setItem("widget__list__backup",JSON.stringify(this.widgetList)),window.localStorage.setItem("form__config__backup",JSON.stringify(this.formConfig))},loadFormContentFromStorage:function(){var e=window.localStorage.getItem("widget__list__backup");e&&(this.widgetList=JSON.parse(e));var t=window.localStorage.getItem("form__config__backup");t&&Object(_["l"])(this.formConfig,JSON.parse(t))}}}var bt={name:"VFormDesigner",componentName:"VFormDesigner",mixins:[C["b"]],components:{WidgetPanel:z,ToolbarPanel:De,SettingPanel:lt,VFormWidget:gt},props:{fieldListApi:{type:Object,default:null},bannedWidgets:{type:Array,default:function(){return[]}},designerConfig:{type:Object,default:function(){return{languageMenu:!1,externalLink:!1,formTemplates:!1,containerTemplates:!0,eventCollapse:!0,clearDesignerButton:!0,previewFormButton:!0,importJsonButton:!1,exportJsonButton:!0,exportCodeButton:!1,generateSFCButton:!1,presetCssCode:""}}}},data:function(){return{vFormVersion:fe["d"],curLangName:"",vsCodeFlag:!1,caseName:"",docUrl:"https://www.vform666.com/document.html",gitUrl:"https://github.com/vform666/variant-form",chatUrl:"https://www.vform666.com/chat-group.html",subScribeUrl:"https://www.vform666.com/subscribe.html",scrollerHeight:0,designer:mt(this),fieldList:[]}},provide:function(){var e=this;return{serverFieldList:this.fieldList,getDesignerConfig:function(){return e.designerConfig},getBannedWidgets:function(){return e.bannedWidgets}}},created:function(){this.vsCodeFlag=1==Object(_["e"])("vscode"),this.caseName=Object(_["e"])("case")},mounted:function(){var e=this;this.initLocale(),this.scrollerHeight=window.innerHeight-56-36+"px",Object(_["a"])((function(){e.$nextTick((function(){e.scrollerHeight=window.innerHeight-56-36+"px"}))})),this.loadCase(),this.loadFieldListFromServer()},methods:{showLink:function(e){return void 0===this.designerConfig[e]||!!this.designerConfig[e]},openHome:function(){if(this.vsCodeFlag){var e={cmd:"openUrl",data:{url:"https://www.vform666.com/"}};window.parent.postMessage(e,"*")}},openUrl:function(e,t){if(this.vsCodeFlag){var n={cmd:"openUrl",data:{url:t}};window.parent.postMessage(n,"*")}else{var i=e.currentTarget;i.href=t}},loadCase:function(){var e=this;this.caseName&&axios.get(fe["c"]+this.caseName+".txt").then((function(t){t.data.code?e.$message.error(e.i18nt("designer.hint.sampleLoadedFail")):(e.setFormJson(t.data),e.$message.success(e.i18nt("designer.hint.sampleLoadedSuccess")))})).catch((function(t){e.$message.error(e.i18nt("designer.hint.sampleLoadedFail")+":"+t)}))},initLocale:function(){var e=localStorage.getItem("v_form_locale");e=this.vsCodeFlag?e||"en-US":e||"zh-CN",this.curLangName=this.i18nt("application."+e),this.changeLanguage(e)},loadFieldListFromServer:function(){var e=this;this.fieldListApi&&axios.get(this.fieldListApi.URL).then((function(t){var n=e.fieldListApi.labelKey||"label",i=e.fieldListApi.nameKey||"name";t.data.forEach((function(t){e.fieldList.push({label:t[n],name:t[i]})}))})).catch((function(t){e.$message.error(t)}))},handleLanguageChanged:function(e){this.changeLanguage(e),this.curLangName=this.i18nt("application."+e)},changeLanguage:function(e){Object(C["a"])(e)},setFormJson:function(e){var t=!1;e&&("string"===typeof e?t=this.designer.loadFormJson(JSON.parse(e)):e.constructor===Object&&(t=this.designer.loadFormJson(e)),t&&this.designer.emitHistoryChange())},getFormJson:function(){return{widgetList:Object(_["c"])(this.designer.widgetList),formConfig:Object(_["c"])(this.designer.formConfig)}},clearDesigner:function(){this.$refs.toolbarRef.clearFormWidget()},refreshDesigner:function(){var e=this.getFormJson();this.designer.clearDesigner(!0),this.designer.loadFormJson(e)},previewForm:function(){this.$refs.toolbarRef.previewForm()},importJson:function(){this.$refs.toolbarRef.importJson()},exportJson:function(){this.$refs.toolbarRef.exportJson()},exportCode:function(){this.$refs.toolbarRef.exportCode()},generateSFC:function(){this.$refs.toolbarRef.generateSFC()}}},vt=bt,wt=(n("eb64"),Object(B["a"])(vt,l,c,!1,null,"4fa8ef1e",null)),yt=wt.exports,xt=(n("a9e3"),function(e,t){return{props:{optionModel:Object},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(C["c"])(t)}},[n("el-input",{attrs:{type:"text"},model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}}),_t=function(e,t){return{props:{optionModel:Object},render:function(n){var i=this;return n("el-form-item",{attrs:{label:Object(C["c"])(t)}},[n("el-checkbox",{model:{value:i.optionModel[e],callback:function(t){i.$set(i.optionModel,e,t)}}})])}}},Ct=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(C["c"])(t)}},[i("el-radio-group",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-radio-button",{attrs:{label:e.value}},[e.label])}))])])}}},St=function(e,t,n){return{props:{optionModel:Object},render:function(i){var o=this;return i("el-form-item",{attrs:{label:Object(C["c"])(t)}},[i("el-select",{model:{value:o.optionModel[e],callback:function(t){o.$set(o.optionModel,e,t)}}},[n.optionItems.map((function(e){return i("el-option",{attrs:{label:e.label,value:e.value}})}))])])}}},kt=function(e,t){return{props:{optionModel:Object},mixins:[Q.a],methods:{editEventHandler:function(){this.dispatch("SettingPanel","editEventHandler",[e,Object(Y["a"])(t)])}},render:function(t){return t("el-form-item",{attrs:{label:e,"label-width":"150px"}},[t("el-button",{attrs:{type:"info",icon:"el-icon-edit",plain:!0,round:!0},on:{click:this.editEventHandler}},[Object(C["c"])("designer.setting.addEventHandler")])])}}},Mt={type:"card",category:"container",icon:"card",widgetList:[],options:{name:"",label:"card",hidden:!1,folded:!1,showFold:!0,cardWidth:"100%",shadow:"never",customClass:""}},Et={type:"alert",icon:"alert",formItemFlag:!1,options:{name:"",title:"Good things are coming...",type:"info",description:"",closable:!0,closeText:"",center:!0,showIcon:!1,effect:"light",hidden:!1,onClose:"",customClass:""}},$t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-wrapper",{attrs:{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList}},[n("el-card",{key:e.widget.id,staticClass:"card-container",class:[e.selected?"selected":"",e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow},nativeOn:{click:function(t){return t.stopPropagation(),e.selectWidget(e.widget)}}},[n("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?n("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),n("draggable",e._b({attrs:{list:e.widget.widgetList,handle:".drag-handler",move:e.checkContainerMove},on:{add:function(t){return e.onContainerDragAdd(t,e.widget.widgetList)},update:e.onContainerDragUpdate}},"draggable",{group:"dragGroup",ghostClass:"ghost",animation:200},!1),[n("transition-group",{staticClass:"form-widget-list",attrs:{name:"fade",tag:"div"}},[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{widget:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:t.id,tag:"component",attrs:{field:t,designer:e.designer,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget,"design-state":!0}})]]}))],2)],1)],1)],1)},Lt=[],Ot=n("61ca"),Tt=n("cd36"),Rt={name:"card-widget",componentName:"ContainerWidget",mixins:[C["b"],Ot["a"]],components:Object(h["a"])({Draggable:p.a,ContainerWrapper:Tt["default"]},ie["a"]),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected:function(){return this.widget.id===this.designer.selectedId},customClass:function(){return this.widget.options.customClass||""}},methods:{checkContainerMove:function(e){return!0},toggleCard:function(){this.widget.options.folded=!this.widget.options.folded},setFolded:function(e){this.widget.options.folded=!!e}}},At=Rt,Ft=(n("7131"),Object(B["a"])(At,$t,Lt,!1,null,"5aa91a12",null)),It=Ft.exports,Dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("container-item-wrapper",{attrs:{widget:e.widget}},[n("el-card",{directives:[{name:"show",rawName:"v-show",value:!e.widget.options.hidden,expression:"!widget.options.hidden"}],key:e.widget.id,ref:e.widget.id,staticClass:"card-container",class:[e.widget.options.folded?"folded":"",e.customClass],style:{width:e.widget.options.cardWidth+"!important"||!1},attrs:{shadow:e.widget.options.shadow}},[n("div",{staticClass:"clear-fix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v(e._s(e.widget.options.label))]),e.widget.options.showFold?n("i",{staticClass:"float-right",class:[e.widget.options.folded?"el-icon-arrow-up":"el-icon-arrow-down"],on:{click:e.toggleCard}}):e._e()]),e.widget.widgetList&&e.widget.widgetList.length>0?[e._l(e.widget.widgetList,(function(t,i){return["container"===t.category?[n(t.type+"-item",{key:i,tag:"component",attrs:{widget:t,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]:[n(t.type+"-widget",{key:i,tag:"component",attrs:{field:t,designer:null,"parent-list":e.widget.widgetList,"index-of-parent-list":i,"parent-widget":e.widget}})]]}))]:e._e()],2)],1)},jt=[],Pt=n("d67f"),Wt=n("90c2"),Nt=n("34f0"),Ht={name:"card-item",componentName:"ContainerItem",mixins:[Q.a,C["b"],Pt["a"],Nt["a"]],components:Object(h["a"])({ContainerItemWrapper:Wt["default"]},ie["a"]),props:{widget:Object},inject:["refList","sfRefList","globalModel"],computed:{customClass:function(){return this.widget.options.customClass||""}},created:function(){this.initRefList()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{toggleCard:function(){this.widget.options.folded=!this.widget.options.folded}}},Bt=Ht,Vt=(n("4a8a"),Object(B["a"])(Bt,Dt,jt,!1,null,"94e33868",null)),zt=Vt.exports,Ut=(n("a4d3"),n("e01a"),function(e,t){var n=e.options,i=be(e),o=n.cardWidth?'style="{width: '.concat(n.cardWidth,' !important}"'):"",r='shadow="'.concat(n.shadow,'"'),s=n.hidden?'v-show="false"':"",a='<div class="card-container">\n <el-card '.concat(i," ").concat(o," ").concat(r," ").concat(s,'>\n <div slot="header" class="clear-fix">\n <span>').concat(n.label,"</span>\n ").concat(n.showFold?'<i class="float-right el-icon-arrow-down"></i>':"","\n </div>\n ").concat(e.widgetList.map((function(e){return"container"===e.category?we(e,t):ke(e,t)})).join(""),"\n </el-card>\n</div>");return a}),Kt=function(e,t){var n=e.options,i='title="'.concat(n.title,'"'),o="type=".concat(n.type),r=n.description?'description="'.concat(n.description,'"'):"",s=':closable="'.concat(n.closable,'"'),a=n.closeText?'close-text="'.concat(n.closeText,'"'):"",l=':center="'.concat(n.center,'"'),c=':show-icon="'.concat(n.showIcon,'"'),d='effect="'.concat(n.effect,'"'),u="<el-alert ".concat(i," ").concat(o," ").concat(r," ").concat(s," ").concat(a," ").concat(l," \n ").concat(c," ").concat(d,">\n</el-alert>");return u},qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("static-content-wrapper",{attrs:{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId}},[n("el-alert",{ref:"fieldEditor",attrs:{title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect},on:{close:e.handelCloseCustomEvent}})],1)},Gt=[],Jt=n("828b"),Yt=n("2d11"),Xt={name:"alert-widget",componentName:"FieldWidget",mixins:[Q.a,Yt["a"],C["b"]],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper:Jt["default"]},created:function(){this.registerToRefList(),this.initEventHandler()},beforeDestroy:function(){this.unregisterFromRefList()},methods:{handelCloseCustomEvent:function(){if(this.field.options.onClose){var e=new Function(this.field.options.onClose);e.call(this)}}}},Qt=Xt,Zt=Object(B["a"])(Qt,qt,Gt,!1,null,"142c4cc6",null),en=Zt.exports,tn=function(){w(Mt),ee.a.component(It.name,It),ee.a.component(zt.name,zt),Ze("card-folded","card-folded-editor",_t("folded","extension.setting.cardFolded")),Ze("card-showFold","card-showFold-editor",_t("showFold","extension.setting.cardShowFold")),Ze("card-cardWidth","card-cardWidth-editor",xt("cardWidth","extension.setting.cardWidth"));var e=[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}];Ze("card-shadow","card-shadow-editor",St("shadow","extension.setting.cardShadow",{optionItems:e})),Oe("card",Ut),y(Et),ee.a.component(en.name,en),Ze("alert-title","alert-title-editor",xt("title","extension.setting.alertTitle"));var t=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];Ze("alert-type","alert-type-editor",St("type","extension.setting.alertType",{optionItems:t})),Ze("alert-description","alert-description-editor",xt("description","extension.setting.description")),Ze("alert-closable","alert-closable-editor",_t("closable","extension.setting.closable")),Ze("alert-closeText","alert-closeText-editor",xt("closeText","extension.setting.closeText")),Ze("alert-center","alert-center-editor",_t("center","extension.setting.center")),Ze("alert-showIcon","alert-showIcon-editor",_t("showIcon","extension.setting.showIcon"));var n=[{label:"light",value:"light"},{label:"dark",value:"dark"}];Ze("alert-effect","alert-effect-editor",Ct("effect","extension.setting.effect",{optionItems:n})),et("alert-onClose","alert-onClose-editor",kt("onClose",[])),Te("alert",Kt)};n("caad"),n("2532");ee.a.directive("dialogDrag",{bind:function(e,t,n,i){var o=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");o.style.cursor="move";var s=r.currentStyle||window.getComputedStyle(r,null);o.onmousedown=function(e){var t,n,i=e.clientX-o.offsetLeft,a=e.clientY-o.offsetTop;s.left.includes("%")?(t=+document.body.clientWidth*(+s.left.replace(/%/g,"")/100),n=+document.body.clientHeight*(+s.top.replace(/%/g,"")/100)):(t=+s.left.replace(/px/g,""),n=+s.top.replace(/px/g,"")),document.onmousemove=function(e){var o=e.clientX-i,s=e.clientY-a;r.style.left="".concat(o+t,"px"),r.style.top="".concat(s+n,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),ee.a.directive("dialogDragWidth",{bind:function(e,t,n,i){var o=t.value.$el.querySelector(".el-dialog");e.onmousedown=function(t){var n=t.clientX-e.offsetLeft;document.onmousemove=function(e){e.preventDefault();var t=e.clientX-n;o.style.width="".concat(t,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}});var nn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{class:e.svgClass,attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":e.iconName}}),e.title?n("title",[e._v(e._s(e.title))]):e._e()])},on=[],rn={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"}}},sn=rn,an=(n("d53b"),Object(B["a"])(sn,nn,on,!1,null,"1a7581a2",null)),ln=an.exports;ee.a.component("svg-icon",ln);var cn=function(e){return e.keys().map(e)},dn=n("51ff");cn(dn);n("0f59");tn(),yt.install=function(e){e.component(yt.name,yt)},ae.install=function(e){e.component(ae.name,ae)};var un=[yt,ae],hn=function(e){un.forEach((function(t){e.component(t.name,t)}))};"undefined"!==typeof window&&window.Vue&&(window.axios=a.a,hn(window.Vue));var fn={install:hn,VFormDesigner:yt,VFormRender:ae};t["default"]=fn},fb56:function(e,t,n){"use strict";n("4cdd")},fb6a:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("e8b5"),s=n("68ee"),a=n("861d"),l=n("23cb"),c=n("07fa"),d=n("fc6a"),u=n("8418"),h=n("b622"),f=n("1dde"),p=n("f36a"),g=f("slice"),m=h("species"),b=o.Array,v=Math.max;i({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,i,o,h=d(this),f=c(h),g=l(e,f),w=l(void 0===t?f:t,f);if(r(h)&&(n=h.constructor,s(n)&&(n===b||r(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===b||void 0===n))return p(h,g,w);for(i=new(void 0===n?b:n)(v(w-g,0)),o=0;g<w;g++,o++)g in h&&u(i,o,h[g]);return i.length=o,i}})},fc6a:function(e,t,n){var i=n("44ad"),o=n("1d80");e.exports=function(e){return i(o(e))}},fc8b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.lowThreshold")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:1,max:e.optionModel.highThreshold},model:{value:e.optionModel.lowThreshold,callback:function(t){e.$set(e.optionModel,"lowThreshold",t)},expression:"optionModel.lowThreshold"}})],1)},o=[],r=n("79fa"),s={name:"lowThreshold-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"d66e35d0",null);t["default"]=c.exports},fcbf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.cellHeight")}},[n("el-input",{attrs:{type:"text"},model:{value:e.optionModel.cellHeight,callback:function(t){e.$set(e.optionModel,"cellHeight",t)},expression:"optionModel.cellHeight"}})],1)},o=[],r=n("79fa"),s={name:"cellHeight-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"52af6c29",null);t["default"]=c.exports},fcd7:function(e,t,n){"use strict";n("9360")},fce3:function(e,t,n){var i=n("d039"),o=n("da84"),r=o.RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fd28:function(e,t,n){"use strict";n.r(t);var i=n("e017"),o=n.n(i),r=n("21a1"),s=n.n(r),a=new o.a({id:"icon-document",use:"icon-document-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-document"><defs><style type="text/css"></style></defs><path d="M979.478261 706.381913a44.521739 44.521739 0 0 1-11.842783 57.967304l-4.36313 2.849392-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808695l-8.102956 0.400696c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250435l405.325913 234.540522 1.335652 1.513739 1.335652-1.513739 405.281391-234.540522a44.521739 44.521739 0 0 1 60.861218 16.250435z m0-222.608696a44.521739 44.521739 0 0 1-11.842783 57.967305l-4.36313 2.849391-393.794783 227.862261-5.38713 4.763826a84.012522 84.012522 0 0 1-43.942957 17.808696l-8.102956 0.400695c-19.055304 0-37.309217-6.544696-52.045913-18.253913l-5.431652-4.719304-393.750261-227.862261a44.521739 44.521739 0 0 1-18.610087-56.186435l2.359652-4.630261a44.521739 44.521739 0 0 1 60.816696-16.250434l405.325913 234.540521 1.335652 1.513739 1.335652-1.513739 405.281391-234.540521a44.521739 44.521739 0 0 1 60.861218 16.250434zM512 0c18.788174 0 36.864 6.099478 51.645217 17.185391l4.58574 3.739826 403.500521 199.68 5.609739 6.144c32.50087 35.439304 32.50087 89.889391 0 125.328696l-5.609739 6.144-403.500521 199.590957-4.541218 3.784347a86.238609 86.238609 0 0 1-43.675826 16.829218L512 578.782609c-18.788174 0-36.864-6.099478-51.645217-17.185392l-4.630261-3.784347L52.268522 358.221913l-5.609739-6.144a92.738783 92.738783 0 0 1 0-125.328696l5.609739-6.144L455.724522 20.925217l4.585739-3.739826c12.688696-9.48313 27.826087-15.315478 43.675826-16.829217z" fill="#008df0" p-id="5455" /></symbol>'});s.a.add(a);t["default"]=a},fd87:function(e,t,n){var i=n("74e8");i("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe05:function(e,t,n){"use strict";n("2dd9")},fe5d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.allowCreate")}},[n("el-checkbox",{model:{value:e.optionModel.allowCreate,callback:function(t){e.$set(e.optionModel,"allowCreate",t)},expression:"optionModel.allowCreate"}})],1)},o=[],r=n("79fa"),s={name:"allowCreate-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6151a162",null);t["default"]=c.exports},feea:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.displayType")}},[n("el-select",{model:{value:e.optionModel.type,callback:function(t){e.$set(e.optionModel,"type",t)},expression:"optionModel.type"}},[n("el-option",{attrs:{label:"daterange",value:"daterange"}}),n("el-option",{attrs:{label:"datetimerange",value:"datetimerange"}}),n("el-option",{attrs:{label:"monthrange",value:"monthrange"}})],1)],1)},o=[],r=n("79fa"),s={name:"date-range-type-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"574545a5",null);t["default"]=c.exports},ff09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.maxValue")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},model:{value:e.maxValue,callback:function(t){e.maxValue=t},expression:"maxValue"}})],1)},o=[],r=(n("a9e3"),n("79fa")),s={name:"max-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{maxValue:{get:function(){return this.optionModel["max"]},set:function(e){!e||isNaN(e)?this.optionModel.max=null:this.optionModel.max=Number(e)}}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"edcd3882",null);t["default"]=c.exports},ff58:function(e,t,n){"use strict";n("12b5")},ff66:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{attrs:{label:e.i18nt("designer.setting.precision")}},[n("el-input-number",{staticClass:"hide-spin-button",staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.optionModel.precision,callback:function(t){e.$set(e.optionModel,"precision",t)},expression:"optionModel.precision"}})],1)},o=[],r=n("79fa"),s={name:"precision-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"6d29eaf2",null);t["default"]=c.exports},ffcf:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.optionModel.responsive?e._e():n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.span,callback:function(t){e.$set(e.optionModel,"span",e._n(t))},expression:"optionModel.span"}})],1),e.optionModel.responsive&&"PC"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(PC)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.md,callback:function(t){e.$set(e.optionModel,"md",e._n(t))},expression:"optionModel.md"}})],1):e._e(),e.optionModel.responsive&&"Pad"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(Pad)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.sm,callback:function(t){e.$set(e.optionModel,"sm",e._n(t))},expression:"optionModel.sm"}})],1):e._e(),e.optionModel.responsive&&"H5"===e.formConfig.layoutType?n("el-form-item",{attrs:{label:e.i18nt("designer.setting.colSpanTitle")+"(H5)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:1,max:24},model:{value:e.optionModel.xs,callback:function(t){e.$set(e.optionModel,"xs",e._n(t))},expression:"optionModel.xs"}})],1):e._e()],1)},o=[],r=n("79fa"),s={name:"grid-col-span-editor",mixins:[r["b"]],props:{designer:Object,selectedWidget:Object,optionModel:Object},computed:{formConfig:function(){return this.designer.formConfig}}},a=s,l=n("2877"),c=Object(l["a"])(a,i,o,!1,null,"163e0823",null);t["default"]=c.exports}})["default"]}));
|