web-view-antd/lib/fcDesignerPro/dist/pc/index.umd.js
2025-02-20 14:40:31 +08:00

1332 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* FormCreate商业版可视化表单设计器-让表单设计更简单
* fc-designer-pro v5.6.0
* (c) 2018-2025 FormCreate Team https://form-create.com/
* license 仅限于被授权主体(个人、企业或组织)使用
*/
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:5}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{background:#fff;border:1px solid silver;border-radius:3px;box-shadow:2px 3px 5px #0003;font-family:monospace;font-size:90%;list-style:none;margin:0;max-height:20em;overflow:hidden;overflow-y:auto;padding:2px;position:absolute;z-index:1}.CodeMirror-hint{border-radius:2px;color:#000;cursor:pointer;margin:0;padding:0 4px;white-space:pre}li.CodeMirror-hint-active{background:#08f;color:#fff}._fd-fn{display:flex;flex-direction:column;height:100%;position:relative;width:100%}._fd-fn .ant-btn{bottom:3px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;font-size:12px;position:absolute;right:5px}._fd-fn-editor{display:flex;flex:1;overflow:auto;width:100%}._fd-fn-editor .CodeMirror{height:100%;width:100%}._fd-fn-tip{background:var(--fc-bg-color-2);color:var(--fc-text-color-1);direction:ltr;font-family:monospace}._fd-fn-tip .cm-keyword{color:#708;line-height:24px;overflow-x:auto;white-space:nowrap}._fd-fn-tip .cm-keyword::-webkit-scrollbar{background-color:transparent;height:0;width:0}._fd-fn-ind{background-color:var(--fc-bg-color-3);border-right:1px solid var(--fc-line-color-2);display:inline-block;float:left;height:24px;margin-right:4px;width:29px}._fd-fn-arg{cursor:pointer;text-decoration:underline}._fd-fn-arg i{color:var(--fc-style-color-1);font-size:12px}._fd-cdi-input>div{width:100%}._fd-pattern-input{width:100%}._fd-pattern-input .ant-input-group-addon{padding:0 10px}._fd-pattern-input .fc-icon{cursor:pointer}._fd-pattern-popper{height:340px;overflow:auto}._fd-rule-select{min-width:200px}._fd-rule-select-node{display:flex;justify-content:space-between}._fd-rule-select-node>div{color:#61affe}._fd-rule-select-node>span{font-size:12px}._fd-value-input .ant-input-group-addon:first-child{padding:0;width:55px!important}._fd-value-input .ant-select-selector{padding:0!important}._fd-warning-pop{max-width:400px}._fd-warning-text{cursor:help;text-decoration:underline;text-decoration-style:dashed}._fd-variable-btn{align-items:center;background:var(--fc-style-bg-color-1);border-radius:5px;color:var(--fc-style-color-1);cursor:pointer;display:flex;font-size:12px;margin-left:6px;padding:2px 6px}._fd-variable-l,._fd-variable-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-variable-r{margin-left:10px}._fd-variable-con .ant-layout-content,._fd-variable-con .ant-layout-sider{background:var(--fc-bg-color-1);overflow:auto}._fd-variable-l .ant-layout-header,._fd-variable-r .ant-layout-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;height:40px;padding:0 20px}._fd-variable-r .ant-layout-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:13px;margin-left:2px}._fd-variable-r .ant-layout-content{padding:10px}._fd-variable-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-bottom:6px;padding:8px 13px;position:relative}._fd-variable-node{align-items:center;color:var(--fc-text-color-1);display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-variable-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:40px;padding:0 20px}._fd-variable-top ._fd-variable-item-label{color:#fca130}._fd-variable-item-label{font-size:13px;margin-right:18px;width:198px}._fd-variable-item .ant-input{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-variable-item.active,._fd-variable-item.active ._fd-variable-item-label,._fd-variable-item.active input{color:var(--fc-style-color-1)}._fd-variable-item input{text-align:center}._fd-variable-item .ant-input-affix-wrapper{border:0;box-shadow:none;flex:1}._fd-variable-pop .ant-tree-indent-unit ._fd-variable-con .ant-tree-indent-unit{width:5px}._fd-variable-pop{overflow:auto;padding:0;width:330px}._fd-variable-pop .ant-layout{height:400px;overflow:auto}._fd-variable-pop .ant-popover-inner{height:100%;padding:0}._fd-variable-pop-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-variable-pop .ant-layout-header{align-items:center;background-color:var(--fc-bg-color-2);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 10px}._fd-variable-pop .ant-layout-content{background:var(--fc-bg-color-1);border:1px solid #f5f5f5;border-top:0;overflow:auto;padding:10px}._fd-variable-pop .ant-input-group-addon{background:var(--fc-style-color-1);color:#fff;cursor:pointer;padding:0;width:60px}._fd-variable-pop-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-pop-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-cdg-input{display:flex;flex-direction:column}._fd-cdg-btns{margin-left:30px;margin-top:10px}._fd-cdg-input ._fd-cdg-btns .ant-btn{align-items:center;color:var(--fc-text-color-2);display:inline-flex;font-size:12px!important}._fd-cdg-btns .ant-btn+.ant-btn{margin-left:12px}._fd-cdg-item{display:flex}._fd-cdg-and{display:flex;flex-shrink:0;position:relative;width:100px}._fd-cdg-and>.ant-select{left:-5px;margin-top:-16px;position:absolute;top:50%;width:80px;z-index:1}._fd-cdg-and:before{background-color:var(--fc-line-color-2);bottom:1px;content:"";left:30px;margin-bottom:16px;margin-top:14px;position:absolute;top:1px;width:1px}._fd-cdg-options{display:flex;flex-direction:column}._fd-cdg-option{align-items:center;display:flex;position:relative}._fd-cdg-field,._fd-cdg-variable{width:208px!important}._fd-cdg-variable{height:32px!important}._fd-cdg-term{width:104px!important}._fd-cdg-option>._fd-cfg-value{align-items:center;display:flex;width:208px}._fd-cdg-option>.fc-icon{color:var(--fc-text-color-2);cursor:pointer;margin-left:10px}._fd-cdg-option>.fc-icon.disabled{cursor:not-allowed}._fd-cdg-option>._fd-cfg-value>div{width:100%}._fd-cdg-option>.ant-input-affix-wrapper+.ant-select,._fd-cdg-option>.ant-select+.ant-input-affix-wrapper,._fd-cdg-option>.ant-select+.ant-select,._fd-cfg-value{margin-left:10px}._fd-cfg-value .ant-checkbox-wrapper{margin-left:10px;white-space:nowrap}._fd-cfg-value ._fd-rule-select{min-width:0;width:100%!important}._fd-cdg-option:before{background-color:var(--fc-line-color-2);content:"";height:1px;left:-70px;margin-top:-1px;position:absolute;top:50%;width:105px}._fd-cdg-option.is-group{border:1px dashed #ccd3db;padding:14px}._fd-cdg-option.is-group>.fc-icon{font-size:18px;position:absolute;right:-10px;top:-10px;transform:rotate(45deg);z-index:1}._fd-cdg-option.is-group:before{margin-top:-17px}._fd-cdg-option+._fd-cdg-option{margin-top:16px}._fd-computed,._fd-computed .ant-badge{width:100%}._fd-computed .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-comp-con,._fd-comp-condition{height:500px}._fd-comp-condition .ant-layout-content{padding:20px 5px}._fd-comp-dialog ._fd-comp-head,._fd-comp-dialog .ant-layout,._fd-comp-dialog .ant-layout-sider{background:transparent}._fd-comp-dialog ._fd-comp-head{padding:0 20px}._fd-comp-r{border:1px solid var(--fc-line-color-3);border-top:0;display:flex;flex:1;flex-direction:column;height:100%}._fd-comp-head{align-items:center;border-bottom:1px solid var(--fc-line-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;font-weight:500;height:38px;padding:5px 15px}._fd-comp-script{height:100%;width:100%}._fd-comp-info{background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);height:90px;line-height:20px;margin:10px;padding:15px}._fd-comp-con .CodeMirror{height:100%;width:100%}._fd-comp-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}.fc-comp-tree{height:100%;overflow:auto;padding:14px}.fc-comp-tree .ant-tree-treenode{padding-bottom:6px}.fc-comp-tree .ant-tree-indent-unit{width:5px}.fc-comp-tree .ant-tree-treenode:has(.is-formula){margin-top:40px}.fc-comp-tree .ant-tree-treenode:has(.is-formula):after{border-top:1px solid var(--fc-line-color-3);content:" ";left:0;position:absolute;right:0;top:-20px}._fd-comp-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-comp-node ._group{color:#61affe;font-weight:700;margin-right:5px}._fd-comp-node ._subform{color:#fca130;font-weight:700;margin-right:5px}._fd-comp-node.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-comp-node.disabled ._fd-comp-id{background-color:#999}._fd-comp-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;font-weight:500;height:20px;line-height:20px;text-align:center;width:20px}._fd-comp-dialog .ant-layout-sider{border:1px solid var(--fc-line-color-3);border-right:0;border-top:0}._fd-comp-title{color:var(--fc-text-color-1);font-weight:500;margin-bottom:15px;padding-left:5px;position:relative}._fd-comp-title:before{background-color:var(--fc-style-color-1);content:" ";display:inline-block;height:1em;left:-5px;position:absolute;top:3px;width:3px}._fd-comp-script .CodeMirror pre.CodeMirror-line{line-height:26px}._fd-comp-linkage{align-items:center;display:flex;font-size:12px}._fd-comp-linkage>._fd-rule-select{display:inline-block;margin:0 6px;width:120px}._fd-event .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-event .ant-badge{width:100%}._fd-event-dialog .ant-layout-content,._fd-event-dialog .ant-layout-sider{background:var(--fc-bg-color-1);overflow:auto}._fd-event-select{align-items:center;display:flex;margin-left:15px;margin-top:15px}._fd-event-con ._fd-event-l,._fd-event-con ._fd-event-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-event-con ._fd-event-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-event-r{border-left:0;display:flex;flex-direction:column}._fd-event-r ._fd-event-head{justify-content:flex-end}._fd-event-r>.ant-layout-content{display:flex;flex-direction:column}._fd-event-r>.ant-layout-content.is-behavior{flex-direction:row;width:100%}._fd-event-r .ant-tabs-nav-wrap{padding:0 15px}._fd-event-item{display:flex;flex-direction:column;font-size:14px;justify-content:center;max-width:250px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-event-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-event-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-event-method>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-event-method>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:var(--fc-text-color-1);margin-left:10px}._fd-event-title{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 0;width:100%}._fd-event-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-event-title .ant-input{border:0;box-shadow:none}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-event-behaviors{width:100%}._fd-event-behavior{background:var(--fc-bg-color-3);border-radius:5px;box-sizing:border-box;cursor:pointer;font-size:12px;margin-bottom:12px;padding:12px;width:100%}._fd-event-behavior.is-active{background:var(--fc-style-color-1)}._fd-event-behavior.is-active ._fd-event-behavior-info,._fd-event-behavior.is-active ._fd-event-behavior-label{color:#fff}._fd-event-behavior-label{color:var(--fc-text-color-2);display:flex;justify-content:space-between}._fd-event-behavior-label>div{align-items:center;display:flex}._fd-event-behavior-info{color:var(--fc-text-color-3);margin-left:16px}._fd-event-behavior-list{border-right:1px solid var(--fc-line-color-3);height:100%;padding:15px}._fd-event-behavior-list .ant-menu{background:transparent!important;border:0!important;border-inline-end:0 none!important}._fd-event-behavior-list .ant-menu-item,._fd-event-behavior-list .ant-menu-submenu-title{height:30px;line-height:30px}._fd-event-con ._fd-event-behavior-con{padding:15px}._fd-event-con .ant-form-item{margin-bottom:18px}._fd-event-con .ant-form-item ._fd-form-item-warning{color:var(--fc-text-color-3);font-size:12px;font-weight:400;line-height:17px;margin-top:6px}._fd-event-behavior-title{color:var(--fc-text-color-1);font-size:13px;font-weight:500;margin-bottom:12px}._fd-event-behavior-title>div{color:var(--fc-text-color-3);font-size:12px;font-weight:400}._fd-config-item{color:var(--fc-text-color-2);display:flex;flex-direction:column;font-size:12px;margin-bottom:10px;width:100%}._fd-ci-head{justify-content:space-between}._fd-ci-head,._fd-ci-label{align-items:center;display:flex}._fd-ci-label{color:var(--fc-text-color-1);font-size:12px}._fd-ci-con{align-items:center;display:flex;justify-content:flex-end;min-width:150px}._fd-ci-label.is-arrow{cursor:pointer}._fd-ci-append{background:var(--fc-bg-color-2);display:flex;flex-direction:column;margin:5px 3px 3px;padding:4px}._fd-ci-label i{font-size:12px;font-weight:600}._fd-ci-label i.down{transform:rotate(-180deg)}._fd-ci-info{font-size:12px;padding-right:5px}._fd-page-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);box-sizing:content-box;cursor:pointer;display:flex;flex-direction:row;font-size:12px;height:30px;justify-content:space-between;margin:0 12px;padding:12px 0}._fd-page-item.active ._fd-page-label{color:var(--fc-style-color-1)}._fd-page-btns{display:flex}._fd-page-label{color:var(--fc-text-color-1);font-weight:600}._fd-page-label .fc-icon{font-size:12px;margin-left:5px}._fd-page-id{align-items:center;color:var(--fc-text-color-3);display:flex;font-weight:400}._fd-page-id .fc-icon{margin-left:5px}._fd-page-id .fc-icon:hover,._fd-page-input .ant-btn{color:var(--fc-style-color-1)}._fd-page-input .ant-btn{font-size:12px;font-weight:400;margin-left:12px;margin-top:12px;padding:0}._fd-page-input .ant-btn .fc-icon{font-size:12px;margin-left:5px}._fd-page-del{align-items:center;background-color:var(--fc-style-bg-color-3);border-radius:25px;display:flex;height:24px;justify-content:center;margin-left:4px;width:24px}._fd-page-del .fc-icon{color:var(--fc-style-color-3);font-size:14px}._fd-page-copy{align-items:center;background-color:var(--fc-style-bg-color-1);border-radius:25px;display:flex;height:24px;justify-content:center;width:24px}._fd-page-copy .fc-icon{color:var(--fc-style-color-1);font-size:14px}._fc-sublist ._fc-r-title{align-items:center;display:flex;justify-content:space-between}._fc-sublist .fc-icon{cursor:pointer}._fc-sublist ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-tools-bar{height:30px}._fc-r-tools-close{color:var(--fc-text-color-2);position:absolute;right:5px;transform:rotate(45deg)}._fc-r-tools{border-top:1px solid var(--fc-line-color-3);left:0;padding:0 10px;position:absolute;right:0}._fc-r-tool,._fc-r-tools{align-items:center;display:flex}._fc-r-tool{cursor:pointer;height:28px;justify-content:center;width:28px}._fc-r-tool:hover{color:var(--fc-style-color-1)}._fc-r-tool .fc-icon{font-size:22px}._fc-r-tools-close .fc-icon{font-size:18px}._fd-config-title{align-items:center;display:flex;font-size:14px;margin:26px 0 16px;padding-left:10px;position:relative}._fd-config-title:before{background-color:var(--fc-style-color-1);content:" ";display:block;height:20px;left:0;position:absolute;width:2px}._fd-type-select{cursor:pointer}._fd-type-select[disabled]{cursor:default}._fd-type-select .fc-icon{font-size:14px}._fd-type-select-pop{max-height:500px;overflow:auto}._fd-type-select-pop .fc-icon{font-size:14px;margin-right:5px}._fc-field-tree{padding:5px}._fc-field-tree .ant-tree-indent-unit{width:5px}._fc-field-tree .ant-tree-treenode{padding-bottom:6px;padding-top:3px}._fc-field-tree ._fc-field-drag{display:flex;flex:1;flex-direction:column}._fc-field-tree .fc-icon{font-size:18px;margin-right:5px}._fc-field-tree .icon-folder{color:var(--fc-style-color-1)}._fc-field-node-label{align-items:center;display:flex;user-select:none}._fc-form-tree .ant-tree-indent-unit{width:5px}._fc-form-tree .ant-tree-treenode{margin:5px 5px 0;padding-bottom:6px;padding-top:4px}._fc-form-tree .fc-icon{color:var(--fc-style-color-1);font-size:18px;margin-right:5px}._fc-form-tree .icon-folder{color:#ffba00}._fc-form-node{display:flex;flex-direction:row;justify-content:space-between;padding-right:12px;width:100%}._fc-form-node-label{align-items:flex-start;display:flex;user-select:none;white-space:normal}._fc-form-node-info{color:var(--fc-text-color-2);display:block;font-size:12px;line-height:normal}._fd-gec,._fd-gec .ant-badge{width:100%}._fd-gec .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gec-l,._fd-gec-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gec-con ._fd-gec-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gec-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-gec-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gec-r{background:var(--fc-bg-color-1);border-left:0}._fd-gec-r ._fd-gec-head{justify-content:flex-end}._fd-gec-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-gec-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gec-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gec-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gec-title .ant-input{border:0;box-shadow:none}._fd-gec-con .CodeMirror{height:100%;width:100%}._fd-gec-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fd-gfc,._fd-gfc .ant-badge{width:100%}._fd-gfc .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-gfc-l,._fd-gfc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gfc-con ._fd-gfc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gfc-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-gfc-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gfc-r{background:var(--fc-bg-color-1);border-left:0}._fd-gfc-r ._fd-gfc-head{justify-content:flex-end}._fd-gfc-r .ant-tabs-nav-wrap{padding:0 15px}._fd-gfc-method{color:#702c71;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:100%}._fd-gfc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gfc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gfc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gfc-title .ant-input{border:0;box-shadow:none}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-size-input{align-items:center;display:flex;width:100%}._fd-size-input .ant-input-number{flex:1}._fd-box-size-input .ant-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-box-size-input .ant-form-item:last-child{grid-column:span 2}._fd-box-size-input .ant-radio-group{display:flex;width:100%}._fd-box-size-input .ant-radio-button-wrapper{align-items:center;display:flex;flex:1!important;height:auto;justify-content:center;padding-top:2px;text-align:center}._fd-color-input{width:150px}._fd-color-input .ant-input-group-addon{padding:0}._fd-color-input .ant-input-group-addon .ant-input{border:0;cursor:pointer;display:block;height:22px;margin:0;padding:0;width:30px}._fd-border-input{display:flex;height:110px;justify-content:center;width:100%}._fd-border-input ._fd-bi-left{align-items:center;display:flex;flex-direction:column;height:115px;justify-content:center;width:115px}._fd-border-input ._fd-bi-right{display:flex;flex-direction:column;justify-content:space-around;padding:5px;width:140px}._fd-border-input ._fd-bi-right ._fd-color-input{width:100%}._fd-bi-opt{align-items:center;display:flex;height:100%;width:100%}._fd-bi-opt ._line{width:100%}._fd-bi-opt .solid{border:1px solid #000}._fd-bi-opt .dashed{border:1px dashed #000}._fd-bi-opt .dotted{border:1px dotted #000}._fd-bi-opt .double{border:1px double #000}._fd-border-input ._fd-bil-row{display:flex;height:38px;justify-content:center}._fd-border-input ._fd-bil-col{align-items:center;cursor:pointer;display:flex;font-size:16px;height:22px;justify-content:center;margin:8px;width:22px}._fd-border-input ._fd-bil-col.active{color:var(--fc-style-color-1);outline:1px dashed var(--fc-style-color-1)}.line-box{box-sizing:border-box;height:20px;padding:1px;width:150px}.line-box-con{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAD5JREFUOE9jZGBg+M+AChjR+HjlQYqHgQFoXibNS+gBBjKMpDAZHAaQ5GQGBgYUV4+mA7QAgaYokgJ14NMBAK1TIAlUJpxYAAAAAElFTkSuQmCC);height:100%;opacity:.3;width:100%}._fd-radius-input{display:flex;flex-direction:column;width:100%}._fd-radius-con{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-radius-item{align-items:center;box-sizing:border-box;display:flex;justify-content:center;padding:5px 0;width:100%}._fd-radius-item ._fd-size-input .ant-input-number-sm{width:100%}._fd-radius-item ._fd-radius-icon{align-items:center;display:flex;justify-content:center;margin-right:4px}._fd-font-input{display:flex;justify-content:center;padding:0 5px}._fd-fi-box{overflow:hidden;width:150px}._fd-font-input .ant-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-font-input .ant-form-item{display:grid}._fd-font-input .ant-form-item-label{padding-bottom:2px}._fd-display-input{display:flex;flex-direction:column}._fd-display-input .ant-radio-group{display:flex;padding:0;width:100%}._fd-display-input .ant-radio-button-wrapper{align-items:center;display:flex;flex:1;height:auto;justify-content:center;padding-top:2px;text-align:center}._fd-display-input .is-active i{color:#fff}._fd-display-con{display:flex;flex-wrap:wrap}._fd-display-con.rotate-flag .rotate{display:inline-block;transform:rotate(-90deg)}._fd-display-con.column .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.row-reverse .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column-reverse .icon-justify-flexstart:before,._fd-display-con.row-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.column-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(180deg)}._fd-display-raw{display:flex;flex-direction:column;margin-bottom:5px;width:100%}._fd-shadow-content{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding:0 5px}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .ant-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-shadow-content .ant-form-item{display:grid}._fd-shadow-content ._fd-sc-box{border:1px solid #ccc;border-radius:5px;cursor:pointer;height:250px;overflow:hidden;position:relative;width:250px}._fd-shadow-content ._fd-sc-box .spot{border-radius:100%;height:0;position:absolute;width:0}._fd-shadow-content ._fd-sc-box .spot-id{background:#1989fa;border-radius:100%;height:10px;left:-5px;position:absolute;top:-5px;width:10px;z-index:1}._fd-shadow-content ._fd-sc-box.down .spot-id{box-shadow:1px 1px 10px 2px #1989fa}._fd-shadow-content ._fd-sc-box .center-spot{background:#1989fa;border-radius:100%;height:0;left:125px;position:absolute;top:125px;width:0}._fd-shadow-content ._fd-sc-box .x-hr{background:#ccc;height:1px;position:absolute;top:125px;width:100%}._fd-shadow-content ._fd-sc-box .y-hr{background:#ccc;height:100%;left:125px;position:absolute;width:1px}._fd-shadow-content .ant-select{padding:0;width:64px}._fd-shadow-content ._fd-color-input{width:100%}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{display:flex;width:105px}._fd-shadow-content ._fd-sc-radio .ant-radio-button-wrapper{align-items:center;display:flex;flex:1;justify-content:center}._fd-shadow-input ._fd-ci-con{width:150px}._fd-si-input .ant-input-group-addon{padding:0;width:32px}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._td-table-opt{width:100%}._td-table-opt .icon-delete{cursor:pointer}._td-table-opt tr td:last-child{text-align:center}._td-table-opt-handle{align-items:center;display:flex;justify-content:space-between;padding-right:5px}._td-table-opt-handle .ant-btn{align-items:center;display:flex;font-size:12px}._fd-box-space-input{color:#000}._fd-box-space-input ._margin,._fd-box-space-input ._padding{background-color:#f2cea5;box-sizing:border-box;height:180px;padding:40px 55px;position:relative;width:100%}._fd-box-space-input ._margin,html.dark ._fd-box-space-input ._padding{background-color:#a9855c}._fd-box-space-input ._margin{background-color:#c6cf92;height:100px;width:100%}._fd-box-space-input ._fd-input{background-color:unset;border:0;display:inline-block;font-size:12px;height:20px;margin:0;max-width:40px;outline:0 none;padding:0;text-align:center;text-decoration:underline;width:30%}._fd-box-space-input ._fd-input:focus,._fd-box-space-input ._fd-input:hover{background-color:var(--fc-bg-color-3);color:var(--fc-text-color-1);opacity:.9}._fd-box-space-input ._fd-left,._fd-box-space-input ._fd-right{left:7px;margin-top:-10px;position:absolute;top:50%}._fd-box-space-input ._fd-bottom,._fd-box-space-input ._fd-top{left:50%;margin-left:-20px;position:absolute;top:5px}._fd-box-space-input ._fd-bottom{bottom:15px;top:unset}._fd-box-space-input ._fd-right{left:unset;right:2px}._fd-box-space-input ._box{align-items:center;background-color:#94b5c0;display:flex;height:100%;justify-content:center;width:100%}._fd-box-space-input ._margin-title,._fd-box-space-input ._padding-title{left:4px;position:absolute;top:2px}._fd-box-space-input ._fd-help{align-items:center;color:var(--fc-text-color-3);display:flex;position:absolute;right:5px;top:5px}._fd-box-space-input ._padding .fc-icon{color:var(--fc-text-color-1);cursor:pointer;font-size:12px}._fd-box-space-input ._padding .fc-icon+.fc-icon{margin-left:2px}._fd-box-space-input .fc-icon.active{color:var(--fc-style-color-1)}._fd-box-space-input ._fd-x{margin:0 5px}._fd-style-config{display:flex;flex-direction:column;width:100%}._fd-opacity-input ._fd-ci-con{align-items:center;display:flex;justify-content:space-between;width:150px}._fd-opacity-input ._fd-ci-con>span{width:32px}._fd-opacity-input .ant-slider{flex:1;margin-right:15px}._fd-style-editor{flex:1;width:100%}._fd-style-editor .CodeMirror,._fd-style-editor>div{height:100%}._fd-gcc,._fd-gcc .ant-badge{width:100%}._fd-gcc .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gcc-l,._fd-gcc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gcc-con ._fd-gcc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gcc-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-gcc-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gcc-r{background:var(--fc-bg-color-1);border-left:0}._fd-gcc-r ._fd-gcc-head{justify-content:flex-end}._fd-gcc-r .ant-layout-content>.ant-form{padding:20px;width:100%}._fd-gcc-default.is-active ._fd-label{color:var(--fc-style-color-1);margin-top:0}._fd-gcc-method{color:#923b76;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:175px}._fd-gcc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-gcc-method span+._fd-label{margin-top:4px}._fd-gcc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gcc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gcc-title .ant-input{border:0;box-shadow:none}._fd-gvc,._fd-gvc .ant-badge{width:100%}._fd-gvc .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-gvc-l,._fd-gvc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gvc-dialog ._fd-gvc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gvc-dialog .ant-layout-content{background:var(--fc-bg-color-1)}._fd-gvc-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-gvc-r{background:var(--fc-bg-color-1);border-left:0}._fd-gvc-r ._fd-gvc-head{justify-content:flex-end}._fd-gvc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gvc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gvc-title .ant-input{border:0;box-shadow:none}._fc-json-preview{color:var(--fc-text-color-1);display:flex;width:100%}._fc-json-preview .CodeMirror{font-size:12px;height:100%}._fd-struct,._fd-struct .ant-badge{width:100%}._fd-struct .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-struct-dialog .CodeMirror{height:500px}._fd-props-input{flex:1;text-align:right}._fd-props-input .fc-icon{cursor:pointer}._fd-language-config{height:100%;overflow:auto}._fd-lc-body,._fd-lc-header{padding:0 12px}._fd-lc-body{overflow:auto}._fd-lc-body .ant-table-cell{padding:8px 4px!important}._fd-lc-header{display:flex;justify-content:flex-end;margin-bottom:12px}._fd-lc-header .ant-btn+.ant-btn{margin-left:12px}._fd-lc-handle{align-items:center;cursor:pointer;display:flex;justify-content:space-between}._fd-slots-config .ant-input-group-wrapper{margin-left:5px;min-width:170px;width:170px}._fd-slots-config .fc-icon{cursor:pointer;font-size:14px}._fd-slots-icons{grid-gap:10px;display:grid;grid-template-columns:repeat(13,1fr);width:100%}._fd-slots-icon{color:var(--fc-text-color-1);cursor:pointer;text-align:center}._fd-slots-config-pop{max-height:320px;overflow:auto;width:400px}._fd-quick-layout-content{grid-column-gap:10px;display:grid;grid-template-columns:repeat(4,1fr);width:240px}._fd-quick-layout-content>div{cursor:pointer;display:flex;flex-direction:column;font-size:12px;text-align:center}._fd-quick-layout-content>div:hover{color:var(--fc-style-color-1)}._fd-quick-layout-content i{font-size:24px}._fd-ai-chat{box-sizing:border-box;display:flex;flex-direction:column;font-size:12px;height:100%;padding:12px}._fd-ai-chat-header{border:1px solid var(--fc-line-color-3);border-radius:6px}._fd-ai-chat-prompt{display:flex;justify-content:space-between;padding:8px 12px 10px}._fd-ai-chat-prompt .fc-icon{font-size:12px;margin-right:2px}._fd-ai-chat-refresh{color:var(--fc-style-color-1);cursor:pointer}._fd-ai-chat-question{align-items:center;background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);cursor:pointer;display:flex;justify-content:space-between;margin:0 12px 12px;padding:7px 10px}._fd-ai-chat-question+._fd-ai-chat-question{margin-top:6px}._fd-ai-chat-question .fc-icon{margin-left:12px}._fd-ai-chat-question .icon-down:before{display:inline-block;transform:rotate(-90deg)}._fd-ai-chat-history{display:flex;flex:1;flex-direction:column;margin-top:12px;overflow:auto}._fd-ai-chat-history-chat{align-items:flex-end;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-chat>div{background:var(--fc-style-bg-color-1);border-radius:6px 0 6px 6px;color:var(--fc-style-color-1);max-width:70%;padding:10px;white-space:pre-wrap}._fd-ai-chat-history-status{align-items:flex-start;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-status>div{background:var(--fc-bg-color-2);border-radius:0 6px 6px;color:var(--fc-text-color-2);max-width:70%;overflow:hidden;padding:10px;position:relative}._fd-ai-chat-history-status>div>div{align-items:center;display:flex;position:relative;z-index:1}._fd-ai-chat-history-status.loading>div:after{animation:b 3s linear infinite;background:linear-gradient(0deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%);bottom:-2px;content:"";filter:blur(5px);left:-2px;padding:1px;position:absolute;right:-2px;top:-2px}._fd-ai-chat-history-status.loading>div{border-radius:0 6px 6px;padding:1px}._fd-ai-chat-history-status.loading>div>div{background-color:var(--fc-bg-color-1);border-radius:0 6px 6px;padding:7px 10px}._fd-ai-chat-history-status.success>div{background:var(--fc-style-bg-color-2);color:var(--fc-style-color-2)}._fd-ai-chat-history-status .fc-icon{background:var(--fc-style-color-2);border-radius:15px;color:#fff;font-size:14px;height:15px;margin-right:5px;text-align:center;width:15px}._fd-ai-chat-history-status.fail>div{background:var(--fc-style-bg-color-3);color:var(--fc-style-color-3)}._fd-ai-chat-history-status.fail .fc-icon{background:var(--fc-style-color-3)}._fd-ai-chat-input{border-radius:6px;margin-top:12px;position:relative;width:100%}._fd-ai-chat-clear{margin-bottom:6px;text-align:right}._fd-ai-chat-clear .ant-btn{color:var(--fc-text-color-2);margin-right:2px;padding:0}._fd-ai-chat-clear .fc-icon{font-size:13px}._fd-ai-chat-input-wrapper{box-sizing:border-box;height:120px;padding:1px;position:relative}._fd-ai-chat-input-wrapper:before{background:linear-gradient(135deg,var(--fc-style-color-1),var(--fc-style-color-4));border-radius:6px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}._fd-ai-chat-input .ant-input{background:var(--fc-bg-color-1);border:none;border-radius:6px;box-shadow:none;height:100%;resize:none}._fd-ai-chat-input>.fc-icon{align-items:center;background:var(--fc-style-color-1);border-radius:15px;bottom:12px;color:#fff;cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;position:absolute;right:12px;text-align:center;width:20px}._fd-ai-chat-input .icon-suspend{background:linear-gradient(90deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%)}._fd-ai-chat-input .disabled{background:var(--fc-text-color-3)}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fd-drag-tool{word-wrap:break-word;box-sizing:border-box;display:block;min-height:20px;min-width:0;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;padding:2px;position:relative;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{margin:2px;max-height:calc(100% - 7px);max-width:calc(100% - 4px)}._fd-drag-tool.is-inline{display:inline-block}._fd-drag-tool.is-inside{height:inherit;width:inherit}._fd-drag-tool:hover{outline-color:var(--fc-style-color-1);outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:hover){outline-style:dashed}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-drag-tool:has(._fd-drag-tool){padding:2px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{min-height:36px;min-width:80px;outline:2px solid var(--fc-style-color-1)!important;z-index:2}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-bottom:15px!important;padding-top:15px!important}._fd-drag-tool._fd-drop-hover:hover{outline:1px dashed var(--fc-tool-border-color)}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{padding:0 2px 2px 0;right:0;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:4}._fd-drag-l{left:0;top:0}._fd-drag-btn{align-items:center;background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;width:18px}._fd-drag-btn .ant-dropdown{color:#fff}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:var(--fc-style-color-3)}._fd-drag-btn i{font-size:14px}._fd-drag-hidden,._fd-drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:3}._fd-drag-hidden{align-items:center;background:rgba(51,51,51,.7);color:#fff;display:flex;font-size:14px;justify-content:center}._fd-drag-tool.active ._fd-drag-hidden,._fd-drag-tool:has(._fd-drag-tool.active) ._fd-drag-hidden,._fd-drag-tool:hover ._fd-drag-hidden{display:none}._fd-drag-hidden .fc-icon{margin-right:5px}._fd-html-editor{width:100%}._fd-html-editor>.ant-btn{font-size:12px;font-weight:400;width:100%}._fd-html-editor-con .CodeMirror{height:450px}._fd-html-editor-con .CodeMirror-line{font-size:13px!important;line-height:16px!important}._fd-html-editor-con .CodeMirror-lint-tooltip{z-index:1!important}._fd-field-input{position:relative;width:100%}._fd-field-input>.fc-icon{color:#a8abb2;cursor:pointer;height:24px;position:absolute;right:32px;text-align:center;top:0;width:24px;z-index:1}._fd-field-input .ant-tree-select{width:100%}._fd-field-input .ant-select-tree-indent-unit{width:5px}._fd-list-input{width:100%}._fd-list-input .ant-input-group-addon{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-list-input .fc-icon{cursor:pointer}._fd-fetch-config,._fd-fetch-config .ant-badge{width:100%}._fd-fetch-config .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-fetch-dialog .form-create{margin-top:15px}._fd-fetch-dialog ._fc-tabs{display:flex}._fd-fetch-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-fetch-con{background:var(--fc-bg-color-1)}._fd-fetch-con .CodeMirror{height:100%;width:100%}._fd-fetch-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-table-column-config,._fd-table-column-config .ant-badge{width:100%}._fd-table-column-config .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-tcc-dialog .flex{display:flex}._fd-tcc-dialog .ant-modal-body{height:500px;overflow:auto}._fd-tcc-dialog .ant-table-cell{font-size:12px;font-weight:400}._fd-tcc-dialog .ant-table .fc-icon{cursor:pointer}._fd-tcc-dialog ._fd-fn{height:100%}._fd-table-button-config,._fd-table-button-config .ant-badge{width:100%}._fd-table-button-config .ant-btn{font-weight:400;width:100%}._fd-tcb-dialog .ant-modal-body{height:500px;overflow:auto}._fd-tcb-dialog .ant-modal-body .ant-btn{align-items:center;display:flex}._fd-tcb-dialog .ant-table-cell{padding:4px!important}._fd-tcb-dialog .ant-table-cell .ant-input{height:24px}._fd-tcb-dialog .ant-table-cell{font-size:12px;font-weight:400}._fd-tcb-btn,._fd-tcb-dialog .ant-table .fc-icon{cursor:pointer}._fd-tcb-btn{align-items:center;display:flex;font-size:12px}._fc-data-table{width:100%}._fc-data-table .ant-pagination{display:flex;margin-top:10px}._fc-data-table .ant-pagination.left{justify-content:flex-start}._fc-data-table .ant-pagination.center{justify-content:center}._fc-data-table .ant-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .ant-image{height:60px;max-width:150px}._fc-data-table ._fc-data-table-img-list .ant-image img{height:100%;object-fit:cover;width:100%}._fc-data-table .ant-btn+.ant-btn{margin-left:12px}._fd-fn-list,._fd-fn-list .ant-badge{width:100%}._fd-fn-list .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-fn-list-l,._fd-fn-list-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-fn-list-con ._fd-fn-list-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-fn-list-con ._fd-fn-list-head>span{color:var(--fc-style-color-1);line-height:1em}._fd-fn-list-con .ant-layout-content{background:var(--fc-bg-color-1);display:flex;overflow:auto}._fd-fn-list-head .ant-btn.ant-btn-link{color:var(--fc-style-color-1);padding:0}._fd-fn-list-r{background:var(--fc-bg-color-1);border-left:0}._fd-fn-list-r ._fd-fn-list-head{justify-content:flex-end}._fd-fn-list-method{display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;line-height:1em;overflow:hidden;padding:10px 0;white-space:pre-wrap;width:100%}._fd-fn-list-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-fn-list-method-info>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-fn-list-method-info>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:var(--fc-text-color-1);margin-left:10px}._fd-fn-list-con .CodeMirror{height:100%;width:100%}._fd-fn-list-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-fn-input,._fd-fn-input .ant-badge{width:100%}._fd-fn-input .ant-btn{font-size:12px;font-weight:400;width:100%}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:1!important}._fd-fn-input-dialog .ant-modal-body{height:500px}._fd-gfs{align-items:center;display:flex;width:100%}._fd-gfs .ant-select{flex:1}._fd-gfs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gfs-handle .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-gfs-handle .icon-refresh.disabled{color:#a9abb2;cursor:not-allowed}._fd-gfs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-gcs{align-items:center;display:flex;width:100%}._fd-gcs .ant-select{flex:1}._fd-gcs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gcs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-fetch-table{width:100%}._fd-fetch-table .ant-layout{background:var(--fc-bg-color-1)}._fd-fetch-table-con{border:1px solid var(--fc-line-color-3);border-bottom:0;display:flex;flex:1;flex-direction:column;height:100%}._fd-fetch-table-con .ant-layout-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;height:30px;padding-left:12px}._fd-fetch-table-con .ant-layout-content{display:flex;flex-direction:column}._fd-fetch-table-row{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:34px;padding:0 10px 4px;width:100%}._fd-fetch-table-row>.fc-icon{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;margin-left:12px;margin-top:4px;width:24px}._fd-fetch-table-row .ant-input-affix-wrapper{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-fetch-table-key{margin-right:15px;width:calc(40% - 20px)}._fd-table-view{overflow:auto}._fd-table-view-cell{background:var(--fc-bg-color-1);border:1px inset rgba(0,0,0,.1);height:100%;min-height:50px}._fd-table-view-cell>._fd-drag-tool{border:0;height:100%;margin:0;max-height:100%;max-width:100%;min-width:unset;width:100%}._fd-table-view-btn{flex-direction:column;padding:0}._fd-table-view-btn .fc-icon{color:#fff;font-size:16px;width:18px}._fd-table-view-icon{color:#fff;display:flex;height:100%;justify-content:center;margin-top:1px;width:100%}._fd-table-view>table{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fd-table-view tr{min-height:50px}._fd-table-view td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-height:50px;min-width:80px;overflow-wrap:break-word;padding:0;position:relative;white-space:nowrap}._fd-tableCell-drag{height:100%}._fc-table{overflow:auto}._fc-table>table{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fd-value{color:var(--fc-text-color-3);white-space:nowrap}._fd-json-container{--fc-json-mask:" ";display:flex;flex:1;flex-direction:column;flex-wrap:wrap;justify-content:center;min-height:20px;position:relative}._fd-json-container ._fd-dialog,._fd-json-container ._fd-drawer,._fd-json-container ._fd-popup{display:none}._fc-line-form{display:flex;flex-wrap:wrap;width:100%}._fc-line-form .ant-form-item{flex:none;flex-wrap:nowrap;margin-inline-end:16px;margin-bottom:0}.form-create ._fc-line-form ._fc-line-form,.form-create ._fc-line-form ._fd-drag-item,.form-create ._fc-line-form ._fd-drag-tool,.form-create ._fc-line-form .ant-col-24{display:inline-flex;flex:initial;flex:unset!important;flex-wrap:wrap;max-width:100%;width:auto!important}._fc-m-con .form-create ._fc-line-form>.ant-col-24{width:100%!important}._fc-line-form .ant-select,._fc-line-form .ant-slider{width:220px}._fd-language-popover{width:300px}._fd-language-list{max-height:320px;overflow:auto;padding-top:70px}._fd-language-input .ant-input-group-addon{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-language-input.is-variable input{color:var(--fc-style-color-1)}._fd-language-header,._fd-language-item{border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 12px}._fd-language-header{background-color:var(--fc-bg-color-1);color:var(--fc-text-color-1);flex-direction:column;font-weight:500;left:0;line-height:1.4;overflow:auto;padding-top:10px;position:absolute;right:0;top:0}._fd-language-item>div,._fd-language-name>div{flex:1;font-size:12px;min-width:70px;padding:5px}._fd-language-title{margin:6px 0}._fd-language-title .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{color:var(--fc-text-color-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fd-language-item{cursor:pointer}._fd-language-item:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-language-popover .ant-popover-inner{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{font-weight:400;width:100%}._fd-validate-item{border-bottom:1px dashed var(--fc-line-color-3);margin-bottom:10px}._fd-validate-item .ant-col-12:first-child{padding-right:5px}._fd-validate-item .ant-col-12+.ant-col-12{padding-left:5px}._fd-validate-item .ant-input-number{width:100%}._fd-validate-title{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px}._fd-validate-title>div{align-items:center;display:flex}._fd-validate-title>div>span{background:var(--fc-bg-color-3);border-radius:15px;font-size:12px;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}._fd-validate-title i{cursor:pointer}._fd-validate-title i:hover{color:var(--fc-style-color-3)}._fd-validate .append-msg{cursor:pointer}._fd-required{align-items:center;display:flex;height:31px;width:100%}._fd-required .ant-input-group-wrapper{margin-left:15px}._fd-tree-opt ._fd-tree-opt-btn{background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:18px;padding-bottom:1px;text-align:center;width:22px}._fd-tree-opt-node{align-items:center;display:flex}._fd-tree-opt-first{margin-right:5px;width:60px}._fd-tree-opt-last{width:170px}._fd-tree-opt-last._label{width:160px}._fd-tree-opt ._fd-tree-opt-danger{background-color:var(--fc-style-color-3);border-radius:0 2px 2px 0}._fd-tree-opt .ant-input-group-addon{background:var(--fc-bg-color-1);padding-left:1px;padding-right:1px;width:70px}._fd-tree-opt .ant-tree-indent-unit{width:5px}._fd-tree-opt .ant-tree-switcher{width:12px!important}._fc-step-form{width:100%}._fc-step-form>.ant-steps{margin-bottom:20px}._fd-step-form{width:100%}._fd-step-form .ant-step{cursor:pointer}._fd-step-form>.ant-steps{margin-bottom:20px}._fd-table-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);width:100%}._fc-child-empty,._fd-table-form{min-height:130px}._fd-tf-wrap{display:flex;overflow:auto}._fd-tf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-ntable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-ntable-sub .ant-form-item-label,._fd-ntable-sub .van-field__label{display:none!important}._fd-ntable-form ._fc-child-empty{min-height:130px}._fd-ntf-wrap{display:flex;overflow:auto}._fd-ntf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-ntable-sub ._title{background-color:var(--fc-bg-color-3);border-radius:8px 8px 0 0;color:#65676b;display:inline-block;font-size:12px;height:20px;line-height:1em;margin-left:2px;padding:6px 8px 0;text-align:center}._fd-ntable-sub>._fd-drag-tool{margin-top:0}._fc-nested-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-nested-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-nested-table-form .ant-form-item-label,._fc-nested-table-form .van-field__label{display:none!important}._fc-ntf-table ._fc-ntf-head-idx,._fc-ntf-table ._fc-ntf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-ntf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-ntf-sub-idx{width:30px}._fc-ntf-btn,._fc-ntf-edit{min-width:70px;text-align:center;width:70px}._fc-ntf-btn .fc-icon{cursor:pointer}._fc-nested-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-nested-table-form._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-ntf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-ntf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-ntf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-ntf-table tr{min-height:50px}._fc-ntf-table ._fc-read-view{text-align:center;width:100%}._fc-ntf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-ntf-table td+td{border-left:1px solid #ebeef5}._fc-ntf-table .ant-cascader,._fc-ntf-table .ant-input-number,._fc-ntf-table .ant-picker,._fc-ntf-table .ant-select,._fc-ntf-table .ant-slider{width:100%}._fc-nested-table-form ._fc-ntf-sub{background-color:#fafafa}._fc-ntf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-ntf-sub ._fc-tf-table{border:0}._fc-ntf-idx+._fc-ntf-idx,._fc-ntf-sub-idx+._fc-ntf-head-idx{border-left:0}._fc-ntf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fd-itable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-itable-form ._fc-child-empty{min-height:130px}._fd-itf-wrap{display:flex;overflow:auto}._fd-itf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .ant-form-item{margin-bottom:1px}._fc-infinite-table-form .ant-form-item-label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-itf-table ._fc-itf-head-idx,._fc-itf-table ._fc-itf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-itf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-itf-sub-idx{width:30px}._fc-itf-btn,._fc-itf-edit{min-width:70px;text-align:center;width:70px}._fc-itf-btn .fc-icon{cursor:pointer}._fc-infinite-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-itf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-itf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-itf-table ._fc-itf-table>thead{display:none}._fc-itf-table ._fc-itf-table{border-right:0}._fc-itf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-itf-table tr{min-height:50px}._fc-itf-table ._fc-read-view{text-align:center;width:100%}._fc-itf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-itf-table td+td{border-left:1px solid #ebeef5}._fc-itf-table .ant-cascader,._fc-itf-table .ant-input-number,._fc-itf-table .ant-picker,._fc-itf-table .ant-select,._fc-itf-table .ant-slider{width:100%}._fc-infinite-table-form ._fc-itf-sub{padding:5px 0 5px 10px}._fc-itf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-itf-sub ._fc-tf-table{border:0}._fc-itf-idx+._fc-itf-idx,._fc-itf-sub-idx+._fc-itf-head-idx{border-left:0}._fc-itf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-table-form .ant-form-item-label,._fc-table-form .van-field__label{display:none!important}._fc-tf-head-idx,._fc-tf-idx{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form>.ant-btn{align-items:center;display:flex;padding:2px}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.ant-btn{cursor:not-allowed}._fc-tf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .ant-cascader,._fc-tf-table .ant-input-number,._fc-tf-table .ant-picker,._fc-tf-table .ant-select,._fc-tf-table .ant-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fd-tf-col ._fd-tf-con .ant-form-item{margin-bottom:1px!important}._fd-tf-col{display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;width:180px}._fd-tf-con .ant-form-item-label,._fd-tf-con .van-field__label{display:none!important}._fd-tf-con{display:flex;flex:1;width:100%}._fd-tf-title{align-items:center;border-bottom:1px solid #ebeef5;display:flex;height:40px;margin-bottom:0;padding-left:5px;width:100%!important}._fd-tf-required{color:#f56c6c;margin-right:4px}._fd-tf-con ._fc-l-item>*{display:none!important}._fd-tf-con .ant-cascader,._fd-tf-con .ant-input-number,._fd-tf-con .ant-picker,._fd-tf-con .ant-select,._fd-tf-con .ant-slider{width:100%}._fd-step-form-item>._fd-drag-tool{min-height:200px}._fd-dialog.ant-modal{box-sizing:border-box;color:#000000e0;font-size:14px;height:100%;line-height:1.5714285714285714;list-style:none;margin:0;padding:10px;pointer-events:none;width:100%}._fd-dialog.ant-modal .ant-modal-content{background-clip:padding-box;background-color:#fff;border:0;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;display:flex;flex-direction:column;height:100%;padding:20px 24px;pointer-events:auto;position:relative}._fd-dialog.ant-modal .ant-modal-close,._fd-dialog.ant-modal .ant-modal-fullpage{background:transparent;border:0;border-radius:4px;color:#00000073;cursor:pointer;font-weight:600;height:22px;inset-inline-end:17px;line-height:1;outline:0;padding:0;position:absolute;text-decoration:none;top:17px;transition:color .2s,background-color .2s;width:22px;z-index:1}._fd-dialog.ant-modal .ant-modal-fullpage{right:45px}._fd-dialog.ant-modal .ant-modal-title{word-wrap:break-word;color:#000000e0;font-size:16px;font-weight:600;line-height:1.5;margin:0}._fd-dialog.ant-modal .ant-modal-header{margin-bottom:8px}._fd-dialog.ant-modal .ant-modal-body{flex:1}._fd-dialog.ant-modal .ant-modal-footer{background:transparent;margin-top:12px;text-align:end}._fd-dialog .ant-modal-body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-dialog-height) - 125px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-dialog-fullscreen .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0;width:100%!important}._fc-dialog-fullscreen .ant-modal-content{display:flex;flex-direction:column;height:100vh}._fc-dialog-fullscreen .ant-modal-body{flex:1}._fd-drawer .ant-drawer-content-wrapper,._fd-drawer.ant-drawer{box-shadow:unset;height:100%;width:100%}._fd-drawer.ant-drawer .ant-drawer-wrapper-body{display:flex;flex-direction:column;height:100%;width:100%}._fd-drawer.ant-drawer .ant-drawer-body{flex:1;min-height:0;min-width:0;overflow:auto;padding:5px}._fd-drawer.ant-drawer .ant-drawer-header{align-items:center;border-bottom:1px solid rgba(5,5,5,.06);display:flex;flex:0;font-size:16px;justify-content:space-between;line-height:1.5;padding:16px 24px}._fd-drawer.ant-drawer .ant-drawer-close{background:transparent;border:0;color:#00000073;cursor:pointer;display:inline-block;font-size:16px;font-style:normal;font-weight:600;line-height:1;margin-inline-end:4px;outline:0;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;transition:color .2s}._fd-drawer.ant-drawer .ant-drawer-title{color:#000000e0;flex:1;font-size:16px;font-weight:600;line-height:1.5;margin:0}._fd-drawer.ant-drawer .ant-drawer-header-title{align-items:center;display:flex;flex:1;min-height:0;min-width:0}._fd-drawer .ant-drawer-body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-drawer-height) - 64px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-drawer .ant-drawer-close{background:transparent;border:0;color:#00000073;cursor:pointer;display:inline-block;font-size:16px;font-style:normal;font-weight:600;line-height:1;margin-inline-end:12px;outline:0;text-align:center;text-decoration:none;text-rendering:auto;text-transform:none;transition:color .2s}._fc-cell{display:inline-block}._fd-cell{display:inline-block}._fd-cell.is-new{width:100%!important}._fd-cell>div{box-sizing:border-box}._fd-cell>div>._fd-drag-tool.is-inline,._fd-cell>div>._fd-drag-tool>._fd-drag-box{align-content:var(--fc-cell-alignContent)!important;align-items:var(--fc-cell-alignItems)!important;display:var(--fc-cell-display)!important;flex-direction:var(--fc-cell-flexDirection)!important;flex-wrap:var(--fc-cell-flexWrap)!important;justify-content:var(--fc-cell-justifyContent)!important}._fd-cell>div>._fd-drag-item:has(>._fd-drag-tool>.ant-col-24,>.ant-col-24),._fd-cell>div>._fd-drag-tool>._fd-drag-box>._fd-drag-item:has(>._fd-drag-tool>.ant-col-24,>.ant-col-24){flex:none}._fc-cell .ant-cascader,._fc-cell .ant-input-number,._fc-cell .ant-picker,._fc-cell .ant-select,._fc-cell .ant-slider{width:100%}._fd-row{display:flex;flex-flow:row wrap;min-width:0;width:100%}._fd-hide-config{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex}._fd-hide-config .fc-icon{margin-right:3px}._fd-hide-config.active{color:var(--fc-style-color-1)}._fd-hide-config.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-span-input{display:flex;width:100%}._fd-span-input .ant-radio-button-wrapper{align-items:center;display:flex;flex:1!important;height:auto;justify-content:center;text-align:center}._fc-video-box,._fc-iframe-box{width:100%}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-signature-btn{cursor:pointer}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-signature-btn i{font-size:14px}._fc-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px}._fc-echarts{height:300px;width:100%}:root{--fc-drag-empty:"\\62d6\\62fd\\5de6\\4fa7\\5217\\8868\\4e2d\\7684\\7ec4\\4ef6\\5230\\6b64\\5904";--fc-child-empty:"\\70b9\\51fb\\53f3\\4e0b\\89d2 \\e789 \\6309\\94ae\\6dfb\\52a0\\4e00\\5217";--fc-text-color-1:#262626;--fc-text-color-2:#666;--fc-text-color-3:#aaa;--fc-bg-color-1:#fff;--fc-bg-color-2:#f5f5f5;--fc-bg-color-3:#ececec;--fc-line-color-1:#ddd;--fc-line-color-2:#d9d9d9;--fc-line-color-3:#ececec;--fc-style-color-1:#2e73ff;--fc-style-bg-color-1:rgba(46,115,255,.05);--fc-style-color-2:#00c050;--fc-style-bg-color-2:rgba(0,192,80,.05);--fc-style-color-3:#ff2e2e;--fc-style-bg-color-3:rgba(255,46,46,.05);--fc-style-color-4:#4efdb7;--fc-style-bg-color-4:rgba(78,253,183,.05)}html.dark{--fc-text-color-1:#e5eaf3;--fc-text-color-2:#cfd3dc;--fc-text-color-3:#6c6e72;--fc-bg-color-1:#0a0a0a;--fc-bg-color-2:#191919;--fc-bg-color-3:#2b2b2c;--fc-line-color-1:#393a3c;--fc-line-color-2:#636466;--fc-line-color-3:#2b2b2c}._fc-designer,._fd-config-dialog{--el-color-primary:#2e73ff;--el-color-primary-light-3:#69f;--el-color-primary-light-5:#9bf;--el-color-primary-light-7:#ccdfff;--el-color-primary-light-8:#e0ebff;--el-color-primary-light-9:#ccdfff;--el-color-primary-dark-2:#265fcc;--el-color-success:#00c050;--el-color-success-light-3:#4ddb82;--el-color-success-light-5:#80e6a3;--el-color-success-light-7:#b3f1c5;--el-color-success-light-8:#ccf6d5;--el-color-success-light-9:#e6fae6;--el-color-success-dark-2:#00a046;--el-color-danger:#ff2e2e;--el-color-danger-light-3:#f66;--el-color-danger-light-5:#f99;--el-color-danger-light-7:#fcc;--el-color-danger-light-8:#ffd9d9;--el-color-danger-light-9:#ffe6e6;--el-color-danger-dark-2:#cc2626;--el-menu-hover-bg-color:var(--el-color-primary-light-9)}._fd-plain-button{border-color:var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-designer .CodeMirror-gutters,._fd-config-dialog .CodeMirror-gutters{background-color:var(--fc-bg-color-3);border-right-color:var(--fc-line-color-2)}._fc-designer .CodeMirror-scroll,._fd-config-dialog .CodeMirror-scroll{background-color:var(--fc-bg-color-2);caret-color:var(--fc-text-color-1);color:var(--fc-text-color-1)}._fc-designer .ant-layout-content,._fc-designer .ant-layout-header,._fc-designer .ant-layout-sider{background:var(--fc-bg-color-1)}._fc-designer .ant-layout-header{line-height:normal;padding:0 10px}._fc-designer .ant-layout-content{overflow:auto}._fc-designer .ant-layout{height:100%}._fc-designer,._fd-config-dialog .CodeMirror-scroll{background-color:var(--fc-bg-color-1)}._fc-designer{--fc-tool-border-color:var(--fc-line-color-1);cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.ant-layout-content{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-l-menu{border-right:1px solid var(--fc-line-color-3);border-top:1px solid var(--fc-line-color-3);flex-direction:column}._fc-l-menu,._fc-l-menu-item{align-items:center;display:flex}._fc-l-menu-item{box-sizing:border-box;cursor:pointer;height:40px;justify-content:center;width:100%}._fc-l-menu-item.active{color:var(--fc-style-color-1)}._fc-l-menu-form{border-bottom:1px solid var(--fc-line-color-3)}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item .ant-scroll-number{height:15px;line-height:15px;min-width:15px}._fc-l-menu-item i:hover{color:var(--fc-style-color-1)}._fc-l-label{color:var(--fc-text-color-1);font-size:14px;font-weight:500;line-height:17px;margin-top:5px;padding:10px 12px}._fc-l-info{color:var(--fc-text-color-3);font-size:12px;font-style:normal;font-weight:400;line-height:17px;text-align:left}._fc-l-global,._fc-l-info{padding:0 12px}._fc-l-global ._fc-l-label{font-size:12px;font-weight:400;margin-bottom:8px;margin-top:14px;padding:0}._fc-m .form-create ._fc-l-item.is-inline,._fc-m .form-create-m ._fc-l-item.is-inline{box-sizing:border-box;display:inline-flex!important;vertical-align:top;width:100px}._fc-m .form-create ._fc-field-node,._fc-m .form-create ._fc-l-item,._fc-m .form-create-m ._fc-field-node,._fc-m .form-create-m ._fc-l-item{align-items:center;background:var(--fc-bg-color-2);border:1px dashed #000;border-radius:4px;color:var(--fc-text-color-1);display:flex!important;height:30px;justify-content:center;margin:5px 0;overflow:hidden;padding-bottom:0;transition:all .3s ease;width:calc(100% - 2px)}._fc-m .form-create ._fc-field-node .fc-icon,._fc-m .form-create ._fc-l-item ._fc-l-icon,._fc-m .form-create-m ._fc-field-node .fc-icon,._fc-m .form-create-m ._fc-l-item ._fc-l-icon{display:inline-block!important;font-size:21px;padding:0 4px}._fc-m .form-create ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create ._fc-l-item ._fc-l-name,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create-m ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-m .form-create ._fc-field-node ._fc-field-node-label,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label{align-items:center;display:flex!important}._fc-l,._fc-m,._fc-r{border-top:1px solid var(--fc-line-color-3);box-sizing:border-box;transition:none!important}._fc-r-title{color:var(--fc-text-color-1);font-size:12px;margin:15px 0 5px}._fc-r-config{display:grid;grid-template-areas:"a" "b" "c" "d" "e" "f" "g";grid-template-columns:repeat(1,1fr)}._fc-r-name-input .ant-input-group-addon{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:var(--fc-style-color-1)}._fc-r .ant-layout-content{padding:20px 20px 100px}._fc-r ._fc-r-tab-props{padding-top:0}._fc-designer ._fc-r .ant-form-item-label{padding-bottom:4px}._fc-designer ._fc-r .ant-btn,._fc-designer ._fc-r .ant-col,._fc-designer ._fc-r .ant-form input,._fc-designer ._fc-r .ant-form label,._fc-designer ._fc-r .ant-form-item-label label,._fc-designer ._fc-r .ant-input,._fc-designer ._fc-r .ant-input-group-addon,._fc-designer ._fc-r .ant-radio-button-wrapper,._fc-designer ._fc-r .ant-radio-wrapper,._fc-designer ._fc-r .ant-select-selector,._fc-designer ._fc-r .ant-tag{font-size:12px!important}._fc-r .ant-form-item .ant-form-item-label>label{height:auto}._fd-config-dialog .ant-btn,._fd-config-dialog .ant-col,._fd-config-dialog .ant-form input,._fd-config-dialog .ant-form label,._fd-config-dialog .ant-form-item-label label,._fd-config-dialog .ant-input-group-addon,._fd-config-dialog .ant-radio-button-wrapper,._fd-config-dialog .ant-radio-wrapper,._fd-config-dialog .ant-select-selector,._fd-config-dialog .ant-tag{font-size:12px!important}._fd-config-dialog .ant-btn-link{font-size:14px!important;font-weight:500;padding-left:0;padding-right:0}._fc-designer ._fc-r .ant-table-wrapper .ant-table-thead>tr>th{font-size:12px;font-weight:400}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:a 2s linear infinite}._fc-struct-tree{color:var(--fc-text-color-1);margin:5px 0}._fc-struct-tree .ant-tree-indent-unit{width:10px}._fc-tree-node{align-items:center;display:flex;height:30px;justify-content:space-between;line-height:30px;padding-right:5px;width:100%}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:var(--fc-style-color-1)}._fc-tree-label{align-items:center;display:flex}._fc-tree-label>i{font-weight:400;margin-right:2px}._fc-tree-more{align-items:center;display:flex;padding:0 15px}._fc-tree-more .icon-more{font-weight:700}._fc-designer ._fc-l-tabs,._fc-designer ._fc-r-tabs{border-bottom:1px solid var(--fc-line-color-3);display:block;padding:0 10px;position:relative;width:100%}._fc-l-tab,._fc-r-tab{box-sizing:border-box;color:var(--fc-text-color-1);cursor:pointer;display:inline-block;font-size:14px;font-weight:400;height:40px;line-height:40px;list-style:none;margin:0 10px;position:relative;text-align:center}._fc-l ._fc-l-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-l-group{border:1px solid var(--fc-line-color-2);margin:12px;padding:0;user-select:none}._fc-l-group ._fc-l-list{align-items:stretch;display:grid;grid-template-columns:repeat(3,1fr)}._fc-l-group.is-template ._fc-l-list{grid-column-gap:5px;align-items:stretch;display:grid;grid-template-columns:repeat(2,1fr);padding:0 7px}._fc-l-group.is-template ._fc-l-item{background:var(--fc-bg-color-2);height:30px;line-height:28px;margin-bottom:5px;overflow:hidden;padding-bottom:0;text-overflow:ellipsis;white-space:nowrap}._fc-l-group.is-template ._fc-l-item:hover{background:var(--fc-style-color-1)}._fc-l-title{align-items:center;cursor:pointer;display:flex;font-weight:600;justify-content:space-between;margin:0;padding:12px}._fc-l-title,._fc-l-title i{font-size:14px}._fc-l-title i.down{transform:rotate(90deg)}._fc-l-item{background:var(--fc-bg-color-1);color:var(--fc-text-color-1);cursor:pointer;display:inline-block;line-height:1;padding-bottom:10px;text-align:center;transition:all .2s ease}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:var(--fc-style-color-1);color:#fff}._fc-m-tools{border:1px solid var(--fc-line-color-3);border-top:0;height:40px;justify-content:space-between;padding:0 10px;white-space:nowrap}._fc-m-tools,._fc-m-tools-l,._fc-m-tools-r{align-items:center;display:flex}._fc-m-tools-r{overflow:auto}._fc-m-tools-l .devices .fc-icon{cursor:pointer;width:18px}._fc-m-tools-l .devices .fc-icon.active{color:var(--fc-style-color-1)}._fc-m-tools-l .devices .fc-icon+.fc-icon{margin-left:5px}._fc-m-tools .line{background:var(--fc-line-color-3);height:24px;margin:0 10px;width:1px}._fd-btn-success{background-color:var(--el-color-success-light-8)!important;color:var(--fc-style-color-2)!important}._fd-btn-success,._fd-btn-success:hover{border-color:var(--el-color-success-light-5)!important}._fd-btn-success:hover{background-color:var(--el-color-success)!important;color:#fff!important}._fd-btn-primary{background-color:var(--el-color-primary-light-8)!important;color:var(--fc-style-color-1)!important}._fd-btn-primary,._fd-btn-primary:hover{border-color:var(--el-color-primary-light-5)!important}._fd-btn-primary:hover{background-color:var(--el-color-primary)!important;color:#fff!important}._fd-btn-danger{background-color:var(--el-color-danger-light-8)!important;color:var(--fc-style-color-3)!important}._fd-btn-danger,._fd-btn-danger:hover{border-color:var(--el-color-danger-light-5)!important}._fd-btn-danger:hover{background-color:var(--el-color-danger)!important;color:#fff!important}._fc-m-tools .ant-btn{align-items:center;border-radius:5px;display:flex;font-size:12px;padding:5px 10px}._fc-m-tools .ant-btn+.ant-btn{margin-left:10px}._fc-m-tools ._fd-m-extend{background-color:var(--fc-bg-color-3);border-color:var(--fc-line-color-1);border-radius:5px;color:#666;padding:5px}._fc-m-tools ._fd-m-extend .fc-icon{margin-right:0}._fc-m-tools ._fd-input-btn{align-items:center;display:flex;font-size:12px;justify-content:space-between}._fc-m-tools ._fd-input-btn .icon-check{color:#67c23a;font-size:18px}._fc-m-tools-r .fc-icon{font-size:14px;margin-right:2px}._fc-m-tools-l .fc-icon{cursor:pointer;font-size:18px}._fc-m-tools-l .fc-icon+.fc-icon{margin-left:10px}._fc-m-tools-l .fc-icon.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fc-r ._fc-r-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-m ._fc-m-con{background:var(--fc-bg-color-2);padding:20px;position:relative}._fc-m-drag.mobile,._fc-m-drag.pad{border:10px solid #000;border-radius:25px}._fc-m-drag{box-sizing:border-box;margin:0 auto;overflow:auto;padding:2px}._fc-m .ant-spin-nested-loading>.ant-spin-container>.ant-form>.ant-row>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative;width:100%}._fc-m .ant-spin-nested-loading,._fc-m .ant-spin-nested-loading>.ant-spin-container,._fc-m .ant-spin-nested-loading>.ant-spin-container>.ant-form,._fc-m .ant-spin-nested-loading>.ant-spin-container>.ant-form>.ant-row{height:100%}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 2px 10px #0000000d;left:0;margin:20px;padding:12px;position:absolute;right:0;text-align:center;z-index:1}._fc-m-input-handle>.ant-btn{font-size:13px}._fc-m-input-handle .ant-btn+.ant-btn{margin-left:12px}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background:var(--fc-bg-color-1);height:100%;position:relative}._fc-m-drag form>.ant-row>._fd-drag-tool,._fc-m-drag form>.van-row>._fd-drag-tool{width:100%}._fd-fcDialog-drag,._fd-fcDrawer-drag{padding:3px}._fc-m-drag>.ant-spin-nested-loading>.ant-spin-container>form>.van-row{flex-direction:column}._fd-drag-box{height:100%;min-height:80px;transition:padding-bottom,padding-top .3s ease;width:100%}._fd-drag-box ._fd-drag-box{outline:1px dashed var(--fc-line-color-1)}._fd-drag-tool>._fd-drag-box{outline:none}._fd-drag-box>div[data-draggable]{margin-bottom:1px}._fc-r ._fc-group-container+._fc-group-container{margin-top:20px}._fc-r ._fc-group-container{margin:0;padding:10px}._fc-r ._fc-group-handle{right:15px}._fc-r .ant-form-item{margin-bottom:14px!important}.cm-fc-field,.cm-fc-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;display:inline-block;line-height:1.5em;padding:0 8px}.cm-fc-id{background-color:#df2121}.CodeMirror-widget+.CodeMirror-widget{margin-left:5px}._fc-tabs{display:flex;height:100%;width:100%}._fc-tabs .ant-tabs-nav{margin-bottom:0;padding:0}._fc-tabs .ant-tabs-content{height:100%;overflow:auto}.form-create .fc-none{display:none}._fc-child-empty,._fd-aCard-drag.drag-holder,._fd-aCollapsePanel-drag.drag-holder,._fd-aTabPane-drag.drag-holder,._fd-aTooltip-drag.drag-holder,._fd-draggable-drag.drag-holder,._fd-fcDialog-drag.drag-holder,._fd-fcDrawer-drag.drag-holder,._fd-fcInlineForm-drag.drag-holder,._fd-group-drag.drag-holder,._fd-stepFormItem-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder{background:var(--fc-bg-color-2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAAMCAMAAABBazFtAAAA1VBMVEX///8uLi5wcHBDQ0P7+/v4+PhaWlpNTU3x8fHR0dH9/f1dXV0jIyPb29ucnJxSUlJLS0s7Ozvm5ubOzs5hYWH19fXIyMh9fX0+Pj5WVlbu7u6vr69ra2s1NTXj4+O8vLx0dHTX19fDw8OOjo6Hh4d5eXlISEg4ODi5ubkyMjLU1NSjo6Ofn5/r6+u0tLSLi4sWFharq6uEhITFxcXAwMCnp6eBgYGxsbFmZmbz8/OXl5eTk5MAAAANDQ23t7ccHBzd3d3Hx8cqKiro6OjKysrf39+QkJAsSMNaAAAFiElEQVRIx+WV17aaUBRFF016BymiiFLECrZrN5ry/58UjrnGkfKSPOQl0+E+e6Asz9SN4Gc+sCCEZOlx+AmX+7WTAFYAuOaJ8JmC38HiRyT2cVQCrNdBTiLl15TZ7HUW+8r7NRXhHr+hI7/TYQVB0DtNkcDbEMZFPJZEXe/Uuq7TIGgaqa9O3fJVfGHHDjBKAZgcCOP82zZ1vfUlCAIPwN4E1yUGu9aDISCrjrVwyvMNoBB/+fLlCMROFc/pbmW9UhrcdrvtBU1JAKzoj48XvI9d9hj51RHDGqzO8xcgXQBYvgGIed5LeF7Hk4+2vTsMI9u27Ip5UInCiSonueddOVfVFmknDH1gEUW+GUVbsBRFVVVTZupUsZDlbQcfD7Td71d0fxVT1PlKNUxs+Va04mRcADikjeGcbF4kjHSgVJ04mH+QwO7v+9rcbCqg25nBr20WrxQAn6PdKYrMIjqAw4C2DLBA8LnrUvW46WZlHJrq4gC4+fRdczr9yNwysu0ndts5LqL2J9g77AMJcMSOA9Q+TVccO1gsUkaWKUBcrfr91coG3CH5NSMO4Zj6FGKoOdiUyjCO75fYAkSF+xZMT7UWwxsFwFGz5rjJIvEIy54O3AfBfIgG7XpSViYsHSjqWmXQ8EohWKpyU/1a5VCwD81jjeBGWfxzTCd9TFIAXPjUVHzmdvXPL03F68qB712hThJPTpJkqg5LPqvp0Yji1G7a/vRGTS4cGenjsSksYNw0bS0Dq+Zb7vjq+9CqajlWJbil0kxld9xo+mFr/UEtgN0SlxnonTRbE1ZEs5Ll41nhKxX1KYHpbr4A3aNzKAyGObxSCAYd5RGTlTbo20PTsBDo8uZ85u+TgSF/yAWo/HZgGAnDXO9MwKqiuKtFZj3DEwp5Mk+bZZAFVZZRfDaQBJ8dp90oZdd0L+wOla0vrmTZP518WR7caJ73/TtPt5GdWnuxuDlApzjw3ax/Zmemo8/nc15sNJ1Ri7nyETayZN05SLKGqR4EMoimovZG29z1wRXnPDkeCwtgMD8w6AzxSiEYg2aamSNtI86IZmgC/EAV+FzgLaALOjcMw22692uzl9EnJzO72eSluZKlgblRACnX0KNcIA7OLY+/Mv4n0XP6ZkzVugi4/Hab74F9r+eUjNPr7Ve6efHC9lCZLMtICq+Wt8Hmra13Oh2DaM6Y1of0zRE5DrsaW5Z10W8DXaLpVrQ5meyyA4ZTqvfRvfYB7qwzE59ovlLkqhIMuk/TO4e3wZVEczgFCrpKnEnWAsnbM9a6hZemtaXqGdfzjBpP7jsB0upCNNcRUz78XQZ0QovpGhh48839YAiw+JGmxXkP4LaZpi09DlvLdNeBt+RDMrS4lAEa2mTclEazlfqtD7PTHE2KIUEbAuhHi4VCNNUWZy7X8ak5laWAN8UXsHIAmETzlUIwBNmetVTaBrRRo7lxAQrmaCmcLkRuE4o+FZJu/vmhOUuZbTE3tsrgdW2OHigA+3lIpSXdiHxUZDmhJ3kbGA4FtThW1lpZQdOaT18PqC+km5YrwHQBjMnQphi39GIjAe0MAN1oRp+44Is+NS3Y58kkjU4keTweJxB1aAvONFdUEOzJlg/FbNMN0w7wmSeaz5Sn5jI3mN7Obm4th2BeNLeWxIAZ1XxQfsD+5IxpqnvgwJ1l96GJQaYy86Vq4jvl4gEFUQmOAthJGSLxenHY71xYrjBtxtlOl9OeRf6mgd5soDadBiSfAIZoJjtcyvUotyFkW+CTB4lnBNg0sBuqGC0Q01stTkYevsHfp5h+5vwsF6GlQGHpjewm3QrAm0Y0XymElvCoSvi5/44mviGP6A3aAdxJbL6x7iIHOwXeNf1+MWf6Cv4M6W/eIuGfIr0vz/Xx+J/4CrqNrFdzXxZoAAAAAElFTkSuQmCC);background-size:0;min-height:90px;position:relative}._fc-child-empty:after,._fd-aCard-drag.drag-holder:after,._fd-aCollapsePanel-drag.drag-holder:after,._fd-aTabPane-drag.drag-holder:after,._fd-aTooltip-drag.drag-holder:after,._fd-draggable-drag.drag-holder:after,._fd-fcDialog-drag.drag-holder:after,._fd-fcDrawer-drag.drag-holder:after,._fd-fcInlineForm-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-stepFormItem-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after{align-items:center;bottom:0;color:var(--fc-text-color-3);content:var(--fc-drag-empty);display:flex;font-size:12px;justify-content:center;left:0;position:absolute;right:0;top:0}._fc-designer ._fc-m-drag ._fd-draggable-drag{overflow:auto;padding:2px 2px 100px}._fc-m-drag._fd-drop-hover ._fd-draggable-drag{padding-top:20px}._fd-draggable-drag.drag-holder{background-color:var(--fc-bg-color-1)}._fd-draggable-drag.drag-holder:after{font-size:16px}._fd-drag-item{width:100%}._fd-drag-item.is-inline{display:inline;vertical-align:top;width:auto}._fd-drag-item.is-inline>div{vertical-align:top}._fc-child-empty:after{content:var(--fc-child-empty);font-family:fc-icon!important}.fc-configured{color:var(--fc-text-color-3);margin-left:5px}._fc-manage-text{margin-left:4px}._fc-manage-text,._fd-preview-copy{color:var(--fc-style-color-1);cursor:pointer}._fd-preview-copy{align-items:center;background:var(--fc-style-bg-color-1);border-radius:10px;display:flex;height:28px;justify-content:center;position:absolute;right:35px;top:65px;width:28px}._fd-preview-dialog .ant-modal-content{padding:6px 16px 16px}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-code>code{white-space:pre-wrap}._fd-preview-device{align-items:center;display:flex;position:absolute;right:50px;top:14px}._fd-preview-device>div{align-items:center;border-radius:3px;cursor:pointer;height:28px;margin-right:10px;width:76px}._fd-preview-device>div,._fd-preview-mobile{display:flex;justify-content:center}._fd-preview-mobile>div{border:5px solid #000;border-radius:25px;box-sizing:border-box;height:70vh;overflow:scroll;width:350px}._fd-preview-device>div.active{background:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-row-line{background:var(--fc-line-color-3);height:1px;margin:10px 0;width:100%}.CodeMirror-hints{z-index:2}._fd-slot-empty{align-items:center;background:var(--fc-bg-color-2);color:var(--fc-text-color-3);display:flex;flex-direction:row;font-size:12px;justify-content:center;min-height:90px;position:relative;width:100%}.form-create-m ._fd-slot-empty{flex-direction:column}._fd-slot-empty>span{color:var(--fc-text-color-2)}._fd-menu{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;width:100%}._fd-menu-item{border:1px solid var(--fc-bg-color-1);border-bottom:1px dashed var(--fc-line-color-3);cursor:pointer;padding:0 15px}._fd-menu-item.is-active{border:1px solid var(--fc-style-color-1);margin:0}._fd-menu-item>div>.fc-icon{cursor:pointer}._fd-menu-item.is-active>div>.fc-icon{color:var(--fc-style-color-1)}._fd-drag-item:has(>._fd-drag-tool>.ant-col,>.ant-col){transition:all .3s}._fd-drag-item:has(>._fd-drag-tool>.ant-col-1,>.ant-col-1){flex:0 0 4.1666666667%;max-width:4.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-2,>.ant-col-2){flex:0 0 8.3333333333%;max-width:8.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-3,>.ant-col-3){flex:0 0 12.5%;max-width:12.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-4,>.ant-col-4){flex:0 0 16.6666666667%;max-width:16.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-5,>.ant-col-5){flex:0 0 20.8333333333%;max-width:20.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-6,>.ant-col-6){flex:0 0 25%;max-width:25%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-7,>.ant-col-7){flex:0 0 29.1666666667%;max-width:29.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-8,>.ant-col-8){flex:0 0 33.3333333333%;max-width:33.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-9,>.ant-col-9){flex:0 0 37.5%;max-width:37.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-10,>.ant-col-10){flex:0 0 41.6666666667%;max-width:41.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-11,>.ant-col-11){flex:0 0 45.8333333333%;max-width:45.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-12,>.ant-col-12){flex:0 0 50%;max-width:50%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-13,>.ant-col-13){flex:0 0 54.1666666667%;max-width:54.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-14,>.ant-col-14){flex:0 0 58.3333333333%;max-width:58.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-15,>.ant-col-15){flex:0 0 62.5%;max-width:62.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-16,>.ant-col-16){flex:0 0 66.6666666667%;max-width:66.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-17,>.ant-col-17){flex:0 0 70.8333333333%;max-width:70.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-18,>.ant-col-18){flex:0 0 75%;max-width:75%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-19,>.ant-col-19){flex:0 0 79.1666666667%;max-width:79.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-20,>.ant-col-20){flex:0 0 83.3333333333%;max-width:83.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-21,>.ant-col-21){flex:0 0 87.5%;max-width:87.5%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-22,>.ant-col-22){flex:0 0 91.6666666667%;max-width:91.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-23,>.ant-col-23){flex:0 0 95.8333333333%;max-width:95.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.ant-col-24,>.ant-col-24){flex:0 0 100%;max-width:100%}._fd-drag-item>._fd-drag-tool>.ant-col,._fd-drag-item>.ant-col{flex:0 0 100%;max-width:100%}.fc-icon[class*=icon-chart-]{background-color:var(--fc-bg-color-2);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAABsCAYAAAEEfdn9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABcKADAAQAAAABAAAAbAAAAACUwJ3TAAA5qklEQVR4Ae1dB5wURdavnpkNwLLkICAZFpaogpKUoBgQUBARRMCACUVPBfXUO/XzPM/Tk/PEjApyEhRFEeEIShZUQFhWYBElSFxQCcKmmenv/3qmmu6e7p7pCTu7ULW/2a7w6lXVv1+/elVdVc1YOXUS1bvDg3JLJ/Xf9JK0Pdl5XGYV9jM2ThsvSyyPfto4o98s3ciH8nBe/Grks2ng4M3GOJ5v08BBah08nIgYSTLL4mHtdXO/G/Jq/HLpQ/Vz7tBGK5XALftQZmyoNq9ZhXlG4sX9Lr/7aNsF05VgztU3zEn7o97MDnM/abdpwODcdotmtud0WlCo8h3mzslSK05EPJJn4Nf2X8wayP3aK1U2Z8CQVe0/n52lzStJ7F4msVNMZhX9aBXCW5FvO+W14iW7i7Ozlk+cRZVs/8UnXXL6D9rKngMXjWv/+RyKmEVRpqKioVW8hCD/adN+vvBv3VHpHjs7P9+JUNCmUaUprDSCsZHaNDNePD+BIfnZ7zys8NBKgsz+SnEq4pQBxAp/tOYVxRP8ZwzztKbfPrGa/E2+e2Qdj6OrVmy08dxvxY+nm12NPNWKmxFHE0caxyqfXZrTPBGJihVTbbz2AdLGJ8qvIk5yh0Iy8PtDcrFCyNnb2kJRsddxu+42xKkawngrtXSJ8OsQx4N0Mz1Msp+lmxTWB49yG208VZb/gg3XJifUr6u4WUl5PR+6juJRwedlmb2hpSHx0HYK2rRE+1VRoScdaC+hAlFB0ruKy1r+r4+D3ndR+XeD/sBFYg9XPtzxdwpAvy7WpYnAGYaAZGXllQUL0AprqlvIw2nUDvQA8p+REeJ/MMbZhUF/AedFVyNt7lUjX87rfZ/OPCAav8SG0lWrCJSHk5iQWqNEo+PWXIhx5GKroevbmOZ1sXv8/oAdRA8954ky1sMKVCsMnjxJZ+BpDTYiwIP/DC4fqsTwqFqFIilDu7lzJmkJQirME/2sOy8A1y2wc7J5EvqBK6GhWqJAH1mH2spb8dMaVZUPdbqZ8+JXAoisQ+50FeeR2qtRdHglTtXYUpEK45XX5gFEyogKdXZThwZLUUVdy4/z0uVFoOk3j68xxlFYKxVKxXmEttU8oxXzir9mnyIaszycH+ehvVrx09IY/Wb8wiJuZBIuHE8L0K4sABAfB7GoHh9OkXFREVdkz8UqMT87aXY7XR6W6fey4xq2f0GeFaBdHkz7TZOWcK+COFWaHiLI0i1UIsza1rzknP5DVtITbag0JT9Dlfb4WYbXy0Zz+tK6KhXHv1fw5H/GC4U6U40s2eWrDaNLpyKJjhpD1/XXDlpP19J2qqi4XOw9FP4eKunTVsJMawTTb6drhWPNH3Z72EbZq80l/JYIoHMrn1NwVi0q68ahKuJWDYgkHs/pXCMdFJTp5JeR7mwLRwQ4N4sUpWmCUDTgyi72vTpJRwa1xEai733C7WedYX1ruzldiUh3l7jY2GDketTpax2BIcCVtiFaCZpZQJSQM+C6b2TJX9WYJ3N/l5FN1j3yrTGewsDoO/SEmeQnvmR6kp+cVi/rAOeVs6pIIHvofy3zlKKa72QvfPufoVT6GIxAzuMxKHctyuwC/TZtx0V/684nJHk6XflN9wNhNIwmfcZQr4j4CygdcVvBQ5mioDB3OQMGca/u2mDjfV1q7Omti6MAtUXypeW0mz+zq0umYgPOJ7FGuQMGLUK6DkCezsGmsORhjc77bE5nngYBUp0OcDUWHg6i9u5o07X+9vPmPKUNQ3qH8zCAncH92ivxr7H3ssG/NljySc3dVww40mhhHiTe2+HzObqZMp4HDbqX+/k1GLcdT0dD5N2I+BDAqf78ZvF8dMV9U+aCtHHk17YX7ZgP06cWaDu7ZbZbm2bMpw37fWxRYNAakHZtmg5w3IhRkLa6qDzLzO80qiTtaF0ihqE4B/ea5kJNnRWopsTBSF75BhvuUcbn9TfdZTpO5zxsnzrU184BMHXUaEdnTEO7+mmE05isC9vWT0cpAqWKgHIDrebfrGpSmqaXVR3KazyetlAHFdKP6z26QpdVC6WKPYZ30pwThb0eFmId8PQz4RoCuOxjEqb5JlKHRADgeg/00/V2jeU3R0uTM2Do/3jHq40nPwea9B78WygMiyATN/oVl1f/DteYt7yHdZ0m+p5zZTe71tBR0A1IQ0PHmXU+HNSUU7U8rZe8NRt5fyEA2837UDc1aQSKaAhw/JS5XTKd0LsbijbmKv9hHeAKWNQmL2sF4FUzjICGWrn9tFV6uuHc2jgdE2oKadOMfn7DzPgYac+EsA5wapAixW6AZjClYCLpXovH0niSbJ5fC7TZE8TpxFUgEBUCis4sy2bhmVY3PMXClSYCITrcaeGwLsgySdXl82MySmJ/18WJgIJARIBzO9usUwPY7UKwdKFTlMMDzk1Dnh/hFfDX0XaqPE17pfqY1UVLQ37ib4zThu3KOdRidr1DWbOmSX7P4XbzZwzT5rPy8/L4DKXbW2FV2/nTb9PSRwS4NoPRb1dpI602zCuH6xTwuJmHw/HjNz9S0LVlav14AgfTJJ2Z46YqpckubwMe1lpUxny8/tp4n6eghzZMfh3gPFO4RmuZYJXMbIRVlWK1+ESbh8rBk3ExGpxP/mB4IsK6tYDaPBxoY5ydpFM7UL+Qt1HEA/U0XcqkA1diF2H80UrysakUTz8z0Dlu2rpxf07/ofPbz/uwHw/rAOeRTq5Y4x2qUsIw4De0oOr2ChWOtlRtcspWmLkzPf14k0I7FjTtgNHv67hpPn4jrIBH/XT87fgGhef0nLjMvgHY31AeAprfDDselGZ4+aB7e2UJOGdudke1BYZL19Jq/Tn9r1+Kx7Uezy97iqScfsO2uYsqf9524fvjtbTkD4I82SWxMRTG9W6zdRCUpnWcvzbOys+FB5pmMW5mX6KDUeCiNz+QYqXc3KuHT2v7xYyQRXlanj4X+46HuXDxsCXgnCDcFRUaCjAwNg11WHvxNdZP7Dam0GNOYFc61nI83Vh3caVFvtSTl4cDh4PN+dFNgH8yfmOgjixfMvCngOezehqM5ZOqANjKEwLgJiOdygpxBKqFWvnRSBwz4GhoHUiaqUNDO0JSQgCnx5w3btOAQf+IBGzTAgKRiuTZpEedZJROO0YAvBvo1RfaCOe4/KGzrHrAse4bS0j3kLjSCp/UE+fsoUIA2mKAesxsLs9KWpTKAXEzx8GmNKt3mMZ8ThpvzGtbRyNxlGGA+yuyqv0F6mvqdIBjguozrhtaLn9BXUMGwLfh8RVOIFD+EFDktixPEJU/SO1rDPUmXGkiYAk4RljX4HdlaVYGbz/etTCvSrUaiSzMFHCyW9FwN1YdtTDasPGqDPjPw+91zg+d+lRYQt1jsUY4r7J81QGOBtfhAMNieY5XnMfxcLgrwBtOI0crOpJi0NRBeh8aycHcnIZflzMdbMJDBzhMv0P4rQuO4JThtELkYUvpauawGt8N1dNAmwakZ9AwfVvve00HJS4fOw8juM4EMGi3AvwLya/cWGwn0/I60/w6wIOSPEXbSAIfG056W0n5piuGTznUaqZEQ3ySXMqLp6MWDW5aLZ00GZNM3bX8yI8bpGzKIj/Sh2klm+/do7Qz0ekAVxoo6xfXQ/poBGXqTtbaVMnnLrzwUPNZSyCxWIjCniVCv5ut4uBj/kM5C0HLQFEpwZuDgdb32rQz3R8COADeg0YX8IaDYAT5sRD+HR7Hr5UOdzippHnTldkxdLJVKAwem91upq6P5vRmV5q84jOTZulnWpxuaO+B1YBH3Iuf6rD8rCJAL9KqATURHu28COiUGTtI+xCoIeFMENABTmADtAoAeYmWFtbLW9pwzH5MkuExyCc+NEnmKayq+NGBLkaU8tTEXEYZZaADnOqIzrEA/9QNj4moN02Scb7GSTIeL64CAYGAQEAgEA4BdfTtdIY2HGNjOj+vQZRjRMY+LHCzx8cqleMGG1A4gcCZi0CIER5tU2nK0F+sbASi+ccirITRHQJix5dPutjR8DTtLBePi/aKOtbDfMV+u/yYuRuLtV1zMCF0wI4u0jSaVsUgZG+k9FZ0wGw60pQ971Y0dvHxxNGunHik8TOGtPM/Nff0HVh/41jblbpUdtwEvMSL0x2C/QFJNryWq6Di0ehYeEA4cpA/DfM9tJy5GDdbtzaSAPX5AkvVaEoJQk578mdEWyZtw1Q3qGEYD34lmNawXLQaSTmo841OFIOB5ypDOKJgXq8Hh2DdpzIbbJVBkj2H2ix4r7fbmxGxgjPywjT/OtjOlXk87gUth1LX+1D8kYaL5+LHUgqrv5e96J1/cFrj1VrAJXY1bkJdygAgdwNQ3VyWkVEs4dLSJpAt9TiT4Nu8+hDgj0lQIHTjMLM8HvGNgoAeQPt7OW0X5v668+l/aOtU8LzTuOgSNCngOy7Fx972uZntImG78ksLN6xE/AG46GQlpaDWa9X39v64+r4e+ftafdDhRK0NT8rukhay5K2T22/kFqq33dEyZu3CPbgK9+jf6sDQjMgQV5L+2y15fe49kPXVpKmGJCWoq7SWADf+JXpsNE73BGniY/Zqux4js0iPujHmMwsDwEy06VLFRCDVjNNSSDNAwNdi8vkVaq+/hHWHuXXELH9EcRI7HzfpfIUWHqNDWVUgmMcovsSNbcaM5aO3m+Xzspqu1MBJeqjfSmM+q7AddmZ5Uk7WfjX7yzf/Y5ZmjCuqtDdt26XjqLdTXOaBLiPo/HI8uPNQx5fpCB6siy5u9M2jqSk4Hccr4UUpdvLyB+J4vbXTcMr8ARzY3ivIwvZCwm1HUDdveB/TdD/1xebOUsDNyU8fEcTTta96eFxcr/7Ibflw5SoaLwgFDrRajQOtalL9Ed+F54Vwqy63341TsEGnK0XE1E4JSxMYu4j4KDoD//BA8dMUa+PGjoOwMGh7Ml8cvYSgnQu+tBMDiHckLlLhJl5a4ab200OIvqcthLg/pfNF/5KbNcM4ZTVwfBvw/pOWQmOnxQIs/m8qS75z8nrfPzxr6ctRm3hKWehla29XTiCmoOqgMAqxZLmDGmHwaG6nIaUUgzEJj8N6YnPTQtlV0phnIw2YUljt/exF7yq25a6OL3U41nDlhzy9xu7Lrm2w6Z6IhQ4CSrsxwjqig5wfg7kyjRNDONyIuwLhiM3B4Lac8TR45XysrhDMvVZppvF41aqNV3o2+XTvRqYdpYOv2ruj/g9TXPM1T1/3Y7fHlUUFhZX2PoCo8AIu46xuSf9VAOJl51xu1snssA2ep0wIOGkwXiEnV7zj3gNw1deidnk39x/2od9VpDzpmfu6D2+yfvwGosfeqOkl6b+PgqCP4vmxj3UZ9rHeycOJukKgq2gfCAgHubWBi7P/0P6DwuUAf0cDf7tNKeDVXOkM/eyqQLekL50O3rbLr6cOhMBzMHq2VuAX/p7iqF7QZ2O4buvKhIDb1tAmEV0ino3IXLt5M0P7N2TFxr8biQMEfGu7hbPauIpSI+ZpVrJiBpklJDgOqv/LcEVAeOLmwGqH0lZIWTwd2G3D4F7pEbDYsRlmtB5HL9cBZf0Kwf8C15edlGcp4FY3ysqciGVaMOq8cbxhaJd6VLoTAMsKLYRXmbkoK/WJRz2wufcnqLBbIR8BF8X9VvNyHuIqEBAICAQEAuUEAdWCEougnN0xvpjHWS5BXdoICBMlDOKYCnuHT4eFIRXJZRABRwKOgYyyURa70gZTW2h6D/Ovd5fBdoWtEure044IQj0lKNg9MHpXXwTZ5RFpZQ8By1kUbVWxUGgsFgy5zeY7Mf/qweA2MI/tUk4ZWq7NG0d/fwhlE9ThVbyYjWoqT3kdnhLYJkq2WXBQfiNmjNbzeiKOdp1fSGE8/RfioT7GCTmNuJYfBCwFHNqrK25uJ6UpwXVheClxBcItSLyQ/hyE5Cho/qs218/aI6k9hV0pWC1XEm4aPpATi5M8XnyQGzzn0tdxVH7wkBZFOXSE5DzqbvJ6/2lEYcbuvxJNvc139Ki186rD5Ld1EpsJwT0PdSKppsU8ryv0OEIB8dNRBhawsfXwK1t3aQsvfU0RYeHKOQKmAk7nZ0CYW0CgluImp6GNtPbYzFXlb+Jo3tztY+kQlpZYIdcSL3lvQYaIds9iIp9239KXMFUH7xZoUjrg7A3EK7tkKfHcTXfM+bH74xBwqZgLN8ykG/FG06qOJNTDIMChTsbXPOgjEx62DeV1BhidfDI7QVum8aDq3q4q9QvlIGLKOAKmAk4mAASV9tf3pvpDiOmFKOk/S0cCAds84CAtEKiIXgsbV8O1Xvafdml/nFsTPQPnRq/MJ6I+L+A6sMJv2Qxfn9at4bYVbl6l4LqJYFD92goWCsn4U96cRb2AmTMV1zKHgKmAUy1JaCCnihaDsL3JNbVZC0D3tTYeJsd2CE1Ubl/Lme2arJuwHrZ9PxjB/TweNjV4CEVfDcNUjT8mr/EBs3pTG1MhInPSELAUcKoRhHoThLsDXZVX9x7WFsKmaPVgugeatQ6WKz4KDd4NcYEtVDJbSOl2DvmeQnpLK4GC2XEMD0oBzKUC4oPyO9JVOIGAEwTsBVxmKyDctPgln6YDsf5XRw/h9yJtn2KvBmY3vobibhVJBSCwT9nRwT45At6TIxum2nESaWczAjqBNQUiOMCDyULfVrB2QZMENNusiZKXovRAJsVb9SBiUGkCVjmMwn0UTiAgEBAICAQEAgIBgYBAQCAgEChFBNRxo1gu6wx1vlxW4Fa2cRODTGf3R1CXMwSEgJezGyaq6wwBIeDO8BLU5QyB8C96EtwgvAXtibelD0VSDF7WDIyETtAIBDgCcRNwvOmsyJnitf4p7g93xdEAo/HKX1nNF46WNizEdG6gtgBa2x5mzYyybJixVXiwaJ1NzA4HFbXGIrKIT8myKxBrecIeHWyZX2YbMLsw3DK9jCXQ6bz52R/WO5g14yuqmttbcUXb+R/cHkk14yLgtP7E72KnV/u52GdYgLUnkgokhUZifVDn/0DgPsLC7yfM6gABugBCEFhjLrE/42F4zowu0jjgQ0eMdcUBPY3xQC+INF8i6NC2l/DQRu3yet83srjC4av9nqI2kt+d7/Kl59bacc3zdX4csj9qppqMOLPd7fWw5cC8FkW7XfpvyPk8py6hVaDN1vylU8bh809osoZ4k26D42ZHvAxbTteflRfSmggicHO74t4qO3pQ9vUAoJ0xG2goPSDcjBXHQbh7knBTOdhQ0Rw3r6qxTMdhCQIQpcN6f+XMQCfZfZ4/3DkDrl9BglVY+Zcn/J7C87CTJBUHbDbwpfxx5cHWHyylNDpD3AlfE9oeXjc2uwSF2yRdjfqp6zPr1ICFJ+kCDk1yO350wmvYn8fLjlq0I6JoPEm4KWxKkFg5WBIH3M0mjcEZQPhz4e8TDC9BvUIeAE4byRUPy1UQbmUbH6d3ebGTKEYHk/DFGFlEnH1np+cvpDO/6ezvcJnogHyc3PtNODqzdNyLRsDrHbM0q7jcfiPetkqjeFMThWxPPOW3aDI6KlSTr8x4IbitsL58plIhif0IAekPMDcjnBrUGNdgG5J66CN2Mw2D1H/vpAHYnN0FvcKPMM9+pXzK6QM+Vt+UhwR8ZfaeaVpkkdtJKURGGj0VCTed863lIPlSfqx8+Pyn628bsem3+qtq/9Zg6XUlFQ6P5TQ4lroqnRHu9PBNaNtFnEekVzJX7GhNBRyzGgMgEA/zjBgYbYNwrObheF5/7vZkzz+qbTOdRXHJruNt58+4KdbyIHR1sDtIEV7Y1buhUZXzrUk7Q8gDg7XTwu2DIdQGG48BgUPnZxnIdSNmhmizSAGMrwpWHPAAZWCA3QZ1+cGKJlx87lU3vu93+RyZO+2/mBXxTJQ/rdilE25ZKunw+SdtqV5QgkPJ1Kl3dHj1uluHv4yol/N6PnBDYZVd/6fUGztdc66+YQ7KG6SEw/0jLJwjHo6ruQYPmyuOBKeqbR8tu4tNNRFMirg4CNshPKRTIeQ0c3K5linie2GwuUyJk9laPACjTxssWkpnfjxUocIt4ZMwMjvIOeH01D6kPGhfKB62lhiItoG59DFPD3d1FVX+zpeRf284umjTcy+/UZm1UPJjcwsJN2TwbvRQU4HRTorHVx0Ok52LmbP5Wcsn9tvZ+fmfjp+z9gNKw33Npq9EpJ1sUERhOwccHqWNvFau5i+XEm7cdLQiC4mnup0VDkL+dwhRT97Y/e0mNyc/eqYDAPZFpN2mCDcnCF5zrxo+1RAVVRDlDAD/IaiHTqPh4RoLob8HgtMXZlM9J8zrbL9JZzo4yRsJLX2dgdORuUGfLEEbXqdpYD5QVfADEerej0xb+sSJ5EtTP3uS1+shRdg5H8urZD3WwSkNL6acrFHpnG1DTxh/tbcMtZ25cSTgO3o+MoBGyvz3c+dnYp8fll3xUtSW2BkTDrR6r8nhJl98QdNdlIabQwOVVVq6I02/rEHt9KUUdsnr+dB12jQbf4pJmoQHiAS4UTCtPoREOVjIhNZRVI29FzsadLtLMr6ItAD67Ainlfyen8nv94V+vQJCrZxyptCSyedi1dp/MfN6nhdaPLJBumTzOUcoJnzy8Tuzn3IqAi/M5Gpqg5vQKVF+hk5U6yTooxhdpBP2MRajZj/UYna9/JZz/0cRNN11uNGiBbV2X35EJYBnW5977ijK2K+OCxpuunW+Nt3GPwyIdIFAF0KgV8C+LkD4mhB6nJwF4PbCjLHVPiH5TCKsttyZkDqKKqmY349nyDjc8f8wVhkL8+kZCLTqIMyj0MZxiPiEIiEctEn9S3gvpbATB7afAbMHneSJhNaRgEfCsCzTQJhr0nytto77O7y+GgKujgHw8aSlmNtVTAVorj3t533UV0sfkV9m6bhhl9vZlOAzGEIzGaZRIeeJhyE7moEWBK0B52F1RS+11yrNLN4nlbRCXZSp1Lo7BtGpCmu0wo223Yv0cdCgf9e+yQBdQLiDec14m8b52Zvg6UzAYf+HwyvpAk52HQZbjk0daAof7MAPTcEyiTzR8OsqJMyBJOl4h7mfdCYThMKbBg7e2GzNExdrXxykn2rwbNaSV943YRW3KGi8MdBak3BjL8ID0Tlaxhig6ex6Mz7g/4pZvFVch3mzbeuDepPmpi/DTQPvEOd0ilBhIOHziTKO6YvQ4b0ImS62LukCDuHuCJBq2tYyxsSTtTZV+rnjC98G2LgKOsz9WLl5bZa90+aHXrf9gNtUQSvcTTdOuLDynm7HYiw2ouzQ2gmbBYmoAtESyYGlGJAvmhWNi0MvMwa90fcQ8orhGNKkAIQ77PgtjPyHK6Z8pFc63OGk25cOAZeKIdwdea09x6t7M/d3u5GHaV0F2bSlJdy83PJ4hdbuS7941x1Cfh56tJV2fPFE0VTvKjsanpZ0DY4nEe88Eu/wNTVlxsRYEh0Tl3vlqM89voq7Wi1+Y5Ix3UkYbRnthD5etO5S/sJavOptxYc0uZLmYndCNq6BRq+H32ZMqf6DXoy5rTKaxJsKOAr4DF2F6vhbzJbLX/hse88JanzTb59QbFo8ybrDfpB/j0oUziOzzzVFhaNOSHrb/70/PiGMS4kpxiNbSqmo0i0GA0/I1ptqoVEYQ6YCTgxJyFXGGg8JuSaoeo1CriYIj0AgiQgkW3kmsemi6LMBASHgZ8NdFm0UCAgEBAICAYFAuUMAY8OAEyc0cSQiu/KTrSKjFlTJQkDY4MlCXpRbKggIAQ8Ds3a/ZhhSkVwGERACbnNT8Io1jfZr4qXX7TZkIqkMI+BYwPEyqQO1Bxkr4ManluG2xVQ1Em68Gg7sTBEnasWEZTIzOxJwCPQoVPYSXmGsArxTWcPMI8rTlTa5Wjj6oK0q3Pi4MtaYDLAgFdFlHIGIBJy0GTT3OAh0FWN7cJDNpRB8dUWeMb0MhlvSTnqs3/iEjgQz1o96JhzMsykYvw3CHfEudCMvEU4+AmEFHALcEWJwh11VIfg16AFI5IBMecDwKUO7eoRLg2C/jd/nKp1bf2QDCTcOn9lI6VjFtgXCHbrdTM0sPOUBAVsBx0E2o2GC6HZYIDyINCCWLIbkLaEd4hJrEq+GYzX7hVQH4geTYQ/OEVH2RtIGBidlUA9EdUYexbzCTqAH4JdRVzda8S7x0go3Un4AzSCKF658I2C5mpA0pm6/hAuDLhyzxptbLLENEIQPEP6dx9EVwtQf0rIXZ2fM0cbb+aEtb8bevgyUp1uPjUMXH0Lv0Bp5pypLeFEpvs0MIq9sO7Pjy9NUexrb3CDodLaH3+NjC5UZEpl1h6BfhofpVYUewg275fROcc5EXMslApYCDo0W2MMnsdoQiOcgzD2MLYQ2HwHhWAMhXA+N/hP2V67Cp76PO97E5EIOGX9G52c3hBjJKo2cqXrDeGBv/xXtOQ9kj+IhVRxtdwLvUQi+jwhFuOHfDLohOA6pPtqhCjna9YHkZb8Fcor/5QkB3E8TB5sbGrUvDomoAeH4ChQhwq3mkllXCPoFEI75EPQMaO/e+N1Jh8CoNGE80M7vQ8QDGhS0NGglkyJoVuhyu70VVlFE+omGTysJmA1BPRvqiAwBVGQWoh41RJOR8g0eUGV7FMrKgVkyhGjwyfLKWlqlXdoI4S83CJhrcJxD6PMpx2S1gvDuh/A2CtOidMWkwT/uIFSaEI8NvdKhOoWZux7zFFde2GbhlMcUCpk9ySkheA9A606kMBj2bLt4+l34fn0JT4eQHvb4WaHuSAM1MbwHD9cYlDEdJlV5mgkK3zBBoSBgrmU1B0JCuMMe1g7BU45fUDGl8yoicHl97h9VWOXnv2P7UIY37dh1OQOGLKdsEDj1rBDMSX8ZjMvDw/YWtGsuhLKFyl5m+RDu42rYxIMe4RrwVHoEumKc0F1LhgdICLcWkDPIby7gmgbCRFEOf9FEhXghILqToaBqFUENITREFGbsCWjsYDzOwqtLXmjTDtDMT2EvaH+YHzn46WY0MLPyloGVCAoETBEwN1FACuHaBU3XmHJBi+dITH+IO8VbOeQ9YJWmjXd50zcGvhSgjQ34MfORiZmNi/AE/oiYFQaKRYZwVEE6uvlEzRz1Yamxt/fgBhvu+yEqZiJTmUTAUoNDoE8LlYvNQO23W7UApkMBT3M5OFe73fwZwzDdd4rnbbDhwYvI75VZVRwIlIqeoBqFodF/RS9xF7yYncRpVjF+L4d4kvOmnNKdrV3sOa4LB6jE//KMgKUGh2lyjDcM57/S4YqfwNZWjuvi8RDsGnhCNoL2U2j5QJoU2fdfyBaG0GbhCDWavtM5j8SOIv0AhPkEdR9BtxT07XhAXAUCkSBgqcEpMwTYh5ctS8iPgZw6L0xhchDsX/Eq/1zye2Qcig6HI3Yj+sARCTfRWzmkz4ZwL7RKF/ECgUgQsBVwmAlfYw54KwS9CoStvhVDKNnraSYDJyxtxlxyRNODVrxEvEAgnghYmihUCARWWXiElyH14Fc0uVXh/hJQudkyq/RkxuMU0nlYIag6DIJXU6DZ6ifn/dT9aTWen9QF84g+8KQ6TEvuUQPCU64Q0Nx263qTFrdODaTgzWeZdcpreZOTutzeDJ/ZSV3BXmhbmW2QqFjECNiaKBFzEYQCgTKKgBDwMnpjRLUEAgIBgYBAQCAgEBAICAQEAgIBgYBAQCAgEBAICAQEAqWFAFYz6V2iz5jVlxb/kPHMV9Ge+GMcC0dxf2JBL/F5xf1JPMaxlGC8P+ItTyxoirwCAYGAQCCJCAgFnkTwRdECAYGAQCAWBIQCjwU9kVcgIBAQCCQRgYi2OiSxfqVSNPbuvI2CLol3YT43uwj7iI7Gm29Z44czxTK8LvZHWatXWawPtogNxAk/KcmoG86lKMFLr7nJKPtsKvNQi9n1DraePlfye/Jdfs/+lMLqK6sc7PFV3S3Dfok3DmVKgeNstWoQsKHKYSiGluIEoAKcrP8BtjKrh68YSKIOYje1G0cDxN1JhTigtkwhjCb62RXAeSK2zm7Fbzg2mhZH03DAVR35X0DeHiXYp4j79j2GczfhlKiwR6BFU57TPNhw2x6K8hLI0skUL5uBzlQ9B9Apr3jSA7dG2At5bzx5RsoLZb8asmoh0syC7jQCKSxFLmZdoJP6Qm90wfNUB5u306GfOivnR7rwn8mVZVdJZZ+rpJkvY9/Fhc1nPXaoOR3+y/xQ6FOzvnr5Bdore5ppdL6ypV78rA4UtOkX27DhuQKsvFqwIvZE19SzOxcE7WJo2ddx4gG3/triCJDNeKifgLR9FAk6yreMPOw25HsQvHTby8HnPEjj8xjNTEjmkSGQn25oywXoSFjwww0Z6GBux1dBvkLnlfTj+HCY1es4kP5WYFgxEszjSFPgSsH9L4kjxzCsCjN3pu+64MURxRWP9JfdxdlhyHXJki91S+qpmvMarx//QfrxJsnvfPHFGogUfSuhhWKiwFohESPLRXvyhq4R5gFXSfpvt+T2G3kLHQHfetFbd8SiyMuWAjdvcMJjYaVNxY3IxL0w7TyiqoCfrXV7DIftRsUotkywQjtBwCajfRVMOUnsb4gfC8U7GNa47is0nB6y2g5K52X64IUSB6A07heMYO7nylGfpKFKoBf2Dgxu1gedFH3lxtThHvdBQlsYArNxSFvMlo9pIRFEKiMUGVhK7M8RkMeTZJLuOP14ctbwOth6RoP8pp9OgsK2vBcacksvKfyiyvuz83o9+DARQaFvrf3ztffW3Tp8r2WmBCTguegKTf0OWOsMlngU5fMU9IAiz625p++19TeO1Z88H2EBQoEDKCio5bhJyyPELDKyZGgybc3wiS1Yo1OgvPUfYZHZVnQs98OangILoh5lUa4yW4vr26j2ixRH89olHvYsEq800XZeKPsXoYTeI1pikAwHrY1qsqtQfuMIq1DbncLuhqL/FPUvVUWgw8eHT6mlsC2od6lJCXD6LpGFbe854ZqCzB34hEViJg2pQzjU4sMvDzX/0FvhePPHzI7p0mEchwCMn4/w/LRP8F1yHWm4eK67uPpl0cyRO1XgPdAjUW9k6vBAXRvJ2W6mmUVkXBCAYmrhd7NpYEbvE7RuJw6NvIlGBfj2C7neEEz60tazSoj+Sex23N8RUCxuTDuk4Wp0KzCXPEF5MWtgbiSMRxh1uYxb1SjuCJTQNphB2/EtGx86l4GwZus4LQdHHlPNB6HT/gnNUz626pRHrPQ425DOpf02Vj5O8qO9CXGKxd3849n4JItygL9ZIS5/6saMQ+e/0OS7R9aZpRvjdnZ+vtMfdTZM8LuKOxrTcPc8BVV2/BPfOPpz7R3XDUmURQ7ZWATl3Sik/ARFHGk890ko8DFO2TtS4Jisr2HyUKtl4mts1WksW95cbr8Rb/s8py6Jpt4pBTXfyl789r+iyRvvPDRHLXuggKG8Nbz3oVMdgftyAMpb5yCgs3FP50JJTsdtC3xQwDg3i4+IYfrhQShOReFAeSfF4YGqiTr2gBLvgQ4qZqsfo4pmwOQufAB4ZrJWCuX2u3EyhtEXJxJQzLOubDt/umPFEEmdtl8yfnBB1Z+eM6OVZNfRyge6jG2ybsJ6bTo633RgvgFxm3A/h1Ma7ukkTMP1Rfhi6Jf8oKK/gdJ2dnrhghPnrH1Nlvy6L65Qh0EW+fFa6//ccsWL9FGOuDkYDveDWakpb6q4z1MY2llF0CLDIx1BjjORRFJUQnQtc8V/biy6isCAJssOH6RD/qdgqdyF8AJY27vxcFg6WOz0qaMhENquIKLRFalH6Gz2BuJfwUvjGMCxLDbhCaj7ecCA2nQclvpshENehCE+xeVlI9HAfZgVTwFO9K1jar/qELcVHZ3tcfgqsUNPxd+z3j9Ra2NCFXjFoy2mOaxWROR5ve+9ubDyvj+bEacfb/Rk1rJ/z+RpkKUH0VkOALADMYI7gXuhe6GJ0cG93DAE3lVAT0bFx4j/T7ADuCiv15+GFWbufprz5FfqQFCXzKylk6bwuJivMrtaGac5ZCSnwHDCx93r5A3dh5/tR2scsrYkT6gCP9xkQa0D2VPfxIA8ZKgr+VL2NFv719sq/pqtflfNspYiwTkCMnsjOFWiy7u/3eTmRxotmOYqqbS67cL3x/NEKKk18GfD0q2OB+w3nRbjRJqrP63Yta37uHtKMvLHItrlKc78pM3/ppo+0JpsCfXi4ac5/Svwq6QpqCqUxxi0Kw9KYrEm/rTXF3g5C6VRqq7pmidX5PS/frfs8ibE2oNd8kvTr59eHu9G5Tf+rA6U96NmfDP3dxnZZN0j3wYNgim4Jy/BCHgJ2L+EUY+lw4vouli9dBD34Bjkryd+9HLqHoTvQ0c7kjqEnZ2e//l4vbUhHRLVBXVaUHvXNYcsC3CQgLrXUMp3kIdIMT23KBrF73Zj+SEUv8PiFPKEKvDfG37VTXYXtTGrGOJrHmz2yXlNf81WPpBjRlNacRV/bzn1j2rbMlGeo1UoLtl1vMqBznNKq56xlHOw1fSG+S3m/FeWvEpn6ks7MWDTgEFXZe7vPrLJ+vE0pFUcBPc37je77rzwH51P1Fk3EUPYWtp0b+rxwTlXD81qu+S/Q1xFqTCi4uJugvJtgYd7F6aBdqNTOQjGejUrsYqo8+UorYFdiaDJwsOVhY5qMXjk2dGWZlr6icav4hPftyWizPQT505JBN/8Vh9PAN8QHUfTiaS8qcygQZBluFuh1ZHZMEzjPYWPfg2Csj6oI/Ar69Zf5cYE8d7S9/a3SiocuUNHh+KoTlDgqkFiSHcUhMxtQl26O8oULbHMdkervKnIhCrwaNtU2vmCVsry0i63NMrLbzq37sHs9/8ru3znhpSHF0LH66+ekVt3/frWSyeNdJ+qYWoknWj4dZXdbV59wZdyqmcID8aK0o81fjZr+cRZJmmxRkEPYO5bxk9inUhzc60BPwwlNRhxOcjUF7wupuWEyJT0XbLB1RSfRdyAMkDodxe0N6tGtf09PqZ44DsWneRgbGwZjM7X1LKE0r4dyn28cgdl9iUU5lYznrjPtGGM+H4AOZhMZeQ3+9SowJnfUxh4h2PGxGEc3iX9Ddb/AofZoiOX2TPOpfh0UUKBn8bijPIdabys+v62r0FxlzTTNoxeLlU83vxvJ6v8+Ax0YAVK87kLL8i9bMyWSr+3HN985fOfc/q8PveOLqy072EIWIicuL2VFjbZ8MBjlQ5ekJQt9NEob94uKI50KJmboBwOQHF8Cl7ajisFSr4N5l/PAz1NxazFLyFz4Gp9gh4ovXHGuGjCqDttOEmYa//FRzTisXTA9DVg+hqUd4gDtmMQOUFrmWOT1SvoUE0dWPwG2t488ZwfRu/CL6Hzy5CNn/ES6FbstHyXl5uIK+TvL7D2V8bCO+TBjIVZuc2LFyyYZ2tcmvXHjdsFwVSVZbzKPlHn28ydnV6cIrtL9FNXsuuP6vsuvuXcDX/KCZb1+ZbLb328JP33Ubzsk9W2v5jTfwjewEsy5mUb8nh+xdkO+6vt736/hgdPKpdXKIdz8LDejQ5qL+5FXTRCeR4QL1ziEKAXy6edjfV9mqj0fXg+V6MD6oZ5+dlQtMp+iXjVAvxOoJO9HiOKnbHyFAocCMIqcGktglhBjSQ/lYkbGFd3su76jF3nT3xLr7ylwsxDnW5v8s1jytyktsDsRe8+ixfNbx1o+84cPqcdMtWChLSCuhOzlk2cLHnT4lxjbW2S6Jft58+TWLMzrmjI/G203BUrf2rgTcnvviTuig0HLl6+/goasv5boaN/HcIfkyLHyOQ4+NyHToEWDMTFCQUeFxjLBhOazmg3f8awgqrbK/zU9emX8XJ2etO1Ty6zq12tnVcdxq9HXp/7R+Fl2uOc1u2r8HXdrbeNr/nzpSTEyXEyjiKQlIcoOeVTqVQH4eKKAC13xYvJI1De5cJhRLYNctCbRmYYqXeHEn4Icqkf4Vq1BC8pYc1PhPJeoIzs4mwCOVLg6D0P2pWPN8mHtOkpRVUPFlg1DPHpBXX1y37oSFKLuTBigzkp23SbomyTMAe30SezNNwYyFXiHW6mj8q0mveLtQYVjrYsaLvgg5AXPXZ8cTra+1D8Hx1s+UnbJt8++p0dbWmlQeAfKu2RUWm1zaycRM9dm5Up4pwhQFMryLHaiVzieU+Yc6TAUelv8FBZvkAw1rPJ2se/Qc0t6Y2tovMpwN/6BUyCdgHSZhc8PLud3BRj3Z2EqSc2W6PthEciaEnxlxXlnYj2CZ4CgTMNgXIyiDnTYBftEQgIBAQCsSMgFHjsGAoOAgGBgEAgKQgIBZ4U2EWhAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAiULwRoQYTOdXhQbqmLKGeBTS9J27VVFu3RopF8v/H+JL9GogYCgfKLgJgDL7/3TtRcICAQOMsREAr8LBeAWJuPnWlpOBbgHexMc7RxKNZyRX6BgEBA+Z5v6cCATToVeUl0FgL3i2v5RIAUN06QeRe7Y+lwrB7YxPUQFHkerteVzxaJWgsEyh8CznZiOmwfPeT42sSlPj9rxlLYPpePfUIsEJeOTZVjXG521FfEFtCHdh2yFuRJQoC+aejzsNdx7EA3wxbhPHTLo3Hcwu9JqpooViBw1iGQEAWOc0U6ujysG05ZdkN5Wzp8gqiq5GHDiQQKYSsOIlkGpZ+gDfOW1TgrEqgzhbVMX1IZid8+dKLXOvkSiPIxWg97w+tRvjOpxWwbvnM4WvkwsPEsBS2V8AsEBAJxRyBuChzWWB2cpnwlpkcyoYwZro4c8reG5m6NQ57oI7tf4aCnHx0xKCPEfpfyPb3LYYlWxJTCKkwdJffzXRIbCb06AfckTQNRfZ+PfQeL+QXUc7ImPsSLlyQVfBJ7E4r7Im0i7tdWv4fdTIo7WV+q19ZH+AUCZyMCMSlwsuqgcC/Dtakyq22ntGV2MQ5I9+Ms3E/tgMaXMFKRfmXwl+/BMYxWn2Wy45OsNCjEC6HcapIxCuXXEx3Zdjo+szTrgxFNTyjs51BmDZNyixFHGJObgE5mFGp3LTpN3bcwFcXN2FtQ3hcGSAP/0ZAtGCndjOsxfNFdOIGAQCCJCESlwGmKxBOcIoHytnYu1hIKrRcIUoMqrB8UxvN47tcgnIv4IuvMSkptL+ZVMVcuY7j/PTTiGnQANpMyYbiFSaYXrbKHNYHSPQIFqD/q1iyvxJai+coh7zhmsj+NGtDewLm/RE/YpBVJ23o9cHdRxYO3IaKy5Evdji93/6Xx9w9sNGMZQ1xLYPsS8rcIeUMss3UYGUzANwr3E38A+CDad2ewrDrofNfA/wrqO4kUNzrMt9EXdw6mBy4y+wHvKm6maRe7W67LIwICAYFAQhGISoHjuyw7MLddDKV1LpTGuVBcyrcVlZpKrAGU2GVQChlBpR3SACiYrkjvirzFUJqLoBB2hRAFIzBvewxz6b+A10Go+xR0BeGUvhUr23jUoxYOmB+mdA+kAXFeN+JW2mWCpX0dPs7azy2zDVZTPpuvGP2x7C5SD3+X3cUtj527YlZe1V1PZS19eYYdf0dpEisBfQM1j8z2ANfxUMibKA7KW3WIe0nysWnorD6l0QIlgHYc7sk4k0FULvLeQqMgKG/mKmEVij266RiFL3gWQB4Scm/UiguPQEAgoEMgYgUO68vtL8aaXxc75aUPK8hsCzhtgbImZZeF8L/ga6FwDzEBldiQf8ibCqXRXyGX2VoogL9Cgfyis7KDigdTNfQZDwlpmVIKO+nz6j5EG8LbaQTadTjFB8vTzRrCWv0VytvqSzQtUede+KVguudrKLf/EgRWzlOS8V2JRoEH6XwZv2dtsMoTVTy+rwccO0LRdgZGygcZ7G4DtRedVXe0YyzKw3cw9Q5t2uzBh10VxR1khLhW3hTWF7fC1AG3z/AZqj2miSJSICAQiDsCEStwUphQoD1hsTXX1sLtYi5Mo9yFZ9zqudaSW/sl1gV8JkKJvwelURMdQkYIMSZfoeB/lLzsfyFpcYiA8i4Em+1QQiEOyqkhlPp8UtxKIrQZ6nofKW+MJEYgz7qQTIjIXjT5OVye29vh1dbFFY7UqXyga26t3Zfrlk2Cx3X41UMnlQulutSMT6RxXHlHSo9O9DUo8xm4zkEdzsF93ASYb8M02QncB+EEAgKBMoxAxAqc2gALdWWxS6/AMZVC6m4JFNvlsbYT87L7ocQbW/GhuXCphK2AwomLkz1F0g+XjXnFl/pH31CG0okqe3vc3njDg99TGpR3Z1V5G4jRqXVHlKLAQUfz6I8h7noN2cF6G+95DAp/mSZO9UJPfqzoSpOOQyWKwAMFfC4w/Ds6lGpGcijow4h/EPULWacdjOuF3pE+Kud0AZGxKBEWCAgESgkBR6qQpk6QQVFohvpth3KIabkclI8fVt8OA19dEDTroLxP6SJjCGy+4qaF5sqbmMqVjzVYOXPHxY/0oxApWfx7GF7tPC+pvBcxB/5ykKY5vrb9vUF5U1JdzOW/C4z+Q4GEORc7HxhdiNFLC+MP8d2gmbPtyi7t1TJ2dRFpAgGBQHgEHFngxA5zvmtgpbWFpRyYSgiWgSmEJVBQDRE8/UIzmBbJBRYiKW+Td2iB3FCAhXhR+K1iqUbCMAyNN/M3j+z2nROGjHnTTjTiNLBUP4P/M3ofgJpWpGkGKErVYcqhsRow9zQxj05e7N7zJmUXpxwNsdjTCmvn18+5o1yuxU8emqJkgUDpIuBYgWOlhg9b4r/GnHBPbVUx+pfxNw9DeO3UgZbE1g/lb/+lZ6wIgfUf4yTD6Sp4jlf3Zu7rNvp4/dUfINZ0JOL2pa9uteS113kuUtyYMhpT4lXXUeOtKtsTVOwMndASjBCeBg5P8jya615MQQ3HKKbMuO09J1xTUGXHP80qdAKRRen5tzb99onVZukiTiAgEEg+Ao4VOFUZyjsH89EdaCs8bwJewPl9xezf2EL/BMVhuC7JKWwErOZsvBTLhKFaBdMNmZheqAIrmvwVeV5cj+Hl2z/oRSHmiQeCr9HQzkfENg19LN4e6CyegJKd2mT9+Bls/fjWh7I+rH+03srLvanHW0uy+1TaH/VXNv72kWVub4ZuRFDiwxy8rEyh8I0wVNECbWWgzKcjTD8Gi9yFdqmdTllS3to6C79AQCBQPhGISoFTU2Fpr8BlYNBf4C9k09zBNdpQ4plQXjdCeadAwR2ABjtAdFCapy9BP0VAaf+sXLEEDfleQx5alVFXIaZ/MspCZDwcRhA/Q8kuwuqZjaif4urkDd2H33vh+AeV8RRdVVT1HJpbq7xDU0WMQEAgIBCIDYGoFbjsZbtp+gD2ZSqOn5rtCu61hD7rgA0flzipFubTm0KJ01LEGVB6x5D3Iyjw5rhehXj6wk6gA3DC1IIWc/j7kfQSV94WZCJaICAQEAiUeQSiVuDUMijqebBkceZgYMoE18GIVraWO2158KXoKMwhfwMl+y2mindgzvm1khLmgRIXLgIEgNMp4GjpMHWkW8Hj9qXqwsaMLm9FXTo6vRLztwXBnD6ki3tlhFGEBQIJQyAmBa4o72DVgkvQAuuZY6muZkqCNg9BKenmoWNhfabnxXuHxdCfWVbtRD+rc81WPbsYEZb0OmIE8J7jJ1xeMcarYaG8VSiERyBQGgiUoTURpdFcUYZAQCAgEDhzEBAK/My5l6IlAgGBwFmGgFDgZ9kNF80VCAgEBAICAYGAQEAgIBAQCAgEBAICAYGAQCAaBP4f7gEVmIzBYlQAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:164px;border-radius:3px;display:inline-block;height:21px;width:21px}.fc-icon.icon-chart-bar{background-position:-2px -2px}.fc-icon.icon-chart-stripe{background-position:-25px -2px}.fc-icon.icon-chart-line{background-position:-48px -2px}.fc-icon.icon-chart-area{background-position:-71px -2px}.fc-icon.icon-chart-funnel{background-position:-95px -2px}.fc-icon.icon-chart-gauge{background-position:-118px -2px}.fc-icon.icon-chart-pie{background-position:-141px -2px}.fc-icon.icon-chart-radar{background-position:-2px -25px}.fc-icon.icon-chart-scatter{background-position:-25px -25px}.fc-icon.icon-chart-custom{background-position:-48px -25px}.fd-theme-purple,.fd-theme-purple ._fc-designer,.fd-theme-purple ._fd-config-dialog{--fc-style-color-1:#884cff;--fc-style-bg-color-1:rgba(136,76,255,.05);--el-color-primary:#884cff;--el-color-primary-light-3:#a47fff;--el-color-primary-light-5:#b599ff;--el-color-primary-light-7:#c6b3ff;--el-color-primary-light-8:#d1c2ff;--el-color-primary-light-9:#e1d6ff;--el-color-primary-dark-2:#6e3acc;--fc-style-color-4:#e000ff;--fc-style-bg-color-4:rgba(224,0,255,.05)}.fd-theme-orange,.fd-theme-orange ._fc-designer,.fd-theme-orange ._fd-config-dialog{--fc-style-color-1:#f27024;--fc-style-bg-color-1:rgba(242,112,36,.05);--el-color-primary:#f27024;--el-color-primary-light-3:#ff9a59;--el-color-primary-light-5:#ffb380;--el-color-primary-light-7:#fc9;--el-color-primary-light-8:#ffd6b3;--el-color-primary-light-9:#ffe6cc;--el-color-primary-dark-2:#c25a1d;--fc-style-color-4:#ffb600;--fc-style-bg-color-4:rgba(255,182,0,.05)}.fd-theme-pink,.fd-theme-pink ._fc-designer,.fd-theme-pink ._fd-config-dialog{--fc-style-color-1:#fe679a;--fc-style-bg-color-1:rgba(254,103,154,.05);--el-color-primary:#fe679a;--el-color-primary-light-3:#ff96b3;--el-color-primary-light-5:#ffb3c8;--el-color-primary-light-7:#ffd1dc;--el-color-primary-light-8:#ffdce5;--el-color-primary-light-9:#ffe6ed;--el-color-primary-dark-2:#cb517a;--fc-style-color-4:#bd2bff;--fc-style-bg-color-4:rgba(189,43,255,.05)}.fd-theme-green,.fd-theme-green ._fc-designer,.fd-theme-green ._fd-config-dialog{--fc-style-color-1:#18bf82;--fc-style-bg-color-1:rgba(24,191,130,.05);--el-color-primary:#18bf82;--el-color-primary-light-3:#4fd8a1;--el-color-primary-light-5:#80e6bb;--el-color-primary-light-7:#b3f1d6;--el-color-primary-light-8:#c6f5e0;--el-color-primary-light-9:#d9f9eb;--el-color-primary-dark-2:#149566;--fc-style-color-4:#e2ff00;--fc-style-bg-color-4:rgba(226,255,0,.05)}.fd-theme-green ._fc-designer,.fd-theme-green ._fd-config-dialog{--fc-style-color-2:#f27024;--fc-style-bg-color-2:#ffe6cc;--el-color-success:#f27024;--el-color-success-light-3:#ff9a59;--el-color-success-light-5:#ffb380;--el-color-success-light-7:#fc9;--el-color-success-light-8:#ffd6b3;--el-color-success-light-9:#ffe6cc;--el-color-success-dark-2:#c25a1d}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAAE6gAAsAAAAAm8AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8V0nTY21hcAAAAYgAAAPZAAAJyrF9uXtnbHlmAAAFZAAAQeoAAIOYSQ6LLmhlYWQAAEdQAAAALwAAADYquA6laGhlYQAAR4AAAAAeAAAAJAfeBJlobXR4AABHoAAAAFsAAAJkexAAAGxvY2EAAEf8AAABNAAAATSML64ebWF4cAAASTAAAAAfAAAAIAG9APxuYW1lAABJUAAAAUUAAAJb1Yvg7HBvc3QAAEqYAAAEBwAABnl9aCF1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFRZ5zAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnjk9u8Pc8L+BgYH5DgOQZGBEUcQEAJFWDaV4nO3WZXOVZxSF4TshhZYCpe7uTt0N0qRJg7s7BHd3dw+QUnd3d3d34/P6G3Q9WfyMZuZiTs7wIfPO3vd+gUOAVnaJVUHlPir8iYomf1vR8n0r2rZ8X1XR6N/bciiVVKpatarX/gMHQJ1Vozo1lM8Hfyr8/zrQkaP8uZEJTGQSk5nCVKYxnRnMZBazmcNc5jGfBSxkEYtZwlKWsZwVrGQVq1nDqazlNNaxng1sZBOb2cJWTuF0zmAb2zmTk9nBWexkF03sZg97aeZCLuJi/+UncCmXcTaX04kruJKruJprOIdruY7ruYEbuYmbOZdbuJXbuJ076EwXqrmTGmq5izrquZsGzqMr3Tif7vSgJ73oTR/60o/+DGAggxjMEIYyjOGMYCSjGM0FjGEs4xjPSZzI0RzDsRzH8X4eHTnSz68DR/i5VvnpV9CaNn6mh/mJHU472vvhteb/n3blnzadDv7WXKYsPE+oS3iyUHV4xlBNeNpQbXjuUF14AlF9eBZRQ3gqUdfwfKJu4UlF3cMzi3qEpxf1DM8x6hWeaNQ7PNuoT3jKUd/wvKN+4clH/cM7gAaEtwENDO8FGhTeEDQ4vCtoSHhr0NDw/qBh4U1Cw8M7hUaEtwuNDO8ZGhXeODQ6vHtoTHgL0djwPqJx4c1E48M7ihrD24omhPcWTQxvMJoU3mU0ObzVaEp4v9HU8KajaeGdR9PD249mhDuAZoaLgGaF24BmhyuB5oR7geaGy4HmhRuC5odrghaEu4IWhguDFoVbgxaHq4OWRMusLg2XCC0LNwktD9cJrYhSXq0MFwutCrcLrQ5XDK0J9wytDZcNrQs3Dq0P1w5tCHcPbQwXEG0KtxBtDlcRbQn3EW0NlxJtCzcTbQ/XE+0IdxTtDBcV7Qq3FTWFK4t2h3uL9oTLi/aGG4yawzVG94S7jPaFC43uDUoP7gtKD+4PSg8eCJccPRiUNjwUlDY8HO48eiQonXg0KJ14LHwF0ONBacYT4cuAngxKP54KSj+eDt8N9ExQWvJsUFryXFBa8nxQWvJCUFryYlBa8lJQWvJyUFrySlBa8mpQWvJaUFryelBa8kZQWvJmUFryVlBa8nZQWvJOUFryblBa8l5QWvJ+UFryQVBa8mH4JqKPgtKVj4PSlU+C0pVPg9KVz8JXFH0evqfoi/BlRV+Gbyz6Knxt0dfhu4u+CV9g9G2UdxN9F77K6PvwfUY/hC81+jF8s9FP4euNfo7y9qRforxB6dcob1b6LcqblH4P33v0R/jyoz/D7wDor/DbAPo7ytuX/gm/IaB/o1xI7Q/a/wfUbSluAAAAeJy9vQlgJEXZMNxVPd0903MfPT2TzN2ZmSSTTDJ37mQ3CbvZK1lg73sXgV3OPeS+Dw/kUlgEkQUEF1BYQFhYFFC5fEXBAwTEj1cB5VBfQV9Q1J3e/6nqnmQmm2yin/+X1NRd1V3nc1Y1Y2CYQ6+xZ7CNjIWRmDwzj2FQzIY8IZTtQ/k0EmKJfDHr9fBszIYlj+yF/1Kx+r+QT2M2kYT/Qr4PZUNI8gi8wONgaiSVGllOrJSSyRyVySjDF2zKrxo4Ppewu6RAfTSkBCJyndWe33ThUD4zr7kw79wvnTO/2DS/HZ+amr9ipLl5ZMX81P9mh7Ng0H2FjRcOf+7SdWNNXpPF7pEDISWeSmWyxRJUWygLSnpoZMPGhRcsWHDBwo0bRobSTB207SP2StbC2Bk342EiTDu0sMDMYZYyy5jlzGZmC3MaczpzHnM+83nmCuYG5svMHcydzAPMg8wT0A9Zr+T08Eo0lig488WcrEi5ZDfKBpEnhWK9KB+fKcPMNUAAckAA0rvxREK1X6guUVPcXR2oLoK+4QkGPepBKRiUPn7nnRvEvAgGLyNh9SBJg9jdYk4Eo340VV4UEVtEMNdVnFYRzHXi90Qw14nfFcHUprGWSt3IIAXnVCr64pSx6m8qj0QGT3Cg8i5fFNX7RBEdI2oP0MyXtPq/pD1N/a1YEscNw4+PsZtRmAYY4S5miIwdzEOnx4ag79MIOrcP5bhojIc4by6aLUJMgstlSOcrGdL5USgA2VPIKSvOnDb38d8ahxvBqC7NRX9SXTCTFfQnsMvlEPwhS3F1Ecy11y5bFh+IxwdYS00BsOZklIlil4fUB6DUWKiw5uQ1BXRlj/rHeP+i/jhjqmlHkmnUZ+pcZsksWxOVoiXSogxtUSbfjaYLHLld5+DXyo2r4/B3LrHOI9YMrdo3cCBe9cfAn6GmPR2zHRNB5r1hJCSSgg0n07gPeWWBD4FbKqYRf8QX/0lJTMaxPR/pNqd7Qoks1zh/Ud2NnMkfi/k4vj6fnqERu2yJITMq2VreCDbZjGLPksGwIzjXGfObTH5nXdpWx4jjbZKYOJNgskyO6WcGmEWwk+yY1D5M2ocPax8iCz5DF3wmX5g2AFXhoDYfoSpY0NBVshLjIc4L+YoQk8DX16fr6tL16qA7Xu9w1Mfd6Al10OaBUk/YPR7105H3IsTsoWY9MdhJskKx5zwNAXt9a/1zz9kkyfYcFMJn0qrA0moiGQY89okK1YeikUj03Eg0Gjk3An+ohWR8DiqxBxo8z0HBOR5bpTqmqq8q6zLD9DJ9zAJmBbPm31ifdAJXAjKkQFdAADpC9nrsiAcw1Y+KWS4nKTMs22AoFHwvFAyG7iC+rNHYb/Q5iaV+9r77Zrt8K+7u4OOh0ONBo9FvHDA6faZ+k6eHzH2GgbaThWABqANuCRpF1l+Ujm4xG0Zej4B4ePE0hvcumZBQQtsj+FeRSDkeQf+0KNbLLRb1PJPlNtFj55Efi+gO9Vr32ei0EdL7+CcWy2esikU938hGMW9zm++2mdCQev3FfnQqeTwH/f8X9guslYlBry+GXWQFw7gJPCoVw7gE0KiU06ATvEMbEvhEkoAoNAHlYR1OBvFVAD6peLzZYj4R479idd9lsxn++aLDwlndovEDh+MfP7CFWDf6dGppb9TrUQIN9QGvHKiLBxS3HO0bayk1DaRGVi5IDTR1LEj1tbT0pdDbbqv6yGpAG27YiswWF3bZ1DdNdu5so+mGk412J4cusrpRc6x3aapUSKdiEdltt7vlSKyltVCCx8TU5kR29JjWRS0ti1qPGc1+J5wiFWv9oM1DMhYKrNhFk0cD1tpMy5brQ7I3W+pDIQyoTSwJe5FgQ2n0YQT9JhJRYTw69ZVV3ldZjfjo8j6yePDRYJf/q/vq4eyaosHusPKYm3fjUKwjHxBkiS+QFYVfJSXUQaiArCb0BKkE1pM6CCvZjp6wef6yBW2eP8IL2GR38Js2ZcKhdjNv9TGCNtfwb3W4kWLaoI2l2a4wp+Ke9Dvy6vn7GWfcMjZ2ZiYzms2mFyzAv20calS3gQUG3QDWQDambqP5b4hl16u70JW1v8NhQxLed9YQjpM8Xlgv+TaUODI0KK9mfQffQ30+862ieKvZN9PCnnPRK1ar8STex59ktOrr53V2L5sAvDEOO303M5+8JVkXFL2NEYQ3TxaHrKPLxJ8nsYKGSkA7oBVyjNcWClv0ykoaxXhB6UOY2bl5Q0dXV8eGze9UPDs33Ll+/Z3fPXqsrb29bezojSmC/y4nVirZ0bGkoyN5wqPdS3NX3HBFbmn3o2yipjD1DK+/88k715PC3yO1dKRGlhHsG6yB0mgJjPortPHYjp6ejmM3knHAdO704ifo2mDcZFU46apw5p/Zg3r27FGf2YMfJzYJ0XF7Cx/PhiC/CXZ4L/TI+DYgV+/WODCS6kmBqSONwb8IEX/q+XbV396O3m2H8oj27wbo3zrar8hrw20ItiOCKpO1hYslVMSM7EBNdhRKOX4abgn/VAwEPIJRRE0ONuFUX3WkQsj+s/It3nDYi7f8TDQKnkAAUp1a/T+n40dnlxfABQ/AFIiZbli3NhZwClwq5Iv9kCbYWEA1WK8MYXYjWbP/Tawrclff9JljpfaTr/nKxWOC08rZJGRc/5Vv77u013fc7Qfu7ZfYhJY14OnqNC++6MvXnZJ3HX3JYtbiQchrX7fneF/PJQ8+evNG2+BRVwJQZGl/34H/izFCfzvgvdhcKSrnWIV159zImXOiS/+5sxu5u3f+45yWEwwnINvJ+AflHXd+HV+rnoLC6pvoS+Ud+GpGGy+oayd+lvqtjB/6MUHXUh4wkjmw4zPuauLCWYNe/BspV7WtbQOj7FLAIO/0Ifxsm7ohnUa3t5UfV+APDx05zJCemKEtS5jVgDWccKQ2/WdTrmpLw1+bMqyA+WEaQm3pKQPpNghqgX+14Yd1hHHafqhtd7Q6UINRRmvb8G4bGKifuuoG5ZACBt2uuROvW/sa2pgYDnuX2v3BWQ1Cr2rDn2trK5/VpuDbFKW88bCuqMzXHfhXR56v4xSss4aO/jdSrslsyWa3ZDQb2bKbs+MGQpUEsPHrmV9nwKhXaS7aeeQwhQ3QlrfwIxR+tQJeu2KWEMyGBKlYknJOnXVAdiSNMwBwIQfIlQZcBNhNCwohegBuLEvMSYAp707MicfnJPBJ5d2wnYbwSWCX33MkvMm6NNrni0Z9b8rRqPzpZBtqRN6U5DB7m61+dPeZxgVWXyveD2XVfVod6GhwB1MhdR+pCR0dSn3KIfOtZvktVNcRldV3SEWoTo4uyDUFg+5Gl9kRAARFcWVsdf1N+tx4V2//GLN2ttgGoJqSJwehvELAYi5bknklRgApZTEpsQIJwi6clQWAKCQroXTY1UfoAnUg4UbY6Aidmp+/pNQmxXKdkV45u+WypQMRqS5Y15DuszTZ/ajO43PN0AlfP8FoZs3p0PFzTh1w1NfLcvqytYuPHw75mwMNJZ8j6E4lnQabk9LqT7J/ZAeBDmxihpllzDpmO3MecyHzBegJabzZ0kRfRMf7J1PQekPJJEmbU7Dta64Gm5wKcXOsBrEI5wh6gHCOhFwpJ+dKipQrlvpwIZ9IUh6Fjm7AlEmhQlJWStmcFkwqBfxVdSVt293qSq0H8Ula20ms1+712hsaiH2jXZLszc3EHiUTSX2cTIANyaMS9hFH45r5fTHRKlncDovN7BQdst9uFI28O7bbn/mhmzOJFpPV6sP79b4crPRtpa8Htd79qRSWyjawwOC/gKW+G5XfhMfJb8nRJY80Nz/yCELI7rXa/QZO8rktGJ/AWZwWhNp7BkeR2QE+1ESmHqEt/4e9hnUz9UBX9gFGfxxzKozAudD/11BoLwOaKEfpGrPhZJSneH2RktCCkyTB2oIxSEahAwEJFxQwyQKYUjSMBKUNKXakJPtRNEvRPTsi1JC2NlMIchFGnpfQRYmkQMckS3E/96RRIxgrussdYqEVueZOgtqX7ySUdVfTiy9aXBCNjzO7scOifi+WYSMc18O1wo9DXYbFXMZgHbFybdxiDhlSLtHMGrCBNxhMoj1gd27muE2ZdrPJIv2P1PTDVLtZ5I2WK52y7FRfITaqVz9CFtYdkD4LD+hsVs8ij4XuhVfAG5u65jot5a+a3SyCXr0KcrBZ5Wkuwd3HgUlw7GuCoanJILzG+u3NNgOLWAPH2ZqcPp7lXuMubUMG3mk19QysSHAGLyQ/KDs3OHw+xwanXJpD93rA7b4PuNfhvKxRgOOn/Mc5Wu5quBfvQzCIFIXsR0CqldgYZUWnyn+mOHUK28t/jhcKcWwHuzzKmg7+bWNjMtl4WbKxMXkp8Y1GLgyHL4yovzfViTfeKDjtZlbg16wxGTg2kZqfKn8IFhjsAGs4Hy9/GM/n49gRzz82/AyppPJTTwtHIuHlIms851yOFaxOOz8yInjNDKHbqmigQWYI9tGlsI/MFo5Q4sIrU5hBbEpyJJIK0B1kTlYBZ6k6cESaSd1hCkckKRI2zRfkOlmYXxu8M4I2ArF7W6TizkBTvWi3GOtjdSar3WK1WuxWU12s3mixm20286mEh3EFsSgoodbX8ftMgOlklmsrOFdhyNIWRTVqKgcLF7ZGWefWKtGZExUtsRsB1aU6Q6ZRo91kshtHTaFYyFh+VwthvzH0sitoQnktrP7YFFRCxLGZwEB06FdQFke05PJvSGnTPC00zxTC7zvtJjv8bC6XjXrsQJ447Ua7C37OcY/62njyeAFtLrzOvnDYevkPrBJWSS9pbV2SVvn04jQYpJYPNXZ2NmIEdvkYlj1Y3jg+62c/txmd734PzF8W3t8IVLLERAmO6FQQ+U2Lr34pk8G/y2bL92nYF2rRcDLWcvA9QrHjSzPqrkwGXZmpuJROPfQP9nv4E5gfhLNBNuMQsuHEBMGo8/9kRHdeyqUKomih4iNcLuzmzMYreI6zOl3CqCcgjYpBj3iFaFcvtXlMDpfDhJ82Odx2ESg9/AnCwhWCC7wcP6Z+ljJBzx4TPUHx82ZUZj12yGoCc/vtmvu0FUg+fS5Dv+zV+U2BSVgzR+CREk9yWQDhzmuuR6uvv17dez0rh0sjSfV0hL4oNYadrGU3RELi7ufUXcmRUhitQs5wo4Su1PridfZ7MFfatBlSy5EoEBxCwycoD4+y76hwDuYDIBYCgVAydB5qgy2EAClct2OLxkTY8rvNGzs6PbbTSGsXmor5o4/9zpJFzS18pm106XqbJPE2z26rRayz3m22eSYxIHZSMnj9ogWNTZZ8duzox0eXtKY9Qc83PLbfFDl/vYXrZd3mTwhrmPbR6+zPoA0+JgZ7H+PW0KXcJHzJj2Bp83QcExQhGt8TJDLsvWh8bUOzn+9oROaPVYM239E/YLLvhbnegZ/q7LZ5dolkmMRd8I67tBHb5UHvq9fE88OVuU7m/gdoxyf5+OrV8by6zWPbRWaFuIt0B5SHCbKLvr4+95/Qx5jQMkEy96ef8/HKqnDo5Mh52uRX/dksfgcWxJmTJ/1ubTVo4/0x+wyL4ClZhonnioT9lYjZkZNwXSRnEmwPICfcpJlf1HARQcFe3ixcIXoC4qgU8IyJATLp1S/ZPaLdTeY8dInDyv0ZG68gSaPoLMLDVz83SkpcIR702J7W+u622wgv8mmLh7KN3OPwy8rITBqwsH5mIWBiK5lVzKeYy5gvMrcwe5hvMN9kHmUOMM8QvJhM/SgVZzQhDT8rFtiKoENPqTBfiaCD7HAE/eeqAVgNhVsaFwLABshqJEQyQbjZQGloiHSWbBZJsjXESCzZOKD7dPKjH1ZBIl5dozRtgL2SsGg19i5+tbzNacXLbZ7YDGzf2/xotd+v7vWjJ/xb/GC2+H0+f0M4kQy5/E47Yq1mwecKJxJhl8/u5A1Oq18y2nhBMAN0sFruMFss1CdY1fv89/l89/mrbTTwfuWx779vdWN46v4aqYzORq6IZU7x+cnj/b6sf4vPt8WvXtDY02Q3WxG2CAZ7Y28jACfOYDM50iLLc0bBhOwem9VrFa1mg7jQD38LSekFxII5YNb4WWycCTFhJsW0MB0Av4eZ25k3mHeYDzT4FUQKLF9Fh1rdSFLGF3ktmjJtz8eLBPkm/HeY+310CCkhCThCCMkS7H6SDWJsMKkgHxl6mAKw49EB1zY6GP8EcZOFRL5U6EOkHshTLMmC5IXNRMgIZBFlqGxDogoOZGPNlApkRy1lSoTjnIH3htLJjL7ZymTCkUk2zuPF32giHHBF3UlwoP37NczIGUGLAV96KBL5GTUbiEHbLUEREHqz1cwbsBi0NNosHMIuK7ZLmGWxZMdWF0acxdZoDZoRx1msFiAMzEFrgmTkXc6JjE4XTzIONhgSAYQxCiQMUcQLclIWBMUQD5K4YNyg8EYp6RWEYrilpbelJSTabJLNxjY0DjX94AdKFl7boWTmEFTuQ2jG/UTc9wBB0ah1hcDC6xqMRoMBm1heFkJ2zPFWD8aSjXVG4W08GCHJyvHYHhJkwQDvTHJzSDQIXpLbEQT6Dd7WoTjg1cEftLP2kDHkQWZLIGVAFp8VGZqDFjNyI55zOjnBXUnxW4AECpAUnrPbOX64pY+Id7I2yW6XbGQ/pvjju7W4CNJ33Wj1NKvhW6H4Sy8h6aWX1GMU/PNYrJxWKi7+WvlxPFR+PKYoMfx5JRZTmApP7Of4Wcak65PAMwiRqQBxGR/3oZpHbN0mhV8Ko5atXnDUYIw1xmIHP4nhRNirXoO2e8N7gCz+EDukMDwN/sbh4/d02UNptnIHKlYsEU4KkYfC9M7XwvZSV1dpIxEzbNgwIWZQnxMD4o43CSr0D5Fs+LMQLKgPi+KOtwgy9HcRSgQqMh3tnQkOS6RQs8NeWcrWMCOwgUzToPA4BjqBe+bVe+4bbXqyafS+HfPYeTMgqhepPTt2oGfU3z/3HOUVfMg+yA5QmX0T08wUoUcHmQ3MmcxFs5PZEwzbXS1xjlYH2FrOHexCuYJC0a58IqeBmWIpJ1HQpHgp8yshVHYO1qVTph9Eulp9vtauCHaWP0jkYStxarSp+eDHz5Pph9JkKn6Q6YRdLFQKeCyRvMNu/9mNYqbVGSo939qTb5WTFhwPp02tlpW5vq5CfSzaGY2yZqheVYDw9bV0h9Eb4e4W/3AhriqEAEZvxAsXDqM+ZVsstk3RbPWy/lw8UZfzWbxxl7PJ2+SPhF3RJbnu1Z0eN9fS03LMupHhsURDtxLrjlNeDEzYC1jxML7ufCJpreFOy7MLIErTIi+hZ836Bl5ywyDgxaGPwuGPQv2h/eHw/tC80Knh8KmhuaGWcLglpO4xAI3FIjdnkmXub/80eMwGi4k7DZ2jfgY/HQqHQ/uJws7D4z58tFEUjeVlFtkkmvEJ5ZtEEWNOhk2md3w+f0efz59irpql/gpdqTZMQAVgGRQREaQc5UgBTs4SQEWYdoRgl8ls6EcCAUtEHE/0AIruLJW7g58sY6hM8kK5Ck5DiByC4MDMCWi8jCl5Gm82yBKLeJsD6EvRajFbMM8VzA7stAwNCK0Bg1IwshZZEgSr02gz9AyaYVe2LLWzbq+v3eSENhntvNVtSreZMHJbeYcp3mCiMZkWI0auGZZfX70/abSLyGgzWnxeT5MgSchm5iwu9WAwgTCbjlkk3iyZPQ7zxwjZRM7iRJ3inEBEfdlkbGmxsgi56k3FktHM21ysrb1dj+nK0RiGcen6FdEZ5UUnMrt0CmxK/JGdFjLUrPeaSVyqWfw1eEp1yvYougCA/iVRvCZyYTR6YeRQBF0QjaqXRCrurwlYLT8LSZDhNhK4LXp3JHJ3FK2lGh7PRPQ/9WPdJooCOyIHImDUm0jc2vEAJK2NPhqJPBrV5+6H7M2smXHoekp07hKZdBX0INsV1fSogiA1rCLbtgMnnXTglXWr88VifvW6k9csXtTS2tqyaPH+ikf9bRTNhVd7EraZkw784sC2YmHVutfWri4U57S2LFyyf/HClnS6ZeHi/UsWtrSqL5O3rPBvtbVVGb94lX4QU/MWNThivGr1cVHCyKXrDo3LnWEEctUBdFwMBWMx9e3YxzFWAMD79xh+C+ar+jSZuXnV2RYzol6g9n5LQO9VxGITZKO9mnhR+df6HI8Oqw1Kjs3H0Q5SWaVS4jIV/s23a9qTpdT5rFoia1uItoHkaIBq31J9sc0KCiiK+lvlY0VrgILfJjv6M7Ds/woEWdDjuVAn5TxTv/r9Hpv6NmVgBImtvq3RvySk6zm8xt6tv3sA8KbOydLGyaIqhQiqgbiMVrjdsLURbIPsWbsLPyqAwfcSkfzzxPrON79RfgPjzwkmk1A+y8J92WD4ssHIJgrqCfk8uqkAaNAJUjgsoZu84WH1s+js8tssu0Dk44JpgcCxp7Bm9mQW67LRJ/ETh+mTzQ7PmKRoO6WfDU/HJwaIXH4wX4C//Es1Dn68WR8McFEPuEMAXJ+hwLUnXugvqJ8UCshYmOxSHvlH+A+Uh0B0KQg+GQQ6inD/MlTfpEq3ghv3sbOMQxsWtPSmUr0t6MoFYIP/kxkj8PdDlDAIa456G9GhSqXCmgNBjWzQHGYcH64ek1nKAas4YjP1OfoV9Fl81v2sw+2fw3x2ALY3wmyl2LMmEiN6W3m69/GVzQ8WWrGy/aUR0deuZCyUKFO9Ok9RniEdp3Zu3rh9+8bNv9uyYceODVt2LL6y0Ch7PHJj4cqbweuVJC94UdHm0TMhLNW7qtI9tumT2ESdf8WJK/x1ujNcJ7skVwh+cl2VV/2+x5bXcuU5qxN7AhM5gp73jpSo6QQd+gj2Zgv0pInwWoF8R7KQLOGzH1BbHsAn3L/y/pXEn/oWPv6BFfevGKdX7oZV2gyYP6FXCINRySkT496L+jCZGgWpdm7E5YxXQHwykyihInrd6kIuK3qOEKPoQyWDCIvcSIQMjiaiYtaEj5dlWSWWjG724o+Qu86l0a0Z5QdGu9HkMOIf6PIIQsTa9OyATt4s67jqfvz7KfGGWjzBOW2ghpwsVUObWyL4VQDpTZFxFy0C6PhwBP00ggTw/T3yDAXiv6eg/xRCYaORCpi/LKJ+AiWMkUl7XYpJUx3jZQSXmc36QoqgADmlAM7IKYWcJsIUYK4KVCxMhZUFmPAKIVFSQK9kOU3sXqLsMlkh3GKyRDwUNcjxR1yjqv8YR3ZpcWk+EAgh+4mnNTvNZt7sdIn2erurs8NutNvNFp/Jb8t22JGjLpntiARSnfV21M6arH6LV7BHMlaBa+NnWOLqC+m3316+atXyt332Jgs0pb7R4ePY43oNRskpGFJ8yJQ7y9ff0R0JJiSvzWw3i9LihNPoitP5+Sq7C/aEFFB+K6kEgfz30/MZmsIFINdJyidvQ07CY/KSFU00igkCD6ks5UGRdS44aUYW9gDCXiLsKI29lOAFHHIpLX3zGuIukxlxNmfd+odZm23/Rr/TxiNkMTqjjUf1tcctvMNo7pw3MN+MzGHT0Td96ei0HZnnD8zralxusHCyARnONFgMPwfXy1kMbMTZ4FcsAkJmo3qGwe0Lhk5bgA2GhaeFgj6PAV1pFBFCgkWpa7Twy8VMwMcj9VuhhLh2sG95exNCo4jzBzLqp0+ACt1Q8dUcMvweXChr0HTxYL4dwPMABjHuNCxVr2xCmrIrgs3uYhPPOb2yEa1EK41er4PnjeoVVsWC/mn0yg5eMKp3QwLPO7xekmDVeeRQ53dwGLAjESAbgWqLCUwTFHfOrc1NZ/XctKGayXmEuRkbn5jIero09+T5Jw3HE0l0wuevK/lsQO/IstUUckryooVui8djtlhirsGFbrQtVpizMNXQtUjxoH5edA41Ns9xmYQ+I2rsQ2n15zvOPHMHSkfcRadZMMbzXrvHYLh8jBMDsonrEprMg7eFjx0ZTcWzgYBkcZeOz3ktckaHga/j3zA+ppXpouenshQoePgKv0aDOhTntmFPSFMlxhPKGxO6olUHr3D+mKUjvZ2DQ519I2N3jo30dQ4NdvaOLD2mf27vCT29J/bMPW9O74m9PSf0zu2nsr21i9OtS9L16fr6dJFY+DcNkY7CuSecU+yIKkq0o3jOCecWOiINw/V1y49bftyKukCgbgV4ltfV76ClqTWslwZLb9uzsK8HACMZ0VYOYbNqtCs0SYYWKloTgYQNIy2RcDwgH2X0Qsu17pA8QpIokiOyuYA3XszKmhQvCbgjimeHlkNz5vR1dJeyma6580eOHhvp7Rra8MuMS4JG+Zpt7b7BeOuS1vDnjx1b0NM1N52ph46YO+DydLerB8WAiM/WhXvlz4n4ymzL2YXUFmilLCWy6bpgQxQ6I9e/+9h2W7MPKpRcmUAYOi4x+DfaT/ne+e3pZAvpDtxl9Yli+bO8y2XlOAGfJQZ1GfV36DgnAV4caZSJCv34+bnqAcaSPqZdvTCmS+fDmM7t6lkwdmysr61OG4MlrZURrJt2BB+ta+uLpacYsPF1dyVO6/i8duaNqdGTUybUYXXlIimHpoq7OXNiBsxV5PjWieSw1qoFC/Aa4jmRRJFQa+aTDJig5xMSA9bA66iuOjSuZ/wAfoaxUz1CTUgJ+2mOkhDcOOy60e/6wGVZybJouct/8H2/C3/f5Ud/vcPlt67EflePol7trKtzoh0MgZGAp5wxxfmS2eOgU4seamjgNzW8Q+3TVdyfUvuoesNTgKKopQhaCFB9fyTyfDT6PMBuPxD2786kFnEaQQEe1BjrGkFc0eX99fiYRWEvScNusoBZwqxnNk/SjYxOMVbuabUiZzvaV7VtSqc3taE73fX17s3EOvaoo74EMRCv/jG9OQ3mMhK9yVNf7znmqKNwgXg26TnR8ZqaacD9Hol5zx3o/TEy6SqoZ2sujaYZen6MjNUhHW//JuW3haH13VOPI4pSlmqUUDlJKsXr1hdaqZJCQ6xVI3/VsOaik9WXKQ3cAjTzlteI9zVKB1+k3krjN9HQ4Zyt8o8JiR30PO4JSFQGDB5NW6DCx3iajdA5mKvS4jmFOX+2/MLJA1F7yIurnpo1GsrxGUqyDUdA2k6OtrVF90TT6eiePUar1bjHZLWqEWWlMm7QG5G2tsgemo+kmkg+NkJ65K9694g64++vlPEnxvPb09ECKVWIprsspgKpuGCyWIgCsPoJsefRNJqrS0sjuXT64ec6r3Vwdj3HSgS3paeTnDDgKVTISQplalH+SY7NTTBIST/UMEgf+R+7x2LkDCbJbSdeE8cKsnsGvmb5KYtF4MxGBTUrbrMVkFazoKivKK7KeZGP2GdgP/LAbtQL0PJo2g48K46xlEaEMwwwBJpQKHrlPhzXtZhqBIxsItzV6ptORrJjsK+7remqW84PRBY0LEs3Jhfe2OvfdJH6Tl2L399Sl+zoSFrd7jq3m7X4W7oiakLrGfQ6WEQmkKC49uvxwtt+X8vJg/NsGxes6AgELfNc0bbBT3VcX9eSa/F3LOnoJ3XUufUzMl+u4nsFZ9SCGCjsKYBBo5qrxoeH8eP58of5PHbkK+62gw8zTOUMzu7a+qfXhE9C/Q/lSbV59LpW/ZXT1q7tN9dC3USWJzP1hP6rcLqI1FDjdlU0N/6yh/Cy9qDH9xCPKkG9e+D3ubBXXe0Nk1EIe9Feb3jPwYfZRaR+Qkf/ln0Q9oYg3csow19IYyqSDhHNRLlyyoUi2iQacKMSTQJ8lMQkUZuydvOyQMbZM2+obmfIK3WPjQXXtK1JbT99WTDYhHY279x5bCjSvKsq266gJHWPjobWtKFXlKgp29gebjTJ/l3BsbEuSQqtbVvbHAwdu317M9qZioSP3bmzaVdNttGxbo8Hso3D7e+gr1WdD6pAxtMa8cHGxrKhEd1OFcJctD9/QsfKytigPwNU2lZiOphh5ijmGOZYZhNAMnLeHvZGtzKOIQHSyx0hhP5/yPnzUSneHJeohfbWBMa8DakGL7XKX/tPZsOvSnq0pJvJXvX6//scOv73U/TTmnH4F/r7pelbUx24aMY3qeBot8GeKAP91wv03/HMmcwXmJu1nZHo/eCJA87dSJgEwpR49TFoNPUx6MNrwlPXhGas6SaiI030Zvbpx6PvR/uI5sz9FEP4GomsS9fv045d79tH1KGIpS6pKUc8tQX1ApPLsRaiq3P/eBntCDUtA9YcmggvQd6jNkndQ/NXVH9oDdUl9RLwPFK+KoXOCbJOn6W6BQrTRs81LqPr8jzm8zAydzEPTaNv4Ba0Q8FUDSeZsCNdLR4yxAmHRItOlhRJT4BCcUXSxZkkl6LF0hS3plUvSzlI4UggV6BSTvITpJxeJqqxZGJ6bgD4SWG8+v5xF3Lh8PiRyt9VlB5KZmTzuG3Y6pHsyNz9WXM8auTauxysZEFW1uIxOLraOSHW8OJ3WYG15dosXL+5rD5p6eOs6ZwN4hB6EmGOtc6bZ2U5/JClLWcz8Ox3kblfvQEi0JNYwJD4PNdngYy8wVJsR4vJM62s9kyP25NM3u/ozBjgMSJrkZ41QJq5ISbAe0ylalG+ELHFhGJA8USHARn9rNVl4OIezticNpnSzUbOkzAYXNYXXLms0+CsNwqjx/H8caOCsR6C2ZzL3dzoRqIJg4tkEulrbfUKW0bnkARHutWKTaYFwpItRm+6VWZdwaqHsUg4k/PEOaieJY8yJrIm/fGazuPr7Gkwbyp3qRAa5bA7UrioM4qmZZ2yJXKupPw+sTG48Hswh6O5XPnXuYrLJiBHA83xf+RoR7mB9eSy2VzZn83lstp73MYuYjf+X72H3a8ofjVCbPQbNYJ+U/5tEf2xWFQ9xYrLblT8Bw+QHOx8v9Jz8AB7WRH+Dt5L7Ar+8BTFWeOAs24al7Hq2qnkNfqRfqqHqmOSFxQUSnqVdJhfUQzAFDssxgkuXzm5ABgIEfR3Y4oL8+jLmtzuDSBEiIaykWwjb2jKmwf/bvM8JTgJt4J/+j6qCHiIszolViLxmhbzU/dCPPLYIcHhYRNU0/kNuj8x5LjqwYeByKHhQxDGaMhju+8pgeOsLhf/FDn76sEeC2JsnmdqEiw8TTjEkM2FnLl9hv0l20txeG9OJqoLUo5yhqhSElHZlXJZPURUlEjfCJJH09PTRIhB2Amg7QQLwg0Incfxwso/WLkbDIYbOOsfVmIWG9jzDKIBEowr/4ARazLs5rjdvPX3K4w8dx4rsp3oBt7yh5UChLR8UAEi+bQ6/ohIJSxiJ1KhehbputVPUT7xCJViwIDVSjHyZOCkpFyN0+McRy5zqBrLCUVcVMyi39lcHit6qUJ8idDzJoQqpBlRy8FfF0X1rImBo+Jc9DkxwCaQVO9GFSrkJRFKmpwm/FIF+yfkgCgGobSDjpHbekjT1r0XijMab/eQyj6E/wEQmKmgmlG6vxPykRKPQHVEZapUSYaklCihPIyJA/r3NHTO8gXzmlt8EV//KXPUK04WsYm1RM37rBhb8R+NHGeXJOG0luZ5C5a/Rc4dvTXnlP6TxJCZM5uhOW6rxjczMHg/4NlWxqmv1GhljRLdKnarXzn4keLH15dPxtcffIX93sEBvF/xlw9iA6w8taO5R5Mxqew3WMyEAGoNaGdECNJQwdltAPQBgVbGpdTasBHNItkJCVGaxVkskZMgVExya+NRsm9e8htE2vRgJGfpt+Qi3yKBb35TtFtMhm92tkIM2vcNIZI3N+Uf4kwWO4sbwuGGfEP5Lw15nAiFEjjfgG0N+T67ufwXkx0rOAxxkFJ+M8JiuwnbzHZ9r3gS5pUL8LH0hEafpBTTmLx4H+YkQr7CaGg6GoWch956k7PheIEQujBaWN5JlPiG0VHn3fLVCxsWRs68Wf3otge8IfT1HURzf+ioc/d89YKGRRCPzBAf1uDLzqXXHpdQNo2MnjVn+d1DIe+Bskhg4w6Ijsc2zx89c+7yu4fD3gNUn1fXyxeoRjvRl2tlMkyB6QTsbQ7DlMhLwusQsZJ2NUiOUN2aBEVAkFbSf3H9F530e75/Wx3q2Xrm9k0be/us7DCLnPPnn7LjEvXQMPljFw2XN29FMTDbNPusVcOFrXuG2VJhzdrTt261XbjthJ4+Fq3Ytu3A1q2Pbd1a2LZtdHj8r0KzvIF/zngJ3ktWoRzCNiwQ/T7o0D7sJsrzFa35LNGmT2JD32ljzq51eUPnpi41mF3ZaY3NzwhLzv2FOWQ+u1kMS+ZBc1i8zmzGP8ut7eHnfGrX5m42PXbcukHrvJ1z1R+YIZfZG4Jc5uvEsHlcJvodimcFmf7pcKpEhbAHDEfKUSmHV6qcASZbZ+UClgT27CSD3NlBpcPEs2HLqU6fL+b3GRc0NRa9/nxLWjK4SzYrKlrN3hZz3ZIpEYxvIbmBFEO3p5tHssFYe2PQz7sz4UDY4Qh43e6kVUn3zp845/B9nadRBExxBHDFWXE1DtdFjROnck6HgoAa3hYbIxqQ0woZB2GP27CBHFA4UwyYzxRRkxggEUESEYSfWlaujsWuVmZibajHiaScJyCeaRbPEgMP1wZ7dRVc/Yz31WyU6o2WdOmHzpfC49qiU3CWNb09j9Zq0laZzDQqTdVvLoklYbcFhJPqNfYhGX/SNNQoN5VCqiNUapIbh5rQh6pDF4Jns+ppojhvnuiuN20wgan/uDZ4HAB0XMTeOmpb2QjhVztCxWZZbi6GqBh8oCIjJ/W9KtaJ8+eb6t3iepHWMSl8AsKSVb3Y6mC9VnQh1K3zOZ/X+XMVXvtSwHk+zVxe0fI/Mm0lTys0n03pWVFvtwczgUAm+O0AcQLf/jY52PxthyRdGUPzFUU9EHuPjK163jTZ0P3B9iCYb+uOlgAWmyBBPTt4hyVHpdAGopl7Z0x9NBZDIzF1jp5Dzz+kVUxyD02bMnH+Uduz0hpsO2zXIrJBO8CKEDnmyKZRG6AZ7OEK39NtZPPya7p4rr2taB3JoF8n5yZYpT+RsblPe0oMi81nm0NeunENTr3BjWSW5bNW69GbBnDj3CVDLRzXNniM+n2zGUpKdF8cNIc0ev919heUp0ZgvZepA2gdYxLQImcUIEXUqRRYWUgq8IvDL1cAywk/N2AEBB1gXy6vG8Z1J37h7KavbT216cvoxluadkfvabpoT9On2fI6vKH8Dq7D55fX3XsCrhtSTWc13X5K0w0ZyPRHyISskA0thHx3DJffqexfN7FzKa0gM2EmSfTS3UTyqPVZki5RAZVQSbazYQSUpJscEgJX1t13HSkHXmG3H+9osZfvcTi+MIoHxsrPbm8/vdixdWtH7rStf4j198dCg/1/8rW0+KS2FtZiJzlboAgp2WJPjZW/O4bOPT1z+lVbOztP3NzfiTf0x2L93YnY5hbZ19JU79Nl8F/CF5CTVW4ysFUCeHjL7ZYGy/+iuyri926LYlU/sKDHLZaP0F0mjqOy926rFTkt5KgCheX/y97GMvRMhFnvgXroA+2WKDIitMuTRLmn6gfj04a0X7KSh7314Ef4BXL1zFn3xu7N7Y3dFd0TuzVxq7Lnqrtid111a+zWz9yl7MWZ8rU4o9rQX1jm4Eespb+8407I/t29yl0/26Pc+gJkU+sh0ACeCLh4DeQ/vV+1kfd11pwfOPzM+FrmRGYr7DdnMJfM/lzs9Fr7NSq9RAew4hemSyjVQKvokbTWxsiJ8ueJLiZqpXvOFbEFMTDfmcr5tjKigMF/JtovcV1a9Std+yVOsH70K6ql3xsj+vm6UUdI9eR3QY1HX4PfPKwfl/8neo2lJ0cr5627Eb24g7UcQRO9vFTrC6KS2kLe03uc0WBym9WHNGq23Cx6gv9q28c+JXjdZkSlcCnACZhxHdxvQbtl/Ra0YZg12yewlQmYffgJD3e0ALO8EEWZEj0XVoUgyrmsfHgsISqmyltkPWHtIEdYjVd86Ffjbcnnzz74PiuTX/nVHg6xLGfn29o5h8j1cIKB52YZxyZIxeUPK4/QCMEaaZWqDqnfHkKlXoOVM3BceztntnO9BlSujeDKPZyFZ3m+rY0323l4FtL1Pm7DZ8GuEWZaiEYwqpyp14/aQw9SXZWKvDU+vR7L3YM75s7dMai+Orh9EAxqUl/NHJsBg5qyxFW/PkQSPktTacoWYuEz5+74DCkJ1kDm2ONIHFgDU8ZqfE3tPGpKP4V4FHM0cwyzgdnInMzsYi5gPke0j2rHnQgND58e3axTawohJGtOpkx/RrEmgMjNL0Rsp90AQ3pk3IdueW78dKjt/fHjmxPnR5+7NGIkFwO4V0dOiUxp1DtQVP01oa6Jq91BMO7DP/LYJg6gzqmtGx9NfOVboABkxnNt7ks0zcOKdSlVSZw34K53XTqH3k9w8YDR7rKZqu5R9AI8J3euLJ/g4h/p9K5QtU7SyIa92kLhpj4O3HTk87R3bhYwz5r8xsWLebvDbDDwmwUzZ0ZoqrO5Gn99urOwP9oseE0GI9TEcQaL3cFtNiJ0YPJ52kn3mA4xW5jjmNNhXzkfZtQVs9xTJx1dt2lIrDLOGnRTkkG/0UAnkejWSrG70uwm3ZFv9lhvc2W1mZKlswtQP7ct415vMikKbzBYHU5eUQgNoCiEsgC7bnPkjsgkM4Nmy5jLlqEau5VHuerdGZtLfUEkNfJOh4Xj+IkHuME2/ZJMu9eIdQa9DmTiPmcHEwXcUTtVPNX5lcm3LtbcRDgOsjCz7cC2bQd+sW4VOcWyat1Jq25ateqmhxYvJCdYFi5enQk2BsE4ycNZy7YDLz+6jWR7Zd2qQnHOyq9866ZVJNvDJP9tUjDYFAzuiLwfATMu83+y5s7m2UPZGnwicoSjj+VR1njwk0tiD8fAEGibIuQt1ZKl5G0+USFvE/mrh9W36WlVjf/wIx0PKM5SG4VIqQV6fppqgYYR23qEFzvdFJSwSX1NjIqf4TFvdzn5k2fQodgjYlfArN5lQZb7BLfTjHnjF3T6cmrcb/3s3pzI6d2z3J3phcE2pBOS3iPicurW4eGLYk/HJhn1H70838tZzYJgts7Q5NTB9/AiggDtGbfQ8b28i+81sJyZP0cQOVzhF+2HPggCBbi1QlXrTGUlHiNDUiwR1WSiU0nODLE2TUaQRgT70LfbFOKTSoyqDumiz2iFTqYn7zXiOaoT1BggIHoi0BZ4M15iS43q2VbbjS6r1RVcAltPo8Vcj3i7ILq4DqPfJuxGOwW3WziEWRzwoYsIDVy+htixmEba4u3B9oAjmJT+Gy+BXfepjuTnUz1G653uXN4dZOvRD5Kd7DCQKf8lsEahYGRtUeFWv+likx+hxl+ZpI1e+58IVfwnQi+3B/+kEep/kpJBx9Cke94r99zOerWR/7hTof+zuDeW3kTTNOfAnBl2vH8MXDDw3+oguXgbPaHf/VK5H3zy202De5YoAqKQG+GihRnu9P7M+LXAM17X/QvtQmFydfAc/cwd1Qv94WzOPkx7pWRNoEa+tiuKX4lGy83R6OWRyOVR1BT5TAQMuJeTqPK+Sjr+IT3N+Gqk6k99jeAdOu3yoi5jJKNcYrqZhUD/TSHfgx10ijh02GE1KSdPle9tcuZMfYlo9aCg+r/Ieg+N6KIRj6ir0V7UQvyXE+uM44+3E1d9k55UcxwCch1tDkGYZg97Q0OHWIGke0MhEg4PH0JDteGLarOT4bDR9n5Xp1lqKd61zDpmG3MSc9bsKJhafdZpA2yNqod8hBAbiXS1+HwtXZHynyu+GspO3RFDLkVR/xSb7G4t2HxBn41ahWn8syBg7iRw7NaJPbPORsoG/Dab/14bsSd7dRk1ufNXoueQ+qEnj2WY+PiZo16UkyqYKVtzNwn1wd5BtAphyhRy8JOJlSsoXK5EfIqQpCkl4i+weyub/rD2uqsm9n1ypZBteT6/PO/rLHTehep6E2x2TTi0Jsv+9urVu4MapAgGSUuD+IsTfpKivrhs2Rvr1r2R+ta3Um888sgbX/vaG48k32h+COaLXLUHxoHGmbhv53hmB7OTuZC5iLmSuXaKu3e0G6HGUU8imY5qyrMSwZoInGhDKEvPXBS0CUBgBkCVKvm1do1WvHo+FWrOtM7u2wZETS9Zg/xUBzLVyBu5ymyCZVNHSJ5PUaoEMEm8lAbd9W4IlO8/Qto1lUvaKy7qPRy1fX3OnLbI+mh0fSQXeTZCTES3WQvU8ymNZLrc4sKIBEn9NHDwvSOlPkoqOGn8srsTxy2v+qpCv6LAEx3wSOOEoedBp/t2wrH/hnY7Ny0mNEHnHhkkfhBBddBx70RQo7a7a/YaiuvPdLE6ad9ztAcobSmrz2mdhboq30nA10I7q7BnSiYV9G+wgE9QNFxfx2A0VbEaLf3zRs5fsOD8kYULOzZ0gFm4eWFpUwnMwoV6wu7KSTx87cj5158/MtCx8fSNHQO6Q6M+1G4jNFXBcE0Hv5uZByttdQUno31P36/CQhBqLnzVN+hoDRCtCchEp1QuyaVkKSmUFDkphHF1SGabNO2tLVsINN/ynPoqhepN6qvjWIEOXjUzPDCg/ijodgcDjZYGvoFTLI2n1AbxPYCPqXuhTkAS0GrACQgWsdfuGaCfG1jtjgfs5Su1LxGQYcqWF6E2SVGkoBBzJpPOmBCsCVX0Xx4bvx9/OgnnTLfjV3OKXBMSzopnx3pyW82Tx2i31Ryzcf7Z8+adfQ2x5uVXFwqrtxJrFlfWrJp39rWkFFjD+TUnrsnnV29bnWeqv0VAZJyNQG1OgbVNQW8AxhbXcclkkiwAInA7jOy+agBlJz4JlPQSgdxhS2Tg4O9ZLyI8wfGzIHvxX/QzBSU6+9ZQPtZWwAh2/gs8h0kHPKQp4g4/RSDlJs6TyxNnzI1HupvnWoLmPEaQm4f27aMOsfbdcw9aVB26Pq9d1fJQIUzcsMb3Xa3Tsnt1vu9qSsvujRdKYe82gm9t84a7NpwW9m4l1WwlgZuqA6jkJZWFvZqjn2H+Jfs3NqWfOaTXRYYrWtZh7VMDhCGlfXxFo3bpnWDkZ6eq+EQfBhNyCycTxX6cTKMkPsZh3MhJ1lfsskkw32wy4jg2+0K275rrLE/aQj4zhI3iV8yCSba/YpH4jaZmw1Jbe2j/pR43i8Jf8xf9pjvCnN0lXPpIfdrGRgTn9y12HMbuYNB8g8lvfdkecGHhOAEMUMn2l61+0w3mYNANWeyW73ts6+6sV7i6i9z5etP+ZVZsNizbX1/wCBfVGcK+Cg/8LfZdtgmwnxV0vuxgzmUuYxgullQSyfH/ErlZvPKNF8lLjwUnBBtpM/hy3hI5gEnWbk72lujKTRb0ovSYpqzdxyZ7WVi7xTTmSx4vrGCYJuCBtUxmTrWHziBsjEtsJtMYD/ic7FyTMdlwxYr1605cfVS734X9w62jqWTQK3KciIwNtxt2Bnmj6Az3AYhyB7z1rna31dvcu3D5kiXzt4cUnu+0e7yhaOMdwRRgcc2hrlBTCMyN8EOhVPAezQ0tCzcFg83BkIGv98b8AQ9/3Mmb1iy7IBC2O0c6lrXmePba4RTMbc5rCZh9rfYlI+5BEWrOuxs5zCLB5Gw/FSWTC9u7bZY63/GDC5euW+WWPQGXjLqh6aFm+H0GaG94RrDfEwqBM5c4odAt4MCzK3T9kzpvY7bfZaGsP11ZS5PsHplD9I4YFB9/XNf0exkCvxBn4Eq8LYpPPEHOS7qcwsuiCGUqusEEfyZSW6Id3M700LMs6wGvvIn5GvNw5f01enWqO/1mf2kzKxNNF7LxlHKyFKJyfHIkWxaUpH5FI51nVJsSsni1Q6dkctL7/fSzpR4KbvKliVMypTAi+SVykTe92LtEt6/x9sd1UdM5hK+2tvbm5+t50T4W4OMc4r0c/8VIGnEJXjLb7BZX1GtxpxanuQSHDUbJarTxFosUsngb303JoZC8nFgpT11dk99/FTeXi3Nco2GIOHQoCI1JHl4hELTTZcNP1VwXfTF3WZ2jrlnhOM4g2czWyzkuFuU4myjaBYORE+0d8YYIz5l5E+YsAsuzBsFoDwcakC9wUtDnC54U8LVEeiJgEuzO7Rz3JIfP2EmcKv59hbKe5TkrzplzypLiBKKHnLhyEhoIIB8QRgIhjgpHRh1/0vHKdT/pWQE/dOYDu+BvBnTxeDWHXsjcoP51fewGJK6PdagNPfeh3nN7mHF+6+1VsHryjSPTQGsTkhGLZBMGx6Kf6HQFS81ecqRz0sfvHmktL1yMHkiro8hCnLGZwHd5J96fLi9EC9GDkFv9CD3Qqo5R2n5CXlJ9N9VxzC7m08zFzCXM1bOToMzy/lN3haf3b1U1k+RlmptMszoHatalNKHMbiqUAVdnaO0mJcA6VrueFOrVcgPK2lq/u1L1boKmVueuXGcKc8Mzq/6+hrmZ+SpzN3MPs///fd9Pq1lQXROq/oyS8z84QureykETtJpg/hod4FH3+K/3g/lv/7AfzCjpzvJ95H680AFi/pPjtaoyXo3awxATUn8XDKJ6cMgH+So6h5r+gqfqG4uzpS1qvgs40dkoiw0z0hY3EH7Te7E7FOWO2Cwoik/FPomB+URXGOQOo9m7/g1aXZ4dRa52VijyF+jF8rBFkR1NI0XQn2CHq9mhLiYkXWcV4c1M/v5AhceweJY3zNTwgGp4wvSaQyhITzGGZviE6gcRdD4049JIhFxdF8GCxbiUFw3YsNRgMQszgAr1EKHYzyNEq3rNUqNFMFugHDaIlKb7C/siS7jc5C6tvupWJQVy1IAgLMmattEbCUpEPXyKNrLLoqUomB/221OOuc9FilEc6Yji1eW93mBI+onL1tVntvMvSaGQaqRKP+pLMdYa7YiqjWChPjtrmxPOR9CvIXRUWFIbpbC1t9eMwxJ6zRtSVe2C2Qn8KzyJ73MGcwHzWeZa5n69JX70H0HANFxLu+7Ho13Sod9tpWFbXsBB9bs9SrKGSR1+6TGkUFxL8sg5eBVZolfp9CKSO/evoF5fbEizhnYDYgWnTTQDEp1a6TWbDRkDMhi9ZhOPzKlIffMvDJDH8EimvX1zJpNx0xOH9xj8HOdHCFlNnEFusIqSwSDpn+r4AJmQ8TDE65Phpxur/tSzgw0GA88bjSJvEoJysMFtqrNxBjNnRBxrFkSjX65Pdhv+ZgDT1XtMd/cxvZn6fD2YtYY2Q8ywVoCZ12Ag11m6T4Zwm2H8Lo5fAC1fkWf0a1+KOvxCvanjqo7NaPQ55cSyhHIl+kYAVnIVqV8BZuyZhFqmZPg9N92EO4nnMRIFIfVnLOrDuA8LNxoEwXAjuxkCCE2E8Z/DUvmz9EN6Z0vhofJd+JbJETJkN+BelmUbeEPEICiYVR+gcX1Yj+MbMKvxVH7NvsRGYQ9PU/4ZY0Ljs1VG9EpcVMzHKaOM3PVKT9poX/pAZPpNwSPKUTX5e9XnWzNqubTY4wbCvVTf7kZssiwIbo8VsTaPCRVFQRDVsslT7zGpz4vCL5WuWKxrmFgxOwFLdl8shp5BxeTiklqG8urzSaiLTZx2yOpxk7LPa2XLpCJUNHlsb+vlwRpy1Ifr7bH2mD62n8Yfw6qtA3qbaBwdwzDuCaotkZ/QzQV4NX6hknbqu+p+pUQ+jkhGzV+T8MWzeKfTCjPzLLHeg7uJLYLlNpVfRNdrSYJ6iu5B3qo4yKR+jEKkgPqmKeBG16OQ4HQSDQz1LVLZ9rOA+rM4XfxZJnd9+bWzRHc9VO2pF6Ga6wSDwep08urJvO55vyoO8ltQmGSFmtwBdB0K06qcAg0zOu57h/7d9Wo53hiVaxE+1hk1X2WczI+q+YKSPMu4WtRp+ku/I+Rumi30OpvRUbyGfv18F/1C+SXq5xD0AYl4lUaE1T8g6bCI8laKH6Fe2O6fHnfJ98+36FX3jH6hOrAnKG0mzwOre2yP/nBI7h7FAyGVAxTon+AQFAg1kZrH8aDnq/QZK191nVEWSPiSUfghXauRTVUuly7/eVzeRkR5hBVAlRx2DaN5Q2iedncBu2gWwrnhSl71MaJmqOl+v8m+wXpq5MtdRH+jRrZco6ThrB6xqRAPmUrmYrwg6bIqmW54ZP8o6LteclUHznZ2ll/suCR3IJs9kCOnRfEXw7kwGPX+cD4Uyofvdsgn2r1YdpzotnPOit9jYz0EFVS95Gwp+n1OlXM59H7uEFNVFC2FwPGHleS1GnU++I+q7qiobW/N3bQXjl+a8AKBeuhuAnvQBSSGpDA67/JD9kZ6d2/rlHpPWo9Uye5yFbldApu3PbZt22NUeYlcxXuyzXUx+SLRRe5698VEKHWxe/JFvT8mkfXui6qy6XKZ7+NDtE0exjf5i8lVl7Z/ugG2/oaD5Qa0/dUtuT/kN796zSrDyoXxhoY4frj8wlVX4Zy6969/1ffLGwEmOGrx+n/5XuKa0yOVFpOmFAur1568eol25/CSh5doKl5L1N9FtEuKI29ScV5k22MvP7aNZKYdMFCTmXjS6ksk4+2kCCmqv/uH+JGauV1700m85pucNb2V6NjeAQY1aq4aamC74/GDzzbgTR3qvo4OdHTHsR0qD55/dKgfAooUZ5j/D9nCYecAAHicY2BkYGAA4kkhh/Pj+W2+MnCzMIDA4zOpIQj6/wIWBuYEIJeDgQkkCgA2tQqpAHicY2BkYGBu+N/AEMNSzwAELAwMjAyoYCYAVAYDgQAAeJxjYWBgYHEAYgYyMEyfPQE1DkhqHbCI48LYzEAXR1djj8MOGzQ1NgTcR8iNxkT6wZ4INdjcAcIGOPyFK3zR48EeT9wgm1WPxW57HGrR3cvAgOlPNHUA2pwZdQAAAAAAAG4BYAHEAiwClgMsA6oD7ARwBOAFOgWMBf4GFgY8BmwGtgbcB0IHxggMCDQImgkaCZoKWgsqC7wMQgzCDRwNUg2oDdgOOg6aDtAPHBAeEWIRlhHKEiQScBMgE4wUWhTqFToVohYAFlQWvBceF2gYCBgiGHYYyhlyGgIaLBqgGw4blBvoHDIcXBzCHUQdnh5CHqQfHh9OH3wfrCAOICQg6CEuIfgjFCNYI5wkJiSGJPAlMCVUJbImBiZoJqwnDieMKBIowikmKW4pxCnsKkQq6CtkLAosZC0ULZAuSC6eLuwvQi/EMFQwpjD0MUYxvjJmMtYzyjQ+NIg1HDWANcg2ajbmN7A4Bjj0OVY5rDpkO0g7pDv8PGo8xj2uPio+nD8qP8xAJECgQMhBCkE0QZJBzHicY2BkYGCYyfCBQYoBBJiAmAsIGRj+g/kMADIzAroAeJxdkc1OwkAUhc/IjxESF5q4cDVuiImhBZbsDAnsWeC6lCk/aTvNdCBh5dP4BD6BT+AT6Ev4Ah7K1QTazJ3vnLn3zk0L4AbfUDg+t1xHVrikOvIF+V64Rn4QrpMfhRtoIxRu0h8Kt/CEZ+E2O6bsoOpXVB28Citc4034gvwuXCN/CNfJn8IN3OFLuEn/R7iFmVLCbXTUy8iZyJuFnu/1OrZ5YnOfxN0DTs1ym0ZOlGwz48q1zXU/6IkzMblxfy3K3XLgfaITZzM9Zi+TplYXzm5M7IOV98UwDBPxg9hmGMHBIIJnXEBjjj3jGjEsciRV9NxjdP/dKXOX2PJDRaw+PTtVM2Y6lNQHpdFHgN5ZzoQ5eZV3PkWJHe8Z0D1MoLkcKzLSWOYynCElaxTV2YZOTD/Aqqoq+JNDvslZflDdnf0CPF1o6QAAAHicbVOHcuM2EPWzSIqSbF98vvTeK5OcfOm99957IGIlwQYJGgAlK7333i9fmwUlJfZMNCOCAJbA21dWVlfmv+7K//9OYhUtRIiRoI0UHXTRwxrWsYEjOAWbOIotHMOpOA2n4wycibNwNs7BuTgP5+MCXIiLcDEuwaW4DJfjClyJq3A1rkGGa3Edrsdx9LGNE7gBN+Im3IxbcCtuw+24A3fiLtyNe3Av7sP9eAAP4iE8jEfwKB7D43gCT+IpPI1n8Cyew/N4AS/iJbyMV/AqXsPreANv4i28DYEBckgQhhhhDIUd7EKjQAmDCnuwcPCoMcEU+5jhHbyL9/A+PsCH+Agf4xN8is/wOb7Al/gKX+MbfIvv8D1+wI/4CT/jF/yK3/A7/sCf+Asn8fdKqk0uvDJlsmdzIylVZVX7TMlEDa0oKBa1VKY7NLbICt7XsVdeU+TUqGwLKS0513Gej3Be5e2BaE6JJ0qSScREeGHbrnYVlbI9FbZU5ShyPEktDfnbcX9VqHZudF2U24vxxGLsL8bjiRYzU/uOo1FBpSfZDgNj7szBejFqeTFYy005VKOMJrzLmKjKAuzEaQZjE6mENqOtnZqBDmeZq0ROwpq6lEldaSNklJtq1vWqoMyKckSpF2434x6PHfpmQH5KVCaqqIz1Pb5YU3PRdm8BYCAcHRWaGVKeCpc5b8nn44NLQ037zEKcjynfjUTtTZoLzSvCLttwfqbpyGIi5ESUOcnlZmVN5TZYDvKU5crmmvrrh6bJfHZMKkt5ICuzZmqZG+toTSpXMakNjEhaMVpfrgzYD7uRZN1iksr3o/AMQmcsxtaySpValdTULhFOuDv+jCJppuXG4cIWzajD/yzXxlG7YhiKpr1we1YyKlElQ6NZpF7js3kDnWY7bEZhtdNsBfYixVfGqhAj2lwqE2rZhdZvLFfy4BR75F/p5hrEDGe3HxeqrF3MLqr7UWEsReE11ax6zae2KiGTwgyUprTieVaIfS6bLGeqTLmFLDhstcqjsNhe2DmxQqra9ZyYsCmU1iTTvZpckzCXW6N1GFTl2468b9LApYkbC+YtnQirgp9aM3Jr8zWmkCuDItQNj4U3WQ0tKsdfThX3xRkbBIJ63CYjY+lzH7MkNQdYk/VRLqxMG7cNzD57zeUihGJQe2/KcLDIGifHI45E1ZYqJNhGgdc1SXPI3IOLxr7QSTCFsXETvyhQysw4NzVWxoEA02KvJXPtI8ugY4ZrbDLHFe04JqOsiwHZuIlU978QHchTPwpZjLiiTD3ts7ok2t4Y7VUVOW186pkLNyTL6R91pnyPLYTdjQIHcXNOpzHuWGkZ8Vu/xY+tAykMQQ0Yu01Z47rNA9tzC62s/APehQ0CAA==) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete-circle:before,.icon-delete2:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}._fc-upload-preview>.ant-image{height:100%}.form-create.is-preview .ant-upload,.form-create.is-preview .ant-upload-list-item-action{display:none!important}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-subst,.hljs-title{color:#000;font-weight:400}.hljs-title.function_{color:#7a7a43}.hljs-code,.hljs-comment,.hljs-quote{color:#8c8c8c;font-style:italic}.hljs-meta{color:#9e880d}.hljs-section{color:#871094}.hljs-built_in,.hljs-keyword,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag,.hljs-symbol,.hljs-template-tag,.hljs-type,.hljs-variable.language_{color:#0033b3}.hljs-attr,.hljs-property{color:#871094}.hljs-attribute{color:#174ad4}.hljs-number{color:#1750eb}.hljs-regexp{color:#264eff}.hljs-link{color:#006dcc;text-decoration:underline}.hljs-meta .hljs-string,.hljs-string{color:#067d17}.hljs-char.escape_{color:#0037a6}.hljs-doctag{text-decoration:underline}.hljs-template-variable{color:#248f8f}.hljs-addition{background:#bee6be}.hljs-deletion{background:#d6d6d6}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
(function(Et,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("ant-design-vue"),require("@form-create/ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@form-create/ant-design-vue"],n):(Et=typeof globalThis<"u"?globalThis:Et||self,n(Et.FcDesigner={},Et.Vue,Et.antd,Et.formCreate))})(this,function(Et,n,Yl,av){"use strict";const la=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(av),lt={type(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef(e){return e==null},Element(e){return typeof e=="object"&&e!==null&&e.nodeType===1&&!lt.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType(e){const t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(e=>{lt[e]=function(t){return lt.type(t,e)}});function Hn(e,t){return{}.hasOwnProperty.call(e,t)}function lo(e,t,o){e[t]=o}function Ql(e,t={},o){let r=!1;for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let s=t[i];if((r=Array.isArray(s))||lt.Object(s)){let d=e[i]===void 0;if(r)r=!1,d&&lo(e,i,[]);else if(s._clone&&o!==void 0)if(o)s=s.getRule(),d&&lo(e,i,{});else{lo(e,i,s._clone());continue}else d&&lo(e,i,{});e[i]=Ql(e[i],s,o)}else lo(e,i,s),lt.Undef(s)||(lt.Undef(s.__json)||(e[i].__json=s.__json),lt.Undef(s.__origin)||(e[i].__origin=s.__origin))}return o!==void 0&&Array.isArray(e)?e.filter(i=>!i||!i.__ctrl):e}function et(e){return Ql({},{value:e}).value}function lv(e,t,o){return`[form-create ${e}]: ${t}`+(o?`
rule: `+JSON.stringify(o.getRule?o.getRule():o):"")}function sv(e,t){console.error(lv("err",e,t))}const Du="[[FORM-CREATE-PREFIX-",Bu="-FORM-CREATE-SUFFIX]]";function Xl(e){return new Function("return "+e)()}function Jl(e,t){if(e&&lt.String(e)&&e.length>4){let o=e.trim(),r=!1;try{if(o.indexOf(Bu)>0&&o.indexOf(Du)===0)o=o.replace(Bu,"").replace(Du,""),r=!0;else if(o.indexOf("$FN:")===0)o=o.substring(4),r=!0;else if(o.indexOf("$EXEC:")===0)o=o.substring(6),r=!0;else if(o.indexOf("$GLOBAL:")===0){const s=o.substring(8);return o=function(...d){const c=d[0].api.getGlobalEvent(s);if(c)return c.call(this,...d)},o.__json=e,o.__inject=!0,o}else{if(o.indexOf("$FNX:")===0)return o=Xl("function($inject){"+o.substring(5)+"}"),o.__json=e,o.__inject=!0,o;(!t&&o.indexOf("function ")===0&&o!=="function "||!t&&o.indexOf("function(")===0&&o!=="function(")&&(r=!0)}if(!r)return e;let i;try{i=Xl(o)}catch{i=Xl("function "+o)}return i.__json=e,i}catch(i){sv(`\u89E3\u6790\u5931\u8D25:${o}
err: ${i}`);return}}return e}function $u(e){const t=e.replace(/(-[a-z])/g,function(o){return o.replace("-","").toLocaleUpperCase()});return sa(t)}function sa(e){return e.replace(e[0],e[0].toLowerCase())}const Ru={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",ignore:"\u5FFD\u7565\u5B57\u6BB5",native:"\u662F\u5426\u663E\u793A\u6807\u9898",control:"\u8054\u52A8\u6570\u636E",labelShow:"\u662F\u5426\u663E\u793A",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",formItem:"\u914D\u7F6E\u8868\u5355\u9879",formItemSpan:"\u7EC4\u4EF6\u5BBD\u5EA6",row:"\u6574\u884C",globalEvent:"\u5168\u5C40\u4E8B\u4EF6",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90",globalClass:"\u5168\u5C40\u6837\u5F0F",globalConfig:"\u5168\u5C40\u914D\u7F6E",size:"\u8868\u5355\u7684\u5C3A\u5BF8",event:"\u8868\u5355\u4E8B\u4EF6",layout:"\u8868\u5355\u5E03\u5C40",labelAlign:"\u6807\u7B7E\u7684\u4F4D\u7F6E",labelWrap:"\u5141\u8BB8\u6807\u7B7E\u6362\u884C",colon:"\u662F\u5426\u663E\u793A\u6807\u7B7E\u540E\u9762\u7684\u5192\u53F7",labelCol:"\u6807\u7B7E\u7684\u5BBD\u5EA6",hideRequiredMark:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",formItemMarginBottom:"\u8868\u5355\u9879\u7684\u4E0B\u8FB9\u8DDD",scrollToFirstError:"\u63D0\u4EA4\u5931\u8D25\u81EA\u52A8\u6EDA\u52A8\u5230\u7B2C\u4E00\u4E2A\u9519\u8BEF\u5B57\u6BB5",submitBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u63D0\u4EA4\u6309\u94AE",resetBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u91CD\u7F6E\u6309\u94AE",appendChild:"\u6DFB\u52A0\u5B50\u7EA7",formMode:"\u8868\u5355\u6A21\u5F0F",formName:"\u8868\u5355\u540D\u79F0",ignoreHiddenFields:"\u63D0\u4EA4\u8868\u5355\u65F6\u5FFD\u7565\u88AB\u9690\u85CF\u7684\u5B57\u6BB5",previewMode:"\u9605\u8BFB\u6A21\u5F0F",componentMode:"\u751F\u6210\u7EC4\u4EF6",sfcMode:"\u751F\u6210SFC",document:"\u5E2E\u52A9\u6587\u6863",controlDocument:"\u9700\u8981\u66F4\u8BE6\u7EC6\u7684\u914D\u7F6E\u65B9\u6CD5\uFF1F\u8BF7\u67E5\u770B{doc}",onSubmit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",onReset:"\u8868\u5355\u91CD\u7F6E\u540E\u89E6\u53D1",onCreated:"\u8868\u5355\u7EC4\u4EF6\u521D\u59CB\u5316\u5B8C\u6BD5\u540E\u89E6\u53D1",onMounted:"\u8868\u5355\u7EC4\u4EF6\u6E32\u67D3\u5B8C\u6BD5\u540E\u89E6\u53D1",onReload:"\u8868\u5355\u6E32\u67D3\u89C4\u5219\u91CD\u8F7D\u540E\u89E6\u53D1",onChange:"\u8868\u5355\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",beforeFetch:"\u8FDC\u7A0B\u6570\u636E\u8BF7\u6C42\u53D1\u9001\u524D\u89E6\u53D1"},ai:{name:"\u667A\u80FD\u8868\u5355\u52A9\u7406",info:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u667A\u80FD\u8868\u5355\u52A9\u624B\uFF01\u6211\u53EF\u4EE5\u5E2E\u52A9\u60A8\u5FEB\u901F\u751F\u6210\u548C\u4FEE\u6539\u8868\u5355\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u9AD8\u6548\u5730\u5B8C\u6210\u8868\u5355\u8BBE\u8BA1\u3002",try:"\u4F60\u53EF\u4EE5\u8BD5\u7740\u95EE\u6211",change:"\u6362\u4E00\u6362",loading:"\u6B63\u5728\u6839\u636E\u60A8\u7684\u9700\u6C42\u5236\u4F5C\u8868\u5355\uFF0C\u8BF7\u7A0D\u5019...",fail:"\u5236\u4F5C\u8868\u5355\u65F6\u9047\u5230\u95EE\u9898\uFF0C\u8BF7\u5C1D\u8BD5\u8C03\u6574\u5185\u5BB9\u3002",success:"\u5DF2\u5904\u7406\u5B8C\u6BD5\uFF01",placeholder:"\u8BF7\u63CF\u8FF0\u60A8\u7684\u9700\u6C42"},warning:{name:"\u7EC4\u4EF6\u7684\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u83B7\u53D6\u548C\u4FEE\u6539\u8BE5\u7EC4\u4EF6\u7684\u914D\u7F6E\u89C4\u5219\u3002\u901A\u8FC7\u8BE5\u6807\u8BC6\u53EF\u4EE5\u7CBE\u786E\u5B9A\u4F4D\u7EC4\u4EF6\uFF0C\u5B9E\u73B0\u5BF9\u7EC4\u4EF6\u5C5E\u6027\u548C\u884C\u4E3A\u7684\u63A7\u5236\u3002",field:"\u7EC4\u4EF6\u5BF9\u5E94\u7684\u5B57\u6BB5\u540D\u7528\u4E8E\u4E0E\u7EC4\u4EF6\u7684\u6570\u636E\u8FDB\u884C\u7ED1\u5B9A\u3002\u5B57\u6BB5\u540D\u9700\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u4EE5\u786E\u4FDD\u80FD\u591F\u6B63\u786E\u8BC6\u522B\u3002",formList:"\u7528\u4E8E\u7BA1\u7406\u548C\u5207\u6362\u8868\u5355\u6A21\u677F\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u4E1A\u52A1\u573A\u666F\u4E2D\u5FEB\u901F\u5207\u6362\u548C\u914D\u7F6E\u8868\u5355\u3002",fetch:"\u8FDC\u7A0B\u6570\u636E\u901A\u8FC7\u8FDC\u7A0B\u8BF7\u6C42\u52A0\u8F7D\u7EC4\u4EF6\u7684\u914D\u7F6E\u9879\u3002\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\u540E\uFF0C\u7EC4\u4EF6\u4F1A\u81EA\u52A8\u53D1\u8D77\u8BF7\u6C42\uFF0C\u83B7\u53D6\u8FDC\u7A0B\u6570\u636E\u5E76\u6839\u636E\u8FD4\u56DE\u7684\u7ED3\u679C\u66F4\u65B0\u7EC4\u4EF6\u3002",fetchQuery:"\u5B9A\u4E49\u8BF7\u6C42\u7684 GET \u53C2\u6570\uFF0C\u901A\u8FC7 URL \u4F20\u9012\u6570\u636E\u3002",fetchData:"\u5B9A\u4E49\u8BF7\u6C42\u7684 POST \u53C2\u6570\uFF0C\u901A\u8FC7\u8BF7\u6C42\u4F53\u4F20\u9012\u6570\u636E\u3002",fetchDataType:"\u9009\u62E9\u8BF7\u6C42\u4F53\u7684\u6570\u636E\u7C7B\u578B\uFF0C\u786E\u4FDD\u6570\u636E\u683C\u5F0F\u6B63\u786E\u3002",fetchParse:"\u8BF7\u6C42\u8FD4\u56DE\u540E\uFF0C\u53EF\u4EE5\u901A\u8FC7\u5904\u7406\u51FD\u6570\u5BF9\u8FD4\u56DE\u7684\u7ED3\u679C\u8FDB\u884C\u5904\u7406\uFF0C\u5C06\u7ED3\u679C\u8F6C\u6362\u4E3A\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u548C\u7ED3\u6784\u3002",language:"\u7BA1\u7406\u9875\u9762\u7684\u591A\u8BED\u8A00\u6570\u636E\uFF0C\u5728\u7EC4\u4EF6\u4E2D\u914D\u7F6E\u4E0D\u540C\u8BED\u8A00\u7684\u6587\u672C\uFF0C\u652F\u6301\u4E00\u952E\u5207\u6362\u8BED\u8A00\u4F53\u7CFB\uFF0C\u4FBF\u4E8E\u5728\u591A\u8BED\u8A00\u73AF\u5883\u4E0B\u4F7F\u7528\u548C\u5C55\u793A\u5185\u5BB9\u3002",variable:"\u4ECE\u53D8\u91CF\u8BFB\u53D6\u914D\u7F6E\u9879\u7684\u503C\uFF0C\u652F\u6301\u901A\u8FC7\u53D8\u91CF\uFF08\u5982 Cookie\u3001localStorage\u3001\u5168\u5C40\u53D8\u91CF\u548C\u5916\u90E8\u6570\u636E\u6E90\u7B49\uFF09\u8BBE\u7F6E\u914D\u7F6E\u9879\u3002\u5F53\u5173\u8054\u7684\u53D8\u91CF\u53D8\u5316\u65F6\uFF0C\u914D\u7F6E\u9879\u4F1A\u540C\u6B65\u66F4\u65B0\u3002",variableInfo:"\u8BF7\u5728\u53D8\u91CF\u5217\u8868\u4E2D\u9009\u62E9\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u683C\u5F0F\u8BBF\u95EE\u5BF9\u8C61\u4E2D\u7684\u5C5E\u6027\u503C\u3002",pageManage:"\u8BBE\u8BA1\u8868\u5355\u4E2D\u7684\u5B50\u5F39\u7A97\uFF0C\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u5F39\u7A97\u663E\u793A\uFF0C\u4FBF\u4E8E\u5728\u8868\u5355\u4E2D\u52A8\u6001\u5C55\u793A\u4FE1\u606F\u6216\u8FDB\u884C\u4EA4\u4E92\u64CD\u4F5C\u3002",globalConfig:"\u7BA1\u7406\u5168\u5C40\u4E8B\u4EF6\u3001\u6837\u5F0F\u3001\u6570\u636E\u548C\u53D8\u91CF\uFF0C\u7528\u4E8E\u5728\u4E0D\u540C\u7EC4\u4EF6\u95F4\u8FDB\u884C\u6570\u636E\u5171\u4EAB\u548C\u4E8B\u4EF6\u5904\u7406\u3002",globalClass:"\u63D0\u4F9B\u5B9A\u4E49\u5168\u5C40\u6837\u5F0F\u548C Class \u7684\u529F\u80FD\uFF0C\u7528\u6237\u53EF\u4EE5\u5728\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u9009\u62E9\u5E76\u5E94\u7528\u8FD9\u4E9B\u9884\u5B9A\u4E49\u7684 Class\uFF0C\u4EE5\u5B9E\u73B0\u7EDF\u4E00\u7684\u6837\u5F0F\u7BA1\u7406\u3002",globalEvent:"\u5168\u5C40\u4E8B\u4EF6\u7528\u4E8E\u5B9A\u4E49\u7EC4\u4EF6\u4E8B\u4EF6\uFF0C\u4F9B\u7EC4\u4EF6\u8FDB\u884C\u914D\u7F6E\u548C\u9009\u62E9\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u7EC4\u4EF6\u4E2D\u7EDF\u4E00\u4F7F\u7528\u9884\u8BBE\u4E8B\u4EF6\uFF0C\u7B80\u5316\u4E8B\u4EF6\u7684\u7BA1\u7406\u548C\u5206\u53D1\u3002",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90\u7528\u4E8E\u5B9A\u4E49\u5E38\u7528\u7684\u6570\u636E\u6E90\uFF0C\u652F\u6301\u9759\u6001\u6570\u636E\u548C\u8FDC\u7A0B\u6570\u636E\u3002\u8BE5\u6570\u636E\u6E90\u53EF\u5728\u5404\u79CD\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u4F7F\u7528\uFF0C\u65B9\u4FBF\u7EDF\u4E00\u7BA1\u7406\u548C\u8C03\u7528\u6570\u636E\u3002",globalVariable:"\u5168\u5C40\u53D8\u91CF\u4E2D\u53EF\u4EE5\u5B9A\u4E49\u8BA1\u7B97\u5C5E\u6027\uFF0C\u901A\u8FC7\u8868\u5355\u6570\u636E\u548C\u5916\u90E8\u6570\u636E\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u3002\u5173\u8054\u6570\u636E\u53D8\u5316\u65F6\uFF0C\u8BA1\u7B97\u5C5E\u6027\u4F1A\u81EA\u52A8\u66F4\u65B0\uFF0C\u53EF\u4EE5\u5728\u7ED1\u5B9A\u53D8\u91CF\u6A21\u5757\u548C\u4E8B\u4EF6\u4E2D\u4F7F\u7528\u3002",ignore:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u6392\u9664\u8BE5\u7EC4\u4EF6\u7684\u5B57\u6BB5\uFF0C\u4E0D\u4F1A\u5C06\u5176\u5305\u542B\u5728\u63D0\u4EA4\u7684\u6570\u636E\u4E2D\u3002",ignoreHiddenFields:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u8FC7\u6EE4\u6389\u88AB\u9690\u85CF\u7684\u7EC4\u4EF6\u5B57\u6BB5\uFF0C\u786E\u4FDD\u4EC5\u63D0\u4EA4\u53EF\u89C1\u7684\u5B57\u6BB5\u6570\u636E\u3002",behaviorIgnoreError:"\u5982\u679C\u52A8\u4F5C\u6267\u884C\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF\uFF0C\u662F\u5426\u7EE7\u7EED\u6267\u884C\u540E\u7EED\u7684\u52A8\u4F5C\u3002",behaviorExpression:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u52A8\u4F5C\u624D\u4F1A\u88AB\u6267\u884C\u3002",behaviorStopPropagation:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u4F1A\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u7684\u6267\u884C\u3002",computedCondition:"\u901A\u8FC7\u5B9A\u4E49\u6761\u4EF6\uFF0C\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u4F1A\u6839\u636E\u6761\u4EF6\u662F\u5426\u6210\u7ACB\u81EA\u52A8\u8C03\u6574\u3002",computedFormula:"\u901A\u8FC7\u516C\u5F0F\u548C\u8868\u5355\u6570\u636E\uFF0C\u52A8\u6001\u8BA1\u7B97\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u3002"},computed:{value:{title:"\u6570\u636E\u8054\u52A8",btn:"\u8BBE\u7F6E\u6570\u636E\u8054\u52A8",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u503C"},hidden:{title:"\u9690\u85CF\u6761\u4EF6",btn:"\u8BBE\u7F6E\u9690\u85CF\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u9690\u85CF\u6761\u4EF6"},required:{title:"\u5FC5\u586B\u6761\u4EF6",btn:"\u8BBE\u7F6E\u5FC5\u586B\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u5FC5\u586B\u6761\u4EF6"},disabled:{title:"\u7981\u7528\u6761\u4EF6",btn:"\u8BBE\u7F6E\u7981\u7528\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u7981\u7528\u6761\u4EF6"},formulas:{"==":"\u7B49\u4E8E","!=":"\u4E0D\u7B49\u4E8E",on:"\u5305\u542B",notOn:"\u4E0D\u5305\u542B",empty:"\u4E3A\u7A7A",notEmpty:"\u4E0D\u4E3A\u7A7A",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",">":"\u5927\u4E8E",">=":"\u5927\u4E8E\u7B49\u4E8E","<":"\u5C0F\u4E8E","<=":"\u5C0F\u4E8E\u7B49\u4E8E"},variable:{attr:"\u5C5E\u6027\u5217\u8868",bind:"\u7ED1\u5B9A\u53D8\u91CF",list:"\u53D8\u91CF\u5217\u8868",btn:"\u8BBE\u7F6E\u53D8\u91CF",title:"\u5168\u5C40\u53D8\u91CF",create:"\u521B\u5EFA\u53D8\u91CF",placeholder:"\u8BF7\u8F93\u5165\u53D8\u91CF\u7684\u63CF\u8FF0\u4FE1\u606F"},linkage:{trigger:"\u89E6\u53D1\u4EE5\u4E0B\u8054\u52A8",info:["\u5F53\u524D\u7EC4\u4EF6\u8054\u52A8\u663E\u793A","\u7684\u503C"]},name:"\u8BA1\u7B97\u516C\u5F0F",setting:"\u8BBE\u7F6E\u6761\u4EF6",invert:"\u6761\u4EF6\u6210\u7ACB\u540E\u7EC4\u4EF6\u72B6\u6001",condition:"\u903B\u8F91\u6761\u4EF6",addCondition:"\u6DFB\u52A0\u6761\u4EF6",addGroup:"\u6DFB\u52A0\u6761\u4EF6\u7EC4",form:"\u5F53\u524D\u8868\u5355",subform:"\u5B50\u8868\u5355",formula:"\u51FD\u6570\u516C\u5F0F",formulaInfo:"\u51FD\u6570\u8BF4\u660E",formulaExample:"\u51FD\u6570\u793A\u4F8B",fieldUsed:"\u3010{label}\u3011\u5728\u8BA1\u7B97\u516C\u5F0F\u4E2D\u88AB\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u5BF9\u5E94\u516C\u5F0F",fieldExist:"\u3010{label}\u3011\u5B57\u6BB5\u5DF2\u5B58\u5728",fieldEmpty:"\u5B57\u6BB5\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fieldChar:"\u5B57\u6BB5\u540D\u79F0\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934"},validate:{type:"\u5B57\u6BB5\u7C7B\u578B",typePlaceholder:"\u8BF7\u9009\u62E9",trigger:"\u89E6\u53D1\u65B9\u5F0F",mode:"\u9A8C\u8BC1\u65B9\u5F0F",modes:{required:"\u5FC5\u586B",notRequired:"\u975E\u5FC5\u586B",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",validator:"\u81EA\u5B9A\u4E49\u9A8C\u8BC1",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},types:{string:"\u6587\u672C",boolean:"\u5E03\u5C14",array:"\u591A\u9009",number:"\u6570\u5B57",integer:"\u6574\u6570",float:"\u5C0F\u6570",object:"\u5408\u96C6",date:"\u65E5\u671F",url:"URL\u94FE\u63A5",email:"\u90AE\u7BB1\u5730\u5740"},message:"\u9519\u8BEF\u4FE1\u606F",auto:"\u81EA\u52A8\u83B7\u53D6",autoRequired:"\u8BF7\u8F93\u5165{title}",autoMode:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684{title}",requiredPlaceholder:"\u8BF7\u8F93\u5165\u63D0\u793A\u8BED",required:"\u662F\u5426\u5FC5\u586B",rule:"\u9A8C\u8BC1\u89C4\u5219"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0",empty1:"\u70B9\u51FB\u53F3\u4E0B\u89D2",empty2:"\u6309\u94AE\u6DFB\u52A0\u4E00\u5217",rmCol:"\u5220\u9664\u5F53\u524D\u5217",rmRow:"\u5220\u9664\u5F53\u524D\u884C",splitRow:"\u62C6\u5206\u6210\u884C",splitCol:"\u62C6\u5206\u6210\u5217",mergeBottom:"\u5411\u4E0B\u5408\u5E76",mergeRight:"\u5411\u53F3\u5408\u5E76",addTop:"\u6DFB\u52A0\u4E0A\u5217",addBottom:"\u6DFB\u52A0\u4E0B\u5217",addLeft:"\u6DFB\u52A0\u5DE6\u5217",addRight:"\u6DFB\u52A0\u53F3\u5217",keyValue:"\u952E\u503C\u5BF9"},struct:{title:"\u7F16\u8F91\u6570\u636E",only:"\u3010{label}\u3011\u53EA\u5141\u8BB8\u6DFB\u52A0\u4E00\u4E2A",errorMsg:"\u8F93\u5165\u7684\u5185\u5BB9\u8BED\u6CD5\u9519\u8BEF",configured:"\u5DF2\u914D\u7F6E",configuredData:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6570\u636E\u6E90",configuredEvent:"\u5DF2\u914D\u7F6E {num} \u4E2A\u4E8B\u4EF6"},class:{title:"\u8BBE\u7F6E\u6837\u5F0F",create:"\u521B\u5EFA\u6837\u5F0F",placeholder:"\u8BF7\u8F93\u5165\u6837\u5F0F\u7684\u63CF\u8FF0\u4FE1\u606F",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u6837\u5F0F",configured:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6837\u5F0F"},event:{title:"\u8BBE\u7F6E\u4E8B\u4EF6",create:"\u521B\u5EFA\u4E8B\u4EF6",list:"\u4E8B\u4EF6\u5217\u8868",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u7684\u540D\u79F0",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u4E8B\u4EF6",type:"\u7C7B\u578B",info:"\u8BF4\u660E",action:"\u7F16\u8F91\u884C\u4E3A",inject:{api:"\u5F53\u524D\u8868\u5355\u7684api",rule:"\u5F53\u524D\u8868\u5355\u7684\u751F\u6210\u89C4\u5219",self:"\u7EC4\u4EF6\u7684\u751F\u6210\u89C4\u5219",option:"\u8868\u5355\u7684\u914D\u7F6E",args:"\u4E8B\u4EF6\u7684\u539F\u59CB\u53C2\u6570"}},eventInfo:{blur:"\u5931\u53BB\u7126\u70B9\u65F6\u89E6\u53D1",focus:"\u83B7\u5F97\u7126\u70B9\u65F6\u89E6\u53D1",change:"\u5F53\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1",input:"\u5728\u503C\u6539\u53D8\u65F6\u89E6\u53D1",clear:"\u5728\u70B9\u51FB\u6E05\u7A7A\u6309\u94AE\u65F6\u89E6\u53D1",close:"\u5173\u95ED\u7EC4\u4EF6\u65F6\u89E6\u53D1",click:"\u70B9\u51FB\u7EC4\u4EF6\u65F6\u89E6\u53D1",add:"\u589E\u52A0\u65F6\u89E6\u53D1",delete:"\u5220\u9664\u65F6\u89E6\u53D1",remove:"\u5220\u9664\u65F6\u89E6\u53D1",ok:"\u70B9\u51FB\u786E\u5B9A\u6309\u94AE\u65F6\u89E6\u53D1",pressEnter:"\u6309\u4E0B\u56DE\u8F66\u952E\u65F6\u89E6\u53D1",submit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",confirm:"\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",validateFail:"\u8868\u5355\u9A8C\u8BC1\u5931\u8D25\u65F6\u89E6\u53D1",beforeLoad:"\u521D\u59CB\u5316\u4E4B\u524D\u89E6\u53D1",loaded:"\u521D\u59CB\u5316\u5B8C\u6210\u4E4B\u540E\u89E6\u53D1",hook_load:"\u7EC4\u4EF6\u89C4\u5219\u52A0\u8F7D\u540E\u89E6\u53D1",hook_mounted:"\u7EC4\u4EF6\u6302\u8F7D\u540E\u89E6\u53D1",hook_deleted:"\u7EC4\u4EF6\u89C4\u5219\u88AB\u79FB\u9664\u540E\u89E6\u53D1",hook_watch:"\u7EC4\u4EF6\u89C4\u5219\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_value:"\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_hidden:"\u7EC4\u4EF6\u663E\u793A\u72B6\u6001\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1"},fetch:{info:"\u5B9A\u4E49\u8BF7\u6C42\u65F6\uFF0C\u652F\u6301\u901A\u8FC7\u53CC\u5927\u62EC\u53F7\u8BED\u6CD5\uFF08\u5982 {{token}}\uFF09\u4F7F\u7528\u53D8\u91CF\u3002\u5728\u63A5\u53E3\u8BF7\u6C42\u65F6\u4F1A\u81EA\u52A8\u8BFB\u53D6\u8FD9\u4E9B\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u8BBF\u95EE\u5BF9\u8C61\u7684\u5C5E\u6027\u503C\u3002",title:"\u8BBE\u7F6E\u6570\u636E\u6E90",create:"\u521B\u5EFA\u6570\u636E\u6E90",config:"\u8BF7\u6C42\u914D\u7F6E",action:"\u8BF7\u6C42\u94FE\u63A5",actionRequired:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u7684\u63CF\u8FF0\u4FE1\u606F",method:"\u8BF7\u6C42\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",dataType:"\u6570\u636E\u7C7B\u578B",headers:"\u8BF7\u6C42\u5934\u90E8",query:"\u8BF7\u6C42\u53C2\u6570",parse:"\u6570\u636E\u5904\u7406",response:"\u63A5\u53E3\u8FD4\u56DE\u7684\u6570\u636E",onError:"\u9519\u8BEF\u5904\u7406",remote:"\u8FDC\u7A0B\u6570\u636E",static:"\u9759\u6001\u6570\u636E",optionsType:{fetch:"\u8FDC\u7A0B\u6570\u636E",global:"\u5168\u5C40\u6570\u636E\u6E90",struct:"\u9759\u6001\u6570\u636E"}},style:{width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",minWidth:"\u6700\u5C0F\u5BBD",minHeight:"\u6700\u5C0F\u9AD8",maxWidth:"\u6700\u5927\u5BBD",maxHeight:"\u6700\u5927\u9AD8",color:"\u989C\u8272",backgroundColor:"\u80CC\u666F\u8272",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",borderRadius:"\u5706\u89D2",border:"\u8FB9\u6846",solid:"\u5B9E\u7EBF",dashed:"\u865A\u7EBF",dotted:"\u70B9\u72B6\u865A\u7EBF",double:"\u53CC\u5B9E\u7EBF",opacity:"\u900F\u660E\u5EA6",scale:"\u7F29\u653E",overflow:{name:"\u6EA2\u51FA",visible:"\u53EF\u89C1",hidden:"\u9690\u85CF",scroll:"\u6EDA\u52A8",auto:"\u6EA2\u51FA\u540E\u81EA\u52A8\u6EDA\u52A8"},shadow:{name:"\u9634\u5F71",x:"x\u8F74\u504F\u79FB\u91CF",y:"y\u8F74\u504F\u79FB\u91CF",vague:"\u6A21\u7CCA\u534A\u5F84",extend:"\u6269\u6563\u534A\u5F84",inset:"\u5411\u5185",external:"\u5411\u5916",mode:"\u6A21\u5F0F",classic:"\u7ECF\u5178",flat:"\u6241\u5E73",solid:"\u7ACB\u4F53"},display:{name:"\u5E03\u5C40",block:"\u533A\u5757","inline-block":"\u884C\u5185\u533A\u5757",inline:"\u884C\u5185\u6587\u672C",flex:"\u5F39\u6027\u76D2\u5B50"},flexDirection:{name:"\u4E3B\u8F74\u7684\u65B9\u5411",row:"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u5DE6\u7AEF","row-reverse":"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u53F3\u7AEF",column:"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0A\u6CBF","column-reverse":"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0B\u6CBF"},flexWrap:{name:"\u662F\u5426\u6362\u884C",nowrap:"\u4E0D\u6362\u884C",wrap:"\u6362\u884C"},justifyContent:{name:"\u4E3B\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u5DE6\u5BF9\u9F50","flex-end":"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D","space-between":"\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u5B50\u5143\u7D20\u4E24\u4FA7\u7684\u95F4\u9694\u76F8\u7B49","space-evenly":"\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4E3B\u8F74\u4E0A"},alignItems:{name:"\u5B50\u5143\u7D20\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50",baseline:"\u6CBF\u7B2C\u4E00\u884C\u6587\u5B57\u7684\u57FA\u7EBF\u5BF9\u9F50",stretch:"\u6EE1\u6574\u4E2A\u5BB9\u5668\u7684\u9AD8\u5EA6"},alignContent:{name:"\u591A\u884C\u5B50\u5143\u7D20\u5728\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4E0E\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50","space-between":"\u4E0E\u4EA4\u53C9\u8F74\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u591A\u884C\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4EA4\u53C9\u8F74",stretch:"\u8F74\u7EBF\u5360\u6EE1\u6574\u4E2A\u4EA4\u53C9\u8F74"},font:{name:"\u5B57\u4F53",size:"\u5927\u5C0F",align:"\u5BF9\u9F50\u65B9\u5F0F",height:"\u884C\u9AD8",spacing:"\u5B57\u95F4\u8DDD",preview:"\u6837\u5F0F\u9884\u89C8"},decoration:{name:"\u4FEE\u9970",underline:"\u4E0B\u5212\u7EBF","line-through":"\u5220\u9664\u7EBF",overline:"\u4E0A\u5212\u7EBF"},weight:{name:"\u7C97\u7EC6",300:"\u7EC6\u4F53",400:"\u5E38\u89C4\u4F53",500:"\u4E2D\u9ED1\u4F53",700:"\u4E2D\u7C97\u4F53"}},designer:{component:"\u7EC4\u4EF6\u914D\u7F6E",id:"\u552F\u4E00\u503C",name:"\u7F16\u53F7",type:"\u7EC4\u4EF6\u7C7B\u578B",form:"\u8868\u5355\u914D\u7F6E",json:"\u6E32\u67D3\u89C4\u5219",customProps:"\u81EA\u5B9A\u4E49\u5C5E\u6027\u914D\u7F6E",style:"\u6837\u5F0F\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",advanced:"\u9AD8\u7EA7\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",slots:"\u63D2\u69FD\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E",event:"\u4E8B\u4EF6\u914D\u7F6E",clearWarn:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",childEmpty:"\u70B9\u51FB\u53F3\u4E0B\u89D2 \\e789 \u6309\u94AE\u6DFB\u52A0\u4E00\u5217",dragEmpty:"\u62D6\u62FD\u5DE6\u4FA7\u5217\u8868\u4E2D\u7684\u7EC4\u4EF6\u5230\u6B64\u5904",unload:"\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417?",sublist:"\u5B50\u8282\u70B9\u5217\u8868",formList:"\u8868\u5355\u5217\u8868",comList:"\u7EC4\u4EF6\u5217\u8868",addPage:"\u6DFB\u52A0\u6A21\u5757",pageManage:"\u6A21\u5757\u7BA1\u7406",main:"\u4E3B\u4F53",layout:"\u5FEB\u901F\u5E03\u5C40",col1:"\u4E00\u5217",col2:"\u4E24\u5217",col3:"\u4E09\u5217",col4:"\u56DB\u5217"},menu:{template:"\u6A21\u677F",main:"\u57FA\u7840\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6",component:"\u7EC4\u4EF6",subform:"\u5B50\u8868\u5355\u7EC4\u4EF6",container:"\u5BB9\u5668\u7EC4\u4EF6",chart:"\u56FE\u8868\u7EC4\u4EF6",tree:"\u5927\u7EB2"},formula:{math:"\u6570\u5B57\u5904\u7406",string:"\u6587\u672C\u5904\u7406",date:"\u65F6\u95F4\u5904\u7406",collection:"\u5408\u96C6\u5904\u7406",condition:"\u903B\u8F91\u5904\u7406",ADD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u52A0\u7684\u503C",SUB:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u51CF\u7684\u503C",MUL:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u4E58\u7684\u503C",DIV:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u9664\u7684\u503C",SUM:"\u83B7\u53D6\u5408\u96C6\u4E2D\u6570\u503C\u7684\u603B\u548C",MAX:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5927\u503C",MIN:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5C0F\u503C",ABS:"\u83B7\u53D6\u6570\u5B57\u7684\u7EDD\u5BF9\u503C",AVG:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u7684\u5E73\u5747\u503C",POWER:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E58\u5E42",RAND:"\u83B7\u53D6\u4E00\u4E2A\u5927\u4E8E\u7B49\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u968F\u673A\u6570",PI:"\u83B7\u53D6\u5706\u5468\u7387",ROUND:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570",SQRT:"\u83B7\u53D6\u4E00\u4E2A\u6570\u5B57\u7684\u6B63\u5E73\u65B9\u6839",NOW:"\u83B7\u53D6\u5F53\u524D\u7684\u65F6\u95F4",TODAY:"\u83B7\u53D6\u4ECA\u5929\u7684\u65E5\u671F",YEAR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",MONTH:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",DAY:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",HOUR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5C0F\u65F6\u6570",MINUTE:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5206\u949F\u6570",SECOND:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u79D2\u6570",DIFFDAYS:"\u83B7\u53D6\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570",DIFFHOURS:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5C0F\u65F6\u6570,\u4FDD\u7559\u4E24\u4F4D\u5C0F\u6570",DIFFMINUTES:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5206\u949F\u6570",TIMESTAMP:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u65F6\u95F4\u6233",STARTSWITH:"\u68C0\u67E5\u5B57\u7B26\u4E32\u662F\u5426\u4EE5\u6307\u5B9A\u5B57\u7B26\u4E32\u5F00\u5934",EMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u7A7A",NOTEMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E0D\u4E3A\u7A7A",LEN:"\u83B7\u53D6\u6307\u5B9A\u5408\u96C6\u7684\u957F\u5EA6",MOD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u7684\u4F59\u6570",FLOOR:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0B\u53D6\u6574\u7684\u503C",CEIL:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0A\u53D6\u6574\u7684\u503C",FIXED:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u4FDD\u7559\u6307\u5B9A\u4F4D\u6570\u7684\u5C0F\u6570",ISNUMBER:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u6570\u5B57",TONUMBER:"\u5C06\u53C2\u6570\u8F6C\u6362\u4E3A\u6570\u5B57",SLICELEFT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u5F00\u5934\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",SLICERIGHT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u7ED3\u5C3E\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",TOLOWER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5927\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u5B57\u6BCD",TOUPPER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5C0F\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u5B57\u6BCD",INCLUDES:"\u68C0\u67E5\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u5305\u542B\u6307\u5B9A\u5B57\u7B26\u4E32",REPLACE:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u53EA\u66FF\u6362\u5339\u914D\u5230\u7684\u7B2C\u4E00\u4E2A",REPLACEALL:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u66FF\u6362\u6240\u6709\u5339\u914D\u5230\u7684",TRIM:"\u5C06\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u5220\u9664",TOCHINSESAMOUNT:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E2D\u6587\u5927\u5199\u91D1\u989D",UNION:"\u5C06\u5408\u96C6/\u53C2\u6570\u4E2D\u7684\u503C\u53BB\u91CD,\u8FD4\u56DE\u53BB\u91CD\u540E\u7684\u5408\u96C6",INTERSECTIONSET:"\u83B7\u53D6\u4E24\u4E2A\u96C6\u5408\u7684\u4EA4\u96C6",LIST:"\u83B7\u53D6\u6240\u6709\u53C2\u6570\u7EC4\u6210\u7684\u96C6\u5408",AND:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u5E76\u4E14"\u94FE\u63A5,\u5F53\u6240\u6709\u8868\u8FBE\u5F0F\u5747\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',OR:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u6216"\u94FE\u63A5,\u5F53\u6709\u4E00\u4E2A\u8868\u8FBE\u5F0F\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',IF:"\u68C0\u67E5\u4E00\u4E2A\u6761\u4EF6\u80FD\u5426\u6EE1\u8DB3,\u5982\u679C\u6EE1\u8DB3\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570\uFF0C\u5426\u5219\u8FD4\u56DE\u7B2C\u4E09\u4E2A\u53C2\u6570",IN:"\u68C0\u67E5\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u5728\u5408\u96C6\u4E2D",DEFAULT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u53C2\u6570,\u5982\u679C\u4E3A\u7A7A\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570,\u5426\u5219\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u53C2\u6570",CASE:"\u68C0\u67E5\u662F\u5426\u6EE1\u8DB3\u4E00\u4E2A\u6216\u591A\u4E2A\u6761\u4EF6\uFF0C\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u6EE1\u8DB3\u6761\u4EF6\u7684\u503C",COLUMN:"\u83B7\u53D6\u5B50\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5\u5E76\u8FD4\u56DE\u5408\u96C6",VALUE:"\u83B7\u53D6\u5206\u7EC4\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5",CONCAT:"\u5C06\u6240\u6709\u53C2\u6570\u62FC\u63A5,\u8FD4\u56DE\u62FC\u63A5\u540E\u7684\u5B57\u7B26\u4E32",FALSE:"\u8FD4\u56DE\u903B\u8F91\u503C false",TRUE:"\u8FD4\u56DE\u903B\u8F91\u503C true",NOT:"\u83B7\u53D6\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C",EQ:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49",NE:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u4E0D\u76F8\u7B49",GE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",GT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u53E6\u4E00\u4E2A\u503C",LE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",LT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u53E6\u4E00\u4E2A\u503C"},language:{name:"\u56FD\u9645\u5316\u914D\u7F6E",add:"\u65B0\u589E\u8BCD\u6761",batchRemove:"\u6279\u91CF\u5220\u9664",select:"\u9009\u62E9\u591A\u8BED\u8A00"},props:{circle:"\u5706\u5F62",square:"\u6B63\u65B9\u5F62",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",document:"\u6587\u6863",link:"\u94FE\u63A5",dashed:"\u865A\u7EBF",info:"\u63D0\u793A",success:"\u6210\u529F",error:"\u5931\u8D25",warning:"\u8B66\u544A",primary:"\u91CD\u8981",danger:"\u5371\u9669",form:"\u8868\u5355",subform:"\u5B50\u8868\u5355",other:"\u5176\u4ED6",model:"\u5F39\u7A97",field:"\u5B57\u6BB5",size:"\u5C3A\u5BF8",variable:"\u53D8\u91CF",disabled:"\u7981\u7528",enable:"\u542F\u7528",time:"\u65F6\u95F4",email:"\u90AE\u7BB1",number:"\u6570\u5B57",globalData:"\u5168\u5C40\u6570\u636E",mobile:"\u79FB\u52A8\u7AEF",reactive:"\u54CD\u5E94\u5F0F",pc:"\u7535\u8111\u7AEF",title:"\u6807\u9898",content:"\u5185\u5BB9",collection:"\u5408\u96C6",group:"\u5206\u7EC4",custom:"\u81EA\u5B9A\u4E49",change:"\u6539\u53D8",blur:"\u5931\u53BB\u7126\u70B9",preview:"\u9884\u89C8",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",refresh:"\u5237\u65B0",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E",copy:"\u590D\u5236",delete:"\u5220\u9664",hide:"\u9690\u85CF",show:"\u663E\u793A",position:"\u4F4D\u7F6E",render:"\u6E32\u67D3",large:"\u5927",default:"\u9ED8\u8BA4",middle:"\u4E2D",small:"\u5C0F",always:"\u5E38\u663E",never:"\u4E0D\u663E\u793A",hover:"\u60AC\u6D6E",click:"\u70B9\u51FB",button:"\u6309\u94AE",year:"\u5E74\u4EFD",month:"\u6708\u4EFD",date:"\u65E5\u671F",dates:"\u65E5\u671F\u591A\u9009",week:"\u4E00\u5468",quarter:"\u5B63\u5EA6",datetime:"\u65E5\u671F\u65F6\u95F4","datetime-local":"\u65E5\u671F\u65F6\u95F4",datetimerange:"\u65E5\u671F\u65F6\u95F4\u533A\u95F4",daterange:"\u65E5\u671F\u533A\u95F4",monthrange:"\u6708\u4EFD\u533A\u95F4",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",top:"\u9876\u90E8",bottom:"\u4F4E\u90E8",text:"\u6587\u5B57",icon:"\u56FE\u6807",picture:"\u56FE\u7247","picture-card":"\u5361\u7247",center:"\u5C45\u4E2D",vertical:"\u7AD6\u5411",horizontal:"\u6A2A\u5411",manage:"\u7BA1\u7406",key:"\u952E\u540D",name:"\u540D\u79F0",value:"\u503C",inputData:"\u9ED8\u8BA4\u503C",append:"\u63D2\u5165",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",callback:"\u56DE\u8C03",_self:"\u5F53\u524D\u7A97\u53E3",_blank:"\u65B0\u7684\u7A97\u53E3",_parent:"\u7236\u7EA7\u7A97\u53E3",_top:"\u9876\u7EA7\u7A97\u53E3"},slots:{addonBefore:"\u5934\u90E8\u5185\u5BB9",addonAfter:"\u5C3E\u90E8\u5185\u5BB9",prefix:"\u524D\u7F6E\u5185\u5BB9",suffix:"\u540E\u7F6E\u5185\u5BB9"},behavior:{add:"\u6DFB\u52A0\u52A8\u4F5C",props:{id:"\u9009\u62E9\u7EC4\u4EF6",status:"\u72B6\u6001",compute:"\u6761\u4EF6",static:"\u9759\u6001",formula:"\u8868\u8FBE\u5F0F",setFormula:"\u914D\u7F6E\u8868\u8FBE\u5F0F",continue:"\u7EE7\u7EED\u6267\u884C\u52A8\u4F5C",stop:"\u4E2D\u65AD\u6267\u884C\u52A8\u4F5C",break:"\u8DF3\u8FC7\u5F53\u524D\u52A8\u4F5C",model:"\u9009\u62E9\u5F39\u7A97",fetch:"\u914D\u7F6E\u8BF7\u6C42",response:"\u8BF7\u6C42\u7ED3\u679C",callback:"\u81EA\u5B9A\u4E49JS",ignoreError:"\u6267\u884C\u5F02\u5E38",expression:"\u6267\u884C\u6761\u4EF6",stopPropagation:"\u963B\u65AD\u6761\u4EF6",execute:"\u6267\u884C\u52A8\u4F5C",info:"\u52A8\u4F5C\u8BF4\u660E"},openModel:{name:"\u6253\u5F00\u5F39\u7A97",info:"\u6253\u5F00\u6240\u9009\u7684\u5F39\u7A97"},closeModel:{name:"\u5173\u95ED\u5F39\u7A97",info:"\u5173\u95ED\u5F53\u524D\u5F39\u7A97"},hidden:{name:"\u7EC4\u4EF6\u53EF\u89C1\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u663E\u793A/\u9690\u85CF"},disabled:{name:"\u7EC4\u4EF6\u53EF\u7528\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u542F\u7528/\u7981\u7528"},resetFields:{name:"\u91CD\u7F6E\u8868\u5355",info:"\u91CD\u7F6E\u8868\u5355\u6570\u636E"},clearFields:{name:"\u6E05\u7A7A\u8868\u5355",info:"\u6E05\u7A7A\u8868\u5355\u6570\u636E"},validate:{name:"\u6821\u9A8C\u8868\u5355",info:"\u5BF9\u6574\u4E2A\u8868\u5355\u7684\u5185\u5BB9\u8FDB\u884C\u6821\u9A8C"},validateFields:{name:"\u6821\u9A8C\u8868\u5355\u9879",info:"\u6821\u9A8C\u6240\u9009\u7684\u7684\u8868\u5355\u9879"},setValue:{name:"\u8868\u5355\u8D4B\u503C",info:"\u4FEE\u6539\u8868\u5355\u7684\u6570\u636E"},fetch:{name:"\u53D1\u9001\u8BF7\u6C42",info:"\u914D\u7F6E\u5E76\u53D1\u9001API\u8BF7\u6C42",props:{append:"\u8FFD\u52A0\u8868\u5355\u6570\u636E"},warning:{append:"\u5F00\u542F\u540E\uFF0C\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u81EA\u52A8\u8FFD\u52A0\u5230\u8868\u5355\u7684\u6570\u636E\u4E2D\u3002",response:"\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u6682\u5B58\u5230\u6307\u5B9A\u7684\u53D8\u91CF\u4E2D\u3002"}},copy:{name:"\u590D\u5236\u5185\u5BB9",info:"\u590D\u5236\u6587\u672C\u5185\u5BB9\u81F3\u7C98\u8D34\u677F"},callback:{name:"\u81EA\u5B9A\u4E49\u64CD\u4F5C",info:"\u901A\u8FC7JavaScript\u81EA\u5B9A\u4E49\u52A8\u4F5C\u903B\u8F91"},message:{name:"\u6D88\u606F\u63D0\u9192",info:"\u5F39\u51FA\u6D88\u606F\u63D0\u9192",props:{type:"\u7C7B\u578B",message:"\u63D0\u793A\u4FE1\u606F",duration:"\u6301\u7EED\u65F6\u95F4"}},submit:{name:"\u63D0\u4EA4\u8868\u5355",info:"\u624B\u52A8\u63D0\u4EA4\u8868\u5355\u5E76\u89E6\u53D1\u8868\u5355\u63D0\u4EA4\u4E8B\u4EF6"}},com:{cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",event:{dropdownVisibleChange:"\u663E\u793A/\u9690\u85CF\u6D6E\u5C42\u65F6\u89E6\u53D1",search:"\u76D1\u542C\u641C\u7D22\uFF0C\u8FD4\u56DE\u8F93\u5165\u7684\u503C"},props:{props:"\u914D\u7F6E\u9009\u9879",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879",multiple:"\u652F\u6301\u591A\u9009\u8282\u70B9",showSearch:"\u8BE5\u9009\u9879\u662F\u5426\u53EF\u4EE5\u88AB\u641C\u7D22"}},checkbox:{name:"\u591A\u9009\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},col:{name:"\u5E03\u5C40\u683C\u5B50",info:"\u901A\u8FC7\u54CD\u5E94\u5F0F\u914D\u7F6E\u591A\u7AEF\u5E03\u5C40\uFF0C\u79FB\u52A8\u7AEF\u4F1A\u81EA\u52A8\u5E94\u7528\u7B2C\u4E00\u4E2A",props:{span:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",offset:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",push:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",pull:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570"}},datePicker:{name:"\u65E5\u671F",props:{disabled:"\u7981\u7528",bordered:"\u662F\u5426\u6709\u8FB9\u6846",picker:"\u663E\u793A\u7C7B\u578B",inputReadOnly:"\u6587\u672C\u6846\u4E0D\u53EF\u8F93\u5165",showTime:"\u589E\u52A0\u65F6\u95F4\u9009\u62E9",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",__startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",__endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",separator:"\u8BBE\u7F6E\u5206\u9694\u7B26",format:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",valueFormat:"\u7ED1\u5B9A\u503C\u7684\u683C\u5F0F"}},dateRange:{name:"\u65E5\u671F\u533A\u95F4",event:{calendarChange:"\u5F85\u9009\u65E5\u671F\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"}},timeRange:{name:"\u65F6\u95F4\u533A\u95F4"},aAlert:{name:"\u63D0\u793A",description:"\u8BF4\u660E\u6587\u5B57",props:{message:"\u6807\u9898",type:"\u4E3B\u9898",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",banner:"\u662F\u5426\u7528\u4F5C\u9876\u90E8\u516C\u544A",closeText:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C",showIcon:"\u662F\u5426\u663E\u793A\u56FE\u6807"}},aButton:{name:"\u6309\u94AE",props:{formCreateChild:"\u5185\u5BB9",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",shape:"\u5F62\u72B6",ghost:"\u4F7F\u6309\u94AE\u80CC\u666F\u900F\u660E",danger:"\u8BBE\u7F6E\u5371\u9669\u6309\u94AE",block:"\u5C06\u6309\u94AE\u5BBD\u5EA6\u81EA\u52A8\u6491\u5F00",loading:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001",disabled:"\u662F\u5426\u7981\u7528\u72B6\u6001"}},aCard:{name:"\u5361\u7247",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",hoverable:"\u9F20\u6807\u79FB\u8FC7\u65F6\u53EF\u6D6E\u8D77"}},aCollapse:{name:"\u6298\u53E0\u9762\u677F",event:{change:"\u5207\u6362\u9762\u677F\u65F6\u89E6\u53D1"},props:{accordion:"\u662F\u5426\u624B\u98CE\u7434\u6A21\u5F0F",bordered:"\u5E26\u8FB9\u6846\u98CE\u683C\u7684\u6298\u53E0\u9762\u677F",ghost:"\u4F7F\u6298\u53E0\u9762\u677F\u900F\u660E\u4E14\u65E0\u8FB9\u6846"}},aCollapsePanel:{name:"\u9762\u677F",props:{header:"\u9762\u677F\u6807\u9898",key:"\u552F\u4E00\u6807\u5FD7\u7B26",disabled:"\u662F\u5426\u7981\u7528",showArrow:"\u662F\u5426\u5C55\u793A\u5F53\u524D\u9762\u677F\u4E0A\u7684\u7BAD\u5934"}},aDescriptions:{name:"\u63CF\u8FF0\u5217\u8868",props:{title:"\u6807\u9898\u6587\u672C\uFF0C\u663E\u793A\u5728\u5DE6\u4E0A\u65B9",extra:"\u64CD\u4F5C\u533A\u6587\u672C\uFF0C\u663E\u793A\u5728\u53F3\u4E0A\u65B9",column:"\u4E00\u884C\u4E2D\u8868\u683C\u7684\u6570\u91CF",bordered:"\u662F\u5426\u5E26\u6709\u8FB9\u6846",layout:"\u6392\u5217\u7684\u65B9\u5411",size:"\u5217\u8868\u7684\u5C3A\u5BF8"}},aDescriptionsItem:{name:"\u63CF\u8FF0\u683C\u5B50",props:{label:"\u6807\u7B7E\u6587\u672C",__child:"\u5185\u5BB9",span:"\u5217\u7684\u6570\u91CF"}},aDivider:{name:"\u5206\u5272\u7EBF",props:{type:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",orientation:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E",plain:"\u6587\u5B57\u662F\u5426\u663E\u793A\u4E3A\u666E\u901A\u6B63\u6587\u6837\u5F0F",dashed:"\u662F\u5426\u865A\u7EBF"}},aTabPane:{name:"\u9009\u9879\u5361",props:{tab:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",key:"\u9009\u9879\u5361\u7684\u6807\u8BC6\u7B26"}},aTabs:{name:"\u6807\u7B7E\u9875",event:{change:"\u5207\u6362\u9762\u677F\u65F6\u89E6\u53D1",tabClick:"tab \u88AB\u9009\u4E2D\u65F6\u89E6\u53D1",edit:"\u70B9\u51FB tab \u7684\u65B0\u589E\u6216\u79FB\u9664\u6309\u94AE\u540E\u89E6\u53D1"},props:{type:"\u98CE\u683C\u7C7B\u578B",tabPosition:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",centered:"\u6807\u7B7E\u5C45\u4E2D\u5C55\u793A"}},aTag:{name:"\u6807\u7B7E",props:{formCreateChild:"\u6807\u7B7E\u5185\u5BB9",closable:"\u662F\u5426\u53EF\u5173\u95ED",bordered:"\u662F\u5426\u6709\u8FB9\u6846",color:"\u80CC\u666F\u8272"}},aTransfer:{name:"\u7A7F\u68AD\u6846",event:{search:"\u641C\u7D22\u6846\u5185\u5BB9\u65F6\u6539\u53D8\u65F6\u89E6\u53D1",selectChange:"\u9009\u4E2D\u9879\u53D1\u751F\u6539\u53D8\u65F6\u89E6\u53D1"},props:{oneWay:"\u5C55\u793A\u4E3A\u5355\u5411\u6837\u5F0F",pagination:"\u4F7F\u7528\u5206\u9875\u6837\u5F0F",showSearch:"\u662F\u5426\u663E\u793A\u641C\u7D22\u6846",showSelectAll:"\u662F\u5426\u5C55\u793A\u5168\u9009\u52FE\u9009\u6846",filterPlaceholder:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898"}},aTreeSelect:{name:"\u6811\u5F62\u9009\u62E9",event:{check:"\u9009\u4E2D\u6811\u8282\u70B9\u6216\u8F93\u5165\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",treeExpand:"\u5C55\u5F00\u6811\u8282\u70B9\u65F6\u8C03\u7528",select:"\u70B9\u51FB\u6811\u8282\u70B9\u89E6\u53D1"},props:{multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",showSearch:"\u5728\u4E0B\u62C9\u4E2D\u663E\u793A\u641C\u7D22\u6846(\u4EC5\u5728\u5355\u9009\u6A21\u5F0F\u4E0B\u751F\u6548)",treeCheckable:"\u663E\u793A\u591A\u9009\u6846",fieldNames:"\u914D\u7F6E\u9009\u9879",treeDefaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",treeLine:"\u662F\u5426\u5C55\u793A\u7EBF\u6761\u6837\u5F0F"}},aWatermark:{name:"\u6C34\u5370",props:{content:"\u6C34\u5370\u6587\u672C\u5185\u5BB9",image:"\u6C34\u5370\u56FE\u7247\uFF0C\u5EFA\u8BAE\u4F7F\u7528 2x \u6216 3x \u56FE\u50CF",width:"\u6C34\u5370\u7684\u5BBD\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u5BBD\u5EA6",height:"\u6C34\u5370\u7684\u9AD8\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u9AD8\u5EA6",rotate:"\u6C34\u5370\u7684\u65CB\u8F6C\u89D2\u5EA6, \u5355\u4F4D \xB0",zIndex:"\u6C34\u5370\u5143\u7D20\u7684z-index\u503C"}},aTooltip:{name:"\u6587\u5B57\u63D0\u793A",props:{title:"\u663E\u793A\u7684\u5185\u5BB9",color:"\u80CC\u666F\u8272",placement:"Tooltip \u7EC4\u4EF6\u51FA\u73B0\u7684\u4F4D\u7F6E",trigger:"\u5982\u4F55\u89E6\u53D1 Tooltip",mouseEnterDelay:"\u5728\u89E6\u53D1\u540E\u591A\u4E45\u663E\u793A\u5185\u5BB9\uFF0C\u5355\u4F4D\u79D2",mouseLeaveDelay:"\u5EF6\u8FDF\u5173\u95ED\uFF0C\u5355\u4F4D\u79D2"}},aImage:{name:"\u56FE\u7247",props:{src:"\u56FE\u7247\u94FE\u63A5",preview:"\u5F00\u542F\u9884\u89C8"}},aAvatar:{name:"\u5934\u50CF\u6846",props:{src:"\u56FE\u7247\u94FE\u63A5",shape:"\u5F62\u72B6",size:"\u5C3A\u5BF8"}},aMentions:{name:"\u63D0\u53CA",event:{search:"\u6309\u4E0B\u89E6\u53D1\u5B57\u6BB5\u65F6\u89E6\u53D1",select:"\u5F53\u7528\u6237\u9009\u62E9\u9009\u9879\u65F6\u89E6\u53D1"},props:{rows:"\u5185\u5BB9\u9AD8\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",filterOption:"\u7B5B\u9009\u5668\u9009\u9879\u903B\u8F91"}},aSegmented:{name:"\u5206\u6BB5\u63A7\u5236\u5668",props:{size:"\u5C3A\u5BF8",block:"\u6491\u6EE1\u7236\u5143\u7D20\u5BBD\u5EA6",disabled:"\u662F\u5426\u7981\u7528"}},aFormItem:{name:"\u8868\u5355\u9879",props:{label:"\u6807\u7B7E\u6587\u672C","formCreateStyle>width":"\u6807\u7B7E\u5BBD\u5EA6"}},aStatistic:{name:"\u7EDF\u8BA1\u680F",props:{value:"\u6570\u503C",title:"\u6807\u9898",prefix:"\u6570\u503C\u7684\u524D\u7F00",suffix:"\u6570\u503C\u7684\u540E\u7F00"}},fcTitle:{name:"\u6807\u9898",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",align:"\u5BF9\u9F50\u65B9\u5F0F"}},fcId:{name:"\u552F\u4E00\u503C",props:{prefix:"\u524D\u7F00"}},fcCell:{name:"\u683C\u5B50"},fcEditor:{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},fcFlex:{name:"\u76D2\u5B50\u5E03\u5C40"},fcFlex2:{name:"\u76D2\u5B50\u5E03\u5C40",horizontal:"\u6C34\u5E73\u5C45\u4E2D",vertical:"\u5782\u76F4\u5C45\u4E2D",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",reset:"\u91CD\u7F6E\u5E03\u5C40"},fcRow:{name:"\u6805\u683C\u5E03\u5C40",props:{gutter:"\u6805\u683C\u95F4\u9694",justify:"\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",align:"\u5782\u76F4\u6392\u5217\u65B9\u5F0F"}},fcDialog:{name:"\u5F39\u51FA\u6846",props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",fullscreen:"\u662F\u5426\u4E3A\u5168\u5C4F",mask:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",afterClose:"\u5173\u95ED\u540E\u89E6\u53D1",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE"}},fcDrawer:{name:"\u62BD\u5C49",event:{afterOpenChange:"\u5207\u6362\u62BD\u5C49\u65F6\u52A8\u753B\u7ED3\u675F\u540E\u89E6\u53D1"},props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",placement:"\u6253\u5F00\u7684\u65B9\u5411",mask:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE"},placementType:{left:"\u5DE6\u4FA7",right:"\u53F3\u4FA7"}},fcTable:{name:"\u8868\u683C\u5E03\u5C40",props:{border:"\u662F\u5426\u663E\u793A\u8FB9\u6846",borderColor:"\u8FB9\u6846\u989C\u8272",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6"}},fcTableGrid:{name:"\u683C\u5B50"},fcValue:{name:"\u8BA1\u7B97\u516C\u5F0F",empty:"\u5728\u53F3\u4FA7\u914D\u7F6E\u4E2D\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"},fcSlot:{name:"\u63D2\u69FD\u533A\u57DF",empty:"\u901A\u8FC7\u5B9A\u4E49\u63D2\u69FD&nbsp;{tag}&nbsp;\u586B\u5145\u533A\u57DF",props:{name:"\u63D2\u69FD\u540D\u79F0"}},fcJson:{name:"\u52A8\u6001\u533A\u57DF",empty:"\u901A\u8FC7\u52A0\u8F7D&nbsp;{tag}&nbsp;\u89C4\u5219\u586B\u5145\u533A\u57DF",props:{_loadType:"JSON \u89C4\u5219",type:"\u7C7B\u578B"}},lineChart:{name:"\u6298\u7EBF\u56FE",data:"\u56FE\u8868\u6570\u636E",pieTypeOpt:{pie:"\u5706\u5F62",doughnut:"\u73AF\u5F62","half-doughnut":"\u534A\u73AF\u5F62"},funnelSortOpt:{descending:"\u5012\u5E8F",ascending:"\u6B63\u5E8F"},props:{title:"\u56FE\u8868\u7684\u540D\u79F0",subtitle:"\u56FE\u8868\u7684\u7B80\u4ECB",valueFormat:"\u683C\u5F0F\u5316\u6570\u503C\u663E\u793A",stack:"\u591A\u5217\u6570\u636E\u65F6\u662F\u5426\u5806\u53E0",smooth:"\u7EBF\u6761\u662F\u5426\u5E73\u6ED1\u8FC7\u6E21",showLegend:"\u662F\u5426\u663E\u793A\u6807\u8BB0",showSeriesLabel:"\u662F\u5426\u663E\u793A\u6570\u503C",barBackgroundColor:"\u67F1\u72B6\u7684\u80CC\u666F\u8272",funnelSort:"\u6392\u5E8F\u65B9\u5F0F",pieType:"\u5F62\u72B6",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",value:"\u6570\u503C",indicator:"\u6307\u793A\u5668",loadOptions:"\u521D\u59CB\u5316"}},areaChart:{name:"\u4F53\u79EF\u56FE"},barChart:{name:"\u67F1\u72B6\u56FE"},customChart:{name:"\u81EA\u5B9A\u4E49\u56FE\u8868"},funnelChart:{name:"\u6F0F\u6597\u56FE"},gaugeChart:{name:"\u4EEA\u8868\u76D8"},pieChart:{name:"\u997C\u56FE"},radarChart:{name:"\u96F7\u8FBE\u56FE"},scatterChart:{name:"\u6563\u70B9\u56FE"},stripeChart:{name:"\u6761\u5F62\u56FE"},fcInlineForm:{name:"\u884C\u5185\u5E03\u5C40"},group:{name:"\u5B50\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001",expand:"\u8BBE\u7F6E\u9ED8\u8BA4\u5C55\u5F00\u51E0\u9879",button:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",sortBtn:"\u662F\u5426\u663E\u793A\u6392\u5E8F\u6309\u94AE",min:"\u8BBE\u7F6E\u6700\u5C0F\u6DFB\u52A0\u51E0\u9879",max:"\u8BBE\u7F6E\u6700\u591A\u6DFB\u52A0\u51E0\u9879"}},html:{name:"HTML",props:{formCreateChild:"\u5185\u5BB9"}},input:{name:"\u8F93\u5165\u6846",event:{change:"\u8F93\u5165\u6846\u5185\u5BB9\u53D8\u5316\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",bordered:"\u662F\u5426\u6709\u8FB9\u6846",showCount:"\u662F\u5426\u5C55\u793A\u5B57\u6570",disabled:"\u662F\u5426\u7981\u7528",autoSize:"\u81EA\u9002\u5E94\u5185\u5BB9\u9AD8\u5EA6"}},inputNumber:{name:"\u6570\u5B57\u8F93\u5165\u6846",event:{step:"\u70B9\u51FB\u4E0A\u4E0B\u7BAD\u5934\u65F6\u89E6\u53D1"},props:{precision:"\u6570\u503C\u7CBE\u5EA6",min:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C",max:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C",step:"\u8BA1\u6570\u5668\u6B65\u957F",disabled:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668",controls:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",bordered:"\u662F\u5426\u6709\u8FB9\u6846",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"}},password:{name:"\u5BC6\u7801\u8F93\u5165\u6846",event:{change:"\u8F93\u5165\u6846\u5185\u5BB9\u53D8\u5316\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",showCount:"\u662F\u5426\u5C55\u793A\u5B57\u6570",visibilityToggle:"\u662F\u5426\u663E\u793A\u5207\u6362\u6309\u94AE\u6216\u8005\u63A7\u5236\u5BC6\u7801\u663E\u9690",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",bordered:"\u662F\u5426\u6709\u8FB9\u6846"}},radio:{name:"\u5355\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",disabled:"\u662F\u5426\u7981\u7528",optionType:"\u9009\u9879\u7C7B\u578B"}},rate:{name:"\u8BC4\u5206",props:{count:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u5141\u8BB8\u518D\u6B21\u70B9\u51FB\u540E\u6E05\u9664",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009"}},select:{name:"\u9009\u62E9\u5668",event:{search:"\u6587\u672C\u6846\u503C\u53D8\u5316\u65F6\u89E6\u53D1",select:"\u88AB\u9009\u4E2D\u65F6\u8C03\u7528"},modeOpt:{multiple:"\u591A\u9009",tags:"\u6807\u7B7E",combobox:"\u5355\u9009"},props:{disabled:"\u662F\u5426\u7981\u7528",allowClear:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",placeholder:"\u5360\u4F4D\u7B26",bordered:"\u662F\u5426\u6709\u8FB9\u6846",mode:"\u6A21\u5F0F"}},slider:{name:"\u6ED1\u5757",props:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",disabled:"\u662F\u5426\u7981\u7528",step:"\u6B65\u957F",dots:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F"}},space:{name:"\u95F4\u8DDD"},stepForm:{name:"\u5206\u6B65\u8868\u5355",event:{next:"\u70B9\u51FB\u4E0B\u4E00\u6B65\u6309\u94AE\u65F6\u89E6\u53D1"},props:{autoValidate:"\u8FDB\u5165\u4E0B\u4E00\u6B65\u524D\u81EA\u52A8\u9A8C\u8BC1\u8868\u5355","stepsProps>size":"\u5C3A\u5BF8"}},stepFormItem:{name:"\u6B65\u9AA4\u6761",props:{title:"\u6807\u9898",description:"\u63CF\u8FF0\u6587\u6848"}},subForm:{name:"\u5206\u7EC4",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001"}},switch:{name:"\u5F00\u5173",props:{disabled:"\u662F\u5426\u7981\u7528",checkedChildren:"\u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",unCheckedChildren:"\u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",checkedValue:"\u6253\u5F00\u65F6\u7684\u503C",unCheckedValue:"\u5173\u95ED\u65F6\u7684\u503C"}},tableForm:{name:"\u8868\u683C\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",filterEmptyColumn:"\u662F\u5426\u8FC7\u6EE4\u7A7A\u884C\u7684\u6570\u636E",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedTableForm:{name:"\u5D4C\u5957\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",nestedMax:"\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},infiniteTableForm:{name:"\u65E0\u9650\u7EA7\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",childrenField:"\u8BBE\u7F6E\u5B50\u7EA7\u7684\u5B57\u6BB5\u540D",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",layerMax:"\u6700\u591A\u6DFB\u52A0\u51E0\u5C42\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedSubTableForm:{name:"\u5B50\u8868\u683C\u8868\u5355"},tableFormColumn:{name:"\u8868\u683C\u683C\u5B50",label:"\u81EA\u5B9A\u4E49\u540D\u79F0",props:{label:"\u6807\u9898",width:"\u5BBD\u5EA6",color:"\u989C\u8272",required:"\u662F\u5426\u663E\u793A\u5FC5\u586B\u661F\u53F7"}},dataTable:{name:"\u6570\u636E\u8868\u683C",handle:"\u7981\u7528\u903B\u8F91",click:"\u70B9\u51FB\u4E8B\u4EF6",filter:"\u7B5B\u9009",event:{handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",change:"\u5206\u9875\u3001\u6392\u5E8F\u3001\u7B5B\u9009\u53D8\u5316\u65F6\u89E6\u53D1",rowSelectionChange:"\u5F53\u9009\u62E9\u9879\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"},button:{title:"\u64CD\u4F5C\u6309\u94AE",btn:"\u914D\u7F6E\u64CD\u4F5C\u6309\u94AE",link:"\u6587\u5B57",round:"\u5706\u89D2",plain:"\u6734\u7D20",disabled:"\u7981\u7528"},column:{title:"\u5217\u8868\u7BA1\u7406",btn:"\u914D\u7F6E\u8868\u683C\u5217\u8868",prop:"\u5B57\u6BB5\u540D\u79F0",sort:"\u6392\u5E8F"},format:{default:"\u5E38\u89C4",tag:"\u6807\u7B7E",image:"\u56FE\u7247",custom:"\u81EA\u5B9A\u4E49"},fixed:{default:"\u5E38\u89C4",left:"\u5DE6\u60AC\u6D6E",right:"\u53F3\u60AC\u6D6E"},sortable:{disabled:"\u4E0D\u6392\u5E8F",default:"\u5E38\u89C4\u6392\u5E8F",custom:"\u63A5\u53E3\u6392\u5E8F"},props:{_optionType:"\u8868\u683C\u6570\u636E","page>totalField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u603B\u6761\u76EE\u6570\u7684\u5B57\u6BB5\u540D\u79F0","page>dataField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u5217\u8868\u6570\u636E\u7684\u5B57\u6BB5\u540D\u79F0","page>orderField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u7684\u53C2\u6570\u540D\u79F0","page>orderByField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u65B9\u5F0F\u7684\u53C2\u6570\u540D\u79F0","page>pageField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u9875\u7801\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)","page>pageSizeField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6761\u76EE\u6570\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)",column:"\u8868\u683C\u7BA1\u7406",selection:"\u662F\u5426\u663E\u793A\u591A\u9009\u6846",size:"\u5C3A\u5BF8",rowKey:"\u884C\u6570\u636E\u7684Key","scroll>x":"\u5BBD\u5EA6","scroll>y":"\u9AD8\u5EA6",bordered:"\u8FB9\u6846",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>position":"\u4F4D\u7F6E","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>size":"\u5C3A\u5BF8"},requiredName:"\u8BF7\u8F93\u5165\u6309\u94AE\u540D\u79F0",requiredKey:"\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u8BC6",requiredLabel:"\u8BF7\u8F93\u5165\u6807\u9898",requiredRender:"\u8BF7\u8F93\u5165\u6E32\u67D3\u51FD\u6570"},text:{name:"\u6587\u5B57",props:{formCreateChild:"\u5185\u5BB9"}},textarea:{name:"\u591A\u884C\u8F93\u5165\u6846"},timePicker:{name:"\u65F6\u95F4","HH:mm:ss":"\u65F6:\u5206:\u79D2","HH:mm":"\u65F6:\u5206",props:{__format:"\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",disabled:"\u7981\u7528",inputReadOnly:"\u6587\u672C\u6846\u4E0D\u53EF\u8F93\u5165",allowClear:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",hourStep:"\u5C0F\u65F6\u9009\u9879\u95F4\u9694",minuteStep:"\u5206\u949F\u9009\u9879\u95F4\u9694",secondStep:"\u79D2\u9009\u9879\u95F4\u9694",placeholder:"\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",__startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",__endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",bordered:"\u662F\u5426\u6709\u8FB9\u6846"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",event:{check:"\u70B9\u51FB\u590D\u9009\u6846\u89E6\u53D1",expand:"\u5C55\u5F00/\u6536\u8D77\u8282\u70B9\u65F6\u89E6\u53D1",rightClick:"\u54CD\u5E94\u53F3\u952E\u70B9\u51FB",select:"\u70B9\u51FB\u6811\u8282\u70B9\u89E6\u53D1"},props:{fieldNames:"\u914D\u7F6E\u9009\u9879",showLine:"\u662F\u5426\u5C55\u793A\u8FDE\u63A5\u7EBF",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9"}},upload:{name:"\u4E0A\u4F20",info:"\u4E0A\u4F20\u6210\u529F\u540E\uFF0C\u5C06\u63A5\u53E3\u8FD4\u56DE\u7684 URL \u8D4B\u503C\u7ED9 file.url\uFF0C\u6216\u5C06\u8FD4\u56DE\u7ED3\u679C\u8D4B\u503C\u7ED9 file.value\uFF0C\u4EE5\u4FBF\u5728\u540E\u7EED\u7684\u8868\u5355\u63D0\u4EA4\u65F6\u83B7\u53D6\u8FD9\u4E9B\u6570\u636E\u3002",event:{download:"\u70B9\u51FB\u4E0B\u8F7D\u6587\u4EF6\u65F6\u89E6\u53D1",preview:"\u70B9\u51FB\u6587\u4EF6\u94FE\u63A5\u6216\u9884\u89C8\u56FE\u6807\u65F6\u89E6\u53D1",remove:"\u6587\u4EF6\u5217\u8868\u79FB\u9664\u6587\u4EF6\u65F6\u89E6\u53D1"},props:{listType:"\u4E0A\u4F20\u7C7B\u578B",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",beforeUpload:"\u4E0A\u4F20\u6587\u4EF6\u4E4B\u524D\u7684\u94A9\u5B50",onSuccess:"\u4E0A\u4F20\u6210\u529F\u56DE\u8C03",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",data:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",name:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D",withCredentials:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F",accept:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B",customRequest:"\u81EA\u5B9A\u4E49\u4E0A\u4F20\u884C\u4E3A",disabled:"\u662F\u5426\u7981\u7528",maxCount:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570"}},audioBox:{name:"\u97F3\u9891\u64AD\u653E\u5668",preloadOpt:{auto:"\u81EA\u52A8",metadata:"\u5143\u6570\u636E",none:"\u7981\u6B62"},event:{pause:"\u97F3\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u97F3\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u97F3\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u97F3\u9891\u5730\u5740",type:"\u97F3\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",muted:"\u662F\u5426\u9759\u97F3",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",preload:"\u9884\u52A0\u8F7D"}},barCodeBox:{name:"\u6761\u5F62\u7801",props:{value:"\u5185\u5BB9",format:"\u6761\u5F62\u7801\u7684\u7C7B\u578B",width:"\u5355\u4E2A\u6761\u5F62\u7684\u5BBD\u5EA6",height:"\u6761\u5F62\u7801\u7684\u9AD8\u5EA6",displayValue:"\u662F\u5426\u663E\u793A\u5185\u5BB9",fontSize:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5927\u5C0F",textPosition:"\u8BBE\u7F6E\u6587\u5B57\u7684\u4F4D\u7F6E",textAlign:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5BF9\u9F50\u65B9\u5F0F",textMargin:"\u8BBE\u7F6E\u6587\u5B57\u7684\u8FB9\u8DDD",background:"\u6761\u5F62\u7801\u7684\u80CC\u666F\u8272",lineColor:"\u7EBF\u6761\u7684\u989C\u8272"}},iframeBox:{name:"\u5185\u5D4C\u9875\u9762",event:{load:"\u9875\u9762\u52A0\u8F7D\u5B8C\u6210\u540E\u89E6\u53D1"},loadingOpt:{eager:"\u7ACB\u5373\u52A0\u8F7D",lazy:"\u5EF6\u8FDF\u52A0\u8F7D"},props:{src:"\u9875\u9762\u94FE\u63A5",loading:"\u52A0\u8F7D\u65B9\u5F0F"}},qrCodeBox:{name:"\u4E8C\u7EF4\u7801",circleTypeOpt:{square:"\u6B63\u65B9\u5F62",dots:"\u70B9\u72B6",rounded:"\u5706\u5F62",classy:"\u7ECF\u5178"},props:{data:"\u5185\u5BB9",image:"\u4E2D\u5FC3\u7684\u56FE\u7247\u94FE\u63A5",width:"\u4E8C\u7EF4\u7801\u7684\u5BBD\u5EA6",height:"\u4E8C\u7EF4\u7801\u7684\u9AD8\u5EA6",circleType:"\u70B9\u7684\u7C7B\u578B",circleColor:"\u70B9\u7684\u989C\u8272"}},signaturePad:{name:"\u624B\u5199\u7B7E\u540D",props:{penColor:"\u7EBF\u6761\u7684\u989C\u8272"}},videoBox:{name:"\u89C6\u9891\u64AD\u653E\u5668",event:{error:"\u89C6\u9891\u52A0\u8F7D\u5931\u8D25\u65F6\u89E6\u53D1",pause:"\u89C6\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u89C6\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u89C6\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u89C6\u9891\u5730\u5740",type:"\u89C6\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",isLive:"\u662F\u5426\u662F\u76F4\u64AD",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",withCredentials:"\u662F\u5426\u643A\u5E26\u51ED\u8BC1"}}},tmp:{duration:"\u65F6\u957F",chineseAmount:"\u91D1\u989D",col3:"\u4E09\u5217\u6805\u683C",col4:"\u56DB\u5217\u6805\u683C",table43:"4x3\u8868\u683C"}},Zl=(e,t)=>Yl.message[t||"info"]({content:e}),Zt=e=>Zl(e,"error"),da=function(e,t,o,r){return t.forEach(i=>{e.indexOf(i[o||"id"])>-1&&e.splice(e.indexOf(i[o||"id"]),1,i[r||"label"]),lt.trueArray(i.children)&&da(e,i.children,o,r)}),e},dv=function(e,t){return t.forEach(o=>{e.indexOf(o.value)>-1&&(e[e.indexOf(o.value)]=o.label)}),e};function or(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function cv(e,t){let o=t.rule.value;const r=t.$render.vNode.h,i=t.type,s=t.$handle.subForm[t.id],d=t.prop.readMode;if(t.prop.title.title&&t.prop.title.title.trim()&&(t.prop.title.title+="\uFF1A"),d===!1||d==="custom"||!t.input||t.rule.subForm||(Array.isArray(s)?s.length:s)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","fcUpload"].indexOf(t.trueType)>-1)return t.parser.render(e,t);if(["radio","select","checkbox"].indexOf(i)>-1)o=dv([...or(o)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(i)>-1)o=Array.isArray(o)?o.join(" - "):o;else if(i==="cascader")o=[...or(o)],Array.isArray(o[0])||(o=[o]),o=o.map(c=>da(c,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else if(i==="aTransfer"){const c=[...or(o)];o=da(c,t.prop.props.dataSource||t.prop.props.formCreateInject.options||[],"key").join(", ")}else if(["tree","aTreeSelect"].indexOf(i)>-1){const c=t.prop.props.treeData||t.prop.props.formCreateInject.options||[];o=da([...or(o)],c,i==="aTreeSelect"?"value":"id").join(", ")}else{if(i==="fcEditor"||d==="html")return r("div",{innerHTML:o});if(d==="image")return o=or(o),r("div",{class:"_fc-upload"},[r("a-image-preview-group",{},{default:()=>o.map(function(c){return r("div",{class:"_fc-upload-preview"},[r("a-image",{style:{height:"100%"},src:typeof c=="object"?c.url:c})])})})]);if((i==="switch"||i==="a-switch")&&(t.prop.props.checkedValue!=null||t.prop.props.unCheckedValue!=null))o=t.prop.props.checkedValue===o?"\u662F":"\u5426";else{if(i==="signaturePad"&&o)return r("a-image",{src:o,fit:"cover",style:{height:"90px"}});typeof o=="boolean"&&(o=o?"\u662F":"\u5426")}}return r("span",{class:"_fc-read-view"},[""+(o==null?"":o)])}function uv(e,t){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script>
import formCreate from "@form-create/ant-design-vue";
export default {
components: {
formCreate: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
//option.preview = true;
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function fv(e,t){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script setup>
import {ref} from "vue";
import formCreate from "@form-create/ant-design-vue";
const option = ref(formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function pv(e,t){return`<template>
<form-create-mobile
driver="antd"
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create-mobile>
</template>
<script>
import formCreate from "@form-create/vant";
export default {
components: {
formCreateMobile: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
//option.preview = true;
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function hv(e,t){return`<template>
<form-create-mobile
driver="antd"
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create-mobile>
</template>
<script setup>
import {ref} from "vue";
import formCreateMobile from "@form-create/vant";
const option = ref(formCreateMobile.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreateMobile.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function ql(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function kM(e){}function Nn(e,t,o){const r=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],i=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"Struct",field:"formCreate"+co(t).replace(".",">"),title:o||e("props.options"),_fc_important_prop:!0,wrap:{show:!1}}]}];return{type:"radio",title:o||e("props.options"),field:"_optionType",value:2,options:r,props:{type:"button"},control:i}}function Vn(e,t,o,r=[]){t.id||(t.id=1),o&&o--;for(let i=0;i<3;i++){const s={[t.label]:e+o*10+(i+1),[t.value]:""+t.id++};o&&Vn(e+(i+1)+"-",t,o,s.children=[]),r.push(s)}return r}function es(e){return[{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateNative",_fc_important_prop:!1,col:{show:!1},wrap:{show:!1},value:!1,props:{activeValue:!1,inactiveValue:!0}},{type:"input",field:"formCreateTitle",title:e("form.title"),_fc_important_prop:!1,col:{show:!1},slot:"append"},{type:"select",field:"formCreateWrap>labelAlign",_fc_important_prop:!1,col:{show:!1},options:st(e,[{label:"left",value:"left"},{label:"right",value:"right"}]),slot:"append",title:e("form.labelAlign")},{type:"SizeInput",field:"formCreateWrap>labelCol>style>width",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.labelCol")}]}]}function _i(e,t,o,r){const i=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],s=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+co(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{column:[{label:"label",key:o||"label"},{value:!0,label:"value",key:r||"value"}],keyValue:o||"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{optionType:"button"},control:s}}function so(e,t,o,r){const i=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],s=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+co(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{columns:{label:o,value:r},keyValue:o}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{optionType:"button"},control:s}}function co(e){return e.replace(e[0],e[0].toLocaleUpperCase())}const un=function(e){const t=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(e));return t&&Vu[t[1].toLowerCase()]?Vu[t[1].toLowerCase()](e):e},Vu={object:function(e){var t=[];for(var o in e)!Hn(e,o)||t.push(un(o)+": "+(e[o]!=null?un(e[o]):"null"));return`{
`+t.join(`,
`)+`
}`},function:function(e){e=""+e;var t=/^ *([\w]+) *\(/.exec(e);return t&&t[1]!=="function"?"function "+e:e},array:function(e){for(var t=0,o=[];t<e.length;t++)o[t]=e[t]!=null?un(e[t]):"null";return"["+o.join(", ")+"]"},string:function(e){for(var t=e.split(""),o=0;o<t.length;o++){var r=t[o];r>=" "?r==="\\"?t[o]="\\\\":r==='"'&&(t[o]='\\"'):t[o]=r===`
`?"\\n":r==="\r"?"\\r":r===" "?"\\t":r==="\b"?"\\b":r==="\f"?"\\f":(r=r.charCodeAt(),"\\u00"+(r>15?1:0)+r%16)}return'"'+t.join("")+'"'}},Iu=function(e){if(e&&typeof e=="object"){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let o=e[t];(Array.isArray(o)||lt.Object(o))&&Iu(o),lt.String(o)&&(e[t]=Jl(o))}}return e};function uo(e,t,o){t=(t||"").split(".");let r=0,i=t.length;for(;e!=null&&r<i;)e=e[t[r++]];return r&&r===i&&e!==void 0?e:o}const mv=e=>(t,o)=>gv(t,o,n.unref(e)),gv=(e,t,o)=>uo(o,e,"").replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),vv=e=>{const t=n.computed(()=>n.unref(e).name),o=n.computed(()=>co($u(t.value||""))),r=n.isRef(e)?e:n.ref(e);return{lang:t,name:o,locale:r,t:mv(e)}},ts=e=>vv(n.computed(()=>(n.isRef(e)?e.value:e)||Ru)),st=(e,t,o)=>t.map(r=>(r.label=e((o||"props")+"."+(r.label||r.value))||r.label,r)),Me=(e,t,o)=>o.map(r=>(r.field==="formCreate$required"?r.title=e("validate.required")||r.title:r.field&&r.field!=="_optionType"&&(r.title=e("com."+t+"."+r.field)||r.title),r.type==="template"&&lt.trueArray(r.children)&&(r.children=Me(e,t,r.children)),r)),ns=e=>{const t=[];return e&&e.forEach(o=>{if(!o._fc_drag_skip)if(o._fc_drag_tag){const r={id:o.__fc__.id,rule:o,children:ns(o.children)};r.children.length||delete r.children,t.push(r)}else t.push(...ns(o.children))}),t},Fu=e=>{const t=o=>{const r=[];return o&&o.forEach(i=>{i._fc_drag_skip||(i.field?(i.children=t(i.children||[]),i.children.length||delete i.children,r.push(i)):r.push(...t(i.children||[])))}),r};return t(e)},Mu=e=>{const t=o=>{const r=[];return o&&o.forEach(i=>{if(typeof i=="object")if(i._fc_drag_tag){const s={_fc_id:i._fc_id,_fc_drag_tag:i._fc_drag_tag==="_"?void 0:i._fc_drag_tag,type:i.type,field:i.field,title:i.title,name:i.name,slot:i.slot,props:{...i.props||{}},children:t(i.children||[])};i.children&&typeof i.children[0]=="string"&&(s.content=i.children[0]),s.children.length||delete s.children,r.push(s)}else r.push(...t(i.children))}),r};return t(e)};function yn(e){return{name:"$inject",columns:[{label:"$inject.api",info:e("event.inject.api"),type:"Api"},{label:"$inject.rule",info:e("event.inject.rule"),type:"Rule[]"},{label:"$inject.self",info:e("event.inject.self"),type:"Rule"},{label:"$inject.option",info:e("event.inject.option"),type:"Object"},{label:"$inject.args",info:e("event.inject.args"),type:"Array"}]}}function Un(e){return["",null,void 0].indexOf(e)!==-1}function Pu(e){return e.replace(/[\ .*+?^${}()|[\]\\]/g,"\\$&")}function yv(e,t){const o=e.split("."),r=t.split("."),i=Math.min(o.length,r.length);for(var s=0;s<i;s++){var d=parseInt(o[s],10)-parseInt(r[s],10);if(d>0)return 1;if(d<0)return-1}return o.length===r.length?0:o.length<r.length?-1:1}function Wn(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left="-9999px",t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}Zl("\u5DF2\u590D\u5236!","success"),document.body.removeChild(t)}function is(e){return e.filter((t,o)=>e.indexOf(t)===o)}function os(e,t=null){return e.forEach(o=>{Object.defineProperty(o,"$parent",{value:t,enumerable:!1,writable:!0,configurable:!0}),o.children&&Array.isArray(o.children)&&os(o.children,o)}),e}let bv=0;function Ye(){const e=370+ ++bv;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+e.toString(36)+"c"}function Cv(e,t){return function(o,r,i){const s={...o||{}};Object.keys(s).forEach(d=>{Un(s[d])&&delete s[d]}),i.getRule(e).props.info=Object.keys(s).length>0?t("struct.configured"):""}}function Lu({t:e}){const t=Ye();return[{type:"input",field:">formName",value:"",title:e("form.formName")},{type:"radio",field:"layout",value:"horizontal",title:e("form.layout"),options:st(e,[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}])},{type:"radio",field:"labelAlign",value:"left",title:e("form.layout"),options:st(e,[{value:"left",label:"left"},{value:"right",label:"right"}])},{type:"switch",field:"labelWrap",value:!1,title:e("form.labelWrap")},{type:"radio",field:"size",value:"small",title:e("form.size"),options:st(e,[{value:"large",label:"large"},{value:"middle",label:"middle"},{value:"small",label:"small"}])},{type:"switch",field:"colon",value:!1,title:e("form.colon")},{type:"SizeInput",field:">form>labelCol>style>width",value:"",title:e("form.labelCol")},{type:"switch",field:"hideRequiredMark",value:!1,title:e("form.hideRequiredMark")},{type:"switch",field:"scrollToFirstError",value:!1,title:e("form.scrollToFirstError")},{type:"switch",field:"_submitBtn>show",value:!0,title:e("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:e("form.resetBtn")},{type:"switch",field:">ignoreHiddenFields",value:!1,title:e("form.ignoreHiddenFields"),warning:e("warning.ignoreHiddenFields")},{type:"ConfigItem",col:{show:!0},name:t,style:"margin-bottom: 10px",props:{label:e("form.labelStyle"),info:""},children:[{type:"StyleConfig",field:"title>style",wrap:{show:!1},value:{},slot:"append",update:Cv(t,e)}]},{type:"FnConfig",field:">_event",value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:e("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:e("form.onReset"),args:["api"]},{name:"onCreated",info:e("form.onCreated"),args:["api"]},{name:"onMounted",info:e("form.onMounted"),args:["api"]},{name:"onReload",info:e("form.onReload"),args:["api"]},{name:"onChange",info:e("form.onChange"),args:["field","value","options"]},{name:"beforeFetch",info:e("form.beforeFetch"),args:["config","data"]}]},title:e("form.event")}]}function rr({t:e}){return[{type:"FieldInput",field:"field",value:"",title:e("form.field"),warning:e("warning.field")},{type:"LanguageInput",field:"title",value:"",title:e("form.title")},{type:"LanguageInput",field:"info",value:"",title:e("form.info")},{type:"SpanInput",field:"formCreateCol>span",title:e("form.formItemSpan")},{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.ignore"),warning:e("warning.ignore")},children:[{type:"switch",field:"ignore",value:!1,wrap:{show:!1},col:{show:!1}}]},{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateWrap>title",col:{show:!1},wrap:{show:!1},value:!0},{type:"select",field:"formCreateWrap>labelAlign",col:{show:!1},options:st(e,[{label:"left",value:"left"},{label:"right",value:"right"}]),slot:"append",title:e("form.labelAlign")},{type:"SizeInput",field:"formCreateWrap>labelCol>style>width",col:{show:!1},value:"",slot:"append",title:e("form.labelCol")}]},{type:"Struct",field:"_control",name:"control",value:[],title:e("form.control"),warning:e("form.controlDocument",{doc:'<a target="_blank" href="https://form-create.com/v3/guide/control" style="color: inherit;text-decoration: underline;">'+e("form.document")+"</a>"}),props:{defaultValue:[],validate(t){return Array.isArray(t)?t.length?!t.some(({rule:o})=>!Array.isArray(o)):!0:!1}}}]}function ju({t:e}){return[{type:"input",title:"ID",field:"id"},{type:"GlobalClassSelect",title:"Class",field:"class"},{type:"StyleConfig",field:"style",title:"",value:{}}]}function zu({t:e}){return[{type:"ComputedConfig",field:"value",value:"",props:{type:"linkage",btn:e("computed.value.btn"),title:e("computed.value.title"),name:e("computed.value.name")},title:e("computed.value.title")},{type:"ComputedConfig",field:"hidden",value:"",props:{btn:e("computed.hidden.btn"),title:e("computed.hidden.title"),name:e("computed.hidden.name"),invertLabel:e("props.show"),validLabel:e("props.hide")},title:e("computed.hidden.title")},{type:"ComputedConfig",field:"$required",value:"",props:{btn:e("computed.required.btn"),title:e("computed.required.title"),name:e("computed.required.name"),invertLabel:e("validate.modes.notRequired"),validLabel:e("validate.modes.required")},title:e("computed.required.title")},{type:"ComputedConfig",field:"props.disabled",value:"",props:{btn:e("computed.disabled.btn"),title:e("computed.disabled.title"),name:e("computed.disabled.name"),invertLabel:e("props.enable"),validLabel:e("props.disabled")},title:e("computed.disabled.title")}]}function Hu({t:e}){return[{type:"Required",field:"$required",title:e("validate.required")},{type:"validate",field:"validate",title:e("validate.rule"),value:[]}]}function _v(e){e=e||new Map;const t={$on(o,r){const i=e.get(o);i&&i.push(r)||e.set(o,[r])},$once(o,r){r._once=!0,t.$on(o,r)},$off(o,r){const i=e.get(o);i&&i.splice(i.indexOf(r)>>>0,1)},$emit(o,...r){(e.get(o)||[]).slice().map(i=>{i._once&&(t.$off(o,i),delete i._once),i(...r)}),(e.get("*")||[]).slice().map(i=>{i(o,r)})}};return t}const wv="\u5355\u9009\u6846",rs="radio",Ev={menu:"main",icon:"icon-radio",label:wv,name:rs,input:!0,event:["change"],validate:["string","number"],condition:{type:"select",options:"options"},sfc(e){e.type="aRadioGroup",e.props.options=e.options||[]},rule({t:e}){return{type:rs,field:Ye(),title:e("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Vn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Me(t,rs+".props",[_i(t,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"optionType",props:{checkedValue:"button",unCheckedValue:"default"}}])}},Av="\u591A\u9009\u6846",as="checkbox",Sv={menu:"main",icon:"icon-checkbox",label:Av,name:as,input:!0,event:["change"],validate:["array"],condition:{type:"select",options:"options"},sfc(e){e.type="aCheckboxGroup",e.props.options=e.options||[]},rule({t:e}){return{type:as,field:Ye(),title:e("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Vn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Me(t,as+".props",[_i(t,"options"),{type:"switch",field:"disabled"}])}},xv="\u8F93\u5165\u6846",ls="input",kv={menu:"main",icon:"icon-input",label:xv,name:ls,input:!0,easySlots:["addonBefore","addonAfter","prefix","suffix"],event:["blur","focus","change","pressEnter"],validate:["string","url","email"],rule({t:e}){return{type:ls,field:Ye(),title:e("com.input.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,ls+".props",[{type:"switch",field:"disabled"},{type:"select",field:"type",options:st(t,[{label:"text",value:"text"},{label:"number",value:"number"},{label:"time",value:"time"},{label:"date",value:"date"},{label:"month",value:"month"},{label:"datetime-local",value:"datetime-local"}])},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"allowClear"},{type:"switch",field:"showCount"},{type:"switch",field:"bordered",value:!0}])}},Nv={menu:"main",icon:"icon-textarea",label:"\u591A\u884C\u8F93\u5165\u6846",name:"textarea",input:!0,event:["blur","focus","change","pressEnter"],validate:["string"],rule({t:e}){return{type:"input",field:Ye(),title:e("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props(e,{t}){return Me(t,"input.props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"allowClear"},{type:"switch",field:"showCount"},{type:"switch",field:"autoSize"},{type:"switch",field:"bordered",value:!0}])}},Tv="\u5BC6\u7801\u8F93\u5165\u6846",Uu="password",Ov={menu:"main",icon:"icon-password",label:Tv,name:Uu,input:!0,easySlots:["addonBefore","addonAfter","prefix"],event:["blur","focus","change","pressEnter"],validate:["string"],rule({t:e}){return{type:"input",field:Ye(),title:e("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props(e,{t}){return Me(t,Uu+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"allowClear"},{type:"switch",field:"visibilityToggle"},{type:"switch",field:"showCount"},{type:"switch",field:"bordered",value:!0}])}},Dv="\u8BA1\u6570\u5668",ss="inputNumber",Bv={menu:"main",icon:"icon-number",label:Dv,name:ss,input:!0,easySlots:["addonBefore","addonAfter","prefix"],event:["blur","focus","change","pressEnter","step"],validate:["number","integer","float"],condition:"number",rule({t:e}){return{type:ss,field:Ye(),title:e("com.inputNumber.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,ss+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"},{type:"inputNumber",title:"precision",field:"precision"},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"controls",value:!0},{type:"switch",field:"bordered",value:!0},{type:"input",field:"placeholder"}])}},$v="\u9009\u62E9\u5668",ds="select",Rv={menu:"main",icon:"icon-select",label:$v,name:ds,input:!0,event:["change","search","select","blur","focus"],validate:["string","number","array"],condition:{type:"select",options:"options"},sfc(e){e.type="aSelect",e.props.options=e.options||[]},rule({t:e}){return{type:ds,field:Ye(),title:e("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Vn(e("props.option"),{label:"label",value:"value"},1)}},watch:{multiple({rule:e}){e.key=Ye()}},props(e,{t}){return Me(t,ds+".props",[_i(t,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"allowClear"},{type:"select",field:"mode",options:st(t,[{label:"multiple",value:"multiple"},{label:"tags",value:"tags"},{label:"combobox",value:"combobox"}],"com.select.modeOpt")},{type:"input",field:"placeholder"},{type:"switch",field:"bordered"}])}},Vv="\u5F00\u5173",cs="switch",Iv={menu:"main",icon:"icon-switch",label:Vv,name:cs,input:!0,event:["change"],condition:function(e){return{type:"switch",props:{checkedValue:e.props.checkedValue,unCheckedValue:e.props.unCheckedValue,checkedChildren:e.props.checkedChildren,unCheckedChildren:e.props.unCheckedChildren}}},rule({t:e}){return{type:cs,field:Ye(),title:e("com.switch.name"),info:"",$required:!1,props:{checkedValue:!0,unCheckedValue:!1}}},props(e,{t}){return Me(t,cs+".props",[{type:"switch",field:"disabled"},{type:"input",field:"checkedChildren"},{type:"input",field:"unCheckedChildren"},{type:"ValueInput",field:"checkedValue"},{type:"ValueInput",field:"unCheckedValue"}])}},Fv="\u6ED1\u5757",us="slider",Mv={menu:"main",icon:"icon-slider",label:Fv,name:us,input:!0,event:["change"],validate:["number","array"],condition:"number",rule({t:e}){return{type:us,field:Ye(),title:e("com.slider.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,us+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"range"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"dots"},{type:"switch",field:"vertical"}])}},Pv="\u65F6\u95F4",ar="timePicker",Lv={menu:"main",icon:"icon-time",label:Pv,name:ar,input:!0,event:["change"],sfc(e){e.props.valueFormat||(e.props.valueFormat="HH:mm:ss")},rule({t:e}){return{type:ar,field:Ye(),title:e("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange({rule:e}){e.key=Ye()},__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e}},attrs:{format({rule:e}){return e.props.format||""}},props(e,{t}){return Me(t,ar+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"allowClear",value:!0},{type:"select",field:"__format",options:[{label:t("com."+ar+".HH:mm:ss"),value:"HH:mm:ss"},{label:t("com."+ar+".HH:mm"),value:"HH:mm"}]},{type:"inputNumber",field:"hourStep"},{type:"inputNumber",field:"minuteStep"},{type:"inputNumber",field:"secondStep"},{type:"switch",field:"inputReadOnly",value:!1},{type:"input",field:"placeholder"},{type:"switch",field:"bordered",value:!0}])}},jv={menu:"main",icon:"icon-time-range",label:"\u65F6\u95F4\u533A\u95F4",name:"timeRange",input:!0,event:["change"],sfc(e){e.type="aTimeRangePicker",e.props.valueFormat||(e.props.valueFormat="HH:mm:ss"),delete e.props.range},rule({t:e}){return{type:"timePicker",field:Ye(),title:e("com.timeRange.name"),info:"",$required:!1,props:{range:!0}}},watch:{__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e},__startPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[0]=e:t.props.placeholder=[e]},__endPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[1]=e:t.props.placeholder=[null,e]}},attrs:{format({rule:e}){return e.props.format||""},startPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[0]:""},endPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[1]:""}},props(e,{t}){return Me(t,"timePicker.props",[{type:"switch",field:"disabled"},{type:"switch",field:"allowClear",value:!0},{type:"select",field:"__format",options:[{label:t("com.timePicker.HH:mm:ss"),value:"HH:mm:ss"},{label:t("com.timePicker.HH:mm"),value:"HH:mm"}]},{type:"inputNumber",field:"hourStep"},{type:"inputNumber",field:"minuteStep"},{type:"inputNumber",field:"secondStep"},{type:"switch",field:"inputReadOnly",value:!1},{type:"input",field:"__startPlaceholder"},{type:"input",field:"__endPlaceholder"},{type:"switch",field:"bordered",value:!0}])}},zv="\u65E5\u671F",fs="datePicker",Wu={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",week:"YYYY-wo",quarter:"YYYY-QQ",year:"YYYY"},Gu={menu:"main",icon:"icon-date",label:zv,name:fs,input:!0,event:["change","ok"],sfc(e){e.props.valueFormat||(e.props.valueFormat=Wu[e.props.type]||Wu.date)},rule({t:e}){return{type:fs,field:Ye(),title:e("com.datePicker.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,fs+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"bordered",value:!0},{type:"select",field:"picker",options:st(t,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"week",value:"week"},{label:"quarter",value:"quarter"}])},{type:"switch",field:"showTime"},{type:"switch",field:"allowClear"},{type:"switch",field:"inputReadOnly"},{type:"input",field:"placeholder"},{type:"input",field:"format"},{type:"input",field:"valueFormat"}])}},Hv={menu:"main",icon:"icon-date-range",label:"\u65E5\u671F\u533A\u95F4",name:"dateRange",input:!0,event:["change","ok","calendarChange"],sfc(e){e.type="aRangePicker",Gu.sfc(e),delete e.props.range},rule({t:e}){return{type:"datePicker",field:Ye(),title:e("com.dateRange.name"),info:"",$required:!1,props:{range:!0}}},watch:{__startPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[0]=e:t.props.placeholder=[e]},__endPlaceholder({value:e,rule:t}){Array.isArray(t.props.placeholder)?t.props.placeholder[1]=e:t.props.placeholder=[null,e]}},attrs:{startPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[0]:""},endPlaceholder({rule:e}){return Array.isArray(e.props.placeholder)?e.props.placeholder[1]:""}},props(e,{t}){return Me(t,"datePicker.props",[{type:"switch",field:"disabled"},{type:"switch",field:"bordered",value:!0},{type:"select",field:"picker",options:st(t,[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"week",value:"week"},{label:"quarter",value:"quarter"}])},{type:"switch",field:"showTime"},{type:"switch",field:"allowClear"},{type:"switch",field:"inputReadOnly"},{type:"input",field:"__startPlaceholder"},{type:"input",field:"__endPlaceholder"},{type:"input",field:"separator"},{type:"input",field:"format"},{type:"input",field:"valueFormat"}])}},Uv="\u8BC4\u5206",ps="rate",Wv={menu:"main",icon:"icon-rate",label:Uv,name:ps,input:!0,event:["change"],validate:["number"],condition:"number",rule({t:e}){return{type:ps,field:Ye(),title:e("com.rate.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,ps+".props",[{type:"inputNumber",field:"count",props:{min:0}},{type:"switch",field:"disabled"},{type:"switch",field:"allowHalf"},{type:"switch",field:"allowClear",value:!0}])}},Gv="\u6805\u683C\u5E03\u5C40",hs="fcRow",Kv={menu:"layout",icon:"icon-row",label:Gv,name:hs,mask:!1,children:"col",childrenLen:2,subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("style.width"),vnode:t(o("a-slider"),{style:"width:100%;",size:"small",min:0,max:24,value:r.props.span,"onUpdate:value":i=>{r.props.span=i}})}]},sfc(e){e.type="aRow"},rule(){return{type:hs,props:{},children:[]}},props(e,{t}){return Me(t,hs+".props",[{type:"inputNumber",field:"gutter",props:{min:0}},{type:"select",field:"justify",options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}]},{type:"select",field:"align",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])}},ms="col",Ku={xxs:"<576px",sm:"\u2265576px",md:"\u2265768px",lg:"\u2265992px",xl:"\u22651200px",xxl:"\u22651600px"},Yv={name:ms,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule(){return{type:ms,props:{span:12},children:[]}},props(e,{t}){return Me(t,ms+".props",[{type:"slider",field:"span",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",props:{min:0,max:24}},{type:"slider",field:"push",props:{min:0,max:24}},{type:"slider",field:"pull",props:{min:0,max:24}},{type:"ConfigItem",props:{label:t("props.reactive"),warning:t("com.col.info")},children:[{type:"aTabs",style:{width:"100%"},slot:"append",children:Object.keys(Ku).map(o=>({type:"aTabPane",props:{tab:Ku[o]},style:"padding:0 10px;",children:[{type:"slider",field:o+">span",title:t("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:o+">offset",title:t("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:o+">push",title:t("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:o+">pull",title:t("com.col.props.pull"),props:{min:0,max:24}}]}))}]}])}},Qv="\u9009\u9879\u5361",gs="aTabPane",Xv={label:Qv,name:gs,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule({t:e}){return{type:gs,props:{tab:e("com.aTabPane.name")},children:[]}},props(e,{t}){return Me(t,gs+".props",[{type:"input",field:"tab"},{type:"switch",field:"disabled"},{type:"input",field:"key"}])}},Jv="\u5206\u5272\u7EBF",vs="aDivider",Zv={menu:"aide",icon:"icon-divider",label:Jv,name:vs,rule({t:e}){return{type:vs,props:{},children:[e("com.aDivider.name")]}},props(e,{t}){return Me(t,vs+".props",[{type:"select",field:"type",options:st(t,[{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}])},{type:"input",field:"formCreateChild"},{type:"select",field:"orientation",options:st(t,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])},{type:"switch",field:"plain"},{type:"switch",field:"dashed"}])}},qv="\u7EA7\u8054\u9009\u62E9\u5668",ys="cascader",ey={menu:"main",icon:"icon-cascader",label:qv,name:ys,input:!0,event:["change","dropdownVisibleChange","search"],validate:["string","number","array"],condition(e){return{type:"cascader",options:"props.options",props:{props:e.props&&e.props.props||{}}}},rule({t:e}){return{type:ys,field:Ye(),title:e("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:Vn(e("props.option"),{label:"label",value:"value"},3)}}},props(e,{t}){return Me(t,ys+".props",[so(t,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"allowClear"},{type:"switch",field:"multiple"},{type:"input",field:"placeholder"},{type:"switch",field:"showSearch"}])}},ty="\u4E0A\u4F20",bs="upload",ny={menu:"main",icon:"icon-upload",label:ty,name:bs,input:!0,languageKey:["clickToUpload"],event:["change","download","preview","remove"],validate:["array"],sfc(e){e.type="aUpload",e.props.listType||(e.props.listType="picture-card"),e._sfc.modelField="fileList"},rule({t:e}){return{type:bs,field:Ye(),title:e("com.upload.name"),info:"",$required:!1,props:{action:"/",onSuccess:`$FNX:const file = $inject.args[0];
file.url = file.response.url;`}}},props(e,{t}){return Me(t,bs+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:st(t,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"name"},{type:"PromptInput",field:"accept",props:{options:[{label:t("props.image"),value:"image/*"},{label:t("props.document"),value:".pdf,.doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{label:t("props.video"),value:"video/*"},{label:t("props.audio"),value:"audio/*"}]}},{type:"input",field:"action"},{type:"FnInput",field:"beforeUpload",props:{body:!0,button:!0,fnx:!0,args:[yn(t)],name:"beforeUpload"}},{type:"FnInput",field:"onSuccess",warning:t("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[yn(t)],name:"onSuccess"}},{type:"FnInput",field:"customRequest",props:{body:!0,button:!0,fnx:!0,args:[yn(t)],name:"customRequest"}},{type:"TableOptions",field:"headers",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"withCredentials"},{type:"inputNumber",field:"maxCount",props:{min:0}}])}},iy="\u7A7F\u68AD\u6846",Cs="aTransfer",oy={menu:"main",icon:"icon-transfer",label:iy,name:Cs,input:!0,event:["change","search","selectChange"],validate:["array"],condition:function(e){return{type:"select",options:e.props.dataSource?e.props.dataSource.map(t=>({label:t.title,value:t.key})):[]}},sfc(e){e.type="aTransfer",e._sfc.modelField="targetKeys"},rule({t:e}){return{type:Cs,field:Ye(),modelField:"targetKeys",title:e("com.aTransfer.name"),info:"",$required:!1,props:{render:new Function("item","return item.label || item.title"),dataSource:Vn(e("props.option"),{label:"label",value:"key"},1)}}},props(e,{t}){return Me(t,Cs+".props",[_i(t,"props.dataSource","label","key"),{type:"switch",field:"oneWay"},{type:"switch",field:"pagination"},{type:"switch",field:"showSearch"},{type:"switch",field:"showSelectAll"},{type:"TableOptions",field:"titles",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}}])}},ry="\u6811\u5F62\u63A7\u4EF6",_s="tree",ay={menu:"main",icon:"icon-tree",label:ry,name:_s,input:!0,event:["check","expand","select","rightClick"],validate:["string","number","array"],condition:function(e){const t=e.props.fieldNames||{};return{type:"cascader",options:e.props.treeData||[],props:{fieldNames:{label:t.title||"label",value:t.key||"id"}}}},sfc(e){e.type="aTree",e._sfc.modelField="checkedKeys"},rule({t:e}){return{type:_s,field:Ye(),title:e("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{fieldNames:{title:"label",key:"id"},checkable:!0,treeData:Vn(e("props.option"),{label:"label",value:"id"},3)}}},props(e,{t}){return Me(t,_s+".props",[so(t,"props.treeData","label","id"),{type:"TableOptions",field:"fieldNames",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"showLine"},{type:"switch",field:"defaultExpandAll"}])}},ly="\u63D0\u793A",ws="aAlert",sy={menu:"aide",icon:"icon-alert",label:ly,name:ws,event:["close"],rule({t:e}){return{type:ws,props:{message:e("com.aAlert.name"),description:e("com.aAlert.description"),type:"success"},style:{width:"100%"},children:[]}},props(e,{t}){return Me(t,ws+".props",[{type:"input",field:"message"},{type:"select",field:"type",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description"},{type:"switch",field:"closable",value:!1},{type:"switch",field:"banner",value:!1},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"}])}},dy="\u6587\u5B57",Yu="text",cy={menu:"aide",icon:"icon-span",label:dy,name:Yu,inline:!0,rule({t:e}){return{type:"div",title:"",style:{whiteSpace:"pre-line"},children:[e("com.text.name")]}},props(e,{t}){return Me(t,Yu+".props",[{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},uy={menu:"layout",icon:"icon-space",label:"\u95F4\u8DDD",name:"space",rule(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props(){return[]}},fy="\u6807\u7B7E\u9875",Es="aTabs",py={menu:"layout",icon:"icon-tab",label:fy,name:Es,mask:!1,event:["change","tabClick","edit"],children:"aTabPane",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.tab,"onUpdate:value":i=>{r.props.tab=i}})}]},rule(){return{type:Es,style:{width:"100%"},props:{},children:[]}},props(e,{t}){return Me(t,Es+".props",[{type:"select",field:"type",options:[{label:"card",value:"card"},{label:"line",value:"line"},{label:"editable-card",value:"editable-card"}]},{type:"select",field:"tabPosition",options:st(t,[{label:"top",value:"top"},{label:"bottom",value:"bottom"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"centered"}])}},hy="\u6309\u94AE",As="aButton",my={menu:"aide",icon:"icon-button",label:hy,name:As,mask:!0,inline:!0,easySlots:[{value:"icon",type:"icon"}],event:["click"],rule({t:e}){return{type:As,props:{},children:[e("com.aButton.name")]}},props(e,{t}){return Me(t,As+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"middle",value:"middle"},{label:"small",value:"small"}])},{type:"select",field:"type",options:st(t,[{label:"primary",value:"primary"},{label:"ghost",value:"ghost"},{label:"dashed",value:"dashed"},{label:"link",value:"link"},{label:"text",value:"text"},{label:"default",value:"default"}])},{type:"select",field:"shape",options:st(t,[{label:"circle",value:"circle"},{label:"round",value:"round"},{label:"default",value:"default"}])},{type:"switch",field:"ghost"},{type:"switch",field:"danger"},{type:"switch",field:"block"},{type:"switch",field:"loading"},{type:"switch",field:"disabled"}])}},gy="\u5BCC\u6587\u672C\u6846",Ss="fcEditor",vy={menu:"main",icon:"icon-editor",label:gy,name:Ss,input:!0,event:["change"],validate:["string"],rule({t:e}){return{type:Ss,field:Ye(),title:e("com.fcEditor.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,Ss+".props",[{type:"switch",field:"disabled"}])}},yy="\u5B50\u8868\u5355",Qu="group",by={menu:"subform",icon:"icon-subform",label:yy,name:Qu,input:!0,inside:!1,drag:!0,dragBtn:!0,mask:!1,event:["change"],subForm:"array",loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="group",delete e.children,delete e.props.mode},sfc:!1,rule({t:e}){return{type:"fcRow",field:Ye(),title:e("com.group.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Me(t,Qu+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},Cy="\u5206\u7EC4",Xu="subForm",_y={menu:"subform",icon:"icon-group",label:Cy,name:Xu,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,subForm:"object",event:["change"],loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="subForm",delete e.children},sfc(e,{getParentFieldStr:t}){return{type:"aFormItem",props:{name:t()+e.field,label:e.title,required:e.$required===!0?!0:void 0},col:{show:!0},_sfc:{parentField:e.field},_fc_id:e._fc_id,children:[{type:"aRow",class:e.class,style:e.style,children:e.children}]}},rule({t:e}){return{type:"fcRow",field:Ye(),title:e("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Me(t,Xu+".props",[{type:"switch",field:"disabled"}])}},wy="\u5361\u7247",xs="aCard",Ey={menu:"layout",icon:"icon-card",label:wy,name:xs,drag:!0,inside:!1,mask:!1,rule({t:e}){return{type:xs,props:{title:e("com.aCard.props.title")},style:{width:"100%"},children:[]}},props(e,{t}){return Me(t,xs+".props",[{type:"input",field:"title"},{type:"select",field:"size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",options:st(t,[{label:"inner",value:"inner"},{label:"default",value:""}])},{type:"switch",field:"hoverable"}])}},Ay="\u6298\u53E0\u9762\u677F",ks="aCollapse",Sy={menu:"layout",icon:"icon-collapse",label:Ay,name:ks,mask:!1,children:"aCollapsePanel",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.header,"onUpdate:value":i=>{r.props.header=i}})}]},event:["change"],rule(){return{type:ks,props:{},style:{width:"100%"},children:[]}},props(e,{t}){return Me(t,ks+".props",[{type:"switch",field:"accordion"},{type:"switch",field:"bordered",value:!0},{type:"switch",field:"ghost"}])}},xy="\u9762\u677F",Ns="aCollapsePanel",ky={icon:"icon-cell",label:xy,name:Ns,drag:!0,dragBtn:!1,inside:!0,mask:!1,rule({t:e}){return{type:Ns,props:{header:e("com.aCollapsePanel.name"),key:Ye()},style:{},children:[]}},props(e,{t}){return Me(t,Ns+".props",[{type:"input",field:"header"},{type:"input",field:"key"},{type:"switch",field:"disabled"},{type:"switch",field:"showArrow",value:!0}])}},Ny="\u6811\u5F62\u9009\u62E9",Ts="aTreeSelect",Ty={menu:"main",icon:"icon-tree-select",label:Ny,name:Ts,input:!0,event:["check","treeExpand","select"],validate:["string","number","array"],condition:function(e){return{type:"cascader",options:e.props.treeData||[]}},sfc(e){e.type="aTreeSelect",e._sfc.modelField="value"},rule({t:e}){return{type:Ts,field:Ye(),modelField:"value",title:e("com.aTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{treeNodeFilterProp:"label",treeData:Vn(e("props.option"),{label:"label",value:"value"},3)}}},props(e,{t}){return Me(t,Ts+".props",[so(t,"props.treeData","label","value"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"allowClear"},{type:"switch",field:"showSearch"},{type:"switch",field:"treeCheckable"},{type:"switch",field:"treeDefaultExpandAll"},{type:"switch",field:"treeLine"},{type:"TableOptions",field:"fieldNames",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}}])}},Oy="\u6807\u7B7E",Os="aTag",Dy={menu:"aide",icon:"icon-tag",label:Oy,name:Os,mask:!0,inline:!0,event:["click","close"],rule({t:e}){return{type:Os,title:"",children:[e("com.aTag.name")]}},props(e,{t}){return Me(t,Os+".props",[{type:"input",field:"formCreateChild"},{type:"ColorInput",field:"color"},{type:"switch",field:"closable"},{type:"switch",field:"bordered",value:!0}])}},By="\u63CF\u8FF0\u683C\u5B50",Ds="aDescriptionsItem",$y={icon:"icon-cell",label:By,name:Ds,dragBtn:!1,inside:!0,mask:!1,rule({t:e}){return{type:Ds,props:{label:e("props.title")},children:[e("props.content")]}},watch:{__child({value:e,rule:t}){t.children[0].children[0]=e}},attrs:{child({rule:e}){return e.children[0].children[0]||""}},props(e,{t}){return Me(t,Ds+".props",[{type:"input",field:"label"},{type:"input",field:"__child",_fc_important_prop:"formCreateChild"},{type:"inputNumber",field:"span"}])}},Ry="\u63CF\u8FF0\u5217\u8868",Bs="aDescriptions",Vy={menu:"layout",icon:"icon-descriptions",label:Ry,name:Bs,mask:!1,rule(){return{type:Bs,props:{bordered:!0},style:{width:"100%"},children:[]}},children:"aDescriptionsItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.label,"onUpdate:value":i=>{r.props.label=i}})}]},props(e,{t}){return Me(t,Bs+".props",[{type:"input",field:"title",value:""},{type:"input",field:"extra",value:""},{type:"inputNumber",field:"column",value:3,props:{min:0}},{type:"switch",field:"bordered"},{type:"select",field:"layout",options:st(t,[{label:"vertical",value:"vertical"},{label:"horizontal",value:"horizontal"}])},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"middle",value:"middle"},{label:"small",value:"small"}])}])}},Iy="\u5206\u6B65\u8868\u5355",$s="stepForm",Fy={menu:"subform",icon:"icon-step-form",label:Iy,name:$s,mask:!1,input:!0,languageKey:["prevStep","nextStep","submit"],event:["change","submit","next","validateFail"],subForm:"object",children:"stepFormItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.title,"onUpdate:value":i=>{r.props.title=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.steps||{};e.children=t.map(o=>({type:"stepFormItem",_fc_drag_tag:"stepFormItem",props:{title:o.props.title,description:o.props.description},children:o.rule})),delete e.props.steps},parseRule(e){const t=e.children||[];e.props.steps=t.map(o=>({props:o.props,rule:o.children})),e.children=[]},sfc:!1,rule(){return{type:$s,field:Ye(),title:"",info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Me(t,$s+".props",[{type:"switch",field:"autoValidate"},{type:"select",field:"stepsProps>size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])}])}},My="\u6B65\u9AA4\u6761",Rs="stepFormItem",Py={icon:"icon-cell",label:My,name:Rs,aide:!0,drag:!0,dragBtn:!1,inside:!0,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:Rs,props:{title:e("com.stepFormItem.props.title"),description:""},children:[]}},props(e,{t}){return Me(t,Rs+".props",[{type:"input",field:"title",value:""},{type:"input",field:"description",value:""}])}},Ly="HTML",Vs="html",jy={menu:"aide",icon:"icon-html",label:Ly,name:Vs,sfc(e){e.type="div"},rule(){return{type:Vs,title:"",style:{display:"block",width:"100%"},children:['<div style="color:#2E73FF;display:flex;align-items:center;"><img style="width:20px;height:20px;display:inline-block;"src="https://static.form-create.com/example.png"data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGaADAAQAAAABAAAAGQAAAABY85deAAABuElEQVQ4Ee2UTYtBYRTH595BIu8hoYSNfAFJVrKxsFA+gg9laycLG7KQHUo+gRAhRaHI+8v8ZOYu7jTNTM1iauZZnOc8/+c8/3PP/5yu0G63n35oiT/Ec6f55/qemL9VL8VkMimVSo9iUqlUuVze7Xay2mw222w2A4zFYl6v93ELUiwW8YPBoNForNfrCqfTSUS1Wk0mkxaLRalUxuNxu92ey+XC4bDb7a7Van6/fzQardfrbrcrcS0WC4PBQEAoFBIE4XA4KCA2m81YvV6PjUQiEOE8lkqlikajxN1uN2yr1TqdTuTj9nK54Oh0OlG8iw6JXHuXy/VK87ZpNBqTycSJHGq1ejgc4q9WKz7qLeR1F7PZbD6fl6EfHSmw3+9zi8rvs4qZTCadTn/0WIb7fD6EOx6PlCy74iiv8X2EhFyvV6vVqtVqm82mw+GQcMm5c223WywSSCgIGi+XSwQGPJ/P4/G41+vhUOZ8Pqfj+/2e6aG55CBms9k8JxKJx3x1Oh2Px4PS0+m0UCgQgUMC6qpUKoPBgIHiZSAQoH0Iz9CQD5D+gjcaDeH/Xyh14yvON2biU7q/wPUCZDXIe9hWJkQAAAAASUVORK5CYII="/><span style="font-size:16px;">HTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTML</span></div>']}},props(e,{t}){return Me(t,Vs+".props",[{type:"HtmlEditor",field:"formCreateChild"}])}},zy="\u8868\u683C\u5E03\u5C40",Is="fcTable",Hy={menu:"layout",icon:"icon-table",label:zy,name:Is,inside:!1,mask:!1,sfc:{style:`._fc-table {
overflow: auto;
}
._fc-table > table {
width: 100%;
height: 100%;
overflow: hidden;
table-layout: fixed;
border: 1px solid #EBEEF5;
border-bottom: 0 none;
border-right: 0 none;
}
._fc-table tr {
min-height: 50px;
}
._fc-table td {
padding: 5px;
min-height: 50px;
min-width: 80px;
position: relative;
box-sizing: border-box;
overflow-wrap: break-word;
overflow: hidden;
border: 0 none;
border-right: 1px solid #EBEEF5;
border-bottom: 1px solid #EBEEF5;
}`,handle(e){const t=(e.children||[]).reduce((y,C)=>(y[C.slot]||(y[C.slot]=[]),y[C.slot].push(C),delete C.slot,y),{}),{row:o,col:r,style:i,class:s,layout:d}=e.props.rule,c={},f=[];d.forEach(y=>{const C=y.row||1,w=y.col||1,A=`${y.top}:${y.left}`;c[A]={row:C,col:w};for(let E=0;E<C;E++)for(let _=0;_<w;_++){if(E===0&&E===_)continue;const v=`${y.top+E}:${y.left+_}`;t[v]&&(t[A]=(t[A]||[]).concat(t[v]),delete t[v]),f.push(v)}});const g=[];for(let y=0;y<o;y++){const C=[];for(let w=0;w<r;w++){const A=`${y}:${w}`;if(f.indexOf(A)>-1)continue;const E=t[A];C.push({type:"td",props:{rowspan:""+(c[A]?c[A].row:1),colspan:""+(c[A]?c[A].col:1)},style:i[A],class:s[A],children:E})}g.push({type:"tr",children:C})}return{type:"aCol",props:{span:24},style:e.style,class:e.class,children:[{type:"div",class:"_fc-table",children:[{type:"table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:g}]}]}}},rule(){return{type:Is,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(e,{t}){return Me(t,Is+".props",[{type:"switch",field:"border",value:!0},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},Uy="\u8868\u683C\u8868\u5355",Fs="tableForm",Wy={menu:"subform",icon:"icon-table-form",label:Uy,name:Fs,mask:!1,input:!0,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.label,"onUpdate:value":i=>{r.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(o=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:o.label,required:o.required||!1,width:o.style.width||"",color:o.style.color||""},children:o.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(o=>({label:o.props.label,required:o.props.required,style:{width:o.props.width,color:o.props.color},rule:o.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:Fs,field:Ye(),title:e("com.tableForm.name"),info:"",props:{},children:[]}},props(e,{t}){return Me(t,Fs+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"inputNumber",field:"max",props:{min:0}}])}},Gy="\u65E0\u9650\u7EA7\u8868\u5355",ca="infiniteTableForm",Ky={menu:"subform",icon:"icon-table-form3",label:Gy,name:ca,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.label,"onUpdate:value":i=>{r.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(o=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:o.label,required:o.required||!1,width:o.style.width||"",color:o.style.color||""},children:o.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(o=>({label:o.props.label,required:o.props.required,style:{width:o.props.width,color:o.props.color},rule:o.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:ca,field:Ye(),title:e("com."+ca+".name"),info:"",props:{},children:[]}},props(e,{t}){return Me(t,ca+".props",[{type:"switch",field:"disabled"},{type:"input",field:"childrenField",value:"children"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"layerMax",props:{min:0}}])}},Yy="\u5D4C\u5957\u8868\u5355",ua="nestedTableForm",Qy=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{required:t.required||!1,label:t.label,width:t.style.width||"",color:t.style.color||""},children:t.rule||[]})),Xy={menu:"subform",icon:"icon-table-form2",label:Yy,name:ua,mask:!1,input:!0,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],slot:["default",{name:"nested",type:"nestedSubTableForm"}],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.label,"onUpdate:value":i=>{r.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[],o=e.props.nested||[];e.children=Qy(t),e.children.push({type:"TableForm",_fc_drag_tag:"nestedSubTableForm",field:e.props.nestedField,props:{columns:o},slot:"nested"}),delete e.props.nestedField,delete e.props.columns,delete e.props.nested},parseRule(e){const t=e.children||[];e.props.columns=[],t.forEach(o=>{if(o.slot==="nested"){e.props.nested=o.props.columns,e.props.nestedField=o.field;return}e.props.columns.push({label:o.props.label,required:o.props.required,style:{width:o.props.width,color:o.props.color},rule:o.children||[]})}),e.children=[]},sfc:!1,rule({t:e}){return{type:ua,field:Ye(),title:e("com."+ua+".name"),info:"",props:{},children:[]}},props(e,{t}){return Me(t,ua+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"nestedMax",props:{min:0}}])}},Jy={icon:"icon-table-form",label:"\u5B50\u8868\u683C\u8868\u5355",name:"nestedSubTableForm",aide:!0,mask:!1,validate:!1,style:!1,advanced:!1,variable:!1,input:!0,subForm:"array",hiddenBaseField:["title","info","labelConfig","formCreate_computed>hidden","formCreate_computed>value","_control"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("props.title"),vnode:t(o("a-input"),{size:"small",value:r.props.label,"onUpdate:value":i=>{r.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(o=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{required:o.required||!1,label:o.label,width:o.style.width||"",color:o.style.color||""},children:o.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(o=>({label:o.props.label,required:o.props.required,style:{width:o.props.width,color:o.props.color},rule:o.children||[]})),e.children=[]},rule(){return{type:"TableForm",field:Ye(),title:"",info:"",props:{},children:[]}},props(){return[]}},Ms="tableFormColumn",Zy={icon:"icon-cell",name:Ms,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:Ms,props:{label:e("com.tableFormColumn.label"),width:"auto"},children:[]}},props(e,{t}){return Me(t,Ms+".props",[{type:"input",field:"label"},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},qy={icon:"icon-flex",label:"\u76D2\u5B50\u5E03\u5C40",name:"fcFlex",mask:!1,children:"fcCell",childrenLen:2,subRender({t:e,h:t,resolveComponent:o,subRule:r}){return[{label:e("style.width"),vnode:t(o("SizeInput"),{size:"small",modelValue:r.style&&r.style.width||"","onUpdate:modelValue":i=>{r.style||(r.style={}),r.style.width=i}})},{label:e("style.height"),vnode:t(o("SizeInput"),{size:"small",modelValue:r.style&&r.style.height||"auto","onUpdate:modelValue":i=>{r.style||(r.style={}),r.style.height=i}})}]},sfc(e){e.type="aRow"},rule(){return{type:"fcRow",props:{},children:[]}},props(){return[]}},Ju="fcCell",e0={name:Ju,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},rule(){return{type:Ju,style:{display:"block",width:"50%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")}]}},t0="\u8BA1\u7B97\u516C\u5F0F",Zu="fcValue",n0={menu:"main",icon:"icon-value",label:t0,name:Zu,input:!0,event:["change"],validate:!1,sfc(e,{getParentFieldStr:t}){e.type="div",e._sfc.content=`{{formData.${t()}${e.field}}}`,e._sfc.vModel=!1},rule({t:e}){return{type:Zu,field:Ye(),title:e("com.fcValue.name"),info:"",props:{}}},props(){return[]}},i0="\u6587\u5B57\u63D0\u793A",fa="aTooltip",o0={menu:"aide",icon:"icon-tooltip",label:i0,name:fa,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:fa,props:{title:e("com."+fa+".name")},children:[]}},props(e,{t}){return Me(t,fa+".props",[{type:"input",field:"title",props:{type:"textarea"}},{type:"ColorInput",field:"color"},{type:"select",field:"placement",value:"bottom",options:[{label:"top",value:"top"},{label:"topLeft",value:"topLeft"},{label:"topRight",value:"topRight"},{label:"bottom",value:"bottom"},{label:"bottomLeft",value:"bottomLeft"},{label:"bottomRight",value:"bottomRight"},{label:"left",value:"left"},{label:"leftTop",value:"leftTop"},{label:"leftBottom",value:"leftBottom"},{label:"right",value:"right"},{label:"rightTop",value:"rightTop"},{label:"rightBottom",value:"rightBottom"}]},{type:"select",field:"trigger",value:"hover",options:[{label:"hover",value:"hover"},{label:"click",value:"click"},{label:"focus",value:"focus"},{label:"contextmenu",value:"contextmenu"}]},{type:"inputNumber",field:"mouseEnterDelay",props:{min:0}},{type:"inputNumber",field:"mouseLeaveDelay",props:{min:0}}])}},r0="\u6C34\u5370",pa="aWatermark",a0={menu:"aide",icon:"icon-watermark",label:r0,name:pa,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:pa,style:{width:"100%"},props:{content:e("com."+pa+".name")},children:[]}},props(e,{t}){return Me(t,pa+".props",[{type:"input",field:"content"},{type:"input",field:"image"},{type:"inputNumber",field:"width",props:{min:0},value:120},{type:"inputNumber",field:"height",props:{min:0},value:64},{type:"inputNumber",field:"rotate",value:-22},{type:"inputNumber",field:"zIndex",props:{min:0}}])}},l0={menu:"template",name:"chineseAmount",label:"\u91D1\u989D",autoField:!0,template:[{type:"inputNumber",field:"Fgtxlugfgbdvb5c",title:"\u91D1\u989D",info:"",$required:!1,display:!0,hidden:!1,_fc_drag_tag:"inputNumber"},{type:"fcValue",field:"Fvr1lugfgd3yb7c",title:" ",info:"",display:!0,hidden:!1,_fc_drag_tag:"fcValue",style:{color:"#999999"},computed:{value:'"\u5927\u5199: " + TOCHINSESAMOUNT(Fgtxlugfgbdvb5c || 0)'}}]},s0={menu:"template",name:"duration",label:"\u65F6\u957F",autoField:!0,template:[{type:"fcInlineForm",_fc_id:"id_Fljpm51cjms2bdc",name:"ref_Fjpim51cjms2bec",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fzogm51cjc1pacc",title:"\u5F00\u59CB\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){this.api.validateField('Fdnxm51cjc1paec');
callback();}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:""}],_fc_template:"duration",_fc_id:"id_Fyjom51cjc1qahc",name:"ref_Fzqim51cjc1qaic",display:!0,hidden:!1,style:{width:"250px"}},{type:"select",field:"Fvv5m51cjc1padc",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fpjhm51cjc1qalc",name:"ref_Fpr6m51cjc1qamc",display:!0,hidden:!1,style:{width:"150px"}}],style:{marginBottom:"12px"}},{type:"fcInlineForm",_fc_id:"id_Fq0nm51cjshzbfc",name:"ref_Fpazm51cjshzbgc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fdnxm51cjc1paec",title:"\u7ED3\u675F\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){let startTime = this.api.getValue('Fzogm51cjc1pacc');
if(startTime && value && Date.parse(startTime) > Date.parse(value)) {
callback(false);
return;
}
callback()}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:"\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7ED3\u675F\u65F6\u95F4"}],_fc_template:"duration",_fc_id:"id_F6hgm51cjc1qarc",name:"ref_F18lm51cjc1qasc",display:!0,hidden:!1,style:{width:"250px"}},{type:"select",field:"Ff4rm51cjc1pafc",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fcshm51cjc1qavc",name:"ref_F5xqm51cjc1qawc",display:!0,hidden:!1,style:{width:"150px"}}],style:{paddingBottom:"12px"}},{type:"fcInlineForm",_fc_id:"id_Fvuxm51cjt51bhc",name:"ref_F6a5m51cjt51bic",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"inputNumber",field:"F68jm51cjc1pagc",title:"\u65F6\u957F",$required:!1,props:{controls:!1},_fc_drag_tag:"inputNumber",_fc_template:"duration",_fc_id:"id_Fqtim51cjc1qb1c",name:"ref_Fla0m51cjc1qb2c",display:!0,hidden:!1,style:{width:"250px"},computed:{value:"MAX(IF(Fzogm51cjc1pacc && Fdnxm51cjc1paec && TIMESTAMP(Fdnxm51cjc1paec) > TIMESTAMP(Fzogm51cjc1pacc), DIFFDAYS(Fzogm51cjc1pacc, Fdnxm51cjc1paec), -1) + IF(Ff4rm51cjc1pafc && Fvv5m51cjc1padc, Ff4rm51cjc1pafc - Fvv5m51cjc1padc + 0.5, 0), 0);"}},{type:"text",native:!0,children:["\u5929"],_fc_drag_tag:"text",_fc_template:"duration",_fc_id:"id_Frd4m51cjc1qb5c",name:"ref_Fhwjm51cjc1qb6c",display:!0,hidden:!1,style:{marginTop:"5px"}}]}]},d0={menu:"template",name:"col3",label:"\u4E09\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},c0={menu:"template",name:"col4",label:"\u56DB\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},u0={menu:"template",name:"table43",label:"\u56DB\u884C\u4E09\u5217\u8868\u683C",autoField:!1,template:[{type:"fcTable",props:{rule:{row:4,col:3,style:{},class:{},layout:[]}},display:!0,hidden:!1,_fc_drag_tag:"fcTable"}]},f0="\u6570\u636E\u8868\u683C",ha="dataTable",p0=()=>{const e=[];for(let t=0;t<30;t++)e.push({date:"2016-05-12",name:"Tom "+(10+t),state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036"});return e},h0={menu:"main",icon:"icon-data-table",label:f0,name:ha,languageKey:["operation"],event:["handleClick","change","rowSelectionChange"],sfc:!1,rule(){return{type:ha,native:!0,props:{scroll:{x:"1000px",y:"500px"},button:{},data:p0(),column:[{format:"default",prop:"date",label:"Date",width:"150"},{format:"default",prop:"name",label:"Name",width:"120"},{format:"default",prop:"state",label:"State",width:"120"},{format:"default",prop:"city",label:"City",width:"320"},{format:"default",prop:"address",label:"Address",width:"600"},{format:"default",prop:"zip",label:"Zip",width:"120"}]}}},props(e,{t}){const o=function(i){return Me(t,ha+".props",i)},r=o([{type:"input",field:"page>totalField",value:"count"},{type:"input",field:"page>dataField",value:"list"},{type:"input",field:"page>orderField",value:"order"},{type:"input",field:"page>orderByField",value:"orderBy"},{type:"input",field:"page>pageField",value:"page"},{type:"input",field:"page>pageSizeField",value:"limit"}]);return Me(t,ha+".props",[{type:"radio",field:"_optionType",value:0,options:[{label:t("fetch.optionsType.struct"),value:0},{label:t("fetch.optionsType.fetch"),value:2},{label:t("fetch.optionsType.global"),value:1}],props:{optionType:"button"},control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"globalDataKey"},...r]},{value:2,rule:[{type:"FetchConfig",field:"fetch"},...r]},{value:0,rule:[{type:"Struct",title:t("com.dataTable.props._optionType"),field:"data",_fc_important_prop:!0,props:{validate(i){return!i||Array.isArray(i)}}}]}]},{type:"TableColumnConfig",field:"column",_fc_important_prop:!0},{type:"select",field:"size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"ConfigItem",props:{label:t("com.dataTable.props.button")},col:{show:!0},children:[{type:"HideConfig",title:t("com.dataTable.props.button"),wrap:{show:!1},col:{show:!1},field:"button>open"},{type:"template",slot:"append",children:o([{type:"TableButtonConfig",col:{show:!1},field:"button>column"},{type:"input",col:{show:!1},field:"button>label",value:"\u64CD\u4F5C"},{type:"select",col:{show:!1},field:"button>fixed",options:[{label:t("com.dataTable.fixed.default"),value:!1},{label:t("com.dataTable.fixed.right"),value:"right"}],value:"right"},{type:"SizeInput",col:{show:!1},field:"button>width",value:"125px"}])}]},{type:"ConfigItem",props:{label:t("com.dataTable.props.page")},col:{show:!0},children:[{type:"HideConfig",wrap:{show:!1},col:{show:!1},title:t("com.dataTable.props.page"),field:"page>open"},{type:"template",slot:"append",children:o([{type:"select",field:"page>position",value:"right",col:{show:!1},options:st(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",col:{show:!1},field:"page>props>pageSize",value:20},{type:"select",col:{show:!1},field:"page>props>size",options:st(t,[{label:"default",value:"default"},{label:"small",value:"small"}])}])}]},{type:"input",field:"rowKey"},{type:"switch",field:"selection"},{type:"SizeInput",field:"scroll>x"},{type:"SizeInput",field:"scroll>y"},{type:"switch",field:"bordered"}])}},ma="fcDialog",m0={name:ma,icon:"icon-dialog",label:"\u5F39\u51FA\u6846",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,languageKey:["close","ok"],event:["confirm","submit","cancel","validateFail"],container:{formDataField:"props.formData",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:ma,props:{title:e("com."+ma+".name")},children:[]}},props(e,{t}){return Me(t,ma+".props",[{type:"input",field:"title"},{type:"SizeInput",field:"width",value:"50%"},{type:"switch",field:"fullscreen"},{type:"switch",field:"mask",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0},{type:"FnInput",field:"afterClose",props:{body:!0,button:!0,fnx:!0,name:"beforeClose",args:[yn(t)]}}])}},ga="fcDrawer",g0={name:ga,icon:"icon-dialog",label:"\u62BD\u5C49",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,languageKey:["close","ok"],event:["confirm","submit","validateFail","afterOpenChange"],container:{formDataField:"props.formData",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:ga,props:{title:e("com."+ga+".name")},children:[]}},props(e,{t}){return Me(t,ga+".props",[{type:"input",field:"title"},{type:"SizeInput",field:"width",value:"30%"},{type:"select",field:"placement",options:st(t,[{label:"left",value:"left"},{label:"right",value:"right"}],"com.fcDrawer.placementType"),value:"right"},{type:"switch",field:"mask",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0}])}},v0="\u63D2\u69FD\u533A\u57DF",Ps="fcSlot",y0={menu:"container",icon:"icon-slot",label:v0,name:Ps,input:!0,mask:!0,style:!1,sfc:!1,rule(){return{type:Ps,field:Ye(),title:"",native:!1,$required:!1,readMode:"custom",props:{name:"block_"+Ye()}}},props(e,{t}){return Me(t,Ps+".props",[{type:"input",field:"name"}])}},b0="\u52A8\u6001\u533A\u57DF",Ls="fcJson",C0={menu:"container",icon:"icon-json",label:b0,name:Ls,mask:!0,style:!1,sfc:!1,input:!0,rule(){return{type:Ls,field:Ye(),props:{expand:1}}},props(e,{t}){return Me(t,Ls+".props",[{type:"radio",field:"_loadType",value:2,props:{optionType:"button"},options:[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:3},{label:t("fetch.optionsType.global"),value:1}],control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]},{value:2,rule:[{type:"Struct",field:"rule",title:t("com.fcJson.props._loadType"),_fc_important_prop:!0,wrap:{show:!1}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]}]},{type:"select",field:"type",options:st(t,[{label:t("props.default"),value:"default"},{label:t("com.group.name"),value:"array"},{label:t("com.subForm.name"),value:"object"}]),control:[{value:"array",method:"hidden",rule:Me(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"},{type:"switch",field:"button",ignore:"hidden",value:!0},{type:"switch",field:"sortBtn",ignore:"hidden",value:!0},{type:"inputNumber",field:"expand",ignore:"hidden"},{type:"inputNumber",field:"min",ignore:"hidden"},{type:"inputNumber",field:"max",ignore:"hidden"}])},{value:"object",method:"hidden",rule:Me(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"}])}]}])}},_0="\u5185\u8054\u5E03\u5C40",qu="fcInlineForm",w0={menu:"layout",icon:"icon-inline",label:_0,name:qu,denyDrag:{menu:["subform","layout"]},drag:!0,inside:!1,mask:!1,sfc:{style:`._fc-line-form {
width: 100%;
display: flex;
flex-wrap: wrap;
}
._fc-line-form .ant-form-item {
flex: none;
flex-wrap: nowrap;
margin-inline-end: 16px;
margin-bottom: 0;
}
._fc-line-form .ant-select, ._fc-line-form .ant-slider {
width: 220px;
}`,handle(e){return{type:"div",class:"_fc-line-form",children:e.children}}},rule(){return{type:qu,props:{}}},props(){return[]}},E0="\u56FE\u7247",js="aImage",A0={menu:"aide",icon:"icon-image",label:E0,name:js,inline:!0,rule(){return{type:js,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Me(t,js+".props",[{type:"input",field:"src"},{type:"switch",field:"preview",value:!0}])}},S0={menu:"layout",icon:"icon-flex",name:"fcFlex2",label:"\u76D2\u5B50\u5E03\u5C40",drag:!0,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},actions:[{label:"com.fcFlex2.horizontal",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="center":e.style.justifyContent="center"}},{label:"com.fcFlex2.vertical",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.alignItems="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.justifyContent="center":e.style.alignItems="center"}},{label:"com.fcFlex2.left",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-start"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-start":e.style.justifyContent="flex-start"}},{label:"com.fcFlex2.right",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-end"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-end":e.style.justifyContent="flex-end"}},{label:"com.fcFlex2.reset",handler(e){e.style?(delete e.style.flexDirection,delete e.style.justifyContent,delete e.style.alignContent,delete e.style.flexWrap,delete e.style.alignItems,e.style.display="flex"):e.style={}}}],rule(){return{type:"fcCell",style:{display:"block",width:"100%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")},{type:"SizeInput",field:"formCreateStyle>height",title:t("style.height")}]}},x0="\u8868\u5355\u9879",zs="aFormItem",k0={menu:"container",icon:"icon-form-item",label:x0,name:zs,drag:!0,mask:!1,event:!1,rule({t:e}){return{type:zs,props:{label:e("com.aFormItem.name")},children:[]}},props(e,{t}){return Me(t,zs+".props",[{type:"input",field:"label"},{type:"SizeInput",field:"labelCol>style>width",value:"",title:t("form.labelCol")},{type:"radio",field:"labelAlign",title:t("form.layout"),options:st(t,[{value:"left",label:"left"},{value:"right",label:"right"}])}])}},N0="\u97F3\u9891\u64AD\u653E\u5668",Hs="audioBox",T0={menu:"aide",icon:"icon-audio",label:N0,name:Hs,mask:!1,event:["pause","play","ended"],rule(){return{type:Hs,props:{src:"https://static.form-create.com/res/demo.mp3",type:"audio/mpeg"}}},props(e,{t}){return Me(t,Hs+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"MP3",value:"audio/mpeg"},{label:"OGG",value:"audio/ogg"},{label:"AAC",value:"audio/aac"},{label:"WAV",value:"audio/wav"},{label:"WMA",value:"audio/x-ms-wma"},{label:"WEBA",value:"audio/webm"},{label:"FLAC",value:"audio/flac"},{label:"ALAC",value:"audio/x-alac"},{label:"AMR",value:"audio/amr"},{label:"MIDI",value:"audio/midi"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"loop"},{type:"switch",field:"muted"},{type:"switch",field:"controls"},{type:"select",field:"preload",options:st(t,[{label:"auto",value:"auto"},{label:"metadata",value:"metadata"},{label:"none",value:"none"}],"com.audioBox.preloadOpt")}])}},O0="\u89C6\u9891\u64AD\u653E\u5668",Us="videoBox",D0={menu:"aide",icon:"icon-video",label:O0,name:Us,mask:!1,event:["pause","play","ended","error"],rule(){return{type:Us,props:{src:"https://static.form-create.com/res/demo.mp4",type:"mp4"}}},props(e,{t}){return Me(t,Us+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"mp4",value:"mp4"},{label:"mpegts",value:"mpegts"},{label:"m2ts",value:"m2ts"},{label:"flv",value:"flv"},{label:"mse",value:"mse"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"controls",value:!0},{type:"switch",field:"isLive"},{type:"switch",field:"loop"},{type:"switch",field:"withCredentials",value:!0}])}},B0="\u5934\u50CF\u6846",ef="aAvatar",$0={menu:"aide",icon:"icon-avatar",label:B0,name:ef,mask:!0,inline:!0,event:[],rule(){return{type:ef,props:{fit:"cover",src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Me(t,"aAvatar.props",[{type:"input",field:"src"},{type:"select",field:"shape",options:st(t,[{label:"circle",value:"circle"},{label:"square",value:"square"}])},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},R0="\u6761\u5F62\u7801",tf="barCodeBox",V0={menu:"aide",icon:"icon-barcode",label:R0,name:tf,mask:!0,inline:!0,event:[],rule(){return{type:tf,props:{value:"12345670",format:"CODE128"}}},props(e,{t}){return Me(t,"barCodeBox.props",[{type:"input",field:"value"},{type:"select",field:"format",options:[{label:"CODE39",value:"CODE39"},{label:"CODE128",value:"CODE128"},{label:"CODE128A",value:"CODE128A"},{label:"CODE128B",value:"CODE128B"},{label:"CODE128C",value:"CODE128C"},{label:"EAN13",value:"EAN13"},{label:"UPC",value:"UPC"},{label:"CODABAR",value:"CODABAR"}]},{type:"inputNumber",field:"width",value:2},{type:"inputNumber",field:"height",value:50},{type:"switch",field:"displayValue",value:!0},{type:"inputNumber",field:"fontSize",value:12},{type:"select",field:"textPosition",options:st(t,[{label:"top",value:"top"},{label:"bottom",value:"bottom"}])},{type:"select",field:"textAlign",options:st(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",field:"textMargin",value:2},{type:"ColorInput",field:"background"},{type:"ColorInput",field:"lineColor"}])}},I0="\u5185\u5D4C\u7F51\u9875",nf="iframeBox",F0={menu:"aide",icon:"icon-iframe",label:I0,name:nf,mask:!0,event:["load"],rule(){return{type:nf,props:{src:"https://pro.form-create.com/doc/"}}},props(e,{t}){return Me(t,"iframeBox.props",[{type:"input",field:"src"},{type:"select",field:"loading",value:"eager",options:st(t,[{label:"eager",value:"eager"},{label:"lazy",value:"lazy"}],"com.iframeBox.loadingOpt")}])}},M0="\u4E8C\u7EF4\u7801",Ws="qrCodeBox",P0={menu:"aide",icon:"icon-qrcode",label:M0,name:Ws,mask:!0,inline:!0,rule(){return{type:Ws,props:{data:"1234567890",width:150,height:150}}},props(e,{t}){return Me(t,Ws+".props",[{type:"input",field:"data"},{type:"input",field:"image"},{type:"inputNumber",field:"width"},{type:"inputNumber",field:"height"},{type:"select",field:"circleType",options:st(t,[{label:"square",value:"square"},{label:"dots",value:"dots"},{label:"rounded",value:"rounded"},{label:"classy",value:"classy"}],"com.qrCodeBox.circleTypeOpt")},{type:"ColorInput",field:"circleColor"}])}},L0="\u624B\u5199\u7B7E\u540D",Gs="signaturePad",j0={menu:"main",icon:"icon-sign",label:L0,name:Gs,input:!0,mask:!0,languageKey:["signaturePadTip","signaturePadTitle","reset","ok"],event:["change","remove"],rule({t:e}){return{type:Gs,field:Ye(),title:e("com.signaturePad.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,Gs+".props",[{type:"ColorInput",field:"penColor"}])}},z0="\u63D0\u53CA",Ks="aMentions",H0={menu:"main",icon:"icon-mention",label:z0,name:Ks,input:!0,event:["search","select","blur","focus","change"],validate:["string"],rule({t:e}){return{type:Ks,modelField:"value",field:Ye(),title:e("com.aMentions.name"),info:"",$required:!1,props:{options:[{label:"Fuphoenixes",value:"Fuphoenixes"},{label:"kooriookami",value:"kooriookami"},{label:"Jeremy",value:"Jeremy"},{label:"btea",value:"btea"}]}}},props(e,{t}){return Me(t,Ks+".props",[_i(t,"props.options"),{type:"switch",field:"disabled"},{type:"input",field:"placeholder"},{type:"inputNumber",field:"rows"},{type:"FnInput",field:"filterOption",props:{body:!0,button:!0,fnx:!0,args:[yn(t)],name:"filterOption"}}])}},U0="\u5206\u6BB5\u63A7\u5236\u5668",Ys="aSegmented",W0={menu:"main",icon:"icon-segmented",label:U0,name:Ys,input:!0,event:["change"],validate:["string","number"],rule(){return{type:Ys,field:Ye(),modelField:"value",title:"",value:"",props:{options:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map(e=>({label:e,value:e}))}}},props(e,{t}){return Me(t,Ys+".props",[{type:"TableOptions",field:"options",title:t("props.options"),wrap:{show:!1},props:{column:[{label:"label",key:"label"},{value:!0,label:"value",key:"value"}],keyValue:"label"}},{type:"switch",field:"disabled"},{type:"switch",field:"block"},{type:"select",field:"size",options:st(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},G0="\u6807\u9898",of="fcTitle",K0={menu:"aide",icon:"icon-title",label:G0,name:of,event:[],rule({t:e}){return{type:"fcTitle",props:{title:e("props.title")}}},props(e,{t}){return Me(t,of+".props",[{type:"input",field:"title"},{type:"select",field:"size",value:"H2",options:[1,2,3,4,5,6].map(o=>({label:"H"+o,value:"h"+o}))},{type:"select",field:"align",options:st(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},Y0="\u552F\u4E00\u503C",Qs="fcId",Q0={menu:"main",icon:"icon-input-id",label:Y0,name:Qs,input:!0,validate:!1,rule({t:e}){return{type:Qs,field:Ye(),title:e("com.fcId.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Me(t,Qs+".props",[{type:"input",field:"prefix"}])}},X0="\u7EDF\u8BA1\u680F",va="aStatistic",rf=[kv,Nv,Ov,H0,W0,Bv,Ev,Sv,Rv,Iv,Wv,Lv,jv,Mv,Gu,Hv,ey,ny,oy,ay,Ty,vy,Q0,j0,h0,by,_y,Fy,n0,Wy,Zy,Xy,Jy,Ky,sy,my,K0,cy,jy,{menu:"aide",icon:"icon-statistic",label:X0,name:va,inline:!0,easySlots:["prefix","suffix"],rule({t:e}){return{type:va,props:{value:99e3,title:e("com."+va+".name")}}},props(e,{t}){return Me(t,va+".props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"prefix"},{type:"input",field:"suffix"}])}},Zv,Dy,o0,a0,A0,T0,D0,$0,V0,F0,P0,y0,C0,k0,{menu:"chart",icon:"icon-chart-line",label:"\u6298\u7EBF\u56FE",name:"lineChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"line",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-area",label:"\u4F53\u79EF\u56FE",name:"areaChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"area",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-bar",label:"\u67F1\u72B6\u56FE",name:"barChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"bar",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-stripe",label:"\u6761\u5F62\u56FE",name:"stripeChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"bar",stripe:!0,config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Direct2",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-pie",label:"\u997C\u56FE",name:"pieChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"pie",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Num"},{value:300,name:"Video Num"}]}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"pieType",options:st(t,[{label:"pie",value:"pie"},{label:"doughnut",value:"doughnut"},{label:"half-doughnut",value:"half-doughnut"}],"com.lineChart.pieTypeOpt")},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-funnel",label:"\u6F0F\u6597\u56FE",name:"funnelChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"funnel",data:[{value:60,name:"Visit"},{value:40,name:"Inquiry"},{value:20,name:"Order"},{value:80,name:"Click"},{value:100,name:"Show"}]}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"funnelSort",options:st(t,[{label:"descending",value:"descending"},{label:"ascending",value:"ascending"}],"com.lineChart.funnelSortOpt"),value:"descending"},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-gauge",label:"\u4EEA\u8868\u76D8",name:"gaugeChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"gauge",value:50}}},props(e,{t}){return Me(t,"lineChart.props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},{menu:"chart",icon:"icon-chart-radar",label:"\u96F7\u8FBE\u56FE",name:"radarChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"radar",indicator:[{name:"Sales",max:6500},{name:"Administration",max:16e3},{name:"Information Technology",max:3e4},{name:"Customer Support",max:38e3},{name:"Development",max:52e3},{name:"Marketing",max:25e3}],data:[{value:[4200,3e3,2e4,35e3,5e4,18e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,26e3,42e3,21e3],name:"Actual Spending"}]}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.data",t("com.lineChart.data")),{type:"TableOptions",field:"indicator",props:{column:[{label:t("props.name"),key:"name"},{label:t("com.lineChart.props.max"),key:"max"}]}},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-scatter",label:"\u6563\u70B9\u56FE",name:"scatterChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",props:{type:"scatter",data:[[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2]],[[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8]]]}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"}])}},{menu:"chart",icon:"icon-chart-custom",label:"\u81EA\u5B9A\u4E49\u56FE\u8868",name:"customChart",mask:!1,event:["beforeLoad","loaded"],rule(){return{type:"fcEcharts",style:{height:"500px"},props:{type:"custom",config:{builderJson:{all:10887,charts:{map:3237,lines:2164,bar:7561,line:7778,pie:7355,scatter:2405,candlestick:1842,radar:2090,heatmap:1762,treemap:1593,graph:2060,boxplot:1537,parallel:1908,gauge:2107,funnel:1692,sankey:1568},components:{geo:2788,title:9575,legend:9400,tooltip:9466,grid:9266,markPoint:3419,markLine:2984,timeline:2739,dataZoom:2744,visualMap:2466,toolbox:3034,polar:1945},ie:9743},downloadJson:{"echarts.min.js":17365,"echarts.simple.min.js":4079,"echarts.common.min.js":6929,"echarts.js":14890},themeJson:{"dark.js":1594,"infographic.js":925,"shine.js":1608,"roma.js":721,"macarons.js":2179,"vintage.js":1982}},loadOptions:`$FNX:const builderJson = $inject.args[0]?.builderJson;
const downloadJson = $inject.args[0]?.downloadJson;
const themeJson = $inject.args[0]?.themeJson;
const waterMarkText = 'ECHARTS';
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
canvas.width = canvas.height = 100;
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.globalAlpha = 0.08;
ctx.font = '20px';
ctx.translate(50, 50);
ctx.rotate(-Math.PI / 4);
ctx.fillText(waterMarkText, 0, 0);
return {
backgroundColor: {
type: 'pattern',
image: canvas,
repeat: 'repeat'
},
tooltip: {},
title: [
{
text: '\u5728\u7EBF\u6784\u5EFA',
subtext: '\u603B\u8BA1 ' + builderJson.all,
left: '25%',
textAlign: 'center'
},
{
text: '\u5404\u7248\u672C\u4E0B\u8F7D',
subtext:
'\u603B\u8BA1 ' +
Object.keys(downloadJson).reduce(function (all, key) {
return all + downloadJson[key];
}, 0),
left: '75%',
textAlign: 'center'
},
{
text: '\u4E3B\u9898\u4E0B\u8F7D',
subtext:
'\u603B\u8BA1 ' +
Object.keys(themeJson).reduce(function (all, key) {
return all + themeJson[key];
}, 0),
left: '75%',
top: '50%',
textAlign: 'center'
}
],
grid: [
{
top: 50,
width: '50%',
bottom: '45%',
left: 10,
containLabel: true
},
{
top: '55%',
width: '50%',
bottom: 0,
left: 10,
containLabel: true
}
],
xAxis: [
{
type: 'value',
max: builderJson.all,
splitLine: {
show: false
}
},
{
type: 'value',
max: builderJson.all,
gridIndex: 1,
splitLine: {
show: false
}
}
],
yAxis: [
{
type: 'category',
data: Object.keys(builderJson.charts),
axisLabel: {
interval: 0,
rotate: 30
},
splitLine: {
show: false
}
},
{
gridIndex: 1,
type: 'category',
data: Object.keys(builderJson.components),
axisLabel: {
interval: 0,
rotate: 30
},
splitLine: {
show: false
}
}
],
series: [
{
type: 'bar',
stack: 'chart',
z: 3,
label: {
position: 'right',
show: true
},
data: Object.keys(builderJson.charts).map(function (key) {
return builderJson.charts[key];
})
},
{
type: 'bar',
stack: 'chart',
silent: true,
itemStyle: {
color: '#eee'
},
data: Object.keys(builderJson.charts).map(function (key) {
return builderJson.all - builderJson.charts[key];
})
},
{
type: 'bar',
stack: 'component',
xAxisIndex: 1,
yAxisIndex: 1,
z: 3,
label: {
position: 'right',
show: true
},
data: Object.keys(builderJson.components).map(function (key) {
return builderJson.components[key];
})
},
{
type: 'bar',
stack: 'component',
silent: true,
xAxisIndex: 1,
yAxisIndex: 1,
itemStyle: {
color: '#eee'
},
data: Object.keys(builderJson.components).map(function (key) {
return builderJson.all - builderJson.components[key];
})
},
{
type: 'pie',
radius: [0, '30%'],
center: ['75%', '25%'],
data: Object.keys(downloadJson).map(function (key) {
return {
name: key.replace('.js', ''),
value: downloadJson[key]
};
})
},
{
type: 'pie',
radius: [0, '30%'],
center: ['75%', '75%'],
data: Object.keys(themeJson).map(function (key) {
return {
name: key.replace('.js', ''),
value: themeJson[key]
};
})
}
]
};`}}},props(e,{t}){return Me(t,"lineChart.props",[Nn(t,"props.config",t("com.lineChart.data")),{type:"FnInput",field:"loadOptions",props:{body:!0,button:!0,fnx:!0,args:[yn(t)],name:"loadOptions"}}])}},Kv,Hy,w0,S0,qy,e0,py,uy,Ey,Sy,Vy,m0,g0,d0,c0,u0,l0,s0,Yv,Xv,ky,$y,Py];function J0(e){return{icon:e.field?"icon-input":"icon-cell",label:e.field||e.type,name:"_",mask:!0,handleBtn:["delete"],rule(){return e},props(){return[]}}}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function af(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function Gn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?af(Object(o),!0).forEach(function(r){Z0(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):af(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function ya(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ya=function(t){return typeof t}:ya=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(e)}function Z0(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ai(){return ai=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ai.apply(this,arguments)}function q0(e,t){if(e==null)return{};var o={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(o[i]=e[i]);return o}function e1(e,t){if(e==null)return{};var o=q0(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}var t1="1.14.0";function li(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var si=li(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),lr=li(/Edge/i),lf=li(/firefox/i),sr=li(/safari/i)&&!li(/chrome/i)&&!li(/android/i),sf=li(/iP(ad|od|hone)/i),n1=li(/chrome/i)&&li(/android/i),df={capture:!1,passive:!1};function yt(e,t,o){e.addEventListener(t,o,!si&&df)}function pt(e,t,o){e.removeEventListener(t,o,!si&&df)}function ba(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{return!1}return!1}}function i1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Kn(e,t,o,r){if(e){o=o||document;do{if(t!=null&&(t[0]===">"?e.parentNode===o&&ba(e,t):ba(e,t))||r&&e===o)return e;if(e===o)break}while(e=i1(e))}return null}var cf=/\s+/g;function bn(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(cf," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(cf," ")}}function it(e,t,o){var r=e&&e.style;if(r){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),t===void 0?o:o[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=o+(typeof o=="string"?"":"px")}}function fo(e,t){var o="";if(typeof e=="string")o=e;else do{var r=it(e,"transform");r&&r!=="none"&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function uf(e,t,o){if(e){var r=e.getElementsByTagName(t),i=0,s=r.length;if(o)for(;i<s;i++)o(r[i],i);return r}return[]}function Yn(){var e=document.scrollingElement;return e||document.documentElement}function jt(e,t,o,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var s,d,c,f,g,y,C;if(e!==window&&e.parentNode&&e!==Yn()?(s=e.getBoundingClientRect(),d=s.top,c=s.left,f=s.bottom,g=s.right,y=s.height,C=s.width):(d=0,c=0,f=window.innerHeight,g=window.innerWidth,y=window.innerHeight,C=window.innerWidth),(t||o)&&e!==window&&(i=i||e.parentNode,!si))do if(i&&i.getBoundingClientRect&&(it(i,"transform")!=="none"||o&&it(i,"position")!=="static")){var w=i.getBoundingClientRect();d-=w.top+parseInt(it(i,"border-top-width")),c-=w.left+parseInt(it(i,"border-left-width")),f=d+s.height,g=c+s.width;break}while(i=i.parentNode);if(r&&e!==window){var A=fo(i||e),E=A&&A.a,_=A&&A.d;A&&(d/=_,c/=E,C/=E,y/=_,f=d+y,g=c+C)}return{top:d,left:c,bottom:f,right:g,width:C,height:y}}}function ff(e,t,o){for(var r=wi(e,!0),i=jt(e)[t];r;){var s=jt(r)[o],d=void 0;if(o==="top"||o==="left"?d=i>=s:d=i<=s,!d)return r;if(r===Yn())break;r=wi(r,!1)}return!1}function po(e,t,o,r){for(var i=0,s=0,d=e.children;s<d.length;){if(d[s].style.display!=="none"&&d[s]!==ot.ghost&&(r||d[s]!==ot.dragged)&&Kn(d[s],o.draggable,e,!1)){if(i===t)return d[s];i++}s++}return null}function Xs(e,t){for(var o=e.lastElementChild;o&&(o===ot.ghost||it(o,"display")==="none"||t&&!ba(o,t));)o=o.previousElementSibling;return o||null}function Tn(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ot.clone&&(!t||ba(e,t))&&o++;return o}function pf(e){var t=0,o=0,r=Yn();if(e)do{var i=fo(e),s=i.a,d=i.d;t+=e.scrollLeft*s,o+=e.scrollTop*d}while(e!==r&&(e=e.parentNode));return[t,o]}function o1(e,t){for(var o in e)if(!!e.hasOwnProperty(o)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[o][r])return Number(o)}return-1}function wi(e,t){if(!e||!e.getBoundingClientRect)return Yn();var o=e,r=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=it(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return Yn();if(r||t)return o;r=!0}}while(o=o.parentNode);return Yn()}function r1(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function Js(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)}var dr;function hf(e,t){return function(){if(!dr){var o=arguments,r=this;o.length===1?e.call(r,o[0]):e.apply(r,o),dr=setTimeout(function(){dr=void 0},t)}}}function a1(){clearTimeout(dr),dr=void 0}function mf(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function gf(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}var Cn="Sortable"+new Date().getTime();function l1(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(it(i,"display")==="none"||i===ot.ghost)){e.push({target:i,rect:jt(i)});var s=Gn({},e[e.length-1].rect);if(i.thisAnimationDuration){var d=fo(i,!0);d&&(s.top-=d.f,s.left-=d.e)}i.fromRect=s}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(o1(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var s=!1,d=0;e.forEach(function(c){var f=0,g=c.target,y=g.fromRect,C=jt(g),w=g.prevFromRect,A=g.prevToRect,E=c.rect,_=fo(g,!0);_&&(C.top-=_.f,C.left-=_.e),g.toRect=C,g.thisAnimationDuration&&Js(w,C)&&!Js(y,C)&&(E.top-C.top)/(E.left-C.left)===(y.top-C.top)/(y.left-C.left)&&(f=d1(E,w,A,i.options)),Js(C,y)||(g.prevFromRect=y,g.prevToRect=C,f||(f=i.options.animation),i.animate(g,E,C,f)),f&&(s=!0,d=Math.max(d,f),clearTimeout(g.animationResetTimer),g.animationResetTimer=setTimeout(function(){g.animationTime=0,g.prevFromRect=null,g.fromRect=null,g.prevToRect=null,g.thisAnimationDuration=null},f),g.thisAnimationDuration=f)}),clearTimeout(t),s?t=setTimeout(function(){typeof r=="function"&&r()},d):typeof r=="function"&&r(),e=[]},animate:function(r,i,s,d){if(d){it(r,"transition",""),it(r,"transform","");var c=fo(this.el),f=c&&c.a,g=c&&c.d,y=(i.left-s.left)/(f||1),C=(i.top-s.top)/(g||1);r.animatingX=!!y,r.animatingY=!!C,it(r,"transform","translate3d("+y+"px,"+C+"px,0)"),this.forRepaintDummy=s1(r),it(r,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),it(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){it(r,"transition",""),it(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},d)}}}}function s1(e){return e.offsetWidth}function d1(e,t,o,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*r.animation}var ho=[],Zs={initializeByDefault:!0},cr={mount:function(t){for(var o in Zs)Zs.hasOwnProperty(o)&&!(o in t)&&(t[o]=Zs[o]);ho.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ho.push(t)},pluginEvent:function(t,o,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var s=t+"Global";ho.forEach(function(d){!o[d.pluginName]||(o[d.pluginName][s]&&o[d.pluginName][s](Gn({sortable:o},r)),o.options[d.pluginName]&&o[d.pluginName][t]&&o[d.pluginName][t](Gn({sortable:o},r)))})},initializePlugins:function(t,o,r,i){ho.forEach(function(c){var f=c.pluginName;if(!(!t.options[f]&&!c.initializeByDefault)){var g=new c(t,o,t.options);g.sortable=t,g.options=t.options,t[f]=g,ai(r,g.defaults)}});for(var s in t.options)if(!!t.options.hasOwnProperty(s)){var d=this.modifyOption(t,s,t.options[s]);typeof d<"u"&&(t.options[s]=d)}},getEventProperties:function(t,o){var r={};return ho.forEach(function(i){typeof i.eventProperties=="function"&&ai(r,i.eventProperties.call(o[i.pluginName],t))}),r},modifyOption:function(t,o,r){var i;return ho.forEach(function(s){!t[s.pluginName]||s.optionListeners&&typeof s.optionListeners[o]=="function"&&(i=s.optionListeners[o].call(t[s.pluginName],r))}),i}};function c1(e){var t=e.sortable,o=e.rootEl,r=e.name,i=e.targetEl,s=e.cloneEl,d=e.toEl,c=e.fromEl,f=e.oldIndex,g=e.newIndex,y=e.oldDraggableIndex,C=e.newDraggableIndex,w=e.originalEvent,A=e.putSortable,E=e.extraEventProperties;if(t=t||o&&o[Cn],!!t){var _,v=t.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!si&&!lr?_=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(r,!0,!0)),_.to=d||o,_.from=c||o,_.item=i||o,_.clone=s,_.oldIndex=f,_.newIndex=g,_.oldDraggableIndex=y,_.newDraggableIndex=C,_.originalEvent=w,_.pullMode=A?A.lastPutMode:void 0;var b=Gn(Gn({},E),cr.getEventProperties(r,t));for(var S in b)_[S]=b[S];o&&o.dispatchEvent(_),v[m]&&v[m].call(t,_)}}var u1=["evt"],fn=function(t,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,s=e1(r,u1);cr.pluginEvent.bind(ot)(t,o,Gn({dragEl:Pe,parentEl:$t,ghostEl:dt,rootEl:xt,nextEl:zi,lastDownEl:Ca,cloneEl:Rt,cloneHidden:Ei,dragStarted:fr,putSortable:Qt,activeSortable:ot.active,originalEvent:i,oldIndex:mo,oldDraggableIndex:ur,newIndex:_n,newDraggableIndex:Ai,hideGhostForTarget:Ef,unhideGhostForTarget:Af,cloneNowHidden:function(){Ei=!0},cloneNowShown:function(){Ei=!1},dispatchSortableEvent:function(c){nn({sortable:o,name:c,originalEvent:i})}},s))};function nn(e){c1(Gn({putSortable:Qt,cloneEl:Rt,targetEl:Pe,rootEl:xt,oldIndex:mo,oldDraggableIndex:ur,newIndex:_n,newDraggableIndex:Ai},e))}var Pe,$t,dt,xt,zi,Ca,Rt,Ei,mo,_n,ur,Ai,_a,Qt,go=!1,wa=!1,Ea=[],Hi,In,qs,ed,vf,yf,fr,vo,pr,hr=!1,Aa=!1,Sa,qt,td=[],nd=!1,xa=[],ka=typeof document<"u",Na=sf,bf=lr||si?"cssFloat":"float",f1=ka&&!n1&&!sf&&"draggable"in document.createElement("div"),Cf=function(){if(!!ka){if(si)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),_f=function(t,o){var r=it(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=po(t,0,o),d=po(t,1,o),c=s&&it(s),f=d&&it(d),g=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+jt(s).width,y=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+jt(d).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&c.float&&c.float!=="none"){var C=c.float==="left"?"left":"right";return d&&(f.clear==="both"||f.clear===C)?"vertical":"horizontal"}return s&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||g>=i&&r[bf]==="none"||d&&r[bf]==="none"&&g+y>i)?"vertical":"horizontal"},p1=function(t,o,r){var i=r?t.left:t.top,s=r?t.right:t.bottom,d=r?t.width:t.height,c=r?o.left:o.top,f=r?o.right:o.bottom,g=r?o.width:o.height;return i===c||s===f||i+d/2===c+g/2},h1=function(t,o){var r;return Ea.some(function(i){var s=i[Cn].options.emptyInsertThreshold;if(!(!s||Xs(i))){var d=jt(i),c=t>=d.left-s&&t<=d.right+s,f=o>=d.top-s&&o<=d.bottom+s;if(c&&f)return r=i}}),r},wf=function(t){function o(s,d){return function(c,f,g,y){var C=c.options.group.name&&f.options.group.name&&c.options.group.name===f.options.group.name;if(s==null&&(d||C))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return o(s(c,f,g,y),d)(c,f,g,y);var w=(d?c:f).options.group.name;return s===!0||typeof s=="string"&&s===w||s.join&&s.indexOf(w)>-1}}var r={},i=t.group;(!i||ya(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=o(i.pull,!0),r.checkPut=o(i.put),r.revertClone=i.revertClone,t.group=r},Ef=function(){!Cf&&dt&&it(dt,"display","none")},Af=function(){!Cf&&dt&&it(dt,"display","")};ka&&document.addEventListener("click",function(e){if(wa)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wa=!1,!1},!0);var Ui=function(t){if(Pe){t=t.touches?t.touches[0]:t;var o=h1(t.clientX,t.clientY);if(o){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=o,r.preventDefault=void 0,r.stopPropagation=void 0,o[Cn]._onDragOver(r)}}},m1=function(t){Pe&&Pe.parentNode[Cn]._isOutsideThisEl(t.target)};function ot(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ai({},t),e[Cn]=this;var o={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 _f(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(d,c){d.setData("Text",c.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:ot.supportPointer!==!1&&"PointerEvent"in window&&!sr,emptyInsertThreshold:5};cr.initializePlugins(this,e,o);for(var r in o)!(r in t)&&(t[r]=o[r]);wf(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:f1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?yt(e,"pointerdown",this._onTapStart):(yt(e,"mousedown",this._onTapStart),yt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(yt(e,"dragover",this),yt(e,"dragenter",this)),Ea.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ai(this,l1())}ot.prototype={constructor:ot,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(vo=null)},_getDirection:function(t,o){return typeof this.options.direction=="function"?this.options.direction.call(this,t,o,Pe):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var o=this,r=this.el,i=this.options,s=i.preventOnFilter,d=t.type,c=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,f=(c||t).target,g=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||f,y=i.filter;if(E1(r),!Pe&&!(/mousedown|pointerdown/.test(d)&&t.button!==0||i.disabled)&&!g.isContentEditable&&!(!this.nativeDraggable&&sr&&f&&f.tagName.toUpperCase()==="SELECT")&&(f=Kn(f,i.draggable,r,!1),!(f&&f.animated)&&Ca!==f)){if(mo=Tn(f),ur=Tn(f,i.draggable),typeof y=="function"){if(y.call(this,t,f,this)){nn({sortable:o,rootEl:g,name:"filter",targetEl:f,toEl:r,fromEl:r}),fn("filter",o,{evt:t}),s&&t.cancelable&&t.preventDefault();return}}else if(y&&(y=y.split(",").some(function(C){if(C=Kn(g,C.trim(),r,!1),C)return nn({sortable:o,rootEl:C,name:"filter",targetEl:f,fromEl:r,toEl:r}),fn("filter",o,{evt:t}),!0}),y)){s&&t.cancelable&&t.preventDefault();return}i.handle&&!Kn(g,i.handle,r,!1)||this._prepareDragStart(t,c,f)}}},_prepareDragStart:function(t,o,r){var i=this,s=i.el,d=i.options,c=s.ownerDocument,f;if(r&&!Pe&&r.parentNode===s){var g=jt(r);if(xt=s,Pe=r,$t=Pe.parentNode,zi=Pe.nextSibling,Ca=r,_a=d.group,ot.dragged=Pe,Hi={target:Pe,clientX:(o||t).clientX,clientY:(o||t).clientY},vf=Hi.clientX-g.left,yf=Hi.clientY-g.top,this._lastX=(o||t).clientX,this._lastY=(o||t).clientY,Pe.style["will-change"]="all",f=function(){if(fn("delayEnded",i,{evt:t}),ot.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!lf&&i.nativeDraggable&&(Pe.draggable=!0),i._triggerDragStart(t,o),nn({sortable:i,name:"choose",originalEvent:t}),bn(Pe,d.chosenClass,!0)},d.ignore.split(",").forEach(function(y){uf(Pe,y.trim(),id)}),yt(c,"dragover",Ui),yt(c,"mousemove",Ui),yt(c,"touchmove",Ui),yt(c,"mouseup",i._onDrop),yt(c,"touchend",i._onDrop),yt(c,"touchcancel",i._onDrop),lf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Pe.draggable=!0),fn("delayStart",this,{evt:t}),d.delay&&(!d.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(lr||si))){if(ot.eventCanceled){this._onDrop();return}yt(c,"mouseup",i._disableDelayedDrag),yt(c,"touchend",i._disableDelayedDrag),yt(c,"touchcancel",i._disableDelayedDrag),yt(c,"mousemove",i._delayedDragTouchMoveHandler),yt(c,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&yt(c,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(f,d.delay)}else f()}},_delayedDragTouchMoveHandler:function(t){var o=t.touches?t.touches[0]:t;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Pe&&id(Pe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;pt(t,"mouseup",this._disableDelayedDrag),pt(t,"touchend",this._disableDelayedDrag),pt(t,"touchcancel",this._disableDelayedDrag),pt(t,"mousemove",this._delayedDragTouchMoveHandler),pt(t,"touchmove",this._delayedDragTouchMoveHandler),pt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,o){o=o||t.pointerType=="touch"&&t,!this.nativeDraggable||o?this.options.supportPointer?yt(document,"pointermove",this._onTouchMove):o?yt(document,"touchmove",this._onTouchMove):yt(document,"mousemove",this._onTouchMove):(yt(Pe,"dragend",this),yt(xt,"dragstart",this._onDragStart));try{document.selection?Oa(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,o){if(go=!1,xt&&Pe){fn("dragStarted",this,{evt:o}),this.nativeDraggable&&yt(document,"dragover",m1);var r=this.options;!t&&bn(Pe,r.dragClass,!1),bn(Pe,r.ghostClass,!0),ot.active=this,t&&this._appendGhost(),nn({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(In){this._lastX=In.clientX,this._lastY=In.clientY,Ef();for(var t=document.elementFromPoint(In.clientX,In.clientY),o=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(In.clientX,In.clientY),t!==o);)o=t;if(Pe.parentNode[Cn]._isOutsideThisEl(t),o)do{if(o[Cn]){var r=void 0;if(r=o[Cn]._onDragOver({clientX:In.clientX,clientY:In.clientY,target:t,rootEl:o}),r&&!this.options.dragoverBubble)break}t=o}while(o=o.parentNode);Af()}},_onTouchMove:function(t){if(Hi){var o=this.options,r=o.fallbackTolerance,i=o.fallbackOffset,s=t.touches?t.touches[0]:t,d=dt&&fo(dt,!0),c=dt&&d&&d.a,f=dt&&d&&d.d,g=Na&&qt&&pf(qt),y=(s.clientX-Hi.clientX+i.x)/(c||1)+(g?g[0]-td[0]:0)/(c||1),C=(s.clientY-Hi.clientY+i.y)/(f||1)+(g?g[1]-td[1]:0)/(f||1);if(!ot.active&&!go){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(dt){d?(d.e+=y-(qs||0),d.f+=C-(ed||0)):d={a:1,b:0,c:0,d:1,e:y,f:C};var w="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");it(dt,"webkitTransform",w),it(dt,"mozTransform",w),it(dt,"msTransform",w),it(dt,"transform",w),qs=y,ed=C,In=s}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!dt){var t=this.options.fallbackOnBody?document.body:xt,o=jt(Pe,!0,Na,!0,t),r=this.options;if(Na){for(qt=t;it(qt,"position")==="static"&&it(qt,"transform")==="none"&&qt!==document;)qt=qt.parentNode;qt!==document.body&&qt!==document.documentElement?(qt===document&&(qt=Yn()),o.top+=qt.scrollTop,o.left+=qt.scrollLeft):qt=Yn(),td=pf(qt)}dt=Pe.cloneNode(!0),bn(dt,r.ghostClass,!1),bn(dt,r.fallbackClass,!0),bn(dt,r.dragClass,!0),it(dt,"transition",""),it(dt,"transform",""),it(dt,"box-sizing","border-box"),it(dt,"margin",0),it(dt,"top",o.top),it(dt,"left",o.left),it(dt,"width",o.width),it(dt,"height",o.height),it(dt,"opacity","0.8"),it(dt,"position",Na?"absolute":"fixed"),it(dt,"zIndex","100000"),it(dt,"pointerEvents","none"),ot.ghost=dt,t.appendChild(dt),it(dt,"transform-origin",vf/parseInt(dt.style.width)*100+"% "+yf/parseInt(dt.style.height)*100+"%")}},_onDragStart:function(t,o){var r=this,i=t.dataTransfer,s=r.options;if(fn("dragStart",this,{evt:t}),ot.eventCanceled){this._onDrop();return}fn("setupClone",this),ot.eventCanceled||(Rt=gf(Pe),Rt.draggable=!1,Rt.style["will-change"]="",this._hideClone(),bn(Rt,this.options.chosenClass,!1),ot.clone=Rt),r.cloneId=Oa(function(){fn("clone",r),!ot.eventCanceled&&(r.options.removeCloneOnHide||xt.insertBefore(Rt,Pe),r._hideClone(),nn({sortable:r,name:"clone"}))}),!o&&bn(Pe,s.dragClass,!0),o?(wa=!0,r._loopId=setInterval(r._emulateDragOver,50)):(pt(document,"mouseup",r._onDrop),pt(document,"touchend",r._onDrop),pt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(r,i,Pe)),yt(document,"drop",r),it(Pe,"transform","translateZ(0)")),go=!0,r._dragStartId=Oa(r._dragStarted.bind(r,o,t)),yt(document,"selectstart",r),fr=!0,sr&&it(document.body,"user-select","none")},_onDragOver:function(t){var o=this.el,r=t.target,i,s,d,c=this.options,f=c.group,g=ot.active,y=_a===f,C=c.sort,w=Qt||g,A,E=this,_=!1;if(nd)return;function v(j,Z){fn(j,E,Gn({evt:t,isOwner:y,axis:A?"vertical":"horizontal",revert:d,dragRect:i,targetRect:s,canSort:C,fromSortable:w,target:r,completed:b,onMove:function(F,oe){return Ta(xt,o,Pe,i,F,jt(F),t,oe)},changed:S},Z))}function m(){v("dragOverAnimationCapture"),E.captureAnimationState(),E!==w&&w.captureAnimationState()}function b(j){return v("dragOverCompleted",{insertion:j}),j&&(y?g._hideClone():g._showClone(E),E!==w&&(bn(Pe,Qt?Qt.options.ghostClass:g.options.ghostClass,!1),bn(Pe,c.ghostClass,!0)),Qt!==E&&E!==ot.active?Qt=E:E===ot.active&&Qt&&(Qt=null),w===E&&(E._ignoreWhileAnimating=r),E.animateAll(function(){v("dragOverAnimationComplete"),E._ignoreWhileAnimating=null}),E!==w&&(w.animateAll(),w._ignoreWhileAnimating=null)),(r===Pe&&!Pe.animated||r===o&&!r.animated)&&(vo=null),!c.dragoverBubble&&!t.rootEl&&r!==document&&(Pe.parentNode[Cn]._isOutsideThisEl(t.target),!j&&Ui(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function S(){_n=Tn(Pe),Ai=Tn(Pe,c.draggable),nn({sortable:E,name:"change",toEl:o,newIndex:_n,newDraggableIndex:Ai,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Kn(r,c.draggable,o,!0),v("dragOver"),ot.eventCanceled)return _;if(Pe.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||E._ignoreWhileAnimating===r)return b(!1);if(wa=!1,g&&!c.disabled&&(y?C||(d=$t!==xt):Qt===this||(this.lastPutMode=_a.checkPull(this,g,Pe,t))&&f.checkPut(this,g,Pe,t))){if(A=this._getDirection(t,r)==="vertical",i=jt(Pe),v("dragOverValid"),ot.eventCanceled)return _;if(d)return $t=xt,m(),this._hideClone(),v("revert"),ot.eventCanceled||(zi?xt.insertBefore(Pe,zi):xt.appendChild(Pe)),b(!0);var x=Xs(o,c.draggable);if(!x||b1(t,A,this)&&!x.animated){if(x===Pe)return b(!1);if(x&&o===t.target&&(r=x),r&&(s=jt(r)),Ta(xt,o,Pe,i,r,s,t,!!r)!==!1)return m(),o.appendChild(Pe),$t=o,S(),b(!0)}else if(x&&y1(t,A,this)){var O=po(o,0,c,!0);if(O===Pe)return b(!1);if(r=O,s=jt(r),Ta(xt,o,Pe,i,r,s,t,!1)!==!1)return m(),o.insertBefore(Pe,O),$t=o,S(),b(!0)}else if(r.parentNode===o){s=jt(r);var D=0,V,I=Pe.parentNode!==o,z=!p1(Pe.animated&&Pe.toRect||i,r.animated&&r.toRect||s,A),T=A?"top":"left",B=ff(r,"top","top")||ff(Pe,"top","top"),L=B?B.scrollTop:void 0;vo!==r&&(V=s[T],hr=!1,Aa=!z&&c.invertSwap||I),D=C1(t,r,s,A,z?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,Aa,vo===r);var U;if(D!==0){var W=Tn(Pe);do W-=D,U=$t.children[W];while(U&&(it(U,"display")==="none"||U===dt))}if(D===0||U===r)return b(!1);vo=r,pr=D;var R=r.nextElementSibling,k=!1;k=D===1;var P=Ta(xt,o,Pe,i,r,s,t,k);if(P!==!1)return(P===1||P===-1)&&(k=P===1),nd=!0,setTimeout(v1,30),m(),k&&!R?o.appendChild(Pe):r.parentNode.insertBefore(Pe,k?R:r),B&&mf(B,0,L-B.scrollTop),$t=Pe.parentNode,V!==void 0&&!Aa&&(Sa=Math.abs(V-jt(r)[T])),S(),b(!0)}if(o.contains(Pe))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){pt(document,"mousemove",this._onTouchMove),pt(document,"touchmove",this._onTouchMove),pt(document,"pointermove",this._onTouchMove),pt(document,"dragover",Ui),pt(document,"mousemove",Ui),pt(document,"touchmove",Ui)},_offUpEvents:function(){var t=this.el.ownerDocument;pt(t,"mouseup",this._onDrop),pt(t,"touchend",this._onDrop),pt(t,"pointerup",this._onDrop),pt(t,"touchcancel",this._onDrop),pt(document,"selectstart",this)},_onDrop:function(t){var o=this.el,r=this.options;if(_n=Tn(Pe),Ai=Tn(Pe,r.draggable),fn("drop",this,{evt:t}),$t=Pe&&Pe.parentNode,_n=Tn(Pe),Ai=Tn(Pe,r.draggable),ot.eventCanceled){this._nulling();return}go=!1,Aa=!1,hr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),od(this.cloneId),od(this._dragStartId),this.nativeDraggable&&(pt(document,"drop",this),pt(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),sr&&it(document.body,"user-select",""),it(Pe,"transform",""),t&&(fr&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),dt&&dt.parentNode&&dt.parentNode.removeChild(dt),(xt===$t||Qt&&Qt.lastPutMode!=="clone")&&Rt&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),Pe&&(this.nativeDraggable&&pt(Pe,"dragend",this),id(Pe),Pe.style["will-change"]="",fr&&!go&&bn(Pe,Qt?Qt.options.ghostClass:this.options.ghostClass,!1),bn(Pe,this.options.chosenClass,!1),nn({sortable:this,name:"unchoose",toEl:$t,newIndex:null,newDraggableIndex:null,originalEvent:t}),xt!==$t?(_n>=0&&(nn({rootEl:$t,name:"add",toEl:$t,fromEl:xt,originalEvent:t}),nn({sortable:this,name:"remove",toEl:$t,originalEvent:t}),nn({rootEl:$t,name:"sort",toEl:$t,fromEl:xt,originalEvent:t}),nn({sortable:this,name:"sort",toEl:$t,originalEvent:t})),Qt&&Qt.save()):_n!==mo&&_n>=0&&(nn({sortable:this,name:"update",toEl:$t,originalEvent:t}),nn({sortable:this,name:"sort",toEl:$t,originalEvent:t})),ot.active&&((_n==null||_n===-1)&&(_n=mo,Ai=ur),nn({sortable:this,name:"end",toEl:$t,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){fn("nulling",this),xt=Pe=$t=dt=zi=Rt=Ca=Ei=Hi=In=fr=_n=Ai=mo=ur=vo=pr=Qt=_a=ot.dragged=ot.ghost=ot.clone=ot.active=null,xa.forEach(function(t){t.checked=!0}),xa.length=qs=ed=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Pe&&(this._onDragOver(t),g1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],o,r=this.el.children,i=0,s=r.length,d=this.options;i<s;i++)o=r[i],Kn(o,d.draggable,this.el,!1)&&t.push(o.getAttribute(d.dataIdAttr)||w1(o));return t},sort:function(t,o){var r={},i=this.el;this.toArray().forEach(function(s,d){var c=i.children[d];Kn(c,this.options.draggable,i,!1)&&(r[s]=c)},this),o&&this.captureAnimationState(),t.forEach(function(s){r[s]&&(i.removeChild(r[s]),i.appendChild(r[s]))}),o&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,o){return Kn(t,o||this.options.draggable,this.el,!1)},option:function(t,o){var r=this.options;if(o===void 0)return r[t];var i=cr.modifyOption(this,t,o);typeof i<"u"?r[t]=i:r[t]=o,t==="group"&&wf(r)},destroy:function(){fn("destroy",this);var t=this.el;t[Cn]=null,pt(t,"mousedown",this._onTapStart),pt(t,"touchstart",this._onTapStart),pt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(pt(t,"dragover",this),pt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ea.splice(Ea.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ei){if(fn("hideClone",this),ot.eventCanceled)return;it(Rt,"display","none"),this.options.removeCloneOnHide&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),Ei=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Ei){if(fn("showClone",this),ot.eventCanceled)return;Pe.parentNode==xt&&!this.options.group.revertClone?xt.insertBefore(Rt,Pe):zi?xt.insertBefore(Rt,zi):xt.appendChild(Rt),this.options.group.revertClone&&this.animate(Pe,Rt),it(Rt,"display",""),Ei=!1}}};function g1(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ta(e,t,o,r,i,s,d,c){var f,g=e[Cn],y=g.options.onMove,C;return window.CustomEvent&&!si&&!lr?f=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(f=document.createEvent("Event"),f.initEvent("move",!0,!0)),f.to=t,f.from=e,f.dragged=o,f.draggedRect=r,f.related=i||t,f.relatedRect=s||jt(t),f.willInsertAfter=c,f.originalEvent=d,e.dispatchEvent(f),y&&(C=y.call(g,f,d)),C}function id(e){e.draggable=!1}function v1(){nd=!1}function y1(e,t,o){var r=jt(po(o.el,0,o.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function b1(e,t,o){var r=jt(Xs(o.el,o.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function C1(e,t,o,r,i,s,d,c){var f=r?e.clientY:e.clientX,g=r?o.height:o.width,y=r?o.top:o.left,C=r?o.bottom:o.right,w=!1;if(!d){if(c&&Sa<g*i){if(!hr&&(pr===1?f>y+g*s/2:f<C-g*s/2)&&(hr=!0),hr)w=!0;else if(pr===1?f<y+Sa:f>C-Sa)return-pr}else if(f>y+g*(1-i)/2&&f<C-g*(1-i)/2)return _1(t)}return w=w||d,w&&(f<y+g*s/2||f>C-g*s/2)?f>y+g/2?1:-1:0}function _1(e){return Tn(Pe)<Tn(e)?1:-1}function w1(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,r=0;o--;)r+=t.charCodeAt(o);return r.toString(36)}function E1(e){xa.length=0;for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var r=t[o];r.checked&&xa.push(r)}}function Oa(e){return setTimeout(e,0)}function od(e){return clearTimeout(e)}ka&&yt(document,"touchmove",function(e){(ot.active||go)&&e.cancelable&&e.preventDefault()}),ot.utils={on:yt,off:pt,css:it,find:uf,is:function(t,o){return!!Kn(t,o,t,!1)},extend:r1,throttle:hf,closest:Kn,toggleClass:bn,clone:gf,index:Tn,nextTick:Oa,cancelNextTick:od,detectDirection:_f,getChild:po},ot.get=function(e){return e[Cn]},ot.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(ot.utils=Gn(Gn({},ot.utils),r.utils)),cr.mount(r)})},ot.create=function(e,t){return new ot(e,t)},ot.version=t1;var Mt=[],mr,rd,ad=!1,ld,sd,Da,gr;function A1(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(o){var r=o.originalEvent;this.sortable.nativeDraggable?yt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?yt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?yt(document,"touchmove",this._handleFallbackAutoScroll):yt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var r=o.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?pt(document,"dragover",this._handleAutoScroll):(pt(document,"pointermove",this._handleFallbackAutoScroll),pt(document,"touchmove",this._handleFallbackAutoScroll),pt(document,"mousemove",this._handleFallbackAutoScroll)),Sf(),Ba(),a1()},nulling:function(){Da=rd=mr=ad=gr=ld=sd=null,Mt.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,r){var i=this,s=(o.touches?o.touches[0]:o).clientX,d=(o.touches?o.touches[0]:o).clientY,c=document.elementFromPoint(s,d);if(Da=o,r||this.options.forceAutoScrollFallback||lr||si||sr){dd(o,this.options,c,r);var f=wi(c,!0);ad&&(!gr||s!==ld||d!==sd)&&(gr&&Sf(),gr=setInterval(function(){var g=wi(document.elementFromPoint(s,d),!0);g!==f&&(f=g,Ba()),dd(o,i.options,g,r)},10),ld=s,sd=d)}else{if(!this.options.bubbleScroll||wi(c,!0)===Yn()){Ba();return}dd(o,this.options,wi(c,!1),!1)}}},ai(e,{pluginName:"scroll",initializeByDefault:!0})}function Ba(){Mt.forEach(function(e){clearInterval(e.pid)}),Mt=[]}function Sf(){clearInterval(gr)}var dd=hf(function(e,t,o,r){if(!!t.scroll){var i=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,c=t.scrollSpeed,f=Yn(),g=!1,y;rd!==o&&(rd=o,Ba(),mr=t.scroll,y=t.scrollFn,mr===!0&&(mr=wi(o,!0)));var C=0,w=mr;do{var A=w,E=jt(A),_=E.top,v=E.bottom,m=E.left,b=E.right,S=E.width,x=E.height,O=void 0,D=void 0,V=A.scrollWidth,I=A.scrollHeight,z=it(A),T=A.scrollLeft,B=A.scrollTop;A===f?(O=S<V&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),D=x<I&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(O=S<V&&(z.overflowX==="auto"||z.overflowX==="scroll"),D=x<I&&(z.overflowY==="auto"||z.overflowY==="scroll"));var L=O&&(Math.abs(b-i)<=d&&T+S<V)-(Math.abs(m-i)<=d&&!!T),U=D&&(Math.abs(v-s)<=d&&B+x<I)-(Math.abs(_-s)<=d&&!!B);if(!Mt[C])for(var W=0;W<=C;W++)Mt[W]||(Mt[W]={});(Mt[C].vx!=L||Mt[C].vy!=U||Mt[C].el!==A)&&(Mt[C].el=A,Mt[C].vx=L,Mt[C].vy=U,clearInterval(Mt[C].pid),(L!=0||U!=0)&&(g=!0,Mt[C].pid=setInterval(function(){r&&this.layer===0&&ot.active._onTouchMove(Da);var R=Mt[this.layer].vy?Mt[this.layer].vy*c:0,k=Mt[this.layer].vx?Mt[this.layer].vx*c:0;typeof y=="function"&&y.call(ot.dragged.parentNode[Cn],k,R,e,Da,Mt[this.layer].el)!=="continue"||mf(Mt[this.layer].el,k,R)}.bind({layer:C}),24))),C++}while(t.bubbleScroll&&w!==f&&(w=wi(w,!1)));ad=g}},30),xf=function(t){var o=t.originalEvent,r=t.putSortable,i=t.dragEl,s=t.activeSortable,d=t.dispatchSortableEvent,c=t.hideGhostForTarget,f=t.unhideGhostForTarget;if(!!o){var g=r||s;c();var y=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,C=document.elementFromPoint(y.clientX,y.clientY);f(),g&&!g.el.contains(C)&&(d("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function cd(){}cd.prototype={startIndex:null,dragStart:function(t){var o=t.oldDraggableIndex;this.startIndex=o},onSpill:function(t){var o=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=po(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(o,i):this.sortable.el.appendChild(o),this.sortable.animateAll(),r&&r.animateAll()},drop:xf},ai(cd,{pluginName:"revertOnSpill"});function ud(){}ud.prototype={onSpill:function(t){var o=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),i.animateAll()},drop:xf},ai(ud,{pluginName:"removeOnSpill"}),ot.mount(new A1),ot.mount(ud,cd);function fd(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function kf(e,t,o){const r=o===0?e.children[0]:e.children[o-1].nextSibling;e.insertBefore(t,r)}function S1(){return typeof window<"u"?window.console:global.console}const x1=S1();function k1(e){const t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}const N1=/-(\w)/g,T1=k1(e=>e.replace(N1,(t,o)=>o.toUpperCase())),Nf=["Start","Add","Remove","Update","End"],Tf=["Choose","Unchoose","Sort","Filter","Clone"],Of=["Move"],O1=[Of,Nf,Tf].flatMap(e=>e).map(e=>`on${e}`),pd={manage:Of,manageAndEmit:Nf,emit:Tf};function D1(e){return O1.indexOf(e)!==-1}const B1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function $1(e){return B1.includes(e)}function R1(e){return["transition-group","TransitionGroup"].includes(e)}function Df(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function Bf(e){return e.reduce((t,[o,r])=>(t[o]=r,t),{})}function V1({$attrs:e,componentData:t={}}){return{...Bf(Object.entries(e).filter(([r,i])=>Df(r))),...t}}function I1({$attrs:e,callBackBuilder:t}){const o=Bf($f(e));Object.entries(t).forEach(([i,s])=>{pd[i].forEach(d=>{o[`on${d}`]=s(d)})});const r=`[data-draggable]${o.draggable||""}`;return{...o,draggable:r}}function $f(e){return Object.entries(e).filter(([t,o])=>!Df(t)).map(([t,o])=>[T1(t),o]).filter(([t,o])=>!D1(t))}const Rf=({el:e})=>e,F1=(e,t)=>e.__draggable_context=t,Vf=e=>e.__draggable_context;class M1{constructor({nodes:{header:t,default:o,footer:r},root:i,realList:s}){this.defaultNodes=o,this.children=[...t,...o,...r],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=s}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(t,o){const{tag:r,children:i,_isRootComponent:s}=this;return t(r,o,s?{default:()=>i}:i)}updated(){const{defaultNodes:t,realList:o}=this;t.forEach((r,i)=>{F1(Rf(r),{element:o[i],index:i})})}getUnderlyingVm(t){return Vf(t)}getVmIndexFromDomIndex(t,o){const{defaultNodes:r}=this,{length:i}=r,s=o.children,d=s.item(t);if(d===null)return i;const c=Vf(d);if(c)return c.index;if(i===0)return 0;const f=Rf(r[0]),g=[...s].findIndex(y=>y===f);return t<g?0:i}}function P1(e,t){const o=e[t];return o?o():[]}function L1({$slots:e,realList:t,getKey:o}){const r=t||[],[i,s]=["header","footer"].map(f=>P1(e,f)),{item:d}=e;if(!d)throw new Error("draggable element must have an item slot");const c=r.flatMap((f,g)=>d({element:f,index:g}).map(y=>(y.key=o(f),y.props={...y.props||{},"data-draggable":!0},y)));if(c.length!==r.length)throw new Error("Item slot must have only one child");return{header:i,footer:s,default:c}}function j1(e){const t=R1(e),o=!$1(e)&&!t;return{transition:t,externalComponent:o,tag:o?n.resolveComponent(e):t?n.TransitionGroup:e}}function z1({$slots:e,tag:t,realList:o,getKey:r}){const i=L1({$slots:e,realList:o,getKey:r}),s=j1(t);return new M1({nodes:i,root:s,realList:o})}function If(e,t){n.nextTick(()=>this.$emit(e.toLowerCase(),t))}function Ff(e){return(t,o)=>{if(this.realList!==null)return this[`onDrag${e}`](t,o)}}function H1(e){const t=Ff.call(this,e);return(o,r)=>{t.call(this,o,r),If.call(this,e,o)}}let hd=null;const U1={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},W1=["update:modelValue","change",...[...pd.manageAndEmit,...pd.emit].map(e=>e.toLowerCase())],yo=n.defineComponent({name:"draggable",inheritAttrs:!1,props:U1,emits:W1,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:o,componentData:r,realList:i,getKey:s}=this,d=z1({$slots:e,tag:o,realList:i,getKey:s});this.componentStructure=d;const c=V1({$attrs:t,componentData:r});return d.render(n.h,c)}catch(e){return this.error=!0,n.h("pre",{style:{color:"red"}},e.stack)}},created(){this.list!==null&&this.modelValue!==null&&x1.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:o}=this;o.updated();const r=I1({$attrs:e,callBackBuilder:{manageAndEmit:s=>H1.call(this,s),emit:s=>If.bind(this,s),manage:s=>Ff.call(this,s)}}),i=t.nodeType===1?t:t.parentElement;this._sortable=new ot(i,r),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return typeof e=="function"?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;!t||$f(e).forEach(([o,r])=>{t.option(o,r)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent(e){return e.__draggable_component__},emitChanges(e){n.nextTick(()=>this.$emit("change",e))},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const o=r=>r.splice(t,0,r.splice(e,1)[0]);this.alterList(o)},getRelatedContextFromMoveEvent({to:e,related:t}){const o=this.getUnderlyingPotencialDraggableComponent(e);if(!o)return{component:o};const r=o.realList,i={list:r,component:o};return e!==t&&r?{...o.getUnderlyingVm(t)||{},...i}:i},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),hd=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;fd(e.item);const o=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(o,0,t);const r={element:t,newIndex:o};this.emitChanges({added:r})},onDragRemove(e){if(kf(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){fd(e.clone);return}const{index:t,element:o}=this.context;this.spliceList(t,1);const r={element:o,oldIndex:t};this.emitChanges({removed:r})},onDragUpdate(e){fd(e.item),kf(e.from,e.item,e.oldIndex);const t=this.context.index,o=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,o);const r={element:this.context.element,oldIndex:t,newIndex:o};this.emitChanges({moved:r})},computeFutureIndex(e,t){if(!e.element)return 0;const o=[...t.to.children].filter(d=>d.style.display!=="none"),r=o.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return o.indexOf(hd)!==-1||!t.willInsertAfter?i:i+1},onDragMove(e,t){const{move:o,realList:r}=this;if(!o||!r)return!0;const i=this.getRelatedContextFromMoveEvent(e),s=this.computeFutureIndex(i,e),d={...this.context,futureIndex:s},c={...e,relatedContext:i,draggedContext:d};return o(c,t)},onDragEnd(){hd=null}}});function G1(){return[{name:"template",title:"\u6A21\u677F",list:[]},{name:"main",title:"\u57FA\u7840\u7EC4\u4EF6",list:[]},{name:"subform",title:"\u5B50\u8868\u5355\u7EC4\u4EF6",list:[]},{name:"container",title:"\u5BB9\u5668\u7EC4\u4EF6",list:[]},{name:"chart",title:"\u56FE\u8868\u7EC4\u4EF6",list:[]},{name:"aide",title:"\u8F85\u52A9\u7EC4\u4EF6",list:[]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[]}]}const bo={Add:(e,t)=>{let o,r,i;try{o=e.toString().split(".")[1].length}catch{o=0}try{r=t.toString().split(".")[1].length}catch{r=0}return i=Math.pow(10,Math.max(o,r)),(e*i+t*i)/i},Sub:(e,t)=>{let o,r,i;try{o=e.toString().split(".")[1].length}catch{o=0}try{r=t.toString().split(".")[1].length}catch{r=0}i=Math.pow(10,Math.max(o,r));let s=o>=r?o:r;return Number(((e*i-t*i)/i).toFixed(s))},Mul:(e,t)=>{let o=0,r=e.toString(),i=t.toString();try{o+=r.split(".")[1].length}catch{}try{o+=i.split(".")[1].length}catch{}return Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,o)},Div:(e,t)=>{let o=0,r=0;try{o=e.toString().split(".")[1].length}catch{}try{r=t.toString().split(".")[1].length}catch{}let i=Number(e.toString().replace(".","")),s=Number(t.toString().replace(".",""));return i/s*Math.pow(10,r-o)}},Co={ADD:function(e,t){return bo.Add(e,t)},SUB:function(e,t){return bo.Sub(e,t)},MUL:function(e,t){return bo.Mul(e,t)},DIV:function(e,t){return bo.Div(e,t)},SUM:function(...e){return(e||[]).reduce((t,o)=>bo.Add(t,Array.isArray(o)?Co.SUM(...o):o||0),0)},MAX:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.max(...t.map(o=>parseFloat(o)).filter(o=>!isNaN(o)))},MIN:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.min(...t.map(o=>parseFloat(o)).filter(o=>!isNaN(o)))},ABS:function(e){return parseFloat(Math.abs(e))||0},AVG:function(...e){const t=Array.isArray(e[0])?e[0]:e;return t.length?bo.Div(Co.SUM(t),t.length):0},POWER:function(e,t){return Math.pow(parseFloat(e),parseFloat(t))},RAND:function(){return Math.random()},CEIL:function(e){return Math.ceil(parseFloat(e))||0},FLOOR:function(e){return Math.floor(parseFloat(e)||0)},FIXED:function(e,t){const o=Math.pow(10,t||0);return(Math.floor(parseFloat(e)*o)/o).toFixed(t||0)},ISNUMBER:function(e){return e===""||e===null?!1:!isNaN(Number(e))},PI:function(){return Number(Math.PI)},ROUND:function(e,t){return e=parseFloat(e),isNaN(e)?0:parseFloat(e.toFixed(parseFloat(t)||0))},SQRT:function(e){return Math.sqrt(parseFloat(e))||0},TONUMBER:function(e){return parseFloat(e)||0},NOW:function(){const e=new Date,t=e.getFullYear(),o=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2),i=("0"+e.getHours()).slice(-2),s=("0"+e.getMinutes()).slice(-2),d=("0"+e.getSeconds()).slice(-2);return t+"-"+o+"-"+r+" "+i+":"+s+":"+d},TODAY:function(){const e=new Date,t=e.getFullYear(),o=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2);return t+"-"+o+"-"+r},YEAR:function(e){return e?new Date(e).getFullYear():null},MONTH:function(e){return e?new Date(e).getMonth()+1:null},DAY:function(e){return e?new Date(e).getDate():null},HOUR:function(e){return e?new Date(e).getHours():null},MINUTE:function(e){return e?new Date(e).getMinutes():null},SECOND:function(e){return e?new Date(e).getSeconds():null},DIFFDAYS:function(e,t){const o=new Date(e),r=new Date(t);return parseInt(Math.ceil(Math.abs(r.getTime()-o.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(e,t){const o=new Date(e),r=new Date(t);return parseFloat(Math.abs(r.getTime()-o.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(e,t){const o=new Date(e),r=new Date(t);return parseInt(Math.ceil(Math.abs(r.getTime()-o.getTime())/(1e3*60)))},TIMESTAMP:function(e){return Date.parse(e)},STARTSWITH:function(e,t){return(""+e).substring(0,(""+t).length)===t},EMPTY:function(e){return lt.empty(e)},NOTEMPTY:function(e){return!lt.empty(e)},LEN:function(e){return Array.isArray(e)?e.length:0},MOD:function(e,t){return e=parseFloat(e),t=parseFloat(t),!e||!t||isNaN(e)||isNaN(t)?0:e%t},SLICELEFT:function(e,t){return(""+e).slice(0,Number(t)||0)},SLICERIGHT:function(e,t){return(""+e).slice(Number(t)*-1)},TOLOWER:function(e){return(""+e).toLowerCase()},TOUPPER:function(e){return(""+e).toUpperCase()},INCLUDES:function(e,t){return(e||"").indexOf(t||"")},REPLACE:function(e,t,o){return(e||"").replace(t||"",o||"")},REPLACEALL:function(e,t,o){return(e||"").replaceAll(t||"",o||"")},TRIM:function(e){return(e||"").trim()},TOCHINSESAMOUNT:function(e){let t=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],o=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],r=["","\u62FE","\u4F70","\u4EDF"],i=["\u89D2","\u5206"];function s(w){let A="",E="",_=0,v=!0;for(;w>0;){let m=w%10;m===0?v||(v=!0,E=t[m]+E):(v=!1,A=t[m],A+=r[_],E=A+E),_++,w=Math.floor(w/10)}return E}let d=0,c="",f="",g=!1;if(e===0)return t[0];let y=Math.floor(e),C=Math.round((e-y)*100);for(;y>0;){let w=y%1e4;g&&(f=t[0]+f),c=s(w),c+=w!==0?o[d]:o[0],f=c+f,g=w<1e3&&w>0,y=Math.floor(y/1e4),d++}return f&&(f+="\u5143"),C>0?(f+=t[Math.floor(C/10)]+i[0],C%10!==0&&(f+=t[C%10]+i[1])):f&&(f+="\u6574"),f},UNION:function(...e){return(Array.isArray(e[0])?e[0]:e).filter((o,r,i)=>i.indexOf(o)===r)},AND:function(...e){return!!e.reduce((t,o)=>t&&o,!0)},OR:function(...e){return!!e.reduce((t,o)=>t||o,!1)},IF:function(e,t=!0,o=!1){return e?t:o},DEFAULT:function(e,t){return lt.Undef(e)?t:e},CASE:function(...e){for(let t=0;t<e.length-1;t+=2)if(e[t])return e[t+1];return null},COLUMN:function(e,t){const o=[];return Array.isArray(e)&&e.forEach(function(r){Array.isArray(r)?o.push(...Co.COLUMN(r,t)):r&&o.push(r[t])}),o},VALUE:function(e,t,o){const r=(""+t).split(".");let i=e;for(let s=0;s<r.length;s++)if(Hn(i,r[s]))i=i[r[s]];else return o;return i},CONCAT:function(...e){return"".concat(...e)},INTERSECTIONSET:function(e,t){const o=[];for(let r=0;r<e.length;r++){const i=e[r];t.indexOf(i)!==-1&&o.indexOf(i)===-1&&o.push(i)}return o},LIST:function(...e){return e},IN:function(e,t){return(e||[]).indexOf(t)>-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(e){return!e},EQ:function(e,t){return e===t},GE:function(e,t){return e>=t},GT:function(e,t){return e>t},LE:function(e,t){return e<=t},LT:function(e,t){return e<t},NE:function(e,t){return e!==t}},md={ADD:"ADD(1, 2) = 3",SUB:"SUB(10, 1) = 9",MUL:"MUL(2, 2) = 4",DIV:"DIV(10, 2) = 5",SUM:"SUM(1,2,3) = 6, SUM([5, 6, 7]) = 18",MAX:"MAX(1, 5, 10) = 10",MIN:"MIN(1, 5, 10) = 1",ABS:"ABS(-10) = 10, ABS(10) = 10",AVG:"AVG(2, 4, 6, 8) = 5",POWER:"POWER(2, 4) = 16",RAND:"RAND() = 0.75348173001531",PI:"PI() = 3.141592653589793",ROUND:"ROUND(3.149, 2) = 3.15, ROUND(3.149) = 3",SQRT:"SQRT(9) = 3",NOW:'NOW() = "2024-03-15 12:08:31"',TODAY:'TODAY() = "2024-03-15"',YEAR:'YEAR("2024-03-15 12:08:31") = 2024',MONTH:'MONTH("2024-03-15 12:08:31") = 3',DAY:'DAY("2024-03-15 12:08:31") = 15',HOUR:'HOUR("2024-03-15 12:08:31") = 12',MINUTE:'MINUTE("2024-03-15 12:08:31") = 8',SECOND:'SECOND("2024-03-15 12:08:31") = 31',TIMESTAMP:'TIMESTAMP("2024-03-15 12:08:31") = 1710475711000',DIFFDAYS:'DIFFDAYS("2024-01-15","2024-03-15") = 60',DIFFHOURS:'DIFFHOURS("2024-01-15 12:00:00", "2024-01-16 15:00:00") = 27, DIFFHOURS("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 0.5',DIFFMINUTES:'DIFFMINUTES("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 30',STARTSWITH:'STARTSWITH("ABCDEF","ABC") = true, STARTSWITH("ABCDEF","AD") = false',EMPTY:'EMPTY("") = true, EMPTY([]) = true, EMPTY("0") = false',NOTEMPTY:'NOTEMPTY("") = false, NOTEMPTY([]) = false, NOTEMPTY("0") = true',LEN:'LEN(["a", "b", "c"]) = 3',MOD:"MOD(10, 3) = 1",FLOOR:"FLOOR(1.93) = 1",CEIL:"CEIL(1.93) = 2",FIXED:"FIXED(1.93, 1) = 1.9",ISNUMBER:'ISNUMBER("2.34") = true, ISNUMBER("2.4e") = false',TONUMBER:'TONUMBER("1.5") = 1.5, TONUMBER("2.4e") = 2.4, TONUMBER("ABC") = 0',SLICELEFT:'SLICELEFT("ABCDE", 3) = "ABC"',SLICERIGHT:'SLICERIGHT("ABCDE", 3) = "CDE"',TOLOWER:'TOUPPER("ABCD") = "abcd"',TOUPPER:'TOUPPER("abcd") = "ABCD"',INCLUDES:'INCLUDES("ABCD", "BC") = 1,INCLUDES("ABCD", "E") = -1',REPLACE:'REPLACE("AbAc","A","1") = "1bAc"',REPLACEALL:'REPLACEALL("AbAc","A","1") = "1b1c"',TRIM:'TRIM("\\t\\n ABC \\t\\n") = "ABC"',TOCHINSESAMOUNT:'TOCHINSESAMOUNT(32.14) = "\u53C1\u62FE\u8D30\u5143\u58F9\u89D2\u8086\u5206"',UNION:"UNION(1, 3, 5, 1, 4, 3) = [1, 3, 5, 4], UNION([1, 2, 3, 1, 2, 3]) = [1, 2, 3]",INTERSECTIONSET:"INTERSECTIONSET([1, 3, 5], [1, 4, 3]) = [1, 3]",LIST:"LIST([1, 3, 5], [1, 4, 3]) = [[1, 3, 5], [1, 4, 3]]",AND:"AND(true, true) = true, AND(true, false) = false",OR:"OR(false, false) = false, OR(false, true) = true",IF:"IF(false, 1, 0) = 0, IF(true, 1, 0) = 1",IN:"IN([1,2,3,4], 4) = true, IN([1,2,3,4], 5) = false",DEFAULT:'DEFAULT("#FF7271", "#000") = "#FF7271", DEFAULT("", "#000") = "", DEFAULT(null, "#000") = "#000"',CASE:"CASE(IN([1,2,3,4], 5), 1, IN([1,2,3,4], 2), 2) = 2",COLUMN:'COLUMN([{key: 1}, {key: 2}, {key: 3}],"key") = [1, 2, 3], COLUMN([[{key: 1}, {key: 2}], [{key: 3}, {key: 4}]], "key") = [1, 2, 3, 4]',VALUE:'VALUE({key: 1}, "key", 2) = 1, VALUE({key: 1}, "value", 2) = 2, VALUE({list: {key: 1}}, "list.key") = 1',CONCAT:'CONCAT("ABC", "DEF") = "ABCDEF"',FALSE:"FALSE() = false",TRUE:"FALSE() = true",NOT:"NOT(true) = false, NOT(false) = true",EQ:'EQ(100, 100) = true, EQ(100, 90) = false, EQ(100, "100") = false',GE:"GE(100, 90) = true, GE(100, 100) = true, GE(100, 110) = false",GT:"GT(100, 90) = true, GT(100, 100) = false, GT(100, 110) = false",LE:"LE(100, 90) = false, LE(100, 100) = true, LE(100, 110) = true",LT:"LT(100, 90) = false, LT(100, 100) = false, LT(100, 110) = true",NE:'NE(100, 90) = true, NE(100, 100) = false, NE(100, "100") = true'},Mf=[{key:"math",children:["TONUMBER","ADD","SUB","MUL","DIV","SUM","MAX","MIN","ABS","AVG","MOD","SQRT","POWER","RAND","PI","ROUND","FLOOR","CEIL","FIXED","TOCHINSESAMOUNT"]},{key:"string",children:["STARTSWITH","SLICELEFT","SLICERIGHT","TOLOWER","TOUPPER","INCLUDES","CONCAT","REPLACE","REPLACEALL","TRIM"]},{key:"date",children:["NOW","TODAY","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","DIFFDAYS","DIFFHOURS","DIFFMINUTES","TIMESTAMP"]},{key:"collection",children:["IN","LEN","UNION","COLUMN","VALUE","INTERSECTIONSET","LIST"]},{key:"condition",children:["IF","AND","OR","CASE","NOT","EQ","NE","GE","GT","LE","LT","TRUE","FALSE","DEFAULT","EMPTY","NOTEMPTY","ISNUMBER"]}],K1=(e,t)=>{let o=[e];const r=t.split(".");let i=1;for(;r[i];){let s=[];o.forEach(d=>{Object.values(d.ctxs).forEach(c=>{if(c.rule._fc_id===r[i-1]){const f=d.subForm[c.id];s.push(...Array.isArray(f)?f:[f])}})}),o=s.map(d=>d.rule[0].__fc__.$handle),i++}return[o,r[i-1]]},$a=(e,t,o)=>{const r=e.vm.setupState.top.setupState.fc.$handle;let i=[e.$handle];e.$handle!==r&&i.push(r);let s=t;t.indexOf(".")>-1&&([i,s]=K1(r,t)),i.forEach(d=>{Object.values(d.ctxs).forEach(c=>{c.rule._fc_id===s&&o(c.rule,d.api)})})},gd={openModel(e,t){t.api.open(e.model)},closeModel(e,t){t.api.close(e.model)},hidden(e,t,o){const r=typeof e.id=="string"?[e.id]:e.id||[];let i=!!e.status;e.compute&&(i=!!o.$handle.compute(t.self.__fc__,e.formula)),r.forEach(s=>{$a(o,s,d=>{d.hidden=i})})},disabled(e,t,o){const r=typeof e.id=="string"?[e.id]:e.id||[];let i=!!e.status;e.compute&&(i=!!o.$handle.compute(t.self.__fc__,e.formula)),r.forEach(s=>{$a(o,s,d=>{d.props||(d.props={}),d.props.disabled=i})})},resetFields(e,t){t.api.top.resetFields()},clearFields(e,t){t.api.top.coverValue({})},validate(e,t){return t.api.top.validate()},validateFields(e,t,o){const r=typeof e.id=="string"?[e.id]:e.id||[],i=[];return r.forEach(s=>{$a(o,s,(d,c)=>{d.field&&i.push(c.validateField(d.field))})}),i.length?Promise.all(i):void 0},submit(e,t){return t.api.top.submit()},setValue(e,t,o){(e.formData||[]).forEach(r=>{let i=r.value;r.compute&&(i=o.$handle.compute(t.self.__fc__,r.formula)),$a(o,r.id,s=>{s.value=i})})},fetch(e,t){const{append:o,response:r,fetch:i}=e;return o&&(i.data={...t.api.formData(),...i.data||{}}),new Promise((s,d)=>{t.api.fetch(e.fetch).then(c=>{r&&t.api.setData(r,c),s(c)}).catch(c=>{d(c)})})},copy(e,t,o){let r=e.content||"";e.compute&&(r=o.$handle.compute(t.self.__fc__,e.formula)),Wn(r)},callback(e,t){return e.callback&&e.callback(t)},message(e){Yl.message[e.type||"info"]({content:e.message,duration:e.duration})}},Pf=[{key:"model",children:["openModel","closeModel","message"]},{key:"form",children:["hidden","disabled","resetFields","clearFields","setValue","validate","validateFields","submit"]},{key:"other",children:["fetch","copy","callback"]}],Lf={openModel(e){return[{type:"select",field:"model",$required:!0,options:e.pageData.filter(t=>!t.default).map(t=>{const o=t.main._menu;return{label:uo(t.main,t.config.labelField,"")||e.t("com."+o.name+".name")||o.label,value:t.main.name}})}]},message(e){return[{type:"radio",field:"type",value:"info",props:{optionType:"button"},options:st(e.t,["info","warning","success","error"].map(t=>({label:t,value:t})))},{type:"input",$required:!0,field:"message"},{type:"inputNumber",field:"duration"}]},hidden(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.show"),value:!1},{label:t("props.hide"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{btn:t("behavior.props.setFormula"),title:t("behavior.props.setFormula"),name:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]},disabled(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},validateFields(){return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}}]},setValue(e){const t=e.t;return[{type:"group",field:"formData",wrap:{wrapperCol:{span:24}},props:{expand:1,rule:[{type:"RuleSelect",field:"id",title:t("behavior.props.id"),$required:!0,props:{onlyField:!0}},{type:"radio",field:"compute",value:!1,title:t("behavior.props.compute"),options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"ValueInput",field:"value",title:t("props.value"),$required:!0}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",title:t("behavior.props.formula"),$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]}}]},fetch(){return[{type:"FetchConfig",field:"fetch",$required:!0},{type:"switch",field:"append",value:!1},{type:"input",field:"response",value:"res_"+Ye()}]},copy(e){const t=e.t;return[{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"input",field:"content",$required:!0,props:{type:"textarea"},options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},callback(e){return[{type:"FnInput",field:"callback",$required:!0,props:{name:"callback",args:[yn(e.t)]}}]}};function Y1(e,t){return e.reduce((o,r)=>o.then(()=>r(t)),Promise.resolve())}const Q1=function(e){return{name:"behavior",load(t,o){const r=t.getValue(),i={},s={};r&&Object.keys(r).forEach(d=>{if(Array.isArray(r[d])){const c=[];if(r[d].forEach(f=>{const{method:g,config:y,expression:C,stopPropagation:w,ignoreError:A}=f;c.push(E=>new Promise(_=>{if(C&&e.$handle.compute(o.__fc__,C)===!1){_();return}const v=(...b)=>{(!w||e.$handle.compute(o.__fc__,w)!==!0)&&_(...b)};let m;try{m=gd[g](y||{},E,e)}catch(b){console.error(b),A!==!1&&v();return}m&&m.then?m.then(v).catch(()=>{A!==!1&&v()}):v(m)}))}),c.length){const f=e.$handle.inject(o,function(g){Y1(c,g)},o.inject||e.$handle.options.injectEvent);d.indexOf("hook_")>-1?s[d.replace("hook_","")]=f:i[d]=f}}}),t.getProp().on=i,t.getProp().hook=s}}},Ra={name:"easySlots",load(e){const t=e.getValue(),o={};t&&Object.keys(t).forEach(r=>{o[r]=t[r].type==="icon"?{type:"i",class:"fc-icon iconfont "+t[r].value}:{type:"div",children:[""+(t[r].value||"")]}}),e.getProp().renderSlots=o}};Ra.watch=Ra.load;const X1=Object.assign||function(e){for(let t,o=1;o<arguments.length;o++)for(let r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&lo(e,r,t[r]);return e};function vd(){return X1.apply(this,arguments)}function J1(e){return typeof e!="object"||e===null?e:e instanceof Array?[...e]:{...e}}function jf(e){e.__proto__.setBehavior=t=>{vd(gd,t)},e.extendApi(t=>({open(o,...r){(t.el(o)||t.top.el(o)).open(...r)},close(o){o?(t.el(o)||t.top.el(o)).close():(t.top.bus.$emit("fc.closeDialog"),t!==t.top&&t.bus.$emit("fc.closeDialog"))}}))}la.default.parser().preview=cv,Object.keys(Co).forEach(e=>{la.default.setFormula(e,Co[e])});const Qn=la.default,je=la.default.factory();jf(Qn),jf(je),Qn.register("behavior",Q1),Qn.register("easySlots",Ra),je.register("easySlots",Ra);let zf=null,Va=n.ref(null);function Ia(...e){return zf(...e)}const Hf=e=>{Va.value=e||Ru;const t=ts(Va);return zf=t.t,t};Hf();const AP="",SP="";var yd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bd={exports:{}},Uf;function _o(){return Uf||(Uf=1,function(e,t){(function(o,r){e.exports=r()})(yd,function(){var o=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(o),s=/MSIE \d/.test(o),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),c=/Edge\/(\d+)/.exec(o),f=s||d||c,g=f&&(s?document.documentMode||6:+(c||d)[1]),y=!c&&/WebKit\//.test(o),C=y&&/Qt\/\d+\.\d+/.test(o),w=!c&&/Chrome\/(\d+)/.exec(o),A=w&&+w[1],E=/Opera\//.test(o),_=/Apple Computer/.test(navigator.vendor),v=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),m=/PhantomJS/.test(o),b=_&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),S=/Android/.test(o),x=b||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),O=b||/Mac/.test(r),D=/\bCrOS\b/.test(o),V=/win/i.test(r),I=E&&o.match(/Version\/(\d*\.\d*)/);I&&(I=Number(I[1])),I&&I>=15&&(E=!1,y=!0);var z=O&&(C||E&&(I==null||I<12.11)),T=i||f&&g>=9;function B(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var L=function(a,l){var p=a.className,u=B(l).exec(p);if(u){var h=p.slice(u.index+u[0].length);a.className=p.slice(0,u.index)+(h?u[1]+h:"")}};function U(a){for(var l=a.childNodes.length;l>0;--l)a.removeChild(a.firstChild);return a}function W(a,l){return U(a).appendChild(l)}function R(a,l,p,u){var h=document.createElement(a);if(p&&(h.className=p),u&&(h.style.cssText=u),typeof l=="string")h.appendChild(document.createTextNode(l));else if(l)for(var N=0;N<l.length;++N)h.appendChild(l[N]);return h}function k(a,l,p,u){var h=R(a,l,p,u);return h.setAttribute("role","presentation"),h}var P;document.createRange?P=function(a,l,p,u){var h=document.createRange();return h.setEnd(u||a,p),h.setStart(a,l),h}:P=function(a,l,p){var u=document.body.createTextRange();try{u.moveToElementText(a.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",p),u.moveStart("character",l),u};function j(a,l){if(l.nodeType==3&&(l=l.parentNode),a.contains)return a.contains(l);do if(l.nodeType==11&&(l=l.host),l==a)return!0;while(l=l.parentNode)}function Z(a){var l;try{l=a.activeElement}catch{l=a.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function J(a,l){var p=a.className;B(l).test(p)||(a.className+=(p?" ":"")+l)}function F(a,l){for(var p=a.split(" "),u=0;u<p.length;u++)p[u]&&!B(p[u]).test(l)&&(l+=" "+p[u]);return l}var oe=function(a){a.select()};b?oe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:f&&(oe=function(a){try{a.select()}catch{}});function pe(a){return a.display.wrapper.ownerDocument}function se(a){return pe(a).defaultView}function ye(a){var l=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,l)}}function fe(a,l,p){l||(l={});for(var u in a)a.hasOwnProperty(u)&&(p!==!1||!l.hasOwnProperty(u))&&(l[u]=a[u]);return l}function ue(a,l,p,u,h){l==null&&(l=a.search(/[^\s\u00a0]/),l==-1&&(l=a.length));for(var N=u||0,M=h||0;;){var H=a.indexOf(" ",N);if(H<0||H>=l)return M+(l-N);M+=H-N,M+=p-M%p,N=H+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=ye(this.onTimeout,this)};he.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},he.prototype.set=function(a,l){this.f=l;var p=+new Date+a;(!this.id||p<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=p)};function $(a,l){for(var p=0;p<a.length;++p)if(a[p]==l)return p;return-1}var Y=50,Q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},te={origin:"*mouse"},q={origin:"+move"};function ie(a,l,p){for(var u=0,h=0;;){var N=a.indexOf(" ",u);N==-1&&(N=a.length);var M=N-u;if(N==a.length||h+M>=l)return u+Math.min(M,l-h);if(h+=N-u,h+=p-h%p,u=N+1,h>=l)return u}}var de=[""];function Ee(a){for(;de.length<=a;)de.push(Se(de)+" ");return de[a]}function Se(a){return a[a.length-1]}function ke(a,l){for(var p=[],u=0;u<a.length;u++)p[u]=l(a[u],u);return p}function qe(a,l,p){for(var u=0,h=p(l);u<a.length&&p(a[u])<=h;)u++;a.splice(u,0,l)}function Ve(){}function ge(a,l){var p;return Object.create?p=Object.create(a):(Ve.prototype=a,p=new Ve),l&&fe(l,p),p}var Ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function le(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Ae.test(a))}function we(a,l){return l?l.source.indexOf("\\w")>-1&&le(a)?!0:l.test(a):le(a)}function Ie(a){for(var l in a)if(a.hasOwnProperty(l)&&a[l])return!1;return!0}var ze=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ct(a){return a.charCodeAt(0)>=768&&ze.test(a)}function rt(a,l,p){for(;(p<0?l>0:l<a.length)&&ct(a.charAt(l));)l+=p;return l}function Fe(a,l,p){for(var u=l>p?-1:1;;){if(l==p)return l;var h=(l+p)/2,N=u<0?Math.ceil(h):Math.floor(h);if(N==l)return a(N)?l:p;a(N)?p=N:l=N+u}}function Ct(a,l,p,u){if(!a)return u(l,p,"ltr",0);for(var h=!1,N=0;N<a.length;++N){var M=a[N];(M.from<p&&M.to>l||l==p&&M.to==l)&&(u(Math.max(M.from,l),Math.min(M.to,p),M.level==1?"rtl":"ltr",N),h=!0)}h||u(l,p,"ltr")}var Ze=null;function Te(a,l,p){var u;Ze=null;for(var h=0;h<a.length;++h){var N=a[h];if(N.from<l&&N.to>l)return h;N.to==l&&(N.from!=N.to&&p=="before"?u=h:Ze=h),N.from==l&&(N.from!=N.to&&p!="before"?u=h:Ze=h)}return u!=null?u:Ze}var Re=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function p(X){return X<=247?a.charAt(X):1424<=X&&X<=1524?"R":1536<=X&&X<=1785?l.charAt(X-1536):1774<=X&&X<=2220?"r":8192<=X&&X<=8203?"w":X==8204?"b":"L"}var u=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,N=/[LRr]/,M=/[Lb1n]/,H=/[1n]/;function G(X,ne,re){this.level=X,this.from=ne,this.to=re}return function(X,ne){var re=ne=="ltr"?"L":"R";if(X.length==0||ne=="ltr"&&!u.test(X))return!1;for(var ve=X.length,me=[],_e=0;_e<ve;++_e)me.push(p(X.charCodeAt(_e)));for(var xe=0,Ne=re;xe<ve;++xe){var Be=me[xe];Be=="m"?me[xe]=Ne:Ne=Be}for(var Le=0,$e=re;Le<ve;++Le){var He=me[Le];He=="1"&&$e=="r"?me[Le]="n":N.test(He)&&($e=He,He=="r"&&(me[Le]="R"))}for(var Je=1,Qe=me[0];Je<ve-1;++Je){var ut=me[Je];ut=="+"&&Qe=="1"&&me[Je+1]=="1"?me[Je]="1":ut==","&&Qe==me[Je+1]&&(Qe=="1"||Qe=="n")&&(me[Je]=Qe),Qe=ut}for(var _t=0;_t<ve;++_t){var Gt=me[_t];if(Gt==",")me[_t]="N";else if(Gt=="%"){var Tt=void 0;for(Tt=_t+1;Tt<ve&&me[Tt]=="%";++Tt);for(var vn=_t&&me[_t-1]=="!"||Tt<ve&&me[Tt]=="1"?"1":"N",sn=_t;sn<Tt;++sn)me[sn]=vn;_t=Tt-1}}for(var It=0,dn=re;It<ve;++It){var Yt=me[It];dn=="L"&&Yt=="1"?me[It]="L":N.test(Yt)&&(dn=Yt)}for(var Lt=0;Lt<ve;++Lt)if(h.test(me[Lt])){var Ft=void 0;for(Ft=Lt+1;Ft<ve&&h.test(me[Ft]);++Ft);for(var Bt=(Lt?me[Lt-1]:re)=="L",cn=(Ft<ve?me[Ft]:re)=="L",nr=Bt==cn?Bt?"L":"R":re,ji=Lt;ji<Ft;++ji)me[ji]=nr;Lt=Ft-1}for(var Jt=[],ri,Kt=0;Kt<ve;)if(M.test(me[Kt])){var Tu=Kt;for(++Kt;Kt<ve&&M.test(me[Kt]);++Kt);Jt.push(new G(0,Tu,Kt))}else{var Ci=Kt,ro=Jt.length,ao=ne=="rtl"?1:0;for(++Kt;Kt<ve&&me[Kt]!="L";++Kt);for(var tn=Ci;tn<Kt;)if(H.test(me[tn])){Ci<tn&&(Jt.splice(ro,0,new G(1,Ci,tn)),ro+=ao);var ir=tn;for(++tn;tn<Kt&&H.test(me[tn]);++tn);Jt.splice(ro,0,new G(2,ir,tn)),ro+=ao,Ci=tn}else++tn;Ci<Kt&&Jt.splice(ro,0,new G(1,Ci,Kt))}return ne=="ltr"&&(Jt[0].level==1&&(ri=X.match(/^\s+/))&&(Jt[0].from=ri[0].length,Jt.unshift(new G(0,0,ri[0].length))),Se(Jt).level==1&&(ri=X.match(/\s+$/))&&(Se(Jt).to-=ri[0].length,Jt.push(new G(0,ve-ri[0].length,ve)))),ne=="rtl"?Jt.reverse():Jt}}();function Xe(a,l){var p=a.order;return p==null&&(p=a.order=Re(a.text,l)),p}var De=[],be=function(a,l,p){if(a.addEventListener)a.addEventListener(l,p,!1);else if(a.attachEvent)a.attachEvent("on"+l,p);else{var u=a._handlers||(a._handlers={});u[l]=(u[l]||De).concat(p)}};function Ke(a,l){return a._handlers&&a._handlers[l]||De}function Ue(a,l,p){if(a.removeEventListener)a.removeEventListener(l,p,!1);else if(a.detachEvent)a.detachEvent("on"+l,p);else{var u=a._handlers,h=u&&u[l];if(h){var N=$(h,p);N>-1&&(u[l]=h.slice(0,N).concat(h.slice(N+1)))}}}function We(a,l){var p=Ke(a,l);if(!!p.length)for(var u=Array.prototype.slice.call(arguments,2),h=0;h<p.length;++h)p[h].apply(null,u)}function at(a,l,p){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),We(a,p||l.type,a,l),Ni(l)||l.codemirrorIgnore}function on(a){var l=a._handlers&&a._handlers.cursorActivity;if(!!l)for(var p=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),u=0;u<l.length;++u)$(p,l[u])==-1&&p.push(l[u])}function Nt(a,l){return Ke(a,l).length>0}function wt(a){a.prototype.on=function(l,p){be(this,l,p)},a.prototype.off=function(l,p){Ue(this,l,p)}}function mt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Bn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Ni(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Fn(a){mt(a),Bn(a)}function rn(a){return a.target||a.srcElement}function Dr(a){var l=a.which;return l==null&&(a.button&1?l=1:a.button&2?l=3:a.button&4&&(l=2)),O&&a.ctrlKey&&l==1&&(l=3),l}var Fc=function(){if(f&&g<9)return!1;var a=R("div");return"draggable"in a||"dragDrop"in a}(),$n;function Mc(a){if($n==null){var l=R("span","\u200B");W(a,R("span",[l,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&($n=l.offsetWidth<=1&&l.offsetHeight>2&&!(f&&g<8))}var p=$n?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return p.setAttribute("cm-text",""),p}var Io;function hl(a){if(Io!=null)return Io;var l=W(a,document.createTextNode("A\u062EA")),p=P(l,0,1).getBoundingClientRect(),u=P(l,1,2).getBoundingClientRect();return U(a),!p||p.left==p.right?!1:Io=u.right-p.right<3}var Br=`
b`.split(/\n/).length!=3?function(a){for(var l=0,p=[],u=a.length;l<=u;){var h=a.indexOf(`
`,l);h==-1&&(h=a.length);var N=a.slice(l,a.charAt(h-1)=="\r"?h-1:h),M=N.indexOf("\r");M!=-1?(p.push(N.slice(0,M)),l+=M+1):(p.push(N),l=h+1)}return p}:function(a){return a.split(/\r\n?|\n/)},Ti=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var l;try{l=a.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=a?!1:l.compareEndPoints("StartToEnd",l)!=0},qn=function(){var a=R("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),ei=null;function ml(a){if(ei!=null)return ei;var l=W(a,R("span","x")),p=l.getBoundingClientRect(),u=P(l,0,1).getBoundingClientRect();return ei=Math.abs(p.left-u.left)>1}var Mn={},Oi={};function gl(a,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),Mn[a]=l}function Fo(a,l){Oi[a]=l}function mn(a){if(typeof a=="string"&&Oi.hasOwnProperty(a))a=Oi[a];else if(a&&typeof a.name=="string"&&Oi.hasOwnProperty(a.name)){var l=Oi[a.name];typeof l=="string"&&(l={name:l}),a=ge(l,a),a.name=l.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return mn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return mn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function fi(a,l){l=mn(l);var p=Mn[l.name];if(!p)return fi(a,"text/plain");var u=p(a,l);if(Di.hasOwnProperty(l.name)){var h=Di[l.name];for(var N in h)!h.hasOwnProperty(N)||(u.hasOwnProperty(N)&&(u["_"+N]=u[N]),u[N]=h[N])}if(u.name=l.name,l.helperType&&(u.helperType=l.helperType),l.modeProps)for(var M in l.modeProps)u[M]=l.modeProps[M];return u}var Di={};function vl(a,l){var p=Di.hasOwnProperty(a)?Di[a]:Di[a]={};fe(l,p)}function pi(a,l){if(l===!0)return l;if(a.copyState)return a.copyState(l);var p={};for(var u in l){var h=l[u];h instanceof Array&&(h=h.concat([])),p[u]=h}return p}function Bi(a,l){for(var p;a.innerMode&&(p=a.innerMode(l),!(!p||p.mode==a));)l=p.state,a=p.mode;return p||{mode:a,state:l}}function $r(a,l,p){return a.startState?a.startState(l,p):!0}var Dt=function(a,l,p){this.pos=this.start=0,this.string=a,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.prototype.eat=function(a){var l=this.string.charAt(this.pos),p;if(typeof a=="string"?p=l==a:p=l&&(a.test?a.test(l):a(l)),p)return++this.pos,l},Dt.prototype.eatWhile=function(a){for(var l=this.pos;this.eat(a););return this.pos>l},Dt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(a){var l=this.string.indexOf(a,this.pos);if(l>-1)return this.pos=l,!0},Dt.prototype.backUp=function(a){this.pos-=a},Dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.indentation=function(){return ue(this.string,null,this.tabSize)-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.match=function(a,l,p){if(typeof a=="string"){var u=function(M){return p?M.toLowerCase():M},h=this.string.substr(this.pos,a.length);if(u(h)==u(a))return l!==!1&&(this.pos+=a.length),!0}else{var N=this.string.slice(this.pos).match(a);return N&&N.index>0?null:(N&&l!==!1&&(this.pos+=N[0].length),N)}},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(a,l){this.lineStart+=a;try{return l()}finally{this.lineStart-=a}},Dt.prototype.lookAhead=function(a){var l=this.lineOracle;return l&&l.lookAhead(a)},Dt.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ge(a,l){if(l-=a.first,l<0||l>=a.size)throw new Error("There is no line "+(l+a.first)+" in the document.");for(var p=a;!p.lines;)for(var u=0;;++u){var h=p.children[u],N=h.chunkSize();if(l<N){p=h;break}l-=N}return p.lines[l]}function hi(a,l,p){var u=[],h=l.line;return a.iter(l.line,p.line+1,function(N){var M=N.text;h==p.line&&(M=M.slice(0,p.ch)),h==l.line&&(M=M.slice(l.ch)),u.push(M),++h}),u}function Mo(a,l,p){var u=[];return a.iter(l,p,function(h){u.push(h.text)}),u}function Rn(a,l){var p=l-a.height;if(p)for(var u=a;u;u=u.parent)u.height+=p}function gt(a){if(a.parent==null)return null;for(var l=a.parent,p=$(l.lines,a),u=l.parent;u;l=u,u=u.parent)for(var h=0;u.children[h]!=l;++h)p+=u.children[h].chunkSize();return p+l.first}function ti(a,l){var p=a.first;e:do{for(var u=0;u<a.children.length;++u){var h=a.children[u],N=h.height;if(l<N){a=h;continue e}l-=N,p+=h.chunkSize()}return p}while(!a.lines);for(var M=0;M<a.lines.length;++M){var H=a.lines[M],G=H.height;if(l<G)break;l-=G}return p+M}function ee(a,l){return l>=a.first&&l<a.first+a.size}function ae(a,l){return String(a.lineNumberFormatter(l+a.firstLineNumber))}function ce(a,l,p){if(p===void 0&&(p=null),!(this instanceof ce))return new ce(a,l,p);this.line=a,this.ch=l,this.sticky=p}function Ce(a,l){return a.line-l.line||a.ch-l.ch}function tt(a,l){return a.sticky==l.sticky&&Ce(a,l)==0}function ft(a){return ce(a.line,a.ch)}function ht(a,l){return Ce(a,l)<0?l:a}function Pt(a,l){return Ce(a,l)<0?a:l}function xn(a,l){return Math.max(a.first,Math.min(l,a.first+a.size-1))}function nt(a,l){if(l.line<a.first)return ce(a.first,0);var p=a.first+a.size-1;return l.line>p?ce(p,Ge(a,p).text.length):kI(l,Ge(a,l.line).text.length)}function kI(a,l){var p=a.ch;return p==null||p>l?ce(a.line,l):p<0?ce(a.line,0):a}function lm(a,l){for(var p=[],u=0;u<l.length;u++)p[u]=nt(a,l[u]);return p}var yl=function(a,l){this.state=a,this.lookAhead=l},ni=function(a,l,p,u){this.state=l,this.doc=a,this.line=p,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};ni.prototype.lookAhead=function(a){var l=this.doc.getLine(this.line+a);return l!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),l},ni.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},ni.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ni.fromSaved=function(a,l,p){return l instanceof yl?new ni(a,pi(a.mode,l.state),p,l.lookAhead):new ni(a,pi(a.mode,l),p)},ni.prototype.save=function(a){var l=a!==!1?pi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yl(l,this.maxLookAhead):l};function sm(a,l,p,u){var h=[a.state.modeGen],N={};hm(a,l.text,a.doc.mode,p,function(X,ne){return h.push(X,ne)},N,u);for(var M=p.state,H=function(X){p.baseTokens=h;var ne=a.state.overlays[X],re=1,ve=0;p.state=!0,hm(a,l.text,ne.mode,p,function(me,_e){for(var xe=re;ve<me;){var Ne=h[re];Ne>me&&h.splice(re,1,me,h[re+1],Ne),re+=2,ve=Math.min(me,Ne)}if(!!_e)if(ne.opaque)h.splice(xe,re-xe,me,"overlay "+_e),re=xe+2;else for(;xe<re;xe+=2){var Be=h[xe+1];h[xe+1]=(Be?Be+" ":"")+"overlay "+_e}},N),p.state=M,p.baseTokens=null,p.baseTokenPos=1},G=0;G<a.state.overlays.length;++G)H(G);return{styles:h,classes:N.bgClass||N.textClass?N:null}}function dm(a,l,p){if(!l.styles||l.styles[0]!=a.state.modeGen){var u=Rr(a,gt(l)),h=l.text.length>a.options.maxHighlightLength&&pi(a.doc.mode,u.state),N=sm(a,l,u);h&&(u.state=h),l.stateAfter=u.save(!h),l.styles=N.styles,N.classes?l.styleClasses=N.classes:l.styleClasses&&(l.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return l.styles}function Rr(a,l,p){var u=a.doc,h=a.display;if(!u.mode.startState)return new ni(u,!0,l);var N=NI(a,l,p),M=N>u.first&&Ge(u,N-1).stateAfter,H=M?ni.fromSaved(u,M,N):new ni(u,$r(u.mode),N);return u.iter(N,l,function(G){Pc(a,G.text,H);var X=H.line;G.stateAfter=X==l-1||X%5==0||X>=h.viewFrom&&X<h.viewTo?H.save():null,H.nextLine()}),p&&(u.modeFrontier=H.line),H}function Pc(a,l,p,u){var h=a.doc.mode,N=new Dt(l,a.options.tabSize,p);for(N.start=N.pos=u||0,l==""&&cm(h,p.state);!N.eol();)Lc(h,N,p.state),N.start=N.pos}function cm(a,l){if(a.blankLine)return a.blankLine(l);if(!!a.innerMode){var p=Bi(a,l);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}function Lc(a,l,p,u){for(var h=0;h<10;h++){u&&(u[0]=Bi(a,p).mode);var N=a.token(l,p);if(l.pos>l.start)return N}throw new Error("Mode "+a.name+" failed to advance stream.")}var um=function(a,l,p){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=l||null,this.state=p};function fm(a,l,p,u){var h=a.doc,N=h.mode,M;l=nt(h,l);var H=Ge(h,l.line),G=Rr(a,l.line,p),X=new Dt(H.text,a.options.tabSize,G),ne;for(u&&(ne=[]);(u||X.pos<l.ch)&&!X.eol();)X.start=X.pos,M=Lc(N,X,G.state),u&&ne.push(new um(X,M,pi(h.mode,G.state)));return u?ne:new um(X,M,G.state)}function pm(a,l){if(a)for(;;){var p=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!p)break;a=a.slice(0,p.index)+a.slice(p.index+p[0].length);var u=p[1]?"bgClass":"textClass";l[u]==null?l[u]=p[2]:new RegExp("(?:^|\\s)"+p[2]+"(?:$|\\s)").test(l[u])||(l[u]+=" "+p[2])}return a}function hm(a,l,p,u,h,N,M){var H=p.flattenSpans;H==null&&(H=a.options.flattenSpans);var G=0,X=null,ne=new Dt(l,a.options.tabSize,u),re,ve=a.options.addModeClass&&[null];for(l==""&&pm(cm(p,u.state),N);!ne.eol();){if(ne.pos>a.options.maxHighlightLength?(H=!1,M&&Pc(a,l,u,ne.pos),ne.pos=l.length,re=null):re=pm(Lc(p,ne,u.state,ve),N),ve){var me=ve[0].name;me&&(re="m-"+(re?me+" "+re:me))}if(!H||X!=re){for(;G<ne.start;)G=Math.min(ne.start,G+5e3),h(G,X);X=re}ne.start=ne.pos}for(;G<ne.pos;){var _e=Math.min(ne.pos,G+5e3);h(_e,X),G=_e}}function NI(a,l,p){for(var u,h,N=a.doc,M=p?-1:l-(a.doc.mode.innerMode?1e3:100),H=l;H>M;--H){if(H<=N.first)return N.first;var G=Ge(N,H-1),X=G.stateAfter;if(X&&(!p||H+(X instanceof yl?X.lookAhead:0)<=N.modeFrontier))return H;var ne=ue(G.text,null,a.options.tabSize);(h==null||u>ne)&&(h=H-1,u=ne)}return h}function TI(a,l){if(a.modeFrontier=Math.min(a.modeFrontier,l),!(a.highlightFrontier<l-10)){for(var p=a.first,u=l-1;u>p;u--){var h=Ge(a,u).stateAfter;if(h&&(!(h instanceof yl)||u+h.lookAhead<l)){p=u+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,p)}}var mm=!1,mi=!1;function OI(){mm=!0}function DI(){mi=!0}function bl(a,l,p){this.marker=a,this.from=l,this.to=p}function Vr(a,l){if(a)for(var p=0;p<a.length;++p){var u=a[p];if(u.marker==l)return u}}function BI(a,l){for(var p,u=0;u<a.length;++u)a[u]!=l&&(p||(p=[])).push(a[u]);return p}function $I(a,l,p){var u=p&&window.WeakSet&&(p.markedSpans||(p.markedSpans=new WeakSet));u&&a.markedSpans&&u.has(a.markedSpans)?a.markedSpans.push(l):(a.markedSpans=a.markedSpans?a.markedSpans.concat([l]):[l],u&&u.add(a.markedSpans)),l.marker.attachLine(a)}function RI(a,l,p){var u;if(a)for(var h=0;h<a.length;++h){var N=a[h],M=N.marker,H=N.from==null||(M.inclusiveLeft?N.from<=l:N.from<l);if(H||N.from==l&&M.type=="bookmark"&&(!p||!N.marker.insertLeft)){var G=N.to==null||(M.inclusiveRight?N.to>=l:N.to>l);(u||(u=[])).push(new bl(M,N.from,G?null:N.to))}}return u}function VI(a,l,p){var u;if(a)for(var h=0;h<a.length;++h){var N=a[h],M=N.marker,H=N.to==null||(M.inclusiveRight?N.to>=l:N.to>l);if(H||N.from==l&&M.type=="bookmark"&&(!p||N.marker.insertLeft)){var G=N.from==null||(M.inclusiveLeft?N.from<=l:N.from<l);(u||(u=[])).push(new bl(M,G?null:N.from-l,N.to==null?null:N.to-l))}}return u}function jc(a,l){if(l.full)return null;var p=ee(a,l.from.line)&&Ge(a,l.from.line).markedSpans,u=ee(a,l.to.line)&&Ge(a,l.to.line).markedSpans;if(!p&&!u)return null;var h=l.from.ch,N=l.to.ch,M=Ce(l.from,l.to)==0,H=RI(p,h,M),G=VI(u,N,M),X=l.text.length==1,ne=Se(l.text).length+(X?h:0);if(H)for(var re=0;re<H.length;++re){var ve=H[re];if(ve.to==null){var me=Vr(G,ve.marker);me?X&&(ve.to=me.to==null?null:me.to+ne):ve.to=h}}if(G)for(var _e=0;_e<G.length;++_e){var xe=G[_e];if(xe.to!=null&&(xe.to+=ne),xe.from==null){var Ne=Vr(H,xe.marker);Ne||(xe.from=ne,X&&(H||(H=[])).push(xe))}else xe.from+=ne,X&&(H||(H=[])).push(xe)}H&&(H=gm(H)),G&&G!=H&&(G=gm(G));var Be=[H];if(!X){var Le=l.text.length-2,$e;if(Le>0&&H)for(var He=0;He<H.length;++He)H[He].to==null&&($e||($e=[])).push(new bl(H[He].marker,null,null));for(var Je=0;Je<Le;++Je)Be.push($e);Be.push(G)}return Be}function gm(a){for(var l=0;l<a.length;++l){var p=a[l];p.from!=null&&p.from==p.to&&p.marker.clearWhenEmpty!==!1&&a.splice(l--,1)}return a.length?a:null}function II(a,l,p){var u=null;if(a.iter(l.line,p.line+1,function(me){if(me.markedSpans)for(var _e=0;_e<me.markedSpans.length;++_e){var xe=me.markedSpans[_e].marker;xe.readOnly&&(!u||$(u,xe)==-1)&&(u||(u=[])).push(xe)}}),!u)return null;for(var h=[{from:l,to:p}],N=0;N<u.length;++N)for(var M=u[N],H=M.find(0),G=0;G<h.length;++G){var X=h[G];if(!(Ce(X.to,H.from)<0||Ce(X.from,H.to)>0)){var ne=[G,1],re=Ce(X.from,H.from),ve=Ce(X.to,H.to);(re<0||!M.inclusiveLeft&&!re)&&ne.push({from:X.from,to:H.from}),(ve>0||!M.inclusiveRight&&!ve)&&ne.push({from:H.to,to:X.to}),h.splice.apply(h,ne),G+=ne.length-3}}return h}function vm(a){var l=a.markedSpans;if(!!l){for(var p=0;p<l.length;++p)l[p].marker.detachLine(a);a.markedSpans=null}}function ym(a,l){if(!!l){for(var p=0;p<l.length;++p)l[p].marker.attachLine(a);a.markedSpans=l}}function Cl(a){return a.inclusiveLeft?-1:0}function _l(a){return a.inclusiveRight?1:0}function zc(a,l){var p=a.lines.length-l.lines.length;if(p!=0)return p;var u=a.find(),h=l.find(),N=Ce(u.from,h.from)||Cl(a)-Cl(l);if(N)return-N;var M=Ce(u.to,h.to)||_l(a)-_l(l);return M||l.id-a.id}function bm(a,l){var p=mi&&a.markedSpans,u;if(p)for(var h=void 0,N=0;N<p.length;++N)h=p[N],h.marker.collapsed&&(l?h.from:h.to)==null&&(!u||zc(u,h.marker)<0)&&(u=h.marker);return u}function Cm(a){return bm(a,!0)}function wl(a){return bm(a,!1)}function FI(a,l){var p=mi&&a.markedSpans,u;if(p)for(var h=0;h<p.length;++h){var N=p[h];N.marker.collapsed&&(N.from==null||N.from<l)&&(N.to==null||N.to>l)&&(!u||zc(u,N.marker)<0)&&(u=N.marker)}return u}function _m(a,l,p,u,h){var N=Ge(a,l),M=mi&&N.markedSpans;if(M)for(var H=0;H<M.length;++H){var G=M[H];if(!!G.marker.collapsed){var X=G.marker.find(0),ne=Ce(X.from,p)||Cl(G.marker)-Cl(h),re=Ce(X.to,u)||_l(G.marker)-_l(h);if(!(ne>=0&&re<=0||ne<=0&&re>=0)&&(ne<=0&&(G.marker.inclusiveRight&&h.inclusiveLeft?Ce(X.to,p)>=0:Ce(X.to,p)>0)||ne>=0&&(G.marker.inclusiveRight&&h.inclusiveLeft?Ce(X.from,u)<=0:Ce(X.from,u)<0)))return!0}}}function Pn(a){for(var l;l=Cm(a);)a=l.find(-1,!0).line;return a}function MI(a){for(var l;l=wl(a);)a=l.find(1,!0).line;return a}function PI(a){for(var l,p;l=wl(a);)a=l.find(1,!0).line,(p||(p=[])).push(a);return p}function Hc(a,l){var p=Ge(a,l),u=Pn(p);return p==u?l:gt(u)}function wm(a,l){if(l>a.lastLine())return l;var p=Ge(a,l),u;if(!$i(a,p))return l;for(;u=wl(p);)p=u.find(1,!0).line;return gt(p)+1}function $i(a,l){var p=mi&&l.markedSpans;if(p){for(var u=void 0,h=0;h<p.length;++h)if(u=p[h],!!u.marker.collapsed){if(u.from==null)return!0;if(!u.marker.widgetNode&&u.from==0&&u.marker.inclusiveLeft&&Uc(a,l,u))return!0}}}function Uc(a,l,p){if(p.to==null){var u=p.marker.find(1,!0);return Uc(a,u.line,Vr(u.line.markedSpans,p.marker))}if(p.marker.inclusiveRight&&p.to==l.text.length)return!0;for(var h=void 0,N=0;N<l.markedSpans.length;++N)if(h=l.markedSpans[N],h.marker.collapsed&&!h.marker.widgetNode&&h.from==p.to&&(h.to==null||h.to!=p.from)&&(h.marker.inclusiveLeft||p.marker.inclusiveRight)&&Uc(a,l,h))return!0}function gi(a){a=Pn(a);for(var l=0,p=a.parent,u=0;u<p.lines.length;++u){var h=p.lines[u];if(h==a)break;l+=h.height}for(var N=p.parent;N;p=N,N=p.parent)for(var M=0;M<N.children.length;++M){var H=N.children[M];if(H==p)break;l+=H.height}return l}function El(a){if(a.height==0)return 0;for(var l=a.text.length,p,u=a;p=Cm(u);){var h=p.find(0,!0);u=h.from.line,l+=h.from.ch-h.to.ch}for(u=a;p=wl(u);){var N=p.find(0,!0);l-=u.text.length-N.from.ch,u=N.to.line,l+=u.text.length-N.to.ch}return l}function Wc(a){var l=a.display,p=a.doc;l.maxLine=Ge(p,p.first),l.maxLineLength=El(l.maxLine),l.maxLineChanged=!0,p.iter(function(u){var h=El(u);h>l.maxLineLength&&(l.maxLineLength=h,l.maxLine=u)})}var Po=function(a,l,p){this.text=a,ym(this,l),this.height=p?p(this):1};Po.prototype.lineNo=function(){return gt(this)},wt(Po);function LI(a,l,p,u){a.text=l,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),vm(a),ym(a,p);var h=u?u(a):1;h!=a.height&&Rn(a,h)}function jI(a){a.parent=null,vm(a)}var zI={},HI={};function Em(a,l){if(!a||/^\s*$/.test(a))return null;var p=l.addModeClass?HI:zI;return p[a]||(p[a]=a.replace(/\S+/g,"cm-$&"))}function Am(a,l){var p=k("span",null,null,y?"padding-right: .1px":null),u={pre:k("pre",[p],"CodeMirror-line"),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};l.measure={};for(var h=0;h<=(l.rest?l.rest.length:0);h++){var N=h?l.rest[h-1]:l.line,M=void 0;u.pos=0,u.addToken=WI,hl(a.display.measure)&&(M=Xe(N,a.doc.direction))&&(u.addToken=KI(u.addToken,M)),u.map=[];var H=l!=a.display.externalMeasured&&gt(N);YI(N,u,dm(a,N,H)),N.styleClasses&&(N.styleClasses.bgClass&&(u.bgClass=F(N.styleClasses.bgClass,u.bgClass||"")),N.styleClasses.textClass&&(u.textClass=F(N.styleClasses.textClass,u.textClass||""))),u.map.length==0&&u.map.push(0,0,u.content.appendChild(Mc(a.display.measure))),h==0?(l.measure.map=u.map,l.measure.cache={}):((l.measure.maps||(l.measure.maps=[])).push(u.map),(l.measure.caches||(l.measure.caches=[])).push({}))}if(y){var G=u.content.lastChild;(/\bcm-tab\b/.test(G.className)||G.querySelector&&G.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return We(a,"renderLine",a,l.line,u.pre),u.pre.className&&(u.textClass=F(u.pre.className,u.textClass||"")),u}function UI(a){var l=R("span","\u2022","cm-invalidchar");return l.title="\\u"+a.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function WI(a,l,p,u,h,N,M){if(!!l){var H=a.splitSpaces?GI(l,a.trailingSpace):l,G=a.cm.state.specialChars,X=!1,ne;if(!G.test(l))a.col+=l.length,ne=document.createTextNode(H),a.map.push(a.pos,a.pos+l.length,ne),f&&g<9&&(X=!0),a.pos+=l.length;else{ne=document.createDocumentFragment();for(var re=0;;){G.lastIndex=re;var ve=G.exec(l),me=ve?ve.index-re:l.length-re;if(me){var _e=document.createTextNode(H.slice(re,re+me));f&&g<9?ne.appendChild(R("span",[_e])):ne.appendChild(_e),a.map.push(a.pos,a.pos+me,_e),a.col+=me,a.pos+=me}if(!ve)break;re+=me+1;var xe=void 0;if(ve[0]==" "){var Ne=a.cm.options.tabSize,Be=Ne-a.col%Ne;xe=ne.appendChild(R("span",Ee(Be),"cm-tab")),xe.setAttribute("role","presentation"),xe.setAttribute("cm-text"," "),a.col+=Be}else ve[0]=="\r"||ve[0]==`
`?(xe=ne.appendChild(R("span",ve[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xe.setAttribute("cm-text",ve[0]),a.col+=1):(xe=a.cm.options.specialCharPlaceholder(ve[0]),xe.setAttribute("cm-text",ve[0]),f&&g<9?ne.appendChild(R("span",[xe])):ne.appendChild(xe),a.col+=1);a.map.push(a.pos,a.pos+1,xe),a.pos++}}if(a.trailingSpace=H.charCodeAt(l.length-1)==32,p||u||h||X||N||M){var Le=p||"";u&&(Le+=u),h&&(Le+=h);var $e=R("span",[ne],Le,N);if(M)for(var He in M)M.hasOwnProperty(He)&&He!="style"&&He!="class"&&$e.setAttribute(He,M[He]);return a.content.appendChild($e)}a.content.appendChild(ne)}}function GI(a,l){if(a.length>1&&!/ /.test(a))return a;for(var p=l,u="",h=0;h<a.length;h++){var N=a.charAt(h);N==" "&&p&&(h==a.length-1||a.charCodeAt(h+1)==32)&&(N="\xA0"),u+=N,p=N==" "}return u}function KI(a,l){return function(p,u,h,N,M,H,G){h=h?h+" cm-force-border":"cm-force-border";for(var X=p.pos,ne=X+u.length;;){for(var re=void 0,ve=0;ve<l.length&&(re=l[ve],!(re.to>X&&re.from<=X));ve++);if(re.to>=ne)return a(p,u,h,N,M,H,G);a(p,u.slice(0,re.to-X),h,N,null,H,G),N=null,u=u.slice(re.to-X),X=re.to}}}function Sm(a,l,p,u){var h=!u&&p.widgetNode;h&&a.map.push(a.pos,a.pos+l,h),!u&&a.cm.display.input.needsContentAttribute&&(h||(h=a.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",p.id)),h&&(a.cm.display.input.setUneditable(h),a.content.appendChild(h)),a.pos+=l,a.trailingSpace=!1}function YI(a,l,p){var u=a.markedSpans,h=a.text,N=0;if(!u){for(var M=1;M<p.length;M+=2)l.addToken(l,h.slice(N,N=p[M]),Em(p[M+1],l.cm.options));return}for(var H=h.length,G=0,X=1,ne="",re,ve,me=0,_e,xe,Ne,Be,Le;;){if(me==G){_e=xe=Ne=ve="",Le=null,Be=null,me=1/0;for(var $e=[],He=void 0,Je=0;Je<u.length;++Je){var Qe=u[Je],ut=Qe.marker;if(ut.type=="bookmark"&&Qe.from==G&&ut.widgetNode)$e.push(ut);else if(Qe.from<=G&&(Qe.to==null||Qe.to>G||ut.collapsed&&Qe.to==G&&Qe.from==G)){if(Qe.to!=null&&Qe.to!=G&&me>Qe.to&&(me=Qe.to,xe=""),ut.className&&(_e+=" "+ut.className),ut.css&&(ve=(ve?ve+";":"")+ut.css),ut.startStyle&&Qe.from==G&&(Ne+=" "+ut.startStyle),ut.endStyle&&Qe.to==me&&(He||(He=[])).push(ut.endStyle,Qe.to),ut.title&&((Le||(Le={})).title=ut.title),ut.attributes)for(var _t in ut.attributes)(Le||(Le={}))[_t]=ut.attributes[_t];ut.collapsed&&(!Be||zc(Be.marker,ut)<0)&&(Be=Qe)}else Qe.from>G&&me>Qe.from&&(me=Qe.from)}if(He)for(var Gt=0;Gt<He.length;Gt+=2)He[Gt+1]==me&&(xe+=" "+He[Gt]);if(!Be||Be.from==G)for(var Tt=0;Tt<$e.length;++Tt)Sm(l,0,$e[Tt]);if(Be&&(Be.from||0)==G){if(Sm(l,(Be.to==null?H+1:Be.to)-G,Be.marker,Be.from==null),Be.to==null)return;Be.to==G&&(Be=!1)}}if(G>=H)break;for(var vn=Math.min(H,me);;){if(ne){var sn=G+ne.length;if(!Be){var It=sn>vn?ne.slice(0,vn-G):ne;l.addToken(l,It,re?re+_e:_e,Ne,G+It.length==me?xe:"",ve,Le)}if(sn>=vn){ne=ne.slice(vn-G),G=vn;break}G=sn,Ne=""}ne=h.slice(N,N=p[X++]),re=Em(p[X++],l.cm.options)}}}function xm(a,l,p){this.line=l,this.rest=PI(l),this.size=this.rest?gt(Se(this.rest))-p+1:1,this.node=this.text=null,this.hidden=$i(a,l)}function Al(a,l,p){for(var u=[],h,N=l;N<p;N=h){var M=new xm(a.doc,Ge(a.doc,N),N);h=N+M.size,u.push(M)}return u}var Lo=null;function QI(a){Lo?Lo.ops.push(a):a.ownsGroup=Lo={ops:[a],delayedCallbacks:[]}}function XI(a){var l=a.delayedCallbacks,p=0;do{for(;p<l.length;p++)l[p].call(null);for(var u=0;u<a.ops.length;u++){var h=a.ops[u];if(h.cursorActivityHandlers)for(;h.cursorActivityCalled<h.cursorActivityHandlers.length;)h.cursorActivityHandlers[h.cursorActivityCalled++].call(null,h.cm)}}while(p<l.length)}function JI(a,l){var p=a.ownsGroup;if(!!p)try{XI(p)}finally{Lo=null,l(p)}}var Ir=null;function Ht(a,l){var p=Ke(a,l);if(!!p.length){var u=Array.prototype.slice.call(arguments,2),h;Lo?h=Lo.delayedCallbacks:Ir?h=Ir:(h=Ir=[],setTimeout(ZI,0));for(var N=function(H){h.push(function(){return p[H].apply(null,u)})},M=0;M<p.length;++M)N(M)}}function ZI(){var a=Ir;Ir=null;for(var l=0;l<a.length;++l)a[l]()}function km(a,l,p,u){for(var h=0;h<l.changes.length;h++){var N=l.changes[h];N=="text"?eF(a,l):N=="gutter"?Tm(a,l,p,u):N=="class"?Gc(a,l):N=="widget"&&tF(a,l,u)}l.changes=null}function Fr(a){return a.node==a.text&&(a.node=R("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),f&&g<8&&(a.node.style.zIndex=2)),a.node}function qI(a,l){var p=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(p&&(p+=" CodeMirror-linebackground"),l.background)p?l.background.className=p:(l.background.parentNode.removeChild(l.background),l.background=null);else if(p){var u=Fr(l);l.background=u.insertBefore(R("div",null,p),u.firstChild),a.display.input.setUneditable(l.background)}}function Nm(a,l){var p=a.display.externalMeasured;return p&&p.line==l.line?(a.display.externalMeasured=null,l.measure=p.measure,p.built):Am(a,l)}function eF(a,l){var p=l.text.className,u=Nm(a,l);l.text==l.node&&(l.node=u.pre),l.text.parentNode.replaceChild(u.pre,l.text),l.text=u.pre,u.bgClass!=l.bgClass||u.textClass!=l.textClass?(l.bgClass=u.bgClass,l.textClass=u.textClass,Gc(a,l)):p&&(l.text.className=p)}function Gc(a,l){qI(a,l),l.line.wrapClass?Fr(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var p=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=p||""}function Tm(a,l,p,u){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var h=Fr(l);l.gutterBackground=R("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(a.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),a.display.input.setUneditable(l.gutterBackground),h.insertBefore(l.gutterBackground,l.text)}var N=l.line.gutterMarkers;if(a.options.lineNumbers||N){var M=Fr(l),H=l.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(H.setAttribute("aria-hidden","true"),a.display.input.setUneditable(H),M.insertBefore(H,l.text),l.line.gutterClass&&(H.className+=" "+l.line.gutterClass),a.options.lineNumbers&&(!N||!N["CodeMirror-linenumbers"])&&(l.lineNumber=H.appendChild(R("div",ae(a.options,p),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),N)for(var G=0;G<a.display.gutterSpecs.length;++G){var X=a.display.gutterSpecs[G].className,ne=N.hasOwnProperty(X)&&N[X];ne&&H.appendChild(R("div",[ne],"CodeMirror-gutter-elt","left: "+u.gutterLeft[X]+"px; width: "+u.gutterWidth[X]+"px"))}}}function tF(a,l,p){l.alignable&&(l.alignable=null);for(var u=B("CodeMirror-linewidget"),h=l.node.firstChild,N=void 0;h;h=N)N=h.nextSibling,u.test(h.className)&&l.node.removeChild(h);Om(a,l,p)}function nF(a,l,p,u){var h=Nm(a,l);return l.text=l.node=h.pre,h.bgClass&&(l.bgClass=h.bgClass),h.textClass&&(l.textClass=h.textClass),Gc(a,l),Tm(a,l,p,u),Om(a,l,u),l.node}function Om(a,l,p){if(Dm(a,l.line,l,p,!0),l.rest)for(var u=0;u<l.rest.length;u++)Dm(a,l.rest[u],l,p,!1)}function Dm(a,l,p,u,h){if(!!l.widgets)for(var N=Fr(p),M=0,H=l.widgets;M<H.length;++M){var G=H[M],X=R("div",[G.node],"CodeMirror-linewidget"+(G.className?" "+G.className:""));G.handleMouseEvents||X.setAttribute("cm-ignore-events","true"),iF(G,X,p,u),a.display.input.setUneditable(X),h&&G.above?N.insertBefore(X,p.gutter||p.text):N.appendChild(X),Ht(G,"redraw")}}function iF(a,l,p,u){if(a.noHScroll){(p.alignable||(p.alignable=[])).push(l);var h=u.wrapperWidth;l.style.left=u.fixedPos+"px",a.coverGutter||(h-=u.gutterTotalWidth,l.style.paddingLeft=u.gutterTotalWidth+"px"),l.style.width=h+"px"}a.coverGutter&&(l.style.zIndex=5,l.style.position="relative",a.noHScroll||(l.style.marginLeft=-u.gutterTotalWidth+"px"))}function Mr(a){if(a.height!=null)return a.height;var l=a.doc.cm;if(!l)return 0;if(!j(document.body,a.node)){var p="position: relative;";a.coverGutter&&(p+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),a.noHScroll&&(p+="width: "+l.display.wrapper.clientWidth+"px;"),W(l.display.measure,R("div",[a.node],null,p))}return a.height=a.node.parentNode.offsetHeight}function vi(a,l){for(var p=rn(l);p!=a.wrapper;p=p.parentNode)if(!p||p.nodeType==1&&p.getAttribute("cm-ignore-events")=="true"||p.parentNode==a.sizer&&p!=a.mover)return!0}function Sl(a){return a.lineSpace.offsetTop}function Kc(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Bm(a){if(a.cachedPaddingH)return a.cachedPaddingH;var l=W(a.measure,R("pre","x","CodeMirror-line-like")),p=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,u={left:parseInt(p.paddingLeft),right:parseInt(p.paddingRight)};return!isNaN(u.left)&&!isNaN(u.right)&&(a.cachedPaddingH=u),u}function ii(a){return Y-a.display.nativeBarWidth}function Ji(a){return a.display.scroller.clientWidth-ii(a)-a.display.barWidth}function Yc(a){return a.display.scroller.clientHeight-ii(a)-a.display.barHeight}function oF(a,l,p){var u=a.options.lineWrapping,h=u&&Ji(a);if(!l.measure.heights||u&&l.measure.width!=h){var N=l.measure.heights=[];if(u){l.measure.width=h;for(var M=l.text.firstChild.getClientRects(),H=0;H<M.length-1;H++){var G=M[H],X=M[H+1];Math.abs(G.bottom-X.bottom)>2&&N.push((G.bottom+X.top)/2-p.top)}}N.push(p.bottom-p.top)}}function $m(a,l,p){if(a.line==l)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var u=0;u<a.rest.length;u++)if(a.rest[u]==l)return{map:a.measure.maps[u],cache:a.measure.caches[u]};for(var h=0;h<a.rest.length;h++)if(gt(a.rest[h])>p)return{map:a.measure.maps[h],cache:a.measure.caches[h],before:!0}}}function rF(a,l){l=Pn(l);var p=gt(l),u=a.display.externalMeasured=new xm(a.doc,l,p);u.lineN=p;var h=u.built=Am(a,u);return u.text=h.pre,W(a.display.lineMeasure,h.pre),u}function Rm(a,l,p,u){return oi(a,jo(a,l),p,u)}function Qc(a,l){if(l>=a.display.viewFrom&&l<a.display.viewTo)return a.display.view[eo(a,l)];var p=a.display.externalMeasured;if(p&&l>=p.lineN&&l<p.lineN+p.size)return p}function jo(a,l){var p=gt(l),u=Qc(a,p);u&&!u.text?u=null:u&&u.changes&&(km(a,u,p,eu(a)),a.curOp.forceUpdate=!0),u||(u=rF(a,l));var h=$m(u,l,p);return{line:l,view:u,rect:null,map:h.map,cache:h.cache,before:h.before,hasHeights:!1}}function oi(a,l,p,u,h){l.before&&(p=-1);var N=p+(u||""),M;return l.cache.hasOwnProperty(N)?M=l.cache[N]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(oF(a,l.view,l.rect),l.hasHeights=!0),M=lF(a,l,p,u),M.bogus||(l.cache[N]=M)),{left:M.left,right:M.right,top:h?M.rtop:M.top,bottom:h?M.rbottom:M.bottom}}var Vm={left:0,right:0,top:0,bottom:0};function Im(a,l,p){for(var u,h,N,M,H,G,X=0;X<a.length;X+=3)if(H=a[X],G=a[X+1],l<H?(h=0,N=1,M="left"):l<G?(h=l-H,N=h+1):(X==a.length-3||l==G&&a[X+3]>l)&&(N=G-H,h=N-1,l>=G&&(M="right")),h!=null){if(u=a[X+2],H==G&&p==(u.insertLeft?"left":"right")&&(M=p),p=="left"&&h==0)for(;X&&a[X-2]==a[X-3]&&a[X-1].insertLeft;)u=a[(X-=3)+2],M="left";if(p=="right"&&h==G-H)for(;X<a.length-3&&a[X+3]==a[X+4]&&!a[X+5].insertLeft;)u=a[(X+=3)+2],M="right";break}return{node:u,start:h,end:N,collapse:M,coverStart:H,coverEnd:G}}function aF(a,l){var p=Vm;if(l=="left")for(var u=0;u<a.length&&(p=a[u]).left==p.right;u++);else for(var h=a.length-1;h>=0&&(p=a[h]).left==p.right;h--);return p}function lF(a,l,p,u){var h=Im(l.map,p,u),N=h.node,M=h.start,H=h.end,G=h.collapse,X;if(N.nodeType==3){for(var ne=0;ne<4;ne++){for(;M&&ct(l.line.text.charAt(h.coverStart+M));)--M;for(;h.coverStart+H<h.coverEnd&&ct(l.line.text.charAt(h.coverStart+H));)++H;if(f&&g<9&&M==0&&H==h.coverEnd-h.coverStart?X=N.parentNode.getBoundingClientRect():X=aF(P(N,M,H).getClientRects(),u),X.left||X.right||M==0)break;H=M,M=M-1,G="right"}f&&g<11&&(X=sF(a.display.measure,X))}else{M>0&&(G=u="right");var re;a.options.lineWrapping&&(re=N.getClientRects()).length>1?X=re[u=="right"?re.length-1:0]:X=N.getBoundingClientRect()}if(f&&g<9&&!M&&(!X||!X.left&&!X.right)){var ve=N.parentNode.getClientRects()[0];ve?X={left:ve.left,right:ve.left+Ho(a.display),top:ve.top,bottom:ve.bottom}:X=Vm}for(var me=X.top-l.rect.top,_e=X.bottom-l.rect.top,xe=(me+_e)/2,Ne=l.view.measure.heights,Be=0;Be<Ne.length-1&&!(xe<Ne[Be]);Be++);var Le=Be?Ne[Be-1]:0,$e=Ne[Be],He={left:(G=="right"?X.right:X.left)-l.rect.left,right:(G=="left"?X.left:X.right)-l.rect.left,top:Le,bottom:$e};return!X.left&&!X.right&&(He.bogus=!0),a.options.singleCursorHeightPerLine||(He.rtop=me,He.rbottom=_e),He}function sF(a,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ml(a))return l;var p=screen.logicalXDPI/screen.deviceXDPI,u=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*p,right:l.right*p,top:l.top*u,bottom:l.bottom*u}}function Fm(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var l=0;l<a.rest.length;l++)a.measure.caches[l]={}}function Mm(a){a.display.externalMeasure=null,U(a.display.lineMeasure);for(var l=0;l<a.display.view.length;l++)Fm(a.display.view[l])}function Pr(a){Mm(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Pm(a){return w&&S?-(a.body.getBoundingClientRect().left-parseInt(getComputedStyle(a.body).marginLeft)):a.defaultView.pageXOffset||(a.documentElement||a.body).scrollLeft}function Lm(a){return w&&S?-(a.body.getBoundingClientRect().top-parseInt(getComputedStyle(a.body).marginTop)):a.defaultView.pageYOffset||(a.documentElement||a.body).scrollTop}function Xc(a){var l=Pn(a),p=l.widgets,u=0;if(p)for(var h=0;h<p.length;++h)p[h].above&&(u+=Mr(p[h]));return u}function xl(a,l,p,u,h){if(!h){var N=Xc(l);p.top+=N,p.bottom+=N}if(u=="line")return p;u||(u="local");var M=gi(l);if(u=="local"?M+=Sl(a.display):M-=a.display.viewOffset,u=="page"||u=="window"){var H=a.display.lineSpace.getBoundingClientRect();M+=H.top+(u=="window"?0:Lm(pe(a)));var G=H.left+(u=="window"?0:Pm(pe(a)));p.left+=G,p.right+=G}return p.top+=M,p.bottom+=M,p}function jm(a,l,p){if(p=="div")return l;var u=l.left,h=l.top;if(p=="page")u-=Pm(pe(a)),h-=Lm(pe(a));else if(p=="local"||!p){var N=a.display.sizer.getBoundingClientRect();u+=N.left,h+=N.top}var M=a.display.lineSpace.getBoundingClientRect();return{left:u-M.left,top:h-M.top}}function kl(a,l,p,u,h){return u||(u=Ge(a.doc,l.line)),xl(a,u,Rm(a,u,l.ch,h),p)}function Ln(a,l,p,u,h,N){u=u||Ge(a.doc,l.line),h||(h=jo(a,u));function M(_e,xe){var Ne=oi(a,h,_e,xe?"right":"left",N);return xe?Ne.left=Ne.right:Ne.right=Ne.left,xl(a,u,Ne,p)}var H=Xe(u,a.doc.direction),G=l.ch,X=l.sticky;if(G>=u.text.length?(G=u.text.length,X="before"):G<=0&&(G=0,X="after"),!H)return M(X=="before"?G-1:G,X=="before");function ne(_e,xe,Ne){var Be=H[xe],Le=Be.level==1;return M(Ne?_e-1:_e,Le!=Ne)}var re=Te(H,G,X),ve=Ze,me=ne(G,re,X=="before");return ve!=null&&(me.other=ne(G,ve,X!="before")),me}function zm(a,l){var p=0;l=nt(a.doc,l),a.options.lineWrapping||(p=Ho(a.display)*l.ch);var u=Ge(a.doc,l.line),h=gi(u)+Sl(a.display);return{left:p,right:p,top:h,bottom:h+u.height}}function Jc(a,l,p,u,h){var N=ce(a,l,p);return N.xRel=h,u&&(N.outside=u),N}function Zc(a,l,p){var u=a.doc;if(p+=a.display.viewOffset,p<0)return Jc(u.first,0,null,-1,-1);var h=ti(u,p),N=u.first+u.size-1;if(h>N)return Jc(u.first+u.size-1,Ge(u,N).text.length,null,1,1);l<0&&(l=0);for(var M=Ge(u,h);;){var H=dF(a,M,h,l,p),G=FI(M,H.ch+(H.xRel>0||H.outside>0?1:0));if(!G)return H;var X=G.find(1);if(X.line==h)return X;M=Ge(u,h=X.line)}}function Hm(a,l,p,u){u-=Xc(l);var h=l.text.length,N=Fe(function(M){return oi(a,p,M-1).bottom<=u},h,0);return h=Fe(function(M){return oi(a,p,M).top>u},N,h),{begin:N,end:h}}function Um(a,l,p,u){p||(p=jo(a,l));var h=xl(a,l,oi(a,p,u),"line").top;return Hm(a,l,p,h)}function qc(a,l,p,u){return a.bottom<=p?!1:a.top>p?!0:(u?a.left:a.right)>l}function dF(a,l,p,u,h){h-=gi(l);var N=jo(a,l),M=Xc(l),H=0,G=l.text.length,X=!0,ne=Xe(l,a.doc.direction);if(ne){var re=(a.options.lineWrapping?uF:cF)(a,l,p,N,ne,u,h);X=re.level!=1,H=X?re.from:re.to-1,G=X?re.to:re.from-1}var ve=null,me=null,_e=Fe(function(Je){var Qe=oi(a,N,Je);return Qe.top+=M,Qe.bottom+=M,qc(Qe,u,h,!1)?(Qe.top<=h&&Qe.left<=u&&(ve=Je,me=Qe),!0):!1},H,G),xe,Ne,Be=!1;if(me){var Le=u-me.left<me.right-u,$e=Le==X;_e=ve+($e?0:1),Ne=$e?"after":"before",xe=Le?me.left:me.right}else{!X&&(_e==G||_e==H)&&_e++,Ne=_e==0?"after":_e==l.text.length?"before":oi(a,N,_e-(X?1:0)).bottom+M<=h==X?"after":"before";var He=Ln(a,ce(p,_e,Ne),"line",l,N);xe=He.left,Be=h<He.top?-1:h>=He.bottom?1:0}return _e=rt(l.text,_e,1),Jc(p,_e,Ne,Be,u-xe)}function cF(a,l,p,u,h,N,M){var H=Fe(function(re){var ve=h[re],me=ve.level!=1;return qc(Ln(a,ce(p,me?ve.to:ve.from,me?"before":"after"),"line",l,u),N,M,!0)},0,h.length-1),G=h[H];if(H>0){var X=G.level!=1,ne=Ln(a,ce(p,X?G.from:G.to,X?"after":"before"),"line",l,u);qc(ne,N,M,!0)&&ne.top>M&&(G=h[H-1])}return G}function uF(a,l,p,u,h,N,M){var H=Hm(a,l,u,M),G=H.begin,X=H.end;/\s/.test(l.text.charAt(X-1))&&X--;for(var ne=null,re=null,ve=0;ve<h.length;ve++){var me=h[ve];if(!(me.from>=X||me.to<=G)){var _e=me.level!=1,xe=oi(a,u,_e?Math.min(X,me.to)-1:Math.max(G,me.from)).right,Ne=xe<N?N-xe+1e9:xe-N;(!ne||re>Ne)&&(ne=me,re=Ne)}}return ne||(ne=h[h.length-1]),ne.from<G&&(ne={from:G,to:ne.to,level:ne.level}),ne.to>X&&(ne={from:ne.from,to:X,level:ne.level}),ne}var Zi;function zo(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Zi==null){Zi=R("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)Zi.appendChild(document.createTextNode("x")),Zi.appendChild(R("br"));Zi.appendChild(document.createTextNode("x"))}W(a.measure,Zi);var p=Zi.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),U(a.measure),p||1}function Ho(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var l=R("span","xxxxxxxxxx"),p=R("pre",[l],"CodeMirror-line-like");W(a.measure,p);var u=l.getBoundingClientRect(),h=(u.right-u.left)/10;return h>2&&(a.cachedCharWidth=h),h||10}function eu(a){for(var l=a.display,p={},u={},h=l.gutters.clientLeft,N=l.gutters.firstChild,M=0;N;N=N.nextSibling,++M){var H=a.display.gutterSpecs[M].className;p[H]=N.offsetLeft+N.clientLeft+h,u[H]=N.clientWidth}return{fixedPos:tu(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:p,gutterWidth:u,wrapperWidth:l.wrapper.clientWidth}}function tu(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Wm(a){var l=zo(a.display),p=a.options.lineWrapping,u=p&&Math.max(5,a.display.scroller.clientWidth/Ho(a.display)-3);return function(h){if($i(a.doc,h))return 0;var N=0;if(h.widgets)for(var M=0;M<h.widgets.length;M++)h.widgets[M].height&&(N+=h.widgets[M].height);return p?N+(Math.ceil(h.text.length/u)||1)*l:N+l}}function nu(a){var l=a.doc,p=Wm(a);l.iter(function(u){var h=p(u);h!=u.height&&Rn(u,h)})}function qi(a,l,p,u){var h=a.display;if(!p&&rn(l).getAttribute("cm-not-content")=="true")return null;var N,M,H=h.lineSpace.getBoundingClientRect();try{N=l.clientX-H.left,M=l.clientY-H.top}catch{return null}var G=Zc(a,N,M),X;if(u&&G.xRel>0&&(X=Ge(a.doc,G.line).text).length==G.ch){var ne=ue(X,X.length,a.options.tabSize)-X.length;G=ce(G.line,Math.max(0,Math.round((N-Bm(a.display).left)/Ho(a.display))-ne))}return G}function eo(a,l){if(l>=a.display.viewTo||(l-=a.display.viewFrom,l<0))return null;for(var p=a.display.view,u=0;u<p.length;u++)if(l-=p[u].size,l<0)return u}function an(a,l,p,u){l==null&&(l=a.doc.first),p==null&&(p=a.doc.first+a.doc.size),u||(u=0);var h=a.display;if(u&&p<h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>l)&&(h.updateLineNumbers=l),a.curOp.viewChanged=!0,l>=h.viewTo)mi&&Hc(a.doc,l)<h.viewTo&&Vi(a);else if(p<=h.viewFrom)mi&&wm(a.doc,p+u)>h.viewFrom?Vi(a):(h.viewFrom+=u,h.viewTo+=u);else if(l<=h.viewFrom&&p>=h.viewTo)Vi(a);else if(l<=h.viewFrom){var N=Nl(a,p,p+u,1);N?(h.view=h.view.slice(N.index),h.viewFrom=N.lineN,h.viewTo+=u):Vi(a)}else if(p>=h.viewTo){var M=Nl(a,l,l,-1);M?(h.view=h.view.slice(0,M.index),h.viewTo=M.lineN):Vi(a)}else{var H=Nl(a,l,l,-1),G=Nl(a,p,p+u,1);H&&G?(h.view=h.view.slice(0,H.index).concat(Al(a,H.lineN,G.lineN)).concat(h.view.slice(G.index)),h.viewTo+=u):Vi(a)}var X=h.externalMeasured;X&&(p<X.lineN?X.lineN+=u:l<X.lineN+X.size&&(h.externalMeasured=null))}function Ri(a,l,p){a.curOp.viewChanged=!0;var u=a.display,h=a.display.externalMeasured;if(h&&l>=h.lineN&&l<h.lineN+h.size&&(u.externalMeasured=null),!(l<u.viewFrom||l>=u.viewTo)){var N=u.view[eo(a,l)];if(N.node!=null){var M=N.changes||(N.changes=[]);$(M,p)==-1&&M.push(p)}}}function Vi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Nl(a,l,p,u){var h=eo(a,l),N,M=a.display.view;if(!mi||p==a.doc.first+a.doc.size)return{index:h,lineN:p};for(var H=a.display.viewFrom,G=0;G<h;G++)H+=M[G].size;if(H!=l){if(u>0){if(h==M.length-1)return null;N=H+M[h].size-l,h++}else N=H-l;l+=N,p+=N}for(;Hc(a.doc,p)!=p;){if(h==(u<0?0:M.length-1))return null;p+=u*M[h-(u<0?1:0)].size,h+=u}return{index:h,lineN:p}}function fF(a,l,p){var u=a.display,h=u.view;h.length==0||l>=u.viewTo||p<=u.viewFrom?(u.view=Al(a,l,p),u.viewFrom=l):(u.viewFrom>l?u.view=Al(a,l,u.viewFrom).concat(u.view):u.viewFrom<l&&(u.view=u.view.slice(eo(a,l))),u.viewFrom=l,u.viewTo<p?u.view=u.view.concat(Al(a,u.viewTo,p)):u.viewTo>p&&(u.view=u.view.slice(0,eo(a,p)))),u.viewTo=p}function Gm(a){for(var l=a.display.view,p=0,u=0;u<l.length;u++){var h=l[u];!h.hidden&&(!h.node||h.changes)&&++p}return p}function Lr(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Km(a,l){l===void 0&&(l=!0);var p=a.doc,u={},h=u.cursors=document.createDocumentFragment(),N=u.selection=document.createDocumentFragment(),M=a.options.$customCursor;M&&(l=!0);for(var H=0;H<p.sel.ranges.length;H++)if(!(!l&&H==p.sel.primIndex)){var G=p.sel.ranges[H];if(!(G.from().line>=a.display.viewTo||G.to().line<a.display.viewFrom)){var X=G.empty();if(M){var ne=M(a,G);ne&&iu(a,ne,h)}else(X||a.options.showCursorWhenSelecting)&&iu(a,G.head,h);X||pF(a,G,N)}}return u}function iu(a,l,p){var u=Ln(a,l,"div",null,null,!a.options.singleCursorHeightPerLine),h=p.appendChild(R("div","\xA0","CodeMirror-cursor"));if(h.style.left=u.left+"px",h.style.top=u.top+"px",h.style.height=Math.max(0,u.bottom-u.top)*a.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(a.getWrapperElement().className)){var N=kl(a,l,"div",null,null),M=N.right-N.left;h.style.width=(M>0?M:a.defaultCharWidth())+"px"}if(u.other){var H=p.appendChild(R("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));H.style.display="",H.style.left=u.other.left+"px",H.style.top=u.other.top+"px",H.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function Tl(a,l){return a.top-l.top||a.left-l.left}function pF(a,l,p){var u=a.display,h=a.doc,N=document.createDocumentFragment(),M=Bm(a.display),H=M.left,G=Math.max(u.sizerWidth,Ji(a)-u.sizer.offsetLeft)-M.right,X=h.direction=="ltr";function ne($e,He,Je,Qe){He<0&&(He=0),He=Math.round(He),Qe=Math.round(Qe),N.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+$e+`px;
top: `+He+"px; width: "+(Je==null?G-$e:Je)+`px;
height: `+(Qe-He)+"px"))}function re($e,He,Je){var Qe=Ge(h,$e),ut=Qe.text.length,_t,Gt;function Tt(It,dn){return kl(a,ce($e,It),"div",Qe,dn)}function vn(It,dn,Yt){var Lt=Um(a,Qe,null,It),Ft=dn=="ltr"==(Yt=="after")?"left":"right",Bt=Yt=="after"?Lt.begin:Lt.end-(/\s/.test(Qe.text.charAt(Lt.end-1))?2:1);return Tt(Bt,Ft)[Ft]}var sn=Xe(Qe,h.direction);return Ct(sn,He||0,Je==null?ut:Je,function(It,dn,Yt,Lt){var Ft=Yt=="ltr",Bt=Tt(It,Ft?"left":"right"),cn=Tt(dn-1,Ft?"right":"left"),nr=He==null&&It==0,ji=Je==null&&dn==ut,Jt=Lt==0,ri=!sn||Lt==sn.length-1;if(cn.top-Bt.top<=3){var Kt=(X?nr:ji)&&Jt,Tu=(X?ji:nr)&&ri,Ci=Kt?H:(Ft?Bt:cn).left,ro=Tu?G:(Ft?cn:Bt).right;ne(Ci,Bt.top,ro-Ci,Bt.bottom)}else{var ao,tn,ir,Ou;Ft?(ao=X&&nr&&Jt?H:Bt.left,tn=X?G:vn(It,Yt,"before"),ir=X?H:vn(dn,Yt,"after"),Ou=X&&ji&&ri?G:cn.right):(ao=X?vn(It,Yt,"before"):H,tn=!X&&nr&&Jt?G:Bt.right,ir=!X&&ji&&ri?H:cn.left,Ou=X?vn(dn,Yt,"after"):G),ne(ao,Bt.top,tn-ao,Bt.bottom),Bt.bottom<cn.top&&ne(H,Bt.bottom,null,cn.top),ne(ir,cn.top,Ou-ir,cn.bottom)}(!_t||Tl(Bt,_t)<0)&&(_t=Bt),Tl(cn,_t)<0&&(_t=cn),(!Gt||Tl(Bt,Gt)<0)&&(Gt=Bt),Tl(cn,Gt)<0&&(Gt=cn)}),{start:_t,end:Gt}}var ve=l.from(),me=l.to();if(ve.line==me.line)re(ve.line,ve.ch,me.ch);else{var _e=Ge(h,ve.line),xe=Ge(h,me.line),Ne=Pn(_e)==Pn(xe),Be=re(ve.line,ve.ch,Ne?_e.text.length+1:null).end,Le=re(me.line,Ne?0:null,me.ch).start;Ne&&(Be.top<Le.top-2?(ne(Be.right,Be.top,null,Be.bottom),ne(H,Le.top,Le.left,Le.bottom)):ne(Be.right,Be.top,Le.left-Be.right,Be.bottom)),Be.bottom<Le.top&&ne(H,Be.bottom,null,Le.top)}p.appendChild(N)}function ou(a){if(!!a.state.focused){var l=a.display;clearInterval(l.blinker);var p=!0;l.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?l.blinker=setInterval(function(){a.hasFocus()||Uo(a),l.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Ym(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||au(a))}function ru(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&Uo(a))},100)}function au(a,l){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(We(a,"focus",a,l),a.state.focused=!0,J(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),y&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),ou(a))}function Uo(a,l){a.state.delayingBlurEvent||(a.state.focused&&(We(a,"blur",a,l),a.state.focused=!1,L(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ol(a){for(var l=a.display,p=l.lineDiv.offsetTop,u=Math.max(0,l.scroller.getBoundingClientRect().top),h=l.lineDiv.getBoundingClientRect().top,N=0,M=0;M<l.view.length;M++){var H=l.view[M],G=a.options.lineWrapping,X=void 0,ne=0;if(!H.hidden){if(h+=H.line.height,f&&g<8){var re=H.node.offsetTop+H.node.offsetHeight;X=re-p,p=re}else{var ve=H.node.getBoundingClientRect();X=ve.bottom-ve.top,!G&&H.text.firstChild&&(ne=H.text.firstChild.getBoundingClientRect().right-ve.left-1)}var me=H.line.height-X;if((me>.005||me<-.005)&&(h<u&&(N-=me),Rn(H.line,X),Qm(H.line),H.rest))for(var _e=0;_e<H.rest.length;_e++)Qm(H.rest[_e]);if(ne>a.display.sizerWidth){var xe=Math.ceil(ne/Ho(a.display));xe>a.display.maxLineLength&&(a.display.maxLineLength=xe,a.display.maxLine=H.line,a.display.maxLineChanged=!0)}}}Math.abs(N)>2&&(l.scroller.scrollTop+=N)}function Qm(a){if(a.widgets)for(var l=0;l<a.widgets.length;++l){var p=a.widgets[l],u=p.node.parentNode;u&&(p.height=u.offsetHeight)}}function Dl(a,l,p){var u=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;u=Math.floor(u-Sl(a));var h=p&&p.bottom!=null?p.bottom:u+a.wrapper.clientHeight,N=ti(l,u),M=ti(l,h);if(p&&p.ensure){var H=p.ensure.from.line,G=p.ensure.to.line;H<N?(N=H,M=ti(l,gi(Ge(l,H))+a.wrapper.clientHeight)):Math.min(G,l.lastLine())>=M&&(N=ti(l,gi(Ge(l,G))-a.wrapper.clientHeight),M=G)}return{from:N,to:Math.max(M,N+1)}}function hF(a,l){if(!at(a,"scrollCursorIntoView")){var p=a.display,u=p.sizer.getBoundingClientRect(),h=null,N=p.wrapper.ownerDocument;if(l.top+u.top<0?h=!0:l.bottom+u.top>(N.defaultView.innerHeight||N.documentElement.clientHeight)&&(h=!1),h!=null&&!m){var M=R("div","\u200B",null,`position: absolute;
top: `+(l.top-p.viewOffset-Sl(a.display))+`px;
height: `+(l.bottom-l.top+ii(a)+p.barHeight)+`px;
left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");a.display.lineSpace.appendChild(M),M.scrollIntoView(h),a.display.lineSpace.removeChild(M)}}}function mF(a,l,p,u){u==null&&(u=0);var h;!a.options.lineWrapping&&l==p&&(p=l.sticky=="before"?ce(l.line,l.ch+1,"before"):l,l=l.ch?ce(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var N=0;N<5;N++){var M=!1,H=Ln(a,l),G=!p||p==l?H:Ln(a,p);h={left:Math.min(H.left,G.left),top:Math.min(H.top,G.top)-u,right:Math.max(H.left,G.left),bottom:Math.max(H.bottom,G.bottom)+u};var X=lu(a,h),ne=a.doc.scrollTop,re=a.doc.scrollLeft;if(X.scrollTop!=null&&(zr(a,X.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(M=!0)),X.scrollLeft!=null&&(to(a,X.scrollLeft),Math.abs(a.doc.scrollLeft-re)>1&&(M=!0)),!M)break}return h}function gF(a,l){var p=lu(a,l);p.scrollTop!=null&&zr(a,p.scrollTop),p.scrollLeft!=null&&to(a,p.scrollLeft)}function lu(a,l){var p=a.display,u=zo(a.display);l.top<0&&(l.top=0);var h=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,N=Yc(a),M={};l.bottom-l.top>N&&(l.bottom=l.top+N);var H=a.doc.height+Kc(p),G=l.top<u,X=l.bottom>H-u;if(l.top<h)M.scrollTop=G?0:l.top;else if(l.bottom>h+N){var ne=Math.min(l.top,(X?H:l.bottom)-N);ne!=h&&(M.scrollTop=ne)}var re=a.options.fixedGutter?0:p.gutters.offsetWidth,ve=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-re,me=Ji(a)-p.gutters.offsetWidth,_e=l.right-l.left>me;return _e&&(l.right=l.left+me),l.left<10?M.scrollLeft=0:l.left<ve?M.scrollLeft=Math.max(0,l.left+re-(_e?0:10)):l.right>me+ve-3&&(M.scrollLeft=l.right+(_e?0:10)-me),M}function su(a,l){l!=null&&(Bl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+l)}function Wo(a){Bl(a);var l=a.getCursor();a.curOp.scrollToPos={from:l,to:l,margin:a.options.cursorScrollMargin}}function jr(a,l,p){(l!=null||p!=null)&&Bl(a),l!=null&&(a.curOp.scrollLeft=l),p!=null&&(a.curOp.scrollTop=p)}function vF(a,l){Bl(a),a.curOp.scrollToPos=l}function Bl(a){var l=a.curOp.scrollToPos;if(l){a.curOp.scrollToPos=null;var p=zm(a,l.from),u=zm(a,l.to);Xm(a,p,u,l.margin)}}function Xm(a,l,p,u){var h=lu(a,{left:Math.min(l.left,p.left),top:Math.min(l.top,p.top)-u,right:Math.max(l.right,p.right),bottom:Math.max(l.bottom,p.bottom)+u});jr(a,h.scrollLeft,h.scrollTop)}function zr(a,l){Math.abs(a.doc.scrollTop-l)<2||(i||cu(a,{top:l}),Jm(a,l,!0),i&&cu(a),Wr(a,100))}function Jm(a,l,p){l=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,l)),!(a.display.scroller.scrollTop==l&&!p)&&(a.doc.scrollTop=l,a.display.scrollbars.setScrollTop(l),a.display.scroller.scrollTop!=l&&(a.display.scroller.scrollTop=l))}function to(a,l,p,u){l=Math.max(0,Math.min(l,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?l==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-l)<2)&&!u)&&(a.doc.scrollLeft=l,ng(a),a.display.scroller.scrollLeft!=l&&(a.display.scroller.scrollLeft=l),a.display.scrollbars.setScrollLeft(l))}function Hr(a){var l=a.display,p=l.gutters.offsetWidth,u=Math.round(a.doc.height+Kc(a.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:u,scrollHeight:u+ii(a)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:p}}var no=function(a,l,p){this.cm=p;var u=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");u.tabIndex=h.tabIndex=-1,a(u),a(h),be(u,"scroll",function(){u.clientHeight&&l(u.scrollTop,"vertical")}),be(h,"scroll",function(){h.clientWidth&&l(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(a){var l=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,u=a.nativeBarWidth;if(p){this.vert.style.display="block",this.vert.style.bottom=l?u+"px":"0";var h=a.viewHeight-(l?u:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+h)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=p?u+"px":"0",this.horiz.style.left=a.barLeft+"px";var N=a.viewWidth-a.barLeft-(p?u:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(u==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?u:0,bottom:l?u:0}},no.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},no.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},no.prototype.zeroWidthHack=function(){var a=O&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new he,this.disableVert=new he},no.prototype.enableZeroWidthBar=function(a,l,p){a.style.visibility="";function u(){var h=a.getBoundingClientRect(),N=p=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);N!=a?a.style.visibility="hidden":l.set(1e3,u)}l.set(1e3,u)},no.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ur=function(){};Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};function Go(a,l){l||(l=Hr(a));var p=a.display.barWidth,u=a.display.barHeight;Zm(a,l);for(var h=0;h<4&&p!=a.display.barWidth||u!=a.display.barHeight;h++)p!=a.display.barWidth&&a.options.lineWrapping&&Ol(a),Zm(a,Hr(a)),p=a.display.barWidth,u=a.display.barHeight}function Zm(a,l){var p=a.display,u=p.scrollbars.update(l);p.sizer.style.paddingRight=(p.barWidth=u.right)+"px",p.sizer.style.paddingBottom=(p.barHeight=u.bottom)+"px",p.heightForcer.style.borderBottom=u.bottom+"px solid transparent",u.right&&u.bottom?(p.scrollbarFiller.style.display="block",p.scrollbarFiller.style.height=u.bottom+"px",p.scrollbarFiller.style.width=u.right+"px"):p.scrollbarFiller.style.display="",u.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display="block",p.gutterFiller.style.height=u.bottom+"px",p.gutterFiller.style.width=l.gutterWidth+"px"):p.gutterFiller.style.display=""}var qm={native:no,null:Ur};function eg(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&L(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new qm[a.options.scrollbarStyle](function(l){a.display.wrapper.insertBefore(l,a.display.scrollbarFiller),be(l,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,p){p=="horizontal"?to(a,l):zr(a,l)},a),a.display.scrollbars.addClass&&J(a.display.wrapper,a.display.scrollbars.addClass)}var yF=0;function io(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++yF,markArrays:null},QI(a.curOp)}function oo(a){var l=a.curOp;l&&JI(l,function(p){for(var u=0;u<p.ops.length;u++)p.ops[u].cm.curOp=null;bF(p)})}function bF(a){for(var l=a.ops,p=0;p<l.length;p++)CF(l[p]);for(var u=0;u<l.length;u++)_F(l[u]);for(var h=0;h<l.length;h++)wF(l[h]);for(var N=0;N<l.length;N++)EF(l[N]);for(var M=0;M<l.length;M++)AF(l[M])}function CF(a){var l=a.cm,p=l.display;xF(l),a.updateMaxLine&&Wc(l),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<p.viewFrom||a.scrollToPos.to.line>=p.viewTo)||p.maxLineChanged&&l.options.lineWrapping,a.update=a.mustUpdate&&new $l(l,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function _F(a){a.updatedDisplay=a.mustUpdate&&du(a.cm,a.update)}function wF(a){var l=a.cm,p=l.display;a.updatedDisplay&&Ol(l),a.barMeasure=Hr(l),p.maxLineChanged&&!l.options.lineWrapping&&(a.adjustWidthTo=Rm(l,p.maxLine,p.maxLine.text.length).left+3,l.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+ii(l)+l.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-Ji(l))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection())}function EF(a){var l=a.cm;a.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<l.doc.scrollLeft&&to(l,Math.min(l.display.scroller.scrollLeft,a.maxScrollLeft),!0),l.display.maxLineChanged=!1);var p=a.focus&&a.focus==Z(pe(l));a.preparedSelection&&l.display.input.showSelection(a.preparedSelection,p),(a.updatedDisplay||a.startHeight!=l.doc.height)&&Go(l,a.barMeasure),a.updatedDisplay&&fu(l,a.barMeasure),a.selectionChanged&&ou(l),l.state.focused&&a.updateInput&&l.display.input.reset(a.typing),p&&Ym(a.cm)}function AF(a){var l=a.cm,p=l.display,u=l.doc;if(a.updatedDisplay&&tg(l,a.update),p.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(p.wheelStartX=p.wheelStartY=null),a.scrollTop!=null&&Jm(l,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&to(l,a.scrollLeft,!0,!0),a.scrollToPos){var h=mF(l,nt(u,a.scrollToPos.from),nt(u,a.scrollToPos.to),a.scrollToPos.margin);hF(l,h)}var N=a.maybeHiddenMarkers,M=a.maybeUnhiddenMarkers;if(N)for(var H=0;H<N.length;++H)N[H].lines.length||We(N[H],"hide");if(M)for(var G=0;G<M.length;++G)M[G].lines.length&&We(M[G],"unhide");p.wrapper.offsetHeight&&(u.scrollTop=l.display.scroller.scrollTop),a.changeObjs&&We(l,"changes",l,a.changeObjs),a.update&&a.update.finish()}function gn(a,l){if(a.curOp)return l();io(a);try{return l()}finally{oo(a)}}function Ut(a,l){return function(){if(a.curOp)return l.apply(a,arguments);io(a);try{return l.apply(a,arguments)}finally{oo(a)}}}function en(a){return function(){if(this.curOp)return a.apply(this,arguments);io(this);try{return a.apply(this,arguments)}finally{oo(this)}}}function Wt(a){return function(){var l=this.cm;if(!l||l.curOp)return a.apply(this,arguments);io(l);try{return a.apply(this,arguments)}finally{oo(l)}}}function Wr(a,l){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(l,ye(SF,a))}function SF(a){var l=a.doc;if(!(l.highlightFrontier>=a.display.viewTo)){var p=+new Date+a.options.workTime,u=Rr(a,l.highlightFrontier),h=[];l.iter(u.line,Math.min(l.first+l.size,a.display.viewTo+500),function(N){if(u.line>=a.display.viewFrom){var M=N.styles,H=N.text.length>a.options.maxHighlightLength?pi(l.mode,u.state):null,G=sm(a,N,u,!0);H&&(u.state=H),N.styles=G.styles;var X=N.styleClasses,ne=G.classes;ne?N.styleClasses=ne:X&&(N.styleClasses=null);for(var re=!M||M.length!=N.styles.length||X!=ne&&(!X||!ne||X.bgClass!=ne.bgClass||X.textClass!=ne.textClass),ve=0;!re&&ve<M.length;++ve)re=M[ve]!=N.styles[ve];re&&h.push(u.line),N.stateAfter=u.save(),u.nextLine()}else N.text.length<=a.options.maxHighlightLength&&Pc(a,N.text,u),N.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>p)return Wr(a,a.options.workDelay),!0}),l.highlightFrontier=u.line,l.modeFrontier=Math.max(l.modeFrontier,u.line),h.length&&gn(a,function(){for(var N=0;N<h.length;N++)Ri(a,h[N],"text")})}}var $l=function(a,l,p){var u=a.display;this.viewport=l,this.visible=Dl(u,a.doc,l),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=Ji(a),this.force=p,this.dims=eu(a),this.events=[]};$l.prototype.signal=function(a,l){Nt(a,l)&&this.events.push(arguments)},$l.prototype.finish=function(){for(var a=0;a<this.events.length;a++)We.apply(null,this.events[a])};function xF(a){var l=a.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=ii(a)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=ii(a)+"px",l.scrollbarsClipped=!0)}function kF(a){if(a.hasFocus())return null;var l=Z(pe(a));if(!l||!j(a.display.lineDiv,l))return null;var p={activeElt:l};if(window.getSelection){var u=se(a).getSelection();u.anchorNode&&u.extend&&j(a.display.lineDiv,u.anchorNode)&&(p.anchorNode=u.anchorNode,p.anchorOffset=u.anchorOffset,p.focusNode=u.focusNode,p.focusOffset=u.focusOffset)}return p}function NF(a){if(!(!a||!a.activeElt||a.activeElt==Z(a.activeElt.ownerDocument))&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&j(document.body,a.anchorNode)&&j(document.body,a.focusNode))){var l=a.activeElt.ownerDocument,p=l.defaultView.getSelection(),u=l.createRange();u.setEnd(a.anchorNode,a.anchorOffset),u.collapse(!1),p.removeAllRanges(),p.addRange(u),p.extend(a.focusNode,a.focusOffset)}}function du(a,l){var p=a.display,u=a.doc;if(l.editorIsHidden)return Vi(a),!1;if(!l.force&&l.visible.from>=p.viewFrom&&l.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&Gm(a)==0)return!1;ig(a)&&(Vi(a),l.dims=eu(a));var h=u.first+u.size,N=Math.max(l.visible.from-a.options.viewportMargin,u.first),M=Math.min(h,l.visible.to+a.options.viewportMargin);p.viewFrom<N&&N-p.viewFrom<20&&(N=Math.max(u.first,p.viewFrom)),p.viewTo>M&&p.viewTo-M<20&&(M=Math.min(h,p.viewTo)),mi&&(N=Hc(a.doc,N),M=wm(a.doc,M));var H=N!=p.viewFrom||M!=p.viewTo||p.lastWrapHeight!=l.wrapperHeight||p.lastWrapWidth!=l.wrapperWidth;fF(a,N,M),p.viewOffset=gi(Ge(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+"px";var G=Gm(a);if(!H&&G==0&&!l.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var X=kF(a);return G>4&&(p.lineDiv.style.display="none"),TF(a,p.updateLineNumbers,l.dims),G>4&&(p.lineDiv.style.display=""),p.renderedView=p.view,NF(X),U(p.cursorDiv),U(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,H&&(p.lastWrapHeight=l.wrapperHeight,p.lastWrapWidth=l.wrapperWidth,Wr(a,400)),p.updateLineNumbers=null,!0}function tg(a,l){for(var p=l.viewport,u=!0;;u=!1){if(!u||!a.options.lineWrapping||l.oldDisplayWidth==Ji(a)){if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+Kc(a.display)-Yc(a),p.top)}),l.visible=Dl(a.display,a.doc,p),l.visible.from>=a.display.viewFrom&&l.visible.to<=a.display.viewTo)break}else u&&(l.visible=Dl(a.display,a.doc,p));if(!du(a,l))break;Ol(a);var h=Hr(a);Lr(a),Go(a,h),fu(a,h),l.force=!1}l.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(l.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function cu(a,l){var p=new $l(a,l);if(du(a,p)){Ol(a),tg(a,p);var u=Hr(a);Lr(a),Go(a,u),fu(a,u),p.finish()}}function TF(a,l,p){var u=a.display,h=a.options.lineNumbers,N=u.lineDiv,M=N.firstChild;function H(_e){var xe=_e.nextSibling;return y&&O&&a.display.currentWheelTarget==_e?_e.style.display="none":_e.parentNode.removeChild(_e),xe}for(var G=u.view,X=u.viewFrom,ne=0;ne<G.length;ne++){var re=G[ne];if(!re.hidden)if(!re.node||re.node.parentNode!=N){var ve=nF(a,re,X,p);N.insertBefore(ve,M)}else{for(;M!=re.node;)M=H(M);var me=h&&l!=null&&l<=X&&re.lineNumber;re.changes&&($(re.changes,"gutter")>-1&&(me=!1),km(a,re,X,p)),me&&(U(re.lineNumber),re.lineNumber.appendChild(document.createTextNode(ae(a.options,X)))),M=re.node.nextSibling}X+=re.size}for(;M;)M=H(M)}function uu(a){var l=a.gutters.offsetWidth;a.sizer.style.marginLeft=l+"px",Ht(a,"gutterChanged",a)}function fu(a,l){a.display.sizer.style.minHeight=l.docHeight+"px",a.display.heightForcer.style.top=l.docHeight+"px",a.display.gutters.style.height=l.docHeight+a.display.barHeight+ii(a)+"px"}function ng(a){var l=a.display,p=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!a.options.fixedGutter))){for(var u=tu(l)-l.scroller.scrollLeft+a.doc.scrollLeft,h=l.gutters.offsetWidth,N=u+"px",M=0;M<p.length;M++)if(!p[M].hidden){a.options.fixedGutter&&(p[M].gutter&&(p[M].gutter.style.left=N),p[M].gutterBackground&&(p[M].gutterBackground.style.left=N));var H=p[M].alignable;if(H)for(var G=0;G<H.length;G++)H[G].style.left=N}a.options.fixedGutter&&(l.gutters.style.left=u+h+"px")}}function ig(a){if(!a.options.lineNumbers)return!1;var l=a.doc,p=ae(a.options,l.first+l.size-1),u=a.display;if(p.length!=u.lineNumChars){var h=u.measure.appendChild(R("div",[R("div",p)],"CodeMirror-linenumber CodeMirror-gutter-elt")),N=h.firstChild.offsetWidth,M=h.offsetWidth-N;return u.lineGutter.style.width="",u.lineNumInnerWidth=Math.max(N,u.lineGutter.offsetWidth-M)+1,u.lineNumWidth=u.lineNumInnerWidth+M,u.lineNumChars=u.lineNumInnerWidth?p.length:-1,u.lineGutter.style.width=u.lineNumWidth+"px",uu(a.display),!0}return!1}function pu(a,l){for(var p=[],u=!1,h=0;h<a.length;h++){var N=a[h],M=null;if(typeof N!="string"&&(M=N.style,N=N.className),N=="CodeMirror-linenumbers")if(l)u=!0;else continue;p.push({className:N,style:M})}return l&&!u&&p.push({className:"CodeMirror-linenumbers",style:null}),p}function og(a){var l=a.gutters,p=a.gutterSpecs;U(l),a.lineGutter=null;for(var u=0;u<p.length;++u){var h=p[u],N=h.className,M=h.style,H=l.appendChild(R("div",null,"CodeMirror-gutter "+N));M&&(H.style.cssText=M),N=="CodeMirror-linenumbers"&&(a.lineGutter=H,H.style.width=(a.lineNumWidth||1)+"px")}l.style.display=p.length?"":"none",uu(a)}function Gr(a){og(a.display),an(a),ng(a)}function OF(a,l,p,u){var h=this;this.input=p,h.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),h.scrollbarFiller.setAttribute("cm-not-content","true"),h.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),h.gutterFiller.setAttribute("cm-not-content","true"),h.lineDiv=k("div",null,"CodeMirror-code"),h.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),h.cursorDiv=R("div",null,"CodeMirror-cursors"),h.measure=R("div",null,"CodeMirror-measure"),h.lineMeasure=R("div",null,"CodeMirror-measure"),h.lineSpace=k("div",[h.measure,h.lineMeasure,h.selectionDiv,h.cursorDiv,h.lineDiv],null,"position: relative; outline: none");var N=k("div",[h.lineSpace],"CodeMirror-lines");h.mover=R("div",[N],null,"position: relative"),h.sizer=R("div",[h.mover],"CodeMirror-sizer"),h.sizerWidth=null,h.heightForcer=R("div",null,null,"position: absolute; height: "+Y+"px; width: 1px;"),h.gutters=R("div",null,"CodeMirror-gutters"),h.lineGutter=null,h.scroller=R("div",[h.sizer,h.heightForcer,h.gutters],"CodeMirror-scroll"),h.scroller.setAttribute("tabIndex","-1"),h.wrapper=R("div",[h.scrollbarFiller,h.gutterFiller,h.scroller],"CodeMirror"),h.wrapper.setAttribute("translate","no"),f&&g<8&&(h.gutters.style.zIndex=-1,h.scroller.style.paddingRight=0),!y&&!(i&&x)&&(h.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(h.wrapper):a(h.wrapper)),h.viewFrom=h.viewTo=l.first,h.reportedViewFrom=h.reportedViewTo=l.first,h.view=[],h.renderedView=null,h.externalMeasured=null,h.viewOffset=0,h.lastWrapHeight=h.lastWrapWidth=0,h.updateLineNumbers=null,h.nativeBarWidth=h.barHeight=h.barWidth=0,h.scrollbarsClipped=!1,h.lineNumWidth=h.lineNumInnerWidth=h.lineNumChars=null,h.alignWidgets=!1,h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.maxLine=null,h.maxLineLength=0,h.maxLineChanged=!1,h.wheelDX=h.wheelDY=h.wheelStartX=h.wheelStartY=null,h.shift=!1,h.selForContextMenu=null,h.activeTouch=null,h.gutterSpecs=pu(u.gutters,u.lineNumbers),og(h),p.init(h)}var Rl=0,yi=null;f?yi=-.53:i?yi=15:w?yi=-.7:_&&(yi=-1/3);function rg(a){var l=a.wheelDeltaX,p=a.wheelDeltaY;return l==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(l=a.detail),p==null&&a.detail&&a.axis==a.VERTICAL_AXIS?p=a.detail:p==null&&(p=a.wheelDelta),{x:l,y:p}}function DF(a){var l=rg(a);return l.x*=yi,l.y*=yi,l}function ag(a,l){w&&A==102&&(a.display.chromeScrollHack==null?a.display.sizer.style.pointerEvents="none":clearTimeout(a.display.chromeScrollHack),a.display.chromeScrollHack=setTimeout(function(){a.display.chromeScrollHack=null,a.display.sizer.style.pointerEvents=""},100));var p=rg(l),u=p.x,h=p.y,N=yi;l.deltaMode===0&&(u=l.deltaX,h=l.deltaY,N=1);var M=a.display,H=M.scroller,G=H.scrollWidth>H.clientWidth,X=H.scrollHeight>H.clientHeight;if(!!(u&&G||h&&X)){if(h&&O&&y){e:for(var ne=l.target,re=M.view;ne!=H;ne=ne.parentNode)for(var ve=0;ve<re.length;ve++)if(re[ve].node==ne){a.display.currentWheelTarget=ne;break e}}if(u&&!i&&!E&&N!=null){h&&X&&zr(a,Math.max(0,H.scrollTop+h*N)),to(a,Math.max(0,H.scrollLeft+u*N)),(!h||h&&X)&&mt(l),M.wheelStartX=null;return}if(h&&N!=null){var me=h*N,_e=a.doc.scrollTop,xe=_e+M.wrapper.clientHeight;me<0?_e=Math.max(0,_e+me-50):xe=Math.min(a.doc.height,xe+me+50),cu(a,{top:_e,bottom:xe})}Rl<20&&l.deltaMode!==0&&(M.wheelStartX==null?(M.wheelStartX=H.scrollLeft,M.wheelStartY=H.scrollTop,M.wheelDX=u,M.wheelDY=h,setTimeout(function(){if(M.wheelStartX!=null){var Ne=H.scrollLeft-M.wheelStartX,Be=H.scrollTop-M.wheelStartY,Le=Be&&M.wheelDY&&Be/M.wheelDY||Ne&&M.wheelDX&&Ne/M.wheelDX;M.wheelStartX=M.wheelStartY=null,Le&&(yi=(yi*Rl+Le)/(Rl+1),++Rl)}},200)):(M.wheelDX+=u,M.wheelDY+=h))}}var kn=function(a,l){this.ranges=a,this.primIndex=l};kn.prototype.primary=function(){return this.ranges[this.primIndex]},kn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var p=this.ranges[l],u=a.ranges[l];if(!tt(p.anchor,u.anchor)||!tt(p.head,u.head))return!1}return!0},kn.prototype.deepCopy=function(){for(var a=[],l=0;l<this.ranges.length;l++)a[l]=new vt(ft(this.ranges[l].anchor),ft(this.ranges[l].head));return new kn(a,this.primIndex)},kn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},kn.prototype.contains=function(a,l){l||(l=a);for(var p=0;p<this.ranges.length;p++){var u=this.ranges[p];if(Ce(l,u.from())>=0&&Ce(a,u.to())<=0)return p}return-1};var vt=function(a,l){this.anchor=a,this.head=l};vt.prototype.from=function(){return Pt(this.anchor,this.head)},vt.prototype.to=function(){return ht(this.anchor,this.head)},vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function jn(a,l,p){var u=a&&a.options.selectionsMayTouch,h=l[p];l.sort(function(ve,me){return Ce(ve.from(),me.from())}),p=$(l,h);for(var N=1;N<l.length;N++){var M=l[N],H=l[N-1],G=Ce(H.to(),M.from());if(u&&!M.empty()?G>0:G>=0){var X=Pt(H.from(),M.from()),ne=ht(H.to(),M.to()),re=H.empty()?M.from()==M.head:H.from()==H.head;N<=p&&--p,l.splice(--N,2,new vt(re?ne:X,re?X:ne))}}return new kn(l,p)}function Ii(a,l){return new kn([new vt(a,l||a)],0)}function Fi(a){return a.text?ce(a.from.line+a.text.length-1,Se(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function lg(a,l){if(Ce(a,l.from)<0)return a;if(Ce(a,l.to)<=0)return Fi(l);var p=a.line+l.text.length-(l.to.line-l.from.line)-1,u=a.ch;return a.line==l.to.line&&(u+=Fi(l).ch-l.to.ch),ce(p,u)}function hu(a,l){for(var p=[],u=0;u<a.sel.ranges.length;u++){var h=a.sel.ranges[u];p.push(new vt(lg(h.anchor,l),lg(h.head,l)))}return jn(a.cm,p,a.sel.primIndex)}function sg(a,l,p){return a.line==l.line?ce(p.line,a.ch-l.ch+p.ch):ce(p.line+(a.line-l.line),a.ch)}function BF(a,l,p){for(var u=[],h=ce(a.first,0),N=h,M=0;M<l.length;M++){var H=l[M],G=sg(H.from,h,N),X=sg(Fi(H),h,N);if(h=H.to,N=X,p=="around"){var ne=a.sel.ranges[M],re=Ce(ne.head,ne.anchor)<0;u[M]=new vt(re?X:G,re?G:X)}else u[M]=new vt(G,G)}return new kn(u,a.sel.primIndex)}function mu(a){a.doc.mode=fi(a.options,a.doc.modeOption),Kr(a)}function Kr(a){a.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Wr(a,100),a.state.modeGen++,a.curOp&&an(a)}function dg(a,l){return l.from.ch==0&&l.to.ch==0&&Se(l.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function gu(a,l,p,u){function h(Le){return p?p[Le]:null}function N(Le,$e,He){LI(Le,$e,He,u),Ht(Le,"change",Le,l)}function M(Le,$e){for(var He=[],Je=Le;Je<$e;++Je)He.push(new Po(X[Je],h(Je),u));return He}var H=l.from,G=l.to,X=l.text,ne=Ge(a,H.line),re=Ge(a,G.line),ve=Se(X),me=h(X.length-1),_e=G.line-H.line;if(l.full)a.insert(0,M(0,X.length)),a.remove(X.length,a.size-X.length);else if(dg(a,l)){var xe=M(0,X.length-1);N(re,re.text,me),_e&&a.remove(H.line,_e),xe.length&&a.insert(H.line,xe)}else if(ne==re)if(X.length==1)N(ne,ne.text.slice(0,H.ch)+ve+ne.text.slice(G.ch),me);else{var Ne=M(1,X.length-1);Ne.push(new Po(ve+ne.text.slice(G.ch),me,u)),N(ne,ne.text.slice(0,H.ch)+X[0],h(0)),a.insert(H.line+1,Ne)}else if(X.length==1)N(ne,ne.text.slice(0,H.ch)+X[0]+re.text.slice(G.ch),h(0)),a.remove(H.line+1,_e);else{N(ne,ne.text.slice(0,H.ch)+X[0],h(0)),N(re,ve+re.text.slice(G.ch),me);var Be=M(1,X.length-1);_e>1&&a.remove(H.line+1,_e-1),a.insert(H.line+1,Be)}Ht(a,"change",a,l)}function Mi(a,l,p){function u(h,N,M){if(h.linked)for(var H=0;H<h.linked.length;++H){var G=h.linked[H];if(G.doc!=N){var X=M&&G.sharedHist;p&&!X||(l(G.doc,X),u(G.doc,h,X))}}}u(a,null,!0)}function cg(a,l){if(l.cm)throw new Error("This document is already in use.");a.doc=l,l.cm=a,nu(a),mu(a),ug(a),a.options.direction=l.direction,a.options.lineWrapping||Wc(a),a.options.mode=l.modeOption,an(a)}function ug(a){(a.doc.direction=="rtl"?J:L)(a.display.lineDiv,"CodeMirror-rtl")}function $F(a){gn(a,function(){ug(a),an(a)})}function Vl(a){this.done=[],this.undone=[],this.undoDepth=a?a.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a?a.maxGeneration:1}function vu(a,l){var p={from:ft(l.from),to:Fi(l),text:hi(a,l.from,l.to)};return hg(a,p,l.from.line,l.to.line+1),Mi(a,function(u){return hg(u,p,l.from.line,l.to.line+1)},!0),p}function fg(a){for(;a.length;){var l=Se(a);if(l.ranges)a.pop();else break}}function RF(a,l){if(l)return fg(a.done),Se(a.done);if(a.done.length&&!Se(a.done).ranges)return Se(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Se(a.done)}function pg(a,l,p,u){var h=a.history;h.undone.length=0;var N=+new Date,M,H;if((h.lastOp==u||h.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&h.lastModTime>N-(a.cm?a.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(M=RF(h,h.lastOp==u)))H=Se(M.changes),Ce(l.from,l.to)==0&&Ce(l.from,H.to)==0?H.to=Fi(l):M.changes.push(vu(a,l));else{var G=Se(h.done);for((!G||!G.ranges)&&Il(a.sel,h.done),M={changes:[vu(a,l)],generation:h.generation},h.done.push(M);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(p),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=N,h.lastOp=h.lastSelOp=u,h.lastOrigin=h.lastSelOrigin=l.origin,H||We(a,"historyAdded")}function VF(a,l,p,u){var h=l.charAt(0);return h=="*"||h=="+"&&p.ranges.length==u.ranges.length&&p.somethingSelected()==u.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function IF(a,l,p,u){var h=a.history,N=u&&u.origin;p==h.lastSelOp||N&&h.lastSelOrigin==N&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==N||VF(a,N,Se(h.done),l))?h.done[h.done.length-1]=l:Il(l,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=N,h.lastSelOp=p,u&&u.clearRedo!==!1&&fg(h.undone)}function Il(a,l){var p=Se(l);p&&p.ranges&&p.equals(a)||l.push(a)}function hg(a,l,p,u){var h=l["spans_"+a.id],N=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,u),function(M){M.markedSpans&&((h||(h=l["spans_"+a.id]={}))[N]=M.markedSpans),++N})}function FF(a){if(!a)return null;for(var l,p=0;p<a.length;++p)a[p].marker.explicitlyCleared?l||(l=a.slice(0,p)):l&&l.push(a[p]);return l?l.length?l:null:a}function MF(a,l){var p=l["spans_"+a.id];if(!p)return null;for(var u=[],h=0;h<l.text.length;++h)u.push(FF(p[h]));return u}function mg(a,l){var p=MF(a,l),u=jc(a,l);if(!p)return u;if(!u)return p;for(var h=0;h<p.length;++h){var N=p[h],M=u[h];if(N&&M){e:for(var H=0;H<M.length;++H){for(var G=M[H],X=0;X<N.length;++X)if(N[X].marker==G.marker)continue e;N.push(G)}}else M&&(p[h]=M)}return p}function Ko(a,l,p){for(var u=[],h=0;h<a.length;++h){var N=a[h];if(N.ranges){u.push(p?kn.prototype.deepCopy.call(N):N);continue}var M=N.changes,H=[];u.push({changes:H});for(var G=0;G<M.length;++G){var X=M[G],ne=void 0;if(H.push({from:X.from,to:X.to,text:X.text}),l)for(var re in X)(ne=re.match(/^spans_(\d+)$/))&&$(l,Number(ne[1]))>-1&&(Se(H)[re]=X[re],delete X[re])}}return u}function yu(a,l,p,u){if(u){var h=a.anchor;if(p){var N=Ce(l,h)<0;N!=Ce(p,h)<0?(h=l,l=p):N!=Ce(l,p)<0&&(l=p)}return new vt(h,l)}else return new vt(p||l,l)}function Fl(a,l,p,u,h){h==null&&(h=a.cm&&(a.cm.display.shift||a.extend)),Xt(a,new kn([yu(a.sel.primary(),l,p,h)],0),u)}function gg(a,l,p){for(var u=[],h=a.cm&&(a.cm.display.shift||a.extend),N=0;N<a.sel.ranges.length;N++)u[N]=yu(a.sel.ranges[N],l[N],null,h);var M=jn(a.cm,u,a.sel.primIndex);Xt(a,M,p)}function bu(a,l,p,u){var h=a.sel.ranges.slice(0);h[l]=p,Xt(a,jn(a.cm,h,a.sel.primIndex),u)}function vg(a,l,p,u){Xt(a,Ii(l,p),u)}function PF(a,l,p){var u={ranges:l.ranges,update:function(h){this.ranges=[];for(var N=0;N<h.length;N++)this.ranges[N]=new vt(nt(a,h[N].anchor),nt(a,h[N].head))},origin:p&&p.origin};return We(a,"beforeSelectionChange",a,u),a.cm&&We(a.cm,"beforeSelectionChange",a.cm,u),u.ranges!=l.ranges?jn(a.cm,u.ranges,u.ranges.length-1):l}function yg(a,l,p){var u=a.history.done,h=Se(u);h&&h.ranges?(u[u.length-1]=l,Ml(a,l,p)):Xt(a,l,p)}function Xt(a,l,p){Ml(a,l,p),IF(a,a.sel,a.cm?a.cm.curOp.id:NaN,p)}function Ml(a,l,p){(Nt(a,"beforeSelectionChange")||a.cm&&Nt(a.cm,"beforeSelectionChange"))&&(l=PF(a,l,p));var u=p&&p.bias||(Ce(l.primary().head,a.sel.primary().head)<0?-1:1);bg(a,_g(a,l,u,!0)),!(p&&p.scroll===!1)&&a.cm&&a.cm.getOption("readOnly")!="nocursor"&&Wo(a.cm)}function bg(a,l){l.equals(a.sel)||(a.sel=l,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,on(a.cm)),Ht(a,"cursorActivity",a))}function Cg(a){bg(a,_g(a,a.sel,null,!1))}function _g(a,l,p,u){for(var h,N=0;N<l.ranges.length;N++){var M=l.ranges[N],H=l.ranges.length==a.sel.ranges.length&&a.sel.ranges[N],G=Pl(a,M.anchor,H&&H.anchor,p,u),X=M.head==M.anchor?G:Pl(a,M.head,H&&H.head,p,u);(h||G!=M.anchor||X!=M.head)&&(h||(h=l.ranges.slice(0,N)),h[N]=new vt(G,X))}return h?jn(a.cm,h,l.primIndex):l}function Yo(a,l,p,u,h){var N=Ge(a,l.line);if(N.markedSpans)for(var M=0;M<N.markedSpans.length;++M){var H=N.markedSpans[M],G=H.marker,X="selectLeft"in G?!G.selectLeft:G.inclusiveLeft,ne="selectRight"in G?!G.selectRight:G.inclusiveRight;if((H.from==null||(X?H.from<=l.ch:H.from<l.ch))&&(H.to==null||(ne?H.to>=l.ch:H.to>l.ch))){if(h&&(We(G,"beforeCursorEnter"),G.explicitlyCleared))if(N.markedSpans){--M;continue}else break;if(!G.atomic)continue;if(p){var re=G.find(u<0?1:-1),ve=void 0;if((u<0?ne:X)&&(re=wg(a,re,-u,re&&re.line==l.line?N:null)),re&&re.line==l.line&&(ve=Ce(re,p))&&(u<0?ve<0:ve>0))return Yo(a,re,l,u,h)}var me=G.find(u<0?-1:1);return(u<0?X:ne)&&(me=wg(a,me,u,me.line==l.line?N:null)),me?Yo(a,me,l,u,h):null}}return l}function Pl(a,l,p,u,h){var N=u||1,M=Yo(a,l,p,N,h)||!h&&Yo(a,l,p,N,!0)||Yo(a,l,p,-N,h)||!h&&Yo(a,l,p,-N,!0);return M||(a.cantEdit=!0,ce(a.first,0))}function wg(a,l,p,u){return p<0&&l.ch==0?l.line>a.first?nt(a,ce(l.line-1)):null:p>0&&l.ch==(u||Ge(a,l.line)).text.length?l.line<a.first+a.size-1?ce(l.line+1,0):null:new ce(l.line,l.ch+p)}function Eg(a){a.setSelection(ce(a.firstLine(),0),ce(a.lastLine()),K)}function Ag(a,l,p){var u={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return u.canceled=!0}};return p&&(u.update=function(h,N,M,H){h&&(u.from=nt(a,h)),N&&(u.to=nt(a,N)),M&&(u.text=M),H!==void 0&&(u.origin=H)}),We(a,"beforeChange",a,u),a.cm&&We(a.cm,"beforeChange",a.cm,u),u.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:u.from,to:u.to,text:u.text,origin:u.origin}}function Qo(a,l,p){if(a.cm){if(!a.cm.curOp)return Ut(a.cm,Qo)(a,l,p);if(a.cm.state.suppressEdits)return}if(!((Nt(a,"beforeChange")||a.cm&&Nt(a.cm,"beforeChange"))&&(l=Ag(a,l,!0),!l))){var u=mm&&!p&&II(a,l.from,l.to);if(u)for(var h=u.length-1;h>=0;--h)Sg(a,{from:u[h].from,to:u[h].to,text:h?[""]:l.text,origin:l.origin});else Sg(a,l)}}function Sg(a,l){if(!(l.text.length==1&&l.text[0]==""&&Ce(l.from,l.to)==0)){var p=hu(a,l);pg(a,l,p,a.cm?a.cm.curOp.id:NaN),Yr(a,l,p,jc(a,l));var u=[];Mi(a,function(h,N){!N&&$(u,h.history)==-1&&(Tg(h.history,l),u.push(h.history)),Yr(h,l,null,jc(h,l))})}}function Ll(a,l,p){var u=a.cm&&a.cm.state.suppressEdits;if(!(u&&!p)){for(var h=a.history,N,M=a.sel,H=l=="undo"?h.done:h.undone,G=l=="undo"?h.undone:h.done,X=0;X<H.length&&(N=H[X],!(p?N.ranges&&!N.equals(a.sel):!N.ranges));X++);if(X!=H.length){for(h.lastOrigin=h.lastSelOrigin=null;;)if(N=H.pop(),N.ranges){if(Il(N,G),p&&!N.equals(a.sel)){Xt(a,N,{clearRedo:!1});return}M=N}else if(u){H.push(N);return}else break;var ne=[];Il(M,G),G.push({changes:ne,generation:h.generation}),h.generation=N.generation||++h.maxGeneration;for(var re=Nt(a,"beforeChange")||a.cm&&Nt(a.cm,"beforeChange"),ve=function(xe){var Ne=N.changes[xe];if(Ne.origin=l,re&&!Ag(a,Ne,!1))return H.length=0,{};ne.push(vu(a,Ne));var Be=xe?hu(a,Ne):Se(H);Yr(a,Ne,Be,mg(a,Ne)),!xe&&a.cm&&a.cm.scrollIntoView({from:Ne.from,to:Fi(Ne)});var Le=[];Mi(a,function($e,He){!He&&$(Le,$e.history)==-1&&(Tg($e.history,Ne),Le.push($e.history)),Yr($e,Ne,null,mg($e,Ne))})},me=N.changes.length-1;me>=0;--me){var _e=ve(me);if(_e)return _e.v}}}}function xg(a,l){if(l!=0&&(a.first+=l,a.sel=new kn(ke(a.sel.ranges,function(h){return new vt(ce(h.anchor.line+l,h.anchor.ch),ce(h.head.line+l,h.head.ch))}),a.sel.primIndex),a.cm)){an(a.cm,a.first,a.first-l,l);for(var p=a.cm.display,u=p.viewFrom;u<p.viewTo;u++)Ri(a.cm,u,"gutter")}}function Yr(a,l,p,u){if(a.cm&&!a.cm.curOp)return Ut(a.cm,Yr)(a,l,p,u);if(l.to.line<a.first){xg(a,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>a.lastLine())){if(l.from.line<a.first){var h=l.text.length-1-(a.first-l.from.line);xg(a,h),l={from:ce(a.first,0),to:ce(l.to.line+h,l.to.ch),text:[Se(l.text)],origin:l.origin}}var N=a.lastLine();l.to.line>N&&(l={from:l.from,to:ce(N,Ge(a,N).text.length),text:[l.text[0]],origin:l.origin}),l.removed=hi(a,l.from,l.to),p||(p=hu(a,l)),a.cm?LF(a.cm,l,u):gu(a,l,u),Ml(a,p,K),a.cantEdit&&Pl(a,ce(a.firstLine(),0))&&(a.cantEdit=!1)}}function LF(a,l,p){var u=a.doc,h=a.display,N=l.from,M=l.to,H=!1,G=N.line;a.options.lineWrapping||(G=gt(Pn(Ge(u,N.line))),u.iter(G,M.line+1,function(me){if(me==h.maxLine)return H=!0,!0})),u.sel.contains(l.from,l.to)>-1&&on(a),gu(u,l,p,Wm(a)),a.options.lineWrapping||(u.iter(G,N.line+l.text.length,function(me){var _e=El(me);_e>h.maxLineLength&&(h.maxLine=me,h.maxLineLength=_e,h.maxLineChanged=!0,H=!1)}),H&&(a.curOp.updateMaxLine=!0)),TI(u,N.line),Wr(a,400);var X=l.text.length-(M.line-N.line)-1;l.full?an(a):N.line==M.line&&l.text.length==1&&!dg(a.doc,l)?Ri(a,N.line,"text"):an(a,N.line,M.line+1,X);var ne=Nt(a,"changes"),re=Nt(a,"change");if(re||ne){var ve={from:N,to:M,text:l.text,removed:l.removed,origin:l.origin};re&&Ht(a,"change",a,ve),ne&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ve)}a.display.selForContextMenu=null}function Xo(a,l,p,u,h){var N;u||(u=p),Ce(u,p)<0&&(N=[u,p],p=N[0],u=N[1]),typeof l=="string"&&(l=a.splitLines(l)),Qo(a,{from:p,to:u,text:l,origin:h})}function kg(a,l,p,u){p<a.line?a.line+=u:l<a.line&&(a.line=l,a.ch=0)}function Ng(a,l,p,u){for(var h=0;h<a.length;++h){var N=a[h],M=!0;if(N.ranges){N.copied||(N=a[h]=N.deepCopy(),N.copied=!0);for(var H=0;H<N.ranges.length;H++)kg(N.ranges[H].anchor,l,p,u),kg(N.ranges[H].head,l,p,u);continue}for(var G=0;G<N.changes.length;++G){var X=N.changes[G];if(p<X.from.line)X.from=ce(X.from.line+u,X.from.ch),X.to=ce(X.to.line+u,X.to.ch);else if(l<=X.to.line){M=!1;break}}M||(a.splice(0,h+1),h=0)}}function Tg(a,l){var p=l.from.line,u=l.to.line,h=l.text.length-(u-p)-1;Ng(a.done,p,u,h),Ng(a.undone,p,u,h)}function Qr(a,l,p,u){var h=l,N=l;return typeof l=="number"?N=Ge(a,xn(a,l)):h=gt(l),h==null?null:(u(N,h)&&a.cm&&Ri(a.cm,h,p),N)}function Xr(a){this.lines=a,this.parent=null;for(var l=0,p=0;p<a.length;++p)a[p].parent=this,l+=a[p].height;this.height=l}Xr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,l){for(var p=a,u=a+l;p<u;++p){var h=this.lines[p];this.height-=h.height,jI(h),Ht(h,"delete")}this.lines.splice(a,l)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,l,p){this.height+=p,this.lines=this.lines.slice(0,a).concat(l).concat(this.lines.slice(a));for(var u=0;u<l.length;++u)l[u].parent=this},iterN:function(a,l,p){for(var u=a+l;a<u;++a)if(p(this.lines[a]))return!0}};function Jr(a){this.children=a;for(var l=0,p=0,u=0;u<a.length;++u){var h=a[u];l+=h.chunkSize(),p+=h.height,h.parent=this}this.size=l,this.height=p,this.parent=null}Jr.prototype={chunkSize:function(){return this.size},removeInner:function(a,l){this.size-=l;for(var p=0;p<this.children.length;++p){var u=this.children[p],h=u.chunkSize();if(a<h){var N=Math.min(l,h-a),M=u.height;if(u.removeInner(a,N),this.height-=M-u.height,h==N&&(this.children.splice(p--,1),u.parent=null),(l-=N)==0)break;a=0}else a-=h}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof Xr))){var H=[];this.collapse(H),this.children=[new Xr(H)],this.children[0].parent=this}},collapse:function(a){for(var l=0;l<this.children.length;++l)this.children[l].collapse(a)},insertInner:function(a,l,p){this.size+=l.length,this.height+=p;for(var u=0;u<this.children.length;++u){var h=this.children[u],N=h.chunkSize();if(a<=N){if(h.insertInner(a,l,p),h.lines&&h.lines.length>50){for(var M=h.lines.length%25+25,H=M;H<h.lines.length;){var G=new Xr(h.lines.slice(H,H+=25));h.height-=G.height,this.children.splice(++u,0,G),G.parent=this}h.lines=h.lines.slice(0,M),this.maybeSpill()}break}a-=N}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var l=a.children.splice(a.children.length-5,5),p=new Jr(l);if(a.parent){a.size-=p.size,a.height-=p.height;var h=$(a.parent.children,a);a.parent.children.splice(h+1,0,p)}else{var u=new Jr(a.children);u.parent=a,a.children=[u,p],a=u}p.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,l,p){for(var u=0;u<this.children.length;++u){var h=this.children[u],N=h.chunkSize();if(a<N){var M=Math.min(l,N-a);if(h.iterN(a,M,p))return!0;if((l-=M)==0)break;a=0}else a-=N}}};var Zr=function(a,l,p){if(p)for(var u in p)p.hasOwnProperty(u)&&(this[u]=p[u]);this.doc=a,this.node=l};Zr.prototype.clear=function(){var a=this.doc.cm,l=this.line.widgets,p=this.line,u=gt(p);if(!(u==null||!l)){for(var h=0;h<l.length;++h)l[h]==this&&l.splice(h--,1);l.length||(p.widgets=null);var N=Mr(this);Rn(p,Math.max(0,p.height-N)),a&&(gn(a,function(){Og(a,p,-N),Ri(a,u,"widget")}),Ht(a,"lineWidgetCleared",a,this,u))}},Zr.prototype.changed=function(){var a=this,l=this.height,p=this.doc.cm,u=this.line;this.height=null;var h=Mr(this)-l;!h||($i(this.doc,u)||Rn(u,u.height+h),p&&gn(p,function(){p.curOp.forceUpdate=!0,Og(p,u,h),Ht(p,"lineWidgetChanged",p,a,gt(u))}))},wt(Zr);function Og(a,l,p){gi(l)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&su(a,p)}function jF(a,l,p,u){var h=new Zr(a,p,u),N=a.cm;return N&&h.noHScroll&&(N.display.alignWidgets=!0),Qr(a,l,"widget",function(M){var H=M.widgets||(M.widgets=[]);if(h.insertAt==null?H.push(h):H.splice(Math.min(H.length,Math.max(0,h.insertAt)),0,h),h.line=M,N&&!$i(a,M)){var G=gi(M)<a.scrollTop;Rn(M,M.height+Mr(h)),G&&su(N,h.height),N.curOp.forceUpdate=!0}return!0}),N&&Ht(N,"lineWidgetAdded",N,h,typeof l=="number"?l:gt(l)),h}var Dg=0,Pi=function(a,l){this.lines=[],this.type=l,this.doc=a,this.id=++Dg};Pi.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,l=a&&!a.curOp;if(l&&io(a),Nt(this,"clear")){var p=this.find();p&&Ht(this,"clear",p.from,p.to)}for(var u=null,h=null,N=0;N<this.lines.length;++N){var M=this.lines[N],H=Vr(M.markedSpans,this);a&&!this.collapsed?Ri(a,gt(M),"text"):a&&(H.to!=null&&(h=gt(M)),H.from!=null&&(u=gt(M))),M.markedSpans=BI(M.markedSpans,H),H.from==null&&this.collapsed&&!$i(this.doc,M)&&a&&Rn(M,zo(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var G=0;G<this.lines.length;++G){var X=Pn(this.lines[G]),ne=El(X);ne>a.display.maxLineLength&&(a.display.maxLine=X,a.display.maxLineLength=ne,a.display.maxLineChanged=!0)}u!=null&&a&&this.collapsed&&an(a,u,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Cg(a.doc)),a&&Ht(a,"markerCleared",a,this,u,h),l&&oo(a),this.parent&&this.parent.clear()}},Pi.prototype.find=function(a,l){a==null&&this.type=="bookmark"&&(a=1);for(var p,u,h=0;h<this.lines.length;++h){var N=this.lines[h],M=Vr(N.markedSpans,this);if(M.from!=null&&(p=ce(l?N:gt(N),M.from),a==-1))return p;if(M.to!=null&&(u=ce(l?N:gt(N),M.to),a==1))return u}return p&&{from:p,to:u}},Pi.prototype.changed=function(){var a=this,l=this.find(-1,!0),p=this,u=this.doc.cm;!l||!u||gn(u,function(){var h=l.line,N=gt(l.line),M=Qc(u,N);if(M&&(Fm(M),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!$i(p.doc,h)&&p.height!=null){var H=p.height;p.height=null;var G=Mr(p)-H;G&&Rn(h,h.height+G)}Ht(u,"markerChanged",u,a)})},Pi.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||$(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Pi.prototype.detachLine=function(a){if(this.lines.splice($(this.lines,a),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},wt(Pi);function Jo(a,l,p,u,h){if(u&&u.shared)return zF(a,l,p,u,h);if(a.cm&&!a.cm.curOp)return Ut(a.cm,Jo)(a,l,p,u,h);var N=new Pi(a,h),M=Ce(l,p);if(u&&fe(u,N,!1),M>0||M==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=k("span",[N.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(_m(a,l.line,l,p,N)||l.line!=p.line&&_m(a,p.line,l,p,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");DI()}N.addToHistory&&pg(a,{from:l,to:p,origin:"markText"},a.sel,NaN);var H=l.line,G=a.cm,X;if(a.iter(H,p.line+1,function(re){G&&N.collapsed&&!G.options.lineWrapping&&Pn(re)==G.display.maxLine&&(X=!0),N.collapsed&&H!=l.line&&Rn(re,0),$I(re,new bl(N,H==l.line?l.ch:null,H==p.line?p.ch:null),a.cm&&a.cm.curOp),++H}),N.collapsed&&a.iter(l.line,p.line+1,function(re){$i(a,re)&&Rn(re,0)}),N.clearOnEnter&&be(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(OI(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),N.collapsed&&(N.id=++Dg,N.atomic=!0),G){if(X&&(G.curOp.updateMaxLine=!0),N.collapsed)an(G,l.line,p.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var ne=l.line;ne<=p.line;ne++)Ri(G,ne,"text");N.atomic&&Cg(G.doc),Ht(G,"markerAdded",G,N)}return N}var qr=function(a,l){this.markers=a,this.primary=l;for(var p=0;p<a.length;++p)a[p].parent=this};qr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ht(this,"clear")}},qr.prototype.find=function(a,l){return this.primary.find(a,l)},wt(qr);function zF(a,l,p,u,h){u=fe(u),u.shared=!1;var N=[Jo(a,l,p,u,h)],M=N[0],H=u.widgetNode;return Mi(a,function(G){H&&(u.widgetNode=H.cloneNode(!0)),N.push(Jo(G,nt(G,l),nt(G,p),u,h));for(var X=0;X<G.linked.length;++X)if(G.linked[X].isParent)return;M=Se(N)}),new qr(N,M)}function Bg(a){return a.findMarks(ce(a.first,0),a.clipPos(ce(a.lastLine())),function(l){return l.parent})}function HF(a,l){for(var p=0;p<l.length;p++){var u=l[p],h=u.find(),N=a.clipPos(h.from),M=a.clipPos(h.to);if(Ce(N,M)){var H=Jo(a,N,M,u.primary,u.primary.type);u.markers.push(H),H.parent=u}}}function UF(a){for(var l=function(u){var h=a[u],N=[h.primary.doc];Mi(h.primary.doc,function(G){return N.push(G)});for(var M=0;M<h.markers.length;M++){var H=h.markers[M];$(N,H.doc)==-1&&(H.parent=null,h.markers.splice(M--,1))}},p=0;p<a.length;p++)l(p)}var WF=0,ln=function(a,l,p,u,h){if(!(this instanceof ln))return new ln(a,l,p,u,h);p==null&&(p=0),Jr.call(this,[new Xr([new Po("",null)])]),this.first=p,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=p;var N=ce(p,0);this.sel=Ii(N),this.history=new Vl(null),this.id=++WF,this.modeOption=l,this.lineSep=u,this.direction=h=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),gu(this,{from:N,to:N,text:a}),Xt(this,Ii(N),K)};ln.prototype=ge(Jr.prototype,{constructor:ln,iter:function(a,l,p){p?this.iterN(a-this.first,l-a,p):this.iterN(this.first,this.first+this.size,a)},insert:function(a,l){for(var p=0,u=0;u<l.length;++u)p+=l[u].height;this.insertInner(a-this.first,l,p)},remove:function(a,l){this.removeInner(a-this.first,l)},getValue:function(a){var l=Mo(this,this.first,this.first+this.size);return a===!1?l:l.join(a||this.lineSeparator())},setValue:Wt(function(a){var l=ce(this.first,0),p=this.first+this.size-1;Qo(this,{from:l,to:ce(p,Ge(this,p).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&jr(this.cm,0,0),Xt(this,Ii(l),K)}),replaceRange:function(a,l,p,u){l=nt(this,l),p=p?nt(this,p):l,Xo(this,a,l,p,u)},getRange:function(a,l,p){var u=hi(this,nt(this,a),nt(this,l));return p===!1?u:p===""?u.join(""):u.join(p||this.lineSeparator())},getLine:function(a){var l=this.getLineHandle(a);return l&&l.text},getLineHandle:function(a){if(ee(this,a))return Ge(this,a)},getLineNumber:function(a){return gt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Ge(this,a)),Pn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return nt(this,a)},getCursor:function(a){var l=this.sel.primary(),p;return a==null||a=="head"?p=l.head:a=="anchor"?p=l.anchor:a=="end"||a=="to"||a===!1?p=l.to():p=l.from(),p},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Wt(function(a,l,p){vg(this,nt(this,typeof a=="number"?ce(a,l||0):a),null,p)}),setSelection:Wt(function(a,l,p){vg(this,nt(this,a),nt(this,l||a),p)}),extendSelection:Wt(function(a,l,p){Fl(this,nt(this,a),l&&nt(this,l),p)}),extendSelections:Wt(function(a,l){gg(this,lm(this,a),l)}),extendSelectionsBy:Wt(function(a,l){var p=ke(this.sel.ranges,a);gg(this,lm(this,p),l)}),setSelections:Wt(function(a,l,p){if(!!a.length){for(var u=[],h=0;h<a.length;h++)u[h]=new vt(nt(this,a[h].anchor),nt(this,a[h].head||a[h].anchor));l==null&&(l=Math.min(a.length-1,this.sel.primIndex)),Xt(this,jn(this.cm,u,l),p)}}),addSelection:Wt(function(a,l,p){var u=this.sel.ranges.slice(0);u.push(new vt(nt(this,a),nt(this,l||a))),Xt(this,jn(this.cm,u,u.length-1),p)}),getSelection:function(a){for(var l=this.sel.ranges,p,u=0;u<l.length;u++){var h=hi(this,l[u].from(),l[u].to());p=p?p.concat(h):h}return a===!1?p:p.join(a||this.lineSeparator())},getSelections:function(a){for(var l=[],p=this.sel.ranges,u=0;u<p.length;u++){var h=hi(this,p[u].from(),p[u].to());a!==!1&&(h=h.join(a||this.lineSeparator())),l[u]=h}return l},replaceSelection:function(a,l,p){for(var u=[],h=0;h<this.sel.ranges.length;h++)u[h]=a;this.replaceSelections(u,l,p||"+input")},replaceSelections:Wt(function(a,l,p){for(var u=[],h=this.sel,N=0;N<h.ranges.length;N++){var M=h.ranges[N];u[N]={from:M.from(),to:M.to(),text:this.splitLines(a[N]),origin:p}}for(var H=l&&l!="end"&&BF(this,u,l),G=u.length-1;G>=0;G--)Qo(this,u[G]);H?yg(this,H):this.cm&&Wo(this.cm)}),undo:Wt(function(){Ll(this,"undo")}),redo:Wt(function(){Ll(this,"redo")}),undoSelection:Wt(function(){Ll(this,"undo",!0)}),redoSelection:Wt(function(){Ll(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,l=0,p=0,u=0;u<a.done.length;u++)a.done[u].ranges||++l;for(var h=0;h<a.undone.length;h++)a.undone[h].ranges||++p;return{undo:l,redo:p}},clearHistory:function(){var a=this;this.history=new Vl(this.history),Mi(this,function(l){return l.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Ko(this.history.done),undone:Ko(this.history.undone)}},setHistory:function(a){var l=this.history=new Vl(this.history);l.done=Ko(a.done.slice(0),null,!0),l.undone=Ko(a.undone.slice(0),null,!0)},setGutterMarker:Wt(function(a,l,p){return Qr(this,a,"gutter",function(u){var h=u.gutterMarkers||(u.gutterMarkers={});return h[l]=p,!p&&Ie(h)&&(u.gutterMarkers=null),!0})}),clearGutter:Wt(function(a){var l=this;this.iter(function(p){p.gutterMarkers&&p.gutterMarkers[a]&&Qr(l,p,"gutter",function(){return p.gutterMarkers[a]=null,Ie(p.gutterMarkers)&&(p.gutterMarkers=null),!0})})}),lineInfo:function(a){var l;if(typeof a=="number"){if(!ee(this,a)||(l=a,a=Ge(this,a),!a))return null}else if(l=gt(a),l==null)return null;return{line:l,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Wt(function(a,l,p){return Qr(this,a,l=="gutter"?"gutter":"class",function(u){var h=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!u[h])u[h]=p;else{if(B(p).test(u[h]))return!1;u[h]+=" "+p}return!0})}),removeLineClass:Wt(function(a,l,p){return Qr(this,a,l=="gutter"?"gutter":"class",function(u){var h=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",N=u[h];if(N)if(p==null)u[h]=null;else{var M=N.match(B(p));if(!M)return!1;var H=M.index+M[0].length;u[h]=N.slice(0,M.index)+(!M.index||H==N.length?"":" ")+N.slice(H)||null}else return!1;return!0})}),addLineWidget:Wt(function(a,l,p){return jF(this,a,l,p)}),removeLineWidget:function(a){a.clear()},markText:function(a,l,p){return Jo(this,nt(this,a),nt(this,l),p,p&&p.type||"range")},setBookmark:function(a,l){var p={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return a=nt(this,a),Jo(this,a,a,p,"bookmark")},findMarksAt:function(a){a=nt(this,a);var l=[],p=Ge(this,a.line).markedSpans;if(p)for(var u=0;u<p.length;++u){var h=p[u];(h.from==null||h.from<=a.ch)&&(h.to==null||h.to>=a.ch)&&l.push(h.marker.parent||h.marker)}return l},findMarks:function(a,l,p){a=nt(this,a),l=nt(this,l);var u=[],h=a.line;return this.iter(a.line,l.line+1,function(N){var M=N.markedSpans;if(M)for(var H=0;H<M.length;H++){var G=M[H];!(G.to!=null&&h==a.line&&a.ch>=G.to||G.from==null&&h!=a.line||G.from!=null&&h==l.line&&G.from>=l.ch)&&(!p||p(G.marker))&&u.push(G.marker.parent||G.marker)}++h}),u},getAllMarks:function(){var a=[];return this.iter(function(l){var p=l.markedSpans;if(p)for(var u=0;u<p.length;++u)p[u].from!=null&&a.push(p[u].marker)}),a},posFromIndex:function(a){var l,p=this.first,u=this.lineSeparator().length;return this.iter(function(h){var N=h.text.length+u;if(N>a)return l=a,!0;a-=N,++p}),nt(this,ce(p,l))},indexFromPos:function(a){a=nt(this,a);var l=a.ch;if(a.line<this.first||a.ch<0)return 0;var p=this.lineSeparator().length;return this.iter(this.first,a.line,function(u){l+=u.text.length+p}),l},copy:function(a){var l=new ln(Mo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,a&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(a){a||(a={});var l=this.first,p=this.first+this.size;a.from!=null&&a.from>l&&(l=a.from),a.to!=null&&a.to<p&&(p=a.to);var u=new ln(Mo(this,l,p),a.mode||this.modeOption,l,this.lineSep,this.direction);return a.sharedHist&&(u.history=this.history),(this.linked||(this.linked=[])).push({doc:u,sharedHist:a.sharedHist}),u.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],HF(u,Bg(this)),u},unlinkDoc:function(a){if(a instanceof St&&(a=a.doc),this.linked)for(var l=0;l<this.linked.length;++l){var p=this.linked[l];if(p.doc==a){this.linked.splice(l,1),a.unlinkDoc(this),UF(Bg(this));break}}if(a.history==this.history){var u=[a.id];Mi(a,function(h){return u.push(h.id)},!0),a.history=new Vl(null),a.history.done=Ko(this.history.done,u),a.history.undone=Ko(this.history.undone,u)}},iterLinkedDocs:function(a){Mi(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Br(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Wt(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(l){return l.order=null}),this.cm&&$F(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var $g=0;function GF(a){var l=this;if(Rg(l),!(at(l,a)||vi(l.display,a))){mt(a),f&&($g=+new Date);var p=qi(l,a,!0),u=a.dataTransfer.files;if(!(!p||l.isReadOnly()))if(u&&u.length&&window.FileReader&&window.File)for(var h=u.length,N=Array(h),M=0,H=function(){++M==h&&Ut(l,function(){p=nt(l.doc,p);var me={from:p,to:p,text:l.doc.splitLines(N.filter(function(_e){return _e!=null}).join(l.doc.lineSeparator())),origin:"paste"};Qo(l.doc,me),yg(l.doc,Ii(nt(l.doc,p),nt(l.doc,Fi(me))))})()},G=function(me,_e){if(l.options.allowDropFileTypes&&$(l.options.allowDropFileTypes,me.type)==-1){H();return}var xe=new FileReader;xe.onerror=function(){return H()},xe.onload=function(){var Ne=xe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ne)){H();return}N[_e]=Ne,H()},xe.readAsText(me)},X=0;X<u.length;X++)G(u[X],X);else{if(l.state.draggingText&&l.doc.sel.contains(p)>-1){l.state.draggingText(a),setTimeout(function(){return l.display.input.focus()},20);return}try{var ne=a.dataTransfer.getData("Text");if(ne){var re;if(l.state.draggingText&&!l.state.draggingText.copy&&(re=l.listSelections()),Ml(l.doc,Ii(p,p)),re)for(var ve=0;ve<re.length;++ve)Xo(l.doc,"",re[ve].anchor,re[ve].head,"drag");l.replaceSelection(ne,"around","paste"),l.display.input.focus()}}catch{}}}}function KF(a,l){if(f&&(!a.state.draggingText||+new Date-$g<100)){Fn(l);return}if(!(at(a,l)||vi(a.display,l))&&(l.dataTransfer.setData("Text",a.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!_)){var p=R("img",null,null,"position: fixed; left: 0; top: 0;");p.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(p.width=p.height=1,a.display.wrapper.appendChild(p),p._top=p.offsetTop),l.dataTransfer.setDragImage(p,0,0),E&&p.parentNode.removeChild(p)}}function YF(a,l){var p=qi(a,l);if(!!p){var u=document.createDocumentFragment();iu(a,p,u),a.display.dragCursor||(a.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),W(a.display.dragCursor,u)}}function Rg(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function Vg(a){if(!!document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),p=[],u=0;u<l.length;u++){var h=l[u].CodeMirror;h&&p.push(h)}p.length&&p[0].operation(function(){for(var N=0;N<p.length;N++)a(p[N])})}}var Ig=!1;function QF(){Ig||(XF(),Ig=!0)}function XF(){var a;be(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,Vg(JF)},100))}),be(window,"blur",function(){return Vg(Uo)})}function JF(a){var l=a.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,a.setSize()}for(var Li={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ea=0;ea<10;ea++)Li[ea+48]=Li[ea+96]=String(ea);for(var jl=65;jl<=90;jl++)Li[jl]=String.fromCharCode(jl);for(var ta=1;ta<=12;ta++)Li[ta+111]=Li[ta+63235]="F"+ta;var bi={};bi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},bi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},bi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},bi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},bi.default=O?bi.macDefault:bi.pcDefault;function ZF(a){var l=a.split(/-(?!$)/);a=l[l.length-1];for(var p,u,h,N,M=0;M<l.length-1;M++){var H=l[M];if(/^(cmd|meta|m)$/i.test(H))N=!0;else if(/^a(lt)?$/i.test(H))p=!0;else if(/^(c|ctrl|control)$/i.test(H))u=!0;else if(/^s(hift)?$/i.test(H))h=!0;else throw new Error("Unrecognized modifier name: "+H)}return p&&(a="Alt-"+a),u&&(a="Ctrl-"+a),N&&(a="Cmd-"+a),h&&(a="Shift-"+a),a}function qF(a){var l={};for(var p in a)if(a.hasOwnProperty(p)){var u=a[p];if(/^(name|fallthrough|(de|at)tach)$/.test(p))continue;if(u=="..."){delete a[p];continue}for(var h=ke(p.split(" "),ZF),N=0;N<h.length;N++){var M=void 0,H=void 0;N==h.length-1?(H=h.join(" "),M=u):(H=h.slice(0,N+1).join(" "),M="...");var G=l[H];if(!G)l[H]=M;else if(G!=M)throw new Error("Inconsistent bindings for "+H)}delete a[p]}for(var X in l)a[X]=l[X];return a}function Zo(a,l,p,u){l=zl(l);var h=l.call?l.call(a,u):l[a];if(h===!1)return"nothing";if(h==="...")return"multi";if(h!=null&&p(h))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return Zo(a,l.fallthrough,p,u);for(var N=0;N<l.fallthrough.length;N++){var M=Zo(a,l.fallthrough[N],p,u);if(M)return M}}}function Fg(a){var l=typeof a=="string"?a:Li[a.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function Mg(a,l,p){var u=a;return l.altKey&&u!="Alt"&&(a="Alt-"+a),(z?l.metaKey:l.ctrlKey)&&u!="Ctrl"&&(a="Ctrl-"+a),(z?l.ctrlKey:l.metaKey)&&u!="Mod"&&(a="Cmd-"+a),!p&&l.shiftKey&&u!="Shift"&&(a="Shift-"+a),a}function Pg(a,l){if(E&&a.keyCode==34&&a.char)return!1;var p=Li[a.keyCode];return p==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(p=a.code),Mg(p,a,l))}function zl(a){return typeof a=="string"?bi[a]:a}function qo(a,l){for(var p=a.doc.sel.ranges,u=[],h=0;h<p.length;h++){for(var N=l(p[h]);u.length&&Ce(N.from,Se(u).to)<=0;){var M=u.pop();if(Ce(M.from,N.from)<0){N.from=M.from;break}}u.push(N)}gn(a,function(){for(var H=u.length-1;H>=0;H--)Xo(a.doc,"",u[H].from,u[H].to,"+delete");Wo(a)})}function Cu(a,l,p){var u=rt(a.text,l+p,p);return u<0||u>a.text.length?null:u}function _u(a,l,p){var u=Cu(a,l.ch,p);return u==null?null:new ce(l.line,u,p<0?"after":"before")}function wu(a,l,p,u,h){if(a){l.doc.direction=="rtl"&&(h=-h);var N=Xe(p,l.doc.direction);if(N){var M=h<0?Se(N):N[0],H=h<0==(M.level==1),G=H?"after":"before",X;if(M.level>0||l.doc.direction=="rtl"){var ne=jo(l,p);X=h<0?p.text.length-1:0;var re=oi(l,ne,X).top;X=Fe(function(ve){return oi(l,ne,ve).top==re},h<0==(M.level==1)?M.from:M.to-1,X),G=="before"&&(X=Cu(p,X,1))}else X=h<0?M.to:M.from;return new ce(u,X,G)}}return new ce(u,h<0?p.text.length:0,h<0?"before":"after")}function eM(a,l,p,u){var h=Xe(l,a.doc.direction);if(!h)return _u(l,p,u);p.ch>=l.text.length?(p.ch=l.text.length,p.sticky="before"):p.ch<=0&&(p.ch=0,p.sticky="after");var N=Te(h,p.ch,p.sticky),M=h[N];if(a.doc.direction=="ltr"&&M.level%2==0&&(u>0?M.to>p.ch:M.from<p.ch))return _u(l,p,u);var H=function(Be,Le){return Cu(l,Be instanceof ce?Be.ch:Be,Le)},G,X=function(Be){return a.options.lineWrapping?(G=G||jo(a,l),Um(a,l,G,Be)):{begin:0,end:l.text.length}},ne=X(p.sticky=="before"?H(p,-1):p.ch);if(a.doc.direction=="rtl"||M.level==1){var re=M.level==1==u<0,ve=H(p,re?1:-1);if(ve!=null&&(re?ve<=M.to&&ve<=ne.end:ve>=M.from&&ve>=ne.begin)){var me=re?"before":"after";return new ce(p.line,ve,me)}}var _e=function(Be,Le,$e){for(var He=function(_t,Gt){return Gt?new ce(p.line,H(_t,1),"before"):new ce(p.line,_t,"after")};Be>=0&&Be<h.length;Be+=Le){var Je=h[Be],Qe=Le>0==(Je.level!=1),ut=Qe?$e.begin:H($e.end,-1);if(Je.from<=ut&&ut<Je.to||(ut=Qe?Je.from:H(Je.to,-1),$e.begin<=ut&&ut<$e.end))return He(ut,Qe)}},xe=_e(N+u,u,ne);if(xe)return xe;var Ne=u>0?ne.end:H(ne.begin,-1);return Ne!=null&&!(u>0&&Ne==l.text.length)&&(xe=_e(u>0?0:h.length-1,u,X(Ne)),xe)?xe:null}var na={selectAll:Eg,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),K)},killLine:function(a){return qo(a,function(l){if(l.empty()){var p=Ge(a.doc,l.head.line).text.length;return l.head.ch==p&&l.head.line<a.lastLine()?{from:l.head,to:ce(l.head.line+1,0)}:{from:l.head,to:ce(l.head.line,p)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(a){return qo(a,function(l){return{from:ce(l.from().line,0),to:nt(a.doc,ce(l.to().line+1,0))}})},delLineLeft:function(a){return qo(a,function(l){return{from:ce(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(a){return qo(a,function(l){var p=a.charCoords(l.head,"div").top+5,u=a.coordsChar({left:0,top:p},"div");return{from:u,to:l.from()}})},delWrappedLineRight:function(a){return qo(a,function(l){var p=a.charCoords(l.head,"div").top+5,u=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div");return{from:l.from(),to:u}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ce(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ce(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(l){return Lg(a,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(l){return jg(a,l.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(l){return tM(a,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(l){var p=a.cursorCoords(l.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div")},q)},goLineLeft:function(a){return a.extendSelectionsBy(function(l){var p=a.cursorCoords(l.head,"div").top+5;return a.coordsChar({left:0,top:p},"div")},q)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(l){var p=a.cursorCoords(l.head,"div").top+5,u=a.coordsChar({left:0,top:p},"div");return u.ch<a.getLine(u.line).search(/\S/)?jg(a,l.head):u},q)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var l=[],p=a.listSelections(),u=a.options.tabSize,h=0;h<p.length;h++){var N=p[h].from(),M=ue(a.getLine(N.line),N.ch,u);l.push(Ee(u-M%u))}a.replaceSelections(l)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return gn(a,function(){for(var l=a.listSelections(),p=[],u=0;u<l.length;u++)if(!!l[u].empty()){var h=l[u].head,N=Ge(a.doc,h.line).text;if(N){if(h.ch==N.length&&(h=new ce(h.line,h.ch-1)),h.ch>0)h=new ce(h.line,h.ch+1),a.replaceRange(N.charAt(h.ch-1)+N.charAt(h.ch-2),ce(h.line,h.ch-2),h,"+transpose");else if(h.line>a.doc.first){var M=Ge(a.doc,h.line-1).text;M&&(h=new ce(h.line,1),a.replaceRange(N.charAt(0)+a.doc.lineSeparator()+M.charAt(M.length-1),ce(h.line-1,M.length-1),h,"+transpose"))}}p.push(new vt(h,h))}a.setSelections(p)})},newlineAndIndent:function(a){return gn(a,function(){for(var l=a.listSelections(),p=l.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),l[p].anchor,l[p].head,"+input");l=a.listSelections();for(var u=0;u<l.length;u++)a.indentLine(l[u].from().line,null,!0);Wo(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Lg(a,l){var p=Ge(a.doc,l),u=Pn(p);return u!=p&&(l=gt(u)),wu(!0,a,u,l,1)}function tM(a,l){var p=Ge(a.doc,l),u=MI(p);return u!=p&&(l=gt(u)),wu(!0,a,p,l,-1)}function jg(a,l){var p=Lg(a,l.line),u=Ge(a.doc,p.line),h=Xe(u,a.doc.direction);if(!h||h[0].level==0){var N=Math.max(p.ch,u.text.search(/\S/)),M=l.line==p.line&&l.ch<=N&&l.ch;return ce(p.line,M?0:N,p.sticky)}return p}function Hl(a,l,p){if(typeof l=="string"&&(l=na[l],!l))return!1;a.display.input.ensurePolled();var u=a.display.shift,h=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),h=l(a)!=Q}finally{a.display.shift=u,a.state.suppressEdits=!1}return h}function nM(a,l,p){for(var u=0;u<a.state.keyMaps.length;u++){var h=Zo(l,a.state.keyMaps[u],p,a);if(h)return h}return a.options.extraKeys&&Zo(l,a.options.extraKeys,p,a)||Zo(l,a.options.keyMap,p,a)}var iM=new he;function ia(a,l,p,u){var h=a.state.keySeq;if(h){if(Fg(l))return"handled";if(/\'$/.test(l)?a.state.keySeq=null:iM.set(50,function(){a.state.keySeq==h&&(a.state.keySeq=null,a.display.input.reset())}),zg(a,h+" "+l,p,u))return!0}return zg(a,l,p,u)}function zg(a,l,p,u){var h=nM(a,l,u);return h=="multi"&&(a.state.keySeq=l),h=="handled"&&Ht(a,"keyHandled",a,l,p),(h=="handled"||h=="multi")&&(mt(p),ou(a)),!!h}function Hg(a,l){var p=Pg(l,!0);return p?l.shiftKey&&!a.state.keySeq?ia(a,"Shift-"+p,l,function(u){return Hl(a,u,!0)})||ia(a,p,l,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return Hl(a,u)}):ia(a,p,l,function(u){return Hl(a,u)}):!1}function oM(a,l,p){return ia(a,"'"+p+"'",l,function(u){return Hl(a,u,!0)})}var Eu=null;function Ug(a){var l=this;if(!(a.target&&a.target!=l.display.input.getField())&&(l.curOp.focus=Z(pe(l)),!at(l,a))){f&&g<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;l.display.shift=p==16||a.shiftKey;var u=Hg(l,a);E&&(Eu=u?p:null,!u&&p==88&&!qn&&(O?a.metaKey:a.ctrlKey)&&l.replaceSelection("",null,"cut")),i&&!O&&!u&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),p==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&rM(l)}}function rM(a){var l=a.display.lineDiv;J(l,"CodeMirror-crosshair");function p(u){(u.keyCode==18||!u.altKey)&&(L(l,"CodeMirror-crosshair"),Ue(document,"keyup",p),Ue(document,"mouseover",p))}be(document,"keyup",p),be(document,"mouseover",p)}function Wg(a){a.keyCode==16&&(this.doc.sel.shift=!1),at(this,a)}function Gg(a){var l=this;if(!(a.target&&a.target!=l.display.input.getField())&&!(vi(l.display,a)||at(l,a)||a.ctrlKey&&!a.altKey||O&&a.metaKey)){var p=a.keyCode,u=a.charCode;if(E&&p==Eu){Eu=null,mt(a);return}if(!(E&&(!a.which||a.which<10)&&Hg(l,a))){var h=String.fromCharCode(u==null?p:u);h!="\b"&&(oM(l,a,h)||l.display.input.onKeyPress(a))}}}var aM=400,Au=function(a,l,p){this.time=a,this.pos=l,this.button=p};Au.prototype.compare=function(a,l,p){return this.time+aM>a&&Ce(l,this.pos)==0&&p==this.button};var oa,ra;function lM(a,l){var p=+new Date;return ra&&ra.compare(p,a,l)?(oa=ra=null,"triple"):oa&&oa.compare(p,a,l)?(ra=new Au(p,a,l),oa=null,"double"):(oa=new Au(p,a,l),ra=null,"single")}function Kg(a){var l=this,p=l.display;if(!(at(l,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,vi(p,a)){y||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!Su(l,a)){var u=qi(l,a),h=Dr(a),N=u?lM(u,h):"single";se(l).focus(),h==1&&l.state.selectingText&&l.state.selectingText(a),!(u&&sM(l,h,u,N,a))&&(h==1?u?cM(l,u,N,a):rn(a)==p.scroller&&mt(a):h==2?(u&&Fl(l.doc,u),setTimeout(function(){return p.input.focus()},20)):h==3&&(T?l.display.input.onContextMenu(a):ru(l)))}}}function sM(a,l,p,u,h){var N="Click";return u=="double"?N="Double"+N:u=="triple"&&(N="Triple"+N),N=(l==1?"Left":l==2?"Middle":"Right")+N,ia(a,Mg(N,h),h,function(M){if(typeof M=="string"&&(M=na[M]),!M)return!1;var H=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),H=M(a,p)!=Q}finally{a.state.suppressEdits=!1}return H})}function dM(a,l,p){var u=a.getOption("configureMouse"),h=u?u(a,l,p):{};if(h.unit==null){var N=D?p.shiftKey&&p.metaKey:p.altKey;h.unit=N?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(h.extend==null||a.doc.extend)&&(h.extend=a.doc.extend||p.shiftKey),h.addNew==null&&(h.addNew=O?p.metaKey:p.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(O?p.altKey:p.ctrlKey)),h}function cM(a,l,p,u){f?setTimeout(ye(Ym,a),0):a.curOp.focus=Z(pe(a));var h=dM(a,p,u),N=a.doc.sel,M;a.options.dragDrop&&Fc&&!a.isReadOnly()&&p=="single"&&(M=N.contains(l))>-1&&(Ce((M=N.ranges[M]).from(),l)<0||l.xRel>0)&&(Ce(M.to(),l)>0||l.xRel<0)?uM(a,u,l,h):fM(a,u,l,h)}function uM(a,l,p,u){var h=a.display,N=!1,M=Ut(a,function(X){y&&(h.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:ru(a)),Ue(h.wrapper.ownerDocument,"mouseup",M),Ue(h.wrapper.ownerDocument,"mousemove",H),Ue(h.scroller,"dragstart",G),Ue(h.scroller,"drop",M),N||(mt(X),u.addNew||Fl(a.doc,p,null,null,u.extend),y&&!_||f&&g==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),H=function(X){N=N||Math.abs(l.clientX-X.clientX)+Math.abs(l.clientY-X.clientY)>=10},G=function(){return N=!0};y&&(h.scroller.draggable=!0),a.state.draggingText=M,M.copy=!u.moveOnDrag,be(h.wrapper.ownerDocument,"mouseup",M),be(h.wrapper.ownerDocument,"mousemove",H),be(h.scroller,"dragstart",G),be(h.scroller,"drop",M),a.state.delayingBlurEvent=!0,setTimeout(function(){return h.input.focus()},20),h.scroller.dragDrop&&h.scroller.dragDrop()}function Yg(a,l,p){if(p=="char")return new vt(l,l);if(p=="word")return a.findWordAt(l);if(p=="line")return new vt(ce(l.line,0),nt(a.doc,ce(l.line+1,0)));var u=p(a,l);return new vt(u.from,u.to)}function fM(a,l,p,u){f&&ru(a);var h=a.display,N=a.doc;mt(l);var M,H,G=N.sel,X=G.ranges;if(u.addNew&&!u.extend?(H=N.sel.contains(p),H>-1?M=X[H]:M=new vt(p,p)):(M=N.sel.primary(),H=N.sel.primIndex),u.unit=="rectangle")u.addNew||(M=new vt(p,p)),p=qi(a,l,!0,!0),H=-1;else{var ne=Yg(a,p,u.unit);u.extend?M=yu(M,ne.anchor,ne.head,u.extend):M=ne}u.addNew?H==-1?(H=X.length,Xt(N,jn(a,X.concat([M]),H),{scroll:!1,origin:"*mouse"})):X.length>1&&X[H].empty()&&u.unit=="char"&&!u.extend?(Xt(N,jn(a,X.slice(0,H).concat(X.slice(H+1)),0),{scroll:!1,origin:"*mouse"}),G=N.sel):bu(N,H,M,te):(H=0,Xt(N,new kn([M],0),te),G=N.sel);var re=p;function ve($e){if(Ce(re,$e)!=0)if(re=$e,u.unit=="rectangle"){for(var He=[],Je=a.options.tabSize,Qe=ue(Ge(N,p.line).text,p.ch,Je),ut=ue(Ge(N,$e.line).text,$e.ch,Je),_t=Math.min(Qe,ut),Gt=Math.max(Qe,ut),Tt=Math.min(p.line,$e.line),vn=Math.min(a.lastLine(),Math.max(p.line,$e.line));Tt<=vn;Tt++){var sn=Ge(N,Tt).text,It=ie(sn,_t,Je);_t==Gt?He.push(new vt(ce(Tt,It),ce(Tt,It))):sn.length>It&&He.push(new vt(ce(Tt,It),ce(Tt,ie(sn,Gt,Je))))}He.length||He.push(new vt(p,p)),Xt(N,jn(a,G.ranges.slice(0,H).concat(He),H),{origin:"*mouse",scroll:!1}),a.scrollIntoView($e)}else{var dn=M,Yt=Yg(a,$e,u.unit),Lt=dn.anchor,Ft;Ce(Yt.anchor,Lt)>0?(Ft=Yt.head,Lt=Pt(dn.from(),Yt.anchor)):(Ft=Yt.anchor,Lt=ht(dn.to(),Yt.head));var Bt=G.ranges.slice(0);Bt[H]=pM(a,new vt(nt(N,Lt),Ft)),Xt(N,jn(a,Bt,H),te)}}var me=h.wrapper.getBoundingClientRect(),_e=0;function xe($e){var He=++_e,Je=qi(a,$e,!0,u.unit=="rectangle");if(!!Je)if(Ce(Je,re)!=0){a.curOp.focus=Z(pe(a)),ve(Je);var Qe=Dl(h,N);(Je.line>=Qe.to||Je.line<Qe.from)&&setTimeout(Ut(a,function(){_e==He&&xe($e)}),150)}else{var ut=$e.clientY<me.top?-20:$e.clientY>me.bottom?20:0;ut&&setTimeout(Ut(a,function(){_e==He&&(h.scroller.scrollTop+=ut,xe($e))}),50)}}function Ne($e){a.state.selectingText=!1,_e=1/0,$e&&(mt($e),h.input.focus()),Ue(h.wrapper.ownerDocument,"mousemove",Be),Ue(h.wrapper.ownerDocument,"mouseup",Le),N.history.lastSelOrigin=null}var Be=Ut(a,function($e){$e.buttons===0||!Dr($e)?Ne($e):xe($e)}),Le=Ut(a,Ne);a.state.selectingText=Le,be(h.wrapper.ownerDocument,"mousemove",Be),be(h.wrapper.ownerDocument,"mouseup",Le)}function pM(a,l){var p=l.anchor,u=l.head,h=Ge(a.doc,p.line);if(Ce(p,u)==0&&p.sticky==u.sticky)return l;var N=Xe(h);if(!N)return l;var M=Te(N,p.ch,p.sticky),H=N[M];if(H.from!=p.ch&&H.to!=p.ch)return l;var G=M+(H.from==p.ch==(H.level!=1)?0:1);if(G==0||G==N.length)return l;var X;if(u.line!=p.line)X=(u.line-p.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ne=Te(N,u.ch,u.sticky),re=ne-M||(u.ch-p.ch)*(H.level==1?-1:1);ne==G-1||ne==G?X=re<0:X=re>0}var ve=N[G+(X?-1:0)],me=X==(ve.level==1),_e=me?ve.from:ve.to,xe=me?"after":"before";return p.ch==_e&&p.sticky==xe?l:new vt(new ce(p.line,_e,xe),u)}function Qg(a,l,p,u){var h,N;if(l.touches)h=l.touches[0].clientX,N=l.touches[0].clientY;else try{h=l.clientX,N=l.clientY}catch{return!1}if(h>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;u&&mt(l);var M=a.display,H=M.lineDiv.getBoundingClientRect();if(N>H.bottom||!Nt(a,p))return Ni(l);N-=H.top-M.viewOffset;for(var G=0;G<a.display.gutterSpecs.length;++G){var X=M.gutters.childNodes[G];if(X&&X.getBoundingClientRect().right>=h){var ne=ti(a.doc,N),re=a.display.gutterSpecs[G];return We(a,p,a,ne,re.className,l),Ni(l)}}}function Su(a,l){return Qg(a,l,"gutterClick",!0)}function Xg(a,l){vi(a.display,l)||hM(a,l)||at(a,l,"contextmenu")||T||a.display.input.onContextMenu(l)}function hM(a,l){return Nt(a,"gutterContextMenu")?Qg(a,l,"gutterContextMenu",!1):!1}function Jg(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Pr(a)}var er={toString:function(){return"CodeMirror.Init"}},Zg={},Ul={};function mM(a){var l=a.optionHandlers;function p(u,h,N,M){a.defaults[u]=h,N&&(l[u]=M?function(H,G,X){X!=er&&N(H,G,X)}:N)}a.defineOption=p,a.Init=er,p("value","",function(u,h){return u.setValue(h)},!0),p("mode",null,function(u,h){u.doc.modeOption=h,mu(u)},!0),p("indentUnit",2,mu,!0),p("indentWithTabs",!1),p("smartIndent",!0),p("tabSize",4,function(u){Kr(u),Pr(u),an(u)},!0),p("lineSeparator",null,function(u,h){if(u.doc.lineSep=h,!!h){var N=[],M=u.doc.first;u.doc.iter(function(G){for(var X=0;;){var ne=G.text.indexOf(h,X);if(ne==-1)break;X=ne+h.length,N.push(ce(M,ne))}M++});for(var H=N.length-1;H>=0;H--)Xo(u.doc,h,N[H],ce(N[H].line,N[H].ch+h.length))}}),p("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(u,h,N){u.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),N!=er&&u.refresh()}),p("specialCharPlaceholder",UI,function(u){return u.refresh()},!0),p("electricChars",!0),p("inputStyle",x?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),p("spellcheck",!1,function(u,h){return u.getInputField().spellcheck=h},!0),p("autocorrect",!1,function(u,h){return u.getInputField().autocorrect=h},!0),p("autocapitalize",!1,function(u,h){return u.getInputField().autocapitalize=h},!0),p("rtlMoveVisually",!V),p("wholeLineUpdateBefore",!0),p("theme","default",function(u){Jg(u),Gr(u)},!0),p("keyMap","default",function(u,h,N){var M=zl(h),H=N!=er&&zl(N);H&&H.detach&&H.detach(u,M),M.attach&&M.attach(u,H||null)}),p("extraKeys",null),p("configureMouse",null),p("lineWrapping",!1,vM,!0),p("gutters",[],function(u,h){u.display.gutterSpecs=pu(h,u.options.lineNumbers),Gr(u)},!0),p("fixedGutter",!0,function(u,h){u.display.gutters.style.left=h?tu(u.display)+"px":"0",u.refresh()},!0),p("coverGutterNextToScrollbar",!1,function(u){return Go(u)},!0),p("scrollbarStyle","native",function(u){eg(u),Go(u),u.display.scrollbars.setScrollTop(u.doc.scrollTop),u.display.scrollbars.setScrollLeft(u.doc.scrollLeft)},!0),p("lineNumbers",!1,function(u,h){u.display.gutterSpecs=pu(u.options.gutters,h),Gr(u)},!0),p("firstLineNumber",1,Gr,!0),p("lineNumberFormatter",function(u){return u},Gr,!0),p("showCursorWhenSelecting",!1,Lr,!0),p("resetSelectionOnContextMenu",!0),p("lineWiseCopyCut",!0),p("pasteLinesPerSelection",!0),p("selectionsMayTouch",!1),p("readOnly",!1,function(u,h){h=="nocursor"&&(Uo(u),u.display.input.blur()),u.display.input.readOnlyChanged(h)}),p("screenReaderLabel",null,function(u,h){h=h===""?null:h,u.display.input.screenReaderLabelChanged(h)}),p("disableInput",!1,function(u,h){h||u.display.input.reset()},!0),p("dragDrop",!0,gM),p("allowDropFileTypes",null),p("cursorBlinkRate",530),p("cursorScrollMargin",0),p("cursorHeight",1,Lr,!0),p("singleCursorHeightPerLine",!0,Lr,!0),p("workTime",100),p("workDelay",100),p("flattenSpans",!0,Kr,!0),p("addModeClass",!1,Kr,!0),p("pollInterval",100),p("undoDepth",200,function(u,h){return u.doc.history.undoDepth=h}),p("historyEventDelay",1250),p("viewportMargin",10,function(u){return u.refresh()},!0),p("maxHighlightLength",1e4,Kr,!0),p("moveInputWithCursor",!0,function(u,h){h||u.display.input.resetPosition()}),p("tabindex",null,function(u,h){return u.display.input.getField().tabIndex=h||""}),p("autofocus",null),p("direction","ltr",function(u,h){return u.doc.setDirection(h)},!0),p("phrases",null)}function gM(a,l,p){var u=p&&p!=er;if(!l!=!u){var h=a.display.dragFunctions,N=l?be:Ue;N(a.display.scroller,"dragstart",h.start),N(a.display.scroller,"dragenter",h.enter),N(a.display.scroller,"dragover",h.over),N(a.display.scroller,"dragleave",h.leave),N(a.display.scroller,"drop",h.drop)}}function vM(a){a.options.lineWrapping?(J(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(L(a.display.wrapper,"CodeMirror-wrap"),Wc(a)),nu(a),an(a),Pr(a),setTimeout(function(){return Go(a)},100)}function St(a,l){var p=this;if(!(this instanceof St))return new St(a,l);this.options=l=l?fe(l):{},fe(Zg,l,!1);var u=l.value;typeof u=="string"?u=new ln(u,l.mode,null,l.lineSeparator,l.direction):l.mode&&(u.modeOption=l.mode),this.doc=u;var h=new St.inputStyles[l.inputStyle](this),N=this.display=new OF(a,u,h,l);N.wrapper.CodeMirror=this,Jg(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),eg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new he,keySeq:null,specialChars:null},l.autofocus&&!x&&N.input.focus(),f&&g<11&&setTimeout(function(){return p.display.input.reset(!0)},20),yM(this),QF(),io(this),this.curOp.forceUpdate=!0,cg(this,u),l.autofocus&&!x||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&au(p)},20):Uo(this);for(var M in Ul)Ul.hasOwnProperty(M)&&Ul[M](this,l[M],er);ig(this),l.finishInit&&l.finishInit(this);for(var H=0;H<xu.length;++H)xu[H](this);oo(this),y&&l.lineWrapping&&getComputedStyle(N.lineDiv).textRendering=="optimizelegibility"&&(N.lineDiv.style.textRendering="auto")}St.defaults=Zg,St.optionHandlers=Ul;function yM(a){var l=a.display;be(l.scroller,"mousedown",Ut(a,Kg)),f&&g<11?be(l.scroller,"dblclick",Ut(a,function(G){if(!at(a,G)){var X=qi(a,G);if(!(!X||Su(a,G)||vi(a.display,G))){mt(G);var ne=a.findWordAt(X);Fl(a.doc,ne.anchor,ne.head)}}})):be(l.scroller,"dblclick",function(G){return at(a,G)||mt(G)}),be(l.scroller,"contextmenu",function(G){return Xg(a,G)}),be(l.input.getField(),"contextmenu",function(G){l.scroller.contains(G.target)||Xg(a,G)});var p,u={end:0};function h(){l.activeTouch&&(p=setTimeout(function(){return l.activeTouch=null},1e3),u=l.activeTouch,u.end=+new Date)}function N(G){if(G.touches.length!=1)return!1;var X=G.touches[0];return X.radiusX<=1&&X.radiusY<=1}function M(G,X){if(X.left==null)return!0;var ne=X.left-G.left,re=X.top-G.top;return ne*ne+re*re>20*20}be(l.scroller,"touchstart",function(G){if(!at(a,G)&&!N(G)&&!Su(a,G)){l.input.ensurePolled(),clearTimeout(p);var X=+new Date;l.activeTouch={start:X,moved:!1,prev:X-u.end<=300?u:null},G.touches.length==1&&(l.activeTouch.left=G.touches[0].pageX,l.activeTouch.top=G.touches[0].pageY)}}),be(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),be(l.scroller,"touchend",function(G){var X=l.activeTouch;if(X&&!vi(l,G)&&X.left!=null&&!X.moved&&new Date-X.start<300){var ne=a.coordsChar(l.activeTouch,"page"),re;!X.prev||M(X,X.prev)?re=new vt(ne,ne):!X.prev.prev||M(X,X.prev.prev)?re=a.findWordAt(ne):re=new vt(ce(ne.line,0),nt(a.doc,ce(ne.line+1,0))),a.setSelection(re.anchor,re.head),a.focus(),mt(G)}h()}),be(l.scroller,"touchcancel",h),be(l.scroller,"scroll",function(){l.scroller.clientHeight&&(zr(a,l.scroller.scrollTop),to(a,l.scroller.scrollLeft,!0),We(a,"scroll",a))}),be(l.scroller,"mousewheel",function(G){return ag(a,G)}),be(l.scroller,"DOMMouseScroll",function(G){return ag(a,G)}),be(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(G){at(a,G)||Fn(G)},over:function(G){at(a,G)||(YF(a,G),Fn(G))},start:function(G){return KF(a,G)},drop:Ut(a,GF),leave:function(G){at(a,G)||Rg(a)}};var H=l.input.getField();be(H,"keyup",function(G){return Wg.call(a,G)}),be(H,"keydown",Ut(a,Ug)),be(H,"keypress",Ut(a,Gg)),be(H,"focus",function(G){return au(a,G)}),be(H,"blur",function(G){return Uo(a,G)})}var xu=[];St.defineInitHook=function(a){return xu.push(a)};function aa(a,l,p,u){var h=a.doc,N;p==null&&(p="add"),p=="smart"&&(h.mode.indent?N=Rr(a,l).state:p="prev");var M=a.options.tabSize,H=Ge(h,l),G=ue(H.text,null,M);H.stateAfter&&(H.stateAfter=null);var X=H.text.match(/^\s*/)[0],ne;if(!u&&!/\S/.test(H.text))ne=0,p="not";else if(p=="smart"&&(ne=h.mode.indent(N,H.text.slice(X.length),H.text),ne==Q||ne>150)){if(!u)return;p="prev"}p=="prev"?l>h.first?ne=ue(Ge(h,l-1).text,null,M):ne=0:p=="add"?ne=G+a.options.indentUnit:p=="subtract"?ne=G-a.options.indentUnit:typeof p=="number"&&(ne=G+p),ne=Math.max(0,ne);var re="",ve=0;if(a.options.indentWithTabs)for(var me=Math.floor(ne/M);me;--me)ve+=M,re+=" ";if(ve<ne&&(re+=Ee(ne-ve)),re!=X)return Xo(h,re,ce(l,0),ce(l,X.length),"+input"),H.stateAfter=null,!0;for(var _e=0;_e<h.sel.ranges.length;_e++){var xe=h.sel.ranges[_e];if(xe.head.line==l&&xe.head.ch<X.length){var Ne=ce(l,X.length);bu(h,_e,new vt(Ne,Ne));break}}}var zn=null;function Wl(a){zn=a}function ku(a,l,p,u,h){var N=a.doc;a.display.shift=!1,u||(u=N.sel);var M=+new Date-200,H=h=="paste"||a.state.pasteIncoming>M,G=Br(l),X=null;if(H&&u.ranges.length>1)if(zn&&zn.text.join(`
`)==l){if(u.ranges.length%zn.text.length==0){X=[];for(var ne=0;ne<zn.text.length;ne++)X.push(N.splitLines(zn.text[ne]))}}else G.length==u.ranges.length&&a.options.pasteLinesPerSelection&&(X=ke(G,function(Be){return[Be]}));for(var re=a.curOp.updateInput,ve=u.ranges.length-1;ve>=0;ve--){var me=u.ranges[ve],_e=me.from(),xe=me.to();me.empty()&&(p&&p>0?_e=ce(_e.line,_e.ch-p):a.state.overwrite&&!H?xe=ce(xe.line,Math.min(Ge(N,xe.line).text.length,xe.ch+Se(G).length)):H&&zn&&zn.lineWise&&zn.text.join(`
`)==G.join(`
`)&&(_e=xe=ce(_e.line,0)));var Ne={from:_e,to:xe,text:X?X[ve%X.length]:G,origin:h||(H?"paste":a.state.cutIncoming>M?"cut":"+input")};Qo(a.doc,Ne),Ht(a,"inputRead",a,Ne)}l&&!H&&ev(a,l),Wo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=re),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function qg(a,l){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&gn(l,function(){return ku(l,p,0,null,"paste")}),!0}function ev(a,l){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,u=p.ranges.length-1;u>=0;u--){var h=p.ranges[u];if(!(h.head.ch>100||u&&p.ranges[u-1].head.line==h.head.line)){var N=a.getModeAt(h.head),M=!1;if(N.electricChars){for(var H=0;H<N.electricChars.length;H++)if(l.indexOf(N.electricChars.charAt(H))>-1){M=aa(a,h.head.line,"smart");break}}else N.electricInput&&N.electricInput.test(Ge(a.doc,h.head.line).text.slice(0,h.head.ch))&&(M=aa(a,h.head.line,"smart"));M&&Ht(a,"electricInput",a,h.head.line)}}}function tv(a){for(var l=[],p=[],u=0;u<a.doc.sel.ranges.length;u++){var h=a.doc.sel.ranges[u].head.line,N={anchor:ce(h,0),head:ce(h+1,0)};p.push(N),l.push(a.getRange(N.anchor,N.head))}return{text:l,ranges:p}}function nv(a,l,p,u){a.setAttribute("autocorrect",p?"":"off"),a.setAttribute("autocapitalize",u?"":"off"),a.setAttribute("spellcheck",!!l)}function iv(){var a=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=R("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?a.style.width="1000px":a.setAttribute("wrap","off"),b&&(a.style.border="1px solid black"),nv(a),l}function bM(a){var l=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){se(this).focus(),this.display.input.focus()},setOption:function(u,h){var N=this.options,M=N[u];N[u]==h&&u!="mode"||(N[u]=h,l.hasOwnProperty(u)&&Ut(this,l[u])(this,h,M),We(this,"optionChange",this,u))},getOption:function(u){return this.options[u]},getDoc:function(){return this.doc},addKeyMap:function(u,h){this.state.keyMaps[h?"push":"unshift"](zl(u))},removeKeyMap:function(u){for(var h=this.state.keyMaps,N=0;N<h.length;++N)if(h[N]==u||h[N].name==u)return h.splice(N,1),!0},addOverlay:en(function(u,h){var N=u.token?u:a.getMode(this.options,u);if(N.startState)throw new Error("Overlays may not be stateful.");qe(this.state.overlays,{mode:N,modeSpec:u,opaque:h&&h.opaque,priority:h&&h.priority||0},function(M){return M.priority}),this.state.modeGen++,an(this)}),removeOverlay:en(function(u){for(var h=this.state.overlays,N=0;N<h.length;++N){var M=h[N].modeSpec;if(M==u||typeof u=="string"&&M.name==u){h.splice(N,1),this.state.modeGen++,an(this);return}}}),indentLine:en(function(u,h,N){typeof h!="string"&&typeof h!="number"&&(h==null?h=this.options.smartIndent?"smart":"prev":h=h?"add":"subtract"),ee(this.doc,u)&&aa(this,u,h,N)}),indentSelection:en(function(u){for(var h=this.doc.sel.ranges,N=-1,M=0;M<h.length;M++){var H=h[M];if(H.empty())H.head.line>N&&(aa(this,H.head.line,u,!0),N=H.head.line,M==this.doc.sel.primIndex&&Wo(this));else{var G=H.from(),X=H.to(),ne=Math.max(N,G.line);N=Math.min(this.lastLine(),X.line-(X.ch?0:1))+1;for(var re=ne;re<N;++re)aa(this,re,u);var ve=this.doc.sel.ranges;G.ch==0&&h.length==ve.length&&ve[M].from().ch>0&&bu(this.doc,M,new vt(G,ve[M].to()),K)}}}),getTokenAt:function(u,h){return fm(this,u,h)},getLineTokens:function(u,h){return fm(this,ce(u),h,!0)},getTokenTypeAt:function(u){u=nt(this.doc,u);var h=dm(this,Ge(this.doc,u.line)),N=0,M=(h.length-1)/2,H=u.ch,G;if(H==0)G=h[2];else for(;;){var X=N+M>>1;if((X?h[X*2-1]:0)>=H)M=X;else if(h[X*2+1]<H)N=X+1;else{G=h[X*2+2];break}}var ne=G?G.indexOf("overlay "):-1;return ne<0?G:ne==0?null:G.slice(0,ne-1)},getModeAt:function(u){var h=this.doc.mode;return h.innerMode?a.innerMode(h,this.getTokenAt(u).state).mode:h},getHelper:function(u,h){return this.getHelpers(u,h)[0]},getHelpers:function(u,h){var N=[];if(!p.hasOwnProperty(h))return N;var M=p[h],H=this.getModeAt(u);if(typeof H[h]=="string")M[H[h]]&&N.push(M[H[h]]);else if(H[h])for(var G=0;G<H[h].length;G++){var X=M[H[h][G]];X&&N.push(X)}else H.helperType&&M[H.helperType]?N.push(M[H.helperType]):M[H.name]&&N.push(M[H.name]);for(var ne=0;ne<M._global.length;ne++){var re=M._global[ne];re.pred(H,this)&&$(N,re.val)==-1&&N.push(re.val)}return N},getStateAfter:function(u,h){var N=this.doc;return u=xn(N,u==null?N.first+N.size-1:u),Rr(this,u+1,h).state},cursorCoords:function(u,h){var N,M=this.doc.sel.primary();return u==null?N=M.head:typeof u=="object"?N=nt(this.doc,u):N=u?M.from():M.to(),Ln(this,N,h||"page")},charCoords:function(u,h){return kl(this,nt(this.doc,u),h||"page")},coordsChar:function(u,h){return u=jm(this,u,h||"page"),Zc(this,u.left,u.top)},lineAtHeight:function(u,h){return u=jm(this,{top:u,left:0},h||"page").top,ti(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,h,N){var M=!1,H;if(typeof u=="number"){var G=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>G&&(u=G,M=!0),H=Ge(this.doc,u)}else H=u;return xl(this,H,{top:0,left:0},h||"page",N||M).top+(M?this.doc.height-gi(H):0)},defaultTextHeight:function(){return zo(this.display)},defaultCharWidth:function(){return Ho(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,h,N,M,H){var G=this.display;u=Ln(this,nt(this.doc,u));var X=u.bottom,ne=u.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),G.sizer.appendChild(h),M=="over")X=u.top;else if(M=="above"||M=="near"){var re=Math.max(G.wrapper.clientHeight,this.doc.height),ve=Math.max(G.sizer.clientWidth,G.lineSpace.clientWidth);(M=="above"||u.bottom+h.offsetHeight>re)&&u.top>h.offsetHeight?X=u.top-h.offsetHeight:u.bottom+h.offsetHeight<=re&&(X=u.bottom),ne+h.offsetWidth>ve&&(ne=ve-h.offsetWidth)}h.style.top=X+"px",h.style.left=h.style.right="",H=="right"?(ne=G.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(H=="left"?ne=0:H=="middle"&&(ne=(G.sizer.clientWidth-h.offsetWidth)/2),h.style.left=ne+"px"),N&&gF(this,{left:ne,top:X,right:ne+h.offsetWidth,bottom:X+h.offsetHeight})},triggerOnKeyDown:en(Ug),triggerOnKeyPress:en(Gg),triggerOnKeyUp:Wg,triggerOnMouseDown:en(Kg),execCommand:function(u){if(na.hasOwnProperty(u))return na[u].call(null,this)},triggerElectric:en(function(u){ev(this,u)}),findPosH:function(u,h,N,M){var H=1;h<0&&(H=-1,h=-h);for(var G=nt(this.doc,u),X=0;X<h&&(G=Nu(this.doc,G,H,N,M),!G.hitSide);++X);return G},moveH:en(function(u,h){var N=this;this.extendSelectionsBy(function(M){return N.display.shift||N.doc.extend||M.empty()?Nu(N.doc,M.head,u,h,N.options.rtlMoveVisually):u<0?M.from():M.to()},q)}),deleteH:en(function(u,h){var N=this.doc.sel,M=this.doc;N.somethingSelected()?M.replaceSelection("",null,"+delete"):qo(this,function(H){var G=Nu(M,H.head,u,h,!1);return u<0?{from:G,to:H.head}:{from:H.head,to:G}})}),findPosV:function(u,h,N,M){var H=1,G=M;h<0&&(H=-1,h=-h);for(var X=nt(this.doc,u),ne=0;ne<h;++ne){var re=Ln(this,X,"div");if(G==null?G=re.left:re.left=G,X=ov(this,re,H,N),X.hitSide)break}return X},moveV:en(function(u,h){var N=this,M=this.doc,H=[],G=!this.display.shift&&!M.extend&&M.sel.somethingSelected();if(M.extendSelectionsBy(function(ne){if(G)return u<0?ne.from():ne.to();var re=Ln(N,ne.head,"div");ne.goalColumn!=null&&(re.left=ne.goalColumn),H.push(re.left);var ve=ov(N,re,u,h);return h=="page"&&ne==M.sel.primary()&&su(N,kl(N,ve,"div").top-re.top),ve},q),H.length)for(var X=0;X<M.sel.ranges.length;X++)M.sel.ranges[X].goalColumn=H[X]}),findWordAt:function(u){var h=this.doc,N=Ge(h,u.line).text,M=u.ch,H=u.ch;if(N){var G=this.getHelper(u,"wordChars");(u.sticky=="before"||H==N.length)&&M?--M:++H;for(var X=N.charAt(M),ne=we(X,G)?function(re){return we(re,G)}:/\s/.test(X)?function(re){return/\s/.test(re)}:function(re){return!/\s/.test(re)&&!we(re)};M>0&&ne(N.charAt(M-1));)--M;for(;H<N.length&&ne(N.charAt(H));)++H}return new vt(ce(u.line,M),ce(u.line,H))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?J(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),We(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Z(pe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:en(function(u,h){jr(this,u,h)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-ii(this)-this.display.barHeight,width:u.scrollWidth-ii(this)-this.display.barWidth,clientHeight:Yc(this),clientWidth:Ji(this)}},scrollIntoView:en(function(u,h){u==null?(u={from:this.doc.sel.primary().head,to:null},h==null&&(h=this.options.cursorScrollMargin)):typeof u=="number"?u={from:ce(u,0),to:null}:u.from==null&&(u={from:u,to:null}),u.to||(u.to=u.from),u.margin=h||0,u.from.line!=null?vF(this,u):Xm(this,u.from,u.to,u.margin)}),setSize:en(function(u,h){var N=this,M=function(G){return typeof G=="number"||/^\d+$/.test(String(G))?G+"px":G};u!=null&&(this.display.wrapper.style.width=M(u)),h!=null&&(this.display.wrapper.style.height=M(h)),this.options.lineWrapping&&Mm(this);var H=this.display.viewFrom;this.doc.iter(H,this.display.viewTo,function(G){if(G.widgets){for(var X=0;X<G.widgets.length;X++)if(G.widgets[X].noHScroll){Ri(N,H,"widget");break}}++H}),this.curOp.forceUpdate=!0,We(this,"refresh",this)}),operation:function(u){return gn(this,u)},startOperation:function(){return io(this)},endOperation:function(){return oo(this)},refresh:en(function(){var u=this.display.cachedTextHeight;an(this),this.curOp.forceUpdate=!0,Pr(this),jr(this,this.doc.scrollLeft,this.doc.scrollTop),uu(this.display),(u==null||Math.abs(u-zo(this.display))>.5||this.options.lineWrapping)&&nu(this),We(this,"refresh",this)}),swapDoc:en(function(u){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),cg(this,u),Pr(this),this.display.input.reset(),jr(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,Ht(this,"swapDoc",this,h),h}),phrase:function(u){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,u)?h[u]:u},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(a),a.registerHelper=function(u,h,N){p.hasOwnProperty(u)||(p[u]=a[u]={_global:[]}),p[u][h]=N},a.registerGlobalHelper=function(u,h,N,M){a.registerHelper(u,h,M),p[u]._global.push({pred:N,val:M})}}function Nu(a,l,p,u,h){var N=l,M=p,H=Ge(a,l.line),G=h&&a.direction=="rtl"?-p:p;function X(){var Le=l.line+G;return Le<a.first||Le>=a.first+a.size?!1:(l=new ce(Le,l.ch,l.sticky),H=Ge(a,Le))}function ne(Le){var $e;if(u=="codepoint"){var He=H.text.charCodeAt(l.ch+(p>0?0:-1));if(isNaN(He))$e=null;else{var Je=p>0?He>=55296&&He<56320:He>=56320&&He<57343;$e=new ce(l.line,Math.max(0,Math.min(H.text.length,l.ch+p*(Je?2:1))),-p)}}else h?$e=eM(a.cm,H,l,p):$e=_u(H,l,p);if($e==null)if(!Le&&X())l=wu(h,a.cm,H,l.line,G);else return!1;else l=$e;return!0}if(u=="char"||u=="codepoint")ne();else if(u=="column")ne(!0);else if(u=="word"||u=="group")for(var re=null,ve=u=="group",me=a.cm&&a.cm.getHelper(l,"wordChars"),_e=!0;!(p<0&&!ne(!_e));_e=!1){var xe=H.text.charAt(l.ch)||`
`,Ne=we(xe,me)?"w":ve&&xe==`
`?"n":!ve||/\s/.test(xe)?null:"p";if(ve&&!_e&&!Ne&&(Ne="s"),re&&re!=Ne){p<0&&(p=1,ne(),l.sticky="after");break}if(Ne&&(re=Ne),p>0&&!ne(!_e))break}var Be=Pl(a,l,N,M,!0);return tt(N,Be)&&(Be.hitSide=!0),Be}function ov(a,l,p,u){var h=a.doc,N=l.left,M;if(u=="page"){var H=Math.min(a.display.wrapper.clientHeight,se(a).innerHeight||h(a).documentElement.clientHeight),G=Math.max(H-.5*zo(a.display),3);M=(p>0?l.bottom:l.top)+p*G}else u=="line"&&(M=p>0?l.bottom+3:l.top-3);for(var X;X=Zc(a,N,M),!!X.outside;){if(p<0?M<=0:M>=h.height){X.hitSide=!0;break}M+=p*5}return X}var bt=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bt.prototype.init=function(a){var l=this,p=this,u=p.cm,h=p.div=a.lineDiv;h.contentEditable=!0,nv(h,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function N(H){for(var G=H.target;G;G=G.parentNode){if(G==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(G.className))break}return!1}be(h,"paste",function(H){!N(H)||at(u,H)||qg(H,u)||g<=11&&setTimeout(Ut(u,function(){return l.updateFromDOM()}),20)}),be(h,"compositionstart",function(H){l.composing={data:H.data,done:!1}}),be(h,"compositionupdate",function(H){l.composing||(l.composing={data:H.data,done:!1})}),be(h,"compositionend",function(H){l.composing&&(H.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),be(h,"touchstart",function(){return p.forceCompositionEnd()}),be(h,"input",function(){l.composing||l.readFromDOMSoon()});function M(H){if(!(!N(H)||at(u,H))){if(u.somethingSelected())Wl({lineWise:!1,text:u.getSelections()}),H.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var G=tv(u);Wl({lineWise:!0,text:G.text}),H.type=="cut"&&u.operation(function(){u.setSelections(G.ranges,0,K),u.replaceSelection("",null,"cut")})}else return;if(H.clipboardData){H.clipboardData.clearData();var X=zn.text.join(`
`);if(H.clipboardData.setData("Text",X),H.clipboardData.getData("Text")==X){H.preventDefault();return}}var ne=iv(),re=ne.firstChild;u.display.lineSpace.insertBefore(ne,u.display.lineSpace.firstChild),re.value=zn.text.join(`
`);var ve=Z(h.ownerDocument);oe(re),setTimeout(function(){u.display.lineSpace.removeChild(ne),ve.focus(),ve==h&&p.showPrimarySelection()},50)}}be(h,"copy",M),be(h,"cut",M)},bt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var a=Km(this.cm,!1);return a.focus=Z(this.div.ownerDocument)==this.div,a},bt.prototype.showSelection=function(a,l){!a||!this.cm.display.view.length||((a.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(a))},bt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bt.prototype.showPrimarySelection=function(){var a=this.getSelection(),l=this.cm,p=l.doc.sel.primary(),u=p.from(),h=p.to();if(l.display.viewTo==l.display.viewFrom||u.line>=l.display.viewTo||h.line<l.display.viewFrom){a.removeAllRanges();return}var N=Gl(l,a.anchorNode,a.anchorOffset),M=Gl(l,a.focusNode,a.focusOffset);if(!(N&&!N.bad&&M&&!M.bad&&Ce(Pt(N,M),u)==0&&Ce(ht(N,M),h)==0)){var H=l.display.view,G=u.line>=l.display.viewFrom&&rv(l,u)||{node:H[0].measure.map[2],offset:0},X=h.line<l.display.viewTo&&rv(l,h);if(!X){var ne=H[H.length-1].measure,re=ne.maps?ne.maps[ne.maps.length-1]:ne.map;X={node:re[re.length-1],offset:re[re.length-2]-re[re.length-3]}}if(!G||!X){a.removeAllRanges();return}var ve=a.rangeCount&&a.getRangeAt(0),me;try{me=P(G.node,G.offset,X.offset,X.node)}catch{}me&&(!i&&l.state.focused?(a.collapse(G.node,G.offset),me.collapsed||(a.removeAllRanges(),a.addRange(me))):(a.removeAllRanges(),a.addRange(me)),ve&&a.anchorNode==null?a.addRange(ve):i&&this.startGracePeriod()),this.rememberSelection()}},bt.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},bt.prototype.showMultipleSelections=function(a){W(this.cm.display.cursorDiv,a.cursors),W(this.cm.display.selectionDiv,a.selection)},bt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},bt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var l=a.getRangeAt(0).commonAncestorContainer;return j(this.div,l)},bt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Z(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bt.prototype.blur=function(){this.div.blur()},bt.prototype.getField=function(){return this.div},bt.prototype.supportsTouch=function(){return!0},bt.prototype.receivedFocus=function(){var a=this,l=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):gn(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function p(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},bt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},bt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),l=this.cm;if(S&&w&&this.cm.display.gutterSpecs.length&&CM(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=Gl(l,a.anchorNode,a.anchorOffset),u=Gl(l,a.focusNode,a.focusOffset);p&&u&&gn(l,function(){Xt(l.doc,Ii(p,u),K),(p.bad||u.bad)&&(l.curOp.selectionChanged=!0)})}}},bt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,l=a.display,p=a.doc.sel.primary(),u=p.from(),h=p.to();if(u.ch==0&&u.line>a.firstLine()&&(u=ce(u.line-1,Ge(a.doc,u.line-1).length)),h.ch==Ge(a.doc,h.line).text.length&&h.line<a.lastLine()&&(h=ce(h.line+1,0)),u.line<l.viewFrom||h.line>l.viewTo-1)return!1;var N,M,H;u.line==l.viewFrom||(N=eo(a,u.line))==0?(M=gt(l.view[0].line),H=l.view[0].node):(M=gt(l.view[N].line),H=l.view[N-1].node.nextSibling);var G=eo(a,h.line),X,ne;if(G==l.view.length-1?(X=l.viewTo-1,ne=l.lineDiv.lastChild):(X=gt(l.view[G+1].line)-1,ne=l.view[G+1].node.previousSibling),!H)return!1;for(var re=a.doc.splitLines(_M(a,H,ne,M,X)),ve=hi(a.doc,ce(M,0),ce(X,Ge(a.doc,X).text.length));re.length>1&&ve.length>1;)if(Se(re)==Se(ve))re.pop(),ve.pop(),X--;else if(re[0]==ve[0])re.shift(),ve.shift(),M++;else break;for(var me=0,_e=0,xe=re[0],Ne=ve[0],Be=Math.min(xe.length,Ne.length);me<Be&&xe.charCodeAt(me)==Ne.charCodeAt(me);)++me;for(var Le=Se(re),$e=Se(ve),He=Math.min(Le.length-(re.length==1?me:0),$e.length-(ve.length==1?me:0));_e<He&&Le.charCodeAt(Le.length-_e-1)==$e.charCodeAt($e.length-_e-1);)++_e;if(re.length==1&&ve.length==1&&M==u.line)for(;me&&me>u.ch&&Le.charCodeAt(Le.length-_e-1)==$e.charCodeAt($e.length-_e-1);)me--,_e++;re[re.length-1]=Le.slice(0,Le.length-_e).replace(/^\u200b+/,""),re[0]=re[0].slice(me).replace(/\u200b+$/,"");var Je=ce(M,me),Qe=ce(X,ve.length?Se(ve).length-_e:0);if(re.length>1||re[0]||Ce(Je,Qe))return Xo(a.doc,re,Je,Qe,"+input"),!0},bt.prototype.ensurePolled=function(){this.forceCompositionEnd()},bt.prototype.reset=function(){this.forceCompositionEnd()},bt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bt.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},bt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return an(a.cm)})},bt.prototype.setUneditable=function(a){a.contentEditable="false"},bt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ut(this.cm,ku)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},bt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},bt.prototype.onContextMenu=function(){},bt.prototype.resetPosition=function(){},bt.prototype.needsContentAttribute=!0;function rv(a,l){var p=Qc(a,l.line);if(!p||p.hidden)return null;var u=Ge(a.doc,l.line),h=$m(p,u,l.line),N=Xe(u,a.doc.direction),M="left";if(N){var H=Te(N,l.ch);M=H%2?"right":"left"}var G=Im(h.map,l.ch,M);return G.offset=G.collapse=="right"?G.end:G.start,G}function CM(a){for(var l=a;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function tr(a,l){return l&&(a.bad=!0),a}function _M(a,l,p,u,h){var N="",M=!1,H=a.doc.lineSeparator(),G=!1;function X(me){return function(_e){return _e.id==me}}function ne(){M&&(N+=H,G&&(N+=H),M=G=!1)}function re(me){me&&(ne(),N+=me)}function ve(me){if(me.nodeType==1){var _e=me.getAttribute("cm-text");if(_e){re(_e);return}var xe=me.getAttribute("cm-marker"),Ne;if(xe){var Be=a.findMarks(ce(u,0),ce(h+1,0),X(+xe));Be.length&&(Ne=Be[0].find(0))&&re(hi(a.doc,Ne.from,Ne.to).join(H));return}if(me.getAttribute("contenteditable")=="false")return;var Le=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;Le&&ne();for(var $e=0;$e<me.childNodes.length;$e++)ve(me.childNodes[$e]);/^(pre|p)$/i.test(me.nodeName)&&(G=!0),Le&&(M=!0)}else me.nodeType==3&&re(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ve(l),l!=p;)l=l.nextSibling,G=!1;return N}function Gl(a,l,p){var u;if(l==a.display.lineDiv){if(u=a.display.lineDiv.childNodes[p],!u)return tr(a.clipPos(ce(a.display.viewTo-1)),!0);l=null,p=0}else for(u=l;;u=u.parentNode){if(!u||u==a.display.lineDiv)return null;if(u.parentNode&&u.parentNode==a.display.lineDiv)break}for(var h=0;h<a.display.view.length;h++){var N=a.display.view[h];if(N.node==u)return wM(N,l,p)}}function wM(a,l,p){var u=a.text.firstChild,h=!1;if(!l||!j(u,l))return tr(ce(gt(a.line),0),!0);if(l==u&&(h=!0,l=u.childNodes[p],p=0,!l)){var N=a.rest?Se(a.rest):a.line;return tr(ce(gt(N),N.text.length),h)}var M=l.nodeType==3?l:null,H=l;for(!M&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(M=l.firstChild,p&&(p=M.nodeValue.length));H.parentNode!=u;)H=H.parentNode;var G=a.measure,X=G.maps;function ne(Ne,Be,Le){for(var $e=-1;$e<(X?X.length:0);$e++)for(var He=$e<0?G.map:X[$e],Je=0;Je<He.length;Je+=3){var Qe=He[Je+2];if(Qe==Ne||Qe==Be){var ut=gt($e<0?a.line:a.rest[$e]),_t=He[Je]+Le;return(Le<0||Qe!=Ne)&&(_t=He[Je+(Le?1:0)]),ce(ut,_t)}}}var re=ne(M,H,p);if(re)return tr(re,h);for(var ve=H.nextSibling,me=M?M.nodeValue.length-p:0;ve;ve=ve.nextSibling){if(re=ne(ve,ve.firstChild,0),re)return tr(ce(re.line,re.ch-me),h);me+=ve.textContent.length}for(var _e=H.previousSibling,xe=p;_e;_e=_e.previousSibling){if(re=ne(_e,_e.firstChild,-1),re)return tr(ce(re.line,re.ch+xe),h);xe+=_e.textContent.length}}var Vt=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new he,this.hasSelection=!1,this.composing=null};Vt.prototype.init=function(a){var l=this,p=this,u=this.cm;this.createField(a);var h=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),b&&(h.style.width="0px"),be(h,"input",function(){f&&g>=9&&l.hasSelection&&(l.hasSelection=null),p.poll()}),be(h,"paste",function(M){at(u,M)||qg(M,u)||(u.state.pasteIncoming=+new Date,p.fastPoll())});function N(M){if(!at(u,M)){if(u.somethingSelected())Wl({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var H=tv(u);Wl({lineWise:!0,text:H.text}),M.type=="cut"?u.setSelections(H.ranges,null,K):(p.prevInput="",h.value=H.text.join(`
`),oe(h))}else return;M.type=="cut"&&(u.state.cutIncoming=+new Date)}}be(h,"cut",N),be(h,"copy",N),be(a.scroller,"paste",function(M){if(!(vi(a,M)||at(u,M))){if(!h.dispatchEvent){u.state.pasteIncoming=+new Date,p.focus();return}var H=new Event("paste");H.clipboardData=M.clipboardData,h.dispatchEvent(H)}}),be(a.lineSpace,"selectstart",function(M){vi(a,M)||mt(M)}),be(h,"compositionstart",function(){var M=u.getCursor("from");p.composing&&p.composing.range.clear(),p.composing={start:M,range:u.markText(M,u.getCursor("to"),{className:"CodeMirror-composing"})}}),be(h,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},Vt.prototype.createField=function(a){this.wrapper=iv(),this.textarea=this.wrapper.firstChild},Vt.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Vt.prototype.prepareSelection=function(){var a=this.cm,l=a.display,p=a.doc,u=Km(a);if(a.options.moveInputWithCursor){var h=Ln(a,p.sel.primary().head,"div"),N=l.wrapper.getBoundingClientRect(),M=l.lineDiv.getBoundingClientRect();u.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,h.top+M.top-N.top)),u.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,h.left+M.left-N.left))}return u},Vt.prototype.showSelection=function(a){var l=this.cm,p=l.display;W(p.cursorDiv,a.cursors),W(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Vt.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var l=this.cm;if(l.somethingSelected()){this.prevInput="";var p=l.getSelection();this.textarea.value=p,l.state.focused&&oe(this.textarea),f&&g>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",f&&g>=9&&(this.hasSelection=null))}},Vt.prototype.getField=function(){return this.textarea},Vt.prototype.supportsTouch=function(){return!1},Vt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!x||Z(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Vt.prototype.blur=function(){this.textarea.blur()},Vt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vt.prototype.receivedFocus=function(){this.slowPoll()},Vt.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Vt.prototype.fastPoll=function(){var a=!1,l=this;l.pollingFast=!0;function p(){var u=l.poll();!u&&!a?(a=!0,l.polling.set(60,p)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,p)},Vt.prototype.poll=function(){var a=this,l=this.cm,p=this.textarea,u=this.prevInput;if(this.contextMenuPending||!l.state.focused||Ti(p)&&!u&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var h=p.value;if(h==u&&!l.somethingSelected())return!1;if(f&&g>=9&&this.hasSelection===h||O&&/[\uf700-\uf7ff]/.test(h))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var N=h.charCodeAt(0);if(N==8203&&!u&&(u="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var M=0,H=Math.min(u.length,h.length);M<H&&u.charCodeAt(M)==h.charCodeAt(M);)++M;return gn(l,function(){ku(l,h.slice(M),u.length-M,null,a.composing?"*compose":null),h.length>1e3||h.indexOf(`
`)>-1?p.value=a.prevInput="":a.prevInput=h,a.composing&&(a.composing.range.clear(),a.composing.range=l.markText(a.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vt.prototype.onKeyPress=function(){f&&g>=9&&(this.hasSelection=null),this.fastPoll()},Vt.prototype.onContextMenu=function(a){var l=this,p=l.cm,u=p.display,h=l.textarea;l.contextMenuPending&&l.contextMenuPending();var N=qi(p,a),M=u.scroller.scrollTop;if(!N||E)return;var H=p.options.resetSelectionOnContextMenu;H&&p.doc.sel.contains(N)==-1&&Ut(p,Xt)(p.doc,Ii(N),K);var G=h.style.cssText,X=l.wrapper.style.cssText,ne=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-ne.top-5)+"px; left: "+(a.clientX-ne.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var re;y&&(re=h.ownerDocument.defaultView.scrollY),u.input.focus(),y&&h.ownerDocument.defaultView.scrollTo(null,re),u.input.reset(),p.somethingSelected()||(h.value=l.prevInput=" "),l.contextMenuPending=me,u.selForContextMenu=p.doc.sel,clearTimeout(u.detectingSelectAll);function ve(){if(h.selectionStart!=null){var xe=p.somethingSelected(),Ne="\u200B"+(xe?h.value:"");h.value="\u21DA",h.value=Ne,l.prevInput=xe?"":"\u200B",h.selectionStart=1,h.selectionEnd=Ne.length,u.selForContextMenu=p.doc.sel}}function me(){if(l.contextMenuPending==me&&(l.contextMenuPending=!1,l.wrapper.style.cssText=X,h.style.cssText=G,f&&g<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=M),h.selectionStart!=null)){(!f||f&&g<9)&&ve();var xe=0,Ne=function(){u.selForContextMenu==p.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&l.prevInput=="\u200B"?Ut(p,Eg)(p):xe++<10?u.detectingSelectAll=setTimeout(Ne,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(Ne,200)}}if(f&&g>=9&&ve(),T){Fn(a);var _e=function(){Ue(window,"mouseup",_e),setTimeout(me,20)};be(window,"mouseup",_e)}else setTimeout(me,50)},Vt.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Vt.prototype.setUneditable=function(){},Vt.prototype.needsContentAttribute=!1;function EM(a,l){if(l=l?fe(l):{},l.value=a.value,!l.tabindex&&a.tabIndex&&(l.tabindex=a.tabIndex),!l.placeholder&&a.placeholder&&(l.placeholder=a.placeholder),l.autofocus==null){var p=Z(a.ownerDocument);l.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function u(){a.value=H.getValue()}var h;if(a.form&&(be(a.form,"submit",u),!l.leaveSubmitMethodAlone)){var N=a.form;h=N.submit;try{var M=N.submit=function(){u(),N.submit=h,N.submit(),N.submit=M}}catch{}}l.finishInit=function(G){G.save=u,G.getTextArea=function(){return a},G.toTextArea=function(){G.toTextArea=isNaN,u(),a.parentNode.removeChild(G.getWrapperElement()),a.style.display="",a.form&&(Ue(a.form,"submit",u),!l.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=h))}},a.style.display="none";var H=St(function(G){return a.parentNode.insertBefore(G,a.nextSibling)},l);return H}function AM(a){a.off=Ue,a.on=be,a.wheelEventPixels=DF,a.Doc=ln,a.splitLines=Br,a.countColumn=ue,a.findColumn=ie,a.isWordChar=le,a.Pass=Q,a.signal=We,a.Line=Po,a.changeEnd=Fi,a.scrollbarModel=qm,a.Pos=ce,a.cmpPos=Ce,a.modes=Mn,a.mimeModes=Oi,a.resolveMode=mn,a.getMode=fi,a.modeExtensions=Di,a.extendMode=vl,a.copyState=pi,a.startState=$r,a.innerMode=Bi,a.commands=na,a.keyMap=bi,a.keyName=Pg,a.isModifierKey=Fg,a.lookupKey=Zo,a.normalizeKeyMap=qF,a.StringStream=Dt,a.SharedTextMarker=qr,a.TextMarker=Pi,a.LineWidget=Zr,a.e_preventDefault=mt,a.e_stopPropagation=Bn,a.e_stop=Fn,a.addClass=J,a.contains=j,a.rmClass=L,a.keyNames=Li}mM(St),bM(St);var SM="iter insert remove copy getEditor constructor".split(" ");for(var Kl in ln.prototype)ln.prototype.hasOwnProperty(Kl)&&$(SM,Kl)<0&&(St.prototype[Kl]=function(a){return function(){return a.apply(this.doc,arguments)}}(ln.prototype[Kl]));return wt(ln),St.inputStyles={textarea:Vt,contenteditable:bt},St.defineMode=function(a){!St.defaults.mode&&a!="null"&&(St.defaults.mode=a),gl.apply(this,arguments)},St.defineMIME=Fo,St.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),St.defineMIME("text/plain","null"),St.defineExtension=function(a,l){St.prototype[a]=l},St.defineDocExtension=function(a,l){ln.prototype[a]=l},St.fromTextArea=EM,AM(St),St.version="6.65.7",St})}(bd)),bd.exports}var di=_o();(function(e,t){(function(o){o(_o())})(function(o){o.defineMode("javascript",function(r,i){var s=r.indentUnit,d=i.statementIndent,c=i.jsonld,f=i.json||c,g=i.trackScope!==!1,y=i.typescript,C=i.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function ee(Pt){return{type:Pt,style:"keyword"}}var ae=ee("keyword a"),ce=ee("keyword b"),Ce=ee("keyword c"),tt=ee("keyword d"),ft=ee("operator"),ht={type:"atom",style:"atom"};return{if:ee("if"),while:ae,with:ae,else:ce,do:ce,try:ce,finally:ce,return:tt,break:tt,continue:tt,new:ee("new"),delete:Ce,void:Ce,throw:Ce,debugger:ee("debugger"),var:ee("var"),const:ee("var"),let:ee("var"),function:ee("function"),catch:ee("catch"),for:ee("for"),switch:ee("switch"),case:ee("case"),default:ee("default"),in:ft,typeof:ft,instanceof:ft,true:ht,false:ht,null:ht,undefined:ht,NaN:ht,Infinity:ht,this:ee("this"),class:ee("class"),super:ee("atom"),yield:Ce,export:ee("export"),import:ee("import"),extends:Ce,await:Ce}}(),A=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(ee){for(var ae=!1,ce,Ce=!1;(ce=ee.next())!=null;){if(!ae){if(ce=="/"&&!Ce)return;ce=="["?Ce=!0:Ce&&ce=="]"&&(Ce=!1)}ae=!ae&&ce=="\\"}}var v,m;function b(ee,ae,ce){return v=ee,m=ce,ae}function S(ee,ae){var ce=ee.next();if(ce=='"'||ce=="'")return ae.tokenize=x(ce),ae.tokenize(ee,ae);if(ce=="."&&ee.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(ce=="."&&ee.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ce))return b(ce);if(ce=="="&&ee.eat(">"))return b("=>","operator");if(ce=="0"&&ee.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(ce))return ee.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(ce=="/")return ee.eat("*")?(ae.tokenize=O,O(ee,ae)):ee.eat("/")?(ee.skipToEnd(),b("comment","comment")):ti(ee,ae,1)?(_(ee),ee.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string-2")):(ee.eat("="),b("operator","operator",ee.current()));if(ce=="`")return ae.tokenize=D,D(ee,ae);if(ce=="#"&&ee.peek()=="!")return ee.skipToEnd(),b("meta","meta");if(ce=="#"&&ee.eatWhile(C))return b("variable","property");if(ce=="<"&&ee.match("!--")||ce=="-"&&ee.match("->")&&!/\S/.test(ee.string.slice(0,ee.start)))return ee.skipToEnd(),b("comment","comment");if(A.test(ce))return(ce!=">"||!ae.lexical||ae.lexical.type!=">")&&(ee.eat("=")?(ce=="!"||ce=="=")&&ee.eat("="):/[<>*+\-|&?]/.test(ce)&&(ee.eat(ce),ce==">"&&ee.eat(ce))),ce=="?"&&ee.eat(".")?b("."):b("operator","operator",ee.current());if(C.test(ce)){ee.eatWhile(C);var Ce=ee.current();if(ae.lastType!="."){if(w.propertyIsEnumerable(Ce)){var tt=w[Ce];return b(tt.type,tt.style,Ce)}if(Ce=="async"&&ee.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",Ce)}return b("variable","variable",Ce)}}function x(ee){return function(ae,ce){var Ce=!1,tt;if(c&&ae.peek()=="@"&&ae.match(E))return ce.tokenize=S,b("jsonld-keyword","meta");for(;(tt=ae.next())!=null&&!(tt==ee&&!Ce);)Ce=!Ce&&tt=="\\";return Ce||(ce.tokenize=S),b("string","string")}}function O(ee,ae){for(var ce=!1,Ce;Ce=ee.next();){if(Ce=="/"&&ce){ae.tokenize=S;break}ce=Ce=="*"}return b("comment","comment")}function D(ee,ae){for(var ce=!1,Ce;(Ce=ee.next())!=null;){if(!ce&&(Ce=="`"||Ce=="$"&&ee.eat("{"))){ae.tokenize=S;break}ce=!ce&&Ce=="\\"}return b("quasi","string-2",ee.current())}var V="([{}])";function I(ee,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var ce=ee.string.indexOf("=>",ee.start);if(!(ce<0)){if(y){var Ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ee.string.slice(ee.start,ce));Ce&&(ce=Ce.index)}for(var tt=0,ft=!1,ht=ce-1;ht>=0;--ht){var Pt=ee.string.charAt(ht),xn=V.indexOf(Pt);if(xn>=0&&xn<3){if(!tt){++ht;break}if(--tt==0){Pt=="("&&(ft=!0);break}}else if(xn>=3&&xn<6)++tt;else if(C.test(Pt))ft=!0;else if(/["'\/`]/.test(Pt))for(;;--ht){if(ht==0)return;var nt=ee.string.charAt(ht-1);if(nt==Pt&&ee.string.charAt(ht-2)!="\\"){ht--;break}}else if(ft&&!tt){++ht;break}}ft&&!tt&&(ae.fatArrowAt=ht)}}var z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(ee,ae,ce,Ce,tt,ft){this.indented=ee,this.column=ae,this.type=ce,this.prev=tt,this.info=ft,Ce!=null&&(this.align=Ce)}function B(ee,ae){if(!g)return!1;for(var ce=ee.localVars;ce;ce=ce.next)if(ce.name==ae)return!0;for(var Ce=ee.context;Ce;Ce=Ce.prev)for(var ce=Ce.vars;ce;ce=ce.next)if(ce.name==ae)return!0}function L(ee,ae,ce,Ce,tt){var ft=ee.cc;for(U.state=ee,U.stream=tt,U.marked=null,U.cc=ft,U.style=ae,ee.lexical.hasOwnProperty("align")||(ee.lexical.align=!0);;){var ht=ft.length?ft.pop():f?Q:$;if(ht(ce,Ce)){for(;ft.length&&ft[ft.length-1].lex;)ft.pop()();return U.marked?U.marked:ce=="variable"&&B(ee,Ce)?"variable-2":ae}}}var U={state:null,column:null,marked:null,cc:null};function W(){for(var ee=arguments.length-1;ee>=0;ee--)U.cc.push(arguments[ee])}function R(){return W.apply(null,arguments),!0}function k(ee,ae){for(var ce=ae;ce;ce=ce.next)if(ce.name==ee)return!0;return!1}function P(ee){var ae=U.state;if(U.marked="def",!!g){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var ce=j(ee,ae.context);if(ce!=null){ae.context=ce;return}}else if(!k(ee,ae.localVars)){ae.localVars=new F(ee,ae.localVars);return}}i.globalVars&&!k(ee,ae.globalVars)&&(ae.globalVars=new F(ee,ae.globalVars))}}function j(ee,ae){if(ae)if(ae.block){var ce=j(ee,ae.prev);return ce?ce==ae.prev?ae:new J(ce,ae.vars,!0):null}else return k(ee,ae.vars)?ae:new J(ae.prev,new F(ee,ae.vars),!1);else return null}function Z(ee){return ee=="public"||ee=="private"||ee=="protected"||ee=="abstract"||ee=="readonly"}function J(ee,ae,ce){this.prev=ee,this.vars=ae,this.block=ce}function F(ee,ae){this.name=ee,this.next=ae}var oe=new F("this",new F("arguments",null));function pe(){U.state.context=new J(U.state.context,U.state.localVars,!1),U.state.localVars=oe}function se(){U.state.context=new J(U.state.context,U.state.localVars,!0),U.state.localVars=null}pe.lex=se.lex=!0;function ye(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}ye.lex=!0;function fe(ee,ae){var ce=function(){var Ce=U.state,tt=Ce.indented;if(Ce.lexical.type=="stat")tt=Ce.lexical.indented;else for(var ft=Ce.lexical;ft&&ft.type==")"&&ft.align;ft=ft.prev)tt=ft.indented;Ce.lexical=new T(tt,U.stream.column(),ee,null,Ce.lexical,ae)};return ce.lex=!0,ce}function ue(){var ee=U.state;ee.lexical.prev&&(ee.lexical.type==")"&&(ee.indented=ee.lexical.indented),ee.lexical=ee.lexical.prev)}ue.lex=!0;function he(ee){function ae(ce){return ce==ee?R():ee==";"||ce=="}"||ce==")"||ce=="]"?W():R(ae)}return ae}function $(ee,ae){return ee=="var"?R(fe("vardef",ae),Fn,he(";"),ue):ee=="keyword a"?R(fe("form"),te,$,ue):ee=="keyword b"?R(fe("form"),$,ue):ee=="keyword d"?U.stream.match(/^\s*$/,!1)?R():R(fe("stat"),ie,he(";"),ue):ee=="debugger"?R(he(";")):ee=="{"?R(fe("}"),se,Ze,ue,ye):ee==";"?R():ee=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==ue&&U.state.cc.pop()(),R(fe("form"),te,$,ue,Io)):ee=="function"?R(qn):ee=="for"?R(fe("form"),se,hl,$,ye,ue):ee=="class"||y&&ae=="interface"?(U.marked="keyword",R(fe("form",ee=="class"?ee:ae),gl,ue)):ee=="variable"?y&&ae=="declare"?(U.marked="keyword",R($)):y&&(ae=="module"||ae=="enum"||ae=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",ae=="enum"?R(Mo):ae=="type"?R(ml,he("operator"),be,he(";")):R(fe("form"),rn,he("{"),fe("}"),Ze,ue,ue)):y&&ae=="namespace"?(U.marked="keyword",R(fe("form"),Q,$,ue)):y&&ae=="abstract"?(U.marked="keyword",R($)):R(fe("stat"),we):ee=="switch"?R(fe("form"),te,he("{"),fe("}","switch"),se,Ze,ue,ue,ye):ee=="case"?R(Q,he(":")):ee=="default"?R(he(":")):ee=="catch"?R(fe("form"),pe,Y,$,ue,ye):ee=="export"?R(fe("stat"),Di,ue):ee=="import"?R(fe("stat"),pi,ue):ee=="async"?R($):ae=="@"?R(Q,$):W(fe("stat"),Q,he(";"),ue)}function Y(ee){if(ee=="(")return R(Mn,he(")"))}function Q(ee,ae){return q(ee,ae,!1)}function K(ee,ae){return q(ee,ae,!0)}function te(ee){return ee!="("?W():R(fe(")"),ie,he(")"),ue)}function q(ee,ae,ce){if(U.state.fatArrowAt==U.stream.start){var Ce=ce?Ve:qe;if(ee=="(")return R(pe,fe(")"),Fe(Mn,")"),ue,he("=>"),Ce,ye);if(ee=="variable")return W(pe,rn,he("=>"),Ce,ye)}var tt=ce?Ee:de;return z.hasOwnProperty(ee)?R(tt):ee=="function"?R(qn,tt):ee=="class"||y&&ae=="interface"?(U.marked="keyword",R(fe("form"),Oi,ue)):ee=="keyword c"||ee=="async"?R(ce?K:Q):ee=="("?R(fe(")"),ie,he(")"),ue,tt):ee=="operator"||ee=="spread"?R(ce?K:Q):ee=="["?R(fe("]"),hi,ue,tt):ee=="{"?Ct(ze,"}",null,tt):ee=="quasi"?W(Se,tt):ee=="new"?R(ge(ce)):R()}function ie(ee){return ee.match(/[;\}\)\],]/)?W():W(Q)}function de(ee,ae){return ee==","?R(ie):Ee(ee,ae,!1)}function Ee(ee,ae,ce){var Ce=ce==!1?de:Ee,tt=ce==!1?Q:K;if(ee=="=>")return R(pe,ce?Ve:qe,ye);if(ee=="operator")return/\+\+|--/.test(ae)||y&&ae=="!"?R(Ce):y&&ae=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?R(fe(">"),Fe(be,">"),ue,Ce):ae=="?"?R(Q,he(":"),tt):R(tt);if(ee=="quasi")return W(Se,Ce);if(ee!=";"){if(ee=="(")return Ct(K,")","call",Ce);if(ee==".")return R(Ie,Ce);if(ee=="[")return R(fe("]"),ie,he("]"),ue,Ce);if(y&&ae=="as")return U.marked="keyword",R(be,Ce);if(ee=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),R(tt)}}function Se(ee,ae){return ee!="quasi"?W():ae.slice(ae.length-2)!="${"?R(Se):R(ie,ke)}function ke(ee){if(ee=="}")return U.marked="string-2",U.state.tokenize=D,R(Se)}function qe(ee){return I(U.stream,U.state),W(ee=="{"?$:Q)}function Ve(ee){return I(U.stream,U.state),W(ee=="{"?$:K)}function ge(ee){return function(ae){return ae=="."?R(ee?le:Ae):ae=="variable"&&y?R(mt,ee?Ee:de):W(ee?K:Q)}}function Ae(ee,ae){if(ae=="target")return U.marked="keyword",R(de)}function le(ee,ae){if(ae=="target")return U.marked="keyword",R(Ee)}function we(ee){return ee==":"?R(ue,$):W(de,he(";"),ue)}function Ie(ee){if(ee=="variable")return U.marked="property",R()}function ze(ee,ae){if(ee=="async")return U.marked="property",R(ze);if(ee=="variable"||U.style=="keyword"){if(U.marked="property",ae=="get"||ae=="set")return R(ct);var ce;return y&&U.state.fatArrowAt==U.stream.start&&(ce=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+ce[0].length),R(rt)}else{if(ee=="number"||ee=="string")return U.marked=c?"property":U.style+" property",R(rt);if(ee=="jsonld-keyword")return R(rt);if(y&&Z(ae))return U.marked="keyword",R(ze);if(ee=="[")return R(Q,Te,he("]"),rt);if(ee=="spread")return R(K,rt);if(ae=="*")return U.marked="keyword",R(ze);if(ee==":")return W(rt)}}function ct(ee){return ee!="variable"?W(rt):(U.marked="property",R(qn))}function rt(ee){if(ee==":")return R(K);if(ee=="(")return W(qn)}function Fe(ee,ae,ce){function Ce(tt,ft){if(ce?ce.indexOf(tt)>-1:tt==","){var ht=U.state.lexical;return ht.info=="call"&&(ht.pos=(ht.pos||0)+1),R(function(Pt,xn){return Pt==ae||xn==ae?W():W(ee)},Ce)}return tt==ae||ft==ae?R():ce&&ce.indexOf(";")>-1?W(ee):R(he(ae))}return function(tt,ft){return tt==ae||ft==ae?R():W(ee,Ce)}}function Ct(ee,ae,ce){for(var Ce=3;Ce<arguments.length;Ce++)U.cc.push(arguments[Ce]);return R(fe(ae,ce),Fe(ee,ae),ue)}function Ze(ee){return ee=="}"?R():W($,Ze)}function Te(ee,ae){if(y){if(ee==":")return R(be);if(ae=="?")return R(Te)}}function Re(ee,ae){if(y&&(ee==":"||ae=="in"))return R(be)}function Xe(ee){if(y&&ee==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?R(Q,De,be):R(be)}function De(ee,ae){if(ae=="is")return U.marked="keyword",R()}function be(ee,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return U.marked="keyword",R(ae=="typeof"?K:be);if(ee=="variable"||ae=="void")return U.marked="type",R(wt);if(ae=="|"||ae=="&")return R(be);if(ee=="string"||ee=="number"||ee=="atom")return R(wt);if(ee=="[")return R(fe("]"),Fe(be,"]",","),ue,wt);if(ee=="{")return R(fe("}"),Ue,ue,wt);if(ee=="(")return R(Fe(Nt,")"),Ke,wt);if(ee=="<")return R(Fe(be,">"),be);if(ee=="quasi")return W(at,wt)}function Ke(ee){if(ee=="=>")return R(be)}function Ue(ee){return ee.match(/[\}\)\]]/)?R():ee==","||ee==";"?R(Ue):W(We,Ue)}function We(ee,ae){if(ee=="variable"||U.style=="keyword")return U.marked="property",R(We);if(ae=="?"||ee=="number"||ee=="string")return R(We);if(ee==":")return R(be);if(ee=="[")return R(he("variable"),Re,he("]"),We);if(ee=="(")return W(ei,We);if(!ee.match(/[;\}\)\],]/))return R()}function at(ee,ae){return ee!="quasi"?W():ae.slice(ae.length-2)!="${"?R(at):R(be,on)}function on(ee){if(ee=="}")return U.marked="string-2",U.state.tokenize=D,R(at)}function Nt(ee,ae){return ee=="variable"&&U.stream.match(/^\s*[?:]/,!1)||ae=="?"?R(Nt):ee==":"?R(be):ee=="spread"?R(Nt):W(be)}function wt(ee,ae){if(ae=="<")return R(fe(">"),Fe(be,">"),ue,wt);if(ae=="|"||ee=="."||ae=="&")return R(be);if(ee=="[")return R(be,he("]"),wt);if(ae=="extends"||ae=="implements")return U.marked="keyword",R(be);if(ae=="?")return R(be,he(":"),be)}function mt(ee,ae){if(ae=="<")return R(fe(">"),Fe(be,">"),ue,wt)}function Bn(){return W(be,Ni)}function Ni(ee,ae){if(ae=="=")return R(be)}function Fn(ee,ae){return ae=="enum"?(U.marked="keyword",R(Mo)):W(rn,Te,$n,Mc)}function rn(ee,ae){if(y&&Z(ae))return U.marked="keyword",R(rn);if(ee=="variable")return P(ae),R();if(ee=="spread")return R(rn);if(ee=="[")return Ct(Fc,"]");if(ee=="{")return Ct(Dr,"}")}function Dr(ee,ae){return ee=="variable"&&!U.stream.match(/^\s*:/,!1)?(P(ae),R($n)):(ee=="variable"&&(U.marked="property"),ee=="spread"?R(rn):ee=="}"?W():ee=="["?R(Q,he("]"),he(":"),Dr):R(he(":"),rn,$n))}function Fc(){return W(rn,$n)}function $n(ee,ae){if(ae=="=")return R(K)}function Mc(ee){if(ee==",")return R(Fn)}function Io(ee,ae){if(ee=="keyword b"&&ae=="else")return R(fe("form","else"),$,ue)}function hl(ee,ae){if(ae=="await")return R(hl);if(ee=="(")return R(fe(")"),Br,ue)}function Br(ee){return ee=="var"?R(Fn,Ti):ee=="variable"?R(Ti):W(Ti)}function Ti(ee,ae){return ee==")"?R():ee==";"?R(Ti):ae=="in"||ae=="of"?(U.marked="keyword",R(Q,Ti)):W(Q,Ti)}function qn(ee,ae){if(ae=="*")return U.marked="keyword",R(qn);if(ee=="variable")return P(ae),R(qn);if(ee=="(")return R(pe,fe(")"),Fe(Mn,")"),ue,Xe,$,ye);if(y&&ae=="<")return R(fe(">"),Fe(Bn,">"),ue,qn)}function ei(ee,ae){if(ae=="*")return U.marked="keyword",R(ei);if(ee=="variable")return P(ae),R(ei);if(ee=="(")return R(pe,fe(")"),Fe(Mn,")"),ue,Xe,ye);if(y&&ae=="<")return R(fe(">"),Fe(Bn,">"),ue,ei)}function ml(ee,ae){if(ee=="keyword"||ee=="variable")return U.marked="type",R(ml);if(ae=="<")return R(fe(">"),Fe(Bn,">"),ue)}function Mn(ee,ae){return ae=="@"&&R(Q,Mn),ee=="spread"?R(Mn):y&&Z(ae)?(U.marked="keyword",R(Mn)):y&&ee=="this"?R(Te,$n):W(rn,Te,$n)}function Oi(ee,ae){return ee=="variable"?gl(ee,ae):Fo(ee,ae)}function gl(ee,ae){if(ee=="variable")return P(ae),R(Fo)}function Fo(ee,ae){if(ae=="<")return R(fe(">"),Fe(Bn,">"),ue,Fo);if(ae=="extends"||ae=="implements"||y&&ee==",")return ae=="implements"&&(U.marked="keyword"),R(y?be:Q,Fo);if(ee=="{")return R(fe("}"),mn,ue)}function mn(ee,ae){if(ee=="async"||ee=="variable"&&(ae=="static"||ae=="get"||ae=="set"||y&&Z(ae))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",R(mn);if(ee=="variable"||U.style=="keyword")return U.marked="property",R(fi,mn);if(ee=="number"||ee=="string")return R(fi,mn);if(ee=="[")return R(Q,Te,he("]"),fi,mn);if(ae=="*")return U.marked="keyword",R(mn);if(y&&ee=="(")return W(ei,mn);if(ee==";"||ee==",")return R(mn);if(ee=="}")return R();if(ae=="@")return R(Q,mn)}function fi(ee,ae){if(ae=="!"||ae=="?")return R(fi);if(ee==":")return R(be,$n);if(ae=="=")return R(K);var ce=U.state.lexical.prev,Ce=ce&&ce.info=="interface";return W(Ce?ei:qn)}function Di(ee,ae){return ae=="*"?(U.marked="keyword",R(Ge,he(";"))):ae=="default"?(U.marked="keyword",R(Q,he(";"))):ee=="{"?R(Fe(vl,"}"),Ge,he(";")):W($)}function vl(ee,ae){if(ae=="as")return U.marked="keyword",R(he("variable"));if(ee=="variable")return W(K,vl)}function pi(ee){return ee=="string"?R():ee=="("?W(Q):ee=="."?W(de):W(Bi,$r,Ge)}function Bi(ee,ae){return ee=="{"?Ct(Bi,"}"):(ee=="variable"&&P(ae),ae=="*"&&(U.marked="keyword"),R(Dt))}function $r(ee){if(ee==",")return R(Bi,$r)}function Dt(ee,ae){if(ae=="as")return U.marked="keyword",R(Bi)}function Ge(ee,ae){if(ae=="from")return U.marked="keyword",R(Q)}function hi(ee){return ee=="]"?R():W(Fe(K,"]"))}function Mo(){return W(fe("form"),rn,he("{"),fe("}"),Fe(Rn,"}"),ue,ue)}function Rn(){return W(rn,$n)}function gt(ee,ae){return ee.lastType=="operator"||ee.lastType==","||A.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function ti(ee,ae,ce){return ae.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(ee.string.slice(0,ee.pos-(ce||0)))}return{startState:function(ee){var ae={tokenize:S,lastType:"sof",cc:[],lexical:new T((ee||0)-s,0,"block",!1),localVars:i.localVars,context:i.localVars&&new J(null,null,!1),indented:ee||0};return i.globalVars&&typeof i.globalVars=="object"&&(ae.globalVars=i.globalVars),ae},token:function(ee,ae){if(ee.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=ee.indentation(),I(ee,ae)),ae.tokenize!=O&&ee.eatSpace())return null;var ce=ae.tokenize(ee,ae);return v=="comment"?ce:(ae.lastType=v=="operator"&&(m=="++"||m=="--")?"incdec":v,L(ae,ce,v,m,ee))},indent:function(ee,ae){if(ee.tokenize==O||ee.tokenize==D)return o.Pass;if(ee.tokenize!=S)return 0;var ce=ae&&ae.charAt(0),Ce=ee.lexical,tt;if(!/^\s*else\b/.test(ae))for(var ft=ee.cc.length-1;ft>=0;--ft){var ht=ee.cc[ft];if(ht==ue)Ce=Ce.prev;else if(ht!=Io&&ht!=ye)break}for(;(Ce.type=="stat"||Ce.type=="form")&&(ce=="}"||(tt=ee.cc[ee.cc.length-1])&&(tt==de||tt==Ee)&&!/^[,\.=+\-*:?[\(]/.test(ae));)Ce=Ce.prev;d&&Ce.type==")"&&Ce.prev.type=="stat"&&(Ce=Ce.prev);var Pt=Ce.type,xn=ce==Pt;return Pt=="vardef"?Ce.indented+(ee.lastType=="operator"||ee.lastType==","?Ce.info.length+1:0):Pt=="form"&&ce=="{"?Ce.indented:Pt=="form"?Ce.indented+s:Pt=="stat"?Ce.indented+(gt(ee,ae)?d||s:0):Ce.info=="switch"&&!xn&&i.doubleIndentSwitch!=!1?Ce.indented+(/^(?:case|default)\b/.test(ae)?s:2*s):Ce.align?Ce.column+(xn?0:1):Ce.indented+(xn?0:s)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:f?null:"/*",blockCommentEnd:f?null:"*/",blockCommentContinue:f?null:" * ",lineComment:f?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:f?"json":"javascript",jsonldMode:c,jsonMode:f,expressionAllowed:ti,skipExpression:function(ee){L(ee,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})(),function(e,t){(function(o){o(_o())})(function(o){var r="CodeMirror-hint",i="CodeMirror-hint-active";o.showHint=function(m,b,S){if(!b)return m.showHint(S);S&&S.async&&(b.async=!0);var x={hint:b};if(S)for(var O in S)x[O]=S[O];return m.showHint(x)},o.defineExtension("showHint",function(m){m=f(this,this.getCursor("start"),m);var b=this.listSelections();if(!(b.length>1)){if(this.somethingSelected()){if(!m.hint.supportsSelection)return;for(var S=0;S<b.length;S++)if(b[S].head.line!=b[S].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var x=this.state.completionActive=new s(this,m);!x.options.hint||(o.signal(this,"startCompletion",this),x.update(!0))}}),o.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function s(m,b){if(this.cm=m,this.options=b,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var S=this;m.on("cursorActivity",this.activityFunc=function(){S.cursorActivity()})}}var d=window.requestAnimationFrame||function(m){return setTimeout(m,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;s.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&o.signal(this.data,"close"),this.widget&&this.widget.close(),o.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(m,b){var S=m.list[b],x=this;this.cm.operation(function(){S.hint?S.hint(x.cm,m,S):x.cm.replaceRange(g(S),S.from||m.from,S.to||m.to,"complete"),o.signal(m,"pick",S),x.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var m=this.startPos;this.data&&(m=this.data.from);var b=this.cm.getCursor(),S=this.cm.getLine(b.line);if(b.line!=this.startPos.line||S.length-b.ch!=this.startLen-this.startPos.ch||b.ch<m.ch||this.cm.somethingSelected()||!b.ch||this.options.closeCharacters.test(S.charAt(b.ch-1)))this.close();else{var x=this;this.debounce=d(function(){x.update()}),this.widget&&this.widget.disable()}},update:function(m){if(this.tick!=null){var b=this,S=++this.tick;E(this.options.hint,this.cm,this.options,function(x){b.tick==S&&b.finishUpdate(x,m)})}},finishUpdate:function(m,b){this.data&&o.signal(this.data,"update");var S=this.widget&&this.widget.picked||b&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=m,m&&m.list.length&&(S&&m.list.length==1?this.pick(m,0):(this.widget=new w(this,m),o.signal(m,"shown")))}};function f(m,b,S){var x=m.options.hintOptions,O={};for(var D in v)O[D]=v[D];if(x)for(var D in x)x[D]!==void 0&&(O[D]=x[D]);if(S)for(var D in S)S[D]!==void 0&&(O[D]=S[D]);return O.hint.resolve&&(O.hint=O.hint.resolve(m,b)),O}function g(m){return typeof m=="string"?m:m.text}function y(m,b){var S={Up:function(){b.moveFocus(-1)},Down:function(){b.moveFocus(1)},PageUp:function(){b.moveFocus(-b.menuSize()+1,!0)},PageDown:function(){b.moveFocus(b.menuSize()-1,!0)},Home:function(){b.setFocus(0)},End:function(){b.setFocus(b.length-1)},Enter:b.pick,Tab:b.pick,Esc:b.close},x=/Mac/.test(navigator.platform);x&&(S["Ctrl-P"]=function(){b.moveFocus(-1)},S["Ctrl-N"]=function(){b.moveFocus(1)});var O=m.options.customKeys,D=O?{}:S;function V(T,B){var L;typeof B!="string"?L=function(U){return B(U,b)}:S.hasOwnProperty(B)?L=S[B]:L=B,D[T]=L}if(O)for(var I in O)O.hasOwnProperty(I)&&V(I,O[I]);var z=m.options.extraKeys;if(z)for(var I in z)z.hasOwnProperty(I)&&V(I,z[I]);return D}function C(m,b){for(;b&&b!=m;){if(b.nodeName.toUpperCase()==="LI"&&b.parentNode==m)return b;b=b.parentNode}}function w(m,b){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=m,this.data=b,this.picked=!1;var S=this,x=m.cm,O=x.getInputField().ownerDocument,D=O.defaultView||O.parentWindow,V=this.hints=O.createElement("ul");V.setAttribute("role","listbox"),V.setAttribute("aria-expanded","true"),V.id=this.id;var I=m.cm.options.theme;V.className="CodeMirror-hints "+I,this.selectedHint=b.selectedHint||0;for(var z=b.list,T=0;T<z.length;++T){var B=V.appendChild(O.createElement("li")),L=z[T],U=r+(T!=this.selectedHint?"":" "+i);L.className!=null&&(U=L.className+" "+U),B.className=U,T==this.selectedHint&&B.setAttribute("aria-selected","true"),B.id=this.id+"-"+T,B.setAttribute("role","option"),L.render?L.render(B,b,L):B.appendChild(O.createTextNode(L.displayText||g(L))),B.hintId=T}var W=m.options.container||O.body,R=x.cursorCoords(m.options.alignWithWord?b.from:null),k=R.left,P=R.bottom,j=!0,Z=0,J=0;if(W!==O.body){var F=["absolute","relative","fixed"].indexOf(D.getComputedStyle(W).position)!==-1,oe=F?W:W.offsetParent,pe=oe.getBoundingClientRect(),se=O.body.getBoundingClientRect();Z=pe.left-se.left-oe.scrollLeft,J=pe.top-se.top-oe.scrollTop}V.style.left=k-Z+"px",V.style.top=P-J+"px";var ye=D.innerWidth||Math.max(O.body.offsetWidth,O.documentElement.offsetWidth),fe=D.innerHeight||Math.max(O.body.offsetHeight,O.documentElement.offsetHeight);W.appendChild(V),x.getInputField().setAttribute("aria-autocomplete","list"),x.getInputField().setAttribute("aria-owns",this.id),x.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ue=m.options.moveOnOverlap?V.getBoundingClientRect():new DOMRect,he=m.options.paddingForScrollbar?V.scrollHeight>V.clientHeight+1:!1,$;setTimeout(function(){$=x.getScrollInfo()});var Y=ue.bottom-fe;if(Y>0){var Q=ue.bottom-ue.top,K=R.top-(R.bottom-ue.top);if(K-Q>0)V.style.top=(P=R.top-Q-J)+"px",j=!1;else if(Q>fe){V.style.height=fe-5+"px",V.style.top=(P=R.bottom-ue.top-J)+"px";var te=x.getCursor();b.from.ch!=te.ch&&(R=x.cursorCoords(te),V.style.left=(k=R.left-Z)+"px",ue=V.getBoundingClientRect())}}var q=ue.right-ye;if(he&&(q+=x.display.nativeBarWidth),q>0&&(ue.right-ue.left>ye&&(V.style.width=ye-5+"px",q-=ue.right-ue.left-ye),V.style.left=(k=Math.max(R.left-q-Z,0))+"px"),he)for(var ie=V.firstChild;ie;ie=ie.nextSibling)ie.style.paddingRight=x.display.nativeBarWidth+"px";if(x.addKeyMap(this.keyMap=y(m,{moveFocus:function(Se,ke){S.changeActive(S.selectedHint+Se,ke)},setFocus:function(Se){S.changeActive(Se)},menuSize:function(){return S.screenAmount()},length:z.length,close:function(){m.close()},pick:function(){S.pick()},data:b})),m.options.closeOnUnfocus){var de;x.on("blur",this.onBlur=function(){de=setTimeout(function(){m.close()},100)}),x.on("focus",this.onFocus=function(){clearTimeout(de)})}x.on("scroll",this.onScroll=function(){var Se=x.getScrollInfo(),ke=x.getWrapperElement().getBoundingClientRect();$||($=x.getScrollInfo());var qe=P+$.top-Se.top,Ve=qe-(D.pageYOffset||(O.documentElement||O.body).scrollTop);if(j||(Ve+=V.offsetHeight),Ve<=ke.top||Ve>=ke.bottom)return m.close();V.style.top=qe+"px",V.style.left=k+$.left-Se.left+"px"}),o.on(V,"dblclick",function(Se){var ke=C(V,Se.target||Se.srcElement);ke&&ke.hintId!=null&&(S.changeActive(ke.hintId),S.pick())}),o.on(V,"click",function(Se){var ke=C(V,Se.target||Se.srcElement);ke&&ke.hintId!=null&&(S.changeActive(ke.hintId),m.options.completeOnSingleClick&&S.pick())}),o.on(V,"mousedown",function(){setTimeout(function(){x.focus()},20)});var Ee=this.getSelectedHintRange();return(Ee.from!==0||Ee.to!==0)&&this.scrollToActive(),o.signal(b,"select",z[this.selectedHint],V.childNodes[this.selectedHint]),!0}w.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var m=this.completion.cm.getInputField();m.removeAttribute("aria-activedescendant"),m.removeAttribute("aria-owns");var b=this.completion.cm;this.completion.options.closeOnUnfocus&&(b.off("blur",this.onBlur),b.off("focus",this.onFocus)),b.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var m=this;this.keyMap={Enter:function(){m.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(m,b){if(m>=this.data.list.length?m=b?this.data.list.length-1:0:m<0&&(m=b?0:this.data.list.length-1),this.selectedHint!=m){var S=this.hints.childNodes[this.selectedHint];S&&(S.className=S.className.replace(" "+i,""),S.removeAttribute("aria-selected")),S=this.hints.childNodes[this.selectedHint=m],S.className+=" "+i,S.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",S.id),this.scrollToActive(),o.signal(this.data,"select",this.data.list[this.selectedHint],S)}},scrollToActive:function(){var m=this.getSelectedHintRange(),b=this.hints.childNodes[m.from],S=this.hints.childNodes[m.to],x=this.hints.firstChild;b.offsetTop<this.hints.scrollTop?this.hints.scrollTop=b.offsetTop-x.offsetTop:S.offsetTop+S.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=S.offsetTop+S.offsetHeight-this.hints.clientHeight+x.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var m=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-m),to:Math.min(this.data.list.length-1,this.selectedHint+m)}}};function A(m,b){if(!m.somethingSelected())return b;for(var S=[],x=0;x<b.length;x++)b[x].supportsSelection&&S.push(b[x]);return S}function E(m,b,S,x){if(m.async)m(b,x,S);else{var O=m(b,S);O&&O.then?O.then(x):x(O)}}function _(m,b){var S=m.getHelpers(b,"hint"),x;if(S.length){var O=function(D,V,I){var z=A(D,S);function T(B){if(B==z.length)return V(null);E(z[B],D,I,function(L){L&&L.list.length>0?V(L):T(B+1)})}T(0)};return O.async=!0,O.supportsSelection=!0,O}else return(x=m.getHelper(m.getCursor(),"hintWords"))?function(D){return o.hint.fromList(D,{words:x})}:o.hint.anyword?function(D,V){return o.hint.anyword(D,V)}:function(){}}o.registerHelper("hint","auto",{resolve:_}),o.registerHelper("hint","fromList",function(m,b){var S=m.getCursor(),x=m.getTokenAt(S),O,D=o.Pos(S.line,x.start),V=S;x.start<S.ch&&/\w/.test(x.string.charAt(S.ch-x.start-1))?O=x.string.substr(0,S.ch-x.start):(O="",D=S);for(var I=[],z=0;z<b.words.length;z++){var T=b.words[z];T.slice(0,O.length)==O&&I.push(T)}if(I.length)return{list:I,from:D,to:V}}),o.commands.autocomplete=o.showHint;var v={hint:o.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};o.defineOption("hintOptions",null)})}(),function(e,t){(function(o){o(_o())})(function(o){var r=o.Pos;function i(m,b){for(var S=0,x=m.length;S<x;++S)b(m[S])}function s(m,b){if(!Array.prototype.indexOf){for(var S=m.length;S--;)if(m[S]===b)return!0;return!1}return m.indexOf(b)!=-1}function d(m,b,S,x){var O=m.getCursor(),D=S(m,O);if(!/\b(?:string|comment)\b/.test(D.type)){var V=o.innerMode(m.getMode(),D.state);if(V.mode.helperType!=="json"){D.state=V.state,/^[\w$_]*$/.test(D.string)?D.end>O.ch&&(D.end=O.ch,D.string=D.string.slice(0,O.ch-D.start)):D={start:O.ch,end:O.ch,string:"",state:D.state,type:D.string=="."?"property":null};for(var I=D;I.type=="property";){if(I=S(m,r(O.line,I.start)),I.string!=".")return;if(I=S(m,r(O.line,I.start)),!z)var z=[];z.push(I)}return{list:v(D,z,b,x),from:r(O.line,D.start),to:r(O.line,D.end)}}}}function c(m,b){return d(m,A,function(S,x){return S.getTokenAt(x)},b)}o.registerHelper("hint","javascript",c);function f(m,b){var S=m.getTokenAt(b);return b.ch==S.start+1&&S.string.charAt(0)=="."?(S.end=S.start,S.string=".",S.type="property"):/^\.[\w$_]*$/.test(S.string)&&(S.type="property",S.start++,S.string=S.string.replace(/\./,"")),S}function g(m,b){return d(m,E,f,b)}o.registerHelper("hint","coffeescript",g);var y="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),C="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),w="prototype apply call bind".split(" "),A="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),E="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function _(m,b){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var S in m)b(S);else for(var x=m;x;x=Object.getPrototypeOf(x))Object.getOwnPropertyNames(x).forEach(b)}function v(m,b,S,x){var O=[],D=m.string,V=x&&x.globalScope||window;function I(R){R.lastIndexOf(D,0)==0&&!s(O,R)&&O.push(R)}function z(R){typeof R=="string"?i(y,I):R instanceof Array?i(C,I):R instanceof Function&&i(w,I),_(R,I)}if(b&&b.length){var T=b.pop(),B;for(T.type&&T.type.indexOf("variable")===0?(x&&x.additionalContext&&(B=x.additionalContext[T.string]),(!x||x.useGlobalScope!==!1)&&(B=B||V[T.string])):T.type=="string"?B="":T.type=="atom"?B=1:T.type=="function"&&(V.jQuery!=null&&(T.string=="$"||T.string=="jQuery")&&typeof V.jQuery=="function"?B=V.jQuery():V._!=null&&T.string=="_"&&typeof V._=="function"&&(B=V._()));B!=null&&b.length;)B=B[b.pop().string];B!=null&&z(B)}else{for(var L=m.state.localVars;L;L=L.next)I(L.name);for(var U=m.state.context;U;U=U.prev)for(var L=U.vars;L;L=L.next)I(L.name);for(var L=m.state.globalVars;L;L=L.next)I(L.name);if(x&&x.additionalContext!=null)for(var W in x.additionalContext)I(W);(!x||x.useGlobalScope!==!1)&&z(V),i(S,I)}return O}})}();const xP="",Oe=(e,t)=>{const o=e.__vccOpts||e;for(const[r,i]of t)o[r]=i;return o},q1="[[FORM-CREATE-PREFIX-",eb="-FORM-CREATE-SUFFIX]]",tb=n.defineComponent({name:"FnEditor",emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,body:Boolean,button:Boolean,fnx:Boolean},inject:["designer"],data(){return{editor:null,fn:"",visible:!1,value:""}},watch:{modelValue(e){e!=this.value&&(!e||!e.__json||e.__json&&e.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t(){return this.designer.setupState.t},columns(){return[{title:this.t("props.field"),dataIndex:"label",width:"120px"},{title:this.t("event.info"),dataIndex:"info"},{title:this.t("event.type"),dataIndex:"type",width:"80px"}]},argStr(){return(this.args||[]).map(e=>typeof e=="string"?e:e.name).join(", ")},argList(){return this.args.map(e=>typeof e=="string"?{name:e,type:"string"}:e)}},mounted(){this.$nextTick(()=>{this.load()})},methods:{save(){const e=this.editor.getValue()||"";if(e.trim()==="")this.fn="";else{let t;try{t=new Function("return function "+this.name+"("+this.argStr+"){"+e+"}")()}catch(o){return console.error(o),Zt(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+e:this.fn=q1+t+eb}return this.submit(),!0},submit(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString(e){const t=e.indexOf("{"),o=e.lastIndexOf("}");return t===-1||o===-1||t>=o?e:e.slice(t+1,o).replace(/^\n+|\n+$/g,"")},tidyValue(){let e=this.modelValue||"";return e.__json&&(e=e.__json),this.fnx&&typeof e=="string"&&e.indexOf("$FNX:")===0&&(e=e.slice(5)),typeof e=="function"?e=this.trimString(un(e)).trim():this.body||(e=this.trimString(e).trim()),this.value=e,e},load(){this.$nextTick(()=>{let e=this.tidyValue();this.editor=n.markRaw(di(this.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:e})),this.editor.on("inputRead",(t,o)=>{o.keyCode===32&&o.ctrlKey&&di.showHint(t,di.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),nb={class:"_fd-fn"},ib={class:"_fd-fn-tip"},ob={class:"cm-keyword"},rb={key:0},ab={class:"_fd-fn-arg"},lb={ref:"editor",class:"_fd-fn-editor"};function sb(e,t,o,r,i,s){const d=n.resolveComponent("a-table"),c=n.resolveComponent("a-popover"),f=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",nb,[n.createElementVNode("div",ib,[t[2]||(t[2]=n.createElementVNode("div",{class:"_fd-fn-ind"},null,-1)),n.createElementVNode("div",ob,[n.createElementVNode("span",null,[n.createTextVNode("function "+n.toDisplayString(e.name)+"(",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.argList,(g,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:y},[n.createTextVNode(n.toDisplayString(y>0?", ":""),1),g.type==="string"?(n.openBlock(),n.createElementBlock("span",rb,n.toDisplayString(g.name),1)):(n.openBlock(),n.createBlock(c,{key:1,trigger:"click",title:g.name,content:g.info||void 0},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",ab,[n.createTextVNode(n.toDisplayString(g.name),1),t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-question"},null,-1))])]),_:2},[g.columns?{name:"content",fn:n.withCtx(()=>[n.createVNode(d,{"data-source":g.columns,columns:e.columns,size:"small",bordered:"",pagination:!1,style:{width:"400px"}},{bodyCell:n.withCtx(C=>[n.createTextVNode(n.toDisplayString(C.record[C.column.dataIndex]),1)]),_:2},1032,["data-source","columns"])]),key:"0"}:void 0]),1032,["title","content"]))],64))),128)),t[1]||(t[1]=n.createTextVNode(") {"))])])]),n.createElementVNode("div",lb,null,512),t[3]||(t[3]=n.createElementVNode("div",{class:"_fd-fn-tip"},[n.createElementVNode("div",{class:"_fd-fn-ind"}),n.createElementVNode("div",{class:"cm-keyword"},"}")],-1)),e.visible&&e.button?(n.openBlock(),n.createBlock(f,{key:0,type:"primary",size:"small",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])}const ci=Oe(tb,[["render",sb]]),kP="",db=n.defineComponent({name:"ConditionInput",inject:["designer"],emits:["update:modelValue","change"],props:{type:String,options:Array,props:Object,modelValue:[String,Number,Array,Object,Boolean]},watch:{modelValue(){this.value=this.modelValue||void 0}},data(){return{value:this.modelValue||void 0}},methods:{onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}},created(){}}),cb={class:"_fd-cdi-input"};function ub(e,t,o,r,i,s){const d=n.resolveComponent("a-tree-select"),c=n.resolveComponent("a-input-number"),f=n.resolveComponent("a-select-option"),g=n.resolveComponent("a-select"),y=n.resolveComponent("a-switch"),C=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",cb,[e.type==="cascader"?(n.openBlock(),n.createBlock(d,n.mergeProps({key:0,size:"default"},e.props||{},{"tree-data":e.options,value:e.value,"onUpdate:value":t[0]||(t[0]=w=>e.value=w),onChange:e.onInput}),null,16,["tree-data","value","onChange"])):e.type==="number"?(n.openBlock(),n.createBlock(c,n.mergeProps({key:1,size:"default"},e.props||{},{value:e.value,"onUpdate:value":t[1]||(t[1]=w=>e.value=w),onChange:e.onInput}),null,16,["value","onChange"])):e.type==="select"?(n.openBlock(),n.createBlock(g,n.mergeProps({key:2,size:"default"},e.props||{},{value:e.value,"onUpdate:value":t[2]||(t[2]=w=>e.value=w),onChange:e.onInput}),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,w=>(n.openBlock(),n.createBlock(f,{value:w.value,key:w.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.label),1)]),_:2},1032,["value"]))),128))]),_:1},16,["value","onChange"])):e.type==="switch"?(n.openBlock(),n.createBlock(y,n.mergeProps({key:3,size:"default"},e.props||{},{checked:e.value,"onUpdate:checked":t[3]||(t[3]=w=>e.value=w),onChange:e.onInput}),null,16,["checked","onChange"])):(n.openBlock(),n.createBlock(C,n.mergeProps({key:4,size:"default"},e.props||{},{value:e.value,"onUpdate:value":t[4]||(t[4]=w=>e.value=w),onBlur:e.onInput}),null,16,["value","onBlur"]))])}const fb=Oe(db,[["render",ub]]),NP="",pb=n.defineComponent({name:"PatternInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String},data(){return{value:this.modelValue||"",options:[{label:"\u90AE\u7BB1",value:"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"},{label:"\u57DF\u540D",value:"^((http:\\/\\/)|(https:\\/\\/))?([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/)$"},{label:"\u624B\u673A\u53F7",value:"^(?:(?:\\+|00)86)?1[3-9]\\d{9}$"},{label:"\u5EA7\u673A\u7535\u8BDD",value:"^(?:(?:\\d{3}-)?\\d{8}|^(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^[1-9]\\d{5}(?:18|19|20)\\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\\d|30|31)\\d{3}[\\dXx]$"},{label:"\u94F6\u884C\u5361\u53F7",value:"^[1-9]\\d{9,29}$"},{label:"\u8F66\u724C\u53F7",value:"^[\u4EAC\u6D25\u6CAA\u6E1D\u5180\u8C6B\u4E91\u8FBD\u9ED1\u6E58\u7696\u9C81\u65B0\u82CF\u6D59\u8D63\u9102\u6842\u7518\u664B\u8499\u9655\u5409\u95FD\u8D35\u7CA4\u9752\u85CF\u5DDD\u5B81\u743C\u4F7F\u9886][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9\u6302\u5B66\u8B66\u6E2F\u6FB3]$"},{label:"\u4E2D\u6587",value:"^(?:[\\u3400-\\u4DB5\\u4E00-\\u9FEA\\uFA0E\\uFA0F\\uFA11\\uFA13\\uFA14\\uFA1F\\uFA21\\uFA23\\uFA24\\uFA27-\\uFA29]|[\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879][\\uDC00-\\uDFFF]|\\uD869[\\uDC00-\\uDED6\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0])+$"},{label:"\u6570\u5B57",value:"^\\d+$"},{label:"\u6574\u6570",value:"^(?:0|(?:-?[1-9]\\d*))$"},{label:"\u6B63\u6574\u6570",value:"^\\+?[1-9]\\d*$"},{label:"\u8D1F\u6574\u6570",value:"^-[1-9]\\d*$"},{label:"\u6D6E\u70B9\u6570",value:"^(-?[1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u6B63\u6D6E\u70B9\u6570",value:"^([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u8D1F\u6D6E\u70B9\u6570",value:"^-([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u82F1\u6587\u5B57\u6BCD",value:"^[a-zA-Z]+$"},{label:"\u6570\u5B57\u548C\u5B57\u6BCD",value:"^[A-Za-z0-9]+$"}]}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}}),hb={class:"_fd-pattern-input"};function mb(e,t,o,r,i,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),f=n.resolveComponent("a-dropdown"),g=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",hb,[n.createVNode(g,{size:e.size,value:e.value,"onUpdate:value":t[0]||(t[0]=y=>e.value=y),onBlur:e.onInput,allowClear:""},{addonAfter:n.withCtx(()=>[n.createVNode(f,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(c,{class:"_fd-pattern-popper"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,y=>(n.openBlock(),n.createBlock(d,{key:y.value,onClick:C=>e.setValue(y.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["size","value","onBlur"])])}const Cd=Oe(pb,[["render",mb]]),TP="",gb=n.defineComponent({name:"RuleSelect",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[String,Number,Array],onlyField:Boolean,valueType:String,size:String,multiple:Boolean},computed:{activeRule(){return this.designer.setupState.activeRule},t(){return this.designer.setupState.t},tree(){var o,r;const e=this.getFields(this.designer.setupState.treeInfo);let t=this.activeRule.__fc__.parent;for(;t;)if(t.rule._menu&&["array","object"].indexOf(t.rule._menu.subForm)>-1){const i=this.getFields(this.designer.setupState.findTree(t.rule.field));i.length&&e.unshift({value:"___subform",disabled:!0,label:((r=(o=t.refRule)==null?void 0:o.__$title)==null?void 0:r.value)||t.rule.title||t.rule._menu.label,children:i}),t=void 0}else t=t.parent;return e}},methods:{getFields(e,t=[]){const o=[];return e.forEach(({rule:r,children:i})=>{var c,f,g;const s=[...t];r.field&&s.push(r);const d=r._menu.subForm==="array"?[]:this.getFields(i||[],s);if(!this.onlyField||this.onlyField&&r.field){const y={value:t.length?t.map(C=>C[this.valueType||"_fc_id"]).join(".")+"."+r[this.valueType||"_fc_id"]:r[this.valueType||"_fc_id"],label:(((g=(f=(c=r==null?void 0:r.__fc__)==null?void 0:c.refRule)==null?void 0:f.__$title)==null?void 0:g.value)||r.title||"").trim()||r.props&&r.props.label||this.t("com."+(r._menu&&r._menu.name)+".name")||r._menu&&r._menu.label||r.type,rule:r,parent:t};d.length&&(y.children=d),o.push(y)}else o.push(...d)}),o},input(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}});function vb(e,t,o,r,i,s){const d=n.resolveComponent("a-tree-select");return n.openBlock(),n.createBlock(d,{class:"_fd-rule-select",treeCheckable:e.multiple,treeData:e.tree,value:e.modelValue,"onUpdate:value":e.input,size:e.size},null,8,["treeCheckable","treeData","value","onUpdate:value","size"])}const _d=Oe(gb,[["render",vb]]),OP="",yb=n.defineComponent({name:"ValueInput",emits:["update:modelValue","change","change-type","blur"],inject:["designer"],props:{modelValue:[String,Number,Boolean],size:String},data(){return{type:"1",value:""}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue:{handler:function(e){typeof e=="number"?this.type="2":typeof e=="boolean"?this.type="3":this.type="1",this.value=e==null?"":""+e},immediate:!0},type(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur(...e){this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit("blur",...e)},updateValue(e){const t=this.toValue(e);this.$emit("update:modelValue",t),this.$emit("change",t)},toValue(e){return this.type==="1"?""+e:this.type==="2"?parseFloat(e)||0:e==="true"}}});function bb(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),f=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(f,n.mergeProps({class:"_fd-value-input",size:e.size,value:e.value,"onUpdate:value":t[1]||(t[1]=g=>e.value=g),onBlur:e.onBlur},e.$attrs),n.createSlots({addonBefore:n.withCtx(()=>[n.createVNode(c,{value:e.type,"onUpdate:value":t[0]||(t[0]=g=>e.type=g),size:e.size,style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(d,{style:{"font-size":"13px",padding:"3px 0","text-align":"center"},value:"1"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.types.string")),1)]),_:1}),n.createVNode(d,{style:{"font-size":"13px",padding:"5px 0","text-align":"center"},value:"2"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.types.number")),1)]),_:1}),n.createVNode(d,{style:{"font-size":"13px",padding:"5px 0","text-align":"center"},value:"3"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.types.boolean")),1)]),_:1})]),_:1},8,["value","size"])]),_:2},[e.$slots.addonAfter?{name:"addonAfter",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"addonAfter")]),key:"0"}:void 0]),1040,["size","value","onBlur"])}const Fa=Oe(yb,[["render",bb]]),DP="",Cb=n.defineComponent({name:"Warning",props:{tooltip:String},data(){return{}}}),_b=["innerHTML"],wb={key:0,class:"_fd-warning-text"},Eb={key:1,class:"fc-icon icon-question"};function Ab(e,t,o,r,i,s){const d=n.resolveComponent("a-tooltip");return n.openBlock(),n.createBlock(d,{placement:"topLeft",trigger:"hover",overlayClassName:"_fd-warning-pop"},{title:n.withCtx(()=>[n.createElementVNode("span",{innerHTML:e.tooltip},null,8,_b)]),default:n.withCtx(()=>[e.$slots.default?(n.openBlock(),n.createElementBlock("span",wb,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("i",Eb))]),_:3})}const Xn=Oe(Cb,[["render",Ab]]),BP="",Sb=n.defineComponent({name:"VariableConfig",components:{Warning:Xn},emits:["submit","confirm"],props:{popover:Boolean},inject:["designer"],data(){return{visible:!1,popVisible:!1,activeIdx:0,variable:"",value:{},fields:[],expandedKeys:["$topForm","$cookie","$localStorage","$sessionStorage","$globalData","$var"]}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventNum(){return((this.activeRule||{})._loadData||[]).length},treeInfo(){var o,r,i;const e=this.toObject(this.designer.setupState.varList||[]),t=[{id:"$topForm",label:this.t("computed.form"),driver:!0,children:this.getFormTree(this.designer.setupState.treeInfo)},{id:"$cookie",label:"cookie"},{id:"$localStorage",label:"localStorage"},{id:"$sessionStorage",label:"sessionStorage"},{id:"$globalData",label:this.t("props.globalData"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalData||{}).map(s=>({label:this.designer.setupState.formOptions.globalData[s].label,id:s}))},{id:"$var",label:this.t("computed.variable.title"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalVariable||{}).map(s=>({label:this.designer.setupState.formOptions.globalVariable[s].label,id:s}))}];if(this.designer.setupState.getConfig("showLanguage")!==!1){let s=((o=this.designer.setupState.formOptions)==null?void 0:o.language)||{},d=s[((i=(r=this.designer.props)==null?void 0:r.locale)==null?void 0:i.name)||"zh-cn"]||s[Object.keys(s)[0]]||{};t.push({id:"$t",label:this.t("language.name"),driver:!0,children:Object.keys(d).map(c=>({label:d[c],id:c}))})}return e.$cookie&&(t[1]={...t[1],...e.$cookie}),e.$localStorage&&(t[2]={...t[2],...e.$localStorage}),e.$sessionStorage&&(t[3]={...t[3],...e.$sessionStorage}),e.$globalData&&e.$globalData.children&&(t[4].children=Object.values({...this.toObject(t[4].children),...this.toObject(e.$globalData.children||[])})),e.$var&&e.$var.children&&(t[5].children=Object.values({...this.toObject(t[5].children),...this.toObject(e.$var.children||[])})),delete e.$cookie,delete e.$localStorage,delete e.$sessionStorage,delete e.$globalData,delete e.$var,t.push(...Object.values(e)),os(t)}},watch:{visible(e){e&&(this.updateFields(),this.activeIdx=0)}},methods:{openVariableConfig(){this.designer.setupState.openGlobalVariableDialog()},toObject(e){const t={};return e&&e.forEach(o=>{t[o.id]=o}),t},nodeClick(e,t){if(e.stopPropagation(),(this.popover||this.fields[this.activeIdx])&&!t.driver){let o=t.id,r=t.$parent;for(;r;)o=r.id+"."+o,r=r.$parent;this.popover?this.variable=o:this.fields[this.activeIdx].value=o}},getTitle(e){var t,o,r;return(((r=(o=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:o.__$title)==null?void 0:r.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},getFormTree(e){const t=[];return e.forEach(({rule:o,children:r})=>{var s,d,c;const i=o.field?[]:this.getFormTree(r||[]);if(o.field){const f={id:o.field,label:((c=(d=(s=o==null?void 0:o.__fc__)==null?void 0:s.refRule)==null?void 0:d.__$title)==null?void 0:c.value)||o.title,rule:o};i.length&&(f.children=i),t.push(f)}else t.push(...i)}),t},tranField(e){return e.indexOf("formCreate")===0?e=sa(e.replace("formCreate","")):e="props."+e,e.replaceAll(">",".")},updateFields(){const e=this.designer.setupState,t=[],o={};(e.activeRule._loadData||[]).forEach(s=>{o[s.to]=s.attr});const r=[];e.activeRule.field&&r.push({label:this.t("computed.value.name"),attach:!0,modify:!0,field:"value"});const i=e.propsForm.api.model();Object.keys(i).forEach(s=>{if(s&&(s[0]!=="_"||i[s]._fc_important_prop)&&i[s].title&&i[s]._fc_important_prop!==!1&&!i[s].hidden&&i[s].display!==!1){const d=typeof i[s]._fc_important_prop=="string"?i[s]._fc_important_prop:s;(i[s]._fc_important_prop===!0?r:t).push({label:i[s].title,modify:d==="formCreateChild",field:this.tranField(d)})}}),t.unshift(...r),t.forEach(s=>{s.value=o[s.field]||""}),this.fields=t},open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.activeIdx=e)},submit(){const e=[];this.fields.forEach(t=>{let o=(t.value||"").trim();if(o){const r={attr:o,to:t.field};t.modify&&(r.modify=!0),e.push(r)}}),this.designer.setupState.activeRule._loadData=e,this.visible=!1},confirm(){const e=(this.variable||"").trim();e&&(this.$emit("confirm",`{{${e}}}`),this.popVisible=!1,this.variable="")}}}),xb={class:"_fd-variable"},kb=["onClick"],Nb={style:{width:"230px"}},Tb={class:"_fd-variable-item-label"},Ob={class:"_fd-variable-info"},Db=["onClick"];function Bb(e,t,o,r,i,s){const d=n.resolveComponent("a-input"),c=n.resolveComponent("a-layout-header"),f=n.resolveComponent("a-directory-tree"),g=n.resolveComponent("a-layout-content"),y=n.resolveComponent("a-layout"),C=n.resolveComponent("a-popover"),w=n.resolveComponent("a-badge"),A=n.resolveComponent("Warning"),E=n.resolveComponent("a-layout-sider"),_=n.resolveComponent("a-button"),v=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",xb,[e.popover?(n.openBlock(),n.createBlock(C,{key:0,open:e.popVisible,"onUpdate:open":t[4]||(t[4]=m=>e.popVisible=m),ref:"pop",trigger:"click",placement:"bottomRight",overlayClassName:"_fd-variable-pop"},{content:n.withCtx(()=>[n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(c,{style:{height:"55px"},class:"_fd-variable-pop-header"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",value:e.variable,"onUpdate:value":t[1]||(t[1]=m=>e.variable=m),status:"default"},{prefix:n.withCtx(()=>t[10]||(t[10]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" }} ")])),addonAfter:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[0]||(t[0]=(...m)=>e.confirm&&e.confirm(...m))},n.toDisplayString(e.t("props.append")),1)]),_:1},8,["value"]),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[2]||(t[2]=(...m)=>e.openVariableConfig&&e.openVariableConfig(...m))})]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(f,{ref:"treeRef","tree-data":e.treeInfo,fieldNames:{key:"id"},expandedKeys:e.expandedKeys,"onUpdate:expandedKeys":t[3]||(t[3]=m=>e.expandedKeys=m),selectable:!1,showIcon:!1},{title:n.withCtx(({data:m})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-pop-node",{disabled:m.disabled}]),onClick:b=>e.nodeClick(b,m)},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((m.label||"").trim()||(m.rule?e.getTitle(m.rule):m.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(m.id),1)],10,kb)]),_:1},8,["tree-data","expandedKeys"])]),_:1})]),_:1})]),default:n.withCtx(()=>[t[12]||(t[12]=n.createElementVNode("i",{class:"fc-icon icon-variable",style:{cursor:"pointer"}},null,-1))]),_:1},8,["open"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(w,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-variable-btn",onClick:t[5]||(t[5]=(...m)=>e.open&&e.open(...m))},[t[13]||(t[13]=n.createElementVNode("i",{class:"fc-icon icon-variable"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind")),1)])]),_:1},8,["count"]),n.createVNode(v,{class:"_fd-variable-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[9]||(t[9]=m=>e.visible=m),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind"))+" ",1),n.createVNode(A,{tooltip:e.t("warning.variable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(_,{onClick:t[8]||(t[8]=m=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(_,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-variable-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-variable-l"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createElementVNode("div",Nb,n.toDisplayString(e.t("computed.variable.attr")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("computed.variable.bind")),1)]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fields,(m,b)=>(n.openBlock(),n.createElementBlock("div",{key:m.label,class:n.normalizeClass(["_fd-variable-item",{active:b===e.activeIdx,"_fd-variable-top":m.attach===!0}])},[n.createElementVNode("div",Tb,n.toDisplayString(m.label),1),t[16]||(t[16]=n.createElementVNode("div",null,"=",-1)),n.createVNode(d,{value:m.value,"onUpdate:value":S=>m.value=S,placeholder:"_",onFocus:S=>e.activeIdx=b,clearable:""},{prefix:n.withCtx(()=>t[14]||(t[14]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[15]||(t[15]=[n.createTextVNode(" }} ")])),_:2},1032,["value","onUpdate:value","onFocus"])],2))),128))]),_:1})]),_:1})]),_:1}),n.createVNode(E,{width:"328px"},{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-variable-r"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.list"))+" ",1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[6]||(t[6]=(...m)=>e.openVariableConfig&&e.openVariableConfig(...m))})]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createElementVNode("div",Ob,n.toDisplayString(e.t("warning.variableInfo")),1),n.createVNode(f,{ref:"treeRef","tree-data":e.treeInfo,selectable:!1,fieldNames:{key:"id"},expandedKeys:e.expandedKeys,"onUpdate:expandedKeys":t[7]||(t[7]=m=>e.expandedKeys=m),showIcon:!1},{title:n.withCtx(({data:m})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-node",{disabled:m.disabled}]),onClick:b=>e.nodeClick(b,m)},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((m.label||"").trim()||(m.rule?e.getTitle(m.rule):m.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(m.id),1)],10,Db)]),_:1},8,["tree-data","expandedKeys"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],64))])}const vr=Oe(Sb,[["render",Bb]]),$P="",wo={input:["==","!=","on","notOn","empty","notEmpty","pattern"],select:["==","!=","on","notOn","empty","notEmpty"],switch:["==","!="],number:["==","!=",">",">=","<","<=","empty","notEmpty"]};wo.cascader=wo.select;const Wf=n.defineComponent({name:"ConditionGroup",components:{VariableConfig:vr,ValueInput:Fa,RuleSelect:_d,PatternInput:Cd,ConditionInput:fb},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[Object,Array]},computed:{formulaLabel(){return["==","!=","on","notOn","empty","notEmpty","pattern",">",">=","<","<="].reduce((e,t)=>(e[t]=this.t("computed.formulas."+t),e),{})},activeRule(){return this.designer.setupState.activeRule},rules(){let e=this.activeRule.__fc__.parent,t=[];for(;e;)if(e.rule._menu&&e.rule._menu.subForm){t=this.getFields(this.designer.setupState.findTree(e.rule.field));break}else e=e.parent;return[...t,...this.getFields(this.designer.setupState.treeInfo)]},t(){return this.designer.setupState.t}},data(){return{mode:"AND",list:[],ConditionGroup:n.markRaw(Wf)}},methods:{selectVar(e,t){e.field=t.slice(2,-2),this.changeField(e)},addItem(){this.list.push({type:"field"})},addItemGroup(){this.list.push({mode:"AND"})},removeItem(e){this.list.length!==1&&(this.list.splice(e,1),this.onInput())},changeType(e){e.field="",e.input=null,e.formula=null},changeField(e){e.field?(e.condition="==",e.type==="field"?this.tidyItem(e):(e.input=!0,e.formula=wo.select.map(t=>({label:this.formulaLabel[t],value:t})))):(e.input=null,e.formula=null),this.onInput()},getFields(e,t=[]){const o=[];return e.forEach(({rule:r,children:i})=>{const s=[...t];r.field&&s.push(r);const d=this.getFields(i||[],s);if(r.field){const c={value:t.length?t.map(f=>f.field).join(".")+"."+r.field:r.field,label:r.title,rule:r};o.push(c,...d)}else o.push(...d)}),o},tidyValue(){let e=this.modelValue;e&&(Array.isArray(e)&&(e={mode:"AND",group:e}),this.mode=e.mode==="OR"?"OR":"AND",this.list=(e.group||[]).map(t=>t.mode!=null?t:this.tidyItem({...t}))),this.list.length||this.list.push({type:"field"},{type:"field"})},tidyItem(e){return this.rules.forEach(t=>{if(t.value===e.field){e.type="field";const o=t.rule._menu.condition,r=o?lt.Function(o)?o(t.rule):lt.String(o)?{type:o}:{...o}:{type:"input"};r.options&&(r.options=lt.String(r.options)?uo(t.rule.__fc__.prop,r.options):r.options),e.formula=(wo[r.type]||wo.input).map(i=>({label:this.formulaLabel[i],value:i})),e.var=!!e.compare,e.input=r}else e.variable&&(e.input=!0,e.field=e.variable,e.formula=wo.select.map(o=>({label:this.formulaLabel[o],value:o})),e.type="variable")}),e},onInput(){let e=[];this.list.forEach(t=>{if(t.field&&t.condition&&(t.compare||["empty","notEmpty"].indexOf(t.condition)>-1||t.value!=null&&t.value!=="")){const o={[t.type]:t.field,condition:t.condition};t.compare?o.compare=t.compare:o.value=t.value,e.push(o)}else t.group&&e.push(t)}),e.length===1&&e[0].mode!=null?e=e[0]:e=e.length>0?{mode:this.mode,group:e}:void 0,!(!e&&(!this.modelValue||!this.modelValue.group))&&(this.$emit("update:modelValue",e),this.$emit("change",e))}},created(){this.tidyValue()}}),$b=Wf,Rb={class:"_fd-cdg-input"},Vb={class:"_fd-cdg-item"},Ib={class:"_fd-cdg-and"},Fb={class:"_fd-cdg-options"},Mb=["onClick"],Pb={key:3,class:"_fd-cfg-value"},Lb=["onClick"],jb={class:"_fd-cdg-btns"};function zb(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),f=n.resolveComponent("ConditionGroup",!0),g=n.resolveComponent("VariableConfig"),y=n.resolveComponent("a-input"),C=n.resolveComponent("RuleSelect"),w=n.resolveComponent("ValueInput"),A=n.resolveComponent("PatternInput"),E=n.resolveComponent("ConditionInput"),_=n.resolveComponent("a-checkbox"),v=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",Rb,[n.createElementVNode("div",Vb,[n.createElementVNode("div",Ib,[n.createVNode(c,{size:"default",value:e.mode,"onUpdate:value":t[0]||(t[0]=m=>e.mode=m),onChange:e.onInput},{default:n.withCtx(()=>[n.createVNode(d,{value:"AND"},{default:n.withCtx(()=>t[1]||(t[1]=[n.createTextVNode("AND")])),_:1}),n.createVNode(d,{value:"OR"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("OR")])),_:1})]),_:1},8,["value","onChange"])]),n.createElementVNode("div",Fb,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(m,b)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[m.mode!=null?(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option is-group",key:m.field+"a"+b},[n.createVNode(f,{modelValue:e.list[b],"onUpdate:modelValue":S=>e.list[b]=S,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-add-circle",{disabled:e.list.length===1}]),onClick:S=>e.removeItem(b)},null,10,Mb)])):(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option",key:b},[n.createVNode(c,{style:{width:"85px"},size:"default",value:m.type,"onUpdate:value":S=>m.type=S,onChange:S=>e.changeType(m)},{default:n.withCtx(()=>[n.createVNode(d,{value:"field"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.field")),1)]),_:1}),n.createVNode(d,{value:"variable"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.variable")),1)]),_:1})]),_:2},1032,["value","onUpdate:value","onChange"]),m.type==="variable"?(n.openBlock(),n.createBlock(y,{class:"_fd-cdg-variable",size:"default",value:m.field,"onUpdate:value":S=>m.field=S,clearable:"",onChange:S=>e.changeField(m),key:"variable"},{suffix:n.withCtx(()=>[n.createVNode(g,{popover:"",onConfirm:S=>e.selectVar(m,S)},null,8,["onConfirm"])]),_:2},1032,["value","onUpdate:value","onChange"])):(n.openBlock(),n.createBlock(C,{key:1,class:"_fd-cdg-field",size:"middle",onlyField:"",valueType:"field",modelValue:m.field,"onUpdate:modelValue":S=>m.field=S,clearable:"",multiple:!1,onChange:S=>e.changeField(m)},null,8,["modelValue","onUpdate:modelValue","onChange"])),m.formula?(n.openBlock(),n.createBlock(c,{key:2,class:"_fd-cdg-term",size:"default",value:m.condition,"onUpdate:value":S=>m.condition=S,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.formula,S=>(n.openBlock(),n.createBlock(d,{key:S.value,value:S.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","onChange"])):n.createCommentVNode("",!0),m.input&&["empty","notEmpty"].indexOf(m.condition)===-1?(n.openBlock(),n.createElementBlock("div",Pb,[m.var?(n.openBlock(),n.createBlock(C,{key:0,class:"_fd-cdg-field",size:"default",onlyField:"",valueType:"field",modelValue:m.compare,"onUpdate:modelValue":S=>m.compare=S,clearable:"",multiple:!1,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):m.type==="variable"?(n.openBlock(),n.createBlock(w,{key:1,size:"default",modelValue:m.value,"onUpdate:modelValue":S=>m.value=S,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):m.condition==="pattern"?(n.openBlock(),n.createBlock(A,{size:"default",key:m.field,modelValue:m.value,"onUpdate:modelValue":S=>m.value=S,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(E,n.mergeProps({key:3,ref_for:!0},m.input,{key:m.field,modelValue:m.value,"onUpdate:modelValue":S=>m.value=S,onChange:e.onInput}),null,16,["modelValue","onUpdate:modelValue","onChange"])),n.createVNode(_,{checked:m.var,"onUpdate:checked":S=>m.var=S,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.field")),1)]),_:2},1032,["checked","onUpdate:checked"])])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-delete",{disabled:e.list.length===1}]),onClick:S=>e.removeItem(b)},null,10,Lb)]))],64))),256))])]),n.createElementVNode("div",jb,[n.createVNode(v,{type:"link",onClick:e.addItem},{default:n.withCtx(()=>[t[3]||(t[3]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addCondition")),1)]),_:1},8,["onClick"]),n.createVNode(v,{type:"link",onClick:e.addItemGroup},{default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addGroup")),1)]),_:1},8,["onClick"])])])}const Hb=Oe($b,[["render",zb]]),RP="",Ub=n.defineComponent({name:"ComputedConfig",components:{Warning:Xn,RuleSelect:_d,ConditionGroup:Hb},props:{modelValue:[String,Object,Array],type:String,title:String,name:String,btn:String,validLabel:String,invertLabel:String},inject:["designer"],data(){const e=(t,o,r,i=[])=>{const s=[];return t.forEach(({rule:d,children:c})=>{var C,w,A;const f=[...i];let g=r;d.field&&(f.push(d),g||(g=d.field===o&&this.type==="value"));const y=e(c||[],o,g,f);if(d.field){const E={id:d._fc_id,value:d.field,label:((A=(w=(C=d==null?void 0:d.__fc__)==null?void 0:C.refRule)==null?void 0:w.__$title)==null?void 0:A.value)||d.title,rule:d,parent:i,formula:!0};y.length&&(E.children=y),s.push(E)}else s.push(...y)}),s};return{editor:null,visible:!1,expandedKeys:["_form","_formula","_subform"],err:"",status:"computed",value:"",condition:void 0,formulaInfo:"",formulaExample:"",oldValue:"",invert:!1,linkage:"",getFields:e}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},activeRule(){return this.designer.setupState.activeRule},treeInfo(){var o,r;let e=this.activeRule.__fc__.parent;const t=[{id:"_form",label:this.t("computed.form"),children:this.getFields(this.designer.setupState.treeInfo,this.activeRule.field)},{id:"_formula",label:this.t("computed.formula"),children:Mf.map(i=>({id:i.key,label:this.t("formula."+i.key),children:i.children.map(s=>({label:s,info:this.t("formula."+s),example:md[s]||"",formula:!0}))}))}];for(;e;)if(e.rule._menu&&["array","object"].indexOf(e.rule._menu.subForm)>-1){const i=this.getFields(this.designer.setupState.findTree(e.rule.field),this.activeRule.field);i.length&&t.unshift({id:"_subform",label:((r=(o=e==null?void 0:e.refRule)==null?void 0:o.__$title)==null?void 0:r.value)||e.rule.title||e.rule._menu.label,children:i}),e=void 0}else e=e.parent;return t}},watch:{visible(e){e&&this.update()},status(e){e==="computed"&&this.load()}},beforeUnmount(){document.querySelector("._fd-comp-script")&&document.querySelector("._fd-comp-script").removeEventListener("mouseover",this.spanOver)},methods:{update(){this.linkage="",this.type==="value"||this.modelValue&&lt.String(this.modelValue)?(this.status="computed",this.load(),this.condition=void 0):(this.status="condition",this.condition=this.modelValue?et(this.modelValue):void 0,this.condition&&(this.invert=this.condition.invert===!0,this.linkage=this.condition.linkage||""))},getTitle(e){var t,o,r;return(((r=(o=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:o.__$title)==null?void 0:r.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},setField(e){e.disabled!==!0&&this.markRule(`"${e.rule.field}"`,this.getTitle(e.rule),"id")},spanOver(e){if(e.target.classList.contains("cm-keyword")){const t=e.target.innerText.trim();this.formulaInfo=this.t("formula."+t)||"",this.formulaExample=md[t]||""}},nodeOver(e){this.formulaInfo=e.info||"",this.formulaExample=e.example||""},markRule(e,t,o){const r=this.editor.getValue();if(r){const d=this.editor.getCursor().ch;[" ","(",",",")","{","}","[","]"].indexOf(r.substr(d-1,1))===-1&&this.editor.replaceRange(" ",this.editor.getCursor())}this.editor.replaceRange(e,this.editor.getCursor());const i=this.editor.getCursor(),s=document.createElement("span");s.innerText=t,s.classList.add("cm-fc-"+o),this.editor.markText({line:i.line,ch:i.ch-e.length},i,{replacedWith:s})},nodeClick(e,t){["_form","_formula","_subform"].indexOf(t.id)>-1||(e.stopPropagation(),this.makeNode(t))},makeNode(e){if(!(!e.formula||e.disabled===!0)){if(e.rule){const t=[],o=[];let r=!1;if(e.parent.forEach(i=>{i._menu&&i._menu.subForm==="array"&&(r=!0),t.push(i.field),o.push(this.getTitle(i))}),r)return this.setColumn(e);t.push(e.rule.field),o.push(this.getTitle(e.rule)),this.markRule(t.join("."),o.join("."),"field")}else this.editor.replaceRange(e.label+"()",this.editor.getCursor()),this.editor.moveH(-1,"char");this.editor.focus()}},setColumn(e){let t=!1;const o=[],r=[],i=[];e.parent.forEach(s=>{!t&&s._menu&&s._menu.subForm==="array"?(t=!0,o.push(s.field),r.push(this.getTitle(s))):i.push(s)}),i.push(e.rule),i.reverse().forEach(s=>{this.makeNode({label:"COLUMN",formula:!0}),this.editor.replaceRange(",",this.editor.getCursor()),this.setField({rule:s}),this.editor.moveH(-1-s.field.length-2,"char")}),this.markRule(o.join("."),r.join("."),"field")},submit(){if(this.status==="computed"){const e=this.editor.getValue().trim();(this.oldValue!==e||!lt.String(this.modelValue))&&(this.oldValue=e,this.$emit("update:modelValue",e))}else{let e=this.condition?{...this.condition}:this.condition;e&&(this.type==="linkage"?this.linkage?e.linkage=this.linkage:e="":this.invert?e.invert=!0:delete e.invert),this.$emit("update:modelValue",e||"")}this.visible=!1},setValue(e){const t=this.designer.setupState.fields().map(Pu);e=e.replace(new RegExp(`["'](${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])["']`,"g"),o=>"__var___"+o+"__var__"),e=e.replace(new RegExp(`(?<!__var___")(${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])`,"g"),o=>"__var___"+o+"__var__"),e.split("__var__").forEach(o=>{let r;if(o.indexOf("_")===0){o=o.slice(1);const i=["'",'"'].indexOf(o[0])>-1;i&&(o=o.slice(1).slice(0,-1));let s=0;if(o.indexOf(".")>-1){const d=o.split(".");o=d.pop(),s=d.length}if(r=this.designer.setupState.dragForm.api.all().filter(d=>d&&d.field===o)[0],r){if(i)this.setField({rule:r});else{const d=[r.field],c=[this.getTitle(r)];let f=r.__fc__.parent;for(;f&&s>0;)f.input&&(s--,d.unshift(f.rule.field),c.unshift(this.getTitle(f.rule))),f=f.parent;this.markRule(d.join("."),c.join("."),"field")}return}}this.editor.replaceRange(o,this.editor.getCursor())})},load(){this.value=lt.String(this.modelValue)?this.modelValue:"",this.oldValue=this.value,this.err=this.formulaInfo="",this.$nextTick(()=>{document.querySelector("._fd-comp-script").addEventListener("mouseover",this.spanOver),this.editor=n.markRaw(di(this.$refs.editor,{lineNumbers:!0,mode:"fcComputedMode",line:!0,tabSize:2,lineWrapping:!0,value:"",extraKeys:{Enter:function(){return!1}}})),this.setValue(this.value||""),this.editor.on("beforeChange",(e,t)=>{if(t.origin==="paste"){const o=t.text[0]||"";o&&this.setValue(o),t.cancel()}}),this.editor})}}}),Wb={class:"_fd-computed"},Gb={class:"_fd-comp-title"},Kb={class:"_fd-comp-title",style:{"margin-top":"30px"}},Yb={class:"_fd-comp-linkage"},Qb={class:"_fd-comp-title",style:{"margin-top":"30px"}},Xb=["onMouseover","onClick"],Jb={key:0,class:"_group"},Zb={key:1,class:"_subform"},qb=["onClick"],eC={key:0,ref:"editor",class:"_fd-comp-script"},tC={key:0,class:"_fd-comp-info"},nC={key:0},iC={key:1},oC={key:2,style:{color:"#f56c6c"}};function rC(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("Warning"),g=n.resolveComponent("a-tab-pane"),y=n.resolveComponent("a-tabs"),C=n.resolveComponent("ConditionGroup"),w=n.resolveComponent("RuleSelect"),A=n.resolveComponent("a-radio"),E=n.resolveComponent("a-radio-group"),_=n.resolveComponent("a-layout-content"),v=n.resolveComponent("a-layout"),m=n.resolveComponent("a-directory-tree"),b=n.resolveComponent("a-layout-sider"),S=n.resolveComponent("a-layout-header"),x=n.resolveComponent("a-form-item-rest"),O=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Wb,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=D=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.btn||e.title),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(O,{class:"_fd-comp-dialog _fd-config-dialog",title:e.title,open:e.visible,"onUpdate:open":t[7]||(t[7]=D=>e.visible=D),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[6]||(t[6]=D=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[e.type!=="value"?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-preview-tabs _fc-tabs",activeKey:e.status,"onUpdate:activeKey":t[1]||(t[1]=D=>e.status=D)},{default:n.withCtx(()=>[n.createVNode(g,{key:"condition"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.type==="linkage"?e.t("computed.value.title"):e.t("computed.condition"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.computedCondition")},null,8,["tooltip"])]),_:1}),n.createVNode(g,{key:"computed"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.name"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.computedFormula")},null,8,["tooltip"])]),_:1})]),_:1},8,["activeKey"])):n.createCommentVNode("",!0),e.status==="condition"?(n.openBlock(),n.createBlock(v,{key:1,class:"_fd-comp-condition"},{default:n.withCtx(()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createElementVNode("div",Gb,n.toDisplayString(e.t("computed.setting")),1),e.visible?(n.openBlock(),n.createBlock(C,{key:0,modelValue:e.condition,"onUpdate:modelValue":t[2]||(t[2]=D=>e.condition=D),ref:"condition"},null,8,["modelValue"])):n.createCommentVNode("",!0),e.type==="linkage"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",Kb,n.toDisplayString(e.t("computed.linkage.trigger")),1),n.createElementVNode("div",Yb,[n.createTextVNode(n.toDisplayString(e.t("computed.linkage.info.0"))+" ",1),n.createVNode(w,{modelValue:e.linkage,"onUpdate:modelValue":t[3]||(t[3]=D=>e.linkage=D),size:"small",onlyField:"",valueType:"field",clearable:""},null,8,["modelValue"]),n.createTextVNode(" "+n.toDisplayString(e.t("computed.linkage.info.1")),1)])],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",Qb,n.toDisplayString(e.t("computed.invert")),1),n.createVNode(E,{value:e.invert,"onUpdate:value":t[4]||(t[4]=D=>e.invert=D)},{default:n.withCtx(()=>[n.createVNode(A,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.invertLabel),1)]),_:1}),n.createVNode(A,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.validLabel),1)]),_:1})]),_:1},8,["value"])],64))]),_:1})]),_:1})):(n.openBlock(),n.createBlock(v,{key:2,class:"_fd-comp-con"},{default:n.withCtx(()=>[n.createVNode(b,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(m,{ref:"treeRef",class:"fc-comp-tree","tree-data":e.treeInfo,selectable:!1,showIcon:!1,fieldNames:{key:"id"},expandedKeys:e.expandedKeys,"onUpdate:expandedKeys":t[5]||(t[5]=D=>e.expandedKeys=D)},{title:n.withCtx(({data:D})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-comp-node",{disabled:D.disabled,"is-formula":D.id==="_formula"}]),onMouseover:V=>e.nodeOver(D),onClick:V=>e.nodeClick(V,D)},[n.createElementVNode("div",null,[D.rule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[D.rule._menu.subForm==="object"?(n.openBlock(),n.createElementBlock("span",Jb,"{ "+n.toDisplayString(e.t("props.group"))+" }",1)):n.createCommentVNode("",!0),D.rule._menu.subForm==="array"?(n.openBlock(),n.createElementBlock("span",Zb,"[ "+n.toDisplayString(e.t("props.collection"))+" ]",1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString((D.label||"").trim()||e.getTitle(D.rule)),1)]),D.rule?(n.openBlock(),n.createElementBlock("span",{key:0,class:"_fd-comp-id",onClick:n.withModifiers(V=>e.setField(D),["stop"])}," ID ",8,qb)):n.createCommentVNode("",!0)],42,Xb)]),_:1},8,["tree-data","expandedKeys"])]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(v,{class:"_fd-comp-r"},{default:n.withCtx(()=>[n.createVNode(S,{class:"_fd-comp-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.name||e.title),1)]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",eC,null,512)):n.createCommentVNode("",!0)]),_:1}),e.formulaInfo||e.err?(n.openBlock(),n.createElementBlock("div",tC,[e.formulaInfo?(n.openBlock(),n.createElementBlock("div",nC,n.toDisplayString(e.t("computed.formulaInfo"))+": "+n.toDisplayString(e.formulaInfo),1)):n.createCommentVNode("",!0),e.formulaExample?(n.openBlock(),n.createElementBlock("div",iC,n.toDisplayString(e.t("computed.formulaExample"))+": "+n.toDisplayString(e.formulaExample),1)):n.createCommentVNode("",!0),e.err?(n.openBlock(),n.createElementBlock("div",oC,n.toDisplayString(e.t("validate.message"))+": "+n.toDisplayString(e.err),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1},8,["title","open"])])}const Gf=Oe(Ub,[["render",rC]]),VP="",Ma="$FNX:",Kf=e=>lt.String(e)&&e.indexOf(Ma)===0,aC=n.defineComponent({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:"",hook:{type:Boolean,default:!0},eventName:{type:Array,default:()=>[]}},inject:["designer"],components:{Warning:Xn,ComputedConfig:Gf,FnEditor:ci,fcDraggable:yo,DragForm:je.$form()},data(){return{visible:!1,activeData:null,activeBehavior:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:[],cus:!1,cusValue:"",eventType:"fn",eventKey:"",eventStr:"",eventNum:0,id:0,form:{rule:[],options:{form:{layout:"horizontal",labelAlign:"right",labelWrap:!0,size:"small",labelCol:{span:5}},appendValue:!1,submitBtn:!1},api:{},formData:{}}}},computed:{useEventKeys(){const e={};return this.event.forEach(t=>{e[t.name]=!0}),Object.keys(e)},behaviorMenu(){const e=[];return Pf.forEach(t=>{e.push({label:t.key,children:t.children.map(o=>({label:o,value:o}))})}),e},t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventInfo(){const e={};return this.eventName.forEach(t=>{e[t]=this.t("com."+this.componentName+".event."+t)||this.t("eventInfo."+t)||""}),this.hookList.forEach(t=>{e[t]=this.t("eventInfo."+t)||""}),e},globalEvent(){return this.designer.setupState.formOptions.globalEvent||{}},options(){return Object.keys(this.globalEvent).map(e=>({label:this.globalEvent[e].label,value:"$GLOBAL:"+e}))},fnArgs(){return[yn(this.t)]}},watch:{visible(e){e?this.init():(this.destroy(),this.closeCus())}},methods:{openConfig(){this.designer.setupState.openGlobalEventDialog()},addCus(){const e=this.cusValue&&this.cusValue.trim();e&&(this.closeCus(),this.add(e))},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},loadFnStr(e){if(Kf(e))return e.replace(Ma,"");if(lt.Function(e)&&Kf(e.__json))return e.__json.replace(Ma,"");if(e&&e.indexOf("$GLOBAL:")===0)return e},parseBehavior(e){if(e.id=this.id++,e.method==="callback"){const t=this.loadFnStr(e.callback);t&&(e.callback=t)}return e},init(){const e=this.activeRule?et(this.activeRule.$behavior||{}):{},t=this.activeRule?{...this.activeRule.hook||{}}:{},o={...et(this.modelValue||{})};Object.keys(t).forEach(i=>{o["hook_"+i]=t[i]});const r=[];Object.keys(o).forEach(i=>{(Array.isArray(o[i])?o[i]:[o[i]]).forEach(d=>{const c={name:i,id:this.id++},f=this.loadFnStr(d);f&&(c.handle=f),c.behaviors=(e[i]||[]).map(this.parseBehavior),delete e[i],r.push(c)})}),Object.keys(e).forEach(i=>{r.push({name:i,id:this.id++,handle:"",behaviors:(e[i]||[]).map(this.parseBehavior)})}),this.event=r,this.eventNum=r.length},getValue(){const e={},t={},o={};let r=0;return this.event.forEach(i=>{let s=!1;if(i.handle){s=!0;let d=e;const c=i.handle.indexOf("$GLOBAL:")!==0?Ma+i.handle:i.handle;i.name.indexOf("hook_")>-1?o[i.name.replace("hook_","")]=c:(d[i.name]||(d[i.name]=[]),d[i.name].push(c))}i.behaviors&&i.behaviors.length&&(s=!0,t[i.name]=i.behaviors.map(d=>(delete d.id,d))),s&&r++}),Object.keys(e).forEach(i=>{e[i]=e[i].length===1?e[i][0]:e[i]}),{on:e,behaviors:t,hooks:o,num:r}},add(e){this.event.push({name:e,id:this.id++,behaviors:[]}),this.activeData||this.edit(this.event.length-1)},edit(e){this.defActive!==this.event[e].id&&(this.destroy(),this.activeData=this.event[e],this.val=this.activeData.handle||"",this.eventType=this.val.indexOf("$GLOBAL:")===0?"event":"fn",this.eventType==="event"?(this.eventKey=this.val,this.eventStr=""):(this.eventStr=this.val,this.eventKey=""),this.defActive=this.activeData.id)},rm(e){this.event.splice(e,1),(this.activeData&&this.defActive===this.activeData.id||this.activeBehavior&&e===this.activeBehavior.pid)&&this.destroy()},save(){return new Promise(e=>{if(this.activeData){let t=this.eventKey;if(this.eventType!=="event"){if(!this.$refs.fn.save())return!1;t=this.eventStr}this.activeData.handle=t,this.destroy(),e()}else if(this.activeBehavior){const t=o=>{this.activeBehavior.config={...o||{}};const r={...this.activeBehavior},i=r.pid;Object.keys(r.config).length||delete r.config,delete r.pid,this.event[i].behaviors.forEach((s,d)=>{s.id===r.id&&(this.event[i].behaviors[d]=r)})};this.form.rule&&this.form.rule.length?this.form.api.validate().then(()=>{t(this.form.formData),this.destroy(),e()}).catch(()=>{}):(t(),this.destroy(),e())}else e()})},addBehavior(e){this.event[e].behaviors.push({method:"openModel",id:this.id++,ignoreError:!1,stopPropagation:"",expression:""}),!this.activeData&&!this.activeBehavior&&this.editBehavior(e,this.event[e].behaviors.length-1)},editBehavior(e,t){this.destroy(),this.activeBehavior=et(this.event[e].behaviors[t]),this.activeBehavior.pid=e,this.defActive=this.activeBehavior.id,this.updateBehaviorForm()},updateBehaviorForm(){let e=Lf[this.activeBehavior.method];lt.Function(e)&&(e=e(this.designer.setupState));const t=o=>{o.field&&!o.title&&(o.title=this.t("behavior."+this.activeBehavior.method+".props."+o.field)||this.t("behavior.props."+o.field)||this.t("props."+o.field),o.warning=this.t("behavior."+this.activeBehavior.method+".warning."+o.field))};e?(this.form.rule=e.map(o=>(t(o),o.control&&o.control.forEach(r=>{r.rule&&r.rule.forEach(i=>{t(i)})}),o)),this.$nextTick(()=>{this.form.formData=this.activeBehavior.config||{}})):this.clearBehaviorForm()},clearBehaviorForm(){this.form.rule=[],this.form.formData={}},rmBehavior(e,t){this.event[e].behaviors.splice(t,1),this.activeBehavior&&this.defActive===this.activeBehavior.id&&this.destroy()},handleSelect(e){this.activeBehavior.method!==e&&(this.activeBehavior.method=e,this.updateBehaviorForm())},destroy(){this.activeBehavior=null,this.activeData=null,this.val=null,this.defActive=null,this.clearBehaviorForm()},close(){this.destroy()},submit(){this.save().then(()=>{const{on:e,behaviors:t,num:o,hooks:r}=this.getValue();this.$emit("update:modelValue",e),this.activeRule.$behavior=t,this.activeRule.hook=r,this.visible=!1,this.eventNum=o})}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}},created(){this.init()}}),lC={class:"_fd-event"},sC={class:"_fd-event-item"},dC={key:0,class:"_fd-label"},cC={class:"_fd-event-item"},uC={class:"_fd-label"},fC={class:"_fd-menu"},pC=["onClick"],hC={class:"_fd-event-method"},mC={key:0,class:"_fd-label"},gC=["onClick"],vC=["onClick"],yC={class:"_fd-event-behaviors"},bC=["onClick"],CC={class:"_fd-event-behavior-label"},_C=["onClick"],wC={class:"_fd-event-behavior-info"},EC={key:0,class:"_fd-menu-item",style:{"padding-left":"10px"}},AC={class:"_fd-event-title"},SC={class:"_fd-event-select"},xC={class:"_fd-event-behavior-title"},kC={class:"_fd-event-behavior-title"},NC={key:0,class:"_fd-event-behavior-title"},TC={class:"_fd-event-behavior-title"},OC={class:"_fd-form-item-warning"},DC={class:"_fd-form-item-warning"},BC={class:"_fd-form-item-warning"};function $C(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("a-menu-item"),g=n.resolveComponent("a-menu-divider"),y=n.resolveComponent("a-menu"),C=n.resolveComponent("a-dropdown"),w=n.resolveComponent("a-layout-header"),A=n.resolveComponent("a-tooltip"),E=n.resolveComponent("fcDraggable"),_=n.resolveComponent("a-input"),v=n.resolveComponent("a-layout-content"),m=n.resolveComponent("a-layout"),b=n.resolveComponent("a-layout-sider"),S=n.resolveComponent("FnEditor"),x=n.resolveComponent("a-tab-pane"),O=n.resolveComponent("a-select-option"),D=n.resolveComponent("a-select"),V=n.resolveComponent("a-tabs"),I=n.resolveComponent("a-sub-menu"),z=n.resolveComponent("Warning"),T=n.resolveComponent("DragForm"),B=n.resolveComponent("a-radio-button"),L=n.resolveComponent("a-radio-group"),U=n.resolveComponent("a-form-item"),W=n.resolveComponent("ComputedConfig"),R=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",lC,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=k=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["count"]),n.createVNode(R,{class:"_fd-event-dialog _fd-config-dialog",title:e.t("event.title"),open:e.visible,"onUpdate:open":t[14]||(t[14]=k=>e.visible=k),centered:"",maskClosable:!1,destroyOnClose:!0,width:"1080px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[13]||(t[13]=k=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-event-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(b,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-event-l"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-event-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(C,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(y,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.eventName,k=>(n.openBlock(),n.createBlock(f,{key:k,onClick:P=>e.add(k),disabled:e.useEventKeys.indexOf(k)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",sC,[n.createElementVNode("span",null,n.toDisplayString(k),1),e.eventInfo[k]?(n.openBlock(),n.createElementBlock("span",dC,n.toDisplayString(e.eventInfo[k]),1)):n.createCommentVNode("",!0)])]),_:2},1032,["onClick","disabled"]))),128)),e.eventName.length>0&&e.hook?(n.openBlock(),n.createBlock(g,{key:0})):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hookList,k=>(n.openBlock(),n.createBlock(f,{onClick:P=>e.add(k),disabled:e.useEventKeys.indexOf(k)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",cC,[n.createElementVNode("span",null,n.toDisplayString(k),1),n.createElementVNode("span",uC,n.toDisplayString(e.eventInfo[k]),1)])]),_:2},1032,["onClick","disabled"]))),256)),e.eventName.length>0||e.hook?(n.openBlock(),n.createBlock(g,{key:1})):n.createCommentVNode("",!0),n.createVNode(f,{onClick:e.cusEvent},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(e.t("props.custom")),1)]),_:1},8,["onClick"])]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1),t[15]||(t[15]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("div",fC,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(k,P)=>(n.openBlock(),n.createElementBlock("div",{key:k.id,class:n.normalizeClass(["_fd-menu-item",{"is-active":k.id===e.defActive}])},[n.createElementVNode("div",{class:"_fd-event-title",onClick:n.withModifiers(j=>e.edit(P),["stop"])},[n.createElementVNode("div",hC,[n.createElementVNode("span",null,[t[16]||(t[16]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(k.name),1)]),e.eventInfo[k.name]?(n.openBlock(),n.createElementBlock("span",mC,n.toDisplayString(e.eventInfo[k.name]),1)):n.createCommentVNode("",!0)]),k.name!=="hook_load"?(n.openBlock(),n.createBlock(A,{key:0,title:e.t("behavior.add"),placement:"top"},{default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-task-add",onClick:n.withModifiers(j=>e.addBehavior(P),["stop"])},null,8,gC)]),_:2},1032,["title"])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(j=>e.rm(P),["stop"])},null,8,vC)],8,pC),n.createElementVNode("div",yC,[n.createVNode(E,{group:{name:"behavior",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",list:k.behaviors},{item:n.withCtx(({element:j,index:Z})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-event-behavior",{"is-active":j.id===e.defActive}]),onClick:n.withModifiers(J=>e.editBehavior(P,Z),["stop"])},[n.createElementVNode("div",CC,[n.createElementVNode("div",null,[t[17]||(t[17]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString(e.t("behavior."+j.method+".name")),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(J=>e.rmBehavior(P,Z),["stop"])},null,8,_C)]),n.createElementVNode("div",wC,n.toDisplayString(e.t("behavior."+j.method+".info")||e.t("behavior."+j.method+".name")),1)],10,bC)]),_:2},1032,["list"])])],2))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",EC,[n.createElementVNode("div",AC,[n.createVNode(_,{type:"text",value:e.cusValue,"onUpdate:value":t[1]||(t[1]=k=>e.cusValue=k),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...k)=>e.addCus&&e.addCus(...k),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...k)=>e.closeCus&&e.closeCus(...k),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(v,null,{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-event-r"},{default:n.withCtx(()=>[e.activeData||e.activeBehavior?(n.openBlock(),n.createBlock(w,{key:0,class:"_fd-event-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(v,{key:1},{default:n.withCtx(()=>[n.createVNode(V,{class:"_fc-tabs",activeKey:e.eventType,"onUpdate:activeKey":t[7]||(t[7]=k=>e.eventType=k)},{default:n.withCtx(()=>[n.createVNode(x,{tab:e.t("props.custom"),key:"fn",lazy:""},{default:n.withCtx(()=>[n.createVNode(S,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[4]||(t[4]=k=>e.eventStr=k),body:"",name:e.activeData.name,args:e.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]),_:1},8,["tab"]),n.createVNode(x,{tab:e.t("form.globalEvent"),key:"event"},{default:n.withCtx(()=>[n.createElementVNode("div",SC,[n.createVNode(D,{value:e.eventKey,"onUpdate:value":t[5]||(t[5]=k=>e.eventKey=k),clearable:"",style:{width:"240px","margin-left":"15px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,k=>(n.openBlock(),n.createBlock(O,{key:k.value,value:k.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(k.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),n.createElementVNode("span",{class:"_fc-manage-text",onClick:t[6]||(t[6]=(...k)=>e.openConfig&&e.openConfig(...k))},t[18]||(t[18]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])]),_:1},8,["tab"])]),_:1},8,["activeKey"])]),_:1})):n.createCommentVNode("",!0),e.activeBehavior?(n.openBlock(),n.createBlock(v,{key:2,class:"is-behavior"},{default:n.withCtx(()=>[n.createVNode(b,{width:"220px",class:"_fd-event-behavior-list"},{default:n.withCtx(()=>[n.createElementVNode("div",xC,n.toDisplayString(e.t("behavior.props.execute")),1),n.createVNode(y,{inlineIndent:20,selectedKeys:[e.activeBehavior.method],mode:"inline"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.behaviorMenu,k=>(n.openBlock(),n.createBlock(I,{key:k.label,id:k.label},{title:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(e.t("props."+k.label)),1)]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.children,P=>(n.openBlock(),n.createBlock(f,{key:P.value,id:P.value,onClick:j=>e.handleSelect(P.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior."+P.value+".name")),1)]),_:2},1032,["id","onClick"]))),128))]),_:2},1032,["id"]))),128))]),_:1},8,["selectedKeys"])]),_:1}),n.createVNode(v,{class:"_fd-event-behavior-con"},{default:n.withCtx(()=>[n.createElementVNode("div",kC,[n.createTextVNode(n.toDisplayString(e.t("behavior.props.info"))+" ",1),n.createElementVNode("div",null,n.toDisplayString(e.t("behavior."+e.activeBehavior.method+".info")||e.t("behavior."+e.activeBehavior.method+".name")),1)]),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createElementBlock("div",NC,n.toDisplayString(e.t("designer.rule")),1)):n.createCommentVNode("",!0),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createBlock(T,{key:1,rule:e.form.rule,option:e.form.options,modelValue:e.form.formData,"onUpdate:modelValue":t[8]||(t[8]=k=>e.form.formData=k),api:e.form.api,"onUpdate:api":t[9]||(t[9]=k=>e.form.api=k)},{title:n.withCtx(k=>[k.rule.warning?(n.openBlock(),n.createBlock(z,{key:0,tooltip:k.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(k.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(k.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","api"])):n.createCommentVNode("",!0),n.createElementVNode("div",TC,n.toDisplayString(e.t("designer.advanced")),1),n.createVNode(U,{label:e.t("behavior.props.ignoreError")},{default:n.withCtx(()=>[n.createVNode(L,{size:"small",value:e.activeBehavior.ignoreError,"onUpdate:value":t[10]||(t[10]=k=>e.activeBehavior.ignoreError=k)},{default:n.withCtx(()=>[n.createVNode(B,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.continue")),1)]),_:1}),n.createVNode(B,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.stop")),1)]),_:1})]),_:1},8,["value"]),n.createElementVNode("div",OC,n.toDisplayString(e.t("warning.behaviorIgnoreError")),1)]),_:1},8,["label"]),n.createVNode(U,{label:e.t("behavior.props.expression")},{default:n.withCtx(()=>[n.createVNode(W,{modelValue:e.activeBehavior.expression,"onUpdate:modelValue":t[11]||(t[11]=k=>e.activeBehavior.expression=k),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.break"),validLabel:e.t("behavior.props.continue")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",DC,n.toDisplayString(e.t("warning.behaviorExpression")),1)]),_:1},8,["label"]),n.createVNode(U,{label:e.t("behavior.props.stopPropagation")},{default:n.withCtx(()=>[n.createVNode(W,{modelValue:e.activeBehavior.stopPropagation,"onUpdate:modelValue":t[12]||(t[12]=k=>e.activeBehavior.stopPropagation=k),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.continue"),validLabel:e.t("behavior.props.stop")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",BC,n.toDisplayString(e.t("warning.behaviorStopPropagation")),1)]),_:1},8,["label"])]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","open"])])}const Yf=Oe(aC,[["render",$C]]),Qf=n.defineComponent({name:"VNode",props:{fn:Function},render(){const e=this.fn();return Array.isArray(e)?n.h(n.Fragment,{},e):e}});function Xf(e,t){var o=null;return function(...r){o!==null&&clearTimeout(o),o=setTimeout(()=>e.call(this,...r),t)}}/*!
Highlight.js v11.9.0 (git: b7ec4bfafc)
(c) 2006-2024 undefined and other contributors
License: BSD-3-Clause
*/function Jf(e){return e instanceof Map?e.clear=e.delete=e.set=()=>{throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const o=e[t],r=typeof o;r!=="object"&&r!=="function"||Object.isFrozen(o)||Jf(o)}),e}class Zf{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function qf(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Si(e,...t){const o=Object.create(null);for(const r in e)o[r]=e[r];return t.forEach(r=>{for(const i in r)o[i]=r[i]}),o}const ep=e=>!!e.scope;class RC{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=qf(t)}openNode(t){if(!ep(t))return;const o=((r,{prefix:i})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const s=r.split(".");return[`${i}${s.shift()}`,...s.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${i}${r}`})(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){ep(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const tp=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class wd{constructor(){this.rootNode=tp(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const o=tp({scope:t});this.add(o),this.stack.push(o)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(r=>this._walk(t,r)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{wd._collapse(o)}))}}class VC extends wd{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){const r=t.root;o&&(r.scope="language:"+o),this.add(r)}toHTML(){return new RC(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function yr(e){return e?typeof e=="string"?e:e.source:null}function np(e){return Wi("(?=",e,")")}function IC(e){return Wi("(?:",e,")*")}function FC(e){return Wi("(?:",e,")?")}function Wi(...e){return e.map(t=>yr(t)).join("")}function Ed(...e){return"("+((o=>{const r=o[o.length-1];return typeof r=="object"&&r.constructor===Object?(o.splice(o.length-1,1),r):{}})(e).capture?"":"?:")+e.map(o=>yr(o)).join("|")+")"}function ip(e){return RegExp(e.toString()+"|").exec("").length-1}const MC=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ad(e,{joinWith:t}){let o=0;return e.map(r=>{o+=1;const i=o;let s=yr(r),d="";for(;s.length>0;){const c=MC.exec(s);if(!c){d+=s;break}d+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?d+="\\"+(Number(c[1])+i):(d+=c[0],c[0]==="("&&o++)}return d}).map(r=>`(${r})`).join(t)}const op="[a-zA-Z]\\w*",Sd="[a-zA-Z_]\\w*",rp="\\b\\d+(\\.\\d+)?",ap="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",lp="\\b(0b[01]+)",br={begin:"\\\\[\\s\\S]",relevance:0},PC={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[br]},LC={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[br]},Pa=(e,t,o={})=>{const r=Si({scope:"comment",begin:e,end:t,contains:[]},o);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Ed("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Wi(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},jC=Pa("//","$"),zC=Pa("/\\*","\\*/"),HC=Pa("#","$");var La=Object.freeze({__proto__:null,APOS_STRING_MODE:PC,BACKSLASH_ESCAPE:br,BINARY_NUMBER_MODE:{scope:"number",begin:lp,relevance:0},BINARY_NUMBER_RE:lp,COMMENT:Pa,C_BLOCK_COMMENT_MODE:zC,C_LINE_COMMENT_MODE:jC,C_NUMBER_MODE:{scope:"number",begin:ap,relevance:0},C_NUMBER_RE:ap,END_SAME_AS_BEGIN:e=>Object.assign(e,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}}),HASH_COMMENT_MODE:HC,IDENT_RE:op,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+Sd,relevance:0},NUMBER_MODE:{scope:"number",begin:rp,relevance:0},NUMBER_RE:rp,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:LC,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[br,{begin:/\[/,end:/\]/,relevance:0,contains:[br]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Wi(t,/.*\b/,e.binary,/\b.*/)),Si({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,r)=>{o.index!==0&&r.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:op,relevance:0},UNDERSCORE_IDENT_RE:Sd,UNDERSCORE_TITLE_MODE:{scope:"title",begin:Sd,relevance:0}});function UC(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function WC(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function GC(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=UC,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function KC(e,t){Array.isArray(e.illegal)&&(e.illegal=Ed(...e.illegal))}function YC(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function QC(e,t){e.relevance===void 0&&(e.relevance=1)}const XC=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=o.keywords,e.begin=Wi(o.beforeMatch,np(o.begin)),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch},JC=["of","and","for","in","not","or","if","then","parent","list","value"],ZC="keyword";function sp(e,t,o=ZC){const r=Object.create(null);return typeof e=="string"?i(o,e.split(" ")):Array.isArray(e)?i(o,e):Object.keys(e).forEach(s=>{Object.assign(r,sp(e[s],t,s))}),r;function i(s,d){t&&(d=d.map(c=>c.toLowerCase())),d.forEach(c=>{const f=c.split("|");r[f[0]]=[s,qC(f[0],f[1])]})}}function qC(e,t){return t?Number(t):(o=>JC.includes(o.toLowerCase()))(e)?0:1}const dp={},Gi=e=>{console.error(e)},cp=(e,...t)=>{console.log("WARN: "+e,...t)},Eo=(e,t)=>{dp[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),dp[`${e}/${t}`]=!0)},ja=Error();function up(e,t,{key:o}){let r=0;const i=e[o],s={},d={};for(let c=1;c<=t.length;c++)d[c+r]=i[c],s[c+r]=!0,r+=ip(t[c-1]);e[o]=d,e[o]._emit=s,e[o]._multi=!0}function e_(e){(t=>{t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)})(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),(t=>{if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Gi("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ja;if(typeof t.beginScope!="object"||t.beginScope===null)throw Gi("beginScope must be object"),ja;up(t,t.begin,{key:"beginScope"}),t.begin=Ad(t.begin,{joinWith:""})}})(e),(t=>{if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Gi("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ja;if(typeof t.endScope!="object"||t.endScope===null)throw Gi("endScope must be object"),ja;up(t,t.end,{key:"endScope"}),t.end=Ad(t.end,{joinWith:""})}})(e)}function t_(e){function t(i,s){return RegExp(yr(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,s]),this.matchAt+=ip(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(d=>d[1]);this.matcherRe=t(Ad(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(s);if(!d)return null;const c=d.findIndex((g,y)=>y>0&&g!==void 0),f=this.matchIndexes[c];return d.splice(0,c),Object.assign(d,f)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const d=new o;return this.rules.slice(s).forEach(([c,f])=>d.addRule(c,f)),d.compile(),this.multiRegexes[s]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,d){this.rules.push([s,d]),d.type==="begin"&&this.count++}exec(s){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let c=d.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,c=f.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Si(e.classNameAliases||{}),function i(s,d){const c=s;if(s.isCompiled)return c;[WC,YC,e_,XC].forEach(g=>g(s,d)),e.compilerExtensions.forEach(g=>g(s,d)),s.__beforeBegin=null,[GC,KC,QC].forEach(g=>g(s,d)),s.isCompiled=!0;let f=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),f=s.keywords.$pattern,delete s.keywords.$pattern),f=f||/\w+/,s.keywords&&(s.keywords=sp(s.keywords,e.case_insensitive)),c.keywordPatternRe=t(f,!0),d&&(s.begin||(s.begin=/\B|\b/),c.beginRe=t(c.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(c.endRe=t(c.end)),c.terminatorEnd=yr(c.end)||"",s.endsWithParent&&d.terminatorEnd&&(c.terminatorEnd+=(s.end?"|":"")+d.terminatorEnd)),s.illegal&&(c.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(g=>(y=>(y.variants&&!y.cachedVariants&&(y.cachedVariants=y.variants.map(C=>Si(y,{variants:null},C))),y.cachedVariants?y.cachedVariants:fp(y)?Si(y,{starts:y.starts?Si(y.starts):null}):Object.isFrozen(y)?Si(y):y))(g==="self"?s:g))),s.contains.forEach(g=>{i(g,c)}),s.starts&&i(s.starts,d),c.matcher=(g=>{const y=new r;return g.contains.forEach(C=>y.addRule(C.begin,{rule:C,type:"begin"})),g.terminatorEnd&&y.addRule(g.terminatorEnd,{type:"end"}),g.illegal&&y.addRule(g.illegal,{type:"illegal"}),y})(c),c}(e)}function fp(e){return!!e&&(e.endsWithParent||fp(e.starts))}class n_ extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}}const xd=qf,pp=Si,hp=Symbol("nomatch"),mp=e=>{const t=Object.create(null),o=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",d={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:VC};function f(S){return c.noHighlightRe.test(S)}function g(S,x,O){let D="",V="";typeof x=="object"?(D=S,O=x.ignoreIllegals,V=x.language):(Eo("10.7.0","highlight(lang, code, ...args) has been deprecated."),Eo("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),V=S,D=x),O===void 0&&(O=!0);const I={code:D,language:V};b("before:highlight",I);const z=I.result?I.result:y(I.language,I.code,O);return z.code=I.code,b("after:highlight",z),z}function y(S,x,O,D){const V=Object.create(null);function I(){if(!F.keywords)return pe.addText(se);let $=0;F.keywordPatternRe.lastIndex=0;let Y=F.keywordPatternRe.exec(se),Q="";for(;Y;){Q+=se.substring($,Y.index);const te=j.case_insensitive?Y[0].toLowerCase():Y[0],q=(K=te,F.keywords[K]);if(q){const[ie,de]=q;if(pe.addText(Q),Q="",V[te]=(V[te]||0)+1,V[te]<=7&&(ye+=de),ie.startsWith("_"))Q+=Y[0];else{const Ee=j.classNameAliases[ie]||ie;T(Y[0],Ee)}}else Q+=Y[0];$=F.keywordPatternRe.lastIndex,Y=F.keywordPatternRe.exec(se)}var K;Q+=se.substring($),pe.addText(Q)}function z(){F.subLanguage!=null?(()=>{if(se==="")return;let $=null;if(typeof F.subLanguage=="string"){if(!t[F.subLanguage])return pe.addText(se);$=y(F.subLanguage,se,!0,oe[F.subLanguage]),oe[F.subLanguage]=$._top}else $=C(se,F.subLanguage.length?F.subLanguage:null);F.relevance>0&&(ye+=$.relevance),pe.__addSublanguage($._emitter,$.language)})():I(),se=""}function T($,Y){$!==""&&(pe.startScope(Y),pe.addText($),pe.endScope())}function B($,Y){let Q=1;const K=Y.length-1;for(;Q<=K;){if(!$._emit[Q]){Q++;continue}const te=j.classNameAliases[$[Q]]||$[Q],q=Y[Q];te?T(q,te):(se=q,I(),se=""),Q++}}function L($,Y){return $.scope&&typeof $.scope=="string"&&pe.openNode(j.classNameAliases[$.scope]||$.scope),$.beginScope&&($.beginScope._wrap?(T(se,j.classNameAliases[$.beginScope._wrap]||$.beginScope._wrap),se=""):$.beginScope._multi&&(B($.beginScope,Y),se="")),F=Object.create($,{parent:{value:F}}),F}function U($,Y,Q){let K=((te,q)=>{const ie=te&&te.exec(q);return ie&&ie.index===0})($.endRe,Q);if(K){if($["on:end"]){const te=new Zf($);$["on:end"](Y,te),te.isMatchIgnored&&(K=!1)}if(K){for(;$.endsParent&&$.parent;)$=$.parent;return $}}if($.endsWithParent)return U($.parent,Y,Q)}function W($){return F.matcher.regexIndex===0?(se+=$[0],1):(he=!0,0)}function R($){const Y=$[0],Q=x.substring($.index),K=U(F,$,Q);if(!K)return hp;const te=F;F.endScope&&F.endScope._wrap?(z(),T(Y,F.endScope._wrap)):F.endScope&&F.endScope._multi?(z(),B(F.endScope,$)):te.skip?se+=Y:(te.returnEnd||te.excludeEnd||(se+=Y),z(),te.excludeEnd&&(se=Y));do F.scope&&pe.closeNode(),F.skip||F.subLanguage||(ye+=F.relevance),F=F.parent;while(F!==K.parent);return K.starts&&L(K.starts,$),te.returnEnd?0:Y.length}let k={};function P($,Y){const Q=Y&&Y[0];if(se+=$,Q==null)return z(),0;if(k.type==="begin"&&Y.type==="end"&&k.index===Y.index&&Q===""){if(se+=x.slice(Y.index,Y.index+1),!i){const K=Error(`0 width match regex (${S})`);throw K.languageName=S,K.badRule=k.rule,K}return 1}if(k=Y,Y.type==="begin")return(K=>{const te=K[0],q=K.rule,ie=new Zf(q),de=[q.__beforeBegin,q["on:begin"]];for(const Ee of de)if(Ee&&(Ee(K,ie),ie.isMatchIgnored))return W(te);return q.skip?se+=te:(q.excludeBegin&&(se+=te),z(),q.returnBegin||q.excludeBegin||(se=te)),L(q,K),q.returnBegin?0:te.length})(Y);if(Y.type==="illegal"&&!O){const K=Error('Illegal lexeme "'+Q+'" for mode "'+(F.scope||"<unnamed>")+'"');throw K.mode=F,K}if(Y.type==="end"){const K=R(Y);if(K!==hp)return K}if(Y.type==="illegal"&&Q==="")return 1;if(ue>1e5&&ue>3*Y.index)throw Error("potential infinite loop, way more iterations than matches");return se+=Q,Q.length}const j=_(S);if(!j)throw Gi(s.replace("{}",S)),Error('Unknown language: "'+S+'"');const Z=t_(j);let J="",F=D||Z;const oe={},pe=new c.__emitter(c);(()=>{const $=[];for(let Y=F;Y!==j;Y=Y.parent)Y.scope&&$.unshift(Y.scope);$.forEach(Y=>pe.openNode(Y))})();let se="",ye=0,fe=0,ue=0,he=!1;try{if(j.__emitTokens)j.__emitTokens(x,pe);else{for(F.matcher.considerAll();;){ue++,he?he=!1:F.matcher.considerAll(),F.matcher.lastIndex=fe;const $=F.matcher.exec(x);if(!$)break;const Y=P(x.substring(fe,$.index),$);fe=$.index+Y}P(x.substring(fe))}return pe.finalize(),J=pe.toHTML(),{language:S,value:J,relevance:ye,illegal:!1,_emitter:pe,_top:F}}catch($){if($.message&&$.message.includes("Illegal"))return{language:S,value:xd(x),illegal:!0,relevance:0,_illegalBy:{message:$.message,index:fe,context:x.slice(fe-100,fe+100),mode:$.mode,resultSoFar:J},_emitter:pe};if(i)return{language:S,value:xd(x),illegal:!1,relevance:0,errorRaised:$,_emitter:pe,_top:F};throw $}}function C(S,x){x=x||c.languages||Object.keys(t);const O=(B=>{const L={value:xd(B),illegal:!1,relevance:0,_top:d,_emitter:new c.__emitter(c)};return L._emitter.addText(B),L})(S),D=x.filter(_).filter(m).map(B=>y(B,S,!1));D.unshift(O);const V=D.sort((B,L)=>{if(B.relevance!==L.relevance)return L.relevance-B.relevance;if(B.language&&L.language){if(_(B.language).supersetOf===L.language)return 1;if(_(L.language).supersetOf===B.language)return-1}return 0}),[I,z]=V,T=I;return T.secondBest=z,T}function w(S){let x=null;const O=(I=>{let z=I.className+" ";z+=I.parentNode?I.parentNode.className:"";const T=c.languageDetectRe.exec(z);if(T){const B=_(T[1]);return B||(cp(s.replace("{}",T[1])),cp("Falling back to no-highlight mode for this block.",I)),B?T[1]:"no-highlight"}return z.split(/\s+/).find(B=>f(B)||_(B))})(S);if(f(O))return;if(b("before:highlightElement",{el:S,language:O}),S.dataset.highlighted)return console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);if(S.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(S)),c.throwUnescapedHTML))throw new n_("One of your code blocks includes unescaped HTML.",S.innerHTML);x=S;const D=x.textContent,V=O?g(D,{language:O,ignoreIllegals:!0}):C(D);S.innerHTML=V.value,S.dataset.highlighted="yes",((I,z,T)=>{const B=z&&o[z]||T;I.classList.add("hljs"),I.classList.add("language-"+B)})(S,O,V.language),S.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(S.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),b("after:highlightElement",{el:S,result:V,text:D})}let A=!1;function E(){document.readyState!=="loading"?document.querySelectorAll(c.cssSelector).forEach(w):A=!0}function _(S){return S=(S||"").toLowerCase(),t[S]||t[o[S]]}function v(S,{languageName:x}){typeof S=="string"&&(S=[S]),S.forEach(O=>{o[O.toLowerCase()]=x})}function m(S){const x=_(S);return x&&!x.disableAutodetect}function b(S,x){const O=S;r.forEach(D=>{D[O]&&D[O](x)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{A&&E()},!1),Object.assign(e,{highlight:g,highlightAuto:C,highlightAll:E,highlightElement:w,highlightBlock:S=>(Eo("10.7.0","highlightBlock will be removed entirely in v12.0"),Eo("10.7.0","Please use highlightElement now."),w(S)),configure:S=>{c=pp(c,S)},initHighlighting:()=>{E(),Eo("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{E(),Eo("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(S,x)=>{let O=null;try{O=x(e)}catch(D){if(Gi("Language definition for '{}' could not be registered.".replace("{}",S)),!i)throw D;Gi(D),O=d}O.name||(O.name=S),t[S]=O,O.rawDefinition=x.bind(null,e),O.aliases&&v(O.aliases,{languageName:S})},unregisterLanguage:S=>{delete t[S];for(const x of Object.keys(o))o[x]===S&&delete o[x]},listLanguages:()=>Object.keys(t),getLanguage:_,registerAliases:v,autoDetection:m,inherit:pp,addPlugin:S=>{(x=>{x["before:highlightBlock"]&&!x["before:highlightElement"]&&(x["before:highlightElement"]=O=>{x["before:highlightBlock"](Object.assign({block:O.el},O))}),x["after:highlightBlock"]&&!x["after:highlightElement"]&&(x["after:highlightElement"]=O=>{x["after:highlightBlock"](Object.assign({block:O.el},O))})})(S),r.push(S)},removePlugin:S=>{const x=r.indexOf(S);x!==-1&&r.splice(x,1)}}),e.debugMode=()=>{i=!1},e.safeMode=()=>{i=!0},e.versionString="11.9.0",e.regex={concat:Wi,lookahead:np,either:Ed,optional:FC,anyNumberOfTimes:IC};for(const S in La)typeof La[S]=="object"&&Jf(La[S]);return Object.assign(e,La),e},Ao=mp({});Ao.newInstance=()=>mp({});/*! `xml` grammar compiled for Highlight.js 11.9.0 */var i_=(()=>e=>{const t=e.regex,o=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(i,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,d,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,s,c,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(o,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:f}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})();/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var o_=(()=>{const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],d=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(s,r,i);return f=>{const g=f.regex,y=e,C={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,F)=>{const oe=J[0].length+J.index,pe=J.input[oe];if(pe==="<"||pe===",")return void F.ignoreMatch();let se;pe===">"&&(((fe,{after:ue})=>{const he="</"+fe[0].slice(1);return fe.input.indexOf(he,ue)!==-1})(J,{after:oe})||F.ignoreMatch());const ye=J.input.substring(oe);((se=ye.match(/^\s*=/))||(se=ye.match(/^\s+extends\s+/))&&se.index===0)&&F.ignoreMatch()}},w={$pattern:e,keyword:t,literal:o,built_in:c,"variable.language":d},A="[0-9](_?[0-9])*",E=`\\.(${A})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${_})((${E})|\\.)?|(${E}))[eE][+-]?(${A})\\b`},{begin:`\\b(${_})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},S={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,m],subLanguage:"css"}},x={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,m]},D={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:y+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},V=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,b,S,x,O,{match:/\$\d+/},v];m.contains=V.concat({begin:/\{/,end:/\}/,keywords:w,contains:["self"].concat(V)});const I=[].concat(D,m.contains),z=I.concat([{begin:/\(/,end:/\)/,keywords:w,contains:["self"].concat(I)}]),T={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:z},B={variants:[{match:[/class/,/\s+/,y,/\s+/,/extends/,/\s+/,g.concat(y,"(",g.concat(/\./,y),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,y],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:g.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},U={variants:[{match:[/function/,/\s+/,y,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},W={match:g.concat(/\b/,(R=[...s,"super","import"],g.concat("(?!",R.join("|"),")")),y,g.lookahead(/\(/)),className:"title.function",relevance:0};var R;const k={begin:g.concat(/\./,g.lookahead(g.concat(y,/(?![0-9A-Za-z$_(])/))),end:y,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},P={match:[/get|set/,/\s+/,y,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},j="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,y,/\s*/,/=\s*/,/(async\s*)?/,g.lookahead(j)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:w,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,b,S,x,O,D,{match:/\$\d+/},v,L,{className:"attr",begin:y+g.lookahead(":"),relevance:0},Z,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,f.REGEXP_MODE,{className:"function",begin:j,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:C.begin,"on:begin":C.isTrulyOpeningTag,end:C.end}],subLanguage:"xml",contains:[{begin:C.begin,end:C.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,f.inherit(f.TITLE_MODE,{begin:y,className:"title.function"})]},{match:/\.\.\./,relevance:0},k,{match:"\\$"+y,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},W,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},B,P,{match:/\$[(.]/}]}}})();const IP="",r_=n.defineComponent({name:"ConfigItem",components:{Warning:Xn},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data(){return{visit:!1}}}),a_={class:"_fd-config-item"},l_={class:"_fd-ci-head"},s_={key:0,class:"_fd-ci-con"},d_={key:1,class:"_fd-ci-info"};function c_(e,t,o,r,i,s){const d=n.resolveComponent("Warning");return n.openBlock(),n.createElementBlock("div",a_,[n.createElementVNode("div",l_,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-ci-label",e.$slots.append&&e.arrow!==!1?"is-arrow":""]),onClick:t[0]||(t[0]=c=>e.visit=e.$slots.append&&e.arrow!==!1&&!e.visit)},[e.warning?(n.openBlock(),n.createBlock(d,{key:0,tooltip:e.warning},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"label",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)])]),_:3},8,["tooltip"])):n.renderSlot(e.$slots,"label",{key:1},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)]),e.$slots.append&&e.arrow!==!1?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["fc-icon icon-down",e.showAppend||e.visit?"down":""])},null,2)):n.createCommentVNode("",!0)],2),e.$slots.default||e.info?(n.openBlock(),n.createElementBlock("div",s_,[e.$slots.default?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("span",d_,n.toDisplayString(e.info),1))])):n.createCommentVNode("",!0)]),e.showAppend||e.visit?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-ci-append",style:n.normalizeStyle("background:"+e.appendBackground)},[n.renderSlot(e.$slots,"append")],4)):n.createCommentVNode("",!0)])}const wn=Oe(r_,[["render",c_]]),FP="",u_=n.defineComponent({name:"PageInput",inject:["designer"],emits:["add","delete","change"],computed:{activePage(){return this.designer.setupState.activePage},pageData(){return this.designer.setupState.pageData},t(){return this.designer.setupState.t},containerList(){const e=this.designer.setupState.dragRuleList;return Object.keys(e).map(t=>{if(e[t].container)return e[t]}).filter(t=>!!t)}},methods:{copy(e){Wn(e)},getPageName(e){return this.t("com."+e.name+".name")||e.label},getPageLabel(e){return e.default?this.t("designer.main"):uo(e.main,e.config.labelField,"")||this.getPageName(e.main._menu)}}}),f_={class:"_fd-page-input"},p_=["onClick"],h_={class:"_fd-page-label"},m_={key:0,class:"fc-icon icon-yes"},g_={key:0,class:"_fd-page-id"},v_=["onClick"],y_={key:0,class:"_fd-page-btns"},b_=["onClick"],C_=["onClick"];function __(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-menu-item"),f=n.resolveComponent("a-menu"),g=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",f_,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,(y,C)=>(n.openBlock(),n.createElementBlock("div",{key:y.main?y.main.name:"",class:n.normalizeClass(["_fd-page-item",{active:y===e.activePage}]),onClick:w=>e.$emit("change",C)},[n.createElementVNode("div",null,[n.createElementVNode("div",h_,[n.createElementVNode("span",null,n.toDisplayString(e.getPageLabel(y)),1),y===e.activePage?(n.openBlock(),n.createElementBlock("i",m_)):n.createCommentVNode("",!0)]),y.main?(n.openBlock(),n.createElementBlock("div",g_,[n.createTextVNode(" ID\uFF1A"+n.toDisplayString(y.main.name)+" ",1),n.createElementVNode("i",{onClick:n.withModifiers(w=>e.copy(y.main.name),["stop"]),class:"fc-icon icon-group"},null,8,v_)])):n.createCommentVNode("",!0)]),y.default?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",y_,[n.createElementVNode("div",{class:"_fd-page-copy",onClick:n.withModifiers(w=>e.$emit("copy",C),["stop"])},t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]),8,b_),n.createElementVNode("div",{class:"_fd-page-del",onClick:n.withModifiers(w=>e.$emit("delete",C),["stop"])},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,C_)]))],10,p_))),128)),n.createVNode(g,{size:"default",trigger:"click"},{overlay:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.containerList,y=>(n.openBlock(),n.createBlock(c,{key:y.name,onClick:C=>e.$emit("add",y.name)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.getPageName(y)),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.addPage")),1),t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))]),_:1})]),_:1})])}const w_=Oe(u_,[["render",__]]);function gp(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function za(e){let t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return t.indexOf("-")===0&&(t=t.substr(1)),t}function vp(e,t,o){let r=e,i;return(t||"").split(".").forEach(s=>{i&&((!r[i]||typeof r[i]!="object")&&(r[i]={}),r=r[i]),i=s}),r[i]=o,r}var yp={exports:{}},Cr={},Ha={exports:{}},kd={},Nd={},bp;function Td(){if(bp)return Nd;bp=1;function e(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var r=new e(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},e.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},e.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},e.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
`);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},e.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function t(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(r,i){var s=this.__base_string_length;return i=i||0,r<0&&(s=0),s+=r*this.__indent_size,s+=i,s},t.prototype.get_indent_string=function(r,i){var s=this.__base_string;return i=i||0,r<0&&(r=0,s=""),i+=r*this.__indent_size,this.__ensure_cache(i),s+=this.__cache[i],s},t.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var r=this.__cache.length,i=0,s="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,s=new Array(i+1).join(this.__indent_string)),r&&(s+=new Array(r+1).join(" ")),this.__cache.push(s)};function o(r,i){this.__indent_cache=new t(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},o.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
`);return r!==`
`&&(s=s.replace(/[\n]/g,r)),s},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},o.prototype.remove_indent=function(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(r,i){for(var s=this.__lines.length-2;s>=0;){var d=this.__lines[s];if(d.is_empty())break;if(d.item(0).indexOf(r)!==0&&d.item(-1)!==i){this.__lines.splice(s+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},Nd.Output=o,Nd}var Od={},Cp;function _p(){if(Cp)return Od;Cp=1;function e(t,o,r,i){this.type=t,this.text=o,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Od.Token=e,Od}var Dd={},wp;function Ep(){return wp||(wp=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",s="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",d="(?:"+s+"|["+t+r+"])",c="(?:"+s+"|["+o+r+i+"])*";e.identifier=new RegExp(d+c,"g"),e.identifierStart=new RegExp(d),e.identifierMatch=new RegExp("(?:"+s+"|["+o+r+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(Dd)),Dd}var Bd={},_r={},Ap;function $d(){if(Ap)return _r;Ap=1;function e(r,i){this.raw_options=t(r,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(r,i){var s=this.raw_options[r],d=i||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(d=s.concat()):typeof s=="string"&&(d=s.split(/[^a-zA-Z0-9_\/\-]+/)),d},e.prototype._get_boolean=function(r,i){var s=this.raw_options[r],d=s===void 0?!!i:!!s;return d},e.prototype._get_characters=function(r,i){var s=this.raw_options[r],d=i||"";return typeof s=="string"&&(d=s.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},e.prototype._get_number=function(r,i){var s=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var d=parseInt(s,10);return isNaN(d)&&(d=i),d},e.prototype._get_selection=function(r,i,s){var d=this._get_selection_list(r,i,s);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return d[0]},e.prototype._get_selection_list=function(r,i,s){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[i[0]],!this._is_valid_selection(s,i))throw new Error("Invalid Default Value!");var d=this._get_array(r,s);if(!this._is_valid_selection(d,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[r]+"'");return d},e.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(s){return i.indexOf(s)===-1})};function t(r,i){var s={};r=o(r);var d;for(d in r)d!==i&&(s[d]=r[d]);if(i&&r[i])for(d in r[i])s[d]=r[i][d];return s}function o(r){var i={},s;for(s in r){var d=s.replace(/-/g,"_");i[d]=r[s]}return i}return _r.Options=e,_r.normalizeOpts=o,_r.mergeOpts=t,_r}var Sp;function xp(){if(Sp)return Bd;Sp=1;var e=$d().Options,t=["before-newline","after-newline","preserve-newline"];function o(r){e.call(this,r,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<s.length;d++)s[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[d];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return o.prototype=new e,Bd.Options=o,Bd}var So={},Rd={},kp;function Vd(){if(kp)return Rd;kp=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(o){this.__input=o||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var o=null;return this.hasNext()&&(o=this.__input.charAt(this.__position),this.__position+=1),o},t.prototype.peek=function(o){var r=null;return o=o||0,o+=this.__position,o>=0&&o<this.__input_length&&(r=this.__input.charAt(o)),r},t.prototype.__match=function(o,r){o.lastIndex=r;var i=o.exec(this.__input);return i&&!(e&&o.sticky)&&i.index!==r&&(i=null),i},t.prototype.test=function(o,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(o,r):!1},t.prototype.testChar=function(o,r){var i=this.peek(r);return o.lastIndex=0,i!==null&&o.test(i)},t.prototype.match=function(o){var r=this.__match(o,this.__position);return r?this.__position+=r[0].length:r=null,r},t.prototype.read=function(o,r,i){var s="",d;return o&&(d=this.match(o),d&&(s+=d[0])),r&&(d||!o)&&(s+=this.readUntil(r,i)),s},t.prototype.readUntil=function(o,r){var i="",s=this.__position;o.lastIndex=this.__position;var d=o.exec(this.__input);return d?(s=d.index,r&&(s+=d[0].length)):s=this.__input_length,i=this.__input.substring(this.__position,s),this.__position=s,i},t.prototype.readUntilAfter=function(o){return this.readUntil(o,!0)},t.prototype.get_regexp=function(o,r){var i=null,s="g";return r&&e&&(s="y"),typeof o=="string"&&o!==""?i=new RegExp(o,s):o&&(i=new RegExp(o.source,s)),i},t.prototype.get_literal_regexp=function(o){return RegExp(o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(o){var r=this.__position,i=this.readUntilAfter(o);return this.__position=r,i},t.prototype.lookBack=function(o){var r=this.__position-1;return r>=o.length&&this.__input.substring(r-o.length,r).toLowerCase()===o},Rd.InputScanner=t,Rd}var Ua={},Id={},Np;function E_(){if(Np)return Id;Np=1;function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var o=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(o=this.__tokens[t]),o},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},Id.TokenStream=e,Id}var Fd={},Md={},Tp;function Wa(){if(Tp)return Md;Tp=1;function e(t,o){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,o&&(this._starting_pattern=this._input.get_regexp(o._starting_pattern,!0),this._match_pattern=this._input.get_regexp(o._match_pattern,!0),this._until_pattern=this._input.get_regexp(o._until_pattern),this._until_after=o._until_after)}return e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var o=this._create();return o._until_after=!0,o._until_pattern=this._input.get_regexp(t),o._update(),o},e.prototype.until=function(t){var o=this._create();return o._until_after=!1,o._until_pattern=this._input.get_regexp(t),o._update(),o},e.prototype.starting_with=function(t){var o=this._create();return o._starting_pattern=this._input.get_regexp(t,!0),o._update(),o},e.prototype.matching=function(t){var o=this._create();return o._match_pattern=this._input.get_regexp(t,!0),o._update(),o},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Md.Pattern=e,Md}var Op;function A_(){if(Op)return Fd;Op=1;var e=Wa().Pattern;function t(o,r){e.call(this,o,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(o,r){o+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+o+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var o=this._input.read(this._match_pattern);if(o===" ")this.whitespace_before_token=" ";else if(o){var r=this.__split(this._newline_regexp,o);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return o},t.prototype.matching=function(o,r){var i=this._create();return i.__set_whitespace_patterns(o,r),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(o,r){o.lastIndex=0;for(var i=0,s=[],d=o.exec(r);d;)s.push(r.substring(i,d.index)),i=d.index+d[0].length,d=o.exec(r);return i<r.length?s.push(r.substring(i,r.length)):s.push(""),s},Fd.WhitespacePattern=t,Fd}var Dp;function Ga(){if(Dp)return Ua;Dp=1;var e=Vd().InputScanner,t=_p().Token,o=E_().TokenStream,r=A_().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(d,c){this._input=new e(d),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new o,this._reset();for(var d,c=new t(i.START,""),f=null,g=[],y=new o;c.type!==i.EOF;){for(d=this._get_next_token(c,f);this._is_comment(d);)y.add(d),d=this._get_next_token(c,f);y.isEmpty()||(d.comments_before=y,y=new o),d.parent=f,this._is_opening(d)?(g.push(f),f=d):f&&this._is_closing(d,f)&&(d.opened=f,f.closed=d,f=g.pop(),d.parent=f),d.previous=c,c.next=d,this.__tokens.add(d),c=d}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(d,c){this._readWhitespace();var f=this._input.read(/.+/g);return f?this._create_token(i.RAW,f):this._create_token(i.EOF,"")},s.prototype._is_comment=function(d){return!1},s.prototype._is_opening=function(d){return!1},s.prototype._is_closing=function(d,c){return!1},s.prototype._create_token=function(d,c){var f=new t(d,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return f},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Ua.Tokenizer=s,Ua.TOKEN=i,Ua}var Pd={},Bp;function Ld(){if(Bp)return Pd;Bp=1;function e(t,o){t=typeof t=="string"?t:t.source,o=typeof o=="string"?o:o.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+o,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+o,"g")}return e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var o={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(t);r;)o[r[1]]=r[2],r=this.__directive_pattern.exec(t);return o},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},Pd.Directives=e,Pd}var jd={},$p;function Rp(){if($p)return jd;$p=1;var e=Wa().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function o(r,i){e.call(this,r,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var s=new e(r);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}return o.prototype=new e,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(r){var i=this._create();return i._disabled[r]=!0,i._update(),i},o.prototype.read_options=function(r){var i=this._create();for(var s in t)i._disabled[s]=r.templating.indexOf(s)===-1;return i._update(),i},o.prototype.exclude=function(r){var i=this._create();return i._excluded[r]=!0,i._update(),i},o.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),r+=i,i=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},o.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},o.prototype._read_template=function(){var r="",i=this._input.peek();if(i==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(r=r||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},jd.TemplatablePattern=o,jd}var Vp;function Ka(){if(Vp)return So;Vp=1;var e=Vd().InputScanner,t=Ga().Tokenizer,o=Ga().TOKEN,r=Ld().Directives,i=Ep(),s=Wa().Pattern,d=Rp().TemplatablePattern;function c(D,V){return V.indexOf(D)!==-1}var f={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},g=new r(/\/\*/,/\*\//),y=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,C=/[0-9]/,w=/[^\d\.]/,A=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),E=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";E=E.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),E="\\?\\.(?!\\d) "+E,E=E.replace(/ /g,"|");var _=new RegExp(E),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),m=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+m.join("|")+")$"),S,x=function(D,V){t.call(this,D,V),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var I=new s(this._input),z=new d(this._input).read_options(this._options);this.__patterns={template:z,identifier:z.starting_with(i.identifier).matching(i.identifierMatch),number:I.matching(y),punct:I.matching(_),comment:I.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:I.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:I.matching(/<!--/),html_comment_end:I.matching(/-->/),include:I.starting_with(/#include/).until_after(i.lineBreak),shebang:I.starting_with(/#!/).until_after(i.lineBreak),xml:I.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:z.until(/['\\\n\r\u2028\u2029]/),double_quote:z.until(/["\\\n\r\u2028\u2029]/),template_text:z.until(/[`\\$]/),template_expression:z.until(/[`}\\]/)}};x.prototype=new t,x.prototype._is_comment=function(D){return D.type===f.COMMENT||D.type===f.BLOCK_COMMENT||D.type===f.UNKNOWN},x.prototype._is_opening=function(D){return D.type===f.START_BLOCK||D.type===f.START_EXPR},x.prototype._is_closing=function(D,V){return(D.type===f.END_BLOCK||D.type===f.END_EXPR)&&V&&(D.text==="]"&&V.text==="["||D.text===")"&&V.text==="("||D.text==="}"&&V.text==="{")},x.prototype._reset=function(){S=!1},x.prototype._get_next_token=function(D,V){var I=null;this._readWhitespace();var z=this._input.peek();return z===null?this._create_token(f.EOF,""):(I=I||this._read_non_javascript(z),I=I||this._read_string(z),I=I||this._read_pair(z,this._input.peek(1)),I=I||this._read_word(D),I=I||this._read_singles(z),I=I||this._read_comment(z),I=I||this._read_regexp(z,D),I=I||this._read_xml(z,D),I=I||this._read_punctuation(),I=I||this._create_token(f.UNKNOWN,this._input.next()),I)},x.prototype._read_word=function(D){var V;if(V=this.__patterns.identifier.read(),V!=="")return V=V.replace(i.allLineBreaks,`
`),!(D.type===f.DOT||D.type===f.RESERVED&&(D.text==="set"||D.text==="get"))&&b.test(V)?(V==="in"||V==="of")&&(D.type===f.WORD||D.type===f.STRING)?this._create_token(f.OPERATOR,V):this._create_token(f.RESERVED,V):this._create_token(f.WORD,V);if(V=this.__patterns.number.read(),V!=="")return this._create_token(f.WORD,V)},x.prototype._read_singles=function(D){var V=null;return D==="("||D==="["?V=this._create_token(f.START_EXPR,D):D===")"||D==="]"?V=this._create_token(f.END_EXPR,D):D==="{"?V=this._create_token(f.START_BLOCK,D):D==="}"?V=this._create_token(f.END_BLOCK,D):D===";"?V=this._create_token(f.SEMICOLON,D):D==="."&&w.test(this._input.peek(1))?V=this._create_token(f.DOT,D):D===","&&(V=this._create_token(f.COMMA,D)),V&&this._input.next(),V},x.prototype._read_pair=function(D,V){var I=null;return D==="#"&&V==="{"&&(I=this._create_token(f.START_BLOCK,D+V)),I&&(this._input.next(),this._input.next()),I},x.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(f.EQUALS,D):D==="?."?this._create_token(f.DOT,D):this._create_token(f.OPERATOR,D)},x.prototype._read_non_javascript=function(D){var V="";if(D==="#"){if(this._is_first_token()&&(V=this.__patterns.shebang.read(),V))return this._create_token(f.UNKNOWN,V.trim()+`
`);if(V=this.__patterns.include.read(),V)return this._create_token(f.UNKNOWN,V.trim()+`
`);D=this._input.next();var I="#";if(this._input.hasNext()&&this._input.testChar(C)){do D=this._input.next(),I+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(I+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(I+="{}",this._input.next(),this._input.next())),this._create_token(f.WORD,I)}this._input.back()}else if(D==="<"&&this._is_first_token()){if(V=this.__patterns.html_comment_start.read(),V){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)V+=this._input.next();return S=!0,this._create_token(f.COMMENT,V)}}else if(S&&D==="-"&&(V=this.__patterns.html_comment_end.read(),V))return S=!1,this._create_token(f.COMMENT,V);return null},x.prototype._read_comment=function(D){var V=null;if(D==="/"){var I="";if(this._input.peek(1)==="*"){I=this.__patterns.block_comment.read();var z=g.get_directives(I);z&&z.ignore==="start"&&(I+=g.readIgnored(this._input)),I=I.replace(i.allLineBreaks,`
`),V=this._create_token(f.BLOCK_COMMENT,I),V.directives=z}else this._input.peek(1)==="/"&&(I=this.__patterns.comment.read(),V=this._create_token(f.COMMENT,I))}return V},x.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var V=this._input.next();return this.has_char_escapes=!1,D==="`"?V+=this._read_string_recursive("`",!0,"${"):V+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(V=O(V)),this._input.peek()===D&&(V+=this._input.next()),V=V.replace(i.allLineBreaks,`
`),this._create_token(f.STRING,V)}return null},x.prototype._allow_regexp_or_xml=function(D){return D.type===f.RESERVED&&c(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===f.END_EXPR&&D.text===")"&&D.opened.previous.type===f.RESERVED&&c(D.opened.previous.text,["if","while","for"])||c(D.type,[f.COMMENT,f.START_EXPR,f.START_BLOCK,f.START,f.END_BLOCK,f.OPERATOR,f.EQUALS,f.EOF,f.SEMICOLON,f.COMMA])},x.prototype._read_regexp=function(D,V){if(D==="/"&&this._allow_regexp_or_xml(V)){for(var I=this._input.next(),z=!1,T=!1;this._input.hasNext()&&(z||T||this._input.peek()!==D)&&!this._input.testChar(i.newline);)I+=this._input.peek(),z?z=!1:(z=this._input.peek()==="\\",this._input.peek()==="["?T=!0:this._input.peek()==="]"&&(T=!1)),this._input.next();return this._input.peek()===D&&(I+=this._input.next(),I+=this._input.read(i.identifier)),this._create_token(f.STRING,I)}return null},x.prototype._read_xml=function(D,V){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(V)){var I="",z=this.__patterns.xml.read_match();if(z){for(var T=z[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=T.indexOf("{")===0,L=0;z;){var U=!!z[1],W=z[2],R=!!z[z.length-1]||W.slice(0,8)==="![CDATA[";if(!R&&(W===T||B&&W.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(U?--L:++L),I+=z[0],L<=0)break;z=this.__patterns.xml.read_match()}return z||(I+=this._input.match(/[\s\S]*/g)[0]),I=I.replace(i.allLineBreaks,`
`),this._create_token(f.STRING,I)}}return null};function O(D){for(var V="",I=0,z=new e(D),T=null;z.hasNext();)if(T=z.match(/([\s]|[^\\]|\\\\)+/g),T&&(V+=T[0]),z.peek()==="\\"){if(z.next(),z.peek()==="x")T=z.match(/x([0-9A-Fa-f]{2})/g);else if(z.peek()==="u")T=z.match(/u([0-9A-Fa-f]{4})/g),T||(T=z.match(/u\{([0-9A-Fa-f]+)\}/g));else{V+="\\",z.hasNext()&&(V+=z.next());continue}if(!T||(I=parseInt(T[1],16),I>126&&I<=255&&T[0].indexOf("x")===0))return D;I>=0&&I<32||I>1114111?V+="\\"+T[0]:I===34||I===39||I===92?V+="\\"+String.fromCharCode(I):V+=String.fromCharCode(I)}return V}return x.prototype._read_string_recursive=function(D,V,I){var z,T;D==="'"?T=this.__patterns.single_quote:D==='"'?T=this.__patterns.double_quote:D==="`"?T=this.__patterns.template_text:D==="}"&&(T=this.__patterns.template_expression);for(var B=T.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===D||!V&&i.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(z=this._input.peek(),z==="x"||z==="u"?this.has_char_escapes=!0:z==="\r"&&this._input.peek(1)===`
`&&this._input.next(),L+=this._input.next()):I&&(I==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),I===L&&(D==="`"?L+=this._read_string_recursive("}",V,"`"):L+=this._read_string_recursive("`",V,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=T.read(),B+=L}return B},So.Tokenizer=x,So.TOKEN=f,So.positionable_operators=A.slice(),So.line_starters=v.slice(),So}var Ip;function S_(){if(Ip)return kd;Ip=1;var e=Td().Output,t=_p().Token,o=Ep(),r=xp().Options,i=Ka().Tokenizer,s=Ka().line_starters,d=Ka().positionable_operators,c=Ka().TOKEN;function f(T,B){return B.indexOf(T)!==-1}function g(T){return T.replace(/^\s+/g,"")}function y(T){for(var B={},L=0;L<T.length;L++)B[T[L].replace(/-/g,"_")]=T[L];return B}function C(T,B){return T&&T.type===c.RESERVED&&T.text===B}function w(T,B){return T&&T.type===c.RESERVED&&f(T.text,B)}var A=["case","return","do","if","throw","else","await","break","continue","async"],E=["before-newline","after-newline","preserve-newline"],_=y(E),v=[_.before_newline,_.preserve_newline],m={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(T,B){B.multiline_frame||B.mode===m.ForInitializer||B.mode===m.Conditional||T.remove_indent(B.start_line_index)}function S(T){T=T.replace(o.allLineBreaks,`
`);for(var B=[],L=T.indexOf(`
`);L!==-1;)B.push(T.substring(0,L)),T=T.substring(L+1),L=T.indexOf(`
`);return T.length&&B.push(T),B}function x(T){return T===m.ArrayLiteral}function O(T){return f(T,[m.Expression,m.ForInitializer,m.Conditional])}function D(T,B){for(var L=0;L<T.length;L++){var U=T[L].trim();if(U.charAt(0)!==B)return!1}return!0}function V(T,B){for(var L=0,U=T.length,W;L<U;L++)if(W=T[L],W&&W.indexOf(B)!==0)return!1;return!0}function I(T,B){B=B||{},this._source_text=T||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(B)}I.prototype.create_flags=function(T,B){var L=0;T&&(L=T.indentation_level,!this._output.just_added_newline()&&T.line_indent_level>L&&(L=T.line_indent_level));var U={mode:B,parent:T,last_token:T?T.last_token:new t(c.START_BLOCK,""),last_word:T?T.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:L,alignment:0,line_indent_level:T?T.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},I.prototype._reset=function(T){var B=T.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,B),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m.BlockStatement);var L=new i(T,this._options);return this._tokens=L.tokenize(),T},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T,B=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
`,B&&o.lineBreak.test(B||"")&&(L=B.match(o.lineBreak)[0]));for(var U=this._tokens.next();U;)this.handle_token(U),this._last_last_text=this._flags.last_token.text,this._flags.last_token=U,U=this._tokens.next();return T=this._output.get_code(L),T},I.prototype.handle_token=function(T,B){T.type===c.START_EXPR?this.handle_start_expr(T):T.type===c.END_EXPR?this.handle_end_expr(T):T.type===c.START_BLOCK?this.handle_start_block(T):T.type===c.END_BLOCK?this.handle_end_block(T):T.type===c.WORD?this.handle_word(T):T.type===c.RESERVED?this.handle_word(T):T.type===c.SEMICOLON?this.handle_semicolon(T):T.type===c.STRING?this.handle_string(T):T.type===c.EQUALS?this.handle_equals(T):T.type===c.OPERATOR?this.handle_operator(T):T.type===c.COMMA?this.handle_comma(T):T.type===c.BLOCK_COMMENT?this.handle_block_comment(T,B):T.type===c.COMMENT?this.handle_comment(T,B):T.type===c.DOT?this.handle_dot(T):T.type===c.EOF?this.handle_eof(T):T.type===c.UNKNOWN?this.handle_unknown(T,B):this.handle_unknown(T,B)},I.prototype.handle_whitespace_and_comments=function(T,B){var L=T.newlines,U=this._options.keep_array_indentation&&x(this._flags.mode);if(T.comments_before)for(var W=T.comments_before.next();W;)this.handle_whitespace_and_comments(W,B),this.handle_token(W,B),W=T.comments_before.next();if(U)for(var R=0;R<L;R+=1)this.print_newline(R>0,B);else if(this._options.max_preserve_newlines&&L>this._options.max_preserve_newlines&&(L=this._options.max_preserve_newlines),this._options.preserve_newlines&&L>1){this.print_newline(!1,B);for(var k=1;k<L;k+=1)this.print_newline(!0,B)}};var z=["async","break","continue","return","throw","yield"];return I.prototype.allow_wrap_or_preserved_newline=function(T,B){if(B=B===void 0?!1:B,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&T.newlines||B,U=f(this._flags.last_token.text,d)||f(T.text,d);if(U){var W=f(this._flags.last_token.text,d)&&f(this._options.operator_position,v)||f(T.text,d);L=L&&W}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(w(this._flags.last_token,z))return;this._output.set_wrap_point()}}},I.prototype.print_newline=function(T,B){if(!B&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var L=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&C(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(T)&&(this._flags.multiline_frame=!0)},I.prototype.print_token_line_indentation=function(T){this._output.just_added_newline()&&(this._options.keep_array_indentation&&T.newlines&&(T.text==="["||x(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(T.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},I.prototype.print_token=function(T){if(this._output.raw){this._output.add_raw_token(T);return}if(this._options.comma_first&&T.previous&&T.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var B=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(B),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(T),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(T),this._output.non_breaking_space=!0,this._output.add_token(T.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},I.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},I.prototype.set_mode=function(T){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,T),this._flags=this.create_flags(this._previous_flags,T),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===m.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},I.prototype.start_of_object_property=function(){return this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||w(this._flags.last_token,["get","set"]))},I.prototype.start_of_statement=function(T){var B=!1;return B=B||w(this._flags.last_token,["var","let","const"])&&T.type===c.WORD,B=B||C(this._flags.last_token,"do"),B=B||!(this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement)&&w(this._flags.last_token,z)&&!T.newlines,B=B||C(this._flags.last_token,"else")&&!(C(T,"if")&&!T.comments_before),B=B||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===m.ForInitializer||this._previous_flags.mode===m.Conditional),B=B||this._flags.last_token.type===c.WORD&&this._flags.mode===m.BlockStatement&&!this._flags.in_case&&!(T.text==="--"||T.text==="++")&&this._last_last_text!=="function"&&T.type!==c.WORD&&T.type!==c.RESERVED,B=B||this._flags.mode===m.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||w(this._flags.last_token,["get","set"])),B?(this.set_mode(m.Statement),this.indent(),this.handle_whitespace_and_comments(T,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T,w(T,["do","for","if","while"])),!0):!1},I.prototype.handle_start_expr=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T);var B=m.Expression;if(T.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){w(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(T),this.set_mode(B),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}B=m.ArrayLiteral,x(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),f(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,B=m.ForInitializer):f(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,B=m.Conditional):f(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&T.whitespace_before===""?this._output.space_before_token=!1:(f(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var L=this._tokens.peek(-3);if(this._options.space_after_named_function&&L){var U=this._tokens.peek(-4);w(L,["async","function"])||L.text==="*"&&w(U,["async","function"])?this._output.space_before_token=!0:this._flags.mode===m.ObjectLiteral?(L.text==="{"||L.text===","||L.text==="*"&&(U.text==="{"||U.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(T);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(f(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&f(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(T,T.newlines),this.print_token(T),this.set_mode(B),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},I.prototype.handle_end_expr=function(T){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(T,T.text==="]"&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===c.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(T),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===m.Conditional&&(this._previous_flags.mode=m.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},I.prototype.handle_start_block=function(T){this.handle_whitespace_and_comments(T);var B=this._tokens.peek(),L=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(m.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m.BlockStatement):L&&(f(L.text,[":",","])&&f(B.type,[c.STRING,c.WORD,c.RESERVED])||f(B.text,["get","set","..."])&&f(L.type,[c.WORD,c.RESERVED]))?f(this._last_last_text,["class","interface"])&&!f(L.text,[":",","])?this.set_mode(m.BlockStatement):this.set_mode(m.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(m.BlockStatement):f(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||w(this._flags.last_token,["return","throw","import","default"])?this.set_mode(m.ObjectLiteral):this.set_mode(m.BlockStatement),this._flags.last_token&&w(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var U=!B.comments_before&&B.text==="}",W=U&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var R=0,k=null;this._flags.inline_frame=!0;do if(R+=1,k=this._tokens.peek(R-1),k.newlines){this._flags.inline_frame=!1;break}while(k.type!==c.EOF&&!(k.type===c.END_BLOCK&&k.opened===T))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(W||this._flags.last_token.type===c.EQUALS||w(this._flags.last_token,A)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(this._previous_flags.mode)&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(T),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(f(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(T),this.indent(),!U&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},I.prototype.handle_end_block=function(T){for(this.handle_whitespace_and_comments(T);this._flags.mode===m.Statement;)this.restore_mode();var B=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!B?this._output.space_before_token=!0:this._options.brace_style==="expand"?B||this.print_newline():B||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(T)},I.prototype.handle_word=function(T){if(T.type===c.RESERVED){if(f(T.text,["set","get"])&&this._flags.mode!==m.ObjectLiteral)T.type=c.WORD;else if(T.text==="import"&&f(this._tokens.peek().text,["(","."]))T.type=c.WORD;else if(f(T.text,["as","from"])&&!this._flags.import_block)T.type=c.WORD;else if(this._flags.mode===m.ObjectLiteral){var B=this._tokens.peek();B.text===":"&&(T.type=c.WORD)}}if(this.start_of_statement(T)?w(this._flags.last_token,["var","let","const"])&&T.type===c.WORD&&(this._flags.declaration_statement=!0):T.newlines&&!O(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!w(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(T),this.print_newline()):this.handle_whitespace_and_comments(T),this._flags.do_block&&!this._flags.do_while)if(C(T,"while")){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&C(T,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===m.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&w(T,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(T),this._flags.in_case=!0;return}if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)&&!this.start_of_object_property()&&!(f(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===m.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(T),C(T,"function")){(f(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(f(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!T.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?w(this._flags.last_token,["get","set","new","export"])||w(this._flags.last_token,z)?this._output.space_before_token=!0:C(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(O(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(T),this._flags.last_word=T.text;return}var L="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?L="SPACE":w(T,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines?L="NEWLINE":(L="SPACE",this._output.space_before_token=!0):L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===m.BlockStatement?L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&O(this._flags.mode)?L="SPACE":this._flags.last_token.type===c.STRING?L="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(f(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&f(this._last_last_text,["{",","]))?L="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?L="SPACE":L="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,L="NEWLINE"),w(T,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?L="SPACE":L="NEWLINE"),w(T,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===m.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&T.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var U=this._output.current_line;U.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else L==="NEWLINE"?w(this._flags.last_token,A)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&w(T,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?(this._flags.last_token.type!==c.START_EXPR||!w(T,["var","let","const"]))&&this._flags.last_token.text!==":"&&(C(T,"if")&&C(T.previous,"else")?this._output.space_before_token=!0:this.print_newline()):w(T,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():L==="SPACE"&&(this._output.space_before_token=!0);T.previous&&(T.previous.type===c.WORD||T.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(T),this._flags.last_word=T.text,T.type===c.RESERVED&&(T.text==="do"?this._flags.do_block=!0:T.text==="if"?this._flags.if_block=!0:T.text==="import"?this._flags.import_block=!0:this._flags.import_block&&C(T,"from")&&(this._flags.import_block=!1))},I.prototype.handle_semicolon=function(T){this.start_of_statement(T)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(T);for(var B=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&C(B,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(T)},I.prototype.handle_string=function(T){T.text.startsWith("`")&&T.newlines===0&&T.whitespace_before===""&&(T.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(T)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(T),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(T):T.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(T.previous.text==="]"||T.previous.text===")")&&T.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(T)},I.prototype.handle_equals=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0},I.prototype.handle_comma=function(T){this.handle_whitespace_and_comments(T,!0),this.print_token(T),this._output.space_before_token=!0,this._flags.declaration_statement?(O(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)):this._flags.mode===m.ObjectLiteral||this._flags.mode===m.Statement&&this._flags.parent.mode===m.ObjectLiteral?(this._flags.mode===m.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(T)},I.prototype.handle_operator=function(T){var B=T.text==="*"&&(w(this._flags.last_token,["function","yield"])||f(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),L=f(T.text,["-","+"])&&(f(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||f(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(T)){var U=!B;this.handle_whitespace_and_comments(T,U)}if(T.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(T);return}if(T.text==="::"){this.print_token(T);return}if(f(T.text,["-","+"])&&this.start_of_object_property()){this.print_token(T);return}if(this._flags.last_token.type===c.OPERATOR&&f(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(T),T.text===":"&&this._flags.in_case){this.print_token(T),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var W=!0,R=!0,k=!1;if(T.text===":"?this._flags.ternary_depth===0?W=!1:(this._flags.ternary_depth-=1,k=!0):T.text==="?"&&(this._flags.ternary_depth+=1),!L&&!B&&this._options.preserve_newlines&&f(T.text,d)){var P=T.text===":",j=P&&k,Z=P&&!k;switch(this._options.operator_position){case _.before_newline:this._output.space_before_token=!Z,this.print_token(T),(!P||j)&&this.allow_wrap_or_preserved_newline(T),this._output.space_before_token=!0;return;case _.after_newline:this._output.space_before_token=!0,!P||j?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(T):this._output.space_before_token=!1,this.print_token(T),this._output.space_before_token=!0;return;case _.preserve_newline:Z||this.allow_wrap_or_preserved_newline(T),W=!(this._output.just_added_newline()||Z),this._output.space_before_token=W,this.print_token(T),this._output.space_before_token=!0;return}}if(B){this.allow_wrap_or_preserved_newline(T),W=!1;var J=this._tokens.peek();R=J&&f(J.type,[c.WORD,c.RESERVED])}else if(T.text==="...")this.allow_wrap_or_preserved_newline(T),W=this._flags.last_token.type===c.START_BLOCK,R=!1;else if(f(T.text,["--","++","!","~"])||L){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(T),W=!1,R=!1,T.newlines&&(T.text==="--"||T.text==="++"||T.text==="~")){var F=w(this._flags.last_token,A)&&T.newlines;F&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(F,!0)}this._flags.last_token.text===";"&&O(this._flags.mode)&&(W=!0),this._flags.last_token.type===c.RESERVED?W=!0:this._flags.last_token.type===c.END_EXPR?W=!(this._flags.last_token.text==="]"&&(T.text==="--"||T.text==="++")):this._flags.last_token.type===c.OPERATOR&&(W=f(T.text,["--","-","++","+"])&&f(this._flags.last_token.text,["--","-","++","+"]),f(T.text,["+","-"])&&f(this._flags.last_token.text,["--","++"])&&(R=!0)),(this._flags.mode===m.BlockStatement&&!this._flags.inline_frame||this._flags.mode===m.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||W,this.print_token(T),this._output.space_before_token=R},I.prototype.handle_block_comment=function(T,B){if(this._output.raw){this._output.add_raw_token(T),T.directives&&T.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(T.directives){this.print_newline(!1,B),this.print_token(T),T.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!o.newline.test(T.text)&&!T.newlines){this._output.space_before_token=!0,this.print_token(T),this._output.space_before_token=!0;return}else this.print_block_commment(T,B)},I.prototype.print_block_commment=function(T,B){var L=S(T.text),U,W=!1,R=!1,k=T.whitespace_before,P=k.length;if(this.print_newline(!1,B),this.print_token_line_indentation(T),this._output.add_token(L[0]),this.print_newline(!1,B),L.length>1){for(L=L.slice(1),W=D(L,"*"),R=V(L,k),W&&(this._flags.alignment=1),U=0;U<L.length;U++)W?(this.print_token_line_indentation(T),this._output.add_token(g(L[U]))):R&&L[U]?(this.print_token_line_indentation(T),this._output.add_token(L[U].substring(P))):(this._output.current_line.set_indent(-1),this._output.add_token(L[U])),this.print_newline(!1,B);this._flags.alignment=0}},I.prototype.handle_comment=function(T,B){T.newlines?this.print_newline(!1,B):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(T),this.print_newline(!1,B)},I.prototype.handle_dot=function(T){this.start_of_statement(T)||this.handle_whitespace_and_comments(T,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),w(this._flags.last_token,A)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(T,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(T)},I.prototype.handle_unknown=function(T,B){this.print_token(T),T.text[T.text.length-1]===`
`&&this.print_newline(!1,B)},I.prototype.handle_eof=function(T){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T)},kd.Beautifier=I,kd}var Fp;function x_(){if(Fp)return Ha.exports;Fp=1;var e=S_().Beautifier,t=xp().Options;function o(r,i){var s=new e(r,i);return s.beautify()}return Ha.exports=o,Ha.exports.defaultOptions=function(){return new t},Ha.exports}var Ya={exports:{}},zd={},Hd={},Mp;function Pp(){if(Mp)return Hd;Mp=1;var e=$d().Options;function t(o){e.call(this,o,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<i.length;s++)i[s]!=="expand"?this.brace_style="collapse":this.brace_style=i[s]}return t.prototype=new e,Hd.Options=t,Hd}var Lp;function k_(){if(Lp)return zd;Lp=1;var e=Pp().Options,t=Td().Output,o=Vd().InputScanner,r=Ld().Directives,i=new r(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,f=/(?:\s|\n)+/g,g=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function C(w,A){this._source_text=w||"",this._options=new e(A),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return C.prototype.eatString=function(w){var A="";for(this._ch=this._input.next();this._ch;){if(A+=this._ch,this._ch==="\\")A+=this._input.next();else if(w.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return A},C.prototype.eatWhitespace=function(w){for(var A=c.test(this._input.peek()),E=0;c.test(this._input.peek());)this._ch=this._input.next(),w&&this._ch===`
`&&(E===0||E<this._options.max_preserve_newlines)&&(E++,this._output.add_new_line(!0));return A},C.prototype.foundNestedPseudoClass=function(){for(var w=0,A=1,E=this._input.peek(A);E;){if(E==="{")return!0;if(E==="(")w+=1;else if(E===")"){if(w===0)return!1;w-=1}else if(E===";"||E==="}")return!1;A++,E=this._input.peek(A)}return!1},C.prototype.print_string=function(w){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(w)},C.prototype.preserveSingleSpace=function(w){w&&(this._output.space_before_token=!0)},C.prototype.indent=function(){this._indentLevel++},C.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w=this._source_text,A=this._options.eol;A==="auto"&&(A=`
`,w&&s.test(w||"")&&(A=w.match(s)[0])),w=w.replace(d,`
`);var E=w.match(/^[\t ]*/)[0];this._output=new t(this._options,E),this._input=new o(w),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var _=0,v=!1,m=!1,b=!1,S=!1,x=!1,O=this._ch,D=!1,V,I,z;V=this._input.read(f),I=V!=="",z=O,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),O=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var T=this._input.read(g),B=i.get_directives(T);B&&B.ignore==="start"&&(T+=i.readIgnored(this._input)),this.print_string(T),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(y)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(I),this.print_string(this._ch);var L=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);L.match(/[ :]$/)&&(L=this.eatString(": ").replace(/\s+$/,""),this.print_string(L),this._output.space_before_token=!0),_===0&&L.indexOf(":")!==-1&&(m=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s+$/,""),this.print_string(U),this._output.space_before_token=!0),_===0&&U.indexOf(":")!==-1?(m=!0,this.indent()):U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(b=!0)):_===0&&!m&&(S=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")m&&(m=!1,this.outdent()),S=!1,b?(b=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(z==="("?this._output.space_before_token=!1:z!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),z==="{"&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),v=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var W=0;W<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;W++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[W])){D=!0;break}(v||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!S&&_===0?(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var R=z==='"'||z==="'";this.preserveSingleSpace(R||I),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,_===0?(m&&(this.outdent(),m=!1),S=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),_++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),_&&(_--,this.outdent()));else{var k=!1;this._input.lookBack("with")&&(k=!0),this.preserveSingleSpace(I||k),this.print_string(this._ch),m&&z==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),x=!0):(this.eatWhitespace(),_++,this.indent())}else if(this._ch===")")_&&(_--,this.outdent()),x&&this._input.peek()===";"&&this._options.selector_separator_newline&&(x=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!m||x)&&_===0&&!S?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!m&&_===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(I),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var P=z==='"'||z==="'";this.preserveSingleSpace(P||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&D&&this._output.add_new_line()}var j=this._output.get_code(A);return j},zd.Beautifier=C,zd}var jp;function N_(){if(jp)return Ya.exports;jp=1;var e=k_().Beautifier,t=Pp().Options;function o(r,i){var s=new e(r,i);return s.beautify()}return Ya.exports=o,Ya.exports.defaultOptions=function(){return new t},Ya.exports}var Qa={exports:{}},Ud={},Wd={},zp;function Hp(){if(zp)return Wd;zp=1;var e=$d().Options;function t(o){e.call(this,o,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,Wd.Options=t,Wd}var Xa={},Up;function Wp(){if(Up)return Xa;Up=1;var e=Ga().Tokenizer,t=Ga().TOKEN,o=Ld().Directives,r=Rp().TemplatablePattern,i=Wa().Pattern,s={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},d=new o(/<\!--/,/-->/),c=function(f,g){e.call(this,f,g),this._current_tag_name="";var y=new r(this._input).read_options(this._options),C=new i(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),word_control_flow_close_excluded:y.until(/[\n\r\t <}]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),angular_control_flow_start:C.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(/<!--/).until_after(/-->/),cdata:C.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:C.starting_with(/<!\[/).until_after(/]>/),processing:C.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var w=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(w).until_after(w)}};return c.prototype=new e,c.prototype._is_comment=function(f){return!1},c.prototype._is_opening=function(f){return f.type===s.TAG_OPEN||f.type===s.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(f,g){return f.type===s.TAG_CLOSE&&g&&((f.text===">"||f.text==="/>")&&g.text[0]==="<"||f.text==="}}"&&g.text[0]==="{"&&g.text[1]==="{")||f.type===s.CONTROL_FLOW_CLOSE&&f.text==="}"&&g.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(f,g){var y=null;this._readWhitespace();var C=this._input.peek();return C===null?this._create_token(s.EOF,""):(y=y||this._read_open_handlebars(C,g),y=y||this._read_attribute(C,f,g),y=y||this._read_close(C,g),y=y||this._read_control_flows(C,g),y=y||this._read_raw_content(C,f,g),y=y||this._read_content_word(C,g),y=y||this._read_comment_or_cdata(C),y=y||this._read_processing(C),y=y||this._read_open(C,g),y=y||this._create_token(s.UNKNOWN,this._input.next()),y)},c.prototype._read_comment_or_cdata=function(f){var g=null,y=null,C=null;if(f==="<"){var w=this._input.peek(1);w==="!"&&(y=this.__patterns.comment.read(),y?(C=d.get_directives(y),C&&C.ignore==="start"&&(y+=d.readIgnored(this._input))):y=this.__patterns.cdata.read()),y&&(g=this._create_token(s.COMMENT,y),g.directives=C)}return g},c.prototype._read_processing=function(f){var g=null,y=null,C=null;if(f==="<"){var w=this._input.peek(1);(w==="!"||w==="?")&&(y=this.__patterns.conditional_comment.read(),y=y||this.__patterns.processing.read()),y&&(g=this._create_token(s.COMMENT,y),g.directives=C)}return g},c.prototype._read_open=function(f,g){var y=null,C=null;return(!g||g.type===s.CONTROL_FLOW_OPEN)&&f==="<"&&(y=this._input.next(),this._input.peek()==="/"&&(y+=this._input.next()),y+=this.__patterns.element_name.read(),C=this._create_token(s.TAG_OPEN,y)),C},c.prototype._read_open_handlebars=function(f,g){var y=null,C=null;return(!g||g.type===s.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&f==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(y=this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars.read(),C=this._create_token(s.COMMENT,y)):(y=this.__patterns.handlebars_open.read(),C=this._create_token(s.TAG_OPEN,y))),C},c.prototype._read_control_flows=function(f,g){var y="",C=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return C;if(f==="@"){if(y=this.__patterns.angular_control_flow_start.read(),y==="")return C;for(var w=y.endsWith("(")?1:0,A=0;!(y.endsWith("{")&&w===A);){var E=this._input.next();if(E===null)break;E==="("?w++:E===")"&&A++,y+=E}C=this._create_token(s.CONTROL_FLOW_OPEN,y)}else f==="}"&&g&&g.type===s.CONTROL_FLOW_OPEN&&(y=this._input.next(),C=this._create_token(s.CONTROL_FLOW_CLOSE,y));return C},c.prototype._read_close=function(f,g){var y=null,C=null;return g&&g.type===s.TAG_OPEN&&(g.text[0]==="<"&&(f===">"||f==="/"&&this._input.peek(1)===">")?(y=this._input.next(),f==="/"&&(y+=this._input.next()),C=this._create_token(s.TAG_CLOSE,y)):g.text[0]==="{"&&f==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),C=this._create_token(s.TAG_CLOSE,"}}"))),C},c.prototype._read_attribute=function(f,g,y){var C=null,w="";if(y&&y.text[0]==="<")if(f==="=")C=this._create_token(s.EQUALS,this._input.next());else if(f==='"'||f==="'"){var A=this._input.next();f==='"'?A+=this.__patterns.double_quote.read():A+=this.__patterns.single_quote.read(),C=this._create_token(s.VALUE,A)}else w=this.__patterns.attribute.read(),w&&(g.type===s.EQUALS?C=this._create_token(s.VALUE,w):C=this._create_token(s.ATTRIBUTE,w));return C},c.prototype._is_content_unformatted=function(f){return this._options.void_elements.indexOf(f)===-1&&(this._options.content_unformatted.indexOf(f)!==-1||this._options.unformatted.indexOf(f)!==-1)},c.prototype._read_raw_content=function(f,g,y){var C="";if(y&&y.text[0]==="{")C=this.__patterns.handlebars_raw_close.read();else if(g.type===s.TAG_CLOSE&&g.opened.text[0]==="<"&&g.text[0]!=="/"){var w=g.opened.text.substr(1).toLowerCase();if(w==="script"||w==="style"){var A=this._read_comment_or_cdata(f);if(A)return A.type=s.TEXT,A;C=this._input.readUntil(new RegExp("</"+w+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(w)&&(C=this._input.readUntil(new RegExp("</"+w+"[\\n\\r\\t ]*?>","ig")))}return C?this._create_token(s.TEXT,C):null},c.prototype._read_content_word=function(f,g){var y="";if(this._options.unformatted_content_delimiter&&f===this._options.unformatted_content_delimiter[0]&&(y=this.__patterns.unformatted_content_delimiter.read()),y||(y=g&&g.type===s.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),y)return this._create_token(s.TEXT,y)},Xa.Tokenizer=c,Xa.TOKEN=s,Xa}var Gp;function T_(){if(Gp)return Ud;Gp=1;var e=Hp().Options,t=Td().Output,o=Wp().Tokenizer,r=Wp().TOKEN,i=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,d=function(v,m){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=v.max_preserve_newlines,this.preserve_newlines=v.preserve_newlines,this._output=new t(v,m)};d.prototype.current_line_has_match=function(v){return this._output.current_line.has_match(v)},d.prototype.set_space_before_token=function(v,m){this._output.space_before_token=v,this._output.non_breaking_space=m},d.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},d.prototype.add_raw_token=function(v){this._output.add_raw_token(v)},d.prototype.print_preserved_newlines=function(v){var m=0;v.type!==r.TEXT&&v.previous.type!==r.TEXT&&(m=v.newlines?1:0),this.preserve_newlines&&(m=v.newlines<this.max_preserve_newlines+1?v.newlines:this.max_preserve_newlines+1);for(var b=0;b<m;b++)this.print_newline(b>0);return m!==0},d.prototype.traverse_whitespace=function(v){return v.whitespace_before||v.newlines?(this.print_preserved_newlines(v)||(this._output.space_before_token=!0),!0):!1},d.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},d.prototype.print_newline=function(v){this._output.add_new_line(v)},d.prototype.print_token=function(v){v.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(v.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},d.prototype.get_full_indent=function(v){return v=this.indent_level+(v||0),v<1?"":this._output.get_indent_string(v)};var c=function(v){for(var m=null,b=v.next;b.type!==r.EOF&&v.closed!==b;){if(b.type===r.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===r.EQUALS&&b.next.next&&b.next.next.type===r.VALUE&&(m=b.next.next.text);break}b=b.next}return m},f=function(v,m){var b=null,S=null;return m.closed?(v==="script"?b="text/javascript":v==="style"&&(b="text/css"),b=c(m)||b,b.search("text/css")>-1?S="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?S="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?S="html":b.search(/test\/null/)>-1&&(S="null"),S):null};function g(v,m){return m.indexOf(v)!==-1}function y(v,m,b){this.parent=v||null,this.tag=m?m.tag_name:"",this.indent_level=b||0,this.parser_token=m||null}function C(v){this._printer=v,this._current_frame=null}C.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},C.prototype.record_tag=function(v){var m=new y(this._current_frame,v,this._printer.indent_level);this._current_frame=m},C.prototype._try_pop_frame=function(v){var m=null;return v&&(m=v.parser_token,this._printer.indent_level=v.indent_level,this._current_frame=v.parent),m},C.prototype._get_frame=function(v,m){for(var b=this._current_frame;b&&v.indexOf(b.tag)===-1;){if(m&&m.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},C.prototype.try_pop=function(v,m){var b=this._get_frame([v],m);return this._try_pop_frame(b)},C.prototype.indent_to_tag=function(v){var m=this._get_frame(v);m&&(this._printer.indent_level=m.indent_level)};function w(v,m,b,S){this._source_text=v||"",m=m||{},this._js_beautify=b,this._css_beautify=S,this._tag_stack=null;var x=new e(m,"html");this._options=x,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v=this._source_text,m=this._options.eol;this._options.eol==="auto"&&(m=`
`,v&&i.test(v)&&(m=v.match(i)[0])),v=v.replace(s,`
`);var b=v.match(/^[\t ]*/)[0],S={text:"",type:""},x=new A,O=new d(this._options,b),D=new o(v,this._options).tokenize();this._tag_stack=new C(O);for(var V=null,I=D.next();I.type!==r.EOF;)I.type===r.TAG_OPEN||I.type===r.COMMENT?(V=this._handle_tag_open(O,I,x,S,D),x=V):I.type===r.ATTRIBUTE||I.type===r.EQUALS||I.type===r.VALUE||I.type===r.TEXT&&!x.tag_complete?V=this._handle_inside_tag(O,I,x,S):I.type===r.TAG_CLOSE?V=this._handle_tag_close(O,I,x):I.type===r.TEXT?V=this._handle_text(O,I,x):I.type===r.CONTROL_FLOW_OPEN?V=this._handle_control_flow_open(O,I):I.type===r.CONTROL_FLOW_CLOSE?V=this._handle_control_flow_close(O,I):O.add_raw_token(I),S=V,I=D.next();var z=O._output.get_code(m);return z},w.prototype._handle_control_flow_open=function(v,m){var b={text:m.text,type:m.type};return v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),m.newlines?v.print_preserved_newlines(m):v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),v.print_token(m),v.indent(),b},w.prototype._handle_control_flow_close=function(v,m){var b={text:m.text,type:m.type};return v.deindent(),m.newlines?v.print_preserved_newlines(m):v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),v.print_token(m),b},w.prototype._handle_tag_close=function(v,m,b){var S={text:m.text,type:m.type};return v.alignment_size=0,b.tag_complete=!0,v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),b.is_unformatted?v.add_raw_token(m):(b.tag_start_char==="<"&&(v.set_space_before_token(m.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&v.print_newline(!1)),v.print_token(m)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(v.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&v.set_wrap_point(),S},w.prototype._handle_inside_tag=function(v,m,b,S){var x=b.has_wrapped_attrs,O={text:m.text,type:m.type};return v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),b.is_unformatted?v.add_raw_token(m):b.tag_start_char==="{"&&m.type===r.TEXT?v.print_preserved_newlines(m)?(m.newlines=0,v.add_raw_token(m)):v.print_token(m):(m.type===r.ATTRIBUTE?v.set_space_before_token(!0):(m.type===r.EQUALS||m.type===r.VALUE&&m.previous.type===r.EQUALS)&&v.set_space_before_token(!1),m.type===r.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(v.traverse_whitespace(m),x=x||m.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(S.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(v.print_newline(!1),x=!0)),v.print_token(m),x=x||v.previous_token_wrapped(),b.has_wrapped_attrs=x),O},w.prototype._handle_text=function(v,m,b){var S={text:m.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(v,m,b):b.is_unformatted||b.is_content_unformatted?v.add_raw_token(m):(v.traverse_whitespace(m),v.print_token(m)),S},w.prototype._print_custom_beatifier_text=function(v,m,b){var S=this;if(m.text!==""){var x=m.text,O,D=1,V="",I="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?O=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?O=this._css_beautify:b.custom_beautifier_name==="html"&&(O=function(W,R){var k=new w(W,R,S._js_beautify,S._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?D=0:this._options.indent_scripts==="separate"&&(D=-v.indent_level);var z=v.get_full_indent(D);if(x=x.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&x[0]==="<"&&x.match(/^(<!--|<!\[CDATA\[)/)){var T=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(x);if(!T){v.add_raw_token(m);return}V=z+T[1]+`
`,x=T[4],T[5]&&(I=z+T[5]),x=x.replace(/\n[ \t]*$/,""),(T[2]||T[3].indexOf(`
`)!==-1)&&(T=T[3].match(/[ \t]+$/),T&&(m.whitespace_before=T[0]))}if(x)if(O){var B=function(){this.eol=`
`};B.prototype=this._options.raw_options;var L=new B;x=O(z+x,L)}else{var U=m.whitespace_before;U&&(x=x.replace(new RegExp(`
(`+U+")?","g"),`
`)),x=z+x.replace(/\n/g,`
`+z)}V&&(x?x=V+x+`
`+I:x=V+I),v.print_newline(!1),x&&(m.text=x,m.whitespace_before="",m.newlines=0,v.add_raw_token(m),v.print_newline(!0))}},w.prototype._handle_tag_open=function(v,m,b,S,x){var O=this._get_tag_open_token(m);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&m.type===r.TAG_OPEN&&!O.is_start_tag?(v.add_raw_token(m),O.start_tag_token=this._tag_stack.try_pop(O.tag_name)):(v.traverse_whitespace(m),this._set_tag_position(v,m,O,b,S),O.is_inline_element||v.set_wrap_point(),v.print_token(m)),O.is_start_tag&&this._is_wrap_attributes_force){var D=0,V;do V=x.peek(D),V.type===r.ATTRIBUTE&&(O.attr_count+=1),D+=1;while(V.type!==r.EOF&&V.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(O.alignment_size=m.text.length+1),!O.tag_complete&&!O.is_unformatted&&(v.alignment_size=O.alignment_size),O};var A=function(v,m){if(this.parent=v||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!m)this.tag_complete=!0;else{var b;this.tag_start_char=m.text[0],this.text=m.text,this.tag_start_char==="<"?(b=m.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=m.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(m.text.startsWith("{{#>")||m.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&m.next!==null?this.tag_check=m.next.text.split(" ")[0]:this.tag_check=m.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),m.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||m.closed&&m.closed.text==="/>";var S=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(S=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(S)))}};w.prototype._get_tag_open_token=function(v){var m=new A(this._tag_stack.get_parser_token(),v);return m.alignment_size=this._options.wrap_attributes_indent_size,m.is_end_tag=m.is_end_tag||g(m.tag_check,this._options.void_elements),m.is_empty_element=m.tag_complete||m.is_start_tag&&m.is_end_tag,m.is_unformatted=!m.tag_complete&&g(m.tag_check,this._options.unformatted),m.is_content_unformatted=!m.is_empty_element&&g(m.tag_check,this._options.content_unformatted),m.is_inline_element=g(m.tag_name,this._options.inline)||this._options.inline_custom_elements&&m.tag_name.includes("-")||m.tag_start_char==="{",m},w.prototype._set_tag_position=function(v,m,b,S,x){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||v.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=f(b.tag_check,m)))),g(b.tag_check,this._options.extra_liners)&&(v.print_newline(!1),v._output.just_added_blankline()||v.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var O=v.current_line_has_match(/{{#if/);O||v.print_newline(!1)}b.tag_name==="!--"&&x.type===r.TAG_CLOSE&&S.is_end_tag&&b.text.indexOf(`
`)===-1||(b.is_inline_element||b.is_unformatted||v.print_newline(!1),this._calcluate_parent_multiline(v,b))}else if(b.is_end_tag){var D=!1;D=b.start_tag_token&&b.start_tag_token.multiline_content,D=D||!b.is_inline_element&&!(S.is_inline_element||S.is_unformatted)&&!(x.type===r.TAG_CLOSE&&b.start_tag_token===S)&&x.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(D=!1),D&&v.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(x.type!=="TK_CONTENT"||b.is_content_unformatted)&&v.print_newline(!1),this._calcluate_parent_multiline(v,b)},w.prototype._calcluate_parent_multiline=function(v,m){m.parent&&v._output.just_added_newline()&&!((m.is_inline_element||m.is_unformatted)&&m.parent.is_inline_element)&&(m.parent.multiline_content=!0)};var E=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];return w.prototype._do_optional_end_element=function(v){var m=null;if(!(v.is_empty_element||!v.is_start_tag||!v.parent)){if(v.tag_name==="body")m=m||this._tag_stack.try_pop("head");else if(v.tag_name==="li")m=m||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(v.tag_name==="dd"||v.tag_name==="dt")m=m||this._tag_stack.try_pop("dt",["dl"]),m=m||this._tag_stack.try_pop("dd",["dl"]);else if(v.parent.tag_name==="p"&&E.indexOf(v.tag_name)!==-1){var b=v.parent.parent;(!b||_.indexOf(b.tag_name)===-1)&&(m=m||this._tag_stack.try_pop("p"))}else v.tag_name==="rp"||v.tag_name==="rt"?(m=m||this._tag_stack.try_pop("rt",["ruby","rtc"]),m=m||this._tag_stack.try_pop("rp",["ruby","rtc"])):v.tag_name==="optgroup"?m=m||this._tag_stack.try_pop("optgroup",["select"]):v.tag_name==="option"?m=m||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):v.tag_name==="colgroup"?m=m||this._tag_stack.try_pop("caption",["table"]):v.tag_name==="thead"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"])):v.tag_name==="tbody"||v.tag_name==="tfoot"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("thead",["table"]),m=m||this._tag_stack.try_pop("tbody",["table"])):v.tag_name==="tr"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(v.tag_name==="th"||v.tag_name==="td")&&(m=m||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),m=m||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return v.parent=this._tag_stack.get_parser_token(),m}},Ud.Beautifier=w,Ud}var Kp;function O_(){if(Kp)return Qa.exports;Kp=1;var e=T_().Beautifier,t=Hp().Options;function o(r,i,s,d){var c=new e(r,i,s,d);return c.beautify()}return Qa.exports=o,Qa.exports.defaultOptions=function(){return new t},Qa.exports}var Yp;function D_(){if(Yp)return Cr;Yp=1;var e=x_(),t=N_(),o=O_();function r(i,s,d,c){return d=d||e,c=c||t,o(i,s,d,c)}return r.defaultOptions=o.defaultOptions,Cr.js=e,Cr.css=t,Cr.html=r,Cr}(function(e){function t(o,r,i){var s=function(d,c){return o.js_beautify(d,c)};return s.js=o.js_beautify,s.css=r.css_beautify,s.html=i.html_beautify,s.js_beautify=o.js_beautify,s.css_beautify=r.css_beautify,s.html_beautify=i.html_beautify,s}(function(o){var r=D_();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,o.exports=t(r,r,r)})(e)})(yp);const xo=yp.exports;function B_(e){const t={};return Object.values(e.import).forEach(o=>{t[o.name]=o.path}),` import { defineComponent } from "vue";
${Object.keys(t).map(o=>`import ${o} from '${t[o]}';`).join(`
`)}
export default defineComponent({
name: "FcTemplate",
components: {
${Object.keys(t).join(",")}
},
props: {},
data() {
return ${un(e.data)}
},
methods: ${un(e.methods)}
});
`}function $_(e){const t={};return Object.values(e.import).forEach(o=>{t[o.name]=o.path}),` import { ref } from "vue";
${Object.keys(t).map(o=>`import ${o} from '${t[o]}';`).join(`
`)}
${Object.keys(e.data).map(o=>`const ${o} = ref(${un(e.data[o])})`).join(`
`)}
${Object.keys(e.methods).map(o=>un(e.methods[o])).join(`
`)}
`}function Gd(e,t){const o=[];return e&&e.forEach(r=>{if(!(r&&r._menu&&r._menu.sfc===!1))if(typeof r=="string")o.push(r);else if(r._fc_drag_tag){const i={...r,children:Gd(r.children),_sfc:{}};t&&(i.slot=t),i.children.length?typeof i.children[0]=="string"&&(i._sfc.content=i.children[0],delete i.children):delete i.children,o.push(i)}else o.push(...Gd(r.children,["DragBox","DragTool"].indexOf(r.type)>-1?r.slot||t:""))}),o}function R_(e,t,o,r){const i=e[0]?e[0].__fc__.vNode.aliasMap:void 0,s={style:{},import:{},data:{formData:{}},methods:{submit(){this.$refs.form.validate().then(()=>{})},reset(){this.$refs.form.resetFields()}}},d=[];function c(){let v=d.join(".");return v&&(v+="."),v}function f(v,m){return m?`<${v.type}${g(v)}>${m}</${v.type}>`:`<${v.type}${g(v)}/>`}function g(v){const m=v.props||{},b=v._sfc||{};let S=[];if(v.class&&S.push(`class="${Array.isArray(v.class)?v.class.join(" "):v.class}"`),v.slot&&v.slot!=="default"&&S.push("#"+v.slot),Object.keys(m).forEach(O=>{const D=m[O];if(D&&typeof D=="object"){const V=v._fc_id?v._fc_id+"_"+O:O;s.data[V]=D,S.push(`:${O}="${V}"`)}else if(D!=null&&D!==""&&typeof D!="function"){let V=typeof D=="string"?"":":";V+=`${O}="${D}"`,S.push(V)}}),v.field){let O=v.value;const D={array:[],string:"",number:0};if(v.value==null){const V=o[v._fc_drag_tag];V&&Array.isArray(V.validate)&&Hn(D,V.validate[0])&&(O=D[V.validate[0]])}s.data.formData[v.field]=O,b.vModel!==!1&&S.push(`v-model${b.modelField?":"+b.modelField:""}="formData.${c()}${v.field}"`)}if(v.style){const O=V_(v.style||"");O&&S.push(`style="${O}"`)}b.attr&&Object.keys(b.attr).forEach(O=>{S.push(`${O}="${b.attr[O]}"`)}),b.prop&&Object.keys(b.prop).forEach(O=>{const D=v._fc_id+"_"+O;s.data[D]=b.prop[O],S.push(`:${O}="${D}"`)}),b.flag&&b.flag.forEach(O=>{S.push(O)});let x=S.join(" ");return x&&(x=" "+x.trim()),x}function y(v){return v?v.map(m=>{var V,I,z;let b="";const S=m._menu;let x=et(m),O;if(S&&S.sfc){let T;if(typeof S.sfc=="object"?(T=S.sfc.handle,S.sfc.style&&(s.style[S.name]=S.sfc.style),S.sfc.import&&(s.import[S.name]=S.sfc.import)):T=S.sfc,T){const B=T(x,{transition:y,scope:s,getParentFieldStr:c})||x;typeof B=="string"?O=B:x=B}}const D=x.native!==!1&&(x.field||x.title);return O||(x._sfc&&x._sfc.parentField&&d.push(x.parentField),x._sfc&&x._sfc.content?b=`${x._sfc.content}`:x.children&&(b=`
`+y(x.children)+`
`),i&&i[x.type]&&(x.type=$u(i[x.type])),O=f(x,b),x._sfc&&x._sfc.parentField&&d.pop()),D&&((V=x==null?void 0:x.wrap)==null?void 0:V.show)!==!1&&(O=f({type:"aFormItem",props:{...x.wrap||{},name:c()+x.field,label:x.title,required:x.$required===!0?!0:void 0},style:(I=x==null?void 0:x.wrap)==null?void 0:I.style,class:(z=x==null?void 0:x.wrap)==null?void 0:z.class},`
`+O+`
`)),O}).join(`
`):""}e=Gd(e);const C=[];t.submitBtn.show&&C.push({type:"aButton",props:{type:"primary"},_sfc:{attr:{"@click":"submit"},content:t.submitBtn.innerText||"\u63D0\u4EA4"}}),t.resetBtn.show&&C.push({type:"aButton",_sfc:{attr:{"@click":"reset"},content:t.resetBtn.innerText||"\u91CD\u7F6E"}}),C.length&&e.push({type:"aFormItem",children:C});const w=y([{type:"template",children:[{type:"aForm",props:t.form||{},children:e,_sfc:{attr:{ref:"form",":model":"formData"},flag:["@submit.prevent"]}}]}]);t.formData&&vd(s.data.formData,t.formData);const A=xo.html(w,{indent_size:2,indent_char:" ",indent_scripts:"separate",jslint_happy:!1}),E=xo.js(r?B_(s):$_(s),{indent_size:2,indent_char:" ",indent_scripts:"separate"}),_=xo.css(Object.values(s.style).join(`
`),{indent_size:2,indent_char:" ",indent_scripts:"separate"});return`${A}
<script${r?"":" setup"}>
${E}
<\/script>
<style>
${_}
</style>
`}function V_(e){return!e||typeof e=="string"?e||"":Object.keys(e).reduce((t,o)=>(e[o]!=null&&e[o]!==""&&t.push(za(o)+":"+e[o]+";"),t),[]).join("")}const MP="",I_=n.defineComponent({name:"SubList",components:{fcDraggable:yo,VNode:Qf,ConfigItem:wn},inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRuleChildren(){return this.designer.setupState.activeRuleChildren},activeRule(){return this.designer.setupState.activeRule}},methods:{toolHandle(...e){this.designer.setupState.toolHandle(...e)},subRender(...e){return this.designer.setupState.subRender(...e)},end({oldIndex:e,newIndex:t}){if(e===t)return;const o=this.activeRule.children.splice(e,1);this.activeRule.children.splice(t,0,o[0]),this.activeRule.key=Ye()}}}),F_={class:"_fc-sublist"},M_={class:"_fc-r-title"},P_=["onClick"],L_=["onClick"];function j_(e,t,o,r,i,s){const d=n.resolveComponent("VNode"),c=n.resolveComponent("ConfigItem"),f=n.resolveComponent("fcDraggable");return n.openBlock(),n.createElementBlock("div",F_,[n.createElementVNode("p",M_,[n.createElementVNode("span",null,n.toDisplayString(e.t("designer.sublist")),1),n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:t[0]||(t[0]=g=>e.toolHandle(e.activeRule,"addChild"))})]),n.createVNode(f,{group:{name:"sub",pull:"clone",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",onEnd:e.end,list:e.activeRuleChildren},{item:n.withCtx(({element:g,index:y})=>[n.createVNode(c,null,n.createSlots({label:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString((e.t("com."+g._menu.name+".name")||e.activeRule._menu.label)+" "+(y+1)),1)]),default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-copy",onClick:C=>e.toolHandle(g,"copy")},null,8,P_),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:C=>e.toolHandle(g,"delete")},null,8,L_)]),_:2},[e.activeRule._menu.subRender?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{fn:()=>e.subRender(e.activeRule._menu.subRender,e.activeRule,g)},null,8,["fn"])]),key:"0"}:void 0]),1024)]),_:1},8,["onEnd","list"])])}const z_=Oe(I_,[["render",j_]]),PP="",H_=n.defineComponent({name:"ToolsBar",inject:["designer"],computed:{t(){return this.designer.setupState.t},tools(){const e=this.designer.setupState,t=[];return!e.activeRule&&!e.customForm.config||(e.baseForm.isShow&&t.push({label:this.t("designer.rule"),icon:"base"}),(e.propsForm.isShow||e.customForm.isShow&&e.customForm.propsShow)&&t.push({label:this.t("designer.props"),icon:"props"}),e.advancedForm.isShow&&t.push({label:this.t("designer.advanced"),icon:"advanced"}),e.styleForm.isShow&&t.push({label:this.t("designer.style"),icon:"style"}),e.eventShow&&t.push({label:this.t("designer.event"),icon:"event"}),e.validateForm.isShow&&t.push({label:this.t("designer.validate"),icon:"validate"})),t}},methods:{onClick(e){document.querySelector(`#_fd-config-${e}`).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})},clearActiveRule(){this.designer.setupState.clearActiveRule()}}}),U_={key:0,class:"_fc-r-tools-bar"},W_={class:"_fc-r-tools"},G_=["onClick"];function K_(e,t,o,r,i,s){const d=n.resolveComponent("a-tooltip");return e.tools.length>2?(n.openBlock(),n.createElementBlock("div",U_,[n.createElementVNode("div",W_,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tools,c=>(n.openBlock(),n.createBlock(d,{key:c.icon,title:c.label,placement:"bottom"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-r-tool",onClick:f=>e.onClick(c.icon)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",`icon-config-${c.icon}`])},null,2)],8,G_)]),_:2},1032,["title"]))),128)),n.createElementVNode("div",{class:"_fc-r-tools-close _fc-r-tool",onClick:t[0]||(t[0]=(...c)=>e.clearActiveRule&&e.clearActiveRule(...c))},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add2"},null,-1)]))])])):n.createCommentVNode("",!0)}const Y_=Oe(H_,[["render",K_]]),LP="",Q_=n.defineComponent({name:"ConfigTitle"}),X_={ref:"cell",class:"_fd-config-title"};function J_(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",X_,[n.renderSlot(e.$slots,"default")],512)}const Qp=Oe(Q_,[["render",J_]]),Z_={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875"};function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ja.apply(null,arguments)}const q_={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},Xp={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},Jp={lang:Ja({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},q_),timePickerLocale:Ja({},Xp)};Jp.lang.ok="\u786E\u5B9A";const Zp=Jp,En="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",ew={locale:"zh-cn",Pagination:Z_,DatePicker:Zp,TimePicker:Xp,Calendar:Zp,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:En,method:En,array:En,object:En,number:En,date:En,boolean:En,integer:En,float:En,regexp:En,email:En,url:En,hex:En},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"}},UP="",tw=n.defineComponent({name:"TypeSelect",inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},customForm(){return this.designer.setupState.customForm},menus(){let e=[];const t=this.designer.setupState;if(this.activeRule){const o=this.activeRule._menu.name,r=t.getConfig("switchType",[]);if(r===!1)return e;let i=[];r.forEach(s=>{s.indexOf(o)>-1&&i.push(...s)}),i=i.filter((s,d)=>s!==o&&i.indexOf(s)===d),i.length?t.menuList.forEach(s=>{s.list.forEach(d=>{i.indexOf(d.name)>-1&&e.push(d)})}):t.menuList.forEach(s=>{s.name===this.activeRule._menu.menu&&s.list.forEach(d=>{d.name!==o&&e.push(d)})})}return e.filter(o=>this.designer.setupState.hiddenItem.indexOf(o.name)===-1)}},methods:{handleCommand(e){var d;let t=this.activeRule,o=this.activeRule;o._menu.inside||(o=o.__fc__.parent.rule);const r=o.__fc__.parent.rule.children,i=this.designer.setupState.makeRule(e);let s=i;i.type==="DragTool"&&(s=i.children[0]),s.field&&t.field?["title","info","field","validate","computed","control","$required","style"].forEach(c=>{s[c]=t[c]}):(d=t==null?void 0:t.computed)!=null&&d.hidden&&(s.computed={hidden:t.computed.hidden}),t.name&&(s.name=t.name),["name","wrap","class","id","control","on"].forEach(c=>{t[c]&&(s[c]=t[c])}),r.splice(r.indexOf(o),1,i),this.$nextTick(()=>{this.designer.setupState.triggerActive(s)})}}}),nw={key:0,class:"fc-icon icon-down"};function iw(e,t,o,r,i,s){const d=n.resolveComponent("a-tag"),c=n.resolveComponent("a-menu-item"),f=n.resolveComponent("a-menu"),g=n.resolveComponent("a-dropdown");return n.openBlock(),n.createBlock(g,{class:"_fd-type-select",trigger:"click",size:"default",disabled:!e.menus.length},{overlay:n.withCtx(()=>[n.createVNode(f,{class:"_fd-type-select-pop"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus,y=>(n.openBlock(),n.createBlock(c,{key:y.name,onClick:C=>e.handleCommand(y)},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",y.icon||"icon-input"])},null,2),n.createTextVNode(n.toDisplayString(e.t("com."+y.name+".name")||y.label),1)])]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{color:"success"},{default:n.withCtx(()=>[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.t("com."+e.activeRule._menu.name+".name")||e.activeRule._menu.label)+" ",1),e.menus.length?(n.openBlock(),n.createElementBlock("i",nw)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.t("com."+e.customForm.config.name+".name")||e.customForm.config.label||e.customForm.config.name),1)],64))]),_:1})]),_:1},8,["disabled"])}const ow=Oe(tw,[["render",iw]]),WP="",rw=n.defineComponent({name:"FieldList",inject:["designer"],props:{field:Array},components:{fcDraggable:yo},methods:{nodeClick(e){if(e.rule||e.item){const t={...e};this.designer.setupState.clickField(t)}}}}),aw=["onClick"],lw={class:"_fc-field-node-label"},sw={key:0,class:"fc-icon icon-input"},dw={key:1,class:"fc-icon icon-folder"},cw=["onClick"],uw={class:"_fc-field-node-label"},fw={key:0,class:"fc-icon icon-input"},pw={key:1,class:"fc-icon icon-folder"};function hw(e,t,o,r,i,s){const d=n.resolveComponent("fcDraggable"),c=n.resolveComponent("a-directory-tree");return n.openBlock(),n.createBlock(c,{ref:"treeRef",class:"_fc-field-tree","tree-data":e.field,selectable:!1,showIcon:!1},{title:n.withCtx(f=>[f.data.rule||f.data.item?(n.openBlock(),n.createBlock(d,{key:0,group:{name:"default",pull:"clone",put:!1},sort:!1,list:[{...f.data,_field:!0}],itemKey:"label",class:"_fc-field-drag"},{item:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-field-node",onClick:g=>e.nodeClick(f.data)},[n.createElementVNode("div",lw,[f.isLeaf?(n.openBlock(),n.createElementBlock("i",sw)):(n.openBlock(),n.createElementBlock("i",dw)),n.createElementVNode("span",null,n.toDisplayString(f.data.label),1)])],8,aw)]),_:2},1032,["list"])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-field-node",onClick:g=>e.nodeClick(f.data)},[n.createElementVNode("div",uw,[f.isLeaf?(n.openBlock(),n.createElementBlock("i",fw)):(n.openBlock(),n.createElementBlock("i",pw)),n.createElementVNode("span",null,n.toDisplayString(f.data.label),1)])],8,cw))]),_:1},8,["tree-data"])}const mw=Oe(rw,[["render",hw]]),gw=["props"],vw=["class","style","directives"],yw=["on","hook"],qp=(e,t={},o={})=>{const r=[...gw,...o.normal||[]],i=[...vw,...o.array||[]],s=[...yw,...o.functional||[]],d=o.props||[];return e.reduce((c,f)=>{for(const g in f)if(c[g])if(d.indexOf(g)>-1)c[g]=qp([f[g]],c[g]);else if(r.indexOf(g)>-1)c[g]={...c[g],...f[g]};else if(i.indexOf(g)>-1){const y=c[g]instanceof Array?c[g]:[c[g]],C=f[g]instanceof Array?f[g]:[f[g]];c[g]=[...y,...C]}else if(s.indexOf(g)>-1)for(const y in f[g])if(c[g][y]){const C=c[g][y]instanceof Array?c[g][y]:[c[g][y]],w=f[g][y]instanceof Array?f[g][y]:[f[g][y]];c[g][y]=[...C,...w]}else c[g][y]=f[g][y];else if(g==="hook")for(let y in f[g])c[g][y]?c[g][y]=bw(c[g][y],f[g][y]):c[g][y]=f[g][y];else c[g]=f[g];else r.indexOf(g)>-1||s.indexOf(g)>-1||d.indexOf(g)>-1?c[g]={...f[g]}:i.indexOf(g)>-1?c[g]=f[g]instanceof Array?[...f[g]]:typeof f[g]=="object"?{...f[g]}:f[g]:c[g]=f[g];return c},t)},bw=(e,t)=>function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)},GP="",Cw=n.defineComponent({name:"FormList",inject:["designer"],props:{list:Array},data(){return{loading:!1,timerId:void 0}},methods:{loadConfig(e,t){this.designer.setupState.openInputData(!1),this.designer.setupState.pageData=[],this.designer.setupState.setOptions(e.options),this.designer.setupState.setRule(e.rule),this.designer.emit("switchForm",t)},starLoad(){this.loading||(this.designer.setupState.dragLoading=!0,this.loading=!0,this.timerId=setTimeout(()=>{this.endLoad()},5e3))},endLoad(){this.loading=!1,this.designer.setupState.dragLoading=!1,this.timerId&&clearTimeout(this.timerId),this.timerId=void 0},nodeClick(e){if(this.loading)return;let t={rule:e.rule||[],options:e.options||{}};if(e.load){const o=e.load(e);if(o&&o.then){this.starLoad(),o.then(r=>{r.rule&&(t.rule=r.rule),r.options&&(t.options=r.options),this.loadConfig(t,e),this.endLoad()}).catch(r=>{this.endLoad()});return}else o&&(o.rule&&(t.rule=o.rule),o.options&&(t.options=o.options))}this.loadConfig(t,e)}}}),_w={class:"_fc-form-node"},ww={class:"_fc-form-node-label"},Ew={key:0,class:"fc-icon icon-form"},Aw={key:1,class:"fc-icon icon-folder"},Sw={key:0,class:"_fc-form-node-info"},xw=["onClick"];function kw(e,t,o,r,i,s){const d=n.resolveComponent("a-directory-tree");return n.openBlock(),n.createBlock(d,{ref:"treeRef",class:"_fc-form-tree","tree-data":e.list,selectable:!1,showIcon:!1},{title:n.withCtx(c=>[n.createElementVNode("div",_w,[n.createElementVNode("div",ww,[c.isLeaf?(n.openBlock(),n.createElementBlock("i",Ew)):(n.openBlock(),n.createElementBlock("i",Aw)),n.createElementVNode("div",null,[n.createElementVNode("div",null,n.toDisplayString(c.label),1),c.info?(n.openBlock(),n.createElementBlock("span",Sw,n.toDisplayString(c.info),1)):n.createCommentVNode("",!0)])]),c.isLeaf&&!c.disabled?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:n.withModifiers(f=>e.nodeClick(c.data),["stop"])},null,8,xw)):n.createCommentVNode("",!0)])]),_:1},8,["tree-data"])}const Nw=Oe(Cw,[["render",kw]]),KP="",Tw=n.defineComponent({name:"GlobalEventConfig",emits:["update:modelValue"],props:{modelValue:Object,eventName:Array},components:{Warning:Xn,FnEditor:ci},inject:["designer"],data(){return{visible:!1,activeIdx:"",event:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[yn(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.event=et(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.event[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="event_"+Ye();this.event[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){return this.$refs.data.save()?(this.event[this.activeIdx].handle=this.handle,this.activeIdx="",!0):!1},rm(e){delete this.event[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.event}),this.visible=!1)}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),Ow={class:"_fd-gec"},Dw={class:"_fd-menu"},Bw=["onClick"],$w={class:"_fd-gec-title"},Rw={class:"_fd-gec-method"},Vw={key:0,class:"_fd-label"},Iw=["onClick"],Fw={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},Mw={class:"_fd-gec-title"};function Pw(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("FnEditor"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Ow,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(_,{class:"_fd-gec-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[5]||(t[5]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(f,{tooltip:e.t("warning.globalEvent")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[4]||(t[4]=v=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(A,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gec-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",Dw,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(v,m)=>(n.openBlock(),n.createElementBlock("div",{key:m,class:n.normalizeClass(["_fd-menu-item",{"is-active":m===e.activeIdx}]),onClick:n.withModifiers(b=>e.active(m),["stop"])},[n.createElementVNode("div",$w,[n.createElementVNode("div",Rw,[n.createElementVNode("span",null,n.toDisplayString(m),1),v.label?(n.openBlock(),n.createElementBlock("span",Vw,n.toDisplayString(v.label),1)):n.createCommentVNode("",!0)]),v.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(b=>e.rm(m),["stop"])},null,8,Iw)):n.createCommentVNode("",!0)])],10,Bw))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",Fw,[n.createElementVNode("div",Mw,[n.createVNode(y,{type:"text",value:e.cusValue,"onUpdate:value":t[0]||(t[0]=v=>e.cusValue=v),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...v)=>e.addCus&&e.addCus(...v),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...v)=>e.closeCus&&e.closeCus(...v),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(g,{key:0,class:"_fd-gec-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(C,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(E,{modelValue:e.handle,"onUpdate:modelValue":t[3]||(t[3]=v=>e.handle=v),name:"handle",args:e.fnArgs,ref:"data"},null,8,["modelValue","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const eh=Oe(Tw,[["render",Pw]]),YP="",Lw=n.defineComponent({name:"StructEditor",props:{modelValue:[Object,Array,Function],format:Boolean,defaultValue:{require:!1}},emits:["blur","focus","update:modelValue"],inject:["designer"],data(){return{editor:null,visible:!1,err:!1,oldVal:null}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue(e){if(this.editor){const t=e?this.toJson(e):"";this.oldVal=t;const r=this.editor.getScrollInfo().top;this.editor.setValue(t),this.editor.scrollTo(0,r)}}},mounted(){this.$nextTick(()=>{this.load()})},methods:{toJson(e){return this.format?je.toJson(e,2):un(e)},load(){const e=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(di(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?xo.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""})),this.editor.on("blur",()=>{this.$emit("blur")}),this.editor.on("focus",()=>{this.$emit("focus")})})},save(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(o){return console.error(o),Zt(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(this.err=!0,!1):(this.visible=!1,this.toJson(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),jw={class:"_fd-struct-editor"},zw={ref:"editor"};function Hw(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",jw,[n.createElementVNode("div",zw,null,512)])}const Kd=Oe(Lw,[["render",Hw]]),QP="",Uw=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},o){t._start=o.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},o){const r=t.getRule("action");r.value=r.value.substring(0,r._start)+o+r.value.substring(r._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],Ww=n.defineComponent({name:"GlobalFetchConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Xn,VariableConfig:vr,DragForm:je.$form(),FnEditor:ci,StructEditor:Kd},inject:["designer"],data(){return{visible:!1,activeIdx:"",list:{},cus:!1,cusValue:"",form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"small"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},types(){return{fetch:this.t("fetch.remote"),static:this.t("fetch.static")}},dataNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.list=et(this.modelValue||{}),this.activeIdx="")}},methods:{open(){this.visible=!0},active(e){if(this.activeIdx!==e){const t=this.list[e];this.form.rule=t.type==="static"?[]:Uw(this.t),this.form.formData={...t},this.form.label=t.label,this.form.type=t.type,this.form.data=t.data,this.form.dataType=t.dataType,this.form.parse=t.parse||"",this.form.onError=t.onError||"",this.activeIdx=e}},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="data_"+Ye();this.list[t]={label:e,type:this.cus,data:[]},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(e){this.cus=e},saveData(){!this.$refs.data.save()||(this.list[this.activeIdx].data=this.form.data||[],this.activeIdx="")},save(){if(this.list[this.activeIdx].type==="static")return this.saveData();this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=this.form.parse,e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,this.list[this.activeIdx]=e,this.activeIdx="")}).catch(e=>{console.error(e),Zt(e.errorFields[0].errors[0])})},rm(e){delete this.list[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){if(this.activeIdx)return Zt(this.t("event.saveMsg"));this.$emit("update:modelValue",{...this.list}),this.visible=!1}}}),Gw={class:"_fd-gfc"},Kw={class:"_fd-menu"},Yw=["onClick"],Qw={class:"_fd-gfc-title"},Xw={class:"_fd-gfc-method"},Jw={key:0,class:"_fd-label"},Zw=["onClick"],qw={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},eE={class:"_fd-gfc-title"},tE={class:"_fd-gfc-info"};function nE(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("Warning"),g=n.resolveComponent("a-menu-item"),y=n.resolveComponent("a-menu"),C=n.resolveComponent("a-dropdown"),w=n.resolveComponent("a-layout-header"),A=n.resolveComponent("a-input"),E=n.resolveComponent("a-layout-content"),_=n.resolveComponent("a-layout"),v=n.resolveComponent("a-layout-sider"),m=n.resolveComponent("DragForm"),b=n.resolveComponent("a-tab-pane"),S=n.resolveComponent("FnEditor"),x=n.resolveComponent("a-tabs"),O=n.resolveComponent("StructEditor"),D=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Gw,[n.createVNode(c,{color:"orange",count:e.dataNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(D,{class:"_fd-gfc-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[9]||(t[9]=V=>e.visible=V),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalFetch"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.globalFetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[8]||(t[8]=V=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-gfc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(v,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-gfc-l"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gfc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(C,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(y,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.types,(V,I)=>(n.openBlock(),n.createBlock(g,{key:I,onClick:z=>e.cusEvent(I)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(V),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.create")),1),t[10]||(t[10]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createElementVNode("div",Kw,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(V,I)=>(n.openBlock(),n.createElementBlock("div",{key:I,class:n.normalizeClass(["_fd-menu-item",{"is-active":I===e.activeIdx}]),onClick:n.withModifiers(z=>e.active(I),["stop"])},[n.createElementVNode("div",Qw,[n.createElementVNode("div",Xw,[n.createElementVNode("span",null,n.toDisplayString(I),1),V.label?(n.openBlock(),n.createElementBlock("span",Jw,n.toDisplayString(V.label),1)):n.createCommentVNode("",!0)]),V.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(z=>e.rm(I),["stop"])},null,8,Zw)):n.createCommentVNode("",!0)])],10,Yw))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",qw,[n.createElementVNode("div",eE,[n.createVNode(A,{type:"text",value:e.cusValue,"onUpdate:value":t[0]||(t[0]=V=>e.cusValue=V),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("fetch.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...V)=>e.addCus&&e.addCus(...V),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...V)=>e.closeCus&&e.closeCus(...V),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-gfc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(w,{key:0,class:"_fd-gfc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(E,{key:e.activeIdx},{default:n.withCtx(()=>[e.list[e.activeIdx].type==="fetch"?(n.openBlock(),n.createBlock(x,{key:0,class:"_fc-tabs"},{default:n.withCtx(()=>[n.createVNode(b,{tab:e.t("fetch.config"),key:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",tE,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(m,{api:e.form.api,"onUpdate:api":t[3]||(t[3]=V=>e.form.api=V),modelValue:e.form.formData,"onUpdate:modelValue":t[4]||(t[4]=V=>e.form.formData=V),rule:e.form.rule,option:e.form.options},{title:n.withCtx(V=>[V.rule.warning?(n.openBlock(),n.createBlock(f,{key:0,tooltip:V.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(V.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(V.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["tab"]),n.createVNode(b,{lazy:"",key:"second"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(S,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[5]||(t[5]=V=>e.form.parse=V),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(b,{lazy:"",tab:e.t("fetch.onError"),key:"third"},{default:n.withCtx(()=>[n.createVNode(S,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[6]||(t[6]=V=>e.form.onError=V),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["tab"])]),_:1})):(n.openBlock(),n.createBlock(O,{key:1,modelValue:e.form.data,"onUpdate:modelValue":t[7]||(t[7]=V=>e.form.data=V),ref:"data"},null,8,["modelValue"]))]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const th=Oe(Ww,[["render",nE]]),XP="",iE=n.defineComponent({name:"SizeInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String,size:String,unit:{type:Array,default:()=>["auto","px","%","vh","vw","em","rem"]},defaultUnit:{type:String,default:"px"}},watch:{modelValue(){this.parseValue()}},data(){return{idx:1,num:0,oldValue:this.modelValue||""}},methods:{parseValue(){this.modelValue!=="auto"?(this.idx=Math.max(this.unit.indexOf(this.defaultUnit),0),this.unit.forEach((e,t)=>{(this.modelValue||"").indexOf(e)>-1&&(this.idx=t)}),this.num=Un(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit(){this.oldValue=Un(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType(e){if(e!==void 0){if(this.idx===e)return;this.idx=e}else this.idx++,this.idx>4&&(this.idx=0);this.unit[this.idx]==="auto"?(this.oldValue="auto",this.$emit("update:modelValue","auto"),this.$emit("change","auto")):this.submit()}},created(){this.parseValue()}}),oE={class:"_fd-size-input"};function rE(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-inputNumber"),f=n.resolveComponent("a-menu-item"),g=n.resolveComponent("a-menu"),y=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",oE,[e.unit[e.idx]==="auto"?(n.openBlock(),n.createBlock(d,{key:0,size:e.size,style:{width:"150px"},onClick:t[0]||(t[0]=C=>e.changeType())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(c,{size:e.size,value:e.num,"onUpdate:value":t[1]||(t[1]=C=>e.num=C),onChange:e.submit},null,8,["size","value","onChange"]),n.createVNode(y,{trigger:"click",size:"small"},{overlay:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unit,(C,w)=>(n.openBlock(),n.createBlock(f,{key:C,onClick:A=>e.changeType(w)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(C),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{size:e.size},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])]),_:1})],64))])}const wr=Oe(iE,[["render",rE]]),JP="",aE=n.defineComponent({name:"BoxSizeInput",components:{SizeInput:wr,ConfigItem:wn},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{overflow:[{value:"visible",icon:"icon-eye"},{value:"hidden",icon:"icon-eye-close"},{value:"scroll",icon:"icon-scroll"},{value:"auto",text:"Auto"}],keys:["width","height","minWidth","minHeight","maxWidth","maxHeight"],boxStyle:{width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""}}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""},this.modelValue&&Object.keys(this.boxStyle).forEach(e=>{this.modelValue[e]&&(this.boxStyle[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,o)=>(this.boxStyle[o]!==""&&(t[o]=this.boxStyle[o]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},changeOverflow(e){this.boxStyle.overflow=this.boxStyle.overflow===e?"":e,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value}},created(){this.tidyValue()}}),lE={class:"_fd-box-size-input"},sE={key:0,style:{"font-size":"12px","line-height":"16px"}};function dE(e,t,o,r,i,s){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("a-form-item"),f=n.resolveComponent("a-radio-button"),g=n.resolveComponent("a-tooltip"),y=n.resolveComponent("a-radio-group"),C=n.resolveComponent("a-form"),w=n.resolveComponent("a-form-item-rest"),A=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",lE,[n.createVNode(A,{label:e.t("props.size"),info:Object.keys(e.modelValue).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(C,{layout:"vertical",size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.keys,E=>(n.openBlock(),n.createBlock(c,{label:e.t("style."+E),key:E},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.boxStyle[E],"onUpdate:modelValue":_=>e.boxStyle[E]=_,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"]))),128)),n.createVNode(c,{label:e.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:n.withCtx(()=>[n.createVNode(y,{value:e.boxStyle.overflow},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.overflow,E=>(n.openBlock(),n.createBlock(g,{title:e.t("style.overflow."+E.value),placement:"top",key:E.value},{default:n.withCtx(()=>[n.createVNode(f,{label:E.value,value:E.value,onClick:_=>e.changeOverflow(E.value)},{default:n.withCtx(()=>[E.text?(n.openBlock(),n.createElementBlock("span",sE,"Auto ")):(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fc-icon",E.icon])},null,2))]),_:2},1032,["label","value","onClick"])]),_:2},1032,["title"]))),128))]),_:1},8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["label","info"])])}const cE=Oe(aE,[["render",dE]]),ZP="",uE=n.defineComponent({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){return{value:this.modelValue||""}},methods:{},created(){}}),fE={class:"_fd-color-input"};function pE(e,t,o,r,i,s){const d=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",fE,[n.createVNode(d,{type:"text",allowClear:"",value:e.value,"onUpdate:value":t[1]||(t[1]=c=>e.value=c)},{addonAfter:n.withCtx(()=>[n.createVNode(d,{type:"color",value:e.value,"onUpdate:value":t[0]||(t[0]=c=>e.value=c)},null,8,["value"])]),_:1},8,["value"])])}const ko=Oe(uE,[["render",pE]]),qP="",hE=n.defineComponent({name:"BorderInput",components:{ColorInput:ko,SizeInput:wr,ConfigItem:wn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue(),this.initCur()},active(){this.initCur()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=za(t)+": "+this.borderStyle[t]+";")},{}),e}},data(){const e=this.designer.setupState.t;return{t:e,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(t=>({value:t,label:e("style."+t)})),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue(){const e=[];this.borderStyle={},["",...this.position].forEach(t=>{this.type.forEach(o=>{e.push("border"+t+o)})}),e.forEach(t=>{this.borderStyle[t]=this.modelValue[t]||""})},onInput(){const e=Object.keys(this.borderStyle).reduce((t,o)=>(this.borderStyle[o]!==""&&(t[o]=this.borderStyle[o]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},pushCur(){this.borderStyle["border"+this.active+"Style"]=this.curStyle||"",this.borderStyle["border"+this.active+"Color"]=this.curColor||"",this.borderStyle["border"+this.active+"Width"]=this.curWidth||"",this.onInput()},initCur(){this.unwatch&&this.unwatch(),this.curStyle=this.borderStyle["border"+this.active+"Style"]||"",this.curColor=this.borderStyle["border"+this.active+"Color"]||"",this.curWidth=this.borderStyle["border"+this.active+"Width"]||"",this.unwatch=this.$watch(()=>[this.curStyle,this.curColor,this.curWidth],()=>{this.pushCur()})}},created(){this.tidyValue(),this.initCur()}}),mE={class:"_fd-border-input"},gE={class:"_fd-bi-left"},vE={class:"_fd-bil-row"},yE={class:"_fd-bil-row"},bE={class:"_fd-bil-row"},CE={class:"_fd-bi-right"},_E={class:"_fd-bi-opt"};function wE(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),f=n.resolveComponent("SizeInput"),g=n.resolveComponent("ColorInput"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(y,{label:e.t("style.border")},{append:n.withCtx(()=>[n.createElementVNode("div",mE,[n.createElementVNode("div",gE,[n.createElementVNode("div",vE,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Top"?"active":""]),onClick:t[0]||(t[0]=C=>e.active="Top")},"\u2533 ",2)]),n.createElementVNode("div",yE,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Left"?"active":""]),onClick:t[1]||(t[1]=C=>e.active="Left")},"\u2523 ",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active===""?"active":""]),onClick:t[2]||(t[2]=C=>e.active="")},"\u254B",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Right"?"active":""]),onClick:t[3]||(t[3]=C=>e.active="Right")}," \u252B ",2)]),n.createElementVNode("div",bE,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Bottom"?"active":""]),onClick:t[4]||(t[4]=C=>e.active="Bottom")},"\u253B ",2)])]),n.createElementVNode("div",CE,[n.createVNode(c,{value:e.curStyle,"onUpdate:value":t[5]||(t[5]=C=>e.curStyle=C),allowClear:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lineType,C=>(n.openBlock(),n.createBlock(d,{key:C.value,value:C.value},{default:n.withCtx(()=>[n.createElementVNode("div",_E,[n.createElementVNode("div",{class:n.normalizeClass(["_line",C.value])},null,2)])]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),n.createVNode(f,{modelValue:e.curWidth,"onUpdate:modelValue":t[6]||(t[6]=C=>e.curWidth=C)},null,8,["modelValue"]),n.createVNode(g,{modelValue:e.curColor,"onUpdate:modelValue":t[7]||(t[7]=C=>e.curColor=C)},null,8,["modelValue"])])])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"line-box",style:n.normalizeStyle(e.borderStyleStr)},t[8]||(t[8]=[n.createElementVNode("div",{class:"line-box-con"},null,-1)]),4)]),_:1},8,["label"])}const EE=Oe(hE,[["render",wE]]),eL="",AE=n.defineComponent({name:"RadiusInput",components:{ConfigItem:wn,ColorInput:ko,SizeInput:wr},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(e){e!==this.oldValue&&this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{visit:!1,active:"",style:{com:"",left:"",right:"",top:"",bottom:""},unit:["px","%"],oldValue:""}},methods:{batch(){this.style.left=this.style.com,this.style.right=this.style.com,this.style.top=this.style.com,this.style.bottom=this.style.com,this.onInput()},tidyValue(){if(this.style={com:"",left:"",right:"",top:"",bottom:""},!this.modelValue)return;let e=(this.modelValue||"").split(" ").filter(t=>t!=="");e.length===1?e=[e[0],e[0],e[0],e[0]]:e.length===2?e=[e[0],e[1],e[0],e[1]]:e.length===3&&(e=[e[0],e[1],e[2],e[1]]),this.style.left=e[0],this.style.top=e[1],this.style.right=e[2],this.style.bottom=e[3],this.updateCom()},updateCom(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;this.style.com=e.replaceAll(this.style.left,"").trim()===""?this.style.left:""},onInput(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;`${this.style.left}${this.style.top}${this.style.right}${this.style.bottom}`.trim()===""?e="":this.updateCom(),this.oldValue=e,this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),SE={class:"_fd-radius-input"},xE={class:"_fd-radius-con"},kE={class:"_fd-radius-item"},NE={class:"_fd-radius-item"},TE={class:"_fd-radius-item"},OE={class:"_fd-radius-item"};function DE(e,t,o,r,i,s){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",SE,[n.createVNode(c,{label:e.t("style.borderRadius")},{append:n.withCtx(()=>[n.createElementVNode("div",xE,[n.createElementVNode("div",kE,[t[5]||(t[5]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.left,"onUpdate:modelValue":t[1]||(t[1]=f=>e.style.left=f),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",NE,[t[6]||(t[6]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.top,"onUpdate:modelValue":t[2]||(t[2]=f=>e.style.top=f),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",TE,[t[7]||(t[7]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.bottom,"onUpdate:modelValue":t[3]||(t[3]=f=>e.style.bottom=f),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",OE,[t[8]||(t[8]=n.createElementVNode("div",{class:"_fd-radius-icon"},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.right,"onUpdate:modelValue":t[4]||(t[4]=f=>e.style.right=f),onChange:e.onInput},null,8,["unit","modelValue","onChange"])])])]),default:n.withCtx(()=>[n.createVNode(d,{unit:e.unit,modelValue:e.style.com,"onUpdate:modelValue":t[0]||(t[0]=f=>e.style.com=f),onChange:e.batch},null,8,["unit","modelValue","onChange"])]),_:1},8,["label"])])}const BE=Oe(AE,[["render",DE]]),tL="",$E=n.defineComponent({name:"BorderInput",components:{ColorInput:ko,SizeInput:wr,ConfigItem:wn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=za(t)+": "+this.borderStyle[t]+";")},{}),e},alignType(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},decorationType(){return["underline","line-through","overline"].map(e=>({label:this.t("style.decoration."+e),value:e}))},weightType(){return[300,400,500,700].map(e=>({label:this.t("style.weight."+e),value:e}))}},data(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue(){Object.keys(this.fontStyle).forEach(e=>{this.fontStyle[e]=this.modelValue[e]||""})},onInput(){const e=Object.keys(this.fontStyle).reduce((t,o)=>(this.fontStyle[o]!==""&&(t[o]=this.fontStyle[o]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),RE={class:"_fd-font-input"};function VE(e,t,o,r,i,s){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("a-form-item"),f=n.resolveComponent("a-select-option"),g=n.resolveComponent("a-select"),y=n.resolveComponent("a-form"),C=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(C,{label:e.t("style.font.name")},{append:n.withCtx(()=>[n.createElementVNode("div",RE,[n.createVNode(y,{size:"small",layout:"vertical"},{default:n.withCtx(()=>[n.createVNode(c,{label:e.t("style.font.size")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.fontSize,"onUpdate:modelValue":t[0]||(t[0]=w=>e.fontStyle.fontSize=w),size:"small",onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.weight.name")},{default:n.withCtx(()=>[n.createVNode(g,{value:e.fontStyle.fontWeight,"onUpdate:value":t[1]||(t[1]=w=>e.fontStyle.fontWeight=w),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.weightType,w=>(n.openBlock(),n.createBlock(f,{key:w.value,value:w.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontWeight:w.value})},n.toDisplayString(w.label),5)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.decoration.name")},{default:n.withCtx(()=>[n.createVNode(g,{valuel:e.fontStyle.textDecoration,"onUpdate:valuel":t[2]||(t[2]=w=>e.fontStyle.textDecoration=w),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.decorationType,w=>(n.openBlock(),n.createBlock(f,{key:w.value,value:w.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({textDecoration:w.value})},n.toDisplayString(w.label),5)]),_:2},1032,["value"]))),128))]),_:1},8,["valuel","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.align")},{default:n.withCtx(()=>[n.createVNode(g,{value:e.fontStyle.textAlign,"onUpdate:value":t[3]||(t[3]=w=>e.fontStyle.textAlign=w),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.alignType,w=>(n.openBlock(),n.createBlock(f,{key:w.value,value:w.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.height")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.lineHeight,"onUpdate:modelValue":t[4]||(t[4]=w=>e.fontStyle.lineHeight=w),size:"small",onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.spacing")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.letterSpacing,"onUpdate:modelValue":t[5]||(t[5]=w=>e.fontStyle.letterSpacing=w),size:"small",onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-fi-box",style:n.normalizeStyle(e.fontStyle)},n.toDisplayString(e.t("style.font.preview")),5)]),_:1},8,["label"])}const IE=Oe($E,[["render",VE]]),nL="",FE=n.defineComponent({name:"DisplayInput",components:{ConfigItem:wn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:Object},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{style:{},displayOptions:[{value:"block",icon:"block"},{value:"inline-block",icon:"inlineblock"},{value:"inline",icon:"inline"},{value:"flex",icon:"flex"}],options:[{key:"flexDirection",items:[{value:"row",icon:"direction-row"},{value:"column",icon:"direction-column"},{value:"row-reverse",icon:"direction-rowreverse"},{value:"column-reverse",icon:"direction-columnreverse"}]},{key:"flexWrap",items:[{value:"nowrap",icon:"flex-nowrap",row:!0},{value:"wrap",icon:"flex-wrap",row:!0}]},{key:"alignContent",items:[{value:"center",icon:"align-center",row:!0},{value:"flex-start",icon:"align-flexstart",row:!0},{value:"flex-end",icon:"align-flexend",row:!0},{value:"space-around",icon:"align-spacearound",row:!0},{value:"space-between",icon:"align-spacebetween",row:!0},{value:"stretch",icon:"align-stretch",row:!0}]},{key:"justifyContent",items:[{value:"center",icon:"justify-center",row:!0},{value:"flex-start",icon:"justify-flexstart",row:!0},{value:"flex-end",icon:"justify-flexend",row:!0},{value:"space-between",icon:"justify-spacebetween",row:!0},{value:"space-around",icon:"justify-spacearound",row:!0},{value:"space-evenly",icon:"justify-stretch",row:!0}]},{key:"alignItems",items:[{value:"center",icon:"alignitems-center",row:!0},{value:"flex-start",icon:"alignitems-flexstart",row:!0},{value:"flex-end",icon:"alignitems-flexend",row:!0},{value:"stretch",icon:"alignitems-stretch",row:!0},{value:"baseline",icon:"alignitems-baseline"}]}]}},methods:{tidyValue(){this.style={display:"",flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""},this.modelValue&&Object.keys(this.style).forEach(e=>{this.modelValue[e]&&(this.style[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.style).reduce((t,o)=>(this.style[o]!==""&&(t[o]=this.style[o]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},radioClick(e,t){const o=this.style[e];this.style[e]===t.value?this.style[e]="":e==="display"&&t.value!=="flex"?this.style={display:t.value,flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""}:this.style[e]=t.value,this.style[e]!==o&&this.onInput()}},created(){this.tidyValue()}}),ME={class:"_fd-display-input"},PE={class:"_fd-display-raw"},LE={class:"_label"};function jE(e,t,o,r,i,s){const d=n.resolveComponent("a-radio-button"),c=n.resolveComponent("a-tooltip"),f=n.resolveComponent("a-radio-group"),g=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",ME,[n.createVNode(g,{label:e.t("style.display.name"),arrow:!1,showAppend:e.style.display==="flex"},{append:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-display-con",[e.style.flexDirection,["column","column-reverse"].indexOf(e.style.flexDirection)>-1?"rotate-flag":""]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,y=>(n.openBlock(),n.createElementBlock("div",PE,[n.createElementVNode("div",LE,n.toDisplayString(e.t("style."+y.key+".name"))+": ",1),n.createVNode(f,{value:e.style[y.key],size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.items,C=>(n.openBlock(),n.createBlock(c,{title:e.t("style."+y.key+"."+C.value),placement:"top",trigger:"hover",key:C.value},{default:n.withCtx(()=>[n.createVNode(d,{value:C.value,onClick:w=>e.radioClick(y.key,C)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(C.row?"rotate":"")},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+C.icon])},null,2)],2)]),_:2},1032,["value","onClick"])]),_:2},1032,["title"]))),128))]),_:2},1032,["value"])]))),256))],2)]),default:n.withCtx(()=>[n.createVNode(f,{value:e.style.display,size:"small",style:{width:"150px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.displayOptions,y=>(n.openBlock(),n.createBlock(c,{title:e.t("style.display."+y.value),placement:"top",trigger:"hover",key:y.value},{default:n.withCtx(()=>[n.createVNode(d,{value:y.value,onClick:C=>e.radioClick("display",y)},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-display-"+y.icon])},null,2)]),_:2},1032,["value","onClick"])]),_:2},1032,["title"]))),128))]),_:1},8,["value"])]),_:1},8,["label","showAppend"])])}const zE=Oe(FE,[["render",jE]]),iL="",HE=n.defineComponent({name:"ShadowContent",components:{ColorInput:ko},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String}},data(){return{max:24,boxSize:250,options:[{key:"external",icon:"shadow"},{key:"inset",icon:"shadow-inset"}],form:{color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"},units:["px","%","rem","em","vw","vh"],down:!1,position:{left:0,top:0}}},computed:{spotStyle(){return{left:this.position.left+"px",top:this.position.top+"px"}},t(){return this.designer.setupState.t}},watch:{position(e){this.form.x=parseInt(String((e.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((e.top-this.boxSize/2)/this.boxSize*this.max));const t=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,t*-1):Math.min(this.form.x,t),this.form.y=this.form.y<0?Math.max(this.form.y,t*-1):Math.min(this.form.y,t)},modelValue(e){this.initStyle(e)}},methods:{getMouseXY(e,t){if(this.down||t){const o=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(e.clientX-o.x)),top:parseInt(String(e.clientY-o.y))}}},onMouseup(){this.down=!1,this.onInput()},onMousedown(e){this.getMouseXY(e,!0),this.down=!0},onInput(){const e=this.form;let t=`${e.x}${e.x_unit} ${e.y}${e.y_unit} ${e.vague}${e.vague_unit} ${e.extend}${e.extend_unit} ${e.color}`;`${e.x}${e.y}${e.vague}${e.extend}`.replaceAll("0","")===""?t="":e.type==="inset"&&(t+=" inset"),this.$emit("update:modelValue",t),this.$emit("change",t)},initStyle(e){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",e=e.replace(" inset",""));const t=e.split("rgba");let o,r;t.length>1?(o="rgba"+t[1].trim(),r=t[0].trim().split(" ")):(r=t[0].trim().split(" "),o=r.pop()),this.form.color=o||"#000",this.form.x=parseInt(r[0])||0,this.form.y=parseInt(r[1])||0,this.form.vague=parseInt(r[2])||0,this.form.extend=parseInt(r[3])||0;const i=s=>(s==null?void 0:s.replace(/[-\d.]/g,""))||"px";this.form.x_unit=i(r[0]),this.form.y_unit=i(r[1]),this.form.vague_unit=i(r[2]),this.form.extend_unit=i(r[3]),this.position.left=this.boxSize/2+this.form.x/this.max*this.boxSize||0,this.position.top=this.boxSize/2+this.form.y/this.max*this.boxSize||0}},mounted(){this.initStyle(this.modelValue)}}),UE={class:"_fd-shadow-content"},WE={class:"_fd-sc-right"};function GE(e,t,o,r,i,s){const d=n.resolveComponent("a-radio-button"),c=n.resolveComponent("a-tooltip"),f=n.resolveComponent("a-radio-group"),g=n.resolveComponent("a-form-item"),y=n.resolveComponent("ColorInput"),C=n.resolveComponent("a-select-option"),w=n.resolveComponent("a-select"),A=n.resolveComponent("a-input"),E=n.resolveComponent("a-form");return n.openBlock(),n.createElementBlock("div",UE,[n.createVNode(E,{size:"small",layout:"vertical",class:"_fd-sc-form"},{default:n.withCtx(()=>[n.createVNode(g,{label:e.t("style.shadow.mode")},{default:n.withCtx(()=>[n.createVNode(f,{value:e.form.type,"onUpdate:value":t[0]||(t[0]=_=>e.form.type=_),onChange:e.onInput,size:"small",class:"_fd-sc-radio"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,_=>(n.openBlock(),n.createBlock(c,{key:_.key,title:e.t("style.shadow."+_.key),placement:"top"},{default:n.withCtx(()=>[n.createVNode(d,{label:_.key,value:_.key},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+_.icon])},null,2)]),_:2},1032,["label","value"])]),_:2},1032,["title"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(y,{modelValue:e.form.color,"onUpdate:modelValue":t[1]||(t[1]=_=>e.form.color=_),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.x")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.x,"onUpdate:value":t[3]||(t[3]=_=>e.form.x=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.x_unit,"onUpdate:value":t[2]||(t[2]=_=>e.form.x_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.y")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.y,"onUpdate:value":t[5]||(t[5]=_=>e.form.y=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.y_unit,"onUpdate:value":t[4]||(t[4]=_=>e.form.y_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.vague")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.vague,"onUpdate:value":t[7]||(t[7]=_=>e.form.vague=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.vague_unit,"onUpdate:value":t[6]||(t[6]=_=>e.form.vague_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"]),n.createVNode(g,{label:e.t("style.shadow.extend")},{default:n.withCtx(()=>[n.createVNode(A,{value:e.form.extend,"onUpdate:value":t[9]||(t[9]=_=>e.form.extend=_),type:"number",onChange:e.onInput},{addonAfter:n.withCtx(()=>[n.createVNode(w,{value:e.form.extend_unit,"onUpdate:value":t[8]||(t[8]=_=>e.form.extend_unit=_),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,_=>(n.openBlock(),n.createBlock(C,{key:_,value:_},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["value","onChange"])]),_:1},8,["label"])]),_:1}),n.createElementVNode("div",WE,[n.createElementVNode("div",{ref:"box",class:n.normalizeClass(["_fd-sc-box",e.down?"down":""]),onClick:t[10]||(t[10]=_=>e.getMouseXY(_,1)),onMousedown:t[11]||(t[11]=(..._)=>e.onMousedown&&e.onMousedown(..._)),onMouseup:t[12]||(t[12]=(..._)=>e.onMouseup&&e.onMouseup(..._)),onMousemove:t[13]||(t[13]=_=>e.getMouseXY(_,0))},[n.createElementVNode("span",{class:"spot",style:n.normalizeStyle(e.spotStyle)},t[14]||(t[14]=[n.createElementVNode("i",{class:"spot-id"},null,-1)]),4),t[15]||(t[15]=n.createElementVNode("span",{class:"center-spot"},null,-1)),t[16]||(t[16]=n.createElementVNode("div",{class:"x-hr"},null,-1)),t[17]||(t[17]=n.createElementVNode("div",{class:"y-hr"},null,-1))],34)])])}const KE=Oe(HE,[["render",GE]]),oL="",YE=n.defineComponent({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:wn,ShadowContent:KE},inject:["designer"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){const e=this.designer.setupState.t;return{t:e,options:[{label:e("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:e("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:e("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue(e){this.value=e}},created(){}}),QE={class:"_fd-shadow-input"};function XE(e,t,o,r,i,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),f=n.resolveComponent("a-dropdown"),g=n.resolveComponent("a-input"),y=n.resolveComponent("ShadowContent"),C=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",QE,[n.createVNode(C,{label:e.t("style.shadow.name")},{append:n.withCtx(()=>[n.createVNode(y,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=w=>e.value=w)},null,8,["modelValue"])]),default:n.withCtx(()=>[n.createVNode(g,{allowClear:"",value:e.value,"onUpdate:value":t[0]||(t[0]=w=>e.value=w),class:"_fd-si-input"},{addonAfter:n.withCtx(()=>[n.createVNode(f,null,{overlay:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,w=>(n.openBlock(),n.createBlock(d,{onClick:A=>e.changeValue(w.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["value"])]),_:1},8,["label"])])}const JE=Oe(YE,[["render",XE]]),rL="",ZE=n.defineComponent({name:"TableOptions",components:{ValueInput:Fa},emits:["update:modelValue","change"],props:{modelValue:[Array,Object],column:{type:Array,default:()=>[{label:"label",key:"label"},{label:"value",key:"value"}]},valueType:String,keyValue:String,max:Number,size:String},inject:["designer"],watch:{modelValue(){this.value=this.tidyModelValue()}},computed:{t(){return this.designer.setupState.t},columns(){const e=this.overColumn.map(t=>({...t,title:t.label}));return e.push({title:"",width:"40px",dataIndex:"handle"}),e},overColumn(){let e=this.column;if(this.checked){for(let t=0;t<e.length;t++)if(e[t].key===this.keyValue)return[e[t]]}return e}},data(){return{value:this.tidyModelValue(),checked:!1}},created(){this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.input()}))},methods:{isChecked(){for(let e=0;e<this.value.length;e++){const t=this.value[e],o=Object.keys(t),r=t[this.keyValue];for(let i=0;i<o.length;i++)if(r!==t[o[i]])return!1}return!0},tidyModelValue(){const e=this.modelValue;return this.valueType==="string"?(e||[]).map(t=>({value:""+t})):this.valueType==="object"?Object.keys(e||{}).map(t=>({label:t,value:e[t]})):[...e||[]].map(t=>J1(t))},tidyValue(){if(this.valueType==="object"){const e={};return this.value.forEach(t=>{t.label&&t.value&&(e[t.label]=t.value)}),e}else return this.value.map(e=>{if(this.valueType==="string")return e.value;if(this.checked){const t=e[this.keyValue];return this.column.reduce((o,r)=>(o[r.key]=t,o),{})}else return{...e}})},onInput(e){if(this.column.length===1&&e[this.column[0].key]==="")return;this.column.every(o=>o.required===!1?!0:["object","string"].indexOf(this.valueType)>-1?e[o.key]!==void 0&&e[o.key]!==""&&e[o.key]!==null:e[o.key]!==void 0)&&this.input()},input(){const e=this.tidyValue();this.$emit("update:modelValue",e),this.$emit("change",e)},add(){this.value.push(this.column.reduce((e,t)=>(e[t.key]="",e),{}))},del(e){this.value.splice(e,1),this.input()}}}),qE={class:"_td-table-opt"},eA=["onClick"],tA={class:"_td-table-opt-handle"};function nA(e,t,o,r,i,s){const d=n.resolveComponent("ValueInput"),c=n.resolveComponent("a-input"),f=n.resolveComponent("a-table"),g=n.resolveComponent("a-button"),y=n.resolveComponent("a-checkbox"),C=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",qE,[n.createVNode(C,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(f,{"data-source":e.value,columns:e.columns,key:e.checked?"2":"1",size:e.size||"small",rowKey:"index",bordered:"",pagination:!1,style:{width:"100%"}},{bodyCell:n.withCtx(w=>[w.column.dataIndex!=="handle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[w.column.value?(n.openBlock(),n.createBlock(d,{key:0,size:e.size||"small",modelValue:w.record[w.column.key],"onUpdate:modelValue":A=>w.record[w.column.key]=A,onBlur:A=>e.onInput(w.record),onChangeType:A=>e.onInput(w.record)},null,8,["size","modelValue","onUpdate:modelValue","onBlur","onChangeType"])):(n.openBlock(),n.createBlock(c,{key:1,size:e.size||"small",value:w.record[w.column.key],"onUpdate:value":A=>w.record[w.column.key]=A,onBlur:A=>e.onInput(w.record)},null,8,["size","value","onUpdate:value","onBlur"]))],64)):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-delete",onClick:A=>e.del(w.index)},null,8,eA))]),_:1},8,["data-source","columns","size"])),n.createElementVNode("div",tA,[!e.max||e.max>e.value.length?(n.openBlock(),n.createBlock(g,{key:0,type:"link",onClick:e.add,size:"small"},{default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.keyValue?(n.openBlock(),n.createBlock(y,{key:1,checked:e.checked,"onUpdate:checked":t[0]||(t[0]=w=>e.checked=w)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.keyValue")),1)]),_:1},8,["checked"])):n.createCommentVNode("",!0)])]),_:1})])}const nh=Oe(ZE,[["render",nA]]),aL="",iA=n.defineComponent({name:"BoxSpaceInput",components:{ConfigItem:wn},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{position:["Top","Right","Bottom","Left"],boxStyle:{margin:"",padding:"",marginLeft:"",marginRight:"",marginTop:"",marginBottom:"",paddingLeft:"",paddingRight:"",paddingTop:"",paddingBottom:""},marginLock:!1,paddingLock:!1}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={},["margin","padding"].forEach(e=>{this.boxStyle[e]=this.modelValue[e]||"",this.position.forEach(t=>{this.boxStyle[e+t]=this.tidySize(this.modelValue[e+t]||this.modelValue[e]||"")})})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,o)=>(this.boxStyle[o]!==""&&(t[o]=this.boxStyle[o]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},tidySize(e){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(e)){if(e==="auto")return e;const o=parseInt(e);return isNaN(o)?"":o+"px"}return e},setValue(e,t,o){const r=this.tidySize(o.target.value);e?this[e+"Lock"]?this.position.forEach(i=>{this.boxStyle[e+i]=r}):this.boxStyle[e+t]=r:this.boxStyle[t]=r,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value},clear(e){this.position.forEach(t=>{this.boxStyle[e+t]=""}),this.onInput()},lock(e){const t=e+"Lock";this[t]=!this[t]}},created(){this.tidyValue()}}),oA={class:"_fd-box-space-input"},rA={class:"_padding"},aA={class:"_padding-title"},lA=["value"],sA=["value"],dA=["value"],cA=["value"],uA={class:"_fd-help"},fA={class:"_margin"},pA={class:"_margin-title"},hA={class:"_fd-help"},mA=["value"],gA=["value"],vA=["value"],yA=["value"];function bA(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",oA,[n.createElementVNode("div",rA,[n.createElementVNode("span",aA,n.toDisplayString(e.t("style.margin")),1),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.marginTop,type:"text",onBlur:t[0]||(t[0]=d=>e.setValue("margin","Top",d)),onInput:t[1]||(t[1]=d=>e.change("marginTop",d))},null,40,lA),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.marginRight,type:"text",onBlur:t[2]||(t[2]=d=>e.setValue("margin","Right",d)),onInput:t[3]||(t[3]=d=>e.change("marginRight",d))},null,40,sA),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.marginBottom,type:"text",onBlur:t[4]||(t[4]=d=>e.setValue("margin","Bottom",d)),onInput:t[5]||(t[5]=d=>e.change("marginBottom",d))},null,40,dA),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.marginLeft,type:"text",onBlur:t[6]||(t[6]=d=>e.setValue("margin","Left",d)),onInput:t[7]||(t[7]=d=>e.change("marginLeft",d))},null,40,cA),n.createElementVNode("div",uA,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.marginLock?"active":""]),title:"lock",onClick:t[8]||(t[8]=d=>e.lock("margin"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[9]||(t[9]=d=>e.clear("margin"))})]),n.createElementVNode("div",fA,[n.createElementVNode("span",pA,n.toDisplayString(e.t("style.padding")),1),n.createElementVNode("div",hA,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.paddingLock?"active":""]),title:"lock",onClick:t[10]||(t[10]=d=>e.lock("padding"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[11]||(t[11]=d=>e.clear("padding"))})]),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.paddingTop,type:"text",onBlur:t[12]||(t[12]=d=>e.setValue("padding","Top",d)),onInput:t[13]||(t[13]=d=>e.change("paddingTop",d))},null,40,mA),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.paddingRight,type:"text",onBlur:t[14]||(t[14]=d=>e.setValue("padding","Right",d)),onInput:t[15]||(t[15]=d=>e.change("paddingRight",d))},null,40,gA),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.paddingBottom,type:"text",onBlur:t[16]||(t[16]=d=>e.setValue("padding","Bottom",d)),onInput:t[17]||(t[17]=d=>e.change("paddingBottom",d))},null,40,vA),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.paddingLeft,type:"text",onBlur:t[18]||(t[18]=d=>e.setValue("padding","Left",d)),onInput:t[19]||(t[19]=d=>e.change("paddingLeft",d))},null,40,yA),t[20]||(t[20]=n.createElementVNode("div",{class:"_box"},null,-1))])])])}const CA=Oe(iA,[["render",bA]]),lL="",ih=["display","flexDirection","flexWrap","alignContent","justifyContent","alignItems"],oh=["fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],rh=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],ah=["color","backgroundColor","scale","borderRadius","boxShadow","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","padding","opacity","borderStyle","borderColor","borderWidth","borderTopStyle","borderTopColor","borderTopWidth","borderLeftStyle","borderLeftColor","borderLeftWidth","borderBottomStyle","borderBottomColor","borderBottomWidth","borderRightStyle","borderRightColor","borderRightWidth",...ih,...oh,...rh],_A=n.defineComponent({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{BoxSpaceInput:CA,TableOptions:nh,ColorInput:ko,ConfigItem:wn,DisplayInput:zE,RadiusInput:BE,BoxSizeInput:cE,BorderInput:EE,ShadowInput:JE,FontInput:IE},props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue:{handler(){this.tidyStyle()},deep:!0}},data(){return{t:this.designer.setupState.t,formData:{},space:{},size:{},border:{},display:{},font:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle(){const e={...this.modelValue||{}},t={};Object.keys(e).forEach(f=>{(["margin","padding"].indexOf(f)>-1||f.indexOf("margin")>-1||f.indexOf("padding")>-1)&&(t[f]=e[f])});const o={};rh.forEach(f=>{e[f]&&(o[f]=e[f])}),this.radius=e.borderRadius||"",delete e.borderRadius;const r={};Object.keys(e).forEach(f=>{f.indexOf("border")===0&&(r[f]=e[f])});let i=Un(e.opacity)?100:parseFloat(e.opacity)||0;i&&i<1&&(i=i*100);let s=e.scale;Un(e.scale)?s=100:isNaN(Number(s))?s=parseFloat(s)||100:s=s>0?s*100:0;const d={};ih.forEach(f=>{e[f]&&(d[f]=e[f])});const c={};oh.forEach(f=>{e[f]&&(c[f]=e[f])}),this.opacity=i,this.scale=s,this.size=o,this.space=t,this.border=r,this.display=d,this.font=c,this.boxShadow=e.boxShadow||"",this.color=e.color||"",this.backgroundColor=e.backgroundColor||"",ah.forEach(f=>{delete e[f]}),this.formData=e},onInput(){let e={...this.formData};ah.forEach(o=>{delete e[o]});const t={...e,color:this.color||"",backgroundColor:this.backgroundColor||"",opacity:this.opacity>=0&&this.opacity<100?this.opacity+"%":"",borderRadius:this.radius||"",boxShadow:this.boxShadow||"",scale:this.scale>=0&&this.scale!==100?this.scale+"%":"",...this.space,...this.size,...this.border,...this.display,...this.font};Object.keys(t).forEach(o=>{Un(t[o])&&delete t[o]}),this.$emit("update:modelValue",t)}},created(){this.tidyStyle()}}),wA={class:"_fd-style-config"};function EA(e,t,o,r,i,s){const d=n.resolveComponent("BoxSpaceInput"),c=n.resolveComponent("BoxSizeInput"),f=n.resolveComponent("DisplayInput"),g=n.resolveComponent("ColorInput"),y=n.resolveComponent("ConfigItem"),C=n.resolveComponent("BorderInput"),w=n.resolveComponent("RadiusInput"),A=n.resolveComponent("FontInput"),E=n.resolveComponent("ShadowInput"),_=n.resolveComponent("a-slider"),v=n.resolveComponent("TableOptions"),m=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",wA,[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.space,"onUpdate:modelValue":t[0]||(t[0]=b=>e.space=b),onChange:e.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),n.createVNode(c,{modelValue:e.size,"onUpdate:modelValue":t[1]||(t[1]=b=>e.size=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(f,{modelValue:e.display,"onUpdate:modelValue":t[2]||(t[2]=b=>e.display=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(y,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:e.color,"onUpdate:modelValue":t[3]||(t[3]=b=>e.color=b),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(y,{label:e.t("style.backgroundColor")},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:e.backgroundColor,"onUpdate:modelValue":t[4]||(t[4]=b=>e.backgroundColor=b),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(C,{modelValue:e.border,"onUpdate:modelValue":t[5]||(t[5]=b=>e.border=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(w,{modelValue:e.radius,"onUpdate:modelValue":t[6]||(t[6]=b=>e.radius=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(A,{modelValue:e.font,"onUpdate:modelValue":t[7]||(t[7]=b=>e.font=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(E,{modelValue:e.boxShadow,"onUpdate:modelValue":t[8]||(t[8]=b=>e.boxShadow=b),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(y,{label:e.t("style.opacity"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(_,{value:e.opacity,"onUpdate:value":t[9]||(t[9]=b=>e.opacity=b),onChange:e.onInput},null,8,["value","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.opacity)+"%",1)]),_:1},8,["label"]),n.createVNode(y,{label:e.t("style.scale"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(_,{min:80,max:120,value:e.scale,"onUpdate:value":t[10]||(t[10]=b=>e.scale=b),onChange:e.onInput},null,8,["value","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.scale)+"%",1)]),_:1},8,["label"]),n.createVNode(y,{label:e.t("props.custom"),info:Object.keys(e.formData).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(v,n.mergeProps({modelValue:e.formData,"onUpdate:modelValue":t[11]||(t[11]=b=>e.formData=b),onChange:e.onInput},{column:[{label:e.t("props.key"),key:"label"},{label:e.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]),_:1},8,["label","info"])]),_:1})])}const lh=Oe(_A,[["render",EA]]);(function(e,t){(function(o){o(_o())})(function(o){o.defineMode("css",function(T,B){var L=B.inline;B.propertyKeywords||(B=o.resolveMode("text/css"));var U=T.indentUnit,W=B.tokenHooks,R=B.documentTypes||{},k=B.mediaTypes||{},P=B.mediaFeatures||{},j=B.mediaValueKeywords||{},Z=B.propertyKeywords||{},J=B.nonStandardPropertyKeywords||{},F=B.fontProperties||{},oe=B.counterDescriptors||{},pe=B.colorKeywords||{},se=B.valueKeywords||{},ye=B.allowNested,fe=B.lineComment,ue=B.supportsAtComponent===!0,he=T.highlightNonStandardPropertyKeywords!==!1,$,Y;function Q(ge,Ae){return $=Ae,ge}function K(ge,Ae){var le=ge.next();if(W[le]){var we=W[le](ge,Ae);if(we!==!1)return we}if(le=="@")return ge.eatWhile(/[\w\\\-]/),Q("def",ge.current());if(le=="="||(le=="~"||le=="|")&&ge.eat("="))return Q(null,"compare");if(le=='"'||le=="'")return Ae.tokenize=te(le),Ae.tokenize(ge,Ae);if(le=="#")return ge.eatWhile(/[\w\\\-]/),Q("atom","hash");if(le=="!")return ge.match(/^\s*\w*/),Q("keyword","important");if(/\d/.test(le)||le=="."&&ge.eat(/\d/))return ge.eatWhile(/[\w.%]/),Q("number","unit");if(le==="-"){if(/[\d.]/.test(ge.peek()))return ge.eatWhile(/[\w.%]/),Q("number","unit");if(ge.match(/^-[\w\\\-]*/))return ge.eatWhile(/[\w\\\-]/),ge.match(/^\s*:/,!1)?Q("variable-2","variable-definition"):Q("variable-2","variable");if(ge.match(/^\w+-/))return Q("meta","meta")}else return/[,+>*\/]/.test(le)?Q(null,"select-op"):le=="."&&ge.match(/^-?[_a-z][_a-z0-9-]*/i)?Q("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(le)?Q(null,le):ge.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(ge.current())&&(Ae.tokenize=q),Q("variable callee","variable")):/[\w\\\-]/.test(le)?(ge.eatWhile(/[\w\\\-]/),Q("property","word")):Q(null,null)}function te(ge){return function(Ae,le){for(var we=!1,Ie;(Ie=Ae.next())!=null;){if(Ie==ge&&!we){ge==")"&&Ae.backUp(1);break}we=!we&&Ie=="\\"}return(Ie==ge||!we&&ge!=")")&&(le.tokenize=null),Q("string","string")}}function q(ge,Ae){return ge.next(),ge.match(/^\s*[\"\')]/,!1)?Ae.tokenize=null:Ae.tokenize=te(")"),Q(null,"(")}function ie(ge,Ae,le){this.type=ge,this.indent=Ae,this.prev=le}function de(ge,Ae,le,we){return ge.context=new ie(le,Ae.indentation()+(we===!1?0:U),ge.context),le}function Ee(ge){return ge.context.prev&&(ge.context=ge.context.prev),ge.context.type}function Se(ge,Ae,le){return Ve[le.context.type](ge,Ae,le)}function ke(ge,Ae,le,we){for(var Ie=we||1;Ie>0;Ie--)le.context=le.context.prev;return Se(ge,Ae,le)}function qe(ge){var Ae=ge.current().toLowerCase();se.hasOwnProperty(Ae)?Y="atom":pe.hasOwnProperty(Ae)?Y="keyword":Y="variable"}var Ve={};return Ve.top=function(ge,Ae,le){if(ge=="{")return de(le,Ae,"block");if(ge=="}"&&le.context.prev)return Ee(le);if(ue&&/@component/i.test(ge))return de(le,Ae,"atComponentBlock");if(/^@(-moz-)?document$/i.test(ge))return de(le,Ae,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(ge))return de(le,Ae,"atBlock");if(/^@(font-face|counter-style)/i.test(ge))return le.stateArg=ge,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ge))return"keyframes";if(ge&&ge.charAt(0)=="@")return de(le,Ae,"at");if(ge=="hash")Y="builtin";else if(ge=="word")Y="tag";else{if(ge=="variable-definition")return"maybeprop";if(ge=="interpolation")return de(le,Ae,"interpolation");if(ge==":")return"pseudo";if(ye&&ge=="(")return de(le,Ae,"parens")}return le.context.type},Ve.block=function(ge,Ae,le){if(ge=="word"){var we=Ae.current().toLowerCase();return Z.hasOwnProperty(we)?(Y="property","maybeprop"):J.hasOwnProperty(we)?(Y=he?"string-2":"property","maybeprop"):ye?(Y=Ae.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Y+=" error","maybeprop")}else return ge=="meta"?"block":!ye&&(ge=="hash"||ge=="qualifier")?(Y="error","block"):Ve.top(ge,Ae,le)},Ve.maybeprop=function(ge,Ae,le){return ge==":"?de(le,Ae,"prop"):Se(ge,Ae,le)},Ve.prop=function(ge,Ae,le){if(ge==";")return Ee(le);if(ge=="{"&&ye)return de(le,Ae,"propBlock");if(ge=="}"||ge=="{")return ke(ge,Ae,le);if(ge=="(")return de(le,Ae,"parens");if(ge=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Ae.current()))Y+=" error";else if(ge=="word")qe(Ae);else if(ge=="interpolation")return de(le,Ae,"interpolation");return"prop"},Ve.propBlock=function(ge,Ae,le){return ge=="}"?Ee(le):ge=="word"?(Y="property","maybeprop"):le.context.type},Ve.parens=function(ge,Ae,le){return ge=="{"||ge=="}"?ke(ge,Ae,le):ge==")"?Ee(le):ge=="("?de(le,Ae,"parens"):ge=="interpolation"?de(le,Ae,"interpolation"):(ge=="word"&&qe(Ae),"parens")},Ve.pseudo=function(ge,Ae,le){return ge=="meta"?"pseudo":ge=="word"?(Y="variable-3",le.context.type):Se(ge,Ae,le)},Ve.documentTypes=function(ge,Ae,le){return ge=="word"&&R.hasOwnProperty(Ae.current())?(Y="tag",le.context.type):Ve.atBlock(ge,Ae,le)},Ve.atBlock=function(ge,Ae,le){if(ge=="(")return de(le,Ae,"atBlock_parens");if(ge=="}"||ge==";")return ke(ge,Ae,le);if(ge=="{")return Ee(le)&&de(le,Ae,ye?"block":"top");if(ge=="interpolation")return de(le,Ae,"interpolation");if(ge=="word"){var we=Ae.current().toLowerCase();we=="only"||we=="not"||we=="and"||we=="or"?Y="keyword":k.hasOwnProperty(we)?Y="attribute":P.hasOwnProperty(we)?Y="property":j.hasOwnProperty(we)?Y="keyword":Z.hasOwnProperty(we)?Y="property":J.hasOwnProperty(we)?Y=he?"string-2":"property":se.hasOwnProperty(we)?Y="atom":pe.hasOwnProperty(we)?Y="keyword":Y="error"}return le.context.type},Ve.atComponentBlock=function(ge,Ae,le){return ge=="}"?ke(ge,Ae,le):ge=="{"?Ee(le)&&de(le,Ae,ye?"block":"top",!1):(ge=="word"&&(Y="error"),le.context.type)},Ve.atBlock_parens=function(ge,Ae,le){return ge==")"?Ee(le):ge=="{"||ge=="}"?ke(ge,Ae,le,2):Ve.atBlock(ge,Ae,le)},Ve.restricted_atBlock_before=function(ge,Ae,le){return ge=="{"?de(le,Ae,"restricted_atBlock"):ge=="word"&&le.stateArg=="@counter-style"?(Y="variable","restricted_atBlock_before"):Se(ge,Ae,le)},Ve.restricted_atBlock=function(ge,Ae,le){return ge=="}"?(le.stateArg=null,Ee(le)):ge=="word"?(le.stateArg=="@font-face"&&!F.hasOwnProperty(Ae.current().toLowerCase())||le.stateArg=="@counter-style"&&!oe.hasOwnProperty(Ae.current().toLowerCase())?Y="error":Y="property","maybeprop"):"restricted_atBlock"},Ve.keyframes=function(ge,Ae,le){return ge=="word"?(Y="variable","keyframes"):ge=="{"?de(le,Ae,"top"):Se(ge,Ae,le)},Ve.at=function(ge,Ae,le){return ge==";"?Ee(le):ge=="{"||ge=="}"?ke(ge,Ae,le):(ge=="word"?Y="tag":ge=="hash"&&(Y="builtin"),"at")},Ve.interpolation=function(ge,Ae,le){return ge=="}"?Ee(le):ge=="{"||ge==";"?ke(ge,Ae,le):(ge=="word"?Y="variable":ge!="variable"&&ge!="("&&ge!=")"&&(Y="error"),"interpolation")},{startState:function(ge){return{tokenize:null,state:L?"block":"top",stateArg:null,context:new ie(L?"block":"top",ge||0,null)}},token:function(ge,Ae){if(!Ae.tokenize&&ge.eatSpace())return null;var le=(Ae.tokenize||K)(ge,Ae);return le&&typeof le=="object"&&($=le[1],le=le[0]),Y=le,$!="comment"&&(Ae.state=Ve[Ae.state]($,ge,Ae)),Y},indent:function(ge,Ae){var le=ge.context,we=Ae&&Ae.charAt(0),Ie=le.indent;return le.type=="prop"&&(we=="}"||we==")")&&(le=le.prev),le.prev&&(we=="}"&&(le.type=="block"||le.type=="top"||le.type=="interpolation"||le.type=="restricted_atBlock")?(le=le.prev,Ie=le.indent):(we==")"&&(le.type=="parens"||le.type=="atBlock_parens")||we=="{"&&(le.type=="at"||le.type=="atBlock"))&&(Ie=Math.max(0,le.indent-U))),Ie},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:fe,fold:"brace"}});function r(T){for(var B={},L=0;L<T.length;++L)B[T[L].toLowerCase()]=!0;return B}var i=["domain","regexp","url","url-prefix"],s=r(i),d=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],c=r(d),f=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],g=r(f),y=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],C=r(y),w=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],A=r(w),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=r(E),v=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=r(v),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],S=r(b),x=["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","grey","green","greenyellow","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"],O=r(x),D=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],V=r(D),I=i.concat(d).concat(f).concat(y).concat(w).concat(E).concat(x).concat(D);o.registerHelper("hintWords","css",I);function z(T,B){for(var L=!1,U;(U=T.next())!=null;){if(L&&U=="/"){B.tokenize=null;break}L=U=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:s,mediaTypes:c,mediaFeatures:g,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:_,fontProperties:m,counterDescriptors:S,colorKeywords:O,valueKeywords:V,tokenHooks:{"/":function(T,B){return T.eat("*")?(B.tokenize=z,z(T,B)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:c,mediaFeatures:g,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:_,colorKeywords:O,valueKeywords:V,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(T,B){return T.eat("/")?(T.skipToEnd(),["comment","comment"]):T.eat("*")?(B.tokenize=z,z(T,B)):["operator","operator"]},":":function(T){return T.match(/^\s*\{/,!1)?[null,null]:!1},$:function(T){return T.match(/^[\w-]+/),T.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(T){return T.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:c,mediaFeatures:g,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:_,colorKeywords:O,valueKeywords:V,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(T,B){return T.eat("/")?(T.skipToEnd(),["comment","comment"]):T.eat("*")?(B.tokenize=z,z(T,B)):["operator","operator"]},"@":function(T){return T.eat("{")?[null,"interpolation"]:T.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(T.eatWhile(/[\w\\\-]/),T.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:s,mediaTypes:c,mediaFeatures:g,propertyKeywords:A,nonStandardPropertyKeywords:_,fontProperties:m,counterDescriptors:S,colorKeywords:O,valueKeywords:V,supportsAtComponent:!0,tokenHooks:{"/":function(T,B){return T.eat("*")?(B.tokenize=z,z(T,B)):!1}},name:"css",helperType:"gss"})})})();const sL="",AA=n.defineComponent({name:"StyleEditor",props:{modelValue:String},data(){return{editor:null,oldVal:null}},mounted(){this.$nextTick(()=>{this.load()})},methods:{load(){const e=this.modelValue;this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(di(this.$refs.editor,{lineNumbers:!0,mode:"css",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?xo.css(e,{indent_size:2,indent_char:" ",indent_scripts:"separate"}):""}))})},save(){const e=this.editor.getValue();return e!==this.oldVal&&this.$emit("update:modelValue",e),!0}}}),SA={class:"_fd-style-editor"},xA={ref:"editor"};function kA(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",SA,[n.createElementVNode("div",xA,null,512)])}const NA=Oe(AA,[["render",kA]]),dL="",TA=n.defineComponent({name:"GlobalClassConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Xn,StyleEditor:NA,StyleConfig:lh},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:"",styleEl:null,content:"",activeStyle:!1}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[yn(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.value=et(this.modelValue||{}))},modelValue(){this.updateGlobalStyle()}},methods:{open(){this.visible=!0},changeStyle(){this.content=this.designer.setupState.formOptions.style||`#_demo1{
display:flex;
}
._demo2{
display:flex;
}`,this.activeStyle=!0,this.activeIdx=""},active(e){this.activeStyle=!1,this.activeIdx!==e&&(this.handle=this.value[e].style||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="cls_"+Ye();this.value[t]={label:e,style:{}},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){this.activeStyle?(this.$refs.editor.save(),this.designer.setupState.formOptions.style=this.content,this.activeStyle=!1):(this.value[this.activeIdx].style=this.handle,this.activeIdx="")},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){(this.activeIdx||this.activeStyle)&&this.save(),this.$emit("update:modelValue",{...this.value}),this.visible=!1},updateGlobalStyle(){let e="";const t=this.modelValue||{};Object.keys(t).forEach(o=>{let r="";t[o].style&&Object.keys(t[o].style).forEach(i=>{r+=za(i)+":"+t[o].style[i]+";"}),t[o].content&&(r+=t[o].content+";"),r&&(e+=`.${o}{${r}}`)}),e&&(this.styleEl.innerHTML=e)}},created(){this.styleEl=n.markRaw(document.createElement("style")),this.styleEl.type="text/css",document.head.appendChild(this.styleEl),this.updateGlobalStyle()},unmounted(){document.head.removeChild(this.styleEl)}}),OA={class:"_fd-gcc"},DA={class:"_fd-menu"},BA={class:"_fd-gcc-title"},$A={class:"_fd-gcc-method"},RA={class:"_fd-label"},VA=["onClick"],IA={class:"_fd-gcc-title"},FA={class:"_fd-gcc-method"},MA={key:0,class:"_fd-label"},PA=["onClick"],LA={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},jA={class:"_fd-gcc-title"};function zA(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("StyleEditor"),_=n.resolveComponent("StyleConfig"),v=n.resolveComponent("a-form"),m=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",OA,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(m,{class:"_fd-gec-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[7]||(t[7]=b=>e.visible=b),centered:"",maskClosable:!1,destroyOnClose:!0,width:"700px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalClass"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.globalClass")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[6]||(t[6]=b=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(A,{width:"255px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gcc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",DA,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-menu-item",{"is-active":e.activeStyle,"_fd-gcc-default":!0}]),onClick:t[0]||(t[0]=(...b)=>e.changeStyle&&e.changeStyle(...b))},[n.createElementVNode("div",BA,[n.createElementVNode("div",$A,[n.createElementVNode("span",RA,n.toDisplayString(e.t("form.globalClass")),1)])])],2),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(b,S)=>(n.openBlock(),n.createElementBlock("div",{key:S,class:n.normalizeClass(["_fd-menu-item",{"is-active":S===e.activeIdx}]),onClick:x=>e.active(S)},[n.createElementVNode("div",IA,[n.createElementVNode("div",FA,[n.createElementVNode("span",null,"."+n.toDisplayString(S),1),b.label?(n.openBlock(),n.createElementBlock("span",MA,n.toDisplayString(b.label),1)):n.createCommentVNode("",!0)]),b.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(x=>e.rm(S),["stop"])},null,8,PA)):n.createCommentVNode("",!0)])],10,VA))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",LA,[n.createElementVNode("div",jA,[n.createVNode(y,{type:"text",value:e.cusValue,"onUpdate:value":t[1]||(t[1]=b=>e.cusValue=b),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("class.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...b)=>e.addCus&&e.addCus(...b),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...b)=>e.closeCus&&e.closeCus(...b),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-r"},{default:n.withCtx(()=>[e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(g,{key:0,class:"_fd-gcc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(C,{key:e.activeIdx,class:n.normalizeClass(e.activeStyle?"_fd-gcc-style":"")},{default:n.withCtx(()=>[e.activeStyle?(n.openBlock(),n.createBlock(E,{key:0,ref:"editor",modelValue:e.content,"onUpdate:modelValue":t[4]||(t[4]=b=>e.content=b)},null,8,["modelValue"])):(n.openBlock(),n.createBlock(v,{key:1,size:"small"},{default:n.withCtx(()=>[n.createVNode(_,{modelValue:e.handle,"onUpdate:modelValue":t[5]||(t[5]=b=>e.handle=b)},null,8,["modelValue"])]),_:1}))]),_:1},8,["class"])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const sh=Oe(TA,[["render",zA]]),cL="",HA=n.defineComponent({name:"GlobalVariableConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Xn,FnEditor:ci},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.activeIdx="",this.value=et(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.value[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="var_"+Ye();this.value[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){if(!this.$refs.editor.save())return!1;this.value[this.activeIdx].handle=this.handle,this.activeIdx=""},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.value}),this.visible=!1)}}}),UA={class:"_fd-gvc"},WA={class:"_fd-menu"},GA=["onClick"],KA={class:"_fd-event-title"},YA={class:"_fd-event-method"},QA={key:0,class:"_fd-label"},XA=["onClick"],JA={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},ZA={class:"_fd-gvc-title"};function qA(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("FnEditor"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",UA,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.btn")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(_,{class:"_fd-gvc-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[5]||(t[5]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.title"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.globalVariable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[4]||(t[4]=v=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(A,{width:"255px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gvc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",WA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(v,m)=>(n.openBlock(),n.createElementBlock("div",{key:m,class:n.normalizeClass(["_fd-menu-item",{"is-active":m===e.activeIdx}]),onClick:n.withModifiers(b=>e.active(m),["stop"])},[n.createElementVNode("div",KA,[n.createElementVNode("div",YA,[n.createElementVNode("span",null,n.toDisplayString(m),1),v.label?(n.openBlock(),n.createElementBlock("span",QA,n.toDisplayString(v.label),1)):n.createCommentVNode("",!0)]),v.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(b=>e.rm(m),["stop"])},null,8,XA)):n.createCommentVNode("",!0)])],10,GA))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",JA,[n.createElementVNode("div",ZA,[n.createVNode(y,{type:"text",value:e.cusValue,"onUpdate:value":t[0]||(t[0]=v=>e.cusValue=v),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("computed.variable.placeholder")},null,8,["value","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...v)=>e.addCus&&e.addCus(...v),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...v)=>e.closeCus&&e.closeCus(...v),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(g,{key:0,class:"_fd-gvc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(C,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(E,{ref:"editor",modelValue:e.handle,"onUpdate:modelValue":t[3]||(t[3]=v=>e.handle=v),name:"handle",args:["get","api"]},null,8,["modelValue"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])}const dh=Oe(HA,[["render",qA]]),uL="",eS=n.defineComponent({name:"JsonPreview",components:{StructEditor:Kd},inject:["designer"],data(){return{active:"rule",value:this.designer.setupState.getRule(),oldValue:""}},watch:{active(){this.updateValue()}},computed:{change(){return this.active==="rule"?this.designer.setupState.children:this.designer.setupState.formOptions},t(){return this.designer.setupState.t}},methods:{updateValue(){this.active==="rule"?this.value=this.designer.setupState.getRule():this.value=this.designer.setupState.getOptions()},handleFocus(){this.oldValue=je.toJson(this.value)},handleBlur(){this.$refs.editor.save()&&je.toJson(this.value)!==this.oldValue&&(this.active==="rule"?this.designer.setupState.setRule(this.value||[]):this.designer.setupState.setOptions(this.value||{}))}},mounted(){this.$watch(()=>this.change,()=>{this.updateValue()},{deep:!0})}});function tS(e,t,o,r,i,s){const d=n.resolveComponent("a-layout-header"),c=n.resolveComponent("StructEditor"),f=n.resolveComponent("a-layout-content"),g=n.resolveComponent("a-layout");return n.openBlock(),n.createBlock(g,{class:"_fc-json-preview"},{default:n.withCtx(()=>[n.createVNode(d,{style:{height:"40px"},class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="rule"}]),onClick:t[0]||(t[0]=y=>e.active="rule")},n.toDisplayString(e.t("designer.json")),3),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="options"}]),onClick:t[1]||(t[1]=y=>e.active="options")},n.toDisplayString(e.t("designer.form")),3)]),_:1}),n.createVNode(f,{style:{padding:"8px"}},{default:n.withCtx(()=>[n.createVNode(c,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=y=>e.value=y),onBlur:e.handleBlur,onFocus:e.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]),_:1})]),_:1})}const nS=Oe(eS,[["render",tS]]),fL="",iS=n.defineComponent({name:"Struct",emits:["update:modelValue"],props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!lt.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{load(){const e=un(Iu(this.modelValue?et(this.modelValue):this.defaultValue));this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(di(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?xo.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(o){return console.error(o),Zt(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(Zt(this.t("struct.errorMsg")),!1):(this.visible=!1,un(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),oS={class:"_fd-struct"},rS={key:0,ref:"editor"};function aS(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",oS,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[1]||(t[1]=g=>e.visible=!0)},[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=g=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1})])])]),_:3},8,["dot"]),n.createVNode(f,{class:"_fd-struct-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[3]||(t[3]=g=>e.visible=g),title:e.title||e.t("struct.title"),width:"800px",centered:"",maskClosable:!1,destroyOnClose:!0},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=g=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",rS,null,512)):n.createCommentVNode("",!0)]),_:1},8,["open","title"])])}const ch=Oe(iS,[["render",aS]]),pL="",lS=n.defineComponent({name:"PropsInput",components:{Struct:ch},inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},props(){var o;const e=((o=this.activeRule._fc_store)==null?void 0:o.props_keys)||[],t={};return e.forEach(r=>{this.activeRule.props&&this.activeRule.props[r]&&(t[r]=this.activeRule.props[r])}),t}},methods:{onInput(e){this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(o=>{(e||{})[o]==null&&delete this.activeRule.props[o]}),vd(this.activeRule.props,e||{});const t=Object.keys(e||{});t.length?this.activeRule._fc_store.props_keys=t:delete this.activeRule._fc_store.props_keys}}});function sS(e,t,o,r,i,s){const d=n.resolveComponent("a-tooltip"),c=n.resolveComponent("Struct");return n.openBlock(),n.createBlock(c,{class:"_fd-props-input",modelValue:e.props,"onUpdate:modelValue":e.onInput,title:e.t("designer.customProps")},{default:n.withCtx(()=>[n.createVNode(d,{title:e.t("designer.customProps"),placement:"topRight"},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1)])),_:1},8,["title"])]),_:1},8,["modelValue","onUpdate:modelValue","title"])}const dS=Oe(lS,[["render",sS]]),hL="",cS=n.defineComponent({name:"LanguageConfig",inject:["designer"],computed:{localeOptions(){return this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}])},t(){return this.designer.setupState.t},tableColumns(){const e=[{title:"Key",width:"90px",dataIndex:"key"}];return this.localeOptions.forEach(t=>{e.push({minWidth:"100px",title:t.label,dataIndex:t.value})}),e.push({title:this.t("tableOptions.handle"),width:"75px",dataIndex:"handle"}),e}},data(){return{column:[],uni:0,selected:[]}},methods:{copy(e){Wn(e)},addColumn(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn(e,t){e.input=t||!1;const o=this.designer.setupState.formOptions.language;this.localeOptions.forEach(r=>{o[r.value]||(o[r.value]={}),o[r.value][e.key]=e[r.value]})},rmColumn(e){const t=this.column[e];this.column.splice(e,1);const o=this.designer.setupState.formOptions.language;this.localeOptions.forEach(r=>{o[r.value]&&delete o[r.value][t.key]})},batchRmColumn(){this.selected.forEach(e=>{this.rmColumn(this.column.indexOf(e))}),this.selected=[]},selectionChange(e,t){this.selected=t},randomString(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";const o=e.length;for(let r=0;r<7;r++)t+=e.charAt(Math.floor(Math.random()*o));return e.charAt(this.uni++%26)+t}},mounted(){const e=this.designer.setupState.formOptions.language||{},t={};Object.keys(e).forEach(o=>{Object.keys(e[o]).forEach(r=>{t[r]||(t[r]={key:r}),t[r][o]=e[o][r]})}),this.column=Object.values(t)}}),uS={class:"_fd-language-config"},fS={class:"_fc-l-label"},pS={class:"_fc-l-info"},hS={class:"_fd-lc-header"},mS={class:"_fd-lc-body"},gS={key:1,class:"_fd-lc-handle"},vS=["onClick"],yS=["onClick"],bS=["onClick"],CS=["onClick"];function _S(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-input"),f=n.resolveComponent("a-table");return n.openBlock(),n.createElementBlock("div",uS,[n.createElementVNode("div",fS,n.toDisplayString(e.t("language.name")),1),n.createElementVNode("div",pS,n.toDisplayString(e.t("warning.language")),1),n.createElementVNode("div",hS,[n.createVNode(d,{size:"small",onClick:e.addColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.add")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",danger:"",plain:"",disabled:!e.selected.length,onClick:e.batchRmColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.batchRemove")),1)]),_:1},8,["disabled","onClick"])]),n.createElementVNode("div",mS,[n.createVNode(f,{"data-source":e.column,columns:e.tableColumns,"row-selection":{onChange:e.selectionChange},size:"small",ref:"table",pagination:!1,"row-key":"key"},{bodyCell:n.withCtx(g=>[g.column.dataIndex==="key"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(g.record.key),1)],64)):g.column.dataIndex==="handle"?(n.openBlock(),n.createElementBlock("div",gS,[g.record.input?(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-check",onClick:y=>e.saveColumn(g.record)},null,8,yS)):(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:y=>g.record.input=!0},null,8,vS)),n.createElementVNode("i",{class:"fc-icon icon-group",onClick:y=>e.copy(g.record.key)},null,8,bS),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:y=>e.rmColumn(g.index)},null,8,CS)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[g.record.input?(n.openBlock(),n.createBlock(c,{key:0,size:"small",value:g.record[g.column.dataIndex],"onUpdate:value":y=>g.record[g.column.dataIndex]=y,onBlur:y=>e.saveColumn(g.record,!0)},null,8,["value","onUpdate:value","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(g.record[g.column.dataIndex]||"-"),1)],64))],64))]),_:1},8,["data-source","columns","row-selection"])])])}const wS=Oe(cS,[["render",_S]]),mL="",ES=n.defineComponent({name:"SlotsConfig",inject:["designer"],components:{ConfigItem:wn},data(){return{type:["icon","text"],easySlots:{}}},computed:{t(){return this.designer.setupState.t},slots(){var o,r;const e=((r=(o=this.designer.setupState)==null?void 0:o.activeRule)==null?void 0:r._menu)||{};return(e.easySlots||[]).map(i=>{if(typeof i=="string")return{value:i,label:this.t("com."+e.name+".slots."+i)||this.t("slots."+i)||this.t("props."+i)||i};{const s={...i};return s.label||(s.label=this.t("com."+e.name+".slots."+i.value)||this.t("slots."+i.value)||this.t("props."+i.value)||i.value),s}})},modelValue(){var e,t;return((t=(e=this.designer.setupState)==null?void 0:e.activeRule)==null?void 0:t.$easySlots)||{}},icons(){return is([...this.designer.setupState.getConfig("icons",[]),"icon-layout","icon-column1","icon-column2","icon-column3","icon-column4","icon-tab","icon-config-event","icon-step-form","icon-slider","icon-dialog","icon-justify-spacearound","icon-upload","icon-copy","icon-time-range","icon-task-add","icon-justify-spacebetween","icon-import","icon-config-base","icon-alignitems-stretch","icon-alignitems-flexend","icon-check","icon-auto","icon-calendar","icon-config-style","icon-config-advanced","icon-config-props","icon-delete-circle2","icon-delete-circle","icon-delete","icon-direction-rowreverse","icon-display-flex","icon-drag","icon-display-block","icon-data","icon-edit2","icon-edit","icon-add-col","icon-display-inlineblock","icon-config-validate","icon-down","icon-display-inline","icon-eye","icon-eye-close","icon-preview","icon-flex-nowrap","icon-folder","icon-form-circle","icon-flex-wrap","icon-form","icon-form-item","icon-icon","icon-image","icon-justify-flexstart","icon-justify-center","icon-justify-stretch","icon-link2","icon-minus","icon-menu2","icon-more","icon-menu","icon-language","icon-pad","icon-mobile","icon-page-max","icon-move","icon-page-min","icon-pre-step","icon-pc","icon-page","icon-refresh","icon-radius","icon-save-filled","icon-question","icon-scroll","icon-script","icon-setting","icon-save","icon-shadow","icon-variable","icon-yes","icon-shadow-inset","icon-date","icon-date-range","icon-collapse","icon-switch","icon-subform","icon-tree-select","icon-value","icon-alert","icon-card","icon-checkbox","icon-cascader","icon-button","icon-data-table","icon-group","icon-divider","icon-flex","icon-descriptions","icon-html","icon-editor","icon-input","icon-link","icon-password","icon-radio","icon-row","icon-inline","icon-rate","icon-color","icon-select","icon-json","icon-number","icon-space","icon-table-form","icon-table-form2","icon-time","icon-span","icon-textarea","icon-tooltip","icon-slot","icon-transfer","icon-tag","icon-watermark","icon-tree","icon-table","icon-add-child","icon-add2","icon-add","icon-alignitems-baseline","icon-add-circle","icon-alignitems-center"])}},watch:{modelValue:{handler:function(e){const t={};this.slots.forEach(({value:o,label:r,type:i})=>{e[o]?t[o]={...e[o]}:this.easySlots[o]?t[o]={type:this.easySlots[o].type}:t[o]={type:i||"icon",value:""},t[o].only=i,t[o].label=r,t[o].popVisible=!1}),this.easySlots=t},immediate:!0}},methods:{changeIcon(e,t){e.value=t,this.onChange(),e.popVisible=!1},changeType(e){e.value&&(e.value="",this.onChange())},onChange(){var e;if((e=this.designer.setupState)!=null&&e.activeRule){const t={};Object.keys(this.easySlots).forEach(o=>{this.easySlots[o].value&&(t[o]={...this.easySlots[o]},delete t[o].label,delete t[o].only,delete t[o].popVisible)}),Object.keys(t).length===0?delete this.designer.setupState.activeRule.$easySlots:this.designer.setupState.activeRule.$easySlots=t,this.designer.setupState.activeRule.key=Ye()}}},mounted(){}}),AS={class:"_fd-slots-config"},SS={class:"_fd-slots-icons"},xS=["onClick"];function kS(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),f=n.resolveComponent("a-popover"),g=n.resolveComponent("a-input"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",AS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.easySlots,(C,w)=>(n.openBlock(),n.createBlock(y,{label:C.label},{default:n.withCtx(()=>[n.createVNode(g,{size:"small",value:C.value,"onUpdate:value":A=>C.value=A,"allow-clear":"",onBlur:e.onChange},n.createSlots({_:2},[C.only?void 0:{name:"addonBefore",fn:n.withCtx(()=>[n.createVNode(c,{size:"small",value:C.type,"onUpdate:value":A=>C.type=A,onChange:A=>e.changeType(C)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,A=>(n.openBlock(),n.createBlock(d,{value:A},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props."+A)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value","onChange"])]),key:"0"},C.type==="icon"?{name:"addonAfter",fn:n.withCtx(()=>[n.createVNode(f,{open:C.popVisible,"onUpdate:open":A=>C.popVisible=A,ref_for:!0,ref:w,placement:"bottom",overlayClassName:"_fd-slots-config-pop",trigger:"click"},{content:n.withCtx(()=>[n.createElementVNode("div",SS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.icons,A=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-slots-icon",onClick:E=>e.changeIcon(C,A)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon iconfont",A])},null,2)],8,xS))),256))])]),default:n.withCtx(()=>[t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1))]),_:2},1032,["open","onUpdate:open"])]),key:"1"}:void 0]),1032,["value","onUpdate:value","onBlur"])]),_:2},1032,["label"]))),256))])}const NS=Oe(ES,[["render",kS]]),gL="",TS=n.defineComponent({name:"QuickLayout",inject:["designer"],data(){return{popVisible:!1}},computed:{t(){return this.designer.setupState.t},layout(){return[{span:24,label:this.t("designer.col1")},{span:12,label:this.t("designer.col2")},{span:8,label:this.t("designer.col3")},{span:6,label:this.t("designer.col4")}]}},methods:{check(e){var o,r,i,s,d;if((o=e==null?void 0:e._menu)!=null&&o.subForm)return!1;let t=e.__fc__.parent;for(;t;){if(((i=(r=t.rule)==null?void 0:r._menu)==null?void 0:i.menu)==="layout"||((d=(s=t.rule)==null?void 0:s._menu)==null?void 0:d.subForm))return!1;t=t.parent}return!0},change(e){const t=this.designer.setupState.dragForm.api.model(),o=this.layout[e].span;let r=!1;Object.keys(t).forEach(i=>{(Array.isArray(t[i])?t[i]:[t[i]]).forEach(d=>{this.check(d)&&(d.col||(d.col={}),r=r||d.col.span!==o,d.col.span=o)})}),this.popVisible=!1,r&&this.designer.setupState.addOperationRecord()}}}),OS={class:"_fd-quick-layout"},DS={class:"_fd-quick-layout-content"},BS=["onClick"];function $S(e,t,o,r,i,s){const d=n.resolveComponent("a-tooltip"),c=n.resolveComponent("a-popover");return n.openBlock(),n.createElementBlock("div",OS,[n.createVNode(c,{open:e.popVisible,"onUpdate:open":t[0]||(t[0]=f=>e.popVisible=f),ref:"pop",placement:"bottom",trigger:"click"},{content:n.withCtx(()=>[n.createElementVNode("div",DS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,(f,g)=>(n.openBlock(),n.createElementBlock("div",{onClick:y=>e.change(g)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-column"+(g+1)])},null,2),n.createElementVNode("span",null,n.toDisplayString(f.label),1)],8,BS))),256))])]),default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{effect:"dark",title:e.t("designer.layout"),placement:"top"},{default:n.withCtx(()=>t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-layout"},null,-1)])),_:1},8,["title"])])]),_:1},8,["open"])])}const RS=Oe(TS,[["render",$S]]),vL="",VS=n.defineComponent({name:"AiChat",inject:["designer"],data(){return{message:"",page:0,limit:3,pageData:[],question:["\u751F\u6210\u4E00\u4E2A\u5C31\u8BCA\u6EE1\u610F\u5EA6\u95EE\u5377\u8868\u5355","\u521B\u5EFA\u4E00\u4E2A\u5EFA\u8BAE\u6536\u96C6\u8868\u5355\uFF0C\u5305\u542B\u8054\u7CFB\u4EBA\u3001\u8054\u7CFB\u90AE\u7BB1\u3001\u5206\u7C7B\u548C\u5EFA\u8BAE\u5185\u5BB9","\u8FFD\u52A0\u4E00\u4E2A\u7528\u6237\u4FE1\u606F\u8868\u5355",'\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E\u7EC4\u4EF6\uFF0C\u663E\u793A\u6587\u672C\u4E3A "Tag"',"\u5220\u9664\u5546\u54C1\u7B80\u4ECB\u5B57\u6BB5",'\u5F53\u5355\u9009\u6846\u9009\u62E9 "\u9009\u98791" \u65F6\uFF0C\u663E\u793A\u8F93\u5165\u6846\u7EC4\u4EF6',"\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u5FC5\u586B\uFF0C\u5E76\u9650\u5236\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E13","\u5546\u54C1\u4EF7\u683C\u5B57\u6BB5\u4F7F\u7528\u6570\u5B57\u8F93\u5165\u6846\u7EC4\u4EF6","\u7ED9\u8F93\u5165\u7C7B\u7EC4\u4EF6\u8865\u5145\u5360\u4F4D\u63D0\u793A\u6587\u672C\uFF08placeholder\uFF09"],chat:null,history:[]}},computed:{t(){return this.designer.setupState.t},api(){var e,t;return((t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.api)||"https://api.form-create.com/ai/v1/chat/form"},token(){var e,t;return(t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.token}},methods:{refresh(){this.page*this.limit<this.question.length?this.page++:this.page=1;const e=(this.page-1)*this.limit,t=e+this.limit;this.pageData=this.question.slice(e,t)},send(){const e=(this.message||"").trim();!e||(this.chat={message:e,status:"loading"},this.history.push(this.chat),this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})}),this.message="",this.fetch())},suspend(){this.chat.status="success",this.chat=null},fetch(){fetch(this.api,{method:"POST",headers:{Authorization:this.token,"Content-Type":"application/json"},body:JSON.stringify({ui:"ant-design-vue",message:this.chat.message,rule:this.designer.setupState.getJson()})}).then(e=>{e.json().then(t=>{this.chat&&(t.status===200?(this.chat.status="success",this.designer.setupState.setRule(t.data.rule)):(this.chat.status="fail",t.message&&Zl(t.message)),this.chat=null)})}).catch(()=>{this.chat=null})},getHistory(){const e=localStorage.getItem("fc_ai_history");e&&(this.history=JSON.parse(e))},clear(){this.history=[],localStorage.removeItem("fc_ai_history")}},created(){this.getHistory(),this.refresh()},mounted(){this.$refs.chat&&this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})})},unmounted(){localStorage.setItem("fc_ai_history",JSON.stringify(this.history))}}),IS={class:"_fd-ai-chat"},FS={class:"_fd-ai-chat-header"},MS={class:"_fc-l-label"},PS={class:"_fc-l-info"},LS={class:"_fd-ai-chat-prompt"},jS=["onClick"],zS={class:"_fd-ai-chat-history"},HS={class:"_fd-ai-chat-history-chat"},US={key:0},WS={key:1},GS={key:2},KS={class:"_fd-ai-chat-input"},YS={class:"_fd-ai-chat-clear"},QS={class:"_fd-ai-chat-input-wrapper"};function XS(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-textarea");return n.openBlock(),n.createElementBlock("div",IS,[n.createElementVNode("div",FS,[n.createElementVNode("div",MS,[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)),n.createTextVNode(" FormCreate "+n.toDisplayString(e.t("ai.name")),1)]),n.createElementVNode("div",PS,n.toDisplayString(e.t("ai.info")),1),n.createElementVNode("div",LS,[n.createElementVNode("span",null,n.toDisplayString(e.t("ai.try")),1),n.createElementVNode("span",{class:"_fd-ai-chat-refresh",onClick:t[0]||(t[0]=(...f)=>e.refresh&&e.refresh(...f))},[t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-refresh2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.change")),1)])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,f=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-ai-chat-question",onClick:g=>e.message=f},[n.createElementVNode("span",null,n.toDisplayString(f),1),t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))],8,jS))),256))]),n.createElementVNode("div",zS,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.history,(f,g)=>(n.openBlock(),n.createElementBlock("div",{key:g,class:"_fd-ai-chat-history-item",ref_for:!0,ref:"chat"},[n.createElementVNode("div",HS,[n.createElementVNode("div",null,n.toDisplayString(f.message),1)]),n.createElementVNode("div",{class:n.normalizeClass(["_fd-ai-chat-history-status",f.status||"success"])},[n.createElementVNode("div",null,[f.status==="loading"?(n.openBlock(),n.createElementBlock("div",US,n.toDisplayString(e.t("ai.loading")),1)):f.status==="fail"?(n.openBlock(),n.createElementBlock("div",WS,[t[7]||(t[7]=n.createElementVNode("i",{class:"fc-icon icon-warning"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.fail")),1)])):(n.openBlock(),n.createElementBlock("div",GS,[t[8]||(t[8]=n.createElementVNode("i",{class:"fc-icon icon-yes"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.success")),1)]))])],2)],512))),128))]),n.createElementVNode("div",KS,[n.createElementVNode("div",YS,[n.createVNode(d,{size:"small",type:"link",onClick:e.clear},{default:n.withCtx(()=>t[9]||(t[9]=[n.createElementVNode("i",{class:"fc-icon icon-delete2"},null,-1),n.createTextVNode(" \u6E05\u7A7A")])),_:1},8,["onClick"])]),n.createElementVNode("div",QS,[n.createVNode(c,{value:e.message,"onUpdate:value":t[1]||(t[1]=f=>e.message=f),placeholder:e.t("ai.placeholder"),resize:"none"},null,8,["value","placeholder"])]),e.chat&&e.chat.status==="loading"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fc-icon icon-suspend",onClick:t[2]||(t[2]=(...f)=>e.suspend&&e.suspend(...f))})):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["fc-icon icon-send",{disabled:!e.message||!e.message.trim()}]),onClick:t[3]||(t[3]=(...f)=>e.send&&e.send(...f))},null,2))])])}const JS=Oe(VS,[["render",XS]]);Ao.registerLanguage("javascript",o_),Ao.registerLanguage("xml",i_);const ZS=n.defineComponent({name:"FcDesigner",components:{AiChat:JS,SlotsConfig:NS,Warning:Xn,QuickLayout:RS,LanguageConfig:wS,PropsInput:dS,JsonPreview:nS,GlobalVariableConfig:dh,GlobalClassConfig:sh,GlobalEventConfig:eh,GlobalFetchConfig:th,FormList:Nw,FieldList:mw,TypeSelect:ow,ConfigTitle:Qp,VariableConfig:vr,ToolsBar:Y_,SubList:z_,PageInput:w_,fcDraggable:yo,DragForm:je.$form(),ViewForm:Qn.$form(),DragFormMobile:je.$form(),ViewFormMobile:Qn.$form(),EventConfig:Yf,ConfigItem:wn,VNode:Qf},props:{menu:Array,field:Array,list:Array,theme:String,height:[String,Number],config:{type:Object,default:()=>({})},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},emits:["active","create","copy","delete","drag","inputData","inputPageData","save","clear","switchForm","copyRule","pasteRule","sortUp","sortDown","onChangeDevice"],setup(e){var pe,se,ye,fe,ue,he;let t;t=!0;const{menu:o,height:r,mask:i,locale:s,handle:d}=n.toRefs(e),c=n.getCurrentInstance(),f=n.reactive({active:null});n.provide("fcx",f),n.provide("designer",c);const g=n.toRef(e,"config",{}),y=n.toRef(e,"theme"),C=n.toRef(e,"field",[]),w=n.toRef(e,"list",[]),A=n.toRef(g.value,"baseRule",null),E=n.toRef(g.value,"componentRule",{}),_=n.toRef(g.value,"updateDefaultRule",{}),v=n.toRef(g.value,"validateRule",null),m=n.toRef(g.value,"formRule",null),b=n.computed(()=>{const $=r.value;return $?lt.Number($)?`${$}px`:$:"100%"}),S=n.computed(()=>g.value.fieldReadonly!==!1),x=n.computed(()=>g.value.fieldList||[]),O=n.computed(()=>g.value.varList||[]),D=n.computed(()=>g.value.hiddenMenu||[]),V=n.computed(()=>g.value.hiddenItem||[]),I=n.computed(()=>g.value.hiddenDragMenu===!0),z=n.computed(()=>g.value.hiddenDragBtn===!0),T=n.computed(()=>c.refs.dragCon.clientHeight),B=n.computed(()=>{var $;return((($=s.value)==null?void 0:$.name)||"zh-cn")==="zh-cn"?ew:null}),L=n.computed(()=>{const $=["base","advanced","props","slots","style","event","validate"];let Y=g.value.configFormOrder?[...g.value.configFormOrder]:[],Q=[];return Y.length?[...Y,...$].forEach(K=>{Q.indexOf(K)===-1&&$.indexOf(K)>-1&&Q.push(K)}):Q=$,Q.map(K=>`"${K}"`).join(" ")});n.watch(y,($,Y)=>{Y&&document.body.classList.remove("fd-theme-"+Y),$&&document.body.classList.add("fd-theme-"+$),F.updateThemeColor()});let U=Ia;s.value&&(U=ts(s).t);const W=(...$)=>U(...$),R=($,Y,...Q)=>{if(Y){if(lt.Function(Y))return Y(...Q);if(Y.rule){let K=Y.rule(...Q);return Y.prepend?K=[...K,...$(...Q)]:Y.append&&(K=[...$(...Q),...K]),K}}return $(...Q)},k=n.reactive({cacheProps:{},themeColor:{colorPrimary:"#2E73FF",colorInfo:"#2E73FF",colorSuccess:"#00C050",colorError:"#FF2E2E"},operation:{idx:-1,list:[]},pageData:[],moveRule:null,addRule:null,added:null,bus:_v(),device:((pe=g.value)==null?void 0:pe.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activePage:null,activeRule:null,children:n.ref([]),treeInfo:[],menuList:o.value||G1(),dragRuleList:{},eventShow:!1,unloadStatus:!1,dragLoading:!1,previewStatus:"form",previewDevice:"pc",t:W,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:n.ref({rule:[],api:{}}),formOptions:{},oldOptionsKeys:[],form:{rule:R(Lu,m.value,{t:W}),api:{},option:{global:{input:((se=g.value)==null?void 0:se.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:R(rr,A.value,{t:W}),api:{},value:{},options:{global:{input:((ye=g.value)==null?void 0:ye.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},advancedForm:{isShow:!1,rule:zu({t:W}),api:{},value:{},options:{global:{input:((fe=g.value)==null?void 0:fe.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},styleForm:{isShow:!1,rule:ju({t:W}),api:{},value:{},options:{form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},validateForm:{isShow:!1,rule:R(Hu,v.value,{t:W}),api:{},value:[],options:{form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},propsForm:{isShow:!1,variable:!1,rule:[],api:{},value:{},options:{global:{input:((ue=g.value)==null?void 0:ue.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",labelWrap:!0,size:"small"},submitBtn:!1,mounted:$=>{$.activeRule=k.activeRule,$.setValue($.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:((he=g.value)==null?void 0:he.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{allowClear:!0}}},form:{layout:"vertical",labelAlign:"left",size:"small"},submitBtn:!1}}}),P=n.computed(()=>{const $=k.activeRule;if(!$||!$._menu.children)return null;const Y=k.dragRuleList[$._fc_drag_tag],Q=k.dragRuleList[$._menu.children];let K=$.children;return Y.inside&&(K=K[0].children),Q.inside||(K=K.map(te=>te.children[0])),K.filter(te=>te._fc_drag_tag===Q.name)});n.watch(()=>k.preview.state,function($){$||n.nextTick(()=>{k.previewStatus="form",k.preview.rule=k.preview.option=null})}),n.watch(()=>k.previewStatus,$=>{k.preview.rule&&(k.preview.option.preview=$==="preview")});let j=null;const Z=($,Y)=>{if($[10]!==">"){if($=$.replace("formCreate",""),!$)return;$=sa($)}else $=$.replace("formCreate>","");const Q=$.split(">"),K=Q.pop();let te=k.activeRule;Q.forEach((q,ie)=>{ie||(q=sa(q)),te[q]||(te[q]={}),te=te[q]}),Y({source:te,field:K})},J=n.computed(()=>k.pageData.filter($=>!$.default).length);n.watch(()=>s.value,$=>{U=$?ts(s).t:Ia,F.clearActiveRule();const Y=k.form.api.formData&&k.form.api.formData(),Q=k.baseForm.api.formData&&k.baseForm.api.formData(),K=k.validateForm.api.formData&&k.validateForm.api.formData();k.validateForm.rule=R(Hu,v.value,{t:W}),k.baseForm.rule=R(rr,A.value,{t:W}),k.form.rule=R(Lu,m.value,{t:W}),k.styleForm.rule=ju({t:W}),k.advancedForm.rule=zu({t:W}),k.cacheProps={};const te=k.activeRule;let q=null;te&&(q=k.propsForm.api.formData&&k.propsForm.api.formData(),k.propsForm.rule=k.cacheProps[te._fc_id]=F.getPropsRule(te)),n.nextTick(()=>{Y&&k.form.api.setValue(Y),Q&&k.baseForm.api.setValue(Q),K&&k.validateForm.api.setValue(K),q&&k.propsForm.api.setValue(q)})});const F={setDevice($){k.device=$,c.emit("changeDevice",$)},updateThemeColor(){const $=window.getComputedStyle(c.refs.designer.$el);k.themeColor.colorPrimary=$.getPropertyValue("--fc-style-color-1"),k.themeColor.colorSuccess=$.getPropertyValue("--fc-style-color-2"),k.themeColor.colorError=$.getPropertyValue("--fc-style-color-3"),k.themeColor.colorInfo=k.themeColor.colorPrimary},initPage(){k.children=F.makeChildren([]),k.dragForm.rule=F.makeDragRule(k.children),k.operation=k.pageData[0]?k.pageData[0].operation:{idx:-1,list:[]},k.pageData=[{default:!0,rule:k.dragForm.rule,operation:k.operation}],k.activePage=k.pageData[0]},changePage($){const Y=k.pageData[$];if(k.activePage!==Y){if(k.activePage){const Q=k.activePage;Q.rule=k.dragForm.rule,Q.operation=k.operation}Y.operation||(Y.operation={idx:-1,list:[]}),k.dragForm.rule=Y.rule,Y.default?k.children=Y.rule[0].children:k.children=Y.rule[0].children[0].children[0].children,k.activePage=Y,k.operation=Y.operation,k.preview.state=!1,k.inputForm.state=!1,F.clearActiveRule(),F.updateTree()}},deletePage($){$&&(k.pageData[$]===k.activePage&&F.changePage(0),k.pageData.splice($,1))},copyPage($){if($){const Y=k.pageData[$],Q=et(k.pageData[$].rule)[0],K=Q.type==="DragTool"?Q.children[0]:Q;K.name="ref_"+Ye(),K._fc_id="id_"+Ye(),vp(K,Y.config.labelField,uo(K,Y.config.labelField,"")+" Copy"),k.pageData.splice($+1,0,{config:Y.config,type:Y.type,main:K,rule:[Q]})}},addPage($){const Y=F.makeRule(k.dragRuleList[$]);F.appendPage($,Y)},appendPage($,Y){const Q=Y.type==="DragTool"?Y.children[0]:Y;k.pageData.push({config:k.dragRuleList[$].container,main:Q,type:$,rule:[Y]})},openGlobalFetchDialog(){const $=c.refs.globalFetch;$&&$.open()},openGlobalClassDialog(){const $=c.refs.globalClass;$&&$.open()},openGlobalEventDialog(){const $=c.refs.globalEvent;$&&$.open()},openGlobalVariableDialog(){const $=c.refs.globalVariable;$&&$.open()},unWatchActiveRule(){j&&j(),j=null},watchActiveRule(){F.unWatchActiveRule(),j=n.watch(()=>k.activeRule,function($){$&&F.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren($){return n.reactive({children:$}).children},addMenu($){if(!$.name||!$.list)return;let Y=!0;k.menuList.forEach((Q,K)=>{Q.name===$.name&&(k.menuList[K]=$,Y=!1)}),Y&&k.menuList.push($)},removeMenu($){[...k.menuList].forEach((Y,Q)=>{Y.name===$&&k.menuList.splice(Q,1)})},setMenuItem($,Y){k.menuList.forEach(Q=>{Q.name===$&&(Q.list=Y)})},appendMenuItem($,Y){k.menuList.forEach(Q=>{Q.name===$&&Q.list.push(...Array.isArray(Y)?Y:[Y])})},removeMenuItem($){k.menuList.forEach(Y=>{let Q;lt.String($)?[...Y.list].forEach((K,te)=>{K.name===$&&Y.list.splice(te,1)}):(Q=Y.list.indexOf($))>-1&&Y.list.splice(Q,1)})},addComponent($){Array.isArray($)?$.forEach(Y=>{k.dragRuleList[Y.name]=Y,Y.menu&&F.appendMenuItem(Y.menu,Y)}):(k.dragRuleList[$.name]=$,$.menu&&F.appendMenuItem($.menu,$))},openInputData($){k.inputForm.state=$===void 0?!k.inputForm.state:!!$,k.inputForm.state&&(k.inputForm.option=je.parseJson(F.getOptionsJson()),F.inputReset(),k.inputForm.option.appendValue=!1,k.inputForm.option.submitBtn.show=!1,k.inputForm.option.resetBtn.show=!1,F.clearActiveRule())},inputSave(){const $=k.inputForm.api.formData();Object.keys($).forEach(Q=>{Un($[Q])&&delete $[Q]});const Y=JSON.stringify(F.getPreviewFormData())!==JSON.stringify($);k.activePage.default?(k.inputForm.data=$,c.emit("inputData",$)):(vp(k.activePage.main,k.activePage.config.formDataField,$),c.emit("inputPageData",$)),k.inputForm.state=!1,Y&&F.addOperationRecord()},inputClear(){F.inputReset({})},inputReset($){k.inputForm.rule=je.parseJson(F.getPreviewRule()),k.inputForm.option.formData=$||et(F.getPreviewFormData()),k.inputForm.key=Ye()},setFormData($){k.inputForm.data=$||{}},getFormData(){return k.inputForm.data},getParent($){let Y=$.__fc__.parent.rule;const Q=Y._menu;return Q&&Q.inside&&($=Y,Y=Y.__fc__.parent.rule),{root:Y,parent:$}},copyName(){Wn(k.activeRule.name)},updateName(){k.activeRule.name="ref_"+Ye()},makeDrag($,Y,Q,K,te){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"a-col",group:{name:$===!0?"default":$,put(...q){return F.dragPut(...q)}},swapThreshold:.65,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"auto",itemKey:"type"}},tag:Y},children:Q,slot:te,on:K}},clearDragRule(){k.children.length=0,F.clearActiveRule(),F.addOperationRecord(),F.updateTree(),k.unloadStatus=!1,c.emit("clear")},makeDragRule($){return F.makeChildren([F.makeDrag(!0,"draggable",$,{add:(Y,Q)=>F.dragAdd($,Q),end:(Y,Q)=>F.dragEnd($,Q),start:(Y,Q)=>F.dragStart($,Q),unchoose:(Y,Q)=>F.dragUnchoose($,Q)})])},handleSave(){c.emit("save",{rule:F.getJson(),options:F.getOptionsJson()})},getPreviewFormData(){return k.activePage.default?k.inputForm.data:uo(k.activePage.main,k.activePage.config.formDataField,{})||{}},getPreviewRule(){return k.activePage.default?F.getJson():je.toJson(F.parseRule(et(k.children)))},openPreview(){k.preview.state=!0,k.previewDevice=k.device==="mobile"?"mobile":"pc";const $=F.getPreviewRule(),Y=F.getOptionsJson(),Q=F.getConfig("useTemplate",!1);k.preview.option=je.parseJson(Y),k.activePage.default||(k.preview.option.formData=et(F.getPreviewFormData())),k.preview.rule=je.parseJson($),k.preview.html=Ao.highlight(Q?uv($,Y):fv($,Y),{language:"xml"}).value,k.preview.mobileHtml=Ao.highlight(Q?pv($,Y):hv($,Y),{language:"xml"}).value,k.preview.sfc=Ao.highlight(R_(k.children,k.preview.option,k.dragRuleList,Q),{language:"xml"}).value},copyCode(){Wn(this.$refs.previewCode.innerText)},getPageRule(){return F.parseRule(et(k.children))},getPageJson(){return je.toJson(F.getPageRule())},getRule(){let $;if(k.pageData.length>1){const Y=[];k.pageData.map(Q=>{Q.default?$=F.parseRule(et(Q.rule)):Y.push(F.parseRule(et(Q.rule))[0])}),$.push(...Y)}else $=F.getPageRule();return $},getJson(){return je.toJson(F.getRule())},getOption(){var Q;const $=et(k.formOptions);["onReset","onSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(K=>{delete $[K]}),Object.keys($._event||{}).forEach(K=>{$._event[K]&&($[K]=$._event[K])}),$.style||delete $.style,delete $._event,$.submitBtn=$._submitBtn,$.resetBtn=$._resetBtn,$.resetBtn.innerText=W("props.reset"),$.submitBtn.innerText=W("props.submit");const Y=et(k.inputForm.data);return Object.keys(Y).length>0&&($.formData=Y),(Q=$==null?void 0:$.wrap)!=null&&Q.style&&($.wrap.style.marginBottom||delete $.wrap.style.marginBottom,Object.keys($.wrap.style).length||delete $.wrap.style,Object.keys($.wrap).length||delete $.wrap),Object.keys($).forEach(K=>{Object.keys($[K]).length||delete $[K]}),$.language&&Object.keys($.language).forEach(K=>{Object.keys($.language[K]).forEach(te=>{$.language[K][te]||delete $.language[K][te]}),Object.keys($.language[K]).length||delete $.language[K]}),delete $._submitBtn,delete $._resetBtn,$},subRender($,Y,Q){const K=$({h:n.h,resolveComponent:n.resolveComponent,rule:Y,subRule:Q,t:W});return Array.isArray(K)?K.map(te=>n.h(wn,{label:te.label},()=>te.vnode)):K},getOptions(){return F.getOption()},getOptionsJson(){return je.toJson([F.getOption()]).slice(1).slice(0,-1)},setRule($,Y){$||($=[]),!Y&&F.initPage();const Q=F.loadRule(lt.String($)?je.parseJson($):et($)),K=[];Q.forEach(te=>{te._fc_page_tag?Y||F.appendPage(te._fc_page_tag,te):K.push(te)}),k.children.length=0,k.children.push(...K),F.clearActiveRule(),Y||(F.addOperationRecord(),!K.length&&k.pageData.length>1&&F.changePage(1)),F.updateTree()},setBaseRuleConfig($,Y){A.value={rule:$,append:Y},k.baseForm.rule=R(rr,A.value,{t:W})},setComponentRuleConfig($,Y,Q){E.value[$]={rule:Y,append:Q},k.cacheProps={};const K=k.activeRule;if(K){const te=k.propsForm.api.formData&&k.propsForm.api.formData();k.propsForm.rule=k.cacheProps[K._fc_id]=R(K._menu.props,E.value&&E.value[K._menu.name],K,{t:W,api:k.dragForm.api}),n.nextTick(()=>{te&&k.propsForm.api.setValue(te)})}},setValidateRuleConfig($,Y){v.value={rule:$,append:Y},k.validateForm.rule=R(rr,v.value,{t:W})},setFormRuleConfig($,Y){m.value={rule:$,append:Y},k.form.rule=R(rr,m.value,{t:W})},clearActiveRule(){k.activeRule=null,k.customForm.config=null,k.activeTab="form",f.active=""},setOption($){const Y=et(F.getConfig("formOptions",{})),Q=Y.form||{};delete Y.form;let K={...Y,...lt.String($)?JSON.parse($):et($||{})};K.form={layout:"horizontal",labelAlign:"right",size:"middle",colon:!1,labelCol:{style:{width:"125px"}},wrapperCol:{span:24},...Q,...K.form||{}},K._event={onReset:K.onReset||"",onSubmit:K.onSubmit||"",onCreated:K.onCreated||"",onMounted:K.onMounted||"",onReload:K.onReload||"",onChange:K.onChange||"",beforeFetch:K.beforeFetch||""},Hn(K,"globalEvent")||(K.globalEvent={}),Hn(K,"globalData")||(K.globalData={}),Hn(K,"language")||(K.language={}),K._resetBtn=typeof K.resetBtn=="object"?K.resetBtn:{show:K.resetBtn===!0},K._submitBtn=typeof K.submitBtn=="object"?K.submitBtn:{show:K.submitBtn!==!1},K.submitBtn=K.resetBtn=!1,k.inputForm.data=K.formData||{},k.oldOptionsKeys=Object.keys(k.form.value),delete K.formData,k.formOptions=K,F.updateOptionsValue()},setOptions($){F.setOption($)},mergeOptions($){if(["globalEvent","globalData","globalClass","globalVariable","form"].forEach(Y=>{$[Y]&&(k.formOptions[Y]={...k.formOptions[Y]||{},...$[Y]})}),$.style&&(!k.formOptions.style||k.formOptions.style.indexOf($.style)===-1)&&(k.formOptions.style=(k.formOptions.style||"")+`
`+$.style),k.formOptions.language||(k.formOptions.language={}),$.language&&Object.keys($.language).forEach(Y=>{k.formOptions.language[Y]={...k.formOptions.language[Y]||{},...$.language[Y]}}),$.languageKey){const Y=F.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);$.languageKey.forEach(Q=>{Y.forEach(({value:K})=>{k.formOptions.language[K]||(k.formOptions.language[K]={}),k.formOptions.language[K][Q]||(k.formOptions.language[K][Q]="")})})}},updateOptionsValue(){var Q,K,te;const $={};k.oldOptionsKeys.forEach(q=>{$[q]=void 0});const Y={...$,...k.formOptions.form,">form>labelCol>style>width":(te=(K=(Q=k.formOptions.form)==null?void 0:Q.labelCol)==null?void 0:K.style)==null?void 0:te.width};Object.keys(k.formOptions).forEach(q=>{const ie=k.formOptions[q];Y[">"+q]=ie,typeof ie=="object"&&Object.keys(ie).forEach(de=>{Y[q+">"+de]=ie[de]})}),k.form.value=Y},setGlobalEvent($){k.formOptions.globalEvent={...k.formOptions.globalEvent||{},...$},F.updateOptionsValue()},setGlobalData($){k.formOptions.globalData={...k.formOptions.globalData||{},...$},F.updateOptionsValue()},setGlobalClass($){k.formOptions.globalClass={...k.formOptions.globalClass||{},...$},F.updateOptionsValue()},setGlobalVariable($){k.formOptions.globalVariable={...k.formOptions.globalVariable||{},...$},F.updateOptionsValue()},tidyRule($){var Q;["control","computed","on","hidden","display"].forEach(K=>{$[K]!=null&&($["_"+K]=$[K],delete $[K])}),(Q=$.effect)!=null&&Q.loadData&&($._loadData=$.effect.loadData,delete $.effect.loadData),$.$loadData&&($._loadData=$.$loadData,delete $.$loadData)},loadRule($,Y,Q){const K=[];return $.forEach(te=>{if(lt.String(te))return K.push(te);if(te._fc_drag_skip)return;let q=k.dragRuleList[te._fc_drag_tag]||k.dragRuleList[te.type];if(q||(q=J0(te),te._fc_drag_tag="_"),Q&&(te._fc_template=Q),q&&q.loadRule&&q.loadRule(te),te.children=F.loadRule(te.children||[],q,Q),q){const ie=te.slot;let de;Y&&Y.slot&&ie&&ie!=="default"&&(de=F.getSlotConfig(Y,ie,q)),delete te.slot,te=F.makeRule(de||q,te),ie&&(te.slot=ie)}else F.tidyRule(te);K.push(te)}),K},parseRule($,Y){return[...$].reduce((Q,K)=>{let te=Y;if(lt.String(K))return Q.push(K),Q;if(K.type==="DragBox")return Q.push(...F.parseRule(K.children,te||K.slot)),Q;if(K.type==="DragTool"){if(te=K.slot||Y,K=K.children[0],lt.String(K))return Q.push(K),Q;if(K.type==="DragBox")return Q.push(...F.parseRule(K.children,te||K.slot)),Q}return!K||K._fc_drag_skip||(K={...K},te&&te!=="default"&&(K.slot=te),K.children&&K.children.length&&(K.children=F.parseRule(K.children)),delete K.key,delete K.component,delete K._fc_page_tag,K._menu&&(K._menu.parseRule&&K._menu.parseRule(K),delete K._menu),K._fc_drag_tag==="_"&&delete K._fc_drag_tag,["control","computed","on","hidden","display"].forEach(ie=>{K["_"+ie]!=null&&K["_"+ie]!==""&&(K[ie]=K["_"+ie]),delete K["_"+ie]}),K.slot||delete K.slot,K._loadData&&(K.$loadData=K._loadData,delete K._loadData),K.props&&Object.keys(K.props).forEach(ie=>{const de=K.props[ie];Un(de)&&delete K.props[ie]}),K.props&&K.props.key&&(K.key=K.props.key),[K.wrap,K.title,K.info,K].forEach(ie=>{ie&&Object.keys(ie).filter(de=>de.indexOf("__")===0||ie[de]===""||Array.isArray(ie[de])&&ie[de].length===0||lt.Object(ie[de])&&Object.keys(ie[de]).length===0).forEach(de=>{delete ie[de]})}),Q.push(K)),Q},[])},fields(){return k.dragForm.api.all().map($=>$.field).filter($=>!!$)},getTitle($){var Y,Q,K;return(((K=(Q=(Y=$==null?void 0:$.__fc__)==null?void 0:Y.refRule)==null?void 0:Q.__$title)==null?void 0:K.value)||$.title||"").trim()||$.props&&$.props.label||W("com."+($._menu&&$._menu.name)+".name")||$._menu&&$._menu.label||$.type},baseChange($,Y,Q,K){F.handleChange("",$,Y,Q,K)},formOptChange($,Y){k.form.value[$]=Y,$.indexOf(">")===-1&&($="form>"+$);let Q=k.formOptions;const K=$.split(">"),te=K.pop();K.forEach(q=>{q&&(Q[q]||(Q[q]={}),Q=Q[q])}),Q[te]=Y},propRemoveField($,Y,Q){var K,te,q;if(k.activeRule&&Q[k.activeRule._fc_id]===k.activeRule){F.unWatchActiveRule();const ie=$;k.dragForm.api.sync(k.activeRule),$.indexOf("__")!==0&&($==="formCreateChild"?delete k.activeRule.children[0]:$.indexOf("formCreate")===0||$.indexOf(">")>0?($.indexOf("formCreate")<0&&($="props>"+$),Z($,({source:de,field:Ee})=>{delete de[Ee]})):delete k.activeRule.props[$]),F.watchActiveRule(),(q=(te=(K=k.activeRule._menu)==null?void 0:K.watch)==null?void 0:te[ie])==null||q.call(te,{field:ie,value:void 0,api:Q,rule:k.activeRule,ctx:c})}},propChange($,Y,Q,K){F.handleChange("props",$,Y,Q,K)},computedChange($,Y,Q,K){F.handleChange("_computed",$,Y,Q,K)},styleChange($,Y,Q,K){if(k.customForm.config)return k.customForm.config.style.change($,Y);F.handleChange("",$,Y,Q,K)},handleChange($,Y,Q,K,te){var q,ie,de;if(k.activeRule&&te[k.activeRule._fc_id]===k.activeRule){F.unWatchActiveRule();const Ee=Y;Y.indexOf("__")!==0&&(Y==="formCreateChild"?k.activeRule.children[0]=Q:Y.indexOf("formCreate")===0||Y.indexOf(">")>0?(Y.indexOf("formCreate")<0&&(Y=($?$+">":"")+Y),Z(Y,({source:Se,field:ke})=>{Un(Q)?delete Se[ke]:Se[ke]=Q})):$&&Un(Q)?delete k.activeRule[$][Y]:($?k.activeRule[$]:k.activeRule)[Y]=Q),F.watchActiveRule(),(de=(ie=(q=k.activeRule._menu)==null?void 0:q.watch)==null?void 0:ie[Ee])==null||de.call(ie,{field:Ee,value:Q,api:te,rule:k.activeRule,ctx:c})}},validateChange($,Y,Q,K){!k.activeRule||k.validateForm.api[k.activeRule._fc_id]!==k.activeRule||(F.handleChange("",$,Y,Q,K),k.dragForm.api.refreshValidate(),k.dragForm.api.nextTick(()=>{k.dragForm.api.clearValidateState(k.activeRule.__fc__.id)}))},triggerActive($){let Y;if(lt.String($)&&($=F.findRule($)),!!$&&($._menu.inside?Y=$.children[0]:Y=$.__fc__.parent.rule,Y&&Y.type==="DragTool")){const Q=k.dragForm.api.el(Y.__fc__.id);Q&&(f.active=Q.id,c.emit("active",$),F.toolActive($))}},customFormChange($,Y){k.customForm.config&&k.customForm.config.change($,Y)},customActive($){k.baseForm.isShow=!1,k.propsForm.isShow=!1,k.propsForm.variable=!1,k.advancedForm.isShow=!1,k.styleForm.isShow=!!$.style&&F.getConfig("showStyleForm")!==!1,k.eventShow=!1,k.validateForm.isShow=!1,k.activeRule=null,k.customForm.config=$,k.customForm.isShow=!0,k.customForm.propsShow=$.props&&F.getConfig("showPropsForm")!==!1,k.customForm.key=Ye(),k.customForm.rule=k.customForm.propsShow?$.props({t:W}):[],k.customForm.options.formData=$.formData,$.style&&(k.styleForm.value=$.style.formData||{}),n.nextTick(()=>{k.activeTab="props"})},getPropsRule($){let Y=R($._menu.props,E.value&&E.value[$._menu.name],$,{t:W,api:k.dragForm.api});if(E.value&&E.value.default){const Q=E.value.default;Y=R(()=>Y,lt.Function(Q)?{rule:Q,append:!0}:Q,$,{t:W,api:k.dragForm.api})}return Y},findRule($){let Y;const Q=K=>{K.forEach(te=>{[te.rule.field,te.rule.name,te.rule._fc_id].indexOf($)>-1?Y=te.rule:te.children&&Q(te.children)})};return Q(k.treeInfo),Y},toolActive($){F.unWatchActiveRule(),k.customForm.isShow=!1,k.customForm.config=null,k.activeRule&&(delete k.propsForm.api[k.activeRule._fc_id],delete k.baseForm.api[k.activeRule._fc_id],delete k.validateForm.api[k.activeRule._fc_id],delete k.styleForm.api[k.activeRule._fc_id],delete k.advancedForm.api[k.activeRule._fc_id],delete k.dragForm.api.activeRule),k.activeRule=$,k.dragForm.api.activeRule=$,n.nextTick(()=>{k.activeTab="props",n.nextTick(()=>{k.propsForm.api[k.activeRule._fc_id]=k.activeRule,k.baseForm.api[k.activeRule._fc_id]=k.activeRule,k.validateForm.api[k.activeRule._fc_id]=k.activeRule,k.styleForm.api[k.activeRule._fc_id]=k.activeRule,k.advancedForm.api[k.activeRule._fc_id]=k.activeRule})}),k.cacheProps[$._fc_id]||(k.cacheProps[$._fc_id]=F.getPropsRule($));const Y=F.getConfig("hiddenItemConfig",{}),Q=F.getConfig("disabledItemConfig",{}),K=is([...(Y==null?void 0:Y.default)||[],...(Y==null?void 0:Y[$._menu.name])||[],...$._menu.hiddenBaseField||[]]),te=is([...(Q==null?void 0:Q.default)||[],...(Q==null?void 0:Q[$._menu.name])||[]]);k.baseForm.api.hidden(!1),k.baseForm.api.disabled(!1),K.length&&n.nextTick(()=>{k.baseForm.api.hidden(!0,K),k.propsForm.api.hidden(!0,K)}),te.length&&(k.baseForm.api.disabled(!0,te),n.nextTick(()=>{k.propsForm.api.disabled(!0,te)})),F.getConfig("showControl",!0)||k.baseForm.api.hidden(!0,"_control");const q=Hn($,"field");k.advancedForm.api.hidden(!q,["value","$required","props.disabled"]),k.baseForm.isShow=q&&$.input!==!1&&F.getConfig("showBaseForm")!==!1,k.propsForm.isShow=k.cacheProps[$._fc_id].length>0&&F.getConfig("showPropsForm")!==!1,k.propsForm.variable=$._menu.variable!==!1&&F.getConfig("showVariable")!==!1,k.styleForm.isShow=$._menu.style!==!1&&F.getConfig("showStyleForm")!==!1,k.advancedForm.isShow=$._menu.advanced!==!1&&F.getConfig("showAdvancedForm")!==!1,k.eventShow=$._menu.event&&$._menu.event.length>0&&F.getConfig("showEventForm")!==!1,k.validateForm.isShow=k.baseForm.isShow&&$._menu.validate!==!1&&F.getConfig("showValidateForm")!==!1,k.propsForm.rule=k.cacheProps[$._fc_id],F.updateRuleFormData(),F.watchActiveRule()},getConfig($,Y){return g.value&&Hn(g.value,$)?g.value[$]:Y},updateRuleFormData(){const $=k.activeRule;let Y={formCreateChild:""+($==null?void 0:$.children[0]),"formCreateWrap>title":!0,"formCreateWrap>labelCol>style>width":"","formCreateWrap>class":"","formCreateCol>span":"","formCreateWrap>style>marginBottom":""};const Q=g.value.appendConfigData;lt.Function(Q)?Y={...Y,...Q($)}:Array.isArray(Q)&&Q.forEach(q=>{Y[q]=void 0}),Object.keys($).forEach(q=>{["effect","config","payload","id","type","_menu"].indexOf(q)<0&&(Y["formCreate"+co(q)]=et($[q]))}),Object.keys($.props).forEach(q=>{const ie=$.props[q];Y[q]=et(ie),lt.Object(ie)&&Object.keys(ie).forEach(de=>{Y[q+">"+de]=et(ie[de])})}),["props","effect","attrs","style","wrap","col"].forEach(q=>{$[q]&&typeof $[q]=="object"&&Object.keys($[q]).forEach(ie=>{Y["formCreate"+co(q)+">"+ie]=et($[q][ie])})});const K={};["value","hidden","$required","props.disabled"].forEach(q=>{K[q]=$._computed&&$._computed[q]||""});const te=$._menu.attrs||{};Object.keys(te).forEach(q=>{Y["__"+q]=te[q]({rule:$})}),k.propsForm.value=Y,k.styleForm.value={style:$.style,class:$.class,id:$.id},k.advancedForm.value=K,k.baseForm.isShow&&(k.baseForm.value={field:$.field,title:$.title||"",info:$.info,ignore:$.ignore||!1,_control:$._control,...Y},k.validateForm.value={validate:$.validate?[...$.validate]:[],$required:Y.formCreate$required},k.dragForm.api.refreshValidate(),k.dragForm.api.nextTick(()=>{k.dragForm.api.clearValidateState($.__fc__.id)}))},dragStart($){k.moveRule=$,k.added=!1},dragUnchoose($,Y){k.addRule={children:$,oldIndex:Y.oldIndex}},clickMenu($){F.dragMenu({menu:$,children:k.children,index:k.children.length})},clickField($,Y,Q,K){const te={...$.update||{}};te.title||(te.title=$.label),$.field&&(te.field=$.field),$.rule?F.dragMenu({rule:$.rule,children:Y||k.children,index:Q==null?k.children.length:Q,slot:K,update:te}):$.item&&F.dragMenu({menu:k.dragRuleList[$.item],children:Y||k.children,index:Q==null?k.children.length:Q,slot:K,update:te})},checkOnly($){let Y=!1;return k.dragForm.api.all().forEach(Q=>{Y=Y||Q._fc_template===$.name||Q._menu&&Q._menu.name===$.name}),Y&&Zt(k.t("struct.only",{label:W("com."+$.name+".name")||$.label})),Y},dragMenu({rule:$,menu:Y,children:Q,index:K,slot:te,update:q}){if(k.inputForm.state||Y&&Y.only&&F.checkOnly(Y))return;const ie=ke=>{const qe=[];return ke.forEach(Ve=>{Ve._fc_page_tag?F.appendPage(Ve._fc_page_tag,Ve):qe.push(Ve)}),qe};F.handleAddBefore();const de=Y?k.dragRuleList[Y.name]:null;c.emit("drag",{item:Y,dragRule:de,rule:$});let Ee=[];if($)lt.String($)?($=F.batchReplaceUni($),$=je.parseJson($)):$=je.parseJson(F.batchReplaceUni(je.toJson($))),Array.isArray($)||($=[$]),Ee=ie(F.loadRule($));else if(de.template){let ke="";lt.Function(de.template)?ke=je.toJson(de.template({t:W})):Array.isArray(de.template)?ke=je.toJson(de.template):ke=""+de.template,de.autoField&&(ke=F.replaceTemplateField(ke)),ke=F.batchReplaceUni(ke),Ee=ie(F.loadRule(je.parseJson(ke),null,Y.name))}else Ee.push(F.makeRule(k.dragRuleList[de.name]));te&&Ee.forEach(ke=>{ke&&(ke.slot=te)});const Se=Ee[0]&&Ee[0].type==="DragTool"?Ee[0].children[0]:Ee[0];q&&F.mergeRule(Se,q),Q.splice(K,0,...Ee),de.formOptions&&F.mergeOptions(typeof de.formOptions=="string"?je.parseJson(de.formOptions):de.formOptions),F.handleAddAfter(de&&de.template?{template:Ee}:{rule:Se}),Se&&F.getConfig("autoActive",!0)&&n.nextTick(()=>{F.triggerActive(Se)})},mergeRule($,Y){Object.keys(Y).forEach(Q=>{Q==="required"?$.$required=!!Y.required:Q==="disabled"?($.props||($.props={}),$.props.disabled=!!Y.disabled):Q==="props"?$.props={...$.props||{},...et(Y[Q])}:$[Q]=et(Y[Q])})},replaceField($){const Y=["array","object"].indexOf($._menu.subForm)>-1;let Q=F.parseRule(et([$]))[0];const K=F.getConfig("autoResetName")!==!1;return Y&&(Q.field=Ye(),K&&(Q.name="ref_"+Ye())),Q=je.toJson(Q),Y?Q=F.batchReplaceUni(Q):(Q=F.batchReplaceField(Q),K&&(Q=F.batchReplaceName(Q))),F.loadRule([je.parseJson(Q)])[0]},batchReplaceField($){const Y=/"field"\s*:\s*"(\w[\w\d]+)"/g,Q=[];return $=$.replace(Y,(K,te)=>{const q=Ye();return Q.push({old:te,key:q}),`"field":"${q}"`}).replace(/"computed"\s*:\s*(\{\s*(?:"[^"]*"\s*:\s*"(?:\\"|[^"])*"(?:,\s*)?)*\})/g,(K,te)=>{const q=JSON.parse(te);return Q.forEach(ie=>{Object.keys(q).forEach(de=>{q[de]=`${q[de]}`.replaceAll(ie.old,ie.key)})}),`"computed":${JSON.stringify(q)}`}),F.batchReplaceUni($)},replaceTemplateField($){const Y=/"field"\s*:\s*"(\w[\w\d]+)"/g;let Q;const K=[];for(;(Q=Y.exec($))!==null;)K.push({old:Q[1],key:Ye()});return K.forEach(te=>{$=$.replaceAll(te.old,te.key)}),$},batchReplaceUni($){const Y=/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g;return $=$.replace(Y,()=>`"_fc_id":"id_${Ye()}"`),$},batchReplaceName($){const Y=/"name"\s*:\s*"ref_(\w[\w\d]+)"/g;return $=$.replace(Y,()=>`"name":"ref_${Ye()}"`),$},dragPut($,Y,Q){const K=$.el.__rule__&&($.el.__rule__._config||$.el.__rule__._menu);if(!K)return!0;const te=Q._fc_allow_drag||{};if(te[K.name]===void 0){const q=Q._underlying_vm_.__fc__?Q._underlying_vm_._config||Q._underlying_vm_._menu:Q._underlying_vm_;te[K.name]=!(q&&K&&!F.checkAllowDrag(q,K)),Q._fc_allow_drag=te}return Q._fc_allow_drag[K.name]},checkAllowDrag($,Y){function Q(q){return Array.isArray(q)&&(q={item:q}),gp(q.item).indexOf($.name)>-1?!0:gp(q.menu).indexOf($.menu)>-1}const K=F.getConfig("allowDrag",{})[Y.name],te=F.getConfig("denyDrag",{})[Y.name];return Y.allowDrag&&Q(Y.allowDrag)||K&&Q(K)?!0:Y.allowDrag||K||Y.denyDrag&&Q(Y.denyDrag)?!1:!(te&&Q(te))},dragAdd($,Y,Q){const K=Y.newIndex,te=Y.item._underlying_vm_||Y.item.__rule__;if(k.added=!0,!!te)if(te.__fc__){if(k.addRule){F.handleSortBefore();const q=k.addRule.children.splice(k.addRule.children.indexOf(te),1)[0];Q?q.slot=Q:delete q.slot,$.splice(K,0,q),F.handleSortAfter({rule:q})}}else te._field?F.clickField(te,$,K,Q):F.dragMenu({menu:te,children:$,index:K,slot:Q})},dragEnd($,{newIndex:Y,oldIndex:Q},K){if(!k.added&&!(k.moveRule===$&&Y===Q)){F.handleSortBefore();const te=k.moveRule.splice(Q,1);K&&(te[0].slot=K),$.splice(Y,0,te[0]),F.handleSortAfter({rule:te[0]})}k.moveRule=null,k.addRule=null,k.added=!1,k.bus.$emit("dragEnd")},getSlotConfig($,Y,Q){let K={};return($.slot||[]).forEach(te=>{te.name===Y&&(K=te.config||{})}),{...Q,dragBtn:!1,handleBtn:Q.children?["addChild"]:!1,...K}},makeRule($,Y){let Q=Y||$.rule({t:W});const K=_.value&&_.value[$.name];if(!Y&&K)if(typeof K=="function")try{K(Q)}catch(le){console.error(le)}else{let le=et(K);delete le.children,delete le.component,Q=qp([Q,le])}Q._menu=n.markRaw($),Q._fc_id||(Q._fc_id="id_"+Ye()),!Q.name&&!$.aide&&(Q.name="ref_"+Ye()),$.component&&(Q.component=n.markRaw($.component)),Q._computed||(Q._computed={}),Q.effect||(Q.effect={}),$.input&&!Q.field&&(Q.field=Ye()),Q.$easySlots||(Q.$easySlots={}),$.languageKey&&F.mergeOptions({languageKey:$.languageKey}),F.tidyRule(Q),Q.display=!0,Q.hidden=!1,Q._fc_drag_tag=$.name,$.container&&(Q._fc_page_tag=$.name);let te=$.only===!0;if(!te&&Q._fc_template){const le=k.dragRuleList[Q._fc_template];te=le&&le.only===!0}const q=lt.trueArray(Q.children),ie={},de=[];($.slot||[]).forEach(le=>{typeof le=="string"?de.push(le):(ie[le.name]=le,de.push(le.name))});const Ee={default:[]};de.map(le=>{Ee[le]=[]}),q&&Q.children.forEach(le=>{le.slot?(Ee[le.slot]||(Ee[le.slot]=[]),Ee[le.slot].push(le)):Ee.default.push(le)});const Se=(le,we,Ie,ze)=>{const ct=F.makeDrag(le,we,Ie,{end:(rt,Fe)=>F.dragEnd(rt.self.children,Fe),add:(rt,Fe)=>F.dragAdd(rt.self.children,Fe),start:(rt,Fe)=>F.dragStart(rt.self.children,Fe),unchoose:(rt,Fe)=>F.dragUnchoose(rt.self.children,Fe)},ze);return ct._config=Q._menu,ct};let ke;const qe=Q._menu?Q._menu.name:Q.type;if(Object.keys(Ee).forEach(le=>{const we=le==="default";if(!we||$.drag){let Ie;if(ie[le]&&!we){if(!Y){const ze=k.dragRuleList[ie[le].type];Ie=F.makeRule({...ze,dragBtn:!1,handleBtn:ze.children?["addChild"]:!1,...ie[le].config||{}}),Ie.slot=le}}else Ie=Se(!0,qe+(we?"":"-slot-"+le),Y?Ee[le].map(ze=>(delete ze.slot,ze)):F.loadRule(Ee[le]),le);Ie&&(Ee[le]=[Ie])}we&&$.drag&&(ke=Ee[le][0])}),$.children&&!Y&&!q)for(let le=0;le<($.childrenLen||1);le++){const we=F.makeRule(k.dragRuleList[$.children]);(ke?ke.children:Ee.default).push(we)}const Ve=[];de.indexOf("default")===-1&&(Ve.push(...Ee.default),delete Ee.default),de.forEach(le=>{Ve.push(...Ee[le]),delete Ee[le]}),Object.keys(Ee).forEach(le=>{Ve.push(...Ee[le])}),Q.children=Ve;const ge=i.value!==void 0?i.value!==!1:$.mask!==!1;if($.tool===!1)return Q;const Ae={dragBtn:$.dragBtn!==!1,inline:$.inline===!0,actions:$.actions?$.actions.map(le=>le.label):[],children:$.children,mask:ge,inside:$.inside,hidden:Q._hidden===!0||Q._display===!1,handleBtn:$.handleBtn,only:te};return $.inside?(Q.children=F.makeChildren([{type:"DragTool",props:Ae,inject:!0,on:{action({self:le},we){const Ie=F.getParent(le).parent;$.actions[we].handler(Ie),k.activeRule===Ie&&F.updateRuleFormData()},delete:({self:le})=>{const we=F.getParent(le).parent;F.handleRemoveBefore({parent:we,rule:we})!==!1&&(we.__fc__.rm(),c.emit("delete",we),k.activeRule===we&&F.clearActiveRule(),F.handleRemoveAfter({rule:we}))},create:({self:le})=>{F.handleAddBefore();const we=F.getParent(le);c.emit("create",we.parent);const Ie=F.makeRule(we.parent._menu);we.parent.slot&&(Ie.slot=we.parent.slot),we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleAddAfter({rule:we.parent})},addChild:({self:le})=>{F.handleAddBefore();const we=F.getParent(le),Ie=we.parent._menu,ze=k.dragRuleList[Ie.children];if(!ze)return;const ct=F.makeRule(ze);(Ie.drag?we.parent.children[0]:we.parent).children[0].children.push(ct),F.handleAddAfter({rule:ct})},copy:({self:le})=>{F.handleCopyBefore();const we=F.getParent(le);c.emit("copy",we.parent);const Ie=F.replaceField(we.parent);we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleCopyAfter({rule:we.parent})},active:({self:le})=>{const we=F.getParent(le);c.emit("active",we.parent),setTimeout(()=>{F.toolActive(we.parent)},10)}},_config:Q._menu,children:Q.children}]),Q):{type:"DragTool",props:Ae,_fc_page_tag:Q._fc_page_tag,inject:!0,display:!!Q.display,on:{action({self:le},we){$.actions[we].handler(le.children[0]),k.activeRule===le.children[0]&&F.updateRuleFormData()},delete:({self:le})=>{F.handleRemoveBefore({parent:le,rule:le.children[0]})!==!1&&(c.emit("delete",le.children[0]),le.__fc__.rm(),k.activeRule===le.children[0]&&F.clearActiveRule(),F.handleRemoveAfter({rule:le.children[0]}))},create:({self:le})=>{F.handleAddBefore(),c.emit("create",le.children[0]);const we=F.getParent(le),Ie=F.makeRule(le.children[0]._menu);we.parent.slot&&(Ie.slot=we.parent.slot),we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleAddAfter({rule:Ie})},addChild:({self:le})=>{F.handleAddBefore();const we=le.children[0]._menu,Ie=k.dragRuleList[we.children];if(!Ie)return;const ze=F.makeRule(Ie);(we.drag?le.children[0]:le).children[0].children.push(ze),F.handleAddAfter({rule:ze})},copy:({self:le})=>{F.handleCopyBefore(),c.emit("copy",le.children[0]);const we=F.getParent(le),Ie=F.replaceField(le.children[0]);le.slot&&(Ie.slot=le.slot),we.root.children.splice(we.root.children.indexOf(we.parent)+1,0,Ie),F.handleCopyAfter({rule:le.children[0]})},active:({self:le})=>{c.emit("active",le.children[0]),setTimeout(()=>{F.toolActive(le.children[0])},10)}},_config:Q._menu,children:F.makeChildren([Q])}},toolHidden($){const Y=!($._hidden!==void 0&&$._hidden);$._menu.inside?$.children[0].props.hidden=Y:$.__fc__.parent.rule.props.hidden=Y,$._hidden=Y,Y||($._display=!0)},toolHandle($,Y){if(!$._fc_drag_tag||$._menu.tool===!1){$.__fc__.rm();return}let Q;$._menu.inside?Q=$.children[0].__fc__.exportEl:Q=$.__fc__.parent.exportEl,Q.$emit(Y)},handleAddBefore(){},handleRemoveBefore({parent:$,rule:Y}){},handleCopyBefore(){},handleSortBefore(){},addOperationRecord(){const $=F.getPageJson(),Y=et(k.inputForm.data),Q=k.operation.list.slice(0,k.operation.idx+1);Q.push({rule:$,formData:Y}),k.operation.list=Q,k.operation.idx=Q.length-1,k.unloadStatus=Q.length!==1},prevOperationRecord(){if(!k.operation.list[k.operation.idx-1])return;const $=k.operation.list[--k.operation.idx];F.useOperationRecord($),F.clearActiveRule()},nextOperationRecord(){if(!k.operation.list[k.operation.idx+1])return;const $=k.operation.list[++k.operation.idx];F.useOperationRecord($),F.clearActiveRule()},useOperationRecord($){k.inputForm.data=$.formData,F.setRule($.rule,!0)},handleAddAfter(){F.addOperationRecord(),F.updateTree()},handleRemoveAfter(){F.addOperationRecord(),F.updateTree()},handleCopyAfter(){F.addOperationRecord(),F.updateTree()},handleSortAfter(){F.addOperationRecord(),F.updateTree()},treeChange($,Y){$.stopPropagation(),F.triggerActive(Y.rule)},getFormDescription(){return Fu(F.getDescription())},getDescription(){return Mu(k.dragForm.rule[0].children)},getSubFormDescription($){let Y=$.__fc__&&$.__fc__.parent;for(;Y;){if(Y.rule._menu&&["array","object"].indexOf(Y.rule._menu.subForm)>-1)return Fu(Mu(Y.rule.children));Y=Y.parent}return null},getSubFormChildren($){let Y=$.__fc__&&$.__fc__.parent;for(;Y;){if(Y.rule._menu&&["array","object"].indexOf(Y.rule._menu.subForm)>-1)return Y.rule.children||[];Y=Y.parent}return null},updateTree:Xf(function(){n.nextTick(()=>{k.treeInfo=ns(k.dragForm.rule[0].children)})},300),findTree($){let Y;const Q=K=>{K.forEach(te=>{te.rule.field===$?Y=te.children:te.children&&Q(te.children)})};return Q(k.treeInfo),Y||[]},handleDragenter($){k.bus.$emit("dragenter",$)},handleDragleave($){k.bus.$emit("dragleave",$)},handleDrop($){k.bus.$emit("drop",$)},changeEvent($){k.activeRule._on=$},triggerHandle($){$.handle()},bindHotkey($){const Y=$.ctrlKey||$.metaKey;if(!getSelection().toString()&&Y&&$.target.tagName==="BODY"&&["ArrowUp","ArrowDown","c"].indexOf($.key)>-1&&k.activeRule){$.preventDefault();let Q=k.activeRule;if($.key==="c"){Wn("FormCreate:"+je.toJson(F.parseRule([Q])[0])),c.emit("copyRule",{event:$,rule:Q});return}if(k.inputForm.state)return;Q._menu.inside||(Q=Q.__fc__.parent.rule);const K=Q.__fc__.parent.rule,te=K.children.indexOf(Q);if(K.children.length>1&&te>=0){const q=$.key==="ArrowUp"?-1:$.key==="ArrowDown"?1:0;q&&te+q>=0&&te+q<K.children.length&&(K.children.splice(te,1),K.children.splice(te+q,0,Q),c.emit("sort"+($.key==="ArrowUp"?"Up":"Down"),{event:$,rule:Q}))}}},bindPaste($){if(k.inputForm.state)return;let Y=$.clipboardData.getData("text/plain");if(Y&&Y.indexOf("FormCreate:")===0){let Q=k.children;Y=Y.slice(11,Y.length);const K=F.loadRule([je.parseJson(Y)])[0];if(k.activeRule&&k.activeRule._menu.drag)k.activeRule._menu.inside?Q=k.activeRule.children[0].children[0].children:Q=k.activeRule.children[0].children;else if(k.customForm.config&&k.customForm.config.onPaste){k.customForm.config.onPaste(K);return}Q.push(K),c.emit("pasteRule",{event:$,copyRule:K})}}};F.initPage(),F.setOption({}),o.value?rf.forEach($=>{k.dragRuleList[$.name]=$}):F.addComponent(rf);const oe=n.computed(()=>Object.keys(F.getPreviewFormData()).length>0);return{...n.toRefs(k),...F,fieldRef:C,formListRef:w,dragHeight:b,onlyPC:t,t:W,handle:d,inputCheckStatus:oe,fieldReadonly:S,fieldList:x,varList:O,hiddenMenu:D,hiddenItem:V,hiddenDragMenu:I,hiddenDragBtn:z,activeRuleChildren:P,dragConHeight:T,pageCount:J,antLocale:B,antTheme:Yl.theme,configFormOrderStyle:L}},created(){document.body.ondrop=e=>{e.preventDefault(),e.stopPropagation()},window.onbeforeunload=e=>{this.unloadStatus&&(e.returnValue=this.t("designer.unload"))}},mounted(){var e;this.theme&&document.body.classList.add("fd-theme-"+this.theme),this.updateThemeColor(),((e=this.config)==null?void 0:e.hotKey)!==!1&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)}}),qS={class:"_fc-l-label"},ex={class:"_fc-l-info"},tx={class:"_fc-l-global"},nx={class:"_fc-l-label"},ix={class:"_fc-l-label"},ox={class:"_fc-l-label"},rx={class:"_fc-l-label"},ax={class:"_fc-l-label"},lx={class:"_fc-l-info"},sx={class:"_fc-l-label"},dx={class:"_fc-l-info"},cx=["onClick"],ux=["onClick"],fx={class:"_fc-l-icon"},px={class:"_fc-l-name"},hx={key:1,class:"_fc-l-name"},mx=["onClick"],gx={class:"_fc-tree-label"},vx=["onClick"],yx={class:"_fc-m-tools-l"},bx={class:"devices"},Cx={class:"_fc-m-tools-r"},_x={class:"_fd-input-btn"},wx={key:0,class:"fc-icon icon-check"},Ex={key:0,class:"_fc-m-input"},Ax={key:0,class:"_fc-m-input-handle"},Sx={class:"_fc-r-title"},xx={class:"_fc-r-title"},kx={style:{"grid-area":"base"}},Nx={style:{"grid-area":"advanced"}},Tx={style:{"grid-area":"props"}},Ox={style:{"grid-area":"slots"}},Dx={style:{"grid-area":"style"}},Bx={style:{"grid-area":"event"}},$x={style:{"grid-area":"validate"}},Rx={key:0,class:"_fd-preview-device"},Vx={key:0,class:"_fd-preview-mobile"},Ix={key:3,class:"_fd-preview-code",ref:"previewCode"},Fx=["innerHTML"],Mx={key:4,class:"_fd-preview-code",ref:"previewCode"},Px=["innerHTML"];function Lx(e,t,o,r,i,s){const d=n.resolveComponent("a-tooltip"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("a-layout-sider"),g=n.resolveComponent("AiChat"),y=n.resolveComponent("LanguageConfig"),C=n.resolveComponent("JsonPreview"),w=n.resolveComponent("GlobalEventConfig"),A=n.resolveComponent("GlobalFetchConfig"),E=n.resolveComponent("GlobalClassConfig"),_=n.resolveComponent("GlobalVariableConfig"),v=n.resolveComponent("a-layout-content"),m=n.resolveComponent("a-layout"),b=n.resolveComponent("FormList"),S=n.resolveComponent("PageInput"),x=n.resolveComponent("a-layout-header"),O=n.resolveComponent("fcDraggable"),D=n.resolveComponent("FieldList"),V=n.resolveComponent("a-menu-item"),I=n.resolveComponent("a-menu"),z=n.resolveComponent("a-dropdown"),T=n.resolveComponent("a-directory-tree"),B=n.resolveComponent("QuickLayout"),L=n.resolveComponent("a-button"),U=n.resolveComponent("a-popconfirm"),W=n.resolveComponent("a-switch"),R=n.resolveComponent("ViewForm"),k=n.resolveComponent("DragFormMobile"),P=n.resolveComponent("DragForm"),j=n.resolveComponent("a-spin"),Z=n.resolveComponent("ToolsBar"),J=n.resolveComponent("Warning"),F=n.resolveComponent("TypeSelect"),oe=n.resolveComponent("a-input"),pe=n.resolveComponent("SubList"),se=n.resolveComponent("ConfigTitle"),ye=n.resolveComponent("VariableConfig"),fe=n.resolveComponent("PropsInput"),ue=n.resolveComponent("SlotsConfig"),he=n.resolveComponent("EventConfig"),$=n.resolveComponent("a-tab-pane"),Y=n.resolveComponent("a-tabs"),Q=n.resolveComponent("ViewFormMobile"),K=n.resolveComponent("a-modal"),te=n.resolveComponent("a-config-provider");return n.openBlock(),n.createBlock(te,{theme:{token:{fontSize:14,fontSizeSM:12,...e.themeColor}},locale:e.antLocale},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fc-designer",style:n.normalizeStyle(e.height?`height:${e.dragHeight};flex:initial;`:""),ref:"designer",onDragenter:e.handleDragenter,onDragleave:e.handleDragleave,onDrop:e.handleDrop},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(m,{style:{height:"100%"},key:e.locale&&e.locale.name},{default:n.withCtx(()=>[n.createVNode(f,{class:"_fc-l-menu",width:"40px"},{default:n.withCtx(()=>[e.formListRef&&e.formListRef.length?(n.openBlock(),n.createBlock(d,{key:0,title:e.t("designer.formList"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item _fc-l-menu-form",{active:e.activeModule==="form"}]),onClick:t[0]||(t[0]=q=>e.activeModule="form")},t[44]||(t[44]=[n.createElementVNode("i",{class:"fc-icon icon-menu2"},null,-1)]),2)]),_:1},8,["title"])):n.createCommentVNode("",!0),n.createVNode(d,{title:e.t("designer.comList"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="base"}]),onClick:t[1]||(t[1]=q=>e.activeModule="base")},t[45]||(t[45]=[n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)]),2)]),_:1},8,["title"]),e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(d,{key:1,title:e.t("designer.pageManage"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="page"}]),onClick:t[2]||(t[2]=q=>e.activeModule="page")},[n.createVNode(c,{count:e.pageCount},{default:n.withCtx(()=>t[46]||(t[46]=[n.createElementVNode("i",{class:"fc-icon icon-page"},null,-1)])),_:1},8,["count"])],2)]),_:1},8,["title"])):n.createCommentVNode("",!0),n.createVNode(d,{title:e.t("form.globalConfig"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="global"}]),onClick:t[3]||(t[3]=q=>e.activeModule="global")},t[47]||(t[47]=[n.createElementVNode("i",{class:"fc-icon icon-data"},null,-1)]),2)]),_:1},8,["title"]),e.getConfig("showLanguage",!0)?(n.openBlock(),n.createBlock(d,{key:2,title:e.t("language.name"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="language"}]),onClick:t[4]||(t[4]=q=>e.activeModule="language")},t[48]||(t[48]=[n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)]),2)]),_:1},8,["title"])):n.createCommentVNode("",!0),e.getConfig("showJsonPreview",!0)?(n.openBlock(),n.createBlock(d,{key:3,title:"JSON",placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="json"}]),onClick:t[5]||(t[5]=q=>e.activeModule="json")},t[49]||(t[49]=[n.createElementVNode("i",{class:"fc-icon icon-script"},null,-1)]),2)]),_:1})):n.createCommentVNode("",!0),e.getConfig("showAi",!0)?(n.openBlock(),n.createBlock(d,{key:4,title:e.t("ai.name"),placement:"right"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="ai"}]),onClick:t[6]||(t[6]=q=>e.activeModule="ai")},t[50]||(t[50]=[n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)]),2)]),_:1},8,["title"])):n.createCommentVNode("",!0)]),_:1}),n.createVNode(f,{class:"_fc-l",width:e.activeModule==="language"?"450px":"266px"},{default:n.withCtx(()=>[e.activeModule==="ai"?(n.openBlock(),n.createBlock(g,{key:0})):n.createCommentVNode("",!0),e.activeModule==="language"?(n.openBlock(),n.createBlock(y,{key:1})):n.createCommentVNode("",!0),e.activeModule==="json"?(n.openBlock(),n.createBlock(C,{key:2})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("div",qS,n.toDisplayString(e.t("form.globalConfig")),1),n.createElementVNode("div",ex,n.toDisplayString(e.t("warning.globalConfig")),1),n.createElementVNode("div",tx,[n.createElementVNode("div",nx,n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(w,{ref:"globalEvent",modelValue:e.formOptions.globalEvent,"onUpdate:modelValue":t[7]||(t[7]=q=>e.formOptions.globalEvent=q)},null,8,["modelValue"]),n.createElementVNode("div",ix,n.toDisplayString(e.t("form.globalFetch")),1),n.createVNode(A,{ref:"globalFetch",modelValue:e.formOptions.globalData,"onUpdate:modelValue":t[8]||(t[8]=q=>e.formOptions.globalData=q)},null,8,["modelValue"]),n.createElementVNode("div",ox,n.toDisplayString(e.t("form.globalClass")),1),n.createVNode(E,{ref:"globalClass",modelValue:e.formOptions.globalClass,"onUpdate:modelValue":t[9]||(t[9]=q=>e.formOptions.globalClass=q)},null,8,["modelValue"]),n.createElementVNode("div",rx,n.toDisplayString(e.t("computed.variable.title")),1),n.createVNode(_,{ref:"globalVariable",modelValue:e.formOptions.globalVariable,"onUpdate:modelValue":t[10]||(t[10]=q=>e.formOptions.globalVariable=q)},null,8,["modelValue"])])]),_:1})]),_:1},512),[[n.vShow,e.activeModule==="global"]]),e.formListRef&&e.formListRef.length?n.withDirectives((n.openBlock(),n.createBlock(m,{key:3},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("div",ax,n.toDisplayString(e.t("designer.formList")),1),n.createElementVNode("div",lx,n.toDisplayString(e.t("warning.formList")),1),n.renderSlot(e.$slots,"form-list",{},()=>[n.createVNode(b,{list:e.formListRef},null,8,["list"])])]),_:3})]),_:3},512)),[[n.vShow,e.activeModule==="form"]]):n.createCommentVNode("",!0),e.activeModule==="page"?(n.openBlock(),n.createBlock(m,{key:4},{default:n.withCtx(()=>[e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(v,{key:0},{default:n.withCtx(()=>[n.createElementVNode("div",sx,n.toDisplayString(e.t("designer.pageManage")),1),n.createElementVNode("div",dx,n.toDisplayString(e.t("warning.pageManage")),1),n.createVNode(S,{onDelete:e.deletePage,onCopy:e.copyPage,onAdd:e.addPage,onChange:e.changePage},null,8,["onDelete","onCopy","onAdd","onChange"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),e.activeModule==="base"?(n.openBlock(),n.createBlock(m,{key:5},{default:n.withCtx(()=>[n.createVNode(x,{style:{height:"40px"},class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="menu"}]),onClick:t[11]||(t[11]=q=>e.activeMenuTab="menu")},n.toDisplayString(e.t("menu.component")),3),e.field&&e.field.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="field"}]),onClick:t[12]||(t[12]=q=>e.activeMenuTab="field")},n.toDisplayString(e.t("props.field")),3)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="tree"}]),onClick:t[13]||(t[13]=q=>e.activeMenuTab="tree")},n.toDisplayString(e.t("menu.tree")),3)]),_:1}),n.withDirectives(n.createVNode(v,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menuList,(q,ie)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:ie},[(q.name==="template"?e.config.showTemplate!==!1:!0)&&e.hiddenMenu.indexOf(q.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-group",{"is-template":q.name==="template"}])},[n.createElementVNode("h4",{class:"_fc-l-title",onClick:de=>q.hidden=!q.hidden},[n.createTextVNode(n.toDisplayString(e.t("menu."+q.name)||q.title)+" ",1),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-arrow",{down:!q.hidden}])},null,2)],8,cx),n.withDirectives(n.createVNode(O,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:q.list},{item:n.withCtx(({element:de})=>[e.hiddenItem.indexOf(de.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-item",{"is-inline":de.inline}]),onClick:Ee=>e.clickMenu(de)},[q.name!=="template"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",fx,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",de.icon||"icon-input"])},null,2)]),n.createElementVNode("span",px,n.toDisplayString(e.t("com."+de.name+".name")||de.label),1)],64)):(n.openBlock(),n.createElementBlock("span",hx,n.toDisplayString(e.t("tmp."+de.name)||de.label),1))],10,ux)):n.createCommentVNode("",!0)]),_:2},1032,["list"]),[[n.vShow,!q.hidden]])],2)):n.createCommentVNode("",!0)],64))),128))]),_:1},512),[[n.vShow,e.activeMenuTab==="menu"]]),e.activeMenuTab==="field"?(n.openBlock(),n.createBlock(v,{key:0},{default:n.withCtx(()=>[n.createVNode(D,{field:e.fieldRef},null,8,["field"])]),_:1})):n.createCommentVNode("",!0),e.activeMenuTab==="tree"?(n.openBlock(),n.createBlock(v,{key:1},{default:n.withCtx(()=>[n.createVNode(T,{ref:"treeRef",class:"_fc-struct-tree","tree-data":e.treeInfo,selectable:!1,showIcon:!1,defaultExpandAll:""},{title:n.withCtx(({data:q})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-tree-node",{active:e.activeRule===q.rule}]),onClick:n.withModifiers(ie=>e.treeChange(ie,q),["stop"])},[n.createElementVNode("div",gx,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",q.rule._menu&&q.rule._menu.icon||"icon-cell"])},null,2),n.createElementVNode("span",null,n.toDisplayString(e.getTitle(q.rule)),1)]),!q.slot&&!q.rule._fc_page_tag?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fc-tree-more",onClick:t[14]||(t[14]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",q.rule._hidden===!0?"icon-eye-close":"icon-eye"]),onClick:ie=>e.toolHidden(q.rule),style:{"margin-right":"8px"}},null,10,vx),n.createVNode(z,{size:"default",trigger:"click"},{overlay:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[q.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(V,{key:"1",onClick:ie=>e.toolHandle(q.rule,"copy")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.copy")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),q.rule._menu&&q.rule._menu.children&&q.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(V,{key:"2",onClick:ie=>e.toolHandle(q.rule,"addChild")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.appendChild")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),n.createVNode(V,{key:"3",onClick:ie=>e.toolHandle(q.rule,"delete")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:n.withCtx(()=>[t[51]||(t[51]=n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1))]),_:2},1024)])):n.createCommentVNode("",!0)],10,mx)]),_:1},8,["tree-data"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0)]),_:3},8,["width"]),n.createVNode(m,{class:"_fc-m"},{default:n.withCtx(()=>[n.createVNode(x,{class:"_fc-m-tools",style:{height:"40px"}},{default:n.withCtx(()=>[n.createElementVNode("div",yx,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.getConfig("showDevice")!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",bx,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pc",{active:e.device==="pc"}]),onClick:t[15]||(t[15]=q=>e.setDevice("pc"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pad",{active:e.device==="pad"}]),onClick:t[16]||(t[16]=q=>e.setDevice("pad"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-mobile",{active:e.device==="mobile"}]),onClick:t[17]||(t[17]=q=>e.setDevice("mobile"))},null,2)]),t[52]||(t[52]=n.createElementVNode("div",{class:"line"},null,-1))],64)):n.createCommentVNode("",!0),e.getConfig("showQuickLayout")!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(B),t[53]||(t[53]=n.createElementVNode("div",{class:"line"},null,-1))],64)):n.createCommentVNode("",!0),n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pre-step",{disabled:!e.operation.list[e.operation.idx-1]}]),onClick:t[18]||(t[18]=(...q)=>e.prevOperationRecord&&e.prevOperationRecord(...q))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-next-step",{disabled:!e.operation.list[e.operation.idx+1]}]),onClick:t[19]||(t[19]=(...q)=>e.nextOperationRecord&&e.nextOperationRecord(...q))},null,2)])],64))]),n.createElementVNode("div",Cx,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"handle"),e.getConfig("showSaveBtn",!1)?(n.openBlock(),n.createBlock(L,{key:0,class:"_fd-btn-success",size:"small",onClick:e.handleSave},{default:n.withCtx(()=>[t[54]||(t[54]=n.createElementVNode("i",{class:"fc-icon icon-save"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.createVNode(L,{class:"_fd-btn-primary",size:"small",onClick:e.openPreview},{default:n.withCtx(()=>[t[55]||(t[55]=n.createElementVNode("i",{class:"fc-icon icon-preview"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.preview")),1)]),_:1},8,["onClick"]),n.createVNode(U,{title:e.t("designer.clearWarn"),"ok-text":e.t("props.clear"),"cancel-text":e.t("props.cancel"),onConfirm:e.clearDragRule},{default:n.withCtx(()=>[n.createVNode(L,{class:"_fd-btn-danger",size:"small"},{default:n.withCtx(()=>[t[56]||(t[56]=n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.clear")),1)]),_:1})]),_:1},8,["title","ok-text","cancel-text","onConfirm"]),e.handle&&e.handle.length?(n.openBlock(),n.createBlock(z,{key:1,trigger:"click",size:"default",placement:"bottom"},{overlay:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.handle,q=>(n.openBlock(),n.createBlock(V,{onClick:n.withModifiers(ie=>e.triggerHandle(q),["stop"])},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(q.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[n.createVNode(L,{class:"_fd-m-extend",ghost:"",size:"small"},{default:n.withCtx(()=>t[57]||(t[57]=[n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1)])),_:1})]),_:1})):n.createCommentVNode("",!0)],64)),e.getConfig("showInputData",!0)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[58]||(t[58]=n.createElementVNode("div",{class:"line"},null,-1)),n.createElementVNode("div",_x,[e.inputCheckStatus?(n.openBlock(),n.createElementBlock("i",wx)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(e.t("props.inputData"))+"\uFF1A",1),n.createVNode(W,{size:"small",checked:e.inputForm.state,"onUpdate:checked":e.openInputData},null,8,["checked","onUpdate:checked"])])],64)):n.createCommentVNode("",!0)])]),_:3}),n.createVNode(v,{class:"_fc-m-con"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-m-drag",e.device]),ref:"dragCon",style:n.normalizeStyle({"--fc-drag-empty":`'${e.t("designer.dragEmpty")}'`,"--fc-child-empty":`'${e.t("designer.childEmpty")}'`})},[n.createVNode(j,{spinning:e.dragLoading},{default:n.withCtx(()=>[e.inputForm.state?(n.openBlock(),n.createElementBlock("div",Ex,[(n.openBlock(),n.createBlock(R,{key:e.inputForm.key,rule:e.inputForm.rule,option:e.inputForm.option,api:e.inputForm.api,"onUpdate:api":t[20]||(t[20]=q=>e.inputForm.api=q),disabled:!1},n.createSlots({_:2},[n.renderList(e.$slots,(q,ie)=>({name:ie,fn:n.withCtx(de=>[n.renderSlot(e.$slots,ie,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"]))])):e.device==="mobile"&&!e.onlyPC?(n.openBlock(),n.createBlock(k,{key:1,driver:"antd",rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[21]||(t[21]=q=>e.dragForm.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,ie)=>({name:ie,fn:n.withCtx(de=>[n.renderSlot(e.$slots,ie,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"])):(n.openBlock(),n.createBlock(P,{key:2,rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[22]||(t[22]=q=>e.dragForm.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,ie)=>({name:ie,fn:n.withCtx(de=>[n.renderSlot(e.$slots,ie,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"]))]),_:3},8,["spinning"])],6),e.inputForm.state?(n.openBlock(),n.createElementBlock("div",Ax,[n.createVNode(L,{onClick:t[23]||(t[23]=q=>e.inputClear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.clear")),1)]),_:1}),n.createVNode(L,{onClick:t[24]||(t[24]=q=>e.inputReset())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.reset")),1)]),_:1}),n.createVNode(L,{type:"primary",onClick:t[25]||(t[25]=q=>e.inputSave())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1})])):n.createCommentVNode("",!0)]),_:3})]),_:3}),!e.config||e.config.showConfig!==!1?(n.openBlock(),n.createBlock(f,{key:0,class:"_fc-r",width:"320px"},{default:n.withCtx(()=>[n.createVNode(m,{style:{height:"100%"}},{default:n.withCtx(()=>[n.createVNode(x,{style:{height:"auto"},class:"_fc-r-tabs"},{default:n.withCtx(()=>[!!e.activeRule||e.customForm.isShow||e.config&&e.config.showFormConfig===!1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="props"}]),onClick:t[26]||(t[26]=q=>e.activeTab="props")},n.toDisplayString(e.t("designer.component")),3)):n.createCommentVNode("",!0),!e.config||e.config.showFormConfig!==!1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="form"}]),onClick:t[27]||(t[27]=q=>e.activeTab="form")},n.toDisplayString(e.t("designer.form")),3)):n.createCommentVNode("",!0),e.activeTab==="props"?(n.openBlock(),n.createBlock(Z,{key:2})):n.createCommentVNode("",!0)]),_:1}),!e.config||e.config.showFormConfig!==!1?n.withDirectives((n.openBlock(),n.createBlock(v,{key:0,class:"_fc-r-tab-form"},{default:n.withCtx(()=>[n.createVNode(P,{rule:e.form.rule,option:e.form.option,modelValue:e.form.value,onChange:e.formOptChange,api:e.form.api,"onUpdate:api":t[28]||(t[28]=q=>e.form.api=q)},{title:n.withCtx(q=>[q.rule.warning?(n.openBlock(),n.createBlock(J,{key:0,tooltip:q.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(q.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(q.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","onChange","api"])]),_:1},512)),[[n.vShow,e.activeTab==="form"]]):n.createCommentVNode("",!0),n.withDirectives((n.openBlock(),n.createBlock(v,{class:"_fc-r-tab-props",key:e.activeRule?e.activeRule._fc_id:e.customForm.config?e.customForm.key:""},{default:n.withCtx(()=>{var q;return[e.activeRule||e.customForm.config&&(e.customForm.config.name||e.customForm.config.label)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",Sx,n.toDisplayString(e.t("designer.type")),1),n.createVNode(F),e.activeRule&&e.activeRule.name?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",xx,[n.createVNode(J,{tooltip:e.t("warning.name")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.name")),1)]),_:1},8,["tooltip"])]),n.createVNode(oe,{size:"small",class:"_fc-r-name-input",value:e.activeRule.name,readonly:""},{suffix:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[29]||(t[29]=(...ie)=>e.copyName&&e.copyName(...ie))})]),addonAfter:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[30]||(t[30]=(...ie)=>e.updateName&&e.updateName(...ie))})]),_:1},8,["value"])],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),e.activeRuleChildren?(n.openBlock(),n.createBlock(pe,{key:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"_fc-r-config",style:n.normalizeStyle({"grid-template-areas":e.configFormOrderStyle})},[n.createElementVNode("div",kx,[e.baseForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-base"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.rule")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(P,{api:e.baseForm.api,"onUpdate:api":t[31]||(t[31]=ie=>e.baseForm.api=ie),rule:e.baseForm.rule,option:e.baseForm.options,modelValue:e.baseForm.value,onChange:e.baseChange},{title:n.withCtx(ie=>[ie.rule.warning?(n.openBlock(),n.createBlock(J,{key:0,tooltip:ie.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ie.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(ie.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.baseForm.isShow]])]),n.createElementVNode("div",Nx,[e.advancedForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-advanced"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.advanced")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(P,{api:e.advancedForm.api,"onUpdate:api":t[32]||(t[32]=ie=>e.advancedForm.api=ie),rule:e.advancedForm.rule,option:e.advancedForm.options,modelValue:e.advancedForm.value,onChange:e.computedChange},null,8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.advancedForm.isShow]])]),n.createElementVNode("div",Tx,[e.propsForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props"))+" ",1),e.propsForm.variable?(n.openBlock(),n.createBlock(ye,{key:0})):n.createCommentVNode("",!0),e.activeRule&&e.getConfig("showCustomProps",!0)?(n.openBlock(),n.createBlock(fe,{key:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(P,{api:e.propsForm.api,"onUpdate:api":t[33]||(t[33]=ie=>e.propsForm.api=ie),rule:e.propsForm.rule,option:e.propsForm.options,modelValue:e.propsForm.value,onChange:e.propChange,onRemoveField:e.propRemoveField},{title:n.withCtx(ie=>[ie.rule.warning?(n.openBlock(),n.createBlock(J,{key:0,tooltip:ie.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ie.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(ie.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[n.vShow,e.propsForm.isShow]]),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(se,{key:1,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props")),1)]),_:1})):n.createCommentVNode("",!0),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(P,{api:e.customForm.api,"onUpdate:api":t[34]||(t[34]=ie=>e.customForm.api=ie),rule:e.customForm.rule,option:e.customForm.options,key:e.customForm.key,onChange:e.customFormChange},null,8,["api","rule","option","onChange"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",Ox,[e.activeRule&&((q=e.config)==null?void 0:q.showSlotsConfig)!==!1&&e.activeRule._menu.easySlots&&e.activeRule._menu.easySlots.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(se,{id:"_fd-config-slots"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.slots")),1)]),_:1}),n.createVNode(ue)],64)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Dx,[e.styleForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-style"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.style")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(P,{rule:e.styleForm.rule,option:e.styleForm.options,modelValue:e.styleForm.value,onChange:e.styleChange,api:e.styleForm.api,"onUpdate:api":t[35]||(t[35]=ie=>e.styleForm.api=ie)},null,8,["rule","option","modelValue","onChange","api"]),[[n.vShow,e.styleForm.isShow]])]),n.createElementVNode("div",Bx,[e.eventShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-event"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.event")),1)]),_:1})):n.createCommentVNode("",!0),e.eventShow?(n.openBlock(),n.createBlock(he,{key:1,"event-name":e.activeRule&&e.activeRule._menu.event||[],"component-name":e.activeRule&&e.activeRule._menu.name||"","model-value":e.activeRule&&e.activeRule._on||{},"onUpdate:modelValue":e.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",$x,[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.validateForm.isShow?(n.openBlock(),n.createBlock(se,{key:0,id:"_fd-config-validate"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.validate")),1)]),_:1})):n.createCommentVNode("",!0),e.validateForm.isShow?(n.openBlock(),n.createBlock(P,{api:e.validateForm.api,"onUpdate:api":t[36]||(t[36]=ie=>e.validateForm.api=ie),rule:e.validateForm.rule,option:e.validateForm.options,modelValue:e.validateForm.value,onChange:e.validateChange,key:e.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)])],4)]}),_:1})),[[n.vShow,e.activeTab==="props"]])]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(K,{open:e.preview.state,"onUpdate:open":t[43]||(t[43]=q=>e.preview.state=q),width:"800px",class:"_fd-preview-dialog",centered:"",destroyOnClose:!0,footer:null},{default:n.withCtx(()=>[n.createVNode(Y,{class:"_fd-preview-tabs",activeKey:e.previewStatus,"onUpdate:activeKey":t[37]||(t[37]=q=>e.previewStatus=q)},{default:n.withCtx(()=>[n.createVNode($,{tab:e.t("form.formMode"),key:"form"},null,8,["tab"]),n.createVNode($,{tab:e.t("form.previewMode"),key:"preview"},null,8,["tab"]),n.createVNode($,{tab:e.t("form.componentMode"),key:"component"},null,8,["tab"]),e.previewDevice!=="mobile"?(n.openBlock(),n.createBlock($,{tab:e.t("form.sfcMode"),key:"sfc"},null,8,["tab"])):n.createCommentVNode("",!0)]),_:1},8,["activeKey"]),e.previewStatus!=="sfc"&&!e.onlyPC?(n.openBlock(),n.createElementBlock("div",Rx,[n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="pc"}),onClick:t[38]||(t[38]=q=>e.previewDevice="pc")},[t[59]||(t[59]=n.createElementVNode("i",{class:"fc-icon icon-pc2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.pc")),1)],2),n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="mobile"}),onClick:t[39]||(t[39]=q=>e.previewDevice="mobile")},[t[60]||(t[60]=n.createElementVNode("i",{class:"fc-icon icon-mobile2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.mobile")),1)],2)])):n.createCommentVNode("",!0),["component","sfc"].indexOf(e.previewStatus)>-1?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-preview-copy",onClick:t[40]||(t[40]=(...q)=>e.copyCode&&e.copyCode(...q))},t[61]||(t[61]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.previewStatus==="form"||e.previewStatus==="preview"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.previewDevice==="mobile"?(n.openBlock(),n.createElementBlock("div",Vx,[n.createElementVNode("div",null,[e.preview.state?(n.openBlock(),n.createBlock(Q,{key:0,driver:"antd",rule:e.preview.rule,option:e.preview.option,api:e.preview.api,"onUpdate:api":t[41]||(t[41]=q=>e.preview.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,ie)=>({name:ie,fn:n.withCtx(de=>[n.renderSlot(e.$slots,ie,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"])):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.preview.state?(n.openBlock(),n.createBlock(R,{key:0,rule:e.preview.rule,option:e.preview.option,api:e.preview.api,"onUpdate:api":t[42]||(t[42]=q=>e.preview.api=q)},n.createSlots({_:2},[n.renderList(e.$slots,(q,ie)=>({name:ie,fn:n.withCtx(de=>[n.renderSlot(e.$slots,ie,n.normalizeProps(n.guardReactiveProps(de!=null?de:{})))])}))]),1032,["rule","option","api"])):n.createCommentVNode("",!0)],64))],64)):e.previewStatus==="component"?(n.openBlock(),n.createElementBlock("pre",Ix,[n.createElementVNode("code",{innerHTML:e.previewDevice==="mobile"?e.preview.mobileHtml:e.preview.html},null,8,Fx)],512)):(n.openBlock(),n.createElementBlock("pre",Mx,[n.createElementVNode("code",{innerHTML:e.preview.sfc},null,8,Px)],512))]),_:3},8,["open"])]),_:3}))]),_:3})]),_:3},8,["style","onDragenter","onDragleave","onDrop"])]),_:3},8,["theme","locale"])}const Ot=Oe(ZS,[["render",Lx]]),yL="",jx=n.defineComponent({name:"DragTool",emits:["create","copy","addChild","delete","active","action","fc.el"],props:{dragBtn:Boolean,children:String,inside:Boolean,inline:Boolean,hidden:Boolean,mask:Boolean,actions:Array,handleBtn:[Boolean,Array],formCreateInject:Object,unique:String,only:Boolean},inject:{fcx:{default:null},designer:{default:null},dragTool:{default:null}},provide(){return{dragTool:this}},computed:{isCreate(){return this.dragTool?!!this.dragTool.children:!1},btns(){return Array.isArray(this.handleBtn)?this.handleBtn.length?this.handleBtn:!1:this.handleBtn!==!1},id(){return this.unique||this.formCreateInject.id},hiddenMenu(){return this.designer.setupState.hiddenDragMenu},t(){return this.designer.setupState.t},hiddenBtn(){return this.designer.setupState.hiddenDragBtn}},methods:{command(e){this.$emit("action",e)},active(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted(){this.$emit("fc.el",this)}}),zx={key:0,class:"_fd-drag-mask"},Hx={key:1,class:"_fd-drag-hidden"},Ux={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},Wx={key:3,class:"_fd-drag-r"};function Gx(e,t,o,r,i,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),f=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-drag-tool",{active:e.fcx.active===e.id,"is-inside":e.inside,"is-inline":e.inline}]),onClick:t[10]||(t[10]=n.withModifiers((...g)=>e.active&&e.active(...g),["stop"]))},[e.mask?(n.openBlock(),n.createElementBlock("div",zx)):n.createCommentVNode("",!0),e.hidden?(n.openBlock(),n.createElementBlock("div",Hx,[t[11]||(t[11]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)])):n.createCommentVNode("",!0),e.hiddenBtn?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-l",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[e.dragBtn!==!1?n.withDirectives((n.openBlock(),n.createElementBlock("div",Ux,t[12]||(t[12]=[n.createElementVNode("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[n.vShow,e.fcx.active===e.id]]):n.createCommentVNode("",!0)])),e.btns!==!1&&!e.hiddenMenu?(n.openBlock(),n.createElementBlock("div",Wx,[n.renderSlot(e.$slots,"handle",{},()=>[e.actions&&e.actions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-drag-btn",onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(f,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actions,(g,y)=>(n.openBlock(),n.createBlock(d,{onClick:C=>e.command(y)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t(g)||g),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[t[13]||(t[13]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})])):n.createCommentVNode("",!0),e.isCreate&&(e.btns===!0||e.btns.indexOf("create")>-1)?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-drag-btn",onClick:[t[2]||(t[2]=n.withModifiers(()=>{},["stop"])),t[3]||(t[3]=g=>e.$emit("create"))]},t[14]||(t[14]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]))):n.createCommentVNode("",!0),!e.only&&(e.btns===!0||e.btns.indexOf("copy")>-1)?(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-btn",onClick:[t[4]||(t[4]=n.withModifiers(()=>{},["stop"])),t[5]||(t[5]=g=>e.$emit("copy"))]},t[15]||(t[15]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.children&&(e.btns===!0||e.btns.indexOf("addChild")>-1)?(n.openBlock(),n.createElementBlock("div",{key:3,class:"_fd-drag-btn",onClick:[t[6]||(t[6]=n.withModifiers(()=>{},["stop"])),t[7]||(t[7]=g=>e.$emit("addChild"))]},t[16]||(t[16]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]))):n.createCommentVNode("",!0),e.btns===!0||e.btns.indexOf("delete")>-1?(n.openBlock(),n.createElementBlock("div",{key:4,class:"_fd-drag-btn _fd-drag-danger",onClick:[t[8]||(t[8]=n.withModifiers(()=>{},["stop"])),t[9]||(t[9]=g=>e.$emit("delete"))]},t[17]||(t[17]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]))):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")],2)}const uh=Oe(jx,[["render",Gx]]),bL="",Kx=n.defineComponent({name:"HtmlEditor",emits:["update:modelValue"],props:{modelValue:String,title:String,defaultValue:{require:!1}},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{validateXML(e){var i;const r=new DOMParser().parseFromString(e,"application/xml").getElementsByTagName("parsererror");return r.length>0&&(i=r[0].innerText.split(`
`)[0])!=null?i:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=n.markRaw(di(this.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:this.modelValue||""}))})},onOk(){const e=this.editor.getValue();return this.validateXML(e)?(Zt(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),Yx={class:"_fd-html-editor"},Qx={key:0,ref:"editor"};function Xx(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Yx,[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=f=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1}),n.createVNode(c,{class:"_fd-html-editor-con",title:e.title||e.t("struct.title"),open:e.visible,"onUpdate:open":t[2]||(t[2]=f=>e.visible=f),centered:"",maskClosable:!1,destroyOnClose:!0,width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[1]||(t[1]=f=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",Qx,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","open"])])}const Jx=Oe(Kx,[["render",Xx]]),CL="",Zx=n.defineComponent({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldList(){if(this.key)return this.getFieldList()},subformFieldList(){const e=this.designer.setupState.fieldList||[],t=this.fieldLeafSelectable?e:this.removeLeafNodes(et(e));return t.length?t:e},fieldReadonly(){return this.designer.setupState.fieldReadonly},isSubform(){return this.activeRule&&this.activeRule._menu.subForm},activeRule(){return this.designer.setupState.activeRule},relationField(){return this.designer.props.config.relationField},fieldLeafSelectable(){return this.designer.props.config.fieldLeafSelectable!==!1},t(){return this.designer.setupState.t}},data(){return{value:this.modelValue||"",oldValue:"",key:1,activeNode:null}},watch:{modelValue(e){this.value=e}},methods:{updateValue(e){this.fieldReadonly||this.disabled||(this.value=e.target.value,this.onInput(),e.target.blur())},getFieldList(){let e=this.designer.setupState.fieldList||[];if(this.relationField===!1)return e;if(this.isSubform)e=this.subformFieldList;else{const t=this.activeRule;let o=t&&t.__fc__&&t.__fc__.parent;for(;o;)if(o.rule._menu&&["array","object"].indexOf(o.rule._menu.subForm)>-1){const r=this.findChildrenById(e,o.rule.field)||e;r.length&&(e=r);break}else o=o.parent}return e},removeLeafNodes(e){if(!Array.isArray(e)||e.length===0)return e;function t(o){return o.filter(r=>r.children&&r.children.length>0?(r.children=t(r.children),!0):!1)}return t(e)},findChildrenById(e,t){if(!Array.isArray(e))return null;for(const o of e){if(o.value===t)return o.children||[];if(o.children){const r=this.findChildrenById(o.children,t);if(r!==null)return r}}return null},copy(){Wn(this.modelValue)},getSubChildren(){let e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=lt.trueArray(e)?e:this.designer.setupState.children,e},getSubFieldChildren(){const e=this.getSubChildren(),t=[],o=r=>(r&&r.forEach(i=>{i&&i._fc_drag_tag&&i.field?t.push({...i,children:[]}):i&&i.children&&o(i.children)}),t);return o(e)},checkValue(){const e=this.oldValue;Pu(e);let t=(this.value||"").replace(/[\s\ ]/g,"");if(t)if(/^[a-zA-Z]/.test(t)){if(e!==t){const o=t.indexOf(".")>-1;if(o&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(r=>r.field===t).length>0)return Zt(this.t("computed.fieldExist",{label:t})),e;if(o)return t}}else return Zt(this.t("computed.fieldChar")),e;else return Zt(this.t("computed.fieldEmpty")),e;return this.oldValue="",t},onFocus(){this.oldValue=this.value},makeField(){this.oldValue=this.value,this.value=Ye(),this.onInput()},updateRule(e){const t={...e.update||{}};t.title||(t.title=e.label),this.designer.setupState.mergeRule(this.activeRule,t),this.designer.setupState.updateRuleFormData()},onInput(){if(this.value!==this.modelValue&&(this.value=this.checkValue(),this.value!==this.modelValue)){const e=this.activeNode;this.activeNode=null,this.oldValue=this.value,this.$emit("update:modelValue",this.value),e&&this.updateRule(e)}},currentChange(e,t){this.activeNode=t,this.onInput()}},mounted(){const e=()=>{n.nextTick(()=>{++this.key})};this.designer.setupState.bus.$on("dragEnd",e),n.onUnmounted(()=>{this.designer.setupState.bus.$off("dragEnd",e)})}}),qx={class:"_fd-field-input"};function ek(e,t,o,r,i,s){const d=n.resolveComponent("a-input"),c=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",qx,[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[0]||(t[0]=n.withModifiers((...f)=>e.copy&&e.copy(...f),["stop"]))}),e.fieldList.length?(n.openBlock(),n.createBlock(c,{key:1,value:e.value,"onUpdate:value":t[3]||(t[3]=f=>e.value=f),"show-search":"",disabled:e.disabled,"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-default-expand-all":"","tree-data":e.fieldList,size:"small","tree-node-filter-prop":"label",onKeydown:n.withKeys(e.updateValue,["enter"]),onFocus:e.onFocus,onSelect:e.currentChange},null,8,["value","disabled","tree-data","onKeydown","onFocus","onSelect"])):(n.openBlock(),n.createBlock(d,{key:0,value:e.value,"onUpdate:value":t[2]||(t[2]=f=>e.value=f),readonly:e.fieldReadonly||e.disabled,disabled:e.fieldReadonly||e.disabled,size:"small",onFocus:e.onFocus,onBlur:e.onInput},n.createSlots({_:2},[e.fieldReadonly?void 0:{name:"addonAfter",fn:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[1]||(t[1]=(...f)=>e.makeField&&e.makeField(...f))})]),key:"0"}]),1032,["value","readonly","disabled","onFocus","onBlur"]))])}const tk=Oe(Zx,[["render",ek]]),_L="",nk=n.defineComponent({name:"PromptInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String,popperClass:String,options:Array},data(){return{value:this.modelValue||""}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}});function ik(e,t,o,r,i,s){const d=n.resolveComponent("a-menu-item"),c=n.resolveComponent("a-menu"),f=n.resolveComponent("a-dropdown"),g=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(g,{size:e.size,value:e.value,"onUpdate:value":t[0]||(t[0]=y=>e.value=y),onBlur:e.onInput,allowClear:"",class:"_fd-list-input"},{addonAfter:n.withCtx(()=>[n.createVNode(f,{size:"default",trigger:"click",class:n.normalizeClass(e.popperClass)},{overlay:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,y=>(n.openBlock(),n.createBlock(d,{key:y.value,onClick:C=>e.setValue(y.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1},8,["class"])]),_:1},8,["size","value","onBlur"])}const ok=Oe(nk,[["render",ik]]),wL="",rk=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},o){t._start=o.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},o){const r=t.getRule("action");r.value=r.value.substring(0,r._start)+o+r.value.substring(r._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],ak=n.defineComponent({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:Xn,DragForm:je.$form(),FnEditor:ci,StructEditor:Kd},inject:["designer"],data(){return{visible:!1,value:et(this.modelValue||{}),form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"default"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},configured(){return!lt.empty(this.modelValue)}},watch:{visible(e){e&&(this.value=et(this.modelValue||{}),this.active())}},methods:{open(){this.visible=!0},active(){const e=this.value;this.form.rule=e.type==="static"?[]:rk(this.t),this.form.formData={...e},this.form.label=e.label,this.form.type=e.type,this.form.data=e.data,this.form.dataType=e.dataType,this.form.parse=e.parse||"",this.form.onError=e.onError||""},save(){this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=this.form.parse,e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,e.to=this.to||"options",this.$emit("update:modelValue",e),this.visible=!1)}).catch(e=>{console.error(e),Zt(e.errorFields[0].errors[0])})}},created(){this.active()}}),lk={class:"_fd-fetch-config"},sk={class:"_fd-fetch-info"};function dk(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("Warning"),g=n.resolveComponent("DragForm"),y=n.resolveComponent("a-tab-pane"),C=n.resolveComponent("FnEditor"),w=n.resolveComponent("a-tabs"),A=n.resolveComponent("a-layout"),E=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",lk,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=_=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("struct.title")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(E,{class:"_fd-fetch-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[6]||(t[6]=_=>e.visible=_),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.optionsType.fetch"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.fetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[5]||(t[5]=_=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.save,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(A,{class:"_fd-fetch-con",style:{height:"450px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fc-tabs"},{default:n.withCtx(()=>[n.createVNode(y,{tab:e.t("fetch.config"),key:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",sk,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(g,{api:e.form.api,"onUpdate:api":t[1]||(t[1]=_=>e.form.api=_),modelValue:e.form.formData,"onUpdate:modelValue":t[2]||(t[2]=_=>e.form.formData=_),rule:e.form.rule,option:e.form.options},{title:n.withCtx(_=>[_.rule.warning?(n.openBlock(),n.createBlock(f,{key:0,tooltip:_.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(_.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(_.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["tab"]),n.createVNode(y,{lazy:"",key:"second"},{tab:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(f,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(C,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[3]||(t[3]=_=>e.form.parse=_),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(y,{lazy:"",tab:e.t("fetch.onError"),key:"third"},{default:n.withCtx(()=>[n.createVNode(C,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[4]||(t[4]=_=>e.form.onError=_),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["tab"])]),_:1})]),_:1})]),_:1},8,["open"])])}const ck=Oe(ak,[["render",dk]]),EL="",uk=n.defineComponent({name:"TableColumnConfig",components:{FnEditor:ci},props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null}},computed:{t(){return this.designer.setupState.t},tableColumns(){return[{title:this.t("com.dataTable.column.prop"),width:"100px",dataIndex:"prop"},{title:this.t("props.title"),width:"100px",dataIndex:"title"},{title:this.t("style.width"),width:"100px",dataIndex:"width"},{title:this.t("com.dataTable.filter"),width:"120px",dataIndex:"filter"},{title:"Class",width:"100px",dataIndex:"className"},{title:this.t("com.dataTable.column.sort"),width:"100px",dataIndex:"sorter"},{title:this.t("props.position"),width:"100px",dataIndex:"fixed"},{title:this.t("style.font.align"),width:"100px",dataIndex:"align"},{title:this.t("props.render"),width:"110px",dataIndex:"format"},{title:this.t("props.hide"),width:"50px",fixed:"right",dataIndex:"hidden"},{title:this.t("tableOptions.handle"),width:"70px",fixed:"right",dataIndex:"handle"}]},configured(){return!!this.modelValue},list(){var e;return((e=this.designer.setupState.activeRule)==null?void 0:e.__fc__.el.list)||[]},propColumns(){return Object.keys(this.list[0]||{})},format(){return["default","tag","image","custom"].map(e=>({label:this.t("com.dataTable.format."+e),value:e}))},align(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},fixed(){return[!1,"left","right"].map(e=>({label:this.t("com.dataTable.fixed."+(e||"default")),value:e}))},sortable(){return[!1,!0,"custom"].map(e=>({label:this.t("com.dataTable.sortable."+(typeof e=="boolean"?e?"default":"disabled":"custom")),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{getColumnData(e){const t=[];return e&&(this.list||[]).forEach(o=>{Hn(o,e)&&t.indexOf(o[e])===-1&&t.push(o[e])}),t},add(e){const t={format:"default",filter:[]};e!=null?this.column.splice(e+1,0,t):this.column.push(t)},remove(e){this.column.splice(e,1)},editFn(e){this.activeRow=e},updateFn(){this.activeRow=null},tidyValue(){this.column=et(this.modelValue||[]),this.column.length||this.add()},close(){this.activeRow?this.activeRow=null:this.visible=!1},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[];for(let t=0;t<this.column.length;t++){const o=this.column[t];if(!o.label){Zt(this.t("com.dataTable.requiredLabel"));return}const r={...o};if(r.label){if(r.format!=="custom")delete r.render;else if(!r.render){Zt(this.t("com.dataTable.requiredRender"));return}e.push(r)}}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),fk={class:"_fd-table-column-config"},pk={key:8,class:"flex"},hk=["onClick"],mk=["onClick"],gk=["onClick"],vk=["onClick"];function yk(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("FnEditor"),g=n.resolveComponent("a-select-option"),y=n.resolveComponent("a-select"),C=n.resolveComponent("a-input"),w=n.resolveComponent("a-switch"),A=n.resolveComponent("a-table"),E=n.resolveComponent("a-form-item-rest"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",fk,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=v=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.column.btn")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(_,{class:"_fd-tcc-dialog _fd-config-dialog",title:e.t("com.dataTable.column.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"middle",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",size:"middle",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(E,null,{default:n.withCtx(()=>[e.activeRow?(n.openBlock(),n.createBlock(f,{key:0,ref:"fn",modelValue:e.activeRow.render,"onUpdate:modelValue":t[1]||(t[1]=v=>e.activeRow.render=v),args:["scope","h"," resolveComponent","api"],name:"render"},null,8,["modelValue"])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(A,{"data-source":e.column,columns:e.tableColumns,size:"small",pagination:!1,scroll:{x:1200},style:{width:"100%"}},{bodyCell:n.withCtx(v=>[v.column.dataIndex==="prop"?(n.openBlock(),n.createBlock(y,{key:0,value:v.record.prop,"onUpdate:value":m=>v.record.prop=m,showSearch:"",onKeydown:n.withKeys(m=>v.record.prop=m.target.value,["enter"])},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.propColumns,m=>(n.openBlock(),n.createBlock(g,{value:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value","onKeydown"])):v.column.dataIndex==="title"?(n.openBlock(),n.createBlock(C,{key:1,value:v.record.label,"onUpdate:value":m=>v.record.label=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="width"?(n.openBlock(),n.createBlock(C,{key:2,value:v.record.width,"onUpdate:value":m=>v.record.width=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="filter"?(n.openBlock(),n.createBlock(y,{key:3,value:v.record.filter,"onUpdate:value":m=>v.record.filter=m,mode:"tags"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getColumnData(v.record.prop),m=>(n.openBlock(),n.createBlock(g,{value:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="className"?(n.openBlock(),n.createBlock(C,{key:4,value:v.record.className,"onUpdate:value":m=>v.record.className=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="sorter"?(n.openBlock(),n.createBlock(y,{key:5,value:v.record.sorter,"onUpdate:value":m=>v.record.sorter=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.sortable,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="fixed"?(n.openBlock(),n.createBlock(y,{key:6,value:v.record.fixed,"onUpdate:value":m=>v.record.fixed=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fixed,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="align"?(n.openBlock(),n.createBlock(y,{key:7,value:v.record.align,"onUpdate:value":m=>v.record.align=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.align,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="format"?(n.openBlock(),n.createElementBlock("div",pk,[n.createVNode(y,{value:v.record.format,"onUpdate:value":m=>v.record.format=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.format,m=>(n.openBlock(),n.createBlock(g,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"]),v.record.format==="custom"?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:m=>e.editFn(v.record)},null,8,hk)):n.createCommentVNode("",!0)])):v.column.dataIndex==="hidden"?(n.openBlock(),n.createBlock(w,{key:9,checked:v.record.hidden,"onUpdate:checked":m=>v.record.hidden=m},null,8,["checked","onUpdate:checked"])):v.column.dataIndex==="handle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:10},[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:m=>e.add(v.index)},null,8,mk),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:m=>e.remove(v.index)},null,8,gk)],64)):(n.openBlock(),n.createElementBlock("i",{key:11,class:"fc-icon icon-delete",onClick:m=>e.del(v.index)},null,8,vk))]),_:1},8,["data-source","columns"]),[[n.vShow,!e.activeRow]])]),_:1}),n.withDirectives(n.createVNode(d,{type:"link",onClick:t[2]||(t[2]=v=>e.add())},{default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},512),[[n.vShow,!e.activeRow]])]),_:1},8,["title","open"])])}const bk=Oe(uk,[["render",yk]]),AL="",Ck=n.defineComponent({name:"TableColumnConfig",props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null,activeKey:"",activeArgs:[]}},computed:{t(){return this.designer.setupState.t},tableColumns(){return[{title:this.t("props.preview"),width:"100px",dataIndex:"preview"},{title:"ID",width:"100px",dataIndex:"key"},{title:this.t("props.name"),dataIndex:"name"},{title:this.t("event.type"),width:"120px",dataIndex:"type"},{title:this.t("style.font.size"),width:"120px",dataIndex:"size"},{title:this.t("props.hide"),width:"80px",dataIndex:"hidden"},{title:this.t("props.callback"),width:"80px",dataIndex:"callback"},{title:this.t("tableOptions.handle"),width:"80px",dataIndex:"handle"}]},configured(){return!!this.modelValue},size(){return["large","default","small"].map(e=>({label:this.t("props."+e),value:e}))},type(){return["default","primary","dashed","link","text"].map(e=>({label:this.t("props."+e),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{btnProps(e){return{type:e.type,size:e.size}},defaultData(){return{key:this.column.length+1,name:this.t("props.button")+(this.column.length+1)}},add(e){e!=null?this.column.splice(e+1,0,this.defaultData()):this.column.push(this.defaultData())},handle(e,t,o){this.activeKey=t,this.activeRow=e,this.activeArgs=o},remove(e){this.column.splice(e,1)},tidyValue(){this.column=et(this.modelValue||[]),this.column.length||this.add()},close(){this.activeRow?this.activeRow=null:this.visible=!1},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[];for(let t=0;t<this.column.length;t++){const o=this.column[t];if(!o.name){Zt(this.t("com.dataTable.requiredName"));return}if(!o.key){Zt(this.t("com.dataTable.requiredKey"));return}e.push({...o})}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),_k={class:"_fd-table-button-config"},wk=["onClick"],Ek=["onClick"],Ak=["onClick"],Sk=["onClick"];function xk(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("FnEditor"),g=n.resolveComponent("a-input"),y=n.resolveComponent("a-select-option"),C=n.resolveComponent("a-select"),w=n.resolveComponent("a-switch"),A=n.resolveComponent("a-table"),E=n.resolveComponent("a-form-item-rest"),_=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",_k,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=v=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.button.btn")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(_,{class:"_fd-tcb-dialog _fd-config-dialog",title:e.t("com.dataTable.button.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=v=>e.visible=v),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"middle",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",size:"middle",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.activeRow?(n.openBlock(),n.createBlock(f,{key:0,ref:"fn",modelValue:e.activeRow[e.activeKey],"onUpdate:modelValue":t[1]||(t[1]=v=>e.activeRow[e.activeKey]=v),args:e.activeArgs,name:e.activeKey},null,8,["modelValue","args","name"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(E,null,{default:n.withCtx(()=>[n.withDirectives(n.createVNode(A,{"data-source":e.column,columns:e.tableColumns,size:"small",rowKey:"index",pagination:!1,style:{width:"100%"}},{bodyCell:n.withCtx(v=>[v.column.dataIndex==="preview"?(n.openBlock(),n.createBlock(d,n.normalizeProps(n.mergeProps({key:0},e.btnProps(v.record))),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(v.record.name),1)]),_:2},1040)):v.column.dataIndex==="key"?(n.openBlock(),n.createBlock(g,{key:1,value:v.record.key,"onUpdate:value":m=>v.record.key=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="name"?(n.openBlock(),n.createBlock(g,{key:2,value:v.record.name,"onUpdate:value":m=>v.record.name=m},null,8,["value","onUpdate:value"])):v.column.dataIndex==="type"?(n.openBlock(),n.createBlock(C,{key:3,value:v.record.type,"onUpdate:value":m=>v.record.type=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,m=>(n.openBlock(),n.createBlock(y,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="size"?(n.openBlock(),n.createBlock(C,{key:4,value:v.record.size,"onUpdate:value":m=>v.record.size=m},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.size,m=>(n.openBlock(),n.createBlock(y,{value:m.value,key:m.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):v.column.dataIndex==="hidden"?(n.openBlock(),n.createBlock(w,{key:5,checked:v.record.hidden,"onUpdate:checked":m=>v.record.hidden=m},null,8,["checked","onUpdate:checked"])):v.column.dataIndex==="callback"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:6},[n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:m=>e.handle(v.record,"handle",["props","scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.handle")),1),t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,wk),n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:m=>e.handle(v.record,"click",["scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.click")),1),t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,Ek)],64)):v.column.dataIndex==="handle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:7},[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:m=>e.add(v.index)},null,8,Ak),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:m=>e.remove(v.index)},null,8,Sk)],64)):n.createCommentVNode("",!0)]),_:1},8,["data-source","columns"]),[[n.vShow,!e.activeRow]])]),_:1}),n.createVNode(d,{type:"link",onClick:t[2]||(t[2]=v=>e.add())},{default:n.withCtx(()=>[t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1})],64))]),_:1},8,["title","open"])])}const kk=Oe(Ck,[["render",xk]]),SL="",Nk=n.defineComponent({name:"DataTable",emits:["change","handleClick","rowSelectionChange"],props:{column:{type:Array,default:()=>[]},globalDataKey:[String,Object],fetch:Object,data:{type:Array,default:()=>[]},button:Object,index:Boolean,selection:Boolean,page:Object,formCreateInject:Object},data(){return{total:0,loading:!1,unwatch:null,list:[],currentPage:1,id:1,order:"",orderBy:""}},watch:{globalDataKey(){this.initPage()},fetch(){this.globalDataKey||this.initPage()},data(){!this.globalDataKey&&!this.fetch&&this.initPage()},selection(){this.id++},index(){this.id++},page:{handler(){this.initPage(),this.id++},deep:!0},button:{handler(){this.id++},deep:!0}},computed:{filterList(){let e=this.list||[];const t=[];return this.column.forEach(o=>{o.prop&&Array.isArray(o.filter)&&o.filter.length>0&&t.push(r=>o.filter.indexOf(r[o.prop])>-1)}),t.forEach(o=>{e=e.filter(o)}),e},tableColumns(){const e=[];return this.column.forEach(t=>{e.push({dataIndex:t.prop,title:t.label,width:t.width,fixed:t.fixed,className:t.className,align:t.align,sorter:t.sorter==="custom"?!0:t.sorter?(o,r)=>o[t.prop]>r[t.prop]:!1,customRender:o=>this.makeTd(t,o)})}),this.button&&this.button.open===!0&&this.button.column&&e.push({dataIndex:"_handle",label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"125px",customRender:t=>(this.button.column||[]).filter(o=>o.hidden!==!0).map(o=>n.h(n.resolveComponent("a-button"),this.btnProps(o,t),()=>[o.name]))}),e}},render(){return n.h("div",{class:"_fc-data-table"},[n.h(n.resolveComponent("a-spin"),{spinning:this.loading},()=>[n.h(n.resolveComponent("a-table"),{dataSource:this.filterList,columns:this.tableColumns,pagination:!1,rowSelection:this.selection?{onChange:(...e)=>{this.$emit("rowSelectionChange",...e)}}:void 0,...this.$attrs,key:this.id,ref:"table",onChange:(...e)=>{const t=e[2];this.$emit("change",...e),t.order&&t.field?(this.orderBy=t.order==="descend"?"DESC":"ASC",this.order=t.field):(this.orderBy="",this.order=""),this.initPage()}}),this.makePage()])])},methods:{getEl(){return this.$refs.table},deepGet(e,t,o){t=(t||"").split(".");let r=0,i=t.length;for(;e!=null&&r<i;)e=e[t[r++]];return r&&r===i&&e!==void 0?e:o},initPage(){this.loading=!1,this.page&&this.page.open?(this.currentPage=1,this.nextList()):this.globalDataKey||this.fetch?this.fetchData().then(({list:e})=>{this.list=e}):this.list=this.data},btnProps(e,t){const o={type:e.type,size:e.size,onClick:i=>{i.stopPropagation();const s=Jl(e.click);try{s&&s(t,this.formCreateInject.api)}catch(d){console.error(d)}this.$emit("handleClick",{name:e.name,scope:t,column:t.record})}},r=Jl(e.handle);try{const i=r&&r(o,t,this.formCreateInject.api);typeof i=="boolean"&&(o.disabled=i)}catch(i){console.error(i)}return o},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:e,total:t})=>{this.list=e,this.total=t});else{const e=this.data,t=this.getLimit(),o=this.currentPage*t;this.list=e.slice(o-t,o),this.total=e.length}},fetchData(e){return this.unwatch&&this.unwatch(),new Promise(t=>{let o=this.fetch;if(this.globalDataKey){const r=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;o=this.formCreateInject.api.options.globalData[r]}if(o)if(o.type==="fetch"||!this.globalDataKey){o={...o};let r={};if(e){const s=this.page.props&&this.page.props.pageSize||20,d=this.page.pageField||"page",c=this.page.pageSizeField||"limit";r={[d]:this.currentPage,[c]:s}}if(this.order){const s=this.page.orderField||"order",d=this.page.orderByField||"orderBy";r[s]=this.order,r[d]=this.orderBy}const i=Object.keys(r).map(s=>encodeURIComponent(s)+"="+encodeURIComponent(r[s]),"").join("&");i&&(o.action+=(o.action.indexOf("?")!==-1?"&":"?")+i),this.loading=!0,o.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(o,(s,d)=>{this.loading=!1;const c=this.page.totalField,f=this.page.dataField,g=f?this.deepGet(s,f,[]):s;let y=c?this.deepGet(s,c):0;y||(y=g.length||0),t({list:g,total:y})},s=>{console.error(s),this.loading=!1},(s,d)=>{if(d)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let r=o.data||[],i=o.data.length;if(e){const s=this.getLimit(),d=this.currentPage*s;r=r.slice(d-s,d),i=r.length}t({list:r,total:i})}else t({list:[],total:0})})},changePage(e){this.currentPage=e,this.nextList()},makePage(){if(this.page&&this.page.open===!0)return n.h(n.resolveComponent("a-pagination"),{total:this.total,current:this.currentPage,showSizeChanger:!1,"onUpdate:current":e=>{this.currentPage!==e&&this.changePage(e)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},makeTd(e,t){return e.format==="custom"&&e.render?e.render(t,n.h,n.resolveComponent,this.formCreateInject.api):e.format==="tag"?n.h(n.resolveComponent("a-tag"),{color:"green"},()=>[this.deepGet(t.record,e.prop,"")]):e.format==="image"?n.h("div",{class:"_fc-data-table-img-list"},[n.h(n.resolveComponent("a-image-preview-group"),{},()=>{let o=this.deepGet(t.record,e.prop,"");return o=(Array.isArray(o)?o:[o]).filter(r=>!!r),o.map((r,i)=>n.h(n.resolveComponent("a-image"),{src:r}))})]):""+this.deepGet(t.record,e.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),xL="",Tk="[[FORM-CREATE-PREFIX-",Ok="-FORM-CREATE-SUFFIX]]",Dk=n.defineComponent({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:ci},data(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo(){const e={};return this.eventConfig.forEach(t=>{e[t.name]=t.info}),e},t(){return this.designer.setupState.t},eventNum(){let e=0;return Object.keys(this.modelValue||{}).forEach(t=>{this.modelValue[t]&&e++}),e}},watch:{visible(e){this.event=e?this.loadFN(Ql({},this.modelValue||{})):{},e||this.destroy()}},methods:{getArgs(e){return e.args.join(", ")},loadFN(e){const t={};return this.eventConfig.forEach(o=>{const r=o.name,i=e[r]||"";t[r]={item:o,fn:i}}),t},parseFN(e){const t={};return Object.keys(e).forEach(o=>{e[o].fn&&(t[o]=e[o].fn)}),t},edit(e){e.key=Ye(),this.activeData=e,this.eventStr=e.fn||Tk+`function ${e.item.name}(${this.getArgs(e.item)}){}`+Ok,this.defActive=e.item.name},save(){return this.$refs.fn.save()?(this.activeData.fn=this.eventStr,this.destroy(),!0):!1},destroy(){this.activeData=null,this.defActive="no"},close(){this.destroy()},submit(){this.activeData&&!this.save()||(this.$emit("update:modelValue",this.parseFN(this.event)),this.visible=!1,this.destroy())}}}),Bk={class:"_fd-fn-list"},$k={style:{color:"var(--fc-style-color-1)"}},Rk={class:"_fd-menu"},Vk=["onClick"],Ik={class:"_fd-fn-list-method"},Fk={key:0,class:"_fd-label"};function Mk(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("a-layout-header"),g=n.resolveComponent("a-layout-content"),y=n.resolveComponent("a-layout"),C=n.resolveComponent("a-layout-sider"),w=n.resolveComponent("FnEditor"),A=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",Bk,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=E=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["count"]),n.createVNode(A,{class:"_fd-fn-list-dialog _fd-config-dialog",title:e.t("event.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=E=>e.visible=E),centered:"",maskClosable:!1,destroyOnClose:!0,width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=E=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(C,{width:"300px"},{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-fn-list-l"},{default:n.withCtx(()=>[n.createVNode(f,{class:"_fd-fn-list-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createElementVNode("span",$k,n.toDisplayString(e.t("event.list")),1)]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createElementVNode("div",Rk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(E,_)=>(n.openBlock(),n.createElementBlock("div",{key:_,class:n.normalizeClass(["_fd-menu-item",{"is-active":_===e.defActive}]),onClick:n.withModifiers(v=>e.edit(E),["stop"])},[n.createElementVNode("div",Ik,[n.createElementVNode("span",null,[t[4]||(t[4]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(_),1)]),e.eventInfo[_]?(n.openBlock(),n.createElementBlock("span",Fk,n.toDisplayString(e.eventInfo[_]),1)):n.createCommentVNode("",!0)])],10,Vk))),128))])]),_:1})]),_:1})]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-fn-list-r"},{default:n.withCtx(()=>[e.activeData?(n.openBlock(),n.createBlock(f,{key:0,class:"_fd-fn-list-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save,style:{"margin-left":"8px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(g,{key:1},{default:n.withCtx(()=>[n.createVNode(w,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[1]||(t[1]=E=>e.eventStr=E),name:e.activeData.item.name,args:e.activeData.item.args},null,8,["modelValue","name","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","open"])])}const Pk=Oe(Dk,[["render",Mk]]),kL="",Lk=n.defineComponent({name:"FnInput",components:{FnEditor:ci},emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,title:String,body:Boolean,fnx:Boolean,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue}},data(){return{visible:!1,value:this.modelValue}},watch:{modelValue(e){this.value=e}},methods:{onOk(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),jk={class:"_fd-fn-input"};function zk(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),f=n.resolveComponent("FnEditor"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",jk,[n.createVNode(c,{color:"orange",dot:e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:t[0]||(t[0]=y=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.action")),1)]),_:1})]),_:1},8,["dot"]),n.createVNode(g,{class:"_fd-fn-input-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),open:e.visible,"onUpdate:open":t[3]||(t[3]=y=>e.visible=y),centered:"",maskClosable:!1,destroyOnClose:!0,width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=y=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(f,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=y=>e.value=y),name:e.name,args:e.args,body:e.body,fnx:e.fnx},null,8,["modelValue","name","args","body","fnx"])]),_:1},8,["title","open"])])}const fh=Oe(Lk,[["render",zk]]),NL="",Hk=n.defineComponent({name:"GlobalFetchSelect",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalData||{}).map(e=>({label:this.designer.setupState.formOptions.globalData[e].label,value:e}))}},watch:{modelValue(){this.value=(this.modelValue||{}).key||""}},data(){return{value:(this.modelValue||{}).key||"",uni:1,loading:!1}},methods:{refresh(){!this.value||(this.uni=this.uni===1?0:1,this.input(),this.loading=!0,setTimeout(()=>{this.loading=!1},1e3))},openConfig(){this.designer.setupState.openGlobalFetchDialog()},input(){const e=typeof this.modelValue=="object"?{...this.modelValue}:{};e.to=this.to||"options",e.key=this.value,e._uni=this.uni,this.$emit("update:modelValue",e)}}}),Uk={class:"_fd-gfs"},Wk={class:"_fd-gfs-handle"};function Gk(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",Uk,[n.createVNode(c,{value:e.value,"onUpdate:value":t[0]||(t[0]=f=>e.value=f),size:"small",clearable:"",onChange:e.input},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,f=>(n.openBlock(),n.createBlock(d,{key:f.value,value:f.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),n.createElementVNode("div",Wk,[n.createElementVNode("i",{onClick:t[1]||(t[1]=(...f)=>e.refresh&&e.refresh(...f)),class:n.normalizeClass(["fc-icon icon-refresh",{disabled:!e.value,"_fc-loading":this.loading}]),title:"reload"},null,2),n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[2]||(t[2]=(...f)=>e.openConfig&&e.openConfig(...f))},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const Kk=Oe(Hk,[["render",Gk]]),TL="",Yk=n.defineComponent({name:"GlobalClassSelect",emits:["update:modelValue"],props:{modelValue:[Array,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalClass||{}).map(e=>({label:this.designer.setupState.formOptions.globalClass[e].label,value:e}))}},watch:{modelValue(){this.tidyValue()}},data(){return{value:[]}},methods:{tidyValue(){this.value=Array.isArray(this.modelValue)?this.modelValue:(this.modelValue||"").split(" ").filter(e=>!!e)},openConfig(){this.designer.setupState.openGlobalClassDialog()},input(){this.$emit("update:modelValue",this.value.join(" "))}},created(){this.tidyValue()}}),Qk={class:"_fd-gcs"},Xk={class:"_fd-gcs-handle"};function Jk(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",Qk,[n.createVNode(c,{value:e.value,"onUpdate:value":t[0]||(t[0]=f=>e.value=f),"show-search":"",mode:"tags",size:"small",allowClear:"",onChange:e.input,maxTagCount:3,"token-separators":[" "]},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,f=>(n.openBlock(),n.createBlock(d,{key:f.value,value:f.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),n.createElementVNode("div",Xk,[n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[1]||(t[1]=(...f)=>e.openConfig&&e.openConfig(...f))},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const Zk=Oe(Yk,[["render",Jk]]),OL="",qk=n.defineComponent({name:"FetchTable",components:{VariableConfig:vr},inject:["designer"],emits:["update:modelValue"],props:{modelValue:Object},computed:{t(){return this.designer.setupState.t}},data(){return{value:[],active:null,start:null}},methods:{onConfirm(e,t,o){e===this.active?e[t]=(e[t]||"").substring(0,this.start)+o+(e[t]||"").substring(this.start):(e[t]+=o,this.active=null,this.start=null),this.submit()},onBlur(e,t){this.active=e,this.start=t.target.selectionStart,this.submit()},submit(){const e={};this.value.forEach(t=>{t.key&&t.value&&(e[t.key]=t.value)}),this.$emit("update:modelValue",e)},add(){this.value.push({})},rm(e){this.value.splice(e,1),this.submit()}},created(){const e=[];Object.keys(this.modelValue||{}).forEach(t=>{e.push({key:t,value:this.modelValue[t]})}),this.value=e}}),eN={class:"_fd-fetch-table"},tN={style:{width:"40%"}},nN={class:"_fd-fetch-table-key"},iN=["onClick"];function oN(e,t,o,r,i,s){const d=n.resolveComponent("a-layout-header"),c=n.resolveComponent("VariableConfig"),f=n.resolveComponent("a-input"),g=n.resolveComponent("a-layout-content"),y=n.resolveComponent("a-layout"),C=n.resolveComponent("a-button"),w=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",eN,[n.createVNode(w,null,{default:n.withCtx(()=>[e.value.length>0?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-fetch-table-con"},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[n.createElementVNode("div",tN,n.toDisplayString(e.t("props.key")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("props.value")),1)]),_:1}),n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(A,E)=>(n.openBlock(),n.createElementBlock("div",{key:E,class:"_fd-fetch-table-row"},[n.createElementVNode("div",nN,[n.createVNode(f,{value:A.key,"onUpdate:value":_=>A.key=_,size:"small",onBlur:_=>e.onBlur(A,_)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:_=>e.onConfirm(A,"key",_)},null,8,["onConfirm"])]),_:2},1032,["value","onUpdate:value","onBlur"])]),n.createVNode(f,{value:A.value,"onUpdate:value":_=>A.value=_,size:"small",onBlur:_=>e.onBlur(A,_)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:_=>e.onConfirm(A,"value",_)},null,8,["onConfirm"])]),_:2},1032,["value","onUpdate:value","onBlur"]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:_=>e.rm(E)},null,8,iN)]))),128))]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(C,{type:"link",size:"small",onClick:e.add},{default:n.withCtx(()=>[t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])]),_:1})])}const rN=Oe(qk,[["render",oN]]),ph=n.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject","list"],render(e){const t={...e.$props.rule.props,...e.$attrs};let o="_fd-"+e.$props.tag+"-drag _fd-drag-box";Object.keys(e.$slots).length||(o+=" drag-holder"),t.class=o,t.modelValue=e.$props.list||[...e.$props.formCreateInject.children];const r={};return e.$slots.default&&e.$slots.default().forEach(s=>{s.key&&(r[s.key]=s)}),n.h(yo,t,{item:({element:i,index:s})=>{var f,g,y;let d="";(((f=i==null?void 0:i._menu)==null?void 0:f.inline)||((g=i==null?void 0:i._config)==null?void 0:g.inline))&&(d=" is-inline");const c=(y=i==null?void 0:i.__fc__)==null?void 0:y.key;if(c){let C=r["_"+i.slot];if(C?C.children.forEach(w=>{w.key===c+"fc"&&(C=w)}):C=r[c+"fc"],C)return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item"+d,key:c},C)}return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item",key:s},null)}})}}),DL="",aN=n.defineComponent({name:"FcTableView",props:{label:String,width:[Number,String],formCreateInject:Object,border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},inject:["designer"],components:{DragTool:uh,DragBox:ph},watch:{rule:{handler(){this.initRule(),this.style=this.rule.style},immediate:!0}},data(){return{unique:{},style:{},dragProp:{rule:{props:{tag:"a-col",group:{name:"default",put:(e,...t)=>(e.el.__rule__=this.formCreateInject.rule,this.designer.setupState.dragPut(e,...t))},ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:"tableCell"},lattice:{},uni:{}}},computed:{t(){return this.designer.setupState.t},tableColor(){const e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{getUnique(e){return this.unique[e]||(this.unique[e]=Ye()),this.unique[e]},getSlotChildren(e){const t=[];return this.formCreateInject.children.forEach(o=>{e.indexOf(o.slot)>-1&&t.push(o)}),t},dragAdd(e,t){const o=this.designer.setupState,r=this.formCreateInject.children,i=`${t.pid}:${t.idx}`,s=e.item._underlying_vm_,d=o.addRule&&o.addRule.children===o.moveRule;d&&o.moveRule.splice(o.moveRule.indexOf(s),1);let c=0;const f="drag"+t.pid+t.idx;if(this.$refs[f][0].list.length){let g=this.$refs[f][0].list[e.newIndex?e.newIndex-1:0];c=r.indexOf(g)+(e.newIndex?1:0)}else if(r.length){const g=Object.keys(this.$refs);for(let y=g.indexOf(f)-1;y>=0;y--){if(!this.$refs[g[y]]||!this.$refs[g[y]].length)continue;const C=this.$refs[g[y]][0].list||[];if(C.length){c=r.indexOf(C[C.length-1])+1;break}}}e.newIndex=c,d?(s.slot=i,r.splice(e.newIndex,0,s),o.added=!0,o.handleSortAfter({rule:s})):o.dragAdd(r,e,`${t.pid}:${t.idx}`)},dragEnd(e,t){const o=this.designer.setupState,r=this.formCreateInject.children,i=e.item._underlying_vm_,s=r.indexOf(i);e.newIndex=s+(e.newIndex-e.oldIndex),e.oldIndex=s,o.dragEnd(this.formCreateInject.children,e,`${t.pid}:${t.idx}`)},dragStart(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose(e){this.designer.setupState.dragUnchoose(this.formCreateInject.children,e)},initRule(){const e=this.rule;e.style||(e.style={}),e.class||(e.class={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},active(e){const t=`${e.pid}:${e.idx}`;this.designer.setupState.customActive({name:"fcTableGrid",onPaste:o=>{o.slot=t,this.formCreateInject.children.push(o)},style:{formData:{style:this.rule.style[t]||{},class:this.rule.class[t]||""},change:(o,r)=>{this.rule[o][t]=r||{}}}})},command(e){this[e[0]](...e[1])},rmSlot(e,t){const o=Object.keys(e),r=this.formCreateInject.children;let i=0;[...r].forEach((s,d)=>{if(!s.slot)return;let c;t.indexOf(s.slot)>-1?(r.splice(d-i,1),i++):(c=o.indexOf(s.slot))>-1&&(s.slot=e[o[c]])}),t.forEach(s=>{delete this.style[s]}),this.loadRule()},rmRow(e){this.rule.row--;const t={},o=[];for(let s=e.pid;s<this.rule.row+1;s++)for(let d=0;d<this.rule.col;d++)s===e.pid?o.push(`${e.pid}:${d}`):t[`${s}:${d}`]=`${s-1}:${d}`;let r=0;const i=this.rule.layout;[...i].forEach((s,d)=>{s.top===e.pid&&(i.splice(d-r,1),r++)}),i.forEach(s=>{s.top>e.pid&&s.top--}),this.rmSlot(t,o)},rmCol(e){this.rule.col--;const t={},o=[];for(let s=0;s<this.rule.row;s++){for(let d=e.idx+1;d<this.rule.col+1;d++)t[`${s}:${d}`]=`${s}:${d-1}`;o.push(`${s}:${e.idx}`)}let r=0;const i=this.rule.layout;[...i].forEach((s,d)=>{s.left===e.idx&&(i.splice(d-r,1),r++)}),i.forEach(s=>{s.left>e.idx&&s.left--}),this.rmSlot(t,o)},splitRow(e){const t=e.data.layout,o=t.row;if(t.row=0,o>1)for(let r=1;r<o;r++)this.rule.layout.push({...t,top:t.top+r});this.loadRule()},splitCol(e){const t=e.data.layout,o=t.col;if(t.col=0,o>1)for(let r=1;r<o;r++)this.rule.layout.push({...t,left:t.left+r});this.loadRule()},makeMap(e){let t=[];for(let o=e.top;o<(e.row||e.top+1);o++)for(let r=e.left;r<(e.col||e.left+1);r++)t.push(`${o}:${r}`);return t},mergeRight(e){let t;if(e.data.layout){const r=(e.data.layout.col||1)+1;e.data.layout.col=r+e.idx>this.rule.col?this.rule.col-e.idx:r,t=e.data.layout}else t={top:e.pid,left:e.idx,col:2},this.rule.layout.push(t);const o=this.makeMap(t);this.formCreateInject.children.forEach(r=>{!r.slot||o.indexOf(r.slot)>-1&&(r.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},mergeBottom(e){let t;if(e.data.layout){const r=(e.data.layout.row||1)+1;e.data.layout.row=r+r.pid>this.rule.col?this.rule.col-e.pid:r,t=e.data.layout}else t={top:e.pid,left:e.idx,row:2},this.rule.layout.push(t);const o=this.makeMap(t);this.formCreateInject.children.forEach(r=>{!r.slot||o.indexOf(r.slot)>-1&&(r.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},addCol(e,t){if(this.rule.col++,this.rule.layout.forEach(o=>{o.left>(t?e.idx-1:e.idx)&&o.left++}),t||e.idx<this.rule.col-2){const o={};for(let i=0;i<this.rule.row;i++)for(let s=t?e.idx-1:e.idx+1;s<this.rule.col-1;s++)o[`${i}:${s}`]=`${i}:${s+1}`;const r=Object.keys(o);this.formCreateInject.children.forEach(i=>{let s;i.slot&&(s=r.indexOf(i.slot))>-1&&(i.slot=o[r[s]])}),r.forEach(i=>{this.style[i]&&(this.style[o[i]]=this.style[i],delete this.style[i])})}this.loadRule()},addRow(e,t){if(this.rule.row++,this.rule.layout.forEach(o=>{o.top>(t?e.pid-1:e.pid)&&o.top++}),t||e.pid<this.rule.row-2){const o={};for(let i=t?e.pid-1:e.pid+1;i<this.rule.row;i++)for(let s=0;s<this.rule.col;s++)o[`${i}:${s}`]=`${i+1}:${s}`;const r=Object.keys(o);this.formCreateInject.children.forEach(i=>{let s;i.slot&&(s=r.indexOf(i.slot))>-1&&(i.slot=o[r[s]])}),r.reverse().forEach(i=>{this.style[i]&&(this.style[o[i]]=this.style[i],delete this.style[i])})}this.loadRule()},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let r=0;r<t.row;r++){const i=[];e.push(i);for(let s=0;s<t.col;s++)i.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique(`${r}${s}`)})}[...t.layout||[]].forEach((r,i)=>{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!e[r.top]||!e[r.top][r.left]||!e[r.top][r.left].show){t.layout.splice(i,1);return}const s=e[r.top][r.left];s.layout=r;let d=1,c=1;if(r.col&&(d=r.col+r.left>t.col?t.col-r.left:r.col,s.colspan=d),r.row&&(c=r.row+r.top>t.row?t.row-r.top:r.row,s.rowspan=c),c&&d)for(let f=0;f<c;f++){const g=e[r.top+f];if(g)for(let y=0;y<d;y++)!y&&!f||(g[r.left+y]&&(g[r.left+y].show=!1),s.slot.push(`${r.top+f}:${r.left+y}`))}});const o=r=>!!(!r||r.layout||!r.show);e.forEach((r,i)=>{r.forEach((s,d)=>{let c=!1,f=!1;if(s.layout){const g=s.layout.col||1,y=s.layout.row||1;for(let C=0;C<g;C++)if(!e[i+y]||o(e[i+y][d+C])){f=!0;continue}for(let C=0;C<y;C++)if(!e[i+C]||o(e[i+C][d+g])){c=!0;continue}}else c=o(r[d+1]),f=e[i+1]?o(e[i+1][d]):!0;s.right=c,s.bottom=f})}),this.lattice=e,this.formCreateInject.rule.props.rule=t}},beforeMount(){this.loadRule()}}),lN={class:"_fd-table-view"},sN={class:"_fd-table-view-cell"},dN=["onClick"],cN=["onClick"],uN={class:"_fd-drag-btn _fd-table-view-btn"};function fN(e,t,o,r,i,s){const d=n.resolveComponent("DragBox"),c=n.resolveComponent("a-menu-item"),f=n.resolveComponent("a-menu-divider"),g=n.resolveComponent("a-menu"),y=n.resolveComponent("a-dropdown"),C=n.resolveComponent("DragTool");return n.openBlock(),n.createElementBlock("div",lN,[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(e.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.row,(w,A)=>(n.openBlock(),n.createElementBlock("tr",{key:A},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.col,(E,_)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.lattice[A][_].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:`${A}${_}`,ref_for:!0},e.lattice[A][_]?{colspan:e.lattice[A][_].colspan,rowspan:e.lattice[A][_].rowspan}:{},{style:[e.tableColor,e.style&&e.style[`${A}:${_}`]||{}],class:e.rule.class&&e.rule.class[`${A}:${_}`]||""}),[n.createElementVNode("div",sN,[n.createVNode(C,{"drag-btn":!1,"handle-btn":!0,onActive:v=>e.active({pid:A,idx:_}),unique:e.lattice[A][_].id},{handle:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:v=>e.addRow({pid:A,idx:_,data:e.lattice[A][_]},0)},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-add-col"},null,-1)]),8,dN),n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:v=>e.addCol({pid:A,idx:_,data:e.lattice[A][_]},0)},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,cN),n.createElementVNode("div",uN,[n.createVNode(y,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(c,{onClick:v=>e.command(["addCol",[{pid:A,idx:_,data:e.lattice[A][_]},1]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addLeft")),1)]),_:2},1032,["onClick"]),n.createVNode(c,{onClick:v=>e.command(["addCol",[{pid:A,idx:_,data:e.lattice[A][_]},0]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addRight")),1)]),_:2},1032,["onClick"]),n.createVNode(c,{onClick:v=>e.command(["addRow",[{pid:A,idx:_,data:e.lattice[A][_]},1]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addTop")),1)]),_:2},1032,["onClick"]),n.createVNode(c,{onClick:v=>e.command(["addRow",[{pid:A,idx:_,data:e.lattice[A][_]},0]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addBottom")),1)]),_:2},1032,["onClick"]),n.createVNode(f),n.createVNode(c,{disabled:e.lattice[A][_].right,onClick:v=>e.command(["mergeRight",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeRight")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(c,{disabled:e.lattice[A][_].bottom,onClick:v=>e.command(["mergeBottom",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeBottom")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(f),n.createVNode(c,{disabled:!(e.lattice[A][_].layout&&e.lattice[A][_].layout.col>1),onClick:v=>e.command(["splitCol",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitCol")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(c,{disabled:!(e.lattice[A][_].layout&&e.lattice[A][_].layout.row>1),onClick:v=>e.command(["splitRow",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitRow")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(f),n.createVNode(c,{disabled:e.rule.col<2,onClick:v=>e.command(["rmCol",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmCol")),1)]),_:2},1032,["disabled","onClick"]),n.createVNode(c,{disabled:e.rule.row<2,onClick:v=>e.command(["rmRow",[{pid:A,idx:_,data:e.lattice[A][_]}]])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmRow")),1)]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:2},1024)])]),default:n.withCtx(()=>[n.createVNode(d,n.mergeProps({ref_for:!0},e.dragProp,{onAdd:v=>e.dragAdd(v,{pid:A,idx:_}),ref_for:!0,ref:"drag"+A+_,onEnd:v=>e.dragEnd(v,{pid:A,idx:_}),onStart:t[0]||(t[0]=v=>e.dragStart(v)),onUnchoose:t[1]||(t[1]=v=>e.dragUnchoose(v)),list:e.getSlotChildren([`${A}:${_}`,...e.lattice[A][_].slot])}),{default:n.withCtx(()=>[n.renderSlot(e.$slots,`${A}:${_}`)]),_:2},1040,["onAdd","onEnd","list"])]),_:2},1032,["onActive","unique"])])],16)):n.createCommentVNode("",!0)],64))),256))]))),128))],4)])}const pN=Oe(aN,[["render",fN]]),BL="",hN={name:"FcTable",props:{label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},watch:{rule:{handler(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor(){const e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{initRule(){const e=this.rule;e.style||(e.style={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let r=0;r<t.row;r++){const i=[];e.push(i);for(let s=0;s<t.col;s++)i.push({rowspan:1,colspan:1,slot:[],show:!0})}[...t.layout||[]].forEach((r,i)=>{if((!r.row||r.row<=0)&&(!r.col||r.col<=0)||!e[r.top]||!e[r.top][r.left]||!e[r.top][r.left].show){t.layout.splice(i,1);return}const s=e[r.top][r.left];s.layout=r;let d=1,c=1;if(r.col&&(d=r.col+r.left>t.col?t.col-r.left:r.col,s.colspan=d),r.row&&(c=r.row+r.top>t.row?t.row-r.top:r.row,s.rowspan=c),c&&d)for(let f=0;f<c;f++){const g=e[r.top+f];if(g)for(let y=0;y<d;y++)!y&&!f||(g[r.left+y]&&(g[r.left+y].show=!1),s.slot.push(`${r.top+f}:${r.left+y}`))}});const o=r=>!!(!r||r.layout||!r.show);e.forEach((r,i)=>{r.forEach((s,d)=>{let c=!1,f=!1;if(s.layout){const g=s.layout.col||1,y=s.layout.row||1;for(let C=0;C<g;C++)if(!e[i+y]||o(e[i+y][d+C])){f=!0;continue}for(let C=0;C<y;C++)if(!e[i+C]||o(e[i+C][d+g])){c=!0;continue}}else c=o(r[d+1]),f=e[i+1]?o(e[i+1][d]):!0;s.right=c,s.bottom=f})}),this.lattice=e}}},mN={class:"_fc-table"};function gN(e,t,o,r,i,s){const d=n.resolveComponent("a-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",mN,[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(s.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.rule.row,(c,f)=>(n.openBlock(),n.createElementBlock("tr",{key:f},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.rule.col,(g,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`${f}${y}`},[i.lattice[f][y].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:0,ref_for:!0},i.lattice[f][y]?{colspan:i.lattice[f][y].colspan,rowspan:i.lattice[f][y].rowspan}:{},{valign:"top",class:i.tdClass&&i.tdClass[`${f}:${y}`]||"",style:[s.tableColor,i.tdStyle&&i.tdStyle[`${f}:${y}`]||{}]}),[n.renderSlot(e.$slots,`${f}:${y}`),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.lattice[f][y].slot,C=>n.renderSlot(e.$slots,`${C}`)),256))],16)):n.createCommentVNode("",!0)],64))),128))]))),128))],4)])]),_:3})}const vN=Oe(hN,[["render",gN]]),$L="",yN=n.defineComponent({name:"FcValue",props:["modelValue"],inject:["designer"],watch:{modelValue(e){this.$emit("change",e)}},computed:{t(){return this.designer.setupState.t}}}),bN={class:"_fd-value"};function CN(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",bN,n.toDisplayString(e.t("com.fcValue.empty")),1)}const _N=Oe(yN,[["render",CN]]),wN=n.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(e){this.$emit("change",e)}}}),EN={class:"_fc-value"};function AN(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",EN,n.toDisplayString(e.modelValue),1)}const SN=Oe(wN,[["render",AN]]),xN=n.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:o}=this.formCreateInject,r=e.__fc__.prop;return{rule:e,prop:r,preview:t,api:o,model:r.model||{}}}},render(){const e=this.getSlot();return n.createVNode(n.Fragment,{},e?[e(this.slotArg)]:[])},methods:{getSlot(){const e=t=>{if(t){let o=t.slots[this.slotName];return o||e(t.setupState.parent)}};return e(this.parentFC)}}}),kN=n.defineComponent({name:"FcSlotView",inheritAttrs:!1,inject:["parentFC","designer"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:o}=this.formCreateInject,r=e.__fc__.prop;return{rule:e,prop:r,preview:t,api:o,model:r.model||{}}}},render(){const e=this.getSlot();return e?n.createVNode(n.Fragment,{},[e(this.slotArg)]):n.createVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcSlot.empty",{tag:"<span>&lt;template #"+this.slotName+" /&gt;</span>"})})},methods:{getSlot(){const e=t=>{if(t){let o=t.slots[this.slotName];return o||e(t.setupState.parent)}};return e(this.parentFC)}}}),NN=n.defineComponent({name:"FcJson",inheritAttrs:!1,props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var e,t;if(this.rule)return this.type==="object"?n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":o=>{this.$emit("update:modelValue",o)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":o=>{this.$emit("update:modelValue",o)},sortBtn:this.sortBtn,min:this.min,max:this.max,expand:this.expand,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):n.createVNode(n.Fragment,{key:this.uni},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])},methods:{loadRule(){let e=et(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),RL="",TN=n.defineComponent({name:"FcJsonView",inheritAttrs:!1,inject:["designer"],props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){if(this.rule){let e=null;return this.type==="object"?e=n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":t=>{this.$emit("update:modelValue",t)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?e=n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":t=>{this.$emit("update:modelValue",t)},sortBtn:this.sortBtn,expand:1,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):e=n.createVNode(n.Fragment,{key:1},[this.$slots.default()]),n.createElementVNode("div",{key:this.uni,style:{"--fc-json-mask":`'${this.designer.setupState.t("com.fcJson.name")}'`},class:"_fd-json-container"},[e])}else return n.createElementVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcJson.empty",{tag:"<span>JSON</span>"})})},methods:{loadRule(){let e=et(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),VL="",ON=n.defineComponent({name:"fcInlineForm"}),DN={class:"_fc-line-form"};function BN(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",DN,[n.renderSlot(e.$slots,"default")])}const $N=Oe(ON,[["render",BN]]),IL="",RN=n.defineComponent({name:"LanguageInput",inject:["designer"],emits:["update:modelValue","blur","change"],props:{size:String,placeholder:String,modelValue:String,disabled:Boolean},data(){return{popVisible:!1}},computed:{isVar(){return!!(this.modelValue||"").match(/^\{\{\s*\$t\.(.+)\s*\}\}$/)},t(){return this.designer.setupState.t},localeList(){var r,i;const e=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]),t=[],o=((i=(r=this.designer.props)==null?void 0:r.locale)==null?void 0:i.name)||"zh-cn";return e.forEach(s=>{s.value===o?t.unshift(s):t.length<2&&t.push(s)}),t.length>2&&t.pop(),t},language(){const e=this.designer.setupState.formOptions.language||{},t={};return Object.keys(e).forEach(o=>{Object.keys(e[o]).forEach(r=>{t[r]||(t[r]={key:r}),t[r][o]=e[o][r]})}),Object.values(t)}},methods:{openConfig(){this.designer.setupState.activeModule="language"},clickLang(e){this.onInput(`{{$t.${e}}}`),this.popVisible=!1},onInput(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},mounted(){}}),VN={class:"_fd-language-list"},IN={class:"_fd-language-header"},FN={class:"_fd-language-title"},MN={class:"_fd-language-name"},PN=["onClick"];function LN(e,t,o,r,i,s){const d=n.resolveComponent("a-popover"),c=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(c,{class:n.normalizeClass(["_fd-language-input",{"is-variable":e.isVar}]),placeholder:e.placeholder,disabled:e.disabled,value:e.modelValue,"onUpdate:value":e.onInput,onBlur:t[2]||(t[2]=f=>e.$emit("blur")),size:e.size||"small"},{addonAfter:n.withCtx(()=>[n.createVNode(d,{open:e.popVisible,"onUpdate:open":t[1]||(t[1]=f=>e.popVisible=f),placement:"bottomLeft",trigger:"click",overlayClassName:"_fd-language-popover"},{content:n.withCtx(()=>[n.createElementVNode("div",VN,[n.createElementVNode("div",IN,[n.createElementVNode("div",FN,[n.createTextVNode(n.toDisplayString(e.t("language.select")),1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[0]||(t[0]=(...f)=>e.openConfig&&e.openConfig(...f))})]),n.createElementVNode("div",MN,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,f=>(n.openBlock(),n.createElementBlock("div",{key:f.value},n.toDisplayString(f.label),1))),128))])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.language,f=>(n.openBlock(),n.createElementBlock("div",{key:f.key,class:"_fd-language-item",onClick:g=>e.clickLang(f.key)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,g=>(n.openBlock(),n.createElementBlock("div",{key:g.value},n.toDisplayString(f[g.value]||"-"),1))),128))],8,PN))),128))])]),default:n.withCtx(()=>[t[3]||(t[3]=n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1))]),_:1},8,["open"])]),_:1},8,["class","placeholder","disabled","value","onUpdate:value","size"])}const Yd=Oe(RN,[["render",LN]]),FL="",jN=n.defineComponent({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:Yd,FnInput:fh,PatternInput:Cd},watch:{modelValue(e){this.validate=this.parseValue(e||[])}},data(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t(){return this.designer.setupState.t},modes(){const e=this.designer.setupState.activeRule;return e&&e._menu.subForm==="object"?{validator:this.t("validate.modes.validator")}:{min:this.t("validate.modes.min"),max:this.t("validate.modes.max"),len:this.t("validate.modes.len"),pattern:this.t("validate.modes.pattern"),validator:this.t("validate.modes.validator")}},triggers(){return st(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand({key:e}){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:e,trigger:"blur"})},autoMessage(e){const t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(e.message=this.t("validate.autoRequired",{title:t}),this.onInput())},getSpan(e){return["pattern","validator","required"].indexOf(e.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(e=>(e={...e},e.message||delete e.message,e)))},remove(e){this.validate.splice(e,1),this.onInput()},parseValue(e){return et(e.map(t=>(t.validator&&(t.mode="validator"),t.mode||Object.keys(t).forEach(o=>{["message","type","trigger","mode"].indexOf(o)<0&&(t.mode=o)}),t)))}}}),zN={class:"_fd-validate"},HN={class:"_fd-validate-item"},UN={class:"_fd-validate-title"},WN=["onClick"];function GN(e,t,o,r,i,s){const d=n.resolveComponent("a-select-option"),c=n.resolveComponent("a-select"),f=n.resolveComponent("a-form-item"),g=n.resolveComponent("a-col"),y=n.resolveComponent("PatternInput"),C=n.resolveComponent("FnInput"),w=n.resolveComponent("a-input-number"),A=n.resolveComponent("LanguageInput"),E=n.resolveComponent("a-row"),_=n.resolveComponent("a-button"),v=n.resolveComponent("a-menu-item"),m=n.resolveComponent("a-menu"),b=n.resolveComponent("a-dropdown");return n.openBlock(),n.createElementBlock("div",zN,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.validate,(S,x)=>(n.openBlock(),n.createElementBlock("div",HN,[n.createElementVNode("div",UN,[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString(x+1),1),n.createTextVNode(" "+n.toDisplayString(e.modes[S.mode]),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:O=>e.remove(x)},null,8,WN)]),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(g,{span:e.getSpan(S)},{default:n.withCtx(()=>[n.createVNode(f,{label:e.t("validate.mode")},{default:n.withCtx(()=>[n.createVNode(c,{value:S.trigger,"onUpdate:value":O=>S.trigger=O,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.triggers,O=>(n.openBlock(),n.createBlock(d,{key:O.value,value:O.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(O.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","onChange"])]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(g,{span:e.getSpan(S)},{default:n.withCtx(()=>[n.createVNode(f,{label:e.modes[S.mode]},{default:n.withCtx(()=>[S.mode==="pattern"?(n.openBlock(),n.createBlock(y,{key:0,modelValue:S[S.mode],"onUpdate:modelValue":O=>S[S.mode]=O,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):S.mode==="validator"?(n.openBlock(),n.createBlock(C,{key:1,modelValue:S[S.mode],"onUpdate:modelValue":O=>S[S.mode]=O,name:"validator",args:["rule","value","callback"],onChange:e.onInput},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.modes.validator")),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(w,{key:2,value:S[S.mode],"onUpdate:value":O=>S[S.mode]=O,onChange:e.onInput},null,8,["value","onUpdate:value","onChange"]))]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(g,{span:24},{default:n.withCtx(()=>[n.createVNode(f,{label:e.t("validate.message")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:S.message,"onUpdate:modelValue":O=>S.message=O,placeholder:e.t("validate.requiredPlaceholder"),onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]))),256)),n.createVNode(b,{trigger:"click",size:"default"},{overlay:n.withCtx(()=>[n.createVNode(m,{onClick:e.handleCommand},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modes,(S,x)=>(n.openBlock(),n.createBlock(v,{key:x},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(S),1)]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:n.withCtx(()=>[n.createVNode(_,{class:"_fd-validate-btn _fd-plain-button",type:"primary",ghost:""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.rule"))+" +",1)]),_:1})]),_:1})])}const KN=Oe(jN,[["render",GN]]),ML="",YN=n.defineComponent({name:"Required",components:{LanguageInput:Yd},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(e){const t=lt.String(e);this.required=e===void 0?!1:t?!0:!!e,this.requiredMsg=t?e:""}},computed:{t(){return this.designer.setupState.t}},data(){const e=lt.String(this.modelValue);return{required:this.modelValue===void 0?!1:e?!0:!!this.modelValue,requiredMsg:e?this.modelValue:""}},methods:{update(){let e;this.required===!1?e=!1:e=this.requiredMsg||!0,this.$emit("update:modelValue",e)}}}),QN={class:"_fd-required"};function XN(e,t,o,r,i,s){const d=n.resolveComponent("a-switch"),c=n.resolveComponent("LanguageInput"),f=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",QN,[n.createVNode(f,null,{default:n.withCtx(()=>[n.createVNode(d,{checked:e.required,"onUpdate:checked":t[0]||(t[0]=g=>e.required=g)},null,8,["checked"]),e.required?(n.openBlock(),n.createBlock(c,{key:0,modelValue:e.requiredMsg,"onUpdate:modelValue":t[1]||(t[1]=g=>e.requiredMsg=g),placeholder:e.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):n.createCommentVNode("",!0)]),_:1})])}const JN=Oe(YN,[["render",XN]]),PL="",ZN=n.defineComponent({name:"TreeOptions",components:{ValueInput:Fa},emits:["update:modelValue"],props:{modelValue:Array,columns:Object,keyValue:String},inject:["designer"],data(){return{value:[...et(this.modelValue||[])],checked:!1}},computed:{t(){return this.designer.setupState.t},treeData(){return os(this.value||[])},overColumns(){return this.columns?{label:this.columns.label||"label",value:this.columns.value||"value"}:{label:"label",value:"value"}}},created(){this.value.length||(this.value=[{}]),this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.change()}))},methods:{isChecked(){const e=t=>{for(let o=0;o<t.length;o++){const r=t[o];if(r[this.overColumns.label]!==r[this.overColumns.value]||r.children&&!e(r.children))return!1}return!0};return e(this.modelValue||[])},tidyValue(){const e=t=>{let o=[];return t.map(r=>{const i=r[this.keyValue],s={[this.overColumns.label]:i,[this.overColumns.value]:i};o.push(s),r.children&&(s.children=e(r.children))}),o};return this.checked&&this.keyValue?e(this.value):et(this.value)},change(){this.$emit("update:modelValue",this.tidyValue())},add(e){const t=e.data.$parent;t?t.children.push({}):this.value.push({})},append(e){e.children||(e.children=[]),e.children.push({})},remove(e){const t=e.data.$parent;t?(t.children.splice(t.children.indexOf(e.data),1),t.children.length||delete t.children):this.value.splice(this.value.indexOf(e.data),1),this.change()}}}),qN={class:"_fd-tree-opt"},eT={class:"_fd-tree-opt-node"},tT=["onClick"],nT=["onClick"],iT=["onClick"],oT=["onClick"],rT=["onClick"],aT=["onClick"];function lT(e,t,o,r,i,s){const d=n.resolveComponent("a-input"),c=n.resolveComponent("ValueInput"),f=n.resolveComponent("a-tree"),g=n.resolveComponent("a-checkbox"),y=n.resolveComponent("a-form-item-rest");return n.openBlock(),n.createElementBlock("div",qN,[n.createVNode(y,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(f,{"tree-data":e.treeData,key:e.checked?"1":"2",selectable:!1,virtual:!1},{title:n.withCtx(C=>[n.createElementVNode("div",eT,[e.checked?(n.openBlock(),n.createBlock(d,{key:1,class:"_fd-tree-opt-last _label",size:"small",value:C.data[e.keyValue],"onUpdate:value":w=>C.data[e.keyValue]=w,onBlur:e.change},{addonAfter:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.add(C)},t[4]||(t[4]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,oT),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.append(C.data)},t[5]||(t[5]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,rT),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:w=>e.remove(C)},t[6]||(t[6]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,aT)]),_:2},1032,["value","onUpdate:value","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{class:"_fd-tree-opt-first",size:"small",value:C.data[e.overColumns.label],"onUpdate:value":w=>C.data[e.overColumns.label]=w,onBlur:e.change},null,8,["value","onUpdate:value","onBlur"]),n.createVNode(c,{class:"_fd-tree-opt-last",size:"small",modelValue:C.data[e.overColumns.value],"onUpdate:modelValue":w=>C.data[e.overColumns.value]=w,onBlur:e.change,onChangeType:e.change},{addonAfter:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.add(C)},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,tT),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:w=>e.append(C.data)},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,nT),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:w=>e.remove(C)},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,iT)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur","onChangeType"])],64))])]),_:1},8,["tree-data"])),e.keyValue?(n.openBlock(),n.createBlock(g,{key:0,checked:e.checked,"onUpdate:checked":t[0]||(t[0]=C=>e.checked=C)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.keyValue")),1)]),_:1},8,["checked"])):n.createCommentVNode("",!0)]),_:1})])}const sT=Oe(ZN,[["render",lT]]),LL="",hh=e=>{const t=[];return e.forEach(o=>{o.field&&t.push(o.field),o.children&&t.push(...hh(o.children))}),t},dT=n.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next","validateFail"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:n.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(e){this.setValue(e)}},methods:{init(){this.steps.forEach((e,t)=>{this.cacheRule[t]?this.cacheRule[t].display=t===this.active:this.cacheRule[t]={type:"FcRow",native:!0,display:t===this.active,children:e.rule}})},onPrev(){this.active--},validate(){return new Promise((e,t)=>{const o=hh(this.cacheRule[this.active].children);o.length>0?Promise.all(o.map(r=>this.subApi.validateField(r))).then(()=>{e()}).catch(r=>{t(r)}):e()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(e=>{this.$emit("validateFail",this.subApi)}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const e=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{e()}).catch(t=>{this.$emit("validateFail",this.subApi)}):e()},addSubApi(e){this.subApi=e,this.$emit("itemMounted",e)},formData(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue(e){const t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))}},created(){this.init()}}),cT={class:"_fc-step-form"};function uT(e,t,o,r,i,s){const d=n.resolveComponent("a-step"),c=n.resolveComponent("a-steps"),f=n.resolveComponent("a-button"),g=n.resolveComponent("a-col"),y=n.resolveComponent("a-row");return n.openBlock(),n.createElementBlock("div",cT,[n.createVNode(c,n.mergeProps({current:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,C=>(n.openBlock(),n.createBlock(d,n.mergeProps({ref_for:!0},C.props),null,16))),256))]),_:1},16,["current"]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.cacheRule,extendOption:!0,modelValue:e.modelValue,"onUpdate:api":e.addSubApi,onEmitEvent:e.$emit,"onUpdate:modelValue":e.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(g,{span:24,style:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(f,{key:0,onClick:e.onPrev},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.cacheRule.length-1?(n.openBlock(),n.createBlock(f,{key:1,style:{"margin-left":"12px"},type:"primary",onClick:e.onNext},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active===e.cacheRule.length-1?(n.openBlock(),n.createBlock(f,{key:2,style:{"margin-left":"12px"},class:"fc-clock",type:"primary",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const fT=Oe(dT,[["render",uT]]),jL="",pT=n.defineComponent({name:"StepFormView",props:{stepsProps:Object,formCreateInject:Object},provide(){return{stepForm:this}},inject:["designer"],data(){return{active:void 0,activeId:void 0,stepItemRef:[],activeRef:void 0}},watch:{"stepItemRef.length"(){(!this.active||this.formCreateInject.children.indexOf(this.activeRef)===-1)&&(this.active=this.formCreateInject.children.length>0?0:-1)},active(e){this.activeRef=this.formCreateInject.children[e],this.activeId=this.activeRef?this.activeRef._fc_id:null}},methods:{onPrev(){this.active--,this.triggerActive()},onNext(){this.active++,this.triggerActive()},change(e){this.active=e,this.triggerActive()},triggerActive(){this.$nextTick(()=>{this.designer.setupState.triggerActive(this.activeRef)})}},created(){this.$watch(()=>[...this.formCreateInject.children],()=>{this.activeRef&&(this.active=this.formCreateInject.children.indexOf(this.activeRef))})}}),hT={class:"_fd-step-form"};function mT(e,t,o,r,i,s){const d=n.resolveComponent("a-step"),c=n.resolveComponent("a-steps"),f=n.resolveComponent("a-button"),g=n.resolveComponent("a-col"),y=n.resolveComponent("a-row");return n.openBlock(),n.createElementBlock("div",hT,[n.createVNode(c,n.mergeProps({current:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.formCreateInject.children,(C,w)=>(n.openBlock(),n.createBlock(d,{key:C._fc_id+w,onClick:n.withModifiers(A=>e.change(w),["stop"]),title:C.props.title,description:C.props.description},null,8,["onClick","title","description"]))),128))]),_:1},16,["current"]),n.renderSlot(e.$slots,"default"),n.createVNode(y,null,{default:n.withCtx(()=>[n.createVNode(g,{span:24,style:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(f,{key:0,onClick:n.withModifiers(e.onPrev,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.stepItemRef.length-1?(n.openBlock(),n.createBlock(f,{key:1,type:"primary",onClick:n.withModifiers(e.onNext,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const gT=Oe(pT,[["render",mT]]),zL="",vT=n.defineComponent({name:"TableFormView",data(){return{}}}),yT={class:"_fd-table-form"},bT={key:0,class:"_fd-tf-wrap"},CT={key:1,class:"_fc-child-empty"};function _T(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",yT,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",bT,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",CT))])}const wT=Oe(vT,[["render",_T]]),HL="",ET=n.defineComponent({name:"NestedTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),AT={class:"_fd-ntable-form"},ST={key:0,class:"_fd-ntf-wrap"},xT={key:1,class:"_fc-child-empty"},kT={key:2,class:"_fd-ntable-sub"},NT={class:"_title"};function TT(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",AT,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",ST,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",xT)),e.$slots.default?(n.openBlock(),n.createElementBlock("div",kT,[n.createElementVNode("div",NT,n.toDisplayString(e.t("com.nestedSubTableForm.name")),1),n.renderSlot(e.$slots,"nested")])):n.createCommentVNode("",!0)])}const OT=Oe(ET,[["render",TT]]),UL="",DT={name:"NestedTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},nested:Array,nestedField:String,columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach(t=>{const o=t.children[1].children[0].props.colspan;t.children[1].children[0].props.colspan=e?o-1:o+1})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,o,r,i){i===!1&&this.updateValue()},updateValue(){const e=this.trs.map((o,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(o)})).filter(o=>{if(o==null)return!1;let r=!1;return Object.keys(o).forEach(i=>{r||(r=r||o[i]!==void 0&&o[i]!==""&&o[i]!==null&&(Array.isArray(o[i])?!!o[i].length:!0))}),r}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const o=this.trs[e];this.fapi.setChildrenFormData(o,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,o)=>{this.trs[o]||this.addRaw(),this.setRawData(o,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],o={type:"template",subRule:!0,children:[]};o.children.push(t),o.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:t.children.length-(this.preview?1:0)},class:"_fc-ntf-sub",children:[{type:"TableForm",field:this.nestedField,value:[],props:{disabled:this.disabled,max:this.nestedMax||0,columns:et(this.nested),options:et(this.options)}}]}]}),this.trs.push(o),this.updateRaw(o),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),o=e.children[0];o.children[0].children[0].props.onClick=r=>{const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[t].children[1].display=i==="-"},o.children[1].props.innerText=t+1,o.children[o.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-ntf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-ntf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(o=>{e.push({type:"th",native:!0,style:o.style,class:o.required?"_fc-ntf-head-required":"",props:{innerText:o.label||""}}),t.push({type:"td",native:!0,children:[...o.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-ntf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-ntf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function BT(e,t,o,r,i,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":o.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:o.options,rule:i.rule,extendOption:!0,onChange:s.formChange,disabled:o.disabled,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!o.max||o.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,type:"link",class:"fc-clock",disabled:o.disabled,onClick:t[1]||(t[1]=c=>s.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(o.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):n.createCommentVNode("",!0)],2)}const $T=Oe(DT,[["render",BT]]),WL="",RT=n.defineComponent({name:"InfiniteTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),VT={class:"_fd-itable-form"},IT={key:0,class:"_fd-itf-wrap"},FT={key:1,class:"_fc-child-empty"};function MT(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",VT,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",IT,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",FT))])}const PT=Oe(RT,[["render",MT]]),GL="",LT={name:"InfiniteTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,layerMax:{type:Number,default:0},childrenField:String,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview},subField(){return this.childrenField||"children"}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach((t,o)=>{t.children[1]&&(t.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(e?1:0)),t.children[0].children[0].children[0].hidden=this.layerMax===1||e&&!(this.modelValue&&this.modelValue[o]&&Array.isArray(this.modelValue[o][this.subField])&&this.modelValue[o][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,o,r,i){i===!1&&this.updateValue()},updateValue(){const e=this.trs.map((o,r)=>{const i={...this.modelValue[r]||{},...this.fapi.getChildrenFormData(o)};return!Hn(i,this.subField)&&this.modelValue[r]&&(i[this.subField]=this.modelValue[r][this.subField]),i[this.subField]==null&&delete i[this.subField],i}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const o=this.trs[e];this.fapi.setChildrenFormData(o,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,o)=>{this.trs[o]||this.addRaw(),this.setRawData(o,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],o={type:"template",subRule:!0,children:[]};o.children.push(t),this.trs.push(o),this.trs.forEach(r=>this.updateRaw(r)),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),o=e.children[0];o.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0),o.children[0].children[0].props.onClick=r=>{if(this.trs[t].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0))return;this.trs[t].children.push({type:"tr",native:!0,display:!0,children:[{type:"td",native:!0,props:{colspan:this.rule[0].children[0].children[0].children.length-(this.preview?1:0)},class:"_fc-itf-sub",children:[{type:"infiniteTableForm",field:this.subField,value:[...this.modelValue[t]&&this.modelValue[t][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:et(this.columns),options:et(this.options)}}]}]})}const i=r.self.children[0]==="-"?"+":"-";r.self.children=[i],this.trs[t].children[1].display=i==="-"},o.children[1].props.innerText=t+1,o.children[o.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-itf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-itf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(o=>{e.push({type:"th",native:!0,class:o.required?"_fc-itf-head-required":"",style:o.style,props:{innerText:o.label||""}}),t.push({type:"td",native:!0,children:[...o.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-itf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-itf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function jT(e,t,o,r,i,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":o.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:o.options,rule:i.rule,extendOption:!0,onChange:s.formChange,disabled:o.disabled,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!o.max||o.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,type:"link",class:"fc-clock",disabled:o.disabled,onClick:t[1]||(t[1]=c=>s.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(o.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):n.createCommentVNode("",!0)],2)}const zT=Oe(LT,[["render",jT]]),KL="",HT={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},filterEmptyColumn:{type:Boolean,default:!0},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(e){this.emptyRule.children[0].props.colspan=this.columns.length+(e?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"\u6682\u65E0\u6570\u636E"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const e=this.trs.map((o,r)=>({...this.modelValue[r]||{},...this.fapi.getChildrenFormData(o)})).filter(o=>{if(!this.filterEmptyColumn)return!0;if(o==null)return!1;let r=!1;return Object.keys(o).forEach(i=>{r=r||o[i]!==void 0&&o[i]!==""&&o[i]!==null}),r}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const o=this.trs[e];this.fapi.setChildrenFormData(o,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addEmpty(),this.modelValue.forEach((t,o)=>{this.trs[o]||this.addRaw(),this.setRawData(o,t||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.push(this.emptyRule)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addEmpty(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(t),this.updateRaw(t),e&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(e){const t=this.trs.indexOf(e);e.children[0].props.innerText=t+1,e.children[e.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(o=>{e.push({type:"th",native:!0,style:o.style,class:o.required?"_fc-tf-head-required":"",props:{innerText:o.label||""}}),t.push({type:"td",native:!0,children:[...o.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function UT(e,t,o,r,i,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-table-form",{"_fc-disabled":o.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:o.options,rule:i.rule,extendOption:!0,disabled:o.disabled,onChange:s.formChange,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),!o.max||o.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,type:"link",class:"fc-clock",onClick:t[1]||(t[1]=c=>s.addRaw(!0)),disabled:o.disabled},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(o.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1},8,["disabled"])):n.createCommentVNode("",!0)],2)}const WT=Oe(HT,[["render",UT]]),YL="",GT=n.defineComponent({name:"TableFormColumnView",props:{label:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle(){const e=this.width,t={width:lt.Number(e)?`${e}px`:!e||e==="auto"?"180px":e};return this.color&&(t.color=this.color),t}},data(){return{}}}),KT={class:"_fd-tf-title"},YT={key:0,class:"_fd-tf-required"},QT={class:"_fd-tf-con"};function XT(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",{class:"_fd-tf-col",style:n.normalizeStyle(e.colStyle)},[n.createElementVNode("div",KT,[e.required?(n.openBlock(),n.createElementBlock("span",YT,"*")):n.createCommentVNode("",!0),n.createTextVNode(n.toDisplayString(e.label||""),1)]),n.createElementVNode("div",QT,[n.renderSlot(e.$slots,"default")])],4)}const JT=Oe(GT,[["render",XT]]),QL="",ZT=n.defineComponent({name:"StepFormItemView",props:{title:String,description:String,formCreateInject:Object},inject:["stepForm"],data(){return{}},created(){const e=this.stepForm.formCreateInject.children.indexOf(this.formCreateInject.rule);this.stepForm.stepItemRef.splice(e,0,this)},unmounted(){this.stepForm.stepItemRef.splice(this.stepForm.stepItemRef.indexOf(this),1)},methods:{}}),qT={class:"_fd-step-form-item"};function e2(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",qT,[n.withDirectives(n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")],512),[[n.vShow,e.stepForm.activeId===e.formCreateInject.rule._fc_id]])])}const t2=Oe(ZT,[["render",e2]]),XL="",n2=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},fullscreen:Boolean},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),i2={class:"ant-modal-content"},o2={class:"ant-modal-header"},r2={class:"ant-modal-title",id:"vcDialogTitle0"},a2={class:"ant-modal-body"},l2={class:"ant-modal-footer"};function s2(e,t,o,r,i,s){const d=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"_fd-dialog ant-modal",style:n.normalizeStyle(`--fc-dialog-height:${e.dragConHeight-23}px;`)},[n.createElementVNode("div",i2,[e.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(d,{key:0,class:"ant-modal-fullpage"},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-page-max"},null,-1)])),_:1})),n.createVNode(d,{class:"ant-modal-close"},{default:n.withCtx(()=>t[1]||(t[1]=[n.createElementVNode("span",{class:"ant-modal-close-x"},[n.createElementVNode("span",{role:"img","aria-label":"close",class:"anticon anticon-close ant-modal-close-icon"},[n.createElementVNode("svg",{focusable:"false","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true","fill-rule":"evenodd",viewBox:"64 64 896 896"},[n.createElementVNode("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"})])])],-1)])),_:1}),n.createElementVNode("div",o2,[n.createElementVNode("div",r2,n.toDisplayString(e.title),1)]),n.createElementVNode("div",a2,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("div",l2,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary",style:{"margin-left":"12px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})],64)):n.createCommentVNode("",!0)])])],4)}const d2=Oe(n2,[["render",s2]]),JL="",c2=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},fullscreen:Boolean,formCreateInject:Object},data(){return{visible:!1,max:this.fullscreen||!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{open(e){this.$nextTick(()=>{this.visible=!0,this.value=et(e||this.formData||{}),this.formRule=et(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),u2={key:0,class:"fc-icon icon-page-min"},f2={key:1,class:"fc-icon icon-page-max"};function p2(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-dialog","wrap-class-name":e.max?"_fc-dialog-fullscreen":""},e.$attrs,{open:e.visible,"onUpdate:open":t[2]||(t[2]=f=>e.visible=f),destroyOnClose:"",footer:e.footer?void 0:e.footer}),{footer:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),default:n.withCtx(()=>[e.$attrs.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(d,{key:0,class:"ant-modal-close",style:{right:"48px"},onClick:t[0]||(t[0]=f=>e.max=!e.max)},{default:n.withCtx(()=>[e.max?(n.openBlock(),n.createElementBlock("i",u2)):(n.openBlock(),n.createElementBlock("i",f2))]),_:1})),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[1]||(t[1]=f=>e.fapi=f),"model-value":e.value,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onEmitEvent"]))]),_:1},16,["wrap-class-name","open","footer"])}const h2=Oe(c2,[["render",p2]]),ZL="",m2=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},size:String},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),g2={class:"ant-drawer-content-wrapper"},v2={class:"ant-drawer-wrapper-body"},y2={class:"ant-drawer-header"},b2={class:"ant-drawer-header-title"},C2={class:"ant-drawer-title"},_2={class:"ant-drawer-extra"},w2={class:"ant-drawer-body"};function E2(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-space");return n.openBlock(),n.createElementBlock("div",{class:"ant-drawer _fd-drawer",style:n.normalizeStyle(`--fc-drawer-height:${e.dragConHeight-23}px;`)},[n.createElementVNode("div",g2,[n.createElementVNode("div",v2,[n.createElementVNode("div",y2,[n.createElementVNode("div",b2,[t[0]||(t[0]=n.createElementVNode("button",{class:"ant-drawer-close"},[n.createElementVNode("span",{role:"img","aria-label":"close",class:"anticon anticon-close"},[n.createElementVNode("svg",{focusable:"false","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true","fill-rule":"evenodd",viewBox:"64 64 896 896"},[n.createElementVNode("path",{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"})])])],-1)),t[1]||(t[1]=n.createElementVNode("button",{class:"ant-drawer-close"},[n.createElementVNode("i",{class:"fc-icon icon-page-max"})],-1)),n.createElementVNode("div",C2,n.toDisplayString(e.title),1)]),n.createElementVNode("div",_2,[e.footer!==!1?(n.openBlock(),n.createBlock(c,{key:0},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})]),_:1})):n.createCommentVNode("",!0)])]),n.createElementVNode("div",w2,[n.renderSlot(e.$slots,"default")])])])],4)}const A2=Oe(m2,[["render",E2]]),qL="",S2=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},width:[Number,String],title:String,rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},formCreateInject:Object},data(){return{visible:!1,max:this.width==="100%",fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{open(e){this.$nextTick(()=>{this.visible=!0,this.value=et(e||this.formData||{}),this.formRule=et(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),x2={key:0,class:"fc-icon icon-page-min"},k2={key:1,class:"fc-icon icon-page-max"};function N2(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-drawer");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-drawer"},e.$attrs,{width:e.max?"100%":e.width,open:e.visible,"onUpdate:open":t[2]||(t[2]=f=>e.visible=f),destroyOnClose:""}),n.createSlots({title:n.withCtx(()=>[e.width!=="100%"?(n.openBlock(),n.createElementBlock("button",{key:0,class:"ant-drawer-close",onClick:t[0]||(t[0]=f=>e.max=!e.max)},[e.max?(n.openBlock(),n.createElementBlock("i",x2)):(n.openBlock(),n.createElementBlock("i",k2))])):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(e.title),1)]),default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[1]||(t[1]=f=>e.fapi=f),"model-value":e.value,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onEmitEvent"]))]),_:2},[e.footer!==!1?{name:"extra",fn:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm,style:{"margin-left":"12px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["width","open"])}const T2=Oe(S2,[["render",N2]]),e3="",O2=n.defineComponent({name:"FcCell"}),D2={ref:"cell",class:"_fc-cell"};function B2(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",D2,[n.renderSlot(e.$slots,"default")],512)}const $2=Oe(O2,[["render",B2]]),t3="",R2=n.defineComponent({name:"FcCell",inheritAttrs:!1,data(){return{isNew:!1}},computed:{style(){const e=this.$attrs.style||{},t={"--fc-cell-display":e.display||"block","--fc-cell-flexDirection":e.flexDirection||"inherit","--fc-cell-flexWrap":e.flexWrap||"inherit","--fc-cell-alignContent":e.alignContent||"inherit","--fc-cell-justifyContent":e.justifyContent||"inherit","--fc-cell-alignItems":e.alignItems||"inherit"};return e.height&&(t.height=e.height||"auto"),e.width&&(t.width=e.width||"auto"),t}},mounted(){this.isNew=this.$el.parentNode.classList.contains("_fd-drag-item"),this.isNew&&this.$watch("$attrs.style.width",e=>{n.nextTick(()=>{this.$el.parentNode.style.width=e||"100%"})},{immediate:!0})}});function V2(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",{ref:"cell",class:n.normalizeClass(["_fd-cell",{"is-new":e.isNew}]),style:n.normalizeStyle(e.style)},[n.createElementVNode("div",n.mergeProps(e.$attrs,{style:{height:"100%",width:"100%"}}),[n.renderSlot(e.$slots,"default")],16)],6)}const I2=Oe(R2,[["render",V2]]),n3="",F2=n.defineComponent({name:"fcRow",mounted(){}});function M2(e,t,o,r,i,s){const d=n.resolveComponent("a-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",n.mergeProps({class:["_fd-row ant-row",{"_fc-child-empty":!e.$slots.default}]},e.$attrs),[n.renderSlot(e.$slots,"default")],16)]),_:3})}const P2=Oe(F2,[["render",M2]]),i3="",L2=n.defineComponent({name:"HideSwitch",props:{modelValue:[String,Boolean,Number],activeValue:{type:[String,Boolean,Number],default:!0},inactiveValue:{type:[String,Boolean,Number],default:!1},disabled:Boolean},events:["update:modelValue"],inject:["designer"],computed:{t(){return this.designer.setupState.t}},methods:{onInput(){this.disabled||this.$emit("update:modelValue",this.modelValue!==this.activeValue?this.activeValue:this.inactiveValue)}}});function j2(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-hide-config",{disabled:!!e.disabled,active:e.modelValue===e.activeValue}]),onClick:t[0]||(t[0]=(...d)=>e.onInput&&e.onInput(...d))},[e.modelValue===e.activeValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-eye"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.show")),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)],64))],2)}const z2=Oe(L2,[["render",j2]]),o3="",H2=n.defineComponent({name:"SpanInput",props:{modelValue:[Number,String]},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{layout:[{label:"1/4",value:6},{label:"1/3",value:8},{label:"1/2",value:12},{label:"2/3",value:16},{label:"3/4",value:18},{label:"\u6574\u884C",value:24}]}},methods:{onInput(e){this.$emit("update:modelValue",e===this.modelValue?"":e)}}});function U2(e,t,o,r,i,s){const d=n.resolveComponent("a-radio-button"),c=n.resolveComponent("a-radio-group");return n.openBlock(),n.createBlock(c,{value:e.modelValue,class:"_fd-span-input"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,f=>(n.openBlock(),n.createBlock(d,{value:f.value,key:f.value,onClick:g=>e.onInput(f.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.value===24?e.t("form.row"):f.label),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value"])}const W2=Oe(H2,[["render",U2]]);function Qd(e,t,o){for(var r=[],i=Math.max(e.length,t.length),s=0,d=0;d<i||s;){var c=d<e.length?e[d]:0,f=d<t.length?t[d]:0,g=s+c+f;r.push(g%o),s=Math.floor(g/o),d++}return r}function mh(e,t,o){if(e<0)return null;if(e==0)return[];for(var r=[],i=t;e&1&&(r=Qd(r,i,o)),e=e>>1,e!==0;)i=Qd(i,i,o);return r}function G2(e,t){for(var o=e.split(""),r=[],i=o.length-1;i>=0;i--){var s=parseInt(o[i],t);if(isNaN(s))return null;r.push(s)}return r}function K2(e,t,o){var r=G2(e,t);if(r===null)return null;for(var i=[],s=[1],d=0;d<r.length;d++)r[d]&&(i=Qd(i,mh(r[d],s,o),o)),s=mh(t,s,o);for(var c="",d=i.length-1;d>=0;d--)c+=i[d].toString(o);return c}function Y2(e){return e.substring(0,2)==="0x"&&(e=e.substring(2)),e=e.toLowerCase(),K2(e,16,10)}class Q2{constructor(t){t=t||{},this.seq=0,this.mid=(t.mid||1)%1023,this.offset=t.offset||0,this.lastTime=0}generate(){const t=Date.now(),o=(t-this.offset).toString(2);this.lastTime==t?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=t;let r=this.seq.toString(2),i=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;i.length<10;)i="0"+i;const s=o+i+r;let d="";for(let c=s.length;c>0;c-=4)d=parseInt(s.substring(c-4,c),2).toString(16)+d;return Y2(d)}}const X2=n.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(e){if(!e){const t=new Q2({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+t.generate())}},immediate:!0}}});function J2(e,t,o,r,i,s){const d=n.resolveComponent("a-input");return n.openBlock(),n.createBlock(d,{value:e.designer?""+(e.prefix||"")+e.preview:e.modelValue,readonly:"",disabled:""},null,8,["value"])}const Z2=Oe(X2,[["render",J2]]),q2=n.defineComponent({name:"AudioBox",emits:["pause","play","ended"],data(){return{}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,loop:Boolean,preload:{type:String,default:"auto"},muted:Boolean}}),eO=["controls","autoplay","loop","preload","muted"],tO=["src","type"];function nO(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("audio",{key:e.src,controls:e.controls,autoplay:e.autoplay,loop:e.loop,preload:e.preload,muted:e.muted,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},[n.createElementVNode("source",{src:e.src,type:e.type},null,8,tO),t[3]||(t[3]=n.createTextVNode(" Your browser does not support the audio element. "))],40,eO)}const iO=Oe(q2,[["render",nO]]);var gh={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(yd,function(){var o=function(){},r={},i={},s={};function d(w,A){w=w.push?w:[w];var E=[],_=w.length,v=_,m,b,S,x;for(m=function(O,D){D.length&&E.push(O),v--,v||A(E)};_--;){if(b=w[_],S=i[b],S){m(b,S);continue}x=s[b]=s[b]||[],x.push(m)}}function c(w,A){if(!!w){var E=s[w];if(i[w]=A,!!E)for(;E.length;)E[0](w,A),E.splice(0,1)}}function f(w,A){w.call&&(w={success:w}),A.length?(w.error||o)(A):(w.success||o)(w)}function g(w,A,E,_){var v=document,m=E.async,b=(E.numRetries||0)+1,S=E.before||o,x=w.replace(/[\?|#].*$/,""),O=w.replace(/^(css|img|module|nomodule)!/,""),D,V,I;if(_=_||0,/(^css!|\.css$)/.test(x))I=v.createElement("link"),I.rel="stylesheet",I.href=O,D="hideFocus"in I,D&&I.relList&&(D=0,I.rel="preload",I.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(x))I=v.createElement("img"),I.src=O;else if(I=v.createElement("script"),I.src=O,I.async=m===void 0?!0:m,V="noModule"in I,/^module!/.test(x)){if(!V)return A(w,"l");I.type="module"}else if(/^nomodule!/.test(x)&&V)return A(w,"l");I.onload=I.onerror=I.onbeforeload=function(z){var T=z.type[0];if(D)try{I.sheet.cssText.length||(T="e")}catch(B){B.code!=18&&(T="e")}if(T=="e"){if(_+=1,_<b)return g(w,A,E,_)}else if(I.rel=="preload"&&I.as=="style")return I.rel="stylesheet";A(w,T,z.defaultPrevented)},S(w,I)!==!1&&v.head.appendChild(I)}function y(w,A,E){w=w.push?w:[w];var _=w.length,v=_,m=[],b,S;for(b=function(x,O,D){if(O=="e"&&m.push(x),O=="b")if(D)m.push(x);else return;_--,_||A(m)},S=0;S<v;S++)g(w[S],b,E)}function C(w,A,E){var _,v;if(A&&A.trim&&(_=A),v=(_?E:A)||{},_){if(_ in r)throw"LoadJS";r[_]=!0}function m(b,S){y(w,function(x){f(v,x),b&&f({success:b,error:S},x),c(_,x)},v)}if(v.returnPromise)return new Promise(m);m()}return C.ready=function(A,E){return d(A,function(_){f(E,_)}),C},C.done=function(A){c(A,[])},C.reset=function(){r={},i={},s={}},C.isDefined=function(A){return A in r},C})})(gh);const Jn=gh.exports,r3="",oO=n.defineComponent({name:"VideoBox",emits:["pause","play","ended","error"],data(){return{player:null}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,isLive:Boolean,withCredentials:Boolean,loop:Boolean},watch:{src:{handler:function(){this.$nextTick(()=>{Jn.ready("mpegts",()=>{const e=this.$refs.video,t=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});t.attachMediaElement(e),t.on("error",o=>{this.$emit("error",o)}),t.load(),this.autoplay&&t.play().catch(o=>{this.$emit("error",o)}),this.player=t})})},immediate:!0}},created(){window.mpegts?Jn.done("mpegts"):Jn.isDefined("mpegts")||Jn(["https://static.form-create.com/res/mpegts.min.js"],"mpegts")}}),rO=["controls","loop"];function aO(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:e.controls,loop:e.loop,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},null,40,rO)}const lO=Oe(oO,[["render",aO]]);var Xd={},Za={},pn={};Object.defineProperty(pn,"__esModule",{value:!0});function sO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var dO=function e(t,o){sO(this,e),this.data=t,this.text=o.text||t,this.options=o};pn.default=dO,Object.defineProperty(Za,"__esModule",{value:!0}),Za.CODE39=void 0;var cO=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),uO=pn,fO=pO(uO);function pO(e){return e&&e.__esModule?e:{default:e}}function hO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vO=function(e){gO(t,e);function t(o,r){return hO(this,t),o=o.toUpperCase(),r.mod43&&(o+=CO(_O(o))),mO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return cO(t,[{key:"encode",value:function(){for(var r=Jd("*"),i=0;i<this.data.length;i++)r+=Jd(this.data[i])+"0";return r+=Jd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),t}(fO.default),vh=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],yO=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function Jd(e){return bO(yh(e))}function bO(e){return yO[e].toString(2)}function CO(e){return vh[e]}function yh(e){return vh.indexOf(e)}function _O(e){for(var t=0,o=0;o<e.length;o++)t+=yh(e[o]);return t=t%43,t}Za.CODE39=vO;var Zn={},Zd={},No={},At={};Object.defineProperty(At,"__esModule",{value:!0});var Er;function qd(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var bh=At.SET_A=0,Ch=At.SET_B=1,_h=At.SET_C=2;At.SHIFT=98;var wO=At.START_A=103,EO=At.START_B=104,AO=At.START_C=105;At.MODULO=103,At.STOP=106,At.FNC1=207,At.SET_BY_CODE=(Er={},qd(Er,wO,bh),qd(Er,EO,Ch),qd(Er,AO,_h),Er),At.SWAP={101:bh,100:Ch,99:_h},At.A_START_CHAR=String.fromCharCode(208),At.B_START_CHAR=String.fromCharCode(209),At.C_START_CHAR=String.fromCharCode(210),At.A_CHARS="[\0-_\xC8-\xCF]",At.B_CHARS="[ -\x7F\xC8-\xCF]",At.C_CHARS="(\xCF*[0-9]{2}\xCF*)",At.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(No,"__esModule",{value:!0});var SO=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),xO=pn,kO=NO(xO),An=At;function NO(e){return e&&e.__esModule?e:{default:e}}function TO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function DO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var BO=function(e){DO(t,e);function t(o,r){TO(this,t);var i=OO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o.substring(1),r));return i.bytes=o.split("").map(function(s){return s.charCodeAt(0)}),i}return SO(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,i=r.shift()-105,s=An.SET_BY_CODE[i];if(s===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(An.FNC1);var d=t.next(r,1,s);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(i)+d.result+t.getBar((d.checksum+i)%An.MODULO)+t.getBar(An.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return An.BARS[r]?An.BARS[r].toString():""}},{key:"correctIndex",value:function(r,i){if(i===An.SET_A){var s=r.shift();return s<32?s+64:s-32}else return i===An.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,i,s){if(!r.length)return{result:"",checksum:0};var d=void 0,c=void 0;if(r[0]>=200){c=r.shift()-105;var f=An.SWAP[c];f!==void 0?d=t.next(r,i+1,f):((s===An.SET_A||s===An.SET_B)&&c===An.SHIFT&&(r[0]=s===An.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),d=t.next(r,i+1,s))}else c=t.correctIndex(r,s),d=t.next(r,i+1,s);var g=t.getBar(c),y=c*i;return{result:g+d.result,checksum:y+d.checksum}}}]),t}(kO.default);No.default=BO;var ec={};Object.defineProperty(ec,"__esModule",{value:!0});var xi=At,wh=function(t){return t.match(new RegExp("^"+xi.A_CHARS+"*"))[0].length},Eh=function(t){return t.match(new RegExp("^"+xi.B_CHARS+"*"))[0].length},Ah=function(t){return t.match(new RegExp("^"+xi.C_CHARS+"*"))[0]};function tc(e,t){var o=t?xi.A_CHARS:xi.B_CHARS,r=e.match(new RegExp("^("+o+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Sh(e.substring(r[1].length));var i=e.match(new RegExp("^"+o+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(t?205:206)+tc(e.substring(i.length),!t)}function Sh(e){var t=Ah(e),o=t.length;if(o===e.length)return e;e=e.substring(o);var r=wh(e)>=Eh(e);return t+String.fromCharCode(r?206:205)+tc(e,r)}ec.default=function(e){var t=void 0,o=Ah(e).length;if(o>=2)t=xi.C_START_CHAR+Sh(e);else{var r=wh(e)>Eh(e);t=(r?xi.A_START_CHAR:xi.B_START_CHAR)+tc(e,r)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,s){return String.fromCharCode(203)+s})},Object.defineProperty(Zd,"__esModule",{value:!0});var $O=No,RO=xh($O),VO=ec,IO=xh(VO);function xh(e){return e&&e.__esModule?e:{default:e}}function FO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function MO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var PO=function(e){MO(t,e);function t(o,r){if(FO(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(o))var i=nc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,IO.default)(o),r));else var i=nc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r));return nc(i)}return t}(RO.default);Zd.default=PO;var ic={};Object.defineProperty(ic,"__esModule",{value:!0});var LO=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),jO=No,zO=HO(jO),kh=At;function HO(e){return e&&e.__esModule?e:{default:e}}function UO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function GO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var KO=function(e){GO(t,e);function t(o,r){return UO(this,t),WO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,kh.A_START_CHAR+o,r))}return LO(t,[{key:"valid",value:function(){return new RegExp("^"+kh.A_CHARS+"+$").test(this.data)}}]),t}(zO.default);ic.default=KO;var oc={};Object.defineProperty(oc,"__esModule",{value:!0});var YO=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),QO=No,XO=JO(QO),Nh=At;function JO(e){return e&&e.__esModule?e:{default:e}}function ZO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qO(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function eD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var tD=function(e){eD(t,e);function t(o,r){return ZO(this,t),qO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Nh.B_START_CHAR+o,r))}return YO(t,[{key:"valid",value:function(){return new RegExp("^"+Nh.B_CHARS+"+$").test(this.data)}}]),t}(XO.default);oc.default=tD;var rc={};Object.defineProperty(rc,"__esModule",{value:!0});var nD=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),iD=No,oD=rD(iD),Th=At;function rD(e){return e&&e.__esModule?e:{default:e}}function aD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function sD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var dD=function(e){sD(t,e);function t(o,r){return aD(this,t),lD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Th.C_START_CHAR+o,r))}return nD(t,[{key:"valid",value:function(){return new RegExp("^"+Th.C_CHARS+"+$").test(this.data)}}]),t}(oD.default);rc.default=dD,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.CODE128C=Zn.CODE128B=Zn.CODE128A=Zn.CODE128=void 0;var cD=Zd,uD=qa(cD),fD=ic,pD=qa(fD),hD=oc,mD=qa(hD),gD=rc,vD=qa(gD);function qa(e){return e&&e.__esModule?e:{default:e}}Zn.CODE128=uD.default,Zn.CODE128A=pD.default,Zn.CODE128B=mD.default,Zn.CODE128C=vD.default;var hn={},ac={},On={};Object.defineProperty(On,"__esModule",{value:!0}),On.SIDE_BIN="101",On.MIDDLE_BIN="01010",On.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},On.EAN2_STRUCTURE=["LL","LG","GL","GG"],On.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],On.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var el={},Ki={};Object.defineProperty(Ki,"__esModule",{value:!0});var yD=On,bD=function(t,o,r){var i=t.split("").map(function(d,c){return yD.BINARIES[o[c]]}).map(function(d,c){return d?d[t[c]]:""});if(r){var s=t.length-1;i=i.map(function(d,c){return c<s?d+r:d})}return i.join("")};Ki.default=bD,Object.defineProperty(el,"__esModule",{value:!0});var CD=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),To=On,_D=Ki,Oh=Dh(_D),wD=pn,ED=Dh(wD);function Dh(e){return e&&e.__esModule?e:{default:e}}function AD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function xD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var kD=function(e){xD(t,e);function t(o,r){AD(this,t);var i=SD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r));return i.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return CD(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,i){return this.text.substr(r,i)}},{key:"leftEncode",value:function(r,i){return(0,Oh.default)(r,i)}},{key:"rightText",value:function(r,i){return this.text.substr(r,i)}},{key:"rightEncode",value:function(r,i){return(0,Oh.default)(r,i)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:To.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:r},{data:To.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:r},{data:To.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var r=[To.SIDE_BIN,this.leftEncode(),To.MIDDLE_BIN,this.rightEncode(),To.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),t}(ED.default);el.default=kD,Object.defineProperty(ac,"__esModule",{value:!0});var ND=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),Ar=function e(t,o,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,o);if(i===void 0){var s=Object.getPrototypeOf(t);return s===null?void 0:e(s,o,r)}else{if("value"in i)return i.value;var d=i.get;return d===void 0?void 0:d.call(r)}},TD=On,OD=el,DD=BD(OD);function BD(e){return e&&e.__esModule?e:{default:e}}function $D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Bh=function(t){var o=t.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,i,s){return s%2?r+i*3:r+i},0);return(10-o%10)%10},ID=function(e){VD(t,e);function t(o,r){$D(this,t),o.search(/^[0-9]{12}$/)!==-1&&(o+=Bh(o));var i=RD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r));return i.lastChar=r.lastChar,i}return ND(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Bh(this.data)}},{key:"leftText",value:function(){return Ar(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),i=TD.EAN13_STRUCTURE[this.data[0]];return Ar(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,r,i)}},{key:"rightText",value:function(){return Ar(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ar(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ar(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),t}(DD.default);ac.default=ID;var lc={};Object.defineProperty(lc,"__esModule",{value:!0});var FD=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),tl=function e(t,o,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,o);if(i===void 0){var s=Object.getPrototypeOf(t);return s===null?void 0:e(s,o,r)}else{if("value"in i)return i.value;var d=i.get;return d===void 0?void 0:d.call(r)}},MD=el,PD=LD(MD);function LD(e){return e&&e.__esModule?e:{default:e}}function jD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function HD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $h=function(t){var o=t.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,i,s){return s%2?r+i:r+i*3},0);return(10-o%10)%10},UD=function(e){HD(t,e);function t(o,r){return jD(this,t),o.search(/^[0-9]{7}$/)!==-1&&(o+=$h(o)),zD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return FD(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===$h(this.data)}},{key:"leftText",value:function(){return tl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return tl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return tl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return tl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),t}(PD.default);lc.default=UD;var sc={};Object.defineProperty(sc,"__esModule",{value:!0});var WD=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),GD=On,KD=Ki,YD=Rh(KD),QD=pn,XD=Rh(QD);function Rh(e){return e&&e.__esModule?e:{default:e}}function JD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZD(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var eB=function(t){var o=t.split("").map(function(r){return+r}).reduce(function(r,i,s){return s%2?r+i*9:r+i*3},0);return o%10},tB=function(e){qD(t,e);function t(o,r){return JD(this,t),ZD(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return WD(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=GD.EAN5_STRUCTURE[eB(this.data)];return{data:"1011"+(0,YD.default)(this.data,r,"01"),text:this.text}}}]),t}(XD.default);sc.default=tB;var dc={};Object.defineProperty(dc,"__esModule",{value:!0});var nB=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),iB=On,oB=Ki,rB=Vh(oB),aB=pn,lB=Vh(aB);function Vh(e){return e&&e.__esModule?e:{default:e}}function sB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function cB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var uB=function(e){cB(t,e);function t(o,r){return sB(this,t),dB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return nB(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=iB.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,rB.default)(this.data,r,"01"),text:this.text}}}]),t}(lB.default);dc.default=uB;var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});var fB=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}();Sr.checksum=cc;var pB=Ki,Oo=Ih(pB),hB=pn,mB=Ih(hB);function Ih(e){return e&&e.__esModule?e:{default:e}}function gB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function yB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var bB=function(e){yB(t,e);function t(o,r){gB(this,t),o.search(/^[0-9]{11}$/)!==-1&&(o+=cc(o));var i=vB(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r));return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return fB(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==cc(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,Oo.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,Oo.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,Oo.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,Oo.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,Oo.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,Oo.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),t}(mB.default);function cc(e){var t=0,o;for(o=1;o<11;o+=2)t+=parseInt(e[o]);for(o=0;o<11;o+=2)t+=parseInt(e[o])*3;return(10-t%10)%10}Sr.default=bB;var uc={};Object.defineProperty(uc,"__esModule",{value:!0});var CB=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),_B=Ki,wB=Fh(_B),EB=pn,AB=Fh(EB),SB=Sr;function Fh(e){return e&&e.__esModule?e:{default:e}}function xB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var NB=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],TB=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],OB=function(e){kB(t,e);function t(o,r){xB(this,t);var i=fc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r));if(i.isValid=!1,o.search(/^[0-9]{6}$/)!==-1)i.middleDigits=o,i.upcA=Mh(o,"0"),i.text=r.text||""+i.upcA[0]+o+i.upcA[i.upcA.length-1],i.isValid=!0;else if(o.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=o.substring(1,o.length-1),i.upcA=Mh(i.middleDigits,o[0]),i.upcA[i.upcA.length-1]===o[o.length-1])i.isValid=!0;else return fc(i);else return fc(i);return i.displayValue=r.displayValue,r.fontSize>r.width*10?i.fontSize=r.width*10:i.fontSize=r.fontSize,i.guardHeight=r.height+i.fontSize/2+r.textMargin,i}return CB(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],i=this.upcA[this.upcA.length-1],s=TB[parseInt(i)][parseInt(r)];return(0,wB.default)(this.middleDigits,s)}}]),t}(AB.default);function Mh(e,t){for(var o=parseInt(e[e.length-1]),r=NB[o],i="",s=0,d=0;d<r.length;d++){var c=r[d];c==="X"?i+=e[s++]:i+=c}return i=""+t+i,""+i+(0,SB.checksum)(i)}uc.default=OB,Object.defineProperty(hn,"__esModule",{value:!0}),hn.UPCE=hn.UPC=hn.EAN2=hn.EAN5=hn.EAN8=hn.EAN13=void 0;var DB=ac,BB=Do(DB),$B=lc,RB=Do($B),VB=sc,IB=Do(VB),FB=dc,MB=Do(FB),PB=Sr,LB=Do(PB),jB=uc,zB=Do(jB);function Do(e){return e&&e.__esModule?e:{default:e}}hn.EAN13=BB.default,hn.EAN8=RB.default,hn.EAN5=IB.default,hn.EAN2=MB.default,hn.UPC=LB.default,hn.UPCE=zB.default;var Bo={},nl={},xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.START_BIN="1010",xr.END_BIN="11101",xr.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(nl,"__esModule",{value:!0});var HB=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),il=xr,UB=pn,WB=GB(UB);function GB(e){return e&&e.__esModule?e:{default:e}}function KB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function QB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var XB=function(e){QB(t,e);function t(){return KB(this,t),YB(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return HB(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,i=this.data.match(/.{2}/g).map(function(s){return r.encodePair(s)}).join("");return{data:il.START_BIN+i+il.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var i=il.BINARIES[r[1]];return il.BINARIES[r[0]].split("").map(function(s,d){return(s==="1"?"111":"1")+(i[d]==="1"?"000":"0")}).join("")}}]),t}(WB.default);nl.default=XB;var pc={};Object.defineProperty(pc,"__esModule",{value:!0});var JB=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),ZB=nl,qB=e$(ZB);function e$(e){return e&&e.__esModule?e:{default:e}}function t$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function i$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ph=function(t){var o=t.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,i,s){return r+i*(3-s%2*2)},0);return Math.ceil(o/10)*10-o},o$=function(e){i$(t,e);function t(o,r){return t$(this,t),o.search(/^[0-9]{13}$/)!==-1&&(o+=Ph(o)),n$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return JB(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===Ph(this.data)}}]),t}(qB.default);pc.default=o$,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.ITF14=Bo.ITF=void 0;var r$=nl,a$=Lh(r$),l$=pc,s$=Lh(l$);function Lh(e){return e&&e.__esModule?e:{default:e}}Bo.ITF=a$.default,Bo.ITF14=s$.default;var Dn={},Yi={};Object.defineProperty(Yi,"__esModule",{value:!0});var d$=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),c$=pn,u$=f$(c$);function f$(e){return e&&e.__esModule?e:{default:e}}function p$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function m$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g$=function(e){m$(t,e);function t(o,r){return p$(this,t),h$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return d$(t,[{key:"encode",value:function(){for(var r="110",i=0;i<this.data.length;i++){var s=parseInt(this.data[i]),d=s.toString(2);d=v$(d,4-d.length);for(var c=0;c<d.length;c++)r+=d[c]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(u$.default);function v$(e,t){for(var o=0;o<t;o++)e="0"+e;return e}Yi.default=g$;var hc={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.mod10=y$,Qi.mod11=b$;function y$(e){for(var t=0,o=0;o<e.length;o++){var r=parseInt(e[o]);(o+e.length)%2===0?t+=r:t+=r*2%10+Math.floor(r*2/10)}return(10-t%10)%10}function b$(e){for(var t=0,o=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=o[r%o.length]*i}return(11-t%11)%11}Object.defineProperty(hc,"__esModule",{value:!0});var C$=Yi,_$=E$(C$),w$=Qi;function E$(e){return e&&e.__esModule?e:{default:e}}function A$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function x$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var k$=function(e){x$(t,e);function t(o,r){return A$(this,t),S$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o+(0,w$.mod10)(o),r))}return t}(_$.default);hc.default=k$;var mc={};Object.defineProperty(mc,"__esModule",{value:!0});var N$=Yi,T$=D$(N$),O$=Qi;function D$(e){return e&&e.__esModule?e:{default:e}}function B$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function R$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var V$=function(e){R$(t,e);function t(o,r){return B$(this,t),$$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o+(0,O$.mod11)(o),r))}return t}(T$.default);mc.default=V$;var gc={};Object.defineProperty(gc,"__esModule",{value:!0});var I$=Yi,F$=M$(I$),jh=Qi;function M$(e){return e&&e.__esModule?e:{default:e}}function P$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function j$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var z$=function(e){j$(t,e);function t(o,r){return P$(this,t),o+=(0,jh.mod10)(o),o+=(0,jh.mod10)(o),L$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return t}(F$.default);gc.default=z$;var vc={};Object.defineProperty(vc,"__esModule",{value:!0});var H$=Yi,U$=W$(H$),zh=Qi;function W$(e){return e&&e.__esModule?e:{default:e}}function G$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K$(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Y$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Q$=function(e){Y$(t,e);function t(o,r){return G$(this,t),o+=(0,zh.mod11)(o),o+=(0,zh.mod10)(o),K$(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return t}(U$.default);vc.default=Q$,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.MSI1110=Dn.MSI1010=Dn.MSI11=Dn.MSI10=Dn.MSI=void 0;var X$=Yi,J$=kr(X$),Z$=hc,q$=kr(Z$),eR=mc,tR=kr(eR),nR=gc,iR=kr(nR),oR=vc,rR=kr(oR);function kr(e){return e&&e.__esModule?e:{default:e}}Dn.MSI=J$.default,Dn.MSI10=q$.default,Dn.MSI11=tR.default,Dn.MSI1010=iR.default,Dn.MSI1110=rR.default;var ol={};Object.defineProperty(ol,"__esModule",{value:!0}),ol.pharmacode=void 0;var aR=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),lR=pn,sR=dR(lR);function dR(e){return e&&e.__esModule?e:{default:e}}function cR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function fR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var pR=function(e){fR(t,e);function t(o,r){cR(this,t);var i=uR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r));return i.number=parseInt(o,10),i}return aR(t,[{key:"encode",value:function(){for(var r=this.number,i="";!isNaN(r)&&r!=0;)r%2===0?(i="11100"+i,r=(r-2)/2):(i="100"+i,r=(r-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(sR.default);ol.pharmacode=pR;var rl={};Object.defineProperty(rl,"__esModule",{value:!0}),rl.codabar=void 0;var hR=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),mR=pn,gR=vR(mR);function vR(e){return e&&e.__esModule?e:{default:e}}function yR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function CR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _R=function(e){CR(t,e);function t(o,r){yR(this,t),o.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(o="A"+o+"A");var i=bR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o.toUpperCase(),r));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return hR(t,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],i=this.getEncodings(),s=0;s<this.data.length;s++)r.push(i[this.data.charAt(s)]),s!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(gR.default);rl.codabar=_R;var al={};Object.defineProperty(al,"__esModule",{value:!0}),al.GenericBarcode=void 0;var wR=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),ER=pn,AR=SR(ER);function SR(e){return e&&e.__esModule?e:{default:e}}function xR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kR(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function NR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var TR=function(e){NR(t,e);function t(o,r){return xR(this,t),kR(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o,r))}return wR(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(AR.default);al.GenericBarcode=TR,Object.defineProperty(Xd,"__esModule",{value:!0});var OR=Za,ll=Zn,$o=hn,Hh=Bo,Nr=Dn,DR=ol,BR=rl,$R=al;Xd.default={CODE39:OR.CODE39,CODE128:ll.CODE128,CODE128A:ll.CODE128A,CODE128B:ll.CODE128B,CODE128C:ll.CODE128C,EAN13:$o.EAN13,EAN8:$o.EAN8,EAN5:$o.EAN5,EAN2:$o.EAN2,UPC:$o.UPC,UPCE:$o.UPCE,ITF14:Hh.ITF14,ITF:Hh.ITF,MSI:Nr.MSI,MSI10:Nr.MSI10,MSI11:Nr.MSI11,MSI1010:Nr.MSI1010,MSI1110:Nr.MSI1110,pharmacode:DR.pharmacode,codabar:BR.codabar,GenericBarcode:$R.GenericBarcode};var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});var RR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e};Ro.default=function(e,t){return RR({},e,t)};var yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=VR;function VR(e){var t=[];function o(r){if(Array.isArray(r))for(var i=0;i<r.length;i++)o(r[i]);else r.text=r.text||"",r.data=r.data||"",t.push(r)}return o(e),t}var bc={};Object.defineProperty(bc,"__esModule",{value:!0}),bc.default=IR;function IR(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}var Cc={},_c={},sl={};Object.defineProperty(sl,"__esModule",{value:!0}),sl.default=FR;function FR(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var o in t)t.hasOwnProperty(o)&&(o=t[o],typeof e[o]=="string"&&(e[o]=parseInt(e[o],10)));return typeof e.displayValue=="string"&&(e.displayValue=e.displayValue!="false"),e}var dl={};Object.defineProperty(dl,"__esModule",{value:!0});var MR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};dl.default=MR,Object.defineProperty(_c,"__esModule",{value:!0});var PR=sl,LR=Wh(PR),jR=dl,Uh=Wh(jR);function Wh(e){return e&&e.__esModule?e:{default:e}}function zR(e){var t={};for(var o in Uh.default)Uh.default.hasOwnProperty(o)&&(e.hasAttribute("jsbarcode-"+o.toLowerCase())&&(t[o]=e.getAttribute("jsbarcode-"+o.toLowerCase())),e.hasAttribute("data-"+o.toLowerCase())&&(t[o]=e.getAttribute("data-"+o.toLowerCase())));return t.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,LR.default)(t),t}_c.default=zR;var wc={},Ec={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.getTotalWidthOfEncodings=Sn.calculateEncodingAttributes=Sn.getBarcodePadding=Sn.getEncodingHeight=Sn.getMaximumHeightOfEncodings=void 0;var HR=Ro,UR=WR(HR);function WR(e){return e&&e.__esModule?e:{default:e}}function Gh(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function Kh(e,t,o){if(o.displayValue&&t<e){if(o.textAlign=="center")return Math.floor((e-t)/2);if(o.textAlign=="left")return 0;if(o.textAlign=="right")return Math.floor(e-t)}return 0}function GR(e,t,o){for(var r=0;r<e.length;r++){var i=e[r],s=(0,UR.default)(t,i.options),d;s.displayValue?d=QR(i.text,s,o):d=0;var c=i.data.length*s.width;i.width=Math.ceil(Math.max(d,c)),i.height=Gh(i,s),i.barcodePadding=Kh(d,c,s)}}function KR(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].width;return t}function YR(e){for(var t=0,o=0;o<e.length;o++)e[o].height>t&&(t=e[o].height);return t}function QR(e,t,o){var r;if(o)r=o;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=r.measureText(e);if(!i)return 0;var s=i.width;return s}Sn.getMaximumHeightOfEncodings=YR,Sn.getEncodingHeight=Gh,Sn.getBarcodePadding=Kh,Sn.calculateEncodingAttributes=GR,Sn.getTotalWidthOfEncodings=KR,Object.defineProperty(Ec,"__esModule",{value:!0});var XR=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),JR=Ro,ZR=qR(JR),Ac=Sn;function qR(e){return e&&e.__esModule?e:{default:e}}function eV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var tV=function(){function e(t,o,r){eV(this,e),this.canvas=t,this.encodings=o,this.options=r}return XR(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var o=0;o<this.encodings.length;o++){var r=(0,ZR.default)(this.options,this.encodings[o].options);this.drawCanvasBarcode(r,this.encodings[o]),this.drawCanvasText(r,this.encodings[o]),this.moveCanvasDrawing(this.encodings[o])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var o=this.canvas.getContext("2d");o.save(),(0,Ac.calculateEncodingAttributes)(this.encodings,this.options,o);var r=(0,Ac.getTotalWidthOfEncodings)(this.encodings),i=(0,Ac.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,o.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(o.fillStyle=this.options.background,o.fillRect(0,0,this.canvas.width,this.canvas.height)),o.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(o,r){var i=this.canvas.getContext("2d"),s=r.data,d;o.textPosition=="top"?d=o.marginTop+o.fontSize+o.textMargin:d=o.marginTop,i.fillStyle=o.lineColor;for(var c=0;c<s.length;c++){var f=c*o.width+r.barcodePadding;s[c]==="1"?i.fillRect(f,d,o.width,o.height):s[c]&&i.fillRect(f,d,o.width,o.height*s[c])}}},{key:"drawCanvasText",value:function(o,r){var i=this.canvas.getContext("2d"),s=o.fontOptions+" "+o.fontSize+"px "+o.font;if(o.displayValue){var d,c;o.textPosition=="top"?c=o.marginTop+o.fontSize-o.textMargin:c=o.height+o.textMargin+o.marginTop+o.fontSize,i.font=s,o.textAlign=="left"||r.barcodePadding>0?(d=0,i.textAlign="left"):o.textAlign=="right"?(d=r.width-1,i.textAlign="right"):(d=r.width/2,i.textAlign="center"),i.fillText(r.text,d,c)}}},{key:"moveCanvasDrawing",value:function(o){var r=this.canvas.getContext("2d");r.translate(o.width,0)}},{key:"restoreCanvas",value:function(){var o=this.canvas.getContext("2d");o.restore()}}]),e}();Ec.default=tV;var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});var nV=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),iV=Ro,oV=rV(iV),xc=Sn;function rV(e){return e&&e.__esModule?e:{default:e}}function aV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var cl="http://www.w3.org/2000/svg",lV=function(){function e(t,o,r){aV(this,e),this.svg=t,this.encodings=o,this.options=r,this.document=r.xmlDocument||document}return nV(e,[{key:"render",value:function(){var o=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var i=this.encodings[r],s=(0,oV.default)(this.options,i.options),d=this.createGroup(o,s.marginTop,this.svg);this.setGroupOptions(d,s),this.drawSvgBarcode(d,s,i),this.drawSVGText(d,s,i),o+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,xc.calculateEncodingAttributes)(this.encodings,this.options);var o=(0,xc.getTotalWidthOfEncodings)(this.encodings),r=(0,xc.getMaximumHeightOfEncodings)(this.encodings),i=o+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,r),this.options.background&&this.drawRect(0,0,i,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(o,r,i){var s=i.data,d;r.textPosition=="top"?d=r.fontSize+r.textMargin:d=0;for(var c=0,f=0,g=0;g<s.length;g++)f=g*r.width+i.barcodePadding,s[g]==="1"?c++:c>0&&(this.drawRect(f-r.width*c,d,r.width*c,r.height,o),c=0);c>0&&this.drawRect(f-r.width*(c-1),d,r.width*c,r.height,o)}},{key:"drawSVGText",value:function(o,r,i){var s=this.document.createElementNS(cl,"text");if(r.displayValue){var d,c;s.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?c=r.fontSize-r.textMargin:c=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||i.barcodePadding>0?(d=0,s.setAttribute("text-anchor","start")):r.textAlign=="right"?(d=i.width-1,s.setAttribute("text-anchor","end")):(d=i.width/2,s.setAttribute("text-anchor","middle")),s.setAttribute("x",d),s.setAttribute("y",c),s.appendChild(this.document.createTextNode(i.text)),o.appendChild(s)}}},{key:"setSvgAttributes",value:function(o,r){var i=this.svg;i.setAttribute("width",o+"px"),i.setAttribute("height",r+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+o+" "+r),i.setAttribute("xmlns",cl),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(o,r,i){var s=this.document.createElementNS(cl,"g");return s.setAttribute("transform","translate("+o+", "+r+")"),i.appendChild(s),s}},{key:"setGroupOptions",value:function(o,r){o.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(o,r,i,s,d){var c=this.document.createElementNS(cl,"rect");return c.setAttribute("x",o),c.setAttribute("y",r),c.setAttribute("width",i),c.setAttribute("height",s),d.appendChild(c),c}}]),e}();Sc.default=lV;var kc={};Object.defineProperty(kc,"__esModule",{value:!0});var sV=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}();function dV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var cV=function(){function e(t,o,r){dV(this,e),this.object=t,this.encodings=o,this.options=r}return sV(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();kc.default=cV,Object.defineProperty(wc,"__esModule",{value:!0});var uV=Ec,fV=Nc(uV),pV=Sc,hV=Nc(pV),mV=kc,gV=Nc(mV);function Nc(e){return e&&e.__esModule?e:{default:e}}wc.default={CanvasRenderer:fV.default,SVGRenderer:hV.default,ObjectRenderer:gV.default};var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});function Tc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vV=function(e){Dc(t,e);function t(o,r){Tc(this,t);var i=Oc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=o,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return t}(Error),yV=function(e){Dc(t,e);function t(){Tc(this,t);var o=Oc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.name="InvalidElementException",o.message="Not supported type to render on",o}return t}(Error),bV=function(e){Dc(t,e);function t(){Tc(this,t);var o=Oc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.name="NoElementException",o.message="No element to render on.",o}return t}(Error);Vo.InvalidInputException=vV,Vo.InvalidElementException=yV,Vo.NoElementException=bV,Object.defineProperty(Cc,"__esModule",{value:!0});var CV=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_V=_c,Bc=Yh(_V),wV=wc,Tr=Yh(wV),EV=Vo;function Yh(e){return e&&e.__esModule?e:{default:e}}function $c(e){if(typeof e=="string")return AV(e);if(Array.isArray(e)){for(var t=[],o=0;o<e.length;o++)t.push($c(e[o]));return t}else{if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLImageElement)return SV(e);if(e&&e.nodeName&&e.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&e instanceof SVGElement)return{element:e,options:(0,Bc.default)(e),renderer:Tr.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement)return{element:e,options:(0,Bc.default)(e),renderer:Tr.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:Tr.default.CanvasRenderer};if(e&&(typeof e>"u"?"undefined":CV(e))==="object"&&!e.nodeName)return{element:e,renderer:Tr.default.ObjectRenderer};throw new EV.InvalidElementException}}function AV(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var o=[],r=0;r<t.length;r++)o.push($c(t[r]));return o}}function SV(e){var t=document.createElement("canvas");return{element:t,options:(0,Bc.default)(e),renderer:Tr.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}Cc.default=$c;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});var xV=function(){function e(t,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}();function kV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var NV=function(){function e(t){kV(this,e),this.api=t}return xV(e,[{key:"handleCatch",value:function(o){if(o.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw o.message;else throw o;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(o){try{var r=o.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(i){return this.handleCatch(i),this.api}}}]),e}();Rc.default=NV;var TV=Xd,Xi=ki(TV),OV=Ro,Or=ki(OV),DV=yc,Qh=ki(DV),BV=bc,Xh=ki(BV),$V=Cc,RV=ki($V),VV=sl,IV=ki(VV),FV=Rc,MV=ki(FV),Jh=Vo,PV=dl,Zh=ki(PV);function ki(e){return e&&e.__esModule?e:{default:e}}var ui=function(){},ul=function(t,o,r){var i=new ui;if(typeof t>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,RV.default)(t),i._encodings=[],i._options=Zh.default,i._errorHandler=new MV.default(i),typeof o<"u"&&(r=r||{},r.format||(r.format=tm()),i.options(r)[r.format](o,r).render()),i};ul.getModule=function(e){return Xi.default[e]};for(var qh in Xi.default)Xi.default.hasOwnProperty(qh)&&LV(Xi.default,qh);function LV(e,t){ui.prototype[t]=ui.prototype[t.toUpperCase()]=ui.prototype[t.toLowerCase()]=function(o,r){var i=this;return i._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var s=(0,Or.default)(i._options,r);s=(0,IV.default)(s);var d=e[t],c=em(o,d,s);return i._encodings.push(c),i})}}function em(e,t,o){e=""+e;var r=new t(e,o);if(!r.valid())throw new Jh.InvalidInputException(r.constructor.name,e);var i=r.encode();i=(0,Qh.default)(i);for(var s=0;s<i.length;s++)i[s].options=(0,Or.default)(o,i[s].options);return i}function tm(){return Xi.default.CODE128?"CODE128":Object.keys(Xi.default)[0]}ui.prototype.options=function(e){return this._options=(0,Or.default)(this._options,e),this},ui.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},ui.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var e;for(var t in this._renderProperties){e=this._renderProperties[t];var o=(0,Or.default)(this._options,e.options);o.format=="auto"&&(o.format=tm()),this._errorHandler.wrapBarcodeCall(function(){var r=o.value,i=Xi.default[o.format.toUpperCase()],s=em(r,i,o);Vc(e,s,o)})}}},ui.prototype.render=function(){if(!this._renderProperties)throw new Jh.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)Vc(this._renderProperties[e],this._encodings,this._options);else Vc(this._renderProperties,this._encodings,this._options);return this},ui.prototype._defaults=Zh.default;function Vc(e,t,o){t=(0,Qh.default)(t);for(var r=0;r<t.length;r++)t[r].options=(0,Or.default)(o,t[r].options),(0,Xh.default)(t[r].options);(0,Xh.default)(o);var i=e.renderer,s=new i(e.element,t,o);s.render(),e.afterRender&&e.afterRender()}typeof window<"u"&&(window.JsBarcode=ul),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(e,t){var o=[];return jQuery(this).each(function(){o.push(this)}),ul(o,e,t)});var jV=ul;const zV=n.defineComponent({name:"BarCodeBox",data(){return{}},props:{value:String,format:String,displayValue:{type:Boolean,default:!0},fontSize:Number,textPosition:String,textAlign:String,textMargin:Number,width:{type:Number,default:2},height:{type:Number,default:50},background:String,lineColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e=this.value,t={};Object.keys(this.$props).forEach(o=>{this.$props[o]!=null&&this.$props[o]!==""&&(t[o]=this.$props[o])}),delete t.value,delete t.formCreateInject,this.$nextTick(()=>{jV(this.$refs.bar,e||"",t)})},deep:!0,immediate:!0}}}),HV={class:"_fc-barcode",ref:"bar"};function UV(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("img",HV,null,512)}const WV=Oe(zV,[["render",UV]]),a3="",GV=n.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),KV=["src"];function YV(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("iframe",{class:"_fc-iframe-box",src:e.src,frameborder:"0",onLoad:t[0]||(t[0]=d=>e.$emit("load",d))},null,40,KV)}const QV=Oe(GV,[["render",YV]]);var nm={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(yd,()=>(()=>{var o={873:(d,c)=>{var f,g,y=function(){var C=function(W,R){var k=W,P=m[R],j=null,Z=0,J=null,F=[],oe={},pe=function(K,te){j=function(q){for(var ie=new Array(q),de=0;de<q;de+=1){ie[de]=new Array(q);for(var Ee=0;Ee<q;Ee+=1)ie[de][Ee]=null}return ie}(Z=4*k+17),se(0,0),se(Z-7,0),se(0,Z-7),fe(),ye(),he(K,te),k>=7&&ue(K),J==null&&(J=Y(k,P,F)),$(J,te)},se=function(K,te){for(var q=-1;q<=7;q+=1)if(!(K+q<=-1||Z<=K+q))for(var ie=-1;ie<=7;ie+=1)te+ie<=-1||Z<=te+ie||(j[K+q][te+ie]=0<=q&&q<=6&&(ie==0||ie==6)||0<=ie&&ie<=6&&(q==0||q==6)||2<=q&&q<=4&&2<=ie&&ie<=4)},ye=function(){for(var K=8;K<Z-8;K+=1)j[K][6]==null&&(j[K][6]=K%2==0);for(var te=8;te<Z-8;te+=1)j[6][te]==null&&(j[6][te]=te%2==0)},fe=function(){for(var K=b.getPatternPosition(k),te=0;te<K.length;te+=1)for(var q=0;q<K.length;q+=1){var ie=K[te],de=K[q];if(j[ie][de]==null)for(var Ee=-2;Ee<=2;Ee+=1)for(var Se=-2;Se<=2;Se+=1)j[ie+Ee][de+Se]=Ee==-2||Ee==2||Se==-2||Se==2||Ee==0&&Se==0}},ue=function(K){for(var te=b.getBCHTypeNumber(k),q=0;q<18;q+=1){var ie=!K&&(te>>q&1)==1;j[Math.floor(q/3)][q%3+Z-8-3]=ie}for(q=0;q<18;q+=1)ie=!K&&(te>>q&1)==1,j[q%3+Z-8-3][Math.floor(q/3)]=ie},he=function(K,te){for(var q=P<<3|te,ie=b.getBCHTypeInfo(q),de=0;de<15;de+=1){var Ee=!K&&(ie>>de&1)==1;de<6?j[de][8]=Ee:de<8?j[de+1][8]=Ee:j[Z-15+de][8]=Ee}for(de=0;de<15;de+=1)Ee=!K&&(ie>>de&1)==1,de<8?j[8][Z-de-1]=Ee:de<9?j[8][15-de-1+1]=Ee:j[8][15-de-1]=Ee;j[Z-8][8]=!K},$=function(K,te){for(var q=-1,ie=Z-1,de=7,Ee=0,Se=b.getMaskFunction(te),ke=Z-1;ke>0;ke-=2)for(ke==6&&(ke-=1);;){for(var qe=0;qe<2;qe+=1)if(j[ie][ke-qe]==null){var Ve=!1;Ee<K.length&&(Ve=(K[Ee]>>>de&1)==1),Se(ie,ke-qe)&&(Ve=!Ve),j[ie][ke-qe]=Ve,(de-=1)==-1&&(Ee+=1,de=7)}if((ie+=q)<0||Z<=ie){ie-=q,q=-q;break}}},Y=function(K,te,q){for(var ie=O.getRSBlocks(K,te),de=D(),Ee=0;Ee<q.length;Ee+=1){var Se=q[Ee];de.put(Se.getMode(),4),de.put(Se.getLength(),b.getLengthInBits(Se.getMode(),K)),Se.write(de)}var ke=0;for(Ee=0;Ee<ie.length;Ee+=1)ke+=ie[Ee].dataCount;if(de.getLengthInBits()>8*ke)throw"code length overflow. ("+de.getLengthInBits()+">"+8*ke+")";for(de.getLengthInBits()+4<=8*ke&&de.put(0,4);de.getLengthInBits()%8!=0;)de.putBit(!1);for(;!(de.getLengthInBits()>=8*ke||(de.put(236,8),de.getLengthInBits()>=8*ke));)de.put(17,8);return function(qe,Ve){for(var ge=0,Ae=0,le=0,we=new Array(Ve.length),Ie=new Array(Ve.length),ze=0;ze<Ve.length;ze+=1){var ct=Ve[ze].dataCount,rt=Ve[ze].totalCount-ct;Ae=Math.max(Ae,ct),le=Math.max(le,rt),we[ze]=new Array(ct);for(var Fe=0;Fe<we[ze].length;Fe+=1)we[ze][Fe]=255&qe.getBuffer()[Fe+ge];ge+=ct;var Ct=b.getErrorCorrectPolynomial(rt),Ze=x(we[ze],Ct.getLength()-1).mod(Ct);for(Ie[ze]=new Array(Ct.getLength()-1),Fe=0;Fe<Ie[ze].length;Fe+=1){var Te=Fe+Ze.getLength()-Ie[ze].length;Ie[ze][Fe]=Te>=0?Ze.getAt(Te):0}}var Re=0;for(Fe=0;Fe<Ve.length;Fe+=1)Re+=Ve[Fe].totalCount;var Xe=new Array(Re),De=0;for(Fe=0;Fe<Ae;Fe+=1)for(ze=0;ze<Ve.length;ze+=1)Fe<we[ze].length&&(Xe[De]=we[ze][Fe],De+=1);for(Fe=0;Fe<le;Fe+=1)for(ze=0;ze<Ve.length;ze+=1)Fe<Ie[ze].length&&(Xe[De]=Ie[ze][Fe],De+=1);return Xe}(de,ie)};oe.addData=function(K,te){var q=null;switch(te=te||"Byte"){case"Numeric":q=V(K);break;case"Alphanumeric":q=I(K);break;case"Byte":q=z(K);break;case"Kanji":q=T(K);break;default:throw"mode:"+te}F.push(q),J=null},oe.isDark=function(K,te){if(K<0||Z<=K||te<0||Z<=te)throw K+","+te;return j[K][te]},oe.getModuleCount=function(){return Z},oe.make=function(){if(k<1){for(var K=1;K<40;K++){for(var te=O.getRSBlocks(K,P),q=D(),ie=0;ie<F.length;ie++){var de=F[ie];q.put(de.getMode(),4),q.put(de.getLength(),b.getLengthInBits(de.getMode(),K)),de.write(q)}var Ee=0;for(ie=0;ie<te.length;ie++)Ee+=te[ie].dataCount;if(q.getLengthInBits()<=8*Ee)break}k=K}pe(!1,function(){for(var Se=0,ke=0,qe=0;qe<8;qe+=1){pe(!0,qe);var Ve=b.getLostPoint(oe);(qe==0||Se>Ve)&&(Se=Ve,ke=qe)}return ke}())},oe.createTableTag=function(K,te){K=K||2;var q="";q+='<table style="',q+=" border-width: 0px; border-style: none;",q+=" border-collapse: collapse;",q+=" padding: 0px; margin: "+(te=te===void 0?4*K:te)+"px;",q+='">',q+="<tbody>";for(var ie=0;ie<oe.getModuleCount();ie+=1){q+="<tr>";for(var de=0;de<oe.getModuleCount();de+=1)q+='<td style="',q+=" border-width: 0px; border-style: none;",q+=" border-collapse: collapse;",q+=" padding: 0px; margin: 0px;",q+=" width: "+K+"px;",q+=" height: "+K+"px;",q+=" background-color: ",q+=oe.isDark(ie,de)?"#000000":"#ffffff",q+=";",q+='"/>';q+="</tr>"}return(q+="</tbody>")+"</table>"},oe.createSvgTag=function(K,te,q,ie){var de={};typeof arguments[0]=="object"&&(K=(de=arguments[0]).cellSize,te=de.margin,q=de.alt,ie=de.title),K=K||2,te=te===void 0?4*K:te,(q=typeof q=="string"?{text:q}:q||{}).text=q.text||null,q.id=q.text?q.id||"qrcode-description":null,(ie=typeof ie=="string"?{text:ie}:ie||{}).text=ie.text||null,ie.id=ie.text?ie.id||"qrcode-title":null;var Ee,Se,ke,qe,Ve=oe.getModuleCount()*K+2*te,ge="";for(qe="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",ge+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ge+=de.scalable?"":' width="'+Ve+'px" height="'+Ve+'px"',ge+=' viewBox="0 0 '+Ve+" "+Ve+'" ',ge+=' preserveAspectRatio="xMinYMin meet"',ge+=ie.text||q.text?' role="img" aria-labelledby="'+Q([ie.id,q.id].join(" ").trim())+'"':"",ge+=">",ge+=ie.text?'<title id="'+Q(ie.id)+'">'+Q(ie.text)+"</title>":"",ge+=q.text?'<description id="'+Q(q.id)+'">'+Q(q.text)+"</description>":"",ge+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ge+='<path d="',Se=0;Se<oe.getModuleCount();Se+=1)for(ke=Se*K+te,Ee=0;Ee<oe.getModuleCount();Ee+=1)oe.isDark(Se,Ee)&&(ge+="M"+(Ee*K+te)+","+ke+qe);return(ge+='" stroke="transparent" fill="black"/>')+"</svg>"},oe.createDataURL=function(K,te){K=K||2,te=te===void 0?4*K:te;var q=oe.getModuleCount()*K+2*te,ie=te,de=q-te;return U(q,q,function(Ee,Se){if(ie<=Ee&&Ee<de&&ie<=Se&&Se<de){var ke=Math.floor((Ee-ie)/K),qe=Math.floor((Se-ie)/K);return oe.isDark(qe,ke)?0:1}return 1})},oe.createImgTag=function(K,te,q){K=K||2,te=te===void 0?4*K:te;var ie=oe.getModuleCount()*K+2*te,de="";return de+="<img",de+=' src="',de+=oe.createDataURL(K,te),de+='"',de+=' width="',de+=ie,de+='"',de+=' height="',de+=ie,de+='"',q&&(de+=' alt="',de+=Q(q),de+='"'),de+"/>"};var Q=function(K){for(var te="",q=0;q<K.length;q+=1){var ie=K.charAt(q);switch(ie){case"<":te+="&lt;";break;case">":te+="&gt;";break;case"&":te+="&amp;";break;case'"':te+="&quot;";break;default:te+=ie}}return te};return oe.createASCII=function(K,te){if((K=K||1)<2)return function(we){we=we===void 0?2:we;var Ie,ze,ct,rt,Fe,Ct=1*oe.getModuleCount()+2*we,Ze=we,Te=Ct-we,Re={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Xe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},De="";for(Ie=0;Ie<Ct;Ie+=2){for(ct=Math.floor((Ie-Ze)/1),rt=Math.floor((Ie+1-Ze)/1),ze=0;ze<Ct;ze+=1)Fe="\u2588",Ze<=ze&&ze<Te&&Ze<=Ie&&Ie<Te&&oe.isDark(ct,Math.floor((ze-Ze)/1))&&(Fe=" "),Ze<=ze&&ze<Te&&Ze<=Ie+1&&Ie+1<Te&&oe.isDark(rt,Math.floor((ze-Ze)/1))?Fe+=" ":Fe+="\u2588",De+=we<1&&Ie+1>=Te?Xe[Fe]:Re[Fe];De+=`
`}return Ct%2&&we>0?De.substring(0,De.length-Ct-1)+Array(Ct+1).join("\u2580"):De.substring(0,De.length-1)}(te);K-=1,te=te===void 0?2*K:te;var q,ie,de,Ee,Se=oe.getModuleCount()*K+2*te,ke=te,qe=Se-te,Ve=Array(K+1).join("\u2588\u2588"),ge=Array(K+1).join(" "),Ae="",le="";for(q=0;q<Se;q+=1){for(de=Math.floor((q-ke)/K),le="",ie=0;ie<Se;ie+=1)Ee=1,ke<=ie&&ie<qe&&ke<=q&&q<qe&&oe.isDark(de,Math.floor((ie-ke)/K))&&(Ee=0),le+=Ee?Ve:ge;for(de=0;de<K;de+=1)Ae+=le+`
`}return Ae.substring(0,Ae.length-1)},oe.renderTo2dContext=function(K,te){te=te||2;for(var q=oe.getModuleCount(),ie=0;ie<q;ie++)for(var de=0;de<q;de++)K.fillStyle=oe.isDark(ie,de)?"black":"white",K.fillRect(ie*te,de*te,te,te)},oe};C.stringToBytes=(C.stringToBytesFuncs={default:function(W){for(var R=[],k=0;k<W.length;k+=1){var P=W.charCodeAt(k);R.push(255&P)}return R}}).default,C.createStringToBytes=function(W,R){var k=function(){for(var j=L(W),Z=function(){var ye=j.read();if(ye==-1)throw"eof";return ye},J=0,F={};;){var oe=j.read();if(oe==-1)break;var pe=Z(),se=Z()<<8|Z();F[String.fromCharCode(oe<<8|pe)]=se,J+=1}if(J!=R)throw J+" != "+R;return F}(),P="?".charCodeAt(0);return function(j){for(var Z=[],J=0;J<j.length;J+=1){var F=j.charCodeAt(J);if(F<128)Z.push(F);else{var oe=k[j.charAt(J)];typeof oe=="number"?(255&oe)==oe?Z.push(oe):(Z.push(oe>>>8),Z.push(255&oe)):Z.push(P)}}return Z}};var w,A,E,_,v,m={L:1,M:0,Q:3,H:2},b=(w=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],A=1335,E=7973,v=function(W){for(var R=0;W!=0;)R+=1,W>>>=1;return R},(_={}).getBCHTypeInfo=function(W){for(var R=W<<10;v(R)-v(A)>=0;)R^=A<<v(R)-v(A);return 21522^(W<<10|R)},_.getBCHTypeNumber=function(W){for(var R=W<<12;v(R)-v(E)>=0;)R^=E<<v(R)-v(E);return W<<12|R},_.getPatternPosition=function(W){return w[W-1]},_.getMaskFunction=function(W){switch(W){case 0:return function(R,k){return(R+k)%2==0};case 1:return function(R,k){return R%2==0};case 2:return function(R,k){return k%3==0};case 3:return function(R,k){return(R+k)%3==0};case 4:return function(R,k){return(Math.floor(R/2)+Math.floor(k/3))%2==0};case 5:return function(R,k){return R*k%2+R*k%3==0};case 6:return function(R,k){return(R*k%2+R*k%3)%2==0};case 7:return function(R,k){return(R*k%3+(R+k)%2)%2==0};default:throw"bad maskPattern:"+W}},_.getErrorCorrectPolynomial=function(W){for(var R=x([1],0),k=0;k<W;k+=1)R=R.multiply(x([1,S.gexp(k)],0));return R},_.getLengthInBits=function(W,R){if(1<=R&&R<10)switch(W){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+W}else if(R<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+W}else{if(!(R<41))throw"type:"+R;switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+W}}},_.getLostPoint=function(W){for(var R=W.getModuleCount(),k=0,P=0;P<R;P+=1)for(var j=0;j<R;j+=1){for(var Z=0,J=W.isDark(P,j),F=-1;F<=1;F+=1)if(!(P+F<0||R<=P+F))for(var oe=-1;oe<=1;oe+=1)j+oe<0||R<=j+oe||F==0&&oe==0||J==W.isDark(P+F,j+oe)&&(Z+=1);Z>5&&(k+=3+Z-5)}for(P=0;P<R-1;P+=1)for(j=0;j<R-1;j+=1){var pe=0;W.isDark(P,j)&&(pe+=1),W.isDark(P+1,j)&&(pe+=1),W.isDark(P,j+1)&&(pe+=1),W.isDark(P+1,j+1)&&(pe+=1),pe!=0&&pe!=4||(k+=3)}for(P=0;P<R;P+=1)for(j=0;j<R-6;j+=1)W.isDark(P,j)&&!W.isDark(P,j+1)&&W.isDark(P,j+2)&&W.isDark(P,j+3)&&W.isDark(P,j+4)&&!W.isDark(P,j+5)&&W.isDark(P,j+6)&&(k+=40);for(j=0;j<R;j+=1)for(P=0;P<R-6;P+=1)W.isDark(P,j)&&!W.isDark(P+1,j)&&W.isDark(P+2,j)&&W.isDark(P+3,j)&&W.isDark(P+4,j)&&!W.isDark(P+5,j)&&W.isDark(P+6,j)&&(k+=40);var se=0;for(j=0;j<R;j+=1)for(P=0;P<R;P+=1)W.isDark(P,j)&&(se+=1);return k+Math.abs(100*se/R/R-50)/5*10},_),S=function(){for(var W=new Array(256),R=new Array(256),k=0;k<8;k+=1)W[k]=1<<k;for(k=8;k<256;k+=1)W[k]=W[k-4]^W[k-5]^W[k-6]^W[k-8];for(k=0;k<255;k+=1)R[W[k]]=k;return{glog:function(P){if(P<1)throw"glog("+P+")";return R[P]},gexp:function(P){for(;P<0;)P+=255;for(;P>=256;)P-=255;return W[P]}}}();function x(W,R){if(W.length===void 0)throw W.length+"/"+R;var k=function(){for(var j=0;j<W.length&&W[j]==0;)j+=1;for(var Z=new Array(W.length-j+R),J=0;J<W.length-j;J+=1)Z[J]=W[J+j];return Z}(),P={getAt:function(j){return k[j]},getLength:function(){return k.length},multiply:function(j){for(var Z=new Array(P.getLength()+j.getLength()-1),J=0;J<P.getLength();J+=1)for(var F=0;F<j.getLength();F+=1)Z[J+F]^=S.gexp(S.glog(P.getAt(J))+S.glog(j.getAt(F)));return x(Z,0)},mod:function(j){if(P.getLength()-j.getLength()<0)return P;for(var Z=S.glog(P.getAt(0))-S.glog(j.getAt(0)),J=new Array(P.getLength()),F=0;F<P.getLength();F+=1)J[F]=P.getAt(F);for(F=0;F<j.getLength();F+=1)J[F]^=S.gexp(S.glog(j.getAt(F))+Z);return x(J,0).mod(j)}};return P}var O=function(){var W=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],R=function(P,j){var Z={};return Z.totalCount=P,Z.dataCount=j,Z},k={getRSBlocks:function(P,j){var Z=function(ue,he){switch(he){case m.L:return W[4*(ue-1)+0];case m.M:return W[4*(ue-1)+1];case m.Q:return W[4*(ue-1)+2];case m.H:return W[4*(ue-1)+3];default:return}}(P,j);if(Z===void 0)throw"bad rs block @ typeNumber:"+P+"/errorCorrectionLevel:"+j;for(var J=Z.length/3,F=[],oe=0;oe<J;oe+=1)for(var pe=Z[3*oe+0],se=Z[3*oe+1],ye=Z[3*oe+2],fe=0;fe<pe;fe+=1)F.push(R(se,ye));return F}};return k}(),D=function(){var W=[],R=0,k={getBuffer:function(){return W},getAt:function(P){var j=Math.floor(P/8);return(W[j]>>>7-P%8&1)==1},put:function(P,j){for(var Z=0;Z<j;Z+=1)k.putBit((P>>>j-Z-1&1)==1)},getLengthInBits:function(){return R},putBit:function(P){var j=Math.floor(R/8);W.length<=j&&W.push(0),P&&(W[j]|=128>>>R%8),R+=1}};return k},V=function(W){var R=W,k={getMode:function(){return 1},getLength:function(Z){return R.length},write:function(Z){for(var J=R,F=0;F+2<J.length;)Z.put(P(J.substring(F,F+3)),10),F+=3;F<J.length&&(J.length-F==1?Z.put(P(J.substring(F,F+1)),4):J.length-F==2&&Z.put(P(J.substring(F,F+2)),7))}},P=function(Z){for(var J=0,F=0;F<Z.length;F+=1)J=10*J+j(Z.charAt(F));return J},j=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return k},I=function(W){var R=W,k={getMode:function(){return 2},getLength:function(j){return R.length},write:function(j){for(var Z=R,J=0;J+1<Z.length;)j.put(45*P(Z.charAt(J))+P(Z.charAt(J+1)),11),J+=2;J<Z.length&&j.put(P(Z.charAt(J)),6)}},P=function(j){if("0"<=j&&j<="9")return j.charCodeAt(0)-"0".charCodeAt(0);if("A"<=j&&j<="Z")return j.charCodeAt(0)-"A".charCodeAt(0)+10;switch(j){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+j}};return k},z=function(W){var R=C.stringToBytes(W);return{getMode:function(){return 4},getLength:function(k){return R.length},write:function(k){for(var P=0;P<R.length;P+=1)k.put(R[P],8)}}},T=function(W){var R=C.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(){var j=R("\u53CB");if(j.length!=2||(j[0]<<8|j[1])!=38726)throw"sjis not supported."})();var k=R(W),P={getMode:function(){return 8},getLength:function(j){return~~(k.length/2)},write:function(j){for(var Z=k,J=0;J+1<Z.length;){var F=(255&Z[J])<<8|255&Z[J+1];if(33088<=F&&F<=40956)F-=33088;else{if(!(57408<=F&&F<=60351))throw"illegal char at "+(J+1)+"/"+F;F-=49472}F=192*(F>>>8&255)+(255&F),j.put(F,13),J+=2}if(J<Z.length)throw"illegal char at "+(J+1)}};return P},B=function(){var W=[],R={writeByte:function(k){W.push(255&k)},writeShort:function(k){R.writeByte(k),R.writeByte(k>>>8)},writeBytes:function(k,P,j){P=P||0,j=j||k.length;for(var Z=0;Z<j;Z+=1)R.writeByte(k[Z+P])},writeString:function(k){for(var P=0;P<k.length;P+=1)R.writeByte(k.charCodeAt(P))},toByteArray:function(){return W},toString:function(){var k="";k+="[";for(var P=0;P<W.length;P+=1)P>0&&(k+=","),k+=W[P];return k+"]"}};return R},L=function(W){var R=W,k=0,P=0,j=0,Z={read:function(){for(;j<8;){if(k>=R.length){if(j==0)return-1;throw"unexpected end of file./"+j}var F=R.charAt(k);if(k+=1,F=="=")return j=0,-1;F.match(/^\s$/)||(P=P<<6|J(F.charCodeAt(0)),j+=6)}var oe=P>>>j-8&255;return j-=8,oe}},J=function(F){if(65<=F&&F<=90)return F-65;if(97<=F&&F<=122)return F-97+26;if(48<=F&&F<=57)return F-48+52;if(F==43)return 62;if(F==47)return 63;throw"c:"+F};return Z},U=function(W,R,k){for(var P=function(se,ye){var fe=se,ue=ye,he=new Array(se*ye),$={setPixel:function(K,te,q){he[te*fe+K]=q},write:function(K){K.writeString("GIF87a"),K.writeShort(fe),K.writeShort(ue),K.writeByte(128),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(0),K.writeByte(255),K.writeByte(255),K.writeByte(255),K.writeString(","),K.writeShort(0),K.writeShort(0),K.writeShort(fe),K.writeShort(ue),K.writeByte(0);var te=Y(2);K.writeByte(2);for(var q=0;te.length-q>255;)K.writeByte(255),K.writeBytes(te,q,255),q+=255;K.writeByte(te.length-q),K.writeBytes(te,q,te.length-q),K.writeByte(0),K.writeString(";")}},Y=function(K){for(var te=1<<K,q=1+(1<<K),ie=K+1,de=Q(),Ee=0;Ee<te;Ee+=1)de.add(String.fromCharCode(Ee));de.add(String.fromCharCode(te)),de.add(String.fromCharCode(q));var Se,ke,qe,Ve=B(),ge=(Se=Ve,ke=0,qe=0,{write:function(Ie,ze){if(Ie>>>ze!=0)throw"length over";for(;ke+ze>=8;)Se.writeByte(255&(Ie<<ke|qe)),ze-=8-ke,Ie>>>=8-ke,qe=0,ke=0;qe|=Ie<<ke,ke+=ze},flush:function(){ke>0&&Se.writeByte(qe)}});ge.write(te,ie);var Ae=0,le=String.fromCharCode(he[Ae]);for(Ae+=1;Ae<he.length;){var we=String.fromCharCode(he[Ae]);Ae+=1,de.contains(le+we)?le+=we:(ge.write(de.indexOf(le),ie),de.size()<4095&&(de.size()==1<<ie&&(ie+=1),de.add(le+we)),le=we)}return ge.write(de.indexOf(le),ie),ge.write(q,ie),ge.flush(),Ve.toByteArray()},Q=function(){var K={},te=0,q={add:function(ie){if(q.contains(ie))throw"dup key:"+ie;K[ie]=te,te+=1},size:function(){return te},indexOf:function(ie){return K[ie]},contains:function(ie){return K[ie]!==void 0}};return q};return $}(W,R),j=0;j<R;j+=1)for(var Z=0;Z<W;Z+=1)P.setPixel(Z,j,k(Z,j));var J=B();P.write(J);for(var F=function(){var se=0,ye=0,fe=0,ue="",he={},$=function(Q){ue+=String.fromCharCode(Y(63&Q))},Y=function(Q){if(!(Q<0)){if(Q<26)return 65+Q;if(Q<52)return Q-26+97;if(Q<62)return Q-52+48;if(Q==62)return 43;if(Q==63)return 47}throw"n:"+Q};return he.writeByte=function(Q){for(se=se<<8|255&Q,ye+=8,fe+=1;ye>=6;)$(se>>>ye-6),ye-=6},he.flush=function(){if(ye>0&&($(se<<6-ye),se=0,ye=0),fe%3!=0)for(var Q=3-fe%3,K=0;K<Q;K+=1)ue+="="},he.toString=function(){return ue},he}(),oe=J.toByteArray(),pe=0;pe<oe.length;pe+=1)F.writeByte(oe[pe]);return F.flush(),"data:image/gif;base64,"+F};return C}();y.stringToBytesFuncs["UTF-8"]=function(C){return function(w){for(var A=[],E=0;E<w.length;E++){var _=w.charCodeAt(E);_<128?A.push(_):_<2048?A.push(192|_>>6,128|63&_):_<55296||_>=57344?A.push(224|_>>12,128|_>>6&63,128|63&_):(E++,_=65536+((1023&_)<<10|1023&w.charCodeAt(E)),A.push(240|_>>18,128|_>>12&63,128|_>>6&63,128|63&_))}return A}(C)},(g=typeof(f=function(){return y})=="function"?f.apply(c,[]):f)===void 0||(d.exports=g)}},r={};function i(d){var c=r[d];if(c!==void 0)return c.exports;var f=r[d]={exports:{}};return o[d](f,f.exports,i),f.exports}i.n=d=>{var c=d&&d.__esModule?()=>d.default:()=>d;return i.d(c,{a:c}),c},i.d=(d,c)=>{for(var f in c)i.o(c,f)&&!i.o(d,f)&&Object.defineProperty(d,f,{enumerable:!0,get:c[f]})},i.o=(d,c)=>Object.prototype.hasOwnProperty.call(d,c);var s={};return(()=>{i.d(s,{default:()=>R});const d=k=>!!k&&typeof k=="object"&&!Array.isArray(k);function c(k,...P){if(!P.length)return k;const j=P.shift();return j!==void 0&&d(k)&&d(j)?(k=Object.assign({},k),Object.keys(j).forEach(Z=>{const J=k[Z],F=j[Z];Array.isArray(J)&&Array.isArray(F)?k[Z]=F:d(J)&&d(F)?k[Z]=c(Object.assign({},J),F):k[Z]=F}),c(k,...P)):k}function f(k,P){const j=document.createElement("a");j.download=P,j.href=k,document.body.appendChild(j),j.click(),document.body.removeChild(j)}const g={L:.07,M:.15,Q:.25,H:.3};class y{constructor({svg:P,type:j,window:Z}){this._svg=P,this._type=j,this._window=Z}draw(P,j,Z,J){let F;switch(this._type){case"dots":F=this._drawDot;break;case"classy":F=this._drawClassy;break;case"classy-rounded":F=this._drawClassyRounded;break;case"rounded":F=this._drawRounded;break;case"extra-rounded":F=this._drawExtraRounded;break;default:F=this._drawSquare}F.call(this,{x:P,y:j,size:Z,getNeighbor:J})}_rotateFigure({x:P,y:j,size:Z,rotation:J=0,draw:F}){var oe;const pe=P+Z/2,se=j+Z/2;F(),(oe=this._element)===null||oe===void 0||oe.setAttribute("transform",`rotate(${180*J/Math.PI},${pe},${se})`)}_basicDot(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(Z+j/2)),this._element.setAttribute("cy",String(J+j/2)),this._element.setAttribute("r",String(j/2))}}))}_basicSquare(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(Z)),this._element.setAttribute("y",String(J)),this._element.setAttribute("width",String(j)),this._element.setAttribute("height",String(j))}}))}_basicSideRounded(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h `+j/2+`a ${j/2} ${j/2}, 0, 0, 0, 0 ${-j}`)}}))}_basicCornerRounded(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h ${j}v `+-j/2+`a ${j/2} ${j/2}, 0, 0, 0, ${-j/2} ${-j/2}`)}}))}_basicCornerExtraRounded(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h ${j}a ${j} ${j}, 0, 0, 0, ${-j} ${-j}`)}}))}_basicCornersRounded(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${Z} ${J}v `+j/2+`a ${j/2} ${j/2}, 0, 0, 0, ${j/2} ${j/2}h `+j/2+"v "+-j/2+`a ${j/2} ${j/2}, 0, 0, 0, ${-j/2} ${-j/2}`)}}))}_drawDot({x:P,y:j,size:Z}){this._basicDot({x:P,y:j,size:Z,rotation:0})}_drawSquare({x:P,y:j,size:Z}){this._basicSquare({x:P,y:j,size:Z,rotation:0})}_drawRounded({x:P,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,oe=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0,ye=F+oe+pe+se;if(ye!==0)if(ye>2||F&&oe||pe&&se)this._basicSquare({x:P,y:j,size:Z,rotation:0});else{if(ye===2){let fe=0;return F&&pe?fe=Math.PI/2:pe&&oe?fe=Math.PI:oe&&se&&(fe=-Math.PI/2),void this._basicCornerRounded({x:P,y:j,size:Z,rotation:fe})}if(ye===1){let fe=0;return pe?fe=Math.PI/2:oe?fe=Math.PI:se&&(fe=-Math.PI/2),void this._basicSideRounded({x:P,y:j,size:Z,rotation:fe})}}else this._basicDot({x:P,y:j,size:Z,rotation:0})}_drawExtraRounded({x:P,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,oe=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0,ye=F+oe+pe+se;if(ye!==0)if(ye>2||F&&oe||pe&&se)this._basicSquare({x:P,y:j,size:Z,rotation:0});else{if(ye===2){let fe=0;return F&&pe?fe=Math.PI/2:pe&&oe?fe=Math.PI:oe&&se&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:P,y:j,size:Z,rotation:fe})}if(ye===1){let fe=0;return pe?fe=Math.PI/2:oe?fe=Math.PI:se&&(fe=-Math.PI/2),void this._basicSideRounded({x:P,y:j,size:Z,rotation:fe})}}else this._basicDot({x:P,y:j,size:Z,rotation:0})}_drawClassy({x:P,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,oe=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0;F+oe+pe+se!==0?F||pe?oe||se?this._basicSquare({x:P,y:j,size:Z,rotation:0}):this._basicCornerRounded({x:P,y:j,size:Z,rotation:Math.PI/2}):this._basicCornerRounded({x:P,y:j,size:Z,rotation:-Math.PI/2}):this._basicCornersRounded({x:P,y:j,size:Z,rotation:Math.PI/2})}_drawClassyRounded({x:P,y:j,size:Z,getNeighbor:J}){const F=J?+J(-1,0):0,oe=J?+J(1,0):0,pe=J?+J(0,-1):0,se=J?+J(0,1):0;F+oe+pe+se!==0?F||pe?oe||se?this._basicSquare({x:P,y:j,size:Z,rotation:0}):this._basicCornerExtraRounded({x:P,y:j,size:Z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:P,y:j,size:Z,rotation:-Math.PI/2}):this._basicCornersRounded({x:P,y:j,size:Z,rotation:Math.PI/2})}}const C={dot:"dot",square:"square",extraRounded:"extra-rounded"},w=Object.values(C);class A{constructor({svg:P,type:j,window:Z}){this._svg=P,this._type=j,this._window=Z}draw(P,j,Z,J){let F;switch(this._type){case C.square:F=this._drawSquare;break;case C.extraRounded:F=this._drawExtraRounded;break;default:F=this._drawDot}F.call(this,{x:P,y:j,size:Z,rotation:J})}_rotateFigure({x:P,y:j,size:Z,rotation:J=0,draw:F}){var oe;const pe=P+Z/2,se=j+Z/2;F(),(oe=this._element)===null||oe===void 0||oe.setAttribute("transform",`rotate(${180*J/Math.PI},${pe},${se})`)}_basicDot(P){const{size:j,x:Z,y:J}=P,F=j/7;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${Z+j/2} ${J}a ${j/2} ${j/2} 0 1 0 0.1 0zm 0 ${F}a ${j/2-F} ${j/2-F} 0 1 1 -0.1 0Z`)}}))}_basicSquare(P){const{size:j,x:Z,y:J}=P,F=j/7;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${Z} ${J}v ${j}h ${j}v `+-j+`zM ${Z+F} ${J+F}h `+(j-2*F)+"v "+(j-2*F)+"h "+(2*F-j)+"z")}}))}_basicExtraRounded(P){const{size:j,x:Z,y:J}=P,F=j/7;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${Z} ${J+2.5*F}v `+2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*F} ${2.5*F}h `+2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*F} ${2.5*-F}v `+-2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*-F} ${2.5*-F}h `+-2*F+`a ${2.5*F} ${2.5*F}, 0, 0, 0, ${2.5*-F} ${2.5*F}M ${Z+2.5*F} ${J+F}h `+2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*F} ${1.5*F}v `+2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*-F} ${1.5*F}h `+-2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*-F} ${1.5*-F}v `+-2*F+`a ${1.5*F} ${1.5*F}, 0, 0, 1, ${1.5*F} ${1.5*-F}`)}}))}_drawDot({x:P,y:j,size:Z,rotation:J}){this._basicDot({x:P,y:j,size:Z,rotation:J})}_drawSquare({x:P,y:j,size:Z,rotation:J}){this._basicSquare({x:P,y:j,size:Z,rotation:J})}_drawExtraRounded({x:P,y:j,size:Z,rotation:J}){this._basicExtraRounded({x:P,y:j,size:Z,rotation:J})}}const E={dot:"dot",square:"square"},_=Object.values(E);class v{constructor({svg:P,type:j,window:Z}){this._svg=P,this._type=j,this._window=Z}draw(P,j,Z,J){let F;F=this._type===E.square?this._drawSquare:this._drawDot,F.call(this,{x:P,y:j,size:Z,rotation:J})}_rotateFigure({x:P,y:j,size:Z,rotation:J=0,draw:F}){var oe;const pe=P+Z/2,se=j+Z/2;F(),(oe=this._element)===null||oe===void 0||oe.setAttribute("transform",`rotate(${180*J/Math.PI},${pe},${se})`)}_basicDot(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(Z+j/2)),this._element.setAttribute("cy",String(J+j/2)),this._element.setAttribute("r",String(j/2))}}))}_basicSquare(P){const{size:j,x:Z,y:J}=P;this._rotateFigure(Object.assign(Object.assign({},P),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(Z)),this._element.setAttribute("y",String(J)),this._element.setAttribute("width",String(j)),this._element.setAttribute("height",String(j))}}))}_drawDot({x:P,y:j,size:Z,rotation:J}){this._basicDot({x:P,y:j,size:Z,rotation:J})}_drawSquare({x:P,y:j,size:Z,rotation:J}){this._basicSquare({x:P,y:j,size:Z,rotation:J})}}const m="circle",b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],S=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class x{constructor(P,j){this._roundSize=Z=>this._options.dotsOptions.roundSize?Math.floor(Z):Z,this._window=j,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(P.width)),this._element.setAttribute("height",String(P.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),P.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${P.width} ${P.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=P.image,this._instanceId=x.instanceCount++,this._options=P}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(P){const j=P.getModuleCount(),Z=Math.min(this._options.width,this._options.height)-2*this._options.margin,J=this._options.shape===m?Z/Math.sqrt(2):Z,F=this._roundSize(J/j);let oe={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=P,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:pe,qrOptions:se}=this._options,ye=pe.imageSize*g[se.errorCorrectionLevel],fe=Math.floor(ye*j*j);oe=function({originalHeight:ue,originalWidth:he,maxHiddenDots:$,maxHiddenAxisDots:Y,dotSize:Q}){const K={x:0,y:0},te={x:0,y:0};if(ue<=0||he<=0||$<=0||Q<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const q=ue/he;return K.x=Math.floor(Math.sqrt($/q)),K.x<=0&&(K.x=1),Y&&Y<K.x&&(K.x=Y),K.x%2==0&&K.x--,te.x=K.x*Q,K.y=1+2*Math.ceil((K.x*q-1)/2),te.y=Math.round(te.x*q),(K.y*K.x>$||Y&&Y<K.y)&&(Y&&Y<K.y?(K.y=Y,K.y%2==0&&K.x--):K.y-=2,te.y=K.y*Q,K.x=1+2*Math.ceil((K.y/q-1)/2),te.x=Math.round(te.y/q)),{height:te.y,width:te.x,hideYDots:K.y,hideXDots:K.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:j-14,dotSize:F})}this.drawBackground(),this.drawDots((pe,se)=>{var ye,fe,ue,he,$,Y;return!(this._options.imageOptions.hideBackgroundDots&&pe>=(j-oe.hideYDots)/2&&pe<(j+oe.hideYDots)/2&&se>=(j-oe.hideXDots)/2&&se<(j+oe.hideXDots)/2||((ye=b[pe])===null||ye===void 0?void 0:ye[se])||((fe=b[pe-j+7])===null||fe===void 0?void 0:fe[se])||((ue=b[pe])===null||ue===void 0?void 0:ue[se-j+7])||((he=S[pe])===null||he===void 0?void 0:he[se])||(($=S[pe-j+7])===null||$===void 0?void 0:$[se])||((Y=S[pe])===null||Y===void 0?void 0:Y[se-j+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:oe.width,height:oe.height,count:j,dotSize:F})}drawBackground(){var P,j,Z;const J=this._element,F=this._options;if(J){const oe=(P=F.backgroundOptions)===null||P===void 0?void 0:P.gradient,pe=(j=F.backgroundOptions)===null||j===void 0?void 0:j.color;let se=F.height,ye=F.width;if(oe||pe){const fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((Z=F.backgroundOptions)===null||Z===void 0)&&Z.round&&(se=ye=Math.min(F.width,F.height),fe.setAttribute("rx",String(se/2*F.backgroundOptions.round))),fe.setAttribute("x",String(this._roundSize((F.width-ye)/2))),fe.setAttribute("y",String(this._roundSize((F.height-se)/2))),fe.setAttribute("width",String(ye)),fe.setAttribute("height",String(se)),this._backgroundClipPath.appendChild(fe),this._createColor({options:oe,color:pe,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:`background-color-${this._instanceId}`})}}}drawDots(P){var j,Z;if(!this._qr)throw"QR code is not defined";const J=this._options,F=this._qr.getModuleCount();if(F>J.width||F>J.height)throw"The canvas is too small.";const oe=Math.min(J.width,J.height)-2*J.margin,pe=J.shape===m?oe/Math.sqrt(2):oe,se=this._roundSize(pe/F),ye=this._roundSize((J.width-F*se)/2),fe=this._roundSize((J.height-F*se)/2),ue=new y({svg:this._element,type:J.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(j=J.dotsOptions)===null||j===void 0?void 0:j.gradient,color:J.dotsOptions.color,additionalRotation:0,x:0,y:0,height:J.height,width:J.width,name:`dot-color-${this._instanceId}`});for(let he=0;he<F;he++)for(let $=0;$<F;$++)P&&!P(he,$)||!((Z=this._qr)===null||Z===void 0)&&Z.isDark(he,$)&&(ue.draw(ye+$*se,fe+he*se,se,(Y,Q)=>!($+Y<0||he+Q<0||$+Y>=F||he+Q>=F)&&!(P&&!P(he+Q,$+Y))&&!!this._qr&&this._qr.isDark(he+Q,$+Y)),ue._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ue._element));if(J.shape===m){const he=this._roundSize((oe/se-F)/2),$=F+2*he,Y=ye-he*se,Q=fe-he*se,K=[],te=this._roundSize($/2);for(let q=0;q<$;q++){K[q]=[];for(let ie=0;ie<$;ie++)q>=he-1&&q<=$-he&&ie>=he-1&&ie<=$-he||Math.sqrt((q-te)*(q-te)+(ie-te)*(ie-te))>te?K[q][ie]=0:K[q][ie]=this._qr.isDark(ie-2*he<0?ie:ie>=F?ie-2*he:ie-he,q-2*he<0?q:q>=F?q-2*he:q-he)?1:0}for(let q=0;q<$;q++)for(let ie=0;ie<$;ie++)K[q][ie]&&(ue.draw(Y+ie*se,Q+q*se,se,(de,Ee)=>{var Se;return!!(!((Se=K[q+Ee])===null||Se===void 0)&&Se[ie+de])}),ue._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ue._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const P=this._element,j=this._options;if(!P)throw"Element code is not defined";const Z=this._qr.getModuleCount(),J=Math.min(j.width,j.height)-2*j.margin,F=j.shape===m?J/Math.sqrt(2):J,oe=this._roundSize(F/Z),pe=7*oe,se=3*oe,ye=this._roundSize((j.width-Z*oe)/2),fe=this._roundSize((j.height-Z*oe)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ue,he,$])=>{var Y,Q,K,te,q,ie,de,Ee,Se,ke,qe,Ve,ge,Ae;const le=ye+ue*oe*(Z-7),we=fe+he*oe*(Z-7);let Ie=this._dotsClipPath,ze=this._dotsClipPath;if((((Y=j.cornersSquareOptions)===null||Y===void 0?void 0:Y.gradient)||((Q=j.cornersSquareOptions)===null||Q===void 0?void 0:Q.color))&&(Ie=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ie.setAttribute("id",`clip-path-corners-square-color-${ue}-${he}-${this._instanceId}`),this._defs.appendChild(Ie),this._cornersSquareClipPath=this._cornersDotClipPath=ze=Ie,this._createColor({options:(K=j.cornersSquareOptions)===null||K===void 0?void 0:K.gradient,color:(te=j.cornersSquareOptions)===null||te===void 0?void 0:te.color,additionalRotation:$,x:le,y:we,height:pe,width:pe,name:`corners-square-color-${ue}-${he}-${this._instanceId}`})),((q=j.cornersSquareOptions)===null||q===void 0?void 0:q.type)&&w.includes(j.cornersSquareOptions.type)){const ct=new A({svg:this._element,type:j.cornersSquareOptions.type,window:this._window});ct.draw(le,we,pe,$),ct._element&&Ie&&Ie.appendChild(ct._element)}else{const ct=new y({svg:this._element,type:((ie=j.cornersSquareOptions)===null||ie===void 0?void 0:ie.type)||j.dotsOptions.type,window:this._window});for(let rt=0;rt<b.length;rt++)for(let Fe=0;Fe<b[rt].length;Fe++)!((de=b[rt])===null||de===void 0)&&de[Fe]&&(ct.draw(le+Fe*oe,we+rt*oe,oe,(Ct,Ze)=>{var Te;return!!(!((Te=b[rt+Ze])===null||Te===void 0)&&Te[Fe+Ct])}),ct._element&&Ie&&Ie.appendChild(ct._element))}if((((Ee=j.cornersDotOptions)===null||Ee===void 0?void 0:Ee.gradient)||((Se=j.cornersDotOptions)===null||Se===void 0?void 0:Se.color))&&(ze=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),ze.setAttribute("id",`clip-path-corners-dot-color-${ue}-${he}-${this._instanceId}`),this._defs.appendChild(ze),this._cornersDotClipPath=ze,this._createColor({options:(ke=j.cornersDotOptions)===null||ke===void 0?void 0:ke.gradient,color:(qe=j.cornersDotOptions)===null||qe===void 0?void 0:qe.color,additionalRotation:$,x:le+2*oe,y:we+2*oe,height:se,width:se,name:`corners-dot-color-${ue}-${he}-${this._instanceId}`})),((Ve=j.cornersDotOptions)===null||Ve===void 0?void 0:Ve.type)&&_.includes(j.cornersDotOptions.type)){const ct=new v({svg:this._element,type:j.cornersDotOptions.type,window:this._window});ct.draw(le+2*oe,we+2*oe,se,$),ct._element&&ze&&ze.appendChild(ct._element)}else{const ct=new y({svg:this._element,type:((ge=j.cornersDotOptions)===null||ge===void 0?void 0:ge.type)||j.dotsOptions.type,window:this._window});for(let rt=0;rt<S.length;rt++)for(let Fe=0;Fe<S[rt].length;Fe++)!((Ae=S[rt])===null||Ae===void 0)&&Ae[Fe]&&(ct.draw(le+Fe*oe,we+rt*oe,oe,(Ct,Ze)=>{var Te;return!!(!((Te=S[rt+Ze])===null||Te===void 0)&&Te[Fe+Ct])}),ct._element&&ze&&ze.appendChild(ct._element))}})}loadImage(){return new Promise((P,j)=>{var Z;const J=this._options;if(!J.image)return j("Image is not defined");if(!((Z=J.nodeCanvas)===null||Z===void 0)&&Z.loadImage)J.nodeCanvas.loadImage(J.image).then(F=>{var oe,pe;if(this._image=F,this._options.imageOptions.saveAsBlob){const se=(oe=J.nodeCanvas)===null||oe===void 0?void 0:oe.createCanvas(this._image.width,this._image.height);(pe=se==null?void 0:se.getContext("2d"))===null||pe===void 0||pe.drawImage(F,0,0),this._imageUri=se==null?void 0:se.toDataURL()}P()}).catch(j);else{const F=new this._window.Image;typeof J.imageOptions.crossOrigin=="string"&&(F.crossOrigin=J.imageOptions.crossOrigin),this._image=F,F.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(oe,pe){return new Promise(se=>{const ye=new pe.XMLHttpRequest;ye.onload=function(){const fe=new pe.FileReader;fe.onloadend=function(){se(fe.result)},fe.readAsDataURL(ye.response)},ye.open("GET",oe),ye.responseType="blob",ye.send()})}(J.image||"",this._window)),P()},F.src=J.image}})}async drawImage({width:P,height:j,count:Z,dotSize:J}){const F=this._options,oe=this._roundSize((F.width-Z*J)/2),pe=this._roundSize((F.height-Z*J)/2),se=oe+this._roundSize(F.imageOptions.margin+(Z*J-P)/2),ye=pe+this._roundSize(F.imageOptions.margin+(Z*J-j)/2),fe=P-2*F.imageOptions.margin,ue=j-2*F.imageOptions.margin,he=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");he.setAttribute("href",this._imageUri||""),he.setAttribute("x",String(se)),he.setAttribute("y",String(ye)),he.setAttribute("width",`${fe}px`),he.setAttribute("height",`${ue}px`),this._element.appendChild(he)}_createColor({options:P,color:j,additionalRotation:Z,x:J,y:F,height:oe,width:pe,name:se}){const ye=pe>oe?pe:oe,fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(J)),fe.setAttribute("y",String(F)),fe.setAttribute("height",String(oe)),fe.setAttribute("width",String(pe)),fe.setAttribute("clip-path",`url('#clip-path-${se}')`),P){let ue;if(P.type==="radial")ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ue.setAttribute("id",se),ue.setAttribute("gradientUnits","userSpaceOnUse"),ue.setAttribute("fx",String(J+pe/2)),ue.setAttribute("fy",String(F+oe/2)),ue.setAttribute("cx",String(J+pe/2)),ue.setAttribute("cy",String(F+oe/2)),ue.setAttribute("r",String(ye/2));else{const he=((P.rotation||0)+Z)%(2*Math.PI),$=(he+2*Math.PI)%(2*Math.PI);let Y=J+pe/2,Q=F+oe/2,K=J+pe/2,te=F+oe/2;$>=0&&$<=.25*Math.PI||$>1.75*Math.PI&&$<=2*Math.PI?(Y-=pe/2,Q-=oe/2*Math.tan(he),K+=pe/2,te+=oe/2*Math.tan(he)):$>.25*Math.PI&&$<=.75*Math.PI?(Q-=oe/2,Y-=pe/2/Math.tan(he),te+=oe/2,K+=pe/2/Math.tan(he)):$>.75*Math.PI&&$<=1.25*Math.PI?(Y+=pe/2,Q+=oe/2*Math.tan(he),K-=pe/2,te-=oe/2*Math.tan(he)):$>1.25*Math.PI&&$<=1.75*Math.PI&&(Q+=oe/2,Y+=pe/2/Math.tan(he),te-=oe/2,K-=pe/2/Math.tan(he)),ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ue.setAttribute("id",se),ue.setAttribute("gradientUnits","userSpaceOnUse"),ue.setAttribute("x1",String(Math.round(Y))),ue.setAttribute("y1",String(Math.round(Q))),ue.setAttribute("x2",String(Math.round(K))),ue.setAttribute("y2",String(Math.round(te)))}P.colorStops.forEach(({offset:he,color:$})=>{const Y=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Y.setAttribute("offset",100*he+"%"),Y.setAttribute("stop-color",$),ue.appendChild(Y)}),fe.setAttribute("fill",`url('#${se}')`),this._defs.appendChild(ue)}else j&&fe.setAttribute("fill",j);this._element.appendChild(fe)}}x.instanceCount=0;const O=x,D="canvas",V={};for(let k=0;k<=40;k++)V[k]=k;const I={type:D,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:V[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function z(k){const P=Object.assign({},k);if(!P.colorStops||!P.colorStops.length)throw"Field 'colorStops' is required in gradient";return P.rotation?P.rotation=Number(P.rotation):P.rotation=0,P.colorStops=P.colorStops.map(j=>Object.assign(Object.assign({},j),{offset:Number(j.offset)})),P}function T(k){const P=Object.assign({},k);return P.width=Number(P.width),P.height=Number(P.height),P.margin=Number(P.margin),P.imageOptions=Object.assign(Object.assign({},P.imageOptions),{hideBackgroundDots:Boolean(P.imageOptions.hideBackgroundDots),imageSize:Number(P.imageOptions.imageSize),margin:Number(P.imageOptions.margin)}),P.margin>Math.min(P.width,P.height)&&(P.margin=Math.min(P.width,P.height)),P.dotsOptions=Object.assign({},P.dotsOptions),P.dotsOptions.gradient&&(P.dotsOptions.gradient=z(P.dotsOptions.gradient)),P.cornersSquareOptions&&(P.cornersSquareOptions=Object.assign({},P.cornersSquareOptions),P.cornersSquareOptions.gradient&&(P.cornersSquareOptions.gradient=z(P.cornersSquareOptions.gradient))),P.cornersDotOptions&&(P.cornersDotOptions=Object.assign({},P.cornersDotOptions),P.cornersDotOptions.gradient&&(P.cornersDotOptions.gradient=z(P.cornersDotOptions.gradient))),P.backgroundOptions&&(P.backgroundOptions=Object.assign({},P.backgroundOptions),P.backgroundOptions.gradient&&(P.backgroundOptions.gradient=z(P.backgroundOptions.gradient))),P}var B=i(873),L=i.n(B);function U(k){if(!k)throw new Error("Extension must be defined");k[0]==="."&&(k=k.substring(1));const P={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[k.toLowerCase()];if(!P)throw new Error(`Extension "${k}" is not supported`);return P}class W{constructor(P){P!=null&&P.jsdom?this._window=new P.jsdom("",{resources:"usable"}).window:this._window=window,this._options=P?T(c(I,P)):I,this.update()}static _clearContainer(P){P&&(P.innerHTML="")}_setupSvg(){if(!this._qr)return;const P=new O(this._options,this._window);this._svg=P.getElement(),this._svgDrawingPromise=P.drawQR(this._qr).then(()=>{var j;this._svg&&((j=this._extension)===null||j===void 0||j.call(this,P.getElement(),this._options))})}_setupCanvas(){var P,j;this._qr&&(!((P=this._options.nodeCanvas)===null||P===void 0)&&P.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(j=this._svgDrawingPromise)===null||j===void 0?void 0:j.then(()=>{var Z;if(!this._svg)return;const J=this._svg,F=new this._window.XMLSerializer().serializeToString(J),oe=btoa(F),pe=`data:${U("svg")};base64,${oe}`;if(!((Z=this._options.nodeCanvas)===null||Z===void 0)&&Z.loadImage)return this._options.nodeCanvas.loadImage(pe).then(se=>{var ye,fe;se.width=this._options.width,se.height=this._options.height,(fe=(ye=this._nodeCanvas)===null||ye===void 0?void 0:ye.getContext("2d"))===null||fe===void 0||fe.drawImage(se,0,0)});{const se=new this._window.Image;return new Promise(ye=>{se.onload=()=>{var fe,ue;(ue=(fe=this._domCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||ue===void 0||ue.drawImage(se,0,0),ye()},se.src=pe})}}))}async _getElement(P="png"){if(!this._qr)throw"QR code is empty";return P.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(P){W._clearContainer(this._container),this._options=P?T(c(this._options,P)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(j){switch(!0){case/^[0-9]*$/.test(j):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(j):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===D?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(P){if(P){if(typeof P.appendChild!="function")throw"Container should be a single DOM node";this._options.type===D?this._domCanvas&&P.appendChild(this._domCanvas):this._svg&&P.appendChild(this._svg),this._container=P}}applyExtension(P){if(!P)throw"Extension function should be defined.";this._extension=P,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(P="png"){if(!this._qr)throw"QR code is empty";const j=await this._getElement(P),Z=U(P);if(!j)return null;if(P.toLowerCase()==="svg"){const J=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(j)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(J):new Blob([J],{type:Z})}return new Promise(J=>{const F=j;if("toBuffer"in F)if(Z==="image/png")J(F.toBuffer(Z));else if(Z==="image/jpeg")J(F.toBuffer(Z));else{if(Z!=="application/pdf")throw Error("Unsupported extension");J(F.toBuffer(Z))}else"toBlob"in F&&F.toBlob(J,Z,1)})}async download(P){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let j="png",Z="qr";typeof P=="string"?(j=P,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof P=="object"&&P!==null&&(P.name&&(Z=P.name),P.extension&&(j=P.extension));const J=await this._getElement(j);if(J)if(j.toLowerCase()==="svg"){let F=new XMLSerializer().serializeToString(J);F=`<?xml version="1.0" standalone="no"?>\r
`+F,f(`data:${U(j)};charset=utf-8,${encodeURIComponent(F)}`,`${Z}.svg`)}else f(J.toDataURL(U(j)),`${Z}.${j}`)}}const R=W})(),s.default})())})(nm);const XV=Z1(nm.exports),JV=n.defineComponent({name:"QrCodeBox",data(){return{qrcode:null}},props:{data:String,image:String,width:Number,height:Number,circleType:String,circleColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e={dotsOptions:{}};Object.keys(this.$props).forEach(t=>{this.$props[t]!=null&&this.$props[t]!==""&&(e[t]=this.$props[t])}),delete e.formCreateInject,e.circleType&&(e.dotsOptions.type=e.circleType),e.circleColor&&(e.dotsOptions.color=e.circleColor),delete e.circleColor,delete e.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(e):(this.qrcode=n.markRaw(new XV(e)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),ZV={class:"_fc-qrcode",ref:"qr"};function qV(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",ZV,null,512)}const eI=Oe(JV,[["render",qV]]),l3="",tI=n.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function nI(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-title",e.size||"h2"]),style:n.normalizeStyle(e.textStyle)},n.toDisplayString(e.title),7)}const iI=Oe(tI,[["render",nI]]);/*!
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
* (c) 2024 Szymon Nowak | Released under the MIT license
*/class fl{constructor(t,o,r,i){if(isNaN(t)||isNaN(o))throw new Error(`Point is invalid: (${t}, ${o})`);this.x=+t,this.y=+o,this.pressure=r||0,this.time=i||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Ic{static fromPoints(t,o){const r=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Ic(t[1],r,i,t[2],o.start,o.end)}static calculateControlPoints(t,o,r){const i=t.x-o.x,s=t.y-o.y,d=o.x-r.x,c=o.y-r.y,f={x:(t.x+o.x)/2,y:(t.y+o.y)/2},g={x:(o.x+r.x)/2,y:(o.y+r.y)/2},y=Math.sqrt(i*i+s*s),C=Math.sqrt(d*d+c*c),w=f.x-g.x,A=f.y-g.y,E=y+C==0?0:C/(y+C),_={x:g.x+w*E,y:g.y+A*E},v=o.x-_.x,m=o.y-_.y;return{c1:new fl(f.x+v,f.y+m),c2:new fl(g.x+v,g.y+m)}}constructor(t,o,r,i,s,d){this.startPoint=t,this.control2=o,this.control1=r,this.endPoint=i,this.startWidth=s,this.endWidth=d}length(){let o=0,r,i;for(let s=0;s<=10;s+=1){const d=s/10,c=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),f=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(s>0){const g=c-r,y=f-i;o+=Math.sqrt(g*g+y*y)}r=c,i=f}return o}point(t,o,r,i,s){return o*(1-t)*(1-t)*(1-t)+3*r*(1-t)*(1-t)*t+3*i*(1-t)*t*t+s*t*t*t}}class oI{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,o,r){this._et.addEventListener(t,o,r)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,o,r){this._et.removeEventListener(t,o,r)}}function rI(e,t=250){let o=0,r=null,i,s,d;const c=()=>{o=Date.now(),r=null,i=e.apply(s,d),r||(s=null,d=[])};return function(...g){const y=Date.now(),C=t-(y-o);return s=this,d=g,C<=0||C>t?(r&&(clearTimeout(r),r=null),o=y,i=e.apply(s,d),r||(s=null,d=[])):r||(r=window.setTimeout(c,C)),i}}class pl extends oI{constructor(t,o={}){var r,i,s;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=d=>{!this._isLeftButtonPressed(d,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(d))},this._handleMouseMove=d=>{if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))},this._handleMouseUp=d=>{this._isLeftButtonPressed(d)||this._strokeEnd(this._pointerEventToSignatureEvent(d))},this._handleTouchStart=d=>{d.targetTouches.length!==1||this._drawingStroke||(d.cancelable&&d.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(d)))},this._handleTouchMove=d=>{if(d.targetTouches.length===1){if(d.cancelable&&d.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(d))}},this._handleTouchEnd=d=>{d.targetTouches.length===0&&(d.cancelable&&d.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(d)))},this._handlePointerDown=d=>{!d.isPrimary||!this._isLeftButtonPressed(d)||this._drawingStroke||(d.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(d)))},this._handlePointerMove=d=>{if(!!d.isPrimary){if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}d.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))}},this._handlePointerUp=d=>{!d.isPrimary||this._isLeftButtonPressed(d)||(d.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(d)))},this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle=(r=o.throttle)!==null&&r!==void 0?r:16,this.minDistance=(i=o.minDistance)!==null&&i!==void 0?i:5,this.dotSize=o.dotSize||0,this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=o.compositeOperation||"source-over",this.canvasContextOptions=(s=o.canvasContextOptions)!==null&&s!==void 0?s:{},this._strokeMoveUpdate=this.throttle?rI(pl.prototype._strokeUpdate,this.throttle):pl.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:o}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,o.width,o.height),t.fillRect(0,0,o.width,o.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,o={}){return new Promise((r,i)=>{const s=new Image,d=o.ratio||window.devicePixelRatio||1,c=o.width||this.canvas.width/d,f=o.height||this.canvas.height/d,g=o.xOffset||0,y=o.yOffset||0;this._reset(this._getPointGroupOptions()),s.onload=()=>{this._ctx.drawImage(s,g,y,c,f),r()},s.onerror=C=>{i(C)},s.crossOrigin="anonymous",s.src=t,this._isEmpty=!1})}toDataURL(t="image/png",o){switch(t){case"image/svg+xml":return typeof o!="object"&&(o=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(o))}`;default:return typeof o!="number"&&(o=void 0),this.canvas.toDataURL(t,o)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;const o=window.document===this.canvas.ownerDocument?window:(t=this.canvas.ownerDocument.defaultView)!==null&&t!==void 0?t:this.canvas.ownerDocument;return{addEventListener:o.addEventListener.bind(o),removeEventListener:o.removeEventListener.bind(o)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:o=!0}={}){o&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,o){return o?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const o=t.changedTouches[0];return{event:t,type:t.type,x:o.clientX,y:o.clientY,pressure:o.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:r}=this._getListenerFunctions();switch(t.event.type){case"mousedown":r("mousemove",this._handleMouseMove),r("mouseup",this._handleMouseUp);break;case"touchstart":r("touchmove",this._handleTouchMove),r("touchend",this._handleTouchEnd);break;case"pointerdown":r("pointermove",this._handlePointerMove),r("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;const i=this._getPointGroupOptions(),s=Object.assign(Object.assign({},i),{points:[]});this._data.push(s),this._reset(i),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const o=this._createPoint(t.x,t.y,t.pressure),r=this._data[this._data.length-1],i=r.points,s=i.length>0&&i[i.length-1],d=s?o.distanceTo(s)<=this.minDistance:!1,c=this._getPointGroupOptions(r);if(!s||!(s&&d)){const f=this._addPoint(o,c);s?f&&this._drawCurve(f,c):this._drawDot(o,c),i.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,o=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(o&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,o,r){const i=this.canvas.getBoundingClientRect();return new fl(t-i.left,o-i.top,r,new Date().getTime())}_addPoint(t,o){const{_lastPoints:r}=this;if(r.push(t),r.length>2){r.length===3&&r.unshift(r[0]);const i=this._calculateCurveWidths(r[1],r[2],o),s=Ic.fromPoints(r,i);return r.shift(),s}return null}_calculateCurveWidths(t,o,r){const i=r.velocityFilterWeight*o.velocityFrom(t)+(1-r.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(i,r),d={end:s,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=s,d}_strokeWidth(t,o){return Math.max(o.maxWidth/(t+1),o.minWidth)}_drawCurveSegment(t,o,r){const i=this._ctx;i.moveTo(t,o),i.arc(t,o,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,o){const r=this._ctx,i=t.endWidth-t.startWidth,s=Math.ceil(t.length())*2;r.beginPath(),r.fillStyle=o.penColor;for(let d=0;d<s;d+=1){const c=d/s,f=c*c,g=f*c,y=1-c,C=y*y,w=C*y;let A=w*t.startPoint.x;A+=3*C*c*t.control1.x,A+=3*y*f*t.control2.x,A+=g*t.endPoint.x;let E=w*t.startPoint.y;E+=3*C*c*t.control1.y,E+=3*y*f*t.control2.y,E+=g*t.endPoint.y;const _=Math.min(t.startWidth+g*i,o.maxWidth);this._drawCurveSegment(A,E,_)}r.closePath(),r.fill()}_drawDot(t,o){const r=this._ctx,i=o.dotSize>0?o.dotSize:(o.minWidth+o.maxWidth)/2;r.beginPath(),this._drawCurveSegment(t.x,t.y,i),r.closePath(),r.fillStyle=o.penColor,r.fill()}_fromData(t,o,r){for(const i of t){const{points:s}=i,d=this._getPointGroupOptions(i);if(s.length>1)for(let c=0;c<s.length;c+=1){const f=s[c],g=new fl(f.x,f.y,f.pressure,f.time);c===0&&this._reset(d);const y=this._addPoint(g,d);y&&o(y,d)}else this._reset(d),r(s[0],d)}}toSVG({includeBackgroundColor:t=!1}={}){const o=this._data,r=Math.max(window.devicePixelRatio||1,1),i=0,s=0,d=this.canvas.width/r,c=this.canvas.height/r,f=document.createElementNS("http://www.w3.org/2000/svg","svg");if(f.setAttribute("xmlns","http://www.w3.org/2000/svg"),f.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("viewBox",`${i} ${s} ${d} ${c}`),f.setAttribute("width",d.toString()),f.setAttribute("height",c.toString()),t&&this.backgroundColor){const g=document.createElement("rect");g.setAttribute("width","100%"),g.setAttribute("height","100%"),g.setAttribute("fill",this.backgroundColor),f.appendChild(g)}return this._fromData(o,(g,{penColor:y})=>{const C=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){const w=`M ${g.startPoint.x.toFixed(3)},${g.startPoint.y.toFixed(3)} C ${g.control1.x.toFixed(3)},${g.control1.y.toFixed(3)} ${g.control2.x.toFixed(3)},${g.control2.y.toFixed(3)} ${g.endPoint.x.toFixed(3)},${g.endPoint.y.toFixed(3)}`;C.setAttribute("d",w),C.setAttribute("stroke-width",(g.endWidth*2.25).toFixed(3)),C.setAttribute("stroke",y),C.setAttribute("fill","none"),C.setAttribute("stroke-linecap","round"),f.appendChild(C)}},(g,{penColor:y,dotSize:C,minWidth:w,maxWidth:A})=>{const E=document.createElement("circle"),_=C>0?C:(w+A)/2;E.setAttribute("r",_.toString()),E.setAttribute("cx",g.x.toString()),E.setAttribute("cy",g.y.toString()),E.setAttribute("fill",y),f.appendChild(E)}),f.outerHTML}}const s3="",aI=n.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(e){e?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=n.markRaw(new pl(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove(){this.updateValue(""),this.$emit("remove")}}}),lI={class:"_fc-signature"},sI={key:0,class:"_fc-signature-preview"},dI=["src"],cI={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};function uI(e,t,o,r,i,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",lI,[e.modelValue?(n.openBlock(),n.createElementBlock("div",sI,[n.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=(...f)=>e.remove&&e.remove(...f))}),n.createElementVNode("img",{src:e.modelValue,alt:"signature"},null,8,dI)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:t[1]||(t[1]=f=>e.visible=!0)},[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),n.createVNode(c,{class:"_fc-signature-dialog",title:e.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199",open:e.visible,"onUpdate:open":t[3]||(t[3]=f=>e.visible=f),centered:"",maskClosable:!1,destroyOnClose:!0,width:"640px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=f=>e.clear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("reset")||"\u91CD\u7F6E"),1)]),_:1}),n.createVNode(d,{type:"primary",disabled:e.isEmpty,onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["disabled","onClick"])])]),default:n.withCtx(()=>[n.createElementVNode("canvas",cI,null,512)]),_:1},8,["title","open"])])}const fI=Oe(aI,[["render",uI]]),d3="",pI=n.defineComponent({name:"FcEcharts",data(){return{chart:null}},emits:["beforeLoad","loaded"],props:{title:String,value:Number,min:Number,max:Number,name:String,valueFormat:String,subtitle:String,funnelSort:String,config:Object,data:Array,indicator:Array,smooth:Boolean,stripe:Boolean,showLegend:{type:Boolean,default:!0},loadOptions:{type:Function,default:()=>{}},showSeriesLabel:Boolean,type:String,pieType:String,stack:Boolean,barBackgroundColor:String},watch:{$props:{handler:Xf(function(){this.load()},600),deep:!0}},methods:{getSeries(){var o;const e={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(e.areaStyle={},e.emphasis={focus:"series"}):this.type==="bar"&&(e.type="bar",this.barBackgroundColor&&(e.showBackground=!0,e.backgroundStyle={color:this.barBackgroundColor}));let t=((o=this.config)==null?void 0:o.series)||[];return t.length?(typeof t[0]!="object"&&(t=[{data:t}]),t=t.map(r=>({...e,...r})),t):[]},getTooltip(){const e={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(e.valueFormatter=t=>this.valueFormat?this.valueFormat.replaceAll("{value}",t):t),this.type==="bar"&&(e.axisPointer={type:"shadow"}),e},getAxis(){var e,t;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((t=this.config)==null?void 0:t.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(e=this.config)==null?void 0:e.category},yAxis:{type:"value"}}},getDefOptions(){return{title:{text:this.title,subtext:this.subtitle},tooltip:this.getTooltip(),legend:{left:"right",show:this.showLegend},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},...this.getAxis(),series:this.getSeries()}},getPieOptions(){const e={radius:"50%",center:"50%",startAngle:0,avoidLabelOverlap:!0,labelLine:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};return this.pieType==="doughnut"?(e.radius=["40%","70%"],e.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(e.radius=["40%","70%"],e.center=["50%","70%"],e.startAngle=180,e.endAngle=360),{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{type:"pie",data:this.data,...e}]}},getGaugeOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"center"},series:[{name:"Pressure",type:"gauge",min:this.min||0,max:this.max||60,progress:{show:!0},detail:{valueAnimation:!0,formatter:"{value}"},data:[{value:this.value,name:this.name}]}]}},getRadarOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:this.showLegend},radar:{indicator:this.indicator},series:[{type:"radar",tooltip:{trigger:"item"},data:this.data}]}},getScatterOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:!0},xAxis:{scale:!0},yAxis:{scale:!0},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},series:(this.data||[]).map(e=>Array.isArray(e)?{type:"scatter",data:e}:{type:"scatter",...e})}},getFunnelOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{name:"Funnel",type:"funnel",left:"10%",top:"40px",bottom:"20px",width:"80%",min:0,max:Math.max(...(this.data||[]).map(e=>e.value)),minSize:"0%",maxSize:"100%",sort:this.funnelSort||"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{}},data:this.data}]}},load(){this.$nextTick(()=>{Jn.ready("echarts",()=>{this.chart=n.markRaw(window.echarts.init(this.$refs.chart));let e;if(this.type==="pie")e=this.getPieOptions();else if(this.type==="funnel")e=this.getFunnelOptions();else if(this.type==="gauge")e=this.getGaugeOptions();else if(this.type==="radar")e=this.getRadarOptions();else if(this.type==="scatter")e=this.getScatterOptions();else if(this.type==="custom"){if(e=this.loadOptions(this.config,this.chart)||{},typeof e.then=="function"){e.then(t=>{this.$emit("beforeLoad",this.chart,t),this.chart.setOption(t),this.$emit("loaded",this.chart,t)});return}}else e=this.getDefOptions();this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)})})}},created(){window.echarts?Jn.done("echarts"):Jn.isDefined("echarts")||Jn(["https://static.form-create.com/res/echarts.min.js"],"echarts")},mounted(){this.load()}}),hI={class:"_fc-echarts",ref:"chart"};function mI(e,t,o,r,i,s){return n.openBlock(),n.createElementBlock("div",hI,null,512)}const gI=Oe(pI,[["render",mI]]);/*!
* @form-create/component-wangeditor v3.2.14
* (c) 2018-2024 xaboy
* Github https://github.com/xaboy/form-create with wangeditor
* Released under the MIT License.
*/function im(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function vI(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?im(Object(o),!0).forEach(function(r){yI(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):im(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function zt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zt=function(t){return typeof t}:zt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(e)}function yI(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function bI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var om={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(window,function(){return function(o){var r={};function i(s){if(r[s])return r[s].exports;var d=r[s]={i:s,l:!1,exports:{}};return o[s].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=o,i.c=r,i.d=function(s,d,c){i.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,d){if(d&1&&(s=i(s)),d&8||d&4&&zt(s)==="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var f in s)i.d(c,f,function(g){return s[g]}.bind(null,f));return c},i.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(d,"a",d),d},i.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},i.p="",i(i.s=141)}([function(o,r){function i(s){return s&&s.__esModule?s:{default:s}}o.exports=i},function(o,r,i){o.exports=i(142)},function(o,r,i){i.r(r),i.d(r,"__extends",function(){return d}),i.d(r,"__assign",function(){return c}),i.d(r,"__rest",function(){return f}),i.d(r,"__decorate",function(){return g}),i.d(r,"__param",function(){return y}),i.d(r,"__metadata",function(){return C}),i.d(r,"__awaiter",function(){return w}),i.d(r,"__generator",function(){return A}),i.d(r,"__createBinding",function(){return E}),i.d(r,"__exportStar",function(){return _}),i.d(r,"__values",function(){return v}),i.d(r,"__read",function(){return m}),i.d(r,"__spread",function(){return b}),i.d(r,"__spreadArrays",function(){return S}),i.d(r,"__spreadArray",function(){return x}),i.d(r,"__await",function(){return O}),i.d(r,"__asyncGenerator",function(){return D}),i.d(r,"__asyncDelegator",function(){return V}),i.d(r,"__asyncValues",function(){return I}),i.d(r,"__makeTemplateObject",function(){return z}),i.d(r,"__importStar",function(){return B}),i.d(r,"__importDefault",function(){return L}),i.d(r,"__classPrivateFieldGet",function(){return U}),i.d(r,"__classPrivateFieldSet",function(){return W});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var s=function(k,P){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,Z){j.__proto__=Z}||function(j,Z){for(var J in Z)Object.prototype.hasOwnProperty.call(Z,J)&&(j[J]=Z[J])},s(k,P)};function d(R,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");s(R,k);function P(){this.constructor=R}R.prototype=k===null?Object.create(k):(P.prototype=k.prototype,new P)}var c=function(){return c=Object.assign||function(P){for(var j,Z=1,J=arguments.length;Z<J;Z++){j=arguments[Z];for(var F in j)Object.prototype.hasOwnProperty.call(j,F)&&(P[F]=j[F])}return P},c.apply(this,arguments)};function f(R,k){var P={};for(var j in R)Object.prototype.hasOwnProperty.call(R,j)&&k.indexOf(j)<0&&(P[j]=R[j]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,j=Object.getOwnPropertySymbols(R);Z<j.length;Z++)k.indexOf(j[Z])<0&&Object.prototype.propertyIsEnumerable.call(R,j[Z])&&(P[j[Z]]=R[j[Z]]);return P}function g(R,k,P,j){var Z=arguments.length,J=Z<3?k:j===null?j=Object.getOwnPropertyDescriptor(k,P):j,F;if((typeof Reflect>"u"?"undefined":zt(Reflect))==="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(R,k,P,j);else for(var oe=R.length-1;oe>=0;oe--)(F=R[oe])&&(J=(Z<3?F(J):Z>3?F(k,P,J):F(k,P))||J);return Z>3&&J&&Object.defineProperty(k,P,J),J}function y(R,k){return function(P,j){k(P,j,R)}}function C(R,k){if((typeof Reflect>"u"?"undefined":zt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(R,k)}function w(R,k,P,j){function Z(J){return J instanceof P?J:new P(function(F){F(J)})}return new(P||(P=Promise))(function(J,F){function oe(ye){try{se(j.next(ye))}catch(fe){F(fe)}}function pe(ye){try{se(j.throw(ye))}catch(fe){F(fe)}}function se(ye){ye.done?J(ye.value):Z(ye.value).then(oe,pe)}se((j=j.apply(R,k||[])).next())})}function A(R,k){var P={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},j,Z,J,F;return F={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function oe(se){return function(ye){return pe([se,ye])}}function pe(se){if(j)throw new TypeError("Generator is already executing.");for(;P;)try{if(j=1,Z&&(J=se[0]&2?Z.return:se[0]?Z.throw||((J=Z.return)&&J.call(Z),0):Z.next)&&!(J=J.call(Z,se[1])).done)return J;switch(Z=0,J&&(se=[se[0]&2,J.value]),se[0]){case 0:case 1:J=se;break;case 4:return P.label++,{value:se[1],done:!1};case 5:P.label++,Z=se[1],se=[0];continue;case 7:se=P.ops.pop(),P.trys.pop();continue;default:if(J=P.trys,!(J=J.length>0&&J[J.length-1])&&(se[0]===6||se[0]===2)){P=0;continue}if(se[0]===3&&(!J||se[1]>J[0]&&se[1]<J[3])){P.label=se[1];break}if(se[0]===6&&P.label<J[1]){P.label=J[1],J=se;break}if(J&&P.label<J[2]){P.label=J[2],P.ops.push(se);break}J[2]&&P.ops.pop(),P.trys.pop();continue}se=k.call(R,P)}catch(ye){se=[6,ye],Z=0}finally{j=J=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}var E=Object.create?function(R,k,P,j){j===void 0&&(j=P),Object.defineProperty(R,j,{enumerable:!0,get:function(){return k[P]}})}:function(R,k,P,j){j===void 0&&(j=P),R[j]=k[P]};function _(R,k){for(var P in R)P!=="default"&&!Object.prototype.hasOwnProperty.call(k,P)&&E(k,R,P)}function v(R){var k=typeof Symbol=="function"&&Symbol.iterator,P=k&&R[k],j=0;if(P)return P.call(R);if(R&&typeof R.length=="number")return{next:function(){return R&&j>=R.length&&(R=void 0),{value:R&&R[j++],done:!R}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(R,k){var P=typeof Symbol=="function"&&R[Symbol.iterator];if(!P)return R;var j=P.call(R),Z,J=[],F;try{for(;(k===void 0||k-- >0)&&!(Z=j.next()).done;)J.push(Z.value)}catch(oe){F={error:oe}}finally{try{Z&&!Z.done&&(P=j.return)&&P.call(j)}finally{if(F)throw F.error}}return J}function b(){for(var R=[],k=0;k<arguments.length;k++)R=R.concat(m(arguments[k]));return R}function S(){for(var R=0,k=0,P=arguments.length;k<P;k++)R+=arguments[k].length;for(var j=Array(R),Z=0,k=0;k<P;k++)for(var J=arguments[k],F=0,oe=J.length;F<oe;F++,Z++)j[Z]=J[F];return j}function x(R,k){for(var P=0,j=k.length,Z=R.length;P<j;P++,Z++)R[Z]=k[P];return R}function O(R){return this instanceof O?(this.v=R,this):new O(R)}function D(R,k,P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j=P.apply(R,k||[]),Z,J=[];return Z={},F("next"),F("throw"),F("return"),Z[Symbol.asyncIterator]=function(){return this},Z;function F(ue){j[ue]&&(Z[ue]=function(he){return new Promise(function($,Y){J.push([ue,he,$,Y])>1||oe(ue,he)})})}function oe(ue,he){try{pe(j[ue](he))}catch($){fe(J[0][3],$)}}function pe(ue){ue.value instanceof O?Promise.resolve(ue.value.v).then(se,ye):fe(J[0][2],ue)}function se(ue){oe("next",ue)}function ye(ue){oe("throw",ue)}function fe(ue,he){ue(he),J.shift(),J.length&&oe(J[0][0],J[0][1])}}function V(R){var k,P;return k={},j("next"),j("throw",function(Z){throw Z}),j("return"),k[Symbol.iterator]=function(){return this},k;function j(Z,J){k[Z]=R[Z]?function(F){return(P=!P)?{value:O(R[Z](F)),done:Z==="return"}:J?J(F):F}:J}}function I(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k=R[Symbol.asyncIterator],P;return k?k.call(R):(R=typeof v=="function"?v(R):R[Symbol.iterator](),P={},j("next"),j("throw"),j("return"),P[Symbol.asyncIterator]=function(){return this},P);function j(J){P[J]=R[J]&&function(F){return new Promise(function(oe,pe){F=R[J](F),Z(oe,pe,F.done,F.value)})}}function Z(J,F,oe,pe){Promise.resolve(pe).then(function(se){J({value:se,done:oe})},F)}}function z(R,k){return Object.defineProperty?Object.defineProperty(R,"raw",{value:k}):R.raw=k,R}var T=Object.create?function(R,k){Object.defineProperty(R,"default",{enumerable:!0,value:k})}:function(R,k){R.default=k};function B(R){if(R&&R.__esModule)return R;var k={};if(R!=null)for(var P in R)P!=="default"&&Object.prototype.hasOwnProperty.call(R,P)&&E(k,R,P);return T(k,R),k}function L(R){return R&&R.__esModule?R:{default:R}}function U(R,k){if(!k.has(R))throw new TypeError("attempted to get private field on non-instance");return k.get(R)}function W(R,k,P){if(!k.has(R))throw new TypeError("attempted to set private field on non-instance");return k.set(R,P),P}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(89)),f=s(i(4)),g=s(i(26)),y=s(i(17)),C=s(i(121)),w=s(i(27)),A=s(i(91)),E=s(i(70)),_=s(i(28)),v=s(i(57));(0,d.default)(r,"__esModule",{value:!0}),r.DomElement=void 0;var m=i(2),b=i(6),S=[];function x(T){var B=document.createElement("div");B.innerHTML=T;var L=B.children;return b.toArray(L)}function O(T){return T?T instanceof HTMLCollection||T instanceof NodeList:!1}function D(T){var B=document.querySelectorAll(T);return b.toArray(B)}function V(T){var B=[],L=[];return(0,c.default)(T)?B=T:B=T.split(";"),(0,f.default)(B).call(B,function(U){var W,R=(0,g.default)(W=U.split(":")).call(W,function(k){return(0,y.default)(k).call(k)});R.length===2&&L.push(R[0]+":"+R[1])}),L}var I=function(){function T(B){if(this.elems=[],this.length=this.elems.length,this.dataSource=new C.default,!!B){if(B instanceof T)return B;var L=[],U=B instanceof Node?B.nodeType:-1;if(this.selector=B,U===1||U===9)L=[B];else if(O(B))L=b.toArray(B);else if(B instanceof Array)L=B;else if(typeof B=="string"){var W,R=(0,y.default)(W=B.replace(`/
/mg`,"")).call(W);(0,w.default)(R).call(R,"<")===0?L=x(R):L=D(R)}var k=L.length;if(!k)return this;for(var P=0;P<k;P++)this.elems.push(L[P]);this.length=k}}return(0,d.default)(T.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),T.prototype.forEach=function(B){for(var L=0;L<this.length;L++){var U=this.elems[L],W=B.call(U,U,L);if(W===!1)break}return this},T.prototype.clone=function(B){var L;B===void 0&&(B=!1);var U=[];return(0,f.default)(L=this.elems).call(L,function(W){U.push(W.cloneNode(!!B))}),z(U)},T.prototype.get=function(B){B===void 0&&(B=0);var L=this.length;return B>=L&&(B=B%L),z(this.elems[B])},T.prototype.first=function(){return this.get(0)},T.prototype.last=function(){var B=this.length;return this.get(B-1)},T.prototype.on=function(B,L,U){var W;return B?(typeof L=="function"&&(U=L,L=""),(0,f.default)(W=this).call(W,function(R){if(!L){R.addEventListener(B,U);return}var k=function(j){var Z=j.target;Z.matches(L)&&U.call(Z,j)};R.addEventListener(B,k),S.push({elem:R,selector:L,fn:U,agentFn:k})})):this},T.prototype.off=function(B,L,U){var W;return B?(typeof L=="function"&&(U=L,L=""),(0,f.default)(W=this).call(W,function(R){if(L){for(var k=-1,P=0;P<S.length;P++){var j=S[P];if(j.selector===L&&j.fn===U&&j.elem===R){k=P;break}}if(k!==-1){var Z=(0,A.default)(S).call(S,k,1)[0].agentFn;R.removeEventListener(B,Z)}}else R.removeEventListener(B,U)})):this},T.prototype.attr=function(B,L){var U;return L==null?this.elems[0].getAttribute(B)||"":(0,f.default)(U=this).call(U,function(W){W.setAttribute(B,L)})},T.prototype.removeAttr=function(B){var L;(0,f.default)(L=this).call(L,function(U){U.removeAttribute(B)})},T.prototype.addClass=function(B){var L;return B?(0,f.default)(L=this).call(L,function(U){if(U.className){var W=U.className.split(/\s/);W=(0,E.default)(W).call(W,function(R){return!!(0,y.default)(R).call(R)}),(0,w.default)(W).call(W,B)<0&&W.push(B),U.className=W.join(" ")}else U.className=B}):this},T.prototype.removeClass=function(B){var L;return B?(0,f.default)(L=this).call(L,function(U){if(!!U.className){var W=U.className.split(/\s/);W=(0,E.default)(W).call(W,function(R){return R=(0,y.default)(R).call(R),!(!R||R===B)}),U.className=W.join(" ")}}):this},T.prototype.hasClass=function(B){if(!B)return!1;var L=this.elems[0];if(!L.className)return!1;var U=L.className.split(/\s/);return(0,_.default)(U).call(U,B)},T.prototype.css=function(B,L){var U,W;return L==""?W="":W=B+":"+L+";",(0,f.default)(U=this).call(U,function(R){var k,P=(0,y.default)(k=R.getAttribute("style")||"").call(k);if(P){var j=V(P);j=(0,g.default)(j).call(j,function(Z){return(0,w.default)(Z).call(Z,B)===0?W:Z}),W!=""&&(0,w.default)(j).call(j,W)<0&&j.push(W),W==""&&(j=V(j)),R.setAttribute("style",j.join("; "))}else R.setAttribute("style",W)})},T.prototype.getBoundingClientRect=function(){var B=this.elems[0];return B.getBoundingClientRect()},T.prototype.show=function(){return this.css("display","block")},T.prototype.hide=function(){return this.css("display","none")},T.prototype.children=function(){var B=this.elems[0];return B?z(B.children):null},T.prototype.childNodes=function(){var B=this.elems[0];return B?z(B.childNodes):null},T.prototype.replaceChildAll=function(B){for(var L=this.getNode(),U=this.elems[0];U.hasChildNodes();)L.firstChild&&U.removeChild(L.firstChild);this.append(B)},T.prototype.append=function(B){var L;return(0,f.default)(L=this).call(L,function(U){(0,f.default)(B).call(B,function(W){U.appendChild(W)})})},T.prototype.remove=function(){var B;return(0,f.default)(B=this).call(B,function(L){if(L.remove)L.remove();else{var U=L.parentElement;U&&U.removeChild(L)}})},T.prototype.isContain=function(B){var L=this.elems[0],U=B.elems[0];return L.contains(U)},T.prototype.getNodeName=function(){var B=this.elems[0];return B.nodeName},T.prototype.getNode=function(B){B===void 0&&(B=0);var L;return L=this.elems[B],L},T.prototype.find=function(B){var L=this.elems[0];return z(L.querySelectorAll(B))},T.prototype.text=function(B){if(B){var U;return(0,f.default)(U=this).call(U,function(W){W.innerHTML=B})}else{var L=this.elems[0];return L.innerHTML.replace(/<[^>]+>/g,function(){return""})}},T.prototype.html=function(B){var L=this.elems[0];return B?(L.innerHTML=B,this):L.innerHTML},T.prototype.val=function(){var B,L=this.elems[0];return(0,y.default)(B=L.value).call(B)},T.prototype.focus=function(){var B;return(0,f.default)(B=this).call(B,function(L){L.focus()})},T.prototype.prev=function(){var B=this.elems[0];return z(B.previousElementSibling)},T.prototype.next=function(){var B=this.elems[0];return z(B.nextElementSibling)},T.prototype.getNextSibling=function(){var B=this.elems[0];return z(B.nextSibling)},T.prototype.parent=function(){var B=this.elems[0];return z(B.parentElement)},T.prototype.parentUntil=function(B,L){var U=L||this.elems[0];if(U.nodeName==="BODY")return null;var W=U.parentElement;return W===null?null:W.matches(B)?z(W):this.parentUntil(B,W)},T.prototype.parentUntilEditor=function(B,L,U){var W=U||this.elems[0];if(z(W).equal(L.$textContainerElem)||z(W).equal(L.$toolbarElem))return null;var R=W.parentElement;return R===null?null:R.matches(B)?z(R):this.parentUntilEditor(B,L,R)},T.prototype.equal=function(B){return B instanceof T?this.elems[0]===B.elems[0]:B instanceof HTMLElement?this.elems[0]===B:!1},T.prototype.insertBefore=function(B){var L,U=z(B),W=U.elems[0];return W?(0,f.default)(L=this).call(L,function(R){var k=W.parentNode;k==null||k.insertBefore(R,W)}):this},T.prototype.insertAfter=function(B){var L,U=z(B),W=U.elems[0],R=W&&W.nextSibling;return W?(0,f.default)(L=this).call(L,function(k){var P=W.parentNode;R?P.insertBefore(k,R):P.appendChild(k)}):this},T.prototype.data=function(B,L){if(L!=null)this.dataSource.set(B,L);else return this.dataSource.get(B)},T.prototype.getNodeTop=function(B){if(this.length<1)return this;var L=this.parent();return B.$textElem.equal(this)||B.$textElem.equal(L)?this:(L.prior=this,L.getNodeTop(B))},T.prototype.getOffsetData=function(){var B=this.elems[0];return{top:B.offsetTop,left:B.offsetLeft,width:B.offsetWidth,height:B.offsetHeight,parent:B.offsetParent}},T.prototype.scrollTop=function(B){var L=this.elems[0];L.scrollTo({top:B})},T}();r.DomElement=I;function z(){for(var T=[],B=0;B<arguments.length;B++)T[B]=arguments[B];return new((0,v.default)(I).apply(I,m.__spreadArrays([void 0],T)))}r.default=z},function(o,r,i){o.exports=i(180)},function(o,r,i){var s=i(8),d=i(71).f,c=i(101),f=i(9),g=i(40),y=i(19),C=i(16),w=function(E){var _=function(m,b,S){if(this instanceof E){switch(arguments.length){case 0:return new E;case 1:return new E(m);case 2:return new E(m,b)}return new E(m,b,S)}return E.apply(this,arguments)};return _.prototype=E.prototype,_};o.exports=function(A,E){var _=A.target,v=A.global,m=A.stat,b=A.proto,S=v?s:m?s[_]:(s[_]||{}).prototype,x=v?f:f[_]||(f[_]={}),O=x.prototype,D,V,I,z,T,B,L,U,W;for(z in E)D=c(v?z:_+(m?".":"#")+z,A.forced),V=!D&&S&&C(S,z),B=x[z],V&&(A.noTargetGet?(W=d(S,z),L=W&&W.value):L=S[z]),T=V&&L?L:E[z],!(V&&zt(B)===zt(T))&&(A.bind&&V?U=g(T,s):A.wrap&&V?U=w(T):b&&typeof T=="function"?U=g(Function.call,T):U=T,(A.sham||T&&T.sham||B&&B.sham)&&y(U,"sham",!0),x[z]=U,b&&(I=_+"Prototype",C(f,I)||y(f,I,{}),f[I][z]=T,A.real&&O&&!O[z]&&y(O,z,T)))}},function(o,r,i){var s=i(0),d=s(i(92)),c=s(i(1)),f=s(i(256)),g=s(i(45)),y=s(i(46)),C=s(i(89)),w=s(i(26));(0,c.default)(r,"__esModule",{value:!0}),r.hexToRgb=r.getRandomCode=r.toArray=r.deepClone=r.isFunction=r.debounce=r.throttle=r.arrForEach=r.forEach=r.replaceSpecialSymbol=r.replaceHtmlSymbol=r.getRandom=r.UA=void 0;var A=i(2),E=function(){function B(){this._ua=navigator.userAgent;var L=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(L&&L[1]=="Edge"&&(0,f.default)(L[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return B.prototype.isIE=function(){return"ActiveXObject"in window},B.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},B}();r.UA=new E;function _(B){var L;return B===void 0&&(B=""),B+(0,g.default)(L=Math.random().toString()).call(L,2)}r.getRandom=_;function v(B){return B.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}r.replaceHtmlSymbol=v;function m(B){return B.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}r.replaceSpecialSymbol=m;function b(B,L){for(var U in B)if(Object.prototype.hasOwnProperty.call(B,U)){var W=L(U,B[U]);if(W===!1)break}}r.forEach=b;function S(B,L){var U,W,R,k=B.length||0;for(U=0;U<k&&(W=B[U],R=L.call(B,W,U),R!==!1);U++);}r.arrForEach=S;function x(B,L){L===void 0&&(L=200);var U=!1;return function(){for(var W=this,R=[],k=0;k<arguments.length;k++)R[k]=arguments[k];U||(U=!0,(0,y.default)(function(){U=!1,B.call.apply(B,A.__spreadArrays([W],R))},L))}}r.throttle=x;function O(B,L){L===void 0&&(L=200);var U=0;return function(){for(var W=this,R=[],k=0;k<arguments.length;k++)R[k]=arguments[k];U&&window.clearTimeout(U),U=(0,y.default)(function(){U=0,B.call.apply(B,A.__spreadArrays([W],R))},L)}}r.debounce=O;function D(B){return typeof B=="function"}r.isFunction=D;function V(B){if((0,d.default)(B)!=="object"||typeof B=="function"||B===null)return B;var L;(0,C.default)(B)&&(L=[]),(0,C.default)(B)||(L={});for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&(L[U]=V(B[U]));return L}r.deepClone=V;function I(B){return(0,g.default)(Array.prototype).call(B)}r.toArray=I;function z(){var B;return(0,g.default)(B=Math.random().toString(36)).call(B,-5)}r.getRandomCode=z;function T(B){var L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(B);if(L==null)return null;var U=(0,w.default)(L).call(L,function(P){return(0,f.default)(P,16)}),W=U[1],R=U[2],k=U[3];return"rgb("+W+", "+R+", "+k+")"}r.hexToRgb=T},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.EMPTY_P_REGEX=r.EMPTY_P_LAST_REGEX=r.EMPTY_P=r.urlRegex=r.EMPTY_FN=void 0;function c(){}r.EMPTY_FN=c,r.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,r.EMPTY_P='<p data-we-empty-p=""><br></p>',r.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,r.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(o,r,i){(function(s){var d=function(f){return f&&f.Math==Math&&f};o.exports=d((typeof globalThis>"u"?"undefined":zt(globalThis))=="object"&&globalThis)||d((typeof window>"u"?"undefined":zt(window))=="object"&&window)||d((typeof self>"u"?"undefined":zt(self))=="object"&&self)||d(zt(s)=="object"&&s)||Function("return this")()}).call(this,i(145))},function(o,r){o.exports={}},function(o,r,i){var s=i(8),d=i(74),c=i(16),f=i(64),g=i(76),y=i(106),C=d("wks"),w=s.Symbol,A=y?w:w&&w.withoutSetter||f;o.exports=function(E){return c(C,E)||(g&&c(w,E)?C[E]=w[E]:C[E]=A("Symbol."+E)),C[E]}},function(o,r){o.exports=function(i){try{return!!i()}catch{return!0}}},function(o,r,i){var s=i(9),d=i(16),c=i(93),f=i(18).f;o.exports=function(g){var y=s.Symbol||(s.Symbol={});d(y,g)||f(y,g,{value:c.f(g)})}},function(o,r){o.exports=function(i){return zt(i)==="object"?i!==null:typeof i=="function"}},function(o,r,i){var s=i(11);o.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(o,r,i){var s=i(9);o.exports=function(d){return s[d+"Prototype"]}},function(o,r){var i={}.hasOwnProperty;o.exports=function(s,d){return i.call(s,d)}},function(o,r,i){o.exports=i(192)},function(o,r,i){var s=i(14),d=i(100),c=i(25),f=i(60),g=Object.defineProperty;r.f=s?g:function(C,w,A){if(c(C),w=f(w,!0),c(A),d)try{return g(C,w,A)}catch{}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(C[w]=A.value),C}},function(o,r,i){var s=i(14),d=i(18),c=i(48);o.exports=s?function(f,g,y){return d.f(f,g,c(1,y))}:function(f,g,y){return f[g]=y,f}},function(o,r,i){var s=function(){var S;return function(){return typeof S>"u"&&(S=Boolean(window&&document&&document.all&&!window.atob)),S}}(),d=function(){var S={};return function(O){if(typeof S[O]>"u"){var D=document.querySelector(O);if(window.HTMLIFrameElement&&D instanceof window.HTMLIFrameElement)try{D=D.contentDocument.head}catch{D=null}S[O]=D}return S[O]}}(),c=[];function f(b){for(var S=-1,x=0;x<c.length;x++)if(c[x].identifier===b){S=x;break}return S}function g(b,S){for(var x={},O=[],D=0;D<b.length;D++){var V=b[D],I=S.base?V[0]+S.base:V[0],z=x[I]||0,T="".concat(I," ").concat(z);x[I]=z+1;var B=f(T),L={css:V[1],media:V[2],sourceMap:V[3]};B!==-1?(c[B].references++,c[B].updater(L)):c.push({identifier:T,updater:m(L,S),references:1}),O.push(T)}return O}function y(b){var S=document.createElement("style"),x=b.attributes||{};if(typeof x.nonce>"u"){var O=i.nc;O&&(x.nonce=O)}if(Object.keys(x).forEach(function(V){S.setAttribute(V,x[V])}),typeof b.insert=="function")b.insert(S);else{var D=d(b.insert||"head");if(!D)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");D.appendChild(S)}return S}function C(b){if(b.parentNode===null)return!1;b.parentNode.removeChild(b)}var w=function(){var S=[];return function(O,D){return S[O]=D,S.filter(Boolean).join(`
`)}}();function A(b,S,x,O){var D=x?"":O.media?"@media ".concat(O.media," {").concat(O.css,"}"):O.css;if(b.styleSheet)b.styleSheet.cssText=w(S,D);else{var V=document.createTextNode(D),I=b.childNodes;I[S]&&b.removeChild(I[S]),I.length?b.insertBefore(V,I[S]):b.appendChild(V)}}function E(b,S,x){var O=x.css,D=x.media,V=x.sourceMap;if(D?b.setAttribute("media",D):b.removeAttribute("media"),V&&typeof btoa<"u"&&(O+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(V))))," */")),b.styleSheet)b.styleSheet.cssText=O;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(O))}}var _=null,v=0;function m(b,S){var x,O,D;if(S.singleton){var V=v++;x=_||(_=y(S)),O=A.bind(null,x,V,!1),D=A.bind(null,x,V,!0)}else x=y(S),O=E.bind(null,x,S),D=function(){C(x)};return O(b),function(z){if(z){if(z.css===b.css&&z.media===b.media&&z.sourceMap===b.sourceMap)return;O(b=z)}else D()}}o.exports=function(b,S){S=S||{},!S.singleton&&typeof S.singleton!="boolean"&&(S.singleton=s()),b=b||[];var x=g(b,S);return function(D){if(D=D||[],Object.prototype.toString.call(D)==="[object Array]"){for(var V=0;V<x.length;V++){var I=x[V],z=f(I);c[z].references--}for(var T=g(D,S),B=0;B<x.length;B++){var L=x[B],U=f(L);c[U].references===0&&(c[U].updater(),c.splice(U,1))}x=T}}}},function(o,r,i){o.exports=function(c){var f=[];return f.toString=function(){return this.map(function(y){var C=s(y,c);return y[2]?"@media ".concat(y[2]," {").concat(C,"}"):C}).join("")},f.i=function(g,y,C){typeof g=="string"&&(g=[[null,g,""]]);var w={};if(C)for(var A=0;A<this.length;A++){var E=this[A][0];E!=null&&(w[E]=!0)}for(var _=0;_<g.length;_++){var v=[].concat(g[_]);C&&w[v[0]]||(y&&(v[2]?v[2]="".concat(y," and ").concat(v[2]):v[2]=y),f.push(v))}},f};function s(c,f){var g=c[1]||"",y=c[3];if(!y)return g;if(f&&typeof btoa=="function"){var C=d(y),w=y.sources.map(function(A){return"/*# sourceURL=".concat(y.sourceRoot||"").concat(A," */")});return[g].concat(w).concat([C]).join(`
`)}return[g].join(`
`)}function d(c){var f=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),g="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(f);return"/*# ".concat(g," */")}},function(o,r,i){var s=i(14),d=i(11),c=i(16),f=Object.defineProperty,g={},y=function(w){throw w};o.exports=function(C,w){if(c(g,C))return g[C];w||(w={});var A=[][C],E=c(w,"ACCESSORS")?w.ACCESSORS:!1,_=c(w,0)?w[0]:y,v=c(w,1)?w[1]:void 0;return g[C]=!!A&&!d(function(){if(E&&!s)return!0;var m={length:-1};E?f(m,1,{enumerable:!0,get:y}):m[1]=1,A.call(m,_,v)})}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(95)),g=function(y){c.__extends(C,y);function C(w,A){return y.call(this,w,A)||this}return C}(f.default);r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(46));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3)),C=g.__importDefault(i(95)),w=g.__importDefault(i(134)),A=function(E){g.__extends(_,E);function _(v,m,b){var S=E.call(this,v,m)||this;b.title=m.i18next.t("menus.dropListMenu."+b.title);var x=m.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(x!==""&&b.type==="list"){var O;(0,c.default)(O=b.list).call(O,function(V){var I=V.$elem,z=y.default(I.children());if(z.length>0){var T=z==null?void 0:z.getNodeName();T&&T==="I"&&I.addClass(x)}})}var D=new w.default(S,b);return S.dropList=D,v.on("click",function(){var V;m.selection.getRange()!=null&&(v.css("z-index",m.zIndex.get("menu")),(0,c.default)(V=m.txt.eventHooks.dropListMenuHoverEvents).call(V,function(I){return I()}),D.show())}).on("mouseleave",function(){v.css("z-index","auto"),D.hideTimeoutId=(0,f.default)(function(){D.hide()})}),S}return _}(C.default);r.default=A},function(o,r,i){var s=i(13);o.exports=function(d){if(!s(d))throw TypeError(String(d)+" is not an object");return d}},function(o,r,i){o.exports=i(188)},function(o,r,i){o.exports=i(201)},function(o,r,i){o.exports=i(213)},function(o,r,i){o.exports=i(283)},function(o,r,i){var s=i(72),d=i(49);o.exports=function(c){return s(d(c))}},function(o,r,i){var s=i(49);o.exports=function(d){return Object(s(d))}},function(o,r,i){var s=i(40),d=i(72),c=i(31),f=i(35),g=i(88),y=[].push,C=function(A){var E=A==1,_=A==2,v=A==3,m=A==4,b=A==6,S=A==5||b;return function(x,O,D,V){for(var I=c(x),z=d(I),T=s(O,D,3),B=f(z.length),L=0,U=V||g,W=E?U(x,B):_?U(x,0):void 0,R,k;B>L;L++)if((S||L in z)&&(R=z[L],k=T(R,L,I),A)){if(E)W[L]=k;else if(k)switch(A){case 3:return!0;case 5:return R;case 6:return L;case 2:y.call(W,R)}else if(m)return!1}return b?-1:v||m?m:W}};o.exports={forEach:C(0),map:C(1),filter:C(2),some:C(3),every:C(4),find:C(5),findIndex:C(6)}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(29)),g=s(i(132));(0,d.default)(r,"__esModule",{value:!0});var y=i(2),C=y.__importDefault(i(3)),w=i(7),A=function(){function E(_,v){this.menu=_,this.conf=v,this.$container=C.default('<div class="w-e-panel-container"></div>');var m=_.editor;m.txt.eventHooks.clickEvents.push(E.hideCurAllPanels),m.txt.eventHooks.toolbarClickEvents.push(E.hideCurAllPanels),m.txt.eventHooks.dropListMenuHoverEvents.push(E.hideCurAllPanels)}return E.prototype.create=function(){var _=this,v=this.menu;if(!E.createdMenus.has(v)){var m=this.conf,b=this.$container,S=m.width||300,x=v.editor.$toolbarElem.getBoundingClientRect(),O=v.$elem.getBoundingClientRect(),D=x.height+x.top-O.top,V=(x.width-S)/2+x.left-O.left,I=300;Math.abs(V)>I&&(O.left<document.documentElement.clientWidth/2?V=-O.width/2:V=-S+O.width/2),b.css("width",S+"px").css("margin-top",D+"px").css("margin-left",V+"px").css("z-index",v.editor.zIndex.get("panel"));var z=C.default('<i class="w-e-icon-close w-e-panel-close"></i>');b.append(z),z.on("click",function(){_.remove()});var T=C.default('<ul class="w-e-panel-tab-title"></ul>'),B=C.default('<div class="w-e-panel-tab-content"></div>');b.append(T).append(B);var L=m.height;L&&B.css("height",L+"px").css("overflow-y","auto");var U=m.tabs||[],W=[],R=[];(0,c.default)(U).call(U,function(P,j){if(!!P){var Z=P.title||"",J=P.tpl||"",F=C.default('<li class="w-e-item">'+Z+"</li>");T.append(F);var oe=C.default(J);B.append(oe),W.push(F),R.push(oe),j===0?(F.data("active",!0),F.addClass("w-e-active")):oe.hide(),F.on("click",function(){F.data("active")||((0,c.default)(W).call(W,function(pe){pe.data("active",!1),pe.removeClass("w-e-active")}),(0,c.default)(R).call(R,function(pe){pe.hide()}),F.data("active",!0),F.addClass("w-e-active"),oe.show())})}}),b.on("click",function(P){P.stopPropagation()}),v.$elem.append(b),m.setLinkValue&&m.setLinkValue(b,"text"),m.setLinkValue&&m.setLinkValue(b,"link"),(0,c.default)(U).call(U,function(P,j){if(!!P){var Z=P.events||[];(0,c.default)(Z).call(Z,function(J){var F,oe=J.selector,pe=J.type,se=J.fn||w.EMPTY_FN,ye=R[j],fe=(F=J.bindEnter)!==null&&F!==void 0?F:!1,ue=function($){return y.__awaiter(_,void 0,void 0,function(){var Y;return y.__generator(this,function(Q){switch(Q.label){case 0:return $.stopPropagation(),[4,se($)];case 1:return Y=Q.sent(),Y&&this.remove(),[2]}})})};(0,f.default)(ye).call(ye,oe).on(pe,ue),fe&&pe==="click"&&ye.on("keyup",function(he){he.keyCode==13&&ue(he)})})}});var k=(0,f.default)(b).call(b,"input[type=text],textarea");k.length&&k.get(0).focus(),E.hideCurAllPanels(),v.setPanel(this),E.createdMenus.add(v)}},E.prototype.remove=function(){var _=this.menu,v=this.$container;v&&v.remove(),E.createdMenus.delete(_)},E.hideCurAllPanels=function(){var _;E.createdMenus.size!==0&&(0,c.default)(_=E.createdMenus).call(_,function(v){var m=v.panel;m&&m.remove()})},E.createdMenus=new g.default,E}();r.default=A},function(o,r){var i={}.toString;o.exports=function(s){return i.call(s).slice(8,-1)}},function(o,r,i){var s=i(62),d=Math.min;o.exports=function(c){return c>0?d(s(c),9007199254740991):0}},function(o,r,i){var s=i(9),d=i(8),c=function(g){return typeof g=="function"?g:void 0};o.exports=function(f,g){return arguments.length<2?c(s[f])||c(d[f]):s[f]&&s[f][g]||d[f]&&d[f][g]}},function(o,r,i){var s=i(81),d=i(18).f,c=i(19),f=i(16),g=i(170),y=i(10),C=y("toStringTag");o.exports=function(w,A,E,_){if(w){var v=E?w:w.prototype;f(v,C)||d(v,C,{configurable:!0,value:A}),_&&!s&&c(v,"toString",g)}}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(95)),g=function(y){c.__extends(C,y);function C(w,A){return y.call(this,w,A)||this}return C.prototype.setPanel=function(w){this.panel=w},C}(f.default);r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(57));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3)),C=function(){function w(A,E,_){this.editor=A,this.$targetElem=E,this.conf=_,this._show=!1,this._isInsertTextContainer=!1;var v=y.default("<div></div>");v.addClass("w-e-tooltip"),this.$container=v}return w.prototype.getPositionData=function(){var A=this.$container,E=0,_=0,v=20,m=document.documentElement.scrollTop,b=this.$targetElem.getBoundingClientRect(),S=this.editor.$textElem.getBoundingClientRect(),x=this.$targetElem.getOffsetData(),O=y.default(x.parent),D=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=O.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var V=O.getBoundingClientRect().height,I=x.top,z=x.left,T=x.height,B=I-D;B>v+5?(E=B-v-15,A.addClass("w-e-tooltip-up")):B+T+v<V?(E=B+T+10,A.addClass("w-e-tooltip-down")):(E=(B>0?B:0)+v+10,A.addClass("w-e-tooltip-down")),z<0?_=0:_=z}else b.top<v||b.top-S.top<v?(E=b.bottom+m+5,A.addClass("w-e-tooltip-down")):(E=b.top+m-v-15,A.addClass("w-e-tooltip-up")),b.left<0?_=0:_=b.left;return{top:E,left:_}},w.prototype.appendMenus=function(){var A=this,E=this.conf,_=this.editor,v=this.$targetElem,m=this.$container;(0,c.default)(E).call(E,function(b,S){var x=b.$elem,O=y.default("<div></div>");O.addClass("w-e-tooltip-item-wrapper "),O.append(x),m.append(O),x.on("click",function(D){D.preventDefault();var V=b.onClick(_,v);V&&A.remove()})})},w.prototype.create=function(){var A,E,_=this.editor,v=this.$container;this.appendMenus();var m=this.getPositionData(),b=m.top,S=m.left;v.css("top",b+"px"),v.css("left",S+"px"),v.css("z-index",_.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(v):y.default("body").append(v),this._show=!0,_.beforeDestroy((0,f.default)(A=this.remove).call(A,this)),_.txt.eventHooks.onBlurEvents.push((0,f.default)(E=this.remove).call(E,this))},w.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,d.default)(w.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),w}();r.default=C},function(o,r,i){var s=i(41);o.exports=function(d,c,f){if(s(d),c===void 0)return d;switch(f){case 0:return function(){return d.call(c)};case 1:return function(g){return d.call(c,g)};case 2:return function(g,y){return d.call(c,g,y)};case 3:return function(g,y,C){return d.call(c,g,y,C)}}return function(){return d.apply(c,arguments)}}},function(o,r){o.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},function(o,r,i){var s=i(165),d=i(8),c=i(13),f=i(19),g=i(16),y=i(63),C=i(51),w=d.WeakMap,A,E,_,v=function(I){return _(I)?E(I):A(I,{})},m=function(I){return function(z){var T;if(!c(z)||(T=E(z)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return T}};if(s){var b=new w,S=b.get,x=b.has,O=b.set;A=function(I,z){return O.call(b,I,z),z},E=function(I){return S.call(b,I)||{}},_=function(I){return x.call(b,I)}}else{var D=y("state");C[D]=!0,A=function(I,z){return f(I,D,z),z},E=function(I){return g(I,D)?I[D]:{}},_=function(I){return g(I,D)}}o.exports={set:A,get:E,has:_,enforce:v,getterFor:m}},function(o,r){o.exports=!0},function(o,r){o.exports={}},function(o,r,i){o.exports=i(261)},function(o,r,i){o.exports=i(265)},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0}),r.createElementFragment=r.createDocumentFragment=r.createElement=r.insertBefore=r.getEndPoint=r.getStartPoint=r.updateRange=r.filterSelectionNodes=void 0;var f=i(2),g=i(137),y=f.__importDefault(i(3));function C(S){var x=[];return(0,c.default)(S).call(S,function(O){var D=O.getNodeName();if(D!==g.ListType.OrderedList&&D!==g.ListType.UnorderedList)x.push(O);else if(O.prior)x.push(O.prior);else{var V=O.children();V==null||(0,c.default)(V).call(V,function(I){x.push(y.default(I))})}}),x}r.filterSelectionNodes=C;function w(S,x,O){var D=S.selection,V=document.createRange();x.length>1?(V.setStart(x.elems[0],0),V.setEnd(x.elems[x.length-1],x.elems[x.length-1].childNodes.length)):V.selectNodeContents(x.elems[0]),O&&V.collapse(!1),D.saveRange(V),D.restoreSelection()}r.updateRange=w;function A(S){var x;return S.prior?S.prior:y.default((x=S.children())===null||x===void 0?void 0:x.elems[0])}r.getStartPoint=A;function E(S){var x;return S.prior?S.prior:y.default((x=S.children())===null||x===void 0?void 0:x.last().elems[0])}r.getEndPoint=E;function _(S,x,O){O===void 0&&(O=null),S.parent().elems[0].insertBefore(x,O)}r.insertBefore=_;function v(S){return document.createElement(S)}r.createElement=v;function m(){return document.createDocumentFragment()}r.createDocumentFragment=m;function b(S,x,O){return O===void 0&&(O="li"),(0,c.default)(S).call(S,function(D){var V=v(O);V.innerHTML=D.html(),x.appendChild(V),D.remove()}),x}r.createElementFragment=b},function(o,r){o.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},function(o,r){o.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(o,r,i){var s=i(164).charAt,d=i(42),c=i(75),f="String Iterator",g=d.set,y=d.getterFor(f);c(String,"String",function(C){g(this,{type:f,string:String(C),index:0})},function(){var w=y(this),A=w.string,E=w.index,_;return E>=A.length?{value:void 0,done:!0}:(_=s(A,E),w.index+=_.length,{value:_,done:!1})})},function(o,r){o.exports={}},function(o,r,i){var s=i(107),d=i(80);o.exports=Object.keys||function(f){return s(f,d)}},function(o,r,i){var s=i(19);o.exports=function(d,c,f,g){g&&g.enumerable?d[c]=f:s(d,c,f)}},function(o,r,i){i(173);var s=i(174),d=i(8),c=i(65),f=i(19),g=i(44),y=i(10),C=y("toStringTag");for(var w in s){var A=d[w],E=A&&A.prototype;E&&c(E)!==C&&f(E,C,w),g[w]=g.Array}},function(o,r,i){var s=i(34);o.exports=Array.isArray||function(c){return s(c)=="Array"}},function(o,r,i){var s=i(11),d=i(10),c=i(86),f=d("species");o.exports=function(g){return c>=51||!s(function(){var y=[],C=y.constructor={};return C[f]=function(){return{foo:1}},y[g](Boolean).foo!==1})}},function(o,r,i){o.exports=i(222)},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.ListHandle=void 0;var c=i(2),f=c.__importDefault(i(373)),g=function(){function y(C){this.options=C,this.selectionRangeElem=new f.default}return y}();r.ListHandle=g},function(o,r,i){var s={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,c=d&&!s.call({1:2},1);r.f=c?function(g){var y=d(this,g);return!!y&&y.enumerable}:s},function(o,r,i){var s=i(13);o.exports=function(d,c){if(!s(d))return d;var f,g;if(c&&typeof(f=d.toString)=="function"&&!s(g=f.call(d))||typeof(f=d.valueOf)=="function"&&!s(g=f.call(d))||!c&&typeof(f=d.toString)=="function"&&!s(g=f.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},function(o,r){},function(o,r){var i=Math.ceil,s=Math.floor;o.exports=function(d){return isNaN(d=+d)?0:(d>0?s:i)(d)}},function(o,r,i){var s=i(74),d=i(64),c=s("keys");o.exports=function(f){return c[f]||(c[f]=d(f))}},function(o,r){var i=0,s=Math.random();o.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++i+s).toString(36)}},function(o,r,i){var s=i(81),d=i(34),c=i(10),f=c("toStringTag"),g=d(function(){return arguments}())=="Arguments",y=function(w,A){try{return w[A]}catch{}};o.exports=s?d:function(C){var w,A,E;return C===void 0?"Undefined":C===null?"Null":typeof(A=y(w=Object(C),f))=="string"?A:g?d(w):(E=d(w))=="Object"&&typeof w.callee=="function"?"Arguments":E}},function(o,r,i){var s=i(25),d=i(112),c=i(35),f=i(40),g=i(113),y=i(114),C=function(E,_){this.stopped=E,this.result=_},w=o.exports=function(A,E,_,v,m){var b=f(E,_,v?2:1),S,x,O,D,V,I,z;if(m)S=A;else{if(x=g(A),typeof x!="function")throw TypeError("Target is not iterable");if(d(x)){for(O=0,D=c(A.length);D>O;O++)if(V=v?b(s(z=A[O])[0],z[1]):b(A[O]),V&&V instanceof C)return V;return new C(!1)}S=x.call(A)}for(I=S.next;!(z=I.call(S)).done;)if(V=y(S,b,z.value,v),zt(V)=="object"&&V&&V instanceof C)return V;return new C(!1)};w.stop=function(A){return new C(!0,A)}},function(o,r,i){var s=i(11);o.exports=function(d,c){var f=[][d];return!!f&&s(function(){f.call(null,c||function(){throw 1},1)})}},function(o,r){o.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(o,r,i){var s=i(60),d=i(18),c=i(48);o.exports=function(f,g,y){var C=s(g);C in f?d.f(f,C,c(0,y)):f[C]=y}},function(o,r,i){o.exports=i(209)},function(o,r,i){var s=i(14),d=i(59),c=i(48),f=i(30),g=i(60),y=i(16),C=i(100),w=Object.getOwnPropertyDescriptor;r.f=s?w:function(E,_){if(E=f(E),_=g(_,!0),C)try{return w(E,_)}catch{}if(y(E,_))return c(!d.f.call(E,_),E[_])}},function(o,r,i){var s=i(11),d=i(34),c="".split;o.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return d(f)=="String"?c.call(f,""):Object(f)}:Object},function(o,r,i){var s=i(8),d=i(13),c=s.document,f=d(c)&&d(c.createElement);o.exports=function(g){return f?c.createElement(g):{}}},function(o,r,i){var s=i(43),d=i(103);(o.exports=function(c,f){return d[c]||(d[c]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.4",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(o,r,i){var s=i(5),d=i(167),c=i(105),f=i(171),g=i(37),y=i(19),C=i(53),w=i(10),A=i(43),E=i(44),_=i(104),v=_.IteratorPrototype,m=_.BUGGY_SAFARI_ITERATORS,b=w("iterator"),S="keys",x="values",O="entries",D=function(){return this};o.exports=function(V,I,z,T,B,L,U){d(z,I,T);var W=function(ye){if(ye===B&&Z)return Z;if(!m&&ye in P)return P[ye];switch(ye){case S:return function(){return new z(this,ye)};case x:return function(){return new z(this,ye)};case O:return function(){return new z(this,ye)}}return function(){return new z(this)}},R=I+" Iterator",k=!1,P=V.prototype,j=P[b]||P["@@iterator"]||B&&P[B],Z=!m&&j||W(B),J=I=="Array"&&P.entries||j,F,oe,pe;if(J&&(F=c(J.call(new V)),v!==Object.prototype&&F.next&&(!A&&c(F)!==v&&(f?f(F,v):typeof F[b]!="function"&&y(F,b,D)),g(F,R,!0,!0),A&&(E[R]=D))),B==x&&j&&j.name!==x&&(k=!0,Z=function(){return j.call(this)}),(!A||U)&&P[b]!==Z&&y(P,b,Z),E[I]=Z,B)if(oe={values:W(x),keys:L?Z:W(S),entries:W(O)},U)for(pe in oe)(m||k||!(pe in P))&&C(P,pe,oe[pe]);else s({target:I,proto:!0,forced:m||k},oe);return oe}},function(o,r,i){var s=i(11);o.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},function(o,r,i){var s=i(25),d=i(169),c=i(80),f=i(51),g=i(108),y=i(73),C=i(63),w=">",A="<",E="prototype",_="script",v=C("IE_PROTO"),m=function(){},b=function(I){return A+_+w+I+A+"/"+_+w},S=function(I){I.write(b("")),I.close();var z=I.parentWindow.Object;return I=null,z},x=function(){var I=y("iframe"),z="java"+_+":",T;return I.style.display="none",g.appendChild(I),I.src=String(z),T=I.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},O,D=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}D=O?S(O):x();for(var I=c.length;I--;)delete D[E][c[I]];return D()};f[v]=!0,o.exports=Object.create||function(I,z){var T;return I!==null?(m[E]=s(I),T=new m,m[E]=null,T[v]=I):T=D(),z===void 0?T:d(T,z)}},function(o,r,i){var s=i(30),d=i(35),c=i(79),f=function(y){return function(C,w,A){var E=s(C),_=d(E.length),v=c(A,_),m;if(y&&w!=w){for(;_>v;)if(m=E[v++],m!=m)return!0}else for(;_>v;v++)if((y||v in E)&&E[v]===w)return y||v||0;return!y&&-1}};o.exports={includes:f(!0),indexOf:f(!1)}},function(o,r,i){var s=i(62),d=Math.max,c=Math.min;o.exports=function(f,g){var y=s(f);return y<0?d(y+g,0):c(y,g)}},function(o,r){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,r,i){var s=i(10),d=s("toStringTag"),c={};c[d]="z",o.exports=String(c)==="[object z]"},function(o,r){o.exports=function(){}},function(o,r){o.exports=function(i,s,d){if(!(i instanceof s))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return i}},function(o,r,i){var s=i(36);o.exports=s("navigator","userAgent")||""},function(o,r,i){var s=i(41),d=function(f){var g,y;this.promise=new f(function(C,w){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=C,y=w}),this.resolve=s(g),this.reject=s(y)};o.exports.f=function(c){return new d(c)}},function(o,r,i){var s=i(8),d=i(84),c=s.process,f=c&&c.versions,g=f&&f.v8,y,C;g?(y=g.split("."),C=y[0]+y[1]):d&&(y=d.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=d.match(/Chrome\/(\d+)/),y&&(C=y[1]))),o.exports=C&&+C},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(6),C=f.__importDefault(i(267)),w=f.__importDefault(i(280)),A=f.__importDefault(i(281)),E=f.__importDefault(i(282)),_=f.__importDefault(i(301)),v=f.__importStar(i(416)),m=f.__importDefault(i(417)),b=f.__importDefault(i(418)),S=f.__importDefault(i(419)),x=f.__importStar(i(420)),O=f.__importDefault(i(423)),D=f.__importDefault(i(424)),V=f.__importDefault(i(425)),I=f.__importDefault(i(427)),z=f.__importDefault(i(437)),T=f.__importDefault(i(440)),B=f.__importStar(i(441)),L=f.__importDefault(i(23)),U=f.__importDefault(i(134)),W=f.__importDefault(i(24)),R=f.__importDefault(i(33)),k=f.__importDefault(i(38)),P=f.__importDefault(i(39)),j=1,Z=function(){function J(F,oe){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+j++,this.toolbarSelector=F,this.textSelector=oe,v.selectorValidator(this),this.config=y.deepClone(C.default),this.$toolbarElem=g.default("<div></div>"),this.$textContainerElem=g.default("<div></div>"),this.$textElem=g.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new w.default(this),this.cmd=new A.default(this),this.txt=new E.default(this),this.menus=new _.default(this),this.zIndex=new D.default,this.change=new V.default(this),this.history=new I.default(this),this.onSelectionChange=new T.default(this);var pe=z.default(this),se=pe.disable,ye=pe.enable;this.disable=se,this.enable=ye,this.isEnable=!0}return J.prototype.initSelection=function(F){m.default(this,F)},J.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),S.default(this),v.default(this),this.txt.init(),this.menus.init(),x.default(this),this.initSelection(!0),b.default(this),this.change.observe(),this.history.observe(),B.default(this)},J.prototype.beforeDestroy=function(F){return this.beforeDestroyHooks.push(F),this},J.prototype.destroy=function(){var F,oe=this;(0,c.default)(F=this.beforeDestroyHooks).call(F,function(pe){return pe.call(oe)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},J.prototype.fullScreen=function(){x.setFullScreen(this)},J.prototype.unFullScreen=function(){x.setUnFullScreen(this)},J.prototype.scrollToHead=function(F){O.default(this,F)},J.registerMenu=function(F,oe){!oe||typeof oe!="function"||(J.globalCustomMenuConstructorList[F]=oe)},J.prototype.registerPlugin=function(F,oe){B.registerPlugin(F,oe,this.pluginsFunctionList)},J.registerPlugin=function(F,oe){B.registerPlugin(F,oe,J.globalPluginsFunctionList)},J.$=g.default,J.BtnMenu=L.default,J.DropList=U.default,J.DropListMenu=W.default,J.Panel=R.default,J.PanelMenu=k.default,J.Tooltip=P.default,J.globalCustomMenuConstructorList={},J.globalPluginsFunctionList={},J}();r.default=Z},function(o,r,i){var s=i(13),d=i(55),c=i(10),f=c("species");o.exports=function(g,y){var C;return d(g)&&(C=g.constructor,typeof C=="function"&&(C===Array||d(C.prototype))?C=void 0:s(C)&&(C=C[f],C===null&&(C=void 0))),new(C===void 0?Array:C)(y===0?0:y)}},function(o,r,i){o.exports=i(185)},function(o,r,i){var s=i(49),d=i(68),c="["+d+"]",f=RegExp("^"+c+c+"*"),g=RegExp(c+c+"*$"),y=function(w){return function(A){var E=String(s(A));return w&1&&(E=E.replace(f,"")),w&2&&(E=E.replace(g,"")),E}};o.exports={start:y(1),end:y(2),trim:y(3)}},function(o,r,i){o.exports=i(205)},function(o,r,i){var s=i(227),d=i(230);function c(f){return typeof d=="function"&&typeof s=="symbol"?o.exports=c=function(y){return typeof y}:o.exports=c=function(y){return y&&typeof d=="function"&&y.constructor===d&&y!==d.prototype?"symbol":typeof y},c(f)}o.exports=c},function(o,r,i){var s=i(10);r.f=s},function(o,r,i){o.exports=i(306)},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(33)),y=function(){function C(w,A){var E=this;this.$elem=w,this.editor=A,this._active=!1,w.on("click",function(_){var v;g.default.hideCurAllPanels(),(0,c.default)(v=A.txt.eventHooks.menuClickEvents).call(v,function(m){return m()}),_.stopPropagation(),A.selection.getRange()!=null&&E.clickHandler(_)})}return C.prototype.clickHandler=function(w){},C.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},C.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,d.default)(C.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),C}();r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(28));(0,d.default)(r,"__esModule",{value:!0}),r.getParentNodeA=r.EXTRA_TAG=void 0,r.EXTRA_TAG=["B","FONT","I","STRIKE"];function f(y){for(var C=y.elems[0];C&&(0,c.default)(w=r.EXTRA_TAG).call(w,C.nodeName);){var w;if(C=C.parentElement,C.nodeName==="A")return C}}r.getParentNodeA=f;function g(y){var C,w=y.selection.getSelectionContainerElem();if(!(!((C=w==null?void 0:w.elems)===null||C===void 0)&&C.length))return!1;if(w.getNodeName()==="A")return!0;var A=f(w);return!!(A&&A.nodeName==="A")}r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(57)),f=s(i(4)),g=s(i(27));(0,d.default)(r,"__esModule",{value:!0});var y=i(2),C=i(6),w=y.__importDefault(i(135)),A=y.__importDefault(i(136)),E=function(){function _(v){this.editor=v}return _.prototype.insertImg=function(v,m,b){var S=this.editor,x=S.config,O="validate.",D=function(L,U){return U===void 0&&(U=O),S.i18next.t(U+L)},V=v.replace(/</g,"&lt;").replace(/>/g,"&gt;");V=V.replace("'",'"');var I="";b&&(I=b.replace("'",'"'),I="data-href='"+encodeURIComponent(I)+"' ");var z="";m&&(z=m.replace(/</g,"&lt;").replace(/>/g,"&gt;"),z=z.replace("'",'"'),z="alt='"+z+"' "),S.cmd.do("insertHTML","<img src='"+V+"' "+z+I+'style="max-width:100%;" contenteditable="false"/>'),x.linkImgCallback(v,m,b);var T=document.createElement("img");T.onload=function(){T=null},T.onerror=function(){x.customAlert(D("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+D("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+D("\u56FE\u7247\u94FE\u63A5")+' "'+v+'"\uFF0C'+D("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),T=null},T.onabort=function(){return T=null},T.src=v},_.prototype.uploadImg=function(v){var m=this;if(!!v.length){var b=this.editor,S=b.config,x="validate.",O=function(ue){return b.i18next.t(x+ue)},D=S.uploadImgServer,V=S.uploadImgShowBase64,I=S.uploadImgMaxSize,z=I/1024/1024,T=S.uploadImgMaxLength,B=S.uploadFileName,L=S.uploadImgParams,U=S.uploadImgParamsWithUrl,W=S.uploadImgHeaders,R=S.uploadImgHooks,k=S.uploadImgTimeout,P=S.withCredentials,j=S.customUploadImg;if(!(!j&&!D&&!V)){var Z=[],J=[];if(C.arrForEach(v,function(fe){if(!!fe){var ue=fe.name||fe.type.replace("/","."),he=fe.size;if(!(!ue||!he)){var $=b.config.uploadImgAccept.join("|"),Y=".("+$+")$",Q=new RegExp(Y,"i");if(Q.test(ue)===!1){J.push("\u3010"+ue+"\u3011"+O("\u4E0D\u662F\u56FE\u7247"));return}if(I<he){J.push("\u3010"+ue+"\u3011"+O("\u5927\u4E8E")+" "+z+"M");return}Z.push(fe)}}}),J.length){S.customAlert(O("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+J.join(`
`),"warning");return}if(Z.length===0){S.customAlert(O("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Z.length>T){S.customAlert(O("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+T+O("\u5F20\u56FE\u7247"),"warning");return}if(j&&typeof j=="function"){var F;j(Z,(0,c.default)(F=this.insertImg).call(F,this));return}var oe=new FormData;if((0,f.default)(Z).call(Z,function(fe,ue){var he=B||fe.name;Z.length>1&&(he=he+(ue+1)),oe.append(he,fe)}),D){var pe=D.split("#");D=pe[0];var se=pe[1]||"";(0,f.default)(C).call(C,L,function(fe,ue){U&&((0,g.default)(D).call(D,"?")>0?D+="&":D+="?",D=D+fe+"="+ue),oe.append(fe,ue)}),se&&(D+="#"+se);var ye=w.default(D,{timeout:k,formData:oe,headers:W,withCredentials:!!P,beforeSend:function(ue){if(R.before)return R.before(ue,b,Z)},onTimeout:function(ue){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),R.timeout&&R.timeout(ue,b)},onProgress:function(ue,he){var $=new A.default(b);he.lengthComputable&&(ue=he.loaded/he.total,$.show(ue))},onError:function(ue){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+O("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+ue.status),R.error&&R.error(ue,b)},onFail:function(ue,he){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+": ")+he),R.fail&&R.fail(ue,b,he)},onSuccess:function(ue,he){if(R.customInsert){var $;R.customInsert((0,c.default)($=m.insertImg).call($,m),he,b);return}if(he.errno!="0"){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+" errno="+he.errno),R.fail&&R.fail(ue,b,he);return}var Y=he.data;(0,f.default)(Y).call(Y,function(Q){typeof Q=="string"?m.insertImg(Q):m.insertImg(Q.url,Q.alt,Q.href)}),R.success&&R.success(ue,b,he)}});typeof ye=="string"&&S.customAlert(ye,"error");return}V&&C.arrForEach(v,function(fe){var ue=m,he=new FileReader;he.readAsDataURL(fe),he.onload=function(){if(!!this.result){var $=this.result.toString();ue.insertImg($,$)}}})}}},_}();r.default=E},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(410)),f=s(i(4)),g=s(i(45));(0,d.default)(r,"__esModule",{value:!0}),r.dealTextNode=r.isAllTodo=r.isTodo=r.getCursorNextNode=void 0;function y(_){return _.length?_.attr("class")==="w-e-todo":!1}r.isTodo=y;function C(_){var v=_.selection.getSelectionRangeTopNodes();if(v.length!==0)return(0,c.default)(v).call(v,function(m){return y(m)})}r.isAllTodo=C;function w(_,v,m){var b;if(!!_.hasChildNodes()){var S=_.cloneNode(),x=!1;v.nodeValue===""&&(x=!0);var O=[];return(0,f.default)(b=_.childNodes).call(b,function(D){if(!A(D,v)&&x&&(S.appendChild(D.cloneNode(!0)),D.nodeName!=="BR"&&O.push(D)),A(D,v)){if(D.nodeType===1){var V=w(D,v,m);V&&V.textContent!==""&&(S==null||S.appendChild(V))}if(D.nodeType===3&&v.isEqualNode(D)){var I=E(D,m);S.textContent=I}x=!0}}),(0,f.default)(O).call(O,function(D){var V=D;V.remove()}),S}}r.getCursorNextNode=w;function A(_,v){return _.nodeType===3?_.nodeValue===v.nodeValue:_.contains(v)}function E(_,v,m){m===void 0&&(m=!0);var b=_.nodeValue,S=b==null?void 0:(0,g.default)(b).call(b,0,v);if(b=b==null?void 0:(0,g.default)(b).call(b,v),!m){var x=b;b=S,S=x}return _.nodeValue=S,b}r.dealTextNode=E},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(430),f=function(){function g(y){this.maxSize=y,this.isRe=!1,this.data=new c.CeilStack(y),this.revokeData=new c.CeilStack(y)}return(0,d.default)(g.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),g.prototype.resetMaxSize=function(y){this.data.resetMax(y),this.revokeData.resetMax(y)},g.prototype.save=function(y){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(y),this},g.prototype.revoke=function(y){!this.isRe&&(this.isRe=!0);var C=this.data.outstack();return C?(this.revokeData.instack(C),y(C),!0):!1},g.prototype.restore=function(y){!this.isRe&&(this.isRe=!0);var C=this.revokeData.outstack();return C?(this.data.instack(C),y(C),!0):!1},g}();r.default=f},function(o,r,i){var s=i(14),d=i(11),c=i(73);o.exports=!s&&!d(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},function(o,r,i){var s=i(11),d=/#|\.prototype\./,c=function(A,E){var _=g[f(A)];return _==C?!0:_==y?!1:typeof E=="function"?s(E):!!E},f=c.normalize=function(w){return String(w).replace(d,".").toLowerCase()},g=c.data={},y=c.NATIVE="N",C=c.POLYFILL="P";o.exports=c},function(o,r,i){var s=i(103),d=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(c){return d.call(c)}),o.exports=s.inspectSource},function(o,r,i){var s=i(8),d=i(166),c="__core-js_shared__",f=s[c]||d(c,{});o.exports=f},function(o,r,i){var s=i(105),d=i(19),c=i(16),f=i(10),g=i(43),y=f("iterator"),C=!1,w=function(){return this},A,E,_;[].keys&&(_=[].keys(),"next"in _?(E=s(s(_)),E!==Object.prototype&&(A=E)):C=!0),A==null&&(A={}),!g&&!c(A,y)&&d(A,y,w),o.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:C}},function(o,r,i){var s=i(16),d=i(31),c=i(63),f=i(168),g=c("IE_PROTO"),y=Object.prototype;o.exports=f?Object.getPrototypeOf:function(C){return C=d(C),s(C,g)?C[g]:typeof C.constructor=="function"&&C instanceof C.constructor?C.constructor.prototype:C instanceof Object?y:null}},function(o,r,i){var s=i(76);o.exports=s&&!Symbol.sham&&zt(Symbol.iterator)=="symbol"},function(o,r,i){var s=i(16),d=i(30),c=i(78).indexOf,f=i(51);o.exports=function(g,y){var C=d(g),w=0,A=[],E;for(E in C)!s(f,E)&&s(C,E)&&A.push(E);for(;y.length>w;)s(C,E=y[w++])&&(~c(A,E)||A.push(E));return A}},function(o,r,i){var s=i(36);o.exports=s("document","documentElement")},function(o,r,i){var s=i(8);o.exports=s.Promise},function(o,r,i){var s=i(53);o.exports=function(d,c,f){for(var g in c)f&&f.unsafe&&d[g]?d[g]=c[g]:s(d,g,c[g],f);return d}},function(o,r,i){var s=i(36),d=i(18),c=i(10),f=i(14),g=c("species");o.exports=function(y){var C=s(y),w=d.f;f&&C&&!C[g]&&w(C,g,{configurable:!0,get:function(){return this}})}},function(o,r,i){var s=i(10),d=i(44),c=s("iterator"),f=Array.prototype;o.exports=function(g){return g!==void 0&&(d.Array===g||f[c]===g)}},function(o,r,i){var s=i(65),d=i(44),c=i(10),f=c("iterator");o.exports=function(g){if(g!=null)return g[f]||g["@@iterator"]||d[s(g)]}},function(o,r,i){var s=i(25);o.exports=function(d,c,f,g){try{return g?c(s(f)[0],f[1]):c(f)}catch(C){var y=d.return;throw y!==void 0&&s(y.call(d)),C}}},function(o,r,i){var s=i(10),d=s("iterator"),c=!1;try{var f=0,g={next:function(){return{done:!!f++}},return:function(){c=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}o.exports=function(y,C){if(!C&&!c)return!1;var w=!1;try{var A={};A[d]=function(){return{next:function(){return{done:w=!0}}}},y(A)}catch{}return w}},function(o,r,i){var s=i(25),d=i(41),c=i(10),f=c("species");o.exports=function(g,y){var C=s(g).constructor,w;return C===void 0||(w=s(C)[f])==null?y:d(w)}},function(o,r,i){var s=i(8),d=i(11),c=i(34),f=i(40),g=i(108),y=i(73),C=i(118),w=s.location,A=s.setImmediate,E=s.clearImmediate,_=s.process,v=s.MessageChannel,m=s.Dispatch,b=0,S={},x="onreadystatechange",O,D,V,I=function(U){if(S.hasOwnProperty(U)){var W=S[U];delete S[U],W()}},z=function(U){return function(){I(U)}},T=function(U){I(U.data)},B=function(U){s.postMessage(U+"",w.protocol+"//"+w.host)};(!A||!E)&&(A=function(U){for(var W=[],R=1;arguments.length>R;)W.push(arguments[R++]);return S[++b]=function(){(typeof U=="function"?U:Function(U)).apply(void 0,W)},O(b),b},E=function(U){delete S[U]},c(_)=="process"?O=function(U){_.nextTick(z(U))}:m&&m.now?O=function(U){m.now(z(U))}:v&&!C?(D=new v,V=D.port2,D.port1.onmessage=T,O=f(V.postMessage,V,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&!d(B)&&w.protocol!=="file:"?(O=B,s.addEventListener("message",T,!1)):x in y("script")?O=function(U){g.appendChild(y("script"))[x]=function(){g.removeChild(this),I(U)}}:O=function(U){setTimeout(z(U),0)}),o.exports={set:A,clear:E}},function(o,r,i){var s=i(84);o.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)},function(o,r,i){var s=i(25),d=i(13),c=i(85);o.exports=function(f,g){if(s(f),d(g)&&g.constructor===f)return g;var y=c.f(f),C=y.resolve;return C(g),y.promise}},function(o,r){o.exports=function(i){try{return{error:!1,value:i()}}catch(s){return{error:!0,value:s}}}},function(o,r,i){o.exports=i(197)},function(o,r,i){var s=i(5),d=i(8),c=i(123),f=i(11),g=i(19),y=i(66),C=i(83),w=i(13),A=i(37),E=i(18).f,_=i(32).forEach,v=i(14),m=i(42),b=m.set,S=m.getterFor;o.exports=function(x,O,D){var V=x.indexOf("Map")!==-1,I=x.indexOf("Weak")!==-1,z=V?"set":"add",T=d[x],B=T&&T.prototype,L={},U;if(!v||typeof T!="function"||!(I||B.forEach&&!f(function(){new T().entries().next()})))U=D.getConstructor(O,x,V,z),c.REQUIRED=!0;else{U=O(function(R,k){b(C(R,U,x),{type:x,collection:new T}),k!=null&&y(k,R[z],R,V)});var W=S(x);_(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(R){var k=R=="add"||R=="set";R in B&&!(I&&R=="clear")&&g(U.prototype,R,function(P,j){var Z=W(this).collection;if(!k&&I&&!w(P))return R=="get"?void 0:!1;var J=Z[R](P===0?0:P,j);return k?this:J})}),I||E(U.prototype,"size",{configurable:!0,get:function(){return W(this).collection.size}})}return A(U,x,!1,!0),L[x]=U,s({global:!0,forced:!0},L),I||D.setStrong(U,x,V),U}},function(o,r,i){var s=i(51),d=i(13),c=i(16),f=i(18).f,g=i(64),y=i(200),C=g("meta"),w=0,A=Object.isExtensible||function(){return!0},E=function(x){f(x,C,{value:{objectID:"O"+ ++w,weakData:{}}})},_=function(x,O){if(!d(x))return zt(x)=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!c(x,C)){if(!A(x))return"F";if(!O)return"E";E(x)}return x[C].objectID},v=function(x,O){if(!c(x,C)){if(!A(x))return!0;if(!O)return!1;E(x)}return x[C].weakData},m=function(x){return y&&b.REQUIRED&&A(x)&&!c(x,C)&&E(x),x},b=o.exports={REQUIRED:!1,fastKey:_,getWeakData:v,onFreeze:m};s[C]=!0},function(o,r,i){var s=i(18).f,d=i(77),c=i(110),f=i(40),g=i(83),y=i(66),C=i(75),w=i(111),A=i(14),E=i(123).fastKey,_=i(42),v=_.set,m=_.getterFor;o.exports={getConstructor:function(S,x,O,D){var V=S(function(B,L){g(B,V,x),v(B,{type:x,index:d(null),first:void 0,last:void 0,size:0}),A||(B.size=0),L!=null&&y(L,B[D],B,O)}),I=m(x),z=function(L,U,W){var R=I(L),k=T(L,U),P,j;return k?k.value=W:(R.last=k={index:j=E(U,!0),key:U,value:W,previous:P=R.last,next:void 0,removed:!1},R.first||(R.first=k),P&&(P.next=k),A?R.size++:L.size++,j!=="F"&&(R.index[j]=k)),L},T=function(L,U){var W=I(L),R=E(U),k;if(R!=="F")return W.index[R];for(k=W.first;k;k=k.next)if(k.key==U)return k};return c(V.prototype,{clear:function(){for(var L=this,U=I(L),W=U.index,R=U.first;R;)R.removed=!0,R.previous&&(R.previous=R.previous.next=void 0),delete W[R.index],R=R.next;U.first=U.last=void 0,A?U.size=0:L.size=0},delete:function(L){var U=this,W=I(U),R=T(U,L);if(R){var k=R.next,P=R.previous;delete W.index[R.index],R.removed=!0,P&&(P.next=k),k&&(k.previous=P),W.first==R&&(W.first=k),W.last==R&&(W.last=P),A?W.size--:U.size--}return!!R},forEach:function(L){for(var U=I(this),W=f(L,arguments.length>1?arguments[1]:void 0,3),R;R=R?R.next:U.first;)for(W(R.value,R.key,this);R&&R.removed;)R=R.previous},has:function(L){return!!T(this,L)}}),c(V.prototype,O?{get:function(L){var U=T(this,L);return U&&U.value},set:function(L,U){return z(this,L===0?0:L,U)}}:{add:function(L){return z(this,L=L===0?0:L,L)}}),A&&s(V.prototype,"size",{get:function(){return I(this).size}}),V},setStrong:function(S,x,O){var D=x+" Iterator",V=m(x),I=m(D);C(S,x,function(z,T){v(this,{type:D,target:z,state:V(z),kind:T,last:void 0})},function(){for(var z=I(this),T=z.kind,B=z.last;B&&B.removed;)B=B.previous;return!z.target||!(z.last=B=B?B.next:z.state.first)?(z.target=void 0,{value:void 0,done:!0}):T=="keys"?{value:B.key,done:!1}:T=="values"?{value:B.value,done:!1}:{value:[B.key,B.value],done:!1}},O?"entries":"values",!O,!0),w(x)}}},function(o,r,i){var s=i(12);s("iterator")},function(o,r,i){var s=i(107),d=i(80),c=d.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(g){return s(g,c)}},function(o,r){r.f=Object.getOwnPropertySymbols},function(o,r,i){o.exports=i(268)},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={zIndex:1e4}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0}),r.getPasteImgs=r.getPasteHtml=r.getPasteText=void 0;var f=i(2),g=i(6),y=f.__importDefault(i(292));function C(E){var _=E.clipboardData,v="";return _==null?v=window.clipboardData&&window.clipboardData.getData("text"):v=_.getData("text/plain"),g.replaceHtmlSymbol(v)}r.getPasteText=C;function w(E,_,v){_===void 0&&(_=!0),v===void 0&&(v=!1);var m=E.clipboardData,b="";if(m&&(b=m.getData("text/html")),!b){var S=C(E);if(!S)return"";b="<p>"+S+"</p>"}return b=b.replace(/<(\d)/gm,function(x,O){return"&lt;"+O}),b=b.replace(/<(\/?meta.*?)>/gim,""),b=y.default(b,_,v),b}r.getPasteHtml=w;function A(E){var _,v=[],m=C(E);if(m)return v;var b=(_=E.clipboardData)===null||_===void 0?void 0:_.items;return b&&(0,c.default)(g).call(g,b,function(S,x){var O=x.type;/image/i.test(O)&&v.push(x.getAsFile())}),v}r.getPasteImgs=A},function(o,r,i){o.exports=i(294)},function(o,r,i){o.exports=i(310)},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(46));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3)),C=i(7),w=function(){function A(E,_){var v=this;this.hideTimeoutId=0,this.menu=E,this.conf=_;var m=y.default('<div class="w-e-droplist"></div>'),b=y.default("<p>"+_.title+"</p>");b.addClass("w-e-dp-title"),m.append(b);var S=_.list||[],x=_.type||"list",O=_.clickHandler||C.EMPTY_FN,D=y.default('<ul class="'+(x==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,c.default)(S).call(S,function(V){var I=V.$elem,z=V.value,T=y.default('<li class="w-e-item"></li>');I&&(T.append(I),D.append(T),T.on("click",function(B){O(z),B.stopPropagation(),v.hideTimeoutId=(0,f.default)(function(){v.hide()})}))}),m.append(D),m.on("mouseleave",function(){v.hideTimeoutId=(0,f.default)(function(){v.hide()})}),this.$container=m,this.rendered=!1,this._show=!1}return A.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var E=this.menu,_=E.$elem,v=this.$container;if(!this._show){if(this.rendered)v.show();else{var m=_.getBoundingClientRect().height||0,b=this.conf.width||100;v.css("margin-top",m+"px").css("width",b+"px"),_.append(v),this.rendered=!0}this._show=!0}},A.prototype.hide=function(){var E=this.$container;!this._show||(E.hide(),this._show=!1)},(0,d.default)(A.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),A}();r.default=w},function(o,r,i){var s=i(0),d=s(i(92)),c=s(i(1)),f=s(i(4));(0,c.default)(r,"__esModule",{value:!0});var g=i(6);function y(C,w){var A=new XMLHttpRequest;if(A.open("POST",C),A.timeout=w.timeout||10*1e3,A.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),w.onTimeout&&w.onTimeout(A)},A.upload&&(A.upload.onprogress=function(_){var v=_.loaded/_.total;w.onProgress&&w.onProgress(v,_)}),w.headers&&(0,f.default)(g).call(g,w.headers,function(_,v){A.setRequestHeader(_,v)}),A.withCredentials=!!w.withCredentials,w.beforeSend){var E=w.beforeSend(A);if(E&&(0,d.default)(E)==="object"&&E.prevent)return E.msg}return A.onreadystatechange=function(){if(A.readyState===4){var _=A.status;if(!(_<200)&&!(_>=300&&_<400)){if(_>=400){console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+_),w.onError&&w.onError(A);return}var v=A.responseText,m;if((0,d.default)(v)!=="object")try{m=JSON.parse(v)}catch{console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",v),w.onFail&&w.onFail(A,v);return}else m=v;w.onSuccess(A,m)}}},A.send(w.formData||null),A}r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(342)),f=s(i(46));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3)),C=function(){function w(A){this.editor=A,this.$textContainer=A.$textContainerElem,this.$bar=y.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return w.prototype.show=function(A){var E=this;if(!this.isShow){this.isShow=!0;var _=this.$bar,v=this.$textContainer;v.append(_),(0,c.default)()-this.time>100&&A<=1&&(_.css("width",A*100+"%"),this.time=(0,c.default)());var m=this.timeoutId;m&&clearTimeout(m),this.timeoutId=(0,f.default)(function(){E.hide()},500)}},w.prototype.hide=function(){var A=this.$bar;A.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},w}();r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.ListType=void 0;var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(24)),y=i(47),C=c.__importStar(i(371)),w;(function(E){E.OrderedList="OL",E.UnorderedList="UL"})(w=r.ListType||(r.ListType={}));var A=function(E){c.__extends(_,E);function _(v){var m=this,b=f.default(`<div class="w-e-menu" data-title="\u5E8F\u5217">
<i class="w-e-icon-list2"></i>
</div>`),S={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:f.default(`
<p>
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
<p>`),value:w.UnorderedList},{$elem:f.default(`<p>
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
<p>`),value:w.OrderedList}],clickHandler:function(O){m.command(O)}};return m=E.call(this,b,v,S)||this,m}return _.prototype.command=function(v){var m=this.editor,b=m.selection.getSelectionContainerElem();b!==void 0&&(this.handleSelectionRangeNodes(v),this.tryChangeActive())},_.prototype.validator=function(v,m,b){return!(!v.length||!m.length||b.equal(v)||b.equal(m))},_.prototype.handleSelectionRangeNodes=function(v){var m=this.editor,b=m.selection,S=v.toLowerCase(),x=b.getSelectionContainerElem(),O=b.getSelectionStartElem().getNodeTop(m),D=b.getSelectionEndElem().getNodeTop(m);if(!!this.validator(O,D,m.$textElem)){var V=b.getRange(),I=V==null?void 0:V.collapsed;m.$textElem.equal(x)||(x=x.getNodeTop(m));var z={editor:m,listType:v,listTarget:S,$selectionElem:x,$startElem:O,$endElem:D},T;this.isOrderElem(x)?T=C.ClassType.Wrap:this.isOrderElem(O)&&this.isOrderElem(D)?T=C.ClassType.Join:this.isOrderElem(O)?T=C.ClassType.StartJoin:this.isOrderElem(D)?T=C.ClassType.EndJoin:T=C.ClassType.Other;var B=new C.default(C.createListHandle(T,z,V));y.updateRange(m,B.getSelectionRangeElem(),!!I)}},_.prototype.isOrderElem=function(v){var m=v.getNodeName();return m===w.OrderedList||m===w.UnorderedList},_.prototype.tryChangeActive=function(){},_}(g.default);r.default=A},function(o,r,i){o.exports=i(395)},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(f){var g=f.selection.getSelectionContainerElem();return g!=null&&g.length?!!(g.getNodeName()=="CODE"||g.getNodeName()=="PRE"||g.parent().getNodeName()=="CODE"||g.parent().getNodeName()=="PRE"||/hljs/.test(g.parent().attr("class"))):!1}r.default=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(29));(0,d.default)(r,"__esModule",{value:!0}),r.todo=void 0;var f=i(2),g=f.__importDefault(i(3)),y=function(){function w(A){var E;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=g.default(this.template),this.$child=(E=A==null?void 0:A.childNodes())===null||E===void 0?void 0:E.clone(!0)}return w.prototype.init=function(){var A=this.$child,E=this.getInputContainer();A&&A.insertAfter(E)},w.prototype.getInput=function(){var A=this.$todo,E=(0,c.default)(A).call(A,"input");return E},w.prototype.getInputContainer=function(){var A=this.getInput().parent();return A},w.prototype.getTodo=function(){return this.$todo},w}();r.todo=y;function C(w){var A=new y(w);return A.init(),A}r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2);i(146),i(148),i(152),i(154),i(156),i(158),i(160);var f=c.__importDefault(i(87));c.__exportStar(i(442),r);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}r.default=f.default},function(o,r,i){var s=i(143);o.exports=s},function(o,r,i){i(144);var s=i(9),d=s.Object,c=o.exports=function(g,y,C){return d.defineProperty(g,y,C)};d.defineProperty.sham&&(c.sham=!0)},function(o,r,i){var s=i(5),d=i(14),c=i(18);s({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(o,r){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{(typeof window>"u"?"undefined":zt(window))==="object"&&(i=window)}o.exports=i},function(o,r,i){var s=i(20),d=i(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-toolbar,
.w-e-text-container,
.w-e-menu-panel {
padding: 0;
margin: 0;
box-sizing: border-box;
background-color: #fff;
/*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
/*\u5206\u5272\u7EBF\u6837\u5F0F*/
}
.w-e-toolbar h1,
.w-e-text-container h1,
.w-e-menu-panel h1 {
font-size: 32px !important;
}
.w-e-toolbar h2,
.w-e-text-container h2,
.w-e-menu-panel h2 {
font-size: 24px !important;
}
.w-e-toolbar h3,
.w-e-text-container h3,
.w-e-menu-panel h3 {
font-size: 18.72px !important;
}
.w-e-toolbar h4,
.w-e-text-container h4,
.w-e-menu-panel h4 {
font-size: 16px !important;
}
.w-e-toolbar h5,
.w-e-text-container h5,
.w-e-menu-panel h5 {
font-size: 13.28px !important;
}
.w-e-toolbar p,
.w-e-text-container p,
.w-e-menu-panel p {
font-size: 16px !important;
}
.w-e-toolbar .eleImg,
.w-e-text-container .eleImg,
.w-e-menu-panel .eleImg {
cursor: pointer;
display: inline-block;
font-size: 18px;
padding: 0 3px;
}
.w-e-toolbar *,
.w-e-text-container *,
.w-e-menu-panel * {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.w-e-toolbar hr,
.w-e-text-container hr,
.w-e-menu-panel hr {
cursor: pointer;
display: block;
height: 0px;
border: 0;
border-top: 3px solid #ccc;
margin: 20px 0;
}
.w-e-clear-fix:after {
content: "";
display: table;
clear: both;
}
.w-e-drop-list-item {
position: relative;
top: 1px;
padding-right: 7px;
color: #333 !important;
}
.w-e-drop-list-tl {
padding-left: 10px;
text-align: left;
}
`,""]),o.exports=r},function(o,r,i){var s=i(20),d=i(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21),d=i(150),c=i(151);r=s(!1);var f=d(c);r.push([o.i,`@font-face {
font-family: 'w-e-icon';
src: url(`+f+`) format('truetype');
font-weight: normal;
font-style: normal;
}
[class^="w-e-icon-"],
[class*=" w-e-icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'w-e-icon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.w-e-icon-close:before {
content: "\\f00d";
}
.w-e-icon-upload2:before {
content: "\\e9c6";
}
.w-e-icon-trash-o:before {
content: "\\f014";
}
.w-e-icon-header:before {
content: "\\f1dc";
}
.w-e-icon-pencil2:before {
content: "\\e906";
}
.w-e-icon-paint-brush:before {
content: "\\f1fc";
}
.w-e-icon-image:before {
content: "\\e90d";
}
.w-e-icon-play:before {
content: "\\e912";
}
.w-e-icon-location:before {
content: "\\e947";
}
.w-e-icon-undo:before {
content: "\\e965";
}
.w-e-icon-redo:before {
content: "\\e966";
}
.w-e-icon-quotes-left:before {
content: "\\e977";
}
.w-e-icon-list-numbered:before {
content: "\\e9b9";
}
.w-e-icon-list2:before {
content: "\\e9bb";
}
.w-e-icon-link:before {
content: "\\e9cb";
}
.w-e-icon-happy:before {
content: "\\e9df";
}
.w-e-icon-bold:before {
content: "\\ea62";
}
.w-e-icon-underline:before {
content: "\\ea63";
}
.w-e-icon-italic:before {
content: "\\ea64";
}
.w-e-icon-strikethrough:before {
content: "\\ea65";
}
.w-e-icon-table2:before {
content: "\\ea71";
}
.w-e-icon-paragraph-left:before {
content: "\\ea77";
}
.w-e-icon-paragraph-center:before {
content: "\\ea78";
}
.w-e-icon-paragraph-right:before {
content: "\\ea79";
}
.w-e-icon-paragraph-justify:before {
content: "\\ea7a";
}
.w-e-icon-terminal:before {
content: "\\f120";
}
.w-e-icon-page-break:before {
content: "\\ea68";
}
.w-e-icon-cancel-circle:before {
content: "\\ea0d";
}
.w-e-icon-font:before {
content: "\\ea5c";
}
.w-e-icon-text-heigh:before {
content: "\\ea5f";
}
.w-e-icon-paint-format:before {
content: "\\e90c";
}
.w-e-icon-indent-increase:before {
content: "\\ea7b";
}
.w-e-icon-indent-decrease:before {
content: "\\ea7c";
}
.w-e-icon-row-height:before {
content: "\\e9be";
}
.w-e-icon-fullscreen_exit:before {
content: "\\e900";
}
.w-e-icon-fullscreen:before {
content: "\\e901";
}
.w-e-icon-split-line:before {
content: "\\ea0b";
}
.w-e-icon-checkbox-checked:before {
content: "\\ea52";
}
`,""]),o.exports=r},function(o,r,i){o.exports=function(s,d){return d||(d={}),s=s&&s.__esModule?s.default:s,typeof s!="string"?s:(/^['"].*['"]$/.test(s)&&(s=s.slice(1,-1)),d.hash&&(s+=d.hash),/["'() \t\n]/.test(s)||d.needQuotes?'"'.concat(s.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):s)}},function(o,r,i){i.r(r),r.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(o,r,i){var s=i(20),d=i(153);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-toolbar {
display: flex;
padding: 0 6px;
flex-wrap: wrap;
position: relative;
/* \u5355\u4E2A\u83DC\u5355 */
}
.w-e-toolbar .w-e-menu {
position: relative;
display: flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
}
.w-e-toolbar .w-e-menu i {
color: #999;
}
.w-e-toolbar .w-e-menu:hover {
background-color: #F6F6F6;
}
.w-e-toolbar .w-e-menu:hover i {
color: #333;
}
.w-e-toolbar .w-e-active i {
color: #1e88e5;
}
.w-e-toolbar .w-e-active:hover i {
color: #1e88e5;
}
.w-e-menu-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-menu-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-item-wrapper {
font-size: 14px;
margin: 0 5px;
}
`,""]),o.exports=r},function(o,r,i){var s=i(20),d=i(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-text-container {
position: relative;
height: 100%;
}
.w-e-text-container .w-e-progress {
position: absolute;
background-color: #1e88e5;
top: 0;
left: 0;
height: 1px;
}
.w-e-text-container .placeholder {
color: #D4D4D4;
position: absolute;
font-size: 11pt;
line-height: 22px;
left: 10px;
top: 10px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: -1;
}
.w-e-text {
padding: 0 10px;
overflow-y: auto;
}
.w-e-text p,
.w-e-text h1,
.w-e-text h2,
.w-e-text h3,
.w-e-text h4,
.w-e-text h5,
.w-e-text table,
.w-e-text pre {
margin: 10px 0;
line-height: 1.5;
}
.w-e-text ul,
.w-e-text ol {
margin: 10px 0 10px 20px;
}
.w-e-text blockquote {
display: block;
border-left: 8px solid #d0e5f2;
padding: 5px 10px;
margin: 10px 0;
line-height: 1.4;
font-size: 100%;
background-color: #f1f1f1;
}
.w-e-text code {
display: inline-block;
background-color: #f1f1f1;
border-radius: 3px;
padding: 3px 5px;
margin: 0 3px;
}
.w-e-text pre code {
display: block;
}
.w-e-text table {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
}
.w-e-text table td,
.w-e-text table th {
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 3px 5px;
min-height: 30px;
height: 30px;
}
.w-e-text table th {
border-bottom: 2px solid #ccc;
text-align: center;
background-color: #f1f1f1;
}
.w-e-text:focus {
outline: none;
}
.w-e-text img {
cursor: pointer;
}
.w-e-text img:hover {
box-shadow: 0 0 5px #333;
}
.w-e-text .w-e-todo {
margin: 0 0 0 20px;
}
.w-e-text .w-e-todo li {
list-style: none;
font-size: 1em;
}
.w-e-text .w-e-todo li span:nth-child(1) {
position: relative;
left: -18px;
}
.w-e-text .w-e-todo li span:nth-child(1) input {
position: absolute;
margin-right: 3px;
}
.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
top: 50%;
margin-top: -6px;
}
.w-e-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-item-wrapper {
cursor: pointer;
font-size: 14px;
margin: 0 5px;
}
.w-e-tooltip-item-wrapper:hover {
color: #ccc;
text-decoration: underline;
}
`,""]),o.exports=r},function(o,r,i){var s=i(20),d=i(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-menu .w-e-panel-container {
position: absolute;
top: 0;
left: 50%;
border: 1px solid #ccc;
border-top: 0;
box-shadow: 1px 1px 2px #ccc;
color: #333;
background-color: #fff;
text-align: left;
/* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
/* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-close {
position: absolute;
right: 0;
top: 0;
padding: 5px;
margin: 2px 5px 0 0;
cursor: pointer;
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
color: #333;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
list-style: none;
display: flex;
font-size: 14px;
margin: 2px 10px 0 10px;
border-bottom: 1px solid #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
padding: 3px 5px;
color: #999;
cursor: pointer;
margin: 0 3px;
position: relative;
top: 1px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
color: #333;
border-bottom: 1px solid #333;
cursor: default;
font-weight: 700;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
padding: 10px 15px 10px 15px;
font-size: 16px;
/* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
/* \u6309\u94AE\u7684\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
outline: none;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
width: 100%;
border: 1px solid #ccc;
padding: 5px;
margin-top: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
border-color: #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
border: none;
border-bottom: 1px solid #ccc;
font-size: 14px;
height: 20px;
color: #333;
text-align: left;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
width: 30px;
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
display: block;
width: 100%;
margin: 10px 0;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
border-bottom: 2px solid #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
font-size: 14px;
color: #1e88e5;
border: none;
padding: 5px 10px;
background-color: #fff;
cursor: pointer;
border-radius: 3px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
float: left;
margin-right: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
float: right;
margin-left: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
color: #c24f4a;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
background-color: #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
content: "";
display: table;
clear: both;
}
.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
cursor: pointer;
font-size: 18px;
padding: 0 3px;
display: inline-block;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container,
.w-e-menu .w-e-panel-container .w-e-up-video-container {
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
display: inline-block;
color: #999;
cursor: pointer;
font-size: 60px;
line-height: 1;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
color: #333;
}
`,""]),o.exports=r},function(o,r,i){var s=i(20),d=i(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-toolbar .w-e-droplist {
position: absolute;
left: 0;
top: 0;
background-color: #fff;
border: 1px solid #f1f1f1;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
.w-e-toolbar .w-e-droplist .w-e-dp-title {
text-align: center;
color: #999;
line-height: 2;
border-bottom: 1px solid #f1f1f1;
font-size: 13px;
}
.w-e-toolbar .w-e-droplist ul.w-e-list {
list-style: none;
line-height: 1;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
color: #333;
padding: 5px 0;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
background-color: #f1f1f1;
}
.w-e-toolbar .w-e-droplist ul.w-e-block {
list-style: none;
text-align: left;
padding: 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
display: inline-block;
padding: 3px 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
background-color: #f1f1f1;
}
`,""]),o.exports=r},function(o,r,i){var s=i(0),d=s(i(161));Element.prototype.matches||(Element.prototype.matches=function(c){var f=this.ownerDocument.querySelectorAll(c),g=f.length;for(g;g>=0&&f.item(g)!==this;g--);return g>-1}),d.default||(window.Promise=d.default)},function(o,r,i){o.exports=i(162)},function(o,r,i){var s=i(163);o.exports=s},function(o,r,i){i(61),i(50),i(54),i(175),i(178),i(179);var s=i(9);o.exports=s.Promise},function(o,r,i){var s=i(62),d=i(49),c=function(g){return function(y,C){var w=String(d(y)),A=s(C),E=w.length,_,v;return A<0||A>=E?g?"":void 0:(_=w.charCodeAt(A),_<55296||_>56319||A+1===E||(v=w.charCodeAt(A+1))<56320||v>57343?g?w.charAt(A):_:g?w.slice(A,A+2):(_-55296<<10)+(v-56320)+65536)}};o.exports={codeAt:c(!1),charAt:c(!0)}},function(o,r,i){var s=i(8),d=i(102),c=s.WeakMap;o.exports=typeof c=="function"&&/native code/.test(d(c))},function(o,r,i){var s=i(8),d=i(19);o.exports=function(c,f){try{d(s,c,f)}catch{s[c]=f}return f}},function(o,r,i){var s=i(104).IteratorPrototype,d=i(77),c=i(48),f=i(37),g=i(44),y=function(){return this};o.exports=function(C,w,A){var E=w+" Iterator";return C.prototype=d(s,{next:c(1,A)}),f(C,E,!1,!0),g[E]=y,C}},function(o,r,i){var s=i(11);o.exports=!s(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(o,r,i){var s=i(14),d=i(18),c=i(25),f=i(52);o.exports=s?Object.defineProperties:function(y,C){c(y);for(var w=f(C),A=w.length,E=0,_;A>E;)d.f(y,_=w[E++],C[_]);return y}},function(o,r,i){var s=i(81),d=i(65);o.exports=s?{}.toString:function(){return"[object "+d(this)+"]"}},function(o,r,i){var s=i(25),d=i(172);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,f={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(f,[]),c=f instanceof Array}catch{}return function(C,w){return s(C),d(w),c?g.call(C,w):C.__proto__=w,C}}():void 0)},function(o,r,i){var s=i(13);o.exports=function(d){if(!s(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(o,r,i){var s=i(30),d=i(82),c=i(44),f=i(42),g=i(75),y="Array Iterator",C=f.set,w=f.getterFor(y);o.exports=g(Array,"Array",function(A,E){C(this,{type:y,target:s(A),index:0,kind:E})},function(){var A=w(this),E=A.target,_=A.kind,v=A.index++;return!E||v>=E.length?(A.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:v,done:!1}:_=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(o,r){o.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}},function(o,r,i){var s=i(5),d=i(43),c=i(8),f=i(36),g=i(109),y=i(53),C=i(110),w=i(37),A=i(111),E=i(13),_=i(41),v=i(83),m=i(34),b=i(102),S=i(66),x=i(115),O=i(116),D=i(117).set,V=i(176),I=i(119),z=i(177),T=i(85),B=i(120),L=i(42),U=i(101),W=i(10),R=i(86),k=W("species"),P="Promise",j=L.get,Z=L.set,J=L.getterFor(P),F=g,oe=c.TypeError,pe=c.document,se=c.process,ye=f("fetch"),fe=T.f,ue=fe,he=m(se)=="process",$=!!(pe&&pe.createEvent&&c.dispatchEvent),Y="unhandledrejection",Q="rejectionhandled",K=0,te=1,q=2,ie=1,de=2,Ee,Se,ke,qe,Ve=U(P,function(){var Ze=b(F)!==String(F);if(!Ze&&(R===66||!he&&typeof PromiseRejectionEvent!="function")||d&&!F.prototype.finally)return!0;if(R>=51&&/native code/.test(F))return!1;var Te=F.resolve(1),Re=function(be){be(function(){},function(){})},Xe=Te.constructor={};return Xe[k]=Re,!(Te.then(function(){})instanceof Re)}),ge=Ve||!x(function(Ze){F.all(Ze).catch(function(){})}),Ae=function(Te){var Re;return E(Te)&&typeof(Re=Te.then)=="function"?Re:!1},le=function(Te,Re,Xe){if(!Re.notified){Re.notified=!0;var De=Re.reactions;V(function(){for(var be=Re.value,Ke=Re.state==te,Ue=0;De.length>Ue;){var We=De[Ue++],at=Ke?We.ok:We.fail,on=We.resolve,Nt=We.reject,wt=We.domain,mt,Bn,Ni;try{at?(Ke||(Re.rejection===de&&ct(Te,Re),Re.rejection=ie),at===!0?mt=be:(wt&&wt.enter(),mt=at(be),wt&&(wt.exit(),Ni=!0)),mt===We.promise?Nt(oe("Promise-chain cycle")):(Bn=Ae(mt))?Bn.call(mt,on,Nt):on(mt)):Nt(be)}catch(Fn){wt&&!Ni&&wt.exit(),Nt(Fn)}}Re.reactions=[],Re.notified=!1,Xe&&!Re.rejection&&Ie(Te,Re)})}},we=function(Te,Re,Xe){var De,be;$?(De=pe.createEvent("Event"),De.promise=Re,De.reason=Xe,De.initEvent(Te,!1,!0),c.dispatchEvent(De)):De={promise:Re,reason:Xe},(be=c["on"+Te])?be(De):Te===Y&&z("Unhandled promise rejection",Xe)},Ie=function(Te,Re){D.call(c,function(){var Xe=Re.value,De=ze(Re),be;if(De&&(be=B(function(){he?se.emit("unhandledRejection",Xe,Te):we(Y,Te,Xe)}),Re.rejection=he||ze(Re)?de:ie,be.error))throw be.value})},ze=function(Te){return Te.rejection!==ie&&!Te.parent},ct=function(Te,Re){D.call(c,function(){he?se.emit("rejectionHandled",Te):we(Q,Te,Re.value)})},rt=function(Te,Re,Xe,De){return function(be){Te(Re,Xe,be,De)}},Fe=function(Te,Re,Xe,De){Re.done||(Re.done=!0,De&&(Re=De),Re.value=Xe,Re.state=q,le(Te,Re,!0))},Ct=function Ze(Te,Re,Xe,De){if(!Re.done){Re.done=!0,De&&(Re=De);try{if(Te===Xe)throw oe("Promise can't be resolved itself");var be=Ae(Xe);be?V(function(){var Ke={done:!1};try{be.call(Xe,rt(Ze,Te,Ke,Re),rt(Fe,Te,Ke,Re))}catch(Ue){Fe(Te,Ke,Ue,Re)}}):(Re.value=Xe,Re.state=te,le(Te,Re,!1))}catch(Ke){Fe(Te,{done:!1},Ke,Re)}}};Ve&&(F=function(Te){v(this,F,P),_(Te),Ee.call(this);var Re=j(this);try{Te(rt(Ct,this,Re),rt(Fe,this,Re))}catch(Xe){Fe(this,Re,Xe)}},Ee=function(Te){Z(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})},Ee.prototype=C(F.prototype,{then:function(Te,Re){var Xe=J(this),De=fe(O(this,F));return De.ok=typeof Te=="function"?Te:!0,De.fail=typeof Re=="function"&&Re,De.domain=he?se.domain:void 0,Xe.parent=!0,Xe.reactions.push(De),Xe.state!=K&&le(this,Xe,!1),De.promise},catch:function(Te){return this.then(void 0,Te)}}),Se=function(){var Te=new Ee,Re=j(Te);this.promise=Te,this.resolve=rt(Ct,Te,Re),this.reject=rt(Fe,Te,Re)},T.f=fe=function(Te){return Te===F||Te===ke?new Se(Te):ue(Te)},!d&&typeof g=="function"&&(qe=g.prototype.then,y(g.prototype,"then",function(Te,Re){var Xe=this;return new F(function(De,be){qe.call(Xe,De,be)}).then(Te,Re)},{unsafe:!0}),typeof ye=="function"&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(Te){return I(F,ye.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Ve},{Promise:F}),w(F,P,!1,!0),A(P),ke=f(P),s({target:P,stat:!0,forced:Ve},{reject:function(Te){var Re=fe(this);return Re.reject.call(void 0,Te),Re.promise}}),s({target:P,stat:!0,forced:d||Ve},{resolve:function(Te){return I(d&&this===ke?F:this,Te)}}),s({target:P,stat:!0,forced:ge},{all:function(Te){var Re=this,Xe=fe(Re),De=Xe.resolve,be=Xe.reject,Ke=B(function(){var Ue=_(Re.resolve),We=[],at=0,on=1;S(Te,function(Nt){var wt=at++,mt=!1;We.push(void 0),on++,Ue.call(Re,Nt).then(function(Bn){mt||(mt=!0,We[wt]=Bn,--on||De(We))},be)}),--on||De(We)});return Ke.error&&be(Ke.value),Xe.promise},race:function(Te){var Re=this,Xe=fe(Re),De=Xe.reject,be=B(function(){var Ke=_(Re.resolve);S(Te,function(Ue){Ke.call(Re,Ue).then(Xe.resolve,De)})});return be.error&&De(be.value),Xe.promise}})},function(o,r,i){var s=i(8),d=i(71).f,c=i(34),f=i(117).set,g=i(118),y=s.MutationObserver||s.WebKitMutationObserver,C=s.process,w=s.Promise,A=c(C)=="process",E=d(s,"queueMicrotask"),_=E&&E.value,v,m,b,S,x,O,D,V;_||(v=function(){var z,T;for(A&&(z=C.domain)&&z.exit();m;){T=m.fn,m=m.next;try{T()}catch(B){throw m?S():b=void 0,B}}b=void 0,z&&z.enter()},A?S=function(){C.nextTick(v)}:y&&!g?(x=!0,O=document.createTextNode(""),new y(v).observe(O,{characterData:!0}),S=function(){O.data=x=!x}):w&&w.resolve?(D=w.resolve(void 0),V=D.then,S=function(){V.call(D,v)}):S=function(){f.call(s,v)}),o.exports=_||function(I){var z={fn:I,next:void 0};b&&(b.next=z),m||(m=z,S()),b=z}},function(o,r,i){var s=i(8);o.exports=function(d,c){var f=s.console;f&&f.error&&(arguments.length===1?f.error(d):f.error(d,c))}},function(o,r,i){var s=i(5),d=i(41),c=i(85),f=i(120),g=i(66);s({target:"Promise",stat:!0},{allSettled:function(C){var w=this,A=c.f(w),E=A.resolve,_=A.reject,v=f(function(){var m=d(w.resolve),b=[],S=0,x=1;g(C,function(O){var D=S++,V=!1;b.push(void 0),x++,m.call(w,O).then(function(I){V||(V=!0,b[D]={status:"fulfilled",value:I},--x||E(b))},function(I){V||(V=!0,b[D]={status:"rejected",reason:I},--x||E(b))})}),--x||E(b)});return v.error&&_(v.value),A.promise}})},function(o,r,i){var s=i(5),d=i(43),c=i(109),f=i(11),g=i(36),y=i(116),C=i(119),w=i(53),A=!!c&&f(function(){c.prototype.finally.call({then:function(){}},function(){})});s({target:"Promise",proto:!0,real:!0,forced:A},{finally:function(_){var v=y(this,g("Promise")),m=typeof _=="function";return this.then(m?function(b){return C(v,_()).then(function(){return b})}:_,m?function(b){return C(v,_()).then(function(){throw b})}:_)}}),!d&&typeof c=="function"&&!c.prototype.finally&&w(c.prototype,"finally",g("Promise").prototype.finally)},function(o,r,i){i(54);var s=i(181),d=i(65),c=Array.prototype,f={DOMTokenList:!0,NodeList:!0};o.exports=function(g){var y=g.forEach;return g===c||g instanceof Array&&y===c.forEach||f.hasOwnProperty(d(g))?s:y}},function(o,r,i){var s=i(182);o.exports=s},function(o,r,i){i(183);var s=i(15);o.exports=s("Array").forEach},function(o,r,i){var s=i(5),d=i(184);s({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},function(o,r,i){var s=i(32).forEach,d=i(67),c=i(22),f=d("forEach"),g=c("forEach");o.exports=!f||!g?function(C){return s(this,C,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(o,r,i){var s=i(186);o.exports=s},function(o,r,i){i(187);var s=i(9);o.exports=s.Array.isArray},function(o,r,i){var s=i(5),d=i(55);s({target:"Array",stat:!0},{isArray:d})},function(o,r,i){var s=i(189);o.exports=s},function(o,r,i){var s=i(190),d=Array.prototype;o.exports=function(c){var f=c.map;return c===d||c instanceof Array&&f===d.map?s:f}},function(o,r,i){i(191);var s=i(15);o.exports=s("Array").map},function(o,r,i){var s=i(5),d=i(32).map,c=i(56),f=i(22),g=c("map"),y=f("map");s({target:"Array",proto:!0,forced:!g||!y},{map:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var s=i(193);o.exports=s},function(o,r,i){var s=i(194),d=String.prototype;o.exports=function(c){var f=c.trim;return typeof c=="string"||c===d||c instanceof String&&f===d.trim?s:f}},function(o,r,i){i(195);var s=i(15);o.exports=s("String").trim},function(o,r,i){var s=i(5),d=i(90).trim,c=i(196);s({target:"String",proto:!0,forced:c("trim")},{trim:function(){return d(this)}})},function(o,r,i){var s=i(11),d=i(68),c="\u200B\x85\u180E";o.exports=function(f){return s(function(){return!!d[f]()||c[f]()!=c||d[f].name!==f})}},function(o,r,i){var s=i(198);o.exports=s},function(o,r,i){i(199),i(61),i(50),i(54);var s=i(9);o.exports=s.Map},function(o,r,i){var s=i(122),d=i(124);o.exports=s("Map",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(o,r,i){var s=i(11);o.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(o,r,i){var s=i(202);o.exports=s},function(o,r,i){var s=i(203),d=Array.prototype;o.exports=function(c){var f=c.indexOf;return c===d||c instanceof Array&&f===d.indexOf?s:f}},function(o,r,i){i(204);var s=i(15);o.exports=s("Array").indexOf},function(o,r,i){var s=i(5),d=i(78).indexOf,c=i(67),f=i(22),g=[].indexOf,y=!!g&&1/[1].indexOf(1,-0)<0,C=c("indexOf"),w=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:y||!C||!w},{indexOf:function(E){return y?g.apply(this,arguments)||0:d(this,E,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var s=i(206);o.exports=s},function(o,r,i){var s=i(207),d=Array.prototype;o.exports=function(c){var f=c.splice;return c===d||c instanceof Array&&f===d.splice?s:f}},function(o,r,i){i(208);var s=i(15);o.exports=s("Array").splice},function(o,r,i){var s=i(5),d=i(79),c=i(62),f=i(35),g=i(31),y=i(88),C=i(69),w=i(56),A=i(22),E=w("splice"),_=A("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,m=Math.min,b=9007199254740991,S="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!E||!_},{splice:function(O,D){var V=g(this),I=f(V.length),z=d(O,I),T=arguments.length,B,L,U,W,R,k;if(T===0?B=L=0:T===1?(B=0,L=I-z):(B=T-2,L=m(v(c(D),0),I-z)),I+B-L>b)throw TypeError(S);for(U=y(V,L),W=0;W<L;W++)R=z+W,R in V&&C(U,W,V[R]);if(U.length=L,B<L){for(W=z;W<I-L;W++)R=W+L,k=W+B,R in V?V[k]=V[R]:delete V[k];for(W=I;W>I-L+B;W--)delete V[W-1]}else if(B>L)for(W=I-L;W>z;W--)R=W+L-1,k=W+B-1,R in V?V[k]=V[R]:delete V[k];for(W=0;W<B;W++)V[W+z]=arguments[W+2];return V.length=I-L+B,U}})},function(o,r,i){var s=i(210);o.exports=s},function(o,r,i){var s=i(211),d=Array.prototype;o.exports=function(c){var f=c.filter;return c===d||c instanceof Array&&f===d.filter?s:f}},function(o,r,i){i(212);var s=i(15);o.exports=s("Array").filter},function(o,r,i){var s=i(5),d=i(32).filter,c=i(56),f=i(22),g=c("filter"),y=f("filter");s({target:"Array",proto:!0,forced:!g||!y},{filter:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var s=i(214);o.exports=s},function(o,r,i){var s=i(215),d=i(217),c=Array.prototype,f=String.prototype;o.exports=function(g){var y=g.includes;return g===c||g instanceof Array&&y===c.includes?s:typeof g=="string"||g===f||g instanceof String&&y===f.includes?d:y}},function(o,r,i){i(216);var s=i(15);o.exports=s("Array").includes},function(o,r,i){var s=i(5),d=i(78).includes,c=i(82),f=i(22),g=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!g},{includes:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(o,r,i){i(218);var s=i(15);o.exports=s("String").includes},function(o,r,i){var s=i(5),d=i(219),c=i(49),f=i(221);s({target:"String",proto:!0,forced:!f("includes")},{includes:function(y){return!!~String(c(this)).indexOf(d(y),arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var s=i(220);o.exports=function(d){if(s(d))throw TypeError("The method doesn't accept regular expressions");return d}},function(o,r,i){var s=i(13),d=i(34),c=i(10),f=c("match");o.exports=function(g){var y;return s(g)&&((y=g[f])!==void 0?!!y:d(g)=="RegExp")}},function(o,r,i){var s=i(10),d=s("match");o.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[d]=!1,"/./"[c](f)}catch{}}return!1}},function(o,r,i){var s=i(223);o.exports=s},function(o,r,i){var s=i(224),d=Function.prototype;o.exports=function(c){var f=c.bind;return c===d||c instanceof Function&&f===d.bind?s:f}},function(o,r,i){i(225);var s=i(15);o.exports=s("Function").bind},function(o,r,i){var s=i(5),d=i(226);s({target:"Function",proto:!0},{bind:d})},function(o,r,i){var s=i(41),d=i(13),c=[].slice,f={},g=function(C,w,A){if(!(w in f)){for(var E=[],_=0;_<w;_++)E[_]="a["+_+"]";f[w]=Function("C,a","return new C("+E.join(",")+")")}return f[w](C,A)};o.exports=Function.bind||function(C){var w=s(this),A=c.call(arguments,1),E=function(){var v=A.concat(c.call(arguments));return this instanceof E?g(w,v.length,v):w.apply(C,v)};return d(w.prototype)&&(E.prototype=w.prototype),E}},function(o,r,i){o.exports=i(228)},function(o,r,i){var s=i(229);o.exports=s},function(o,r,i){i(125),i(50),i(54);var s=i(93);o.exports=s.f("iterator")},function(o,r,i){o.exports=i(231)},function(o,r,i){var s=i(232);i(251),i(252),i(253),i(254),i(255),o.exports=s},function(o,r,i){i(233),i(61),i(234),i(236),i(237),i(238),i(239),i(125),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250);var s=i(9);o.exports=s.Symbol},function(o,r,i){var s=i(5),d=i(11),c=i(55),f=i(13),g=i(31),y=i(35),C=i(69),w=i(88),A=i(56),E=i(10),_=i(86),v=E("isConcatSpreadable"),m=9007199254740991,b="Maximum allowed index exceeded",S=_>=51||!d(function(){var V=[];return V[v]=!1,V.concat()[0]!==V}),x=A("concat"),O=function(I){if(!f(I))return!1;var z=I[v];return z!==void 0?!!z:c(I)},D=!S||!x;s({target:"Array",proto:!0,forced:D},{concat:function(I){var z=g(this),T=w(z,0),B=0,L,U,W,R,k;for(L=-1,W=arguments.length;L<W;L++)if(k=L===-1?z:arguments[L],O(k)){if(R=y(k.length),B+R>m)throw TypeError(b);for(U=0;U<R;U++,B++)U in k&&C(T,B,k[U])}else{if(B>=m)throw TypeError(b);C(T,B++,k)}return T.length=B,T}})},function(o,r,i){var s=i(5),d=i(8),c=i(36),f=i(43),g=i(14),y=i(76),C=i(106),w=i(11),A=i(16),E=i(55),_=i(13),v=i(25),m=i(31),b=i(30),S=i(60),x=i(48),O=i(77),D=i(52),V=i(126),I=i(235),z=i(127),T=i(71),B=i(18),L=i(59),U=i(19),W=i(53),R=i(74),k=i(63),P=i(51),j=i(64),Z=i(10),J=i(93),F=i(12),oe=i(37),pe=i(42),se=i(32).forEach,ye=k("hidden"),fe="Symbol",ue="prototype",he=Z("toPrimitive"),$=pe.set,Y=pe.getterFor(fe),Q=Object[ue],K=d.Symbol,te=c("JSON","stringify"),q=T.f,ie=B.f,de=I.f,Ee=L.f,Se=R("symbols"),ke=R("op-symbols"),qe=R("string-to-symbol-registry"),Ve=R("symbol-to-string-registry"),ge=R("wks"),Ae=d.QObject,le=!Ae||!Ae[ue]||!Ae[ue].findChild,we=g&&w(function(){return O(ie({},"a",{get:function(){return ie(this,"a",{value:7}).a}})).a!=7})?function(De,be,Ke){var Ue=q(Q,be);Ue&&delete Q[be],ie(De,be,Ke),Ue&&De!==Q&&ie(Q,be,Ue)}:ie,Ie=function(be,Ke){var Ue=Se[be]=O(K[ue]);return $(Ue,{type:fe,tag:be,description:Ke}),g||(Ue.description=Ke),Ue},ze=C?function(De){return zt(De)=="symbol"}:function(De){return Object(De)instanceof K},ct=function(be,Ke,Ue){be===Q&&ct(ke,Ke,Ue),v(be);var We=S(Ke,!0);return v(Ue),A(Se,We)?(Ue.enumerable?(A(be,ye)&&be[ye][We]&&(be[ye][We]=!1),Ue=O(Ue,{enumerable:x(0,!1)})):(A(be,ye)||ie(be,ye,x(1,{})),be[ye][We]=!0),we(be,We,Ue)):ie(be,We,Ue)},rt=function(be,Ke){v(be);var Ue=b(Ke),We=D(Ue).concat(Re(Ue));return se(We,function(at){(!g||Ct.call(Ue,at))&&ct(be,at,Ue[at])}),be},Fe=function(be,Ke){return Ke===void 0?O(be):rt(O(be),Ke)},Ct=function(be){var Ke=S(be,!0),Ue=Ee.call(this,Ke);return this===Q&&A(Se,Ke)&&!A(ke,Ke)?!1:Ue||!A(this,Ke)||!A(Se,Ke)||A(this,ye)&&this[ye][Ke]?Ue:!0},Ze=function(be,Ke){var Ue=b(be),We=S(Ke,!0);if(!(Ue===Q&&A(Se,We)&&!A(ke,We))){var at=q(Ue,We);return at&&A(Se,We)&&!(A(Ue,ye)&&Ue[ye][We])&&(at.enumerable=!0),at}},Te=function(be){var Ke=de(b(be)),Ue=[];return se(Ke,function(We){!A(Se,We)&&!A(P,We)&&Ue.push(We)}),Ue},Re=function(be){var Ke=be===Q,Ue=de(Ke?ke:b(be)),We=[];return se(Ue,function(at){A(Se,at)&&(!Ke||A(Q,at))&&We.push(Se[at])}),We};if(y||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var be=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ke=j(be),Ue=function We(at){this===Q&&We.call(ke,at),A(this,ye)&&A(this[ye],Ke)&&(this[ye][Ke]=!1),we(this,Ke,x(1,at))};return g&&le&&we(Q,Ke,{configurable:!0,set:Ue}),Ie(Ke,be)},W(K[ue],"toString",function(){return Y(this).tag}),W(K,"withoutSetter",function(De){return Ie(j(De),De)}),L.f=Ct,B.f=ct,T.f=Ze,V.f=I.f=Te,z.f=Re,J.f=function(De){return Ie(Z(De),De)},g&&(ie(K[ue],"description",{configurable:!0,get:function(){return Y(this).description}}),f||W(Q,"propertyIsEnumerable",Ct,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:K}),se(D(ge),function(De){F(De)}),s({target:fe,stat:!0,forced:!y},{for:function(be){var Ke=String(be);if(A(qe,Ke))return qe[Ke];var Ue=K(Ke);return qe[Ke]=Ue,Ve[Ue]=Ke,Ue},keyFor:function(be){if(!ze(be))throw TypeError(be+" is not a symbol");if(A(Ve,be))return Ve[be]},useSetter:function(){le=!0},useSimple:function(){le=!1}}),s({target:"Object",stat:!0,forced:!y,sham:!g},{create:Fe,defineProperty:ct,defineProperties:rt,getOwnPropertyDescriptor:Ze}),s({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Te,getOwnPropertySymbols:Re}),s({target:"Object",stat:!0,forced:w(function(){z.f(1)})},{getOwnPropertySymbols:function(be){return z.f(m(be))}}),te){var Xe=!y||w(function(){var De=K();return te([De])!="[null]"||te({a:De})!="{}"||te(Object(De))!="{}"});s({target:"JSON",stat:!0,forced:Xe},{stringify:function(be,Ke,Ue){for(var We=[be],at=1,on;arguments.length>at;)We.push(arguments[at++]);if(on=Ke,!(!_(Ke)&&be===void 0||ze(be)))return E(Ke)||(Ke=function(wt,mt){if(typeof on=="function"&&(mt=on.call(this,wt,mt)),!ze(mt))return mt}),We[1]=Ke,te.apply(null,We)}})}K[ue][he]||U(K[ue],he,K[ue].valueOf),oe(K,fe),P[ye]=!0},function(o,r,i){var s=i(30),d=i(126).f,c={}.toString,f=(typeof window>"u"?"undefined":zt(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(C){try{return d(C)}catch{return f.slice()}};o.exports.f=function(C){return f&&c.call(C)=="[object Window]"?g(C):d(s(C))}},function(o,r,i){var s=i(12);s("asyncIterator")},function(o,r){},function(o,r,i){var s=i(12);s("hasInstance")},function(o,r,i){var s=i(12);s("isConcatSpreadable")},function(o,r,i){var s=i(12);s("match")},function(o,r,i){var s=i(12);s("matchAll")},function(o,r,i){var s=i(12);s("replace")},function(o,r,i){var s=i(12);s("search")},function(o,r,i){var s=i(12);s("species")},function(o,r,i){var s=i(12);s("split")},function(o,r,i){var s=i(12);s("toPrimitive")},function(o,r,i){var s=i(12);s("toStringTag")},function(o,r,i){var s=i(12);s("unscopables")},function(o,r,i){var s=i(37);s(Math,"Math",!0)},function(o,r,i){var s=i(8),d=i(37);d(s.JSON,"JSON",!0)},function(o,r,i){var s=i(12);s("asyncDispose")},function(o,r,i){var s=i(12);s("dispose")},function(o,r,i){var s=i(12);s("observable")},function(o,r,i){var s=i(12);s("patternMatch")},function(o,r,i){var s=i(12);s("replaceAll")},function(o,r,i){o.exports=i(257)},function(o,r,i){var s=i(258);o.exports=s},function(o,r,i){i(259);var s=i(9);o.exports=s.parseInt},function(o,r,i){var s=i(5),d=i(260);s({global:!0,forced:parseInt!=d},{parseInt:d})},function(o,r,i){var s=i(8),d=i(90).trim,c=i(68),f=s.parseInt,g=/^[+-]?0[Xx]/,y=f(c+"08")!==8||f(c+"0x16")!==22;o.exports=y?function(w,A){var E=d(String(w));return f(E,A>>>0||(g.test(E)?16:10))}:f},function(o,r,i){var s=i(262);o.exports=s},function(o,r,i){var s=i(263),d=Array.prototype;o.exports=function(c){var f=c.slice;return c===d||c instanceof Array&&f===d.slice?s:f}},function(o,r,i){i(264);var s=i(15);o.exports=s("Array").slice},function(o,r,i){var s=i(5),d=i(13),c=i(55),f=i(79),g=i(35),y=i(30),C=i(69),w=i(10),A=i(56),E=i(22),_=A("slice"),v=E("slice",{ACCESSORS:!0,0:0,1:2}),m=w("species"),b=[].slice,S=Math.max;s({target:"Array",proto:!0,forced:!_||!v},{slice:function(O,D){var V=y(this),I=g(V.length),z=f(O,I),T=f(D===void 0?I:D,I),B,L,U;if(c(V)&&(B=V.constructor,typeof B=="function"&&(B===Array||c(B.prototype))?B=void 0:d(B)&&(B=B[m],B===null&&(B=void 0)),B===Array||B===void 0))return b.call(V,z,T);for(L=new(B===void 0?Array:B)(S(T-z,0)),U=0;z<T;z++,U++)z in V&&C(L,U,V[z]);return L.length=U,L}})},function(o,r,i){i(266);var s=i(9);o.exports=s.setTimeout},function(o,r,i){var s=i(5),d=i(8),c=i(84),f=[].slice,g=/MSIE .\./.test(c),y=function(w){return function(A,E){var _=arguments.length>2,v=_?f.call(arguments,2):void 0;return w(_?function(){(typeof A=="function"?A:Function(A)).apply(this,v)}:A,E)}};s({global:!0,bind:!0,forced:g},{setTimeout:y(d.setTimeout),setInterval:y(d.setInterval)})},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(128));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(272)),y=f.__importDefault(i(273)),C=f.__importDefault(i(129)),w=f.__importDefault(i(274)),A=f.__importDefault(i(275)),E=f.__importDefault(i(276)),_=f.__importDefault(i(130)),v=f.__importDefault(i(277)),m=f.__importDefault(i(278)),b=f.__importDefault(i(279)),S=(0,c.default)({},g.default,y.default,C.default,A.default,w.default,E.default,_.default,v.default,m.default,b.default,{linkCheck:function(O,D){return!0}});r.default=S},function(o,r,i){var s=i(269);o.exports=s},function(o,r,i){i(270);var s=i(9);o.exports=s.Object.assign},function(o,r,i){var s=i(5),d=i(271);s({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},function(o,r,i){var s=i(14),d=i(11),c=i(52),f=i(127),g=i(59),y=i(31),C=i(72),w=Object.assign,A=Object.defineProperty;o.exports=!w||d(function(){if(s&&w({b:1},w(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},_={},v=Symbol(),m="abcdefghijklmnopqrst";return E[v]=7,m.split("").forEach(function(b){_[b]=b}),w({},E)[v]!=7||c(w({},_)).join("")!=m})?function(_,v){for(var m=y(_),b=arguments.length,S=1,x=f.f,O=g.f;b>S;)for(var D=C(arguments[S++]),V=x?c(D).concat(x(D)):c(D),I=V.length,z=0,T;I>z;)T=V[z++],(!s||O.call(D,T))&&(m[T]=D[T]);return m}:w},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["\u9ED1\u4F53","\u4EFF\u5B8B","\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53","\u5B8B\u4F53","\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"\u3000\u3000\u3000\u3000",emotions:[{title:"\u8868\u60C5",type:"emoji",content:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463}".split(/\s/)},{title:"\u624B\u52BF",type:"emoji",content:"\u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(7);function f(g,y,C){window.alert(g),C&&console.error("wangEditor: "+C)}r.default={onchangeTimeout:200,onchange:null,onfocus:c.EMPTY_FN,onblur:c.EMPTY_FN,onCatalogChange:null,customAlert:f}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(f){return f}}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={styleWithCSS:!1}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(7);r.default={linkImgCheck:function(g,y,C){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:c.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{\u91CD\u7F6E:"\u91CD\u7F6E",\u63D2\u5165:"\u63D2\u5165",\u9ED8\u8BA4:"\u9ED8\u8BA4",\u521B\u5EFA:"\u521B\u5EFA",\u4FEE\u6539:"\u4FEE\u6539",\u5982:"\u5982",\u8BF7\u8F93\u5165\u6B63\u6587:"\u8BF7\u8F93\u5165\u6B63\u6587",menus:{title:{\u6807\u9898:"\u6807\u9898",\u52A0\u7C97:"\u52A0\u7C97",\u5B57\u53F7:"\u5B57\u53F7",\u5B57\u4F53:"\u5B57\u4F53",\u659C\u4F53:"\u659C\u4F53",\u4E0B\u5212\u7EBF:"\u4E0B\u5212\u7EBF",\u5220\u9664\u7EBF:"\u5220\u9664\u7EBF",\u7F29\u8FDB:"\u7F29\u8FDB",\u884C\u9AD8:"\u884C\u9AD8",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u80CC\u666F\u8272:"\u80CC\u666F\u8272",\u94FE\u63A5:"\u94FE\u63A5",\u5E8F\u5217:"\u5E8F\u5217",\u5BF9\u9F50:"\u5BF9\u9F50",\u5F15\u7528:"\u5F15\u7528",\u8868\u60C5:"\u8868\u60C5",\u56FE\u7247:"\u56FE\u7247",\u89C6\u9891:"\u89C6\u9891",\u8868\u683C:"\u8868\u683C",\u4EE3\u7801:"\u4EE3\u7801",\u5206\u5272\u7EBF:"\u5206\u5272\u7EBF",\u6062\u590D:"\u6062\u590D",\u64A4\u9500:"\u64A4\u9500",\u5168\u5C4F:"\u5168\u5C4F",\u53D6\u6D88\u5168\u5C4F:"\u53D6\u6D88\u5168\u5C4F",\u5F85\u529E\u4E8B\u9879:"\u5F85\u529E\u4E8B\u9879"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"\u8BBE\u7F6E\u6807\u9898",\u80CC\u666F\u989C\u8272:"\u80CC\u666F\u989C\u8272",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u8BBE\u7F6E\u5B57\u53F7:"\u8BBE\u7F6E\u5B57\u53F7",\u8BBE\u7F6E\u5B57\u4F53:"\u8BBE\u7F6E\u5B57\u4F53",\u8BBE\u7F6E\u7F29\u8FDB:"\u8BBE\u7F6E\u7F29\u8FDB",\u5BF9\u9F50\u65B9\u5F0F:"\u5BF9\u9F50\u65B9\u5F0F",\u8BBE\u7F6E\u884C\u9AD8:"\u8BBE\u7F6E\u884C\u9AD8",\u5E8F\u5217:"\u5E8F\u5217",head:{\u6B63\u6587:"\u6B63\u6587"},indent:{\u589E\u52A0\u7F29\u8FDB:"\u589E\u52A0\u7F29\u8FDB",\u51CF\u5C11\u7F29\u8FDB:"\u51CF\u5C11\u7F29\u8FDB"},justify:{\u9760\u5DE6:"\u9760\u5DE6",\u5C45\u4E2D:"\u5C45\u4E2D",\u9760\u53F3:"\u9760\u53F3",\u4E24\u7AEF:"\u4E24\u7AEF"},list:{\u65E0\u5E8F\u5217\u8868:"\u65E0\u5E8F\u5217\u8868",\u6709\u5E8F\u5217\u8868:"\u6709\u5E8F\u5217\u8868"}},panelMenus:{emoticon:{\u9ED8\u8BA4:"\u9ED8\u8BA4",\u65B0\u6D6A:"\u65B0\u6D6A",emoji:"emoji",\u624B\u52BF:"\u624B\u52BF"},image:{\u4E0A\u4F20\u56FE\u7247:"\u4E0A\u4F20\u56FE\u7247",\u7F51\u7EDC\u56FE\u7247:"\u7F51\u7EDC\u56FE\u7247",\u56FE\u7247\u5730\u5740:"\u56FE\u7247\u5730\u5740",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"\u56FE\u7247\u6587\u5B57\u8BF4\u660E",\u8DF3\u8F6C\u94FE\u63A5:"\u8DF3\u8F6C\u94FE\u63A5"},link:{\u94FE\u63A5:"\u94FE\u63A5",\u94FE\u63A5\u6587\u5B57:"\u94FE\u63A5\u6587\u5B57",\u53D6\u6D88\u94FE\u63A5:"\u53D6\u6D88\u94FE\u63A5",\u67E5\u770B\u94FE\u63A5:"\u67E5\u770B\u94FE\u63A5"},video:{\u63D2\u5165\u89C6\u9891:"\u63D2\u5165\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891:"\u4E0A\u4F20\u89C6\u9891"},table:{\u884C:"\u884C",\u5217:"\u5217",\u7684:"\u7684",\u8868\u683C:"\u8868\u683C",\u6DFB\u52A0\u884C:"\u6DFB\u52A0\u884C",\u5220\u9664\u884C:"\u5220\u9664\u884C",\u6DFB\u52A0\u5217:"\u6DFB\u52A0\u5217",\u5220\u9664\u5217:"\u5220\u9664\u5217",\u8BBE\u7F6E\u8868\u5934:"\u8BBE\u7F6E\u8868\u5934",\u53D6\u6D88\u8868\u5934:"\u53D6\u6D88\u8868\u5934",\u63D2\u5165\u8868\u683C:"\u63D2\u5165\u8868\u683C",\u5220\u9664\u8868\u683C:"\u5220\u9664\u8868\u683C"},code:{\u5220\u9664\u4EE3\u7801:"\u5220\u9664\u4EE3\u7801",\u4FEE\u6539\u4EE3\u7801:"\u4FEE\u6539\u4EE3\u7801",\u63D2\u5165\u4EE3\u7801:"\u63D2\u5165\u4EE3\u7801"}}},validate:{\u5F20\u56FE\u7247:"\u5F20\u56FE\u7247",\u5927\u4E8E:"\u5927\u4E8E",\u56FE\u7247\u94FE\u63A5:"\u56FE\u7247\u94FE\u63A5",\u4E0D\u662F\u56FE\u7247:"\u4E0D\u662F\u56FE\u7247",\u8FD4\u56DE\u7ED3\u679C:"\u8FD4\u56DE\u7ED3\u679C",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"\u4E0A\u4F20\u56FE\u7247\u5931\u8D25",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"\u63D2\u5165\u56FE\u7247\u9519\u8BEF",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"\u4E00\u6B21\u6700\u591A\u4E0A\u4F20",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"\u63D2\u5165\u89C6\u9891\u9519\u8BEF",\u89C6\u9891\u94FE\u63A5:"\u89C6\u9891\u94FE\u63A5",\u4E0D\u662F\u89C6\u9891:"\u4E0D\u662F\u89C6\u9891",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7",\u4E2A\u89C6\u9891:"\u4E2A\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"\u4E0A\u4F20\u89C6\u9891\u5931\u8D25",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF"}}},en:{wangEditor:{\u91CD\u7F6E:"reset",\u63D2\u5165:"insert",\u9ED8\u8BA4:"default",\u521B\u5EFA:"create",\u4FEE\u6539:"edit",\u5982:"like",\u8BF7\u8F93\u5165\u6B63\u6587:"please enter the text",menus:{title:{\u6807\u9898:"head",\u52A0\u7C97:"bold",\u5B57\u53F7:"font size",\u5B57\u4F53:"font family",\u659C\u4F53:"italic",\u4E0B\u5212\u7EBF:"underline",\u5220\u9664\u7EBF:"strikethrough",\u7F29\u8FDB:"indent",\u884C\u9AD8:"line heihgt",\u6587\u5B57\u989C\u8272:"font color",\u80CC\u666F\u8272:"background",\u94FE\u63A5:"link",\u5E8F\u5217:"numbered list",\u5BF9\u9F50:"align",\u5F15\u7528:"quote",\u8868\u60C5:"emoticons",\u56FE\u7247:"image",\u89C6\u9891:"media",\u8868\u683C:"table",\u4EE3\u7801:"code",\u5206\u5272\u7EBF:"split line",\u6062\u590D:"redo",\u64A4\u9500:"undo",\u5168\u5C4F:"fullscreen",\u53D6\u6D88\u5168\u5C4F:"cancel fullscreen",\u5F85\u529E\u4E8B\u9879:"todo"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"title",\u80CC\u666F\u989C\u8272:"background",\u6587\u5B57\u989C\u8272:"font color",\u8BBE\u7F6E\u5B57\u53F7:"font size",\u8BBE\u7F6E\u5B57\u4F53:"font family",\u8BBE\u7F6E\u7F29\u8FDB:"indent",\u5BF9\u9F50\u65B9\u5F0F:"align",\u8BBE\u7F6E\u884C\u9AD8:"line heihgt",\u5E8F\u5217:"list",head:{\u6B63\u6587:"text"},indent:{\u589E\u52A0\u7F29\u8FDB:"indent",\u51CF\u5C11\u7F29\u8FDB:"outdent"},justify:{\u9760\u5DE6:"left",\u5C45\u4E2D:"center",\u9760\u53F3:"right",\u4E24\u7AEF:"justify"},list:{\u65E0\u5E8F\u5217\u8868:"unordered",\u6709\u5E8F\u5217\u8868:"ordered"}},panelMenus:{emoticon:{\u8868\u60C5:"emoji",\u624B\u52BF:"gesture"},image:{\u4E0A\u4F20\u56FE\u7247:"upload image",\u7F51\u7EDC\u56FE\u7247:"network image",\u56FE\u7247\u5730\u5740:"image link",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"image alt",\u8DF3\u8F6C\u94FE\u63A5:"hyperlink"},link:{\u94FE\u63A5:"link",\u94FE\u63A5\u6587\u5B57:"link text",\u53D6\u6D88\u94FE\u63A5:"unlink",\u67E5\u770B\u94FE\u63A5:"view links"},video:{\u63D2\u5165\u89C6\u9891:"insert video",\u4E0A\u4F20\u89C6\u9891:"upload local video"},table:{\u884C:"rows",\u5217:"columns",\u7684:" ",\u8868\u683C:"table",\u6DFB\u52A0\u884C:"insert row",\u5220\u9664\u884C:"delete row",\u6DFB\u52A0\u5217:"insert column",\u5220\u9664\u5217:"delete column",\u8BBE\u7F6E\u8868\u5934:"set header",\u53D6\u6D88\u8868\u5934:"cancel header",\u63D2\u5165\u8868\u683C:"insert table",\u5220\u9664\u8868\u683C:"delete table"},code:{\u5220\u9664\u4EE3\u7801:"delete code",\u4FEE\u6539\u4EE3\u7801:"edit code",\u63D2\u5165\u4EE3\u7801:"insert code"}}},validate:{\u5F20\u56FE\u7247:"images",\u5927\u4E8E:"greater than",\u56FE\u7247\u94FE\u63A5:"image link",\u4E0D\u662F\u56FE\u7247:"is not image",\u8FD4\u56DE\u7ED3\u679C:"return results",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"upload image timeout",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"upload image error",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"upload image failed",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"insert image error",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"once most at upload",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"download link failed",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"image validate failed",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"server return status",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload image return results error",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"please replace with a supported image type",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"the network picture you inserted is not recognized",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"the image link you just inserted did not pass the editor verification",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"insert video error",\u89C6\u9891\u94FE\u63A5:"video link",\u4E0D\u662F\u89C6\u9891:"is not video",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"video validate failed",\u4E2A\u89C6\u9891:"videos",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"upload video timeout",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"upload video error",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"upload video failed",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload video return results error"}}}}}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(6);function f(){return!!(c.UA.isIE()||c.UA.isOldEdge)}r.default={compatibleMode:f,historyMaxSize:30}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(7);r.default={onlineVideoCheck:function(g){return!0},onlineVideoCallback:c.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(17));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(6),C=i(7),w=function(){function A(E){this._currentRange=null,this.editor=E}return A.prototype.getRange=function(){return this._currentRange},A.prototype.saveRange=function(E){if(E){this._currentRange=E;return}var _=window.getSelection();if(_.rangeCount!==0){var v=_.getRangeAt(0),m=this.getSelectionContainerElem(v);if(!!(m!=null&&m.length)&&!(m.attr("contenteditable")==="false"||m.parentUntil("[contenteditable=false]"))){var b=this.editor,S=b.$textElem;if(S.isContain(m)){if(S.elems[0]===m.elems[0]){var x;if((0,c.default)(x=S.html()).call(x)===C.EMPTY_P){var O=S.children(),D=O==null?void 0:O.last();b.selection.createRangeByElem(D,!0,!0),b.selection.restoreSelection()}}this._currentRange=v}}}},A.prototype.collapseRange=function(E){E===void 0&&(E=!1);var _=this._currentRange;_&&_.collapse(E)},A.prototype.getSelectionText=function(){var E=this._currentRange;return E?E.toString():""},A.prototype.getSelectionContainerElem=function(E){var _;_=E||this._currentRange;var v;if(_)return v=_.commonAncestorContainer,g.default(v.nodeType===1?v:v.parentNode)},A.prototype.getSelectionStartElem=function(E){var _;_=E||this._currentRange;var v;if(_)return v=_.startContainer,g.default(v.nodeType===1?v:v.parentNode)},A.prototype.getSelectionEndElem=function(E){var _;_=E||this._currentRange;var v;if(_)return v=_.endContainer,g.default(v.nodeType===1?v:v.parentNode)},A.prototype.isSelectionEmpty=function(){var E=this._currentRange;return!!(E&&E.startContainer&&E.startContainer===E.endContainer&&E.startOffset===E.endOffset)},A.prototype.restoreSelection=function(){var E=window.getSelection(),_=this._currentRange;E&&_&&(E.removeAllRanges(),E.addRange(_))},A.prototype.createEmptyRange=function(){var E=this.editor,_=this.getRange(),v;if(!!_&&!!this.isSelectionEmpty())try{y.UA.isWebkit()?(E.cmd.do("insertHTML","&#8203;"),_.setEnd(_.endContainer,_.endOffset+1),this.saveRange(_)):(v=g.default("<strong>&#8203;</strong>"),E.cmd.do("insertElem",v),this.createRangeByElem(v,!0))}catch{}},A.prototype.createRangeByElems=function(E,_){var v=window.getSelection?window.getSelection():document.getSelection();v==null||v.removeAllRanges();var m=document.createRange();m.setStart(E,0),m.setEnd(_,_.childNodes.length||1),this.saveRange(m),this.restoreSelection()},A.prototype.createRangeByElem=function(E,_,v){if(!!E.length){var m=E.elems[0],b=document.createRange();v?b.selectNodeContents(m):b.selectNode(m),_!=null&&(b.collapse(_),_||(this.saveRange(b),this.editor.selection.moveCursor(m))),this.saveRange(b)}},A.prototype.getSelectionRangeTopNodes=function(){var E,_,v,m=(E=this.getSelectionStartElem())===null||E===void 0?void 0:E.getNodeTop(this.editor),b=(_=this.getSelectionEndElem())===null||_===void 0?void 0:_.getNodeTop(this.editor);return v=this.recordSelectionNodes(g.default(m),g.default(b)),v},A.prototype.moveCursor=function(E,_){var v,m=this.getRange(),b=E.nodeType===3?(v=E.nodeValue)===null||v===void 0?void 0:v.length:E.childNodes.length;(y.UA.isFirefox||y.UA.isIE())&&b!==0&&(E.nodeType===3||E.childNodes[b-1].nodeName==="BR")&&(b=b-1);var S=_!=null?_:b;!m||E&&(m.setStart(E,S),m.setEnd(E,S),this.restoreSelection())},A.prototype.getCursorPos=function(){var E=window.getSelection();return E==null?void 0:E.anchorOffset},A.prototype.clearWindowSelectionRange=function(){var E=window.getSelection();E&&E.removeAllRanges()},A.prototype.recordSelectionNodes=function(E,_){var v=[],m=!0;try{for(var b=E,S=this.editor.$textElem;m;){var x=b==null?void 0:b.getNodeTop(this.editor);x.getNodeName()==="BODY"&&(m=!1),x.length>0&&(v.push(g.default(b)),(_==null?void 0:_.equal(x))||S.equal(x)?m=!1:b=x.getNextSibling())}}catch{m=!1}return v},A.prototype.setRangeToElem=function(E){var _=this.getRange();_==null||_.setStart(E,0),_==null||_.setEnd(E,0)},A}();r.default=w},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=function(){function y(C){this.editor=C}return y.prototype.do=function(C,w){var A=this.editor;A.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var E=A.selection;if(!!E.getRange()){switch(E.restoreSelection(),C){case"insertHTML":this.insertHTML(w);break;case"insertElem":this.insertElem(w);break;default:this.execCommand(C,w);break}A.menus.changeActive(),E.saveRange(),E.restoreSelection()}},y.prototype.insertHTML=function(C){var w=this.editor,A=w.selection.getRange();if(A!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",C);else if(A.insertNode){if(A.deleteContents(),f.default(C).elems.length>0)A.insertNode(f.default(C).elems[0]);else{var E=document.createElement("p");E.appendChild(document.createTextNode(C)),A.insertNode(E)}w.selection.collapseRange()}}},y.prototype.insertElem=function(C){var w=this.editor,A=w.selection.getRange();A!=null&&A.insertNode&&(A.deleteContents(),A.insertNode(C.elems[0]))},y.prototype.execCommand=function(C,w){document.execCommand(C,!1,w)},y.prototype.queryCommandValue=function(C){return document.queryCommandValue(C)},y.prototype.queryCommandState=function(C){return document.queryCommandState(C)},y.prototype.queryCommandSupported=function(C){return document.queryCommandSupported(C)},y}();r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(29)),f=s(i(4)),g=s(i(17)),y=s(i(27)),C=s(i(46));(0,d.default)(r,"__esModule",{value:!0});var w=i(2),A=w.__importDefault(i(3)),E=w.__importDefault(i(287)),_=i(6),v=w.__importDefault(i(299)),m=w.__importDefault(i(300)),b=i(7),S=function(){function x(O){this.editor=O,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return x.prototype.init=function(){this._saveRange(),this._bindEventHooks(),E.default(this)},x.prototype.togglePlaceholder=function(){var O,D=this.html(),V=(0,c.default)(O=this.editor.$textContainerElem).call(O,".placeholder");V.hide(),!this.editor.isComposing&&(!D||D===" ")&&V.show()},x.prototype.clear=function(){this.html(b.EMPTY_P)},x.prototype.html=function(O){var D=this.editor,V=D.$textElem;if(O==null){var I=V.html();I=I.replace(/\u200b/gm,""),I=I.replace(/<p><\/p>/gim,""),I=I.replace(b.EMPTY_P_LAST_REGEX,""),I=I.replace(b.EMPTY_P_REGEX,"<p>");var z=I.match(/<(img|br|hr|input)[^>]*>/gi);return z!==null&&(0,f.default)(z).call(z,function(T){T.match(/\/>/)||(I=I.replace(T,T.substring(0,T.length-1)+"/>"))}),I}O=(0,g.default)(O).call(O),O===""&&(O=b.EMPTY_P),(0,y.default)(O).call(O,"<")!==0&&(O="<p>"+O+"</p>"),V.html(O),D.initSelection()},x.prototype.setJSON=function(O){var D=m.default(O).children(),V=this.editor,I=V.$textElem;!D||I.replaceChildAll(D)},x.prototype.getJSON=function(){var O=this.editor,D=O.$textElem;return v.default(D)},x.prototype.text=function(O){var D=this.editor,V=D.$textElem;if(O==null){var I=V.text();return I=I.replace(/\u200b/gm,""),I}V.text("<p>"+O+"</p>"),D.initSelection()},x.prototype.append=function(O){var D=this.editor;(0,y.default)(O).call(O,"<")!==0&&(O="<p>"+O+"</p>"),this.html(this.html()+O),D.initSelection()},x.prototype._saveRange=function(){var O=this.editor,D=O.$textElem,V=A.default(document);function I(){O.selection.saveRange(),O.menus.changeActive()}D.on("keyup",I);function z(){I(),D.off("click",z)}D.on("click",z);function T(){I(),V.off("mouseup",T)}function B(){V.on("mouseup",T),D.off("mouseleave",B)}D.on("mousedown",function(){D.on("mouseleave",B)}),D.on("mouseup",function(L){D.off("mouseleave",B),(0,C.default)(function(){var U=O.selection,W=U.getRange();W!==null&&I()},0)})},x.prototype._bindEventHooks=function(){var O=this.editor,D=O.$textElem,V=this.eventHooks;D.on("click",function(z){var T=V.clickEvents;(0,f.default)(T).call(T,function(B){return B(z)})}),D.on("keyup",function(z){if(z.keyCode===13){var T=V.enterUpEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("keyup",function(z){var T=V.keyupEvents;(0,f.default)(T).call(T,function(B){return B(z)})}),D.on("keydown",function(z){var T=V.keydownEvents;(0,f.default)(T).call(T,function(B){return B(z)})}),D.on("keyup",function(z){if(!(z.keyCode!==8&&z.keyCode!==46)){var T=V.deleteUpEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("keydown",function(z){if(!(z.keyCode!==8&&z.keyCode!==46)){var T=V.deleteDownEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("paste",function(z){if(!_.UA.isIE()){z.preventDefault();var T=V.pasteEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("keydown",function(z){(O.isFocus||O.isCompatibleMode)&&(z.ctrlKey||z.metaKey)&&z.keyCode===90&&(z.preventDefault(),z.shiftKey?O.history.restore():O.history.revoke())}),D.on("keyup",function(z){if(z.keyCode===9){z.preventDefault();var T=V.tabUpEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("keydown",function(z){if(z.keyCode===9){z.preventDefault();var T=V.tabDownEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("scroll",_.throttle(function(z){var T=V.textScrollEvents;(0,f.default)(T).call(T,function(B){return B(z)})},100));function I(z){z.preventDefault()}A.default(document).on("dragleave",I).on("drop",I).on("dragenter",I).on("dragover",I),O.beforeDestroy(function(){A.default(document).off("dragleave",I).off("drop",I).off("dragenter",I).off("dragover",I)}),D.on("drop",function(z){z.preventDefault();var T=V.dropEvents;(0,f.default)(T).call(T,function(B){return B(z)})}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="A")T=L;else{var U=L.parentUntil("a");U!=null&&(T=U)}if(!!T){var W=V.linkClickEvents;(0,f.default)(W).call(W,function(R){return R(T)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="IMG"&&!L.elems[0].getAttribute("data-emoji")&&(z.stopPropagation(),T=L),!!T){var U=V.imgClickEvents;(0,f.default)(U).call(U,function(W){return W(T)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="PRE")T=L;else{var U=L.parentUntil("pre");U!==null&&(T=U)}if(!!T){var W=V.codeClickEvents;(0,f.default)(W).call(W,function(R){return R(T)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="HR"&&(T=L),!!T){O.selection.createRangeByElem(T),O.selection.restoreSelection();var U=V.splitLineEvents;(0,f.default)(U).call(U,function(W){return W(T)})}}),O.$toolbarElem.on("click",function(z){var T=V.toolbarClickEvents;(0,f.default)(T).call(T,function(B){return B(z)})}),O.$textContainerElem.on("mousedown",function(z){var T=z.target,B=A.default(T);if(B.hasClass("w-e-img-drag-rb")){var L=V.imgDragBarMouseDownEvents;(0,f.default)(L).call(L,function(U){return U()})}}),D.on("click",function(z){var T=null,B=z.target;if(T=A.default(B).parentUntilEditor("TABLE",O,B),!!T){var L=V.tableClickEvents;(0,f.default)(L).call(L,function(U){return U(T,z)})}}),D.on("keydown",function(z){if(z.keyCode===13){var T=V.enterDownEvents;(0,f.default)(T).call(T,function(B){return B(z)})}}),D.on("click",function(z){var T=null,B=z.target,L=A.default(B);if(L.getNodeName()==="VIDEO"&&(z.stopPropagation(),T=L),!!T){var U=V.videoClickEvents;(0,f.default)(U).call(U,function(W){return W(T)})}})},x}();r.default=S},function(o,r,i){var s=i(284);o.exports=s},function(o,r,i){var s=i(285),d=Array.prototype;o.exports=function(c){var f=c.find;return c===d||c instanceof Array&&f===d.find?s:f}},function(o,r,i){i(286);var s=i(15);o.exports=s("Array").find},function(o,r,i){var s=i(5),d=i(32).find,c=i(82),f=i(22),g="find",y=!0,C=f(g);g in[]&&Array(1)[g](function(){y=!1}),s({target:"Array",proto:!0,forced:y||!C},{find:function(A){return d(this,A,arguments.length>1?arguments[1]:void 0)}}),c(g)},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(288)),g=c.__importStar(i(289)),y=c.__importDefault(i(290)),C=c.__importDefault(i(291)),w=c.__importDefault(i(298));function A(E){var _=E.editor,v=E.eventHooks;f.default(_,v.enterUpEvents,v.enterDownEvents),g.default(_,v.deleteUpEvents,v.deleteDownEvents),g.cutToKeepP(_,v.keyupEvents),y.default(_,v.tabDownEvents),C.default(_,v.pasteEvents),w.default(_,v.imgClickEvents)}r.default=A},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(27));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=i(7),y=f.__importDefault(i(3));function C(w,A,E){function _(b){var S,x=y.default(g.EMPTY_P);if(x.insertBefore(b),(0,c.default)(S=b.html()).call(S,"<img")>=0){x.remove();return}w.selection.createRangeByElem(x,!0,!0),w.selection.restoreSelection(),b.remove()}function v(){var b=w.$textElem,S=w.selection.getSelectionContainerElem(),x=S.parent();if(x.html()==="<code><br></code>"){_(x);return}if(S.getNodeName()==="FONT"&&S.text()===""&&S.attr("face")==="monospace"){_(x);return}if(!!x.equal(b)){var O=S.getNodeName();O==="P"&&S.attr("data-we-empty-p")===null||S.text()||_(S)}}A.push(v);function m(b){var S;w.selection.saveRange((S=getSelection())===null||S===void 0?void 0:S.getRangeAt(0));var x=w.selection.getSelectionContainerElem();x.id===w.textElemId&&(b.preventDefault(),w.cmd.do("insertHTML","<p><br></p>"))}E.push(m)}r.default=C},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(17)),f=s(i(28));(0,d.default)(r,"__esModule",{value:!0}),r.cutToKeepP=void 0;var g=i(2),y=i(7),C=g.__importDefault(i(3));function w(E,_,v){function m(){var S=E.$textElem,x=E.$textElem.html(),O=E.$textElem.text(),D=(0,c.default)(x).call(x),V=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',y.EMPTY_P];if(/^\s*$/.test(O)&&(!D||(0,f.default)(V).call(V,D))){S.html(y.EMPTY_P);var I=S.getNode();E.selection.createRangeByElems(I.childNodes[0],I.childNodes[0]);var z=E.selection.getSelectionContainerElem();E.selection.restoreSelection(),E.selection.moveCursor(z.getNode(),0)}}_.push(m);function b(S){var x,O=E.$textElem,D=(0,c.default)(x=O.html().toLowerCase()).call(x);if(D===y.EMPTY_P){S.preventDefault();return}}v.push(b)}function A(E,_){function v(m){var b;if(m.keyCode===88){var S=E.$textElem,x=(0,c.default)(b=S.html().toLowerCase()).call(b);if(!x||x==="<br>"){var O=C.default(y.EMPTY_P);S.html(" "),S.append(O),E.selection.createRangeByElem(O,!1,!0),E.selection.restoreSelection(),E.selection.moveCursor(O.getNode(),0)}}}_.push(v)}r.cutToKeepP=A,r.default=w},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(f,g){function y(){if(!!f.cmd.queryCommandSupported("insertHTML")){var C=f.selection.getSelectionContainerElem();if(!!C){var w=C.parent(),A=C.getNodeName(),E=w.getNodeName();A=="CODE"||E==="CODE"||E==="PRE"||/hljs/.test(E)?f.cmd.do("insertHTML",f.config.languageTab):f.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}g.push(y)}r.default=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(17)),f=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var g=i(131),y=i(6),C=i(7);function w(m){var b,S=(0,c.default)(b=m.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(b),x=document.createElement("div");return x.innerHTML=S,x.innerHTML.replace(/<p><\/p>/gim,"")}function A(m){var b=m.replace(/<br>|<br\/>/gm,`
`).replace(/<[^>]+>/gm,"");return b}function E(m){var b;if(m==="")return!1;var S=document.createElement("div");return S.innerHTML=m,((b=S.firstChild)===null||b===void 0?void 0:b.nodeName)==="P"}function _(m){if(!(m!=null&&m.length))return!1;var b=m.elems[0];return b.nodeName==="P"&&b.innerHTML==="<br>"}function v(m,b){function S(x){var O=m.config,D=O.pasteFilterStyle,V=O.pasteIgnoreImg,I=O.pasteTextHandle,z=g.getPasteHtml(x,D,V),T=g.getPasteText(x);T=T.replace(/\n/gm,"<br>");var B=m.selection.getSelectionContainerElem();if(!!B){var L=B==null?void 0:B.getNodeName(),U=B==null?void 0:B.getNodeTop(m),W="";if(U.elems[0]&&(W=U==null?void 0:U.getNodeName()),L==="CODE"||W==="PRE"){I&&y.isFunction(I)&&(T=""+(I(T)||"")),m.cmd.do("insertHTML",A(T));return}if(C.urlRegex.test(T)&&D){I&&y.isFunction(I)&&(T=""+(I(T)||""));var R=T.replace(C.urlRegex,function(pe){return'<a href="'+pe+'" target="_blank">'+pe+"</a>"}),k=m.selection.getRange(),P=document.createElement("div"),j=document.createDocumentFragment();if(P.innerHTML=R,k==null)return;for(;P.childNodes.length;)j.append(P.childNodes[0]);var Z=j.querySelectorAll("a");(0,f.default)(Z).call(Z,function(pe){pe.innerText=pe.href}),k.insertNode&&(k.deleteContents(),k.insertNode(j)),m.selection.clearWindowSelectionRange();return}if(!!z)try{I&&y.isFunction(I)&&(z=""+(I(z)||""));var J=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(z);if(J&&D)m.cmd.do("insertHTML",""+w(T));else{var F=w(z);if(E(F)){var oe=m.$textElem;if(m.cmd.do("insertHTML",F),oe.equal(B)){m.selection.createEmptyRange();return}_(U)&&U.remove()}else m.cmd.do("insertHTML",F)}}catch{I&&y.isFunction(I)&&(T=""+(I(T)||"")),m.cmd.do("insertHTML",""+w(T))}}}b.push(S)}r.default=v},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(17)),f=s(i(4)),g=s(i(28));(0,d.default)(r,"__esModule",{value:!0});var y=i(2),C=i(293),w=y.__importDefault(i(297));function A(b){var S=/<span>.*?<\/span>/gi,x=/<span>(.*?)<\/span>/;return b.replace(S,function(O){var D=O.match(x);return D==null?"":D[1]})}function E(b,S){var x;return b=(0,c.default)(x=b.toLowerCase()).call(x),!!(C.IGNORE_TAGS.has(b)||S&&b==="img")}function _(b,S){var x="";x="<"+b;var O=[];(0,f.default)(S).call(S,function(V){O.push(V.name+'="'+V.value+'"')}),O.length>0&&(x=x+" "+O.join(" "));var D=C.EMPTY_TAGS.has(b);return x=x+(D?"/":"")+">",x}function v(b){return"</"+b+">"}function m(b,S,x){S===void 0&&(S=!0),x===void 0&&(x=!1);var O=[],D="";function V(B){B=(0,c.default)(B).call(B),B&&(C.EMPTY_TAGS.has(B)||(D=B))}function I(){D=""}var z=new w.default;z.parse(b,{startElement:function(L,U){if(V(L),!E(L,x)){var W=C.NECESSARY_ATTRS.get(L)||[],R=[];(0,f.default)(U).call(U,function(P){var j=P.name;if(j==="style"){S||R.push(P);return}(0,g.default)(W).call(W,j)!==!1&&R.push(P)});var k=_(L,R);O.push(k)}},characters:function(L){!L||E(D,x)||O.push(L)},endElement:function(L){if(!E(L,x)){var U=v(L);O.push(U),I()}},comment:function(L){V(L)}});var T=O.join("");return T=A(T),T}r.default=m},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(132)),f=s(i(121));(0,d.default)(r,"__esModule",{value:!0}),r.TOP_LEVEL_TAGS=r.EMPTY_TAGS=r.NECESSARY_ATTRS=r.IGNORE_TAGS=void 0,r.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),r.NECESSARY_ATTRS=new f.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),r.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),r.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(o,r,i){var s=i(295);o.exports=s},function(o,r,i){i(296),i(61),i(50),i(54);var s=i(9);o.exports=s.Set},function(o,r,i){var s=i(122),d=i(124);o.exports=s("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(o,r){function i(){}i.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(d,c){c&&(this.contentHandler=c);for(var f,g,y,C=!1,w=this;d.length>0;)d.substring(0,4)=="<!--"?(y=d.indexOf("-->"),y!=-1?(this.contentHandler.comment(d.substring(4,y)),d=d.substring(y+3),C=!1):C=!0):d.substring(0,2)=="</"?this.endTagRe.test(d)?(f=RegExp.lastMatch,g=RegExp.rightContext,f.replace(this.endTagRe,function(){return w.parseEndTag.apply(w,arguments)}),d=g,C=!1):C=!0:d.charAt(0)=="<"&&(this.startTagRe.test(d)?(f=RegExp.lastMatch,g=RegExp.rightContext,f.replace(this.startTagRe,function(){return w.parseStartTag.apply(w,arguments)}),d=g,C=!1):C=!0),C&&(y=d.indexOf("<"),y==-1?(this.contentHandler.characters(d),d=""):(this.contentHandler.characters(d.substring(0,y)),d=d.substring(y))),C=!0},parseStartTag:function(d,c,f){var g=this.parseAttributes(c,f);this.contentHandler.startElement(c,g)},parseEndTag:function(d,c){this.contentHandler.endElement(c)},parseAttributes:function(d,c){var f=this,g=[];return c.replace(this.attrRe,function(y,C,w,A,E,_,v,m){g.push(f.parseAttribute(d,y,C,w,A,E,_,v,m))}),g},parseAttribute:function(d,c,f){var g="";arguments[7]?g=arguments[8]:arguments[5]?g=arguments[6]:arguments[3]&&(g=arguments[4]);var y=!g&&!arguments[3];return{name:f,value:y?null:g}}},o.exports=i},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(f,g){function y(C){f.selection.createRangeByElem(C),f.selection.restoreSelection()}g.push(y)}r.default=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=i(6),y=f.__importDefault(i(3));function C(w){var A=[],E=w.childNodes()||[];return(0,c.default)(E).call(E,function(_){var v,m=_.nodeType;if(m===3&&(v=_.textContent||"",v=g.replaceHtmlSymbol(v)),m===1){v={},v=v,v.tag=_.nodeName.toLowerCase();for(var b=[],S=_.attributes,x=S.length||0,O=0;O<x;O++){var D=S[O];b.push({name:D.name,value:D.value})}v.attrs=b,v.children=C(y.default(_))}v&&A.push(v)}),A}r.default=C},function(o,r,i){var s=i(0),d=s(i(92)),c=s(i(1)),f=s(i(4));(0,c.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3));function C(w,A){A===void 0&&(A=document.createElement("div"));var E=A;return(0,f.default)(w).call(w,function(_){var v;if(typeof _=="string"&&(v=document.createTextNode(_)),(0,d.default)(_)==="object"){var m;v=document.createElement(_.tag),(0,f.default)(m=_.attrs).call(m,function(b){y.default(v).attr(b.name,b.value)}),_.children&&_.children.length>0&&C(_.children,v.getRootNode())}v&&E.appendChild(v)}),y.default(E)}r.default=C},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(89)),f=s(i(70)),g=s(i(28)),y=s(i(302)),C=s(i(4)),w=s(i(94)),A=s(i(133)),E=s(i(46)),_=s(i(57));(0,d.default)(r,"__esModule",{value:!0});var v=i(2),m=v.__importDefault(i(87)),b=v.__importDefault(i(314)),S=v.__importDefault(i(3)),x=function(){function O(D){this.editor=D,this.menuList=[],this.constructorList=b.default}return O.prototype.extend=function(D,V){!V||typeof V!="function"||(this.constructorList[D]=V)},O.prototype.init=function(){var D,V,I=this,z=this.editor.config,T=z.excludeMenus;(0,c.default)(T)===!1&&(T=[]),z.menus=(0,f.default)(D=z.menus).call(D,function(j){return(0,g.default)(T).call(T,j)===!1});var B=(0,y.default)(m.default.globalCustomMenuConstructorList);B=(0,f.default)(B).call(B,function(j){return(0,g.default)(T).call(T,j)}),(0,C.default)(B).call(B,function(j){delete m.default.globalCustomMenuConstructorList[j]}),(0,C.default)(V=z.menus).call(V,function(j){var Z=I.constructorList[j];I._initMenuList(j,Z)});for(var L=0,U=(0,w.default)(m.default.globalCustomMenuConstructorList);L<U.length;L++){var W=U[L],R=W[0],k=W[1],P=k;this._initMenuList(R,P)}this._addToToolbar(),z.showMenuTooltips&&this._bindMenuTooltips()},O.prototype._initMenuList=function(D,V){var I;if(!(V==null||typeof V!="function"))if((0,A.default)(I=this.menuList).call(I,function(T){return T.key===D}))console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:"+D);else{var z=new V(this.editor);z.key=D,this.menuList.push(z)}},O.prototype._bindMenuTooltips=function(){var D=this.editor,V=D.$toolbarElem,I=D.config,z=I.menuTooltipPosition,T=S.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+z+`">
<div class="w-e-menu-tooltip-item-wrapper">
<div></div>
</div>
</div>`);T.css("visibility","hidden"),V.append(T),T.css("z-index",D.zIndex.get("tooltip"));var B=0;function L(){B&&clearTimeout(B)}function U(){L(),T.css("visibility","hidden")}V.on("mouseover",function(W){var R=W.target,k=S.default(R),P,j;if(k.isContain(V)){U();return}if(k.parentUntil(".w-e-droplist")!=null)U();else if(k.attr("data-title"))P=k.attr("data-title"),j=k;else{var Z=k.parentUntil(".w-e-menu");Z!=null&&(P=Z.attr("data-title"),j=Z)}if(P&&j){L();var J=j.getOffsetData();T.text(D.i18next.t("menus.title."+P));var F=T.getOffsetData(),oe=J.left+J.width/2-F.width/2;T.css("left",oe+"px"),z==="up"?T.css("top",J.top-F.height-8+"px"):z==="down"&&T.css("top",J.top+J.height+8+"px"),B=(0,E.default)(function(){T.css("visibility","visible")},200)}else U()}).on("mouseleave",function(){U()})},O.prototype._addToToolbar=function(){var D,V=this.editor,I=V.$toolbarElem;(0,C.default)(D=this.menuList).call(D,function(z){var T=z.$elem;T&&I.append(T)})},O.prototype.menuFind=function(D){for(var V=this.menuList,I=0,z=V.length;I<z;I++)if(V[I].key===D)return V[I];return V[0]},O.prototype.changeActive=function(){var D;(0,C.default)(D=this.menuList).call(D,function(V){var I;(0,E.default)((0,_.default)(I=V.tryChangeActive).call(I,V),100)})},O}();r.default=x},function(o,r,i){o.exports=i(303)},function(o,r,i){var s=i(304);o.exports=s},function(o,r,i){i(305);var s=i(9);o.exports=s.Object.keys},function(o,r,i){var s=i(5),d=i(31),c=i(52),f=i(11),g=f(function(){c(1)});s({target:"Object",stat:!0,forced:g},{keys:function(C){return c(d(C))}})},function(o,r,i){var s=i(307);o.exports=s},function(o,r,i){i(308);var s=i(9);o.exports=s.Object.entries},function(o,r,i){var s=i(5),d=i(309).entries;s({target:"Object",stat:!0},{entries:function(f){return d(f)}})},function(o,r,i){var s=i(14),d=i(52),c=i(30),f=i(59).f,g=function(C){return function(w){for(var A=c(w),E=d(A),_=E.length,v=0,m=[],b;_>v;)b=E[v++],(!s||f.call(A,b))&&m.push(C?[b,A[b]]:A[b]);return m}};o.exports={entries:g(!0),values:g(!1)}},function(o,r,i){var s=i(311);o.exports=s},function(o,r,i){var s=i(312),d=Array.prototype;o.exports=function(c){var f=c.some;return c===d||c instanceof Array&&f===d.some?s:f}},function(o,r,i){i(313);var s=i(15);o.exports=s("Array").some},function(o,r,i){var s=i(5),d=i(32).some,c=i(67),f=i(22),g=c("some"),y=f("some");s({target:"Array",proto:!0,forced:!g||!y},{some:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(315)),g=c.__importDefault(i(316)),y=c.__importDefault(i(321)),C=c.__importDefault(i(326)),w=c.__importDefault(i(327)),A=c.__importDefault(i(328)),E=c.__importDefault(i(329)),_=c.__importDefault(i(331)),v=c.__importDefault(i(333)),m=c.__importDefault(i(334)),b=c.__importDefault(i(337)),S=c.__importDefault(i(338)),x=c.__importDefault(i(339)),O=c.__importDefault(i(350)),D=c.__importDefault(i(365)),V=c.__importDefault(i(369)),I=c.__importDefault(i(137)),z=c.__importDefault(i(378)),T=c.__importDefault(i(380)),B=c.__importDefault(i(381)),L=c.__importDefault(i(382)),U=c.__importDefault(i(401)),W=c.__importDefault(i(406)),R=c.__importDefault(i(409));r.default={bold:f.default,head:g.default,italic:C.default,link:y.default,underline:w.default,strikeThrough:A.default,fontName:E.default,fontSize:_.default,justify:v.default,quote:m.default,backColor:b.default,foreColor:S.default,video:x.default,image:O.default,indent:D.default,emoticon:V.default,list:I.default,lineHeight:z.default,undo:T.default,redo:B.default,table:L.default,code:U.default,splitLine:W.default,todo:R.default}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(23)),g=c.__importDefault(i(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
<i class="w-e-icon-bold"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("bold"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("bold")?this.active():this.unActive()},w}(f.default);r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(27)),f=s(i(29)),g=s(i(4)),y=s(i(317)),C=s(i(28));(0,d.default)(r,"__esModule",{value:!0});var w=i(2),A=w.__importDefault(i(24)),E=w.__importDefault(i(3)),_=i(6),v=i(7),m=function(b){w.__extends(S,b);function S(x){var O=this,D=E.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),V={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:E.default("<h1>H1</h1>"),value:"<h1>"},{$elem:E.default("<h2>H2</h2>"),value:"<h2>"},{$elem:E.default("<h3>H3</h3>"),value:"<h3>"},{$elem:E.default("<h4>H4</h4>"),value:"<h4>"},{$elem:E.default("<h5>H5</h5>"),value:"<h5>"},{$elem:E.default("<p>"+x.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function(T){O.command(T)}};O=b.call(this,D,x,V)||this;var I=x.config.onCatalogChange;return I&&(O.oldCatalogs=[],O.addListenerCatalog(),O.getCatalogs()),O}return S.prototype.command=function(x){var O=this.editor,D=O.selection.getSelectionContainerElem();if(D&&O.$textElem.equal(D))this.setMultilineHead(x);else{var V;if((0,c.default)(V=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(V,E.default(D).getNodeName())>-1)return;O.cmd.do("formatBlock",x)}x!=="<p>"&&this.addUidForSelectionElem()},S.prototype.addUidForSelectionElem=function(){var x=this.editor,O=x.selection.getSelectionContainerElem(),D=_.getRandomCode();E.default(O).attr("id",D)},S.prototype.addListenerCatalog=function(){var x=this,O=this.editor;O.txt.eventHooks.changeEvents.push(function(){x.getCatalogs()})},S.prototype.getCatalogs=function(){var x=this.editor,O=this.editor.$textElem,D=x.config.onCatalogChange,V=(0,f.default)(O).call(O,"h1,h2,h3,h4,h5"),I=[];(0,g.default)(V).call(V,function(z,T){var B=E.default(z),L=B.attr("id"),U=B.getNodeName(),W=B.text();L||(L=_.getRandomCode(),B.attr("id",L)),W&&I.push({tag:U,id:L,text:W})}),(0,y.default)(this.oldCatalogs)!==(0,y.default)(I)&&(this.oldCatalogs=I,D&&D(I))},S.prototype.setMultilineHead=function(x){var O=this,D,V,I=this.editor,z=I.selection,T=(D=z.getSelectionContainerElem())===null||D===void 0?void 0:D.elems[0],B=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=E.default(z.getSelectionStartElem()),U=E.default(z.getSelectionEndElem());U.elems[0].outerHTML===E.default(v.EMPTY_P).elems[0].outerHTML&&!U.elems[0].nextSibling&&(U=U.prev());var W=[];W.push(L.getNodeTop(I));var R=[],k=(V=z.getRange())===null||V===void 0?void 0:V.commonAncestorContainer.childNodes;k==null||(0,g.default)(k).call(k,function(Z,J){Z===W[0].getNode()&&R.push(J),Z===U.getNodeTop(I).getNode()&&R.push(J)});for(var P=0;W[P].getNode()!==U.getNodeTop(I).getNode();){if(!W[P].elems[0])return;var j=E.default(W[P].next().getNode());W.push(j),P++}W==null||(0,g.default)(W).call(W,function(Z,J){if(!O.hasTag(Z,B)){var F=E.default(x),oe=Z.parent().getNode();F.html(""+Z.html()),oe.insertBefore(F.getNode(),Z.getNode()),Z.remove()}}),z.createRangeByElems(T.children[R[0]],T.children[R[1]])},S.prototype.hasTag=function(x,O){var D=this,V;if(!x)return!1;if((0,C.default)(O).call(O,x==null?void 0:x.getNodeName()))return!0;var I=!1;return(V=x.children())===null||V===void 0||(0,g.default)(V).call(V,function(z){I=D.hasTag(E.default(z),O)}),I},S.prototype.tryChangeActive=function(){var x=this.editor,O=/^h/i,D=x.cmd.queryCommandValue("formatBlock");O.test(D)?this.active():this.unActive()},S}(A.default);r.default=m},function(o,r,i){o.exports=i(318)},function(o,r,i){var s=i(319);o.exports=s},function(o,r,i){i(320);var s=i(9);s.JSON||(s.JSON={stringify:JSON.stringify}),o.exports=function(c,f,g){return s.JSON.stringify.apply(null,arguments)}},function(o,r,i){var s=i(5),d=i(36),c=i(11),f=d("JSON","stringify"),g=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,w=function(_,v,m){var b=m.charAt(v-1),S=m.charAt(v+1);return y.test(_)&&!C.test(S)||C.test(_)&&!y.test(b)?"\\u"+_.charCodeAt(0).toString(16):_},A=c(function(){return f("\uDF06\uD834")!=='"\\udf06\\ud834"'||f("\uDEAD")!=='"\\udead"'});f&&s({target:"JSON",stat:!0,forced:A},{stringify:function(_,v,m){var b=f.apply(null,arguments);return typeof b=="string"?b.replace(g,w):b}})},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(17));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(38)),y=f.__importDefault(i(3)),C=f.__importDefault(i(322)),w=f.__importStar(i(96)),A=f.__importDefault(i(33)),E=f.__importDefault(i(324)),_=i(7),v=function(m){f.__extends(b,m);function b(S){var x=this,O=y.default('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');return x=m.call(this,O,S)||this,E.default(S),x}return b.prototype.clickHandler=function(){var S=this.editor,x,O=S.selection.getSelectionContainerElem(),D=S.$textElem,V=D.html(),I=(0,c.default)(V).call(V);if(I===_.EMPTY_P){var z=D.children();S.selection.createRangeByElem(z,!0,!0),O=S.selection.getSelectionContainerElem()}if(!(O&&S.$textElem.equal(O)))if(this.isActive){var T="",B="";if(x=S.selection.getSelectionContainerElem(),!x)return;if(x.getNodeName()!=="A"){var L=w.getParentNodeA(x);x=y.default(L)}T=x.elems[0].innerText,B=x.attr("href"),this.createPanel(T,B)}else S.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(S.selection.getSelectionText(),"")},b.prototype.createPanel=function(S,x){var O=C.default(this.editor,S,x),D=new A.default(this,O);D.create()},b.prototype.tryChangeActive=function(){var S=this.editor;w.default(S)?this.active():this.unActive()},b}(g.default);r.default=v},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(28)),f=s(i(17)),g=s(i(29));(0,d.default)(r,"__esModule",{value:!0});var y=i(2),C=i(6),w=y.__importDefault(i(3)),A=y.__importStar(i(96)),E=i(323);function _(v,m,b){var S=C.getRandom("input-link"),x=C.getRandom("input-text"),O=C.getRandom("btn-ok"),D=C.getRandom("btn-del"),V=A.default(v)?"inline-block":"none",I;function z(){if(!!A.default(v)){var W=v.selection.getSelectionContainerElem();!W||(v.selection.createRangeByElem(W),v.selection.restoreSelection(),I=W)}}function T(W,R){var k=W.replace(/</g,"&lt;").replace(/>/g,"&gt;"),P=w.default('<a target="_blank">'+k+"</a>"),j=P.elems[0];j.innerText=W,j.href=R,A.default(v)&&z(),v.cmd.do("insertElem",P)}function B(){if(!!A.default(v))if(z(),I.getNodeName()==="A"){var W,R=I.elems[0],k=R.parentElement;k&&(0,c.default)(W=A.EXTRA_TAG).call(W,k.nodeName)?k.innerHTML=R.innerHTML:v.cmd.do("insertHTML","<span>"+R.innerHTML+"</span>")}else{var P=A.getParentNodeA(I),j=P.innerHTML;v.cmd.do("insertHTML","<span>"+j+"</span>")}}function L(W,R){var k=v.config.linkCheck(W,R);if(k!==void 0){if(k===!0)return!0;v.config.customAlert(k,"warning")}return!1}var U={width:300,height:0,tabs:[{title:v.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`<div>
<input
id="`+x+`"
type="text"
class="block"
placeholder="`+v.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
</td>
<input
id="`+S+`"
type="text"
class="block"
placeholder="`+v.i18next.t("\u5982")+` https://..."/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+O+`" class="right">
`+v.i18next.t("\u63D2\u5165")+`
</button>
<button type="button" id="`+D+'" class="gray right" style="display:'+V+`">
`+v.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
</button>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var R,k,P,j,Z,J=v.selection.getSelectionContainerElem(),F=J==null?void 0:J.elems[0];v.selection.restoreSelection();var oe=v.selection.getSelectionRangeTopNodes()[0].getNode(),pe=window.getSelection(),se=w.default("#"+S),ye=w.default("#"+x),fe=(0,f.default)(R=se.val()).call(R),ue=(0,f.default)(k=ye.val()).call(k),he="";pe&&!(pe!=null&&pe.isCollapsed)&&(he=(j=E.insertHtml(pe,oe))===null||j===void 0?void 0:(0,f.default)(j).call(j));var $=he==null?void 0:he.replace(/<.*?>/g,""),Y=(Z=$==null?void 0:$.length)!==null&&Z!==void 0?Z:0;if(Y<=ue.length){var Q=ue.substring(0,Y),K=ue.substring(Y);$===Q&&(ue=$+K)}if(!!fe&&(ue||(ue=fe),!!L(ue,fe))){if((F==null?void 0:F.nodeName)==="A")return F.setAttribute("href",fe),F.innerText=ue,!0;if((F==null?void 0:F.nodeName)!=="A"&&(0,c.default)(P=A.EXTRA_TAG).call(P,F.nodeName)){var te=A.getParentNodeA(J);if(te)return te.setAttribute("href",fe),F.innerText=ue,!0}return T(ue,fe),!0}},bindEnter:!0},{selector:"#"+D,type:"click",fn:function(){return B(),!0}}]}],setLinkValue:function(R,k){var P="",j="",Z;k==="text"&&(P="#"+x,j=m),k==="link"&&(P="#"+S,j=b),Z=(0,g.default)(R).call(R,P).elems[0],Z.value=j}};return U}r.default=_},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0}),r.insertHtml=r.createPartHtml=r.makeHtmlString=r.getTopNode=void 0;function f(E,_){var v=E,m=E;do{if(v.textContent===_)break;m=v,v.parentNode&&(v=v==null?void 0:v.parentNode)}while((v==null?void 0:v.nodeName)!=="P");return m}r.getTopNode=f;function g(E,_){var v=E.nodeName,m="";if(E.nodeType===3||/^(h|H)[1-6]$/.test(v))return _;if(E.nodeType===1){var b=E.getAttribute("style"),S=E.getAttribute("face"),x=E.getAttribute("color");b&&(m=m+(' style="'+b+'"')),S&&(m=m+(' face="'+S+'"')),x&&(m=m+(' color="'+x+'"'))}return v=v.toLowerCase(),"<"+v+m+">"+_+"</"+v+">"}r.makeHtmlString=g;function y(E,_,v,m){var b,S=(b=_.textContent)===null||b===void 0?void 0:b.substring(v,m),x=_,O="";do O=g(x,S!=null?S:""),S=O,x=x==null?void 0:x.parentElement;while(x&&x.textContent!==E);return O}r.createPartHtml=y;function C(E,_){var v,m,b,S,x,O=E.anchorNode,D=E.focusNode,V=E.anchorOffset,I=E.focusOffset,z=(v=_.textContent)!==null&&v!==void 0?v:"",T=w(_),B="",L="",U="",W="",R=O,k=D,P=O;if(O!=null&&O.isEqualNode(D!=null?D:null)){var j=y(z,O,V,I);return j=A(T,j),j}for(O&&(L=y(z,O,V!=null?V:0)),D&&(W=y(z,D,0,I)),O&&(R=f(O,z)),D&&(k=f(D,z)),P=(m=R==null?void 0:R.nextSibling)!==null&&m!==void 0?m:O;!(P!=null&&P.isEqualNode(k!=null?k:null));){var Z=P==null?void 0:P.nodeName;if(Z==="#text")U=U+(P==null?void 0:P.textContent);else{var J=(S=(b=P==null?void 0:P.firstChild)===null||b===void 0?void 0:b.parentElement)===null||S===void 0?void 0:S.innerHTML;P&&(U=U+g(P,J!=null?J:""))}var F=(x=P==null?void 0:P.nextSibling)!==null&&x!==void 0?x:P;if(F===P)break;P=F}return B=""+L+U+W,B=A(T,B),B}r.insertHtml=C;function w(E){for(var _,v=(_=E.textContent)!==null&&_!==void 0?_:"",m=[];(E==null?void 0:E.textContent)===v;)E.nodeName!=="P"&&E.nodeName!=="TABLE"&&m.push(E),E=E.childNodes[0];return m}function A(E,_){return(0,c.default)(E).call(E,function(v){_=g(v,_)}),_}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(325));function g(y){f.default(y)}r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(28));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=f.__importDefault(i(39)),C=i(96);function w(E){var _;function v(b){var S=[{$elem:g.default("<span>"+E.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(O,D){var V=D.attr("href");return window.open(V,"_target"),!0}},{$elem:g.default("<span>"+E.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(O,D){var V,I;O.selection.createRangeByElem(D),O.selection.restoreSelection();var z=D.childNodes();if((z==null?void 0:z.getNodeName())==="IMG"){var T=(I=(V=O.selection.getSelectionContainerElem())===null||V===void 0?void 0:V.children())===null||I===void 0?void 0:I.elems[0].children[0];O.cmd.do("insertHTML",`<img
src=`+(T==null?void 0:T.getAttribute("src"))+`
style=`+(T==null?void 0:T.getAttribute("style"))+">")}else{var B,L=D.elems[0],U=L.innerHTML,W=L.parentElement;W&&(0,c.default)(B=C.EXTRA_TAG).call(B,W.nodeName)?W.innerHTML=U:O.cmd.do("insertHTML","<span>"+U+"</span>")}return!0}}];_=new y.default(E,b,S),_.create()}function m(){_&&(_.remove(),_=null)}return{showLinkTooltip:v,hideLinkTooltip:m}}function A(E){var _=w(E),v=_.showLinkTooltip,m=_.hideLinkTooltip;E.txt.eventHooks.linkClickEvents.push(v),E.txt.eventHooks.clickEvents.push(m),E.txt.eventHooks.keyupEvents.push(m),E.txt.eventHooks.toolbarClickEvents.push(m),E.txt.eventHooks.menuClickEvents.push(m),E.txt.eventHooks.textScrollEvents.push(m)}r.default=A},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(23)),g=c.__importDefault(i(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
<i class="w-e-icon-italic"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("italic"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("italic")?this.active():this.unActive()},w}(f.default);r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(23)),g=c.__importDefault(i(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
<i class="w-e-icon-underline"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("underline"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("underline")?this.active():this.unActive()},w}(f.default);r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(23)),g=c.__importDefault(i(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
<i class="w-e-icon-strikethrough"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("strikeThrough"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},w}(f.default);r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(24)),g=c.__importDefault(i(3)),y=c.__importDefault(i(330)),C=function(w){c.__extends(A,w);function A(E){var _=this,v=g.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
<i class="w-e-icon-font"></i>
</div>`),m=new y.default(E.config.fontNames),b={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:m.getItemList(),clickHandler:function(x){_.command(x)}};return _=w.call(this,v,E,b)||this,_}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(b!=null){var S=(b==null?void 0:b.nodeName.toLowerCase())!=="p",x=(b==null?void 0:b.getAttribute("face"))===E;if(m){if(S&&!x){var O=v.selection.getSelectionRangeTopNodes();v.selection.createRangeByElem(O[0]),v.selection.moveCursor(O[0].elems[0])}v.selection.setRangeToElem(b),v.selection.createEmptyRange()}v.cmd.do("fontName",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(f.default);r.default=C},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=function(){function C(w){var A=this;this.itemList=[],(0,c.default)(w).call(w,function(E){var _=typeof E=="string"?E:E.value,v=typeof E=="string"?E:E.name;A.itemList.push({$elem:g.default(`<p style="font-family:'`+_+`'">`+v+"</p>"),value:v})})}return C.prototype.getItemList=function(){return this.itemList},C}();r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(24)),g=c.__importDefault(i(3)),y=c.__importDefault(i(332)),C=function(w){c.__extends(A,w);function A(E){var _=this,v=g.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
<i class="w-e-icon-text-heigh"></i>
</div>`),m=new y.default(E.config.fontSizes),b={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:m.getItemList(),clickHandler:function(x){_.command(x)}};return _=w.call(this,v,E,b)||this,_}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];b!=null&&(v.cmd.do("fontSize",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection()))},A.prototype.tryChangeActive=function(){},A}(f.default);r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=function(){function y(C){this.itemList=[];for(var w in C){var A=C[w];this.itemList.push({$elem:f.default('<p style="font-size:'+w+'">'+A.name+"</p>"),value:A.value})}}return y.prototype.getItemList=function(){return this.itemList},y}();r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(27));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(24)),C=g.__importDefault(i(3)),w=["LI"],A=["BLOCKQUOTE"],E=function(_){g.__extends(v,_);function v(m){var b=this,S=C.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),x={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
</p>`),value:"left"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
</p>`),value:"center"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
</p>`),value:"right"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
</p>`),value:"justify"}],clickHandler:function(D){b.command(D)}};return b=_.call(this,S,m,x)||this,b}return v.prototype.command=function(m){var b=this.editor,S=b.selection,x=S.getSelectionContainerElem();S.saveRange();var O=b.selection.getSelectionRangeTopNodes();if(x!=null&&x.length)if(this.isSpecialNode(x,O[0])||this.isSpecialTopNode(O[0])){var D=this.getSpecialNodeUntilTop(x,O[0]);if(D==null)return;C.default(D).css("text-align",m)}else(0,c.default)(O).call(O,function(V){V.css("text-align",m)});S.restoreSelection()},v.prototype.getSpecialNodeUntilTop=function(m,b){for(var S=m.elems[0],x=b.elems[0];S!=null;){if((0,f.default)(w).call(w,S==null?void 0:S.nodeName)!==-1||S.parentNode===x)return S;S=S.parentNode}return S},v.prototype.isSpecialNode=function(m,b){var S=this.getSpecialNodeUntilTop(m,b);return S==null?!1:(0,f.default)(w).call(w,S.nodeName)!==-1},v.prototype.isSpecialTopNode=function(m){var b;return m==null?!1:(0,f.default)(A).call(A,(b=m.elems[0])===null||b===void 0?void 0:b.nodeName)!==-1},v.prototype.tryChangeActive=function(){},v}(y.default);r.default=E},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=f.__importDefault(i(23)),C=f.__importDefault(i(335)),w=f.__importDefault(i(336)),A=i(7),E=function(_){f.__extends(v,_);function v(m){var b=this,S=g.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
<i class="w-e-icon-quotes-left"></i>
</div>`);return b=_.call(this,S,m)||this,C.default(m),b}return v.prototype.clickHandler=function(){var m,b,S=this.editor,x=S.selection.isSelectionEmpty(),O=S.selection.getSelectionRangeTopNodes(),D=O[O.length-1],V=this.getTopNodeName();if(V==="BLOCKQUOTE"){var I=g.default(D.childNodes()),z=I.length,T=D;(0,c.default)(I).call(I,function(W){var R=g.default(W);R.insertAfter(T),T=R}),D.remove(),S.selection.moveCursor(I.elems[z-1]),this.tryChangeActive()}else{var B=w.default(O);if(S.$textElem.equal(D)){var L=(m=S.selection.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0];S.selection.createRangeByElems(L.children[0],L.children[0]),O=S.selection.getSelectionRangeTopNodes(),B=w.default(O),D.append(B)}else B.insertAfter(D);this.delSelectNode(O);var U=(b=B.childNodes())===null||b===void 0?void 0:b.last().getNode();if(U==null)return;U.textContent?S.selection.moveCursor(U):S.selection.moveCursor(U,0),this.tryChangeActive(),g.default(A.EMPTY_P).insertAfter(B);return}x&&(S.selection.collapseRange(),S.selection.restoreSelection())},v.prototype.tryChangeActive=function(){var m,b=this.editor,S=(m=b.selection.getSelectionRangeTopNodes()[0])===null||m===void 0?void 0:m.getNodeName();S==="BLOCKQUOTE"?this.active():this.unActive()},v.prototype.getTopNodeName=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes()[0],S=b==null?void 0:b.getNodeName();return S},v.prototype.delSelectNode=function(m){(0,c.default)(m).call(m,function(b){b.remove()})},v}(y.default);r.default=E},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=i(7),g=c.__importDefault(i(3));function y(C){function w(A){var E,_=C.selection.getSelectionContainerElem(),v=C.selection.getSelectionRangeTopNodes()[0];if((v==null?void 0:v.getNodeName())==="BLOCKQUOTE"){if(_.getNodeName()==="BLOCKQUOTE"){var m=(E=_.childNodes())===null||E===void 0?void 0:E.getNode();C.selection.moveCursor(m)}if(_.text()===""){A.preventDefault(),_.remove();var b=g.default(f.EMPTY_P);b.insertAfter(v),C.selection.moveCursor(b.getNode(),0)}v.text()===""&&v.remove()}}C.txt.eventHooks.enterDownEvents.push(w)}r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3));function y(C){var w=g.default("<blockquote></blockquote>");return(0,c.default)(C).call(C,function(A){w.append(A.clone(!0))}),w}r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(24)),y=f.__importDefault(i(3)),C=i(6),w=function(A){f.__extends(E,A);function E(_){var v,m=this,b=y.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
<i class="w-e-icon-paint-brush"></i>
</div>`),S={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,c.default)(v=_.config.colors).call(v,function(x){return{$elem:y.default('<i style="color:'+x+';" class="w-e-icon-paint-brush"></i>'),value:x}}),clickHandler:function(O){m.command(O)}};return m=A.call(this,b,_,S)||this,m}return E.prototype.command=function(_){var v,m=this.editor,b=m.selection.isSelectionEmpty(),S=(v=m.selection.getSelectionContainerElem())===null||v===void 0?void 0:v.elems[0];if(S!=null){var x=(S==null?void 0:S.nodeName.toLowerCase())!=="p",O=S==null?void 0:S.style.backgroundColor,D=C.hexToRgb(_)===O;if(b){if(x&&!D){var V=m.selection.getSelectionRangeTopNodes();m.selection.createRangeByElem(V[0]),m.selection.moveCursor(V[0].elems[0])}m.selection.createEmptyRange()}m.cmd.do("backColor",_),b&&(m.selection.collapseRange(),m.selection.restoreSelection())}},E.prototype.tryChangeActive=function(){},E}(g.default);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(24)),y=f.__importDefault(i(3)),C=function(w){f.__extends(A,w);function A(E){var _,v=this,m=y.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
<i class="w-e-icon-pencil2"></i>
</div>`),b={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(_=E.config.colors).call(_,function(S){return{$elem:y.default('<i style="color:'+S+';" class="w-e-icon-pencil2"></i>'),value:S}}),clickHandler:function(x){v.command(x)}};return v=w.call(this,m,E,b)||this,v}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(b!=null){var S=v.selection.getSelectionText();if(b.nodeName==="A"&&b.textContent===S){var x=y.default("<span>&#8203;</span>").getNode();b.appendChild(x)}v.cmd.do("foreColor",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(g.default);r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(33)),y=c.__importDefault(i(38)),C=c.__importDefault(i(340)),w=c.__importDefault(i(346)),A=function(E){c.__extends(_,E);function _(v){var m=this,b=f.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
<i class="w-e-icon-play"></i>
</div>`);return m=E.call(this,b,v)||this,w.default(v),m}return _.prototype.clickHandler=function(){this.createPanel("")},_.prototype.createPanel=function(v){var m=C.default(this.editor,v),b=new g.default(this,m);b.create()},_.prototype.tryChangeActive=function(){},_}(y.default);r.default=A},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(17));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=i(6),y=f.__importDefault(i(3)),C=f.__importDefault(i(341)),w=i(7);function A(E,_){var v=E.config,m=new C.default(E),b=g.getRandom("input-iframe"),S=g.getRandom("btn-ok"),x=g.getRandom("input-upload"),O=g.getRandom("btn-local-ok");function D(T){E.cmd.do("insertHTML",T+w.EMPTY_P),E.config.onlineVideoCallback(T)}function V(T){var B=E.config.onlineVideoCheck(T);return B===!0?!0:(typeof B=="string"&&E.config.customAlert(B,"error"),!1)}var I=[{title:E.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
<div id="`+O+`" class="w-e-up-btn">
<i class="w-e-icon-upload2"></i>
</div>
<div style="display:none;">
<input id="`+x+`" type="file" accept="video/*"/>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var B=y.default("#"+x),L=B.elems[0];if(L)L.click();else return!0}},{selector:"#"+x,type:"change",fn:function(){var B=y.default("#"+x),L=B.elems[0];if(!L)return!0;var U=L.files;return U.length&&m.uploadVideo(U),!0}}]},{title:E.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
<input
id="`+b+`"
type="text"
class="block"
placeholder="`+E.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+S+`" class="right">
`+E.i18next.t("\u63D2\u5165")+`
</button>
</div>
</div>`,events:[{selector:"#"+S,type:"click",fn:function(){var B,L=y.default("#"+b),U=(0,c.default)(B=L.val()).call(B);if(!!U&&!!V(U))return D(U),!0},bindEnter:!0}]}],z={width:300,height:0,tabs:[]};return window.FileReader&&(v.uploadVideoServer||v.customUploadVideo)&&z.tabs.push(I[0]),v.showLinkVideo&&z.tabs.push(I[1]),z}r.default=A},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(133)),f=s(i(57)),g=s(i(4)),y=s(i(27));(0,d.default)(r,"__esModule",{value:!0});var C=i(2),w=i(6),A=C.__importDefault(i(135)),E=C.__importDefault(i(136)),_=i(7),v=i(6),m=function(){function b(S){this.editor=S}return b.prototype.uploadVideo=function(S){var x=this;if(!!S.length){var O=this.editor,D=O.config,V="validate.",I=function($){return O.i18next.t(V+$)},z=D.uploadVideoServer,T=D.uploadVideoMaxSize,B=T/1024,L=D.uploadVideoName,U=D.uploadVideoParams,W=D.uploadVideoParamsWithUrl,R=D.uploadVideoHeaders,k=D.uploadVideoHooks,P=D.uploadVideoTimeout,j=D.withVideoCredentials,Z=D.customUploadVideo,J=D.uploadVideoAccept,F=[],oe=[];if(w.arrForEach(S,function(he){var $=he.name,Y=he.size/1024/1024;if(!(!$||!Y)){if(!(J instanceof Array)){oe.push("\u3010"+J+"\u3011"+I("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(J).call(J,function(Q){return Q===$.split(".")[$.split(".").length-1]})){oe.push("\u3010"+$+"\u3011"+I("\u4E0D\u662F\u89C6\u9891"));return}if(B<Y){oe.push("\u3010"+$+"\u3011"+I("\u5927\u4E8E")+" "+B+"M");return}F.push(he)}}),oe.length){D.customAlert(I("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+oe.join(`
`),"warning");return}if(F.length===0){D.customAlert(I("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Z&&typeof Z=="function"){var pe;Z(F,(0,f.default)(pe=this.insertVideo).call(pe,this));return}var se=new FormData;if((0,g.default)(F).call(F,function(he,$){var Y=L||he.name;F.length>1&&(Y=Y+($+1)),se.append(Y,he)}),z){var ye=z.split("#");z=ye[0];var fe=ye[1]||"";(0,g.default)(w).call(w,U,function(he,$){W&&((0,y.default)(z).call(z,"?")>0?z+="&":z+="?",z=z+he+"="+$),se.append(he,$)}),fe&&(z+="#"+fe);var ue=A.default(z,{timeout:P,formData:se,headers:R,withCredentials:!!j,beforeSend:function($){if(k.before)return k.before($,O,F)},onTimeout:function($){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),k.timeout&&k.timeout($,O)},onProgress:function($,Y){var Q=new E.default(O);Y.lengthComputable&&($=Y.loaded/Y.total,Q.show($))},onError:function($){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+I("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+$.status),k.error&&k.error($,O)},onFail:function($,Y){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+": ")+Y),k.fail&&k.fail($,O,Y)},onSuccess:function($,Y){if(k.customInsert){var Q;k.customInsert((0,f.default)(Q=x.insertVideo).call(Q,x),Y,O);return}if(Y.errno!="0"){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+" errno="+Y.errno),k.fail&&k.fail($,O,Y);return}var K=Y.data;x.insertVideo(K.url),k.success&&k.success($,O,Y)}});typeof ue=="string"&&D.customAlert(ue,"error")}}},b.prototype.insertVideo=function(S){var x=this.editor,O=x.config,D="validate.",V=function(T,B){return B===void 0&&(B=D),x.i18next.t(B+T)};if(!O.customInsertVideo)v.UA.isFirefox?x.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+S+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):x.cmd.do("insertHTML",'<video src="'+S+'" controls="controls" style="max-width:100%"></video>'+_.EMPTY_P);else{O.customInsertVideo(S);return}var I=document.createElement("video");I.onload=function(){I=null},I.onerror=function(){O.customAlert(V("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+V("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+V("\u89C6\u9891\u94FE\u63A5")+' "'+S+'"\uFF0C'+V("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),I=null},I.onabort=function(){return I=null},I.src=S},b}();r.default=m},function(o,r,i){o.exports=i(343)},function(o,r,i){var s=i(344);o.exports=s},function(o,r,i){i(345);var s=i(9);o.exports=s.Date.now},function(o,r,i){var s=i(5);s({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(347)),g=c.__importDefault(i(349));function y(C){f.default(C),g.default(C)}r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(39)),y=c.__importDefault(i(348));function C(A){var E,_=function(S,x){return x===void 0&&(x=""),A.i18next.t(x+S)};function v(b){var S=[{$elem:f.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(O,D){return D.remove(),!0}},{$elem:f.default("<span>100%</span>"),onClick:function(O,D){return D.attr("width","100%"),D.removeAttr("height"),!0}},{$elem:f.default("<span>50%</span>"),onClick:function(O,D){return D.attr("width","50%"),D.removeAttr("height"),!0}},{$elem:f.default("<span>30%</span>"),onClick:function(O,D){return D.attr("width","30%"),D.removeAttr("height"),!0}},{$elem:f.default("<span>"+_("\u91CD\u7F6E")+"</span>"),onClick:function(O,D){return D.removeAttr("width"),D.removeAttr("height"),!0}},{$elem:f.default("<span>"+_("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(O,D){return y.default(D,"left"),!0}},{$elem:f.default("<span>"+_("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(O,D){return y.default(D,"center"),!0}},{$elem:f.default("<span>"+_("menus.justify.\u9760\u53F3")+"</span>"),onClick:function(O,D){return y.default(D,"right"),!0}}];E=new g.default(A,b,S),E.create()}function m(){E&&(E.remove(),E=null)}return{showVideoTooltip:v,hideVideoTooltip:m}}r.createShowHideFn=C;function w(A){var E=C(A),_=E.showVideoTooltip,v=E.hideVideoTooltip;A.txt.eventHooks.videoClickEvents.push(_),A.txt.eventHooks.clickEvents.push(v),A.txt.eventHooks.keyupEvents.push(v),A.txt.eventHooks.toolbarClickEvents.push(v),A.txt.eventHooks.menuClickEvents.push(v),A.txt.eventHooks.textScrollEvents.push(v),A.txt.eventHooks.changeEvents.push(v)}r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(28));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3));function y(w,A){var E=["P"],_=C(w,E);_&&g.default(_).css("text-align",A)}r.default=y;function C(w,A){for(var E,_=w.elems[0];_!=null;){if((0,c.default)(A).call(A,_==null?void 0:_.nodeName))return _;if(((E=_==null?void 0:_.parentNode)===null||E===void 0?void 0:E.nodeName)==="BODY")return null;_=_.parentNode}return _}},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(6);function f(g){if(!!c.UA.isFirefox){var y=g.txt,C=g.selection,w=y.eventHooks.keydownEvents;w.push(function(A){var E=C.getSelectionContainerElem();if(E){var _=E.getNodeTop(g),v=_.length&&_.prev().length?_.prev():null;v&&v.attr("data-we-video-p")&&C.getCursorPos()===0&&A.keyCode===8&&v.remove()}})}}r.default=f},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=i(7),y=f.__importDefault(i(3)),C=f.__importDefault(i(33)),w=f.__importDefault(i(38)),A=f.__importDefault(i(351)),E=f.__importDefault(i(364)),_=function(v){f.__extends(m,v);function m(b){var S=this,x=y.default('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),O=E.default(b);if(O.onlyUploadConf){var D;x=O.onlyUploadConf.$elem,(0,c.default)(D=O.onlyUploadConf.events).call(D,function(V){var I=V.type,z=V.fn||g.EMPTY_FN;x.on(I,function(T){T.stopPropagation(),z(T)})})}return S=v.call(this,x,b)||this,S.imgPanelConfig=O,A.default(b),S}return m.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},m.prototype.createPanel=function(){var b=this.imgPanelConfig,S=new C.default(this,b);this.setPanel(S),S.create()},m.prototype.tryChangeActive=function(){},m}(w.default);r.default=_},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(352)),g=c.__importDefault(i(353)),y=c.__importDefault(i(354)),C=c.__importDefault(i(362)),w=c.__importDefault(i(363));function A(E){f.default(E),g.default(E),y.default(E),C.default(E),w.default(E)}r.default=A},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=i(131),g=c.__importDefault(i(97));function y(E,_){var v=E.config,m=v.pasteFilterStyle,b=v.pasteIgnoreImg,S=f.getPasteHtml(_,m,b);if(S)return!0;var x=f.getPasteText(_);return!!x}function C(E,_){for(var v,m=((v=_.clipboardData)===null||v===void 0?void 0:v.types)||[],b=0;b<m.length;b++){var S=m[b];if(S==="Files")return!0}return!1}function w(E,_){if(!(!C(_,E)&&y(_,E))){var v=f.getPasteImgs(E);if(!!v.length){var m=new g.default(_);m.uploadImg(v)}}}function A(E){E.txt.eventHooks.pasteEvents.unshift(function(_){w(_,E)})}r.default=A},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(97));function g(y){function C(w){var A=w.dataTransfer&&w.dataTransfer.files;if(!(!A||!A.length)){var E=new f.default(y);E.uploadImg(A)}}y.txt.eventHooks.dropEvents.push(C)}r.default=g},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(29)),f=s(i(355));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var g=i(2),y=g.__importDefault(i(3));i(360);var C=i(6);function w(m,b,S,x,O){m.attr("style","width:"+b+"px; height:"+S+"px; left:"+x+"px; top:"+O+"px;")}function A(m,b){var S=y.default(`<div class="w-e-img-drag-mask">
<div class="w-e-img-drag-show-size"></div>
<div class="w-e-img-drag-rb"></div>
</div>`);return S.hide(),b.append(S),S}function E(m,b,S){var x=m.getBoundingClientRect(),O=S.getBoundingClientRect(),D=O.width.toFixed(2),V=O.height.toFixed(2);(0,c.default)(b).call(b,".w-e-img-drag-show-size").text(D+"px * "+V+"px"),w(b,(0,f.default)(D),(0,f.default)(V),O.left-x.left,O.top-x.top),b.show()}function _(m){var b=m.$textContainerElem,S,x=A(m,b);function O(I,z){I.on("click",function(T){T.stopPropagation()}),I.on("mousedown",".w-e-img-drag-rb",function(T){if(T.preventDefault(),!S)return;var B=T.clientX,L=T.clientY,U=z.getBoundingClientRect(),W=S.getBoundingClientRect(),R=W.width,k=W.height,P=W.left-U.left,j=W.top-U.top,Z=R/k,J=R,F=k,oe=y.default(document);function pe(){oe.off("mousemove",se),oe.off("mouseup",ye)}function se(fe){fe.stopPropagation(),fe.preventDefault(),J=R+(fe.clientX-B),F=k+(fe.clientY-L),J/F!=Z&&(F=J/Z),J=(0,f.default)(J.toFixed(2)),F=(0,f.default)(F.toFixed(2)),(0,c.default)(I).call(I,".w-e-img-drag-show-size").text(J.toFixed(2).replace(".00","")+"px * "+F.toFixed(2).replace(".00","")+"px"),w(I,J,F,P,j)}oe.on("mousemove",se);function ye(){S.attr("width",J+""),S.attr("height",F+"");var fe=S.getBoundingClientRect();w(I,J,F,fe.left-U.left,fe.top-U.top),pe()}oe.on("mouseup",ye),oe.on("mouseleave",pe)})}function D(I){if(C.UA.isIE())return!1;I&&(S=I,E(b,x,S))}function V(){(0,c.default)(b).call(b,".w-e-img-drag-mask").hide()}return O(x,b),y.default(document).on("click",V),m.beforeDestroy(function(){y.default(document).off("click",V)}),{showDrag:D,hideDrag:V}}r.createShowHideFn=_;function v(m){var b=_(m),S=b.showDrag,x=b.hideDrag;m.txt.eventHooks.imgClickEvents.push(S),m.txt.eventHooks.textScrollEvents.push(x),m.txt.eventHooks.keyupEvents.push(x),m.txt.eventHooks.toolbarClickEvents.push(x),m.txt.eventHooks.menuClickEvents.push(x),m.txt.eventHooks.changeEvents.push(x)}r.default=v},function(o,r,i){o.exports=i(356)},function(o,r,i){var s=i(357);o.exports=s},function(o,r,i){i(358);var s=i(9);o.exports=s.parseFloat},function(o,r,i){var s=i(5),d=i(359);s({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(o,r,i){var s=i(8),d=i(90).trim,c=i(68),f=s.parseFloat,g=1/f(c+"-0")!==-1/0;o.exports=g?function(C){var w=d(String(C)),A=f(w);return A===0&&w.charAt(0)=="-"?-0:A}:f},function(o,r,i){var s=i(20),d=i(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-text-container {
overflow: hidden;
}
.w-e-img-drag-mask {
position: absolute;
z-index: 1;
border: 1px dashed #ccc;
box-sizing: border-box;
}
.w-e-img-drag-mask .w-e-img-drag-rb {
position: absolute;
right: -5px;
bottom: -5px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #ccc;
cursor: se-resize;
}
.w-e-img-drag-mask .w-e-img-drag-show-size {
min-width: 110px;
height: 22px;
line-height: 22px;
font-size: 14px;
color: #999;
position: absolute;
left: 0;
top: 0;
background-color: #999;
color: #fff;
border-radius: 2px;
padding: 0 5px;
}
`,""]),o.exports=r},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(39));function y(w){var A,E=function(b,S){return S===void 0&&(S=""),w.i18next.t(S+b)};function _(m){var b=[{$elem:f.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(x,O){return x.selection.createRangeByElem(O),x.selection.restoreSelection(),x.cmd.do("delete"),!0}},{$elem:f.default("<span>30%</span>"),onClick:function(x,O){return O.attr("width","30%"),O.removeAttr("height"),!0}},{$elem:f.default("<span>50%</span>"),onClick:function(x,O){return O.attr("width","50%"),O.removeAttr("height"),!0}},{$elem:f.default("<span>100%</span>"),onClick:function(x,O){return O.attr("width","100%"),O.removeAttr("height"),!0}}];b.push({$elem:f.default("<span>"+E("\u91CD\u7F6E")+"</span>"),onClick:function(x,O){return O.removeAttr("width"),O.removeAttr("height"),!0}}),m.attr("data-href")&&b.push({$elem:f.default("<span>"+E("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(x,O){var D=O.attr("data-href");return D&&(D=decodeURIComponent(D),window.open(D,"_target")),!0}}),A=new g.default(w,m,b),A.create()}function v(){A&&(A.remove(),A=null)}return{showImgTooltip:_,hideImgTooltip:v}}r.createShowHideFn=y;function C(w){var A=y(w),E=A.showImgTooltip,_=A.hideImgTooltip;w.txt.eventHooks.imgClickEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.keyupEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_),w.txt.eventHooks.imgDragBarMouseDownEvents.push(_),w.txt.eventHooks.changeEvents.push(_)}r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(f){var g=f.txt,y=f.selection,C=g.eventHooks.keydownEvents;C.push(function(w){var A=y.getSelectionContainerElem(),E=y.getRange();if(!(!E||!A||w.keyCode!==8||!y.isSelectionEmpty())){var _=E.startContainer,v=E.startOffset,m=null;if(v===0)for(;_!==A.elems[0]&&A.elems[0].contains(_)&&_.parentNode&&!m;){if(_.previousSibling){m=_.previousSibling;break}_=_.parentNode}else _.nodeType!==3&&(m=_.childNodes[v-1]);if(!!m){for(var b=m;b.childNodes.length;)b=b.childNodes[b.childNodes.length-1];b instanceof HTMLElement&&b.tagName==="IMG"&&(b.remove(),w.preventDefault())}}})}r.default=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26)),f=s(i(17));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3)),C=i(6),w=g.__importDefault(i(97));function A(E){var _,v=E.config,m=new w.default(E),b=C.getRandom("up-trigger-id"),S=C.getRandom("up-file-id"),x=C.getRandom("input-link-url"),O=C.getRandom("input-link-url-alt"),D=C.getRandom("input-link-url-href"),V=C.getRandom("btn-link"),I="menus.panelMenus.image.",z=function(Z,J){return J===void 0&&(J=I),E.i18next.t(J+Z)};function T(j,Z,J){var F=v.linkImgCheck(j);return F===!0?!0:(typeof F=="string"&&v.customAlert(F,"error"),!1)}var B=v.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(_=v.uploadImgAccept).call(_,function(j){return"image/"+j}).join(","),U=function(Z,J,F){return'<div class="'+Z+'" data-title="'+F+`">
<div id="`+b+`" class="w-e-up-btn">
<i class="`+J+`"></i>
</div>
<div style="display:none;">
<input id="`+S+'" type="file" '+B+' accept="'+L+`"/>
</div>
</div>`},W=[{selector:"#"+b,type:"click",fn:function(){var Z=v.uploadImgFromMedia;if(Z&&typeof Z=="function")return Z(),!0;var J=y.default("#"+S),F=J.elems[0];if(F)F.click();else return!0}},{selector:"#"+S,type:"change",fn:function(){var Z=y.default("#"+S),J=Z.elems[0];if(!J)return!0;var F=J.files;return F!=null&&F.length&&m.uploadImg(F),J&&(J.value=""),!0}}],R=[`<input
id="`+x+`"
type="text"
class="block"
placeholder="`+z("\u56FE\u7247\u5730\u5740")+'"/>'];v.showLinkImgAlt&&R.push(`
<input
id="`+O+`"
type="text"
class="block"
placeholder="`+z("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),v.showLinkImgHref&&R.push(`
<input
id="`+D+`"
type="text"
class="block"
placeholder="`+z("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var k=[{title:z("\u4E0A\u4F20\u56FE\u7247"),tpl:U("w-e-up-img-container","w-e-icon-upload2",""),events:W},{title:z("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
`+R.join("")+`
<div class="w-e-button-container">
<button type="button" id="`+V+'" class="right">'+z("\u63D2\u5165","")+`</button>
</div>
</div>`,events:[{selector:"#"+V,type:"click",fn:function(){var Z,J=y.default("#"+x),F=(0,f.default)(Z=J.val()).call(Z);if(!!F){var oe;if(v.showLinkImgAlt){var pe;oe=(0,f.default)(pe=y.default("#"+O).val()).call(pe)}var se;if(v.showLinkImgHref){var ye;se=(0,f.default)(ye=y.default("#"+D).val()).call(ye)}if(!!T(F))return m.insertImg(F,oe,se),!0}},bindEnter:!0}]}],P={width:300,height:0,tabs:[],onlyUploadConf:{$elem:y.default(U("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:W}};return window.FileReader&&(v.uploadImgShowBase64||v.uploadImgServer||v.customUploadImg||v.uploadImgFromMedia)&&P.tabs.push(k[0]),v.showLinkImg&&(P.tabs.push(k[1]),P.onlyUploadConf=void 0),P}r.default=A},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=f.__importDefault(i(24)),C=f.__importDefault(i(366)),w=function(A){f.__extends(E,A);function E(_){var v=this,m=g.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
<i class="w-e-icon-indent-increase"></i>
</div>`),b={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:g.default(`<p>
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
`+_.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
<p>`),value:"increase"},{$elem:g.default(`<p>
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
`+_.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
<p>`),value:"decrease"}],clickHandler:function(x){v.command(x)}};return v=A.call(this,m,_,b)||this,v}return E.prototype.command=function(_){var v=this.editor,m=v.selection.getSelectionContainerElem();if(m&&v.$textElem.equal(m)){var b=v.selection.getSelectionRangeTopNodes();b.length>0&&(0,c.default)(b).call(b,function(S){C.default(g.default(S),_,v)})}else m&&m.length>0&&(0,c.default)(m).call(m,function(S){C.default(g.default(S),_,v)});v.selection.restoreSelection(),this.tryChangeActive()},E.prototype.tryChangeActive=function(){var _=this.editor,v=_.selection.getSelectionStartElem(),m=g.default(v).getNodeTop(_);m.length<=0||(m.elems[0].style.paddingLeft!=""?this.active():this.unActive())},E}(y.default);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(45)),f=s(i(17));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(367)),C=g.__importDefault(i(368)),w=/^(\d+)(\w+)$/,A=/^(\d+)%$/;function E(v){var m=v.config.indentation;if(typeof m=="string"){if(w.test(m)){var b,S=(0,c.default)(b=(0,f.default)(m).call(m).match(w)).call(b,1,3),x=S[0],O=S[1];return{value:Number(x),unit:O}}else if(A.test(m))return{value:Number((0,f.default)(m).call(m).match(A)[1]),unit:"%"}}else if(m.value!==void 0&&m.unit)return m;return{value:2,unit:"em"}}function _(v,m,b){var S=v.getNodeTop(b),x=/^(P|H[0-9]*)$/;x.test(S.getNodeName())&&(m==="increase"?y.default(S,E(b)):m==="decrease"&&C.default(S,E(b)))}r.default=_},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(45));(0,d.default)(r,"__esModule",{value:!0});function f(g,y){var C=g.elems[0];if(C.style.paddingLeft==="")g.css("padding-left",y.value+y.unit);else{var w=C.style.paddingLeft,A=(0,c.default)(w).call(w,0,w.length-y.unit.length),E=Number(A)+y.value;g.css("padding-left",""+E+y.unit)}}r.default=f},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(45));(0,d.default)(r,"__esModule",{value:!0});function f(g,y){var C=g.elems[0];if(C.style.paddingLeft!==""){var w=C.style.paddingLeft,A=(0,c.default)(w).call(w,0,w.length-y.unit.length),E=Number(A)-y.value;E>0?g.css("padding-left",""+E+y.unit):g.css("padding-left","")}}r.default=f},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(38)),y=c.__importDefault(i(33)),C=c.__importDefault(i(370)),w=function(A){c.__extends(E,A);function E(_){var v=this,m=f.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
<i class="w-e-icon-happy"></i>
</div>`);return v=A.call(this,m,_)||this,v}return E.prototype.createPanel=function(){var _=C.default(this.editor),v=new y.default(this,_);v.create()},E.prototype.clickHandler=function(){this.createPanel()},E.prototype.tryChangeActive=function(){},E}(g.default);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26)),f=s(i(70)),g=s(i(17));(0,d.default)(r,"__esModule",{value:!0});var y=i(2),C=y.__importDefault(i(3));function w(A){var E=A.config.emotions;function _(b){var S=[];if(b.type=="image"){var x;S=(0,c.default)(x=b.content).call(x,function(D){return typeof D=="string"?"":'<span title="'+D.alt+`">
<img class="eleImg" data-emoji="`+D.alt+'" style src="'+D.src+'" alt="['+D.alt+`]">
</span>`}),S=(0,f.default)(S).call(S,function(D){return D!==""})}else{var O;S=(0,c.default)(O=b.content).call(O,function(D){return'<span class="eleImg" title="'+D+'">'+D+"</span>"})}return S.join("").replace(/&nbsp;/g,"")}var v=(0,c.default)(E).call(E,function(b){return{title:A.i18next.t("menus.panelMenus.emoticon."+b.title),tpl:"<div>"+_(b)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(x){var O=C.default(x.target),D=O.getNodeName(),V;if(D==="IMG"){var I;V=(0,g.default)(I=O.parent().html()).call(I)}else V="<span>"+O.html()+"</span>";return A.cmd.do("insertHTML",V),!0}}]}}),m={width:300,height:230,tabs:v};return m}r.default=w},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createListHandle=r.ClassType=void 0;var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(372)),y=c.__importDefault(i(374)),C=c.__importDefault(i(375)),w=c.__importDefault(i(376)),A=c.__importDefault(i(377)),E;(function(b){b.Wrap="WrapListHandle",b.Join="JoinListHandle",b.StartJoin="StartJoinListHandle",b.EndJoin="EndJoinListHandle",b.Other="OtherListHandle"})(E=r.ClassType||(r.ClassType={}));var _={WrapListHandle:g.default,JoinListHandle:y.default,StartJoinListHandle:C.default,EndJoinListHandle:w.default,OtherListHandle:A.default};function v(b,S,x){if(b===E.Other&&x===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return b!==E.Other?new _[b](S):new _[b](S,x)}r.createListHandle=v;var m=function(){function b(S){this.handle=S,this.handle.exec()}return b.prototype.getSelectionRangeElem=function(){return f.default(this.handle.selectionRangeElem.get())},b}();r.default=m},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(58),C=i(47),w=function(A){f.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _=this.options,v=_.listType,m=_.listTarget,b=_.$selectionElem,S=_.$startElem,x=_.$endElem,O,D=[],V=b==null?void 0:b.getNodeName(),I=S.prior,z=x.prior;if(!S.prior&&!x.prior||!(I!=null&&I.prev().length)&&!(z!=null&&z.next().length)){var T;(0,c.default)(T=b==null?void 0:b.children()).call(T,function(P){D.push(g.default(P))}),V===v?O=C.createElementFragment(D,C.createDocumentFragment(),"p"):(O=C.createElement(m),(0,c.default)(D).call(D,function(P){O.appendChild(P.elems[0])})),this.selectionRangeElem.set(O),C.insertBefore(b,O,b.elems[0]),b.remove()}else{for(var B=I;B.length;)D.push(B),z!=null&&z.equal(B)?B=g.default(void 0):B=B.next();var L=I.prev(),U=z.next();if(V===v?O=C.createElementFragment(D,C.createDocumentFragment(),"p"):(O=C.createElement(m),(0,c.default)(D).call(D,function(P){O.append(P.elems[0])})),L.length&&U.length){for(var W=[];U.length;)W.push(U),U=U.next();var R=C.createElement(V);(0,c.default)(W).call(W,function(P){R.append(P.elems[0])}),g.default(R).insertAfter(b),this.selectionRangeElem.set(O);var k=b.next();k.length?C.insertBefore(b,O,k.elems[0]):b.parent().elems[0].append(O)}else if(!L.length)this.selectionRangeElem.set(O),C.insertBefore(b,O,b.elems[0]);else{this.selectionRangeElem.set(O);var k=b.next();k.length?C.insertBefore(b,O,k.elems[0]):b.parent().elems[0].append(O)}}},E}(y.ListHandle);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=function(){function g(){this._element=null}return g.prototype.set=function(y){if(y instanceof DocumentFragment){var C,w=[];(0,c.default)(C=y.childNodes).call(C,function(A){w.push(A)}),y=w}this._element=y},g.prototype.get=function(){return this._element},g.prototype.clear=function(){this._element=null},g}();r.default=f},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(58),C=i(47),w=function(A){f.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v,m,b,S,x,O,D=this.options,V=D.editor,I=D.listType,z=D.listTarget,T=D.$startElem,B=D.$endElem,L,U=V.selection.getSelectionRangeTopNodes(),W=T==null?void 0:T.getNodeName(),R=B==null?void 0:B.getNodeName();if(W===R)if(U.length>2)if(U.shift(),U.pop(),L=C.createElementFragment(C.filterSelectionNodes(U),C.createDocumentFragment()),W===I)(_=B.children())===null||_===void 0||(0,c.default)(_).call(_,function(fe){L.append(fe)}),B.remove(),this.selectionRangeElem.set(L),T.elems[0].append(L);else{for(var k=document.createDocumentFragment(),P=document.createDocumentFragment(),j=C.getStartPoint(T);j.length;){var Z=j.elems[0];j=j.next(),k.append(Z)}for(var J=C.getEndPoint(B),F=[];J.length;)F.unshift(J.elems[0]),J=J.prev();(0,c.default)(F).call(F,function(fe){P.append(fe)});var oe=C.createElement(z);oe.append(k),oe.append(L),oe.append(P),L=oe,this.selectionRangeElem.set(L),g.default(oe).insertAfter(T),!(!((v=T.children())===null||v===void 0)&&v.length)&&T.remove(),!(!((m=B.children())===null||m===void 0)&&m.length)&&B.remove()}else{U.length=0;for(var j=C.getStartPoint(T);j.length;)U.push(j),j=j.next();for(var J=C.getEndPoint(B),F=[];J.length;)F.unshift(J),J=J.prev();U.push.apply(U,F),W===I?(L=C.createElementFragment(U,C.createDocumentFragment(),"p"),this.selectionRangeElem.set(L),C.insertBefore(T,L,B.elems[0])):(L=C.createElement(z),(0,c.default)(U).call(U,function($){L.append($.elems[0])}),this.selectionRangeElem.set(L),g.default(L).insertAfter(T)),!(!((b=T.children())===null||b===void 0)&&b.length)&&B.remove(),!(!((S=B.children())===null||S===void 0)&&S.length)&&B.remove()}else{for(var pe=[],J=C.getEndPoint(B);J.length;)pe.unshift(J),J=J.prev();for(var se=[],j=C.getStartPoint(T);j.length;)se.push(j),j=j.next();if(L=C.createDocumentFragment(),U.shift(),U.pop(),(0,c.default)(se).call(se,function(he){return L.append(he.elems[0])}),L=C.createElementFragment(C.filterSelectionNodes(U),L),(0,c.default)(pe).call(pe,function(he){return L.append(he.elems[0])}),this.selectionRangeElem.set(L),W===I)T.elems[0].append(L),!(!((x=B.children())===null||x===void 0)&&x.length)&&B.remove();else if(!((O=B.children())===null||O===void 0)&&O.length){var ye=B.children();C.insertBefore(ye,L,ye.elems[0])}else B.elems[0].append(L)}},E}(y.ListHandle);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(58),C=i(47),w=function(A){f.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v=this.options,m=v.editor,b=v.listType,S=v.listTarget,x=v.$startElem,O,D=m.selection.getSelectionRangeTopNodes(),V=x==null?void 0:x.getNodeName();D.shift();for(var I=[],z=C.getStartPoint(x);z.length;)I.push(z),z=z.next();V===b?(O=C.createDocumentFragment(),(0,c.default)(I).call(I,function(T){return O.append(T.elems[0])}),O=C.createElementFragment(C.filterSelectionNodes(D),O),this.selectionRangeElem.set(O),x.elems[0].append(O)):(O=C.createElement(S),(0,c.default)(I).call(I,function(T){return O.append(T.elems[0])}),O=C.createElementFragment(C.filterSelectionNodes(D),O),this.selectionRangeElem.set(O),g.default(O).insertAfter(x),!(!((_=x.children())===null||_===void 0)&&_.length)&&x.remove())},E}(y.ListHandle);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(58),C=i(47),w=function(A){f.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v,m=this.options,b=m.editor,S=m.listType,x=m.listTarget,O=m.$endElem,D,V=b.selection.getSelectionRangeTopNodes(),I=O==null?void 0:O.getNodeName();V.pop();for(var z=[],T=C.getEndPoint(O);T.length;)z.unshift(T),T=T.prev();if(I===S)if(D=C.createElementFragment(C.filterSelectionNodes(V),C.createDocumentFragment()),(0,c.default)(z).call(z,function(U){return D.append(U.elems[0])}),this.selectionRangeElem.set(D),!((_=O.children())===null||_===void 0)&&_.length){var B=O.children();C.insertBefore(B,D,B.elems[0])}else O.elems[0].append(D);else{var L=C.filterSelectionNodes(V);L.push.apply(L,z),D=C.createElementFragment(L,C.createElement(x)),this.selectionRangeElem.set(D),g.default(D).insertBefore(O),!(!((v=O.children())===null||v===void 0)&&v.length)&&O.remove()}},E}(y.ListHandle);r.default=w},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=i(58),g=i(47),y=function(C){c.__extends(w,C);function w(A,E){var _=C.call(this,A)||this;return _.range=E,_}return w.prototype.exec=function(){var A=this.options,E=A.editor,_=A.listTarget,v=E.selection.getSelectionRangeTopNodes(),m=g.createElementFragment(g.filterSelectionNodes(v),g.createElement(_));this.selectionRangeElem.set(m),this.range.insertNode(m)},w}(f.ListHandle);r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(27));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(24)),C=g.__importDefault(i(3)),w=g.__importDefault(i(379)),A=function(E){g.__extends(_,E);function _(v){var m=this,b=C.default(`<div class="w-e-menu" data-title="\u884C\u9AD8">
<i class="w-e-icon-row-height"></i>
</div>`),S=new w.default(v,v.config.lineHeights),x={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:S.getItemList(),clickHandler:function(D){v.selection.saveRange(),m.command(D)}};return m=E.call(this,b,v,x)||this,m}return _.prototype.command=function(v){var m=this.editor;m.selection.restoreSelection();var b=C.default(m.selection.getSelectionContainerElem());if(!!b.elems.length){if(b&&m.$textElem.equal(b)){for(var S=!1,x=C.default(m.selection.getSelectionStartElem()).elems[0],O=C.default(m.selection.getSelectionEndElem()).elems[0],D=this.getDom(x),V=this.getDom(O),I=b.elems[0].children,z=0;z<I.length;z++){var T=I[z];if(C.default(T).getNodeName()==="P"&&(T===D&&(S=!0),S&&(C.default(T).css("line-height",v),T===V))){S=!1;return}}m.selection.createRangeByElems(x,O);return}var B=b.elems[0],L=this.getDom(B);C.default(L).getNodeName()==="P"&&(C.default(L).css("line-height",v),m.selection.createRangeByElems(L,L))}},_.prototype.getDom=function(v){var m=C.default(v).elems[0];if(!m.parentNode)return m;function b(S,x){var O=C.default(S.parentNode);return x.$textElem.equal(O)?S:b(O.elems[0],x)}return m=b(m,this.editor),m},_.prototype.styleProcessing=function(v){var m="";return(0,c.default)(v).call(v,function(b){b!==""&&(0,f.default)(b).call(b,"line-height")===-1&&(m=m+b+";")}),m},_.prototype.setRange=function(v,m){var b=this.editor,S=window.getSelection?window.getSelection():document.getSelection();S==null||S.removeAllRanges();var x=document.createRange(),O=v,D=m;x.setStart(O,0),x.setEnd(D,1),S==null||S.addRange(x),b.selection.saveRange(),S==null||S.removeAllRanges(),b.selection.restoreSelection()},_.prototype.tryChangeActive=function(){var v=this.editor,m=v.selection.getSelectionContainerElem();if(!(m&&v.$textElem.equal(m))){var b=C.default(v.selection.getSelectionStartElem());if(b.length!==0){b=this.getDom(b.elems[0]);var S=b.getAttribute("style")?b.getAttribute("style"):"";S&&(0,f.default)(S).call(S,"line-height")!==-1?this.active():this.unActive()}}},_}(y.default);r.default=A},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=function(){function C(w,A){var E=this;this.itemList=[{$elem:g.default("<span>"+w.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(A).call(A,function(_){E.itemList.push({$elem:g.default("<span>"+_+"</span>"),value:_})})}return C.prototype.getItemList=function(){return this.itemList},C}();r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(23)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=f.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
<i class="w-e-icon-undo"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor;A.history.revoke();var E=A.$textElem.children();if(!!(E!=null&&E.length)){var _=E.last();A.selection.createRangeByElem(_,!1,!0),A.selection.restoreSelection()}},w.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},w}(g.default);r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(23)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=f.default(`<div class="w-e-menu" data-title="\u6062\u590D">
<i class="w-e-icon-redo"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor;A.history.restore();var E=A.$textElem.children();if(!!(E!=null&&E.length)){var _=E.last();A.selection.createRangeByElem(_,!1,!0),A.selection.restoreSelection()}},w.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},w}(g.default);r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(38)),g=c.__importDefault(i(3)),y=c.__importDefault(i(383)),C=c.__importDefault(i(33)),w=c.__importDefault(i(392)),A=function(E){c.__extends(_,E);function _(v){var m=this,b=g.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return m=E.call(this,b,v)||this,w.default(v),m}return _.prototype.clickHandler=function(){this.createPanel()},_.prototype.createPanel=function(){var v=y.default(this.editor),m=new C.default(this,v);m.create()},_.prototype.tryChangeActive=function(){},_}(f.default);r.default=A},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(384));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=i(6),y=f.__importDefault(i(3));i(389);var C=f.__importDefault(i(391));function w(E){return E>0&&(0,c.default)(E)}function A(E){var _=new C.default(E),v=g.getRandom("w-col-id"),m=g.getRandom("w-row-id"),b=g.getRandom("btn-link"),S="menus.panelMenus.table.",x=function(I){return E.i18next.t(I)},O=[{title:x(S+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
<div class="w-e-table">
<span>`+x("\u521B\u5EFA")+`</span>
<input id="`+m+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+x(S+"\u884C")+`</span>
<input id="`+v+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+(x(S+"\u5217")+x(S+"\u7684")+x(S+"\u8868\u683C"))+`</span>
</div>
<div class="w-e-button-container">
<button type="button" id="`+b+'" class="right">'+x("\u63D2\u5165")+`</button>
</div>
</div>`,events:[{selector:"#"+b,type:"click",fn:function(){var I=Number(y.default("#"+v).val()),z=Number(y.default("#"+m).val());return w(z)&&w(I)?(_.createAction(z,I),!0):(E.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],D={width:330,height:0,tabs:[]};return D.tabs.push(O[0]),D}r.default=A},function(o,r,i){o.exports=i(385)},function(o,r,i){var s=i(386);o.exports=s},function(o,r,i){i(387);var s=i(9);o.exports=s.Number.isInteger},function(o,r,i){var s=i(5),d=i(388);s({target:"Number",stat:!0},{isInteger:d})},function(o,r,i){var s=i(13),d=Math.floor;o.exports=function(f){return!s(f)&&isFinite(f)&&d(f)===f}},function(o,r,i){var s=i(20),d=i(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-table {
display: flex;
}
.w-e-table .w-e-table-input {
width: 40px;
text-align: center!important;
margin: 0 5px;
}
`,""]),o.exports=r},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=i(7),g=c.__importDefault(i(3)),y=function(){function C(w){this.editor=w}return C.prototype.createAction=function(w,A){var E=this.editor,_=g.default(E.selection.getSelectionContainerElem()),v=g.default(_.elems[0]).parentUntilEditor("UL",E),m=g.default(_.elems[0]).parentUntilEditor("OL",E);if(!(v||m)){var b=this.createTableHtml(w,A);E.cmd.do("insertHTML",b)}},C.prototype.createTableHtml=function(w,A){for(var E="",_="",v=0;v<w;v++){_="";for(var m=0;m<A;m++)v===0?_=_+"<th></th>":_=_+"<td></td>";E=E+"<tr>"+_+"</tr>"}var b='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+E+("</tbody></table>"+f.EMPTY_P);return b},C}();r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(393)),g=i(400);function y(C){f.default(C),g.bindEventKeyboardEvent(C),g.bindClickEvent(C)}r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(39)),y=c.__importDefault(i(394)),C=c.__importDefault(i(399)),w=i(7);function A(m){var b;function S(O){var D=new C.default(m),V="menus.panelMenus.table.",I=function(B,L){return L===void 0&&(L=V),m.i18next.t(L+B)},z=[{$elem:f.default("<span>"+I("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(B,L){return B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",w.EMPTY_P),!0}},{$elem:f.default("<span>"+I("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=f.default(B.selection.getSelectionStartElem()),R=D.getRowNode(W.elems[0]);if(!R)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],R)),P=D.getTableHtml(L.elems[0]),j=D.getTableHtml(y.default.ProcessingRow(f.default(P),k).elems[0]);return j=v(L,j),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",j),!0}},{$elem:f.default("<span>"+I("\u5220\u9664\u884C")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=f.default(B.selection.getSelectionStartElem()),R=D.getRowNode(W.elems[0]);if(!R)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],R)),P=D.getTableHtml(L.elems[0]),j=y.default.DeleteRow(f.default(P),k).elems[0].children[0].children.length,Z="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),j===0?Z=w.EMPTY_P:Z=D.getTableHtml(y.default.DeleteRow(f.default(P),k).elems[0]),Z=v(L,Z),B.cmd.do("insertHTML",Z),!0}},{$elem:f.default("<span>"+I("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=f.default(B.selection.getSelectionStartElem()),R=D.getCurrentColIndex(W.elems[0]),k=D.getTableHtml(L.elems[0]),P=D.getTableHtml(y.default.ProcessingCol(f.default(k),R).elems[0]);return P=v(L,P),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",P),!0}},{$elem:f.default("<span>"+I("\u5220\u9664\u5217")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=f.default(B.selection.getSelectionStartElem()),R=D.getCurrentColIndex(W.elems[0]),k=D.getTableHtml(L.elems[0]),P=y.default.DeleteCol(f.default(k),R),j=P.elems[0].children[0].children[0].children.length,Z="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),j===0?Z=w.EMPTY_P:Z=D.getTableHtml(P.elems[0]),Z=v(L,Z),B.cmd.do("insertHTML",Z),!0}},{$elem:f.default("<span>"+I("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=f.default(B.selection.getSelectionStartElem()),R=D.getRowNode(W.elems[0]);if(!R)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],R));k!==0&&(k=0);var P=D.getTableHtml(L.elems[0]),j=D.getTableHtml(y.default.setTheHeader(f.default(P),k,"th").elems[0]);return j=v(L,j),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",j),!0}},{$elem:f.default("<span>"+I("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(B,L){var U=f.default(B.selection.getSelectionStartElem()),W=D.getRowNode(U.elems[0]);if(!W)return!0;var R=Number(D.getCurrentRowIndex(L.elems[0],W));R!==0&&(R=0);var k=D.getTableHtml(L.elems[0]),P=D.getTableHtml(y.default.setTheHeader(f.default(k),R,"td").elems[0]);return P=v(L,P),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",P),!0}}];b=new g.default(m,O,z),b.create()}function x(){b&&(b.remove(),b=null)}return{showTableTooltip:S,hideTableTooltip:x}}function E(m){var b=m.selection.getSelectionStartElem(),S=m.selection.getSelectionEndElem();return(b==null?void 0:b.elems[0])!==(S==null?void 0:S.elems[0])}function _(m){var b=A(m),S=b.showTableTooltip,x=b.hideTableTooltip;m.txt.eventHooks.tableClickEvents.push(S),m.txt.eventHooks.clickEvents.push(x),m.txt.eventHooks.keyupEvents.push(x),m.txt.eventHooks.toolbarClickEvents.push(x),m.txt.eventHooks.menuClickEvents.push(x),m.txt.eventHooks.textScrollEvents.push(x)}r.default=_;function v(m,b){var S=m.elems[0].nextSibling;return(!S||S.innerHTML==="<br>")&&(b+=""+w.EMPTY_P),b}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(45)),f=s(i(91)),g=s(i(4)),y=s(i(138));(0,d.default)(r,"__esModule",{value:!0});var C=i(2),w=C.__importDefault(i(3));function A(x,O){for(var D=S(x),V=(0,c.default)(Array.prototype).apply(D.children),I=V[0].children.length,z=document.createElement("tr"),T=0;T<I;T++){var B=document.createElement("td");z.appendChild(B)}return(0,f.default)(V).call(V,O+1,0,z),b(D,V),w.default(D.parentNode)}function E(x,O){for(var D=S(x),V=(0,c.default)(Array.prototype).apply(D.children),I=function(B){var L,U=[];for((0,g.default)(L=(0,y.default)(V[B].children)).call(L,function(k){U.push(k)});V[B].children.length!==0;)V[B].removeChild(V[B].children[0]);var W=w.default(U[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,f.default)(U).call(U,O+1,0,W);for(var R=0;R<U.length;R++)V[B].appendChild(U[R])},z=0;z<V.length;z++)I(z);return b(D,V),w.default(D.parentNode)}function _(x,O){var D=S(x),V=(0,c.default)(Array.prototype).apply(D.children);return(0,f.default)(V).call(V,O,1),b(D,V),w.default(D.parentNode)}function v(x,O){for(var D=S(x),V=(0,c.default)(Array.prototype).apply(D.children),I=function(B){var L,U=[];for((0,g.default)(L=(0,y.default)(V[B].children)).call(L,function(R){U.push(R)});V[B].children.length!==0;)V[B].removeChild(V[B].children[0]);(0,f.default)(U).call(U,O,1);for(var W=0;W<U.length;W++)V[B].appendChild(U[W])},z=0;z<V.length;z++)I(z);return b(D,V),w.default(D.parentNode)}function m(x,O,D){for(var V=S(x),I=(0,c.default)(Array.prototype).apply(V.children),z=I[O].children,T=document.createElement("tr"),B=function(W){var R,k=document.createElement(D),P=z[W];(0,g.default)(R=(0,y.default)(P.childNodes)).call(R,function(j){k.appendChild(j)}),T.appendChild(k)},L=0;L<z.length;L++)B(L);return(0,f.default)(I).call(I,O,1,T),b(V,I),w.default(V.parentNode)}function b(x,O){for(;x.children.length!==0;)x.removeChild(x.children[0]);for(var D=0;D<O.length;D++)x.appendChild(O[D])}function S(x){var O=x.elems[0].children[0];return O.nodeName==="COLGROUP"&&(O=x.elems[0].children[x.elems[0].children.length-1]),O}r.default={ProcessingRow:A,ProcessingCol:E,DeleteRow:_,DeleteCol:v,setTheHeader:m}},function(o,r,i){var s=i(396);o.exports=s},function(o,r,i){i(50),i(397);var s=i(9);o.exports=s.Array.from},function(o,r,i){var s=i(5),d=i(398),c=i(115),f=!c(function(g){Array.from(g)});s({target:"Array",stat:!0,forced:f},{from:d})},function(o,r,i){var s=i(40),d=i(31),c=i(114),f=i(112),g=i(35),y=i(69),C=i(113);o.exports=function(A){var E=d(A),_=typeof this=="function"?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=m!==void 0,S=C(E),x=0,O,D,V,I,z,T;if(b&&(m=s(m,v>2?arguments[2]:void 0,2)),S!=null&&!(_==Array&&f(S)))for(I=S.call(E),z=I.next,D=new _;!(V=z.call(I)).done;x++)T=b?c(I,m,[V.value,x],!0):V.value,y(D,x,T);else for(O=g(E.length),D=new _(O);O>x;x++)T=b?m(E[x],x):E[x],y(D,x,T);return D.length=x,D}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(138));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(3)),C=function(){function w(A){this.editor=A}return w.prototype.getRowNode=function(A){var E,_=y.default(A).elems[0];return _.parentNode&&(_=(E=y.default(_).parentUntil("TR",_))===null||E===void 0?void 0:E.elems[0]),_},w.prototype.getCurrentRowIndex=function(A,E){var _,v=0,m=A.children[0];return m.nodeName==="COLGROUP"&&(m=A.children[A.children.length-1]),(0,c.default)(_=(0,f.default)(m.children)).call(_,function(b,S){b===E&&(v=S)}),v},w.prototype.getCurrentColIndex=function(A){var E,_,v=0,m=y.default(A).getNodeName()==="TD"||y.default(A).getNodeName()==="TH"?A:(_=y.default(A).parentUntil("TD",A))===null||_===void 0?void 0:_.elems[0],b=y.default(m).parent();return(0,c.default)(E=(0,f.default)(b.elems[0].children)).call(E,function(S,x){S===m&&(v=x)}),v},w.prototype.getTableHtml=function(A){var E='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+y.default(A).html()+"</table>";return E},w}();r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.bindEventKeyboardEvent=r.bindClickEvent=void 0;var c=i(2),f=c.__importDefault(i(3));function g(w){if(!w.length)return!1;var A=w.elems[0];return A.nodeName==="P"&&A.innerHTML==="<br>"}function y(w){function A(E,_){if(_.detail>=3){var v=window.getSelection();if(v){var m=v.focusNode,b=v.anchorNode,S=f.default(b==null?void 0:b.parentElement);if(!E.isContain(f.default(m))){var x=S.elems[0].tagName==="TD"?S:S.parentUntilEditor("td",w);if(x){var O=w.selection.getRange();O==null||O.setEnd(x.elems[0],x.elems[0].childNodes.length),w.selection.restoreSelection()}}}}}w.txt.eventHooks.tableClickEvents.push(A)}r.bindClickEvent=y;function C(w){var A=w.txt,E=w.selection,_=A.eventHooks.keydownEvents;_.push(function(v){w.selection.saveRange();var m=E.getSelectionContainerElem();if(m){var b=m.getNodeTop(w),S=b.length&&b.prev().length?b.prev():null;if(S&&S.getNodeName()==="TABLE"&&E.isSelectionEmpty()&&E.getCursorPos()===0&&v.keyCode===8){var x=b.next(),O=!!x.length;O&&g(b)&&(b.remove(),w.selection.setRangeToElem(x.elems[0])),v.preventDefault()}}})}r.bindEventKeyboardEvent=C},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26));(0,d.default)(r,"__esModule",{value:!0}),r.formatCodeHtml=void 0;var f=i(2),g=f.__importDefault(i(38)),y=f.__importDefault(i(3)),C=i(6),w=f.__importDefault(i(402)),A=f.__importDefault(i(139)),E=f.__importDefault(i(33)),_=f.__importDefault(i(403));function v(b,S){if(!S)return S;return S=O(S),S=x(S),S=C.replaceSpecialSymbol(S),S;function x(D){var V=D.match(/<pre[\s|\S]+?\/pre>/g);return V===null||(0,c.default)(V).call(V,function(I){D=D.replace(I,I.replace(/<\/code><code>/g,`
`).replace(/<br>/g,""))}),D}function O(D){var V,I=D.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!I||!I.length)return D;for(var z=(0,c.default)(V=C.deepClone(I)).call(V,function(B){return B=B.replace(/<span\sclass="hljs[^>]+>/,""),B.replace(/<\/span>/,"")}),T=0;T<I.length;T++)D=D.replace(I[T],z[T]);return O(D)}}r.formatCodeHtml=v;var m=function(b){f.__extends(S,b);function S(x){var O=this,D=y.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return O=b.call(this,D,x)||this,_.default(x),O}return S.prototype.insertLineCode=function(x){var O=this.editor,D=y.default("<code>"+x+"</code>");O.cmd.do("insertElem",D),O.selection.createRangeByElem(D,!1),O.selection.restoreSelection()},S.prototype.clickHandler=function(){var x=this.editor,O=x.selection.getSelectionText();this.isActive||(x.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(O))},S.prototype.createPanel=function(x,O){var D=w.default(this.editor,x,O),V=new E.default(this,D);V.create()},S.prototype.tryChangeActive=function(){var x=this.editor;A.default(x)?this.active():this.unActive()},S}(g.default);r.default=m},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(26));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=i(6),y=f.__importDefault(i(3)),C=f.__importDefault(i(139)),w=i(7);function A(E,_,v){var m,b=g.getRandom("input-iframe"),S=g.getRandom("select"),x=g.getRandom("btn-ok");function O(z,T){var B,L=C.default(E);L&&D();var U=(B=E.selection.getSelectionStartElem())===null||B===void 0?void 0:B.elems[0].innerHTML;U&&E.cmd.do("insertHTML",w.EMPTY_P);var W=T.replace(/</g,"&lt;").replace(/>/g,"&gt;");E.highlight&&(W=E.highlight.highlightAuto(W).value),E.cmd.do("insertHTML",'<pre><code class="'+z+'">'+W+"</code></pre>");var R=E.selection.getSelectionStartElem(),k=R==null?void 0:R.getNodeTop(E);(k==null?void 0:k.getNextSibling().elems.length)===0&&y.default(w.EMPTY_P).insertAfter(k)}function D(){if(!!C.default(E)){var z=E.selection.getSelectionStartElem(),T=z==null?void 0:z.getNodeTop(E);!T||(E.selection.createRangeByElem(T),E.selection.restoreSelection())}}var V=function(T){return E.i18next.t(T)},I={width:500,height:0,tabs:[{title:V("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
<select name="" id="`+S+`">
`+(0,c.default)(m=E.config.languageType).call(m,function(z){return"<option "+(v==z?"selected":"")+' value ="'+z+'">'+z+"</option>"})+`
</select>
<textarea id="`+b+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+_.replace(/&quot;/g,'"')+`</textarea>
<div class="w-e-button-container">
<button type="button" id="`+x+'" class="right">'+(C.default(E)?V("\u4FEE\u6539"):V("\u63D2\u5165"))+`</button>
</div>
</div>`,events:[{selector:"#"+x,type:"click",fn:function(){var T=document.getElementById(b),B=y.default("#"+S),L=B.val(),U=T.value;if(!!U)return C.default(E)?!1:(O(L,U),!0)}}]}]};return I}r.default=A},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(404)),g=c.__importDefault(i(405));function y(C){f.default(C),g.default(C)}r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(39));function y(w){var A;function E(v){var m="menus.panelMenus.code.",b=function(O,D){return D===void 0&&(D=m),w.i18next.t(D+O)},S=[{$elem:f.default("<span>"+b("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(O,D){return D.remove(),!0}}];A=new g.default(w,v,S),A.create()}function _(){A&&(A.remove(),A=null)}return{showCodeTooltip:E,hideCodeTooltip:_}}r.createShowHideFn=y;function C(w){var A=y(w),E=A.showCodeTooltip,_=A.hideCodeTooltip;w.txt.eventHooks.codeClickEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_)}r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=i(7),g=c.__importDefault(i(3));function y(C){var w=C.$textElem,A=C.selection,E=C.txt,_=E.eventHooks.keydownEvents;_.push(function(v){var m;if(v.keyCode===40){var b=A.getSelectionContainerElem(),S=(m=w.children())===null||m===void 0?void 0:m.last();if((b==null?void 0:b.elems[0].tagName)==="XMP"&&(S==null?void 0:S.elems[0].tagName)==="PRE"){var x=g.default(f.EMPTY_P);w.append(x)}}}),_.push(function(v){C.selection.saveRange();var m=A.getSelectionContainerElem();if(m){var b=m.getNodeTop(C),S=b==null?void 0:b.prev(),x=b==null?void 0:b.getNextSibling();if(S.length&&(S==null?void 0:S.getNodeName())==="PRE"&&x.length===0&&A.getCursorPos()===0&&v.keyCode===8){var O=g.default(f.EMPTY_P);w.append(O)}}})}r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(23)),g=c.__importDefault(i(3)),y=c.__importDefault(i(407)),C=i(6),w=i(7),A=function(E){c.__extends(_,E);function _(v){var m=this,b=g.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return m=E.call(this,b,v)||this,y.default(v),m}return _.prototype.clickHandler=function(){var v=this.editor,m=v.selection.getRange(),b=v.selection.getSelectionContainerElem();if(!!(b!=null&&b.length)){var S=g.default(b.elems[0]),x=S.parentUntil("TABLE",b.elems[0]),O=S.children();S.getNodeName()!=="CODE"&&(x&&g.default(x.elems[0]).getNodeName()==="TABLE"||O&&O.length!==0&&g.default(O.elems[0]).getNodeName()==="IMG"&&!(m!=null&&m.collapsed)||this.createSplitLine())}},_.prototype.createSplitLine=function(){var v="<hr/>"+w.EMPTY_P;C.UA.isFirefox&&(v="<hr/><p></p>"),this.editor.cmd.do("insertHTML",v)},_.prototype.tryChangeActive=function(){},_}(f.default);r.default=A},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(408));function g(y){f.default(y)}r.default=g},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=c.__importDefault(i(39));function y(w){var A;function E(v){var m=[{$elem:f.default("<span>"+w.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(S,x){return S.selection.createRangeByElem(x),S.selection.restoreSelection(),S.cmd.do("delete"),!0}}];A=new g.default(w,v,m),A.create()}function _(){A&&(A.remove(),A=null)}return{showSplitLineTooltip:E,hideSplitLineTooltip:_}}function C(w){var A=y(w),E=A.showSplitLineTooltip,_=A.hideSplitLineTooltip;w.txt.eventHooks.splitLineEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.keyupEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_)}r.default=C},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=f.__importDefault(i(23)),C=i(98),w=f.__importDefault(i(415)),A=f.__importDefault(i(140)),E=function(_){f.__extends(v,_);function v(m){var b=this,S=g.default(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
<i class="w-e-icon-checkbox-checked"></i>
</div>`);return b=_.call(this,S,m)||this,w.default(m),b}return v.prototype.clickHandler=function(){var m=this.editor;C.isAllTodo(m)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},v.prototype.tryChangeActive=function(){C.isAllTodo(this.editor)?this.active():this.unActive()},v.prototype.setTodo=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(S){var x,O=S==null?void 0:S.getNodeName();if(O==="P"){var D=A.default(S),V=D.getTodo(),I=(x=V.children())===null||x===void 0?void 0:x.getNode();V.insertAfter(S),m.selection.moveCursor(I),S.remove()}}),this.tryChangeActive()},v.prototype.cancelTodo=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(S){var x,O,D,V=(O=(x=S.childNodes())===null||x===void 0?void 0:x.childNodes())===null||O===void 0?void 0:O.clone(!0),I=g.default("<p></p>");I.append(V),I.insertAfter(S),(D=I.childNodes())===null||D===void 0||D.get(0).remove(),m.selection.moveCursor(I.getNode()),S.remove()})},v}(y.default);r.default=E},function(o,r,i){o.exports=i(411)},function(o,r,i){var s=i(412);o.exports=s},function(o,r,i){var s=i(413),d=Array.prototype;o.exports=function(c){var f=c.every;return c===d||c instanceof Array&&f===d.every?s:f}},function(o,r,i){i(414);var s=i(15);o.exports=s("Array").every},function(o,r,i){var s=i(5),d=i(32).every,c=i(67),f=i(22),g=c("every"),y=f("every");s({target:"Array",proto:!0,forced:!g||!y},{every:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3)),y=i(98),C=f.__importDefault(i(140)),w=i(98),A=i(7);function E(_){function v(x){var O,D;if(y.isAllTodo(_)){x.preventDefault();var V=_.selection,I=V.getSelectionRangeTopNodes()[0],z=(O=I.childNodes())===null||O===void 0?void 0:O.get(0),T=(D=window.getSelection())===null||D===void 0?void 0:D.anchorNode,B=V.getRange();if(!(B!=null&&B.collapsed)){var L=B==null?void 0:B.commonAncestorContainer.childNodes,U=B==null?void 0:B.startContainer,W=B==null?void 0:B.endContainer,R=B==null?void 0:B.startOffset,k=B==null?void 0:B.endOffset,P=0,j=0,Z=[];L==null||(0,c.default)(L).call(L,function($,Y){$.contains(U)&&(P=Y),$.contains(W)&&(j=Y)}),j-P>1&&(L==null||(0,c.default)(L).call(L,function($,Y){Y<=P||Y>=j||Z.push($)}),(0,c.default)(Z).call(Z,function($){$.remove()})),w.dealTextNode(U,R),w.dealTextNode(W,k,!1),_.selection.moveCursor(W,0)}if(I.text()===""){var J=g.default(A.EMPTY_P);J.insertAfter(I),V.moveCursor(J.getNode()),I.remove();return}var F=V.getCursorPos(),oe=y.getCursorNextNode(z==null?void 0:z.getNode(),T,F),pe=C.default(g.default(oe)),se=pe.getInputContainer(),ye=se.parent().getNode(),fe=pe.getTodo(),ue=se.getNode().nextSibling;if((z==null?void 0:z.text())===""&&(z==null||z.append(g.default("<br>"))),fe.insertAfter(I),!ue||(ue==null?void 0:ue.textContent)===""){if((ue==null?void 0:ue.nodeName)!=="BR"){var he=g.default("<br>");he.insertAfter(se)}V.moveCursor(ye,1)}else V.moveCursor(ye)}}function m(x){var O,D;if(y.isAllTodo(_)){var V=_.selection,I=V.getSelectionRangeTopNodes()[0],z=(O=I.childNodes())===null||O===void 0?void 0:O.getNode(),T=g.default("<p></p>"),B=T.getNode(),L=(D=window.getSelection())===null||D===void 0?void 0:D.anchorNode,U=V.getCursorPos(),W=L.previousSibling;if(I.text()===""){x.preventDefault();var R=g.default(A.EMPTY_P);R.insertAfter(I),I.remove(),V.moveCursor(R.getNode(),0);return}if((W==null?void 0:W.nodeName)==="SPAN"&&W.childNodes[0].nodeName==="INPUT"&&U===0){var k;x.preventDefault(),z==null||(0,c.default)(k=z.childNodes).call(k,function(P,j){j!==0&&B.appendChild(P.cloneNode(!0))}),T.insertAfter(I),I.remove()}}}function b(){var x=_.selection,O=x.getSelectionRangeTopNodes()[0];O&&w.isTodo(O)&&O.text()===""&&(g.default(A.EMPTY_P).insertAfter(O),O.remove())}function S(x){x&&x.target instanceof HTMLInputElement&&x.target.type==="checkbox"&&(x.target.checked?x.target.setAttribute("checked","true"):x.target.removeAttribute("checked"))}_.txt.eventHooks.enterDownEvents.push(v),_.txt.eventHooks.deleteUpEvents.push(b),_.txt.eventHooks.deleteDownEvents.push(m),_.txt.eventHooks.clickEvents.push(S)}r.default=E},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.selectorValidator=void 0;var c=i(2),f=c.__importDefault(i(3)),g=i(6),y=i(7),C=c.__importDefault(i(130)),w={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function A(_){var v=_.toolbarSelector,m=f.default(v),b=_.textSelector,S=_.config,x=S.height,O=_.i18next,D=f.default("<div></div>"),V=f.default("<div></div>"),I,z,T=null;b==null?(z=m.children(),m.append(D).append(V),D.css("background-color",w.toolbarBgColor).css("border",w.border).css("border-bottom",w.toolbarBottomBorder),V.css("border",w.border).css("border-top","none").css("height",x+"px")):(m.append(D),T=f.default(b).children(),f.default(b).append(V),z=V.children()),I=f.default("<div></div>"),I.attr("contenteditable","true").css("width","100%").css("height","100%");var B,L=_.config.placeholder;L!==C.default.placeholder?B=f.default("<div>"+L+"</div>"):B=f.default("<div>"+O.t(L)+"</div>"),B.addClass("placeholder"),z&&z.length?(I.append(z),B.hide()):I.append(f.default(y.EMPTY_P)),T&&T.length&&(I.append(T),B.hide()),V.append(I),V.append(B),D.addClass("w-e-toolbar").css("z-index",_.zIndex.get("toolbar")),V.addClass("w-e-text-container"),V.css("z-index",_.zIndex.get()),I.addClass("w-e-text");var U=g.getRandom("toolbar-elem");D.attr("id",U);var W=g.getRandom("text-elem");I.attr("id",W);var R=V.getBoundingClientRect().height,k=I.getBoundingClientRect().height;R!==k&&I.css("min-height",R+"px"),_.$toolbarElem=D,_.$textContainerElem=V,_.$textElem=I,_.toolbarElemId=U,_.textElemId=W}r.default=A;function E(_){var v="data-we-id",m=/^wangEditor-\d+$/,b=_.textSelector,S=_.toolbarSelector,x={bar:f.default("<div></div>"),text:f.default("<div></div>")};if(S==null)throw new Error("\u9519\u8BEF\uFF1A\u521D\u59CB\u5316\u7F16\u8F91\u5668\u65F6\u5019\u672A\u4F20\u5165\u4EFB\u4F55\u53C2\u6570\uFF0C\u8BF7\u67E5\u9605\u6587\u6863");if(x.bar=f.default(S),!x.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+S);if(m.test(x.bar.attr(v)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668");if(b){if(x.text=f.default(b),!x.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+b);if(m.test(x.text.attr(v)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668")}x.bar.attr(v,_.id),x.text.attr(v,_.id),_.beforeDestroy(function(){x.bar.removeAttr(v),x.text.removeAttr(v)})}r.selectorValidator=E},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(3)),g=i(7);function y(C,w){var A=C.$textElem,E=A.children();if(!E||!E.length){A.append(f.default(g.EMPTY_P)),y(C);return}var _=E.last();if(w){var v=_.html().toLowerCase(),m=_.getNodeName();if(v!=="<br>"&&v!=="<br/>"||m!=="P"){A.append(f.default(g.EMPTY_P)),y(C);return}}C.selection.createRangeByElem(_,!1,!0),C.config.focus?C.selection.restoreSelection():C.selection.clearWindowSelectionRange()}r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3));function y(v){C(v),w(v),A(v)}function C(v){v.txt.eventHooks.changeEvents.push(function(){var m=v.config.onchange;if(m){var b=v.txt.html()||"";v.isFocus=!0,m(b)}v.txt.togglePlaceholder()})}function w(v){v.isFocus=!1;function m(b){var S=b.target,x=g.default(S),O=v.$textElem,D=v.$toolbarElem,V=O.isContain(x),I=D.isContain(x),z=D.elems[0]==b.target;if(V)v.isFocus||_(v),v.isFocus=!0;else{if(I&&!z||!v.isFocus)return;E(v),v.isFocus=!1}}document.activeElement===v.$textElem.elems[0]&&v.config.focus&&(_(v),v.isFocus=!0),g.default(document).on("click",m),v.beforeDestroy(function(){g.default(document).off("click",m)})}function A(v){v.$textElem.on("compositionstart",function(){v.isComposing=!0,v.txt.togglePlaceholder()}).on("compositionend",function(){v.isComposing=!1,v.txt.togglePlaceholder()})}function E(v){var m,b=v.config,S=b.onblur,x=v.txt.html()||"";(0,c.default)(m=v.txt.eventHooks.onBlurEvents).call(m,function(O){return O()}),S(x)}function _(v){var m=v.config,b=m.onfocus,S=v.txt.html()||"";b(S)}r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});function c(f){var g=f.config,y=g.lang,C=g.languages;if(f.i18next!=null){try{f.i18next.init({ns:"wangEditor",lng:y,defaultNS:"wangEditor",resources:C})}catch(w){throw new Error("i18next:"+w)}return}f.i18next={t:function(A){var E=A.split(".");return E[E.length-1]}}}r.default=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(29));(0,d.default)(r,"__esModule",{value:!0}),r.setUnFullScreen=r.setFullScreen=void 0;var f=i(2),g=f.__importDefault(i(3));i(421);var y="w-e-icon-fullscreen",C="w-e-icon-fullscreen_exit",w="w-e-full-screen-editor";r.setFullScreen=function(E){var _=g.default(E.toolbarSelector),v=E.$textContainerElem,m=E.$toolbarElem,b=(0,c.default)(m).call(m,"i."+y),S=E.config;b.removeClass(y),b.addClass(C),_.addClass(w),_.css("z-index",S.zIndexFullScreen);var x=m.getBoundingClientRect();v.css("height","calc(100% - "+x.height+"px)")},r.setUnFullScreen=function(E){var _=g.default(E.toolbarSelector),v=E.$textContainerElem,m=E.$toolbarElem,b=(0,c.default)(m).call(m,"i."+C),S=E.config;b.removeClass(C),b.addClass(y),_.removeClass(w),_.css("z-index","auto"),v.css("height",S.height+"px")};var A=function(_){if(!_.textSelector&&!!_.config.showFullScreen){var v=_.$toolbarElem,m=g.default(`<div class="w-e-menu" data-title="\u5168\u5C4F">
<i class="`+y+`"></i>
</div>`);m.on("click",function(b){var S,x=(0,c.default)(S=g.default(b.currentTarget)).call(S,"i");x.hasClass(y)?(m.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),r.setFullScreen(_)):(m.attr("data-title","\u5168\u5C4F"),r.setUnFullScreen(_))}),v.append(m)}};r.default=A},function(o,r,i){var s=i(20),d=i(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-full-screen-editor {
position: fixed;
width: 100%!important;
height: 100%!important;
left: 0;
top: 0;
}
`,""]),o.exports=r},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(29));(0,d.default)(r,"__esModule",{value:!0});var f=function(y,C){var w,A=y.isEnable?y.$textElem:(0,c.default)(w=y.$textContainerElem).call(w,".w-e-content-mantle"),E=(0,c.default)(A).call(A,"[id='"+C+"']"),_=E.getOffsetData().top;A.scrollTop(_)};r.default=f},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(129)),g={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},y=function(){function C(){this.tier=g,this.baseZIndex=f.default.zIndex}return C.prototype.get=function(w){return w&&this.tier[w]?this.baseZIndex+this.tier[w]:this.baseZIndex},C.prototype.init=function(w){this.baseZIndex==f.default.zIndex&&(this.baseZIndex=w.config.zIndex)},C}();r.default=y},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(70)),f=s(i(4));(0,d.default)(r,"__esModule",{value:!0});var g=i(2),y=g.__importDefault(i(426)),C=i(6),w=i(7);function A(_,v){return(0,c.default)(_).call(_,function(m){var b=m.type,S=m.target,x=m.attributeName;return b!="attributes"||b=="attributes"&&(x=="contenteditable"||S!=v)})}var E=function(_){g.__extends(v,_);function v(m){var b=_.call(this,function(S,x){var O;if(S=A(S,x.target),(O=b.data).push.apply(O,S),m.isCompatibleMode)b.asyncSave();else if(!m.isComposing)return b.asyncSave()})||this;return b.editor=m,b.data=[],b.asyncSave=w.EMPTY_FN,b}return v.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},v.prototype.emit=function(){var m;(0,f.default)(m=this.editor.txt.eventHooks.changeEvents).call(m,function(b){return b()})},v.prototype.observe=function(){var m=this;_.prototype.observe.call(this,this.editor.$textElem.elems[0]);var b=this.editor.config.onchangeTimeout;this.asyncSave=C.debounce(function(){m.save()},b),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){m.asyncSave()})},v}(y.default);r.default=E},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function f(g,y){var C=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(w){g(w,C)},this.observer=new MutationObserver(this.callback),y&&(this.options=y)}return(0,d.default)(f.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),f.prototype.observe=function(g){this.node instanceof Node||(this.node=g,this.connect())},f.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("\u8FD8\u672A\u521D\u59CB\u5316\u7ED1\u5B9A\uFF0C\u8BF7\u60A8\u5148\u7ED1\u5B9A\u6709\u6548\u7684 Node \u8282\u70B9")},f.prototype.disconnect=function(){var g=this.observer.takeRecords();g.length&&this.callback(g),this.observer.disconnect()},f}();r.default=c},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(428)),g=c.__importDefault(i(435)),y=c.__importDefault(i(436)),C=function(){function w(A){this.editor=A,this.content=new f.default(A),this.scroll=new g.default(A),this.range=new y.default(A)}return(0,d.default)(w.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),w.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},w.prototype.save=function(A){A.length&&(this.content.save(A),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},w.prototype.revoke=function(){this.editor.change.disconnect();var A=this.content.revoke();A&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),A&&this.editor.change.emit()},w.prototype.restore=function(){this.editor.change.disconnect();var A=this.content.restore();A&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),A&&this.editor.change.emit()},w}();r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(429)),g=c.__importDefault(i(433)),y=function(){function C(w){this.editor=w}return C.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new g.default(this.editor):this.cache=new f.default(this.editor),this.cache.observe()},C.prototype.save=function(w){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(w)},C.prototype.revoke=function(){var w;return(w=this.cache)===null||w===void 0?void 0:w.revoke()},C.prototype.restore=function(){var w;return(w=this.cache)===null||w===void 0?void 0:w.restore()},C}();r.default=y},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(99)),g=c.__importDefault(i(431)),y=i(432),C=function(w){c.__extends(A,w);function A(E){var _=w.call(this,E.config.historyMaxSize)||this;return _.editor=E,_}return A.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},A.prototype.compile=function(E){return this.save(g.default(E)),this},A.prototype.revoke=function(){return w.prototype.revoke.call(this,function(E){y.revoke(E)})},A.prototype.restore=function(){return w.prototype.restore.call(this,function(E){y.restore(E)})},A}(f.default);r.default=C},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0}),r.CeilStack=void 0;var c=function(){function f(g){g===void 0&&(g=0),this.data=[],this.max=0,this.reset=!1,g=Math.abs(g),g&&(this.max=g)}return f.prototype.resetMax=function(g){g=Math.abs(g),!this.reset&&!isNaN(g)&&(this.max=g,this.reset=!0)},(0,d.default)(f.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),f.prototype.instack=function(g){return this.data.unshift(g),this.max&&this.size>this.max&&(this.data.length=this.max),this},f.prototype.outstack=function(){return this.data.shift()},f.prototype.clear=function(){return this.data.length=0,this},f}();r.CeilStack=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(27));(0,d.default)(r,"__esModule",{value:!0}),r.compliePosition=r.complieNodes=r.compileValue=r.compileType=void 0;var g=i(6);function y(m){switch(m){case"childList":return"node";case"attributes":return"attr";default:return"text"}}r.compileType=y;function C(m){switch(m.type){case"attributes":return m.target.getAttribute(m.attributeName)||"";case"characterData":return m.target.textContent;default:return""}}r.compileValue=C;function w(m){var b={};return m.addedNodes.length&&(b.add=g.toArray(m.addedNodes)),m.removedNodes.length&&(b.remove=g.toArray(m.removedNodes)),b}r.complieNodes=w;function A(m){var b;return m.previousSibling?b={type:"before",target:m.previousSibling}:m.nextSibling?b={type:"after",target:m.nextSibling}:b={type:"parent",target:m.target},b}r.compliePosition=A;var E=["UL","OL","H1","H2","H3","H4","H5","H6"];function _(m){var b=[],S=!1,x=[];return(0,c.default)(m).call(m,function(O,D){var V={type:y(O.type),target:O.target,attr:O.attributeName||"",value:C(O)||"",oldValue:O.oldValue||"",nodes:w(O),position:A(O)};if(b.push(V),!!g.UA.isFirefox){if(S&&O.addedNodes.length&&O.addedNodes[0].nodeType==1){var I=O.addedNodes[0],z={type:"node",target:I,attr:"",value:"",oldValue:"",nodes:{add:[S]},position:{type:"parent",target:I}};(0,f.default)(E).call(E,I.nodeName)!=-1?(z.nodes.add=g.toArray(I.childNodes),b.push(z)):S.nodeType==3?(v(I,x)&&(z.nodes.add=g.toArray(I.childNodes)),b.push(z)):(0,f.default)(E).call(E,O.target.nodeName)==-1&&v(I,x)&&(z.nodes.add=g.toArray(I.childNodes),b.push(z))}V.type=="node"&&O.removedNodes.length==1?(S=O.removedNodes[0],x.push(S)):(S=!1,x.length=0)}}),b}r.default=_;function v(m,b){for(var S=0,x=b.length-1;x>0&&m.contains(b[x]);x--)S++;return S}},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(4)),f=s(i(94));(0,d.default)(r,"__esModule",{value:!0}),r.restore=r.revoke=void 0;function g(x,O){var D=x.position.target;switch(x.position.type){case"before":D.nextSibling?(D=D.nextSibling,(0,c.default)(O).call(O,function(V){x.target.insertBefore(V,D)})):(0,c.default)(O).call(O,function(V){x.target.appendChild(V)});break;case"after":(0,c.default)(O).call(O,function(V){x.target.insertBefore(V,D)});break;default:(0,c.default)(O).call(O,function(V){D.appendChild(V)});break}}function y(x){for(var O=0,D=(0,f.default)(x.nodes);O<D.length;O++){var V=D[O],I=V[0],z=V[1];switch(I){case"add":(0,c.default)(z).call(z,function(T){x.target.removeChild(T)});break;default:{g(x,z);break}}}}function C(x){var O=x.target;x.oldValue==null?O.removeAttribute(x.attr):O.setAttribute(x.attr,x.oldValue)}function w(x){x.target.textContent=x.oldValue}var A={node:y,text:w,attr:C};function E(x){for(var O=x.length-1;O>-1;O--){var D=x[O];A[D.type](D)}}r.revoke=E;function _(x){for(var O=0,D=(0,f.default)(x.nodes);O<D.length;O++){var V=D[O],I=V[0],z=V[1];switch(I){case"add":{g(x,z);break}default:{(0,c.default)(z).call(z,function(T){T.parentNode.removeChild(T)});break}}}}function v(x){x.target.textContent=x.value}function m(x){x.target.setAttribute(x.attr,x.value)}var b={node:_,text:v,attr:m};function S(x){for(var O=0,D=x;O<D.length;O++){var V=D[O];b[V.type](V)}}r.restore=S},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(434),f=function(){function g(y){this.editor=y,this.data=new c.TailChain}return g.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},g.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},g.prototype.revoke=function(){var y=this.data.prev();return y?(this.editor.$textElem.html(y),!0):!1},g.prototype.restore=function(){var y=this.data.next();return y?(this.editor.$textElem.html(y),!0):!1},g}();r.default=f},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(91));(0,d.default)(r,"__esModule",{value:!0}),r.TailChain=void 0;var f=function(){function g(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return g.prototype.resetMax=function(y){y=Math.abs(y),y&&(this.max=y)},(0,d.default)(g.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),g.prototype.insertLast=function(y){if(this.isRe){var C;(0,c.default)(C=this.data).call(C,this.point+1),this.isRe=!1}for(this.data.push(y);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},g.prototype.current=function(){return this.data[this.point]},g.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},g.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},g}();r.TailChain=f},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(99)),g=function(y){c.__extends(C,y);function C(w){var A=y.call(this,w.config.historyMaxSize)||this;return A.editor=w,A.last=0,A.target=w.$textElem.elems[0],A}return C.prototype.observe=function(){var w=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){w.last=w.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},C.prototype.save=function(){return y.prototype.save.call(this,[this.last,this.target.scrollTop]),this},C.prototype.revoke=function(){var w=this;return y.prototype.revoke.call(this,function(A){w.target.scrollTop=A[0]})},C.prototype.restore=function(){var w=this;return y.prototype.restore.call(this,function(A){w.target.scrollTop=A[1]})},C}(f.default);r.default=g},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=i(2),f=c.__importDefault(i(99)),g=c.__importDefault(i(3)),y=i(6);function C(A){return{start:[A.startContainer,A.startOffset],end:[A.endContainer,A.endOffset],root:A.commonAncestorContainer,collapsed:A.collapsed}}var w=function(A){c.__extends(E,A);function E(_){var v=A.call(this,_.config.historyMaxSize)||this;return v.editor=_,v.lastRange=C(document.createRange()),v.root=_.$textElem.elems[0],v.updateLastRange=y.debounce(function(){v.lastRange=C(v.rangeHandle)},_.config.onchangeTimeout),v}return(0,d.default)(E.prototype,"rangeHandle",{get:function(){var v=document.getSelection();return v&&v.rangeCount?v.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),E.prototype.observe=function(){var _=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function v(){var b=_.rangeHandle;(_.root===b.commonAncestorContainer||_.root.contains(b.commonAncestorContainer))&&(_.editor.isComposing||_.updateLastRange())}function m(b){(b.key=="Backspace"||b.key=="Delete")&&_.updateLastRange()}g.default(document).on("selectionchange",v),this.editor.beforeDestroy(function(){g.default(document).off("selectionchange",v)}),_.editor.$textElem.on("keydown",m)},E.prototype.save=function(){var _=C(this.rangeHandle);return A.prototype.save.call(this,[this.lastRange,_]),this.lastRange=_,this},E.prototype.set=function(_){try{if(_){var v=this.rangeHandle;return v.setStart.apply(v,_.start),v.setEnd.apply(v,_.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},E.prototype.revoke=function(){var _=this;return A.prototype.revoke.call(this,function(v){_.set(v[0])})},E.prototype.restore=function(){var _=this;return A.prototype.restore.call(this,function(v){_.set(v[1])})},E}(f.default);r.default=w},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(29));(0,d.default)(r,"__esModule",{value:!0});var f=i(2),g=f.__importDefault(i(3));i(438);function y(C){var w=!1,A,E;C.txt.eventHooks.changeEvents.push(function(){w&&(0,c.default)(A).call(A,".w-e-content-preview").html(C.$textElem.html())});function _(){if(!w){C.$textElem.hide();var m=C.zIndex.get("textContainer"),b=C.txt.html();A=g.default('<div class="w-e-content-mantle" style="z-index:'+m+`">
<div class="w-e-content-preview w-e-text">`+b+`</div>
</div>`),C.$textContainerElem.append(A);var S=C.zIndex.get("menu");E=g.default('<div class="w-e-menue-mantle" style="z-index:'+S+'"></div>'),C.$toolbarElem.append(E),w=!0,C.isEnable=!1}}function v(){!w||(A.remove(),E.remove(),C.$textElem.show(),w=!1,C.isEnable=!0)}return{disable:_,enable:v}}r.default=y},function(o,r,i){var s=i(20),d=i(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[o.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),o.exports=d.locals||{}},function(o,r,i){var s=i(21);r=s(!1),r.push([o.i,`.w-e-content-mantle {
width: 100%;
height: 100%;
overflow-y: auto;
}
.w-e-content-mantle .w-e-content-preview {
width: 100%;
min-height: 100%;
padding: 0 10px;
line-height: 1.5;
}
.w-e-content-mantle .w-e-content-preview img {
cursor: default;
}
.w-e-content-mantle .w-e-content-preview img:hover {
box-shadow: none;
}
.w-e-menue-mantle {
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
`,""]),o.exports=r},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function f(g){var y=this;this.editor=g;var C=function(){var A=document.activeElement;A===g.$textElem.elems[0]&&y.emit()};window.document.addEventListener("selectionchange",C),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",C)})}return f.prototype.emit=function(){var g,y=this.editor.config.onSelectionChange;if(y){var C=this.editor.selection;C.saveRange(),C.isSelectionEmpty()||y({text:C.getSelectionText(),html:(g=C.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0].innerHTML,selection:C})}},f}();r.default=c},function(o,r,i){var s=i(0),d=s(i(1)),c=s(i(128)),f=s(i(94)),g=s(i(4));(0,d.default)(r,"__esModule",{value:!0}),r.registerPlugin=void 0;var y=i(2),C=y.__importDefault(i(87)),w=i(6);function A(_,v,m){if(!_)throw new TypeError("name is not define");if(!v)throw new TypeError("options is not define");if(!v.intention)throw new TypeError("options.intention is not define");if(v.intention&&typeof v.intention!="function")throw new TypeError("options.intention is not function");m[_]&&console.warn("plugin "+_+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),m[_]=v}r.registerPlugin=A;function E(_){var v=(0,c.default)({},w.deepClone(C.default.globalPluginsFunctionList),w.deepClone(_.pluginsFunctionList)),m=(0,f.default)(v);(0,g.default)(m).call(m,function(b){var S=b[0],x=b[1];console.info("plugin "+S+" initializing");var O=x.intention,D=x.config;O(_,D),console.info("plugin "+S+" initialization complete")})}r.default=E},function(o,r,i){var s=i(0),d=s(i(1));(0,d.default)(r,"__esModule",{value:!0})}]).default})})(om);var CI=bI(om.exports),_I="fcEditor",wI=1,EI=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},AI=n.defineComponent({name:_I,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:wI++}},watch:{disabled:function(){this.enable()},modelValue:function(t){t!==this.editor.txt.html()&&this.editor.txt.html(t||"")}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("update:modelValue",this.editor.txt.html())}},mounted:function(){var t=this;this.$nextTick(function(){t.editor=new CI("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&EI(t.editor.config,t.config),t.init&&t.init(t.editor),t.editor.create(),t.enable(),t.editor.txt.html(t.modelValue)})},render:function(){var t=vI({},this.$attrs);return delete t.id,n.createVNode("div",n.mergeProps(t,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});(function(e,t){(function(o){o(_o())})(function(o){o.defineSimpleMode=function(w,A){o.defineMode(w,function(E){return o.simpleMode(E,A)})},o.simpleMode=function(w,A){r(A,"start");var E={},_=A.meta||{},v=!1;for(var m in A)if(m!=_&&A.hasOwnProperty(m))for(var b=E[m]=[],S=A[m],x=0;x<S.length;x++){var O=S[x];b.push(new d(O,A)),(O.indent||O.dedent)&&(v=!0)}var D={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:v?[]:null}},copyState:function(I){var z={state:I.state,pending:I.pending,local:I.local,localState:null,indent:I.indent&&I.indent.slice(0)};I.localState&&(z.localState=o.copyState(I.local.mode,I.localState)),I.stack&&(z.stack=I.stack.slice(0));for(var T=I.persistentStates;T;T=T.next)z.persistentStates={mode:T.mode,spec:T.spec,state:T.state==I.localState?z.localState:o.copyState(T.mode,T.state),next:z.persistentStates};return z},token:c(E,w),innerMode:function(I){return I.local&&{mode:I.local.mode,state:I.localState}},indent:C(E,_)};if(_)for(var V in _)_.hasOwnProperty(V)&&(D[V]=_[V]);return D};function r(w,A){if(!w.hasOwnProperty(A))throw new Error("Undefined state "+A+" in simple mode")}function i(w,A){if(!w)return/(?:)/;var E="";return w instanceof RegExp?(w.ignoreCase&&(E="i"),w.unicode&&(E+="u"),w=w.source):w=String(w),new RegExp((A===!1?"":"^")+"(?:"+w+")",E)}function s(w){if(!w)return null;if(w.apply)return w;if(typeof w=="string")return w.replace(/\./g," ");for(var A=[],E=0;E<w.length;E++)A.push(w[E]&&w[E].replace(/\./g," "));return A}function d(w,A){(w.next||w.push)&&r(A,w.next||w.push),this.regex=i(w.regex),this.token=s(w.token),this.data=w}function c(w,A){return function(E,_){if(_.pending){var v=_.pending.shift();return _.pending.length==0&&(_.pending=null),E.pos+=v.text.length,v.token}if(_.local)if(_.local.end&&E.match(_.local.end)){var m=_.local.endToken||null;return _.local=_.localState=null,m}else{var m=_.local.mode.token(E,_.localState),b;return _.local.endScan&&(b=_.local.endScan.exec(E.current()))&&(E.pos=E.start+b.index),m}for(var S=w[_.state],x=0;x<S.length;x++){var O=S[x],D=(!O.data.sol||E.sol())&&E.match(O.regex);if(D){O.data.next?_.state=O.data.next:O.data.push?((_.stack||(_.stack=[])).push(_.state),_.state=O.data.push):O.data.pop&&_.stack&&_.stack.length&&(_.state=_.stack.pop()),O.data.mode&&g(A,_,O.data.mode,O.token),O.data.indent&&_.indent.push(E.indentation()+A.indentUnit),O.data.dedent&&_.indent.pop();var V=O.token;if(V&&V.apply&&(V=V(D)),D.length>2&&O.token&&typeof O.token!="string"){for(var I=2;I<D.length;I++)D[I]&&(_.pending||(_.pending=[])).push({text:D[I],token:O.token[I-1]});return E.backUp(D[0].length-(D[1]?D[1].length:0)),V[0]}else return V&&V.join?V[0]:V}}return E.next(),null}}function f(w,A){if(w===A)return!0;if(!w||typeof w!="object"||!A||typeof A!="object")return!1;var E=0;for(var _ in w)if(w.hasOwnProperty(_)){if(!A.hasOwnProperty(_)||!f(w[_],A[_]))return!1;E++}for(var _ in A)A.hasOwnProperty(_)&&E--;return E==0}function g(w,A,E,_){var v;if(E.persistent)for(var m=A.persistentStates;m&&!v;m=m.next)(E.spec?f(E.spec,m.spec):E.mode==m.mode)&&(v=m);var b=v?v.mode:E.mode||o.getMode(w,E.spec),S=v?v.state:o.startState(b);E.persistent&&!v&&(A.persistentStates={mode:b,spec:E.spec,state:S,next:A.persistentStates}),A.localState=S,A.local={mode:b,end:E.end&&i(E.end),endScan:E.end&&E.forceEnd!==!1&&i(E.end,!1),endToken:_&&_.join?_[_.length-1]:_}}function y(w,A){for(var E=0;E<A.length;E++)if(A[E]===w)return!0}function C(w,A){return function(E,_,v){if(E.local&&E.local.mode.indent)return E.local.mode.indent(E.localState,_,v);if(E.indent==null||E.local||A.dontIndentStates&&y(E.state,A.dontIndentStates)>-1)return o.Pass;var m=E.indent.length-1,b=w[E.state];e:for(;;){for(var S=0;S<b.length;S++){var x=b[S];if(x.data.dedent&&x.data.dedentIfLineStart!==!1){var O=x.regex.exec(_);if(O&&O[0]){m--,(x.next||x.push)&&(b=w[x.next||x.push]),_=_.slice(O[0].length);continue e}}}break}return m<0?0:E.indent[m]}}})})();const c3="",u3="",f3="",p3="",h3="";di.defineSimpleMode("fcComputedMode",{start:[{regex:/[a-zA-Z_]\w*/,token:"keyword"},{regex:/[a-z]+/,token:"def"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+]?(\d*\.)?\d+/,token:"number"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/[\(\),]/,token:"bracket"},{regex:/==/,token:"operator"},{regex:/=/,token:"operator"},{regex:/[!<>]=?/,token:"operator"},{regex:/&&|\|\|/,token:"operator"},{regex:/[\+\-\*\%\/]/,token:"builtin"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}]});const kt=(e,t,o)=>{je.component(e,o||t),Qn.component(e,t)};je.component("draggable",yo),je.component("DragTool",uh),je.component("DragBox",ph),je.component("Validate",KN),je.component("Struct",ch),je.component("HtmlEditor",Jx),je.component("FnEditor",ci),je.component("ComputedConfig",Gf),je.component("Required",JN),je.component("TableOptions",nh),je.component("TreeOptions",sT),je.component("TableFormColumn",JT),je.component("EventConfig",Yf),je.component("FetchConfig",ck),je.component("TableColumnConfig",bk),je.component("TableButtonConfig",kk),je.component("SizeInput",wr),je.component("PatternInput",Cd),je.component("StyleConfig",lh),je.component("GlobalFetchConfig",th),je.component("GlobalFetchSelect",Kk),je.component("GlobalEventConfig",eh),je.component("GlobalClassConfig",sh),je.component("GlobalClassSelect",Zk),je.component("GlobalVariableConfig",dh),je.component("FetchTable",rN),je.component("VariableConfig",vr),je.component("ColorInput",ko),je.component("ConfigItem",wn),je.component("ConfigTitle",Qp),je.component("FieldInput",tk),je.component("PromptInput",ok),je.component("ValueInput",Fa),je.component("StepFormItem",t2),je.component("FcRow",P2),je.component("FnConfig",Pk),je.component("FnInput",fh),je.component("RuleSelect",_d),je.component("HideConfig",z2),je.component("SpanInput",W2),je.component("LanguageInput",Yd),kt("FcSlot",xN,kN),kt("FcJson",NN,TN),kt("DataTable",Nk),kt("FcEditor",AI),kt("fcInlineForm",$N),kt("FcCell",$2,I2),kt("TableForm",WT,wT),kt("StepForm",fT,gT),kt("FcValue",SN,_N),kt("FcTable",vN,pN),kt("NestedTableForm",$T,OT),kt("InfiniteTableForm",zT,PT),kt("FcDialog",h2,d2),kt("FcDrawer",T2,A2),kt("AudioBox",iO),kt("VideoBox",lO),kt("BarCodeBox",WV),kt("IframeBox",QV),kt("QrCodeBox",eI),kt("SignaturePad",fI),kt("FcEcharts",gI),kt("FcTitle",iI),kt("FcId",Z2);const SI=function(e){(Array.isArray(e)?e:[e]).forEach(o=>{Co[o.name]=o.handle,md[o.name]=o.example,Va.value.formula[o.name]=o.info,Mf.forEach(r=>{r.key===o.menu&&r.children.push(o.name),Qn.setFormula(o.name,o.handle),je.setFormula(o.name,o.handle)})})},xI=function(e){(Array.isArray(e)?e:[e]).forEach(o=>{gd[o.name]=o.handle,Lf[o.name]=o.rule,Va.value.behavior[o.name]={info:o.info,name:o.label},Pf.forEach(r=>{r.key===o.menu&&r.children.push(o.name)})})},rm=function(e){e.component("FcDesigner",Ot)};Ot.install=rm,Ot.makeOptionsRule=_i,Ot.formCreate=Qn,Ot.designerForm=je,Ot.component=kt,Ot.setFormula=SI,Ot.setBehavior=xI,Ot.useLocale=Hf,Ot.copyTextToClipboard=Wn,Ot.getInjectArg=yn,Ot.localeOptions=st,Ot.localeProps=Me,Ot.makeRequiredRule=ql,Ot.makeTreeOptions=Vn,Ot.makeTreeOptionsRule=so,Ot.makeTitleRule=es,Ot.makeDataRule=Nn,Ot.toJSON=un,Ot.loadjs=Jn,Ot.t=Ia,Ot.utils={copyTextToClipboard:Wn,getInjectArg:yn,localeOptions:st,localeProps:Me,makeOptionsRule:_i,makeRequiredRule:ql,makeTitleRule:es,makeDataRule:Nn,makeTreeOptions:Vn,makeTreeOptionsRule:so,toJSON:un};const am="3.2.18";yv(am,Qn.version)===1&&console.error("Please use FormCreate version "+am+" or greater, see https://github.com/xaboy/form-create."),Et.copyTextToClipboard=Wn,Et.default=Ot,Et.designerForm=je,Et.formCreate=Qn,Et.getInjectArg=yn,Et.install=rm,Et.loadjs=Jn,Et.localeOptions=st,Et.localeProps=Me,Et.makeDataRule=Nn,Et.makeOptionsRule=_i,Et.makeRequiredRule=ql,Et.makeTitleRule=es,Et.makeTreeOptions=Vn,Et.makeTreeOptionsRule=so,Et.t=Ia,Et.toJSON=un,Object.defineProperties(Et,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});